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AAY,CAAK,EAG3EgC,MAAM,CAACK,GAAQ,CAAC,CAACA,EAAKzB,cAAc,EAtC7E,SAAS0B,CAA8B,EAClC,IAAMC,EAAS,CACZvC,CA0CmC4B,YA1CrB,GACdhB,eAAgB,KAChBC,qBAAsB,IAC1B,EAEI2B,EAAmB,GAWvB,OATAZ,EAAWT,OAAO,CAACV,IACf+B,GAAoB,GAAG/B,EAAUT,YAAY,CAACyC,QAAQ,CAAC,KAAOhC,EAAUT,YAAY,CAAC0C,KAAK,CAAC,KAAKnE,GAAG,CAACH,GAAMA,EAAGuE,IAAI,IAAMlC,EAAUT,YAAY,CAAE,CAAC,CACpJ,GAKAuC,EAAOvC,YAAY,CAFnBwC,EAEsBA,CAHtBA,EAAmBA,EAAiBI,KAAK,CAAC,EAAG,CAAC,IACVF,KAAK,CAAC,KAAKnE,GAAG,CAACH,GAAMA,GAIlDmE,CACX,EAsB2BR,EAAMC,MAAM,CAACK,GAAQ,CAACA,EAAKzB,cAAc,GAQ3D,CAET,EC9CsE,QAAEa,CAAO,GAAKC,EAOhF,MALH5B,CAAAA,EAAAA,EAAAA,CAAAA,CAAoBA,CAAC,CACd,GAAG6B,CAAa,CAChB3B,aAAc4B,GAAY,CAAC,EAAE,EAAE5B,cAAgB0B,CACnD,GAEO,IACX","sources":["webpack://_N_E/./contexts/reducers/GlobalReducer.js","webpack://_N_E/./lib/Constants/toastDefaults.js","webpack://_N_E/./contexts/GlobalContext.js","webpack://_N_E/?fb51","webpack://_N_E/./thirdparty/Nosto/helpers/GetCart.js","webpack://_N_E/./thirdparty/Nosto/hooks/useNostoEventTracker.js","webpack://_N_E/./thirdparty/Nosto/Nosto.helpers.js","webpack://_N_E/./thirdparty/Nosto/NostoEventTracker.jsx"],"sourcesContent":["/**\n* Global State Manager:\n* - only put things in here that are truly global (e.g. Cart & Customer Data, Theme)\n* otherwise make it a local state or pass it in a prop\n*/\n\n\n// use our initial state as a type of manifest for the Global State\nexport const initialState = {\n user: {\n isLoggedIn: false,\n email: \"\",\n customer_group_id: 5,\n exists: null,\n external_customer_id: 0,\n user_id: 0\n },\n cart: {},\n thirdParty: {\n zendesk: false,\n nostoSession: process.env.NODE_ENV === \"development\" ? \"64d25a2e95be7b70ae573a09\" : null\n },\n urlParams: {},\n urlAction: null,\n widget:{\n isOpen: false,\n component: null,\n showBackdrop: true,\n page: {\n component: null,\n }\n }\n}\n\n\nexport const GlobalReducer = (state, action) => {\n switch(action.type){\n\n case \"setUrlAction\": \n return{\n ...state,\n urlAction: action.data\n }\n\n\n case \"clearUrlParams\": {\n return{\n ...state,\n urlParams: {},\n urlAction: \"clear\",\n }\n }\n\n case \"initUrlParams\": {\n return {\n ...state,\n urlParams: {\n ...action?.data\n },\n urlAction: null\n }\n }\n\n case \"setAndApplyUrlParams\": {\n return {\n ...state,\n urlParams: {\n ...action?.data\n },\n urlAction: \"apply\"\n }\n }\n\n case \"setUrlParams\": {\n return {\n ...state,\n urlParams: {\n ...state.urlParams,\n ...action?.data\n }\n }\n }\n\n case \"closeWidget\":\n return{\n ...state,\n widget: {\n ...state.widget,\n isOpen: false,\n component: null,\n page: {\n component: null\n }\n }\n }\n\n case \"setWidgetPage\": \n return{\n ...state,\n widget: {\n ...state.widget,\n page: {\n ...action.data\n }\n }\n }\n\n case \"setWidget\":\n return{\n ...state,\n widget: {\n ...state.widget,\n ...action.data\n }\n }\n\n\n case \"nostoSession\":\n return{\n ...state,\n thirdParty:{\n ...state.thirdParty,\n nostoSession: action.data\n }\n }\n\n case \"zendeskInit\":\n return{\n ...state,\n thirdParty: {\n ...state.thirdParty,\n zendesk: action.data\n }\n }\n\n\n \n case \"login\":\n return{\n ...state,\n user: {\n ...state.user,\n isLoggedIn: true,\n ...action.data\n }\n };\n\n \n\n case \"setEmail\":\n return{\n ...state,\n user: {\n ...state.user,\n ...action.data\n }\n };\n\n\n \n case \"logout\":\n return{\n ...state,\n user: {\n ...state.user,\n isLoggedIn: false,\n data: {}\n }\n };\n \n\n default:\n throw new Error(\"Doh! You did not choose GlobalReducer method type to perform. Please try agin or go to GlobalContext.js for available types.\")\n }\n};\n","\n\n// Global Toast default Options\nexport const toastDefaults = {\n position: \"top-right\",\n autoClose: 5000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n progress: undefined,\n newestOnTop: true\n}\n\n","\"use client\"\n\nimport { useReducer, createContext } from 'react';\nimport { GlobalReducer, initialState } from './reducers/GlobalReducer';\nimport { ToastContainer } from 'react-toastify'\nimport { toastDefaults } from 'lib/Constants/toastDefaults';\n\n\nexport const GlobalContext = createContext();\n\n// Create our Provider with our Reducer as our state manager\nexport const GlobalContextProvider = props => {\n const [state, dispatch] = useReducer(GlobalReducer, initialState);\n\n return (\n \n {props.children}\n\n \n \n );\n};\n\n","import(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/CollectionRow/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/FormModal/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/ImageContentRow/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/PageModal/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/plp/DynamicHero/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/plp/ExplorationRow/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderCards/CardContent.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderDynamicHero/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderForm/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/display/CardMedia/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/display/Divider/Divider.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/display/ImageHotspot/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/display/RolloverImage/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/display/TextBlock/TextBlock.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderCTA/RenderCTA.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/MapRow/StoreLocator.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/display/Picture/Picture.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderHero/RenderHero.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/Masonry/Masonry.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderCards/RenderCards.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/display/Card/Card.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderRecipe/RenderRecipe.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderJobPost/RenderJobPost.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderHotspots/renderHotspots.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderBlogDrift/RenderBlogDrift.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderTextBlock/RenderTextBlock.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderAccordion/RenderAccordion.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderAccordionTextImage/TextImage.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderBlockquote/renderBlockquote.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/SectionFeature/SectionFeature.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/applications/blog/components/BlogFooter/BlogFooter.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/ProductFeature/ProductFeature.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/IconCategoryRow/IconCategoryRow.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/plp/HeaderFeature/HeaderFeature.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderHeadingCallout/RenderHeadingCallout.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderDefinitionList/RenderDefinitionList.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderHorizontalAd/RenderHorizontalAd.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/ImageContentRollover/ImageContentRollover.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderRecommendationRow/RenderRecommendationRow.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderHorizontalProductAccordion/RenderHorizontalProductAccordion.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/blocks/RenderVideoHero/RenderVideoHero.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/forms/Button/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/help/Chat/ChatButton.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/help/PhoneCallButton/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/components/navigation/SimpleDrawer/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/node_modules/next/dist/client/app-dir/link.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/node_modules/next/dist/client/image-component.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/node_modules/next/dist/shared/lib/lazy-dynamic/dynamic-bailout-to-csr.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/node_modules/next/dist/shared/lib/lazy-dynamic/preload-chunks.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/styles/globals/gridUtils.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/thirdparty/Cloudinary/cloudinaryLoader.js\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/thirdparty/Google/Maps/GetDirectionsButton.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/thirdparty/Google/Maps/MapsWrapper.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src540886287/src/authenteak-3.0/thirdparty/Nosto/NostoEventTracker.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src540886287/src/authenteak-3.0/thirdparty/Nosto/NostoPlacement.jsx\");\n","import { LocalStorage, storageKeys } from 'services/LocalStorage.service';\n\nexport const getCart = () => {\n const cartData = LocalStorage.getStorage(storageKeys.cart);\n\n if (cartData?.line_items?.physical_items || cartData?.line_items?.gift_certificates) {\n const cart = {\n id: cartData?.id,\n cart_amount: cartData?.cart_amount\n }\n\n // Cart Items to Nosto\n const physicalItems = cartData?.line_items?.physical_items.map((item) => {\n return {\n name: item.name,\n priceCurrencyCode: \"USD\",\n productId: item.product_id,\n quantity: item.quantity,\n skuId: item.sku,\n unitPrice: item.list_price\n }\n })\n const giftCertificates = cartData?.line_items?.gift_certificates.map((item) => {\n\t\t\t\treturn {\n\t\t\t\t\tname: item.name,\n\t\t\t\t\tpriceCurrencyCode: \"USD\",\n\t\t\t\t\tproductId: 'giftCertificate',\n\t\t\t\t\tquantity: item.quantity,\n\t\t\t\t\tskuId: 'giftCertificate',\n\t\t\t\t\tunitPrice: item.amount,\n\t\t\t\t};\n\t\t\t});\n return {...cart, items:[...physicalItems, ...giftCertificates] };\n\n } \n else {\n return [];\n }\n\n}","\"use client\"\n\n/* eslint-disable react-hooks/exhaustive-deps */\nimport { useContext, useEffect } from \"react\"\nimport { NostoContext } from \"../context/NostoContext\";\nimport { View404, ViewCart, ViewCategory, ViewFrontPage, ViewPage, ViewProduct, ViewSearch, ViewBlog, ViewOther } from \"../NostoEvents\"\nimport { GlobalContext } from \"contexts/GlobalContext\";\nimport { getCart } from \"../helpers/GetCart\";\n\nconst NostoEvent = {\n \"View404\": View404,\n \"ViewBlog\": ViewBlog,\n \"ViewCart\": ViewCart,\n \"ViewPage\": ViewPage,\n \"ViewOther\": ViewOther,\n \"ViewSearch\": ViewSearch,\n \"ViewProduct\": ViewProduct,\n \"ViewCategory\": ViewCategory,\n \"ViewFrontPage\": ViewFrontPage\n};\n\n\nfunction useNostoEventTracker({ event, placementIds=[], url, ...other }){\n const [ nostoState, dispatch ] = useContext(NostoContext)\n const [global, globalDispatch] = useContext(GlobalContext)\n const cartData = getCart();\n\n function callNostoEvent({ placement }) {\n NostoEvent[event].call(null, { \n placementIds: typeof placement === \"string\" ? placement : placement.placementIds,\n categoryTarget: placement?.categoryTarget ?? null,\n categoryNameTaxonomy: placement?.categoryNameTaxonomy ?? null,\n ...other,\n cart:cartData,\n session: global?.thirdParty?.nostoSession,\n callback: (data) => {\n const obj = {};\n\n if( Array.isArray(data) ){\n data.forEach(placement => {\n obj[placement?.resultId] = {\n ...placement\n }\n })\n dispatch({\n type: \"setRecommendations\",\n data: obj\n })\n }\n \n }\n })\n\n }\n\n\n useEffect(() => {\n if (event && placementIds && global?.thirdParty?.nostoSession) {\n const isLegacyPlacementArray = Array.isArray(placementIds) && placementIds.every(placement => typeof placement === \"string\")\n\n // if its just an array of placement ids, make 1 call\n if( isLegacyPlacementArray ){\n callNostoEvent({ placement: placementIds.join(\",\") })\n\n } else {\n // if we have an array of objects, make multiple calls\n placementIds.forEach(placement => {\n callNostoEvent({ placement })\n })\n }\n }\n\n }, [ event, global?.thirdParty?.nostoSession, url ])\n\n}\n\n\n\nexport default useNostoEventTracker","\n// merge all of the other placements with no custom category targets to make 1 call\nfunction bulkMergePlacements(placements){\n const merged = {\n placementIds: \"\",\n categoryTarget: null,\n categoryNameTaxonomy: null\n };\n\n let mergedPlacements = \"\"\n\n placements.forEach(placement => {\n mergedPlacements += `${placement.placementIds.includes(\",\") ? placement.placementIds.split(\",\").map(id => id.trim()) : placement.placementIds },`\n })\n\n mergedPlacements = mergedPlacements.slice(0, -1)\n mergedPlacements = mergedPlacements.split(\",\").map(id => id)\n\n merged.placementIds = mergedPlacements;\n\n return merged;\n}\n\n\n\n\nexport function getPlacementIdsFromBlocks({ blocks = [] }){\n if( Array.isArray(blocks) && blocks.length ){\n let slots = blocks.filter(block => Object.hasOwn(block, \"placementId\")).map(block => {\n return {\n placementIds: block?.placementId,\n categoryNameTaxonomy: block?.categoryNameTaxonomy ?? null,\n categoryTarget: block?.categoryTarget ?? null,\n id: block.id\n }\n }) \n\n slots = slots.filter(id => id.placementIds !== null && id.placementIds !== undefined && id.placementIds !== \"\")\n\n // pull out the targeted placements\n const targetedPlacements = slots.filter(slot => !!slot.categoryTarget)\n\n // pull out the placements with no targets\n const placements = slots.filter(slot => !slot.categoryTarget)\n\n // merge the placements with no targets to make 1 call\n const merged = bulkMergePlacements(placements)\n\n return [\n ...targetedPlacements,\n merged\n ] \n }\n}\n","\"use client\"\n\nimport { getPlacementIdsFromBlocks } from \"./Nosto.helpers\";\nimport useNostoEventTracker from \"./hooks/useNostoEventTracker\";\n\n\nfunction NostoEventTracker({ blocks, slotIds = null, trackerObject }){\n const placements = blocks && !slotIds ? getPlacementIdsFromBlocks({ blocks }) : slotIds;\n\n\tuseNostoEventTracker({\n ...trackerObject,\n placementIds: placements?.[0]?.placementIds ?? slotIds\n })\n\n return null\n}\n\nexport default NostoEventTracker;"],"names":["initialState","user","isLoggedIn","email","customer_group_id","exists","external_customer_id","user_id","cart","thirdParty","zendesk","nostoSession","process","urlParams","urlAction","widget","isOpen","component","showBackdrop","page","GlobalReducer","state","action","type","data","Error","toastDefaults","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","progress","undefined","newestOnTop","createContext","props","dispatch","useReducer","GlobalContext","Provider","value","children","ToastContainer","stacked","getCart","cartData","LocalStorage","getStorage","storageKeys","line_items","physical_items","gift_certificates","id","cart_amount","physicalItems","map","name","item","priceCurrencyCode","productId","product_id","quantity","skuId","sku","unitPrice","list_price","giftCertificates","amount","items","View404","ViewBlog","ViewCart","ViewPage","ViewOther","ViewSearch","ViewProduct","ViewCategory","ViewFrontPage","useNostoEventTracker","event","placementIds","url","other","nostoState","useContext","NostoContext","global","globalDispatch","callNostoEvent","placement","NostoEvent","call","categoryTarget","categoryNameTaxonomy","session","callback","obj","Array","isArray","forEach","resultId","useEffect","every","join","NostoEventTracker","blocks","slotIds","trackerObject","placements","getPlacementIdsFromBlocks","length","slots","filter","block","Object","hasOwn","placementId","slot","bulkMergePlacements","merged","mergedPlacements","includes","split","trim","slice"],"sourceRoot":"","ignoreList":[]}