1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,322183,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(705407);e.s(["LiveChatButton",0,function(e){let r,l=(0,s.c)(3),{className:n,children:o}=e;return l[0]!==o||l[1]!==n?(r=(0,t.jsx)("button",{type:"button",onClick:a.openLiveChat,className:n,children:o}),l[0]=o,l[1]=n,l[2]=r):r=l[2],r}])},407614,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(655202);let r=[["Weâre standing by to help you find the exact right mattress for your unique sleeping style and body."],["You can give us a ",{text:"call",href:"tel:9543712004"},", send us a ",{text:"chat",chat:!0},", ",{text:"email",href:"/pages/contact"}," us, or schedule a consultation. Or if youâre not ready to talk, you can also take our ",{text:"mattress quiz",href:"/pages/mattress-quiz"}," to find the perfect mattress for you."],[{text:"We canât wait to help you get the best sleep of your life!",bold:!0}]];var l=e.i(705407),n=e.i(271645),o=e.i(322183),i=e.i(572488);let c="text-gbgreen-700 underline";function d(e){let a,r,l=(0,s.c)(4),{segments:n}=e;return l[0]!==n?(a=n.map(u),l[0]=n,l[1]=a):a=l[1],l[2]!==a?(r=(0,t.jsx)(t.Fragment,{children:a}),l[2]=a,l[3]=r):r=l[3],r}function u(e,s){if("string"==typeof e)return(0,t.jsx)("span",{children:e},s);if("href"in e){let a=(0,t.jsx)(i.AppLink,{href:e.href,className:c,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.text});return e.bold?(0,t.jsx)("strong",{children:a},s):(0,t.jsx)(n.Fragment,{children:a},s)}return"chat"in e?(0,t.jsx)(o.LiveChatButton,{className:c,children:e.text},s):(0,t.jsx)("strong",{children:e.text},s)}function m(e,s){return(0,t.jsx)("p",{children:(0,t.jsx)(d,{segments:e})},s)}e.s(["SideSleepersContactBanner",0,function(){let e,n,o,i,c,d=(0,s.c)(5);return d[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundImage:"url(https://ghostbed-cdn.imgix.net/ghostbed-global/pages/side-sleeper-guide/man-laying-on-side.jpg?fm=webp)"},d[0]=e):e=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("div",{className:"mx-auto mb-8 max-w-xl space-y-4 text-left leading-relaxed text-neutral-700",children:r.map(m)}),d[1]=n):n=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("a",{href:"tel:9543712004",className:"font-semibold hover:text-gbgreen-700",children:"(954) 371-2004"}),i=(0,t.jsx)("a",{href:"mailto:[email protected]",className:"font-semibold hover:text-gbgreen-700",children:"[email protected]"}),d[2]=o,d[3]=i):(o=d[2],i=d[3]),d[4]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("div",{className:"rounded-lg bg-cover bg-center p-4 md:p-8",style:e,children:(0,t.jsxs)("div",{className:"mx-auto max-w-xl rounded-lg bg-white/90 px-6 py-10 text-center md:px-12",children:[n,(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3 md:flex-row md:gap-8",children:[o,i,(0,t.jsxs)("button",{type:"button",onClick:l.openLiveChat,className:"inline-flex items-center gap-2 font-semibold hover:text-gbgreen-700",children:[(0,t.jsx)(a.MessageCircleIcon,{"aria-hidden":"true",className:"h-5 w-5"}),"Chat with us"]})]}),(0,t.jsxs)("p",{className:"mt-4 text-sm text-neutral-500",children:["Hours: ","8am - 10pm (EST)"]})]})}),d[4]=c):c=d[4],c}],407614)},134061,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(975157);function l(e){return!e}function n(e){return null!==e}function o(e){return document.getElementById(e.id)}e.s(["BuyersGuideToc",0,function(e){let i,c,d,u,m,h,p,x,b,g,f,y,w,v=(0,s.c)(34),{entries:j}=e,[N,S]=(0,a.useState)(null),[_,k]=(0,a.useState)(!1);v[0]!==j?(i=()=>{if("u"<typeof IntersectionObserver)return;let e=j.map(o).filter(n);if(0===e.length)return;let t=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&S(t.target.id)},{rootMargin:"-96px 0px -70% 0px",threshold:0});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},c=[j],v[0]=j,v[1]=i,v[2]=c):(i=v[1],c=v[2]),(0,a.useEffect)(i,c),v[3]!==N?(d=e=>(0,r.cn)("block border-l-2 py-1.5 pl-4 text-sm transition-colors duration-base",e===N?"border-gbgreen-600 font-bold text-gbgreen-700":"border-transparent text-neutral-600 hover:text-gbgreen-700"),v[3]=N,v[4]=d):d=v[4];let C=d;if(v[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)("p",{className:"mb-3 text-xs font-bold tracking-wide text-neutral-500 uppercase",children:"On this page"}),v[5]=u):u=v[5],v[6]!==N||v[7]!==j||v[8]!==C){let e;v[10]!==N||v[11]!==C?(e=e=>(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:`#${e.id}`,"aria-current":e.id===N?"true":void 0,className:C(e.id),children:e.tocLabel})},e.id),v[10]=N,v[11]=C,v[12]=e):e=v[12],m=j.map(e),v[6]=N,v[7]=j,v[8]=C,v[9]=m}else m=v[9];v[13]!==m?(h=(0,t.jsx)("nav",{"aria-label":"Guide sections",className:"hidden lg:block",children:(0,t.jsxs)("div",{className:"sticky top-24",children:[u,(0,t.jsx)("ul",{children:m})]})}),v[13]=m,v[14]=h):h=v[14],v[15]===Symbol.for("react.memo_cache_sentinel")?(p=()=>k(l),v[15]=p):p=v[15];let I=_&&"rotate-180";return v[16]!==I?(x=(0,r.cn)("transition-transform duration-base",I),v[16]=I,v[17]=x):x=v[17],v[18]!==x?(b=(0,t.jsx)("span",{"aria-hidden":"true",className:x,children:"â¼"}),v[18]=x,v[19]=b):b=v[19],v[20]!==_||v[21]!==b?(g=(0,t.jsxs)("button",{type:"button","aria-expanded":_,"aria-controls":"buyers-guide-mobile-toc",onClick:p,className:"flex w-full items-center justify-between rounded-md border border-neutral-300 px-4 py-3 text-sm font-bold text-gbgreen-700",children:["Jump to a section",b]}),v[20]=_,v[21]=b,v[22]=g):g=v[22],v[23]!==N||v[24]!==j||v[25]!==C||v[26]!==_?
1(f=_&&(0,t.jsx)("ul",{id:"buyers-guide-mobile-toc",className:"mt-2 rounded-md border border-neutral-200 p-2",children:j.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:`#${e.id}`,"aria-current":e.id===N?"true":void 0,onClick:()=>k(!1),className:C(e.id),children:e.tocLabel})},e.id))}),v[23]=N,v[24]=j,v[25]=C,v[26]=_,v[27]=f):f=v[27],v[28]!==g||v[29]!==f?(y=(0,t.jsxs)("div",{className:"lg:hidden",children:[g,f]}),v[28]=g,v[29]=f,v[30]=y):y=v[30],v[31]!==y||v[32]!==h?(w=(0,t.jsxs)(t.Fragment,{children:[h,y]}),v[31]=y,v[32]=h,v[33]=w):w=v[33],w}])},323296,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(994373);let l={kind:"yes"},n={kind:"no"};function o(e){return{kind:"text",text:e}}let i="*With imported and domestic materials. Manufacturing country varies based on customer's location and specific mattress model.",c="*With imported and domestic materials. Manufacturing country varies based on customerâs location and specific mattress model.",d=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in the USA & Canada*"),l,l],[o("All-foam and hybrid mattress options"),l,l],[o("Cooling Technology"),o("Included in every mattress"),o("Extra charge")],[o("Average customer rating "),o("4.8"),o("4.5")],[o("Limited Warranty"),o("20 - 25 Years"),o("10 Years")],[o("Trial period"),o("101 Days"),o("100 Days")],[o("Free shipping and returns"),l,l],[o("20+ years in the industry**"),l,n],[o("Founded by a manufacturing expert"),l,n]],u=[[o("How to buy"),o("Direct from GhostBed, plus select retailers"),o("Retailers only")],[o("Massage features"),l,n],[o("USB ports"),l,n],[o("Ships in"),o("24 hours*"),o("Varies by retailer")],[o("Base + mattress bundle options"),l,n],[o("Preset positions"),o("6"),o("4")],[o("Under-bed lighting"),l,l],[o("Wireless remote"),l,l],[o("US-based customer support"),l,o("Varies by retailer")]],m=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in the USA & Canada*"),l,n],[o("All-foam and hybrid mattress options"),l,l],[o("Average customer rating "),o("4.8"),o("4.7")],[o("Ships in**"),o("24 hours"),o("3-5 business days")],[o("20+ years in the industry***"),l,n],[o("Founded by a manufacturing expert"),l,n],[o("Range of firmness options"),l,n]],h=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in the USA & Canada*"),l,l],[o("All-foam and hybrid mattress options"),l,l],[o("Average customer rating "),o("4.8"),o("4.4")],[o("Limited Warranty"),o("20 - 25 Years"),o("10 Years")],[o("Trial period"),o("101 Nights"),o("100 Night")],[o("Free shipping and returns"),l,l]],p=[[o("All-foam and hybrid mattress options"),l,l],[o("Bed-in-a-box convenience"),l,n],[o("Limited Warranty"),o("20 - 25 Years"),o("Lifetime, but with complex terms")],[o("Free mattress returns"),l,n],[o("20+ years in the industry"),l,n],[o("Founded by a manufacturing expert"),l,n],[o("Ships in***"),o("24 hours"),o("Varies; requires scheduling")]],x=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in the USA*"),l,l],...p],b=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in Canada*"),l,n],...p],g=[[o("All-foam and hybrid mattress options"),l,o("Only foam mattresses")],[o("Bed-in-a-box convenience"),l,n],[o("Limited Warranty"),o("20 - 25 Years"),o("10 - 15 Years")],[o("Trial period"),o("101 Days"),o("100 Days")],[o("Free shipping"),l,n],[o("Ships in**"),o("24 hours"),o("2 weeks")],[o("Free mattress returns"),l,n],[o("Founded by a manufacturing expert"),l,n]],f=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in the USA*"),l,l],...g],y=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in Canada*"),l,l],...g],w=[[o("Price point"),o("$"),o("$$")],[o("Preset positions"),o("6"),o("4")],[o("Massage zones"),o("2 zones"),o("1 zone")],[o("USB Ports "),l,l],[o("Under-bed lighting"),l,l],[o("Zero Gravity"),l,l],[o("Lumbar support"),n,l],[o("Ships in"),o("24 hours"),o("2 weeks")]],v=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Made in the USA & Canada*"),l,l],[o("All-foam and hybrid mattress options"),l,l],[o("Average customer rating - High "),l,l],[o("Limited Warranty"),o("20 - 25 Years"),o("10 - 25 Years")],[o("Trial period"),o("101 Days"),o("90 Days")],[o("Free shipping and returns"),l,l],[o("Ships in"),o("24-48 hours"),o("1-2 weeks")]],j=[[o("CertiPUR-US® foam-based mattresses"),l,l],[o("Manufacturing"),o("Made in the USA & Canada"),o("Made in the USA & Asia")],[o("Mattress firmness options"),o("Medium-Plush to Medium-Firm"),o("Only Medium-Firm")],[o("All-foam and hybrid mattress options"),l,l],[o("Average customer rating"),o("4.8"),o("4.6")],[o("Free shipping"),l,l],[o("Free returns"),l,n],[o("Founded by a manufacturing expert"),l,n]],N={casper:{columnTitles:["","GhostBed","Casper"],rowsByMarket:{US:d,CA:d,GB:d},footnotes:[{text:i},{text:"**Includes GhostBed's parent company, Nature's Sleep, founded in 2001."}],standalone:!0},"leggett-platt-simplicity-3-0-adjustable-base":{columnTitles:["","GhostBed Adjustable Base","Leggett & Platt Simplicity HF Adjustable Base"],rowsByMarket:{US:u,CA:u,GB:u},footnotes:[{text:"*Most direct-order GhostBed products ship within 24 hours, unless otherwise noted."}],standalone:!0},nectar:{columnTitles:["","GhostBed","Nectar"],rowsByMarket:{US:m,CA:m,GB:m},footnotes:[{text:i},{text:"**Most GhostBed products ship within 24 hours, unless otherwise noted."},{text:"***Includes GhostBed's parent company, Nature's Sleep, founded in 2001."}],standalone:!0},purple:{columnTitles:["","GhostBed","Purple"],rowsByMarket:{US:h,CA:h,GB:h},footnotes:[{text:i}],standalone:!0},saatva:{columnTitles:["","GhostBed","Saatva"],rowsByMarket:{US:x,CA:b,GB:b},footnotes:[{text:c},{text:"**Includes GhostBed's parent company, Nature's Sleep, founded in 2001."},{text:"***Most GhostBed products ship within 24 hours, unless otherwise noted."}],standalone:!0},"sleep-number":{columnTitles:["","GhostBed","Sleep Number"],rowsByMarket:{US:f,CA:y,GB:y},footnotes:[{text:c},{text:"**Most GhostBed products ship within 24 hours, unless otherwise noted."}],standalone:!0},"tempur-ergo-plus-adjustable-base":{columnTitles:["","GhostBed Adjustable Base","TEMPUR-Ergo® Power Base"],rowsByMarket:{US:w,CA:w,GB:w},footnotes:[{text:"**Most GhostBed products ship within 24 hours, unless otherwise noted."}],standalone:!0},"tempur-pedic":{columnTitles:["","GhostBed","Tempur-Pedic"],rowsByMarket:{US:v,CA:v,GB:v},footnotes:[{text:c},{text:"**Prices accurate as of 5/30/25 and do not reflect current promos. Prices pulled from Sleep Country.",caOnly:!0}],standalone:!0},lull:{columnTitles:["","GhostBed","Lull"],rowsByMarket:{US:j,CA:[[o("
1CertiPUR-US® foam-based mattresses"),l,l],[o("Manufacturing"),o("Made in Canada & USA"),o("Made in the USA & Asia")],[o("Mattress firmness options"),o("Medium-Plush to Medium-Firm"),o("Only Medium-Firm")],[o("All-foam and hybrid mattress options"),l,l],[o("Average customer rating"),o("4.8"),o("4.6")],[o("Free shipping"),l,l],[o("Free returns"),l,n],[o("Founded by a manufacturing expert"),l,n]],GB:j},footnotes:[],standalone:!1}};var S=e.i(975157);function _(e){let a,r=(0,s.c)(5),{cell:l,isGhostBedColumn:n}=e;if("text"===l.kind){let e;return r[0]!==l.text?(e=(0,t.jsx)("div",{children:l.text}),r[0]=l.text,r[1]=e):e=r[1],e}let o="yes"===l.kind?n?"https://ghostbed-cdn.imgix.net/ghostbed-global/icons/check-or-x/icon-yes-light.svg":"https://ghostbed-cdn.imgix.net/ghostbed-global/icons/check-or-x/icon-yes-dark.svg":"https://ghostbed-cdn.imgix.net/ghostbed-global/icons/check-or-x/icon-no.svg",i="yes"===l.kind?"Yes":"No";return r[2]!==o||r[3]!==i?(a=(0,t.jsx)("img",{src:o,alt:i,className:"mx-auto h-8",loading:"lazy"}),r[2]=o,r[3]=i,r[4]=a):a=r[4],a}e.s(["EduComparisonChart",0,function(e){let l,n,o,i,c,d,u,m,h=(0,s.c)(29),{chartId:p}=e,x=(0,r.useMarket)(),[b,g]=(0,a.useState)(1),f=N[p],y=f.rowsByMarket[x.id];if(h[0]!==f.columnTitles||h[1]!==b){let e;h[3]!==f.columnTitles.length||h[4]!==b?(e=(e,s)=>{let a=(0,S.cn)("flex flex-1 flex-wrap items-center justify-center gap-2 border-b-4 px-3 py-4 text-center text-xs xs:flex-nowrap xs:text-sm md:flex md:border-none md:bg-transparent md:font-bold",0===s&&"hidden",1===s&&"rounded-tl-lg text-gbgreen-700",1===s&&(1===b?"border-gbgreen-700 bg-gbgreen-300":"border-gbgreen-200 bg-gbgreen-200"),s>1&&"bg-gray-200",s>1&&s===b&&"border-b-gray-600 bg-gray-400",s===b&&"font-bold",s===f.columnTitles.length-1&&"rounded-tr-lg"),r=(0,t.jsxs)(t.Fragment,{children:[1===s&&(0,t.jsx)("img",{src:"https://ghostbed-cdn.imgix.net/ghostbed-global/products/ghostbed-luxe/gb-logo-small.svg",alt:"GhostBed Logo",loading:"lazy"}),e]});return 0===s?(0,t.jsx)("div",{className:a,style:{overflowWrap:"anywhere"},children:r},s):(0,t.jsx)("button",{type:"button",className:a,style:{overflowWrap:"anywhere"},"aria-pressed":b===s,onClick:()=>g(s),children:r},s)},h[3]=f.columnTitles.length,h[4]=b,h[5]=e):e=h[5],l=f.columnTitles.map(e),h[0]=f.columnTitles,h[1]=b,h[2]=l}else l=h[2];if(h[6]!==l?(n=(0,t.jsx)("div",{className:"flex md:mb-2",children:l}),h[6]=l,h[7]=n):n=h[7],h[8]!==y||h[9]!==b){let e;h[11]!==y.length||h[12]!==b?(e=(e,s)=>(0,t.jsx)("div",{className:"flex",children:e.map((e,a)=>(0,t.jsx)("div",{className:(0,S.cn)("flex-1 items-center justify-center px-4 py-2 text-center text-xs font-semibold md:flex md:text-base",a>0&&b!==a&&"hidden",0===a&&"bg-gray-700 text-white",1===a&&"border-gbgreen-400 bg-gbgreen-700 text-white",1===a&&0===s&&"md:-mt-4",1===a&&s===y.length-1&&"md:-mb-4",s>0&&a>0&&"border-t-2",a>1&&"border-r-2 border-gray-200 bg-white"),children:(0,t.jsx)("div",{className:(0,S.cn)(1===a&&0===s&&"md:pt-4"),children:(0,t.jsx)(_,{cell:e,isGhostBedColumn:1===a})})},a))},s),h[11]=y.length,h[12]=b,h[13]=e):e=h[13],o=y.map(e),h[8]=y,h[9]=b,h[10]=o}else o=h[10];h[14]!==o?(i=(0,t.jsx)("div",{className:"shadow-floating",children:o}),h[14]=o,h[15]=i):i=h[15],h[16]!==n||h[17]!==i?(c=(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[n,i]}),h[16]=n,h[17]=i,h[18]=c):c=h[18];let w=c;if(!f.standalone)return w;if(h[19]!==w?(d=(0,t.jsx)("div",{className:"mx-auto max-w-7xl py-6 md:py-10",children:(0,t.jsx)("div",{className:"mx-auto max-w-5xl px-4 text-center",children:(0,t.jsx)("div",{className:"mt-8",children:w})})}),h[19]=w,h[20]=d):d=h[20],h[21]!==f.footnotes||h[22]!==x.id){let e;h[24]!==x.id?(e=(e,s)=>(!e.caOnly||"CA"===x.id)&&(0,t.jsx)("p",{className:"italic",children:e.text},s),h[24]=x.id,h[25]=e):e=h[25],u=f.footnotes.map(e),h[21]=f.footnotes,h[22]=x.id,h[23]=u}else u=h[23];return h[26]!==d||h[27]!==u?(m=(0,t.jsxs)("div",{id:"ghostbed-vs-competition",children:[d,u]}),h[26]=d,h[27]=u,h[28]=m):m=h[28],m}],323296)},325244,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645);function r(e){return!e}e.s(["EduDropdown",0,function(e){let l,n,o,i,c,d,u=(0,s.c)(19),{question:m,answer:h,answerPart2:p,answerPart3:x}=e,[b,g]=(0,a.useState)(!1),f=(0,a.useId)();u[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>g(r),u[0]=l):l=u[0],u[1]!==m?(n=(0,t.jsx)("div",{className:"uppercase",children:m}),u[1]=m,u[2]=n):n=u[2];let y=b?"â":"+";return u[3]!==y?(o=(0,t.jsx)("div",{className:"text-2xl text-gbgreen",children:y}),u[3]=y,u[4]=o):o=u[4],u[5]!==f||u[6]!==b||u[7]!==n||u[8]!==o?(i=(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center justify-between py-3 text-left","aria-expanded":b,"aria-controls":f,onClick:l,children:[n,o]}),u[5]=f,u[6]=b,u[7]=n,u[8]=o,u[9]=i):i=u[9],u[10]!==h||u[11]!==p||u[12]!==x||u[13]!==f||u[14]!==b?(c=b&&(0,t.jsxs)("div",{id:f,className:"flex flex-col gap-y-3 px-3 pb-3 text-sm",children:[(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:h}}),p&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:p}}),x&&(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:x}})]}),u[10]=h,u[11]=p,u[12]=x,u[13]=f,u[14]=b,u[15]=c):c=u[15],u[16]!==i||u[17]!==c?(d=(0,t.jsxs)("div",{className:"border-b border-gray-200",children:[i,c]}),u[16]=i,u[17]=c,u[18]=d):d=u[18],d}])},244705,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(705407);e.s(["ArticleChatTriggers",0,function(e){let r,l,n=(0,s.c)(3),{children:o}=e;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=function(e){e.target.closest("[data-live-chat-trigger]")&&(e.preventDefault(),(0,a.openLiveChat)())},n[0]=r):r=n[0];let i=r;return n[1]!==o?(l=(0,t.jsx)("div",{onClick:i,children:o}),n[1]=o,n[2]=l):l=n[2],l}])},618187,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(480169),l=e.i(975157);e.s(["AffirmSiteModalTrigger",0,function(e){let n,o,i,c,d=(0,s.c)(8),{market:u,className:m,children:h}=e;return d[0]!==u?(n=()=>{(0,r.loadAffirm)(u)},o=[u],d[0]=u,d[1]=n,d[2]=o):(n=d[1],o=d[2]),(0,a.useEffect)(n,o),d[3]!==m?(i=(0,l.cn)("affirm-site-modal",m),d[3]=m,d[4]=i):i=d[4],d[5]!==h||d[6]!==i?(c=(0,t.jsx)("button",{type:"button",className:i,children:h}),d[5]=h,d[6]=i,d[7]=c):c=d[7],c}])},923478,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(522016),l=e.i(503636);let n="https://ghostbed-cdn.imgix.net",o=`${n}/ghostbed-global/logos/logo-ghostbed-geo-targetly.png`,i=["Twin","Twin XL","Full","Queen","King","Cal King","Split King"],c="mt-1 mb-3 flex w-full cursor-pointer appearance-none items-center justify-between rounded-xl border border-neutral-300 bg-neutral-50 px-5 py-3 pr-12";function d(e){return(0,t.jsx)("option",{value:e,children:e},e)}function u(e){return(0,t.jsx)("option",{value:e,children:e},e)}e.s(["FinancingEstimator",0,function(e){let m,h,p,x,b,g,f,y,w,v,j,N,S,_,k,C,I,M,B,A,R,T=(0,s.c)(78),{products:q,monthsOptions:G}=e,[E,O]=(0,a.useState)("Queen"),[L,U]=(0,a.useState)(12);if(T[0]!==G||T[1]!==q||T[2]!==L||T[3]!==E){let e,s,a,C,I,M,B,A,R,F,H,$,z,Y,D,P;T[19]!==E?(e=e=>{let t,s=(t=e.variants.find(e=>e.title===E))&&t.priceCents>0?t.priceCents:null;return null===s?[]:[{product:e,priceCents:s}]},T[19]=E,T[20]=e):e=T[20];let W=q.flatMap(e);g="w-full bg-white py-10",f="financing-estimator",b="mx-auto w-full max-w-7xl px-6",N="mx-auto mb-6 w-full text-center md:w-3/4",T[21]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsxs)("h2",{className:"mb-2 text-2xl md:text-3xl",children:["Estimate Your ",(0,t.jsx)("span",{className:"text-gbgreen",children:"Finance Options"})]}),T[21]=S):S=T[21],T[22]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsxs)("p",{className:"mb-6 text-2xl md:text-3xl",children:["As low as ",(0,t.jsx)("span",{className:"text-gbgreen",children:"0% APR"})," with flexible plans of 3, 6, 12, 18, 24, or 36 months."]}),k=(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"font-bold",children:"We get it:"})," buying a new mattress is an investment."]}),h=(0,t.jsx)("p",{className:"mt-2",children:"Weâve partnered with Affirm to make it easier to say âyesâ to upgrading your sleep with GhostBed."}),p=(0,t.jsx)("p",{className:"mt-4",children:"Qualified customers enjoy low monthly payment plans and as little as 0% APR, so you get your mattress and other GhostBed products right awayâbut your bank account gets a little leeway."}),x=(0,t.jsx)("p",{className:"my-10 font-bold text-gbgreen",children:"Select your mattress and size below to see sample payment plans:"}),T[22]=h,T[23]=p,T[24]=x,T[25]=_,T[26]=k):(h=T[22],p=T[23],x=T[24],_=T[25],k=T[26]),v="flex flex-wrap",T[27]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("label",{className:"font-bold",htmlFor:"financing-estimator-size",children:"Select Your Size"}),T[27]=s):s=T[27],T[28]===Symbol.for("react.memo_cache_sentinel")?(a=e=>O(e.target.value),T[28]=a):a=T[28],T[29]===Symbol.for("react.memo_cache_sentinel")?(C=i.map(u),T[29]=C):C=T[29],T[30]!==E?(I=(0,t.jsx)("select",{id:"financing-estimator-size",value:E,onChange:a,className:c,children:C}),T[30]=E,T[31]=I):I=T[31],T[32]===Symbol.for("react.memo_cache_sentinel")?(M=(0,t.jsx)(l.ChevronDownIcon,{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 right-5 size-4 -translate-y-1/2"}),T[32]=M):M=T[32],T[33]!==I?(B=(0,t.jsxs)("div",{className:"relative",children:[I,M]}),T[33]=I,T[34]=B):B=T[34],T[35]===Symbol.for("react.memo_cache_sentinel")?(A=(0,t.jsx)("label",{className:"font-bold",htmlFor:"financing-estimator-plan",children:"Select Financing Option"}),T[35]=A):A=T[35],T[36]===Symbol.for("react.memo_cache_sentinel")?(R=(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("select",{id:"financing-estimator-plan",defaultValue:"affirm",className:c,children:(0,t.jsx)("option",{value:"affirm",children:"Affirm"})}),(0,t.jsx)(l.ChevronDownIcon,{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 right-5 size-4 -translate-y-1/2"})]}),F=(0,t.jsx)("label",{className:"font-bold",htmlFor:"financing-estimator-months",children:"Select Plan Length"}),T[36]=R,T[37]=F):(R=T[36],F=T[37]),T[38]===Symbol.for("react.memo_cache_sentinel")?(H=e=>U(Number(e.target.value)),T[38]=H):H=T[38],T[39]!==G?($=G.map(d),T[39]=G,T[40]=$):$=T[40],T[41]!==L||T[42]!==$?(z=(0,t.jsx)("select",{id:"financing-estimator-months",value:L,onChange:H,className:c,children:$}),T[41]=L,T[42]=$,T[43]=z):z=T[43],T[44]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,t.jsx)(l.ChevronDownIcon,{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 right-5 size-4 -translate-y-1/2"}),T[44]=Y):Y=T[44],T[45]!==z?(D=(0,t.jsxs)("div",{className:"relative",children:[z,Y]}),T[45]=z,T[46]=D):D=T[46],T[47]!==B||T[48]!==D?(j=(0,t.jsx)("div",{className:"mb-10 w-full pr-0 text-left md:pr-10 lg:mb-0 lg:w-1/3",children:(0,t.jsxs)("form",{children:[s,B,A,R,F,D]})}),T[47]=B,T[48]=D,T[49]=j):j=T[49],w="w-full lg:w-2/3",m="-m-3 flex flex-wrap",T[50]!==L?(P=e=>{var s,a;let{product:l,priceCents:i}=e;return(0,t.jsx)("div",{className:"w-full p-3 md:w-1/2",children:(0,t.jsxs)(r.default,{href:`/products/${l.handle}`,className:"group block w-full rounded-xl bg-neutral-100 p-3 transition-transform duration-base ease-out-soft motion-safe:hover:scale-105",children:[(0,t.jsx)("img",{src:o,alt:l.title,title:l.title,loading:"lazy",className:"mx-auto my-3 h-6"}),(0,t.jsx)("h3",{className:"my-4 font-bold",children:(s=l.title,/mattress\s*$/i.test(s)?s:`${s} Mattress`)}),(0,t.jsx)("img",{src:(a=l.handle,`${n}/ghostbed-global/pages/financing/${a}.webp`),alt:l.title,title:l.title,loading:"lazy",className:"mx-auto mb-2 h-32"}),(0,t.jsxs)("div",{className:"flex flex-col justify-between font-bold text-gbgreen",children:[(0,t.jsxs)("span",{className:"text-lg",children:[(0,t.jsx)("span",{children:"As low as"}
1)," ",`$${Math.round(i/100/L).toLocaleString("en-US")}`," / month"]}),(0,t.jsx)("span",{className:"mx-auto my-2 w-full rounded-xl bg-gbgreen px-2 py-1 text-white uppercase group-hover:bg-gbgreen-600",children:"Shop"})]})]})},l.handle)},T[50]=L,T[51]=P):P=T[51],y=W.map(P),T[0]=G,T[1]=q,T[2]=L,T[3]=E,T[4]=m,T[5]=h,T[6]=p,T[7]=x,T[8]=b,T[9]=g,T[10]=f,T[11]=y,T[12]=w,T[13]=v,T[14]=j,T[15]=N,T[16]=S,T[17]=_,T[18]=k}else m=T[4],h=T[5],p=T[6],x=T[7],b=T[8],g=T[9],f=T[10],y=T[11],w=T[12],v=T[13],j=T[14],N=T[15],S=T[16],_=T[17],k=T[18];return T[52]!==m||T[53]!==y?(C=(0,t.jsx)("div",{className:m,children:y}),T[52]=m,T[53]=y,T[54]=C):C=T[54],T[55]!==C||T[56]!==w?(I=(0,t.jsx)("div",{className:w,children:C}),T[55]=C,T[56]=w,T[57]=I):I=T[57],T[58]!==I||T[59]!==v||T[60]!==j?(M=(0,t.jsxs)("div",{className:v,children:[j,I]}),T[58]=I,T[59]=v,T[60]=j,T[61]=M):M=T[61],T[62]!==h||T[63]!==p||T[64]!==x||T[65]!==M||T[66]!==N||T[67]!==S||T[68]!==_||T[69]!==k?(B=(0,t.jsxs)("div",{className:N,children:[S,_,k,h,p,x,M]}),T[62]=h,T[63]=p,T[64]=x,T[65]=M,T[66]=N,T[67]=S,T[68]=_,T[69]=k,T[70]=B):B=T[70],T[71]!==b||T[72]!==B?(A=(0,t.jsx)("div",{className:b,children:B}),T[71]=b,T[72]=B,T[73]=A):A=T[73],T[74]!==g||T[75]!==f||T[76]!==A?(R=(0,t.jsx)("div",{className:g,"data-testid":f,children:A}),T[74]=g,T[75]=f,T[76]=A,T[77]=R):R=T[77],R}],923478)},735693,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(392354),r=e.i(95187);let l=(0,r.createServerReference)("40cf8e2c0b70d0a2994401be661373e23f3f1c4b05",r.callServer,void 0,r.findSourceMapURL,"updateCartAttributesAction");var n=e.i(295460),o=e.i(175379);let i="Customer Email",c="Special Instructions";e.s(["INSPIRATO_EMAIL_ATTR_KEY",0,i,"INSPIRATO_INSTRUCTIONS_ATTR_KEY",0,c,"InspiratoOrderForm",0,function({products:e}){let{addToCart:r}=(0,a.useCart)(),[d,u]=(0,s.useState)(()=>Object.fromEntries(e.map(e=>[e.variantId,0]))),[m,h]=(0,s.useState)(""),[p,x]=(0,s.useState)(""),[b,g]=(0,s.useState)(!1),[f,y]=(0,s.useState)(null),w=e.reduce((e,t)=>e+Math.round(100*Number(t.price.amount))*(d[t.variantId]??0),0),v=e[0]?.price.currencyCode??"USD",j=e.some(e=>(d[e.variantId]??0)>0);async function N(t){t.preventDefault(),g(!0),y(null);try{let t=e.filter(e=>(d[e.variantId]??0)>0).map(e=>({merchandiseId:e.variantId,quantity:d[e.variantId]})),s=await r(t,{openDrawer:!1});if(!s.ok)return void y(s.message);let a=await l([{key:i,value:m},{key:c,value:p}]);if(!a.ok)return void y(a.message);window.location.assign(a.cart.checkoutUrl)}catch{y(n.TRANSPORT_FAILURE_MESSAGE)}finally{g(!1)}}return(0,t.jsxs)("div",{children:[e.map(e=>(0,t.jsx)("div",{className:"my-10",children:(0,t.jsxs)("div",{className:"-m-8 flex flex-wrap rounded-xl",children:[(0,t.jsx)("div",{className:"w-full p-8 md:w-1/3",children:e.featuredImage&&(0,t.jsx)("img",{className:"w-full rounded-xl",src:e.featuredImage.url,alt:e.featuredImage.altText??e.title})}),(0,t.jsxs)("div",{className:"w-full p-8 md:w-2/3",children:[(0,t.jsx)("h2",{className:"mb-1 text-2xl font-bold",children:e.title.replace("Inspirato - ","")}),(0,t.jsx)("h3",{className:"mb-2 text-xl font-bold text-gbgreen",children:(0,o.formatMoneyExact)(e.price)}),e.descriptionHtml&&(0,t.jsx)("div",{className:"prose mt-5 text-sm",dangerouslySetInnerHTML:{__html:e.descriptionHtml}}),(0,t.jsxs)("div",{className:"mt-8",children:[(0,t.jsxs)("label",{className:"sr-only",htmlFor:`inspirato-quantity-${e.handle}`,children:["Quantity for ",e.title]}),(0,t.jsx)("input",{id:`inspirato-quantity-${e.handle}`,className:"w-20 rounded-md border border-gray-300 px-3 py-2",type:"number",min:0,required:!0,value:d[e.variantId]??0,onChange:t=>u(s=>({...s,[e.variantId]:Math.max(0,Math.trunc(Number(t.target.value)||0))}))})]})]})]})},e.id)),(0,t.jsx)("hr",{className:"my-8"}),(0,t.jsxs)("form",{onSubmit:N,children:[(0,t.jsxs)("label",{className:"mb-2 block w-full text-sm font-semibold",htmlFor:"customer-email",children:["Customer Email: ",(0,t.jsx)("span",{className:"text-gray-500 italic",children:"(required)"})]}),(0,t.jsx)("input",{id:"customer-email",className:"mb-4 block w-full rounded-xl border border-gray-300 px-4 py-2",type:"email",required:!0,value:m,onChange:e=>h(e.target.value)}),(0,t.jsxs)("label",{className:"mb-2 block w-full text-sm font-semibold",htmlFor:"special-instructions",children:["Special Instructions: ",(0,t.jsx)("span",{className:"text-gray-500 italic",children:"(optional)"})]}),(0,t.jsx)("textarea",{id:"special-instructions",className:"mb-8 block w-full rounded-xl border border-gray-300 px-4 py-2",cols:30,rows:3,value:p,onChange:e=>x(e.target.value)}),f&&(0,t.jsx)("p",{role:"alert",className:"mb-4 font-medium text-red-600",children:f}),(0,t.jsxs)("div",{className:"-m-3 flex flex-wrap items-center justify-between",children:[(0,t.jsxs)("div",{className:"w-full p-3 md:w-auto",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"font-bold",children:"Subtotal:"})," ",(0,o.formatMoneyExact)({amount:(w/100).toFixed(2),currencyCode:v})]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"font-bold",children:"Shipping:"})," FREE White Glove Setup"]})]}),(0,t.jsx)("div",{className:"w-full p-3 md:w-auto",children:(0,t.jsx)("button",{type:"submit",className:`rounded-xl bg-gbgreen px-8 py-4 text-lg text-white ${b||!j?"opacity-25":"hover:bg-gbgreen-600"}`,disabled:b||!j,children:(0,t.jsx)("span",{className:"-mx-1 flex items-center justify-between",children:b?(0,t.jsx)("span",{className:"px-1 font-medium uppercase",children:"Processing"}):(0,t.jsx)("span",{className:"px-1 font-semibold uppercase",children:"Secure Checkout"})})})})]})]})]})}],735693)},399231,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645);let r={"massage-mattress-in-store":119588,"sams-club":126769},l="storerocket-widget";var n=e.i(975157);e.s(["StoreLocatorWidget",0,function(e){let o,i,c,d,u,m=(0,s.c)(9),{filters:h,className:p}=e;m[0]!==h?(o=h?.join(",")??"",m[0]=h,m[1]=o):o=m[1];let x=o;return m[2]!==x?(i=()=>{!function(e){if("u"<typeof document)return;let t=()=>{let t=(e?.filters??[]).map(e=>r[e]).filter(e=>void 0!==e).join(",");window.StoreRocket?.init({selector:".store-locator-widget",account:"qBZJWmkp0o",...t?{filters:t}:{}})};if(window.StoreRocket)return t();if(document.getElementById(l))return;let s=document.createElement("script");s.id=l,s.src="//cdn.storerocket.io/widget.js",s.async=!0,s.onload=t,document.head.appendChild(s)}(x?{filters:x.split(",")}:void 0)},c=[x],m[2]=x,m[3]=i,m[4]=c):(i=m[3],c=m[4]),(0,a.useEffect)(i,c),m[5]!==p?(d=(0,n.cn)("store-locator-widget h-screen max-h-[800px]",p),m[5]=p,m[6]=d):d=m[6],m[7]!==d?(u=(0,t.jsx)("div",{className:d,"data-testid":"store-locator-widget"}),m[7]=d,m[8]=u):u=m[8],u}],399231)},420726,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(934336),r=e.i(948337),l=e.i(994373);e.s(["SubscribePage",0,function(){let e=(0,l.useMarket)(),[n,o]=(0,s.use
1State)(""),[i,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(""),[m,h]=(0,s.useState)("");async function p(t){t.preventDefault(),c(!0),u(""),h("");try{await (0,a.klaviyoSubscribe)(n,a.KLAVIYO_NEWSLETTER_LIST_IDS[e.id]),(0,r.triplePixelContact)(n),u("Thank you for subscribing!"),o("")}catch(e){h("Something went wrong. Please try again."),console.error("Klaviyo subscription error:",e)}finally{c(!1)}}return(0,t.jsx)("div",{className:"bg-white py-16 md:py-32",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsx)("div",{className:"mx-auto max-w-2xl text-center",children:(0,t.jsxs)("div",{className:"grid gap-y-5",children:[(0,t.jsx)("h1",{className:"sr-only",children:"Subscribe"}),(0,t.jsx)("img",{className:"mx-auto w-full max-w-56 md:max-w-sm",src:"https://ghostbed-cdn.imgix.net/ghostbed-global/logos/logo-ghostbed.svg",alt:"GhostBed"}),(0,t.jsx)("div",{className:"text-xl md:text-2xl",children:"Join our email list for updates and promotions!"}),(0,t.jsxs)("form",{className:"grid gap-y-6",onSubmit:p,children:[(0,t.jsx)("label",{className:"sr-only",htmlFor:"subscribe-email",children:"Your email"}),(0,t.jsx)("input",{id:"subscribe-email",type:"email",placeholder:"YOUR EMAIL",required:!0,value:n,onChange:e=>o(e.target.value),className:"w-full rounded-xl border border-gray-300 px-5 py-3 text-gray-500 placeholder-gray-500 shadow-lg outline-none focus:border-gbgreen focus:ring-1 focus:ring-gbgreen"}),(0,t.jsx)("button",{type:"submit",disabled:i,className:"w-full rounded-full bg-gbgreen py-3 text-center text-2xl font-semibold text-white shadow-lg transition-transform duration-base ease-out-soft disabled:cursor-not-allowed disabled:opacity-50 motion-safe:hover:scale-[1.01]",children:i?(0,t.jsx)("span",{children:"Submitting..."}):(0,t.jsx)("span",{children:"Sign Up"})})]}),d&&(0,t.jsx)("div",{role:"status",className:"font-medium text-gbgreen",children:d}),m&&(0,t.jsx)("div",{role:"alert",className:"font-medium text-red-500",children:m})]})})})})}])},114413,e=>{"use strict";e.s(["REVIEWS_TESTIMONIALS",0,[{id:"cooling",tabLabel:"Cooling",name:"Sandra O.",heading:"Love this!",quote:"I love my mattress! The cooling effect has changed my sleep. I would wake up several times during the night sweating. Now with the cooling mattress and pillows I am sleeping âcoolâ and not waking up in a pool of sweat! It is the best purchase ever. I recently purchased the adjustable base too! Love it! Thank you GhostBed!",shopUrl:"/products/split-king"},{id:"quality",tabLabel:"Quality",name:"Jeff S.",heading:"Exceptional mattress and comfortable high quality sheets!",quote:"We purchased a set of ghost sheets for our new ghost mattress and cannot say enough about this great product! The mattress is incredibly comfortable and the sheets are such great quality. They fit the mattress perfectly, are nice and crisp and the material sleeps cool. They wash very nicely as well. Would definitely recommend your products!",shopUrl:"/products/ghostsheets"},{id:"comfort",tabLabel:"Comfort",name:"Angie R.",heading:"GhostBed has changed my life!!!",quote:"GhostBed has changed my life!!! Having fibromyalgia, tendonitis and frozen shoulder, I am often laid up in bed; now I have the option to lounge and the amazing comfort to sleep on my side or back in a multitude of positions. Extra bonus, my husbandâs snoring is down to a dull roar, with his head slightly raised!!!",shopUrl:"/products/the-ghostbed"},{id:"service",tabLabel:"Service",name:"Ljubica J.",heading:"Best Mattress EVER!",quote:"So glad we took a chance with getting this mattress. We LOVE it & between the warranty, free trial & awesome customer service, it was a win-win all the way around!!!",shopUrl:"/products/ghostbed-flex"},{id:"warranty",tabLabel:"Warranty",name:"Jessica V.",heading:"GhostBed!",quote:"The best sleep in years! I have already been recommending people about my new GhostBed. Great buy especially with the 20 year warranty. You really canât beat that.",shopUrl:"/products/ghostbed-luxe"}]])},191402,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(501098),l=e.i(522016),n=e.i(469861),o=e.i(114413);function i(e,s){return(0,t.jsx)(r.StarIcon,{className:"size-5",fill:"currentColor"},s)}function c(e){return e.id}e.s(["SleepWorthRavingSection",0,function(){let e,r,d,u,m,h,p,x,b,g,f,y,w,v,j,N,S,_,k,C,I,M,B=(0,s.c)(51),[A,R]=(0,a.useState)(o.REVIEWS_TESTIMONIALS[0].id);if(B[0]!==A){let s=o.REVIEWS_TESTIMONIALS.map(c);e=o.REVIEWS_TESTIMONIALS.find(e=>e.id===A),y="sleep-worth-raving-about",u="w-full bg-white py-10 md:py-20",x="mx-auto max-w-3xl px-4 md:px-8",B[13]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("div",{className:"mb-4 flex items-center justify-center gap-1 text-gbgreen","aria-hidden":"true",children:Array.from({length:5}).map(i)}),g=(0,t.jsx)("h2",{className:"mb-2 text-center text-2xl md:text-3xl",children:"Sleep Worth Raving About"}),f=(0,t.jsx)("p",{className:"text-center text-xl font-normal text-gbgreen md:text-2xl",children:"See how thous
1ands of people are sleeping better with GhostBed"}),B[13]=b,B[14]=g,B[15]=f):(b=B[13],g=B[14],f=B[15]),p="flex flex-col items-center justify-center",r="tablist",d="Customer quotes by category",m="mt-6 flex flex-wrap justify-center text-sm text-neutral-500 md:mt-4 lg:text-base",h=o.REVIEWS_TESTIMONIALS.map(e=>{let a=e.id===A;return(0,t.jsx)("button",{id:`raving-tab-${e.id}`,type:"button",role:"tab","aria-selected":a,"aria-controls":`raving-panel-${e.id}`,tabIndex:(0,n.rovingTabIndex)(e.id,s,A),onClick:()=>R(e.id),onKeyDown:t=>(0,n.handleRovingRadioKeyDown)(t,s,e.id,R),className:`cursor-pointer border-b-2 px-2 pb-1 transition-colors duration-base xl:mr-6 ${a?"border-gbgreen text-gbgreen":"border-transparent hover:text-neutral-900"}`,children:e.tabLabel},e.id)}),B[0]=A,B[1]=e,B[2]=r,B[3]=d,B[4]=u,B[5]=m,B[6]=h,B[7]=p,B[8]=x,B[9]=b,B[10]=g,B[11]=f,B[12]=y}else e=B[1],r=B[2],d=B[3],u=B[4],m=B[5],h=B[6],p=B[7],x=B[8],b=B[9],g=B[10],f=B[11],y=B[12];B[16]!==r||B[17]!==d||B[18]!==m||B[19]!==h?(w=(0,t.jsx)("div",{role:r,"aria-label":d,className:m,children:h}),B[16]=r,B[17]=d,B[18]=m,B[19]=h,B[20]=w):w=B[20];let T=`raving-panel-${e.id}`,q=`raving-tab-${e.id}`;return B[21]!==e.heading?(v=(0,t.jsx)("span",{className:"font-bold",children:e.heading}),B[21]=e.heading,B[22]=v):v=B[22],B[23]!==e.quote||B[24]!==v?(j=(0,t.jsxs)("p",{className:"leading-loose",children:[v," ",e.quote]}),B[23]=e.quote,B[24]=v,B[25]=j):j=B[25],B[26]!==e.name?(N=(0,t.jsx)("p",{className:"mt-4 text-lg font-semibold text-gbgreen",children:e.name}),B[26]=e.name,B[27]=N):N=B[27],B[28]!==j||B[29]!==N?(S=(0,t.jsxs)("div",{className:"px-4 text-sm lg:text-lg",children:[j,N]}),B[28]=j,B[29]=N,B[30]=S):S=B[30],B[31]!==e.id||B[32]!==T||B[33]!==q||B[34]!==S?(_=(0,t.jsx)("div",{id:T,role:"tabpanel","aria-labelledby":q,className:"pt-5 text-center",children:S},e.id),B[31]=e.id,B[32]=T,B[33]=q,B[34]=S,B[35]=_):_=B[35],B[36]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)("div",{className:"mt-8 flex justify-center",children:(0,t.jsx)(l.default,{href:"/pages/reviews","data-owner-parity":"landing-raving-cta",className:"inline-block rounded-full bg-gbgreen px-5 py-3 font-bold text-white transition-colors duration-base hover:bg-gbgreen-600",children:"Read All Reviews"})}),B[36]=k):k=B[36],B[37]!==w||B[38]!==_||B[39]!==p?(C=(0,t.jsxs)("div",{className:p,children:[w,_,k]}),B[37]=w,B[38]=_,B[39]=p,B[40]=C):C=B[40],B[41]!==C||B[42]!==x||B[43]!==b||B[44]!==g||B[45]!==f?(I=(0,t.jsxs)("div",{className:x,children:[b,g,f,C]}),B[41]=C,B[42]=x,B[43]=b,B[44]=g,B[45]=f,B[46]=I):I=B[46],B[47]!==u||B[48]!==I||B[49]!==y?(M=(0,t.jsx)("div",{id:y,className:u,children:I}),B[47]=u,B[48]=I,B[49]=y,B[50]=M):M=B[50],M}])},689818,e=>{"use strict";var t=e.i(843476),s=e.i(500932);let a=(0,e.i(456420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);function r(e){let r,l,n=(0,s.c)(3),{onClick:o}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(a,{className:"h-4 w-4","aria-hidden":"true"}),n[0]=r):r=n[0],n[1]!==o?(l=(0,t.jsxs)("button",{type:"button",onClick:o,className:"my-9 ml-4 inline-flex cursor-pointer items-center gap-1 text-sm font-medium text-neutral-700 hover:text-black","data-testid":"quiz-back-button",children:[r,"Back"]}),n[1]=o,n[2]=l):l=n[2],l}var l=e.i(121309);function n(e){let a,r,n,o=(0,s.c)(8),{label:i,multiselect:c,onInfoCl
1ick:d}=e,u=void 0!==c&&c;return o[0]!==d?(a=d&&(0,t.jsx)("button",{type:"button",onClick:d,"aria-label":"What's the difference between foam and hybrid?",className:"ml-2 inline-flex align-middle transition hover:scale-105",children:(0,t.jsx)(l.InfoIcon,{className:"h-6 w-6 text-gbgreen","aria-hidden":"true"})}),o[0]=d,o[1]=a):a=o[1],o[2]!==u?(r=u&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{className:"text-lg font-normal text-gbgreen-700 italic lg:text-xl",children:"(select all that apply)"})]}),o[2]=u,o[3]=r):r=o[3],o[4]!==i||o[5]!==a||o[6]!==r?(n=(0,t.jsxs)("h1",{className:"text-2xl leading-tight lg:text-4xl",children:[i,a,r]}),o[4]=i,o[5]=a,o[6]=r,o[7]=n):n=o[7],n}var o=e.i(271645),i=e.i(975157);let c=(0,o.forwardRef)(function(e,a){let r,l,n,o,c,d,u,m,h,p,x=(0,s.c)(23);x[0]!==e?({label:r,selected:d,role:c,tabIndex:u,onSelect:n,onKeyDown:l,disabled:m,...o}=e,x[0]=e,x[1]=r,x[2]=l,x[3]=n,x[4]=o,x[5]=c,x[6]=d,x[7]=u,x[8]=m):(r=x[1],l=x[2],n=x[3],o=x[4],c=x[5],d=x[6],u=x[7],m=x[8]);let b=void 0===u?0:u,g=void 0!==m&&m,f=g?-1:b,y=g?void 0:n,w=g?void 0:l,v=g?"cursor-not-allowed border-neutral-300 bg-neutral-100 text-neutral-400":"cursor-pointer motion-safe:active:scale-[0.99]",j=!g&&(d?"border-gbgreen bg-gbgreen-300":"border-black bg-white hover:border-gbgreen/60");return x[9]!==v||x[10]!==j?(h=(0,i.cn)("w-full rounded-lg border-4 p-5 text-center font-bold transition-colors duration-fast",v,j),x[9]=v,x[10]=j,x[11]=h):h=x[11],x[12]!==g||x[13]!==r||x[14]!==a||x[15]!==o||x[16]!==c||x[17]!==d||x[18]!==f||x[19]!==y||x[20]!==w||x[21]!==h?(p=(0,t.jsx)("button",{ref:a,type:"button",role:c,"aria-checked":d,"aria-disabled":g,disabled:g,tabIndex:f,onClick:y,onKeyDown:w,className:h,...o,children:r}),x[12]=g,x[13]=r,x[14]=a,x[15]=o,x[16]=c,x[17]=d,x[18]=f,x[19]=y,x[20]=w,x[21]=h,x[22]=p):p=x[22],p});var d=e.i(469861);function u(e){let a,r,l,n,u,m,h,p,x,b,g,f,y,w,v=(0,s.c)(30);v[0]!==e?({ariaLabel:a,options:n,selected:m,onSelect:l,columns:h,className:r,...u}=e,v[0]=e,v[1]=a,v[2]=r,v[3]=l,v[4]=n,v[5]=u,v[6]=m,v[7]=h):(a=v[1],r=v[2],l=v[3],n=v[4],u=v[5],m=v[6],h=v[7]);let j=void 0===h?2:h;v[8]===Symbol.for("react.memo_cache_sentinel")?(p={},v[8]=p):p=v[8];let N=(0,o.useRef)(p);if(v[9]!==a||v[10]!==r||v[11]!==j||v[12]!==l||v[13]!==n||v[14]!==u||v[15]!==m){let e=function(e){l(e),N.current[e]?.focus()};x="radiogroup",b=a;let s=2===j&&"lg:grid-cols-2";v[21]!==r||v[22]!==s?(g=(0,i.cn)("grid grid-cols-1 gap-4",s,r),v[21]=r,v[22]=s,v[23]=g):g=v[23],f=u,y=n.map(s=>(0,t.jsx)(c,{ref:e=>{N.current[s]=e},role:"radio",label:s,selected:m===s,tabIndex:(0,d.rovingTabIndex)(s,n,m),onSelect:()=>l(s),onKeyDown:t=>(0,d.handleRovingRadioKeyDown)(t,n,s,e)},s)),v[9]=a,v[10]=r,v[11]=j,v[12]=l,v[13]=n,v[14]=u,v[15]=m,v[16]=x,v[17]=b,v[18]=g,v[19]=f,v[20]=y}else x=v[16],b=v[17],g=v[18],f=v[19],y=v[20];return v[24]!==x||v[25]!==b||v[26]!==g||v[27]!==f||v[28]!==y?(w=(0,t.jsx)("div",{role:x,"aria-label":b,className:g,...f,children:y}),v[24]=x,v[25]=b,v[26]=g,v[27]=f,v[28]=y,v[29]=w):w=v[29],w}
1function m(e){let a,l,o,i,c,d,m,p=(0,s.c)(21),{label:x,options:b,currentValue:g,onSelect:f,onBack:y}=e;p[0]!==g||p[1]!==b?(a=b.find(e=>e.value===g)?.label??null,p[0]=g,p[1]=b,p[2]=a):a=p[2];let w=a;return p[3]!==x?(l=(0,t.jsx)(n,{label:x}),p[3]=x,p[4]=l):l=p[4],p[5]!==b?(o=b.map(h),p[5]=b,p[6]=o):o=p[6],p[7]!==f||p[8]!==b?(i=e=>{let t=b.find(t=>t.label===e);t&&f(t.value)},p[7]=f,p[8]=b,p[9]=i):i=p[9],p[10]!==x||p[11]!==w||p[12]!==o||p[13]!==i?(c=(0,t.jsx)(u,{ariaLabel:x,options:o,selected:w,onSelect:i}),p[10]=x,p[11]=w,p[12]=o,p[13]=i,p[14]=c):c=p[14],p[15]!==y?(d=(0,t.jsx)(r,{onClick:y}),p[15]=y,p[16]=d):d=p[16],p[17]!==l||p[18]!==c||p[19]!==d?(m=(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[l,c,d]}),p[17]=l,p[18]=c,p[19]=d,p[20]=m):m=p[20],m}function h(e){return e.label}var p=e.i(61746);function x(e){let a,r,l,n,o,c,d,u=(0,s.c)(15);u[0]!==e?({children:a,onClick:r,type:n,disabled:o,...l}=e,u[0]=e,u[1]=a,u[2]=r,u[3]=l,u[4]=n,u[5]=o):(a=u[1],r=u[2],l=u[3],n=u[4],o=u[5]);let m=void 0===n?"button":n,h=void 0!==o&&o,p=h?"cursor-not-allowed bg-gray-400":"cursor-pointer bg-gbgreen motion-safe:md:hover:scale-105";return u[6]!==p?(c=(0,i.cn)("w-full rounded-lg p-5 text-base font-bold text-white transition-transform duration-base",p),u[6]=p,u[7]=c):c=u[7],u[8]!==a||u[9]!==h||u[10]!==r||u[11]!==l||u[12]!==c||u[13]!==m?(d=(0,t.jsx)("button",{type:m,onClick:r,disabled:h,"data-owner-parity":"quiz-cta",className:c,...l,children:a}),u[8]=a,u[9]=h,u[10]=r,u[11]=l,u[12]=c,u[13]=m,u[14]=d):d=u[14],d}function b(e){let a,l,i,c,d,m,h,b,f=(0,s.c)(62),{question:y,isCouple:w,currentAnswer:v,onAnswer:j,onNext:N,onBack:S}=e,_=w&&y.coupleLabel||y.label;f[0]!==y.answers?(a=y.answers.map(g),f[0]=y.answers,f[1]=a):a=f[1];let k=a,C=w&&y.coupleTwoColumn,I="What type of mattress are you looking for?"===_,[M,B]=(0,o.useState)(!1),A=v&&!Array.isArray(v)?v.user:null,R=v&&!Array.isArray(v)?v.partner:null,[T,q]=(0,o.useState)(A),[G,E]=(0,o.useState)(R);if(C){let e,s,a,l,o,i,c,d,m,h,b,g,y=!!T&&!!G;f[2]!==I?(e=I?()=>B(!0):void 0,f[2]=I,f[3]=e):e=f[3],f[4]!==_||f[5]!==e?(s=(0,t.jsx)(n,{label:_,onInfoClick:e}),f[4]=_,f[5]=e,f[6]=s):s=f[6],f[7]!==M||f[8]!==I?(a=I&&(0,t.jsx)(p.FoamVsHybridModal,{open:M,onOpenChange:B}),f[7]=M,f[8]=I,f[9]=a):a=f[9],f[10]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("p",{className:"text-center font-semibold",children:"You"}),f[10]=l):l=f[10];let w=`${_} (You)`;f[11]!==k||f[12]!==w||f[13]!==T?(o=(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-3",children:[l,(0,t.jsx)(u,{ariaLabel:w,columns:1,options:k,selected:T,onSelect:q})]}),f[11]=k,f[12]=w,f[13]=T,f[14]=o):o=f[14],f[15]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("p",{className:"text-center font-semibold",children:"Your Partner"}),f[15]=i):i=f[15];let v=`${_} (Your Partner)`;f[16]!==k||f[17]!==G||f[18]!==v?(c=(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-3",children:[i,(0,t.jsx)(u,{ariaLabel:v,columns:1,options:k,selected:G,onSelect:E})]}),f[16]=k,f[17]=G,f[18]=v,f[19]=c):c=f[19],f[20]!==c||f[21]!==o?(d=(0,t.jsxs)("div",{className:"flex gap-4",children:[o,c]}),f[20]=c,f[21]=o,f[22]=d):d=f[22];let C=!y;return f[23]!==j||f[24]!==N||f[25]!==G||f[26]!==T?(m=()=>{T&&G&&(j({user:T,partner:G}),N())},f[23]=j,f[24]=N,f[25]=G,f[26]=T,f[27]=m):m=f[27],f[28]!==C||f[29]!==m?(h=(0,t.jsx)(x,{disabled:C,onClick:m,"data-testid":"quiz-choice-next",children:"Next"}),f[28]=C,f[29]=m,f[30]=h):h=f[30],f[31]!==S?(b=(0,t.jsx)(r,{onClick:S}),f[31]=S,f[32]=b):b=f[32],f[33]!==d||f[34]!==h||f[35]!==b||f[36]!==s||f[37]!==a?(g=(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[s,a,d,h,b]}),f[33]=d,f[34]=h,f[35]=b,f[36]=s,f[37]=a,f[38]=g):g=f[38],g}let O=v&&Array.isArray(v)?v[0]??null:null;return f[39]!==I?(l=I?()=>B(!0):void 0,f[39]=I,f[40]=l):l=f[40],f[41]!==_||f[42]!==l?(i=(0,t.jsx)(n,{label:_,onInfoClick:l}),f[41]=_,f[42]=l,f[43]=i):i=f[43],f[44]!==M||f[45]!==I?(c=I&&(0,t.jsx)(p.FoamVsHybridModal,{open:M,onOpenChange:B}),f[44]=M,f[45]=I,f[46]=c):c=f[46],f[47]!==j||f[48]!==N?(d=e=>{j([e]),N()},f[47]=j,f[48]=N,f[49]=d):d=f[49],f[50]!==_||f[51]!==k||f[52]!==O||f[53]!==d?(m=(0,t.jsx)(u,{ariaLabel:_,options:k,selected:O,onSelect:d}),f[50]=_,f[51]=k,f[52]=O,f[53]=d,f[54]=m):m=f[54],f[55]!==S?(h=(0,t.jsx)(r,{onClick:S}),f[55]=S,f[56]=h):h=f[56],f[57]!==i||f[58]!==c||f[59]!==m||f[60]!==h?(b=(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[i,c,m,h]}),f[57]=i,f[58]=c,f[59]=m,f[60]=h,f[61]=b):b=f[61],b}function g(e){return e.label}function f(e){let a,r=(0,s.c)(2),{onClick:l}=e;return r[0]!==l?(a=(0,t.jsx)("button",{type:"button",onClick:l,className:"my-9 ml-4 block cursor-pointer text-lg text-neutral-700 hover:text-black","data-testid":"quiz-skip-button",children:"Skip"}),r[0]=l,r[1]=a):a=r[1],a}function y(e){let a,r,l,n,o,i,c,d,u=(0,s.c)(16);u[0]!==e?({label:a,type:o,value:i,onChange:r,placeholder:l,...n}=e,u[0]=e,u[1]=a,u[2]=r,u[3]=l,u[4]=n,u[5]=o,u[6]=i):(a=u[1],r=u[2],l=u[3],n=u[4],o=u[5],i=u[6]);let m=void 0===o?"text":o;
1return u[7]!==r?(c=e=>r(e.target.value),u[7]=r,u[8]=c):c=u[8],u[9]!==a||u[10]!==l||u[11]!==n||u[12]!==c||u[13]!==m||u[14]!==i?(d=(0,t.jsx)("input",{type:m,value:i,onChange:c,placeholder:l,"aria-label":a,className:"w-full rounded-lg border-4 border-black px-4 py-3 text-xl focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gbgreen",...n}),u[9]=a,u[10]=l,u[11]=n,u[12]=c,u[13]=m,u[14]=i,u[15]=d):d=u[15],d}let w=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function v(e){let a,r,l,i,c,d,u,m,h,p,b=(0,s.c)(29),{label:g,description:v,onSubmit:j,onSkip:N}=e,[S,_]=(0,o.useState)(""),[k,C]=(0,o.useState)("");b[0]!==k||b[1]!==S?(a=S.trim().length>0&&w.test(k.trim()),b[0]=k,b[1]=S,b[2]=a):a=b[2];let I=a;b[3]!==g?(r=(0,t.jsx)(n,{label:g}),b[3]=g,b[4]=r):r=b[4],b[5]!==v?(l=v&&(0,t.jsx)("p",{className:"-mt-4 text-neutral-700",children:v}),b[5]=v,b[6]=l):l=b[6],b[7]!==S?(i=(0,t.jsx)(y,{label:"Name",placeholder:"Your Name",value:S,onChange:_,"data-testid":"quiz-name-input"}),b[7]=S,b[8]=i):i=b[8],b[9]!==k?(c=(0,t.jsx)(y,{label:"Email",type:"email",placeholder:"Your Email",value:k,onChange:C,"data-testid":"quiz-email-input"}),b[9]=k,b[10]=c):c=b[10],b[11]!==i||b[12]!==c?(d=(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[i,c]}),b[11]=i,b[12]=c,b[13]=d):d=b[13];let M=!I;return b[14]!==k||b[15]!==S||b[16]!==j?(u=()=>j(S.trim(),k.trim()),b[14]=k,b[15]=S,b[16]=j,b[17]=u):u=b[17],b[18]!==M||b[19]!==u?(m=(0,t.jsx)(x,{disabled:M,onClick:u,"data-testid":"quiz-contact-continue",children:"Continue"}),b[18]=M,b[19]=u,b[20]=m):m=b[20],b[21]!==N?(h=(0,t.jsx)(f,{onClick:N}),b[21]=N,b[22]=h):h=b[22],b[23]!==h||b[24]!==r||b[25]!==l||b[26]!==d||b[27]!==m?(p=(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[r,l,d,m,h]}),b[23]=h,b[24]=r,b[25]=l,b[26]=d,b[27]=m,b[28]=p):p=b[28],p}let j={"question-set-budget":{id:"question-set-budget",label:"What's your budget?",coupleLabel:null,coupleTwoColumn:!1,multiselect:!1,progress:null,answers:[{label:"I'm looking for a budget-friendly option.",scores:{COMFORT_FOAM:10,COMFORT_HYBRID:10}},{label:"I'd like a middle-of-the-road option.",scores:{SIGNATURE_FOAM:10,SIGNATURE_HYBRID:10}},{label:"I'll spend anything for a better night's sleep!",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}}]},"question-set-sleep-temperature":{id:"question-set-sleep-temperature",label:"How often do you wake up hot at night?",coupleLabel:"How often do you and your partner wake up hot at night?",coupleTwoColumn:!0,multiselect:!1,progress:1,answers:[{label:"Rarely",scores:{}},{label:"Sometimes",scores:{}},{label:"Often",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}}]},"question-set-firmness-preference":{id:"question-set-firmness-preference",label:"What type of feel or firmness do you prefer in a mattress?",coupleLabel:"What type of feel or firmness do you and your partner prefer in a mattress?",coupleTwoColumn:!0,multiselect:!1,progress:2,answers:[{label:"Soft / Plush",scores:{SIGNATURE_FOAM:10,LUXE_HYBRID:10}},{label:"In the middle",scores:{COMFORT_FOAM:10,COMFORT_HYBRID:10,SIGNATURE_FOAM:10,SIGNATURE_HYBRID:10,LUXE_FOAM:10,LUXE_HYBRID:10}},{label:"Firm",scores:{COMFORT_FOAM:10,SIGNATURE_HYBRID:10}},{label:"Not sure",scores:{}}]},"question-set-mattress-type":{id:"question-set-mattress-type",label:"What type of mattress are you looking for?",coupleLabel:"What type of mattress are you looking for?",coupleTwoColumn:!1,multiselect:!1,progress:3,answers:[{label:"Memory Foam",scores:{COMFORT_FOAM:10,SIGNATURE_FOAM:10,LUXE_FOAM:10,COMFORT_HYBRID:-1e3,SIGNATURE_HYBRID:-1e3,LUXE_HYBRID:-1e3}},{label:"Innerspring",scores:{COMFORT_HYBRID:10,SIGNATURE_HYBRID:10,LUXE_HYBRID:10,COMFORT_FOAM:-1e3,SIGNATURE_FOAM:-1e3,LUXE_FOAM:-1e3}},{label:"Hybrid (foam + springs)",scores:{COMFORT_HYBRID:10,SIGNATURE_HYBRID:10,LUXE_HYBRID:10,COMFORT_FOAM:-1e3,SIGNATURE_FOAM:-1e3,LUXE_FOAM:-1e3}}
1,{label:"No Preference (or not sure)",scores:{}}]},"question-set-sleeper-type":{id:"question-set-sleeper-type",label:"What position do you usually sleep in?",coupleLabel:"What position do you & your partner usually sleep in?",coupleTwoColumn:!0,multiselect:!1,progress:4,answers:[{label:"On my back",scores:{COMFORT_FOAM:10,SIGNATURE_HYBRID:10,LUXE_FOAM:10}},{label:"On my side",scores:{COMFORT_HYBRID:10,SIGNATURE_HYBRID:10,LUXE_HYBRID:10}},{label:"On my stomach",scores:{COMFORT_FOAM:10,SIGNATURE_FOAM:10,LUXE_FOAM:10}},{label:"All over the place",scores:{}}]},"question-set-most-important":{id:"question-set-most-important",label:"What's most important to you?",coupleLabel:"What's most important to you?",coupleTwoColumn:!1,multiselect:!0,progress:5,answers:[{label:"Staying cool",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}},{label:"Pain and pressure relief",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}},{label:"Motion isolation",scores:{COMFORT_FOAM:10,SIGNATURE_FOAM:10,LUXE_FOAM:10}},{label:"Finding a mattress that supports a heavier weight",scores:{SIGNATURE_HYBRID:10,LUXE_HYBRID:10}},{label:"Edge support",scores:{COMFORT_HYBRID:10,SIGNATURE_HYBRID:10,LUXE_HYBRID:10}}]},"question-set-sleep-issues":{id:"question-set-sleep-issues",label:"What issues or challenges affect your sleep?",coupleLabel:"What issues or challenges affect your sleep?",coupleTwoColumn:!1,multiselect:!0,progress:6,answers:[{label:"Back pain",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}},{label:"Shoulder and/or hip pain",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}},{label:"All-over aches and pain",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}},{label:"Snoring and/ or sleep apnea",scores:{}},{label:"Overheating",scores:{LUXE_FOAM:10,LUXE_HYBRID:10}}]}},N=Object.fromEntries([{key:"COMFORT_FOAM",productHandle:"comfort-memory-foam-mattress",title:"GhostBed Comfort Foam"},{key:"COMFORT_HYBRID",productHandle:"comfort-hybrid-mattress",title:"GhostBed Comfort Hybrid"},{key:"SIGNATURE_FOAM",productHandle:"signature-memory-foam-mattress",title:"GhostBed Signature Foam"},{key:"SIGNATURE_HYBRID",productHandle:"signature-hybrid-mattress",title:"GhostBed Signature Hybrid"},{key:"LUXE_FOAM",productHandle:"luxe-memory-foam-mattress",title:"GhostBed
1Luxe Foam"},{key:"LUXE_HYBRID",productHandle:"luxe-hybrid-mattress",title:"GhostBed Luxe Hybrid"}].map(e=>[e.key,e])),S=[{kind:"intro",id:"quiz-intro"},{kind:"contact",id:"contact-info",progress:null,label:"To start, please enter your name and email below, so we know where to send your results!",skippedWhenEmailCaptured:!1},{kind:"is-couple",id:"is-couple",label:"Who are you shopping for?",options:[{label:"Me",value:!1},{label:"Me and my partner",value:!0}]},{kind:"buying-intent",id:"buying-intent",label:"Great! What best describes you?",options:[{label:"I'm ready to buy a new mattress now.",value:"ready"},{label:"I'm just researching for now.",value:"notReady"}]},{kind:"choice",id:"question-set-budget",question:j["question-set-budget"]},{kind:"choice",id:"question-set-sleep-temperature",question:j["question-set-sleep-temperature"]},{kind:"choice",id:"question-set-firmness-preference",question:j["question-set-firmness-preference"]},{kind:"choice",id:"question-set-mattress-type",question:j["question-set-mattress-type"]},{kind:"choice",id:"question-set-sleeper-type",question:j["question-set-sleeper-type"]},{kind:"choice",id:"question-set-most-important",question:j["question-set-most-important"]},{kind:"choice",id:"question-set-sleep-issues",question:j["question-set-sleep-issues"]},{kind:"contact",id:"contact-info-last",progress:6,label:"Ready for your recommendation?",description:"Enter your email below to get a copy of your results. Plus, be the first to hear about promotions and more!",skippedWhenEmailCaptured:!0}],_="quizFormData";function k(e,t){return e.find(e=>e.questionId===t)?.value??null}function C(e){return e&&Array.isArray(e)?e[0]??"â":"â"}function I(e,t){return!e||Array.isArray(e)?"â":e[t]||"â"}function M(e){let a,r,l,n,o,i,c,d=(0,s.c)(11),{onStart:u}=e;return d[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("h1",{className:"text-xl font-bold text-black lg:text-3xl",children:"Marcâs Mattress Quiz"}),d[0]=a):a=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("p",{className:"text-neutral-700",children:["Hi! Iâm Marc Werner, founder and CEO of GhostBed. In the"," ",(0,t.jsx)("span",{className:"font-bold text-gbgreen",children:"early 2000s"}),", I couldnât find a comfortable mattress to help with my chronic neck and back pain. So I designed one for myself!"]}),l=(0,t.jsx)("p",{className:"text-neutral-700",children:"Since then, Iâve created a full collection of mattresses to help you sleep better, too."}),d[1]=r,d[2]=l):(r=d[1],l=d[2]),d[3]!==u?(n=(0,t.jsxs)("div",{className:"flex max-w-none flex-col gap-2 text-center lg:gap-4 lg:text-left",children:[a,r,l,(0,t.jsxs)("p",{className:"text-neutral-700",children:["Want a recommendation? Answer"," ",(0,t.jsxs)("button",{type:"button",onClick:u,className:"cursor-pointer font-bold text-gbgreen",children:[6," quick questions"]})," ","and Iâll help you find your perfect match."]})]}),d[3]=u,d[4]=n):n=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsxs)("div",{className:"my-4 flex items-center gap-x-5 lg:my-9",children:[(0,t.jsx)("img",{src:"https://ghostbed-cdn.imgix.net/ghostbed-global/quiz/marc-werner-avatar.jpg?w=112&h=112&fit=crop&fm=webp",alt:"Marc L. Werner",width:56,height:56,loading:"lazy",className:"h-14 w-14 shrink-0 rounded-full object-cover shadow-md"}),(0,t.jsx)("img",{src:"https://ghostbed-cdn.imgix.net/ghostbed-global/product-popovers/marc-werner/marc-werner-signature.svg",alt:"Marc L. Werner signature",loading:"lazy",className:"h-14"})]}),d[5]=o):o=d[5],d[6]!==u?(i=(0,t.jsx)("button",{type:"button",onClick:u,"data-owner-parity":"quiz-cta",className:"w-auto cursor-pointer rounded-lg bg-gbgreen p-5 px-11 text-base font-bold text-white transition-transform duration-base motion-safe:md:hover:scale-105","data-testid":"quiz-start-button",children:"Start Quiz"}),d[6]=u,d[7]=i):i=d[7],d[8]!==n||d[9]!==i?(c=(0,t.jsxs)("div",{className:"flex flex-col items-center lg:items-start",children:[n,o,i]}),d[8]=n,d[9]=i,d[10]=c):c=d[10],c}let B="gbquiz10",A="Save an extra 10%",R="#c2410c";function T(){let e,a,r=(0,s.c)(2);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundColor:R},r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"p-4 text-center text-white lg:hidden",style:e,"data-testid":"quiz-discount-ribbon",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-y-1",children:[(0,t.jsx)("p",{className:"text-lg leading-none",children:"Complete the Quiz:"}),(0,t.jsx)("p",{className:"text-2xl leading-none font-bold",children:A})]})}),r[1]=a):a=r[1],a}function q(){let e,a,r=(0,s.c)(2);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundColor:R},r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"absolute top-8 r
1ight-0 z-10 hidden rounded-l-lg p-4 px-10 text-left text-white lg:block",style:e,"data-testid":"quiz-discount-media-badge",children:(0,t.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,t.jsx)("p",{className:"text-lg leading-none",children:"Complete the Quiz:"}),(0,t.jsx)("p",{className:"text-2xl leading-none font-bold",children:A})]})}),r[1]=a):a=r[1],a}function G(e){let a,l,o,i,c,d,m,h=(0,s.c)(21),{label:p,options:x,currentValue:b,onSelect:g,onBack:f}=e;h[0]!==b||h[1]!==x?(a=x.find(e=>e.value===b)?.label??null,h[0]=b,h[1]=x,h[2]=a):a=h[2];let y=a;return h[3]!==p?(l=(0,t.jsx)(n,{label:p}),h[3]=p,h[4]=l):l=h[4],h[5]!==x?(o=x.map(E),h[5]=x,h[6]=o):o=h[6],h[7]!==g||h[8]!==x?(i=e=>{let t=x.find(t=>t.label===e);t&&g(t.value)},h[7]=g,h[8]=x,h[9]=i):i=h[9],h[10]!==p||h[11]!==y||h[12]!==o||h[13]!==i?(c=(0,t.jsx)(u,{ariaLabel:p,columns:1,options:o,selected:y,onSelect:i}),h[10]=p,h[11]=y,h[12]=o,h[13]=i,h[14]=c):c=h[14],h[15]!==f?(d=(0,t.jsx)(r,{onClick:f}),h[15]=f,h[16]=d):d=h[16],h[17]!==l||h[18]!==c||h[19]!==d?(m=(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[l,c,d]}),h[17]=l,h[18]=c,h[19]=d,h[20]=m):m=h[20],m}function E(e){return e.label}function O(e){let a,r,l,n,o=(0,s.c)(10),{imageSrc:i,children:c,mediaOverlay:d}=e;return o[0]!==i?(a=(0,t.jsx)("img",{src:i,alt:"GhostBed Mattress Quiz Image",className:"absolute inset-0 h-full w-full object-cover lg:static lg:h-auto"}),o[0]=i,o[1]=a):a=o[1],o[2]!==d||o[3]!==a?(r=(0,t.jsxs)("div",{className:"relative h-84 w-full md:h-120 lg:order-2 lg:h-auto lg:w-1/2",children:[a,d]}),o[2]=d,o[3]=a,o[4]=r):r=o[4],o[5]!==c?(l=(0,t.jsx)("div",{className:"flex items-center px-9 py-4 lg:w-1/2 lg:px-14",children:(0,t.jsx)("div",{className:"w-full lg:w-auto lg:max-w-full",children:c})}),o[5]=c,o[6]=l):l=o[6],o[7]!==r||o[8]!==l?(n=(0,t.jsxs)("div",{className:"mx-auto flex w-full flex-col items-stretch bg-neutral-100 lg:flex-row xl:w-[1367px]",children:[r,l]}),o[7]=r,o[8]=l,o[9]=n):n=o[9],n}let L="https://ghostbed-cdn.imgix.net/ghostbed-global/pages/mattress-quiz",U={"quiz-intro":`${L}/quiz-intro-image-1.webp`,"contact-info":`${L}/quiz-intro-image-2.webp`,"is-couple":`${L}/quiz-intro-image-3.webp`,"buying-intent":`${L}/quiz-intro-image-4.webp`,"question-set-budget":`${L}/quiz-intro-image-5.webp`,"contact-info-last":`${L}/quiz-intro-image-2.webp`},F={"question-set-sleep-temperature":{single:`${L}/single-question-1.webp`,couple:`${L}/couples-question-1.webp`},"question-set-firmness-preference":{single:`${L}/single-question-2.webp`,couple:`${L}/couples-question-2.webp`},"question-set-mattress-type":{single:`${L}/single-question-3.webp`,couple:`${L}/couples-question-3.webp`},"question-set-sleeper-type":{single:`${L}/single-question-4.webp`,couple:`${L}/couples-question-4.webp`},"question-set-most-important":{single:`${L}/single-question-5.webp`,couple:`${L}/couples-question-5.webp`},"question-set-sleep-issues":{single:`${L}/single-question-6.webp`,couple:`${L}/couples-question-6.webp`}},H=`${L}/quiz-intro-image-1.webp`,$="None of These";function z(e){let a,r,l,n,o=(0,s.c)(20),{ariaLabel:d,options:u,selected:m,noneSelected:h,onToggle:p,onSelectNone:x,className:b}=e,g=void 0!==h&&h,f=m.length>0;if(o[0]!==b?(a=(0,i.cn)("grid grid-cols-1 gap-4 lg:grid-cols-2",b),o[0]=b,o[1]=a):a=o[1],o[2]!==g||o[3]!==p||o[4]!==u||o[5]!==m){let e;o[7]!==g||o[8]!==p||o[9]!==m?(e=e=>(0,t.jsx)(c,{role:"checkbox",label:e,selected:m.includes(e),tabIndex:0,disabled:g,onSelect:()=>p(e)},e),o[7]=g,o[8]=p,o[9]=m,o[10]=e):e=o[10],r=u.map(e),o[2]=g,o[3]=p,o[4]=u,o[5]=m,o[6]=r}else r=o[6];return o[11]!==f||o[12]!==g||o[13]!==x?(l=(0,t.jsx)(c,{role:"checkbox",label:$,selected:g,tabIndex:0,disabled:f,onSelect:x,"data-testid":"quiz-none-of-these"}),o[11]=f,o[12]=g,o[13]=x,o[14]=l):l=o[14],o[15]!==d||o[16]!==a||o[17]!==r||o[18]!==l?(n=(0,t.jsxs)("div",{role:"group","aria-label":d,className:a,children:[r,l]}),o[15]=d,o[16]=a,o[17]=r,o[18]=l,o[19]=n):n=o[19],n}function Y(e){let a,l,i,c,d,u,m,h,p,b,g,f=(0,s.c)(34),{question:y,isCouple:w,currentAnswer:v,isLastQuestion:j,onAnswer:N,onNext:S,onBack:_}=e,k=w&&y.coupleLabel||y.label;f[0]!==v?(a=Array.isArray(v)?v:[],f[0]=v,f[1]=a):a=f[1];let C=a,I=1===C.length&&C[0]===$;f[2]!==I||f[3]!==C?(l=I?[]:C,f[2]=I,f[3]=C,f[4]=l):l=f[4];let[M,B]=(0,o.useState)(l),[A,R]=(0,o.useState)(I);f[5]===Symbol.for("react.memo_cache_sentinel")?(i=function(e){R(!1),B(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},f[5]=i):i=f[5];let T=i;f[6]!==N||f[7]!==S?(c=function(){R(!0),B([]),N([$]),S()},f[6]=N,f[7]=S,f[8]=c):c=f[8];let q=c,G=M.length>0;f[9]!==k?(d=(0,t.jsx)(n,{label:k,multiselect:!0}),f[9]=k,f[10]=d):d=f[10],f[11]!==y.answers?(u=y.answers.map(D),f[11]=y.answers,f[12]=u):u=f[12],f[13]!==k||f[14]!==A||f[15]!==q||f[16]!==M||f[17]!==u?(m=(0,t.jsx)(z,{ariaLabel:k,options:u,selected:M,noneSelected:A,onToggle:T,onSelectNone:q}),f[13]=k,f[14]=A,f[15]=q,f[16]=M,f[17]=u,f[18]=m):m=f[18];let E=!G;f[19]!==N||f[20]!==S||f[21]!==M?(h=()=>{N(M),S()},f[19]=N,f[20]=S,f[21]=M,f[22]=h):h=f[22];let O=j?"Finish":"Next";return f[23]!==O||f[24]!==E||f[25]!==h?(p=(0,t.jsx)(x,{disabled:E,onClick:h,"data-testid":"quiz-multiselect-next",children:O}),f[23]=O,f[24]=E,f[25]=h,f[26]=p):p=f[26],f[27]!==_?(b=(0,t.jsx)(r,{onClick:_}),f[27]=_,f[28]=b):b=f[28],f[29]!==p||f[30]!==b||f[31]!==d||f[32]!==m?(g=(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[d,m,p,b]}),f[29]=p,f[30]=b,f[31]=d,f[32]=m,f[33]=g):g=f[33],g}function D(e){return e.label}function P(e){let a,r,l,n,o,i=(0,s.c)(12),{progress:c,labelOverride:d}=e;i[0]!==c?(a=Math.round(c/6*100),i[0]=c,i[1]=a):a=i[1];let u=a,m=d??`Question ${c} of 6`;i[2]!==m?(r=(0,t.jsx)("p",{className:"mb-2 text-sm font-medium text-neutral-600",children:m}),i[2]=m,i[3]=r):r=i[3];let h=`${u}%`;return i[4]!==h?(l=(0,t.jsx)("div",{className:"h-1 rounded-full bg-gbgreen motion-safe:transition-[width] motion-safe:duration-500",style:{width:h}}),i[4]=h,i[5]=l):l=i[5],i[6]!==c||i[7]!==l?(n=(0,t.jsx)("div",{role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":6,"aria-label":"Quiz progress",className:"h-1 w-[133px] rounded-full bg-neutral-200",children:l}
1),i[6]=c,i[7]=l,i[8]=n):n=i[8],i[9]!==r||i[10]!==n?(o=(0,t.jsxs)("div",{"data-testid":"quiz-progress-bar",children:[r,n]}),i[9]=r,i[10]=n,i[11]=o):o=i[11],o}function W(){return()=>{}}function X(){try{return window.localStorage.getItem(_)}catch{return null}}function V(){return null}var K=e.i(934336),Q=e.i(948337),J=e.i(704053);let Z=(0,o.createContext)(null),ee=S.find(e=>"buying-intent"===e.kind);function et(e){let a,r,l,n,i,c,d,u,m,h,p,x,b,g,f,y,w,v,C,I,M=(0,s.c)(46),{children:B}=e,[A,R]=(0,o.useState)(0),[T,q]=(0,o.useState)(null),G=T??!1,[E,O]=(0,o.useState)(null),[L,U]=(0,o.useState)(""),[F,H]=(0,o.useState)("");M[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],M[0]=a):a=M[0];let[$,z]=(0,o.useState)(a),[Y,D]=(0,o.useState)(!1);M[1]!==F?(r=F?S.slice(0,S.length-1):S,M[1]=F,M[2]=r):r=M[2];let P=r,et=A<P.length?P[A]:null,el=(C=(0,s.c)(2),I=(0,o.useSyncExternalStore)(W,X,V),C[0]!==I?(v=function(e){if(!e)return null;try{let t=JSON.parse(e);if(!t||"object"!=typeof t||!Array.isArray(t.entries)||!Array.isArray(t.results)||"boolean"!=typeof t.isCouple)return null;return t}catch{return null}}(I),C[0]=I,C[1]=v):v=C[1],v);M[3]!==$||M[4]!==P.length||M[5]!==A?(l=A>=P.length?[...(function(e){let t=new Map;for(let s of e){let e=j[s.questionId];for(let a of Array.isArray(s.value)?s.value:[s.value.user,s.value.partner]){if(!a)continue;let s=e.answers.find(e=>e.label===a);if(s)for(let[e,a]of Object.entries(s.scores))t.set(e,(t.get(e)??0)+a)}}return t})($).entries()].sort((e,t)=>t[1]-e[1]).slice(0,2).map(([e])=>e):null,M[3]=$,M[4]=P.length,M[5]=A,M[6]=l):l=M[6];let en=l,eo=en??el?.results??null,ei=null!==en?G:el?.isCouple??G,ec=null!==en?$:el?.entries??$,ed=(0,o.useRef)(!1);M[7]!==E||M[8]!==en||M[9]!==F||M[10]!==$||M[11]!==G||M[12]!==L?(n=()=>{var e;if(null===en||ed.current)return;ed.current=!0;let t=en[0];if(t){let e=N[t],s=(0,J.getNewLineProducts)()[e.productHandle],a=e=>k($,e)??[];(0,K.klaviyoQuizCompleted)({recommendedMattress:e.productHandle,recommendedUrl:s?.url??"",purchaseTiming:ee?.options.find(e=>e.value===E)?.label??null,budget:a("question-set-budget"),sleepTemperature:a("question-set-sleep-temperature"),firmnessPreference:a("question-set-firmness-preference"),mattressType:a("question-set-mattress-type"),sleeperType:a("question-set-sleeper-type"),mostImportant:a("question-set-most-important"),sleepIssues:a("question-set-sleep-issues"),isComplete:!0},F?{name:L,email:F}:null)}try{window.localStorage.setItem(_,(e={isCouple:G,entries:$,results:en},JSON.stringify(e)))}catch{}},i=[en,$,G,E,L,F],M[7]=E,M[8]=en,M[9]=F,M[10]=$,M[11]=G,M[12]=L,M[13]=n,M[14]=i):(n=M[13],i=M[14]),(0,o.useEffect)(n,i),M[15]!==eo||M[16]!==Y?(c=()=>{if(!Y||null!==eo)return;let e=function(e){e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},d=[Y,eo],M[15]=eo,M[16]=Y,M[17]=c,M[18]=d):(c=M[17],d=M[18]),(0,o.useEffect)(c,d),M[19]===Symbol.for("react.memo_cache_sentinel")?(u=()=>R(er),M[19]=u):u=M[19];let eu=u;M[20]===Symbol.for("react.memo_cache_sentinel")?(m=()=>R(ea),M[20]=m):m=M[20];let em=m;M[21]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{q(e),D(!0)},M[21]=h):h=M[21];let eh=h;M[22]===Symbol.for("react.memo_cache_sentinel")?(p=e=>{O(e),D(!0)},M[22]=p):p=M[22];let ep=p;M[23]===Symbol.for("react.memo_cache_sentinel")?(x=(e,t)=>{z(s=>(function(e,t,s){let a=e.findIndex(e=>e.questionId===t);if(-1===a)return[...e,{questionId:t,value:s}];let r=[...e];return r[a]={questionId:t,value:s},r})(s,e,t)),D(!0)},M[23]=x):x=M[23];let ex=x;M[24]!==$?(b=e=>k($,e),M[24]=$,M[25]=b):b=M[25];let eb=b;M[26]!==F?(g=(e,t)=>{!F&&t&&((0,K.klaviyoQuizEnteredEmail)(e,t),(0,Q.triplePixelContact)(t)),U(e),H(t),D(!0),eu()},M[26]=F,M[27]=g):g=M[27];let eg=g;M[28]===Symbol.for("react.memo_cache_sentinel")?(f=()=>eu(),M[28]=f):f=M[28];let ef=f,ey=A>0;M[29]!==E||M[30]!==et||M[31]!==F||M[32]!==P||M[33]!==eb||M[34]!==T||M[35]!==L||M[36]!==A||M[37]!==ec||M[38]!==ei||M[39]!==eo||M[40]!==eg||M[41]!==ey?(y={flowPages:P,currentPage:et,pageIndex:A,isCouple:ei,isCoupleAnswer:T,buyingIntent:E,name:L,email:F,entries:ec,results:eo,canGoBack:ey,goNext:eu,goBack:em,setIsCouple:eh,setBuyingIntent:ep,setScoredAnswer:ex,getScoredAnswer:eb,submitContact:eg,skipContact:ef,retake:es},M[29]=E,M[30]=et,M[31]=F,M[32]=P,M[33]=eb,M[34]=T,M[35]=L,M[36]=A,M[37]=ec,M[38]=ei,M[39]=eo,M[40]=eg,M[41]=ey,M[42]=y):y=M[42];let ew=y;return M[43]!==B||M[44]!==ew?(w=(0,t.jsx)(Z.Provider,{value:ew,children:B}),M[43]=B,M[44]=ew,M[45]=w):w=M[45],w}function es(){try{window.localStorage.removeItem(_)}catch{}window.location.reload()}function ea(e){return Math.max(0,e-1)}function er(e){return e+1}var el=e.i(900389);let en=["I spent most of my life in my family's business of Werner Ladders, the #1 ladder company in the world. You could say that quality and innovation is in my blood!","So 20+ years ago when I found myself struggling to find a comfortable pillow and mattress, the solution was clear: I'd just have to invent my own.","Since then, I've taken everything I've learned in the industry and created a full collection of mattresses to help you sleep better at night. I talk to customers every day to find out what's keeping them from a great night of sleep, and we design each product to alleviate those common problems.","As a family-run business, we treat our customers with care and respect. Most of all, we want to help you get the sleep you deserve. Let us know how
1we can help!"];function eo(e){let a,r,l,n=(0,s.c)(5),{open:o,onOpenChange:i}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("img",{src:"https://ghostbed-cdn.imgix.net/ghostbed-global/product-popovers/marc-werner/marc-werner-bio.jpg?w=1280",alt:"Marc Werner, founder of GhostBed",className:"h-48 w-full rounded-lg object-cover object-top sm:h-full"}),n[0]=a):a=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:"grid gap-6 sm:grid-cols-2",children:[a,(0,t.jsxs)("div",{className:"prose prose-sm max-w-none",children:[en.map(ei),(0,t.jsx)("p",{children:"Cheers,"}),(0,t.jsx)("img",{src:"https://ghostbed-cdn.imgix.net/ghostbed-global/product-popovers/marc-werner/marc-werner-signature.svg",alt:"Marc Werner",className:"w-32"})]})]}),n[1]=r):r=n[1],n[2]!==i||n[3]!==o?(l=(0,t.jsx)(el.Modal,{open:o,onOpenChange:i,title:"Hi there! I'm Marc Werner, founder of GhostBed.",className:"max-w-3xl",children:r}),n[2]=i,n[3]=o,n[4]=l):l=n[4],l}function ei(e){return(0,t.jsx)("p",{children:e},e)}function ec(e){let a,r,l,n,i,c=(0,s.c)(9),{quote:d}=e,[u,m]=(0,o.useState)(!1);return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("img",{src:"https://ghostbed-cdn.imgix.net/ghostbed-global/pages/education-center-article/marc-werner-avatar.jpg?w=200&h=200&fit=crop",alt:"Marc Werner",width:54,height:54,className:"h-[54px] w-[54px] shrink-0 rounded-full object-cover"}),c[0]=a):a=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("button",{type:"button",onClick:()=>m(!0),className:"cursor-pointer font-bold underline decoration-1 underline-offset-2 hover:text-gbgreen-300",children:"Marc Werner - GhostBed Founder & CEO"}),c[1]=r):r=c[1],c[2]!==d?(l=(0,t.jsxs)("div",{className:"mx-auto flex max-w-4xl items-start gap-4",children:[a,(0,t.jsxs)("div",{children:[r,(0,t.jsxs)("p",{className:"mt-1 text-sm text-neutral-200 italic",children:["â",d,"â"]})]})]}),c[2]=d,c[3]=l):l=c[3],c[4]!==u?(n=(0,t.jsx)(eo,{open:u,onOpenChange:m}),c[4]=u,c[5]=n):n=c[5],c[6]!==l||c[7]!==n?(i=(0,t.jsxs)("div",{className:"w-full bg-black px-6 py-5 text-white","data-testid":"quiz-quote-band",children:[l,n]}),c[6]=l,c[7]=n,c[8]=i):i=c[8],i}let ed={"contact-info":"I founded Nature's Sleep (GhostBed) more than 20 years ago and have dedicated my time to perfecting the sleep experience.","is-couple":"If you and your partner have different sleeping styles, you're not alone! We can help you find the mattress that works for both of you.","buying-intent":"A mattress is a big investment. No matter where you are in your shopping journey, we're here for you.","question-set-budget":"Here at GhostBed, we've got options at every price point. Your budget shouldn't hold you back from great sleep!","question-set-sleep-temperature":"Most people sleep a little warm. If you're waking up hot throughout the night, it might be time to upgrade to a mattress that'll keep you temperature-neutral.","question-set-firmness-preference":"Choosing a mattress firmness is a personal journey. Consider any pain you might be suffering from, your sleep position, weight, and ultimately your personal preference.","question-set-mattress-type":"Pay attention to the layers in a mattressâthey make a huge difference. The top few layers will ultimately guide the overall feel of the mattress, from plush to firm.","question-set-sleeper-type":"Your sleeping position plays a big role in your comfort. Most side sleepers like a bit more contouring around their shoulders and hips, while a firmer mattress is usually best for back sleepers.","question-set-most-important":"Did you know that 80% of people in the U.S. have struggled with an aching back? It's so important to find a comfortable mattress so you can get the best sleep possible.","question-set-sleep-issues":"Tons of factors can affect your sleep. With our 101-Night Sleep Trial, you can try your GhostBed mattress for 3+ months to make sure it's perfect.","contact-info-last":"Let us know if you need help deciding â my team of Sleep Experts are here for you along the way. I've taught them everything I know!"};var eu=e.i(522016),em=e.i(822953),eh=e.i(519455);function ep(e){let a,r,l,n,o,i,c,d,u,m,h=(0,s.c)(21),{isCouple:p,discountCode:x}=e,b=p?"/products/split-king":"/products/adjustable-base",g=p?"Personalized Comfort on Both Sides of the Bed ⢠Head and Foot Adjustability ⢠Customizable Presets including Anti-Snore and Zero Gravity":"Head and Foot Adjustability ⢠Customizable Presets including, Anti-Snore & Zero Gravity ⢠Multiple Massage Modes";h[0]!==x||h[1]!==b?(a=(0,em.shopNowUrl)(b,x),h[0]=x,h[1]=b,h[2]=a):a=h[2];let f=a,y=`url(${p?"https://cdn.shopify.com/s/files/1/0338/7546/0236/files/split-king-base-callout.webp?v=1752687788":"https://cdn.shopify.com/s/files/1/0338/7546/0236/files/adjustable-base-callout.webp?v=1752687787"})`;h[3]!==y?(r={backgroundImage:y},h[3]=y,h[4]=r):r=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"absolute top-0 left-0 z-0 h-full w-full bg-black/20 backdrop-blur-lg md:hidden"}),h[5]=l):l=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("p",{className:"font-semibold",children:"Iâd also recommend adding"}),h[6]=n):n=h[6];let w=`${p?"The Split King":"The GhostBed"} Adjustable Base`;return h[7]!==w?(o=(0,t.jsx)("h2",{className:"max-w-xs text-xl leading-snug font-extrabold text-white md:max-w-none md:text-4xl lg:text-6xl",children:w}),h[7]=w,h[8]=o):o=h[8],h[9]!==g?(i=(0,t.jsx)("h3",{className:"mt-6 text-lg text-white",children:g}),h[9]=g,h[10]=i):i=h[10],h[11]===Symbol.for("react.memo_cache_sentinel")?(c=(0,eh.primaryCtaClasses)("lg","mt-6"),h[11]=c):c=h[11],h[12]!==f?(d=(0,t.jsx)(eu.default,{href:f,className:c,children:"Shop Now"}),h[12]=f,h[13]=d):d=h[13],h[14]!==d||h[15]!==o||h[16]!==i?(u=(0,t.jsx)("div",{className:"relative z-10 container mx-auto flex justify-center px-4 md:justify-start",children:(0,t.jsxs)("div",{className:"max-w-sm py-10 text-center text-white md:py-20 md:text-left lg:max-w-2xl lg:px-14",children:[n,o,i,d]})}),h[14]=d,h[15]=o,h[16]=i,h[17]=u):u=h[17],h[18]!==u||h[19]!==r?(m=(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-xl bg-cover bg-no-repeat md:bg-center",style:r,"data-testid":"quiz-base-banner",children:[l,u]}),h[18]=u,h[19]=r,h[20]=m):m=h[20],m}function ex(){let e,a,r,l,n=(0,s.c)(4);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={backgroundColor:R},n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)("div",{className:"font-bold",children:["Congrats! ",A]}),n[1]=a):a=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[a,(0,t.jsxs)("div",{className:"italic",children:["- Code: ",(0,t.jsx)("span",{className:"font-extrabold uppercase",children:B})]})]}),n[2]=r):r=n[2],n[3]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("div",{className:"mx-auto w-full max-w-4xl rounded-xl px-4 py-2 text-center text-white shadow-lg",style:e,"data-testid":"quiz-results-discount-banner",children:(0,t.jsxs)("div",{className:"flex flex-col",children:[r,(0,t.jsxs)("div",{className:"text-sm font-light",children:["or use the ",(0,t.jsx)("span",{className:"font-medium",children:"Shop Now"})," links below to auto apply!"]})]})}),n[3]=l):l=n[3],l}var eb=e.i(661145);let eg={backgroundColor:"#F97316",text:"Recommended"},ef={backgroundColor:"#5A8CC4",text:"Great Alternative"},ey={code:B};function ew(e){let a,r,l,n,o,i,c,d,u,m,h,p,x,b,g,f,y,w,v,j=(0,s.c)(44),{results:S,entries:_,isCouple:M,onRetake:A}=e;if(j[0]!==_||j[1]!==M||j[2]!==S){let e,s,h,p=(e=k(_,"question-set-sleeper-type"),s=k(_,"question-set-sleep-temperature"),h=k(_,"question-set-firmness-
1preference"),M?["You","Your Partner"].map(t=>{let a="You"===t?"user":"partner";return{prefix:t,sleeperType:I(e,a),hotSleeper:I(s,a),firmnessPreference:I(h,a)}}):[{prefix:null,sleeperType:C(e),hotSleeper:C(s),firmnessPreference:C(h)}]);[m,a]=S,c="mx-auto flex w-full max-w-[90rem] flex-col gap-8 overflow-hidden px-6 py-12",d="quiz-results",j[13]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(ex,{}),j[13]=u):u=j[13],o="text-center",j[14]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)("h1",{className:"text-3xl font-bold md:text-4xl",children:["Your ",(0,t.jsx)("span",{className:"text-gbgreen-600",children:"Results"})," are in!"]}),j[14]=i):i=j[14],n="mx-auto mt-3 text-sm text-neutral-700 lg:text-lg",r="flex flex-col gap-4 md:gap-2",l=p.map(ev),j[0]=_,j[1]=M,j[2]=S,j[3]=a,j[4]=r,j[5]=l,j[6]=n,j[7]=o,j[8]=i,j[9]=c,j[10]=d,j[11]=u,j[12]=m}else a=j[3],r=j[4],l=j[5],n=j[6],o=j[7],i=j[8],c=j[9],d=j[10],u=j[11],m=j[12];return j[15]!==r||j[16]!==l?(h=(0,t.jsx)("div",{className:r,children:l}),j[15]=r,j[16]=l,j[17]=h):h=j[17],j[18]!==n||j[19]!==h?(p=(0,t.jsx)("div",{className:n,children:h}),j[18]=n,j[19]=h,j[20]=p):p=j[20],j[21]!==p||j[22]!==o||j[23]!==i?(x=(0,t.jsxs)("div",{className:o,children:[i,p]}),j[21]=p,j[22]=o,j[23]=i,j[24]=x):x=j[24],j[25]!==m?(b=m&&(0,t.jsx)(eb.RichProductCard,{handle:N[m].productHandle,badge:eg,discount:ey,showClass:!1}),j[25]=m,j[26]=b):b=j[26],j[27]!==a?(g=a&&(0,t.jsx)(eb.RichProductCard,{handle:N[a].productHandle,badge:ef,discount:ey,showClass:!1}),j[27]=a,j[28]=g):g=j[28],j[29]!==b||j[30]!==g?(f=(0,t.jsxs)("div",{className:"mx-auto grid w-full max-w-4xl gap-8 md:grid-cols-2",children:[b,g]}),j[29]=b,j[30]=g,j[31]=f):f=j[31],j[32]!==M?(y=(0,t.jsx)(ep,{isCouple:M,discountCode:B}),j[32]=M,j[33]=y):y=j[33],j[34]!==A?(w=(0,t.jsx)("button",{type:"button",onClick:A,className:"ml-4 self-start text-sm font-medium text-neutral-700 hover:text-black","data-testid":"quiz-retake-button",children:"â Retake Quiz"}),j[34]=A,j[35]=w):w=j[35],j[36]!==x||j[37]!==f||j[38]!==y||j[39]!==w||j[40]!==c||j[41]!==d||j[42]!==u?(v=(0,t.jsxs)("div",{className:c,"data-testid":d,children:[u,x,f,y,w]}),j[36]=x,j[37]=f,j[38]=y,j[39]=w,j[40]=c,j[41]=d,j[42]=u,j[43]=v):v=j[43],v}function ev(e){return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1 md:flex-row md:justify-center md:gap-4",children:[(0,t.jsxs)("p",{children:[e.prefix&&(0,t.jsxs)("span",{className:"font-bold",children:[e.prefix,": "]}),"Sleeper Type: ",(0,t.jsx)("span",{className:"font-semibold",children:e.sleeperType})]}),(0,t.jsxs)("p",{children:[e.prefix?"Hot Sleeper":"Hot sleeper",":"," ",(0,t.jsx)("span",{className:"font-semibold",children:e.hotSleeper})]}),(0,t.jsxs)("p",{children:["Firmness Preference:"," ",(0,t.jsx)("span",{className:"font-semibold",children:e.firmnessPreference})]})]},e.prefix??"single")}function ej(){let e,a,r,l,n,i,c,d,u,h=(0,s.c)(84),{flowPages:p,currentPage:x,pageIndex:g,isCouple:f,isCoupleAnswer:y,buyingIntent:w,entries:j,results:N,goNext:S,goBack:_,setIsCouple:k,setBuyingIntent:C,setScoredAnswer:I,getScoredAnswer:B,submitContact:A,skipContact:R,retake:E}=function(){let e=(0,o.useContext)(Z);if(!e)throw Error("useQuiz must be used within QuizProvider");return e}();if(null!==N){let e;return h[0]!==j||h[1]!==f||h[2]!==N||h[3]!==E?(e=(0,t.jsx)(ew,{results:N,entries:j,isCouple:f,onRetake:E}),h[0]=j,h[1]=f,h[2]=N,h[3]=E,h[4]=e):e=h[4],e}if(!x)return null;let L=null;switch(x.kind){case"intro":{let s;h[5]!==x.id||h[6]!==S?(s=(0,t.jsx)(M,{onStart:S},x.id),h[5]=x.id,h[6]=S,h[7]=s):s=h[7],e=s;break}case"contact":{let s;L=x.progress,"contact-info-last"===x.id&&(a="Email Your Results"),h[8]!==x.description||h[9]!==x.id||h[10]!==x.label||h[11]!==R||h[12]!==A?(s=(0,t.jsx)(v,{label:x.label,description:x.description,onSubmit:A,onSkip:R},x.id),h[8]=x.description,h[9]=x.id,h[10]=x.label,h[11]=R,h[12]=A,h[13]=s):s=h[13],e=s;break}case"is-couple":{let s,a;h[14]!==S||h[15]!==k?(s=e=>{k(e),S()},h[14]=S,h[15]=k,h[16]=s):s=h[16],h[17]!==x.id||h[18]!==x.label||h[19]!==x.options||h[20]!==_||h[21]!==y||h[22]!==s?(a=(0,t.jsx)(G,{label:x.label,options:x.options,currentValue:y,onSelect:s,onBack:_},x.id),h[17]=x.id,h[18]=x.label,h[19]=x.options,h[20]=_,h[21]=y,h[22]=s,h[23]=a):a=h[23],e=a;break}case"buying-intent":{let s,a;h[24]!==S||h[25]!==C?(s=e=>{C(e),S()},h[24]=S,h[25]=C,h[26]=s):s=h[26],h[27]!==w||h[28]!==x.id||h[29]!==x.label||h[30]!==x.options||h[31]!==_||h[32]!==s?(a=(0,t.jsx)(m,{label:x.label,options:x.options,currentValue:w,onSelect:s,onBack:_},x.id),h[27]=w,h[28]=x.id,h[29]=x.label,h[30]=x.options,h[31]=_,h[32]=s,h[33]=a):a=h[33],e=a;break}case"choice":if(L=x.question.progress,x.question.multiselect){let s,a,r,l=x.id,n=x.question;h[34]!==x.question.id||h[35]!==B?(s=B(x.question.id),h[34]=x.question.id,h[35]=B,h[36]=s):s=h[36];let o=g===p.length-1;h[37]!==x.question.id||h[38]!==I?(a=e=>I(x.question.id,e),h[37]=x.question.id,h[38]=I,h[39]=a):a=h[39],h[40]!==x.id||h[41]!==x.question||h[42]!==_||h[43]!==S||h[44]!==f||h[45]!==s||h[46]!==o||h[47]!==a?(r=(0,t.jsx)(Y,{question:n,isCouple:f,currentAnswer:s,isLastQuestion:o,onAnswer:a,onNext:S,onBack:_},l),h[40]=x.id,h[41]=x.question,h[42]=_,h[43]=S,h[44]=f,h[45]=s,h[46]=o,h[47]=a,h[48]=r):r=h[48],e=r}else{let s,a,r,l=x.id,n=x.question;h[49]!==x.question.id||h[50]!==B?(s=B(x.question.id),h[49]=x.question.id,h[50]=B,h[51]=s):s=h[51],h[52]!==x.question.id||h[53]!==I?(a=e=>I(x.question.id,e),h[52]=x.question.id,h[53]=I,h[54]=a):a=h[54],h[55]!==x.id||h[56]!==x.question||h[57]!==_||h[58]!==S||h[59]!==f||h[60]!==s||h[61]!==a?(r=(0,t.jsx)(b,{question:n,isCouple:f,currentAnswer:s,onAnswer:a,onNext:S,onBack:_},l),h[55]=x.id,h[56]=x.question,h[57]=_,h[58]=S,h[59]=f,h[60]=s,h[61]=a,h[62]=r):r=h[62],e=r}}let $=ed[x.id];if(h[63]!==x.id||h[64]!==f){var z;let e;
1z=x.id,r=(e=F[z])?f?e.couple:e.single:U[z]??H,h[63]=x.id,h[64]=f,h[65]=r}else r=h[65];let D=r,W="intro"===x.kind;return h[66]!==W?(l=W&&(0,t.jsx)(T,{}),h[66]=W,h[67]=l):l=h[67],h[68]!==$?(n=$&&(0,t.jsx)(ec,{quote:$}),h[68]=$,h[69]=n):n=h[69],h[70]!==W?(i=W?(0,t.jsx)(q,{}):void 0,h[70]=W,h[71]=i):i=h[71],h[72]!==L||h[73]!==a?(c=null!==L&&(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(P,{progress:L,labelOverride:a})}),h[72]=L,h[73]=a,h[74]=c):c=h[74],h[75]!==e||h[76]!==D||h[77]!==i||h[78]!==c?(d=(0,t.jsxs)(O,{imageSrc:D,mediaOverlay:i,children:[c,e]}),h[75]=e,h[76]=D,h[77]=i,h[78]=c,h[79]=d):d=h[79],h[80]!==l||h[81]!==n||h[82]!==d?(u=(0,t.jsxs)("div",{children:[l,n,d]}),h[80]=l,h[81]=n,h[82]=d,h[83]=u):u=h[83],u}e.s(["Quiz",0,function(){let e,a=(0,s.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(et,{children:(0,t.jsx)(ej,{})}),a[0]=e):e=a[0],e}],689818)},202771,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645);function r(e){let a,r,o,i,c,d,u,m,h,p=(0,s.c)(22),{articles:x}=e;if(0===x.length){let e;return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("p",{className:"py-10 text-center text-neutral-600",children:"No press articles yet â check back soon."}),p[0]=e):e=p[0],e}if(p[1]!==x){let e=x.slice(0,3),s=x.slice(3);d="py-10",o="mx-auto max-w-6xl px-4 sm:px-6",p[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("h2",{className:"mb-10 text-center text-2xl font-bold text-gbgreen-700 md:text-3xl",children:"GhostBed In the News"}),p[8]=i):i=p[8];let u=e.map(n);p[9]!==u?(c=(0,t.jsx)("div",{className:"mb-10 grid grid-cols-1 gap-10 md:grid-cols-3",children:u}),p[9]=u,p[10]=c):c=p[10],a="flex flex-col",r=s.map(l),p[1]=x,p[2]=a,p[3]=r,p[4]=o,p[5]=i,p[6]=c,p[7]=d}else a=p[2],r=p[3],o=p[4],i=p[5],c=p[6],d=p[7];return p[11]!==a||p[12]!==r?(u=(0,t.jsx)("div",{className:a,children:r}),p[11]=a,p[12]=r,p[13]=u):u=p[13],p[14]!==o||p[15]!==i||p[16]!==c||p[17]!==u?(m=(0,t.jsxs)("div",{className:o,children:[i,c,u]}),p[14]=o,p[15]=i,p[16]=c,p[17]=u,p[18]=m):m=p[18],p[19]!==d||p[20]!==m?(h=(0,t.jsx)("div",{className:d,children:m}),p[19]=d,p[20]=m,p[21]=h):h=p[21],h}function l(e){return(0,t.jsxs)("div",{className:"flex flex-col border-b-2 border-neutral-200 py-8 text-center lg:flex-row lg:text-left",children:[(0,t.jsx)("p",{className:"mb-1 w-full text-xs text-neutral-600 uppercase italic lg:mb-0 lg:w-1/6",children:e.postDate}),(0,t.jsxs)("div",{className:"mb-4 flex w-full flex-col lg:mb-0 lg:w-2/3",children:[(0,t.jsx)("p",{className:"mb-4 text-sm text-neutral-600 uppercase",children:e.articleSource}),(0,t.jsx)("a",{className:"font-bold text-neutral-900 hover:text-gbgreen-700",href:e.articleUrl,target:"_blank",rel:"noopener noreferrer",children:e.title})]}),(0,t.jsx)("div",{className:"flex w-full items-center justify-center lg:w-1/6",children:(0,t.jsx)("a",{className:"rounded-full bg-neutral-200 px-6 py-3 text-sm font-semibold text-neutral-700 uppercase transition duration-base hover:bg-neutral-700 hover:text-neutral-100",href:e.articleUrl,target:"_blank",rel:"noopener noreferrer",children:"View Article"})})]},e.slug)}function n(e){return(0,t.jsxs)("a",{href:e.articleUrl,target:"_blank",rel:"noopener noreferrer",className:"block w-full overflow-hidden rounded-xl border border-neutral-200 shadow-raised transition-transform duration-base hover:scale-[1.025]",children:[e.articleImage[0]?.url&&(0,t.jsx)("img",{loading:"lazy",src:`${e.articleImage[0].url}?fm=webp&w=1200&h=900&fit=crop`,alt:e.title,className:"w-full"}),(0,t.jsxs)("div",{className:"p-4 text-center",children:[(0,t.jsx)("p",{className:"mt-4 text-xs text-neutral-600 uppercase",children:e.articleSource}),(0,t.jsx)("p",{className:"my-2 font-bold",children:e.title}),(0,t.jsx)("p",{className:"mb-1 text-xs text-neutral-600 italic",children:e.postDate})]})]},e.slug)}var o=e.i(522016);let i="https://ghostbed-cdn.imgix.net/ghostbed-global/pages/press",c=[{imgSrc:`${i}/award-hotsleepers.png`,title:"Best Mattress for Hot Sleepers",productTitle:"GhostBed
1Luxe",source:"Mattress Advisor"},{imgSrc:`${i}/award-couples.png`,title:"Best Memory Foam Mattress for Couples",productTitle:"GhostBed Flex",source:"Sleepopolis"},{imgSrc:`${i}/award-backpain.png`,title:"Best Mattress for Back Pain",productTitle:"GhostBed Classic",source:"Best Mattress Picks"},{imgSrc:`${i}/award-topper.png`,title:"Best Cooling Topper",productTitle:"GhostBed Topper",source:"The Sleep Shop"}],d={yearsInIndustry:"35+",mattressesSold:"1M",mattressModels:"8+",bestMattressAwards:"20+",reviews:"60K+",factories:"17"},u={yearsInIndustry:"Years in the Industry",mattressesSold:"Mattresses Sold",mattressModels:"Mattress Models",bestMattressAwards:"Best Mattress Awards",reviews:"Reviews",factories:"Factories in US & CA"};function m(){let e,a,r,l,n,i,u=(0,s.c)(6);return u[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("div",{className:"pb-4 lg:pb-10",children:[(0,t.jsx)("h2",{className:"pb-3 text-center text-2xl text-gbgreen-700 md:text-3xl",children:"Award-Winning Cooling, Comfort & Affordable Luxury"}),(0,t.jsx)("h3",{className:"text-center text-xl font-normal md:text-2xl",children:"With 100+ awards over the years, weâre proud to design & manufacture the most-loved mattresses and bedding out there."})]}),u[0]=e):e=u[0],u[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)("div",{className:"w-full bg-white pb-10",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[e,(0,t.jsx)("div",{className:"grid grid-cols-2 gap-8 text-center lg:grid-cols-4",children:c.map(p)})]})}),u[1]=a):a=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("h2",{className:"mb-8 text-center text-2xl font-bold text-gbgreen-400 md:mb-16 md:text-3xl",children:"GhostBed by the Numbers"}),u[2]=r):r=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(l=Object.keys(d),u[3]=l):l=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("div",{className:"w-full bg-neutral-800 px-4 pt-10 sm:px-8 md:px-16 lg:px-32 xl:px-64",children:[r,(0,t.jsx)("div",{className:"flex flex-wrap justify-around text-center",children:l.map(h)})]}),u[4]=n):n=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center py-10",children:[a,n,(0,t.jsxs)("div",{className:"px-8 py-10 text-center md:px-16 lg:px-48 xl:px-64",children:[(0,t.jsx)("h2",{className:"text-3xl text-gbgreen-700",children:"Dedicated to Innovation"}),(0,t.jsx)("p",{className:"mt-4 text-xl",children:"Behind each mattress we make, youâll find years of designing and fine-tuning. Years of talking to customers, to figure out how real people sleep. And years of working with manufacturers so we get every little detail right."}),(0,t.jsx)("p",{className:"my-8 text-xl",children:"Patented cooling technology? Check. Luxurious finishing touches? You got it. And much, much more."}),(0,t.jsx)(o.default,{className:"mt-4 inline-block rounded-full bg-neutral-200 px-8 py-4 font-semibold text-neutral-700 uppercase transition duration-base hover:bg-neutral-700 hover:text-neutral-100",href:"/pages/our-story",children:"Learn More About GhostBed"})]})]}),u[5]=i):i=u[5],i}function h(e){return(0,t.jsx)("div",{className:"mb-16 flex w-1/2 flex-col items-center justify-center text-white lg:w-1/3",children:(0,t.jsxs)("div",{className:"w-5/6",children:[(0,t.jsx)("p",{className:"mb-2 text-5xl font-bold sm:text-6xl md:text-8xl",children:d[e]}),(0,t.jsx)("p",{className:"mb-12 text-base whitespace-nowrap md:text-xl",children:u[e]}),(0,t.jsx)("div",{className:"h-px w-full bg-gbgreen"})]})},e)}function p(e){return(0,t.jsxs)("div",{className:"mx-auto flex w-full flex-col items-center justify-center md:max-w-[8rem]",children:[(0,t.jsx)("img",{loading:"lazy",className:"mb-4 block w-full",src:`${e.imgSrc}?fm=webp&w=175`,alt:e.title}),(0,t.jsx)("p",{className:"max-w-[7rem] text-xs font-bold",children:e.title}),(0,t.jsx)("p",{className:"my-1 text-sm",children:e.productTitle}),(0,t.jsx)("p",{className:"text-xs text-neutral-600",children:e.source})]},e.title)}var x=e.i(469861);let b=[{slug:"articles",title:"Featured News"},{slug:"awards-reviews",title:"Awards & Reviews"}];function g(e){return e.slug}e.s(["PressTabs",0,function(e){let l,n,o,i,c,d,u,h,p=(0,s.c)(20),{articles:f}=e,[y,w]=(0,a.useState)("articles");if(p[0]!==y){let e=b.map(g);l="tablist",n="Press content",o="flex flex-wrap items-center justify-center divide-x-2 bg-neutral-100 py-4 text-sm text-neutral-600 lg:text-base",i=b.map(s=>{let a=s.slug===y;return(0,t.jsx)("button",{id:`press-tab-${s.slug}`,type:"button",role:"tab","aria-selected":a,"aria-controls":`press-panel-${s.slug}`,tabIndex:(0,x.rovingTabIndex)(s.slug,e,y),onClick:()=>w(s.slug),onKeyDown:t=>(0,x.handleRovingRadioKeyDown)(t,e,s.slug,e=>w(e)),className:`mx-5 inline-block ${a?"border-b-2 border-gbgreen font-semibold text-black":""}`,children:s.title},s.slug)}),p[0]=y,p[1]=l,p[2]=n,p[3]=o,p[4]=i}else l=p[1],n=p[2],o=p[3],i=p[4];p[5]!==l||p[6]!==n||p[7]!==o||p[8]!==i?(c=(0,t.jsx)("nav",{role:l,"aria-label":n,className:o,children:i}),p[5]=l,p[6]=n,p[7]=o,p[8]=i,p[9]=c):c=p[9];let v=`press-panel-${y}`,j=`press-tab-${y}`;return p[10]!==y||p[11]!==f?(d="articles"===y?(0,t.jsx)(r,{articles:f}):(0,t.jsx)(m,{}),p[10]=y,p[11]=f,p[12]=d):d=p[12],p[13]!==v||p[14]!==j||p[15]!==d?(u=(0,t.jsx)("div",{id:v,role:"tabpanel","aria-labelledby":j,className:"bg-white",children:d}),p[13]=v,p[14]=j,p[15]=d,p[16]=u):u=p[16],p[17]!==c||p[18]!==u?(h=(0,t.jsxs)("div",{children:[c,u]}),p[17]=c,p[18]=u,p[19]=h):h=p[19],h}],202771)},266620,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(147446),l=e.i(519455),n=e.i(900389),o=e.i(593557);let i="https://ghostbed-cdn.imgix.net/ghostbed-global/pages/product-recall/20240409-ghostbed-natural-mattress",c=`${i}/ghostbed-natural-tag-recall.jpg`,d=[`${i}/ghostbed-natural-product-image-1.jpg`,`${i}/ghostbed-natural-product-image-2.jpg`,`${i}/ghostbed-natural-product-image-3.jpg`];function u(e,s){return(0,t.jsx)("img",{src:e,alt:`GhostBed Natural mattress photo ${s+1}`},e)}function m(e){let a,r,n=(0,s.c)(3),{onClick:o}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.primaryCtaClasses)("lg","mt-6"),n[0]=a):a=n[0],n[1]!==o?(r=(0,t.jsx)("button",{type:"button",onClick:o,className:a,children:"Register Here"}),n[1]=o,n[2]=r):r=n[2],r}e.s(["ProductRecallPage",0,function(){let e,l,i,h,p,x,b,g,f,y,w,v,j,N,S,_,k=(0,s.c)(17),[C,I]=(0,a.useState)(!1);return k[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("h1",{className:"text-3xl font-bold sm:text-4xl",children:"Safety and Recall Information for the GhostBed Natural Mattress"}),k[0]=e):e=k[0],k[1]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(m,{onClick:()=>I(!0)}),p=(0,t.jsx)("h2",{className:"mt-10 text-2xl font-bold",children:"Recall Summary"}),x=(0,t.jsx)("h3",{className:"mt-4 font-bold",children:"Name of Product:"}),b=(0,t.jsx)("p",{children:"GhostBed Natural Mattress"}),g=(0,t.jsx)("h3",{className:"mt-4 font-bold",children:"How is GhostBed making this right?"}),f=(0,t.jsx)("p",{children:"Customers may register with GhostBed to receive a complimentary, custom-made mattress cover to place on top of the existing cover, which will ensure the mattress meets flammability standards. There are no charges for shipping and/or handling of the cover."}),y=(0,t.jsx)("h2",{className:"mt-10 text-2xl font-bold",children:"Recall Details"}),w=(0,t.jsx)("h3",{className:"mt-4 font-bold",children:"Description:"}),v=(0,t.jsx)("p",{children:'This recall involves GhostBed Natural mattresses, model number beginning with 13GBNAT or "Natural". The mattresses measure approximately 12 inches thick and have an ivory quilted top panel and an ivory knit quilted side panel with horizontal lines. They were sold in Twin, Twin XL, Full, Queen, King, Split King and California King sizes. The GhostBed Natural logo is embroidered in black and green on the mattress cover. The model number and date of manufacture in MM/YYYY can be found on the white label sewn into the seam of the mattress. The recalled mattresses were manufactured from June 2021 through March 2023.'}),i=(0,t.jsx)("img",{src:c,alt:"GhostBed Natural recall tag",className:"mt-6"}),h=(0,t.jsx)("h2",{className:"mt-10 text-2xl font-bold",children:"Photos of the GhostBed Natural Mattress:"}),k[1]=l,k[2]=i,k[3]=h,k[4]=p,k[5]=x,k[6]=b,k[7]=g,k[8]=f,k[9]=y,k[
110]=w,k[11]=v):(l=k[1],i=k[2],h=k[3],p=k[4],x=k[5],b=k[6],g=k[7],f=k[8],y=k[9],w=k[10],v=k[11]),k[12]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)("div",{className:"mt-4 grid grid-cols-1 gap-4 sm:grid-cols-3",children:d.map(u)}),k[12]=j):j=k[12],k[13]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(m,{onClick:()=>I(!0)})}),k[13]=N):N=k[13],k[14]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)(r.CognitoEmbed,{formId:o.COGNITO_FORM_IDS.productRecall,variant:"iframe",height:1080}),k[14]=S):S=k[14],k[15]!==C?(_=(0,t.jsxs)("div",{className:"mx-auto max-w-3xl px-4 py-10 sm:px-6 md:py-20",children:[e,l,p,x,b,g,f,y,w,v,i,h,j,N,(0,t.jsx)(n.Modal,{open:C,onOpenChange:I,title:"Register Here",className:"max-w-4xl",description:"Register your GhostBed Natural mattress for a complimentary replacement cover.",children:S})]}),k[15]=C,k[16]=_):_=k[16],_}],266620)},462129,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(522016),l=e.i(589405),n=e.i(469861);function o(e,s){return(0,t.jsx)(r.default,{href:`/products/${e.handle}#section-okendo-reviews`,className:"group m-1 block h-[10rem] min-h-[10rem] w-[10rem] min-w-[10rem] border-4 border-transparent p-1 transition-colors duration-base hover:border-gbgreen md:h-[13.5rem] md:min-h-[13.5rem] md:w-[13.5rem] md:min-w-[13.5rem]",children:(0,t.jsxs)("div",{className:"relative h-full w-full",children:[e.imageUrl&&(0,t.jsx)("img",{src:e.imageUrl,alt:e.title,title:e.title,loading:"lazy",className:"h-full w-full overflow-hidden object-cover"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex w-full flex-col items-center justify-end gap-y-1 bg-black/40 text-center text-white group-hover:text-gbgreen-200",children:[(0,t.jsx)("p",{className:"px-1 leading-tight font-extrabold md:text-2xl",children:e.title}),(0,t.jsx)(l.OkendoStarRating,{productId:e.id,size:"small",clickable:!1}),(0,t.jsx)("p",{className:"mb-4 text-xs uppercase underline md:mb-6 md:text-sm lg:text-base",children:"Read Reviews"})]})]})},`${e.handle}-${s}`)}function i(e){return e.category}e.s(["ReviewsExplorer",0,function(e){let r,l,c,d=(0,s.c)(6),{tabs:u}=e,m=u.map(i),[h,p]=(0,a.useState)(m[0]??""),x=u.find(e=>e.category===h)??u[0];if(!x)return null;d[0]===Symbol.for("react.memo_cache_sentinel")?(r=/\s+/g,d[0]=r):r=d[0];let b=`reviews-explorer-tab-${x.category.toLowerCase().replace(r,"-")}`;return d[1]!==x.products?(l=x.products.map(o),d[1]=x.products,d[2]=l):l=d[2],d[3]!==b||d[4]!==l?(c=(0,t.jsx)("div",{id:"reviews-explorer-panel",role:"tabpanel","aria-labelledby":b,className:"flex flex-wrap items-center justify-center",children:l}),d[3]=b,d[4]=l,d[5]=c):c=d[5],(0,t.jsxs)("div",{className:"flex flex-col gap-y-8 bg-white pt-10","data-testid":"reviews-explorer",children:[(0,t.jsx)("div",{role:"tablist","aria-label":"Product reviews by category",className:"mx-auto flex flex-wrap items-center justify-center gap-y-2 text-sm text-neutral-500 md:gap-x-4 md:text-base",children:u.map(e=>{let s=e.category===x.category;return(0,t.jsx)("button",{id:`reviews-explorer-tab-${e.category.toLowerCase().replace(/\s+/g,"-")}`,type:"button",role:"tab","aria-selected":s,"aria-controls":"reviews-explorer-panel",tabIndex:(0,n.rovingTabIndex)(e.category,m,x.category),onClick:()=>p(e.category),onKeyDown:t=>(0,n.handleRovingRadioKeyDown)(t,m,e.category,p),className:`cursor-pointer border-b-2 px-2 pb-2 text-center transition-colors duration-base hover:border-gbgreen hover:text-black ${s?"border-gbgreen text-black":"border-transparent"}`,children:e.category},e.category)})}),c]})}])},482962,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(501098),l=e.i(522016),n=e.i(469861),o=e.i(519455),i=e.i(114413);function c(e,s){return(0,t.jsx)(r.StarIcon,{className:"size-5",fill:"currentColor"},s)}function d(e){return e.id}e.s(["ReviewsTestimonialTabs",0,function(){let e,r,u,m,h,p,x,b,g,f,y,w,v,j,N,S,_,k=(0,s.c)(40),[C,I]=(0,a.useState)(i.REVIEWS_TESTIMONIALS[0].id);if(k[0]!==C){let s=i.REVIEWS_TESTIMONIALS.map(d);e=i.REVIEWS_TESTIMONIALS.find(e=>e.id===C),p="mx-auto max-w-4xl",k[9]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsxs)("h2",{className:"text-center text-3xl font-bold",children:["20+ Years of ",(0,t.jsx)("span",{className:"text-gbgreen",children:"Happy Customers"})]}),b=(0,t.jsx)("p",{className:"mt-2 text-center text-xl font-normal md:text-2xl",children:"Over the years, we've helped thousands of people sleep betterâand we're proud of the features and perks we're known for. Take a look!"}),k[9]=x,k[10]=b):(x=k[9],b=k[10]),r="tablist",u="Customer testimonials by category",m="mt-8 flex flex-wrap justify-center gap-2",h=i.REVIEWS_TESTIMONIALS.map(e=>{let a=e.id===C;return(0,t.jsx)("button",{id:`reviews-testimonial-tab-${e.id}`,type:"button",role:"tab","aria-selected":a,"aria-controls":`reviews-testimonial-panel-${e.id}`,tabIndex:(0,n.rovingTabIndex)(e.id,s,C),onClick:()=>I(e.id),onKeyDown:t=>(0,n.handleRovingRadioKeyDown)(t,s,e.id,I),className:`rounded-full border-2 px-5 py-2 text-sm font-bold transition duration-base ${a?"border-gbgreen-700 bg-gbgreen-700 text-white":"border-neutral-200 text-neutral-600 hover:border-gbgreen-700"}`,children:e.tabLabel},e.id)}),k[0]=C,k[1]=e,k[2]=r,k[3]=u,k[4]=m,k[5]=h,k[6]=p,k[7]=x,k[8]=b}else e=k[1],r=k[2],u=k[3],m=k[4],h=k[5],p=k[6],x=k[7],b=k[8];k[11]!==r||k[12]!==u||k[13]!==m||k[14]!==h?(g=(0,t.jsx)("div",{role:r,"aria-label":u,className:m,children:h}),k[11]=r,k[12]=u,k[13]=m,k[14]=h,k[15]=g):g=k[15];let M=e.id,B=`reviews-testimonial-panel-${e.id}`,A=`reviews-testimonial-tab-${e.id}`;k[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)("div",{className:"flex justify-center gap-1 text-gbgreen-600","aria-hidden":"true",children:Array.from({length:5}).map(c)}),k[16]=f):f=k[16],k[17]!==e.heading?(y=(0,t.jsx)("h3",{className:"mt-4 text-xl font-bold",children:e.heading}),k[17]=e.heading,k[18]=y):y=k[18],k[19]!==e.quote?(w=(0,t.jsxs)("p",{className:"mt-4 text-neutral-700",children:["â",e.quote,"â"]}),k[19]=e.quote,k[20]=w):w=k[20],k[21]!==e.name?(v=(0,t.jsxs)("p",{className:"mt-4 font-semibold",children:["â ",e.name]}),k[21]=e.name,k[22]=v):v=k[22];let R=e.shopUrl;return k[23]===Symbol.for("react.memo_cache_sentinel")?(j=(0,o.secondaryCtaClasses)("default","mt-6"),k[23]=j):j=k[23],k[24]!==e.shopUrl?(N=(0,t.jsx)(l.default,{href:R,className:j,children:"Shop Now"}),k[24]=e.shopUrl,k[25]=N):N=k[25],k[26]!==e.id||k[27]!==A||k[28]!==y||k[29]!==w||k[30]!==v||k[31]!==N||k[32]!==B?(S=(0,t.jsxs)("div",{id:B,role:"tabpanel","aria-labelledby":A,className:"mt-8 rounded-xl bg-neutral-100 p-8 text-center",children:[f,y,w,v,N]},M),k[26]=e.id,k[27]=A,k[28]=y,k[29]=w,k[30]=v,k[31]=N,k[32]=B,k[33]=S):S=k[33],k[34]!==S||k[35]!==p||k[36]!==x||k[37]!==b||k[38]!==g?(_=(0,t.jsxs)("div",{className:p,children:[x,b,g,S]}),k[34]=S,k[35]=p,k[36]=x,k[37]=b,k[38]=g,k[39]=_):_=k[39],_}])},137046,e=>{"use strict";var t=e.i(843476),s=e.i(500932);
1let a=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function r(e){e.preventDefault(),navigator.clipboard.writeText(e.currentTarget.href).catch(l)}function l(e){console.error("Could Not Copy to Clipboard:",e)}e.s(["CopyVideoLink",0,function(e){let l,n,o=(0,s.c)(4),{handle:i,title:c}=e,d=`?video=${i}`,u=`Copy link to video: ${c}`;return o[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(a,{className:"h-4 w-4 text-gray-400 transition duration-base md:hover:scale-105 md:hover:text-gbgreen","aria-hidden":"true"}),o[0]=l):l=o[0],o[1]!==d||o[2]!==u?(n=(0,t.jsx)("a",{href:d,title:"Copy Video Link","aria-label":u,onClick:r,children:l}),o[1]=d,o[2]=u,o[3]=n):n=o[3],n}],137046)},550419,e=>{"use strict";var t=e.i(843476),s=e.i(500932),a=e.i(271645),r=e.i(147446),l=e.i(994373);function n(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",{fillRule:"nonzero",children:[(0,t.jsx)("path",{d:"m97.218 310.194c0-8.007-5.556-12.782-15.359-12.782-4.003 0-6.714.395-8.132.773v25.69c1.679.378 3.743.504 6.588.504 10.449 0 16.903-5.279 16.903-14.185z"}),(0,t.jsx)("path",{d:"m157.903 297.681c-4.39 0-7.227.379-8.905.772v56.896c1.679.394 4.39.394 6.841.394 17.809.126 29.424-9.677 29.424-30.449.126-18.063-10.458-27.613-27.36-27.613z"}),(0,t.jsx)("path",{d:"m270.652 0h-193.647c-28.29 0-51.315 23.041-51.315 51.315v189.754h-5.012c-11.418 0-20.678 9.251-20.678 20.679v125.404c0 11.427 9.259 20.677 20.678 20.677h5.012v22.995c0 28.305 23.025 51.315 51.315 51.315h264.223c28.272 0 51.3-23.011 51.3-51.315v-309.375l-121.876-121.449zm-216.405 284.379c6.06-1.024 14.578-1.796 26.579-1.796 12.128 0 20.772 2.315 26.58 6.965 5.548 4.382 9.292 11.615 9.292 20.127 0 8.51-2.837 15.745-7.999 20.646-6.714 6.32-16.643 9.157-28.258 9.157-2.585 0-4.902-.128-6.714-.379v31.096h-19.48zm286.981 166.334h-264.223c-10.954 0-19.874-8.92-19.874-19.889v-22.995h246.31c11.42 0 20.679-9.25 20.679-20.677v-125.404c0-11.428-9.259-20.679-20.679-20.679h-246.31v-189.754c0-10.938 8.921-19.858 19.874-19.858l181.89-.19v67.233c0 19.638 15.934 35.587 35.587 35.587l65.862-.189.741 296.925c0 10.97-8.904 19.89-19.857 19.89zm-211.969-80.912v-85.422c7.225-1.15 16.642-1.796 26.58-1.796 16.516 0 27.226 2.963 35.618 9.282 9.031 6.714 14.704 17.416 14.704 32.781 0 16.643-6.06 28.133-14.453 35.224-9.157 7.612-23.096 11.222-40.125 11.222-10.198 0-17.423-.646-22.324-1.291zm140.827-50.575v15.996h-31.23v34.973h-19.74v-86.966h53.16v16.122h-33.42v19.875z"})]}),l[0]=a):a=l[0],l[1]!==n?(r=(0,t.jsx)("svg",{className:n,clipRule:"evenodd",fillRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",viewBox:"0 0 393 483",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:a}),l[1]=n,l[2]=r):r=l[2],r}var o=e.i(900389),i=e.i(593557);let c="https://ghostbed-cdn.imgix.net/ghostbed-global/warranties",d=[{storeHandles:["ghostbed","ghostbedca"],title:"GhostBeds",warranties:[{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Classic",url:`${c}/ghostbed-warranty-ghostbed-classic-rv-foam.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Comfort",url:`${c}/ghostbed-warranty-ghostbed-classic-rv-foam.pdf`},{storeHandles:["ghostbedca"],title:"GhostBed Fusion",url:`${c}/Generic-GhostBed-25-Year-Limited-Warranty.pdf`}
1,{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Luxe",url:`${c}/ghostbed-warranty-ghostbed-flex-luxe-matrix-natural-rv-hybrid.pdf`},{storeHandles:["ghostbedca"],title:"GhostBed Majestic",url:`${c}/Generic-GhostBed-25-Year-Limited-Warranty.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Massage",url:`${c}/ghostbed-warranty-ghostbed-massage.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed 3D Matrix®",url:`${c}/ghostbed-warranty-ghostbed-flex-luxe-matrix-natural-rv-hybrid.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Natural",url:`${c}/ghostbed-warranty-ghostbed-flex-luxe-matrix-natural-rv-hybrid.pdf`},{storeHandles:["ghostbed"],title:"GhostBed Oasis",url:`${c}/ghostbed-d2c-10-year-limited-warranty-0824.pdf`},{storeHandles:["ghostbedca"],title:"GhostBed Radiance",url:`${c}/Generic-GhostBed-25-Year-Limited-Warranty.pdf`},{storeHandles:["ghostbed"],title:"GhostBed RV Foam",url:`${c}/Generic-GhostBed-20-Year-Limited-Warranty.pdf`},{storeHandles:["ghostbed"],title:"GhostBed RV Hybrid",url:`${c}/Generic-GhostBed-25-Year-Limited-Warranty.pdf`},{storeHandles:["ghostbedca"],title:"GhostBed RV",url:`${c}/ghostbed-warranty-ghostbed-classic-rv-foam.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Signature",url:`${c}/ghostbed-warranty-ghostbed-flex-luxe-matrix-natural-rv-hybrid.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"Venus Williams Legend",url:`${c}/ghostbed-warranty-ghostbed-venus-legend.pdf`}]},{storeHandles:["ghostbed","ghostbedca"],title:"Pillows",warranties:[{storeHandles:["ghostbed","ghostbedca"],title:"GhostPillow - Gel Memory Foam",url:`${c}/ghostpillow-memory-foam-5-year-warranty.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostPillow - Faux Down",url:`${c}/ghostpillow-generic-5-year-warranty.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostPillow - Shredded",url:`${c}/ghostpillow-generic-5-year-warranty.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"Massaging Neck Pillow",url:`${c}/ghostbed-massaging-neck-pillow-1-year-limited-warranty.pdf`}]},{storeHandles:["ghostbed","ghostbedca"],title:"Other",warranties:[{storeHandles:["ghostbed"],title:"GhostBed Adjustable Base",url:`${c}/ghostbed-warranty-adjustable-base.pdf`},{storeHandles:["ghostbedca"],title:"GhostBed Adjustable Base",url:`${c}/ghostbedca-warranty-adjustable-base.pdf`},{storeHandles:["ghostbed"],title:"GhostBed Smart Adjustable Base",url:"https://ghostbed-cdn.imgix.net/ghostbed-global/files/manuals/ghostbed-smart-adjustable-base-manual.pdf"},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed All-in-One Foundationâ¢",url:`${c}/ghostbed-warranty-aio-foundation.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Massage Topper",url:`${c}/ghostbed-massage-topper-warranty.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Memory Foam Topper",url:`${c}/ghostbed-warranty-memory-foam-topper.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Silk Pillowcase",url:`${c}/ghostbed-warranty-silk-pillowcase.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostBed Weighted Blanket",url:`${c}/ghostbed-warranty-weighted-blanket.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostProtector",url:`${c}/ghostbed-warranty-ghostprotector.pdf`},{storeHandles:["ghostbed","ghostbedca"],title:"GhostSheets",url:`${c}/ghostbed-warranty-ghostsheets.pdf`}]}];var u=e.i(742711);function m(e){return(0,t.jsxs)("div",{className:"overflow-hidden rounded-xl bg-white shadow-lg",children:[(0,t.jsx)("div",{className:"border-b-4 border-gbgreen-300 bg-gbgreen-200 py-3 pt-6 pb-5 text-center leading-none font-bold text-gbgreen-700 uppercase",children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-x-2",children:[(0,t.jsx)("h2",{className:"text-base leading-none font-bold",children:e.title}),(0,t.jsx)("div",{title:"Click Below to Download GhostBed Warranty PDFs",children:(0,t.jsx)(n,{className:"mb-px inline-block h-5 fill-current"})})]})}),(0,t.jsx)("div",{className:"px-5 pt-8 pb-12",children:(0,t.jsx)("ul",{className:"flex flex-col items-center gap-y-2",children:e.warranties.map(h)})})]},e.title)}function h(e){return(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:`${e.url}?fm=pdf`,target:"_blank",rel:"noopener noreferrer","data-owner-parity":"warranty-pdf-link",className:"inline-block text-center font-semibold text-gbgreen transition duration-base hover:text-gbgreen-600 motion-safe:hover:scale-105",children:e.title})},e.title)}e.s(["WarrantyPage",0,function(){let e,n,c,h,p,x,b,g,f,y,w,v,j,N=(0,s.c)(30),S=(0,l.useMarket)(),[_,k]=(0,a.useState)(!1);if(N[0]!==S){var C;let s=(C=(0,u.shopHandleForMarket)(S),d.filter(e=>e.storeHandles.includes(C)).map(e=>({...e,warranties:e.warranties.filter(e=>e.storeHandles.includes(C))})).filter(e=>e.warranties.length>0));h="bg-gray-100 p-10 md:p-20",N[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsx)("h1",{className:"text-center text-3xl font-bold",children:"GhostBed Warranties"}),x=(0,t.jsx)("p",{className:"mx-auto mt-2 max-w-md text-center leading-relaxed",children:"GhostBed mattresses come with a 10- to 25-year limited warranty, depending on the model. Please register here."}),N[9]=p,N[10]=x):(p=N[9],x=N[10]),N[11]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("div",{className:"mt-4 flex justify-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>k(!0),"data-owner-parity":"warranty-register-cta",className:"inline-block cursor-pointer rounded-lg bg-gbgreen px-6 py-3 font-semibold text-white transition duration-base hover:bg-gbgreen-600 motion-safe:hover:scale-105",children:"Register Your Warranty"})}),g=(0,t.jsx)("hr",{className:"mx-auto mt-10 mb-14 max-w-4xl border-neutral-200"}),N[11]=b,N[12]=g):(b=N[11],g=N[12]),c="mx-auto w-full max-w-[1536px] px-[35px]",e="grid gap-10 md:grid-cols-2 xl:grid-cols-3",n=s.map(m),N[0]=S,N[1]=e,N[2]=n,N[3]=c,N[4]=h,N[5]=p,N[6]=x,N[7]=b,N[8]=g}
1else e=N[1],n=N[2],c=N[3],h=N[4],p=N[5],x=N[6],b=N[7],g=N[8];return N[13]!==e||N[14]!==n?(f=(0,t.jsx)("div",{className:e,children:n}),N[13]=e,N[14]=n,N[15]=f):f=N[15],N[16]!==c||N[17]!==f?(y=(0,t.jsx)("div",{className:c,children:f}),N[16]=c,N[17]=f,N[18]=y):y=N[18],N[19]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)(r.CognitoEmbed,{formId:i.COGNITO_FORM_IDS.warrantyRegistration,variant:"iframe",height:1306}),N[19]=w):w=N[19],N[20]!==_?(v=(0,t.jsx)(o.Modal,{open:_,onOpenChange:k,title:"Register Your Warranty",className:"max-w-5xl",children:w}),N[20]=_,N[21]=v):v=N[21],N[22]!==v||N[23]!==h||N[24]!==p||N[25]!==x||N[26]!==b||N[27]!==g||N[28]!==y?(j=(0,t.jsxs)("div",{className:h,children:[p,x,b,g,y,v]}),N[22]=v,N[23]=h,N[24]=p,N[25]=x,N[26]=b,N[27]=g,N[28]=y,N[29]=j):j=N[29],j}],550419)}]);
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.