(self.webpackChunk_klaviyo_onsite_modules=self.webpackChunk_klaviyo_onsite_modules||[]).push([[4430],{90634:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});const o={profile:["hub","profile"],recentOrders:["hub","orders","recent"],recommendedProducts:e=>["hub","products","recommended",e],getOrderKey:e=>["hub","order",e],getContentBlocksUnauthenticated:e=>["hub","contentBlocks",e],getContentBlocks:(e,t)=>["hub","contentBlocks",e,t],getContentBlocksForIdentifiedProfile:(e,t)=>["hub","contentBlocks","identified",e,t],getShouldShowAddToCartPopover:(e,t)=>["hub","addToCartPopover",e,t],getShouldShowAddToCartPopoverUnauthenticated:()=>["hub","addToCartPopover"],getRecentProductsKey:["hub","products","recent"],getWishlistKey:["hub","wishlist"],getHelp:["hub","orderHelp","getHelp"],updateProfile:["hub","profile","update"],updateProfileConsent:["hub","profile","update","consent"],activeTicket:e=>["hub","tickets","active",e],activeMessages:["hub","messages","active"],createTicket:["hub","tickets","create"],closeTicket:["hub","tickets","close"],faqs:e=>["hub","faqs",e],markTicketRead:["hub","tickets","read"],indicateUserTyping:["hub","tickets","typing"],sendMessage:["hub","send","message"],sendEmailIdentificationMessage:["hub","send","email"],sendYesNoResponseMessage:["hub","send","yesNo"],couponsLoggedIn:(e=!1)=>["hub","coupons",e],couponsCount:["hub","coupons","count"],initiateLogin:["initiateLogin"],verifyLogin:["verifyLogin"],subscribeToList:["marketing","subscribe"],hydrateProductKey:e=>["hub","products","hydrate",e],storefrontLogin:["auth","storefrontLogin"],storefrontLocales:["storefront","locales"],storefrontCurrentLocale:["storefront","locale"],loyaltyTiers:["hub","loyalty","tiers"],loyaltyCustomer:["hub","loyalty","customer"],loyaltyPurchaseReward:["hub","loyalty","purchaseReward"],loyaltyCoupons:["hub","loyalty","coupons"],reviewsSettings:["reviews","settings"],cart:["hub","cart"],applyCoupon:["hub","coupon","apply"],getOrderStatusKey:e=>["hub","order","status",e],getCompanyAppStatusKey:(e,t)=>["hub","company-app","status",e,t],initiateReturn:e=>["hub","order",e,"initiate-return"],csatSettings:(e,t)=>["hub","csat","settings",e,t],submitCSAT:["hub","csat","submit"],conversationStarters:["hub","conversation","starters"]}},33996:function(e,t,n){"use strict";n.d(t,{$7:function(){return p},AF:function(){return P},AL:function(){return s},BB:function(){return o},BY:function(){return h},FH:function(){return g},Fo:function(){return R},JJ:function(){return y},Nf:function(){return i},Ny:function(){return C},OU:function(){return A},Ox:function(){return d},QE:function(){return L},RF:function(){return T},RZ:function(){return a},S0:function(){return c},WJ:function(){return v},Wg:function(){return O},XS:function(){return b},Xj:function(){return N},Xl:function(){return f},ZW:function(){return D},bY:function(){return E},cy:function(){return S},dJ:function(){return H},eb:function(){return I},l1:function(){return U},me:function(){return u},nm:function(){return l},pv:function(){return _},ww:function(){return w},xP:function(){return r},yS:function(){return m}});const o=!0,r="__kl_sms_req",i="welcome-ticket",s="klaviyo",a={SHOPIFY:"Shopify",OTHER:"Other"},u={MOBILE:"Mobile",DESKTOP:"Desktop"},c={CUSTOMER_HUB_ACCOUNT:"Customer Hub Account",CUSTOMER_HUB_LAST_LOGIN:"Customer Hub Last Login"},l={RECENTLY_VIEWED:"Recently viewed",FAVORITES:"Favorites",RECOMMENDED:"Recommended",BUY_AGAIN:"Buy Again",PRODUCT_DETAILS_PAGE:"Product details page",PRODUCT_LISTING_PAGES:"Product listing pages",FOR_YOU:"For You page",ORDER:"Order",ORDERS:"Orders",HUB_LAUNCHER:"Hub Launcher",FAQ:"FAQ",FAQ_WIDGET:"FAQ Widget",CHAT:"Chat",AI_AGENT:"AI_AGENT",ADD_TO_CART_POPOVER:"Add to Cart Popover"},d={UNIQUE_ID:"unique_id",ORDER:"Order",ORDER_ID:"Order ID",LINE_ITEMS:"Line Items",ORDER_NAME:"Order Name",STATUS:"Status",TOTAL_DISCOUNTS:"Total Discounts",PRODUCT:"Product",PRODUCT_ID:"Product ID",PRODUCT_NAME:"Product Name",PRODUCT_URL:"Product URL",VARIANT:"Variant",VARIANT_ID:"Variant ID",VARIANT_NAME:"Variant Name",IMAGE_URL:"Image URL",CONTENT_BLOCK:"Content Block",ADD_TO_CART_SOURCE:"Add to Cart Source",VIEW_SOURCE:"View Source",COUPON_CODE:"Coupon Code",COUPON_NAME:"Coupon Name",COUPON_ID:"Coupon ID",COUPON_DESCRIPTION:"Coupon Description",COUPON:"Coupon",NEW_USER:"New User",FAVORITE_SOURCE:"Add to Favorites Source",WEB_CHAT_USER_TYPE:"Web Chat User Type",CLIENT_ID:"Client ID",SENDER_TYPE:"Sender Type",MESSAGE_ID:"Message ID",CONVERSATION_ID:"Conversation ID",WEB_CHAT_SOURCE:"Web Chat Source",CSAT_RATING:"CSAT Rating",POINTS_BALANCE:"Points Balance",NEXT_TIER:"Next Tier",NEXT_TIER_NAME:"Next Tier Name",NEXT_TIER_ID:"Next Tier ID",BEST_TIER:"Best Tier",BEST_TIER_NAME:"Best Tier Name",BEST_TIER_ID:"Best Tier ID",FAQ_SOURCE:"FAQ Source",FAQ_ID:"FAQ ID",FAQ_NAME:"FAQ Name"},C={WEB_CHAT_USER_TYPE:"web_chat_user_type",CLIENT_ID:"client_id",SENDER_TYPE:"sender_type",MESSAGE_ID:"message_id",CONVERSATION_ID:"conversation_id",WEB_CHAT_SOURCE:"web_chat_source",ROUTE:"route",LOYALTY_PROVIDER:"loyalty_provider"},E={CUSTOMER_HUB:"Customer Hub"},f={OPENED_CUSTOMER_HUB:"Opened Customer Hub",VIEWED_ORDER:"Customer Hub Viewed Order",CLICKED_BUY_AGAIN:"Customer Hub Clicked Buy Again",CLICKED_ADD_TO_CART:"Customer Hub Clicked Add to Cart",CLICKED_TRACK_SHIPMENT:"Customer Hub Clicked Track Shipment",CLICKED_START_RETURN:"Customer Hub Clicked Start Return",CLICKED_CONTENT_BLOCK:"Customer Hub Clicked Content Block",CLICKED_COUPON_BLOCK:"Customer Hub Clicked Coupons",CUSTOMER_HUB_LOGIN:"Customer Hub Login",CLICKED_BEGIN_GET_HELP_FLOW:"Customer Hub Clicked Get Help Flow",CLICKED_EXTERNAL_HELP_URL:"Customer Hub Clicked External Help url",CLICKED_GORGIAS_CHAT_GET_HELP:"Customer Hub Clicked Gorgias Chat Get Help",CLICKED_ORDER_LINE_ITEM:"Customer Hub Clicked Order Line Item",CLICKED_VIEW_ORDER:"Customer Hub Clicked View Order",ADD_FAVORITE_PRODUCT:"Customer Hub Add to Favorites",REMOVE_FAVORITE_PRODUCT:"Customer Hub Remove from Favorites",COUPON_APPLIED:"Customer Hub Coupon Applied",WEB_CHAT_CONVERSATION_STARTED:"Started Web Chat Conversation",WEB_CHAT_MESSAGE_SENT:"Sent Web Chat Message",WEB_CHAT_MESSAGE_RECEIVED:"Received Web Chat Message",WEB_CHAT_CONVERSATION_ESCALATED:"Web Chat Conversation Escalated",CSAT_SUBMITTED:"CSAT Submitted",LOYALTY_CLICKED_PROGRESS_BAR:"Customer Hub Clicked Loyalty Progress Bar",CLICKED_PRODUCT:"Customer Hub Clicked Product",CLICKED_FAQ:"Customer Hub Clicked FAQ"},g={VIEWED_CONTENT_BLOCK:"Customer Hub Viewed Content Block",VIEWED_ADD_TO_CART_POPOVER:"Customer Hub Viewed Add To Cart Popover"},m={CLICKED_FOR_YOU:"Customer Hub Clicked Hub Launcher For You",CLICKED_WISHLIST:"Customer Hub Clicked Hub Launcher Wishlist",CLICKED_CHAT:"Customer Hub Clicked Hub Launcher Chat",DISMISSED_FLOATING_MESSAGE:"Customer Hub Dismissed Hub Launcher Floating Message",CLICKED_FLOATING_MESSAGE:"Customer Hub Clicked Hub Launcher Floating Message"},p={LOYALTY_PROVIDER_LOADED:"customerHubLoyaltyProviderLoaded"},_={OPEN:"open",CLOSE:"close"},h=".klaviyo-wishlist-slot",T=".kl-hub-favorites-slot",v=".klaviyo-favorites-plp-slot",S=".klaviyo-faqs-slot",b=`${h}, ${S}, ${v}, ${T}`,O={ANONYMOUS:"Anonymous",IDENTIFIED:"Identified",AUTHENTICATED:"Authenticated"},I="robot",L="outgoing",R="incoming";let w=function(e){return e.loop="[RETURN_URL]/#/?order=[ORDER_NUMBER]&zip=[EMAIL]",e.aftership="[RETURN_URL]/api/instant?order_number=[ORDER_NUMBER]&email=[EMAIL]",e.parcel_lab="[RETURN_URL]/#/?ref=[ORDER_NUMBER]&email=[EMAIL]",e.narvar="[RETURN_URL]?email=[EMAIL]&order=[ORDER_NUMBER]",e.other="[RETURN_URL]",e}({});const A="window.customerHubApi",y="kservice-customer-hub",D="en-US",P={"en-US":{localeLabel:"English",regions:[{regionCode:"US",regionBCP47Code:"en-US"}]},"en-AU":{localeLabel:"English (Australia)",regions:[{regionCode:"AU",regionBCP47Code:"en-AU"}]},"fr-FR":{localeLabel:"Français",regions:[{regionCode:"FR",regionBCP47Code:"fr-FR"}]},"de-DE":{localeLabel:"Deutsch",regions:[{regionCode:"DE",regionBCP47Code:"de-DE"}]},"es-ES":{localeLabel:"Español (España)",regions:[{regionCode:"ES",regionBCP47Code:"es-ES"}]},"it-IT":{localeLabel:"Italiano",regions:[{regionCode:"IT",regionBCP47Code:"it-IT"}]},"pt-BR":{localeLabel:"Português",regions:[{regionCode:"BR",regionBCP47Code:"pt-BR"}]},"ko-KR":{localeLabel:"한국어",regions:[{regionCode:"KR",regionBCP47Code:"ko-KR"}]},"da-DK":{localeLabel:"Dansk",regions:[{regionCode:"DK",regionBCP47Code:"da-DK"}]},"en-GB":{localeLabel:"English (Great Britain)",regions:[{regionCode:"GB",regionBCP47Code:"en-GB"}]},"fi-FI":{localeLabel:"Suomi",regions:[{regionCode:"FI",regionBCP47Code:"fi-FI"}]},"hu-HU":{localeLabel:"Magyar",regions:[{regionCode:"HU",regionBCP47Code:"hu-HU"}]},"nl-NL":{localeLabel:"Nederlands",regions:[{regionCode:"NL",regionBCP47Code:"nl-NL"}]},"nb-NO":{localeLabel:"Norsk",regions:[{regionCode:"NO",regionBCP47Code:"nb-NO"}]},"sv-SE":{localeLabel:"Svenska",regions:[{regionCode:"SE",regionBCP47Code:"sv-SE"}]},"pt-PT":{localeLabel:"Português",regions:[{regionCode:"PT",regionBCP47Code:"pt-PT"}]},"es-MX":{localeLabel:"Español (México)",regions:[{regionCode:"MX",regionBCP47Code:"es-MX"}]},"pl-PL":{localeLabel:"Polski",regions:[{regionCode:"PL",regionBCP47Code:"pl-PL"}]},"ja-JP":{localeLabel:"日本語",regions:[{regionCode:"JP",regionBCP47Code:"ja-JP"}]}},N=["da-DK","de-DE","en-GB","en-AU","en-US","es-ES","es-MX","fi-FI","fr-FR","hu-HU","it-IT","ja-JP","ko-KR","nl-NL","nb-NO","pl-PL","pt-BR","pt-PT","sv-SE"];let U=function(e){return e[e.TEXT=0]="TEXT",e[e.RATING=1]="RATING",e[e.RATING_AND_TEXT=2]="RATING_AND_TEXT",e}({}),H=function(e){return e[e.EMOJIS=0]="EMOJIS",e[e.FLAT_ICONS=1]="FLAT_ICONS",e[e.STARS=2]="STARS",e}({})},17785:function(e,t,n){"use strict";n.d(t,{Cq:function(){return a},Dn:function(){return c},FV:function(){return g},Nc:function(){return C},Q7:function(){return l},au:function(){return s},lk:function(){return f},oF:function(){return u},pZ:function(){return i},qO:function(){return d},tE:function(){return E}});n(26650),n(92461),n(60873);const o="atlas_anonymous_token",r="onsite_client_id";function i(){return localStorage.getItem(o)}function s(e){e?localStorage.setItem(o,e):localStorage.removeItem(o)}function a(){return localStorage.getItem(r)}function u(e){e?localStorage.setItem(r,e):localStorage.removeItem(r)}function c(){return localStorage.getItem("atlas_token")}function l(e){e?localStorage.setItem("atlas_token",e):localStorage.removeItem("atlas_token")}function d(){localStorage.setItem("welcomeMessageDismissed","true")}function C(){localStorage.removeItem("welcomeMessageDismissed")}function E(e){if(e)try{const t=function(e){const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(window.atob(t).split("").map((function(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`})).join(""));return JSON.parse(n)}(e);return t}catch(e){return}}function f(){var e,t;return null!=(e=null==(t=window.klaviyoModulesObject)?void 0:t.companyId)?e:""}function g(){return window.customerHub}},29485:function(e,t,n){"use strict";n.d(t,{A:function(){return s},B:function(){return a}});var o=n(18359),r=n.n(o);const i=(0,o.createContext)(void 0);function s(){const e=(0,o.useContext)(i);if(!e)throw new Error("useECommerceClient: No ECommerceProvider found.");return e}const a=({client:e,children:t})=>r().createElement(i.Provider,{value:e},t)},51672:function(e,t,n){"use strict";n.d(t,{_C:function(){return w},ZI:function(){return L},xh:function(){return R},nB:function(){return I},OZ:function(){return O},ql:function(){return b}});var o=n(18359),r=n.n(o),i=n(50657),s=n(17804);n(92461),n(84618),n(39265),n(44159),n(60873);var a=n(64928),u=n(47803),c=n(61678);const l=async(e,t,n)=>{try{const o=((e,t)=>{const n={};return Object.entries(e).forEach((([e,o])=>{n[`${t}.${e}`]=o})),n})(await e(t,n),n);return{success:!0,messages:o}}catch(e){return{success:!1,messages:{}}}},d=(e,t)=>async n=>{const o=t.map((t=>l(e,n,t))),r=await Promise.all(o);if(r.every((e=>!e.success)))throw new Error(`All namespaces failed to load for locale: ${n}`);return(e=>{const t={};return e.forEach((e=>{Object.assign(t,e.messages)})),t})(r)},C=e=>{const t=[e],n=(e=>{var t;const n=e.split("-")[0];return null==(t=Object.entries(c.XJ).find((([e])=>e===n)))?void 0:t[1]})(e);return n&&n!==e&&t.push(n),t.includes(c.ZW)||t.push(c.ZW),t},E=(e,t,n,o)=>{e.load(t,n),e.activate(t),o(t)},f=async e=>{const{lng:t,ns:n,resourceLoader:o}=e,r=d(o,n),{messages:i,actualLocale:s}=await(async(e,t)=>{try{return{messages:await e(t),actualLocale:t}}catch(n){if(t!==c.ZW)try{return{messages:await e(c.ZW),actualLocale:c.ZW}}catch(e){return{messages:{},actualLocale:t}}return{messages:{},actualLocale:t}}})(r,t),l=(e=>{const t=(0,a.E5)({locale:e,locales:C(e)});return t.setMessagesCompiler(u.S),t})(s);let f=s;Object.keys(i).length>0&&(l.load(s,i),l.activate(s)),Object.defineProperty(l,"locale",{get:()=>f,configurable:!0});const g=((e,t,n)=>async o=>{try{const r=await e(o);E(t,o,r,n)}catch(r){if(o!==c.ZW)try{const o=await e(c.ZW);E(t,c.ZW,o,n)}catch(e){}}})(r,l,(e=>{f=e}));return{i18nInstance:l,switchToLocale:g}};const g=e=>{const{children:t,i18nInstance:n,switchToLocale:a,locale:u}=e,[c,l]=(0,o.useState)(u);(0,o.useEffect)((()=>{n&&l(n.locale)}),[n]),(0,o.useEffect)((()=>{l(u)}),[u]);const d=(0,o.useMemo)((()=>({currentLocale:c,setCurrentLocale:async e=>{await a(e),l(n.locale)},i18nInstance:n})),[c,n,a]);return n?r().createElement(s.bd,{i18n:n},r().createElement(i.W.Provider,{value:d},t)):null};var m=n(52901),p=n(33996);const _=async(e,t)=>{if(e===p.ZW){return(await n(28367)(`./${t}/${e}/translations.json`)).default}try{const n=await fetch(`https://static-app.klaviyo.com/translations/${e}/${t}/latest.json`,{credentials:"omit",cache:"default"});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);return await n.json()}catch(o){if("en-US"!==e)try{return(await n(59229)(`./${t}/en-US/translations.json`)).default}catch(e){throw o}throw o}};var h=n(10985),T=n(29485),v=n(90634);const S="atlas_preferred_locale";function b(){if(!(0,o.useContext)(i.W))throw new Error("useLocalization: no LocalizationProvider found.");const e=function(e){const{i18n:t,_:n}=(0,s.mV)();return{t:(t,o)=>{const r=`${String(e)}.${t}`;return n(r,o)},i18n:t,ready:!0}}("onsite-atlas");return e}function O(){const{currentLocale:e}=(0,i.Q)();return function(t,n){if(null==t)return;return function(e,t,n){return new Intl.DateTimeFormat(t,n).format(e)}("string"==typeof t?new Date(t):t,e,n)}}function I(){const{currentLocale:e}=(0,i.Q)();return function(t,n){if(null!=t)return function(e,t,n){return new Intl.NumberFormat(n,{style:"currency",currency:t}).format(e)}(t,n,e)}}const L=async e=>f({lng:e,ns:["onsite-atlas"],resourceLoader:_}),R=()=>{let e=()=>[];return e=(0,T.A)().getAvailableLocales,(0,m.ZP)(v.g.storefrontLocales,e)},w=({children:e,i18nInstance:t})=>{var n;const[i,s]=(0,o.useState)(t),a=(0,h.rV)(),{data:u}=R(),{data:c}=(()=>{let e=()=>{};return e=(0,T.A)().getCurrentLocale,(0,m.ZP)(v.g.storefrontCurrentLocale,e)})(),l=(0,T.A)().setLocale,d=r().useCallback((async e=>{null==i||i.switchToLocale(e),(e=>{e?localStorage.setItem(S,e):localStorage.removeItem(S)})(e),l(e)}),[i,l]),C=r().useCallback((e=>(!u||-1!==u.indexOf(e))&&(e in p.AF&&e)),[u]),E=C(r().useMemo((()=>{var e;return localStorage.getItem(S)||(null==(e=window.navigator.languages)?void 0:e[0])||window.navigator.language}),[]))||(null==(n=a.locale)?void 0:n.defaultOnsiteLocale)||c||p.ZW;return(0,o.useEffect)((()=>{i?null!=i&&i.i18nInstance&&i.i18nInstance.locale!==E&&i.switchToLocale(E):L(E).then((e=>{s(e)}))}),[i,E]),null!=i&&i.i18nInstance?r().createElement(o.Suspense,{fallback:null},r().createElement(g,{i18nInstance:null==i?void 0:i.i18nInstance,switchToLocale:d,locale:E},e)):null}},10985:function(e,t,n){"use strict";n.d(t,{MR:function(){return a},U_:function(){return u},mu:function(){return c},rV:function(){return s}});var o=n(18359),r=n.n(o);const i=(0,o.createContext)(void 0);function s(){const e=(0,o.useContext)(i);if(!e)throw new Error("useSettings: no settings provider found.");return e.settings}function a(){var e;return(null==(e=s().general)?void 0:e.storeType)||"custom"}function u(){const e=(0,o.useContext)(i);if(!e)throw new Error("useIsPreview: no settings provider found.");return e.isPreview}const c=({children:e,settings:t,isPreview:n=!1,previewData:s})=>{const a=(0,o.useMemo)((()=>({settings:t,isPreview:n,previewData:s})),[t,n,s]);return r().createElement(i.Provider,{value:a},e)}},15507:function(e,t,n){"use strict";n.d(t,{ZD:function(){return a},oG:function(){return c},w8:function(){return u}});var o=n(22314),r=n(71721),i=n(72345),s=n(33996);const a=(e,t)=>{if(!window.customerHub)return;const n={page:window.location.href,integration:window.Shopify?s.RZ.SHOPIFY:s.RZ.OTHER,device:(0,o.Z)()?s.me.MOBILE:s.me.DESKTOP};(0,r.eR)({metric:e,properties:Object.assign({},n,t),service:s.AL})},u=(e,t,n)=>{var r;if(null!=(r=window.klaviyoModulesObject)&&r.companyId){const r={logToStatsd:!0,logToS3:!0,logToMetricsService:!0,metric:t,metricServiceEventName:t},a={device_type:(0,o.Z)()?s.me.MOBILE:s.me.DESKTOP,page_url:window.location.href};(0,i.Z)({metricGroup:e,events:[Object.assign({},r,{eventDetails:Object.assign({},a,n)})],companyId:window.klaviyoModulesObject.companyId})}},c=(e,t,n)=>(0,r.ro)({fields:{email:e,[s.S0.CUSTOMER_HUB_ACCOUNT]:!0,[s.S0.CUSTOMER_HUB_LAST_LOGIN]:(new Date).toISOString()},callback:()=>(a(s.Xl.CUSTOMER_HUB_LOGIN,{[s.Ox.NEW_USER]:t}),n&&n(),!0)})},34254:function(e,t,n){"use strict";n.d(t,{d:function(){return o}});class o extends EventTarget{dispatchEvent(e){return super.dispatchEvent(e)}dispatch(e){const t=new CustomEvent(e.type,{detail:e});return this.dispatchEvent(t)}addEventListener(e,t,n){super.addEventListener(e,t,n)}removeEventListener(e){super.removeEventListener(e,null)}}},39003:function(e,t,n){"use strict";n.d(t,{a:function(){return o},r:function(){return r}});const o=new(n(34254).d),r={sendFavoriteAdded:e=>{o.dispatch({type:"favorite",data:{newFavorite:e}})},sendFavoriteRemoved:e=>{o.dispatch({type:"unfavorite",data:{removedFavorite:e}})},sendNewMessage:e=>{o.dispatch({type:"new-message",data:{message:e}})},sendMessageRead:e=>{o.dispatch({type:"message-read",data:{messageId:e}})},onFavoriteAdded:(e,t)=>{o.addEventListener("favorite",(t=>{e(t.detail)}),t)},onAddToCartScrollDown:(e,t)=>{o.addEventListener("addToCartScrollDown",(t=>{e(t.detail)}),t)},onAddToCartScrollUp:(e,t)=>{o.addEventListener("addToCartScrollUp",(t=>{e(t.detail)}),t)},onFavoriteRemoved:(e,t)=>{o.addEventListener("unfavorite",(t=>{e(t.detail)}),t)},onNewMessage:(e,t)=>{o.addEventListener("new-message",(t=>{e(t.detail)}),t)},onMessageRead:(e,t)=>{o.addEventListener("message-read",(t=>{e(t.detail)}),t)}}},61678:function(e,t,n){"use strict";n.d(t,{XJ:function(){return r},Yr:function(){return i},ZW:function(){return o}});const o="en-US",r={da:"da-DK",de:"de-DE",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",hu:"hu-HU",it:"it-IT",nl:"nl-NL",nb:"nb-NO",pt:"pt-BR",sv:"sv-SE",ko:"ko-KR",ptPT:"pt-PT",esMX:"es-MX",pl:"pl-PL",ja:"ja-JP"},i=Object.values(r)},50657:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},W:function(){return s}});var o=n(18359),r=n.n(o),i=n(61678);const s=r().createContext({currentLocale:i.ZW,setCurrentLocale:async()=>{}}),a=()=>{const e=r().useContext(s);if(!e)throw new Error("useI18n must be used within an InternationalizationProvider");return e}},61712:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});n(92461),n(39265);var o=n(61678);const r=e=>{const t=o.Yr.find((t=>t===e));if(t)return t;const n=Object.entries(o.XJ).find((([t])=>t===e));return n?n[1]:o.ZW}},19153:function(e,t,n){"use strict";t.Z=({tracking:e})=>{var t;const o=e?"https://static-tracking.klaviyo.com/onsite/js/":"https://static.klaviyo.com/onsite/js/",r=null==(t=window.klaviyoModulesObject)?void 0:t.assetSource;n.p=r?`${o}${r}`:o}},2104:function(e,t,n){"use strict";var o=n(19153),r=n(18359),i=n.n(r),s=n(61712),a=n(37190),u=n(17785),c=n(39003);var l=n(84509),d=n(33996);const C=e=>{var t,n,o;const r=null==(t=window.customerHub)?void 0:t.activeProduct;if(!r)return;if(!(0,l.O)("onsite_customer_hub_personalization"))return;const i=null!=(n=null==(o=e.widget)||null==(o=o.addToCartPopoverSettings)?void 0:o.scrollThresholdPercentage)?n:30;let s=0,a=!1,u=!1;window.addEventListener("scroll",(()=>{const e=(()=>{const e=document.documentElement.scrollHeight-window.innerHeight;return e<=0?0:window.scrollY/e*100})();!a&&e>=i&&e>s&&(a=!0,u=!1,c.a.dispatch({type:"addToCartScrollDown",data:{product:r}})),!u&&e{Promise.all([n.e(2462),n.e(5923),n.e(7537),n.e(4573)]).then(n.bind(n,63167)).then((t=>{t.evaluateTriggerDefinition({triggers:{triggers:{ELEMENT_EXISTS:{value:d.XS}}},compoundTriggers:[{triggers:[{triggerType:"ELEMENT_EXISTS",expectedToPass:!0,continuousTrigger:!0}],callback:()=>(async e=>{const[{renderFavoritesButton:t},{renderFavoritesIconButton:o},{renderFaqWidget:r}]=await Promise.all([Promise.all([n.e(2462),n.e(1700),n.e(5923),n.e(6656),n.e(1316),n.e(4661),n.e(9836),n.e(3443),n.e(9880)]).then(n.bind(n,19840)),Promise.all([n.e(2462),n.e(1700),n.e(5923),n.e(6656),n.e(1316),n.e(4661),n.e(9836),n.e(3443),n.e(1627)]).then(n.bind(n,65859)),Promise.all([n.e(2462),n.e(1700),n.e(5923),n.e(6656),n.e(4661),n.e(9836),n.e(4626)]).then(n.bind(n,43059))]);t(e),o(e),r(e)})(e)}]}),C(e)}))};var f=n(15507),g=n(34254);class m extends g.d{addEventListener(e,t,n){super.addEventListener(e,t,n)}}var p=n(51672);n(92461),n(60873);class _{constructor(e){this.settings=void 0,this.settings=e,this.setupCustomerHubApi()}setupCustomerHubApi(){var e=this;if(!window.customerHub)return;const t=window.customerHubApi||{};Object.assign(window,{customerHubApi:Object.assign({},t,{hydrateProduct:async function(t){window.customerHub&&Object.assign(window.customerHub,{activeProduct:null});const n=await e.fetchProduct(t);return n&&window.customerHub&&Object.assign(window.customerHub,{activeProduct:n}),n}})})}async fetchProduct(e){var t,o;const r=null==(t=window.customerHub)?void 0:t.storeDomain,i=null==(o=this.settings.headlessShopifySettings)?void 0:o.storefrontApiPublicKey;if(!r||!i)return null;try{const{HeadlessShopifyClient:t}=await Promise.all([n.e(2462),n.e(4661)]).then(n.bind(n,47620)),o=new t(r,i),s=`/products/${e}`,a=await o.getHydrateProduct(s);if(!a.product)return null;return{name:a.product.name||"",id:a.product.id||e,imageUrl:a.product.imageUrl||"",link:a.product.link||`/products/${e}`,variants:a.product.variants.map((t=>{var n;return{id:t.id||e,title:t.title||"",price:String(t.price||""),imageUrl:t.imageUrl||null,availableForSale:null==(n=t.availableForSale)||n,currency:t.currency||"USD"}}))}}catch(e){return null}}}var h=async()=>{var e,t;if(null==(e=window.klaviyoModulesObject)||!e.companyId)return;const{CustomerHubRoot:o,getSettings:r}=await Promise.all([n.e(2462),n.e(1700),n.e(5923),n.e(6656),n.e(1316),n.e(7496),n.e(4661),n.e(9836),n.e(3443),n.e(7473)]).then(n.bind(n,14306)),l=(0,s.B)((null==(t=window.Shopify)?void 0:t.locale)||d.ZW),[C,g]=await Promise.all([r(window.klaviyoModulesObject.companyId),(0,p.ZI)(l)]),h=()=>{const e=window.location.pathname.startsWith("/account/register");C.general.replaceAccountLinks&&!e&&(function(){var e,t;const n=null==(e=window.customerHub)?void 0:e.storefrontRoutes.profile;let o='a[href$="/account/login"], a[href$="/account"], a[href^="https://shopify.com/"][href*="/account"], a[href*="/customer_identity/redirect"], a[href*="/customer_authentication/redirect"]';n&&(o=`${o}, a[href$="${n}"]`);const r=document.querySelectorAll(o);for(const e of r)e.href="#k-hub",e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),window.location.hash="k-hub"}));const i=null==(t=window.customerHub)?void 0:t.storefrontRoutes.logout;let s='a[href$="/account/logout"], a[href$="/customer_identity/logout"]';i&&(s=`${s}, a[href$="${i}"]`);const a=document.querySelectorAll(s);for(const e of a)e.addEventListener("click",(()=>{(0,u.Q7)(void 0)}))}(),function(){const e=document.querySelectorAll('a[href*="#k-hub');for(const t of e)t.addEventListener("click",(()=>{window.dispatchEvent(new KeyboardEvent("keydown",{key:"Escape"})),c.a.dispatch({type:"open",data:{isOpen:!0}})}))}()),window.customerHubApi={open:e=>{e?c.a.dispatch({type:"navigation",data:{path:e}}):c.a.dispatch({type:"open",data:{isOpen:!0}}),(0,f.w8)(d.OU,d.pv.OPEN,{[d.Ny.ROUTE]:e})},close:()=>{c.a.dispatch({type:"open",data:{isOpen:!1}}),(0,f.w8)(d.OU,d.pv.CLOSE,{})},events:new m},C.general.storeType===a.$.SHOPIFY_HEADLESS&&((e=>{var t,n,o,r;const i={storefrontRoutes:{login:(null==(t=e.headlessShopifySettings)?void 0:t.loginRoute)||"",register:"",logout:(null==(n=e.headlessShopifySettings)?void 0:n.logoutRoute)||"",profile:(null==(o=e.headlessShopifySettings)?void 0:o.profileRoute)||"",addresses:(null==(r=e.headlessShopifySettings)?void 0:r.addressesRoute)||""},userId:null,storeDomain:e.storeUrlDomain?`${e.storeUrlDomain}.myshopify.com`:void 0,activeProduct:void 0};Object.assign(window,{customerHub:i})})(C),(e=>{new _(e)})(C));const t=document.createElement("div");t.id="k-hub",t.style.position="fixed",t.style.top="0px",i().render(i().createElement(i().StrictMode,null,i().createElement(o,{settings:C,i18nInstance:g})),t),document.body.appendChild(t)};if("complete"===document.readyState)h(),E(C);else{const e=new AbortController;document.addEventListener("readystatechange",(()=>{"complete"===document.readyState&&(h(),E(C),e.abort())}),{signal:e.signal})}};(0,o.Z)({tracking:!1}),h()},37190:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});const o={SHOPIFY:"shopify",SHOPIFY_HEADLESS:"shopify_headless",CUSTOM:"custom"}},28367:function(e,t,n){var o={"./onsite-atlas/en-US/translations.json":[34276,2780]};function r(e){if(!n.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],r=t[0];return n.e(t[1]).then((function(){return n.t(r,19)}))}r.keys=function(){return Object.keys(o)},r.id=28367,e.exports=r},59229:function(e,t,n){var o={"./onsite-atlas/en-US/translations.json":[34276,2780]};function r(e){if(!n.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],r=t[0];return n.e(t[1]).then((function(){return n.t(r,19)}))}r.keys=function(){return Object.keys(o)},r.id=59229,e.exports=r}},function(e){e.O(0,[2462,4606,9951],(function(){return t=2104,e(e.s=t);var t}));e.O()}]);