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,YAAYa,GAAuBC,GACtChB,EAAQE,YAAYa,GAAqBE,QAC1C,MAAM,IAAIC,MAAM,oBAAsBH,EAAsB,mCAEhEf,EAAQE,YAAYa,GAAqBE,QAAQE,UAAUC,eAAiBL,EACxEf,EAAQE,YAAYa,GAAqBE,QAAQE,UAAU/C,KAC3D4B,EAAQE,YAAYF,EAAQE,YAAYa,GAAqBE,QAAQE,UAAU/C,IAAM2C,IA0BzFM,CAF4B,6CACXjB,EAAQ,MAMjCkB,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAatB,QAApB,OACOqB,OAAOC,aAAatB,SAAW,IAC/BD,EAAQC,SAGXqB,OAAOC,aAAarB,YAApB,OACGoB,OAAOC,aAAarB,aAAe,IACnCF,EAAQE,aAEY,MAAMsB,EAAiB,GAC9BA,EAAe,6DAA+D,CACtFrB,EAAG,IAAMC,EAAQ,MACjBqB,GAAI,sCAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAApB,OAC2BF,OAAOC,aAAaC,gBAAkB,IACtCA,uBCnF3BE,EAAOC,QAAUvE,2BCAjBsE,EAAOC,QAAUC","sources":["webpack://mattressfirm/./src/modules/mfrm-buybox/list-page-state-buybox.ts?792c","webpack://mattressfirm/./src/modules/mfrm-utag-data/mfrm-utag-data.tsx?9fcd","webpack://mattressfirm/./src/modules/mfrm-utag-data/mfrm-utag-data.props.autogenerated.ts?8d3d","webpack://mattressfirm/./src/modules/mfrm-utag-data/mfrm-utag-data.view.tsx?60c1","webpack://mattressfirm/./lib/mfrm-utag-data/module-registration.js?085c","webpack://mattressfirm/external var \"React\"?0d3b","webpack://mattressfirm/external var \"ReactDOM\"?853b"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\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 { observable } from 'mobx';\r\n\r\n\r\n/**\r\n * ListPageState class\r\n */\r\nexport class ListPageStateBuyBox {\r\n @observable public variantId: string | undefined = '';\r\n @observable public itemId: string | undefined = '';\r\n @observable public name: string | undefined = '';\r\n @observable public categoryName: string | undefined = '';\r\n @observable public productBrandName: string | undefined = '';\r\n @observable public price: string | undefined = '';\r\n @observable public productUrl: string | undefined = '';\r\n @observable public productImageUrl: string | undefined = '';\r\n @observable public productSize: string | undefined = '';\r\n}\r\n\r\n/**\r\n * ListPageStateInput - action input\r\n */\r\nexport class ListPageStateBuyBoxInput implements IActionInput {\r\n public getCacheKey = () => `ListPageStateBuyBox`;\r\n public getCacheObjectType = () => 'ListPageStateBuyBox';\r\n public dataCacheType = (): CacheType => 'application';\r\n}\r\n\r\nexport async function listPageStateAction(\r\n input: ListPageStateBuyBoxInput,\r\n ctx: IActionContext\r\n): Promise {\r\n return new ListPageStateBuyBox();\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 ListPageStateBuyBoxInput();\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\n\r\nimport * as React from 'react';\r\n\r\nimport { IMfrmUtagDataProps } from './mfrm-utag-data.props.autogenerated';\r\n\r\nexport interface IMfrmUtagDataViewProps extends IMfrmUtagDataProps<{}> {}\r\n\r\n/**\r\n *\r\n * MfrmUtagData component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass MfrmUtagData 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 MfrmUtagData;\r\n","/**\r\n * Copyright (c) Microsoft Corporation\r\n * All rights reserved. See License.txt in the project root for license information.\r\n * IMfrmUtagData scriptModule Interface Properties\r\n * THIS FILE IS AUTO-GENERATED - MANUAL MODIFICATIONS WILL BE LOST\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport const enum pageType {\r\n home = 'home',\r\n product = 'product',\r\n category = 'category',\r\n search = 'search',\r\n content = 'content',\r\n shopping_guides = 'shopping_guides',\r\n brand = 'brand',\r\n holiday = 'holiday',\r\n sale = 'sale',\r\n checkout = 'checkout',\r\n confirmation = 'confirmation',\r\n cart = 'cart',\r\n orderconfirmation = 'orderconfirmation',\r\n error = 'error'\r\n}\r\n\r\nexport const enum pageContextType {\r\n product = 'product',\r\n search = 'search',\r\n content = 'content',\r\n storefront = 'storefront',\r\n cart = 'cart',\r\n sale = 'sale',\r\n checkout = 'checkout',\r\n orderconfirmation = 'orderconfirmation',\r\n error = 'error',\r\n compare = 'compare',\r\n myaccount = 'myaccount',\r\n haulaway = 'haulaway',\r\n orderhistory = 'orderhistory'\r\n}\r\n\r\nexport interface IMfrmUtagDataConfig {\r\n pageType?: pageType;\r\n pageContextType?: pageContextType;\r\n}\r\n\r\nexport interface IMfrmUtagDataProps extends Msdyn365.IModule {\r\n config: IMfrmUtagDataConfig;\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 { isNonceEnabled, SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\r\nimport * as React from 'react';\r\nimport { IMfrmUtagDataViewProps } from './mfrm-utag-data';\r\nimport { IMfrmUtagDataData } from './mfrm-utag-data.data';\r\nimport { IMfrmUtagDataProps, pageType as PageTypeOptions } from './mfrm-utag-data.props.autogenerated';\r\n\r\nexport default (props: IMfrmUtagDataProps) => {\r\n const source = getPageScript(props);\r\n const nonceToken = props.context && isNonceEnabled(props.context.request);\r\n const scriptHtml = ``;\r\n\r\n // tslint:disable-next-line: react-no-dangerous-html\r\n return React.createElement(SDK_FRAGMENT_NAME, { key: props.id, dangerouslySetInnerHTML: { __html: scriptHtml } });\r\n};\r\n\r\nconst getPageScript = (props: IMfrmUtagDataProps) => {\r\n // Build an array of utag data.\r\n const utag_extra = ['...utag_data', 'new_site: newSiteCookie'];\r\n\r\n // Append values to utag array.\r\n const pageTypeVars = getPageTypeVars(props);\r\n !!pageTypeVars && utag_extra.push(pageTypeVars);\r\n\r\n const pageContextTypeVars = getPageContextTypeVars(props);\r\n !!pageContextTypeVars && utag_extra.push(pageContextTypeVars);\r\n\r\n const productTypeVars = getProductTypeVars(props);\r\n !!productTypeVars && utag_extra.push(productTypeVars);\r\n\r\n // Merge values using a comma as glue.\r\n return `${getCookieFunction()}utag_data = { ${utag_extra.join(', ')} };`;\r\n};\r\n\r\nconst getPageTypeVars = (props: IMfrmUtagDataViewProps) => {\r\n const { pageType } = props.config;\r\n\r\n if (pageType) {\r\n if (pageType === PageTypeOptions.search) {\r\n return `page_type: 'search', search_term: '${getSearchTerm(props)}'`;\r\n } else {\r\n return `page_type: '${pageType.toLowerCase()}'`;\r\n }\r\n } else {\r\n return '';\r\n }\r\n};\r\n\r\nconst getPageContextTypeVars = (props: IMfrmUtagDataViewProps) => {\r\n const { pageContextType } = props.config;\r\n\r\n if (pageContextType) {\r\n return `page_context_type: '${pageContextType.toLowerCase()}'`;\r\n } else {\r\n return undefined;\r\n }\r\n};\r\n\r\nconst getProductTypeVars = (props: IMfrmUtagDataProps) => {\r\n const pageType = props.config.pageType?.toLocaleLowerCase();\r\n\r\n if (pageType === 'checkout' || pageType === 'cart' || pageType === 'product') {\r\n //product category\r\n const productData = props.data.listPageStateBuyBox?.result;\r\n const productName = productData?.name?.replace(/\\'/g, `'`);\r\n const productCategory = productData?.categoryName?.replace(/\\'/g, `'`);\r\n const productBrand = productData?.productBrandName?.replace(/\\'/g, ``);\r\n if (productData && productData.itemId) {\r\n return `product_id: ['${productData.itemId}'],\r\n product_name: ['${productName}'],\r\n product_category: ['${productCategory}'],\r\n product_brand: ['${productBrand}'],\r\n product_variant: ['${productData.variantId}'],\r\n product_price: ['${productData.price}'],\r\n product_url:['${productData.productUrl}'],\r\n product_image_url: ['${productData.productImageUrl}'],\r\n product_size:['${productData.productSize}']`;\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n return undefined;\r\n};\r\n\r\nconst getSearchTerm = (props: IMfrmUtagDataViewProps) => {\r\n return props.context.request.query?.q;\r\n};\r\n\r\nconst getCookieFunction = () => {\r\n // Build a cookie value getter in JS. We can't access the cookie data from this module.\r\n // Use the cookie values to set new_site and is_cart_active.\r\n return `\r\n let getCookieValue = (ck) => {\r\n let cookieValue,\r\n cookieKey = ck + '=',\r\n decodedCookie = decodeURIComponent(document.cookie),\r\n ca = decodedCookie.split(';');\r\n \r\n for (let i in ca)\r\n {\r\n // Trim left spaces\r\n let c = ca[i].replace(/^\\\\s+/, '');\r\n if (!!~c.indexOf(cookieKey)) {\r\n cookieValue = c.substring(cookieKey.length, c.length);\r\n }\r\n }\r\n \r\n return cookieValue;\r\n };\r\n\r\n var newSiteCookie = getCookieValue('d365_site') ? 'true' : 'false';\r\n var utag_data = typeof utag_data !== 'undefined' ? utag_data : {};\r\n const checkoutCheck = window.location.pathname.includes('checkout');\r\n var newCookies = getCookieValue('mfrm_basket_cookie');\r\n let basketNewObj = newCookies && JSON.parse(newCookies);\r\n\r\n var newCookiesProductUrl = getCookieValue('tealium_cart_products_url');\r\n var basketNewObjUrl = newCookiesProductUrl && JSON.parse(newCookiesProductUrl);\r\n\r\n var newCookiesProductData = getCookieValue('tealium_cart_products_details');\r\n var newCookiesProductDataObj = newCookiesProductData && JSON.parse(newCookiesProductData);\r\n\r\n var newCookiesProductQuantity = getCookieValue('tealium_cart_products_quantity');\r\n var newCookiesProductQuantityObj = newCookiesProductQuantity && JSON.parse(newCookiesProductQuantity);\r\n\r\n utag_data.cart_product_id = newCookiesProductDataObj && newCookiesProductDataObj.productIDsArray;\r\n utag_data.cart_product_category = newCookiesProductDataObj && newCookiesProductDataObj.productCatgoryArray;\r\n utag_data.cart_product_name = newCookiesProductDataObj && newCookiesProductDataObj.productNameArray;\r\n utag_data.cart_product_quantity = newCookiesProductQuantityObj && newCookiesProductQuantityObj.productQuantity;\r\n utag_data.cart_product_variant = newCookiesProductDataObj && newCookiesProductDataObj.variantRecord;\r\n utag_data.cart_product_size = newCookiesProductDataObj && newCookiesProductDataObj.productSize;\r\n utag_data.cart_product_price = newCookiesProductDataObj && newCookiesProductDataObj.cartProductPriceArray;\r\n utag_data.cart_url = basketNewObjUrl && basketNewObjUrl.cartUrl;\r\n utag_data.cart_product_image_url = basketNewObjUrl && basketNewObjUrl.productImageUrl;\r\n utag_data.cart_product_url = basketNewObjUrl && basketNewObjUrl.productURL;\r\n utag_data.cart_total_quantity = newCookiesProductQuantityObj && newCookiesProductQuantityObj.quantity;\r\n utag_data.cart_subtotal = newCookiesProductQuantityObj && newCookiesProductQuantityObj.subTotal;\r\n utag_data.core_item_flag = newCookiesProductQuantityObj && newCookiesProductQuantityObj.isCoreItem;\r\n utag_data.funnel_type = newCookiesProductQuantityObj && newCookiesProductQuantityObj.funnelType;\r\n if(checkoutCheck) {\r\n utag_data.product_discount = newCookiesProductDataObj && newCookiesProductDataObj.productDiscountArray;\r\n utag_data.product_brand = newCookiesProductDataObj && newCookiesProductDataObj.productBrandName;\r\n utag_data.product_id = newCookiesProductDataObj && newCookiesProductDataObj.productIDsArray;\r\n utag_data.product_category = newCookiesProductDataObj && newCookiesProductDataObj.productCatgoryArray;\r\n utag_data.product_name = newCookiesProductDataObj && newCookiesProductDataObj.productNameArray;\r\n utag_data.product_quantity = newCookiesProductQuantityObj && newCookiesProductQuantityObj.productQuantity;\r\n utag_data.product_variant = newCookiesProductDataObj && newCookiesProductDataObj.variantRecord;\r\n utag_data.product_size = newCookiesProductDataObj && newCookiesProductDataObj.productSize;\r\n utag_data.product_price = newCookiesProductDataObj && newCookiesProductDataObj.productPriceArray;\r\n utag_data.product_image_url = basketNewObjUrl && basketNewObjUrl.productImageUrl;\r\n utag_data.product_url = basketNewObjUrl && basketNewObjUrl.productURL;\r\n }\r\n\r\n utag_data.cart_product_image_url_1 = basketNewObjUrl && basketNewObjUrl.productImageUrl[0];\r\n utag_data.cart_product_image_url_2 = basketNewObjUrl && basketNewObjUrl.productImageUrl[1];\r\n utag_data.cart_product_image_url_3 = basketNewObjUrl && basketNewObjUrl.productImageUrl[2];\r\n\r\n utag_data.cart_product_name_1 = newCookiesProductDataObj && newCookiesProductDataObj.productNameArray[0];\r\n utag_data.cart_product_name_2 = newCookiesProductDataObj && newCookiesProductDataObj.productNameArray[1];\r\n utag_data.cart_product_name_3 = newCookiesProductDataObj && newCookiesProductDataObj.productNameArray[2];\r\n\r\n if(!basketNewObj || basketNewObj.cartDataInfo?.length === 0) {\r\n [\r\n 'cart_product_id',\r\n 'cart_product_category',\r\n 'cart_product_name',\r\n 'cart_product_price',\r\n 'cart_product_quantity',\r\n 'cart_product_variant',\r\n 'cart_product_size',\r\n 'cart_product_image_url',\r\n 'cart_product_url',\r\n 'cart_total_quantity',\r\n 'cart_subtotal',\r\n 'cart_product_name_1',\r\n 'cart_product_name_2',\r\n 'cart_product_name_3',\r\n 'cart_product_image_url_1',\r\n 'cart_product_image_url_2',\r\n 'cart_product_image_url_3',\r\n 'cart_url',\r\n 'core_item_flag',\r\n 'funnel_type'\r\n ].forEach(e => delete utag_data[e]);\r\n \r\n }\r\n utag_data.is_cart_active = (\r\n (basketCookie) => {\r\n let basketCookieObj = basketCookie && JSON.parse(basketCookie);\r\n if(basketCookieObj) {\r\n return basketCookieObj.cartDataInfo?.length > 0 ? \"true\" : \"false\";\r\n }\r\n \r\n return \"false\";\r\n })(getCookieValue('mfrm_basket_cookie'));\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-utag-data'] = {\n c: () => require('partner/modules/mfrm-utag-data/mfrm-utag-data.tsx'),\n $type: 'scriptModule',\n da: [{name:'listPageStateBuyBox', path:'modules/mfrm-buybox/list-page-state-buybox', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'mfrm-utag-data',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/mfrm-utag-data'\n });\n \n\n {\n const sanitizedActionPath = 'modules/mfrm-buybox/list-page-state-buybox';\n let dataAction = require('partner/modules/mfrm-buybox/list-page-state-buybox');\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-utag-data|mfrm-utag-data'] = {\n c: () => require('partner/modules/mfrm-utag-data/mfrm-utag-data.view.tsx'),\n cn: '__local__-__local__-mfrm-utag-data'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["ListPageStateBuyBox","constructor","variantId","itemId","name","categoryName","productBrandName","price","productUrl","productImageUrl","productSize","__decorate","observable","ListPageStateBuyBoxInput","getCacheKey","getCacheObjectType","dataCacheType","async","listPageStateAction","input","ctx","createListPageInput","inputData","createObservableDataAction","action","MfrmUtagData","React","render","this","props","renderView","pageType","pageContextType","source","getPageScript","nonceToken","context","isNonceEnabled","request","scriptHtml","SDK_FRAGMENT_NAME","key","id","dangerouslySetInnerHTML","__html","utag_extra","pageTypeVars","getPageTypeVars","push","pageContextTypeVars","getPageContextTypeVars","productTypeVars","getProductTypeVars","getCookieFunction","join","config","PageTypeOptions","getSearchTerm","toLowerCase","toLocaleLowerCase","productData","data","listPageStateBuyBox","result","productName","replace","productCategory","productBrand","query","q","binding","modules","dataActions","c","require","$type","da","path","runOn","iNM","ns","n","p","pdp","md","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","registerSanitizedActionPath","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}