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F,OAAOC,aAAatB,SAAW,IAC/BD,EAAQC,SAGXqB,OAAOC,aAAarB,YAAWsB,EAAAA,EAAA,GAC5BF,OAAOC,aAAarB,aAAe,IACnCF,EAAQE,aAEY,MAAMuB,EAAiB,GAC9BA,EAAe,iGAAmG,CAC1HhB,EAAGA,IAAMC,EAAQ,KACjBgB,GAAI,wDAEpBJ,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaE,eAAcD,EAAAA,EAAA,GACPF,OAAOC,aAAaE,gBAAkB,IACtCA,UC1F3BE,EAAOC,QAAU5F,cCAjB2F,EAAOC,QAAUC","sources":["webpack://mattressfirm/./src/data-actions/get-attributes-for-selected-variant.ts?4859","webpack://mattressfirm/./src/data-actions/get-sleep-disruptor-icons.action.ts?0ec7","webpack://mattressfirm/./src/modules/mfrm-helps-with-sleep-disruptors/mfrm-helps-with-sleep-disruptors.tsx?36c7","webpack://mattressfirm/./src/modules/mfrm-helps-with-sleep-disruptors/svg/Caret.tsx?d501","webpack://mattressfirm/./src/modules/mfrm-helps-with-sleep-disruptors/mfrm-helps-with-sleep-disruptors.view.tsx?1bf1","webpack://mattressfirm/./lib/mfrm-helps-with-sleep-disruptors/module-registration.js?dd2c","webpack://mattressfirm/external var \"React\"?0d3b","webpack://mattressfirm/external var \"ReactDOM\"?853b"],"sourcesContent":["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 { AttributeValue, SimpleProduct } from '@msdyn365-commerce/retail-proxy';\r\n\r\nimport { getSelectedProductIdFromActionInput, getSelectedVariant, SelectedVariantInput } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { getAttributeValuesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\n/**\r\n * Chains getting the SelectedVariant with GetActivePrice\r\n */\r\nexport class AttributesForSelectedVariantInput implements IActionInput {\r\n public productId: number;\r\n public channelId: number;\r\n public catalogId: number;\r\n public selectedProduct: SimpleProduct | undefined;\r\n\r\n constructor(productId: number, channelId: number, selectedProduct?: SimpleProduct, catalogId?: number) {\r\n this.productId = productId;\r\n this.channelId = channelId;\r\n this.selectedProduct = selectedProduct;\r\n this.catalogId = catalogId || 0;\r\n }\r\n\r\n public getCacheKey = () => `AttributesForSelectedVariant`;\r\n public getCacheObjectType = () => 'ProductAttributeValue';\r\n public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\nexport const createAttributesForSelectedVariantInput = (\r\n inputData: ICreateActionContext>\r\n): AttributesForSelectedVariantInput => {\r\n const productId = getSelectedProductIdFromActionInput(inputData);\r\n if (productId) {\r\n return new AttributesForSelectedVariantInput(+productId, +inputData.requestContext.apiSettings.channelId);\r\n } else {\r\n throw new Error('Unable to create PriceForSelectedVariantInput, no productId found on module config or query');\r\n }\r\n};\r\n\r\n/**\r\n * Calls the Retail API a get a list of dimension values for a given product.\r\n */\r\nexport async function getAttributesForSelectedVariantAction(\r\n input: AttributesForSelectedVariantInput,\r\n ctx: IActionContext\r\n): Promise {\r\n // @ts-ignore: Promise vs. ObservablePromise typing conflict\r\n return Promise.resolve()\r\n .then(() => {\r\n const activeProduct: SimpleProduct | undefined = input.selectedProduct;\r\n\r\n if (!activeProduct) {\r\n const selectedVariantInput = new SelectedVariantInput(input.productId, input.channelId);\r\n\r\n return getSelectedVariant(selectedVariantInput, ctx);\r\n }\r\n\r\n return activeProduct;\r\n })\r\n .then((productResult: SimpleProduct | null) => {\r\n const activeProduct: SimpleProduct | undefined = productResult;\r\n\r\n if (activeProduct) {\r\n return getAttributeValuesAsync(\r\n { callerContext: ctx, queryResultSettings: {} },\r\n activeProduct.RecordId,\r\n input.channelId,\r\n input.catalogId\r\n );\r\n }\r\n\r\n return null;\r\n })\r\n .then((attributeValues: AttributeValue[] | null) => {\r\n const resultArray = attributeValues;\r\n if (resultArray) {\r\n return resultArray;\r\n }\r\n\r\n return [];\r\n })\r\n .catch((error: Error) => {\r\n ctx.trace(error.message);\r\n throw new Error(`[getPriceForSelectedVariantAction]Error executing action ${error.message}`);\r\n });\r\n}\r\n\r\nexport default createObservableDataAction({\r\n id: '@msdyn365-commerce-modules/product-info/get-attributes-for-selected-variant',\r\n action: >getAttributesForSelectedVariantAction,\r\n input: createAttributesForSelectedVariantInput\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 * as Msdyn365 from '@msdyn365-commerce/core';\r\nexport class GetSleepDisruptorIcons extends Msdyn365.CommerceEntityInput implements Msdyn365.IActionInput {\r\n private sleepDisuptorIconsDataUrl: string = '';\r\n constructor(sleepDisuptorIconsDataUrl: string) {\r\n super({ shouldCacheOutput: true, cacheObjectType: 'sleepDisuptorIconsDataCache', cacheKey: 'sleepDisuptorIconsDataCache' });\r\n this.sleepDisuptorIconsDataUrl = sleepDisuptorIconsDataUrl;\r\n }\r\n public getSleepDisuptorIconsDataUrl = () => this.sleepDisuptorIconsDataUrl;\r\n public getCacheKey = () => `sleepDisuptorIconsDataCache`;\r\n public getCacheObjectType = () => 'sleepDisuptorIconsDataCache';\r\n public dataCacheType = (): Msdyn365.CacheType => 'request';\r\n}\r\nconst createInput = (inputData: Msdyn365.ICreateActionContext>): Msdyn365.IActionInput => {\r\n if (inputData.config && inputData.config.sleepDisuptorIconsDataUrl) {\r\n return new GetSleepDisruptorIcons(inputData.config.sleepDisuptorIconsDataUrl);\r\n }\r\n return new GetSleepDisruptorIcons('');\r\n};\r\nasync function action(input: GetSleepDisruptorIcons, ctx: Msdyn365.IActionContext): Promise {\r\n const sleepDisuptorIconsDataJsonUrl = ctx.requestContext.app.config.sleepDisruptorIconDataUrl;\r\n const jsonUrl = sleepDisuptorIconsDataJsonUrl || '';\r\n const res = await Msdyn365.sendRequest(jsonUrl, 'get');\r\n const sleepDisuptorIconsData = res.data && res.data;\r\n return sleepDisuptorIconsData;\r\n}\r\nexport default Msdyn365.createObservableDataAction({\r\n id: 'SleepDisuptorIconsData',\r\n action: >action,\r\n input: createInput\r\n});","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\n\r\nimport { IMfrmHelpsWithSleepDisruptorsData } from './mfrm-helps-with-sleep-disruptors.data';\r\nimport { IMfrmHelpsWithSleepDisruptorsProps } from './mfrm-helps-with-sleep-disruptors.props.autogenerated';\r\n\r\nexport interface IMfrmHelpsWithSleepDisruptorsViewProps extends IMfrmHelpsWithSleepDisruptorsProps {}\r\n\r\n/**\r\n *\r\n * MfrmHelpsWithSleepDisruptors component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass MfrmHelpsWithSleepDisruptors extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default MfrmHelpsWithSleepDisruptors;\r\n","import * as React from 'react';\r\n\r\nexport const Caret = () => (\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 */\r\n\r\nimport * as React from 'react';\r\nimport { IMfrmHelpsWithSleepDisruptorsViewProps } from './mfrm-helps-with-sleep-disruptors';\r\nimport { Caret } from './svg/Caret';\r\nexport interface TitleListAboutProps {\r\n title: string | undefined;\r\n list: any[];\r\n linkHref: string | undefined;\r\n linkAreaLabel: string | undefined;\r\n linkText: string | undefined;\r\n}\r\n\r\nexport const TitleListAbout: React.FC = ({ title, list, linkHref, linkAreaLabel, linkText }) => {\r\n return (\r\n
\r\n
{title}
\r\n {list.map((item, i) => (\r\n
\r\n {item}\r\n
\r\n ))}\r\n \r\n
\r\n );\r\n};\r\n\r\nexport default (props: IMfrmHelpsWithSleepDisruptorsViewProps) => {\r\n const {\r\n data: {\r\n productSpecificationData: { result: productSpecificationData },\r\n sleepDisuptorIconsData: { result: sleepDisuptorIconsData }\r\n },\r\n config: { titleHeadingTag, aboutLink, productSpecificationDataAttributeName }\r\n } = props;\r\n\r\n const features = productSpecificationData\r\n ?.find(obj => obj?.Name?.toLowerCase().trim() === productSpecificationDataAttributeName?.toLowerCase().trim())\r\n ?.TextValue?.split(',');\r\n\r\n const productType = productSpecificationData?.find(obj => obj.Name?.toLocaleLowerCase().trim() === 'product type')?.TextValue;\r\n\r\n // TODO: This is just mocking the data, move this to a real mock\r\n // const features = 'Adjustable Base,Pressure Relief,Cooling Technology,Hypo Allergenic'.split(',');\r\n\r\n let sleepDisruptors: string[] = [];\r\n if (features?.includes('Adjustable Base Friendly') || productType === 'Adjustable Bases') {\r\n sleepDisruptors.push('Sleep Apnea', 'Acid Reflux', 'Snoring');\r\n }\r\n if (features?.includes('Cooling Technology') || features?.includes('Breathable')) {\r\n sleepDisruptors.push('Temperature');\r\n }\r\n if (features?.includes('Hypo Allergenic')) {\r\n sleepDisruptors.push('Allergies');\r\n }\r\n if (features?.includes('Pressure Relief') || features?.includes('Support')) {\r\n sleepDisruptors.push('Pain', 'Toss And Turn');\r\n }\r\n if (features?.includes('Motion Separation')) {\r\n sleepDisruptors.push('Bed Partner');\r\n }\r\n\r\n sleepDisruptors = sleepDisruptors.sort((a, z) => a.localeCompare(z));\r\n\r\n if (sleepDisruptors?.length) {\r\n return (\r\n {\r\n return (\r\n <>\r\n {sleepDisuptorIconsData && sleepDisuptorIconsData[sleepDisruptor] ? (\r\n
\r\n \r\n
\r\n ) : (\r\n
\r\n )}\r\n {sleepDisruptor}\r\n \r\n );\r\n })}\r\n linkHref={aboutLink?.linkUrl.destinationUrl}\r\n linkAreaLabel={aboutLink?.ariaLabel}\r\n linkText={aboutLink?.linkText}\r\n />\r\n );\r\n\r\n } else {\r\n return <>;\r\n }\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 (binding.modules['mfrm-helps-with-sleep-disruptors'] = {\n c: () => require('partner/modules/mfrm-helps-with-sleep-disruptors/mfrm-helps-with-sleep-disruptors.tsx'),\n $type: 'contentModule',\n da: [{name:'productSpecificationData', path:'data-actions/get-attributes-for-selected-variant', runOn: 0},{name:'sleepDisuptorIconsData', path:'data-actions/get-sleep-disruptor-icons.action', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'mfrm-helps-with-sleep-disruptors',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/mfrm-helps-with-sleep-disruptors'\n });\n \n\n {\n const sanitizedActionPath = 'data-actions/get-attributes-for-selected-variant';\n let dataAction = require('partner/data-actions/get-attributes-for-selected-variant');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = 'data-actions/get-sleep-disruptor-icons.action';\n let dataAction = require('partner/data-actions/get-sleep-disruptor-icons.action');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|modules|mfrm-helps-with-sleep-disruptors|mfrm-helps-with-sleep-disruptors'] = {\n c: () => require('partner/modules/mfrm-helps-with-sleep-disruptors/mfrm-helps-with-sleep-disruptors.view.tsx'),\n cn: '__local__-__local__-mfrm-helps-with-sleep-disruptors'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["AttributesForSelectedVariantInput","constructor","productId","channelId","selectedProduct","catalogId","getCacheKey","getCacheObjectType","dataCacheType","this","createAttributesForSelectedVariantInput","inputData","getSelectedProductIdFromActionInput","requestContext","apiSettings","Error","async","getAttributesForSelectedVariantAction","input","ctx","Promise","resolve","then","activeProduct","selectedVariantInput","SelectedVariantInput","getSelectedVariant","productResult","getAttributeValuesAsync","callerContext","queryResultSettings","RecordId","attributeValues","catch","error","trace","message","createObservableDataAction","id","action","GetSleepDisruptorIcons","Msdyn365","sleepDisuptorIconsDataUrl","super","shouldCacheOutput","cacheObjectType","cacheKey","getSleepDisuptorIconsDataUrl","jsonUrl","app","config","sleepDisruptorIconDataUrl","res","data","MfrmHelpsWithSleepDisruptors","React","render","props","renderView","Caret","width","height","viewBox","fill","xmlns","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","TitleListAbout","_ref","title","list","linkHref","linkAreaLabel","linkText","className","map","item","i","key","href","role","_productSpecification","_productSpecification2","_sleepDisruptors","productSpecificationData","result","sleepDisuptorIconsData","titleHeadingTag","aboutLink","productSpecificationDataAttributeName","features","find","obj","_obj$Name","Name","toLowerCase","trim","TextValue","split","productType","_obj$Name2","toLocaleLowerCase","sleepDisruptors","includes","push","sort","a","z","localeCompare","length","sleepDisruptor","alt","src","linkUrl","destinationUrl","ariaLabel","binding","modules","dataActions","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","prototype","RegistrationId","c","require","$type","da","name","path","runOn","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}