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aAAatB,QAAOuB,EAAAA,EAAA,GACpBF,OAAOC,aAAatB,SAAW,IAC/BD,EAAQC,SAGXqB,OAAOC,aAAarB,YAAWsB,EAAAA,EAAA,GAC5BF,OAAOC,aAAarB,aAAe,IACnCF,EAAQE,aAEY,MAAMuB,EAAiB,GAC9BA,EAAe,qFAAuF,CAC9GtB,EAAGA,IAAMC,EAAQ,MACjBsB,GAAI,kDAEpBJ,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaE,eAAcD,EAAAA,EAAA,GACPF,OAAOC,aAAaE,gBAAkB,IACtCA,UCnF3BE,EAAOC,QAAUvG,cCAjBsG,EAAOC,QAAUC","sources":["webpack://mattressfirm/./src/data-actions/get-attributes-for-selected-variant.ts?4859","webpack://mattressfirm/./src/modules/mfrm-best-for-sleep-styles/mfrm-best-for-sleep-styles.tsx?81a9","webpack://mattressfirm/./src/modules/mfrm-best-for-sleep-styles/mfrm-best-for-sleep-styles.view.tsx?4431","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-best-for-sleep-styles/module-registration.js?1830","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.\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 { IMfrmBestForSleepStylesData } from './mfrm-best-for-sleep-styles.data';\r\nimport { IMfrmBestForSleepStylesProps } from './mfrm-best-for-sleep-styles.props.autogenerated';\r\n\r\nexport interface IMfrmBestForSleepStylesViewProps extends IMfrmBestForSleepStylesProps {}\r\n\r\n/**\r\n *\r\n * MfrmBestForSleepStyles component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass MfrmBestForSleepStyles 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 MfrmBestForSleepStyles;\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 { IMfrmBestForSleepStylesViewProps } from './mfrm-best-for-sleep-styles';\r\nimport { TitleListAbout } from '../mfrm-helps-with-sleep-disruptors/mfrm-helps-with-sleep-disruptors.view';\r\n\r\nexport default (props: IMfrmBestForSleepStylesViewProps) => {\r\n const {\r\n data: {\r\n productSpecificationData: { result }\r\n },\r\n config: { titleHeadingTag, sleepStyle, aboutLink, sleepStyleOptions }\r\n } = props;\r\n const sleepPosition = result && sleepStyle\r\n ? result.find(obj => obj.Name && obj.Name.toLowerCase().trim() === sleepStyle.toLowerCase().trim())?.TextValue\r\n : undefined;\r\n const sleepDisplayNameOptions = sleepStyleOptions?.find(option => option.selectedSleepStyle === sleepPosition);\r\n if (sleepPosition && sleepPosition !== 'NO') {\r\n return (\r\n \r\n );\r\n } else {\r\n return (<>\r\n );\r\n }\r\n};\r\n\r\n\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-best-for-sleep-styles'] = {\n c: () => require('partner/modules/mfrm-best-for-sleep-styles/mfrm-best-for-sleep-styles.tsx'),\n $type: 'contentModule',\n da: [{name:'productSpecificationData', path:'data-actions/get-attributes-for-selected-variant', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'mfrm-best-for-sleep-styles',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/mfrm-best-for-sleep-styles'\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 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-best-for-sleep-styles|mfrm-best-for-sleep-styles'] = {\n c: () => require('partner/modules/mfrm-best-for-sleep-styles/mfrm-best-for-sleep-styles.view.tsx'),\n cn: '__local__-__local__-mfrm-best-for-sleep-styles'\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","MfrmBestForSleepStyles","React","render","props","renderView","_result$find","data","productSpecificationData","result","config","titleHeadingTag","sleepStyle","aboutLink","sleepStyleOptions","sleepPosition","find","obj","Name","toLowerCase","trim","TextValue","undefined","sleepDisplayNameOptions","option","selectedSleepStyle","TitleListAbout","title","list","sleepStyleDisplayName","linkHref","linkUrl","destinationUrl","linkAreaLabel","ariaLabel","linkText","Caret","width","height","viewBox","fill","xmlns","d","stroke","strokeWidth","strokeLinecap","strokeLinejoin","_ref","className","map","item","i","key","href","role","_productSpecification","_productSpecification2","_sleepDisruptors","sleepDisuptorIconsData","productSpecificationDataAttributeName","features","_obj$Name","split","productType","_obj$Name2","toLocaleLowerCase","sleepDisruptors","includes","push","sort","a","z","localeCompare","length","sleepDisruptor","alt","src","binding","modules","dataActions","c","require","$type","da","name","path","runOn","iNM","ns","n","p","pdp","md","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","prototype","RegistrationId","window","__bindings__","_objectSpread","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}