1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,593698,e=>{"use strict";let t=(0,e.i(456420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["CheckIcon",0,t],593698)},417175,e=>{"use strict";var t=e.i(742711);let s={memoryFoam:["comfort-memory-foam-mattress","signature-memory-foam-mattress","luxe-memory-foam-mattress"],hybrid:["comfort-hybrid-mattress","signature-hybrid-mattress","luxe-hybrid-mattress"]},a={memoryFoam:["classic-memory-foam-mattress","luxe-memory-foam-mattress"],hybrid:["classic-hybrid-mattress","luxe-hybrid-mattress"]},r=[{icon:"sleep-trial-101",body:"Lounge, nap, play, snooze, and snuggle, risk-free for 3+ months with our 101-Night Sleep Trial."},{icon:"warranty-20-25-year",body:"Quality is our top priority, and we back that with an industry-leading 20-25 year limited warranty on all of our mattresses."},{icon:"fast-shipping",body:"Your GhostBed ships fastâtypically within 24 hours! Most customers receive their order in 2-5 days."}];e.s(["COLLECTION_LAYOUTS",0,{mattresses:{type:"mattresses",heroTitle:{emphasis:"Compare",rest:"GhostBed Mattresses"},faqSlug:"collection-mattresses"},rv:{type:"rv",heroTitle:{emphasis:"Shop",rest:"GhostBed RV",greenRest:!0},heroSubtitle:"Innovative technology combined with top-of-the-line materials for your best sleep yet.",rvHandles:["rv-memory-foam-mattress","rv-hybrid-mattress"],faqSlug:"collection-rv"},wellness:{type:"wellness",heroTitle:{emphasis:"Shop",rest:"Wellness Collection",greenRest:!0},heroSubtitle:"Innovative technology combined with top-of-the-line materials for your best sleep yet.",wellnessTabs:[{id:"venus",label:"Venus Williams Collection",bannerTitle:"Venus Williams Collection",bannerDescription:"Designed to help you recharge and recover with the power of far infrared technology.",bannerImageUrl:"https://ghostbed-cdn.imgix.net/ghostbed-global/sections/wellness-collection-venus/ghostbed-wellness-collection-venus-sitting-on-bed-desktop.jpg",bannerImageUrlMobile:"https://ghostbed-cdn.imgix.net/ghostbed-global/sections/wellness-collection-venus/ghostbed-wellness-collection-venus-sitting-on-bed-mobile.jpg",handles:["venus-williams-legend-memory-foam-mattress","venus-williams-legend-hybrid-mattress"]},{id:"massage",label:"Massage Collection",bannerTitle:"Massage Collection",bannerDescription:"Bring spa-like luxury into your home with first-of-its-kind air pressure massage technology.",bannerImageUrl:"https://ghostbed-cdn.imgix.net/ghostbed-global/pages/wellness/wellness_compare_page_banner_massage.webp",bannerImageUrlMobile:"https://ghostbed-cdn.imgix.net/ghostbed-global/pages/wellness/wellness_compare_page_banner_massage_mobile.webp",handles:["massage-memory-foam-mattress","massage-hybrid-mattress"]},{id:"matrix",label:"3D Matrix⢠Collection",bannerTitle:"3D Matrix® Collection",bannerDescription:"3-dimensional hybrid comfort and cooling with patented technology.",bannerImageUrl:"https://ghostbed-cdn.imgix.net/ghostbed-global/pages/wellness/wellness_compare_page_banner_3d_matrix_current.jpg",bannerImageUrlMobile:"https://ghostbed-cdn.imgix.net/ghostbed-global/pages/wellness/wellness_compare_page_banner_3d_matrix_mobile_current.jpg",handles:["ghostbed-3d-matrix"]}],faqSlug:"collection-wellness"},bundles:{type:"comparison",heroTitle:{emphasis:"Compare",rest:"GhostBed Mattress Bundles"},showPromoLogo:!0,knownForBadges:{"adjustable-base-combo-bundle":{text:"#1 Seller",backgroundColor:"#5fa507"},"split-king":{text:"Couple's Choice",backgroundColor:"#f97316"}},faqSlug:"collection-bundles"},"bed-frames":{type:"comparison",heroTitle:{emphasis:"Compare",rest:"GhostBed Bed Frames"},knownForBadges:{"adjustable-base":{text:"Best Selling",backgroundColor:"#5fa507"},"smart-adjustable-base":{text:"New",backgroundColor:"#5fa507"}},faqSlug:"collection-bed-frames"},pillows:{type:"comparison",heroTitle:{emphasis:"Compare All",rest:"3 GhostPillows"},knownForBadges:{"ghostpillow-memory-foam":{text:"Instant Cooling",backgroundColor:"#1e40af"},"ghostpillow-faux-down":{text:"Softest/Plushest",backgroundColor:"#0891b2"},"ghostpillow-shredded":{text:"Customizable",backgroundColor:"#5fa507"}}
1,faqSlug:"collection-pillows"},"venus-williams":{type:"venus-williams",faqSlug:"collection-venus-williams"},"fsa-hsa-products":{type:"fsa-hsa",fsaHsaHero:{backgroundImageUrl:"https://ghostbed-cdn.imgix.net/ghostbed-global/collections/fsa-hsa-products/ghostbed-fsa-hsa-products-header.jpg",truemedLogoUrl:"https://ghostbed-cdn.imgix.net/ghostbed-global/logos/logo-truemed-light.svg"},fsaHsaSubCollectionHandles:["fsa-hsa-mattresses","fsa-hsa-bases-foundations","fsa-hsa-massage-collection","fsa-hsa-other-products"],faqSlug:"collection-fsa-hsa-eligible-products"}},"mattressCardSet",0,function(e=t.DEFAULT_MARKET){return"GB"===e.id?a:s},"whatYouGetBandItems",0,function(e=t.DEFAULT_MARKET){let s="CA"===e.id?"Canada & USA":"USA & Canada";return[...r,{icon:"made-in-flag",body:`Our mattresses are built in ${s} by Nature's Sleep, a company that's been around for 20 years. (We're not going anywhere.)`}]}])},540079,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeftIcon",0,t],540079)},370380,e=>{"use strict";var t=e.i(500932),s=e.i(271645);function a(e){return"function"!=typeof window.matchMedia?null:window.matchMedia(e)}function r(){return!1}function l(){}e.s(["useMediaQuery",0,function(e){let n,i,o=(0,t.c)(3);return o[0]!==e?(n=t=>{let s=a(e);return s?(s.addEventListener("change",t),()=>s.removeEventListener("change",t)):l},i=()=>a(e)?.matches??!1,o[0]=e,o[1]=n,o[2]=i):(n=o[1],i=o[2]),(0,s.useSyncExternalStore)(n,i,r)}])},792004,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(174080),l=e.i(540079),n=e.i(746336);let i=(0,e.i(456420).default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);var o=e.i(57095),c=e.i(370380),d=e.i(906632),m=e.i(975157);let u=()=>()=>{},h={base:1},f={1:"basis-full",2:"basis-1/2",3:"basis-1/3",4:"basis-1/4"},g={1:"sm:basis-full",2:"sm:basis-1/2",3:"sm:basis-1/3",4:"sm:basis-1/4"},b={1:"lg:basis-full",2:"lg:basis-1/2",3:"lg:basis-1/3",4:"lg:basis-1/4"},p='a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])';function x(e){e&&e.querySelectorAll(p).forEach(e=>{e.tabIndex=-1})}let v="group/carousel-nav flex shrink-0 items-center justify-center outline-none transition-colors duration-[var(--duration-base)] hover:text-gbgreen disabled:pointer-events-none disabled:opacity-40",w="flex items-center justify-center rounded-full p-1 group-focus-visible/carousel-nav:ring-2 group-focus-visible/carousel-nav:ring-gbgreen-500";function y(e){return!e}function j(e){if("true"===e.dataset.carouselFocusManaged)return;e.dataset.carouselFocusManaged="true";let t=e.getAttribute("tabindex");null!==t&&(e.dataset.carouselOrigTabindex=t),e.tabIndex=-1}function N(e){let t=e.dataset.carouselOrigTabindex;void 0===t?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),delete e.dataset.carouselFocusManaged,delete e.dataset.carouselOrigTabindex}function S(e){return e.hasAttribute("data-carousel-slide")}function k(){return!1}function C(){return!0}e.s(["Carousel",0,function(e){let _,E,M,T,I,L,R,A,$,z,B,U,P,D,O,H,q,G,F,V,W,K,Q,X,Y,J,Z,ee,et,es,ea,er,el,en=(0,s.c)(117),{items:ei,renderItem:eo,ariaLabel:ec,getSlideLabel:ed,slidesPerView:em,loop:eu,autoplay:eh,autoplayIntervalMs:ef,className:eg,slideClassName:eb}=e,ep=void 0===em?h:em,ex=void 0!==eu&&eu,ev=void 0!==eh&&eh,ew=void 0===ef?3e3:ef,ey=ei.length,ej=(er=(0,c.useMediaQuery)("(min-width: 1024px)"),el=(0,c.useMediaQuery)("(min-width: 640px)"),er&&ep.lg?ep.lg:el&&ep.sm?ep.sm:ep.base),eN=(0,d.usePrefersReducedMotion)(),eS=Math.max(0,ey-ej),[ek,eC]=(0,a.useState)(0),[e_,eE]=(0,a.useState)(!0),[eM,eT]=(0,a.useState)(!1),[eI,eL]=(0,a.useState)(!1),[eR,eA]=(0,a.useState)(""),e$=(0,a.useRef)(null),ez=(0,a.useId)(),eB=ex?Math.min(Math.max(ek,0),ey):Math.min(ek,eS),eU=eB<=0,eP=eB>=eS,eD=Math.min(ey,Math.max(ep.base,ep.sm??0,ep.lg??0)),eO=(0,a.useSyncExternalStore)(u,C,k),eH=ex&&ey>1&&eO;en[0]===Symbol.for("react.memo_cache_sentinel")?(_=function(e){(0,r.flushSync)(()=>{eE(!1),eC(e)}),e$.current?.getBoundingClientRect()},en[0]=_):_=en[0];let eq=_;en[1]!==ed||en[2]!==ei||en[3]!==ey?(E=function(e){let t=(e%ey+ey)%ey,s=ei[t];eA(ed?ed(s,t,ey):`${t+1} of ${ey}`)},en[1]=ed,en[2]=ei,en[3]=ey,en[4]=E):E=en[4];let eG=E;en[5]!==eG||en[6]!==eB||en[7]!==ex||en[8]!==eS||en[9]!==eN||en[10]!==ey||en[11]!==ej?(M=function(e){let t;
1!(ey<=ej)&&(ex?eN?eC(t=(eB+1)%ey):eB>=ey?(eq(0),eE(!0),t=1,eC(1)):(eE(!0),eC(t=eB+1)):eC(t=Math.min(eB+1,eS)),void 0!==e&&e||eG(t))},en[5]=eG,en[6]=eB,en[7]=ex,en[8]=eS,en[9]=eN,en[10]=ey,en[11]=ej,en[12]=M):M=en[12];let eF=M;en[13]!==eG||en[14]!==eB||en[15]!==ex||en[16]!==eN||en[17]!==ey||en[18]!==ej?(T=function(){let e;ey<=ej||(ex?eN?eC(e=((eB-1)%ey+ey)%ey):eB<=0?(eq(ey),eE(!0),eC(e=ey-1)):(eE(!0),eC(e=eB-1)):eC(e=Math.max(eB-1,0)),eG(e))},en[13]=eG,en[14]=eB,en[15]=ex,en[16]=eN,en[17]=ey,en[18]=ej,en[19]=T):T=en[19];let eV=T;en[20]===Symbol.for("react.memo_cache_sentinel")?(I=function(){eE(!1),eC(0)},en[20]=I):I=en[20];let eW=I;en[21]!==eB||en[22]!==ex||en[23]!==ey?(L=function(e){ex&&e.target===e.currentTarget&&eB>=ey&&eW()},en[21]=eB,en[22]=ex,en[23]=ey,en[24]=L):L=en[24];let eK=L;en[25]!==eB||en[26]!==ex||en[27]!==ey?(R=()=>{if(!ex||eB<ey)return;let e=setTimeout(eW,700);return()=>clearTimeout(e)},A=[ex,eB,ey],en[25]=eB,en[26]=ex,en[27]=ey,en[28]=R,en[29]=A):(R=en[28],A=en[29]),(0,a.useEffect)(R,A);let eQ=ev&&!eN&&!eM&&!eI&&ey>1,eX=ev&&!eN&&ey>1;en[30]!==eB||en[31]!==ey||en[32]!==ej?($=()=>{let e=e$.current;e&&Array.from(e.children).filter(S).forEach((e,t)=>{ey<=ej||t>=eB&&t<eB+ej?e.querySelectorAll("[data-carousel-focus-managed]").forEach(N):e.querySelectorAll(p).forEach(j)})},en[30]=eB,en[31]=ey,en[32]=ej,en[33]=$):$=en[33],en[34]!==eB||en[35]!==ei||en[36]!==ey||en[37]!==ej?(z=[eB,ej,ey,ei],en[34]=eB,en[35]=ei,en[36]=ey,en[37]=ej,en[38]=z):z=en[38],(0,a.useEffect)($,z);let eY=(0,a.useRef)(eF);en[39]!==eF?(B=()=>{eY.current=eF},en[39]=eF,en[40]=B):B=en[40],(0,a.useEffect)(B),en[41]!==eQ||en[42]!==ew?(U=()=>{if(!eQ)return;let e=setInterval(()=>eY.current(!0),ew);return()=>clearInterval(e)},P=[eQ,ew],en[41]=eQ,en[42]=ew,en[43]=U,en[44]=P):(U=en[43],P=en[44]),(0,a.useEffect)(U,P),en[45]!==eG||en[46]!==eF||en[47]!==eV||en[48]!==eS?(D=function(e){"ArrowRight"===e.key?(e.preventDefault(),eF()):"ArrowLeft"===e.key?(e.preventDefault(),eV()):"Home"===e.key?(e.preventDefault(),eE(!0),eC(0),eG(0)):"End"===e.key&&(e.preventDefault(),eE(!0),eC(eS),eG(eS))},en[45]=eG,en[46]=eF,en[47]=eV,en[48]=eS,en[49]=D):D=en[49];let eJ=D,eZ=`translateX(-${100/ej*eB}%)`;en[50]!==eZ?(O={transform:eZ},en[50]=eZ,en[51]=O):O=en[51];let e0=O;en[52]!==eb||en[53]!==ep?(H=(0,m.cn)("shrink-0 grow-0",function(e){let t=f[e.base],s=e.sm?g[e.sm]:void 0,a=e.lg?b[e.lg]:void 0;if(!t||e.sm&&!s||e.lg&&!a)throw Error(`Carousel: unsupported slidesPerView count in ${JSON.stringify(e)} â add it to the static basis-class maps in carousel.tsx (Tailwind cannot compile dynamic class names).`);return(0,m.cn)(t,s,a)}(ep),eb),en[52]=eb,en[53]=ep,en[54]=H):H=en[54];let e1=H;en[55]!==eg?(q=(0,m.cn)("relative focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-gbgreen-600",eg),en[55]=eg,en[56]=q):q=en[56],en[57]===Symbol.for("react.memo_cache_sentinel")?(G=()=>eT(!0),F=()=>eT(!1),V=()=>eT(!0),W=()=>eT(!1),en[57]=G,en[58]=F,en[59]=V,en[60]=W):(G=en[57],F=en[58],V=en[59],W=en[60]),en[61]!==eX||en[62]!==eI?(K=eX&&(0,t.jsx)("button",{type:"button",onClick:()=>{eI&&eT(!1),eL(y)},"aria-label":eI?"Start automatic slide show":"Stop automatic slide show",className:(0,m.cn)("absolute bottom-2 left-2 z-10 flex size-8 items-center justify-center border border-black/10 bg-white/70 text-neutral-700 backdrop-blur-sm transition-colors duration-[var(--duration-base)] hover:bg-white hover:text-neutral-900","rounded-full outline-none focus-visible:ring-2 focus-visible:ring-gbgreen-500"),children:eI?(0,t.jsx)(o.PlayIcon,{className:"size-3.5"}):(0,t.jsx)(i,{className:"size-3.5"})}),en[61]=eX,en[62]=eI,en[63]=K):K=en[63],en[64]!==eU||en[65]!==eV||en[66]!==ex||en[67]!==ez||en[68]!==ey||en[69]!==ej?(Q=ey>ej&&(0,t.jsx)("button",{type:"button",onClick:()=>eV(),disabled:!ex&&eU,"aria-label":"Previous slide","aria-controls":ez,className:v,children:(0,t.jsx)("span",{className:w,children:(0,t.jsx)(l.ChevronLeftIcon,{className:"size-6"})})}),en[64]=eU,en[65]=eV,en[66]=ex,en[67]=ez,en[68]=ey,en[69]=ej,en[70]=Q):Q=en[70];let e2=e_&&"motion-safe:transition-transform motion-safe:duration-[var(--duration-slow)] motion-safe:ease-out-soft";if(en[71]!==e2?(X=(0,m.cn)("flex",e2),en[71]=e2,en[72]=X):X=en[72],en[73]!==ed||en[74]!==ei||en[75]!==eo||en[76]!==e1||en[77]!==ey){let e;en[79]!==ed||en[80]!==eo||en[81]!==e1||en[82]!==ey?(e=(e,s)=>(0,t.jsx)("div",{"data-carousel-slide":"",role:"group","aria-roledescription":"slide","aria-label":ed?ed(e,s,ey):`${s+1} of ${ey}`,className:e1,children:eo(e,s)},s),en[79]=ed,en[80]=eo,en[81]=e1,en[82]=ey,en[83]=e):e=en[83],Y=ei.map(e),en[73]=ed,en[74]=ei,en[75]=eo,en[76]=e1,en[77]=ey,en[78]=Y}else Y=en[78];return en[84]!==eD||en[85]!==ei||en[86]!==eH||en[87]!==eo||en[88]!==e1?(J=eH&&ei.slice(0,eD).map((e,s)=>(0,t.jsx)("div",{"aria-hidden":"true",ref:x,className:e1,children:eo(e,s)},`clone-${s}`)),en[84]=eD,en[85]=ei,en[86]=eH,en[87]=eo,en[88]=e1,en[89]=J):J=en[89],en[90]!==eK||en[91]!==X||en[92]!==Y||en[93]!==J||en[94]!==e0?(Z=(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-hidden",children:(0,t.jsxs)("div",{ref:e$,className:X,style:e0,onTransitionEnd:eK,"data-testid":"carousel-track",children:[Y,J]})}),en[90]=eK,en[91]=X,en[92]=Y,en[93]=J,en[94]=e0,en[95]=Z):Z=en[95],en[96]!==eP||en[97]!==eF||en[98]!==ex||en[99]!==ez||en[100]!==ey||en[101]!==ej?(ee=ey>ej&&(0,t.jsx)("button",{type:"button",onClick:()=>eF(),disabled:!ex&&eP,"aria-label":"Next slide","aria-controls":ez,className:v,children:(0,t.jsx)("span",{className:w,children:(0,t.jsx)(n.ChevronRightIcon,{className:"size-6"})})}),en[96]=eP,en[97]=eF,en[98]=ex,en[99]=ez,en[100]=ey,en[101]=ej,en[102]=ee):ee=en[102],en[103]!==Q||en[104]!==Z||en[105]!==ee?(et=(0,t.jsxs)("div",{className:"flex gap-x-2",children:[Q,Z,ee]}),en[103]=Q,en[104]=Z,en[105]=ee,en[106]=et):et=en[106],en[107]!==eR?(es=(0,t.jsx)("div",{role:"status","aria-live":"polite",className:"sr-only",children:eR}),en[107]=eR,en[108]=es):es=en[108],en[109]!==ec||en[110]!==eJ||en[111]!==ez||en[112]!==q||en[113]!==K||en[114]!==et||en[115]!==es?(ea=(0,t.jsxs)("div",{className:q,role:"region","aria-roledescription":"carousel","aria-label":ec,id:ez,tabIndex:0,onKeyDown:eJ,onMouseEnter:G,onMouseLeave:F,onFocus:V,onBlur:W,children:[K,et,es]}),en[109]=ec,en[110]=eJ,en[111]=ez,en[112]=q,en[113]=K,en[114]=et,en[115]=es,en[116]=ea):ea=en[116],ea}],792004)},373372,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645);let r=(0,e.i(456420).default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var l=e.i(952245);function n(){}e.s(["VideoCtaLink",0,function(e){let i,o,c,d,m,u,h=(0,s.c)(13),{videoUrl:f,label:g,alt:b}=e,[p,x]=(0,a.useState)(!1),v=b??g;h[0]!==v||h[1]!==f?(i=[{type:"video-overlay",altText:v,posterUrl:"",videoUrl:f,hosted:!0}],h[0]=v,h[1]=f,h[2]=i):i=h[2];let w=i;return h[3]===Symbol.for("react.memo_cache_sentinel")?(o=()=>x(!0),h[3]=o):o=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(r,{"aria-hidden":"true",className:"w-6 flex-none transition-transform duration-[var(--duration-base)] motion-safe:group-hover:scale-110"}),h[4]=c):c=h[4],h[5]!==g?(d=(0,t.jsxs)("button",{type:"button",onClick:o,"data-owner-parity":"meet-cta-link",className:"group mt-3 inline-flex cursor-pointer items-center gap-2.5 font-semibold text-gbgreen transition-colors duration-[var(--duration-base)] hover:text-gbgreen-600",children:[c,(0,t.jsx)("span",{className:"underline-offset-4 group-hover:underline",children:g})]}
1),h[5]=g,h[6]=d):d=h[6],h[7]!==w||h[8]!==p?(m=(0,t.jsx)(l.Lightbox,{items:w,index:0,open:p,onOpenChange:x,onIndexChange:n}),h[7]=w,h[8]=p,h[9]=m):m=h[9],h[10]!==d||h[11]!==m?(u=(0,t.jsxs)(t.Fragment,{children:[d,m]}),h[10]=d,h[11]=m,h[12]=u):u=h[12],u}],373372)},324154,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(522016),r=e.i(792004),l=e.i(874373),n=e.i(870507),i=e.i(324062);function o(e,t,s){return`${e.name}'s review (${t+1} of ${s})`}function c(e,t,s){return`${e.name}'s review (${t+1} of ${s})`}e.s(["TestimonialCarouselSection",0,function(e){let d,m,u,h,f,g,b=(0,s.c)(32);b[0]!==e?(d=void 0===e?{}:e,b[0]=e,b[1]=d):d=b[1];let{id:p,testimonials:x,starImageUrl:v,ariaLabel:w,loop:y,autoplay:j,variant:N,cta:S}=d,k=void 0===p?"testimonial-slider":p,C=void 0===x?i.TESTIMONIALS:x,_=void 0===w?"Customer testimonials":w,E=void 0===y||y,M=void 0===j||j;b[2]!==S?(m=S&&(0,t.jsx)("div",{className:"mt-8 flex justify-center",children:(0,t.jsx)(a.default,{href:S.href,className:"rounded-full bg-gbgreen px-5 py-3 font-bold text-white transition-transform duration-[var(--duration-base)] ease-out-soft motion-safe:hover:scale-105","data-owner-parity":"testimonial-band-cta",children:S.label})}),b[2]=S,b[3]=m):m=b[3];let T=m;if("band"===(void 0===N?"card":N)){let e,s,a,l,i=v??"https://ghostbed-cdn.imgix.net/ghostbed-global/pages/101-night-trial/5-stars.svg";return b[4]!==i?(e=e=>(0,t.jsxs)("div",{className:"px-4 text-center",children:[(0,t.jsx)("img",{src:i,alt:"5 Star Review",width:102,height:19,loading:"lazy",className:"mx-auto block h-6"}),e.title&&(0,t.jsx)("h4",{className:"mt-4 text-xl font-bold",children:e.title}),(0,t.jsxs)("p",{className:"mt-6",children:["â",e.quote,"â"]}),(0,t.jsx)("p",{className:"mt-6",children:e.name})]}),b[4]=i,b[5]=e):e=b[5],b[6]!==_||b[7]!==M||b[8]!==E||b[9]!==e||b[10]!==C?(s=(0,t.jsx)(r.Carousel,{items:C,ariaLabel:_,loop:E,autoplay:M,autoplayIntervalMs:3e3,getSlideLabel:c,renderItem:e}),b[6]=_,b[7]=M,b[8]=E,b[9]=e,b[10]=C,b[11]=s):s=b[11],b[12]!==T||b[13]!==s?(a=(0,t.jsxs)("div",{className:"mx-auto w-full max-w-3xl px-4",children:[s,T]}),b[12]=T,b[13]=s,b[14]=a):a=b[14],b[15]!==k||b[16]!==a?(l=(0,t.jsx)(n.ScrollReveal,{className:"block",children:(0,t.jsx)("section",{id:k,className:"w-full bg-slate-900 py-10 text-white md:bg-gradient-to-r md:from-slate-900 md:via-slate-700 md:to-slate-900 md:py-20",children:a})}),b[15]=k,b[16]=a,b[17]=l):l=b[17],l}let I=v??i.TESTIMONIAL_STAR_IMAGE_URL;return b[18]!==I?(u=e=>(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-y-10 px-4 text-center",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-3xl font-light",children:[(0,t.jsx)("img",{src:I,alt:"5-Star Review",width:144,height:25,loading:"lazy",className:"mx-auto block h-6"}),(0,t.jsxs)("p",{className:"mt-4",children:["â",e.quote,"â"]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[e.avatarUrl&&(0,t.jsx)("img",{src:`${e.avatarUrl}?w=200&h=200&fit=crop&fm=webp`,alt:"",width:200,height:200,loading:"lazy",className:"h-8 w-8 rounded-full object-cover"}),(0,t.jsx)("span",{className:"font-light",children:e.name})]})]}),b[18]=I,b[19]=u):u=b[19],b[20]!==_||b[21]!==M||b[22]!==E||b[23]!==u||b[24]!==C?(h=(0,t.jsx)(r.Carousel,{items:C,ariaLabel:_,loop:E,autoplay:M,autoplayIntervalMs:3e3,getSlideLabel:o,renderItem:u}),b[20]=_,b[21]=M,b[22]=E,b[23]=u,b[24]=C,b[25]=h):h=b[25],b[26]!==T||b[27]!==h?(f=(0,t.jsxs)("div",{className:"rounded-xl bg-hero-radial px-4 py-10 text-white sm:px-6 md:py-20",children:[h,T]}),b[26]=T,b[27]=h,b[28]=f):f=b[28],b[29]!==k||b[30]!==f?(g=(0,t.jsx)(l.HomeSection,{id:k,children:f}),b[29]=k,b[30]=f,b[31]=g):g=b[31],g}])},598117,e=>{"use strict";var t=e.i(843476),s=e.i(500932);e.s(["CircleVideoPlayIcon",0,function(e){let a,r,l=(0,s.c)(3),{className:n}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("g",{fill:"currentColor",fillRule:"nonzero",transform:"translate(-4.301 -.387)",children:[(0,t.jsx)("path",{d:"m115.151 222.087c-29.609 0-57.447-11.529-78.384-32.466s-32.466-48.775-32.466-78.384 11.529-57.447 32.466-78.384 48.775-32.466 78.384-32.466 57.447 11.529 78.384 32.466 32.466 48.775 32.466 78.384-11.529 57.447-32.466 78.384-48.775 32.466-78.384 32.466zm0-205.435c-25.263 0-49.015 9.838-66.882 27.702-17.865 17.865-27.702 41.617-27.702 66.883s9.837 49.018 27.702 66.882c17.864 17.865 41.616 27.702 66.882 27.702s49.015-9.837 66.882-27.702c17.865-17.864 27.702-41.616 27.702-66.882s-9.837-49.015-27.702-66.883c-17.864-17.864-41.616-27.702-66.882-27.702z"}),(0,t.jsx)("path",{d:"m163.786 104.89-67.454-38.942c-4.886-2.821-10.992.704-10.992 6.346v77.888c0 5.642 6.108 9.167 10.992 6.346l67.454-38.942c4.886-2.821 4.886-9.875 0-12.696z"})]}),l[0]=a):a=l[0],l[1]!==n?(r=(0,t.jsx)("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,viewBox:"0 0 222 222",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":"true",children:a}),l[1]=n,l[2]=r):r=l[2],r}])},383727,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(598117),l=e.i(870507),n=e.i(952245);function i(){}e.s(["FoundersLetterSection",0,function(e){let o,c,d,m,u,h,f,g,b,p,x,v,w,y,j=(0,s.c)(33),{videoUrl:N,videoScreenshotUrl:S,videoAlt:k,eyebrow:C,className:_,id:E,children:M}
1=e,T=void 0===k?"Marc Werner walks you through the GhostBed":k,[I,L]=(0,a.useState)(!1),R=S.includes("?")?"&":"?",A=`${S}${R}w=1200&fm=webp`;j[0]!==A||j[1]!==T||j[2]!==N?(o=[{type:"video-overlay",altText:T,posterUrl:A,videoUrl:N,hosted:!0}],j[0]=A,j[1]=T,j[2]=N,j[3]=o):o=j[3];let $=o;j[4]!==C?(c=C&&(0,t.jsxs)("p",{className:"mb-5 flex items-center gap-3 text-xs font-bold tracking-[0.2em] text-gbgreen uppercase",children:[(0,t.jsx)("span",{className:"h-px w-8 bg-gbgreen","aria-hidden":"true"}),C]}),j[4]=C,j[5]=c):c=j[5],j[6]!==M?(d=(0,t.jsx)("div",{className:"leading-relaxed text-gray-700",children:M}),j[6]=M,j[7]=d):d=j[7],j[8]!==c||j[9]!==d?(m=(0,t.jsxs)("div",{children:[c,d]}),j[8]=c,j[9]=d,j[10]=m):m=j[10],j[11]===Symbol.for("react.memo_cache_sentinel")?(u=()=>L(!0),j[11]=u):u=j[11];let z=`Play video: ${T}`;return j[12]!==A?(h=(0,t.jsx)("img",{className:"w-full transition duration-500 ease-out motion-safe:md:group-hover:scale-[1.03]",width:1156,height:747,src:A,alt:"",loading:"lazy"}),j[12]=A,j[13]=h):h=j[13],j[14]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("span",{className:"absolute inset-0 bg-black/10 transition duration-500 md:group-hover:bg-transparent","aria-hidden":"true"}),f=(0,t.jsx)(r.CircleVideoPlayIcon,{className:"absolute top-1/2 left-1/2 w-14 -translate-x-1/2 -translate-y-1/2 text-white drop-shadow-lg transition duration-300 md:w-16 motion-safe:md:group-hover:scale-110"}),g=(0,t.jsx)("span",{"data-owner-parity":"",className:"absolute right-4 bottom-4 rounded-xl bg-gbgreen px-5 py-2.5 text-sm font-semibold text-white shadow-lg md:right-5 md:bottom-5 md:px-6 md:text-base",children:"Watch Now"}),j[14]=f,j[15]=g,j[16]=b):(f=j[14],g=j[15],b=j[16]),j[17]!==z||j[18]!==h?(p=(0,t.jsxs)("button",{type:"button",onClick:u,"aria-label":z,className:"group relative block w-full cursor-pointer overflow-hidden rounded-2xl shadow-lg",children:[h,b,f,g]}),j[17]=z,j[18]=h,j[19]=p):p=j[19],j[20]!==p||j[21]!==m?(x=(0,t.jsxs)("div",{className:"grid items-center gap-8 p-6 xs:p-8 sm:p-10 lg:grid-cols-2 lg:gap-14 lg:p-14",children:[m,p]}),j[20]=p,j[21]=m,j[22]=x):x=j[22],j[23]!==E||j[24]!==x?(v=(0,t.jsx)("section",{id:E,className:"overflow-hidden rounded-2xl bg-gray-100",children:x}),j[23]=E,j[24]=x,j[25]=v):v=j[25],j[26]!==$||j[27]!==I?(w=(0,t.jsx)(n.Lightbox,{items:$,index:0,open:I,onOpenChange:L,onIndexChange:i}),j[26]=$,j[27]=I,j[28]=w):w=j[28],j[29]!==_||j[30]!==v||j[31]!==w?(y=(0,t.jsxs)(l.ScrollReveal,{className:_,children:[v,w]}),j[29]=_,j[30]=v,j[31]=w,j[32]=y):y=j[32],y}])},165986,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(572488),l=e.i(64114);e.i(247167);let n={trustmarkNumber:"XXRHUGKQ",type:4},i=new Set;var o=e.i(975157);e.s(["ConsumerReportsBadge",0,function(e){let c,d,m,u,h,f,g,b=(0,s.c)(21),{linkUrl:p,className:x,newWindow:v}=e,w=void 0!==v&&v,y=(0,a.useId)();if(b[0]!==y){let e;b[2]===Symbol.for("react.memo_cache_sentinel")?(e=/[^a-zA-Z0-9]/g,b[2]=e):e=b[2],c=y.replace(e,""),b[0]=y,b[1]=c}else c=b[1];let j=`cr-badge-${c}`;b[3]!==j?(d=()=>{let e=!1;return(0,l.whenIdle)(()=>{e||(!function(){if("u"<typeof document||document.getElementById("tw"))return;window["JS-Widget"]="tw",window.tw=function(...e){(window.tw.q=window.tw.q??[]).push(e)};let e=document.createElement("script");e.id="tw",e.src="https://crrecommendedmark.org/Scripts/widget.js",e.async=!0,document.head.appendChild(e),window.tw("init",null)}(),function(e,t){if(!window.tw||i.has(e))return;let s=document.querySelector(`.${e}`);
1s&&s.childElementCount>0||(i.add(e),window.tw("trustmark",{trustmarkNumber:t.trustmarkNumber,type:t.type,containerClass:e}))}(j,n))}),()=>{e=!0,i.delete(j),document.querySelector(`.${j}`)?.replaceChildren()}},m=[j],b[3]=j,b[4]=d,b[5]=m):(d=b[4],m=b[5]),(0,a.useEffect)(d,m),b[10]!==x||b[11]!==j?(u=(0,o.cn)("overflow-hidden rounded-md md:rounded-xl",j,x),b[10]=x,b[11]=j,b[12]=u):u=b[12],b[13]!==u?(h=(0,t.jsx)("div",{className:u,"data-testid":"cr-widget"}),b[13]=u,b[14]=h):h=b[14];let N=h;return p?(b[15]!==w?(f=w&&{target:"_blank",rel:"noopener noreferrer"},b[15]=w,b[16]=f):f=b[16],b[17]!==p||b[18]!==f||b[19]!==N?(g=(0,t.jsx)(r.AppLink,{href:p,"aria-label":"Consumer Reports Recommended",className:"inline-block transition-transform duration-base md:hover:scale-105",...f,children:N}),b[17]=p,b[18]=f,b[19]=N,b[20]=g):g=b[20],g):N}],165986)},560534,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(522016),r=e.i(792004),l=e.i(874373),n=e.i(324062);function i(e){return(0,t.jsxs)("div",{className:"relative mx-auto h-[500px] w-full max-w-sm overflow-hidden rounded-xl shadow-md",children:[(0,t.jsx)("img",{src:`${e.imageUrl}?w=600&fm=webp`,alt:e.title,loading:"lazy",className:"absolute inset-0 h-full w-full object-cover"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 flex h-1/2 items-end bg-gradient-to-t from-black via-black/70 to-transparent",children:(0,t.jsxs)("div",{className:"p-6 text-white",children:[(0,t.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:e.title}),(0,t.jsx)("p",{className:"mb-1 text-sm font-bold text-gbgreen-400 uppercase",children:e.tagline}),(0,t.jsx)("p",{className:"mb-4 text-sm",children:e.description}),(0,t.jsx)(a.default,{href:e.url,className:"inline-block w-fit rounded-xl border-2 border-gbgreen bg-transparent px-4 py-2 font-bold text-white transition duration-[var(--duration-base)] hover:bg-gbgreen",children:"Shop Now"})]})})]})}function o(e,t,s){return`${e.title} (${t+1} of ${s})`}e.s(["ExploreProductsCarouselSection",0,function(){let e,a,c=(0,s.c)(2);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsx)("h2",{className:"text-3xl font-semibold text-gray-900 sm:text-4xl",children:n.EXPLORE_PRODUCTS_HEADING}),(0,t.jsx)("p",{className:"mt-2 text-neutral-600",children:n.EXPLORE_PRODUCTS_SUBHEADING})]}),c[0]=e):e=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)(l.HomeSection,{id:"explore-products",children:[e,(0,t.jsx)(r.Carousel,{items:n.EXPLORE_PRODUCTS,ariaLabel:"Explore GhostBed products",slidesPerView:{base:1,sm:2,lg:3},loop:!0,getSlideLabel:o,slideClassName:"py-1",renderItem:i})]}),c[1]=a):a=c[1],a}])},674576,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(792004),r=e.i(874373),l=e.i(324062);function n(e){return(0,t.jsxs)("div",{className:"flex flex-col gap-y-3",children:[(0,t.jsx)("img",{src:`${e.imageUrl}?width=1280&height=1112&fit=crop&fm=webp`,alt:e.title,loading:"lazy",className:"block w-full rounded-xl"}),(0,t.jsxs)("div",{className:"text-gray-700",children:[(0,t.jsx)("h3",{className:"text-xl font-bold",children:e.title}),(0,t.jsx)("p",{children:e.description})]})]})}function i(e,t,s){return`${e.title} (${t+1} of ${s})`}e.s(["FeatureCarouselSection",0,function(){let e,o,c=(0,s.c)(2);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("h2",{className:"mb-8 text-center text-3xl font-bold",children:l.GHOSTBED_FEATURES_HEADING}),c[0]=e):e=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)(r.HomeSection,{id:"ghostbed-features",children:[e,(0,t.jsx)(a.Carousel,{items:l.GHOSTBED_FEATURES,ariaLabel:"GhostBed features",slidesPerView:{base:1,sm:2,lg:3},loop:!0,getSlideLabel:i,slideClassName:"p-5",renderItem:n})]}),c[1]=o):o=c[1],o}])},816853,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645);function r(e){let a,r,l,n,i,o,c,d=(0,s.c)(8);return d[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("path",{d:"m28.1 156.27c-5.3 0-8-2.61-8-6.9 0-8 8.92-10.69 25.19-12.42 0 10.66-7.21 19.32-17.24 19.32zm7-59.95c-11.63 0-25 5.47-32.26 11.26l6.63 14c5.82-5.33 15.23-9.89 23.72-9.89 8.07 0 12.53 2.7 12.53 8.14 0 3.65-2.95 5.5-8.53 6.23-20.86 2.7-37.21 8.46-37.21 24.53 0 12.74 9.07 20.45 23.24 20.45 10.12 0 19.12-5.62 23.4-13v11h18.86v-46.09c0-19-13.19-26.67-30.37-26.67z"}),r=(0,t.jsx)("path",{d:"m224.39 98.39v70.56h20.18v-34c0-16.15 9.78-20.9 16.59-20.9 3.065-.024 6.07.864 8.63 2.55l3.69-18.65c-2.859-1.145-5.921-1.699-9-1.63-10.37 0-16.89 4.59-21.19 13.93v-11.86z"}),l=(0,t.jsx)("path",{d:"m367 96.32c-10.67 0-18.65 6.3-22.8 12.38-3.85-7.85-12-12.38-21.8-12.38-10.66 0-18.05 5.92-21.46 12.74v-10.67h-19.46v70.56h20.2v-36.33c0-13 6.83-19.29 13.2-19.29 5.77 0 11.07 3.73 11.07 13.36v42.26h20.16v-36.33c0-13.19 6.66-19.29 13.33-19.29 5.34 0 11 3.88 11 13.22v42.4h20.16v-48.78c0-15.85-10.67-23.85-23.56-23.85"}),n=(0,t.jsx)("path",{d:"m175.28 98.39h-18.28v-7.17c0-9.34 5.33-12 9.92-12 3.134.041 6.216.811 9 2.25l6.22-14.23s-6.31-4.12-17.78-4.12c-12.89 0-27.56 7.27-27.56 30.08v5.19h-30.55v-7.17c0-9.34 5.32-12 9.92-12 3.139 0 6.23.773 9 2.25l6.22-14.23c-3.71-2.17-9.68-4.12-17.77-4.12-12.89 0-27.56 7.27-27.56 30.08v5.19h-11.68v15.56h11.71v55h20.16v-55h30.59v55h20.16v-55h18.28z"}),i=(0,t.jsx)("path",{d:"m187.32 98.39h20.14v70.53h-20.14z"}),o=(0,t.jsx)("path",{d:"m188.06 86.4h19.73c11.51-36.19 50.56-68 97-68 56.48 0 105.29 43 105.29 109.94.172 13.74-1.716 27.429-5.6 40.61h19.15l.19-.66c3.227-13.049 4.819-26.448 4.74-39.89 0-74.65-54.4-128.38-123.73-128.38-54.46 0-103 37.8-116.76 86.4z"}),d[0]=a,d[1]=r,d[2]=l,d[3]=n,d[4]=i,d[5]=o):(a=d[0],r=d[1],l=d[2],n=d[3],i=d[4],o=d[5]),d[6]!==e?(c=(0,t.jsxs)("svg",{clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2,viewBox:"0 0 429 171",xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor",role:"img","aria-label":"Affirm",...e,children:[a,r,l,n,i,o]}),d[6]=e,d[7]=c):c=d[7],c}e.i(572488);var l=e.i(480169);e.s(["HeroAffirmTrigger",0,function(e){let n,i,o,c=(0,s.c)(4),{market:d}=e;return c[0]!==d?(n=()=>{(0,l.loadAffirm)(d)},i=[d],c[0]=d,c[1]=n,c[2]=i):(n=c[1],i=c[2]),(0,a.useEffect)(n,i),c[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("button",{type:"button","data-page-type":"homepage",className:"affirm-site-modal",children:(0,t.jsx)(r,{className:"mb-[0.29rem] block h-5"})}),c[3]=o):o=c[3],o}],816853)},646449,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645);let r="data-hero-launcher-revealed";e.s(["HeroMobileCtaClearance",0,function(e){let l,n,i,o=(0,s.c)(4),{children:c}=e,d=(0,a.useRef)(null);return o[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{let e=d.current;if(!e||"u"<typeof ResizeObserver)return;let t=()=>{let t=Math.max(0,window.innerHeight-e.getBoundingClientRect().top);document.documentElement.style.setProperty("--hero-mobile-cta-clearance",`${t+8}px`)};t();let s=new ResizeObserver(t);s.observe(e),window.addEventListener("resize",t);let a=()=>{document.documentElement.setAttribute(r,"true"),window.removeEventListener("scroll",n),window.clearTimeout(i)},l=()=>e.getBoundingClientRect().bottom<0,n=()=>{l()&&a()};window.addEventListener("scroll",n,{passive:!0});let i=window.setTimeout(()=>{let e=null!=document.querySelector("[data-hero-bundle-chip]");(l()||!e)&&a()},2500);return()=>{s.disconnect(),window.removeEventListener("resize",t),window.removeEventListener("scroll",n),window.clearTimeout(i),document.documentElement.style.removeProperty("--hero-mobile-cta-clearance"),document.documentElement.removeAttribute(r)}},n=[],o[0]=l,o[1]=n):(l=o[0],n=o[1]),(0,a.useEffect)(l,n),o[2]!==c?(i=(0,t.jsx)("div",{ref:d,className:"hero-mobile-cta w-full",children:c}),o[2]=c,o[3]=i):i=o[3],i}])},672911,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(370380);e.s(["HeroVideo",0,function(e){let r,l=(0,s.c)(2),{videoUrl:n,query:i}=e;return(0,a.useMediaQuery)(i)?(l[0]!==n?(r=(0,t.jsx)("video",{className:"absolute inset-0 h-full w-full object-cover motion-safe:animate-[fade-in_var(--duration-slow)_var(--ease-out-soft)_both]",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:(0,t.jsx)("source",{src:n,type:"video/mp4"})}),l[0]=n,l[1]=r):r=l[1],r):null}])},973100,e=>{"use strict";var t=e.i(843476),s=e.i(271645);let a=[{key:"days",label:"Days"},{key:"hours",label:"Hrs"},{key:"minutes",label:"Min"},{key:"seconds",label:"Sec"}];function r(e){let t=new Date(e);return t.setHours(24,0,0,0),t}e.s(["CountdownTimer",0,function({now:e=()=>new Date}){let l,[n,i]=(0,s.useState)(()=>r(e()).getTime()-e().getTime());(0,s.useEffect)(()=>{let t=setInterval(()=>{i(r(e()).getTime()-e().getTime())},1e3);return()=>clearInterval(t)},[e]);let o={days:Math.floor((l=Math.max(0,Math.floor(n/1e3)))/86400),hours:Math.floor(l%86400/3600),minutes:Math.floor(l%3600/60),seconds:l%60},c=`${o.days} days ${o.hours} hours ${o.minutes} minutes ${o.seconds} seconds remaining`;return(0,t.jsx)("div",{role:"timer","aria-live":"off","aria-label":c,className:"flex items-center gap-2 tabular-nums",children:a.map(({key:e,label:s})=>(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"rounded bg-gray-200 px-2 py-1 text-lg font-bold text-neutral-900",children:String(o[e]).padStart(2,"0")}),(0,t.jsx)("span",{"aria-hidden":!0,className:"mt-1 text-[0.65rem] font-bold tracking-wide uppercase",children:s})]},e))})}])},388714,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(906632),r=e.i(975157);let l=["redefine comfort","transform your sleep","make premium affordable"],n="(min-width: 768px)";function i(e){if("function"!=typeof window.matchMedia)return()=>{};let t=window.matchMedia(n);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function o(){return"function"==typeof window.matchMedia&&window.matchMedia(n).matches}e.s(["PromoStrip",0,function(){let e=(0,a.usePrefersReducedMotion)(),[n,c]=(0,s.useState)(l),[d,m]=(0,s.useState)(0),[u,h]=(0,s.use
1State)(!1);(0,s.useEffect)(()=>{c([...l].sort(()=>Math.random()-.5))},[]);let f=(0,s.useSyncExternalStore)(i,o,()=>!1);(0,s.useEffect)(()=>{if(e||!f||n.length<=1)return;let t=setInterval(()=>h(!0),5e3);return()=>clearInterval(t)},[e,f,n.length]);let g=(d+1)%n.length,b=()=>{h(!1),m(e=>(e+1)%n.length)};(0,s.useEffect)(()=>{if(!u)return;let e=setTimeout(b,600);return()=>clearTimeout(e)},[u]);let p=e=>e.endsWith(".")?e:`${e}.`;return(0,t.jsx)("div",{className:"hidden w-full bg-black px-5 py-8 text-center text-4xl text-white md:block md:px-10",children:(0,t.jsxs)("h2",{className:"flex w-full flex-wrap items-center justify-center gap-2 md:gap-3",children:[(0,t.jsx)("span",{children:"Luxury mattresses that"}),(0,t.jsxs)("span",{className:"inline-block h-[1.5em] overflow-hidden align-bottom font-bold",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"invisible flex h-0 flex-col overflow-hidden",children:l.map(e=>(0,t.jsx)("span",{"aria-hidden":!0,className:"whitespace-nowrap",children:p(e)},e))}),(0,t.jsxs)("span",{onTransitionEnd:e=>{e.target!==e.currentTarget||("translate"===e.propertyName||"transform"===e.propertyName)&&u&&b()},className:(0,r.cn)("flex flex-col",u?"-translate-y-[1.5em] transition-transform duration-500 ease-in-out":"translate-y-0 transition-none"),style:u?{willChange:"transform"}:void 0,children:[(0,t.jsx)("span",{"aria-hidden":!1,className:"flex h-[1.5em] items-center whitespace-nowrap",children:p(n[d])}),(0,t.jsx)("span",{"aria-hidden":!0,className:"flex h-[1.5em] items-center whitespace-nowrap",children:p(n[g])})]})]})]})})}])},451525,e=>{e.v(t=>Promise.all(["static/chunks/05lfx66_vp4vj.css","static/chunks/1b-rjwqncsloc.js","static/chunks/1gsm9xp50jgae.js"].map(t=>e.l(t))).then(()=>t(134309)))}]);
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.