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tX,gBAGZ,OAAO0X,EAAAA,EAAAA,oBAAmBF,EAAsBF,GAGpD,OAAOC,KAEVtR,MAA+B0R,IAC5B,MAAMJ,EAAsEI,EAE5E,OAAIJ,EACOK,EAAAA,oBAAAA,wBACH,CACIpS,cAAe8R,EACf7R,oBAAqBoS,EAAAA,yBAAyBC,qCAAqCR,IAEvFC,EAAcpP,SACdvI,EAAMsF,UACNtF,EAAMsL,WAIP,QAEVjF,MAAKtG,MAAAA,IAKK,CAAEoY,gBAAAA,EAAiBC,oCAJkBC,EAAAA,2BAAAA,+BAA0D,CAClGzS,cAAe8R,QAKtBrR,MAAK6Q,IACKoB,EAAAA,EAAAA,mCAAkCpB,EAAOiB,gBAAiBjB,EAAOkB,iCAE3EvP,OAAO5H,IAEJ,MADAyW,EAAQa,MAAMtX,EAAMuX,SACd,IAAIvW,MAAM,+DAI5B,SAAe+G,EAAAA,EAAAA,IAA2B,CACtClH,GAAI,8EACJhC,OAAmC2X,EACnCzX,MAAOuL,wBC/HXkN,EAAOC,QAAUpI,2BCAjBmI,EAAOC,QAAUC","sources":["webpack://mattressfirm/./src/Utilities/emtpyChecker.ts?e2f5","webpack://mattressfirm/./src/Utilities/get-html-parser-value.ts?1fb6","webpack://mattressfirm/./src/actions/bedhub-header.action.ts?b6f2","webpack://mattressfirm/./src/actions/checkout-delivery-fee-state-action.ts?d18b","webpack://mattressfirm/./src/actions/express-edit-state.action.ts?e40f","webpack://mattressfirm/./src/actions/express-order-submit-state.action.ts?3687","webpack://mattressfirm/./src/actions/get-delivery-fee-update.action.ts?8fde","webpack://mattressfirm/./src/actions/get-recycle-fee-checkout.action.ts?9366","webpack://mattressfirm/./src/actions/payment-redirect-to-order-confirmation.action.ts?c6dc","webpack://mattressfirm/./src/actions/paypalexpress-tryagain-trigger.action.ts?df08","webpack://mattressfirm/./src/actions/paypalsuccesstrigger.action.ts?ccb0","webpack://mattressfirm/./src/actions/progressive-actions/Progressive-address-mismatch.action.ts?56e7","webpack://mattressfirm/./src/actions/progressive-actions/progressive-set-lease-lookup-info.action.ts?5ac5","webpack://mattressfirm/./src/actions/progressive-actions/progressive-set-pricing-info.action.ts?7c03","webpack://mattressfirm/./src/actions/showloading-continuetodelivery.action.ts?daa8","webpack://mattressfirm/./src/actions/srp-breadcrumb-page.action.ts?4397","webpack://mattressfirm/./src/data-actions/atp-slots-information-state.action.ts?6f2e","webpack://mattressfirm/./src/data-actions/buybox-get-dimension-pricing-action.ts?1fcd","webpack://mattressfirm/./src/data-actions/buybox-get-dimension-variants-availability-action.ts?fbe8","webpack://mattressfirm/./src/data-actions/checkout-skeleton.action.ts?78fb","webpack://mattressfirm/./src/data-actions/checkout-zipcode-update-validity-action.ts?6f35","webpack://mattressfirm/./src/data-actions/continue-to-payment-state-action.ts?3943","webpack://mattressfirm/./src/data-actions/get-atp-dynamic-response.ts?dd97","webpack://mattressfirm/./src/data-actions/get-product-attributes-cartlines.ts?b10f","webpack://mattressfirm/./src/data-actions/mfrm-checkout-stepper-state-action.ts?cd14","webpack://mattressfirm/./src/data-actions/navigation-menu-state-data-action.ts?8ae5","webpack://mattressfirm/./src/data-actions/payment-cc-card-types.action.ts?37d5","webpack://mattressfirm/./src/data-actions/payment-error-state.action.ts?5f0f","webpack://mattressfirm/./src/data-actions/progressive-leasing-modal-state.action.ts?5447","webpack://mattressfirm/./src/data-actions/store-selector-state-data-action.ts?6df6","webpack://mattressfirm/./src/data-actions/toggle-submit-order-button.action.ts?9a11","webpack://mattressfirm/./src/modules/mfrm-search-result-container/list-page-state.ts?a8cb","webpack://mattressfirm/./src/themes/mattressfirm/mattressfirm.tsx?70bc","webpack://mattressfirm/./lib/mattressfirm/module-registration.js?cc13","webpack://mattressfirm/./src/store-selector-state-manager/base-store-selector-state-manager.ts?281e","webpack://mattressfirm/./src/store-selector-state-manager/map-store-selector-state-manager.ts?2ae0","webpack://mattressfirm/./src/store-selector-state-manager/store-selector-state-manager-data-action.ts?bd3e","webpack://mattressfirm/./src/dataActions/get-attributes-for-selected-variant.ts?e4b6","webpack://mattressfirm/external var \"React\"?0d3b","webpack://mattressfirm/external var \"ReactDOM\"?853b"],"sourcesContent":["// tslint:disable\r\nexport const hasArray = (values: any): any[] | undefined => {\r\n return (typeof values !== 'string') && values && values.length ? values : undefined;\r\n};","import ReactHtmlParser from 'react-html-parser';\r\n\r\nconst getHtmlParserValue = (value?: string) => {\r\n let parsedValue = '';\r\n const parsedArr = value && ReactHtmlParser(value);\r\n if (parsedArr && parsedArr?.length > 0) {\r\n parsedValue = parsedArr[0] ? parsedArr[0].toString() : '';\r\n }\r\n return parsedValue;\r\n};\r\n\r\nexport default getHtmlParserValue;","/*!\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 axios from 'axios';\r\n/**\r\n * BedhubHeaderDataAction Input Action\r\n */\r\nexport class BedhubHeaderInput implements Msdyn365.IActionInput {\r\n constructor() { }\r\n public getCacheKey = () => 'BedhubHeader';\r\n public getCacheObjectType = () => 'BedhubHeader';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext>): Msdyn365.IActionInput => {\r\n // Ensure Bedhub API is Enable\r\n if (args.config && !args.config.bedhubDataSource) {\r\n throw new Error('Cant call BEDHUB API, as its turn off');\r\n } else {\r\n return new BedhubHeaderInput();\r\n }\r\n};\r\n\r\nasync function getAccessToken(baseURL: string, ctx: Msdyn365.IRequestContext) {\r\n const clientId: Msdyn365.ISecretValue | undefined = await Msdyn365.msdyn365Commerce.secretManager?.getSecretValue(\r\n 'bh-client-id',\r\n ctx.apiSettings.baseUrl\r\n );\r\n const clientSecret: Msdyn365.ISecretValue | undefined = await Msdyn365.msdyn365Commerce.secretManager?.getSecretValue(\r\n 'bh-client-secret',\r\n ctx.apiSettings.baseUrl\r\n );\r\n const tenant: Msdyn365.ISecretValue | undefined = await Msdyn365.msdyn365Commerce.secretManager?.getSecretValue(\r\n 'bh-tenant-id',\r\n ctx.apiSettings.baseUrl\r\n );\r\n\r\n if (process.env.CURRENT_ENVIRONMENT === 'node') {\r\n const msalConfig = {\r\n auth: {\r\n authority: new URL(tenant?.value ?? '', 'https://login.microsoftonline.com').href,\r\n clientId: clientId?.value ?? '',\r\n clientSecret: clientSecret?.value ?? '',\r\n tenantId: tenant?.value ?? ''\r\n }\r\n };\r\n // eslint-disable-next-line @typescript-eslint/no-require-imports\r\n const ConfidentialClientApplication = require('@azure/msal-node').ConfidentialClientApplication;\r\n\r\n const msalInstance = new ConfidentialClientApplication(msalConfig);\r\n const token = await msalInstance.acquireTokenByClientCredential({ scopes: [new URL('.default', baseURL).href] });\r\n return token?.accessToken;\r\n }\r\n return '';\r\n}\r\nasync function getBedhubHeaderData(input: BedhubHeaderInput, ctx: Msdyn365.IActionContext): Promise {\r\n const baseURL = ctx?.requestContext?.app?.config?.bedhubBaseUrl;\r\n let token = '';\r\n try {\r\n token = await getAccessToken(baseURL, ctx.requestContext);\r\n } catch (error) {\r\n console.error('error for getting bedhub authorization token [getAccessToken]', error);\r\n }\r\n const graphqlURL = new URL('graphql', baseURL).href;\r\n\r\n try {\r\n // Query to get the GRAPHQL Data\r\n const query = `\r\n {\r\n ui {\r\n header {\r\n account {\r\n myAccount {\r\n ariaLabel\r\n label\r\n type\r\n url\r\n }\r\n signIn {\r\n ariaLabel\r\n label\r\n type\r\n url\r\n }\r\n signOut {\r\n ariaLabel\r\n label\r\n type\r\n url\r\n }\r\n signUp {\r\n ariaLabel\r\n label\r\n type\r\n url\r\n }\r\n }\r\n accountMenu {\r\n url\r\n type\r\n signedIn\r\n label\r\n ariaLabel\r\n callout\r\n }\r\n search {\r\n icon {\r\n url\r\n }\r\n placeholder\r\n url\r\n }\r\n actions {\r\n image {\r\n url\r\n }\r\n label\r\n mobile\r\n desktop\r\n type\r\n url\r\n beforeLogo\r\n ariaLabel\r\n }\r\n }\r\n navbar {\r\n products {\r\n ... on UIProductMenu {\r\n __typename\r\n action {\r\n ariaLabel\r\n label\r\n type\r\n url\r\n }\r\n badge {\r\n label\r\n type\r\n }\r\n callout\r\n categories {\r\n label\r\n items {\r\n ariaLabel\r\n image {\r\n url\r\n }\r\n label\r\n type\r\n url\r\n }\r\n accordion {\r\n less {\r\n ariaLabel\r\n label\r\n }\r\n maximum\r\n more {\r\n ariaLabel\r\n label\r\n }\r\n }\r\n }\r\n label\r\n promotion {\r\n ariaLabel\r\n image {\r\n url\r\n }\r\n label\r\n type\r\n url\r\n }\r\n subcategories {\r\n items {\r\n ariaLabel\r\n badge {\r\n label\r\n type\r\n }\r\n image {\r\n url\r\n }\r\n label\r\n type\r\n url\r\n }\r\n label\r\n }\r\n }\r\n ... on UIProductMenuLink {\r\n __typename\r\n ariaLabel\r\n type\r\n badge {\r\n label\r\n type\r\n }\r\n callout\r\n html\r\n label\r\n url\r\n }\r\n }\r\n utilities {\r\n ariaLabel\r\n label\r\n type\r\n url\r\n }\r\n }\r\n pencilBanner {\r\n interval\r\n items {\r\n ariaLabel\r\n countdown {\r\n end\r\n start\r\n }\r\n html\r\n label\r\n schedule {\r\n end\r\n start\r\n }\r\n type\r\n url\r\n }\r\n next {\r\n ariaLabel\r\n image {\r\n url\r\n }\r\n label\r\n }\r\n previous {\r\n ariaLabel\r\n image {\r\n url\r\n }\r\n label\r\n }\r\n }\r\n }\r\n }\r\n `;\r\n const response = await axios.post(\r\n graphqlURL,\r\n JSON.stringify({\r\n query: query\r\n }),\r\n {\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Authorization: `Bearer ${token}`\r\n }\r\n }\r\n );\r\n if (response?.data) {\r\n return response.data;\r\n }\r\n return {};\r\n } catch (error) {\r\n console.error('error for bedhub header [getBedhubHeaderData]', error);\r\n return {};\r\n }\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >getBedhubHeaderData,\r\n id: 'BedhubHeader',\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 * Checkout charges state Input Action\r\n */\r\nexport class CheckoutChargesStateInput implements Msdyn365.IActionInput {\r\n constructor() {}\r\n public getCacheKey = () => `checkoutCharges`;\r\n public getCacheObjectType = () => 'checkoutCharges';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\nexport interface ICheckoutDeliveryFeeStateData {\r\n deliveryFee: number;\r\n taxAmount: number;\r\n recycleFee: number;\r\n totalAmount: number;\r\n subtotalAmount: number;\r\n checkoutSavings: number;\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new CheckoutChargesStateInput();\r\n};\r\n\r\nasync function action(input: CheckoutChargesStateInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { deliveryFee: 0, taxAmount: 0, recycleFee: 0, totalAmount: 0, subtotalAmount: 0, checkoutSavings: 0 };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'CheckoutDeliveryFeeState',\r\n input: createInput\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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * ExpressEditState Input Action\r\n */\r\nexport class ExpressEditStateInput implements Msdyn365.IActionInput {\r\n // ExpressEditStateInput: Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // ExpressEditState: 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 = () => `ExpressEditState`;\r\n public getCacheObjectType = () => 'ExpressEditState';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// IExpressEditStateData: Create a data model here or import one to capture the response of the action\r\nexport interface IExpressEditStateData {\r\n shippingEdit: boolean;\r\n deliveryEdit: boolean;\r\n}\r\n\r\n/**\r\n * createInput: 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 ExpressEditStateInput();\r\n};\r\n\r\n/**\r\n * action: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: ExpressEditStateInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // const response = await Msdyn365.sendRequest('/get/example/id/1', 'get');\r\n return { shippingEdit: false, deliveryEdit: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // id: Give your data action a unique id\r\n id: 'ExpressEditState',\r\n input: createInput\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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * ExpressOrderSubmitStateAction Input Action\r\n */\r\nexport class ExpressOrderSubmitStateActionInput implements Msdyn365.IActionInput {\r\n // ExpressOrderSubmitState: Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // ExpressOrderSubmitState: 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 = () => `ExpressOrderSubmitState`;\r\n public getCacheObjectType = () => 'ExpressOrderSubmitState';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// ExpressOrderSubmitState: Create a data model here or import one to capture the response of the action\r\nexport interface IExpressOrderSubmitStateActionData {\r\n expressSubmit: boolean;\r\n slotTime: string;\r\n slotDate: string;\r\n selectedService: string;\r\n}\r\n\r\n/**\r\n * ExpressOrderSubmitState - create new input for create action\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new ExpressOrderSubmitStateActionInput();\r\n};\r\n\r\n/**\r\n * ExpressOrderSubmitState - create action\r\n */\r\nasync function action(input: ExpressOrderSubmitStateActionInput, ctx: Msdyn365.IActionContext): Promise {\r\n\r\n return { expressSubmit: true , slotTime: '', slotDate: '', selectedService: ''};\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // ExpressOrderSubmitState: Give your data action a unique id\r\n id: 'ExpressOrderSubmitStateAction',\r\n input: createInput\r\n // ExpressOrderSubmitState: 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport interface IGetDeliveryFeeUpdateInput {\r\n deliveryAmount: number;\r\n}\r\n/**\r\n * GetDeliveryFeeUpdate Input Action\r\n */\r\nexport class GetDeliveryFeeUpdateInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n\r\n // 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 = () => `CheckoutUpdateDeliveryFee`;\r\n public getCacheObjectType = () => 'CheckoutUpdateDeliveryFee';\r\n public dataCacheType = (): Msdyn365.CacheType => 'request';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IGetDeliveryFeeUpdateData {\r\n text: string;\r\n}\r\n\r\n/**\r\n * 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 GetDeliveryFeeUpdateInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: GetDeliveryFeeUpdateInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 {deliveryAmount: 0};\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'GetDeliveryFeeUpdate',\r\n input: createInput\r\n // 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport interface ICheckoutRecycleFeeTaxUpdate {\r\n recycleFee: number | null;\r\n tax: number | null;\r\n}\r\n/**\r\n * GetRecycleFeeCheckout Input Action\r\n */\r\nexport class GetRecycleFeeCheckoutInput implements Msdyn365.IActionInput {\r\n\r\n // 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 = () => `CheckoutUpdateRecycleFee`;\r\n public getCacheObjectType = () => 'CheckoutUpdateRecycleFee';\r\n public dataCacheType = (): Msdyn365.CacheType => 'request';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\n/**\r\n * 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 GetRecycleFeeCheckoutInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: GetRecycleFeeCheckoutInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // Uncomment the below line to get the value from a service\r\n return {recycleFee: null , tax: null};\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'GetRecycleFeeCheckout',\r\n input: createInput\r\n // 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * PaymentRedirectToOrderConfirmation Input Action\r\n */\r\nexport class PaymentRedirectToOrderConfirmationInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // 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 = () => `PaymentRedirectToOrderConfirmation`;\r\n public getCacheObjectType = () => 'PaymentRedirectToOrderConfirmation';\r\n public dataCacheType = (): Msdyn365.CacheType => 'request';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IPaymentRedirectToOrderConfirmationData {\r\n redirectToOrderConfirmation: boolean;\r\n}\r\n\r\n/**\r\n * 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 PaymentRedirectToOrderConfirmationInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function paymentRedirectAction(input: PaymentRedirectToOrderConfirmationInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 { redirectToOrderConfirmation: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >paymentRedirectAction,\r\n // Give your data action a unique id\r\n id: 'PaymentRedirectToOrderConfirmation',\r\n input: createInput\r\n // 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * PaypalexpressTryagainTrigger Input Action\r\n */\r\nexport class PaypalexpressTryagainTriggerInput implements Msdyn365.IActionInput {\r\n // PaypalexpressTryagainTrigger: Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // PaypalexpressTryagainTrigger: 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 = () => `PaypalexpressTryagainTrigger`;\r\n public getCacheObjectType = () => 'PaypalexpressTryagainTrigger';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// PaypalexpressTryagainTrigger: Create a data model here or import one to capture the response of the action\r\nexport interface IPaypalexpressTryagainTriggerData {\r\n buttonClicked: boolean;\r\n orderSubmitClick: boolean;\r\n}\r\n\r\n/**\r\n * PaypalexpressTryagainTrigger: 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 PaypalexpressTryagainTriggerInput();\r\n};\r\n\r\n/**\r\n * PaypalexpressTryagainTrigger: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: PaypalexpressTryagainTriggerInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // PaypalexpressTryagainTrigger: 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 { buttonClicked: false, orderSubmitClick: false};\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // PaypalexpressTryagainTrigger: Give your data action a unique id\r\n id: 'PaypalexpressTryagainTrigger',\r\n input: createInput\r\n // PaypalexpressTryagainTrigger: 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Paypalsuccesstrigger Input Action\r\n */\r\nexport class PaypalsuccesstriggerInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // 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 = () => `PayPalSuccessFlag`;\r\n public getCacheObjectType = () => 'PayPalSuccessFlag';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IPaypalsuccesstriggerData {\r\n isPaymentSuccess: boolean;\r\n paymentSuccessEmail: string;\r\n}\r\n\r\n/**\r\n * 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 PaypalsuccesstriggerInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: PaypalsuccesstriggerInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 { isPaymentSuccess: false, paymentSuccessEmail: '' };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'Paypalsuccesstrigger',\r\n input: createInput\r\n // 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * ProgressiveAddressMismatch Input Action\r\n */\r\nexport class ProgressiveAddressMismatchInput implements Msdyn365.IActionInput {\r\n // ProgressiveAddressMismatchInput: Construct the input needed to run the action\r\n constructor() {}\r\n public getCacheKey = () => `ProgressiveAddressMismatchInput`;\r\n public getCacheObjectType = () => 'ProgressiveAddressMismatchInput';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// ProgressiveAddressMismatchInput: Create a data model here or import one to capture the response of the action\r\nexport interface IProgressiveAddressMismatchData {\r\n misMatch: boolean;\r\n}\r\n\r\n/**\r\n * ProgressiveAddressMismatchInput: 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 ProgressiveAddressMismatchInput();\r\n};\r\n\r\n/**\r\n * ProgressiveAddressMismatchInput: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: ProgressiveAddressMismatchInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { misMatch: false};\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // ProgressiveAddressMismatchInput: Give your data action a unique id\r\n id: 'ProgressiveAddressMismatch',\r\n input: createInput\r\n // ProgressiveAddressMismatchInput: 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 Msdyn365 from '@msdyn365-commerce/core';\r\nimport { ILeaseLookup } from './progressive-proxy-files/ProgressiveDataServiceEntities.g';\r\n\r\n/**\r\n * ProgressiveSetLeaseLookupInfo Action\r\n */\r\nexport class ProgressiveSetLeaseLookupInfoInput implements Msdyn365.IActionInput {\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `ProgressiveSetLeaseLookupInfo`;\r\n public getCacheObjectType = () => 'ProgressiveSetLeaseLookupInfo';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\nexport interface IProgressiveSetLeaseLookupInfoData {\r\n leaseLookupByCustomerInfo?: ILeaseLookup;\r\n}\r\n\r\n/**\r\n * ProgressiveSetLeaseLookupInfo 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 ProgressiveSetLeaseLookupInfoInput();\r\n};\r\n/**\r\n * ProgressiveSetLeaseLookupInfo Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: ProgressiveSetLeaseLookupInfoInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { leaseLookupByCustomerInfo: undefined };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'ProgressiveSetLeaseLookupInfo',\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\nimport { IGetPricingInformationResponse } from './progressive-proxy-files/ProgressiveDataServiceEntities.g';\r\n\r\n/**\r\n * ProgressiveSetPricingInfo Input Action\r\n */\r\nexport class ProgressiveSetPricingInfoInput implements Msdyn365.IActionInput {\r\n // ProgressiveSetPricingInfo 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 = () => `ProgressiveSetPricingInfo`;\r\n public getCacheObjectType = () => 'ProgressiveSetPricingInfo';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// ProgressiveSetPricingInfo Create a data model here or import one to capture the response of the action\r\nexport interface IProgressiveSetPricingInfoData {\r\n pricingInfo: IGetPricingInformationResponse;\r\n leaseId: string;\r\n approvalAmount: string;\r\n applyProgressive: boolean;\r\n contractESignUrl: string;\r\n cartId: string;\r\n}\r\n\r\n/**\r\n * ProgressiveSetPricingInfo 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 ProgressiveSetPricingInfoInput();\r\n};\r\n/**\r\n * ProgressiveSetPricingInfo Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: ProgressiveSetPricingInfoInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { pricingInfo: { CRTStatus: false, IsNoContent: true }, leaseId: '', approvalAmount: '', applyProgressive: false, contractESignUrl: '', cartId: '' };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // ProgressiveSetPricingInfo: Give your data action a unique id\r\n id: 'ProgressiveSetPricingInfo',\r\n input: createInput\r\n // ProgressiveSetPricingInfo: 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * ShowloadingContinuetodelivery Input Action\r\n */\r\nexport class ShowloadingContinuetodeliveryInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => `ShowloadingContinuetodeliveryInput`;\r\n public getCacheObjectType = () => 'ShowloadingContinuetodeliveryInput';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IShowloadingContinuetodeliveryData {\r\n customersApiLoadingCase: boolean;\r\n}\r\n\r\n/**\r\n * 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 ShowloadingContinuetodeliveryInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: ShowloadingContinuetodeliveryInput, ctx: Msdyn365.IActionContext): Promise {\r\n\r\n return { customersApiLoadingCase: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'ShowloadingContinuetodelivery',\r\n input: createInput\r\n // Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n","import * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport interface ISRPBreadcrumbState {\r\n breadcrumbCheck: boolean;\r\n}\r\n\r\n/**\r\n * SrpBreadcrumbPage Input Action\r\n */\r\nexport class SrpBreadcrumbPageInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n // 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 = () => `BreadcrumbSrp`;\r\n public getCacheObjectType = () => 'BreadcrumbSrp';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface ISrpBreadcrumbPageData {\r\n text: string;\r\n}\r\n\r\n/**\r\n * 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 SrpBreadcrumbPageInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: SrpBreadcrumbPageInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 { breadcrumbCheck: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'SrpBreadcrumbPage',\r\n input: createInput\r\n // 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * AtpSlotsInformationState Input Action\r\n */\r\nexport class AtpSlotsInformationStateInput implements Msdyn365.IActionInput {\r\n // AtpSlotsInformationState: Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // AtpSlotsInformationState: 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 = () => `AtpSlotsInformationState`;\r\n public getCacheObjectType = () => 'AtpSlotsInformationState';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// AtpSlotsInformationState: Create a data model here or import one to capture the response of the action\r\nexport interface IAtpSlotsInformationStateData {\r\n checkAvailable?: boolean;\r\n buttonDisabled?: boolean;\r\n isbackOrdered?: boolean;\r\n willCall?: boolean;\r\n isSynchorniCall?: boolean;\r\n}\r\n\r\n/**\r\n * AtpSlotsInformationState: 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 AtpSlotsInformationStateInput();\r\n};\r\n\r\n/**\r\n * AtpSlotsInformationState: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: AtpSlotsInformationStateInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { checkAvailable: false , buttonDisabled: false , isbackOrdered: false , willCall: true , isSynchorniCall: false};\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // AtpSlotsInformationState: Give your data action a unique id\r\n id: 'AtpSlotsInformationState',\r\n input: createInput\r\n // AtpSlotsInformationState: 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 * Licensed under the MIT License. See License.txt 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 { getByIdAsync, getVariantsByDimensionValuesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\nimport { ProductDimension, SimpleProduct } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nimport getHtmlParserValue from '../Utilities/get-html-parser-value';\r\n\r\n// tslint:disable-next-line: completed-docs\r\nexport class BuyboxGetDimensionPricingInput implements IActionInput {\r\n public channelId: number;\r\n public productId: number;\r\n constructor(productId: number, channelId: number) {\r\n this.channelId = channelId;\r\n this.productId = productId;\r\n }\r\n public getCacheKey = () => `DimensionPrices`;\r\n public getCacheObjectType = () => 'Product';\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\nexport interface IBuyboxGetDimensionPricingActionData {\r\n discountAmount?: number;\r\n name: string;\r\n price: number;\r\n productId: number;\r\n dimensionLabel: string;\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n if (inputData && inputData.requestContext && inputData.requestContext.query && inputData.requestContext.query.productId) {\r\n return new BuyboxGetDimensionPricingInput(\r\n +inputData.requestContext.query.productId,\r\n +inputData.requestContext.apiSettings.channelId\r\n );\r\n } else if (inputData && inputData.requestContext && inputData.requestContext.urlTokens && inputData.requestContext.urlTokens.itemId) {\r\n return new BuyboxGetDimensionPricingInput(\r\n +inputData.requestContext.urlTokens.itemId,\r\n +inputData.requestContext.apiSettings.channelId\r\n );\r\n } else if (inputData && inputData.config && inputData.config.productId) {\r\n return new BuyboxGetDimensionPricingInput(inputData.config.productId, inputData.requestContext.apiSettings.channelId);\r\n } else {\r\n throw new Error('Unable to create SelectedVariantInput, no productId found on module config or query');\r\n }\r\n};\r\n\r\nconst getDimensionLabel = (dimension: ProductDimension): string | undefined => {\r\n const extensionProperties = dimension.DimensionValue?.ExtensionProperties;\r\n\r\n let dimensionLabel;\r\n extensionProperties?.forEach(property => {\r\n if (property.Key?.toLowerCase() === 'description') {\r\n dimensionLabel = property.Value?.StringValue && getHtmlParserValue(property.Value?.StringValue);\r\n }\r\n });\r\n\r\n return dimensionLabel;\r\n};\r\n\r\nexport async function getDimensionPricingAction(\r\n input: BuyboxGetDimensionPricingInput,\r\n ctx: IActionContext\r\n): Promise {\r\n const pricingData: IBuyboxGetDimensionPricingActionData[] = [];\r\n\r\n const productResponse = await getByIdAsync(\r\n { callerContext: ctx, queryResultSettings: { Paging: { Top: 1 } } },\r\n input.productId,\r\n input.channelId\r\n );\r\n const baseProduct = Array.isArray(productResponse) ? productResponse[0] : productResponse;\r\n\r\n await getVariantsByDimensionValuesAsync(\r\n { callerContext: ctx, queryResultSettings: { Paging: { Top: 500 } } },\r\n baseProduct.MasterProductId || input.productId,\r\n input.channelId,\r\n []\r\n )\r\n .then(async (variants: SimpleProduct[]) => {\r\n // TODO: refactor code to use Hashmap\r\n // ex: https://codepen.io/asadalikanwal/pen/ZEpgmzd?editors=1111\r\n if (variants) {\r\n const dimensionsSizes = {};\r\n const productIds = [];\r\n variants.forEach(variant => {\r\n variant.Dimensions?.forEach(dimension => {\r\n if (dimension.DimensionTypeValue === 3) {\r\n const sizeLabel = dimension.DimensionValue?.Value?.toLowerCase().trim();\r\n const priceLabel = variant.Price;\r\n const dimensionLabel = getDimensionLabel(dimension);\r\n if (sizeLabel) {\r\n if (dimensionsSizes.hasOwnProperty(sizeLabel)) {\r\n if (priceLabel && dimensionsSizes[sizeLabel].price >= priceLabel) {\r\n dimensionsSizes[sizeLabel] = {\r\n price: priceLabel,\r\n productId: variant.RecordId,\r\n name: dimension.DimensionValue?.Value,\r\n dimensionLabel: dimensionLabel\r\n };\r\n }\r\n } else {\r\n dimensionsSizes[sizeLabel] = {\r\n price: priceLabel,\r\n productId: variant.RecordId,\r\n name: dimension.DimensionValue?.Value,\r\n dimensionLabel: dimensionLabel\r\n };\r\n }\r\n }\r\n }\r\n });\r\n });\r\n\r\n if (dimensionsSizes) {\r\n // push all dimension/variant ids to array for activePrice call\r\n for (const key of Object.keys(dimensionsSizes)) {\r\n if (dimensionsSizes.hasOwnProperty(key)) {\r\n pricingData.push(dimensionsSizes[key]);\r\n productIds.push(dimensionsSizes[key].productId);\r\n }\r\n }\r\n }\r\n }\r\n })\r\n .catch(error => {\r\n ctx.telemetry.exception(error);\r\n throw new Error('[IBuyboxGetDimensionPricingActionData]Unable to retieve data');\r\n });\r\n return pricingData;\r\n}\r\n\r\nexport default createObservableDataAction({\r\n id: 'DimensionPrices',\r\n action: >getDimensionPricingAction,\r\n input: createInput\r\n});\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 {\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 { getByIdAsync, getVariantsByDimensionValuesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\nimport { SimpleProduct } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\n// tslint:disable-next-line: completed-docs\r\nexport class BuyboxGetDimensionVariantAvailabilityInput implements IActionInput {\r\n public channelId: number;\r\n public productId: number;\r\n constructor(productId: number, channelId: number) {\r\n this.channelId = channelId;\r\n this.productId = productId;\r\n }\r\n public getCacheKey = () => `VariantIDs-${this.productId}`;\r\n public getCacheObjectType = () => 'VariantIDs';\r\n public dataCacheType = (): CacheType => 'application';\r\n}\r\n\r\nexport interface IBuyboxGetDimensionVariantAvailabilityActionData {\r\n variantID: number;\r\n sizeDimensionRecordID: number;\r\n colorDimensionRecordId: number;\r\n dimensionRecordID?: number;\r\n itemID: string;\r\n sizeValue: string;\r\n isAvailable: boolean;\r\n secondaryDimensionValue?: string; // can be color or height\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n if (inputData && inputData.requestContext && inputData.requestContext.query && inputData.requestContext.query.productId) {\r\n return new BuyboxGetDimensionVariantAvailabilityInput(\r\n +inputData.requestContext.query.productId,\r\n +inputData.requestContext.apiSettings.channelId\r\n );\r\n } else if (inputData && inputData.requestContext && inputData.requestContext.urlTokens && inputData.requestContext.urlTokens.itemId) {\r\n return new BuyboxGetDimensionVariantAvailabilityInput(\r\n +inputData.requestContext.urlTokens.itemId,\r\n +inputData.requestContext.apiSettings.channelId\r\n );\r\n } else if (inputData && inputData.config && inputData.config.productId) {\r\n return new BuyboxGetDimensionVariantAvailabilityInput(inputData.config.productId, inputData.requestContext.apiSettings.channelId);\r\n } else {\r\n throw new Error('Unable to create SelectedVariantInput, no productId found on module config or query');\r\n }\r\n};\r\n\r\nexport async function getAllVariantsAction(\r\n input: BuyboxGetDimensionVariantAvailabilityInput,\r\n ctx: IActionContext\r\n): Promise {\r\n const fetchedVariants: IBuyboxGetDimensionVariantAvailabilityActionData[] = [];\r\n const productResponse = await getByIdAsync({ callerContext: ctx, queryResultSettings: { Paging: { Top: 1 } } }, input.productId, input.channelId);\r\n const baseProduct = Array.isArray(productResponse) ? productResponse[0] : productResponse;\r\n await getVariantsByDimensionValuesAsync(\r\n { callerContext: ctx, queryResultSettings: { Paging: { Top: 500 } } },\r\n baseProduct.MasterProductId || input.productId,\r\n input.channelId,\r\n []\r\n )\r\n .then(async (variants: SimpleProduct[]) => {\r\n // TODO: refactor code to use Hashmap\r\n // ex: https://codepen.io/asadalikanwal/pen/ZEpgmzd?editors=1111\r\n if (variants) {\r\n variants.forEach((variant) => {\r\n const variantAvailabilityData: IBuyboxGetDimensionVariantAvailabilityActionData = { variantID: -1, sizeDimensionRecordID: -1, colorDimensionRecordId: -1, itemID: '', isAvailable: true, sizeValue: '' };\r\n variant.Dimensions?.forEach((dimension) => {\r\n if (dimension.DimensionTypeValue === 1) {\r\n variantAvailabilityData.variantID = variant.RecordId;\r\n variantAvailabilityData.colorDimensionRecordId = dimension.DimensionValue!.RecordId;\r\n variantAvailabilityData.itemID = variant.ItemId!;\r\n variantAvailabilityData.secondaryDimensionValue = dimension.DimensionValue?.Value;\r\n } else if (dimension.DimensionTypeValue === 3) {\r\n variantAvailabilityData.variantID = variant.RecordId;\r\n variantAvailabilityData.sizeDimensionRecordID = dimension.DimensionValue!.RecordId;\r\n variantAvailabilityData.sizeValue = dimension.DimensionValue!.Value!;\r\n }\r\n });\r\n fetchedVariants.push(variantAvailabilityData);\r\n });\r\n }\r\n return fetchedVariants;\r\n })\r\n .catch(error => {\r\n ctx.telemetry.exception(error);\r\n throw new Error('[IBuyboxGetDimensionPricingActionData]Unable to retieve data');\r\n });\r\n return fetchedVariants;\r\n}\r\n\r\nexport default createObservableDataAction({\r\n id: 'VariantIDs',\r\n action: >getAllVariantsAction,\r\n input: createInput\r\n});\r\n","import * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * CheckoutSkeleton Input Action\r\n */\r\nexport class CheckoutSkeletonInput implements Msdyn365.IActionInput {\r\n constructor() {}\r\n\r\n public getCacheKey = () => `CheckoutSkeleton`;\r\n public getCacheObjectType = () => 'CheckoutSkeleton';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\nexport interface ICheckoutSkeletonData {\r\n showPaymentSkeleton: boolean | undefined;\r\n expressSkeleton: boolean;\r\n expressPhoneNotavailable: boolean;\r\n expressLoaderRunning: boolean;\r\n showDeliverySkeleton: boolean;\r\n showCustomerInfoSkeleton: boolean;\r\n isPaymentApiFailed: boolean;\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new CheckoutSkeletonInput();\r\n};\r\n\r\n\r\nasync function action(input: CheckoutSkeletonInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { showPaymentSkeleton: true, expressSkeleton: true, expressPhoneNotavailable: true, expressLoaderRunning: true, showDeliverySkeleton: true, showCustomerInfoSkeleton: true, isPaymentApiFailed: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'CheckoutSkeleton',\r\n input: createInput\r\n});\r\n","import { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput, IAny, ICreateActionContext, IGeneric } from '@msdyn365-commerce/core';\r\nexport interface ICheckoutZipCodeInfoState {\r\n isValidZipCode: boolean;\r\n updatedZipCode: string;\r\n isOOMZipCode: boolean;\r\n}\r\n\r\n/**\r\n * SampleState - action input\r\n */\r\nexport class CheckoutZipCodeInfoInput implements IActionInput {\r\n public getCacheKey = () => `CheckoutZipCodeInfoInput`;\r\n public getCacheObjectType = () => 'CheckoutZipCodeInfoInput';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\n/**\r\n * SampleState - action\r\n */\r\nexport async function updateCheckoutZipCodeValidityAction(input: CheckoutZipCodeInfoInput, ctx: IActionContext): Promise {\r\n return { isValidZipCode: false, updatedZipCode: '', isOOMZipCode: false };\r\n}\r\n\r\n/**\r\n * SampleState - create new input for create action\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new CheckoutZipCodeInfoInput();\r\n};\r\n\r\n/**\r\n * SampleState - create action\r\n */\r\nexport default createObservableDataAction({\r\n id: 'CheckoutZipCodeInfo',\r\n action: >updateCheckoutZipCodeValidityAction,\r\n input: createInput\r\n});","import { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput, IAny, ICreateActionContext, IGeneric } from '@msdyn365-commerce/core';\r\n\r\nexport interface IContinueToPaymentState {\r\n shouldGoToPayment: boolean;\r\n triggerGetCardPayment: string;\r\n}\r\n\r\n/**\r\n * SampleState - action input\r\n */\r\nexport class ContinueToPaymentInput implements IActionInput {\r\n public getCacheKey = () => `ContinueToPaymentInput`;\r\n public getCacheObjectType = () => 'ContinueToPaymentInput';\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n/**\r\n * SampleState - action\r\n */\r\nexport async function updateContinueToPaymentStateAction(input: ContinueToPaymentInput, ctx: IActionContext): Promise {\r\n return {shouldGoToPayment: true, triggerGetCardPayment: 'stopTrigger' };\r\n}\r\n/**\r\n * SampleState - create new input for create action\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new ContinueToPaymentInput();\r\n};\r\n/**\r\n * SampleState - create action\r\n */\r\nexport default createObservableDataAction({\r\n id: 'ContinueToPaymentInput',\r\n action: >updateContinueToPaymentStateAction,\r\n input: createInput\r\n});","import { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput, IAny, ICreateActionContext, IGeneric } from '@msdyn365-commerce/core';\r\nimport { IMFIATPInventoryDynamicEntity } from '../actions/CoreProductDataServiceEntities.g';\r\n\r\nexport interface IATPSlotInfo {\r\n selectedATPSlotInfo: IMFIATPInventoryDynamicEntity | undefined;\r\n selectedATPSlotDate: string | undefined;\r\n}\r\n\r\n/**\r\n * SampleState - action input\r\n */\r\nexport class SelectedATPSlotInfo implements IActionInput {\r\n public getCacheKey = () => `SelectedATPSlotInfo`;\r\n public getCacheObjectType = () => 'SelectedATPSlotInfo';\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n/**\r\n * SampleState - action\r\n */\r\nexport async function getSelectedATPSlotInfo(input: SelectedATPSlotInfo, ctx: IActionContext): Promise {\r\n return { selectedATPSlotInfo: undefined, selectedATPSlotDate: undefined };\r\n}\r\n/**\r\n * SampleState - create new input for create action\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new SelectedATPSlotInfo();\r\n};\r\n/**\r\n * SampleState - create action\r\n */\r\nexport default createObservableDataAction({\r\n id: 'SelectedATPSlotInfo',\r\n action: >getSelectedATPSlotInfo,\r\n input: createInput\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 IAction,\r\n IActionContext,\r\n IActionInput,\r\n IAny,\r\n ICreateActionContext,\r\n IGeneric\r\n} from '@msdyn365-commerce/core';\r\nimport { AttributeValue, CategoryPathLookup } from '@msdyn365-commerce/retail-proxy';\r\nimport {\r\n getAttributeValuesAsync, getCategoryPathsAsync\r\n} from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nimport {\r\n ActiveCartProductsInput,\r\n getActiveCartProductsAction\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\nimport { hasArray } from '../Utilities/emtpyChecker';\r\n\r\n// tslint:disable-next-line: completed-docs\r\nexport class AttributesForSelectedVariantInput implements IActionInput {\r\n public channelId: number;\r\n public catalogId: number;\r\n\r\n constructor(channelId: number, catalogId?: number) {\r\n this.channelId = channelId;\r\n this.catalogId = catalogId || 0;\r\n }\r\n\r\n public getCacheKey = () => `AttributesForSelectedVariant`;\r\n public getCacheObjectType = () => 'AttributesForSelectedVariant';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nexport const createAttributesForSelectedVariantInput = (inputData: ICreateActionContext>): AttributesForSelectedVariantInput => {\r\n\r\n return new AttributesForSelectedVariantInput(+inputData.requestContext.apiSettings.channelId);\r\n};\r\n\r\nexport interface IProductWithAttribute {\r\n productId: number;\r\n attributeValue: AttributeValue[];\r\n Name:string | undefined;\r\n PrimaryImageUrl: string | undefined;\r\n categoryName: string | undefined;\r\n}\r\n\r\n/**\r\n * Calls the Retail API to get the product attributes for items in the cart.\r\n * @param input\r\n * @param ctx\r\n */\r\nexport async function getAttributesForCartLineItems(\r\n input: AttributesForSelectedVariantInput,\r\n ctx: IActionContext\r\n): Promise {\r\n // let productAttributes: AttributeValue[][] = [];\r\n // let productAttributes: number[] = [];\r\n const productAttributes: IProductWithAttribute[] = [];\r\n\r\n const products = (await getActiveCartProductsAction(new ActiveCartProductsInput(), ctx)).filter(Boolean);\r\n const catPaths: CategoryPathLookup[] = [];\r\n const idArray: any[] = [];\r\n products.map(items => idArray.push(items.RecordId));\r\n if(!hasArray(idArray)) {\r\n return [];\r\n }\r\n for (let productsIter = 0; productsIter < idArray.length; productsIter++) {\r\n catPaths.push({ ProductId: idArray[productsIter] });\r\n }\r\n for(let i = 0 ; i < products?.length ; i++) {\r\n const productId = products[i].RecordId;\r\n const Name = products[i].Name;\r\n const PrimaryImageUrl = products[i].PrimaryImageUrl;\r\n try {\r\n const productSpecificationData: AttributeValue[] = await getAttributeValuesAsync({ callerContext: ctx, queryResultSettings: {} }, productId, ctx.requestContext.apiSettings.channelId, ctx.requestContext.apiSettings.catalogId);\r\n const attributeValue = productSpecificationData.filter(Boolean);\r\n\r\n const getCategory = await getCategoryPathsAsync({ callerContext: ctx, queryResultSettings: { Paging: { Top: idArray.length }, Sorting: {} } }, ctx.requestContext.apiSettings.channelId, ctx.requestContext.apiSettings.catalogId, catPaths);\r\n const checkCategory = getCategory?.find(data => data.ProductId === products[i].RecordId);\r\n const getSegments = checkCategory && checkCategory.CategoryPath && checkCategory.CategoryPath[0]?.Segments;\r\n let categoryName;\r\n if (getSegments) {\r\n categoryName = getSegments[getSegments?.length - 1]?.CategoryName!;\r\n }\r\n productAttributes.push({\r\n productId,\r\n attributeValue,\r\n Name,\r\n PrimaryImageUrl,\r\n categoryName\r\n });\r\n } catch (error) {\r\n throw new Error(`Unable to get data: ${error}`);\r\n }\r\n }\r\n\r\n return productAttributes;\r\n}\r\n\r\n/**\r\n * Calls the Retail API to get the product availabilities for items in the cart.\r\n * @param input\r\n * @param ctx\r\n */\r\n\r\nexport const getAvailabilitiesForCartLineItemsDataAction = createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/retail-actions/get-product-attributes-cartlines',\r\n action: >getAttributesForCartLineItems,\r\n input: createAttributesForSelectedVariantInput\r\n});\r\n\r\nexport default getAvailabilitiesForCartLineItemsDataAction;\r\n","import { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput, IAny, ICreateActionContext, IGeneric } from '@msdyn365-commerce/core';\r\nexport interface IMFRMCheckoutStepperState {\r\n customerInfoSaveClicked: boolean;\r\n currentStep?: number;\r\n}\r\n\r\n/**\r\n * SampleState - action input\r\n */\r\nexport class CheckoutStepperInfoInput implements IActionInput {\r\n public getCacheKey = () => `CheckoutStepperInfoInput`;\r\n public getCacheObjectType = () => 'CheckoutStepperInfoInput';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\n/**\r\n * SampleState - action\r\n */\r\nexport async function updateCheckoutZipCodeValidityAction(input: CheckoutStepperInfoInput, ctx: IActionContext): Promise {\r\n return { customerInfoSaveClicked: false };\r\n}\r\n\r\n/**\r\n * SampleState - create new input for create action\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new CheckoutStepperInfoInput();\r\n};\r\n\r\n/**\r\n * SampleState - create action\r\n */\r\nexport default createObservableDataAction({\r\n id: 'CheckoutStepperInfoInput',\r\n action: >updateCheckoutZipCodeValidityAction,\r\n input: createInput\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 { INavigationMenuState } from './navigation-menu-state';\r\n\r\n/**\r\n * NavigationMenuState - action input\r\n */\r\nexport class NavMenuStateInput implements IActionInput {\r\n public getCacheKey = () => `NavMenuState`;\r\n public getCacheObjectType = () => 'NavMenuState';\r\n public dataCacheType = (): CacheType => 'application';\r\n}\r\n\r\n/**\r\n * NavMenuStateInput - action\r\n */\r\nexport async function navMenuStateAction(input: NavMenuStateInput, ctx: IActionContext): Promise {\r\n return { isMenuHasParent: false, isMobileMenuCollapsed: true, selectedNavMenu: '', menuItemData: [] };\r\n}\r\n\r\n/**\r\n * NavMenuStateInput - create new input for create action\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new NavMenuStateInput();\r\n};\r\n\r\n/**\r\n * NavMenuStateInput - create action\r\n */\r\nexport default createObservableDataAction({\r\n id: 'NavMenuState',\r\n action: >navMenuStateAction,\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 * PaymentCcCardTypes Input Action\r\n */\r\nexport class PaymentCcCardTypesInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // 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 = () => `payment-cc-card-types`;\r\n public getCacheObjectType = () => 'payment-cc-card-types';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IPaymentCcCardTypesData {\r\n cardType: string;\r\n}\r\n\r\n/**\r\n * 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 PaymentCcCardTypesInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: PaymentCcCardTypesInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 { cardType: '' };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'PaymentCcCardTypes',\r\n input: createInput\r\n // 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * PaymentErrorState Input Action\r\n */\r\nexport class PaymentErrorStateInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n constructor() { }\r\n\r\n // 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 = () => `PaymentErrorState`;\r\n public getCacheObjectType = () => 'PaymentErrorState';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IPaymentErrorState {\r\n errorTitle: string;\r\n errorMessage: string;\r\n progressiveLinkText: string;\r\n}\r\n\r\n/**\r\n * 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 PaymentErrorStateInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: PaymentErrorStateInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 { errorTitle: \"\", errorMessage: \"\", progressiveLinkText: \"\" };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'PaymentErrorState',\r\n input: createInput\r\n // 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 Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * ProgressiveLeasingModalState Input Action\r\n */\r\nexport class ProgressiveLeasingModalStateInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n constructor() { }\r\n\r\n // 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 = () => `ProgressiveLeasingModalState`;\r\n public getCacheObjectType = () => 'ProgressiveLeasingModalState';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IProgressiveLeasingModalStateData {\r\n isOpen: boolean;\r\n}\r\n\r\n/**\r\n * 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 ProgressiveLeasingModalStateInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: ProgressiveLeasingModalStateInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 { isOpen: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'ProgressiveLeasingModalState',\r\n input: createInput\r\n // Uncomment the below line if this is a meant to be a batched data action\r\n // isBatched: true\r\n});\r\n","import MsDyn365, {\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 { OrgUnitLocation } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport { IStoreSelectorState } from './store-selector-state';\r\n/**\r\n * storeSelectorState - action input\r\n */\r\nexport class StoreSelectorStateInput implements IActionInput {\r\n public getCacheKey = () => `storeSelectorState`;\r\n public getCacheObjectType = () => 'storeSelectorState';\r\n public dataCacheType = (): CacheType => 'application';\r\n}\r\n\r\n/**\r\n * StoreSelectorStateInput - action\r\n */\r\nexport async function storeSelectorStateAction(input: StoreSelectorStateInput, ctx: IActionContext): Promise {\r\n const prefferedStore: OrgUnitLocation =\r\n MsDyn365.isBrowser && localStorage.getItem('_mfrm__prefferedStore_')\r\n ? JSON.parse(localStorage.getItem('_mfrm__prefferedStore_') || '')\r\n : {};\r\n return { isModalOpen: false, prefferedStore: prefferedStore };\r\n}\r\n\r\n/**\r\n * StoreSelectorStateInput - create new input for create action\r\n */\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new StoreSelectorStateInput();\r\n};\r\n\r\n/**\r\n * StoreSelectorStateInput - create action\r\n */\r\nexport default createObservableDataAction({\r\n id: 'StoreSelectorState',\r\n action: >storeSelectorStateAction,\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 * ToggleSynchronySubmitOrderButton Input Action\r\n */\r\nexport class ToggleSubmitOrderButtonInput implements Msdyn365.IActionInput {\r\n // Construct the input needed to run the action\r\n constructor() {}\r\n\r\n // 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 = () => `toggle-submit-order-button`;\r\n public getCacheObjectType = () => 'toggle-submit-order-button';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// Create a data model here or import one to capture the response of the action\r\nexport interface IToggleSubmitOrderButtonData {\r\n isSynchronySelected: boolean;\r\n isPaypalSelected: boolean;\r\n isCreditcardSelected: boolean;\r\n isCcFieldsNotPopulated: boolean;\r\n isProgressiveSelected: boolean;\r\n}\r\n\r\n/**\r\n * 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 ToggleSubmitOrderButtonInput();\r\n};\r\n\r\n/**\r\n * Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: ToggleSubmitOrderButtonInput, ctx: Msdyn365.IActionContext): Promise {\r\n // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n // 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 { isSynchronySelected: false, isPaypalSelected: false, isCreditcardSelected: false, isCcFieldsNotPopulated: true, isProgressiveSelected: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n // Give your data action a unique id\r\n id: 'ToggleSubmitOrderButton',\r\n input: createInput\r\n // 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 * Licensed under the MIT License. See License.txt in the project root for license information.\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\n/* tslint:disable: no-duplicate-imports */\r\nimport { ProductPrice, ProductRefinerValue, ProductSearchResult, SimpleProduct, SortingInfo } from '@msdyn365-commerce/retail-proxy';\r\nimport { observable } from 'mobx';\r\n\r\nimport { listPageType } from './actions';\r\n\r\n/**\r\n * ListPageState class\r\n */\r\nexport class ListPageState {\r\n @observable public activeFilters: ProductRefinerValue[] | null = null;\r\n @observable public activeVirtualFilters: ProductRefinerValue[] | null = null;\r\n @observable public activeProducts: ProductSearchResult[] = [];\r\n @observable public sortingCritera: SortingInfo | null = null;\r\n @observable public currentPageNumber: number | null = null;\r\n @observable public totalProductCount: number | undefined;\r\n @observable public pageSize: number = 10;\r\n @observable public pageType: listPageType = 'Unknown';\r\n @observable public featureProduct: SimpleProduct | null = null;\r\n @observable public productPrices: ProductPrice[] | undefined = [];\r\n}\r\n\r\n/**\r\n * ListPageStateInput - action input\r\n */\r\nexport class ListPageStateInput implements IActionInput {\r\n public getCacheKey = () => `ListPageState`;\r\n public getCacheObjectType = () => 'ListPageState';\r\n public dataCacheType = (): CacheType => 'application';\r\n}\r\n\r\nexport async function listPageStateAction(\r\n input: ListPageStateInput,\r\n ctx: IActionContext\r\n): Promise {\r\n return new ListPageState();\r\n}\r\n\r\n/**\r\n * create new input for create action\r\n */\r\nexport const createListPageInput = (\r\n inputData: ICreateActionContext>\r\n): IActionInput => {\r\n return new ListPageStateInput();\r\n};\r\n\r\n/**\r\n * ListPageState - create action\r\n */\r\nexport default createObservableDataAction({\r\n action: >listPageStateAction,\r\n input: createListPageInput\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 React from 'react';\r\n\r\n/**\r\n * CoreComponent component\r\n * @extends {React.PureComponent}\r\n */\r\n\r\nclass MattressFirm 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