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AM4H,EAAU,CAAEC,QAAS,GAAIC,YAAa,IAElCC,EAAoBC,IAClBJ,EAAQE,YAAYE,IACpBJ,EAAQE,YAAYE,GAAYC,SAChCL,EAAQE,YAAYE,GAAYC,QAAQC,WACxCN,EAAQE,YAAYE,GAAYC,QAAQC,UAAU/H,GAClDyH,EAAQE,YAAYF,EAAQE,YAAYE,GAAYC,QAAQC,UAAU/H,IAAMyH,EAAQE,YAAYE,GAEhGG,OAAOC,KAAKR,EAAQE,YAAYE,IAAe,IAAIK,SAAQC,IACnDV,EAAQE,YAAYE,GAAYM,IAChCV,EAAQE,YAAYE,GAAYM,GAAYJ,WAC5CN,EAAQE,YAAYE,GAAYM,GAAYJ,UAAUK,SACtDX,EAAQE,YAAYF,EAAQE,YAAYE,GAAYM,GAAYJ,UAAU/H,IAAMyH,EAAQE,YAAYE,GAAYM,QA2B5H,CACI,MAAMN,EAAa,0BACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,MAC1CT,EAAiBC,GAGrB,CACI,MAAMA,EAAa,2CACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,MAC1CT,EAAiBC,GAGrB,CACI,MAAMA,EAAa,2CACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,KAC1CT,EAAiBC,GAGrB,CACI,MAAMA,EAAa,sCACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,MAC1CT,EAAiBC,GAIzBS,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAOzI,EAAAA,EAAA,GACpBqJ,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaC,mBAAqB,GACzCF,OAAOC,aAAaC,mBAA8B,UAACvJ,EAAA,GAC5CwI,EAAQE,iCCzEvBc,EAAOC,QAAUC,2BCAjBF,EAAOC,QAAUE","sources":["webpack://Msdyn365.Commerce.Online/./src/actions/checkout.action.ts?d655","webpack://Msdyn365.Commerce.Online/./src/actions/get-active-image-products.action.ts?61fa","webpack://Msdyn365.Commerce.Online/./src/actions/DataServiceEntities.g.ts?6c17","webpack://Msdyn365.Commerce.Online/./src/actions/DataActionExtension.g.ts?ff78","webpack://Msdyn365.Commerce.Online/./src/actions/get-nutritional-table-cap.action.ts?8d08","webpack://Msdyn365.Commerce.Online/./src/actions/product-page-summary.action.ts?d133","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.\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 IHTTPRequestOptions,\r\n IHTTPResponse,\r\n sendCommerceRequest\r\n} from '@msdyn365-commerce/core';\r\nimport { Address, CartTenderLine, SalesOrder } from '@msdyn365-commerce/retail-proxy';\r\n\r\n/**\r\n * Check Out action Input.\r\n */\r\nexport class CheckOutInput implements IActionInput {\r\n public cartId: string;\r\n\r\n public cartVersion: number;\r\n\r\n public receiptEmail?: string;\r\n\r\n public cartTenderLines?: CartTenderLine[];\r\n\r\n public billingAddress?: Address;\r\n\r\n constructor(cartId: string, cartVersion: number, receiptEmail?: string, cartTenderLines?: CartTenderLine[], billingAddress?: Address) {\r\n this.cartId = cartId;\r\n this.cartVersion = cartVersion;\r\n this.receiptEmail = receiptEmail;\r\n this.cartTenderLines = cartTenderLines;\r\n this.billingAddress = billingAddress;\r\n }\r\n\r\n public getCacheKey = () => `${this.cartId}-${this.cartVersion}`;\r\n\r\n public getCacheObjectType = () => 'CheckOut';\r\n\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\n/**\r\n * Calls the Retail API to check out and returns sales order.\r\n * @param input\r\n * @param ctx\r\n */\r\nexport async function checkOutAction(input: CheckOutInput, ctx: IActionContext): Promise {\r\n const { apiSettings } = ctx.requestContext;\r\n const requestUrl = `${apiSettings.baseUrl}Commerce/Carts('${input.cartId}')/Checkout?api-version=7.3`;\r\n const requestOptions: IHTTPRequestOptions = {\r\n headers: {\r\n oun: apiSettings.oun,\r\n 'Content-Type': 'application/json'\r\n }\r\n };\r\n\r\n if (requestOptions.headers && ctx.requestContext.user.token) {\r\n requestOptions.headers.Authorization = `id_token ${ctx.requestContext.user.token}`;\r\n }\r\n\r\n if (input.cartTenderLines && input.cartTenderLines.length > 0) {\r\n input.cartTenderLines = input.cartTenderLines.map((cartTenderLineItem: CartTenderLine) => {\r\n cartTenderLineItem['@odata.type'] = '#Microsoft.Dynamics.Commerce.Runtime.DataModel.CartTenderLine';\r\n\r\n cartTenderLineItem['Amount@odata.type'] = '#Decimal';\r\n\r\n if (cartTenderLineItem.TokenizedPaymentCard) {\r\n cartTenderLineItem.TokenizedPaymentCard['@odata.type'] =\r\n '#Microsoft.Dynamics.Commerce.Runtime.DataModel.TokenizedPaymentCard';\r\n\r\n // Force the House prop to be set, so that call succeeds\r\n if (!cartTenderLineItem.TokenizedPaymentCard.House) {\r\n cartTenderLineItem.TokenizedPaymentCard.House = 'N/A';\r\n }\r\n\r\n if (cartTenderLineItem.TokenizedPaymentCard.CardTokenInfo) {\r\n cartTenderLineItem.TokenizedPaymentCard.CardTokenInfo['@odata.type'] =\r\n '#Microsoft.Dynamics.Commerce.Runtime.DataModel.CardTokenInfo';\r\n }\r\n\r\n if (input.billingAddress) {\r\n const { Phone, ThreeLetterISORegionName = '', Street, City, State, ZipCode } = input.billingAddress;\r\n cartTenderLineItem.TokenizedPaymentCard = {\r\n ...cartTenderLineItem.TokenizedPaymentCard,\r\n Phone,\r\n Country: ThreeLetterISORegionName.toUpperCase(),\r\n Address1: Street,\r\n City,\r\n State,\r\n Zip: ZipCode\r\n };\r\n }\r\n }\r\n\r\n return cartTenderLineItem;\r\n });\r\n }\r\n\r\n const requestBody = {\r\n recaptchaToken: '1234',\r\n receiptEmail: input.receiptEmail,\r\n cartVersion: input.cartVersion || null,\r\n ...(input.cartTenderLines && { cartTenderLines: input.cartTenderLines })\r\n };\r\n\r\n // Perform check-out operation\r\n return sendCommerceRequest(requestUrl, 'post', requestBody, requestOptions).then((response: IHTTPResponse) => {\r\n if (response.status >= 200 && response.status < 300 && response.data) {\r\n return response.data;\r\n } else if (response.data) {\r\n throw response.data;\r\n }\r\n throw new Error('[checkOutAction] Invalid response recieved from RetailServer');\r\n });\r\n}\r\n\r\nexport const checkOutActionDataAction = createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/retail-actions/checkout',\r\n action: >checkOutAction\r\n});\r\nexport default checkOutActionDataAction;\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 getCatalogId,\r\n IAction,\r\n IActionContext,\r\n IActionInput,\r\n ICreateActionContext\r\n} from '@msdyn365-commerce/core';\r\nimport { ProductLookupClause, ProductsDataActions, ProductSearchCriteria, ProductSearchResult } from '@msdyn365-commerce/retail-proxy';\r\nimport { ArrayExtensions } from '@msdyn365-commerce-modules/retail-actions';\r\n\r\nimport { IActiveImageConfig, IActivePointsData } from '@msdyn365-commerce-modules/active-image/src/modules/active-image';\r\n\r\n/**\r\n * ActiveImageInput.\r\n */\r\n\r\nexport class ActiveImageInput implements IActionInput {\r\n public config: IActiveImageConfig;\r\n\r\n private readonly _cacheKey: string = 'ActiveImage';\r\n\r\n public constructor(config: IActiveImageConfig) {\r\n this.config = config;\r\n\r\n if (this.config.activePoints && ArrayExtensions.hasElements(this.config.activePoints)) {\r\n for (const activePointData of this.config.activePoints) {\r\n if (activePointData.itemId) {\r\n this._cacheKey = `${this._cacheKey}-${activePointData.itemId.toString()}`;\r\n }\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * GetCacheObjectType.\r\n * @returns - Returns string.\r\n */\r\n public getCacheObjectType = (): string => 'ActiveImageFullProductSearchResult';\r\n\r\n /**\r\n * GetCacheKey.\r\n * @returns - Returns string.\r\n */\r\n public getCacheKey = (): string => this._cacheKey;\r\n\r\n /**\r\n * DataCacheType.\r\n * @returns - CacheType string.\r\n */\r\n //public dataCacheType = (): CacheType => 'application';\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\n/**\r\n * CreateInput.\r\n * @param inputData - IActionContext.\r\n * @returns - IActionInput.\r\n */\r\nexport const createInput = (inputData: ICreateActionContext): IActionInput => {\r\n return new ActiveImageInput(inputData.config as IActiveImageConfig);\r\n};\r\n\r\n/**\r\n * Action.\r\n * @param input - ActiveImageInput.\r\n * @param context - IActionContext.\r\n * @returns - ProductSearchResult[].\r\n */\r\nexport const getActiveImageproductAction = async (input: ActiveImageInput, context: IActionContext): Promise => {\r\n const { config } = input;\r\n const itemIds: ProductLookupClause[] = [];\r\n const ids: number[] = [];\r\n if (config.activePoints) {\r\n config.activePoints.map(\r\n (activePointData: IActivePointsData) => !isNaN(Number(activePointData.itemId)) && ids.push(Number(activePointData.itemId))\r\n );\r\n }\r\n if (config.activePoints) {\r\n config.activePoints.map(\r\n (activePointData: IActivePointsData) =>\r\n isNaN(Number(activePointData.itemId)) && itemIds.push({ ItemId: activePointData.itemId })\r\n );\r\n }\r\n const searchCriteriaInput: ProductSearchCriteria = {};\r\n searchCriteriaInput.Context = {\r\n ChannelId: context.requestContext.apiSettings.channelId,\r\n CatalogId: getCatalogId(context.requestContext)\r\n };\r\n searchCriteriaInput.IncludeAttributes = true;\r\n // searchCriteriaInput.Ids = ids;\r\n // searchCriteriaInput.ItemIds = itemIds;\r\n if (!config.activePoints || !ArrayExtensions.hasElements(config.activePoints)) {\r\n throw new Error('Fail to call ActiveImage API no active points configured.');\r\n }\r\n const searchCriteriaInputById = {\r\n ...searchCriteriaInput,\r\n Ids: ids\r\n };\r\n const searchCriteriaInputByItemId = {\r\n ...searchCriteriaInput,\r\n ItemIds: itemIds\r\n };\r\n // eslint-disable-next-line no-return-await -- Disable because we want to return the promise.\r\n const searchById =\r\n ids.length > 0 ? await ProductsDataActions.searchByCriteriaAsync({ callerContext: context }, searchCriteriaInputById) : [];\r\n const searchByItemId =\r\n itemIds.length > 0 ? await ProductsDataActions.searchByCriteriaAsync({ callerContext: context }, searchCriteriaInputByItemId) : [];\r\n return [...searchById, ...searchByItemId];\r\n};\r\n\r\n/**\r\n * Action.\r\n * @param id - Id.\r\n * @param action - Action.\r\n * @returns - Results.\r\n */\r\nexport const actionDataAction = createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/active-image/get-active-image-products',\r\n action: getActiveImageproductAction as IAction,\r\n input: createInput\r\n});\r\n\r\nexport default actionDataAction;\r\n","// tslint:disable\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\n/**\r\n * NutritionalValue_CAP entity interface.\r\n */\r\nexport interface INutritionalValue_CAP {\r\n DataAreaId?: string;\r\n TableNumber: number;\r\n SortNumber: number;\r\n Text: number;\r\n TableField?: string;\r\n Indentation: number;\r\n CharDimension: number;\r\n Bold: number;\r\n Italics: number;\r\n Id: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * NutritionalValue_CAP entity class.\r\n */\r\nexport class NutritionalValue_CAPExtensionClass implements INutritionalValue_CAP {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DataAreaId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TableNumber: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SortNumber: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Text: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TableField: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Indentation: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CharDimension: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Bold: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Italics: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Id: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DataAreaId = odataObject.DataAreaId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TableNumber = odataObject.TableNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SortNumber = odataObject.SortNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Text = odataObject.Text;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TableField = odataObject.TableField;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Indentation = odataObject.Indentation;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CharDimension = odataObject.CharDimension;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Bold = odataObject.Bold;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Italics = odataObject.Italics;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Id = odataObject.Id ? parseInt(odataObject.Id, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\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 * THIS FILE IS AN AUTOGENERATED TYPESCRIPT PROXY EXTENSION.\r\n * TO USE THIS FILE, IT MUST BE ADDED TO A D365COMMERCE APPLICATION\r\n */\r\n// tslint:disable\r\nimport {\r\n AsyncResult,\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings\r\n} from '@msdyn365-commerce/retail-proxy';\r\n// @ts-ignore\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as DataServiceEntities from './DataServiceEntities.g';\r\n\r\n// @ts-ignore\r\nfunction nutritionalValue_CAPQuery(id?: number): DataServiceQuery {\r\n const key = id ? { Id: id } : null;\r\n return new DataServiceQuery(\r\n 'NutritionalValue_CAP',\r\n 'NutritionalValue_CAP',\r\n DataServiceEntities.NutritionalValue_CAPExtensionClass,\r\n key\r\n );\r\n}\r\n\r\nexport function createGetRetailParametersExt_CAPInput(queryResultSettings: IQueryResultSettings): IDataServiceRequest {\r\n const query = nutritionalValue_CAPQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetRetailParametersExt_CAP',\r\n true,\r\n DataServiceEntities.NutritionalValue_CAPExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.INutritionalValue_CAP' },\r\n {}\r\n );\r\n}\r\n\r\nexport function getRetailParametersExt_CAPAsync(context: IContext): AsyncResult {\r\n const request = createGetRetailParametersExt_CAPInput(context.queryResultSettings || {});\r\n return callActionOrExecute(request, context.callerContext);\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 { getRetailParametersExt_CAPAsync } from './DataActionExtension.g';\r\nimport { INutritionalValue_CAP } from './DataServiceEntities.g';\r\n/**\r\n * GetServiceTableCap Input Action\r\n */\r\nexport class GetNutritionalTableCapInput 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 = () => `TODO`;\r\n public getCacheObjectType = () => 'TODO';\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 IGetNutritionalTableCapData {\r\n nutritionalTable: INutritionalValue_CAP[];\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 GetNutritionalTableCapInput();\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: GetNutritionalTableCapInput, ctx: Msdyn365.IActionContext): Promise {\r\n const response = await getRetailParametersExt_CAPAsync({ callerContext: ctx });\r\n return response;\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: 'GetServiceTableCap',\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. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\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 { SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\nimport { getAttributeValuesAsync, getByIdsAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\nimport {\r\n ArrayExtensions,\r\n buildCacheKey,\r\n generateImageUrl,\r\n getProductUrlSync,\r\n getSelectedProductIdFromActionInput,\r\n QueryResultSettingsProxy\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\n\r\nimport { IPageSummaryData, IProductPageSummaryConfig } from '@msdyn365-commerce-modules/page-summary';\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: IProductPageSummaryConfig;\r\n\r\n public productId: number;\r\n\r\n public catalogId?: number;\r\n\r\n public constructor(\r\n config: IProductPageSummaryConfig,\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 `${buildCacheKey('ProductPageSummary', this.apiSettings)}-${this.config.title}-${this.productId}-${this.catalogId ?? 0}`;\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 | string;\r\n productBrand?: 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\n// Checks product attributes for the presence of brand attribute to extract the brand name for product metadata\r\nconst getProductBrand = 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 for (const productAttribute of productAttributes) {\r\n if (productAttribute.Name === 'Brand') {\r\n return productAttribute.TextValue;\r\n }\r\n }\r\n return;\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 let extraProductData;\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 try {\r\n extraProductData = await getAttributeValuesAsync(\r\n { callerContext: context, queryResultSettings: {} },\r\n productId,\r\n context.requestContext.apiSettings.channelId,\r\n context.requestContext.apiSettings.catalogId\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}${productUrl}`.toLocaleLowerCase();\r\n } else {\r\n productUrl = undefined;\r\n }\r\n } catch {\r\n productUrl = undefined;\r\n }\r\n let productBrand: string | undefined;\r\n try {\r\n productBrand = await getProductBrand(context, productId, apiSettings.channelId, input.catalogId ?? 0);\r\n } catch {\r\n productBrand = undefined;\r\n }\r\n\r\n const customMetaDesc = extraProductData?.filter(product => product.Name === 'Product meta description')[0]?.TextValue;\r\n\r\n const customTitle = extraProductData?.filter(product => product.Name === 'Product title')[0]?.TextValue;\r\n\r\n return {\r\n title: customTitle && customTitle !== null && customTitle !== '' ? customTitle : simpleProductData.Name,\r\n description:\r\n customMetaDesc && customMetaDesc !== null && customMetaDesc !== '' ? customMetaDesc : simpleProductData.Description,\r\n sharingImageUrl: generateImageUrl(simpleProductData.PrimaryImageUrl, apiSettings),\r\n canonicalUrl: productUrl,\r\n faviconUrl: config && config.faviconUrl,\r\n productId: simpleProductData.ItemId,\r\n price: simpleProductData.AdjustedPrice,\r\n productBrand\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","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/checkout.action';\n binding.dataActions[actionPath] = require('partner/actions/checkout.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-active-image-products.action';\n binding.dataActions[actionPath] = require('partner/actions/get-active-image-products.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/get-nutritional-table-cap.action';\n binding.dataActions[actionPath] = require('partner/actions/get-nutritional-table-cap.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/product-page-summary.action';\n binding.dataActions[actionPath] = require('partner/actions/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":["CheckOutInput","constructor","cartId","cartVersion","receiptEmail","cartTenderLines","billingAddress","getCacheKey","this","getCacheObjectType","dataCacheType","async","checkOutAction","input","ctx","apiSettings","requestContext","requestUrl","baseUrl","requestOptions","headers","oun","user","token","Authorization","length","map","cartTenderLineItem","TokenizedPaymentCard","House","CardTokenInfo","Phone","ThreeLetterISORegionName","Street","City","State","ZipCode","_objectSpread","Country","toUpperCase","Address1","Zip","requestBody","recaptchaToken","sendCommerceRequest","then","response","status","data","Error","checkOutActionDataAction","createObservableDataAction","id","action","ActiveImageInput","config","_cacheKey","activePoints","ArrayExtensions","hasElements","activePointData","itemId","toString","createInput","inputData","getActiveImageproductAction","context","itemIds","ids","isNaN","Number","push","ItemId","searchCriteriaInput","Context","ChannelId","channelId","CatalogId","getCatalogId","IncludeAttributes","searchCriteriaInputById","Ids","searchCriteriaInputByItemId","ItemIds","ProductsDataActions","callerContext","actionDataAction","NutritionalValue_CAPExtensionClass","odataObject","DataAreaId","TableNumber","SortNumber","Text","TableField","Indentation","CharDimension","Bold","Italics","Id","parseInt","ExtensionProperties","undefined","i","className","substr","lastIndexOf","concat","EntityClasses","createGetRetailParametersExt_CAPInput","queryResultSettings","key","DataServiceQuery","DataServiceEntities","nutritionalValue_CAPQuery","resultSettings","createDataServiceRequestForOperation","bypassCache","returnEntity","GetNutritionalTableCapInput","Msdyn365","request","callActionOrExecute","getRetailParametersExt_CAPAsync","args","ProductPageSummaryInput","productId","_this$catalogId","buildCacheKey","title","catalogId","simpleProductsData","extraProductData","_input$catalogId","validValues","getByIdsAsync","QueryResultSettingsProxy","getPagingFromInputDataOrDefaultValue","_unused","getAttributeValuesAsync","_unused2","_extraProductData","_extraProductData2","simpleProductData","productUrl","productBrand","getProductUrlSync","canonicalDomain","toLocaleLowerCase","_unused3","_input$catalogId2","recordId","productAttributes","productAttribute","Name","TextValue","getProductBrand","_unused4","customMetaDesc","filter","product","customTitle","description","Description","sharingImageUrl","generateImageUrl","PrimaryImageUrl","canonicalUrl","faviconUrl","price","AdjustedPrice","sharingImage","src","getSelectedProductIdFromActionInput","binding","modules","dataActions","registerActionId","actionPath","default","prototype","Object","keys","forEach","exportName","Action","require","window","__bindings__","packageDataActions","module","exports","React","ReactDOM"],"sourceRoot":""}