PageSourceSearch

https://www.stokke.com/mobify/bundle/4651/pages-leap-content.js

js stokke.com collected 2026-09-24 20:02:33 UTC 11,760 bytes, 2 lines download raw bytes

1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7465],{15998:(e,n,a)=>{a.d(n,{Z:()=>g});var t=a(89526),o=a(2652),r=a.n(o),i=a(23570),c=a(15618),s=a(68798),l=a(21268);function d({children:e}){const n=(0,t.useRef)(null),a=(0,t.useMemo)((()=>({autoRaf:!1,prevent:e=>!!(e.classList.contains(".chakra-modal__content-container")||e.closest(".chakra-modal__body")||e.closest(".chakra-dialog__body")||e.closest(".chakra-drawer__content"))})),[]);return(0,t.useEffect)((()=>{if(s.sk)return null;function e(e){var a,t;const o=e.timestamp;null===(a=n.current)||void 0===a||null===(t=a.lenis)||void 0===t||t.raf(o)}return c.Wi.update(e,!0),()=>(0,c.Pn)(e)}),[]),t.createElement(i.pi,{root:!0,options:a,ref:n},t.createElement(l.jW,null),e)}d.propTypes={children:r().node};const g=d},59329:(e,n,a)=>{a.d(n,{Z:()=>v});var t=a(17692),o=a(29382),r=a(89526),i=a(86216),c=a(80438),s=a(2652),l=a.n(s),d=a(14884),g=a(32047);const u=(0,d.a5)({base:{containerType:"inline-size",paddingX:"var(--container-inline-padding)",paddingTop:"var(--container-block-padding-start, 0px)",paddingBottom:"var(--container-block-padding-end, 0px)","--container-inline-padding":{base:"spacing.container-padding-mobile",s:"spacing.container-padding-desktop"},"& > *":{"--container-total-inline-padding":"calc(var(--container-inline-padding, 0px) + max(0px, 50cqw - var(--max-container-width, 100cqw) * 0.5))"},"&:has(> :empty)":{display:"none"}},variants:{modulePadding:{default:{"--container-inline-padding":{base:"spacing.container-padding-mobile",s:"spacing.container-padding-desktop"}},none:{"--container-inline-padding":"spacing.spacing-0"},awards:{"--container-inline-padding":{s:"spacing.spacing-0"}},highlightStack:{"--container-inline-padding":"spacing.spacing-0"},hero:{"--container-inline-padding":"spacing.spacing-0"},media:{"--container-inline-padding":"spacing.spacing-0"},productColors:{"--container-inline-padding":"spacing.spacing-0"},collage:{"--container-inline-padding":"spacing.spacing-0"}},background:{default:{"--module-surface-bg-color":"colors.background.surface.on-section-default","--module-bg-color":"colors.background.section.default",backgroundColor:g.H.default},subtle:{"--module-surface-bg-color":"colors.background.surface.on-section-subtle","--module-bg-color":"colors.background.section.subtle",backgroundColor:g.H.subtle},strong:{"--module-surface-bg-color":"colors.background.surface.on-section-strong","--module-bg-color":"colors.background.section.strong",backgroundColor:g.H.strong},inverse:{"--module-surface-bg-color":"colors.background.surface.on-section-inverted","--module-bg-color":"colors.background.section.strong",backgroundColor:g.H.inverse},none:{"--module-surface-bg-color":"transparent","--module-bg-color":"transparent",backgroundColor:"transparent"}},spacing:{default:{"--container-block-padding-start":{base:"spacing.spacing-64",s:"spacing.spacing-128"},"--container-block-padding-end":{base:"spacing.spacing-40",s:"spacing.spacing-128"}},reduced:{"--container-block-padding-start":"spacing.spacing-40","--container-block-padding-end":"spacing.spacing-40"},min:{"--container-block-padding-start":"spacing.spacing-20","--container-block-padding-end":"spacing.spacing-20"},"min-top":{"--container-block-padding-start":"spacing.spacing-20","--container-block-padding-end":{base:"spacing.spacing-40",s:"spacing.spacing-128"}},"min-bottom":{"--container-block-padding-start":{base:"spacing.spacing-64",s:"spacing.spacing-128"},"--container-block-padding-end":"spacing.spacing-20"},none:{"--container-block-padding-start":"spacing.spacing-0","--container-block-padding-end":"spacing.spacing-0"},recommender:{"--container-block-padding-start":{base:"spacing.spacing-40",s:"spacing.spacing-64"},"--container-block-padding-end":{base:"spacing.spacing-40",s:"spacing.spacing-64"}}}},defaultVariants:{background:"default",modulePadding:"default",spacing:"default"}});var p=a(72432),m=a(72702);const b=["anchor","background","css","moduleId","moduleType","pageId","spacing","layerStyle","modulePadding","aria-label"],k=r.forwardRef(((e,n)=>{let{anchor:a,background:s="default",css:l,moduleId:d,moduleType:g,pageId:k,spacing:v,layerStyle:f="container.page",modulePadding:y="default","aria-label":h}=e,_=(0,o.Z)(e,b);const x=(0,i.r)({recipe:u}),C=(0,r.useMemo)((()=>x({background:s,spacing:v,modulePadding:y})),[x,s,v,y]),E=(0,r.useMemo)((()=>(0,p.Vh)(a)),[a]),j=(0,r.useId)();return r.createElement(m.u,{value:(0,r.useMemo)((()=>({headingId:j})),[j])},r.createElement(c.x,{css:C,ref:n},r.createElement(c.x,(0,t.Z)({},_,{as:"section",css:l,id:E,layerStyle:f,"aria-labelledby":j,"data-module-id":d,"data-module-type":g,"data-
1page-id":k}))))}));k.propTypes={"aria-label":l().string,anchor:l().string,background:l().oneOf(Object.keys(u.variants.background)),css:l().object,moduleId:l().string,moduleType:l().string,pageId:l().string,spacing:l().oneOf(Object.keys(u.variants.spacing)),layerStyle:l().string,modulePadding:l().oneOf(Object.keys(u.variants.modulePadding))};const v=k},98801:(e,n,a)=>{a.r(n),a.d(n,{default:()=>x});var t=a(526),o=a(22757),r=a(42669),i=a(34292),c=a(97173),s=a(89526),l=a(71993),d=a(85741),g=a(59934),u=a(34293),p=a(81360),m=a(34219),b=a(15998),k=a(1439),v=a(84154),f=a(80438),y=a(46548),h=a(40253);const _=()=>{const{contentId:e}=(0,g.UO)(),[n,a]=(0,s.useState)("dark"),_=(0,s.useMemo)((()=>Date.now()),[]),{res:x}=(0,u.useServerContext)();x&&(x.set("Cache-Control","no-store, must-revalidate"),x.set("Pragma","no-cache"),x.set("Expires","0")),(0,d.y)({pageType:"CMS Content"});const{data:C,isLoading:E,error:j}=(0,m.W3)({parameters:{assetId:e,c_cache_breaker:_}}),L=(0,h.C_)();if(j){var O;console.error(`Error fetching leap content asset id ${e}`,j);const n=(null==j||null===(O=j.response)||void 0===O?void 0:O.status)||(null==j?void 0:j.status);if(404===n)throw new p.HTTPNotFound(`Leap Content Asset "${e}" Not Found.`);throw new p.HTTPError(n,`HTTP Error ${n} occurred.`)}return e&&(E||null!=C&&C.length)?e&&E?s.createElement(l.Z,null,s.createElement(t.O,{height:"20px"})):s.createElement(b.Z,null,s.createElement(f.x,{display:"flex",flexDirection:"column",gap:"10"},s.createElement(o.X,{background:"dark"===n?"darkgray":"lightgray",color:"dark"===n?"lightgray":"darkgray",paddingBlock:"10",textAlign:"center"},"dark"===n?"Dark theme":"Light theme"),s.createElement(r.E,{onChange:a,value:n},s.createElement(i.U,{justify:"center",spacing:6},s.createElement(c.Y,{value:"light"},"Light"),s.createElement(c.Y,{value:"dark"},"Dark"))),s.createElement(f.x,{display:"flex",justifyContent:"center"},s.createElement(y.z,{variant:"secondaryFilled",onClick:()=>{L.open({contentId:e,theme:n})}},s.createElement("span",null,"Open in sidebar"))),s.createElement(v.PD,{theme:n},s.createElement(k.Z,{assetId:e,modules:C})))):(x&&(x.statusCode=404),null)};_.shouldGetProps=()=>!1;const x=_},85741:(e,n,a)=>{a.d(n,{y:()=>y});var t=a(15305),o=a(89526),r=a(59934),i=a(88027),c=a(4543),s=a(74505),l=a(44133);const d="undefined"!=typeof document&&void 0!==document.visibilityState,g=()=>!d||"visible"===document.visibilityState,u=()=>{const[e,n]=(0,o.useState)(g());return(0,o.useEffect)((()=>{if(!d)return;const e=()=>n(g());return document.addEventListener("visibilitychange",e,{passive:!0}),()=>document.removeEventListener("visibilitychange",e)}),[]),e};var p=a(65984),m=a(71127),b=a(81065),k=a(68446);function v(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function f(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?v(Object(a),!0).forEach((function(n){(0,t.Z)(e,n,a[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))}))}return e}const y=({pageType:e,categoryId:n})=>{var a,t,d,g,v;const{allowedLocales:y}=(0,i.Z)(),{pathname:h}=(0,r.TH)(),{locale:_,site:x}=(0,c.Z)(),{data:C}=(0,l.Q)(),{currency:E}=(0,k.useConfig)(),j=u(),[L,O]=(0,o.useState)({timestamp:Date.now(),visible:j}),{data:{customerId:w,isRegistered:P,c_ordersTotal:T,email:D,phoneHome:I,firstName:S,lastName:A}={},isInitialLoading:H}=(0,b.k)(),Z=(0,o.useMemo)((()=>H||!w?null:P?{user_type:"customer",user_loggedIn:!0,user_total_orders:T,firstName:S,lastName:A,user_id:w}:{user_type:"guest",user_loggedIn:!1}),[w,P,T,H,S,A]),[M,B]=(0,o.useState)(0);(0,o.useEffect)((()=>{L.visible!==j&&(j&&Date.now()-L.timestamp>=p.Lp&&B((e=>e+1)),O({timestamp:Date.now(),visible:j}))}),[j,L]);const N=(0,o.useMemo)((()=>null==y?void 0:y.find((e=>e.id===(_.id||_)))),[_,y]),W=(0,m.Z)((e=>{var n;return(0,s.L9)(f(f({},e),{},{cart_value:(null==C?void 0:C.orderTotal)||0,has_cookiebot:(null==x||null===(n=x.gdpr)||void 0===n?void 0:n.enableCookiebot)||!1,has_ecommerce:!(null!=x&&x.isContentOnlySite)}))})),R=(null==C?void 0:C.currency)||E,U=D||(null==C||null===(a=C.customerInfo)||void 0===a?void 0:a.email),F=I||(null==C||null===(t=C.billingAddress)||void 0===t?void 0:t.phone)||(null==C||null===(d=C.shipments)||void 0===d||null===(g=d[0])||void 0===g||null===(v=g.shippingAddress)||void 0===v?void 0:v.phone);(0,o.useEffect)((()=>{N&&R&&Z&&W(f(f(f(f({event:s.es,page_type:e,page_language:N.language,page_country2:N.country,page_country3:N.iso3Country,canonical_url_path:h,page_currency:R,ecommerce:{currency:R}},n&&{category_id:n}),U&&{email:U}),F&&{phone:F}),Z))}),[e,h,N,R,U,F,Z,M,W,n])}},72702:(e,n,a)=>{a.d(n,{s:()=>r,u:()=>i});
1var t=a(89526);const o=(0,t.createContext)(null),r=()=>(0,t.useContext)(o),i=o.Provider},32047:(e,n,a)=>{a.d(n,{H:()=>o,n:()=>r});const t={"leap-text-banner":"light"},o={default:"background.section.default",subtle:"background.section.subtle",strong:"background.section.strong",inverse:"background.section.strong"},r=(e,n,a)=>{const r=Array.isArray(a)?a[0]:void 0;if(!r)return;const i=t[r.moduleType]||n||"light",c=o[r.background]?r.background:"default";return{theme:i,bg:e.css({color:o[c]}).color}}},31941:(e,n,a)=>{a.d(n,{Tw:()=>l,W3:()=>s,XC:()=>c,nQ:()=>r,v4:()=>i});var t=a(67557),o=a(29720);const r=e=>(0,t.jsx)(o.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),i=e=>(0,t.jsx)(o.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,t.jsx)("path",{d:"m6 9 6 6 6-6"})}),c=e=>(0,t.jsx)(o.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:(0,t.jsx)("path",{d:"m9 18 6-6-6-6"})}),s=e=>(0,t.jsxs)(o.m.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,t.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,t.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),l=e=>(0,t.jsx)(o.m.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})})}}]);
2//# sourceMappingURL=pages-leap-content.js.map

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.