1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2d58cb1d-8628-4e68-ae4b-68a624715530",e._sentryDebugIdIdentifier="sentry-dbid-2d58cb1d-8628-4e68-ae4b-68a624715530")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{1509:()=>{},2806:(e,t,n)=>{"use strict";n.d(t,{VisuallyConnect:()=>p});var i=n(6824),r=n(3066),a=n(27936),l=n(98473),s=n(68744),o=n(44250),c=n(74083),d=n(19513);let u=new Map;function m(e){var t;return"/"===e?"home":e.startsWith("/products/")||"/dave"===(t=e)||t.startsWith("/dave/")?"product":"/products"===e?"catalog":"other"}var h=n(83893);function f(e){try{return e()}catch{return}}function p(){let[e,t]=(0,i.useState)(0),n=(0,o.s)(),p=(0,c.u)(),g=(0,r.usePathname)(),w=(0,i.useRef)(n),x=(0,i.useRef)(p),y=(0,i.useRef)(g);(0,i.useEffect)(()=>{w.current=n}),(0,i.useEffect)(()=>{x.current=p}),(0,i.useEffect)(()=>{y.current=g}),(0,i.useEffect)(()=>{let e=()=>t(e=>e+1);return window.addEventListener(s.Yi,e),"function"==typeof window?.visually?.visuallyConnect&&t(e=>e+1),()=>window.removeEventListener(s.Yi,e)},[]),(0,i.useEffect)(()=>{if(0===e||"function"!=typeof window?.visually?.visuallyConnect)return;let{cost:t,cartId:n,totalQuantity:i,lines:r,attributes:o,discountCodes:c}=w.current,p=t?.totalAmount?.currencyCode??"USD",g=n?{id:n,checkoutUrl:"",totalQuantity:i,lines:r,attributes:o,discountCodes:c,cost:t??{totalAmount:{amount:"0",currencyCode:p},subtotalAmount:{amount:"0",currencyCode:p}}}:null,b={openCartDrawer:()=>w.current.openDrawer(),closeCartDrawer:()=>w.current.closeDrawer(),addToCart:(e,t)=>w.current.addToCart({variantId:e,quantity:t,productType:"ONE_TIME"}).then(()=>void 0),cartClear:()=>w.current.clearCart(),cartAddAttributes:({attributes:e},t)=>{let n=w.current.cartId??(0,l.Cy)();if(!n)return void f(()=>t({attributes:e}));(function(e,t){let n=(u.get(e)??Promise.resolve([])).catch(()=>void 0).then(async()=>{let n=await (0,d.Fy)(e),i=n?.attributes??[],r=new Map;for(let e of i)e?.key&&r.set(e.key,e.value??"");for(let e of t)e?.key&&r.set(e.key,e.value??"");let a=Array.from(r,([e,t])=>({key:e,value:t}));return await (0,d.HI)(e,a),a});return u.set(e,n),n.finally(()=>{u.get(e)===n&&u.delete(e)}),n})(n,e).then(e=>{f(()=>t({attributes:e}))}).catch(()=>{f(()=>t({attributes:e}))})},pageType:m(y.current),initialLocale:"en",initialCurrency:p,initialCart:(0,h.Dh)(g,p),initialUserId:x.current?.userID??"",customerTags:[],analyticsProcessingAllowed:()=>(0,a.s)()};f(()=>window.visually.visuallyConnect(b)),f(()=>{window.visually.analyticsProcessingAllowed=()=>(0,a.s)()}),window.dispatchEvent(new Event(s.rr))},[e]);let b=e>0,{cartId:v,lines:k,attributes:j,cost:C,totalQuantity:E,discountCodes:_}=n,T=C?.totalAmount?.currencyCode??"USD",S=v?{id:v,checkoutUrl:"",totalQuantity:E,lines:k,attributes:j,discountCodes:_,cost:C??{totalAmount:{amount:"0",currencyCode:T},subtotalAmount:{amount:"0",currencyCode:T}}}:null,N=(0,h.Dh)(S,T),L=(0,h.c6)(N);return(0,i.useEffect)(()=>{b&&f(()=>window?.visually?.onCartChanged(N))},[b,L]),(0,i.useEffect)(()=>{if(!b)return;let e=m(g);f(()=>window?.visually?.pageTypeChanged(e))},[b,g]),(0,i.useEffect)(()=>{b&&f(()=>window?.visually?.currencyChanged(T))},[b,T]),(0,i.useEffect)(()=>{if(!b)return;let e=p?.userID;e&&"anonymous-user"!==e&&f(()=>window?.visually?.onUserIdChanged(e))},[b,p?.userID]),null}},5090:(e,t,n)=>{"use strict";n.d(t,{ClientLayout:()=>g});var i=n(9476),r=n(6824),a=n(73539),l=n(3066);function s(){let e=(0,l.usePathname)();return(0,r.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}var o=n(98444),c=n(28350),d=n(30679),u=n(2333);function m(){return(0,c.Z)(),(0,d.S)(),(0,r.useEffect)(()=>{(0,u.G)()},[]),null}function h(){return(0,i.jsx)(r.Suspense,{children:(0,i.jsx)(m,{})})}var f=n(26753);let p=(0,a.default)(()=>Promise.all([n.e(7009),n.e(203),n.e(3439),n.e(4601),n.e(9285),n.e(3169),n.e(9231),n.e(9148),n.e(9309),n.e(3965),n.e(9069),n.e(5678),n.e(8841),n.e(2748),n.e(7503),n.e(6068),n.e(1392),n.e(247),n.e(1658),n.e(6915),n.e(6029),n.e(8169),n.e(3724),n.e(6663),n.e(9086),n.e(2739),n.e(4864),n.e(8869),n.e(913),n.e(3003),n.e(7813),n.e(3373),n.e(2195),n.e(6811),n.e(164),n.e(5671),n.e(318),n.e(6146),n.e(2420),n.e(5081),n.e(6134),n.e(3508),n.e(2988),n.e(3541),n.e(7048),n.e(220),n.e(3136),n.e(6353),n.e(7127),n.e(888),n.e(2815),n.e(4641),n.e(1898),n.e(1787),n.e(550),n.e(3939),n.e(5473),n.e(4914),n.e(7549),n.e(2801),n.e(6300),n.e(1669),n.e(6651),n.e(9259),n.e(8242),n.e(2053),n.e(712),n.e(8451),n.e(8568),n.e(7455),n.e(3758),n.e(5553),n.e(2104),n.e(6e3),n.e(2925),n.e(3967),n.e(3636),n.e(7163),n.e(5939),n.e(2822),n.e(8131),n.e(8745),n.e(815),n.e(5922),n.e(5720),n.e(6320),n.e(4448),n.e(4460),n.e(4480),n.e(7611),n.e(3459),n.e(7698)]).then(n.bind(n,87698)).then(e=>({default:e.ExperimentControls})),{loadableGenerated:{webpack:()=>[87698]},ssr:!1});function g({children:e}){return(0,r.useEffect)(()=>(0,f.lb)(),[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{}),(0,i.jsx)(s,{}),e,o.yz&&(0,i.jsx)(p,{})]})}},8061:(e,t,n)=>{"use strict";n.d(t,{ThemeFavicon:()=>a});var i=n(96123),r=n(6824);function a(){let{theme:e,resolvedTheme:t}=(0,i.D)();return(0,r.useEffect)(()=>{let n=t||e||"light",i=document.querySelector("link[type='image/svg+xml']");i&&(i.href=`/fav-${n}.svg`);let r=document.querySelector("link[rel='alternate shortcut icon']");
1r&&(r.href=`/favicon-${n}.ico`),document.querySelectorAll("link[rel='icon'][type='image/png']").forEach(e=>{"32x32"===e.sizes.value?e.href=`/favicon-${n}-32x32.png`:"16x16"===e.sizes.value&&(e.href=`/favicon-${n}-16x16.png`)})},[e,t]),null}},9840:(e,t,n)=>{"use strict";n.d(t,{ThemeProvider:()=>a});var i=n(9476),r=n(96123);function a({children:e,...t}){return(0,i.jsx)(r.N,{...t,children:e})}},23564:(e,t,n)=>{"use strict";n.d(t,{OptimizedUserWayScript:()=>a});var i=n(6824),r=n(77533);function a(){return(0,i.useEffect)(()=>{r.X.register({id:"userway-widget",src:"https://cdn.userway.org/widget.js",trigger:"idle",delay:1e3,priority:5,attributes:{"data-account":"POwdDgCYwA"}})},[]),null}},27936:(e,t,n)=>{"use strict";function i(){let e=window.ketchConsent;return(!e||!1!==e.analytics&&"denied"!==e.analytics)&&(!e||!1!==e.analytics_storage&&"denied"!==e.analytics_storage)&&(!!e&&(!0===e.analytics||"granted"===e.analytics)||!!e&&"granted"===e.analytics_storage||1===window.__viomeKetchDefaultRegion||!!window.__viomeKetchConsentEvent&&(!e||0===Object.keys(e).length)||!!window.__viomeKetchReadyNoConsent||!1)}n.d(t,{s:()=>i})},29580:(e,t,n)=>{"use strict";n.d(t,{Q:()=>r});class i{constructor(){this.eventQueue=[],this.scriptStatuses=new Map,this.flushCallbacks=new Map,this.maxQueueSize=100,this.batchTimeout=null,this.batchDelay=100,this.isFlushing=!1,this.initializeProxies(),window.__trackingFacade=this}initializeProxies(){if(window.dataLayer||(window.dataLayer=[]),!window.klaviyo){let e=(e,t)=>this.queueEvent("klaviyo",e,t);window.klaviyo={push:(...t)=>e("push",t),track:(...t)=>e("track",t),identify:(...t)=>e("identify",t),openForm:(...t)=>e("openForm",t)}}}queueEvent(e,t,n){this.isFlushing||(this.eventQueue.length>=this.maxQueueSize&&this.eventQueue.shift(),this.eventQueue.push({type:e,method:t,args:n,timestamp:Date.now()}),this.scheduleBatchFlush(e))}scheduleBatchFlush(e){"loaded"===this.scriptStatuses.get(e)&&(this.batchTimeout&&clearTimeout(this.batchTimeout),this.batchTimeout=setTimeout(()=>{this.flushQueue(e)},this.batchDelay))}markScriptLoaded(e){this.scriptStatuses.set(e,"loaded"),this.flushQueue(e),(this.flushCallbacks.get(e)||[]).forEach(e=>e()),this.flushCallbacks.delete(e)}markScriptLoading(e){this.scriptStatuses.set(e,"loading")}markScriptError(e){this.scriptStatuses.set(e,"error")}isScriptLoaded(e){return"loaded"===this.scriptStatuses.get(e)}waitForScript(e){return this.isScriptLoaded(e)?Promise.resolve():new Promise(t=>{this.flushCallbacks.has(e)||this.flushCallbacks.set(e,[]),this.flushCallbacks.get(e).push(t)})}flushQueue(e){let t=this.eventQueue.filter(t=>t.type===e);0!==t.length&&("requestIdleCallback"in window?requestIdleCallback(()=>{this.processEvents(t)},{timeout:1e3}):setTimeout(()=>{this.processEvents(t)},0),this.eventQueue=this.eventQueue.filter(t=>t.type!==e))}retryFlush(e){this.flushQueue(e)}processEvents(e){this.isFlushing=!0;try{e.forEach(e=>
1{try{switch(e.type){case"gtm":window.dataLayer&&window.dataLayer.push(...e.args);break;case"meta-pixel":window.fbq&&"function"==typeof window.fbq&&window.fbq(...e.args);break;case"klaviyo":{let t=window.klaviyo,n=e.method;t&&"function"==typeof t[n]?t[n](...e.args):t?.push&&t.push(...e.args)}}}catch(e){}})}finally{this.isFlushing=!1}}track(e,t){window.dataLayer&&window.dataLayer.push({event:e,...t})}getQueueSize(){return this.eventQueue.length}clearQueue(){this.eventQueue=[]}}let r=new i},35454:(e,t,n)=>{"use strict";n.d(t,{default:()=>I});var i=n(9476),r=n(6824),a=n(3066),l=n(57489),s=n(2058),o=n(55941),c=n(40937),d=n.n(c);let u=({texts:e})=>{let[t,n]=(0,r.useState)(0),a=(0,r.useRef)(null),[l,o]=(0,r.useState)(void 0);return((0,r.useEffect)(()=>{if(e.length<=1)return;let t=setInterval(()=>{n(t=>(t+1)%e.length)},3e3);return()=>clearInterval(t)},[e]),(0,r.useEffect)(()=>{let e=()=>{if(!a.current)return;let e=a.current,t=e.querySelectorAll(".measure-text");if(0===t.length)return void setTimeout(()=>{let t=e.querySelectorAll(".measure-text");if(t.length>0){let e=0;t.forEach(t=>{let n=t.offsetHeight;n>e&&(e=n)}),e>0&&o(e)}},100);let n=0;t.forEach(e=>{let t=e.offsetHeight;t>n&&(n=t)}),n>0&&o(n)};e(),window.addEventListener("resize",e);let t=setTimeout(e,50);return()=>{window.removeEventListener("resize",e),clearTimeout(t)}},[e]),0===e.length)?null:1===e.length?(0,i.jsx)("span",{className:"inline-flex items-center justify-center w-full",children:e[0]}):(0,i.jsxs)("span",{ref:a,className:"inline-flex items-center justify-center relative overflow-hidden text-center w-full",style:{height:l?`${l}px`:"auto",minHeight:"1.5em"},children:[e.map((e,t)=>(0,i.jsx)("span",{className:"measure-text invisible absolute inset-0 flex items-center justify-center whitespace-normal md:whitespace-nowrap px-2 pointer-events-none","aria-hidden":"true",children:e},`measure-${t}`)),e.map((e,n)=>(0,i.jsx)("span",{className:(0,s.cn)("absolute inset-0 flex items-center justify-center transition-all duration-500 ease-in-out","transform text-center w-full px-2","whitespace-normal md:whitespace-nowrap",n===t?"translate-y-0 opacity-100":n<t?"-translate-y-full opacity-0":"translate-y-full opacity-0"),style:{transitionDelay:n===t?"100ms":"0ms"},children:(0,i.jsx)("span",{children:e})},`text-${n}`)),!l&&(0,i.jsx)("span",{className:"invisible flex items-center justify-center whitespace-normal md:whitespace-nowrap px-2",children:e[0]})]})},m=e=>{let t="";for(let n of e)"text"===n.type?t+=n.text||"":"link"===n.type&&n.children&&(t+=m(n.children));return t},h=e=>{let t=e.text||"";return e.bold&&e.italic&&e.underline?(0,i.jsx)("span",{className:"font-bold italic underline",children:t}):e.bold&&e.italic?(0,i.jsx)("span",{className:"font-bold italic",children:t}):e.bold&&e.underline?(0,i.jsx)("span",{className:"font-bold underline",children:t}):e.italic&&e.underline?(0,i.jsx)("span",{className:"italic underline",children:t}):e.bold?(0,i.jsx)("strong",{children:t}):e.italic?(0,i.jsx)("em",{children:t}):e.underline?(0,i.jsx)("u",{children:t}):t},f=e=>{if(!e||"string"==typeof e){if("string"==typeof e&&e.includes("|||")){let t=e.split("|||").map(e=>e.trim()).filter(e=>e);return(0,i.jsx)(u,{texts:t})}return e||""}if(Array.isArray(e))return e.map((e,t)=>f(e));if("paragraph"===e.type&&e.children){if(m(e.children).includes("|||")){let t=[],n=[];for(let i of e.children)if("text"===i.type&&i.text&&i.text.includes("|||")){let e=i.text.split("|||");e[0].trim()&&n.push({...i,text:e[0].trim()});for(let r=1;r<e.length;r++)n.length>0&&(t.push(n),n=[]),e[r].trim()&&n.push({...i,text:e[r].trim()})}else n.push(i);n.length>0&&t.push(n);let r=t.map(e=>{let t=e.map((e,t)=>"text"===e.type?h(e):"link"===e.type?(0,i.jsx)(d(),{href:e.url||"#",className:"underline hover:opacity-80 transition-opacity pl-4",onClick:e=>e.stopPropagation(),children:e.children?.map((e,t)=>h(e))},t):null);return(0,i.jsx)("span",{children:t},Math.random())});return(0,i.jsx)(u,{texts:r},Math.random())}return(0,i.jsx)("p",{children:e.children?.map((e,t)=>f(e))},e.id||Math.random())}if("link"===e.type)return(0,i.jsx)(d(),{href:e.url||"#",className:"underline hover:opacity-80 transition-opacity pl-4",onClick:e=>e.stopPropagation(),children:e.children?.map((e,t)=>f(e))},e.id||Math.random());if("text"===e.type){let t=e.text||"";if(t.includes("|||")){let n=t.split("|||").map(e=>e.trim()).filter(e=>e),r=(0,i.jsx)(u,{texts:n});return e.bold&&e.italic&&e.underline?(0,i.jsx)("span",{className:"font-bold italic underline",children:r},Math.random()):e.bold&&e.italic?(0,i.jsx)("span",{className:"font-bold italic",children:r},Math.random()):e.bold&&e.underline?(0,i.jsx)("span",{className:"font-bold underline",children:r},Math.random()):e.italic&&e.underline?(0,i.jsx)("span",{className:"italic underline",children:r},Math.random()):e.bold?(0,i.jsx)("strong",{children:r},Math.random()):e.italic?(0,i.jsx)("em",{children:r},Math.random()):e.underline?(0,i.jsx)("u",{children:r},Math.random()):r}return e.bold&&e.italic&&e.underline?(0,i.jsx)("span",{className:"font-bold italic underline",children:t},Math.random()):e.bold&&e.italic?(0,i.jsx)("span",{className:"font-bold italic",children:t},Math.random()):e.bold&&e.underline?(0,i.jsx)("span",{className:"font-bold underline",children:t},Math.random()):e.italic&&e.underline?(0,i.jsx)("span",{className:"italic underline",children:t},Math.random()):e.bold?(0,i.jsx)("strong",{className:"font-twk-lausanne-600",children:t},Math.random()):e.italic?(0,i.jsx)("em",{children:t},Math.random()):e.underline?(0,i.jsx)("u",{children:t},Math.random()):t}return null},p=({bannerConfig:e,renderRichText:t,TextSlider:n})=>{let{msRemaining:a,formatted:l}=function(e){let[t,n]=(0,r.useState)(null),[i,a]=(0,r.useState)(!1),l=(0,o.gy)(e),s=l?.getTime()??null;if((0,r.useEffect)(()=>{let e;if(null==s)return void a(!1);let t=()=>{let i=Date.now();n(i);let r=s-i;return r<=0?void a(!1):r<=1728e5?void a(!0):(a(!1),void(e=setTimeout(t,r-1728e5)))};return t(),()=>{null!=e&&clearTimeout(e)}},[s]),(0,r.useEffect)(()=>
1{if(!i||null==s)return;n(Date.now());let e=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(e)},[i,s]),null==s||null===t)return{msRemaining:null,formatted:null,isExpired:!1};let c=s-t;return{msRemaining:c,formatted:i?function(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),i=Math.floor(t%3600/60),r=e=>String(e).padStart(2,"0");return`${r(n)}:${r(i)}:${r(t%60)}`}(c):null,isExpired:c<=0}}(e?.campaignEnd??null),s=null!==a&&a>0&&a<=1728e5&&l?`Limited time ${l}`:null,c=Array.isArray(e?.campaignText)?s?((e,t=null)=>{if(!Array.isArray(e)||0===e.length)return e;let[n,...i]=e;if(n?.type!=="paragraph"||!Array.isArray(n.children))return e;let r=m(n.children),a=r.search(/Use code/i),l=a>=0?r.slice(0,a):r,s=a>=0?r.slice(a):"";if(t){let n=l.indexOf("â");if(-1===n)return e;l=`${t} ${l.slice(n)}`}if(!l&&!s)return e;let o=[...l?[{type:"text",text:l,bold:!0}]:[],...s?[{type:"text",text:s,bold:!1}]:[]];return[{...n,children:o},...i]})(e.campaignText,s):e.campaignText:e?.campaignText,d=e?.campaignTextHtml;return(0,i.jsx)("div",{className:"flex items-center justify-center text-base md:text-lg font-medium font-twk-lausanne-300 py-2 lg:py-2 w-full text-center",children:c&&Array.isArray(c)?t(c):d&&d.includes("|||")?(0,i.jsx)(n,{texts:d.split("|||").map(e=>e.replace(/<[^>]*>/g,"").trim()).filter(e=>e)}):(0,i.jsx)("div",{className:"flex items-center justify-center w-full",dangerouslySetInnerHTML:{__html:d||""}})})};var g=n(36840);function w(e){return null==e?null:String(e).trim()||null}function x(e){if(null==e)return null;if("string"==typeof e){let t=w(e);return t?{main:t,line2:null}:null}if("object"==typeof e&&!Array.isArray(e)){let t=w(e.line1)||w(e.main)||w(e.content);return t?{main:t,line2:w(e.line2)||w(e.secondLine)||null}:null}return null}let y=({bannerConfig:e})=>{let{bannerConfig:t}=e,n=(0,r.useMemo)(()=>{if(!t)return[];let e=t.rotatingContents;if(Array.isArray(e)&&e.length>0){let t=e.map(x).filter(e=>null!=e);if(t.length>0)return t}let n=w(t.line1),i=w(t.line2);return n?[{main:n,line2:i}]:[]},[t,t?.rotatingContents,t?.line1,t?.line2]),a=n.length,{keyframesCss:l,cycleSec:s}=(0,r.useMemo)(()=>(function(e){if(e<2)return{keyframesCss:"",cycleSec:0};let t=2===e?2:3,n=t+.5*e+(e-1)*3,i=e=>e/n*100,r=[],a=0;r.push(`0%, ${i(t)}% { transform: rotateX(0deg); }`),a=t;for(let t=0;t<e-1;t++){let n=360*t/e,l=(t+1)*360/e,s=a+.5;r.push(`${i(a)}% { transform: rotateX(${n}deg); }`),r.push(`${i(s)}% { transform: rotateX(${l}deg); }`);let o=(a=s)+3;r.push(`${i(a)}%, ${i(o)}% { transform: rotateX(${l}deg); }`),a=o}let l=a+.5;return r.push(`${i(a)}% { transform: rotateX(${(e-1)*360/e}deg); }`),r.push(`${i(l)}%, 100% { transform: rotateX(360deg); }`),{keyframesCss:`@keyframes two-line-banner-flip { 2 ${r.join("\n ")} 3 }`,cycleSec:n}})(a),[a]),o=e=>e?(0,g.m)(e):null;if(!t)return null;if(!(a>1)){if(1===n.length){let e=n[0];return(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center w-full text-center",children:[(0,i.jsx)("div",{className:"text-base md:text-lg font-medium font-twk-lausanne-300",children:o(e.main)}),e.line2&&(0,i.jsx)("div",{className:"text-base md:text-lg font-medium font-twk-lausanne-300",children:o(e.line2)})]})}return(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center w-full text-center",children:[(0,i.jsx)("div",{className:"text-base md:text-lg font-medium font-twk-lausanne-300",children:o(t.line1)}),t.line2&&(0,i.jsx)("div",{className:"text-base md:text-lg font-medium font-twk-lausanne-300",children:o(t.line2)})]})}let c=360/a,d=a>=3?1.75/Math.tan(Math.PI/a):void 0;return(0,i.jsxs)("div",{className:"flex flex-col items-center justify-center w-full text-center [perspective:1000px]",children:[(0,i.jsx)("style",{children:` 4 ${l} 5 .two-line-banner-flip-inner { 6 position: relative; 7 transform-style: preserve-3d; 8 animation: two-line-banner-flip ${s}s ease-in-out infinite; 9 } 10 .two-line-banner-flip-face { 11 backface-visibility: hidden; 12 -webkit-backface-visibility: hidden; 13 } 14 .two-line-banner-flip-face:not(:first-child) { 15 position: absolute; 16 inset: 0; 17 display: flex; 18 flex-direction: column; 19 align-items: center; 20 justify-content: center; 21 } 22 `}),(0,i.jsx)("div",{className:"two-line-banner-flip-inner w-full min-h-[3.5rem] flex flex-col items-center justify-center",children:n.map((e,t)=>{let n=t*c,r=null!=d?`rotateX(${n}deg) translateZ(${d}rem)`:`rotateX(${n}deg)`;return(0,i.jsxs)("div",{className:"two-line-banner-flip-face flex flex-col items-center justify-center w-full text-center",style:{transform:r},children:[(0,i.jsx)("div",{className:"text-base md:text-lg font-medium font-twk-lausanne-300",children:o(e.main)}),e.line2&&(0,i.jsx)("div",{className:"text-base md:text-lg font-medium font-twk-lausanne-300",children:o(e.line2)})]},`face-${t}`)})})]})},b=({bannerConfig:e})=>{let{bannerConfig:t}=e,[n,a]=(0,r.useState)(0),s=(()=>
22{if(!t)return[];if(Array.isArray(t))return t;let e=[],n=1;for(;t[`line${n}`]||t[`line${n}Url`];){let i=t[`line${n}`],r=t[`line${n}Url`],a=t[`line${n+1}`],l=t[`line${n+1}Url`];(i||a)&&e.push({line1:i,line1Url:r,line2:a,line2Url:l}),n+=2}return 0===e.length&&(t.line1||t.line2)&&e.push({line1:t.line1,line1Url:t.line1Url,line2:t.line2,line2Url:t.line2Url}),e})();if((0,r.useEffect)(()=>{if(s.length<=1)return;let e=setInterval(()=>{a(e=>(e+1)%s.length)},3e3);return()=>clearInterval(e)},[s.length]),0===s.length)return null;let o=s[n],c=(e,t)=>e?t?(0,i.jsx)(d(),{href:t,className:"hover:opacity-80 transition-opacity",...(0,l.UB)((0,l.mR)(t)),onClick:e=>e.stopPropagation(),children:e}):(0,g.m)(e):null;return(0,i.jsxs)("div",{className:"flex h-full flex-col items-center justify-center w-full text-center font-twk-lausanne font-[350] leading-[130%] tracking-[0.12em] uppercase",children:[(0,i.jsx)("div",{className:"text-[10px] md:text-[14px] transition-all duration-500",children:c(o.line1,o.line1Url)}),o.line2&&(0,i.jsx)("div",{className:"text-[10px] md:text-[14px] mt-0.5 transition-all duration-500",children:c(o.line2,o.line2Url)})]})};var v=n(95641);let k=({bannerConfig:e})=>{let{bannerConfig:t}=e;if(!t)return null;let n=t.logo?.url,r=t.line1;return n||r?(0,i.jsxs)("div",{className:"w-full p-[1rem] lg:p-0",children:[(0,i.jsxs)("div",{className:"flex flex-col md:flex-row items-center md:items-center justify-center md:justify-between gap-2 md:gap-6",children:[n&&(0,i.jsx)("div",{className:"w-full md:w-auto md:flex-shrink-0 flex justify-center md:justify-start md:mb-0",children:(0,i.jsx)(v.default,{src:n,alt:t.logo?.alt||"Banner logo",width:t.logo?.width||200,height:t.logo?.height||40,className:"object-contain w-full md:w-auto h-auto",unoptimized:!0})}),r&&(0,i.jsx)("div",{className:"w-full md:flex-1 text-left lg:text-center",children:r?(0,g.m)(r):null})]}),(0,i.jsx)("div",{className:"w-20"})]}):null},j=({bannerConfig:e})=>{let{bannerConfig:t}=e;if(!t)return null;let n=t.logo?.url,r=t.logo?.mobileUrl,a=t.line1,l=t.line2;if(!n&&!r&&!a&&!l)return null;let s=e=>e?(0,g.m)(e):null;return(0,i.jsxs)("div",{className:"w-full p-[1rem] lg:p-0",children:[(0,i.jsxs)("div",{className:"grid grid-cols-[20%_80%] items-center gap-3 sm:gap-6",children:[(n||r)&&(0,i.jsxs)("div",{className:"flex justify-start items-center",children:[r&&(0,i.jsx)(v.default,{src:r,alt:t.logo?.alt||"Banner logo",width:t.logo?.width||200,height:t.logo?.height||40,className:"object-contain h-auto md:hidden",unoptimized:!0}),n&&(0,i.jsx)(v.default,{src:n,alt:t.logo?.alt||"Banner logo",width:t.logo?.width||200,height:t.logo?.height||40,className:"object-contain h-auto hidden md:block",unoptimized:!0})]}),(a||l)&&(0,i.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[a&&(0,i.jsx)("div",{children:s(a)},"line1"),l&&(0,i.jsx)("div",{children:s(l)},"line2")]})]}),(0,i.jsx)("div",{className:"w-20"})]})},C=({bannerConfig:e})=>{let{bannerConfig:t}=e;if(!t)return null;let n=t.logo?.url,r=t.logo?.tabUrl,a=t.line1,l=t.line2;if(!n&&!r&&!a&&!l)return null;let s=e=>e?(0,g.m)(e):null;return(0,i.jsxs)("div",{className:"w-full px-[1rem] lg:p-0",children:[(0,i.jsxs)("div",{className:"grid grid-cols-[30%_70%] items-center gap-3 sm:gap-6",children:[(n||r)&&(0,i.jsxs)("div",{className:"flex justify-start items-center",children:[r&&(0,i.jsx)(v.default,{src:r,alt:t.logo?.alt||"Banner logo",width:260,height:t.logo?.height||40,className:"object-contain h-auto hidden md:block",unoptimized:!0}),n&&(0,i.jsx)(v.default,{src:n,alt:t.logo?.alt||"Banner logo",width:80,height:10,className:"object-contain h-auto block md:hidden",unoptimized:!0})]}),(a||l)&&(0,i.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[a&&(0,i.jsx)("div",{children:s(a)},"line1"),l&&(0,i.jsx)("div",{className:"hidden md:block",children:s(l)},"line2")]})]}),(0,i.jsx)("div",{className:"w-20"})]})},E=({bannerConfig:e})=>{let t=e.bannerConfig;if(!t)return null;let n=t.logo?.url,r=t.line1,a=t.line2;if(!n&&!r&&!a)return null;let l=e=>e?(0,g.m)(e):null;return(0,i.jsxs)("div",{className:" text-xs min-[650px]:text-lg w-max px-4 md:px-12 mx-0 py-4 min-[650px]:py-3 min-[664px]:mx-[3rem] md:mx-0 my-0 flex flex-wrap max-[650px]:flex-col justify-center items-center max-[650px]:items-center border-x min-[650px]:border border-[#D0AA55] bg-[#146464]",children:[n&&(0,i.jsx)("div",{className:"flex-shrink-0",children:(0,i.jsx)(v.default,{src:n,alt:t.logo?.alt||"Banner logo",width:100,height:32,className:"object-contain h-4 w-auto mb-1 min-[650px]:mb-0 min-[650px]:h-5 min-[650px]:w-auto",unoptimized:!0})}),n&&(r||a)&&(0,i.jsx)("div",{className:"h-6 w-[1.5px] mx-[0.5rem] bg-white hidden min-[650px]:block"}),(0,i.jsxs)("span",{className:"min-[650px]:hidden [&_p]:inline [&_p]:m-0",children:[l(r),l(a)]}),r&&(0,i.jsx)("span",{className:"hidden min-[650px]:block",children:l(r)}),a&&(0,i.jsx)("span",{className:"hidden min-[650px]:block",children:l(a)})]})},_=({bannerConfig:e})=>{let{bannerConfig:t}=e;if(!t)return null;let{leftText:n,logoUrl:r,rightText:a,buttonText:s,buttonUrl:o,mobileLogoUrl:c}=t,d=e=>e?(0,g.m)(e):null;return(0,i.jsx)("div",{className:"text-xl relative w-full text-white",children:(0,i.jsxs)("div",{className:"mx-auto flex items-center justify-between gap-4",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[c&&(0,i.jsx)("div",{className:"flex-shrink-0",children:(0,i.jsx)(v.default,{src:c,alt:"Banner logo",width:100,height:32,className:"object-contain w-auto mb-1 min-[650px]:mb-0 h-12 block min-[650px]:hidden",unoptimized:!0})}),r&&(0,i.jsx)("div",{className:"flex-shrink-0",children:(0,i.jsx)(v.default,{src:r,alt:"Banner logo",width:100,height:32,className:"object-contain h-4 w-auto mb-1 min-[650px]:mb-0 min-[650px]:h-12 min-[650px]:w-auto hidden min-[650px]:block",unoptimized:!0})}),d(n)]}),(0,i.jsx)("div",{className:"flex-1 text-center",children:d(a)}
22),s&&o&&(0,i.jsx)("a",{href:o,...(0,l.UB)((0,l.mR)(o)),className:"hidden min-[850px]:block flex-shrink-0 content-center bg-white text-black w-[220px] text-base h-[40px] transition-all duration-500 hover:bg-black hover:text-white hover:scale-102",children:s})]})})};var T=n(38537);let S=({isOpen:e,onClose:t,disclaimerPopup:n})=>{let a=(0,r.useRef)(null),l=n?.popupHeader,s=[];if(n){let e=1;for(;n[`line${e}`];)s.push(n[`line${e}`]),e++}if((0,r.useEffect)(()=>{let n=n=>{"Escape"===n.key&&e&&t()};if(e){let e=document.body.style.overflow,t=document.body.style.paddingRight,i=window.innerWidth-document.documentElement.clientWidth;return document.body.style.overflow="hidden",i>0&&(document.body.style.paddingRight=`${i}px`),document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n),document.body.style.overflow=e,document.body.style.paddingRight=t}}},[e,t]),!e)return null;let o=(0,i.jsxs)("div",{className:"fixed inset-0 flex items-center justify-center md:p-4 p-0",style:{zIndex:9999},onClick:e=>{e.target===e.currentTarget&&t()},children:[(0,i.jsx)("div",{className:"absolute inset-0 transition-opacity duration-300",style:{backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:9998},onClick:t}),(0,i.jsxs)("div",{ref:a,className:"relative bg-white shadow-2xl w-full max-w-none md:w-[762px] md:max-h-[90vh] max-h-full md:h-auto h-full overflow-hidden transform transition-all duration-300 scale-100 p-5 md:rounded-lg",style:{zIndex:9999},onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":"modal-title","aria-describedby":"modal-description",children:[(0,i.jsx)("button",{onClick:t,className:"absolute top-4 right-4 w-8 h-8 cursor-pointer flex items-center justify-center text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-full transition-all duration-200 z-30","aria-label":"Close modal",type:"button",children:(0,i.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,i.jsx)("div",{className:"py-4 border-b border-gray-200 mb-4",children:(0,i.jsx)("h2",{id:"modal-title",className:"text-lg font-semibold text-gray-900 flex items-center",children:(0,i.jsx)("span",{className:"flex-1",children:l})})}),(0,i.jsx)("div",{id:"modal-description",className:"overflow-y-auto text-gray-900 md:max-h-[calc(90vh-200px)] max-h-[calc(100vh-200px)]",children:(0,i.jsx)("div",{className:"text-gray-700 space-y-4",children:s.map((e,t)=>(0,i.jsx)("p",{className:"leading-relaxed",children:(0,g.m)(e)},t))})})]})]});return(0,T.createPortal)(o,document.body)},N=({bannerConfig:e})=>{let t=(0,a.useRouter)(),n=e.bannerConfig,r=e.campaignTextHtml,o=n?.mobile?.text||r||"",c=n?.tablet?.text||n?.mobile?.text||r||"",d=n?.desktop?.text||n?.tablet?.text||n?.mobile?.text||r||"",u="14px",m="14px",h=n?.button,f=!!h?.label,p=h?.isArrow?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"lg:hidden",children:"â"}),(0,i.jsxs)("span",{className:"hidden lg:inline",children:[h.label,(0,i.jsx)("span",{className:"ml-2",children:"â"})]})]}):h?.label;return(0,i.jsxs)("div",{className:"flex items-center w-full h-full px-4 font-twk-lausanne font-[350] leading-[130%] tracking-[0.12em] uppercase text-center",children:[f&&(0,i.jsx)("div",{"aria-hidden":!0,className:"hidden md:block invisible flex-none px-4 py-0 font-twk-lausanne font-[350] leading-[130%] tracking-[0.12em] uppercase whitespace-nowrap",style:{fontSize:m},children:h?.isArrow?(0,i.jsxs)(i.Fragment,{children:[h.label,(0,i.jsx)("span",{className:"ml-2",children:"â"})]}):h?.label}),(0,i.jsxs)("div",{className:(0,s.cn)("flex-1 flex items-center min-w-0 font-twk-lausanne font-[350] leading-[130%] tracking-[0.12em] uppercase",f?"md:justify-center md:text-center":"justify-center text-center"),children:[(0,i.jsx)("span",{className:"block md:hidden [&_*]:![font-size:inherit] [&_*]:!leading-[130%]",style:{fontSize:"10px"},children:(0,g.m)(o)}),(0,i.jsx)("span",{className:"hidden md:block lg:hidden [&_*]:![font-size:inherit] [&_*]:!leading-[130%]",style:{fontSize:u},children:(0,g.m)(c)}),(0,i.jsx)("span",{className:"hidden lg:block [&_*]:![font-size:inherit] [&_*]:!leading-[130%]",style:{fontSize:m},children:(0,g.m)(d)})]}),f&&(0,i.jsx)("button",{onClick:e=>{e.stopPropagation();let n=h?.url;n&&(n.startsWith("/")||n.startsWith("#")?t.push(n,{scroll:!1}):window.location.href=n)},...(0,l.UB)((0,l.mR)(h?.url)),className:(0,s.cn)("flex-none px-4 py-0 font-twk-lausanne font-[350] leading-[130%] tracking-[0.12em] uppercase transition-all whitespace-nowrap hover:opacity-80",h?.underline&&"underline",h?.cursor==="pointer"&&"curs
22or-pointer"),style:{fontSize:u},children:p})]})};var L=n(8668),A=n(62001);function P(e){if("undefined"==typeof document)return e.replace(/<[^>]*>/g,"");let t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}let I=({bannerConfig:e=null,shouldShow:t=!1,isSticky:n=!1,className:c})=>{let d=(0,a.useRouter)(),m=(0,a.usePathname)(),h=(0,L.n)(),{user:g}=(0,A.A)(),[w,x]=r.useState(!1),[v,T]=r.useState(!1),[I,O]=r.useState(()=>{let e=window.innerWidth;return e<768?"mobile":e<1024?"tablet":"desktop"}),D=function(e){if(!e)return"0px";if(e.bannerType===o.Vw.RESPONSIVE)return"40px";switch(e.bannerType){case o.Vw.TWO_LINE:return"72px";case o.Vw.ROTATING_TWO_LINE:return"40px";case o.Vw.LOGO_ONE_LINE:case o.Vw.LOGO_TWO_LINE:case o.Vw.CYBER_MONDAY:case o.Vw.NEW_YEAR_SALE:return"79px";default:let t=e.campaignHasButton,n=e.campaignTextHtml&&e.campaignTextHtml.length>50,i=24;return n&&(i=36),t&&(i+=8),`${24+i}px`}}(e);parseInt(D),r.useEffect(()=>{let e=()=>{let e=window.innerWidth;e<768?O("mobile"):e<1024?O("tablet"):O("desktop")};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let M=t&&e,$=!!(e?.bannerConfig?.disclaimerPopup||e?.campaignClickUrl),z=e?.bannerType===o.Vw.RESPONSIVE,F=e?.bannerType===o.Vw.ROTATING_TWO_LINE,B=r.useRef(null),[V,R]=r.useState(0),U=r.useRef(0),q=r.useRef(null);r.useEffect(()=>{U.current=V},[V]),r.useLayoutEffect(()=>{if(!B.current)return;if(!M){0!==U.current&&(U.current=0,R(0)),document.documentElement.style.setProperty("--site-banner-height","0px");return}let e=()=>{let e=B.current;if(!e)return;let t=z||F?40:Math.ceil(e.getBoundingClientRect().height);t<=0||(t!==U.current&&(U.current=t,R(t)),document.documentElement.style.setProperty("--site-banner-height",`${t}px`))};return document.documentElement.style.setProperty("--site-banner-height",D),e(),"undefined"!=typeof ResizeObserver&&(q.current=new ResizeObserver(e),q.current.observe(B.current)),window.addEventListener("resize",e),()=>{q.current&&q.current.disconnect(),window.removeEventListener("resize",e)}},[M,e,D,z,F]);let W=e=>!!e&&(e.startsWith("/")||e.startsWith("#")||!e.startsWith("http://")&&!e.startsWith("https://")),Q=e=>!!e&&!!m&&e.split("?")[0].split("#")[0]===m.split("?")[0].split("#")[0];return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:(0,s.cn)("w-full relative z-[1100]",c),children:M&&(0,i.jsx)("div",{ref:B,id:"site-banner-content",className:(0,s.cn)("w-full text-center relative z-10 flex items-center justify-center",z||F?"h-[40px] min-h-[40px] max-h-[40px] px-2 md:px-4 py-0 overflow-hidden":"py-3 px-2 md:px-4",$&&"cursor-pointer",e.bannerType===o.Vw.HOLIDAY_SALE&&"max-[650px]:!p-0"),style:((e,t)=>{let n={color:e?.textColor},i="boolean"==typeof t?t?"mobile":"desktop":t;if(e?.campaignBackground){let{backgroundType:t,solidColor:r,gradient:a,desktopImage:l,mobileImage:s,tabletImage:o}=e.campaignBackground;if("solid color"===t&&r)n.backgroundColor=r;else if("gradient"===t&&a)n.backgroundImage=a,n.backgroundSize="cover";else if("image"===t){let e;e="mobile"===i&&s?.url?s:"tablet"===i&&o?.url?o:"tablet"===i&&l?.url||"desktop"===i&&l?.url?l:s?.url?s:l,e?.url&&(n.backgroundImage=`url(${e.url})`,n.backgroundSize="cover",n.backgroundPosition="center",n.backgroundRepeat="no-repeat")}}else e?.campaignBackgroundColor&&(n.backgroundColor=e.campaignBackgroundColor);return n})(e,I),...(0,l.UB)($?(0,l.og)("promo"):void 0),onClick:()=>{if(h({event:"promo_banner_click",metadata:{user_id:g?.userID??"",promo_text:P(e?.campaignTextHtml??""),cta:e?.campaignButtonLabel??"",cta_link:e?.campaignClickUrl??"",click_type:"banner"}}),e?.bannerConfig?.disclaimerPopup)T(!0);else if(e?.campaignClickUrl){let t=e.campaignClickUrl;if(Q(t))return;W(t)?d.push(t,{scroll:!1}):window.location.href=t}},children:(0,i.jsxs)("div",{className:"flex items-center justify-center w-full max-w-[1440px] mx-auto",children:[e&&(e.bannerType===o.Vw.TWO_LINE?(0,i.jsx)(y,{bannerConfig:e}):e.bannerType===o.Vw.ROTATING_TWO_LINE?(0,i.jsx)(b,{bannerConfig:e}):e.bannerType===o.Vw.LOGO_ONE_LINE?(0,i.jsx)(k,{bannerConfig:e}):e.bannerType===o.Vw.LOGO_TWO_LINE?(0,i.jsx)(j,{bannerConfig:e}):e.bannerType===o.Vw.CYBER_MONDAY?(0,i.jsx)(C,{bannerConfig:e}):e.bannerType===o.Vw.HOLIDAY_SALE?(0,i.jsx)(E,{bannerConfig:e}):e.bannerType===o.Vw.NEW_YEAR_SALE?(0,i.jsx)(_,{bannerConfig:e}):e.bannerType===o.Vw.RESPONSIVE?(0,i.jsx)(N,{bannerConfig:e}):(0,i.jsx)(p,{bannerConfig:e,renderRichText:f,TextSlider:u})),e?.campaignHasButton&&e.bannerType!==o.Vw.RESPONSIVE&&(0,i.jsx)("button",{onClick:t=>{if(t.stopPropagation(),h({event:"promo_banner_click",metadata:{user_id:g?.userID??"",promo_text:P(e?.campaignTextHtml??""),cta:e?.campaignButtonLabel??"",cta_link:e?.campaignButtonUrl??"",click_type:"cta_button"}}),e?.campaignButtonUrl){let t=e.campaignButtonUrl;Q(t)||(W(t)?d.push(t,{scroll:!1}):window.location.href=t)}},...(0,l.UB)((0,l.mR)(e.campaignButtonUrl)),className:(0,s.cn)("ml-4 px-4 py-1 text-sm font-bold transition-all font-twk-lausanne-600","hover:opacity-80","underlined"===e.campaignButtonType&&"underline","filled"===e.campaignButtonType&&"bg-white text-black ","outlined"===e.campaignButtonType&&"border border-current "),children:e.campaignButtonLabel})]})})}),(0,i.jsx)(S,{isOpen:v,onClose:()=>{T(!1)},disclaimerPopup:e?.bannerConfig?.disclaimerPopup})]})}},41691:(e,t,n)=>{"use strict";n.d(t,{VisuallyErrorBoundary:()=>r});var i=n(6824);class r extends i.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e){}render(){return this.state.hasError?null:this.props.children}constructor(...e){super(...e),this.state={hasError:!1,error:null}}}},42034:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,64612,23)),Promise.resolve().then(n.t.bind(n,1509,23)),Promise.resolve().then(n.bind(n,45592)),Promise.resolve().then(n.bind(n,5090)),Promise.resolve().then(n.bind(n,62001)),Promise.resolve().then(n.bind(n,23564)),Promise.resolve().then(n.bind(n,88151)),Promise.resolve().then(n.bind(n,63121)),Promise.resolve().then(n.bind(n,35454)),Promise.resolve().then(n.bind(n,85258)),Promise.resolve().then(n.bind(n,8061)),Promise.resolve().then(n.bind(n,9840)
22),Promise.resolve().then(n.bind(n,2806)),Promise.resolve().then(n.bind(n,41691)),Promise.resolve().then(n.bind(n,4530)),Promise.resolve().then(n.bind(n,44250))},45592:(e,t,n)=>{"use strict";n.d(t,{FacadeAnalyticsProvider:()=>s});var i=n(6824),r=n(77533);n(29580);var a=n(3558),l=n(48926);function s(){return(0,i.useEffect)(()=>{document.head&&function(){document.querySelectorAll('script[src*="static.klaviyo.com/onsite/js/klaviyo.js"]').forEach(e=>{let t=e.src||"";o(t)&&!c(t)&&e.remove()});let e=new MutationObserver(e=>{for(let t of e)for(let e of Array.from(t.addedNodes)){if(!(e instanceof HTMLScriptElement))continue;let t=e.src||"";o(t)&&!c(t)&&e.remove()}});e.observe(document.documentElement,{childList:!0,subtree:!0}),setTimeout(()=>e.disconnect(),15e3),r.X.register({id:"web-vitals-lib",src:"https://unpkg.com/web-vitals@3/dist/web-vitals.iife.js",trigger:"timer",delay:3e3,priority:5}),r.X.register({id:"web-vitals",inline:` 23 (function() { 24 try { 25 // Wait for web-vitals library to load 26 var checkInterval = setInterval(function() { 27 if (window.webVitals) { 28 clearInterval(checkInterval); 29 window.webVitals.onCLS(function(metric) { 30 if (window.dataLayer) { 31 window.dataLayer.push({ 32 event: 'web_vitals', 33 metric_name: 'CLS', 34 metric_value: metric.value, 35 metric_rating: metric.rating 36 }); 37 } 38 }); 39 window.webVitals.onFCP(function(metric) { 40 if (window.dataLayer) { 41 window.dataLayer.push({ 42 event: 'web_vitals', 43 metric_name: 'FCP', 44 metric_value: metric.value, 45 metric_rating: metric.rating 46 }); 47 } 48 }); 49 window.webVitals.onLCP(function(metric) { 50 if (window.dataLayer) { 51 window.dataLayer.push({ 52 event: 'web_vitals', 53 metric_name: 'LCP', 54 metric_value: metric.value, 55 metric_rating: metric.rating 56 }); 57 } 58 }); 59 window.webVitals.onTTFB(function(metric) { 60 if (window.dataLayer) { 61 window.dataLayer.push({ 62 event: 'web_vitals', 63 metric_name: 'TTFB', 64 metric_value: metric.value, 65 metric_rating: metric.rating 66 }); 67 } 68 }); 69 window.webVitals.onINP(function(metric) { 70 if (window.dataLayer) { 71 window.dataLayer.push({ 72 event: 'web_vitals', 73 metric_name: 'INP', 74 metric_value: metric.value, 75 metric_rating: metric.rating 76 }); 77 } 78 }); 79 } 80 }, 100); 81 // Stop checking after 10s 82 setTimeout(function() { clearInterval(checkInterval); }, 10000); 83 } catch (error) { 84 console.warn('Web Vitals monitoring failed:', error); 85 } 86 })(); 87 `,trigger:"timer",delay:3500,priority:5})}()},[]),(0,i.useEffect)(()=>(0,a.FQ)(),[]),null}function o(e){return e.includes("static.klaviyo.com/onsite/js/klaviyo.js")}function c(e){return e.includes(`company_id=${l.a.COMPANY_ID}`)}},55941:(e,t,n)=>{"use strict";n.d(t,{L8:()=>r,Vw:()=>i,gy:()=>a});let i={DEFAULT:"defaultBanner",TWO_LINE:"twoLineBanner",ROTATING_TWO_LINE:"rotatingTwoLineBanner",LOGO_ONE_LINE:"logoBannerOneLine",LOGO_TWO_LINE:"logoBannerTwoLine",CYBER_MONDAY:"cyberMondayBanner",HOLIDAY_SALE:"holidaySaleBanner",NEW_YEAR_SALE:"newYearSaleBanner",RESPONSIVE:"responsiveBanner"};function r(e){return null==e?null:"string"==typeof e?e.trim()||null:e instanceof Date&&!Number.isNaN(e.getTime())?e.toISOString():null}function a(e){if(null==e)return null;if(e instanceof Date)return Number.isNaN(e.getTime())?null:e;if("string"==typeof e){let t=new Date(e);return Number.isNaN(t.getTime())?null:t}return null}},63121:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var i=n(9476),r=n(6824);let a=JSON.parse('{"$":{"Qq":"$100 off Full Body Intelligence⢠Test ","oR":"bg-teal-500","hk":"text-white","Zt":true,"Qx":true,"Z2":"viome-promotional-banner-dismissed"}}');var l=n(2058);let s=({className:e,text:t=a.$.Qq,backgroundColor:n=a.$.oR,textColor:s=a.$.hk,dismissible:o=a.$.Zt,onDismiss:c})=>{let[d,u]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{a.$.Qx&&u(!localStorage.getItem(a.$.Z2))},[]),d)?(0,i.jsxs)("div",{className:(0,l.cn)("w-full text-center py-3 px-4 relative","flex items-center justify-center","transition-all duration-300 ease-in-out",n,s,e),children:[(0,i.jsx)("div",{className:"flex items-center justify-center w-full max-w-[1440px] mx-auto",children:(0,i.jsx)("p",{className:"text-sm md:text-base font-medium",children:t})}),o&&(0,i.jsx)("button",{onClick:()=>{u(!1),a.$.Qx&&localStorage.setItem(a.$.Z2,"true"),c&&c()},className:"absolute right-4 top-1/2 transform -translate-y-1/2","aria-label":"Close promotional banner",children:(0,i.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-white hover:text-gray-200 transition-colors",children:(0,i.jsx)("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}):null}}
87,77533:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var i=n(29580);class r{register(e){if(!this.loadedScripts.has(e.id))switch(this.pendingScripts.set(e.id,e),e.trigger){case"immediate":this.loadScript(e);break;case"idle":this.loadOnIdle(e);break;case"interaction":this.loadOnInteraction(e);break;case"scroll":this.loadOnScroll(e);break;case"timer":this.loadOnTimer(e)}}initLcpProtection(){this.lcpProtectionComplete||("complete"===document.readyState?this.windowLoaded=!0:window.addEventListener("load",()=>{this.windowLoaded=!0,this.checkAllConditions()},{once:!0}),this.startLcpObservation(),this.lcpFallbackTimer=setTimeout(()=>{this.lcpProtectionComplete||this.completeLcpProtection()},15e3))}startLcpObservation(){try{this.lcpObserver=new PerformanceObserver(e=>{let t=e.getEntries(),n=t[t.length-1];n&&(this.lastLcpTime=n.renderTime||n.loadTime||n.startTime,this.lcpDebounceTimer&&clearTimeout(this.lcpDebounceTimer),this.lcpDebounceTimer=setTimeout(()=>{this.lcpStabilized=!0,setTimeout(()=>{this.checkAllConditions()},1e3)},2e3))}),this.lcpObserver.observe({type:"largest-contentful-paint",buffered:!0});let e=()=>{this.lcpStabilized=!0,this.lcpObserver&&this.lcpObserver.disconnect(),this.lcpDebounceTimer&&clearTimeout(this.lcpDebounceTimer),this.checkAllConditions()};["pointerdown","keydown","click"].forEach(t=>{document.addEventListener(t,e,{once:!0,passive:!0})}),setTimeout(()=>{this.lcpStabilized||0!==this.lastLcpTime||(this.lcpStabilized=!0,this.checkAllConditions())},1e4)}catch{this.lcpStabilized=!0,this.checkAllConditions()}}checkAllConditions(){if(!this.lcpProtectionComplete)performance.now(),this.windowLoaded&&this.lcpStabilized&&(this.lastLcpTime>0&&this.lastLcpTime.toFixed(0),this.completeLcpProtection())}completeLcpProtection(){this.lcpProtectionComplete||(this.lcpProtectionComplete=!0,this.lcpObserver&&(this.lcpObserver.disconnect(),this.lcpObserver=null),this.lcpDebounceTimer&&(clearTimeout(this.lcpDebounceTimer),this.lcpDebounceTimer=null),this.lcpFallbackTimer&&(clearTimeout(this.lcpFallbackTimer),this.lcpFallbackTimer=null),performance.now(),this.lcpCallbacks.forEach(e=>e()),this.lcpCallbacks=[])}waitForLcpProtection(e){if(this.lcpProtectionComplete)return void e();this.lcpCallbacks.push(e),this.initLcpProtection()}loadOnIdle(e){this.waitForLcpProtection(()=>{let t=e.delay||0;"requestIdleCallback"in window?requestIdleCallback(()=>{t>0?setTimeout(()=>{requestAnimationFrame(()=>{this.loadScript(e)})},t):requestAnimationFrame(()=>{this.loadScript(e)})},{timeout:3e3}):setTimeout(()=>{requestAnimationFrame(()=>{this.loadScript(e)})},t||100)})}loadOnInteraction(e){if(e.fallbackDelay&&e.fallbackDelay>0){let t=setTimeout(()=>{!this.loadedScripts.has(e.id)&&this.pendingScripts.has(e.id)&&(this.loadScript(e),this.interactionFallbackTimers.delete(e.id))},e.fallbackDelay);this.interactionFallbackTimers.set(e.id,t)}if(this.interactionListenersAttached)return;let t=["mousedown","touchstart","keydown","scroll"],n=()=>{t.forEach(e=>{document.removeEventListener(e,n)}),requestAnimationFrame(()=>{setTimeout(()=>{this.loadAllInteractionScripts()},50)})};t.forEach(e=>{document.addEventListener(e,n,{passive:!0,once:!0})}),this.interactionListenersAttached=!0}loadAllInteractionScripts(){Array.from(this.pendingScripts.values()).filter(e=>"interaction"===e.trigger).sort((e,t)=>e.priority-t.priority).forEach((e,t)=>{let n=this.interactionFallbackTimers.get(e.id);n&&(clearTimeout(n),this.interactionFallbackTimers.delete(e.id)),requestAnimationFrame(()=>{setTimeout(()=>{this.loadScript(e)},100*t)})})}loadOnScroll(e){if(this.scrollListenerAttached)return;let t=()=>{this.scrollTicking||(this.scrollTicking=!0,this.scrollRafId=requestAnimationFrame(()=>{let e=(window.scrollY+window.innerHeight)/document.documentElement.scrollHeight;this.pendingScripts.forEach(t=>{"scroll"===t.trigger&&e>=(t.scrollDepth||.25)&&this.loadScript(t)}),this.scrollTicking=!1}))};window.addEventListener("scroll",t,{passive:!0}),this.scrollListenerAttached=!0,t()}loadOnTimer(e){setTimeout(()=>{this.loadScript(e)},e.delay||3e3)}load(e){let t=this.pendingScripts.get(e);t&&this.loadScript(t)}loadScript(e){if(this.loadedScripts.has(e.id))return;let t=this.interactionFallbackTimers.get(e.id);t&&(clearTimeout(t),this.interactionFallbackTimers.delete(e.id)),this.loadedScripts.add(e.id),this.pendingScripts.delete(e.id),i.Q.markScriptLoading(e.id),e.inline?this.loadInlineScript(e):e.src&&this.loadExternalScript(e)}loadInlineScript(e){requestAnimationFrame(()=>{let t=document.createElement("script");t.id=e.id,t.type="text/javascript",t.innerHTML=e.inline,e.attributes&&Object.entries(e.attributes).forEac
87h(([e,n])=>{t.setAttribute(e,n)}),t.onload=()=>{i.Q.isScriptLoaded(e.id)||i.Q.markScriptLoaded(e.id)},t.onerror=()=>{i.Q.markScriptError(e.id)},document.head.appendChild(t),setTimeout(()=>{i.Q.isScriptLoaded(e.id)||i.Q.markScriptLoaded(e.id)},10)})}loadExternalScript(e){requestAnimationFrame(()=>{let t=document.createElement("script");t.id=e.id,t.src=e.src,t.async=!0,t.defer=!0,e.attributes&&Object.entries(e.attributes).forEach(([e,n])=>{t.setAttribute(e,n)}),t.onload=()=>{requestAnimationFrame(()=>{i.Q.markScriptLoaded(e.id)})},t.onerror=()=>{i.Q.markScriptError(e.id)},document.head.appendChild(t)})}isLoaded(e){return this.loadedScripts.has(e)}getPendingCount(){return this.pendingScripts.size}constructor(){this.loadedScripts=new Set,this.pendingScripts=new Map,this.interactionListenersAttached=!1,this.scrollListenerAttached=!1,this.interactionFallbackTimers=new Map,this.scrollRafId=null,this.scrollTicking=!1,this.lcpProtectionComplete=!1,this.lcpCallbacks=[],this.lcpObserver=null,this.lcpDebounceTimer=null,this.lcpFallbackTimer=null,this.lastLcpTime=0,this.windowLoaded=!1,this.lcpStabilized=!1,this.navigationStart="undefined"!=typeof performance?performance.timeOrigin:Date.now()}}let a=new r},85258:(e,t,n)=>{"use strict";n.d(t,{NoDelayProviders:()=>N});var i=n(9476),r=n(6824),a=n(98444),l=n(40299);n(72465);var s=n(478),o=n(27936);class c{constructor(e){this.initialized=!1,this.accessToken=e.accessToken,this.pixelId=e.pixelId}init(){return!!this.accessToken&&!!this.pixelId&&(this.initialized=!0,!0)}async track(e,t){if(this.initialized&&a.k2.enabled&&a.KV)try{let n=await this.convertToMetaEvent(e,t);await this.sendToMetaAPI([n])}catch(e){}}async page(e){await this.track("PageView",e)}async identify(e){await this.track("Lead",e)}async convertToMetaEvent(e,t){let n=Math.floor(Date.now()/1e3),i=this.mapEventName(e);return{event_name:i,event_time:n,event_id:t.event_id||(0,s.l)(i),user_data:await this.extractUserData(t),custom_data:this.extractCustomData(t),event_source_url:window.location.href||t.url,action_source:"website"}}mapEventName(e){return({viome_page_view:"PageView",viome_productPage:"ViewContent",viome_addToCart:"AddToCart",viome_purchase:"Purchase",logged_user:"Lead",Lead:"Lead",Purchase:"Purchase",AddToCart:"AddToCart",ViewContent:"ViewContent",PageView:"PageView",FbclidDetected:"FbClick"})[e]||"CustomEvent"}async extractUserData(e){let t={},n=e.user;if(n?.email&&(t.em=[await this.hashString(n.email.toLowerCase().trim())]),n?.phone&&(t.ph=[await this.hashString(n.phone.replace(/\D/g,""))]),n?.firstName&&(t.fn=[await this.hashString(n.firstName.toLowerCase().trim())]),n?.lastName&&(t.ln=[await this.hashString(n.lastName.toLowerCase().trim())]),n?.address?.city&&(t.ct=[await this.hashString(n.address.city.toLowerCase().trim())]),n?.address?.state&&(t.st=[await this.hashString(n.address.state.toLowerCase().trim())]),n?.address?.zipCode&&(t.zp=[await this.hashString(n.address.zipCode.trim())]),n?.address?.country&&(t.country=[await this.hashString(n.address.country.toLowerCase().trim())]),"undefined"!=typeof document){let n=this.getCookie("_fbp");n&&(t.fbp=n);let i=e.fbc||this.getCookie("_fbc");i&&(t.fbc=i);let r=this.getCookie("viome_uid");r&&(t.external_id=r)}return t.client_user_agent=window.navigator.userAgent,t}extractCustomData(e){let t={};return void 0!==e.value&&(t.value=e.value),e.currency&&(t.currency=e.currency),e.content_ids&&(t.content_ids=e.content_ids),e.content_type&&(t.content_type=e.content_type),e.content_name&&(t.content_name=e.content_name),e.content_category&&(t.content_category=e.content_category),e.num_items&&(t.num_items=e.num_items),t}async sendToMetaAPI(e){let t=await fetch("/api/meta-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,...a.k2.debug?{test_event_code:"TEST13721"}:{}})});if(!t.ok)throw Error(`Meta CAPI request failed: ${t.status} ${t.statusText}`);a.k2.debug}async hashString(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}getCookie(e){if("undefined"==typeof document)return null;let t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop()?.split(";").shift()||null}}let d=(0,r.createContext)(null),u=!1,m=null,h=!1,f=!1,p=!1,g=!1;function w({children:e}){let t=(0,r.useRef)(null);(0,r.useEffect)(()=>
87{if(u&&m){t.current=m;return}let e="EAAEE47nr8ZAMBO76gxZBeFE1Cy1OqRZCL1JXlPgVrHb2lZAnL1Vv1MBZCARCmPEmOdNA41klnscJMtb158vf3UkwfQP9ipbCDZCmYtCHrtVRL9PZC9D88Fw7GaRHCOIjkT6sZBMxDo8wfyJtlDs6y5dh8Kcw1KEZBYwIkqkXXZBnjuZAgZAZAPMsOPndzsie7PIHFokhDuAZDZD",n="163282714302778";if(e&&n&&!u){let i=new c({accessToken:e,pixelId:n});if(i.init()&&(m=i,t.current=i,u=!0,!p&&(0,o.s)())){p=!0;let e=window.__metaPageViewEventId;i.page({event_id:e,url:window.location.href}).catch(e=>console.error("Meta CAPI: Failed to send PageView",e))}}else!u&&a.k2.debug||(t.current=m)},[]);let n=async(e,n)=>{t.current&&await t.current.track(e,n)},l=async e=>{t.current&&await t.current.page(e)},w=async e=>{t.current&&await t.current.identify(e)},x={metaPlugin:t.current,track:n,page:l,identify:w};return(0,r.useEffect)(()=>{if(f)return;let e=m||t.current;if(!e)return;let n=new URLSearchParams(window.location.search).get("fbclid");if(n){let t=Math.floor(Date.now()/1e3),i=`fb.1.${t}.${n}`;f=!0,e.track("FbclidDetected",{fbc:i}).catch(e=>{f=!1}),a.k2.debug}},[]),(0,r.useEffect)(()=>{if(h)return;let e=e=>{if(!e||"object"!=typeof e)return;let n=e.event;if(!n||!(0,o.s)())return;let i=m||t.current;if(!i)return;if("viome_page_view"===n){if(p&&!g){g=!0;return}let t=e.eventId||(0,s.l)("PageView"),n=window.location.href;window.fbq&&window.fbq("track","PageView",{},{eventID:t}),i.page({event_id:t,url:n,path:e.path}).catch(e=>console.error("Meta CAPI: Failed to send PageView",e));return}let r={viome_productPage:"ViewContent",viome_addToCart:"AddToCart",viome_purchase:"Purchase",logged_user:"Lead"}[n];if(!r)return;let a=window.location.href;if("Lead"===r)return void i.track("Lead",{user:e.user,url:a}).catch(e=>console.error("Meta CAPI: Failed to track Lead",e));let l=e.eventId||(0,s.l)(r),c={event_id:l,url:a??e.url,value:e.value,currency:e.currency||"USD",content_ids:e.content_ids,content_type:e.content_type||"product",num_items:e.num_items||e.numItems};if(e.contents&&e.contents.length>0){let t=e.contents[0];c.content_name=t.name,c.content_category=t.category,!c.value&&t.item_price&&(c.value=t.item_price)}window.fbq&&window.fbq("track",r,{value:c.value,currency:c.currency,content_ids:c.content_ids,content_type:c.content_type,content_name:c.content_name,num_items:c.num_items},{eventID:l}),i.track(r,c).catch(e=>console.error(`Meta CAPI: Failed to track ${r}`,e))};window.dataLayer&&Array.isArray(window.dataLayer)&&window.dataLayer.forEach(t=>{t&&"object"==typeof t&&"viome_page_view"!==t.event&&e(t)}),window.dataLayer=window.dataLayer||[];let n=window.dataLayer.push;return window.dataLayer.push=function(...t){let i=n.apply(this,t);return t.forEach(t=>{t&&"object"==typeof t&&e(t)}),i},h=!0,()=>{}},[]),(0,i.jsx)(d.Provider,{value:x,children:e})}class x{constructor(e){this.initialized=!1,this.apiUrl=e.apiUrl,this.timeout=e.timeout||5e3}init(){return!!this.apiUrl&&(this.initialized=!0,a.k2.debug,!0)}async track(e,t){if(this.initialized&&a.k2.enabled)try{let n={type:"track",params:{event:e,...t},options:this.getEventOptions()};await this.sendToServer(n)}catch(e){}}async page(e){if(this.initialized&&a.k2.enabled)try{let t={type:"page",params:e,options:this.getEventOptions()};await this.sendToServer(t)}catch(e){}}async identify(e){if(this.initialized&&a.k2.enabled)try{let t={type:"identify",params:e,options:this.getEventOptions()};await this.sendToServer(t)}catch(e){}}async sendToServer(e){let t=new AbortController,n=setTimeout(()=>t.abort(),this.timeout);try{let i=await fetch(this.apiUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:t.signal});if(clearTimeout(n),!i.ok)throw Error(`Server request failed: ${i.status} ${i.statusText}`);a.k2.debug}catch(e){if(clearTimeout(n),e instanceof Error&&"AbortError"===e.name);else throw e}}getEventOptions(){let e={timestamp:Date.now()};return e.userAgent=window.navigator.userAgent,e.url=window.location.href,e.referrer=document.referrer,e}}let y=(0,r.createContext)(null);function b({children:e}){let t=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e="https://www.viome.com/api/analytics";e?(t.current=new x({apiUrl:e,timeout:5e3}),t.current.init()):a.k2.debug},[]);let n=async(e,n)=>{t.current&&await t.current.track(e,n)},l=async e=>{t.current&&await t.current.page(e)},s=async e=>{t.current&&await t.current.identify(e)},o={serverPlugin:t.current,track:n,page:l,identify:s};return(0,i.jsx)(y.Provider,{value:o,children:e})}
87let v={convertible_products_exp:{name:"convertible_products_exp",description:"Tests different product sets in the /products grid â variant_b shows alternate products.",status:"active",variants:["control","variant_b"],defaultVariant:"control"}};function k(e){return v[e]||null}function j(e){let t=k(e);return!!t&&"active"===t.status}var C=n(62001);let E=new Set,_=(0,r.createContext)(void 0);function T({children:e,autoRefresh:t=!0,refreshInterval:n=3e4}){let{getAllActiveExperiments:l,isVariantActive:s}=function(){let{isReady:e,isLoading:t,client:n,getExperiment:i}=(0,C.A)(),r=r=>{if(!j(r))return null;let l=function(){if(!a.yz)return null;try{return new URLSearchParams(window.location.search).get("exp_variant")}catch{return null}}();if(l){let e=k(r),t=(e?.variants??["control","variant_b"]).includes(l)?l:e?.defaultVariant??"control";return a.yz,{experimentName:r,variant:t,isEnabled:!0,config:{},groupName:`URL override: ${l}`}}if(!e||t||!n||!i)return null;try{let e=i(r),t=k(r);if(e?.details?.reason==="Error:NoClient")return null;let n=e?.groupName||e?.__evaluation?.group_name,l=e?.value&&Object.keys(e.value).length>0;if(!e){let e=`no-data-${r}`;return E.has(e)||(E.add(e),a.yz),{experimentName:r,variant:t?.defaultVariant||"control",isEnabled:!1,config:{}}}let s=t?.defaultVariant||"control";if(n){let e=n.toLowerCase();e.includes("control")?s="control":e.includes("variant a")||e.includes("variant_a")?s="variant_a":e.includes("variant b")||e.includes("variant_b")?s="variant_b":(e.includes("variant c")||e.includes("variant_c"))&&(s="variant_c")}let o=!!n||e.get&&e.get("enabled",!1);return{experimentName:r,variant:s,isEnabled:o,config:l&&e.get?e.get("config",{}):{},groupName:n??void 0,rawExperimentMeta:e}}catch(t){let e=`error-${r}`;return E.has(e)||(E.add(e),a.yz),null}},l=e=>{let t={};return e.forEach(e=>{t[e]=r(e)}),t};return{getExperimentResult:r,getMultipleExperiments:l,isVariantActive:(e,t)=>{let n=r(e);return n?.variant===t&&n?.isEnabled===!0},getAllActiveExperiments:()=>l(Object.keys((k(""),{})).filter(e=>j(e)))}}(),{checkFeatureGate:o}=function(){let{isReady:e,isLoading:t,client:n,checkGate:i}=(0,C.A)();return{checkFeatureGate:r=>{if(!e||t||!n||!i)return!1;try{return i(r)}catch(t){let e=`gate-error-${r}`;return E.has(e)||(E.add(e),a.yz),!1}}}}(),[c,d]=(0,r.useState)({}),[u,m]=(0,r.useState)(!0),h=()=>{try{let e=l();d(e),m(!1)}catch(e){m(!1)}};return(0,r.useEffect)(()=>{if("requestIdleCallback"in window?requestIdleCallback(()=>{h()},{timeout:1500}):setTimeout(()=>{h()},500),t){let e=setInterval(h,n);return()=>clearInterval(e)}},[t,n]),(0,i.jsx)(_.Provider,{value:{experiments:c,isLoading:u,refreshExperiments:h,getExperiment:e=>c[e]||null,isVariantActive:s,checkFeatureGate:o},children:e})}function S({children:e}){let[t,a]=(0,r.useState)(null);if((0,r.useEffect)(()=>{Promise.all([n.e(9285),n.e(7503),n.e(6068),n.e(1392),n.e(247),n.e(1658),n.e(6915),n.e(6029),n.e(8169),n.e(3724),n.e(6663),n.e(9086),n.e(2739),n.e(4864),n.e(8869),n.e(913),n.e(3003),n.e(7813),n.e(3373),n.e(2195),n.e(6811),n.e(164),n.e(5671),n.e(318),n.e(6146),n.e(2420),n.e(5081),n.e(6134),n.e(3508),n.e(2988),n.e(3541),n.e(7048),n.e(220),n.e(3136),n.e(6353),n.e(7127),n.e(888),n.e(2815),n.e(4641),n.e(1898),n.e(1787),n.e(550),n.e(3939),n.e(5473),n.e(4914),n.e(7549),n.e(2801),n.e(6300),n.e(1669),n.e(6651),n.e(9259),n.e(8242),n.e(2053),n.e(712),n.e(8451),n.e(8568),n.e(7455),n.e(3758),n.e(5553),n.e(2104),n.e(6e3),n.e(2925),n.e(3967),n.e(3636),n.e(7163),n.e(5939),n.e(2822),n.e(8131),n.e(8745),n.e(815),n.e(5922),n.e(5720),n.e(6320),n.e(4448),n.e(4460),n.e(4480),n.e(7611),n.e(9800)]).then(n.bind(n,49800)).then(e=>{a({StrapiErrorBoundary:e.StrapiErrorBoundary,StrapiProvider:e.StrapiProvider})})},[]),!t)return(0,i.jsx)(i.Fragment,{children:e});let{StrapiErrorBoundary:l,StrapiProvider:s}=t;return(0,i.jsx)(l,{children:(0,i.jsx)(s,{swrConfig:{revalidateOnFocus:!1,revalidateOnReconnect:!0,refreshInterval:0,dedupingInterval:2e3,errorRetryCount:3,errorRetryInterval:5e3},onError:e=>{},children:e})})}function N({children:e}){return(0,i.jsx)(l.u_,{children:(0,i.jsx)(w,{children:(0,i.jsx)(b,{children:(0,i.jsx)(T,{autoRefresh:!1,children:(0,i.jsx)(S,{children:e})})})})})}},88151:(e,t,n)=>{"use strict";n.d(t,{default:()=>u});var i=n(9476),r=n(3066),a=n(6824),l=n(55941);n(10642);let s=["/jacksonhealth","/jacksonhealth/"];function o(e,t){return!!t&&0!==t.length&&t.some(t=>{if(e===t)return!0;
87if(t.endsWith("*")){let n=t.slice(0,-1);return e.startsWith(n)}return!1})}var c=n(35454);function d(e,t){return e.filter(e=>{if(null==e||"object"!=typeof e||Array.isArray(e))return!0;let n=e.excludedPaths;return!Array.isArray(n)||0===n.length||!o(t,n)})}function u({initialConfig:e}){let t=(0,r.usePathname)(),n=(0,a.useMemo)(()=>!!e&&function(e,t="/"){return!(!e||!e.isEnabled||o(t,s)||o(t,e.excludedPaths))&&!!function(e,t){let n=new Date;return!(e&&n<new Date(e)||t&&n>new Date(t))&&!0}((0,l.L8)(e.campaignStart),(0,l.L8)(e.campaignEnd))}(e,t),[e,t]),u=(0,a.useMemo)(()=>{if(!e)return e;if(Array.isArray(e.bannerConfig)){let n=e.bannerConfig,i=d(n,t);return i.length===n.length?e:{...e,bannerConfig:i}}let n=e.bannerConfig?.rotatingContents;if(!Array.isArray(n)||0===n.length)return e;let i=d(n,t);return i.length===n.length?e:{...e,bannerConfig:{...e.bannerConfig,rotatingContents:i}}},[e,t]);return(0,i.jsx)(c.default,{bannerConfig:u,shouldShow:n})}},96123:(e,t,n)=>{"use strict";n.d(t,{D:()=>d,N:()=>u});var i=n(6824),r=(e,t,n,i,r,a,l,s)=>{let o=document.documentElement,c=["light","dark"];function d(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,i=n&&a?r.map(e=>a[e]||e):r;n?(o.classList.remove(...i),o.classList.add(a&&a[t]?a[t]:t)):o.setAttribute(e,t)}),n=t,s&&c.includes(n)&&(o.style.colorScheme=n)}if(i)d(i);else try{let e=localStorage.getItem(t)||n,i=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;d(i)}catch(e){}},a=["light","dark"],l="(prefers-color-scheme: dark)",s="undefined"==typeof window,o=i.createContext(void 0),c={setTheme:e=>{},themes:[]},d=()=>{var e;return null!=(e=i.useContext(o))?e:c},u=e=>i.useContext(o)?i.createElement(i.Fragment,null,e.children):i.createElement(h,{...e}),m=["light","dark"],h=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:s="theme",themes:c=m,defaultTheme:d=n?"system":"light",attribute:u="data-theme",value:h,children:x,nonce:y,scriptProps:b})=>{let[v,k]=i.useState(()=>p(s,d)),[j,C]=i.useState(()=>"system"===v?w():v),E=h?Object.values(h):c,_=i.useCallback(e=>{let i=e;if(!i)return;"system"===e&&n&&(i=w());let l=h?h[i]:i,s=t?g(y):null,o=document.documentElement,c=e=>{"class"===e?(o.classList.remove(...E),l&&o.classList.add(l)):e.startsWith("data-")&&(l?o.setAttribute(e,l):o.removeAttribute(e))};if(Array.isArray(u)?u.forEach(c):c(u),r){let e=a.includes(d)?d:null,t=a.includes(i)?i:e;o.style.colorScheme=t}null==s||s()},[y]),T=i.useCallback(e=>{let t="function"==typeof e?e(v):e;k(t);try{localStorage.setItem(s,t)}catch(e){}},[v]),S=i.useCallback(t=>{C(w(t)),"system"===v&&n&&!e&&_("system")},[v,e]);i.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(S),S(e),()=>e.removeListener(S)},[S]),i.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?k(e.newValue):T(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),i.useEffect(()=>{_(null!=e?e:v)},[e,v]);let N=i.useMemo(()=>({theme:v,setTheme:T,forcedTheme:e,resolvedTheme:"system"===v?j:v,themes:n?[...c,"system"]:c,systemTheme:n?j:void 0}),[v,T,e,j,n,c]);return i.createElement(o.Provider,{value:N},i.createElement(f,{forcedTheme:e,storageKey:s,attribute:u,enableSystem:n,enableColorScheme:r,defaultTheme:d,value:h,themes:c,nonce:y,scriptProps:b}),x)},f=i.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:l,defaultTheme:s,value:o,themes:c,nonce:d,scriptProps:u})=>{let m=JSON.stringify([n,t,s,e,c,o,a,l]).slice(1,-1);return i.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${m})`}})}),p=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},g=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},w=e=>
87(e||(e=window.matchMedia(l)),e.matches?"dark":"light")}},e=>{e.O(0,[3169,9231,9148,9309,3965,9069,5678,8841,2748,341,2196,7503,6068,1392,247,1658,6915,6029,8169,3724,6663,9086,2739,4864,8869,913,3003,7813,3373,2195,6811,164,5671,318,6146,2420,5081,6134,3508,2988,3541,7048,220,3136,6353,7127,888,2815,4641,1898,1787,550,3939,5473,4914,7549,2801,6300,1669,6651,9259,8242,2053,712,8451,8568,7455,3758,5553,2104,6e3,2925,3967,3636,7163,5939,2822,8131,8745,815,5922,5720,6320,4448,4460,4480,7611,7345,1404,3911,272,1109,3788,3885,3884,2770,8424,7142,6762,8539,7358],()=>e(e.s=42034)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.