PageSourceSearch

https://www.ghostbed.com/_next/static/chunks/1uhvt19pwbut7.js?dpl=dpl_HytrDgaC71rHk5n8SWmp9So6daE1

js ghostbed.com collected 2026-09-24 09:11:03 UTC 28,042 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,835318,e=>{"use strict";let t=["vimeo","youtube","youtu.be"];function s(e){return e.toLowerCase().includes(".mp4")}e.s(["galleryMedia",0,function(e,a){return(a.media.length>0?a.media:e.media.length>0?e.media:e.images.map(e=>({type:"image",url:e.url,altText:e.altText}))).slice(0,7).map(e=>{var a;let r,o;return"image"===e.type?(a=e,(o=a.altText?.trim())?(r=o.toLowerCase(),t.some(e=>r.includes(e))||s(o))?{type:"video-overlay",altText:a.altText,posterUrl:a.url,videoUrl:o,hosted:!s(o)}:a:a):e})},"pickVideoSource",0,function(e){let t=e.sources.filter(e=>"mp4"===e.format&&"video/mp4"===e.mimeType);if(0===t.length)return null;let s=t.find(e=>1080===e.height);return s||[...t].sort((e,t)=>t.height-e.height)[0]},"toEmbedUrl",0,function(e){let t=e.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([\w-]+)/i);if(t)return`https://www.youtube.com/embed/${t[1]}`;let s=e.match(/vimeo\.com\/(?:video\/)?(\d+)(?:\/([0-9a-f]+))?/i);if(s){let t=e.match(/[?&]h=([0-9a-f]+)/i)?.[1]??s[2];return`https://player.vimeo.com/video/${s[1]}${t?`?h=${t}`:""}`}return e}])},165986,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(572488),o=e.i(64114);e.i(247167);let l={trustmarkNumber:"XXRHUGKQ",type:4},i=new Set;var n=e.i(975157);e.s(["ConsumerReportsBadge",0,function(e){let c,d,u,m,h,g,b,f=(0,s.c)(21),{linkUrl:p,className:x,newWindow:y}=e,v=void 0!==y&&y,w=(0,a.useId)();if(f[0]!==w){let e;f[2]===Symbol.for("react.memo_cache_sentinel")?(e=/[^a-zA-Z0-9]/g,f[2]=e):e=f[2],c=w.replace(e,""),f[0]=w,f[1]=c}else c=f[1];let j=`cr-badge-${c}`;f[3]!==j?(d=()=>{let e=!1;return(0,o.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,l))}),()=>{e=!0,i.delete(j),document.querySelector(`.${j}`)?.replaceChildren()}},u=[j],f[3]=j,f[4]=d,f[5]=u):(d=f[4],u=f[5]),(0,a.useEffect)(d,u),f[10]!==x||f[11]!==j?(m=(0,n.cn)("overflow-hidden rounded-md md:rounded-xl",j,x),f[10]=x,f[11]=j,f[12]=m):m=f[12],f[13]!==m?(h=(0,t.jsx)("div",{className:m,"data-testid":"cr-widget"}),f[13]=m,f[14]=h):h=f[14];let S=h;return p?(f[15]!==v?(g=v&&{target:"_blank",rel:"noopener noreferrer"},f[15]=v,f[16]=g):g=f[16],f[17]!==p||f[18]!==g||f[19]!==S?(b=(0,t.jsx)(r.AppLink,{href:p,"aria-label":"Consumer Reports Recommended",className:"inline-block transition-transform duration-base md:hover:scale-105",...g,children:S}),f[17]=p,f[18]=g,f[19]=S,f[20]=b):b=f[20],b):S}],165986)},598117,e=>{"use strict";var t=e.i(843476),s=e.i(500932);e.s(["CircleVideoPlayIcon",0,function(e){let a,r,o=(0,s.c)(3),{className:l}=e;return o[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"})]}),o[0]=a):a=o[0],o[1]!==l?(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:l,"aria-hidden":"true",children:a}),o[1]=l,o[2]=r):r=o[2],r}])},383727,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(598117),o=e.i(870507),l=e.i(952245);function i(){}e.s(["FoundersLetterSection",0,function(e){let n,c,d,u,m,h,g,b,f,p,x,y,v,w,j=(0,s.c)(33),{videoUrl:S,videoScreenshotUrl:k,videoAlt:C,eyebrow:N,className:_,id:T,children:I}=e,M=void 0===C?"Marc Werner walks you through the GhostBed":C,[A,L]=(0,a.useState)(!1),E=k.includes("?")?"&":"?",R=`${k}${E}w=1200&fm=webp`;j[0]!==R||j[1]!==M||j[2]!==S?(n=[{type:"video-overlay",altText:M,posterUrl:R,videoUrl:S,hosted:!0}],j[0]=R,j[1]=M,j[2]=S,j[3]=n):n=j[3];let U=n;j[4]!==N?(c=N&&(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"}),N]}),j[4]=N,j[5]=c):c=j[5],j[6]!==I?(d=(0,t.jsx)("div",{className:"leading-relaxed text-gray-700",children:I}),j[6]=I,j[7]=d):d=j[7],j[8]!==c||j[9]!==d?(u=(0,t.jsxs)("div",{children:[c,d]}),j[8]=c,j[9]=d,j[10]=u):u=j[10],j[11]===Symbol.for("react.memo_cache_sentinel")?(m=()=>L(!0),j[11]=m):m=j[11];let $=`Play video: ${M}`;return j[12]!==R?(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:R,alt:"",loading:"lazy"}),j[12]=R,j[13]=h):h=j[13],j[14]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)("span",{className:"absolute inset-0 bg-black/10 transition duration-500 md:group-hover:bg-transparent","aria-hidden":"true"}),g=(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"}),b=(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]=g,j[15]=b,j[16]=f):(g=j[14],b=j[15],f=j[16]),j[17]!==$||j[18]!==h?(p=(0,t.jsxs)("button",{type:"button",onClick:m,"aria-label":$,className:"group relative block w-full cursor-pointer overflow-hidden rounded-2xl shadow-lg",children:[h,f,g,b]}),j[17]=$,j[18]=h,j[19]=p):p=j[19],j[20]!==p||j[21]!==u?(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:[u,p]}),j[20]=p,j[21]=u,j[22]=x):x=j[22],j[23]!==T||j[24]!==x?(y=(0,t.jsx)("section",{id:T,className:"overflow-hidden rounded-2xl bg-gray-100",children:x}),j[23]=T,j[24]=x,j[25]=y):y=j[25],j[26]!==U||j[27]!==A?(v=(0,t.jsx)(l.Lightbox,{items:U,index:0,open:A,onOpenChange:L,onIndexChange:i}),j[26]=U,j[27]=A,j[28]=v):v=j[28],j[29]!==_||j[30]!==y||j[31]!==v?(w=(0,t.jsxs)(o.ScrollReveal,{className:_,children:[y,v]}),j[29]=_,j[30]=y,j[31]=v,j[32]=w):w=j[32],w}])},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 o=e.i(952245);function l(){}e.s(["VideoCtaLink",0,function(e){let i,n,c,d,u,m,h=(0,s.c)(13),{videoUrl:g,label:b,alt:f}=e,[p,x]=(0,a.useState)(!1),y=f??b;h[0]!==y||h[1]!==g?(i=[{type:"video-overlay",altText:y,posterUrl:"",videoUrl:g,hosted:!0}],h[0]=y,h[1]=g,h[2]=i):i=h[2];let v=i;return h[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>x(!0),h[3]=n):n=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]!==b?(d=(0,t.jsxs)("button",{type:"button",onClick:n,"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:b})]}
1),h[5]=b,h[6]=d):d=h[6],h[7]!==v||h[8]!==p?(u=(0,t.jsx)(o.Lightbox,{items:v,index:0,open:p,onOpenChange:x,onIndexChange:l}),h[7]=v,h[8]=p,h[9]=u):u=h[9],h[10]!==d||h[11]!==u?(m=(0,t.jsxs)(t.Fragment,{children:[d,u]}),h[10]=d,h[11]=u,h[12]=m):m=h[12],m}],373372)},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 o(){}e.s(["useMediaQuery",0,function(e){let l,i,n=(0,t.c)(3);return n[0]!==e?(l=t=>{let s=a(e);return s?(s.addEventListener("change",t),()=>s.removeEventListener("change",t)):o},i=()=>a(e)?.matches??!1,n[0]=e,n[1]=l,n[2]=i):(l=n[1],i=n[2]),(0,s.useSyncExternalStore)(l,i,r)}])},792004,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(174080),o=e.i(540079),l=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 n=e.i(57095),c=e.i(370380),d=e.i(906632),u=e.i(975157);let m=()=>()=>{},h={base:1},g={1:"basis-full",2:"basis-1/2",3:"basis-1/3",4:"basis-1/4"},b={1:"sm:basis-full",2:"sm:basis-1/2",3:"sm:basis-1/3",4:"sm:basis-1/4"},f={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 y="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",v="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 w(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 S(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 k(e){return e.hasAttribute("data-carousel-slide")}function C(){return!1}function N(){return!0}e.s(["Carousel",0,function(e){let _,T,I,M,A,L,E,R,U,$,B,z,q,D,O,F,P,G,V,H,W,K,Q,X,Y,J,Z,ee,et,es,ea,er,eo,el=(0,s.c)(117),{items:ei,renderItem:en,ariaLabel:ec,getSlideLabel:ed,slidesPerView:eu,loop:em,autoplay:eh,autoplayIntervalMs:eg,className:eb,slideClassName:ef}=e,ep=void 0===eu?h:eu,ex=void 0!==em&&em,ey=void 0!==eh&&eh,ev=void 0===eg?3e3:eg,ew=ei.length,ej=(er=(0,c.useMediaQuery)("(min-width: 1024px)"),eo=(0,c.useMediaQuery)("(min-width: 640px)"),er&&ep.lg?ep.lg:eo&&ep.sm?ep.sm:ep.base),eS=(0,d.usePrefersReducedMotion)(),ek=Math.max(0,ew-ej),[eC,eN]=(0,a.useState)(0),[e_,eT]=(0,a.useState)(!0),[eI,eM]=(0,a.useState)(!1),[eA,eL]=(0,a.useState)(!1),[eE,eR]=(0,a.useState)(""),eU=(0,a.useRef)(null),e$=(0,a.useId)(),eB=ex?Math.min(Math.max(eC,0),ew):Math.min(eC,ek),ez=eB<=0,eq=eB>=ek,eD=Math.min(ew,Math.max(ep.base,ep.sm??0,ep.lg??0)),eO=(0,a.useSyncExternalStore)(m,N,C),eF=ex&&ew>1&&eO;el[0]===Symbol.for("react.memo_cache_sentinel")?(_=function(e){(0,r.flushSync)(()=>{eT(!1),eN(e)}),eU.current?.getBoundingClientRect()},el[0]=_):_=el[0];let eP=_;el[1]!==ed||el[2]!==ei||el[3]!==ew?(T=function(e){let t=(e%ew+ew)%ew,s=ei[t];eR(ed?ed(s,t,ew):`${t+1} of ${ew}`)},el[1]=ed,el[2]=ei,el[3]=ew,el[4]=T):T=el[4];let eG=T;el[5]!==eG||el[6]!==eB||el[7]!==ex||el[8]!==ek||el[9]!==eS||el[10]!==ew||el[11]!==ej?(I=function(e){let t;!(ew<=ej)&&(ex?eS?eN(t=(eB+1)%ew):eB>=ew?(eP(0),eT(!0),t=1,eN(1)):(eT(!0),eN(t=eB+1)):eN(t=Math.min(eB+1,ek)),void 0!==e&&e||eG(t))},el[5]=eG,el[6]=eB,el[7]=ex,el[8]=ek,el[9]=eS,el[10]=ew,el[11]=ej,el[12]=I):I=el[12];let eV=I;el[13]!==eG||el[14]!==eB||el[15]!==ex||el[16]!==eS||el[17]!==ew||el[18]!==ej?(M=function(){let e;ew<=ej||(ex?eS?eN(e=((eB-1)%ew+ew)%ew):eB<=0?(eP(ew),eT(!0),eN(e=ew-1)):(eT(!0),eN(e=eB-1)):eN(e=Math.max(eB-1,0)),eG(e))},el[13]=eG,el[14]=eB,el[15]=ex,el[16]=eS,el[17]=ew,el[18]=ej,el[19]=M):M=el[19];let eH=M;el[20]===Symbol.for("react.memo_cache_sentinel")?(A=function(){eT(!1),eN(0)},el[20]=A):A=el[20];let eW=A;el[21]!==eB||el[22]!==ex||el[23]!==ew?(L=function(e){ex&&e.target===e.currentTarget&&eB>=ew&&eW()},el[21]=eB,el[22]=ex,el[23]=ew,el[24]=L):L=el[24];let eK=L;el[25]!==eB||el[26]!==ex||el[27]!==ew?(E=()=>
1{if(!ex||eB<ew)return;let e=setTimeout(eW,700);return()=>clearTimeout(e)},R=[ex,eB,ew],el[25]=eB,el[26]=ex,el[27]=ew,el[28]=E,el[29]=R):(E=el[28],R=el[29]),(0,a.useEffect)(E,R);let eQ=ey&&!eS&&!eI&&!eA&&ew>1,eX=ey&&!eS&&ew>1;el[30]!==eB||el[31]!==ew||el[32]!==ej?(U=()=>{let e=eU.current;e&&Array.from(e.children).filter(k).forEach((e,t)=>{ew<=ej||t>=eB&&t<eB+ej?e.querySelectorAll("[data-carousel-focus-managed]").forEach(S):e.querySelectorAll(p).forEach(j)})},el[30]=eB,el[31]=ew,el[32]=ej,el[33]=U):U=el[33],el[34]!==eB||el[35]!==ei||el[36]!==ew||el[37]!==ej?($=[eB,ej,ew,ei],el[34]=eB,el[35]=ei,el[36]=ew,el[37]=ej,el[38]=$):$=el[38],(0,a.useEffect)(U,$);let eY=(0,a.useRef)(eV);el[39]!==eV?(B=()=>{eY.current=eV},el[39]=eV,el[40]=B):B=el[40],(0,a.useEffect)(B),el[41]!==eQ||el[42]!==ev?(z=()=>{if(!eQ)return;let e=setInterval(()=>eY.current(!0),ev);return()=>clearInterval(e)},q=[eQ,ev],el[41]=eQ,el[42]=ev,el[43]=z,el[44]=q):(z=el[43],q=el[44]),(0,a.useEffect)(z,q),el[45]!==eG||el[46]!==eV||el[47]!==eH||el[48]!==ek?(D=function(e){"ArrowRight"===e.key?(e.preventDefault(),eV()):"ArrowLeft"===e.key?(e.preventDefault(),eH()):"Home"===e.key?(e.preventDefault(),eT(!0),eN(0),eG(0)):"End"===e.key&&(e.preventDefault(),eT(!0),eN(ek),eG(ek))},el[45]=eG,el[46]=eV,el[47]=eH,el[48]=ek,el[49]=D):D=el[49];let eJ=D,eZ=`translateX(-${100/ej*eB}%)`;el[50]!==eZ?(O={transform:eZ},el[50]=eZ,el[51]=O):O=el[51];let e0=O;el[52]!==ef||el[53]!==ep?(F=(0,u.cn)("shrink-0 grow-0",function(e){let t=g[e.base],s=e.sm?b[e.sm]:void 0,a=e.lg?f[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,u.cn)(t,s,a)}(ep),ef),el[52]=ef,el[53]=ep,el[54]=F):F=el[54];let e1=F;el[55]!==eb?(P=(0,u.cn)("relative focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-gbgreen-600",eb),el[55]=eb,el[56]=P):P=el[56],el[57]===Symbol.for("react.memo_cache_sentinel")?(G=()=>eM(!0),V=()=>eM(!1),H=()=>eM(!0),W=()=>eM(!1),el[57]=G,el[58]=V,el[59]=H,el[60]=W):(G=el[57],V=el[58],H=el[59],W=el[60]),el[61]!==eX||el[62]!==eA?(K=eX&&(0,t.jsx)("button",{type:"button",onClick:()=>{eA&&eM(!1),eL(w)},"aria-label":eA?"Start automatic slide show":"Stop automatic slide show",className:(0,u.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:eA?(0,t.jsx)(n.PlayIcon,{className:"size-3.5"}):(0,t.jsx)(i,{className:"size-3.5"})}),el[61]=eX,el[62]=eA,el[63]=K):K=el[63],el[64]!==ez||el[65]!==eH||el[66]!==ex||el[67]!==e$||el[68]!==ew||el[69]!==ej?(Q=ew>ej&&(0,t.jsx)("button",{type:"button",onClick:()=>eH(),disabled:!ex&&ez,"aria-label":"Previous slide","aria-controls":e$,className:y,children:(0,t.jsx)("span",{className:v,children:(0,t.jsx)(o.ChevronLeftIcon,{className:"size-6"})})}),el[64]=ez,el[65]=eH,el[66]=ex,el[67]=e$,el[68]=ew,el[69]=ej,el[70]=Q):Q=el[70];let e2=e_&&"motion-safe:transition-transform motion-safe:duration-[var(--duration-slow)] motion-safe:ease-out-soft";if(el[71]!==e2?(X=(0,u.cn)("flex",e2),el[71]=e2,el[72]=X):X=el[72],el[73]!==ed||el[74]!==ei||el[75]!==en||el[76]!==e1||el[77]!==ew){let e;el[79]!==ed||el[80]!==en||el[81]!==e1||el[82]!==ew?(e=(e,s)=>(0,t.jsx)("div",{"data-carousel-slide":"",role:"group","aria-roledescription":"slide","aria-label":ed?ed(e,s,ew):`${s+1} of ${ew}`,className:e1,children:en(e,s)},s),el[79]=ed,el[80]=en,el[81]=e1,el[82]=ew,el[83]=e):e=el[83],Y=ei.map(e),el[73]=ed,el[74]=ei,el[75]=en,el[76]=e1,el[77]=ew,el[78]=Y}else Y=el[78];return el[84]!==eD||el[85]!==ei||el[86]!==eF||el[87]!==en||el[88]!==e1?(J=eF&&ei.slice(0,eD).map((e,s)=>(0,t.jsx)("div",{"aria-hidden":"true",ref:x,className:e1,children:en(e,s)},`clone-${s}`)),el[84]=eD,el[85]=ei,el[86]=eF,el[87]=en,el[88]=e1,el[89]=J):J=el[89],el[90]!==eK||el[91]!==X||el[92]!==Y||el[93]!==J||el[94]!==e0?(Z=(0,t.jsx)("div",{className:"min-w-0 flex-1 overflow-hidden",children:(0,t.jsxs)("div",{ref:eU,className:X,style:e0,onTransitionEnd:eK,"data-testid":"carousel-track",children:[Y,J]})}),el[90]=eK,el[91]=X,el[92]=Y,el[93]=J,el[94]=e0,el[95]=Z):Z=el[95],el[96]!==eq||el[97]!==eV||el[98]!==ex||el[99]!==e$||el[100]!==ew||el[101]!==ej?(ee=ew>ej&&(0,t.jsx)("button",{type:"button",onClick:()=>eV(),disabled:!ex&&eq,"aria-label":"Next slide","aria-controls":e$,className:y,children:(0,t.jsx)("span",{className:v,children:(0,t.jsx)(l.ChevronRightIcon,{className:"size-6"})})}),el[96]=eq,el[97]=eV,el[98]=ex,el[99]=e$,el[100]=ew,el[101]=ej,el[102]=ee):ee=el[102],el[103]!==Q||el[104]!==Z||el[105]!==ee?(et=(0,t.jsxs)("div",{className:"flex gap-x-2",children:[Q,Z,ee]}),el[103]=Q,el[104]=Z,el[105]=ee,el[106]=et):et=el[106],el[107]!==eE?(es=(0,t.jsx)("div",{role:"status","aria-live":"polite",className:"sr-only",children:eE}),el[107]=eE,el[108]=es):es=el[108],el[109]!==ec||el[110]!==eJ||el[111]!==e$||el[112]!==P||el[113]!==K||el[114]!==et||el[115]!==es?(ea=(0,t.jsxs)("div",{className:P,role:"region","aria-roledescription":"carousel","aria-label":ec,id:e$,tabIndex:0,onKeyDown:eJ,onMouseEnter:G,onMouseLeave:V,onFocus:H,onBlur:W,children:[K,et,es]}),el[109]=ec,el[110]=eJ,el[111]=e$,el[112]=P,el[113]=K,el[114]=et,el[115]=es,el[116]=ea):ea=el[116],ea}],792004)},324154,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(522016),r=e.i(792004),o=e.i(874373),l=e.i(870507),i=e.i(324062);function n(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,u,m,h,g,b,f=(0,s.c)(32);f[0]!==e?(d=void 0===e?{}:e,f[0]=e,f[1]=d):d=f[1];let{id:p,testimonials:x,starImageUrl:y,ariaLabel:v,loop:w,autoplay:j,variant:S,cta:k}=d,C=void 0===p?"testimonial-slider":p,N=void 0===x?i.TESTIMONIALS:x,_=void 0===v?"Customer testimonials":v,T=void 0===w||w,I=void 0===j||j;f[2]!==k?(u=k&&(0,t.jsx)("div",{className:"mt-8 flex justify-center",children:(0,t.jsx)(a.default,{href:k.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:k.label})}),f[2]=k,f[3]=u):u=f[3];let M=u;if("band"===(void 0===S?"card":S)){let e,s,a,o,i=y??"https://ghostbed-cdn.imgix.net/ghostbed-global/pages/101-night-trial/5-stars.svg";return f[4]!==i?(e=e=>(0,t.jsxs)("div",{className:"px-4 text-center",children:[(0,t.jsx)("img",{src:i,alt:"5 Star Review",
1width: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})]}),f[4]=i,f[5]=e):e=f[5],f[6]!==_||f[7]!==I||f[8]!==T||f[9]!==e||f[10]!==N?(s=(0,t.jsx)(r.Carousel,{items:N,ariaLabel:_,loop:T,autoplay:I,autoplayIntervalMs:3e3,getSlideLabel:c,renderItem:e}),f[6]=_,f[7]=I,f[8]=T,f[9]=e,f[10]=N,f[11]=s):s=f[11],f[12]!==M||f[13]!==s?(a=(0,t.jsxs)("div",{className:"mx-auto w-full max-w-3xl px-4",children:[s,M]}),f[12]=M,f[13]=s,f[14]=a):a=f[14],f[15]!==C||f[16]!==a?(o=(0,t.jsx)(l.ScrollReveal,{className:"block",children:(0,t.jsx)("section",{id:C,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})}),f[15]=C,f[16]=a,f[17]=o):o=f[17],o}let A=y??i.TESTIMONIAL_STAR_IMAGE_URL;return f[18]!==A?(m=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:A,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})]})]}),f[18]=A,f[19]=m):m=f[19],f[20]!==_||f[21]!==I||f[22]!==T||f[23]!==m||f[24]!==N?(h=(0,t.jsx)(r.Carousel,{items:N,ariaLabel:_,loop:T,autoplay:I,autoplayIntervalMs:3e3,getSlideLabel:n,renderItem:m}),f[20]=_,f[21]=I,f[22]=T,f[23]=m,f[24]=N,f[25]=h):h=f[25],f[26]!==M||f[27]!==h?(g=(0,t.jsxs)("div",{className:"rounded-xl bg-hero-radial px-4 py-10 text-white sm:px-6 md:py-20",children:[h,M]}),f[26]=M,f[27]=h,f[28]=g):g=f[28],f[29]!==C||f[30]!==g?(b=(0,t.jsx)(o.HomeSection,{id:C,children:g}),f[29]=C,f[30]=g,f[31]=b):b=f[31],b}])},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.)`}]}])},469861,e=>{"use strict";e.s(["handleRovingRadioKeyDown",0,function(e,t,s,a){let r=t.indexOf(s);if(-1===r)return;let o=0;if("ArrowRight"===e.key||"ArrowDown"===e.key)o=1;else{if("ArrowLeft"!==e.key&&"ArrowUp"!==e.key)return;o=-1}e.preventDefault();let l=(r+o+t.length)%t.length;a(t[l])},"rovingTabIndex",0,function(e,t,s){return 0===t.length?-1:e===(s&&t.includes(s)?s:t[0])?0:-1}])},503636,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDownIcon",0,t],503636)},501098,e=>{"use strict";let t=(0,e.i(456420).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["StarIcon",0,t],501098)},451525,e=>{e.v(t=>Promise.all(["static/chunks/05lfx66_vp4vj.css","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.