1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1511],{3775:(e,t,a)=>{a.d(t,{ExpandingCardsAccordion:()=>N});var o=a(95155),i=a(46792),n=a(12115),r=a(41407),s=a(53350),l=a(71838),d=a(80455),c=a(98388),p=a(38413),u=a(71311),x=a(36),m=a(59803),h=a(81347),g=a(45477);let f={default:x.mq,compact:x.ft},v={default:x.cR,compact:x.qb},b={default:"",compact:"text-[14px]! leading-[18px]!"},w=(e,t)=>e.expanded/(e.expanded+Math.max(t-1,0)*e.collapsed),y=(e,t,a)=>"calc((100cqw - ".concat(t+64*a,"px) * ").concat(e.toFixed(5),")"),j=(e,t,a)=>y(w(e,a),Math.max(a-1,0)*t,a),k=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=0===a?e:"calc(".concat(e," - ").concat(a,"px)");return void 0===t?o:"min(".concat(t,"px, ").concat(o,")")},_=e=>{var t,a,w;let{card:y,delivery:j,typeScale:_,grow:N,openBox:z,titleBox:P,expanded:F,onToggle:L}=e,S=(0,r.I)(),E=.6*!S,{label:M,description:C,descriptionFootnotes:T,pillTone:R="light"}=y,A=f[_],q=v[_],H=(0,s.d)(+!!F);return(0,n.useEffect)(()=>{let e=(0,l.i)(H,+!!F,{duration:E,ease:"easeInOut"});return()=>e.stop()},[F,H,E]),(0,o.jsxs)(d.P.div,{initial:{flexGrow:F?N.expanded:N.collapsed},animate:{flexGrow:F?N.expanded:N.collapsed},transition:{duration:E,ease:"easeInOut"},style:{flexBasis:0,background:y.background},className:"group relative flex min-w-0 flex-col justify-end overflow-hidden rounded-[24px] p-8",children:[(0,o.jsx)(g._,{card:y,config:j,objectPosition:F&&null!=(w=y.objectPositionExpanded)?w:y.objectPosition,expanded:F,className:"transition-transform duration-500 ease-out motion-safe:group-hover:scale-[1.04]",imgClassName:(0,m.cn)("transition-[object-position] ease-in-out",S?"duration-0":"duration-[600ms]")}),(0,o.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 rounded-[24px] bg-gradient-to-b from-transparent from-[48.7%] to-black/30 to-[84.2%]"}),(0,o.jsx)("span",{className:(0,m.cn)("absolute top-4 left-4 rounded-full px-3 py-1 backdrop-blur-[8px]",h.UR[R]),children:(0,o.jsx)(x.qb,{className:"leading-none font-medium text-white",style:{margin:0},children:M})}),!F&&(0,o.jsx)("button",{type:"button",onClick:L,"aria-expanded":!1,"aria-label":y.expandLabel,className:"absolute inset-0 z-20 cursor-pointer rounded-[24px]"}),(0,o.jsx)(d.P.div,{initial:{rotate:45*!!F},animate:{rotate:45*!!F},transition:{duration:E,ease:"easeInOut"},className:(0,m.cn)("absolute top-2 right-2 z-30 flex size-10 items-center justify-center rounded-[20px] bg-black/25 text-white backdrop-blur-[8px]",!F&&"pointer-events-none"),children:F?(0,o.jsx)("button",{type:"button",onClick:L,"aria-expanded":!0,"aria-label":y.collapseLabel,className:"flex cursor-pointer items-center justify-center",children:(0,o.jsx)(c.A,{size:22})}):(0,o.jsx)(c.A,{size:22,"aria-hidden":!0})}),(null==(t=y.overlay)?void 0:t.float)?(0,o.jsx)("div",{"aria-hidden":!0,style:{...(0,h.QZ)(y.overlay,F),...y.overlay.float.bottom?{bottom:"".concat(y.overlay.float.bottom[F?"expanded":"collapsed"],"px")}:{top:"".concat(y.overlay.float.centerY[F?"expanded":"collapsed"],"%")},["right"===y.overlay.align?"right":"left"]:"".concat(y.overlay.float.inset,"px"),opacity:y.overlay.fade&&!F?0:1,transitionDuration:"".concat(1e3*E,"ms")},className:(0,m.cn)(h.rg,"absolute z-10 transition-[width,top,bottom,opacity] ease-in-out",!y.overlay.float.bottom&&"-translate-y-1/2",y.overlay.blur&&"backdrop-blur-[12px]"),children:(0,o.jsx)(i.X,{overlay:y.overlay})}):null,y.overlay&&!y.overlay.float?(0,o.jsx)(d.P.div,{"aria-hidden":!0,initial:{opacity:F||y.overlay.persist?1:0},animate:{opacity:F||y.overlay.persist?1:0},transition:{duration:E,ease:"easeInOut"},style:{transitionDuration:"".concat(1e3*E,"ms")},className:(0,m.cn)("relative grid transition-[grid-template-rows] ease-in-out",F||y.overlay.persist?"grid-rows-[1fr]":"grid-rows-[0fr]","right"===y.overlay.align?"-mr-1":"-ml-1"),children:(0,o.jsx)("div",{className:(0,m.cn)(!y.overlay.persist&&"overflow-hidden"),children:(0,o.jsx)("div",{style:{...(0,h.QZ)(y.overlay,F),transitionDuration:"".concat(1e3*E,"ms")},className:(0,m.cn)(h.rg,"relative mb-6 transition-[width] ease-in-out","right"===y.overlay.align&&"ml-auto",y.overlay.blur&&"backdrop-blur-[12px]"),children:(0,o.jsx)(i.X,{overlay:y.overlay})})})}):null,(0,o.jsxs)("div",{className:"relative flex flex-col text-white",children:[(0,o.jsxs)(A,{as:"h3",style:{margin:0,width:P},className:"text-pretty font-medium! tracking-[0.22px]",children:[y.title,null==(a=y.titleFootnotes)?void 0:a.map(e=>(0,o.jsx)(u.fp,{name:e},e))]}),C?(0,o.jsx)("div",{className:(0,m.cn)("grid transition-[grid-template-rows] ease-in-out",F?"grid-rows-[1fr]":"grid-rows-[0fr]"),style:{transitionDuration:"".concat(1e3*E,"ms")},"aria-hidden":!F,inert:!F,children:(0,o.jsx)("div",{className:"overflow-hidden",children:(0,o.jsxs)(q,{style:{margin:0,maxWidth:y.descriptionMaxWidth,width:k(z,y.descriptionMaxWidth,36*!!y.video)},className:(0,m.cn)("pt-2 font-normal tracking-[0.18px]",b[_]),children:[(0,o.jsx)(p.qQ,{text:C,enter:H,windowStart:0,windowEnd:1}),(null==T?void 0:T.length)?(0,o.jsx)(p.eJ,{enter:H,windowStart:0,windowEnd:1,children:T.map(e=>(0,o.jsx)(u.fp,{name:e},e))}):null]})})}):null]})]})},N=e=>{var t,a;let{cards:i,sizing:r,typeScale:s,grow:l,gap:d,maxRowWidth:c}
1=e,[p,u]=(0,n.useState)(null!=(a=null==(t=i[0])?void 0:t.key)?a:null);return(0,o.jsx)("div",{style:{height:((e,t,a,o)=>{if("height"in e)return e.height;if("heightRatio"in e)return"".concat((100*e.heightRatio).toFixed(3),"cqw");let i=Math.max(o-1,0)*a,n=w(t,o)/e.expandedAspect;return"calc((100cqw - ".concat(i,"px) * ").concat(n.toFixed(5),")")})(r,l,d,i.length),gap:d},className:"flex w-full flex-row items-stretch",children:i.map(e=>(0,o.jsx)(_,{card:e,delivery:((e,t,a,o,i,n)=>{let r=Math.round((n-Math.max(i-1,0)*o)*w(a,i));return{width:r,height:t.imageAspect?Math.round(r/t.imageAspect):"height"in e?e.height:"expandedAspect"in e?Math.round(r/e.expandedAspect):Math.round(n*e.heightRatio)}})(r,e,l,d,i.length,c),typeScale:s,grow:l,openBox:j(l,d,i.length),titleBox:p===e.key?j(l,d,i.length):((e,t,a,o)=>{let i=Math.max(a-1,0)*t;return y(o?e.collapsed/(e.expanded+Math.max(a-1,0)*e.collapsed):1/Math.max(a,1),i,a)})(l,d,i.length,null!==p),expanded:p===e.key,onToggle:()=>u(p===e.key?null:e.key)},e.key))})}},4270:(e,t,a)=>{a.d(t,{Pod6SectionTracker:()=>r});var o=a(95155),i=a(62526),n=a(46027);let r=e=>{let{section:t,order:a,children:r}=e;return(0,o.jsx)(i.y,{section:t,order:a,onViewed:n.vBP,onEngaged:n.YMV,children:r})}},9300:(e,t,a)=>{a.d(t,{k:()=>o.Parallax,z:()=>i.ParallaxGroup});var o=a(55363),i=a(52252)},16945:(e,t,a)=>{a.d(t,{CJ:()=>x,U_:()=>h,ln:()=>g});var o=a(12115),i=a(16091),n=a(35829),r=a(75717),s=a(58208),l=a(66190),d=a(26968),c=a(47596),p=a(43374);let u=["single","twin","twin-xl"],x=()=>{let e=(0,n.AQ)("pod6"),t=(0,n.$o)(),a=(0,s.kJ)();return(0,o.useMemo)(()=>{let o=((null==e?void 0:e.kind)==="bed"?Object.values(e.variants):[]).filter(e=>"single"===e.zone),i=o.reduce((e,t)=>{let a=t.prices.stripe;if(!a)return e;let o=(0,p.jT)(a.initial);return e&&e.amount<=o?e:{amount:o,currency:a.currency}},void 0),n=[...new Set(o.map(e=>e.size))].sort(r.y),s=e=>(0,r.s)(e,a,t).name,l=n.filter(e=>u.includes(e));return{wholeBed:l.map(s),oneSide:n.filter(e=>!u.includes(e)).map(s),cheapest:i,empty:0===o.length,smallBedCopyKey:l.includes("single")?"mx"===t?"Individual":"Single":""}},[e,t,a])},m=e=>e.replace(/ /g,"\xa0"),h=()=>{let{wholeBed:e,oneSide:t}=x(),a=(0,i.Ym)(),n=(0,l.k)("pod6Home");return(0,o.useMemo)(()=>{let o=new Intl.ListFormat(a,{style:"long",type:"conjunction"}),i=new Intl.ListFormat(a,{style:"long",type:"disjunction"}),r=[];if(e.length>0&&r.push(o.format(e.map(m))),t.length>0&&r.push(n("soloSizes.oneSideOf",{article:(0,c.i)(t[0]),sizes:i.format(t.map(m))})),0!==r.length)return i.format(r)},[a,n,e,t])},g=()=>{let{cheapest:e}=x(),t=(0,d.Y)();if(e)return new Intl.NumberFormat(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0}).format(e.amount)}},30881:(e,t,a)=>{a.r(t),a.d(t,{Pod6NewToPod6:()=>w});var o=a(95155),i=a(12115),n=a(66190),r=a(68548),s=a(71311),l=a(56377),d=a(68663),c=a(59803),p=a(83113),u=a(16945);let x="https://res.cloudinary.com/eightsleep/video/upload",m="(max-width: 1023px)",h="(min-width: 1024px)",g=[{key:"hubSize",art:{video:{poster:{phone:"".concat(x,"/c_crop,w_1080,h_754,x_0,y_382/so_0/v1790272425/pod6-home-new-to-pod6-hub-size.jpg"),desktop:"".concat(x,"/c_crop,w_1080,h_1080,x_0,y_216/so_0/v1790272425/pod6-home-new-to-pod6-hub-size.jpg")},sources:[{media:m,src:"".concat(x,"/c_crop,w_1080,h_754,x_0,y_382/f_auto:video,q_auto:good/v1790272425/pod6-home-new-to-pod6-hub-size.mp4")},{media:h,src:"".concat(x,"/c_crop,w_1080,h_1080,x_0,y_216/f_auto:video,q_auto:best/v1790272425/pod6-home-new-to-pod6-hub-size.mp4")}],aspect:.8}}},{key:"thermalEngine",bodyFootnote:"variableOutcomes",art:{video:{poster:{phone:"".concat(x,"/c_crop,w_1546,h_1080,x_187,y_0/so_0/v1790272428/pod6-home-new-to-pod6-thermal-engine.jpg"),desktop:"".concat(x,"/c_crop,w_1080,h_1080,x_420,y_0/so_0/v1790272428/pod6-home-new-to-pod6-thermal-engine.jpg")},sources:[{media:"(max-width: 599px)",src:"".concat(x,"/du_6/c_crop,w_1546,h_1080,x_187,y_0/c_scale,w_1030/f_auto:video,q_auto:good/v1790272428/pod6-home-new-to-pod6-thermal-engine.mp4")},{media:"(min-width: 600px) and (max-width: 1023px)",src:"".concat(x,"/du_6/c_crop,w_1546,h_1080,x_187,y_0/f_auto:vi
1deo,q_auto:best/v1790272428/pod6-home-new-to-pod6-thermal-engine.mp4")},{media:h,src:"".concat(x,"/du_6/c_crop,w_1080,h_1080,x_420,y_0/f_auto:video,q_auto:best/v1790272428/pod6-home-new-to-pod6-thermal-engine.mp4")}],aspect:1920/1080}}},{key:"coverSensors",art:{video:{poster:{phone:"".concat(x,"/c_crop,w_802,h_560,x_0,y_260/so_0/v1790272431/pod6-home-new-to-pod6-cover-sensors.jpg"),desktop:"".concat(x,"/c_crop,w_802,h_802,x_0,y_139/so_0/v1790272431/pod6-home-new-to-pod6-cover-sensors.jpg")},sources:[{media:m,src:"".concat(x,"/du_6/c_crop,w_802,h_560,x_0,y_260/f_auto:video,q_auto:good/v1790272431/pod6-home-new-to-pod6-cover-sensors.mp4")},{media:h,src:"".concat(x,"/du_6/c_crop,w_802,h_802,x_0,y_139/f_auto:video,q_auto:best/v1790272431/pod6-home-new-to-pod6-cover-sensors.mp4")}],aspect:802/1080,framing:"lg:origin-[50%_88.4%] lg:scale-[1.25]"}}},{key:"soloSizes",art:{src:"".concat("https://res.cloudinary.com/eightsleep/image/upload","/v1789678385/pod-6-home-new-to-pod6-lowest-price.png"),aspect:1}}],f=(0,i.createContext)({next:1/0,ready:()=>void 0}),v=e=>{let{video:t,order:a}=e,n=(0,p.useStepActive)(),r=(0,i.useContext)(f),[s,u]=(0,i.useState)(null),[x,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(s){if(!n)return void s.pause();s.currentTime=0,s.play().catch(()=>void 0)}},[n,s]),(0,i.useEffect)(()=>{var e;if(!s)return;let t=null==(e=s.parentElement)?void 0:e.parentElement,a=window.matchMedia(h),o=()=>g(null!=t&&t.getClientRects().length>0);return o(),a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[s]),(0,i.useEffect)(()=>{if(!s||!x)return;let e=()=>r.ready(a);return s.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&e(),s.addEventListener("canplaythrough",e),s.addEventListener("error",e),()=>{s.removeEventListener("canplaythrough",e),s.removeEventListener("error",e)}},[s,x,r,a]);let v=x&&(a<=r.next||n);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.E,{src:t.poster.desktop,alt:"",objectFit:"cover",lazy:!1,fetchPriority:"low",sources:[{src:t.poster.phone,mediaQuery:m,type:"mobile"}],config:{desktop:{width:640,height:640},mobile:{width:360,height:252}},className:(0,c.cn)("absolute inset-0 [&>img]:h-full [&>img]:w-full",t.framing)}),(0,o.jsx)(d.A,{ref:u,loop:!1,preload:"auto",loadWhenNear:0===a,loadWhen:v,nativeMedia:!0,objectFit:"cover",sources:t.sources,className:(0,c.cn)("absolute inset-0 h-full w-full object-cover",t.framing)})]})},b=(e,t)=>"pending"in e?(0,o.jsx)(r.D,{slot:e.pending,note:"cross-fades with the other three",className:"absolute inset-0 rounded-[16px] border border-dashed border-black/15 bg-black/[0.04]"}):"video"in e?(0,o.jsx)(v,{video:e.video,order:t}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.E,{src:e.src,alt:"",objectFit:"cover",lazy:!1,fetchPriority:"low",gravity:"center",sources:[{src:e.src,mediaQuery:m,type:"mobile"}],config:{desktop:{width:640,height:Math.round(640/e.aspect)},mobile:{width:360,height:252}},className:"absolute inset-0 [&>img]:h-full [&>img]:w-full"}),!0===e.fpo?(0,o.jsx)(r.V,{}):null]}),w=()=>{let e=(0,n.k)("pod6Home"),t=(0,u.U_)(),a=(0,u.ln)(),[r,l]=(0,i.useState)(0),d=(0,i.useCallback)(e=>l(t=>Math.max(t,e+1)),[]),c=(0,i.useMemo)(()=>({next:r,ready:d}),[r,d]),x=g.flatMap((i,n)=>{let{key:r,art:l,bodyFootnote:d}=i;return"soloSizes"===r?void 0===t||void 0===a?[]:[{heading:e("newToPod6.steps.soloSizes.heading"),art:b(l,n),title:e("newToPod6.steps.soloSizes.title",{price:a}),body:e("newToPod6.steps.soloSizes.body",{sizes:t})}]:[{heading:e("newToPod6.steps.".concat(r,".heading")),art:b(l,n),bodyFootnote:d?(0,o.jsx)(s.fp,{name:d}):void 0,title:e("newToPod6.steps.".concat(r,".title")),body:e("newToPod6.steps.".concat(r,".body"))}]});return(0,o.jsx)("section",{className:"bg-white min-h-[min(800px,80svh)] max-h-80svh",children:(0,o.jsx)(f.Provider,{value:c,children:(0,o.jsx)(p.TimedFeatureShow2026,{eyebrow:e("newToPod6.eyebrow"),steps:x,dwellMs:5e3,cta:{id:"pod-6-home-new-to-pod-6-hiw",label:e("newToPod6.cta"),href:"/how-it-works"}})})})}},36895:(e,t,a)=>{a.d(t,{ExpandingCardsStack:()=>g});var o=a(95155),i=a(46792),n=a(12115),r=a(41407),s=a(80455),l=a(98388),d=a(71311),c=a(36),p=a(59803),u=a(81347),x=a(45477);let m={mobile:{width:480,height:320},desktop:{width:984,height:656}},h=e=>{var t,a,n,h,g,f,v,b;
1let{card:w,expanded:y,onToggle:j}=e,k=(0,r.I)(),_=.45*!k;return(0,o.jsxs)("div",{className:"relative flex w-full flex-col overflow-hidden rounded-[24px]",children:[(0,o.jsx)(x._,{card:w.mobileImage?{...w,image:w.mobileImage}:w,config:m,objectPosition:y?null!=(g=null!=(h=null!=(n=w.mobileObjectPositionExpanded)?n:w.mobileObjectPosition)?h:w.objectPositionExpanded)?g:w.objectPosition:null!=(f=w.mobileObjectPosition)?f:w.objectPosition,expanded:y,imgClassName:(0,p.cn)("transition-[object-position] ease-in-out",k?"duration-0":"duration-[450ms]")}),(0,o.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent from-[30%] to-black/60"}),(0,o.jsx)("span",{className:(0,p.cn)("absolute top-4 left-4 z-10 rounded-full px-3 py-1 backdrop-blur-[8px]",u.UR[null!=(v=w.pillTone)?v:"light"]),children:(0,o.jsx)(c.qb,{className:"leading-none font-medium text-white",style:{margin:0},children:w.label})}),!y&&(0,o.jsx)("button",{type:"button",onClick:j,"aria-expanded":!1,"aria-label":w.expandLabel,className:"absolute inset-0 z-20 cursor-pointer rounded-[24px]"}),(0,o.jsx)(s.P.div,{initial:{rotate:45*!!y},animate:{rotate:45*!!y},transition:{duration:_,ease:"easeInOut"},className:(0,p.cn)("absolute top-3 right-3 z-30 flex size-9 items-center justify-center rounded-[18px] bg-black/25 text-white backdrop-blur-[8px]",!y&&"pointer-events-none"),children:y?(0,o.jsx)("button",{type:"button",onClick:j,"aria-expanded":!0,"aria-label":w.collapseLabel,className:"flex cursor-pointer items-center justify-center",children:(0,o.jsx)(l.A,{size:20})}):(0,o.jsx)(l.A,{size:20,"aria-hidden":!0})}),(0,o.jsxs)("div",{style:{minHeight:320},className:"relative flex flex-col justify-end p-5 text-white",children:[w.overlay?(0,o.jsx)("div",{"aria-hidden":!0,className:(0,p.cn)("grid transition-[grid-template-rows] ease-in-out",y?"grid-rows-[1fr]":"grid-rows-[0fr]"),style:{transitionDuration:"".concat(1e3*_,"ms")},children:(0,o.jsx)("div",{className:"overflow-hidden",children:(0,o.jsx)("div",{style:{width:216,...(0,u.ML)(w.overlay)},className:(0,p.cn)(u.rg,"relative mb-6",(null!=(b=w.overlay.mobileAlign)?b:w.overlay.align)==="right"&&"ml-auto",w.overlay.blur&&"backdrop-blur-[12px]"),children:(0,o.jsx)(i.X,{overlay:w.overlay})})})}):null,(0,o.jsxs)(c.ft,{as:"h3",className:"text-pretty font-medium tracking-[0.22px]",style:{margin:0},children:[w.title,null==(t=w.titleFootnotes)?void 0:t.map(e=>(0,o.jsx)(d.fp,{name:e},e))]})]}),w.description?(0,o.jsx)("div",{className:(0,p.cn)("relative grid transition-[grid-template-rows] ease-in-out",y?"grid-rows-[1fr]":"grid-rows-[0fr]"),style:{transitionDuration:"".concat(1e3*_,"ms")},"aria-hidden":!y,inert:!y,children:(0,o.jsx)("div",{className:"overflow-hidden",children:(0,o.jsxs)(c.jz,{className:(0,p.cn)("px-5 pb-5 font-normal tracking-[0.18px] text-white",w.video&&"pr-[68px]"),style:{margin:0},children:[w.description,null==(a=w.descriptionFootnotes)?void 0:a.map(e=>(0,o.jsx)(d.fp,{name:e},e))]})})}):null]})},g=e=>{let{cards:t}=e,[a,i]=(0,n.useState)(null);return(0,o.jsx)("div",{className:"flex flex-col gap-4",children:t.map(e=>(0,o.jsx)(h,{card:e,expanded:a===e.key,onToggle:()=>i(a===e.key?null:e.key)},e.key))})}},45477:(e,t,a)=>{a.d(t,{_:()=>l});var o=a(95155),i=a(68548),n=a(56377),r=a(45484),s=a(59803);let l=e=>{let{card:t,config:a,className:l,objectPosition:d,imgClassName:c,expanded:p}=e;if(void 0!==t.pendingSlot)return(0,o.jsx)(i.D,{slot:t.pendingSlot,className:"absolute inset-0"});if(void 0!==t.video)return(0,o.jsx)(r.CardFilm,{poster:t.video.poster,sources:t.video.sources,label:t.alt,expanded:p,objectPosition:null!=d?d:t.objectPosition,className:(0,s.cn)("absolute inset-0 h-full w-full object-cover",l)});if(void 0===t.image)return null;let u="width"in a?void 0:[{src:t.image,mediaQuery:"(max-width: ".concat(639,"px)"),type:"mobile"},{src:t.image,mediaQuery:"(min-width: ".concat(640,"px)"),type:"desktop"}];return(0,o.jsx)(n.E,{src:t.image,alt:t.alt,objectFit:"cover",objectPosition:null!=d?d:t.objectPosition,sources:u,config:"width"in a?{mobile:a,desktop:a}:a,className:(0,s.cn)("absolute inset-0 [&>img]:h-full [&>img]:w-full",l),imgClassName:c})}},45484:(e,t,a)=>{a.d(t,{CardFilm:()=>r});var o=a(95155),i=a(79443),n=a(66190);let r=e=>{let{poster:t,sources:a,label:r,expanded:s,objectPosition:l,className:d}=e,c=(0,n.k)("hiw2026.oneTwoThree");return(0,o.jsx)(i.HiwLoopingVideo,{poster:t,sources:a,label:r,labels:{play:c("play"),pause:c("pause")},tone:"light",controlClassName:"z-30",playWhen:s,preload:"auto",loadWhenNear:!0,nativeMedia:a.some(e=>void 0!==e.media),objectPosition:l,className:d})}},46792:(e,t,a)=>{a.d(t,{X:()=>r});var o=a(95155),i=a(56377),n=a(81347);let r=e=>{let{overlay:t}=e;return void 0!==t.src?(0,o.jsx)(i.E,{src:t.src,alt:"",objectFit:"cover",doNotCompress:!0,config:(0,n.fn)(t),className:"absolute inset-0 [&>img]:h-full [&>img]:w-full"}):(0,o.jsx)("div",{className:"absolute inset-0",children:t.content})}},47322:(e,t,a)=>{a.r(t),a.d(t,{Pod6NewSoloSizes:()=>h});var o=a(95155),i=a(12115),n=a(9300),r=a(56377),s=a(71311),l=a(46033),d=a(38413),c=a(66190),p=a(26968),u=a(16945);let x={left:"https://res.cloudinary.com/eightsleep/image/upload/c_crop,w_3196,h_4096,x_450,y_0/v1788996563/pod-6-hiw-solo-sizes-one-side.png",right:"https://res.cloudinary.com/eightsleep/image/upload/v1789064904/pod-6-home-new-solo-sizes-card-right.png"},m=e=>{let{caption:t,captionFootnote:a,art:i,alt:n}
1=e;return(0,o.jsxs)("div",{className:"relative isolate aspect-[652/836] w-full overflow-hidden rounded-[16px] bg-black/[0.06]",children:[(0,o.jsx)(r.E,{src:i,alt:n,objectFit:"cover",config:{desktop:{width:652,height:836},mobile:{width:375,height:480}},className:"absolute inset-0 -z-10 [&>img]:h-full [&>img]:w-full"}),(0,o.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 -z-10 bg-[linear-gradient(180deg,rgba(0,0,0,0)_58.449%,rgba(0,0,0,0.35)_100%),linear-gradient(46.54deg,rgba(0,0,0,0)_78.745%,rgba(0,0,0,0.35)_98.786%)]"}),(0,o.jsx)("div",{className:"flex h-full flex-col justify-end p-6 lg:pt-8 lg:pr-8 lg:pb-[60px] lg:pl-[60px]",children:(0,o.jsxs)("p",{className:"font-neue-montreal max-w-[460px] text-[22px] leading-[26px] font-normal tracking-[0.22px] whitespace-pre-line text-white lg:text-[28px] lg:leading-[30.8px] lg:tracking-[0.28px]",children:[t,a?(0,o.jsx)(s.fp,{name:a}):null]})})]})},h=()=>{let e=(0,c.k)("pod6Home"),t=(0,p.Y)(),{cheapest:a,empty:r,smallBedCopyKey:s}=(0,u.CJ)(),h=(0,u.U_)(),g=(0,i.useMemo)(()=>{if(void 0===a)return e("soloSizes.headlineNoPrice");let o=new Intl.NumberFormat(t,{style:"currency",currency:a.currency.toUpperCase(),maximumFractionDigits:0}).format(a.amount),i=e.raw("soloSizes.headline");return"string"==typeof i?i.replace("<price></price>",o):e("soloSizes.headlineNoPrice")},[a,t,e]);return r?null:(0,o.jsx)("section",{className:"bg-[#f7f7f7]",children:(0,o.jsxs)("div",{className:"mx-auto flex max-w-360 flex-col items-center gap-8 px-5 py-16 lg:gap-12 lg:px-16 lg:py-28",children:[(0,o.jsxs)("div",{className:"flex flex-col items-center gap-[30px]",children:[(0,o.jsxs)("div",{className:"flex flex-col items-center gap-[10px] text-center text-[#151514]",children:[(0,o.jsx)("h2",{className:"font-neue-montreal max-w-[545px] text-[32px] leading-[36px] font-medium tracking-[0.32px] text-balance lg:max-w-none lg:text-[44px] lg:leading-[48.4px] lg:tracking-[0.44px]",children:(0,o.jsx)(d.D0,{text:g})}),void 0!==h?(0,o.jsx)("p",{className:"font-neue-montreal max-w-[450px] text-[16px] leading-[22px] font-normal tracking-[0.18px] text-pretty lg:text-[18px] lg:leading-[24px]",children:(0,o.jsx)(d.D0,{text:e("soloSizes.availability",{sizes:h})})}):null]}),(0,o.jsx)(l.$.Dark,{id:"pod-6-home-new-solo-sizes-shop",href:"/product/pod-solo-cover",children:e("soloSizes.shopCta")})]}),(0,o.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:flex-row sm:items-center",children:[(0,o.jsx)(n.k,{className:"w-full sm:flex-1",children:(0,o.jsx)(m,{caption:e("soloSizes.cards.oneSide.caption"),art:x.left,alt:e("soloSizes.cards.oneSide.alt")})}),(0,o.jsx)("div",{className:"w-full sm:flex-1",children:(0,o.jsx)(m,{caption:e("soloSizes.cards.twin.caption".concat(s)),captionFootnote:"youngerSleepers",art:x.right,alt:e("soloSizes.cards.twin.alt")})})]})]})})}},57421:(e,t,a)=>{a.r(t),a.d(t,{MetricValue:()=>n});var o=a(95155),i=a(58208);let n=e=>{let{imperial:t,metric:a}=e,n=(0,i.kJ)();return(0,o.jsx)(o.Fragment,{children:n?a:t})}},76655:(e,t,a)=>{a.r(t),a.d(t,{Pod6Hero:()=>_});var o=a(95155),i=a(12115),n=a(47650),r=a(9439),s=a(9300),l=a(46033),d=a(66190),c=a(59803),p=a(99507),u=a(4157),x=a.n(u);let m=e=>{let{fill:t="black",...a}=e;return(0,o.jsx)("svg",{viewBox:"0 0 34.5284 32.6104",...a,children:(0,o.jsx)("path",{d:"M23.1328 10.0059L34.5283 12.4561L26.7598 21.0898L27.9346 32.6104L17.2646 27.9414L6.59473 32.6104L7.76855 21.0898L0 12.4561L11.3955 10.0059L17.2646 0L23.1328 10.0059Z",fill:t})})},h="h-[19.09px] w-[20.21px] shrink-0",g=e=>{let{className:t}=e;return(0,o.jsxs)("svg",{viewBox:"0 0 34.5284 32.6104",className:t,"aria-hidden":"true",children:[(0,o.jsx)("path",{d:"M17.2642 0L23.1326 10.0054L34.5284 12.456L26.7595 21.0902L27.9341 32.6102L17.2642 27.941L6.59434 32.6102L7.7689 21.0902L0 12.456L11.3958 10.0054L17.2642 0Z",fill:"black",fillOpacity:"0.16"}),(0,o.jsx)("path",{d:"M6.59434 32.6102L17.2642 27.941V0L11.3958 10.0054L0 12.456L7.76889 21.0902L6.59434 32.6102Z",fill:"white"})]})},f=()=>{let e=(0,d.k)("pod6Home"),t=Math.floor(4.5);return(0,o.jsxs)("div",{className:"flex w-[295px] flex-col items-center gap-3",children:[(0,o.jsx)("span",{className:(0,
1c.cn)(x().className,"text-[54px] leading-none text-white"),children:"4.5"}),(0,o.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3",children:[(0,o.jsxs)("div",{className:"flex gap-[6.74px]",children:[Array.from({length:t}).map((e,t)=>(0,o.jsx)(m,{fill:"white",className:h,"aria-hidden":"true"},t)),4.5-t>=.5&&(0,o.jsx)(g,{className:h})]}),(0,o.jsx)("p",{className:"font-neue-montreal text-[16px] leading-[18px] font-medium tracking-[0.16px] text-white",children:e("hero.ratingCaption")})]})]})},v="https://d115sb6i1ixllw.cloudfront.net/assets",b="".concat(v,"/b129d17a4036d9b1_vp9.webm"),w={poster:"".concat(v,"/b129d17a4036d9b1_poster.png"),sources:[{src:"".concat(v,"/b129d17a4036d9b1_h265.mp4"),type:'video/mp4; codecs="hvc1"'},{src:b,type:"video/webm"}]},y="224px",j={waiting:{title:"animate-pod6-hero-title [animation-play-state:paused]",copy:"animate-pod6-hero-copy [animation-play-state:paused]"},playing:{title:"animate-pod6-hero-title",copy:"animate-pod6-hero-copy"},snapped:{title:"opacity-100",copy:"opacity-100"}},k=e=>{let{label:t,phase:a}=e;return(0,o.jsx)("span",{className:(0,c.cn)("font-plex-mono inline-block rounded-[4px] bg-white px-3 py-1 text-[14px] leading-none font-medium tracking-[0.5px] text-[#151514] uppercase select-none lg:px-4 lg:py-[3px] lg:text-[18px]",j[a].copy),children:t})},_=()=>{(0,n.preload)(b,{as:"video"});let e=(0,d.k)("pod6Home"),t=(0,i.useRef)(null),a=(0,i.useRef)(null),[u,x]=(0,i.useState)("waiting"),m=(0,i.useRef)(!1),h=(0,i.useRef)(!1),g=(0,i.useRef)(!1),v=(0,i.useRef)(!1),_=(0,i.useRef)(!1),N=(0,i.useCallback)(()=>{let e=a.current,t=()=>{_.current||(_.current=!0,x("snapped"))};if(!e||!Number.isFinite(e.duration)||e.duration<=0)return void t();e.pause(),e.addEventListener("seeked",()=>{"function"==typeof e.requestVideoFrameCallback?e.requestVideoFrameCallback(t):requestAnimationFrame(t)},{once:!0}),setTimeout(t,400),e.currentTime=Math.max(0,e.duration-.05)},[]),z=(0,i.useCallback)(()=>{if(!m.current||!h.current||g.current)return;if(g.current=!0,window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void N();let e=a.current;if(!e)return void N();e.defaultPlaybackRate=1,e.playbackRate=1;let t=setTimeout(()=>{v.current||N()},1200);e.addEventListener("playing",()=>{v.current=!0,_.current=!0,clearTimeout(t),x("playing")},{once:!0}),e.play().catch(()=>{clearTimeout(t),N()})},[N]),P=(0,i.useCallback)(()=>{m.current||(m.current=!0,z())},[z]),F=(0,i.useCallback)(()=>{h.current||(h.current=!0,z())},[z]);return(0,i.useEffect)(()=>{var e;let a=null==(e=t.current)?void 0:e.querySelector("img");(null==a?void 0:a.complete)&&P()},[P]),(0,i.useEffect)(()=>{let e=a.current;if(!e)return;if(e.readyState>=2)return void F();let t=()=>{e.readyState>=2&&F()},o=["loadedmetadata","loadeddata","canplay"];return o.forEach(a=>e.addEventListener(a,t)),e.load(),()=>o.forEach(a=>e.removeEventListener(a,t))},[F]),(0,o.jsxs)("section",{id:"pod-6-home-hero",className:"relative isolate overflow-hidden bg-black",children:[(0,o.jsx)("div",{ref:t,"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-20",children:(0,o.jsx)(r.E,{src:"https://res.cloudinary.com/eightsleep/image/upload/v1788201455/4cdd781a2a88d78b.png",alt:"",objectFit:"cover",lazy:!1,fetchPriority:"high",config:{desktop:{width:1440,height:1460},mobile:{width:375,height:900}},className:"absolute inset-0 [&>img]:h-full [&>img]:w-full",onLoad:P})}),(0,o.jsx)("div",{"aria-hidden":!0,className:(0,c.cn)("pod6-sky-veil-gradient pointer-events-none absolute inset-0 -z-10","snapped"!==u&&"animate-pod6-sky-veil","waiting"===u&&"[animation-play-state:paused]","snapped"===u&&"opacity-[0.34]")}),(0,o.jsx)("div",{"aria-hidden":!0,className:(0,c.cn)("pointer-events-none absolute inset-0 -z-10 bg-black","snapped"!==u&&"animate-pod6-sky-dark","waiting"===u&&"[animation-play-state:paused]","snapped"===u&&"opacity-0")}),(0,o.jsxs)(s.z,{mode:"exit",className:"flex flex-col items-center px-5 pt-32 pb-20 text-center lg:px-16 lg:pt-[177px] hero-wide:pb-[88px] hero-desktop:pb-[96px]",children:[(0,o.jsx)(s.k,{distance:y,children:(0,o.jsx)(k,{label:e("hero.newBadge"),phase:u})}
1),(0,o.jsx)(s.k,{className:"relative z-0 mt-2",distance:y,children:(0,o.jsx)("h1",{className:(0,c.cn)("bg-[linear-gradient(90deg,rgba(255,255,255,0.1)_0%,#FFFFFF_36.06%,#FFFFFF_65.38%,rgba(255,255,255,0.1)_100%)]","font-neue-montreal bg-clip-text text-[96px] leading-[0.81] font-medium tracking-[-2px] text-transparent hero-wide:text-[148px] hero-wide:tracking-[-3px] hero-desktop:text-[200px] hero-desktop:tracking-[-4px]",j[u].title),children:"Pod 6"})}),(0,o.jsx)(s.k,{className:"relative z-10 -mt-[75px] hero-wide:-mt-[118px] hero-desktop:-mt-[160px]",distance:"400px",children:(0,o.jsx)("div",{"aria-hidden":!0,className:(0,c.cn)("relative h-[356px] w-[418px] hero-wide:h-[516px] hero-wide:w-[606px] hero-desktop:h-[677px] hero-desktop:w-[795px]","waiting"===u?"opacity-0":"opacity-100"),children:(0,o.jsx)("video",{ref:a,poster:w.poster,preload:"auto",muted:!0,playsInline:!0,disablePictureInPicture:!0,disableRemotePlayback:!0,className:"pointer-events-none absolute top-[-8px] left-1/2 h-[538px] w-[568px] -translate-x-1/2 object-contain hero-wide:top-[-12px] hero-wide:h-[780px] hero-wide:w-[824px] hero-desktop:top-[-15px] hero-desktop:h-[1023px] hero-desktop:w-[1080px]",children:w.sources.map(e=>(0,o.jsx)("source",{src:e.src,type:e.type},e.src))})})}),(0,o.jsx)(s.k,{className:"mt-10 w-full hero-wide:mt-12 hero-desktop:mt-[55px]",distance:y,children:(0,o.jsxs)("div",{className:(0,c.cn)("mx-auto flex w-full max-w-[654px] flex-col items-center gap-10",j[u].copy),children:[(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,o.jsx)("h2",{className:"font-neue-montreal text-[28px] leading-[32px] tracking-[0.36px] whitespace-pre-line text-white hero-wide:text-[32px] hero-wide:leading-[36px] hero-desktop:text-[36px] hero-desktop:leading-[40px]",children:e("hero.subtitle")}),(0,o.jsx)("div",{children:(0,o.jsx)(p.Pod6HeroPrice,{})})]}),(0,o.jsxs)("div",{className:"flex flex-col items-center gap-10",children:[(0,o.jsx)(l.$.White,{id:"pod-6-home-hero-shop",href:"/product/pod-cover",children:e("shopPod6")}),(0,o.jsx)(f,{})]})]})})]})]})}},81347:(e,t,a)=>{a.d(t,{ML:()=>i,QZ:()=>o,UR:()=>r,fn:()=>n,rg:()=>s});let o=(e,t)=>({width:e.persist?"".concat(t?e.persist.expanded:e.persist.collapsed,"px"):"".concat((100*e.width).toFixed(3),"%"),...i(e)}),i=e=>{let t=e.srcWidth/e.srcHeight,a=e.srcRadius/e.srcWidth;return{aspectRatio:"".concat(e.srcWidth," / ").concat(e.srcHeight),borderRadius:"".concat((100*a).toFixed(2),"% / ").concat((a*t*100).toFixed(2),"%")}},n=e=>{let t=Math.min(400,Math.floor(e.srcWidth/3)),a={width:t,height:Math.round(t*e.srcHeight/e.srcWidth)};return{desktop:a,mobile:a}},r={light:"bg-white/20",dark:"bg-black/30"},s="pointer-events-none overflow-hidden"},99507:(e,t,a)=>{a.d(t,{Pod6HeroPrice:()=>d});var o=a(95155),i=a(35829),n=a(89068),r=a(81283),s=a(66190),l=a(43374);let d=function(){var e;let{className:t,endPunctuation:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=(0,s.k)("pod6Home"),c=(0,i.AQ)("pod6"),p=Object.values(null!=(e=null==c?void 0:c.variants)?e:{}).reduce((e,t)=>{let a=t.prices.stripe;if(!a)return e;let o=(0,l.jT)(a.initial);return e&&e.amount<=o?e:{amount:o,currency:a.currency}},void 0);return p?(0,o.jsx)(n.e,{currency:p.currency,amount:p.amount,prefix:d("hero.pricePrefix"),Component:r.ZU.Headline5,as:"p",className:null!=t?t:"font-neue-montreal text-[22px] leading-[28px] font-bold! tracking-[0.22px] text-white",suffix:a,formatOptions:{maximumFractionDigits:0}}):null}}}]);
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.