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AAW4B,EAAAA,EAAA,GAC5BF,OAAOC,aAAa3B,aAAe,IACnCF,EAAQE,+JChEZ,MAAM6B,EAOTC,YAAmBC,EAAmCC,EAAwBC,GAUvE,KAAAC,YAAc,KAAcC,EAAAA,EAAAA,IAAc,YAAYC,KAAKC,wBAAyBD,KAAKL,aAMzF,KAAAO,mBAAqB,IAAc,WAMnC,KAAAC,cAAgB,IACZH,KAAKH,UAAYG,KAAKH,UAAY,UAtBzCG,KAAKC,sBAAwBL,EAC7BI,KAAKL,YAAcA,EACnBK,KAAKH,UAAYA,GA6BzB,MAgCaO,GAA8BC,EAAAA,EAAAA,IAA2B,CAClEjC,GAAI,yDACJkC,OAnBsBC,MAAOC,EAAyBC,IAClDD,GAASC,EAAIC,eAAeC,KAAKC,gBAE1BC,EAAAA,qBAAAA,UAA+B,CAAEC,cAAeL,EAAKM,YAAa,OAASP,EAAMP,uBAAyB,IAAIe,MACjHC,GACWC,MAAMC,QAAQF,GAAYA,EAAS,GAAKA,KAK3DR,EAAIW,MAAM,+CACO,IASjBZ,MAnCiBa,IACjB,MAAM,KAAEV,EAAI,YAAEhB,GAAgB0B,EAAUX,eACxC,IAAKC,EAAKW,QAAUX,EAAKC,gBACrB,MAAM,IAAI3C,MAAM,0DAGpB,OAAO,IAAIwB,EAAiBE,MAgChC,wBCpGA4B,EAAOC,QAAU/D,2BCAjB8D,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/themes/moekwrsitetheme/moekwrsitetheme.tsx?6fb8","webpack://Msdyn365.Commerce.Online/./lib/moekwrsitetheme/module-registration.js?b021","webpack://Msdyn365.Commerce.Online/../../src/get-customer.ts?8319","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 * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport * as React from 'react';\r\n\r\n// TODO: Current build require at least one tsx file\r\nexport default () =>
;\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 (binding.modules['moekwrsitetheme'] = {\n c: () => require('partner/themes/moekwrsitetheme/moekwrsitetheme.tsx'),\n $type: 'themeModule',\n da: [{name:'cart', path:'@msdyn365-commerce/global-state/dist/lib/data-actions/get-cart-state-data-action', moduleName: 'quickview',runOn: 1},{name:'customerInformation', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer', moduleName: 'navigation-menu',runOn: 0,options: {\"cacheType\":\"none\"}},{name:'product', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant', moduleName: 'quickview',runOn: 0}],\n definitionExtensions: ['buybox','cart-icon','content-block','cookie-compliance','footer-item','header','image-list','media-gallery','navigation-menu','order-history','product-collection','product-specification','promo-banner','quickview','ratings-histogram','search','social-share','text-block','tile-list-item','video-player','write-review'],\n iNM: false,\n ns: '__local__',\n n: 'moekwrsitetheme',\n p: '__local__',\n \n pdp: '',\n \n themeSettings: 'moekwrsitetheme.theme.settings.json',\n md: 'src/themes/moekwrsitetheme'\n });\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-selected-variant');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce/global-state/dist/lib/data-actions/get-cart-state-data-action';\n let dataAction = require('@msdyn365-commerce/global-state/dist/lib/data-actions/get-cart-state-data-action');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport {\n CacheType,\n createObservableDataAction,\n IAction,\n IActionContext,\n IActionInput,\n IAny,\n ICommerceApiSettings,\n ICreateActionContext,\n IGeneric\n} from '@msdyn365-commerce/core';\nimport { Customer, CustomersDataActions } from '@msdyn365-commerce/retail-proxy';\n\nimport { buildCacheKey } from './utilities/utils';\n\n/**\n * Input class for get customer data action.\n */\nexport class GetCustomerInput implements IActionInput {\n public customerAccountNumber?: string;\n\n private readonly apiSettings: ICommerceApiSettings;\n\n private readonly cacheType?: CacheType;\n\n public constructor(apiSettings: ICommerceApiSettings, accountNumber?: string, cacheType?: CacheType) {\n this.customerAccountNumber = accountNumber;\n this.apiSettings = apiSettings;\n this.cacheType = cacheType;\n }\n\n /**\n * GetCacheKey.\n * @returns - Returns string.\n */\n public getCacheKey = (): string => buildCacheKey(`Customer-${this.customerAccountNumber}`, this.apiSettings);\n\n /**\n * GetCacheObjectType.\n * @returns - Cache Object Type string.\n */\n public getCacheObjectType = (): string => 'Customer';\n\n /**\n * DataCacheType.\n * @returns - CacheType string.\n */\n public dataCacheType = (): CacheType => {\n return this.cacheType ? this.cacheType : 'request';\n };\n}\n\n/**\n * Creates the input required to make the retail api call.\n * @param inputData -- The input data passed to the createInput method.\n * @returns - ProductAvailabilitiesForSelectedVariant or error.\n */\nconst createInput = (inputData: ICreateActionContext