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E,YAAYE,IAAe,IAAIV,SAAQe,IACnDT,EAAQE,YAAYE,GAAYK,IAChCT,EAAQE,YAAYE,GAAYK,GAAYH,WAC5CN,EAAQE,YAAYE,GAAYK,GAAYH,UAAUI,SACtDV,EAAQE,YAAYF,EAAQE,YAAYE,GAAYK,GAAYH,UAAUrO,IAAM+N,EAAQE,YAAYE,GAAYK,QA2B5H,CACI,MAAML,EAAa,0DACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,MAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,gDACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,MAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,4CACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,KAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,wCACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,KAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,qCACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,KAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,mEACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,KAC1CR,EAAiBC,GAIzBQ,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaZ,QAAOa,EAAAA,EAAA,GACpBF,OAAOC,aAAaZ,SAAW,IAC/BD,EAAQC,SAGXW,OAAOC,aAAaE,mBAAqB,GACzCH,OAAOC,aAAaE,mBAA8B,UAACD,EAAA,GAC5Cd,EAAQE,iCCrFvBc,EAAOC,QAAUC,2BCAjBF,EAAOC,QAAUE","sources":["webpack://bestseller.commerce.online/./src/actions/get-media-locations-for-selected-variant.action.ts?5dc9","webpack://bestseller.commerce.online/./src/actions/get-feature-state.ts?fae2","webpack://bestseller.commerce.online/./src/actions/get-price-for-selected-variant.action.ts?c69d","webpack://bestseller.commerce.online/./src/actions/get-store-location-centiro.action.ts?10f5","webpack://bestseller.commerce.online/./src/actions/store-centiro-location.action.ts?6092","webpack://bestseller.commerce.online/./src/shared/functions/get-secret.ts?80af","webpack://bestseller.commerce.online/./src/actions/update-b2c-identity.action.ts?846b","webpack://bestseller.commerce.online/./src/modules/ext-product-page-summary/ext-product-page-summary.action.ts?ee9e","webpack://bestseller.commerce.online/./src/shared/functions/get-affiliation.ts?82a6","webpack://bestseller.commerce.online/./lib/__local__/module-registration.js?8a42","webpack://bestseller.commerce.online/external var \"React\"?0d3b","webpack://bestseller.commerce.online/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 {\r\n CacheType,\r\n createObservableDataAction,\r\n getCatalogId,\r\n getMediaLocationsForProductAction,\r\n IAction,\r\n IActionContext,\r\n IActionInput,\r\n IAny,\r\n ICreateActionContext,\r\n IGeneric,\r\n MediaLocationsInput\r\n} from '@msdyn365-commerce/core';\r\nimport { AsyncResult, MediaLocation, SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\nimport { getMediaLocationsAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nimport {\r\n getSelectedVariant,\r\n SelectedVariantInput,\r\n generateImageUrl,\r\n getSelectedProductIdFromActionInput,\r\n QueryResultSettingsProxy\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\n\r\n/**\r\n * The action input class for the getMediaLocationsForSelectedVariant data action.\r\n */\r\nexport class MediaLocationsForSelectedVariantInput implements IActionInput {\r\n public productId: number;\r\n\r\n public channelId: number;\r\n\r\n public catalogId: number;\r\n\r\n public selectedProduct: SimpleProduct | undefined;\r\n\r\n constructor(productId: number, channelId: number, selectedProduct?: SimpleProduct, catalogId?: number) {\r\n this.productId = productId;\r\n this.channelId = channelId;\r\n this.catalogId = catalogId || 0;\r\n this.selectedProduct = selectedProduct;\r\n }\r\n\r\n public getCacheKey = () => 'MediaLocationsForSelectedVariant';\r\n\r\n public getCacheObjectType = () => 'MediaLocations';\r\n\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\n/**\r\n * The createInput method for the getMediaLocationsForSelectedVariant data action.\r\n * @param inputData The input data passed to the createInput method.\r\n */\r\nexport const createMediaLocationsForSelectedVariantInput = (\r\n inputData: ICreateActionContext>\r\n): MediaLocationsForSelectedVariantInput => {\r\n const productId = getSelectedProductIdFromActionInput(inputData);\r\n const catalogId = getCatalogId(inputData.requestContext);\r\n\r\n if (productId) {\r\n return new MediaLocationsForSelectedVariantInput(+productId, +inputData.requestContext.apiSettings.channelId, undefined, catalogId);\r\n }\r\n throw new Error('Unable to create MediaLocationsForSelectedVariantInput, no productId found on module config or query');\r\n};\r\n\r\n/**\r\n * The action method for the getMediaLocationsForSelectedVariant data action.\r\n * @param input\r\n * @param ctx\r\n */\r\nexport async function getMediaLocationsForSelectedVariantAction(\r\n input: MediaLocationsForSelectedVariantInput,\r\n ctx: IActionContext\r\n): Promise {\r\n return AsyncResult.resolve()\r\n .then(() => {\r\n const activeProduct: SimpleProduct | undefined = input.selectedProduct;\r\n\r\n if (!activeProduct) {\r\n const selectedVariantInput = new SelectedVariantInput(\r\n input.productId,\r\n input.channelId,\r\n undefined,\r\n undefined,\r\n ctx.requestContext\r\n );\r\n return getSelectedVariant(selectedVariantInput, ctx);\r\n }\r\n\r\n return activeProduct;\r\n })\r\n .then(productResult => {\r\n const activeProduct = productResult?.productVariant ?? productResult;\r\n\r\n if (activeProduct) {\r\n if (ctx.requestContext.app?.config?.OmniChannelMedia) {\r\n const mediaLocationsInput = new MediaLocationsInput(\r\n ctx.requestContext,\r\n activeProduct.RecordId,\r\n input.channelId,\r\n input.catalogId\r\n );\r\n return getMediaLocationsForProductAction(mediaLocationsInput, ctx);\r\n }\r\n return getMediaLocationsAsync(\r\n { callerContext: ctx, queryResultSettings: QueryResultSettingsProxy.getPagingFromInputDataOrDefaultValue(ctx) },\r\n activeProduct.RecordId,\r\n input.channelId,\r\n input.catalogId\r\n ).then(response => {\r\n return response.map(\r\n (mediaLocation: MediaLocation): MediaLocation => {\r\n mediaLocation.Uri = generateImageUrl(mediaLocation.Uri, ctx.requestContext.apiSettings);\r\n mediaLocation.AltText = mediaLocation.AltText ? mediaLocation.AltText : activeProduct.Name;\r\n if (!mediaLocation.Uri?.includes('images-eu-prod')) {\r\n mediaLocation.Uri = '';\r\n }\r\n return mediaLocation;\r\n }\r\n );\r\n });\r\n }\r\n\r\n return [];\r\n })\r\n .catch(error => {\r\n ctx.trace(error);\r\n ctx.telemetry.error(error.message);\r\n ctx.telemetry.debug('[getMediaLocationsForSelectedVariantAction]Error executing action');\r\n throw new Error('[getMediaLocationsForSelectedVariantAction]Error executing action');\r\n });\r\n}\r\n\r\n/**\r\n * The getMediaLocationsForSelectedVariant data action\r\n * Gets the currently selected variant for the page via the getSelectedVariant data action,\r\n * and then gets the media location information for the variant via the MediaLocations RetailServer API.\r\n */\r\nexport const getMediaLocationsForSelectedVariantActionDataAction = createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/retail-actions/get-media-locations-for-selected-variant',\r\n action: >getMediaLocationsForSelectedVariantAction,\r\n input: createMediaLocationsForSelectedVariantInput\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 {\r\n CacheType,\r\n createObservableDataAction,\r\n IAction,\r\n IActionContext,\r\n IActionInput,\r\n IAny,\r\n ICreateActionContext,\r\n IGeneric\r\n} from '@msdyn365-commerce/core';\r\nimport { FeatureState, StoreOperationsDataActions } from '@msdyn365-commerce/retail-proxy';\r\nimport { QueryResultSettingsProxy } from '@msdyn365-commerce-modules/retail-actions';\r\n\r\n/**\r\n * Input class for the getFeatureState data action.\r\n * The life time of the data action is 'application'.\r\n */\r\nexport class FeatureStateInput implements IActionInput {\r\n // Any additional feature names that needs to be checked in the code for enablement needs to be appended here:\r\n public readonly featureNames: string[] = [\r\n 'Dynamics.AX.Application.RetailAsyncAddressCreationFeature',\r\n 'Dynamics.AX.Application.RetailEnableAsyncCustomerEditFeature',\r\n 'Dynamics.AX.Application.RetailB2BEcommerceFeature',\r\n 'Dynamics.AX.Application.RetailDefaultOrderQuantityLimitsFeature',\r\n 'Dynamics.AX.Application.RetailMultiplePickupDeliveryModeFeature',\r\n 'Dynamics.AX.Application.RetailSearchPriceRangeFeature',\r\n 'Dynamics.AX.Application.RetailSalesAgreementPriceSupportFeature',\r\n 'Dynamics.AX.Application.ChannelMultipleCatalogsFeature',\r\n 'Dynamics.AX.Application.EcommerceQuantityLimitConfigurationsFeature'\r\n ];\r\n\r\n /**\r\n * Get Cache Key.\r\n * @returns - Cache key string.\r\n */\r\n public getCacheKey = (): string => 'FeatureState';\r\n\r\n /**\r\n * Get Cache type Name.\r\n * @returns - Cache name string.\r\n */\r\n public getCacheObjectType = (): string => 'FeatureState';\r\n\r\n /**\r\n * Get Cache type.\r\n * @returns - CacheType enum.\r\n */\r\n public dataCacheType = (): CacheType => 'application';\r\n}\r\n\r\n/**\r\n * CreateInput method for the getFeatureState method.\r\n * @param inputData -- The input data passed to the createInput method.\r\n * @returns - Input for data action.\r\n */\r\nexport const createGetFeatureStateInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new FeatureStateInput();\r\n};\r\n\r\n/**\r\n * The action method for the getFeatureState data action.\r\n * @param input -- The action input.\r\n * @param ctx -- The action context.\r\n * @returns -- Feature state.\r\n */\r\nexport async function getFeatureStateAction(input: FeatureStateInput, ctx: IActionContext): Promise {\r\n const featureState = await StoreOperationsDataActions.getFeatureStatesAsync(\r\n { callerContext: ctx, queryResultSettings: QueryResultSettingsProxy.getPagingFromInputDataOrDefaultValue(ctx) },\r\n input.featureNames\r\n );\r\n return featureState;\r\n}\r\n\r\n/**\r\n * The getFeatureState data action.\r\n * Gets the feature state via the read RetailServer API.\r\n * @returns Address information associated with the retrieved customer.\r\n */\r\nexport const getFeatureStateActionDataAction = createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/retail-actions/get-feature-state',\r\n action: getFeatureStateAction as IAction,\r\n input: createGetFeatureStateInput\r\n});\r\n\r\nexport default getFeatureStateActionDataAction;\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\nimport { FeatureState } from '@msdyn365-commerce/retail-proxy';\r\nimport { getActivePricesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\nimport {\r\n AffiliationLoyaltyTier,\r\n ProductPrice,\r\n ProductType,\r\n ProjectionDomain,\r\n SimpleProduct\r\n} from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport {\r\n getSelectedProductIdFromActionInput,\r\n getSelectedVariant,\r\n SelectedVariantInput,\r\n QueryResultSettingsProxy,\r\n ArrayExtensions\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\nimport { FeatureStateInput, getFeatureStateActionDataAction } from './get-feature-state';\r\nimport { getAffiliation } from '../shared/functions/get-affiliation';\r\n\r\n/**\r\n * Input class for the GetPriceForSelectedVariant Data Action.\r\n */\r\nexport class PriceForSelectedVariantInput implements Msdyn365.IActionInput {\r\n public productId: number;\r\n\r\n public channelId: number;\r\n\r\n public selectedProduct: SimpleProduct | undefined;\r\n\r\n public customerId?: string;\r\n\r\n public constructor(productId: number, channelId: number, selectedProduct?: SimpleProduct, customerId?: string) {\r\n this.productId = productId;\r\n this.channelId = channelId;\r\n this.selectedProduct = selectedProduct;\r\n this.customerId = customerId ?? '';\r\n }\r\n\r\n public getCacheKey = (): string => 'PriceForSelectedVariant';\r\n\r\n public getCacheObjectType = (): string => 'Price';\r\n\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\n/**\r\n * The createInput method for the GetPriceForSelectedVariantDataAction.\r\n * @param inputData - The input data for the createInput method.\r\n * @returns The PriceForSelectedVariantInput.\r\n */\r\nexport const createActivePriceForSelectedVariantInput = (\r\n inputData: Msdyn365.ICreateActionContext>\r\n): PriceForSelectedVariantInput => {\r\n const productId = getSelectedProductIdFromActionInput(inputData);\r\n\r\n if (productId) {\r\n return new PriceForSelectedVariantInput(+productId, +inputData.requestContext.apiSettings.channelId, undefined);\r\n }\r\n throw new Error('Unable to create PriceForSelectedVariantInput, no productId found on module config or query');\r\n};\r\n\r\n/**\r\n * The Action Method for the GetPriceForSelectedVariant Data Action\r\n * Pulls the currently selected variant from the cache using the getSelectedVariant data action, and gets it's current contextual price\r\n * via the getActivePrice RetailServer API.\r\n * @param input - The input.\r\n * @param ctx - The ctx.\r\n * @returns The Promise.\r\n */\r\nexport async function getPriceForSelectedVariantAction(\r\n input: PriceForSelectedVariantInput,\r\n ctx: Msdyn365.IActionContext\r\n): Promise {\r\n return Promise.resolve()\r\n .then(() => {\r\n const activeProduct: SimpleProduct | undefined = input.selectedProduct;\r\n\r\n if (!activeProduct) {\r\n const selectedVariantInput = new SelectedVariantInput(\r\n input.productId,\r\n input.channelId,\r\n undefined,\r\n undefined,\r\n ctx.requestContext\r\n );\r\n\r\n return getSelectedVariant(selectedVariantInput, ctx);\r\n }\r\n\r\n return activeProduct;\r\n })\r\n .then(async (productResult: SimpleProduct | null) => {\r\n const catalogId = Msdyn365.getCatalogId(ctx.requestContext);\r\n const projectDomain: ProjectionDomain = {\r\n ChannelId: +ctx.requestContext.apiSettings.channelId,\r\n CatalogId: catalogId\r\n };\r\n\r\n var affiliation: AffiliationLoyaltyTier[] = getAffiliation(\r\n ctx.requestContext.locale,\r\n ctx.requestContext.app.config.affiliationIds,\r\n ctx.requestContext.app.config.loyaltyTierIds\r\n );\r\n\r\n const activeProduct: SimpleProduct | undefined = productResult as SimpleProduct | undefined;\r\n if (activeProduct) {\r\n const featureStates: FeatureState[] = await getFeatureStateActionDataAction(new FeatureStateInput(), ctx);\r\n return getActivePricesAsync(\r\n { callerContext: ctx, queryResultSettings: QueryResultSettingsProxy.getPagingFromInputDataOrDefaultValue(ctx) },\r\n projectDomain,\r\n [activeProduct.RecordId],\r\n new Date(),\r\n input.customerId,\r\n affiliation,\r\n true,\r\n featureStates.find(featureState => featureState.Name === 'Dynamics.AX.Application.RetailSearchPriceRangeFeature')\r\n ?.IsEnabled &&\r\n (activeProduct.ProductTypeValue === ProductType.Master || activeProduct.ProductTypeValue === ProductType.KitMaster),\r\n featureStates.find(\r\n featureState => featureState.Name === 'Dynamics.AX.Application.RetailSalesAgreementPriceSupportFeature'\r\n )?.IsEnabled\r\n ).then((productPrices: ProductPrice[]) => {\r\n if (!ArrayExtensions.hasElements(productPrices)) {\r\n throw new Error('[getPriceForSelectedVariantAction]Invalid response recieved from getActivePricesAsync');\r\n }\r\n return productPrices[0];\r\n });\r\n }\r\n\r\n return null;\r\n })\r\n .catch((error: Error) => {\r\n ctx.trace(error.message);\r\n ctx.telemetry.exception(error);\r\n ctx.telemetry.debug('[getPriceForSelectedVariantAction]Error executing action');\r\n throw new Error('[getPriceForSelectedVariantAction]Error executing action');\r\n });\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: getPriceForSelectedVariantAction as Msdyn365.IAction,\r\n id: '@msdyn365-commerce-modules/retail-actions/get-price-for-selected-variant',\r\n input: createActivePriceForSelectedVariantInput\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\nimport { bSGetCollectionPointsAsync } from '../custom-proxy/DataActionExtensions.g';\r\nimport { ICollectionPoint, ICollectionPoints, IOpeningHour } from '../custom-proxy/DataServiceEntities.g';\r\nimport { IFullOrgUnitAvailability } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { OrgUnitAvailability, OrgUnitLocation } from '@msdyn365-commerce/retail-proxy';\r\n\r\nexport interface IFullOrgUnitAvailabilityExtended extends Omit {\r\n openingHours?: IOpeningHour[];\r\n OrgUnitAvailability?: OrgUnitAvailabilityExtended;\r\n}\r\n\r\nexport interface OrgUnitAvailabilityExtended extends Omit {\r\n OrgUnitLocation?: OrgUnitLocationExtended;\r\n}\r\n\r\nexport interface OrgUnitLocationExtended extends OrgUnitLocation {\r\n ExternalId?: string;\r\n}\r\n\r\n/**\r\n * GetStoreLocationCentiro Input Action\r\n */\r\nexport class GetStoreLocationCentiroInput implements Msdyn365.IActionInput {\r\n public CountryISOCode?: string;\r\n public City?: string;\r\n public PostalCode?: string;\r\n public Networks?: string;\r\n public StreetAddress?: string;\r\n public State?: string;\r\n public MaxDistance?: string;\r\n public MaxCollectionPoints?: string;\r\n\r\n constructor(\r\n CountryISOCode?: string,\r\n City?: string,\r\n PostalCode?: string,\r\n Networks?: string,\r\n StreetAddress?: string,\r\n State?: string,\r\n MaxDistance?: string,\r\n MaxCollectionPoints?: string\r\n ) {\r\n this.CountryISOCode = CountryISOCode;\r\n this.City = City;\r\n this.PostalCode = PostalCode;\r\n this.Networks = Networks;\r\n this.StreetAddress = StreetAddress;\r\n this.State = State;\r\n this.MaxDistance = MaxDistance;\r\n this.MaxCollectionPoints = MaxCollectionPoints;\r\n }\r\n public getCacheKey = () => `GetStoreLocationCentiro`;\r\n public getCacheObjectType = () => 'GetStoreLocationCentiro';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\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 IGetStoreLocationCentiroData {\r\n collectionPoints: ICollectionPoint[];\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 GetStoreLocationCentiroInput();\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 getStoreLocationCentiroAction(\r\n input: GetStoreLocationCentiroInput,\r\n ctx: Msdyn365.IActionContext\r\n): Promise {\r\n if (!input.Networks || !input.MaxDistance || !input.MaxCollectionPoints) {\r\n return [];\r\n }\r\n\r\n const deliveryAddressCentiro: ICollectionPoints = await bSGetCollectionPointsAsync(\r\n { callerContext: ctx, queryResultSettings: {} },\r\n input\r\n );\r\n\r\n const collectionPoints = deliveryAddressCentiro.collectionPoints;\r\n const mappedCollection: IFullOrgUnitAvailabilityExtended[] | undefined = collectionPoints?.map((collectionPoint: ICollectionPoint) => {\r\n const addressLines = [\r\n `${collectionPoint.street} ${collectionPoint.houseNumber}`,\r\n `${collectionPoint.city} ${collectionPoint.zipCode}`,\r\n collectionPoint.country,\r\n collectionPoint.address2\r\n ]\r\n .filter(line => line && line.trim().length > 0)\r\n .join(', ');\r\n return {\r\n OrgUnitAvailability: {\r\n OrgUnitLocation: {\r\n // Contacts?: OrgUnitContact[],\r\n ChannelId: ctx.requestContext.channel?.RecordId,\r\n Latitude: collectionPoint.geoPoint?.latitude,\r\n Longitude: collectionPoint.geoPoint?.longitude,\r\n OrgUnitName: collectionPoint.name?.trim(),\r\n OrgUnitNumber: collectionPoint.name?.trim(),\r\n // Address: encodeURIComponent(\r\n // `${collectionPoint.city} ${collectionPoint.zipCode}, ${collectionPoint.country}, ${collectionPoint.address2} `\r\n // ),\r\n Address: addressLines,\r\n Street: collectionPoint.street?.trim(),\r\n StreetNumber: '',\r\n City: collectionPoint.city?.trim(),\r\n DistrictName: '',\r\n BuildingCompliment: '',\r\n Postbox: '',\r\n Zip: collectionPoint.zipCode?.trim(),\r\n County: '',\r\n CountyName: '',\r\n State: collectionPoint.state?.trim(),\r\n StateName: collectionPoint.state?.trim(),\r\n Country: 'DNK' || collectionPoint.country?.trim(),\r\n Distance: collectionPoint.distance,\r\n InventoryLocationId: '',\r\n InventorySiteId: '',\r\n // PostalAddressId: '',\r\n OpenFrom: 0,\r\n OpenTo: 0,\r\n // ExtensionProperties?: CommerceProperty[];\r\n ExternalId: collectionPoint.externalId\r\n }\r\n },\r\n openingHours: collectionPoint.openingHours\r\n };\r\n });\r\n return mappedCollection || [];\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >getStoreLocationCentiroAction,\r\n id: 'GetStoreLocationCentiro',\r\n input: createInput\r\n});\r\n","import {\r\n CacheType,\r\n createObservableDataAction,\r\n IAction,\r\n IActionContext,\r\n IActionInput,\r\n IAny,\r\n ICreateActionContext,\r\n IGeneric\r\n} from '@msdyn365-commerce/core';\r\nimport { OrgUnitLocationExtended } from './get-store-location-centiro.action';\r\n\r\nexport interface ICentiroDataAction {\r\n pickUpLocation?: OrgUnitLocationExtended;\r\n deliveryMode?: string;\r\n}\r\n\r\nexport class CentiroDataActionInput implements IActionInput {\r\n public getCacheKey = () => `CentiroDataAction`;\r\n public getCacheObjectType = () => 'CentiroDataAction';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nexport async function selectedModalAction(input: CentiroDataActionInput, ctx: IActionContext): Promise {\r\n return { pickUpLocation: undefined, deliveryMode: undefined };\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new CentiroDataActionInput();\r\n};\r\n\r\nexport default createObservableDataAction({\r\n action: >selectedModalAction,\r\n id: 'SetStoreLocationCentiro',\r\n input: createInput\r\n});\r\n","import * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport const getSecretValue = async (secretKey: string, baseUrl: string): Promise => {\r\n return Msdyn365.msdyn365Commerce.secretManager?.getSecretValue(secretKey, baseUrl).then(secretValue => {\r\n if (secretValue && !secretValue.error && secretValue.value !== '') {\r\n return secretValue.value;\r\n }\r\n return undefined;\r\n });\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\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport * as QueryString from 'querystring';\r\nimport jwtDecode, { JwtPayload } from 'jwt-decode';\r\nimport { getSecretValue } from '../shared/functions/get-secret';\r\n/**\r\n * UpdateB2cIdentity Input Action\r\n */\r\nexport class UpdateB2cIdentityInput implements Msdyn365.IActionInput {\r\n private _random: number;\r\n public token: string;\r\n public newEmailAddress: string;\r\n\r\n constructor(newEmailAddress: string, token: string) {\r\n this._random = Math.random();\r\n this.newEmailAddress = newEmailAddress;\r\n this.token = token;\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 = () => `UpdateB2cIdentity${this._random}`;\r\n public getCacheObjectType = () => 'UpdateB2cIdentity';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\nexport interface IUpdateB2cIdentityData {\r\n success: boolean;\r\n error?: {\r\n reason: 'duplicate' | 'invalid' | 'other';\r\n message: string;\r\n };\r\n data: any;\r\n}\r\n\r\n/**\r\n * Creates input from the postdata\r\n */\r\nconst createInput = (ctx: Msdyn365.ICreateActionContext): UpdateB2cIdentityInput => {\r\n let {\r\n requestContext: {\r\n user: { token },\r\n // eslint-disable-next-line prefer-const\r\n postBody\r\n }\r\n } = ctx;\r\n let email = '';\r\n // postBody of the context should contain token and email needed to communicate with Graph API\r\n if (postBody?.content) {\r\n const content = JSON.parse(postBody.content.toString()) as UpdateB2cIdentityInput;\r\n // prefer token explicitly passed in\r\n token = content.token;\r\n email = content.newEmailAddress;\r\n }\r\n return new UpdateB2cIdentityInput(email, token);\r\n};\r\n\r\ninterface TokenResponse {\r\n token_type: string;\r\n access_token: string;\r\n}\r\ninterface GraphResponse {\r\n error?: {\r\n code: string;\r\n /**\r\n * duplicate email = \"A conflicting object with one or more of the specified property values is present in the directory.\"\r\n * invalid email = \"One or more properties contains invalid values.\"\r\n */\r\n message: string;\r\n details?: {\r\n code: string; //ConflictingObjects === duplicate email\r\n message: string;\r\n }[];\r\n };\r\n}\r\n\r\nasync function action(input: UpdateB2cIdentityInput, ctx: Msdyn365.IActionContext): Promise {\r\n const {\r\n requestContext: {\r\n apiSettings: { baseUrl }\r\n }\r\n } = ctx;\r\n // decode token to extract guid that points to user in AAD B2C\r\n const decoded: JwtPayload = jwtDecode(input.token);\r\n\r\n // secrets stored in key vault\r\n const secretPromises = [\r\n getSecretValue('ecom-36954-my-account-tenantId', baseUrl),\r\n getSecretValue('ecom-36954-my-account-applicationId', baseUrl),\r\n getSecretValue('ecom-36954-my-account-secret', baseUrl)\r\n ];\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n return Promise.all(secretPromises)\r\n .then(secrets => {\r\n return Msdyn365.sendRequest(\r\n `https://login.microsoft.com/${secrets[0]}/oauth2/token`,\r\n 'post',\r\n QueryString.stringify({\r\n grant_type: 'client_credentials',\r\n client_id: secrets[1],\r\n client_secret: secrets[2],\r\n resource: 'https://graph.microsoft.com'\r\n })\r\n );\r\n })\r\n .then(tokenResponse => {\r\n const url = new URL(decoded.iss!);\r\n const issuerDomain = url.hostname.substring(0, url.hostname.indexOf('.'));\r\n return Msdyn365.sendRequest(\r\n `https://graph.microsoft.com/v1.0/users/${decoded.sub}`,\r\n 'patch',\r\n JSON.stringify({\r\n identities: [\r\n {\r\n signInType: 'emailAddress',\r\n issuer: `${issuerDomain}.onmicrosoft.com`,\r\n issuerAssignedId: input.newEmailAddress\r\n }\r\n ]\r\n }),\r\n {\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Authorization: `Bearer ${tokenResponse.data.access_token}`\r\n }\r\n }\r\n );\r\n })\r\n .then(graphResponse => {\r\n const result: IUpdateB2cIdentityData = {\r\n success: graphResponse.status >= 200 && graphResponse.status < 300,\r\n data: graphResponse.data\r\n };\r\n if (!result.success && graphResponse.data.error) {\r\n result.error = {\r\n message: graphResponse.data.error.message,\r\n reason:\r\n graphResponse.data.error.message.indexOf('conflicting') >= 0\r\n ? 'duplicate'\r\n : graphResponse.data.error.message.indexOf('invalid values') >= 0\r\n ? 'invalid'\r\n : 'other'\r\n };\r\n }\r\n return result;\r\n });\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'UpdateB2cIdentity',\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\n/* eslint-disable no-duplicate-imports */\r\nimport {\r\n CacheType,\r\n createObservableDataAction,\r\n getCatalogId,\r\n IAction,\r\n IActionContext,\r\n IActionInput,\r\n ICommerceApiSettings,\r\n ICreateActionContext,\r\n IRequestContext\r\n} from '@msdyn365-commerce/core';\r\nimport { ProductPrice, ProjectionDomain, SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\nimport {\r\n getActivePricesAsync,\r\n getAttributeValuesAsync,\r\n getByIdsAsync\r\n} from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\nimport {\r\n ArrayExtensions,\r\n generateCacheKey,\r\n generateImageUrl,\r\n getProductUrlSync,\r\n getSelectedProductIdFromActionInput,\r\n QueryResultSettingsProxy,\r\n removeDomainQspFromUrl\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\n\r\nimport { IPageSummaryData } from '@msdyn365-commerce-modules/page-summary';\r\nimport { IExtProductPageSummaryConfig } from './ext-product-page-summary.props.autogenerated';\r\n//import { getLocalizedStringsAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/StoreOperationsDataActions.g';\r\n\r\n/**\r\n * Product Page Summary Input.\r\n */\r\nexport class ProductPageSummaryInput implements IActionInput {\r\n public apiSettings: ICommerceApiSettings;\r\n\r\n public config: IExtProductPageSummaryConfig;\r\n\r\n public productId: number;\r\n\r\n public catalogId?: number;\r\n\r\n public constructor(\r\n config: IExtProductPageSummaryConfig,\r\n apiSettings: ICommerceApiSettings,\r\n productId: number,\r\n requestContext?: IRequestContext\r\n ) {\r\n this.config = config || {};\r\n this.apiSettings = apiSettings;\r\n this.productId = productId;\r\n\r\n if (requestContext) {\r\n this.catalogId = getCatalogId(requestContext);\r\n }\r\n }\r\n\r\n public getCacheObjectType = (): string => 'ProductPageSummary';\r\n\r\n public getCacheKey = (): string =>\r\n generateCacheKey(\r\n this.apiSettings,\r\n { key: 'Key', value: 'ProductPageSummary' },\r\n { key: 'Title', value: this.config.title },\r\n { key: 'ProductId', value: this.productId },\r\n { key: 'CatalogId', value: this.catalogId }\r\n );\r\n\r\n public dataCacheType = (): CacheType => 'application';\r\n}\r\n\r\nexport interface IProductPageSummary extends IPageSummaryData {\r\n price?: number;\r\n productId?: number;\r\n masterProductId?: number;\r\n productBrand?: string;\r\n category?: string;\r\n}\r\n\r\nconst createInput = (args: ICreateActionContext) => {\r\n const productId = getSelectedProductIdFromActionInput(args);\r\n\r\n if (productId) {\r\n return new ProductPageSummaryInput(\r\n args.config,\r\n args.requestContext.apiSettings,\r\n +productId,\r\n args.requestContext\r\n );\r\n }\r\n throw new Error('Unable to create ProductPageSummaryAction input, no productId found on module config or query');\r\n};\r\n\r\ninterface Attributes {\r\n brand?: string;\r\n category?: string;\r\n}\r\n\r\n// Checks product attributes for the presence of brand attribute to extract the brand name for product metadata\r\nconst getProductAttributes = async (\r\n context: IActionContext,\r\n recordId: number,\r\n channelId: number,\r\n catalogId: number\r\n): Promise => {\r\n const productAttributes = await getAttributeValuesAsync(\r\n {\r\n callerContext: context,\r\n queryResultSettings: QueryResultSettingsProxy.getPagingFromInputDataOrDefaultValue(context)\r\n },\r\n recordId,\r\n channelId,\r\n catalogId\r\n );\r\n const attributes: Attributes = {};\r\n for (const productAttribute of productAttributes) {\r\n if (productAttribute.Name === 'Brand') {\r\n attributes.brand = productAttribute.TextValue;\r\n } else if (productAttribute.Name === 'Category') {\r\n attributes.category = productAttribute.TextValue;\r\n }\r\n }\r\n\r\n return attributes;\r\n};\r\n\r\nconst action = async (input: ProductPageSummaryInput, context: IActionContext): Promise => {\r\n const { config, productId, apiSettings } = input;\r\n let simpleProductsData: SimpleProduct[] | undefined;\r\n try {\r\n simpleProductsData = ArrayExtensions.validValues(\r\n await getByIdsAsync(\r\n {\r\n callerContext: context,\r\n queryResultSettings: QueryResultSettingsProxy.getPagingFromInputDataOrDefaultValue(context)\r\n },\r\n apiSettings.channelId,\r\n [productId],\r\n null,\r\n input.catalogId ?? 0\r\n )\r\n );\r\n } catch {\r\n // Do nothing, if there's an error we fall back to values defined from config\r\n }\r\n if (ArrayExtensions.hasElements(simpleProductsData)) {\r\n const simpleProductData = simpleProductsData[0];\r\n let productUrl: string | undefined;\r\n try {\r\n productUrl = getProductUrlSync(simpleProductData, context);\r\n const canonicalDomain = context.requestContext.canonicalDomain;\r\n if (productUrl && canonicalDomain) {\r\n productUrl = `https://${canonicalDomain}/${context.requestContext.locale}${productUrl}`.toLocaleLowerCase();\r\n productUrl = removeDomainQspFromUrl(productUrl, context.requestContext);\r\n } else {\r\n productUrl = undefined;\r\n }\r\n } catch {\r\n productUrl = undefined;\r\n }\r\n\r\n let productBrand: string | undefined;\r\n let category: string | undefined;\r\n try {\r\n const attributes = await getProductAttributes(context, productId, apiSettings.channelId, input.catalogId ?? 0);\r\n productBrand = attributes.brand;\r\n //Gets the first category, which is the Bestseller category\r\n category = attributes.category?.split(';')[0];\r\n } catch (e) {\r\n productBrand = undefined;\r\n category = undefined;\r\n }\r\n\r\n let productPrice: number | undefined;\r\n try {\r\n const projectDomain: ProjectionDomain = {\r\n ChannelId: +context.requestContext.apiSettings.channelId,\r\n CatalogId: input.catalogId ?? 0\r\n };\r\n\r\n productPrice = await getActivePricesAsync(\r\n { callerContext: context, queryResultSettings: QueryResultSettingsProxy.getPagingFromInputDataOrDefaultValue(context) },\r\n projectDomain,\r\n [productId],\r\n new Date(),\r\n context.requestContext.user.customerAccountNumber,\r\n undefined,\r\n true\r\n ).then((productPrices: ProductPrice[]) => {\r\n if (!ArrayExtensions.hasElements(productPrices)) {\r\n throw new Error('[ExtProductPageSummaryAction]Invalid response received from getActivePricesAsync');\r\n }\r\n return productPrices[0].CustomerContextualPrice;\r\n });\r\n } catch {\r\n productPrice = undefined;\r\n }\r\n\r\n return {\r\n title: simpleProductData.Name,\r\n description: simpleProductData.Description,\r\n sharingImageUrl: generateImageUrl(simpleProductData.PrimaryImageUrl, apiSettings),\r\n canonicalUrl: productUrl,\r\n faviconUrl: config && config.faviconUrl,\r\n productId: parseInt(simpleProductData.ItemId ?? '', 10),\r\n price: productPrice ?? simpleProductData.AdjustedPrice,\r\n productBrand,\r\n category\r\n };\r\n\r\n // If the action fails fallback to values defined from config\r\n } else if (config) {\r\n return {\r\n title: config.title,\r\n description: config.description,\r\n sharingImageUrl: config.sharingImage && config.sharingImage.src,\r\n faviconUrl: config && config.faviconUrl\r\n };\r\n }\r\n return {};\r\n};\r\n\r\nexport default createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/page-summary/product-page-summary',\r\n action: >action,\r\n input: createInput\r\n});\r\n","/**\r\n * Centralised location for checkout generic data updates\r\n */\r\nimport { AffiliationLoyaltyTier } from '@msdyn365-commerce/retail-proxy';\r\n\r\ninterface AffiliationId {\r\n locale: string;\r\n affiliationId: number;\r\n}\r\ninterface LoyaltyTierIds {\r\n locale: string;\r\n loyaltyTierIds: string;\r\n}\r\n\r\n/**\r\n * Generates the affiliationloyaltytiers for the current locale\r\n * @param locale\r\n * @param affiliationId\r\n * @param loyaltyTierIds\r\n * @returns AffiliationLoyaltyTier[]\r\n */\r\nexport const getAffiliation = (\r\n locale: string,\r\n affiliationIds: AffiliationId[],\r\n loyaltyTiersIds: LoyaltyTierIds[]\r\n): AffiliationLoyaltyTier[] => {\r\n var affiliation: AffiliationLoyaltyTier[] = [];\r\n\r\n const affiliationId = affiliationIds?.find(item => {\r\n return item.locale === locale;\r\n })?.affiliationId;\r\n\r\n const loyaltyTiers = loyaltyTiersIds.find(item => {\r\n return item.locale === locale;\r\n })?.loyaltyTierIds;\r\n\r\n const loyaltyTierIds = loyaltyTiers?.split('|') ?? [];\r\n loyaltyTierIds.forEach(tier => {\r\n affiliation.push({\r\n AffiliationId: Number(affiliationId),\r\n LoyaltyTierId: Number(tier)\r\n });\r\n });\r\n\r\n return affiliation;\r\n};\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/get-media-locations-for-selected-variant.action';\n binding.dataActions[actionPath] = require('partner/actions/get-media-locations-for-selected-variant.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-price-for-selected-variant.action';\n binding.dataActions[actionPath] = require('partner/actions/get-price-for-selected-variant.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-store-location-centiro.action';\n binding.dataActions[actionPath] = require('partner/actions/get-store-location-centiro.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/store-centiro-location.action';\n binding.dataActions[actionPath] = require('partner/actions/store-centiro-location.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/update-b2c-identity.action';\n binding.dataActions[actionPath] = require('partner/actions/update-b2c-identity.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'modules/ext-product-page-summary/ext-product-page-summary.action';\n binding.dataActions[actionPath] = require('partner/modules/ext-product-page-summary/ext-product-page-summary.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":["MediaLocationsForSelectedVariantInput","constructor","productId","channelId","selectedProduct","catalogId","getCacheKey","getCacheObjectType","dataCacheType","this","createMediaLocationsForSelectedVariantInput","inputData","getSelectedProductIdFromActionInput","getCatalogId","requestContext","apiSettings","undefined","Error","async","getMediaLocationsForSelectedVariantAction","input","ctx","AsyncResult","resolve","then","activeProduct","selectedVariantInput","SelectedVariantInput","getSelectedVariant","productResult","_productResult$produc","productVariant","_ctx$requestContext$a","app","config","OmniChannelMedia","mediaLocationsInput","MediaLocationsInput","RecordId","getMediaLocationsForProductAction","getMediaLocationsAsync","callerContext","queryResultSettings","QueryResultSettingsProxy","getPagingFromInputDataOrDefaultValue","response","map","mediaLocation","_mediaLocation$Uri","Uri","generateImageUrl","AltText","Name","includes","catch","error","trace","telemetry","message","debug","getMediaLocationsForSelectedVariantActionDataAction","createObservableDataAction","id","action","FeatureStateInput","featureNames","getFeatureStateActionDataAction","StoreOperationsDataActions","PriceForSelectedVariantInput","customerId","createActivePriceForSelectedVariantInput","getPriceForSelectedVariantAction","Promise","Msdyn365","projectDomain","ChannelId","CatalogId","affiliation","getAffiliation","locale","affiliationIds","loyaltyTierIds","_featureStates$find","_featureStates$find2","featureStates","getActivePricesAsync","Date","find","featureState","IsEnabled","ProductTypeValue","ProductType","Master","KitMaster","productPrices","ArrayExtensions","hasElements","exception","GetStoreLocationCentiroInput","CountryISOCode","City","PostalCode","Networks","StreetAddress","State","MaxDistance","MaxCollectionPoints","collectionPoints","bSGetCollectionPointsAsync","collectionPoint","_ctx$requestContext$c","_collectionPoint$geoP","_collectionPoint$geoP2","_collectionPoint$name","_collectionPoint$name2","_collectionPoint$stre","_collectionPoint$city","_collectionPoint$zipC","_collectionPoint$stat","_collectionPoint$stat2","addressLines","street","houseNumber","city","zipCode","country","address2","filter","line","trim","length","join","OrgUnitAvailability","OrgUnitLocation","channel","Latitude","geoPoint","latitude","Longitude","longitude","OrgUnitName","name","OrgUnitNumber","Address","Street","StreetNumber","DistrictName","BuildingCompliment","Postbox","Zip","County","CountyName","state","StateName","Country","Distance","distance","InventoryLocationId","InventorySiteId","OpenFrom","OpenTo","ExternalId","externalId","openingHours","args","CentiroDataActionInput","selectedModalAction","pickUpLocation","deliveryMode","getSecretValue","secretKey","baseUrl","_Msdyn365$msdyn365Com","secretManager","secretValue","value","UpdateB2cIdentityInput","newEmailAddress","token","_random","Math","random","decoded","jwtDecode","secretPromises","all","secrets","QueryString","grant_type","client_id","client_secret","resource","tokenResponse","url","URL","iss","issuerDomain","hostname","substring","indexOf","sub","JSON","stringify","identities","signInType","issuer","issuerAssignedId","headers","Authorization","data","access_token","graphResponse","result","success","status","reason","user","postBody","email","content","parse","toString","ProductPageSummaryInput","generateCacheKey","key","title","context","simpleProductsData","_input$catalogId","validValues","getByIdsAsync","_unused","_simpleProductData$It","_productPrice","simpleProductData","productUrl","productBrand","category","productPrice","getProductUrlSync","canonicalDomain","toLocaleLowerCase","removeDomainQspFromUrl","_unused2","_input$catalogId2","_attributes$category","attributes","recordId","productAttributes","getAttributeValuesAsync","productAttribute","brand","TextValue","getProductAttributes","split","e","_input$catalogId3","customerAccountNumber","CustomerContextualPrice","_unused3","description","Description","sharingImageUrl","PrimaryImageUrl","canonicalUrl","faviconUrl","parseInt","ItemId","price","AdjustedPrice","sharingImage","src","loyaltyTiersIds","_affiliationIds$find","_loyaltyTiersIds$find","_loyaltyTiers$split","affiliationId","item","loyaltyTiers","forEach","tier","push","AffiliationId","Number","LoyaltyTierId","binding","modules","dataActions","registerActionId","actionPath","default","prototype","Object","keys","exportName","Action","require","window","__bindings__","_objectSpread","packageDataActions","module","exports","React","ReactDOM"],"sourceRoot":""}