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AAe,CAAC,GAAGK,SAAQC,IACnDV,EAAQE,YAAYE,GAAYM,IAChCV,EAAQE,YAAYE,GAAYM,GAAYJ,WAC5CN,EAAQE,YAAYE,GAAYM,GAAYJ,UAAUK,SACtDX,EAAQE,YAAYF,EAAQE,YAAYE,GAAYM,GAAYJ,UAAUlB,IAAMY,EAAQE,YAAYE,GAAYM,GACpH,GAER,EAwBA,CACI,MAAMN,EAAa,2DACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,KAC1CT,EAAiBC,EACrB,CAEA,CACI,MAAMA,EAAa,qCACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,MAC1CT,EAAiBC,EACrB,CAEA,CACI,MAAMA,EAAa,0DACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,KAC1CT,EAAiBC,EACrB,CAGJS,OAAOC,aAAeD,OAAOC,cAAgB,CAAC,EAC9CD,OAAOC,aAAab,QAAOc,EAAAA,EAAA,GACpBF,OAAOC,aAAab,SAAW,CAAC,GAChCD,EAAQC,SAGXY,OAAOC,aAAaE,mBAAqB,CAAC,EAC1CH,OAAOC,aAAaE,mBAA8B,UAACD,EAAA,GAC5Cf,EAAQE,Y,qBCnEvBe,EAAOC,QAAUC,K,sBCAjBF,EAAOC,QAAUE,Q","sources":["webpack://Msdyn365.Commerce.Online/./src/actions/ActiveMenu/get-active-category-menu-state.action.ts?d688","webpack://Msdyn365.Commerce.Online/./src/actions/get-product-reviews.action.ts?06a0","webpack://Msdyn365.Commerce.Online/./src/actions/isDonation/is-selected-category-donation.action.ts?5191","webpack://Msdyn365.Commerce.Online/./lib/__local__/module-registration.js?8a42","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * GetActivecategorymenustate Input Action\r\n */\r\nexport class GetActiveCategoryMenuStateInput implements Msdyn365.IActionInput {\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `ActiveMenu`;\r\n public getCacheObjectType = () => 'ActiveMenu';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IGetActiveCategoryMenuStateData {\r\n activeMenu: number;\r\n activeCategoryId: number;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetActiveCategoryMenuStateInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function getActiveCategorymenuStateAction(input:GetActiveCategoryMenuStateInput, ctx: Msdyn365.IActionContext):Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // TODO: Uncomment the below line to get the value from a service\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n return { activeMenu: 0, activeCategoryId: 0 };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >getActiveCategorymenuStateAction,\r\n // TODO: Give your data action a unique id\r\n id: 'GetActivecategorymenustate',\r\n input: createInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * GetProductReviews Input Action\r\n */\r\nexport class GetProductReviewsInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n // constructor() {\r\n // }\r\n\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `DEFAULT`;\r\n public getCacheObjectType = () => 'IGetProductReviewsData';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IGetProductReviewsData {\r\n text: string;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetProductReviewsInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input:GetProductReviewsInput, ctx: Msdyn365.IActionContext):Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // TODO: Uncomment the below line to get the value from a service\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n\r\n const result = await Msdyn365.sendRequest('https://jsonplaceholder.typicode.com/comments?postId=1')\r\n .then((response: Msdyn365.IHTTPResponse) => { return response.data; });\r\n\r\n return { text: JSON.stringify(result) };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // TODO: Give your data action a unique id\r\n id: 'GetProductReviews',\r\n input: createInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Get Selected Donation Category State Input Action\r\n */\r\nexport class GetSelectedDonationCategoryStateInput implements Msdyn365.IActionInput {\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `ActiveDonation`;\r\n public getCacheObjectType = () => 'ActiveDonation';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IGetSelectedDonationCategoryStateData {\r\n isDonationSelected: boolean;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetSelectedDonationCategoryStateInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function getSelectedDonationCategoryStateAction(input: GetSelectedDonationCategoryStateInput, ctx: Msdyn365.IActionContext):Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // TODO: Uncomment the below line to get the value from a service\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n return { isDonationSelected: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >getSelectedDonationCategoryStateAction,\r\n // TODO: Give your data action a unique id\r\n id: 'GetSelectedDonationCategoryState',\r\n input: createInput\r\n // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n { \n const actionPath = 'actions/ActiveMenu/get-active-category-menu-state.action';\n binding.dataActions[actionPath] = require('partner/actions/ActiveMenu/get-active-category-menu-state.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-product-reviews.action';\n binding.dataActions[actionPath] = require('partner/actions/get-product-reviews.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/isDonation/is-selected-category-donation.action';\n binding.dataActions[actionPath] = require('partner/actions/isDonation/is-selected-category-donation.action');\n registerActionId(actionPath);\n }\n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.packageDataActions = {};\n window.__bindings__.packageDataActions['__local__'] = {\n ...binding.dataActions\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["GetActiveCategoryMenuStateInput","constructor","getCacheKey","getCacheObjectType","dataCacheType","Msdyn365","action","async","input","ctx","activeMenu","activeCategoryId","id","args","GetProductReviewsInput","result","then","response","data","text","JSON","stringify","GetSelectedDonationCategoryStateInput","isDonationSelected","binding","modules","dataActions","registerActionId","actionPath","default","prototype","Object","keys","forEach","exportName","Action","require","window","__bindings__","_objectSpread","packageDataActions","module","exports","React","ReactDOM"],"sourceRoot":""}