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a,IAMhGJ,EAAQC,QAA6B,oBAAI,CACtCS,EAAGA,IAAMC,EAAQ,MACjBC,MAAO,cACPC,GAAI,CAAC,CAACC,KAAK,aAAeC,KAAK,gCAAiCC,WAAY,qBAAqBC,MAAO,GAAG,CAACH,KAAK,qBAAuBC,KAAK,4CAA6CC,WAAY,WAAWC,MAAO,IACxNC,qBAAsB,CAAC,SAAS,YAAY,OAAO,6BAA6B,WAAW,kBAAkB,qBAAqB,qBAAqB,0BAA0B,aACjLC,KAAK,EACLC,GAAI,YACJC,EAAG,sBACHC,EAAG,YAEHC,IAAK,GAELC,cAAe,0CACfC,GAAI,kCAOAtB,EAF4B,gCACXQ,EAAQ,MAQzBR,EAF4B,4CACXQ,EAAQ,MAMjCe,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAa1B,QAAO2B,EAAAA,EAAA,GACpBF,OAAOC,aAAa1B,SAAW,IAC/BD,EAAQC,SAGXyB,OAAOC,aAAazB,YAAW0B,EAAAA,EAAA,GAC5BF,OAAOC,aAAazB,aAAe,IACnCF,EAAQE,iCChFnB2B,EAAOC,QAAUlC,2BCAjBiC,EAAOC,QAAUC","sources":["webpack://sheikh-zayed-festival/./src/actions/get-categories.action.ts?9592","webpack://sheikh-zayed-festival/./src/actions/get-fatoorah-payment-state.action.ts?3e35","webpack://sheikh-zayed-festival/./src/themes/sheikhzayedfestival/sheikhzayedfestival.tsx?709c","webpack://sheikh-zayed-festival/./lib/sheikhzayedfestival/module-registration.js?f9ba","webpack://sheikh-zayed-festival/external var \"React\"?0d3b","webpack://sheikh-zayed-festival/external var \"ReactDOM\"?853b"],"sourcesContent":["/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { getCategoriesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/CategoriesDataActions.g';\r\nimport { Category } from '@msdyn365-commerce/retail-proxy';\r\n\r\nexport class GetCategoriesInput implements Msdyn365.IActionInput {\r\n constructor() {}\r\n public getCacheKey = () => `Get-Categories`;\r\n public getCacheObjectType = () => 'Get-Categories';\r\n public dataCacheType = (): Msdyn365.CacheType => 'request';\r\n}\r\nexport interface IGetCategoriesData {\r\n filteredCategories: Category[];\r\n parentCategory?: Category | undefined;\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new GetCategoriesInput();\r\n};\r\n\r\nasync function action(input: GetCategoriesInput, ctx: Msdyn365.IActionContext): Promise {\r\n const recId = Number(ctx.requestContext.urlTokens.recordId);\r\n const getCategories: Category[] = await getCategoriesAsync(\r\n { callerContext: ctx },\r\n ctx.requestContext.apiSettings.channelId\r\n );\r\n\r\n const filteredCategories = recId ? getCategories.filter((item: Category) => item.ParentCategory === recId) : getCategories;\r\n const category = getCategories.find((item: Category) => item.RecordId === recId);\r\n\r\n return { filteredCategories: filteredCategories, parentCategory: category };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'GetCategories',\r\n input: createInput\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE 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 * GetFatoorahPaymentState Input Action\r\n */\r\nexport class GetFatoorahPaymentStateInput implements Msdyn365.IActionInput {\r\n // TODO: Construct the input needed to run the action\r\n constructor() {}\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 = () => `FATOORAHPAYMENTSTATE`;\r\n public getCacheObjectType = () => 'FATOORAHPAYMENTSTATE';\r\n public dataCacheType = (): Msdyn365.CacheType => 'request';\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 IGetFatoorahPaymentStateData {\r\n paymentState: 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 GetFatoorahPaymentStateInput();\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: GetFatoorahPaymentStateInput, 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 { paymentState: false };\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: 'GetFatoorahPaymentState',\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","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\n\r\n/**\r\n * CoreComponent component\r\n * @extends {React.PureComponent}\r\n */\r\n\r\nclass Sheikhzayedfestival extends React.PureComponent {\r\n constructor(props: {}) {\r\n super(props);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n return