PageSourceSearch

https://www.eightsleep.com/_next/static/chunks/16331-90db9a078825025a.js

js eightsleep.com collected 2026-09-24 17:35:06 UTC 22,504 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16331],{11840:(e,t,n)=>{"use strict";n.d(t,{SelectionProvider:()=>y,useOptionalSelectionItem:()=>w,useSelection:()=>h,useSelectionItem:()=>k});var o=n(95155),a=n(12115),i=n(86820),l=n(85612),r=n(21215),s=n(46027),d=n(77660),u=n(34918),c=n(40712),m=n(60773);function f(e,t,n){try{(0,r.Lr)(e,t,n)}catch(e){console.error("resolveConstraints failed; clearing selection",e),t.items=[]}}function g(e,t,n,o){let a=e.products[n.catalogId],i=a.variants[n.variantId];return{catalogId:n.catalogId,variantId:n.variantId,sku:i.sku,kind:a.kind,quantity:n.quantity,pageKey:t,size:"size"in i?i.size:void 0,trigger:o}}function p(e){try{e()}catch(e){console.error("selection analytics failed",e)}}let v=(0,a.createContext)(null);function y(e){let{pageKey:t,initialItems:n,ownedProducts:r,children:y}=e,I=(0,c.useCatalog)(),[h,k]=(0,i.e)(l.KE),[w,b]=(0,a.useState)("stripe"),[_,Y]=(0,a.useState)(!1),C=(0,u.DB)(),j=(0,u.C3)(),M=(0,a.useMemo)(()=>({isLoggedIn:C,ownedProducts:r}),[C,r]),O=null!==h.catalogInvalidationKey;(0,a.useEffect)(()=>{if(O||(0,l.Y4)(I)||!j)return;let e=(0,m.U6)(t),o=e.catalogInvalidationKey===I.invalidationKey?e:{...l.KE,catalogInvalidationKey:I.invalidationKey};0===o.items.length&&n&&n.length>0&&(o.items=n.map(e=>({...e}))),f(I,o,M),o.catalogInvalidationKey=I.invalidationKey,k(()=>o)},[I,O,j]),(0,a.useEffect)(()=>{if(_||(0,l.Y4)(I))return;let e=(0,d.ql)((0,d.dq)());e&&I.paymentMethods.includes(e)&&b(e),Y(!0)},[I,_]),(0,a.useEffect)(()=>{O&&k(e=>{e.catalogInvalidationKey!==I.invalidationKey&&(e.items=n?n.map(e=>({...e})):[]),f(I,e,M),e.catalogInvalidationKey=I.invalidationKey})},[I]),(0,a.useEffect)(()=>{O&&k(e=>{f(I,e,M)})},[M]),(0,a.useEffect)(()=>{O&&(0,m.i8)(t,h)},[O,t,h]);let z=(0,a.useCallback)((e,n)=>{let o=h.items.find(t=>t.catalogId===e.catalogId);o||p(()=>(0,s.zV6)(e.catalogId,e.catalogId,g(I,t,e,n))),o&&o.variantId===e.variantId||p(()=>(0,s.Bf8)(e.variantId,g(I,t,e,n))),k(t=>{let n=t.items.find(t=>t.catalogId===e.catalogId);n?(n.variantId=e.variantId,n.quantity=e.quantity,n.metadata=e.metadata):t.items.push({...e}),f(I,t,M),t.catalogInvalidationKey=I.invalidationKey})},[I,k,M,t,h.items]),K=(0,a.useCallback)(e=>{k(t=>{t.items=t.items.filter(t=>t.catalogId!==e),f(I,t,M),t.catalogInvalidationKey=I.invalidationKey})},[I,k,M]),S=(0,a.useCallback)((e,t)=>{k(n=>{let o=n.items.find(t=>t.catalogId===e);o&&(t<=0?n.items=n.items.filter(t=>t.catalogId!==e):o.quantity=t,f(I,n,M),n.catalogInvalidationKey=I.invalidationKey)})},[I,k,M]),x=(0,a.useCallback)((e,n,o)=>{let a=h.items.find(t=>t.catalogId===e);a&&a.variantId!==n&&p(()=>(0,s.Bf8)(n,g(I,t,{...a,variantId:n},o))),k(t=>{let o=t.items.find(t=>t.catalogId===e);o&&(o.variantId=n),f(I,t,M),t.catalogInvalidationKey=I.invalidationKey})},[I,k,M,t,h.items]),E=(0,a.useCallback)(()=>{k(e=>{e.items=[],e.confirmedOwnership=!1,e.catalogInvalidationKey=I.invalidationKey})},[I,k]),q=(0,a.useCallback)(e=>{k(t=>{t.confirmedOwnership=e,t.catalogInvalidationKey=I.invalidationKey})},[I,k]),P=(0,a.useMemo)(()=>({items:h.items,addItem:z,removeItem:K,setQuantity:S,replaceVariant:x,clear:E,hydrated:O,selectedPaymentMethod:w,setSelectedPaymentMethod:b,confirmedOwnership:h.confirmedOwnership,setConfirmedOwnership:q}),[h.items,h.confirmedOwnership,z,K,S,x,E,O,w,q]);return(0,o.jsx)(v.Provider,{value:P,children:y})}function I(){let e=(0,a.useContext)(v);if(!e)throw Error("selection hooks must be used inside a <SelectionProvider>");return e}function h(){return I()}function k(e){let{items:t}=I();return(0,a.useMemo)(()=>t.find(t=>t.catalogId===e),[t,e])}function w(e){let t=(0,a.useContext)(v),n=null==t?void 0:t.items;return(0,a.useMemo)(()=>null==n?void 0:n.find(t=>t.catalogId===e),[n,e])}},11847:(e,t,n)=>{"use strict";n.d(t,{a:()=>p,s:()=>v});var o=n(95155),a=n(12115),i=n(47650),l=n(49811),r=n(36876),s=n.n(r),d=n(59820),u=n(46033),c=n(22299),m=n.n(c),f=n(29342);let g={escapeDeactivates:!1,fallbackFocus:"[data-modal-dialog]"},p=(0,a.forwardRef)((e,t)=>{let{isOpen:n,onClose:r,variant:d="default",breakpoints:u,children:c,ariaLabelledBy:p,ariaDescribedBy:v,className:y,style:I,container:h,dism
1issible:k=!0}=e,[w,b]=(0,a.useState)(!1),[_,Y]=(0,a.useState)(!1),C=(0,a.useRef)(null);(0,l.K)(n);let j="fullScreen"===d||"video"===d;(0,a.useEffect)(()=>(n?(b(!0),j&&window.sessionStorage.setItem("block-modals","true")):(Y(!1),j&&window.sessionStorage.removeItem("block-modals")),()=>{j&&window.sessionStorage.removeItem("block-modals")}),[n,j]),(0,a.useEffect)(()=>{if(w&&n){var e;requestAnimationFrame(()=>Y(!0)),null==(e=C.current)||e.focus()}},[w,n]);let M=(0,a.useCallback)(e=>{n||"opacity"!==e.propertyName||b(!1)},[n]),O=(0,a.useCallback)(e=>{"Escape"===e.key&&k&&r()},[r,k]),z=k?r:void 0;if(!w)return null;let K=null!=h?h:document.body;return i.createPortal((0,o.jsx)(f.FocusTrap,{active:n,focusTrapOptions:g,children:(0,o.jsxs)("div",{ref:t,className:m()(s().modal_container,null!=y?y:""),style:I,...(()=>{let e={};return e["data-variant"]=d,u&&(e["data-variant-default"]=d,Object.entries(u).forEach(t=>{let[n,o]=t;e["data-variant-".concat(n)]=o})),e})(),"data-modal-container":!0,children:[(0,o.jsx)("div",{className:m()(s().modal_underlay,_?s().modal_underlay__visible:""),onClick:z,onTransitionEnd:M,role:"presentation","data-modal-underlay":!0}),(0,o.jsx)("div",{className:m()(s().modal_overlay,_?s().modal_overlay__visible:""),onClick:z,role:"presentation","data-modal-overlay":!0,children:(0,o.jsx)("div",{ref:C,role:"dialog","aria-modal":"true","aria-labelledby":p,"aria-describedby":v,className:m()(s().modal_dialog,_?s().modal_dialog__visible:""),onClick:e=>e.stopPropagation(),onKeyDown:O,tabIndex:-1,"data-modal-dialog":!0,children:c})})]})}),K)});p.displayName="Modal";let v=e=>{let{id:t,onClose:n,className:a,style:i,ariaLabel:l}=e;return(0,o.jsx)("div",{className:m()(s().modal_close_button_container,null!=a?a:""),children:(0,o.jsx)(u.$.Empty,{id:t,className:s().modal_close_button,style:i,ariaLabel:null!=l?l:"Close modal",onClick:n,children:(0,o.jsx)(d.A,{})})})}},21215:(e,t,n)=>{"use strict";function o(e,t){return("string"==typeof t?[t]:t).find(t=>f(e,t))}function a(e,t){let n=e.ownedProducts;return!!n&&(Array.isArray(t)?t.some(e=>n.includes(e)):n.includes(t))}function i(e,t,n,i){var l;let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=u(e,n);if(!s)return!1;for(let n of null!=(l=s.constraints)?l:[])switch(n.kind){case"match-size":{let a=o(t,n.catalogId);if(void 0===a)break;let l=c(e,t,a);if(!l)break;let r=y(l);if(void 0===r)break;if(y(i)!==r)return!1;break}case"limit-quantity":{let o=c(e,t,n.catalogId);if(!o)break;let a=I(o);if(void 0===a)break;let l=I(i);if(void 0===l||l>a)return!1;break}case"require-product":if(a(r,n.catalogId))break;if(void 0===o(t,n.catalogId))return!1;break;case"require-zone":{if(a(r,n.catalogId))break;let o=c(e,t,n.catalogId);if(!o||h(o)!==n.zone)return!1;break}case"exclude-zone":{let o=c(e,t,n.catalogId);if(!o)break;if(h(o)===n.zone)return!1;break}case"limit-quantity-by-zone":{let o=c(e,t,n.catalogId);if(!o||h(o)!==n.zone)break;let a=I(i);if(void 0!==a&&a>n.max)return!1}}return!0}function l(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=u(e,n);if(!a)return new Set;let l=new Set;for(let[r,s]of Object.entries(a.variants))i(e,t,n,s,o)&&l.add(r);return l}function r(e,t,n,o){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=u(e,n);if(!i)return new Set;let l=o.filter(e=>e!==n&&f(t,e)),r=new Set;for(let o of Object.keys(i.variants)){let i={...t,items:t.items.map(e=>({...e}))};p(i,n,o)||f(i,n)||i.items.push({catalogId:n,variantId:o,quantity:1});try{s(e,i,a)}catch(e){continue}f(i,n)&&l.every(e=>f(i,e))&&r.add(o)}return r}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.items=t.items.filter(t=>{let n=u(e,t.catalogId);return void 0!==n&&t.variantId in n.variants});for(let i=0;i<20;i++)if(!function(e,t,n){let i=!1;for(let r of t.items.map(e=>e.catalogId)){var l;let s=u(e,r);if(!s){g(t,r)&&(i=!0);continue}for(let m of null!=(l=s.constraints)?l:[])if(function(e,t,n,i,l,r){switch(l.kind){case"require-product":if(a(r,l.catalogId)||void 0!==o(t,l.catalogId))return!1;return g(t,n),!0;case"require-zone":{if(a(r,l.catalogId))return!1;let o=c(e,t,l.catalogId);if(o&&h(o)===l.zone)return!1;return g(t,n)}case"exclude-zone":{let o=c(e,t,l.catalogId);if(!o||h(o)!==l.zone)return!1;return g(t,n)}case"include-product":{if(l.unlessLoggedIn&&r.isLoggedIn)return g(t,l.catalogId);if(f(t,l.catalogId))return!1;let n=u(e,l.catalogId);if(!n)return!1;let o=v(n);if(!o)return!1;return t.items.push({catalogId:l.catalogId,variantId:o,quantity:1}),!0}case"match-size":{let a=o(t,l.catalogId);if(void 0===a)return!1;let r=c(e,t,a);if(!r)return!1;let s=y(r);if(void 0===s)return!1;let d=Object.entries(i.variants).find(e=>{let[,t]=e;return y(t)===s});if(!d)return g(t,n),!0;return p(t,n,d[0])}case"limit-quantity-by-zone":{let o=c(e,t,l.catalogId);if(!o||h(o)!==l.zone)return!1;let a=c(e,t,n);if(!a)return!1;let r=I(a);if(void 0===r||r<=l.max)return!1;return d(t,n,i,a,l.max)}case"limit-quantity":{let o=c(e,t,l.catalogId);if(!o)return!1;let a=I(o);if(void 0===a)return!1;let r=c(e,t,n);if(!r)return!1;let s=I(r);if(void 0===s||s<=a)return!1;return d(t,n,i,r,a)}}}
1(e,t,r,s,m,n)&&(i=!0),!f(t,r))break}return i}(e,t,n))return;throw Error("constraint resolution did not converge after ".concat(20," iterations"))}function d(e,t,n,o,a){let i=y(o),l=[];for(let[e,t]of Object.entries(n.variants)){let n=I(t);void 0===n||n>a||y(t)!==i||l.push({id:e,qty:n})}return 0===l.length?(g(e,t),!0):p(e,t,l.reduce((e,t)=>t.qty>e.qty?t:e).id)}function u(e,t){return e.products[t]}function c(e,t,n){let o=m(t,n);if(!o)return;let a=u(e,n);if(a)return a.variants[o.variantId]}function m(e,t){return e.items.find(e=>e.catalogId===t)}function f(e,t){return e.items.some(e=>e.catalogId===t)}function g(e,t){let n=e.items.findIndex(e=>e.catalogId===t);return -1!==n&&(e.items.splice(n,1),!0)}function p(e,t,n){let o=m(e,t);return!!o&&o.variantId!==n&&(o.variantId=n,!0)}function v(e){var t;let n=Object.entries(e.variants),o=n.find(e=>{let[,t]=e;return t.default});return null==(t=null!=o?o:n.at(0))?void 0:t[0]}function y(e){return"size"in e?e.size:void 0}function I(e){return"qty"in e?e.qty:void 0}function h(e){return"zone"in e?e.zone:void 0}n.d(t,{Bj:()=>l,GV:()=>r,Lr:()=>s,NN:()=>v,We:()=>i})},34918:(e,t,n)=>{"use strict";n.d(t,{AD:()=>d,C3:()=>l,DB:()=>i,bW:()=>r});var o=n(6850),a=n(30265);let i=()=>(0,a.As)().isLoggedIn,l=()=>(0,a.As)().membershipSettled,r=()=>(0,a.As)().memberShopEligible,s=(e,t)=>{var n,o,a,i;let l=null==(n=/\d+/.exec(null!=(a=e.model)?a:""))?void 0:n[0],r=null==(o=/\d+/.exec(null!=(i=t.model)?i:""))?void 0:o[0];return l&&!r?-1:!l&&r?1:l&&r?parseInt(r,10)-parseInt(l,10):0},d=()=>{let{devices:e}=(0,a.As)();return null===e?[]:e.households.flatMap(e=>e.sets.flatMap(e=>e.devices.map(e=>{var t;return{...e,size:(e=>{var t;if(void 0===e)return"";if("caking"===e.toLowerCase())return"Cali King";let n=o.PodCoverProducts.Pod5Core.variants;if(!(e.toLowerCase()in n))return"";let a=n[e];return null!=(t=null==a?void 0:a.name)?t:""})(null==(t=e.sensorInfo)?void 0:t.skuName)}}))).sort(s)}},35829:(e,t,n)=>{"use strict";n.d(t,{$o:()=>o.useCatalogRegion,AQ:()=>o.useCatalogProduct,Cd:()=>a.useSelection,JI:()=>a.useOptionalSelectionItem,PY:()=>o.useServerPromoAmounts,WM:()=>a.SelectionProvider,bl:()=>a.useSelectionItem,d9:()=>o.useCatalog,ok:()=>o.useCatalogCoupons});var o=n(40712),a=n(11840)},36876:e=>{e.exports={modal_container:"Modal_modal_container__TcGEY",modal_dialog:"Modal_modal_dialog__SXZQF",modal_underlay:"Modal_modal_underlay__Fnmml",modal_underlay__visible:"Modal_modal_underlay__visible__ICfGA",modal_overlay:"Modal_modal_overlay__afI7Y",modal_overlay__visible:"Modal_modal_overlay__visible__inOUO",modal_dialog__visible:"Modal_modal_dialog__visible__uZVFK",modal_close_button_container:"Modal_modal_close_button_container__CIdKs",modal_close_button:"Modal_modal_close_button__5wV37"}},40712:(e,t,n)=>{"use strict";n.d(t,{CatalogProvider:()=>v,useCatalog:()=>I,useCatalogCoupons:()=>_,useCatalogIsFetching:()=>b,useCatalogProduct:()=>h,useCatalogRegion:()=>k,useServerPromoAmounts:()=>w});var o=n(95155),a=n(12115),i=n(14059),l=n(34918),r=n(35757);let s="catalog_completed_ecap";function d(){return null!==window.sessionStorage.getItem(s)}let u="catalog_active_partner_code";function c(){return window.sessionStorage.getItem(u)}var m=n(64830),f=n(53455),g=n(85612);let p=(0,a.createContext)(null);function v(e){let{catalog:t,region:n,serverPromoAmounts:v=null,children:y}=e,{coupons:I,setCompletedEcap:h}=function(){let[e,t]=(0,a.useState)(d);(0,a.useEffect)(()=>{e?window.sessionStorage.setItem(s,"true"):window.sessionStorage.removeItem(s)},[e]);let n=(0,i.g)(e=>e.promo.discountCode),o=(0,a.useMemo)(()=>{var e,t;return(null==(e=n)?void 0:e.toUpperCase())===r.nq||(null==(t=window.sessionStorage.getItem(r.Pl))?void 0:t.toUpperCase())===r.nq},[n]),u=(0,l.DB)();return{coupons:(0,a.useMemo)(()=>!u&&(e||o)?[r.nq]:[],[u,e,o]),setCompletedEcap:t}}(),{coupons:k,setActivePartner:w}=function(){let[e,t]=(0,a.useState)(c);return(0,a.useEffect)(()=>{var t;(t=e)?window.sessionStorage.setItem(u,t):window.sessionStorage.removeItem(u)},[e]),{coupons:(0,a.useMemo)(()=>e?[e]:[],[e]),activePartner:e,setActivePartner:(0,a.useCallback)(e=>{var n;let o=null!=(n=null==e?void 0:e.trim())?n:"";t(o.length>0?o:null)},[])}}(),{coupons:b}=function(){let e=(0,l.bW)();return{coupons:(0,a.useMemo)(()=>e?[r.US]:[],[e])}}(),{coupons:_}={coupons:(0,a.useMemo)(()=>(0,m.lN)(n),[n])},Y=(0,a.useMemo)(()=>[...new Set([...I,...k,...b])],[I,k,b]),C=(0,a.useMemo)(()=>[...new Set([..._,...Y])],[_,Y]),j=(0,a.useCallback)(()=>{h(!1),w(null)},[h,w]),{catalog:M,isFetching:O}=function(e,t,n){var o;let a=[...n].sort(),i=(0,f.useQuery)({queryKey:["catalog-freshness",t||"us",a],placeholderData:t=>null!=t?t:e,staleTime:9e5,queryFn:async()=>{let e=a.length>0?"?coupons=".concat(a.map(encodeURIComponent).join(",")):"",n=await fetch("/api/catalog/".concat(t||"us").concat(e));if(!n.ok)throw Error("catalog freshness refetch failed: ".concat(n.status));let o=g.Vd.safeParse(await n.json());if(!o.success)throw Error("catalog freshness refetch returned an invali
1d shape");return o.data}});return{catalog:null!=(o=i.data)?o:e,isFetching:i.isFetching}}(t,n,Y),z=(0,a.useMemo)(()=>({catalog:M,region:n,serverPromoAmounts:v,isFetching:O,catalogCoupons:Y,cartCoupons:C,setActivePartner:w,setCompletedEcap:h,clearTracks:j}),[M,n,v,O,Y,C,w,h,j]);return(0,o.jsx)(p.Provider,{value:z,children:y})}function y(){let e=(0,a.useContext)(p);if(!e)throw Error("catalog hooks must be used inside a <CatalogProvider>");return e}function I(){return y().catalog}function h(e){return I().products[e]}function k(){return y().region}function w(){return y().serverPromoAmounts}function b(){return y().isFetching}function _(){return y()}},49811:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var o=n(12115);let a=e=>{(0,o.useEffect)(()=>{if(e){let e=window.scrollY,t={overflow:document.body.style.overflow,position:document.body.style.position,top:document.body.style.top,width:document.body.style.width,height:document.body.style.height,scrollBehavior:document.documentElement.style.scrollBehavior,htmlHeight:document.documentElement.style.height,htmlOverflow:document.documentElement.style.overflow};return document.body.style.height="auto",document.documentElement.style.height="auto",document.documentElement.style.overflow="hidden",e>0&&(document.documentElement.style.scrollBehavior="auto",window.scrollTo(0,e)),()=>{document.body.style.overflow=t.overflow,document.body.style.position=t.position,document.body.style.top=t.top,document.body.style.width=t.width,document.body.style.height=t.height,document.documentElement.style.scrollBehavior=t.scrollBehavior,document.documentElement.style.height=t.htmlHeight,document.documentElement.style.overflow=t.htmlOverflow,e>0&&window.scrollTo(0,e)}}},[e])}},59820:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var o=n(95155);n(12115);let a=(0,n(26843).e)(function(e){return(0,o.jsx)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7257 19.7097C19.36 20.0754 18.767 20.0754 18.4013 19.7097L12.008 13.3164L5.5987 19.7257C5.23297 20.0914 4.64002 20.0914 4.27429 19.7257C3.90857 19.36 3.90857 18.767 4.27429 18.4013L10.6836 11.992L4.29032 5.5987C3.92459 5.23298 3.92459 4.64002 4.29032 4.27429C4.65604 3.90857 5.249 3.90857 5.61473 4.27429L12.008 10.6676L18.3853 4.29033C18.751 3.9246 19.344 3.9246 19.7097 4.29033C20.0754 4.65605 20.0754 5.24901 19.7097 5.61473L13.3324 11.992L19.7257 18.3853C20.0914 18.751 20.0914 19.3439 19.7257 19.7097Z",fill:"currentColor"})})})},60773:(e,t,n)=>{"use strict";n.d(t,{U6:()=>r,i8:()=>d,pU:()=>s});var o=n(55653),a=n(85612),i=n(67099);let l=o.Ik({p:o.Yj(),s:a.jx});function r(e){let t=window.location.hash.replace(/^#/,"");if(!t)return a.KE;try{let n=l.safeParse(JSON.parse(function(e){let t=atob(e.replace(/-/g,"+").replace(/_/g,"/")),n=Uint8Array.from(t,e=>e.charCodeAt(0));return new TextDecoder().decode(n)}(t)));if(!n.success||n.data.p!==e)return a.KE;return n.data.s}catch(e){return a.KE}}function s(e,t){var n=JSON.stringify({p:e,s:t});let o=new TextEncoder().encode(n),a="";for(let e of o)a+=String.fromCharCode(e);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function d(e,t){let n=0!==t.items.length||t.confirmedOwnership?s(e,t):"",o="".concat(window.location.pathname).concat(window.location.search).concat(n?"#".concat(n):"");(0,i.G)(window.history.state,o)}},85612:(e,t,n)=>{"use strict";n.d(t,{Vd:()=>ei,jx:()=>es,KE:()=>ed,Y4:()=>el});var o=n(55653);let a=o.Ik({code:o.Yj(),amount:o.ai()}),i=o.Ik({amount:o.ai(),originalAmount:o.ai().optional(),discounts:o.YO(a).optional()}),l=o.Ik({interval:o.eu(["day","week","month","year"]),intervalCount:o.ai(),count:o.ai().optional()}),r=i.extend({schedule:l}),s=o.Ik({currency:o.Yj(),initial:i,recurring:r.optional(),synthetic:o.zM().optional()}),d=o.Ik({src:o.Yj(),alt:o.Yj()}),u=o.eu(["members-only","not-sellable-standalone","not-syndicated"]),c=o.gM("kind",[o.Ik({kind:o.eu("window"),days:o.ai().int().positive(),free:o.zM()}),o.Ik({kind:o.eu("final-sale")})]),m=o.Ik({freeShipping:o.zM(),returns:c}),f=o.Ik({titleKey:o.Yj(),descriptionKey:o.Yj(),path:o.Yj(),productCategory:o.Yj(),condition:o.eu(["new","refurbished"]).optional(),media:o.YO(d).optional(),excludeFromFeeds:u.optional(),discoveryOnly:o.zM().optional(),policy:m.optional(),showsReviews:o.zM().optional()}),g=o.Ik({value:o.ai(),unit:o.eu(["lb","oz","g","kg"])}),p=o.Ik({length:o.ai(),width:o.ai(),height:o.ai(),unit:o.eu(["in","cm"])}),v=o.Ik({gtin:o.Yj().regex(/^(\d{8}|\d{12}|\d{13}|\d{14})$/,"gtin must be 8, 12, 13, or 14 digits with no dashes or spaces").optional(),mpn:o.Yj().optional(),weight:g.optional(),dims:p.optional(),media:o.YO(d).optional()}),y=o.gM("kind",[o.Ik({kind:o.eu("dates"),minBusinessDays:o.ai(),maxBusinessDays:o.ai()}),o.Ik({kind:o.eu("fixed-dates"),startDate:o.Yj(),endDate:o.Yj()}),o.Ik({kind:o.eu("weeks")}),o.Ik({kind:o.eu("does-not-ship")})]),I=o.eu(["stripe","affirm","klarna","apple_pay","google_pay","true_med","rental","zopa","paypal"]),h=o.eu(["emperor","super-king","cali-king","uk-king","king","queen","matrimonial","large-double","double","full","twin-xl","twin","single"]),k=o.eu(["dual","single"]),w={default:o.zM().optional(),handle:o.Yj(),sku:o.Yj(),disallowedPaymentMethods:o.YO(I).optional()},b={...w,size:h,zone:k.optional()},_={...w,size:o.eu(["standard","king"]),qty:o.eu([1,2])},Y={...w,plan:o.eu(["monthly","6-month","one-time"])},C=o.eu(["Pod2","Pod3","Pod4","Pod5"]),j={...w,size:h,podModel:C,creditAmount:o.ai()},M={physical:v.optional()},O=o.Ik({...w,...M}),z=o.Ik({...b,...M}),K=o.Ik({..._,...M}),S=o.Ik({...Y,...M}),x=o.Ik({...j,...M}),E={prices:o.jg(I,s),medusaVariantId:o.Yj(),shipping:y.nullable()},q=o.Ik({...w,...E}),P=o.Ik({...b,...E}),A=o.Ik({..._,...E}),L=o.Ik({...Y,...E}),N=o.Ik({...j,...E}),B=o.KC([o.Yj(),o.YO(o.Yj()).nonempty()]),F=o.Ik({kind:o.eu("match-size"),catalogId:B}),D=o.Ik({kind:o.eu("limit-quantity"),catalogId:o.Yj()}),T=o.Ik({kind:o.eu("require-product"),catalogId:B}),U=o.Ik({kind:o.eu("include-product"),catalogId:o.Yj(),unlessLoggedIn:o.zM().optional()}),R=o.Ik({kind:o.eu("require-zone"),catalogId:o.Yj(),zone:k}),V=o.Ik({kind:o.eu("exclude-zone"),catalogId:o.Yj(),zone:k}),W=o.Ik({kind:o.eu("limit-quantity-by-zone"),catalogId:o.Yj(),zone:k,max:o.ai().int().positive()}),G=o.gM("kind",[F,D,T,U,R,V,W]),$=o.Ik({kind:o.eu("generic"),variants:o.g1(o.Yj(),O),constraints:o.YO(G).optional(),disallowedPaymentMethods:o.YO(I).optional(),draft:o.zM().optional(),display:f.optional()}),J=o.Ik({kind:o.eu("bed"),variants:o.g1(o.Yj(),z),constraints:o.YO(G).optional(),disallowedPaymentMethods:o.YO(I).optional(),draft:o.zM().optional(),display:f.optional()}),Q=o.Ik({kind:o.eu("pillow"),variants:o.g1(o.Yj(),K),constraints:o.YO(G).optional(),disallowedPaymentMethods:o.YO(I).optional(),draft:o.zM().optional(),display:f.optional()}),Z=o.Ik({kind:o.eu("subscription"),variants:o.g1(o.Yj(),S),constraints:o.YO(G).optional(),disallowedPaymentMethods:o.YO(I).optional(),draft:o.zM().optional(),display:f.optional()}),H=o.Ik({kind:o.eu("trade-in"),variants:o.g1(o.Yj(),x),constraints:o.YO(G).optional(),disallowedPaymentMethods:o.YO(I).optional(),draft:o.zM().optional(),display:f.optional()});o.gM("kind",[$,J,Q,Z,H]);let X=o.Ik({kind:o.eu("generic"),variants:o.g1(o.Yj(),q),constraints:o.YO(G).optional(),paymentMethods:o.YO(I)}),ee=o.Ik({kind:o.eu("bed"),variants:o.g1(o.Yj(),P),constraints:o.YO(G).optional(),paymentMethods:o.YO(I)}),et=o.Ik({kind:o.eu("pillow"),variants:o.g1(o.Yj(),A),constraints:o.YO(G).optional(),paymentMethods:o.YO(I)}
1),en=o.Ik({kind:o.eu("subscription"),variants:o.g1(o.Yj(),L),constraints:o.YO(G).optional(),paymentMethods:o.YO(I)}),eo=o.Ik({kind:o.eu("trade-in"),variants:o.g1(o.Yj(),N),constraints:o.YO(G).optional(),paymentMethods:o.YO(I)}),ea=o.gM("kind",[X,ee,et,en,eo]),ei=o.Ik({products:o.g1(o.Yj(),ea),paymentMethods:o.YO(I),invalidationKey:o.Yj(),appliedCoupons:o.YO(o.Yj()).default([])});function el(e){return e.invalidationKey.endsWith(":fallback")}let er=o.Ik({catalogId:o.Yj(),variantId:o.Yj(),quantity:o.ai().int().positive(),metadata:o.g1(o.Yj(),o.Yj()).optional()}),es=o.Ik({items:o.YO(er),catalogInvalidationKey:o.Yj().nullable(),confirmedOwnership:o.zM().default(!1)}),ed={items:[],catalogInvalidationKey:null,confirmedOwnership:!1}}}]);

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.