PageSourceSearch

https://cradlewise.com/_next/static/chunks/pages/product/[product]-7bb89665d271cf0e.js

js cradlewise.com collected 2026-09-24 07:03:26 UTC 194,731 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e9d78f41-a3e9-4638-b254-1fc5889dab14",e._sentryDebugIdIdentifier="sentry-dbid-e9d78f41-a3e9-4638-b254-1fc5889dab14")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9516],{32925:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[product]",function(){return t(62126)}])},46649:function(e,s,t){"use strict";var a=t(85893),i=t(67294),l=t(25675),r=t.n(l),n=t(74130),c=t(86271),d=t(11163);let o=e=>{let{variantId:s,isMobile:t,attributes:l=[],quantity:o=1}=e,{state:m,dispatch:x}=i.useContext(n.A9),{locale:p,asPath:h}=(0,d.useRouter)(),u=async()=>{let e=await c.Lp.addLinesToCart(m.cartId,[{variantId:s,quantity:o,attributes:l}],p);x({type:"cart_info",payload:{cartId:m.cartId,cart_data:e.cart.lines.edges,cart_total_data:e.cart.cost.subtotalAmount,checkout_url:e.cart.checkoutUrl,showCart:!0}})},g=()=>(0,a.jsx)(r(),{src:"https://assets.cradlewise.com/images/store/cart-icon.webp",alt:"store-cart-icon",width:t?26:50,height:t?26:50});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("button",{onClick:u,children:(0,a.jsx)(g,{})})})};s.Z=o},90813:function(e,s,t){"use strict";var a=t(85893),i=t(67294),l=t(25675),r=t.n(l),n=t(96607);let c=e=>{let{handle:s}=e,[t,l]=(0,i.useState)("#47477C"),[c,d]=(0,i.useState)("#E2E2FF"),[o,m]=(0,i.useState)("#47477C"),[x,p]=(0,i.useState)("https://assets.cradlewise.com/images/product/discount-logo.svg"),h=(e,s)=>{window.location.href="/product/".concat(e,"#").concat(s)},u=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(r(),{src:x,alt:"discount-logo",width:22,height:22})}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsx)(r(),{src:x,alt:"discount-logo",width:18,height:18})})]}),g=()=>{l("#FFF"),d("#47477C"),m("#5C578C"),p("https://assets.cradlewise.com/images/product/discount-logo-light.svg")},f=()=>{l("#47477C"),d("#E2E2FF"),m("#47477C"),p("https://assets.cradlewise.com/images/product/discount-logo.svg")};return(0,a.jsxs)("div",{className:"flex flex-row justify-center items-center gap-x-[8px] sm:gap-x-[10px] w-[165px] sm:w-[260px] px-[5px] sm:px-[10px] py-[1px] border-[1px] border-[".concat(o,"] bg-[").concat(c,"] rounded-[10px] cursor-pointer"),onClick:()=>h(s,2),onMouseEnter:g,onMouseLeave:f,children:[(0,a.jsx)(u,{}),(0,a.jsx)("p",{className:"w-[180px] sm:w-full !text-[12px] sm:!text-[16px] text-[".concat(t,"] !font-basier_circle_medium"),children:n.j7[s]})]})};s.Z=c},61126:function(e,s,t){"use strict";var a=t(85893),i=t(67294),l=t(86271),r=t(74130),n=t(11163),c=t(95412);let d=e=>{let{w:s,btnName:t,quantity:d,variantId:o,attributes:m}=e,{locale:x,asPath:p}=(0,n.useRouter)(),{state:h,dispatch:u}=i.useContext(r.A9),[g,f]=(0,i.useState)(!1),w=async()=>{if(o){f(!0);let e=await l.Lp.addLinesToCart(h.cartId,[{variantId:o,quantity:d||1,attributes:m}],x);u({type:"cart_info",payload:{cartId:h.cartId,cart_data:e.cart.lines.edges,cart_total_data:e.cart.cost.subtotalAmount,checkout_url:e.cart.checkoutUrl,showCart:!0}}),f(!1)}else alert("Please Provide the Variant Id")};return(0,a.jsx)("div",{children:("en-US"===x||"en-IN"===x)&&(0,a.jsx)("button",{className:"cradleBtn whitespace-nowrap w-[".concat(s||"290px","] uppercase"),onClick:w,id:"".concat((0,c.r)(p),"_productDescription_addToCart"),children:g?(0,a.jsx)("div",{className:"animate-spin mx-auto rounded-full h-5 w-5 border-b-2 border-[#fff] font-semibold"}):t||"Add to cart"})})};s.Z=d},62126:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSG:function(){return eC},default:function(){return e_}});var a=t(85893),i=t(29045),l=t(52927),r=t(67294),n=t(11163),c=t(2962),d=t(60751),o=t(59429),m=t(10774);let x=e=>{let{quantity:s,setQuantity:t,productInventory:i}=e,l=()=>{t(e=>e+1)},r=()=>{if(s<=1)return!1;t(e=>e-1)};return(0,a.jsx)("div",{className:"mt-5 sm:mt-10 ".concat(i<1?"pointer-events-none !opacity-[0.5]":""),children:(0,a.jsxs)("span",{className:"flex justify-start items-center gap-x-[20px]",children:[(0,a.jsx)("p",{className:"size-sub-paragraph text-sm text-left sm:text-center md:text-left pr-2",children:"Quantity"}),(0,a.jsxs)("div",{className:"flex flex-row h-[30px] sm:h-10 w-[100px] sm:w-[120px] rounded-lg relative bg-transparent -mt-1 sm:!font-basier_circle_medium",children:[(0,a.jsx)("button",{className:" bg-white text-black hover:bg-[#f2eee5] h-full w-1/3  rounded-l-3xl cursor-pointer outline-none border-solid border border-gray-300",onClick:r,children:(0,a.jsx)("span",{className:"m-auto text-xl font-base leading-6",children:"−"})}),(0,a.jsx)("span",{className:"focus:outline-none text-center w-1/3  bg-white border-solid border-y border-gray-300 center text-black !font-[16px] !font-basier_circle_medium sm:text-[20px] flex justify-center align-middle leading-8 sm:pt-[2px]",children:s}),(0,a.jsx)("button",{className:"bg-white text-black hover:bg-[#f2eee5] h-full w-1/3  rounded-r-3xl cursor-pointer outline-none border-solid border border-gray-300",onClick:l,children:(0,a.jsx)("span",{className:"m-auto text-xl font-base leading-6",children:"+"})})]})]})})};var p=t(74130),h=t(86271),u=t(96607);let g=e=>{let{productDetails:s,quantity:t,locale:i,productInventory:l,extraAttribute:n}=e,{state:c,dispatch:d}=r.useContext(p.A9),[o,m]=(0,r.useState)(!1);return(0,a.jsx)("div",{className:"w-full sm:px-0 sm:w-full mx-auto flex flex-col sm:flex-row mt-[30px] sm:mt-6 justify-center sm:justify-start",children:(0,a.jsx)("button",{id:"add_to_cart",className:"".concat(l<1?"pointer-events-none !bg-[#D0D0D0]":""," justify-center cradleBtn w-full sm:!w-[292px] xl:!w-[292px] !py-2 !px-4 !hover:py-3 !hover:px-4 !mr-4 sm:py-3 sm:px-6 sm:hover:py-3 sm:hover:px-6 sm:mr-4"),onClick:async()=>{m(!0);let e=[{variantId:null==s?void 0:s.variantId,quantity:t,attributes:(0,u.A0)(s.handle,i,n)}],a=new URLSearchParams(window.location.search),l=a.get("p");try{if(l){await h.Lp.removeLinesFromCart(c.cartId,[l],i),a.set("p","");var r=window.location.pathname+"?"+a.toString();history.pushState(null,"",r)}let s=await h.Lp.addLinesToCart(c.cartId,e,i);if(s&&s.cart&&s.cart.lines)d({type:"cart_info",payload:{cartId:c.cartId,cart_data:s.cart.lines.edges,cart_total_data:s.cart.cost.subtotalAmount,checkout_url:s.cart.checkoutUrl,showCart:!0}});else throw Error("Invalid cart response")}catch(s){console.error("Error adding to cart:",s.message);try{let s=await h.Lp.cartCreate("en-US"===i?"US":"en-IN"===i?"IN":"en-AU"===i?"AU":"en-CA"===i?"CA":"US","EN",i),t=s.cartCreate.cart.id;s.cartCreate.cart.checkoutUrl,localStorage.setItem("en-US"===i?"cartID":"en-IN"===i?"cartIdIN":"en-AU"===i?"cartIdAU":"en-CA"===i?"cartIdCA":"cartID",t);let a=await h.Lp.addLinesToCart(t,e,i);a&&a.cart&&a.cart.lines&&d({type:"cart_info",payload:{cartId:t,cart_data:a.cart.lines.edges,cart_total_data:a.cart.cost.subtotalAmount,checkout_url:a.cart.checkoutUrl,showCart:!0}})}catch(e){console.error("Error creating new cart and adding line items:",e.message)}}m(!1)},children:(0,a.jsx)("div",{children:o?(0,a.jsx)("div",{className:'animate-spin mx-auto rounded-full h-5 w-5 border-b-2 border-[#ff595a]"}'}):"ADD TO CART"})})})};var f=t(28368),w=t(44080),v=t(86010);let j=e=>{let{handle:s}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("section",{className:"w-full mt-[20px] sm:mt-6",children:(0,a.jsx)(f.p,{as:"div",className:"border-b border-t border-[#929292]",children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{id:"whats_included",className:(0,v.Z)("flex justify-between w-full px-0 sm:py-5 py-[15px]",{"":!s}),children:[(0,a.jsx)("p",{className:"!font-basier_circle_medium tracking-[0.9px]",children:"Wash care instructions"}),s?(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/open-arrow-gray.svg",alt:"open",className:"w-[14px] pt-[8px]"}):(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/close-arrow-gray.svg",alt:"close",className:"w-[16px] pt-[6px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"flex flex-col gap-y-[20px] text-base w-[324px] sm:w-[95%] pb-[15px] sm:pb-[20px]",children:(0,a.jsxs)("ul",{className:"size-sub-paragraph list-disc list-outside pl-[20px] sm:pl-[15px]",children:[(0,a.jsx)("li",{className:"mt-[5px]",children:"Machine wash cold, gentle cycle."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Tumble dry, no heat."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Do not iron.\xa0"}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Do not bleach.\xa0"}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Wash separately or with similar coloured laundry."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Attach the velcro along the perimeter to prevent it from sticking to the mesh and causing damage.\xa0"})]})})})]})}})})})};var b=t(25675),N=t.n(b),y=t(73935);function C(e){let{images:s,autoSlide:t=!0}=e,[i,l]=(0,r.useState)(0),[n,c]=(0,r.useState)(!1),[d,o]=(0,r.useState)(!1),m=(0,r.useRef)(null),x=(0,r.useRef)([]),p=(0,r.useRef)(null),h=(0,r.useRef)(!1),u=()=>{t&&!m.current&&(m.current=setInterval(()=>{w()},4e3))},g=()=>{m.current&&(clearInterval(m.current),m.current=null)};(0,r.useEffect)(()=>(u(),()=>g()),[s]),(0,r.useEffect)(()=>{(n||d)&&g()},[n,d]),(0,r.useEffect)(()=>
1{if(!n&&!d)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[n,d]),(0,r.useEffect)(()=>{l(0)},[s]);let f=()=>{l(e=>0===e?s.length-1:e-1)},w=()=>{l(e=>e===s.length-1?0:e+1)},v=()=>{f(),g()},j=()=>{w(),g()},b=()=>{c(!0)},C=()=>{o(!0)},_=0,k=e=>{_=e.touches[0].clientX},F=e=>{let s=e.changedTouches[0].clientX;h.current=Math.abs(_-s)>10,_-s>50&&j(),s-_>50&&v()},B=()=>{if(h.current){h.current=!1;return}c(!1)};return((0,r.useEffect)(()=>{if(!n&&!d)return;let e=e=>{"ArrowLeft"===e.key&&v(),"ArrowRight"===e.key&&j()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n,d]),(0,r.useEffect)(()=>{let e=x.current[i],s=p.current;if(e&&s){let t=e.offsetLeft,a=e.offsetWidth,i=s.scrollLeft,l=s.offsetWidth,r=t+a;r>i+l&&s.scrollTo({left:r-l,behavior:"smooth"}),t<i&&s.scrollTo({left:t,behavior:"smooth"})}},[i]),s&&0!==s.length)?(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("div",{className:"relative rounded-[28px] overflow-hidden",children:[(0,a.jsx)("div",{className:"relative w-full",style:{paddingBottom:"100%"},children:(0,a.jsx)(N(),{src:s[i].src,alt:s[i].alt,fill:!0,className:"object-cover rounded-[28px] transition-all duration-300"})}),(0,a.jsx)("div",{onClick:v,className:"hidden md:block absolute left-4 top-1/2 -translate-y-1/2 bg-black/20 backdrop-blur-md cursor-pointer shadow-md rounded-full p-[16px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",children:(0,a.jsx)("path",{d:"M4.44253 0.310615C4.82336 -0.0892588 5.45665 -0.105261 5.85659 0.275459C6.25652 0.656339 6.27164 1.28959 5.89077 1.68952L3.33315 4.37507H11.0001C11.5524 4.37507 12.0001 4.82278 12.0001 5.37507C12.0001 5.92735 11.5524 6.37507 11.0001 6.37507H3.33315L5.89077 9.06061C6.27164 9.46055 6.25652 10.0938 5.85659 10.4747C5.45665 10.8554 4.82336 10.8394 4.44253 10.4395L0.275537 6.06452C-0.0918458 5.67841 -0.0918456 5.07172 0.275537 4.68561L4.44253 0.310615Z",fill:"white"})})}),(0,a.jsx)("div",{onClick:b,className:"block md:hidden absolute right-4 top-4 cursor-pointer bg-black/20 backdrop-blur-md shadow-md rounded-full p-[13px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,a.jsx)("path",{d:"M7.05176 9.53418C7.44221 9.14375 8.07529 9.14389 8.46582 9.53418C8.85633 9.92472 8.85636 10.5577 8.46582 10.9482L3.41406 16H6.79395C7.34602 16.0002 7.79395 16.4479 7.79395 17C7.79395 17.5521 7.34602 17.9998 6.79395 18H1C0.447715 18 0 17.5523 0 17V11.207C0 10.6547 0.447715 10.207 1 10.207C1.55228 10.207 2 10.6547 2 11.207V14.5859L7.05176 9.53418ZM18 6.79297C18 7.34525 17.5523 7.79297 17 7.79297C16.4477 7.79297 16 7.34525 16 6.79297V3.41406L10.9482 8.46582C10.5578 8.85625 9.92471 8.85611 9.53418 8.46582C9.14367 8.07528 9.14364 7.44227 9.53418 7.05176L14.5859 2H11.2061C10.654 1.99975 10.2061 1.55213 10.2061 1C10.2061 0.447868 10.654 0.000247827 11.2061 0H17C17.5523 0 18 0.447715 18 1V6.79297Z",fill:"white"})})}),(0,a.jsx)("div",{onClick:C,className:"hidden md:block absolute right-4 top-4 cursor-pointer bg-black/20 backdrop-blur-md shadow-md rounded-full p-[13px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,a.jsx)("path",{d:"M7.05176 9.53418C7.44221 9.14375 8.07529 9.14389 8.46582 9.53418C8.85633 9.92472 8.85636 10.5577 8.46582 10.9482L3.41406 16H6.79395C7.34602 16.0002 7.79395 16.4479 7.79395 17C7.79395 17.5521 7.34602 17.9998 6.79395 18H1C0.447715 18 0 17.5523 0 17V11.207C0 10.6547 0.447715 10.207 1 10.207C1.55228 10.207 2 10.6547 2 11.207V14.5859L7.05176 9.53418ZM18 6.79297C18 7.34525 17.5523 7.79297 17 7.79297C16.4477 7.79297 16 7.34525 16 6.79297V3.41406L10.9482 8.46582C10.5578 8.85625 9.92471 8.85611 9.53418 8.46582C9.14367 8.07528 9.14364 7.44227 9.53418 7.05176L14.5859 2H11.2061C10.654 1.99975 10.2061 1.55213 10.2061 1C10.2061 0.447868 10.654 0.000247827 11.2061 0H17C17.5523 0 18 0.447715 18 1V6.79297Z",fill:"white"})})}),(0,a.jsx)("div",{onClick:j,className:"hidden md:block absolute right-4 top-1/2 -translate-y-1/2 cursor-pointer bg-black/20 backdrop-blur-md shadow-md rounded-full p-[16px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",children:(0,a.jsx)("path",{d:"M6.14355 0.275459C6.54349 -0.105261 7.17678 -0.0892588 7.55762 0.310615L11.7246 4.68561C12.092 5.07172 12.092 5.67841 11.7246 6.06452L7.55762 10.4395C7.17679 10.8394 6.54349 10.8554 6.14355 10.4747C5.74363 10.0938 5.72851 9.46055 6.10938 9.06061L8.66699 6.37507H1C0.447715 6.37507 2.57702e-07 5.92735 0 5.37507C0 4.82278 0.447715 4.37507 1 4.37507H8.66699L6.10938 1.68952C5.72851 1.28959 5.74363 0.656339 6.14355 0.275459Z",fill:"white"})})})]}),(0,a.jsx)("div",{ref:p,className:"flex whitespace-nowrap gap-2 mt-4 overflow-x-auto hideScrollbar",children:s.map((e,s)=>(0,a.jsx)("button",{ref:e=>x.current[s]=e,onClick:()=>{l(s),g()},className:"relative flex-shrink-0 w-[63.6px] md:w-[87.2px] h-[63.6px] md:h-[87.2px] rounded-[8px] overflow-hidden transition\n              ".concat(s===i?"border-[#292929] border-2":"opacity-70"),children:(0,a.jsx)(N(),{src:e.src,alt:e.alt,fill:!0,className:"object-cover"})},e.id))}),n&&(0,a.jsxs)("div",{className:"fixed inset-0 z-[1000000000] bg-black flex flex-col",children:[(0,a.jsx)("div",{className:"flex justify-end px-4 pt-4 mb-[14.5px]",children:(0,a.jsx)("button",{onClick:()=>c(!1),className:"text-white bg-[#FFFFFF1A] backdrop-blur-md cursor-pointer shadow-md rounded-full p-[15px] hover:scale-105 transition z-[1000000000]",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,a.jsx)("path",{d:"M12.2929 0.292893
1C12.6834 -0.097629 13.3164 -0.0976294 13.707 0.292893C14.0975 0.683417 14.0975 1.31643 13.707 1.70696L8.41399 6.99992L13.707 12.2929C14.0975 12.6834 14.0975 13.3164 13.707 13.707C13.3164 14.0975 12.6834 14.0975 12.2929 13.707L6.99992 8.41399L1.70696 13.707C1.31643 14.0975 0.683417 14.0975 0.292893 13.707C-0.097631 13.3164 -0.0976311 12.6834 0.292893 12.2929L5.58586 6.99992L0.292893 1.70696C-0.0976306 1.31643 -0.0976306 0.683417 0.292893 0.292893C0.683417 -0.0976312 1.31643 -0.0976309 1.70696 0.292893L6.99992 5.58586L12.2929 0.292893Z",fill:"white"})})})}),(0,a.jsx)("div",{className:"relative w-full flex-1 min-h-0 flex items-center justify-center",onTouchStart:k,onTouchEnd:F,onClick:B,children:(0,a.jsx)("img",{src:s[i].src,alt:s[i].alt,className:"max-w-full max-h-full object-contain",onClick:e=>e.stopPropagation()})}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-6 mt-[14.5px] mb-10",children:[(0,a.jsx)("div",{onClick:v,className:"flex items-center justify-center cursor-pointer bg-black/20 backdrop-blur-md shadow-md rounded-full p-[16px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",children:(0,a.jsx)("path",{d:"M4.44253 0.310615C4.82336 -0.0892588 5.45665 -0.105261 5.85659 0.275459C6.25652 0.656339 6.27164 1.28959 5.89077 1.68952L3.33315 4.37507H11.0001C11.5524 4.37507 12.0001 4.82278 12.0001 5.37507C12.0001 5.92735 11.5524 6.37507 11.0001 6.37507H3.33315L5.89077 9.06061C6.27164 9.46055 6.25652 10.0938 5.85659 10.4747C5.45665 10.8554 4.82336 10.8394 4.44253 10.4395L0.275537 6.06452C-0.0918458 5.67841 -0.0918456 5.07172 0.275537 4.68561L4.44253 0.310615Z",fill:"white"})})}),(0,a.jsxs)("div",{className:"text-white text-sm font-medium tracking-wide min-w-[60px] text-center",children:[i+1," / ",s.length]}),(0,a.jsx)("div",{onClick:j,className:"flex items-center justify-center cursor-pointer bg-black/20 backdrop-blur-md shadow-md rounded-full p-[16px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",children:(0,a.jsx)("path",{d:"M6.14355 0.275459C6.54349 -0.105261 7.17678 -0.0892588 7.55762 0.310615L11.7246 4.68561C12.092 5.07172 12.092 5.67841 11.7246 6.06452L7.55762 10.4395C7.17679 10.8394 6.54349 10.8554 6.14355 10.4747C5.74363 10.0938 5.72851 9.46055 6.10938 9.06061L8.66699 6.37507H1C0.447715 6.37507 2.57702e-07 5.92735 0 5.37507C0 4.82278 0.447715 4.37507 1 4.37507H8.66699L6.10938 1.68952C5.72851 1.28959 5.74363 0.656339 6.14355 0.275459Z",fill:"white"})})})]})]}),d&&(0,y.createPortal)((0,a.jsxs)("div",{className:"hidden md:flex fixed inset-0 z-[1000000000] bg-black/95 items-center justify-center",onClick:()=>o(!1),children:[(0,a.jsx)("button",{onClick:()=>o(!1),className:"absolute top-8 right-8 text-white bg-[#FFFFFF1A] backdrop-blur-md cursor-pointer shadow-md rounded-full p-[15px] hover:scale-105 transition z-[1000000000]",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,a.jsx)("path",{d:"M12.2929 0.292893C12.6834 -0.097629 13.3164 -0.0976294 13.707 0.292893C14.0975 0.683417 14.0975 1.31643 13.707 1.70696L8.41399 6.99992L13.707 12.2929C14.0975 12.6834 14.0975 13.3164 13.707 13.707C13.3164 14.0975 12.6834 14.0975 12.2929 13.707L6.99992 8.41399L1.70696 13.707C1.31643 14.0975 0.683417 14.0975 0.292893 13.707C-0.097631 13.3164 -0.0976311 12.6834 0.292893 12.2929L5.58586 6.99992L0.292893 1.70696C-0.0976306 1.31643 -0.0976306 0.683417 0.292893 0.292893C0.683417 -0.0976312 1.31643 -0.0976309 1.70696 0.292893L6.99992 5.58586L12.2929 0.292893Z",fill:"white"})})}),(0,a.jsxs)("div",{className:"flex flex-col items-center",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"flex items-center gap-[40px]",children:[(0,a.jsx)("div",{onClick:v,className:"cursor-pointer bg-black/20 backdrop-blur-md shadow-md rounded-full p-[16px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",children:(0,a.jsx)("path",{d:"M4.44253 0.310615C4.82336 -0.0892588 5.45665 -0.105261 5.85659 0.275459C6.25652 0.656339 6.27164 1.28959 5.89077 1.68952L3.33315 4.37507H11.0001C11.5524 4.37507 12.0001 4.82278 12.0001 5.37507C12.0001 5.92735 11.5524 6.37507 11.0001 6.37507H3.33315L5.89077 9.06061C6.27164 9.46055 6.25652 10.0938 5.85659 10.4747C5.45665 10.8554 4.82336 10.8394 4.44253 10.4395L0.275537 6.06452C-0.0918458 5.67841 -0.0918456 5.07172 0.275537 4.68561L4.44253 0.310615Z",fill:"white"})})}),(0,a.jsx)("div",{className:"relative bg-[#D9DEE8] overflow-hidden w-[600px] h-[600px]",children:(0,a.jsx)(N(),{src:s[i].src,alt:s[i].alt,fill:!0,className:"object-contain"})}),(0,a.jsx)("div",{onClick:j,className:"cursor-pointer bg-black/20 backdrop-blur-md shadow-md rounded-full p-[16px] hover:scale-105 transition",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",children:(0,a.jsx)("path",{d:"M6.14355 0.275459C6.54349 -0.105261 7.17678 -0.0892588 7.55762 0.310615L11.7246 4.68561C12.092 5.07172 12.092 5.67841 11.7246 6.06452L7.55762 10.4395C7.17679 10.8394 6.54349 10.8554 6.14355 10.4747C5.74363 10.0938 5.72851 9.46055 6.10938 9.06061L8.66699 6.37507H1C0.447715 6.37507 2.57702e-07 5.92735 0 5.37507C0 4.82278 0.447715 4.37507 1 4.37507H8.66699L6.10938 1.68952C5.72851 1.28959 5.74363 0.656339 6.14355 0.275459Z",fill:"white"})})})]}),(0,a.jsxs)("div",{className:"text-white text-sm font-medium mt
1-6 tracking-wide",children:[i+1," / ",s.length]})]})]}),document.body)]}):null}var _=t(13638),k=t(46649),F=t(90813),B=t(30080);let S=e=>{let{handle:s,shopMoreProductsFd:t,shopMoreProductsFm:i,locale:l}=e,r="en-US"===l,n=e=>(0,a.jsxs)("div",{className:"relative flex flex-col justify-center items-center parent-hover",children:[(0,a.jsxs)("div",{className:"relative flex w-[165px] h-[165px] sm:w-[320px] sm:h-[320px]  xl:w-[400px] xl:h-[400px] rounded-[20px] sm:rounded-[40px] justify-center items-center",children:[(0,a.jsx)("div",{className:"hidden sm:block ",children:(0,a.jsx)("a",{href:"/".concat(l,"/product/").concat(e.handle,"/"),children:(0,a.jsx)(N(),{src:u.qM[e.handle].desktop_image,alt:"product",width:350,height:350,className:"transition-transform duration-300 child-image object-cover rounded-[40px]"})})}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsx)("a",{href:"/".concat(l,"/product/").concat(e.handle,"/"),children:(0,a.jsx)(N(),{src:u.qM[e.handle].mobile_image,alt:"product",width:165,height:165,className:"transition-transform duration-300 child-image object-cover"})})}),e.handle===_.Bd||e.handle===_.eM?(0,a.jsx)("div",{className:"hidden sm:block",children:r&&(0,a.jsx)("div",{className:"absolute top-[20px] left-[30px] xl:top-[50px] xl:left-[70px] hidden sm:block",children:(0,a.jsx)(F.Z,{handle:e.handle})})}):null,(0,a.jsx)("div",{className:"absolute bottom-[20px] right-[10px] hidden child-button",children:(0,a.jsx)("div",{className:"hidden sm:flex justify-center items-center",children:"redirect"===e.buttonFunctionality?null:"en-US"===l?(0,a.jsx)(k.Z,{variantId:e.variantId,isMobile:!1,attributes:e.attributes}):null})}),(0,a.jsx)("div",{className:"absolute ".concat("redirect"===e.buttonFunctionality?"bottom-[5px] right-[5px]":"bottom-0 right-[5px]"," block sm:hidden"),children:(0,a.jsx)("div",{className:"flex justify-end items-end",children:(0,a.jsx)("div",{children:"redirect"===e.buttonFunctionality?null:"en-US"===l?(0,a.jsx)(k.Z,{variantId:e.variantId,isMobile:!0,attributes:e.attributes}):null})})})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center pt-[20px] sm:pt-[20px]",children:[e.handle===_.Bd||e.handle===_.eM?(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsx)(F.Z,{handle:e.handle})}):null,(0,a.jsx)("a",{href:"/".concat(l,"/product/").concat(e.handle,"/"),children:(0,a.jsxs)("h2",{className:"".concat(e.handle===_.At?"w-[160px]":"w-[140px]","\n                        ").concat([_.Bd,_.eM].includes(s)&&e.handle===_.Ix?"pt-[50px]":"pt-[10px]","\n                        sm:pt-0 sm:w-full !text-[20px] !leading-[30px] sm:!text-[25px] sm:!leading-[40px] hover:underline child-text text-center sm:text-left"),children:["CradlewiseProtect"==e.title?"Cradlewise Protect":e.title," "]})}),(0,B.fT)()?null:(0,a.jsxs)("div",{className:"flex flex-row items-center mt-[10px]",children:["en-US"!==l&&"en-IN"!==l&&"en-AU"!==l?(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] tracking-[0.125rem] !font-basier_circle_medium pr-[5px]",children:[" ",d.iH[l]]}):null,e.compareAtPrice?(0,a.jsxs)("h2",{className:"!text-[20px] !leading-[30px] sm:!text-[25px] sm:!leading-[40px] !text-[#929292] line-through pr-[5px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(l).format((0,m.C)(e.compareAtPrice))]}):null,(0,a.jsxs)("h2",{className:"!text-[20px] !leading-[30px] sm:!text-[25px] sm:!leading-[40px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),e.handle!==_.fB?new Intl.NumberFormat(l).format((0,m.C)(e.price)):e.price.toString()]})]})]})]});return(0,a.jsxs)("section",{className:"relative mt-[80px] sm:mt-[150px] mb-[80px]",children:[(0,a.jsx)("div",{className:"flex flex-col justify-center items-center text-center",children:(0,a.jsx)("h2",{className:"w-[350px] sm:w-[654px] flex flex-col !text-[30px] sm:!text-[40px] !leading-[40px] sm:!leading-[50px]",children:"Shop More"})}),(0,a.jsxs)("div",{className:"pb-[80px] sm:pb-[100px]",children:[(0,a.jsxs)("div",{className:"absolute top-[10%] sm:top-[20%] w-full -z-[2]",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/fsamc-imgs/bg-fd.png",alt:"bg-curved",className:"w-full h-auto hidden sm:block"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/fsamc-imgs/bg-fm.png",alt:"bg-curved",className:"w-full h-auto sm:hidden"})]}),(0,a.jsxs)("div",{className:"pt-[40px] sm:pt-[50px]",children:[(0,a.jsx)("div",{className:"max-w-7xl sm:max-w-[700px] lg:max-w-[1280px] xl:max-w-[80rem] grid grid-cols-2 sm:grid-cols-3 sm:place-items-center mx-[20px] sm:mx-auto gap-x-[20px] sm:gap-x-[60px] gap-y-[30px] sm:gap-y-[60px] sm:hidden",children:i.map((e,s)=>(0,a.jsx)("div",{className:"sm:hidden",children:n(e)},s))}),(0,a.jsx)("div",{className:"hidden sm:grid-cols-3 sm:place-items-center mx-[20px] sm:mx-auto gap-x-[20px] sm:gap-x-[40px] gap-y-[30px] sm:gap-y-[60px] sm:flex sm:w-[1040px] xl:w-[1300px]",children:t.length&&t.map((e,s)=>n(e))})]})]})]})},P=()=>{let{locale:e}=(0,n.useRouter)();return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"mt-10",children:[(0,a.jsx)("p",{className:"!text-[16
1px] !leading-[20px] font-basier_circle_medium",children:"Included in your purchase: "}),(0,a.jsxs)("div",{className:"mt-5 flex",children:[(0,a.jsxs)("div",{className:"w-full sm:w-[194px] mr-5",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/transparent-mesh/transparent-foam.webp",alt:"cribRailCoverForPieces-2",className:"hidden sm:block"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/transparent-mesh/transparent-foam-fm.webp",alt:"cribRailCoverForPieces-2",className:"sm:hidden"}),(0,a.jsx)("p",{className:"text-center !text-[12px] !leading-[16px] mt-3",children:"Zipper band"})]}),(0,a.jsxs)("div",{className:"w-full sm:w-[194px]",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/transparent-mesh/transparent-mesh.webp",alt:"cribRailCoverForPieces-4",className:"sm:block hidden"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/transparent-mesh/transparent-mesh-fm.webp",alt:"cribRailCoverForPieces-4",className:"sm:hidden"}),"en-CA"===e?(0,a.jsxs)("p",{className:"text-center !text-[12px] !leading-[16px] mt-3",children:["Outer And Inner Crib ",(0,a.jsx)("br",{}),"Mesh + Bassinet Mesh"]}):(0,a.jsxs)("p",{className:"text-center !text-[12px] !leading-[16px] mt-3",children:["Bassinet + Crib ",(0,a.jsx)("br",{}),"Mesh"]})]})]})]})})},I=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"my-10",children:[(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/transparent-mesh/transparent-mesh-highlights-fd.svg",alt:"mesh-highlights",width:410,height:398,className:"hidden sm:block"}),(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/transparent-mesh/transparent-mesh-highlights-fm.svg",alt:"mesh-highlights",width:350,height:333,className:"block sm:hidden"})]})});var A=t(49834);let L=e=>{let{product:s,locale:t}=e,i=s.allProductsData,[l,n]=(0,r.useState)(1),[c,o]=(0,r.useState)({}),[p,h]=(0,r.useState)([]),[f,w]=(0,r.useState)([]),[v]=r.useContext(A.t),b=[_.eM,_.Ix],[N,y]=(0,r.useState)(2);(0,r.useEffect)(()=>{v.inventories&&y(null==v?void 0:v.inventories[s.handle])},[v]);let k=(0,r.useMemo)(()=>Array.from({length:7},(e,t)=>({id:t,src:"https://assets.cradlewise.com/images/store/product-gallery-webp/transparent-mesh/img".concat(t+1,".webp"),alt:"".concat(s.title," ").concat(t+1)})),[s.title]);return(0,r.useEffect)(()=>{var e,t;let a={};a.variantId=s.variants.edges[0].node.id,a.handle=s.handle,a.title=s.title,a.price=s.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,a.actualPrice=null===(e=s.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===e?void 0:null===(t=e.compareAtPrice)||void 0===t?void 0:t.amount,o(a)},[]),(0,r.useEffect)(()=>{let e=[];i.length>0&&b.map(a=>{i.map(i=>{if(a===i.node.handle&&a!==s.handle){var l,r,n;e.push({variantId:null===(l=i.node.variants.edges[0])||void 0===l?void 0:l.node.id,handle:i.node.handle,title:i.node.title,price:i.node.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(r=i.node.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===r?void 0:null===(n=r.compareAtPrice)||void 0===n?void 0:n.amount,customAttributes:(0,u.A0)(i.node.handle,t)})}})}),h(e),w(e)},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"cursor-default sm:mb-[-100px] mb-[-120px]",children:[(0,a.jsx)("div",{className:"newContainer cursor-default sm:!w-[1040px] xl:!w-auto sm:mx-auto",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-10 pt-4 !text-[16px] hidden md:block",children:[(0,a.jsx)("a",{href:"/".concat(t),className:"underline text-[#929292]",children:"Home"})," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"/"})," ",(0,a.jsx)("a",{href:"/".concat(t,"/products/"),className:"underline text-[#929292]",children:"Store"})," ","/ ",s.title]}),(0,a.jsxs)("div",{className:"sm:flex sm:w-[1040px] xl:w-auto sm:mx-auto",children:[(0,a.jsx)("div",{className:"sm:w-[500px] xl:w-[730px] hidden md:block",children:(0,a.jsx)("div",{className:"max-w-[500px]",children:(0,a.jsx)(C,{images:k})})}),(0,a.jsxs)("div",{className:"sm:w-[410px] xl:w-[500px] sm:ml-10 mt-[30px] sm:mt-0",children:[(0,a.jsxs)("h2",{className:"!text-[28px] !mb-2.5 sm:mb-5 !leading-[40px] sm:!text-[32px] sm:!leading-[45px] font-recoleta_alt_regular w-[310px]",children:[s.title," ",N<1&&(0,a.jsx)("span",{className:"ml-[10px] font-basier_circle_medium sm:w-[76px] h-[24px] w-[66px] rounded-full bg-[#FF595A] text-[white] !inline-flex center text-[10px] sm:text-[12px]",children:"SOLD OUT"})]}
1),(0,a.jsx)("p",{className:"!text-[16px] sm:!text-[18px] !leading-[24px] font-basier_circle_regular sm:!leading-[26px] tracking-[0.32px]",children:s.description}),(0,a.jsx)("div",{className:"mt-6 md:hidden",children:(0,a.jsx)(C,{images:k})}),(0,B.fT)()?null:(0,a.jsxs)("div",{className:"mt-6 flex justify-start items-center",children:["en-US"!==t&&"en-IN"!==t?(0,a.jsxs)("p",{className:"!text-[18px] !leading-[20px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[t]]}):null,(null==c?void 0:c.actualPrice)&&(null==c?void 0:c.actualPrice)!=(null==c?void 0:c.price)&&(0,a.jsx)("span",{className:"line-through !leading-[40px] text-[#929292] pr-[10px]",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] font-recoleta_alt_regular",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format(l*(0,m.C)(null==c?void 0:c.actualPrice))]})}),(0,a.jsx)("span",{className:"flex flex-row font-basier_circle_medium justify-start sm:justify-center md:justify-start",children:(null==c?void 0:c.price)?(0,B.XT)()?(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,a.jsxs)("span",{className:"",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format((0,B.Yr)((null==c?void 0:c.actualPrice)*l,30))]}),(0,a.jsx)("span",{className:"pl-1.5 !text-[#45A98B]",children:"(-30%)"})]}):(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format(l*(0,m.C)(null==c?void 0:c.price))]}):""})]}),N<1&&(0,a.jsx)("p",{className:"sm:mt-1 italic !text-[12px] sm:!text-[14px] font-basier_circle_medium text-[#FF595A]",children:"We're currently out of stock. Please check back soon!"}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(x,{quantity:l,setQuantity:n,productInventory:N})}),(0,a.jsx)(g,{productDetails:c,locale:t,quantity:l,productInventory:N}),(0,a.jsx)(P,{}),(0,a.jsx)(I,{}),(0,a.jsx)(j,{handle:s.handle})]})]})]})}),(0,a.jsx)(S,{handle:s.handle,shopMoreProductsFd:f,shopMoreProductsFm:p,locale:t})]})})},E=e=>{let{handle:s,actualCost:t,discountCost:i,discountPercentage:l,locale:r}=e;return(0,a.jsx)("div",{className:"mt-6 flex flex-row justify-start items-center gap-x-[10px]",children:t-i==0?(0,a.jsx)(a.Fragment,{children:(0,B.XT)()&&s===_.eM?(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,a.jsxs)("span",{className:"line-through text-[#929292] font-recoleta_alt_regular",children:[" ",(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(r).format((0,m.C)(t))]}),(0,a.jsxs)("span",{className:"pl-1.5",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(r).format((0,B.AK)(t))]}),(0,a.jsx)("span",{className:"pl-1.5 !text-[#45A98B] !text-[18px] !leading-[28px] sm:!text-[20px] sm:!leading-[30px] font-basier_circle_regular",children:"(-5%)"})]}):(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(r).format((0,m.C)(t))]})}):(0,a.jsxs)(a.Fragment,{children:["en-US"!==r&&"en-AU"!==r?(0,a.jsxs)("p",{className:"!text-[20px] !leading-[20px] tracking-[0.125rem] !font-basier_circle_medium",children:[" ",d.iH[r]]}):null,(0,a.jsxs)("h2",{className:"line-through !text-[30px] !leading-[40px] text-[#929292] font-recoleta_alt_regular",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(r).format(t)]}),(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(r).format(i)]}),(0,a.jsx)("p",{className:"!text-[#45A98B] !text-[18px] !leading-[28px] sm:!text-[20px] sm:!leading-[30px]",children:"(-".concat(l,")")})]})})},D=e=>{let{tag:s}=e,t=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/product/discount-logo.svg",alt:"discount-logo",width:24,height:24})}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/product/discount-logo.svg",alt:"discount-logo",width:22,height:22})})]});return(0,a.jsxs)("div",{className:"flex flex-row justify-center items-center gap-x-[10px] px-[10px] py-[5px] bg-[#E2E2FF] rounded-[10px] w-[260px] sm:w-[290px] mt-5",children:[(0,a.jsx)(t,{}),(0,a.jsx)("p",{className:"text-[#47477C]",children:s})]})},M=e=>{let{handle:s}=e;return(0,a.jsxs)("div",{className:"mt-10",children:[s==_.eM?(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/fsamc-imgs/mattress-cover-features-fd.webp",alt:"features",className:"w-full h-auto hidden sm:block"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/fsamc-imgs/mattress-cover-features-fm.webp",alt:"features",className:"w-full h-auto sm:hidden"})]}):(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/fsamc-imgs/fitted-sheet-features-fd.webp",alt:"features",className:"w-full h-auto hidden sm:block"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/fsamc-imgs/fitted-sheet-features-fm.webp",alt:"features",className:"w-full h-auto sm:hidden"})]}
1),s==_.eM?(0,a.jsx)("p",{className:"!text-[16px] text-[#929292] mt-5",children:"Note: Please use only the Cradlewise mattress cover to avoid any safety issues."}):(0,a.jsx)("p",{className:"!text-[16px] text-[#929292] mt-5",children:"Note: Please use only the Cradlewise fitted sheet to avoid any safety issues."})]})};var T=t(51020);let R=e=>{var s,t,i,l,c,d,o;let{product:m,locale:p}=e,h=m.allProductsData,{asPath:f}=(0,n.useRouter)(),w=f.split("#")[1],v=m.handle===_.Bd&&"en-US"===p?2:1,[j,b]=(0,r.useState)(w?parseInt(w):v),[N,y]=(0,r.useState)(m.handle===_.eM?3:5),[k,F]=(0,r.useState)(0),[P,I]=(0,r.useState)(m.handle===_.eM?null!==(d=u.Gz[p])&&void 0!==d?d:0:null!==(o=u.SM[p])&&void 0!==o?o:0),[L,R]=(0,r.useState)(0),[H,U]=(0,r.useState)(0),[z,O]=(0,r.useState)({}),[Z,$]=(0,r.useState)([]),[q,W]=(0,r.useState)([]),G=[_.Bd,_.eM,_.Ix],V=Object.keys(u.DK[m.handle]||{}).length,Y=null===(s=u.DK[m.handle])||void 0===s?void 0:s[Math.min(j,V)],K=null==Y?void 0:null===(t=Y[p])||void 0===t?void 0:t.tag_communication,[Q]=r.useContext(A.t),[X,J]=(0,r.useState)(2);(0,r.useEffect)(()=>{Q.inventories&&J(null==Q?void 0:Q.inventories[m.handle])},[Q]);let ee=(0,r.useMemo)(()=>{let e=m.handle===_.Bd?"fitted-sheet":"mattress-cover";return Array.from({length:5},(s,t)=>({id:t,src:"https://assets.cradlewise.com/images/store/product-gallery-webp/".concat(e,"/img").concat(t+1,".webp"),alt:"".concat(m.title," ").concat(t+1)}))},[m.handle,m.title]),es={"en-AU":{excludeHandles:[_.Ix]}},et=e=>{var s;return(null===(s=es[e])||void 0===s?void 0:s.excludeHandles)||[]};return(0,r.useEffect)(()=>{let e={};e.variantId=m.variants.edges[0].node.id,e.handle=m.handle,e.title=m.title,e.price=m.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,O(e)},[]),(0,r.useEffect)(()=>{let e=[];
1if(h.length>0){let s=et(p);G.map(s=>{h.map(t=>{if(s===t.node.handle&&s!==m.handle){var a,i,l;e.push({variantId:null===(a=t.node.variants.edges[0])||void 0===a?void 0:a.node.id,handle:t.node.handle,title:t.node.title,price:t.node.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(i=t.node.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===i?void 0:null===(l=i.compareAtPrice)||void 0===l?void 0:l.amount,attributes:(0,u.A0)(t.node.handle,p)})}})}),$(e),W(e.filter(e=>!s.includes(e.handle)))}},[p]),(0,r.useEffect)(()=>{var e,s,t,a,i,l,r,n,c,d,o,x;F(j<=N?j:N),R(j<=V?null===(e=u.DK[m.handle])||void 0===e?void 0:null===(s=e[j])||void 0===s?void 0:null===(t=s[p])||void 0===t?void 0:t.actual_cost:j*((null===(a=u.DK[m.handle])||void 0===a?void 0:null===(i=a[1])||void 0===i?void 0:null===(l=i[p])||void 0===l?void 0:l.actual_cost)||0)),U(j<=V?null===(r=u.DK[m.handle])||void 0===r?void 0:null===(n=r[j])||void 0===n?void 0:null===(c=n[p])||void 0===c?void 0:c.discount_cost:(0,u.iS)(j*((null===(d=u.DK[m.handle])||void 0===d?void 0:null===(o=d[1])||void 0===o?void 0:null===(x=o[p])||void 0===x?void 0:x.actual_cost)||0),P))},[j]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"cursor-default sm:mb-[-100px] mb-[-120px]",children:[(0,a.jsx)("div",{className:"newContainer cursor-default sm:!w-[1040px] xl:!w-auto sm:mx-auto",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-10 pt-4 !text-[16px] hidden md:block",children:[(0,a.jsx)("a",{href:"/".concat(p),className:"underline text-[#929292]",children:"Home"})," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"/"})," ",(0,a.jsx)("a",{href:"/".concat(p,"/products/"),className:"underline text-[#929292]",children:"Store"})," ","/ ",m.title]}),(0,a.jsxs)("div",{className:"sm:flex sm:w-[1040px] xl:w-auto sm:mx-auto",children:[(0,a.jsx)("div",{className:"sm:w-[500px] xl:w-[730px] hidden md:block",children:(0,a.jsx)("div",{className:"max-w-[500px]",children:(0,a.jsx)(C,{images:ee})})}),(0,a.jsxs)("div",{className:"sm:w-[410px] xl:w-[500px] sm:ml-10 mt-[30px] sm:mt-0",children:[(0,a.jsxs)("h2",{className:"!text-[28px] !mb-2.5 sm:mb-5 !leading-[40px] sm:!text-[32px] sm:!leading-[45px] font-recoleta_alt_regular",children:[m.title,X<1&&(0,a.jsx)("span",{className:"ml-[10px] font-basier_circle_medium sm:w-[76px] h-[24px] w-[66px] rounded-full bg-[#FF595A] text-[white] center text-[10px] sm:text-[12px]",children:"SOLD OUT"})]}),(0,a.jsx)("p",{className:"!text-[16px] sm:!text-[18px] !leading-[24px] font-basier_circle_regular sm:!leading-[26px] tracking-[0.32px]",children:m.description}),(0,a.jsx)("div",{className:"mt-6 md:hidden",children:(0,a.jsx)(C,{images:ee})}),(0,B.fT)()?(0,a.jsx)("div",{className:"zoom_80",children:(0,a.jsx)(T.Z,{})}):(0,a.jsxs)("div",{children:[(0,a.jsx)(E,{handle:m.handle,actualCost:L,discountCost:Math.round(H),discountPercentage:null===(i=u.DK[m.handle])||void 0===i?void 0:null===(l=i[k])||void 0===l?void 0:null===(c=l[p])||void 0===c?void 0:c.discount_percentage,locale:p}),X<1&&(0,a.jsx)("p",{className:"sm:mt-1 italic !text-[12px] sm:!text-[14px] font-basier_circle_medium text-[#FF595A]",children:"We're currently out of stock. Please check back soon!"}),(0,a.jsx)("div",{className:X<1?"pointer-events-none opacity-[0.4]":"",children:(0,a.jsx)(x,{quantity:j,setQuantity:b,productInventory:X})}),("en-US"===p||"en-AU"===p)&&K?(0,a.jsx)(D,{tag:K}):null,(0,a.jsx)(g,{productDetails:z,quantity:j,locale:p,productInventory:X})]}),(0,a.jsx)(M,{handle:m.handle})]})]})]})}),(0,a.jsx)(S,{handle:m.handle,shopMoreProductsFd:q,shopMoreProductsFm:Z,locale:p})]})})};var H=t(4298),U=t.n(H);let z=e=>{let{product:s,addToCart:t,image:i="",variantEdgeSelected:l=0,getVariantGiftCardError:c,GiftCardSelected:d}=e,{state:o,dispatch:x}=r.useContext(p.A9),[u,g]=(0,r.useState)(!1),{locale:f,asPath:w}=(0,n.useRouter)(),v="en-US"===f||"en-IN"===f,[j,b]=(0,r.useState)(!1),N=t.reduce((e,s)=>e+s.value,0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(U(),{src:"https://www.babylist.com/add.js",strategy:"afterInteractive"}),(0,a.jsx)("div",{className:"flex flex-row mt-[32px] mx-[20px] sm:mx-0",children:(0,a.jsxs)("div",{className:"w-full px-0 mx-auto flex flex-col sm:gap-6 sm:flex-row py-0 justify-center md:ml-0 md:justify-start -mt-2 ",children:[(0,a.jsx)("button",{id:"eGiftCard_productDecription_addToCart",className:"".concat(!d&&"!bg-[#D0D0D0]"," justify-center sm:!px-0 sm:w-[230px] cradleBtn !shadow-none !mt-2 !py-2 !px-4 !hover:py-3 !hover:px-4 1 sm:py-3 sm:px-6 sm:hover:py-3 sm:hover:px-6 ").concat(v?"":"!bg-[#D0D0D0]"),disabled:!v,onClick:async()=>
1{if(null==l||!d)return c(!0),setTimeout(()=>{c(!1)},600),!1;g(!0);let e=await h.Lp.addLinesToCart(o.cartId,t,f);x({type:"cart_info",payload:{cartId:o.cartId,cart_data:e.cart.lines.edges,cart_total_data:e.cart.cost.subtotalAmount,checkout_url:e.cart.checkoutUrl,showCart:!0}}),g(!1)},children:(0,a.jsx)("div",{className:"text-center text-[14px] sm:text-[16px] leading-[0.5rem] sm:leading-[0.563rem] !font-basier_circle_medium tracking-[0.8px]",children:u?(0,a.jsx)("div",{className:"animate-spin mx-auto rounded-full h-5 w-5 border-b-2 border-[#fff] font-semibold"}):"ADD TO CART"})}),"en-US"===f&&(0,a.jsx)("div",{onClick:()=>{b(!j)},className:"h-[50px] rounded-[100px] leading-[1.625rem] font-basier_circle_medium tracking-[0.03em] flex items-center justify-center relative !bg-transparent sm:w-[230px] text-[#3C3C3B] center text-center border border-[#3C3C3B] !py-1 !mt-[20px] sm:!mt-2 !px-6 !hover:py-3 !hover:px-6 sm:px-6 sm:hover:py-3 sm:hover:px-6",children:(0,a.jsx)("div",{className:"flex flex-col gap-y-[20px] items-center",children:(0,a.jsxs)("div",{className:" w-full md:!text-[16px] !text-[14px] text-[#3C3C3B] !tracking-[0.8px] font-basier_circle_medium cursor-pointer",children:[(0,a.jsx)("button",{className:"",id:"sc_productDescription_addToRegistry",children:"+ ADD TO REGISTRY"}),j&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"absolute left-0 mt-5 md:mt-5 z-[100] w-full",children:(0,a.jsxs)("div",{className:"sm:w-full w-[200px] mx-auto sm:mx-0 h-fit bg-white sm:border rounded-[20px] py-4 px-3 sm:px-0",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)("a",{id:"AddToBabylist",className:"sc_productDescription_babylist cursor-pointer",href:"javascript:void(0)",onClick:()=>{var e,t,a;if(!window.bl)return;let i=null==s?void 0:null===(e=s.variants)||void 0===e?void 0:null===(t=e.edges)||void 0===t?void 0:null===(a=t[l])||void 0===a?void 0:a.node;i&&(window.bl.addToRegistry({images:"https://assets.cradlewise.com/images/products/E-gift-card-poppylist.webp",price:"$"+(0,m.C)(N),title:s.title,url:"https://cradlewise.com/product/gift-card",category:"Cash & gift cards"}),b(!1))},children:(0,a.jsx)("div",{className:"text-center border-b border-[#D9D9D9] pb-4 sc_productDescription_babylist",children:(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/product-images/babylist-logo.png",className:"w-[85px] mx-auto sc_productDescription_babylist",alt:"babylist-logo-2x"})})}),(0,a.jsx)("a",{id:"AddToPoppylist",className:"sc_productDescription_poppylist",href:"https://www.poppylist.com/add_to_registry?product_name=E-Gift+Card&product_price_cents=".concat(100*N,"&product_url=https%3A%2F%2Fcradlewise.com%2Fproduct%2Fgift-card&product_image_url=https%3A%2F%2Fassets.cradlewise.com%2Fimages%2Fproducts%2FE-gift-card-poppylist.webp"),target:"_blank",children:(0,a.jsx)("div",{className:"text-center mt-4 sc_productDescription_poppylist",children:(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/product-images/poppylist-logo.png",className:"w-[90px] mx-auto sc_productDescription_poppylist",alt:"poppylist_logo"})})})]})}),(0,a.jsx)("div",{className:"w-full h-full fixed left-0 top-0 z-[99]",onClick:()=>{b(!1)}})]})]})})})]})})]})},O=e=>{let{product:s,locale:t}=e,[l,n]=(0,r.useState)();(0,i.A)(s.handle||"gift-card",l);let[d,o]=(0,r.useState)([]),[m,x]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1),[u,g]=(0,r.useState)(!1),[j,b]=(0,r.useState)(!1);var y=e=>{h(e)};let C=()=>(0,a.jsxs)("div",{className:"w-full mt-10 px-5 sm:px-0",children:[(0,a.jsx)(f.p,{as:"div",className:"border-b border-[#929292]",children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{id:"whats_included",className:(0,v.Z)("flex justify-between w-full px-0 pb-5",{"":!s}),children:[(0,a.jsx)("p",{className:"!font-basier_circle_medium tracking-[0.9px]",children:"Important note"}),s?(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/open-arrow-gray.svg",alt:"open",className:"w-[20px] pt-[8px]"}):(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/close-arrow-gray.svg",alt:"close",className:"w-[20px] pt-[5px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"text-base w-[324px] sm:w-[95%] mt-[-10px]",children:(0,a.jsxs)("ul",{className:"size-sub-paragraph sm:pb-[30px] pb-[20px]!font-basier_circle_regular pr-4 sm:pr-0",children:[(0,a.jsxs)("li",{children:["This is an electronic gift card. ",(0,a.jsx)("span",{className:"text-[#3C3C3Brem] !font-basier_circle_medium",children:"You will receive an email with the gift card code."})]}),(0,a.jsx)("li",{children:"This code is only redeemable on the Cradlewise website for purchases in ".concat("en-US"===t?"the United States":"en-AU"===t?"Australia":"en-IN"===t?"India":"Canada",".")}),(0,a.jsx)("li",{children:"You can use this code immediately, print it and give it as a gift, or forward the email to the gift recipient."})]})})})]})}}),(0,a.jsx)(f.p,{as:"div",className:"border-b border-[#929292] mt-0 sm:mt-5",children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{id:"whats_included",className:(0,v.Z)("flex justify-between w-full px-0 py-5",{"":!s}),children:[(0,a.jsx)("p",{className:"!font-basier_circle_medium tracking-[0.9px]",children:"Terms and Conditions"}),s?(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/open-arrow-gray.svg",alt:"open",className:"w-[20px] pt-[8px]"}):(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/close-arrow-gray.svg",alt:"close",className:"w-[20px] pt-[5px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"text-base w-[324px] sm:w-[95%] mt-[-10px]",children:(0,a.jsxs)("ul",{className:"size-sub-paragraph sm:pb-[30px] pb-[20px] !font-basier_circle_regular pr-4 sm:pr-0",children:[(0,a.jsx)("li",{children:"The gift card must be purchased individually."}),(0,a.jsx)("li",{children:"The funds on the eGift card do not expire."}
1),(0,a.jsx)("li",{children:"This eGift card is non-refundable, cannot be exchanged for cash in part or full, and is valid for a single transaction only."})]})})})]})}})]}),[_,k]=(0,r.useState)([]),[F,B]=(0,r.useState)(!1),[S,P]=(0,r.useState)([]),I=(e,s)=>{n(e.node.id),_.push(e),k(_),d.push(s),o(d);let t={};t.variantId=e.node.id,t.quantity=1,t.value=parseInt(e.node.presentmentPrices.edges[0].node.price.amount),S.push(t),P(S)},A=e=>{e>-1&&(_.splice(e,1),d.splice(e,1),S.splice(e,1)),k(_),o(d),P(S)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.PB,{title:"Gift Card | Cradlewise",description:"Buy Cradlewise gift card",canonical:"https://cradlewise.com/product/gift-card",openGraph:{title:s.title,description:s.description,url:"https://cradlewise.com/product/gift-card",type:"product page"}}),(0,a.jsx)(c.Qb,{productName:s.title,images:["https://assets.cradlewise.com/images/products/fitted-sheet/Cradlewise-Crib-Fitted-Sheet-6-rotated.jpeg","https://assets.cradlewise.com/images/products/fitted-sheet/20220106_111346.jpeg","https://assets.cradlewise.com/images/products/fitted-sheet/20220106_105323.jpeg"].map(e=>"https://cradlewise.com".concat(e)),description:s.description,sku:"gift-card",offers:{price:s.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,priceCurrency:s.variants.edges[0].node.presentmentPrices.edges[0].node.price.currencyCode,url:"https://cradlewise.com/product/gift-card",itemCondition:"https://schema.org/UsedCondition",availability:"https://schema.org/InStock",seller:{name:"Cradlewise"}}}),(0,a.jsx)("div",{className:"sm:mt-[-25px]",children:(0,a.jsxs)("div",{className:"overflow-hidden w-full ",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/e-gift/egift-card-bg-fm.png",alt:"bg",className:"w-full h-auto sm:hidden"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/e-gift/egift-new-bg.webp",alt:"bg",className:"w-full h-auto sm:block hidden"}),(0,a.jsxs)("div",{className:"absolute top-[29%] w-full sm:top-[25%] px-5 translate-y-[-50%]",children:[(0,a.jsxs)("h2",{className:"flex center !text-[30px] !leading-[45px] sm:!text-[44px] sm:!leading-[54px]",children:["They’re gonna love it ",(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/bfcm-2023/red-heart.png",alt:"red heart",className:"w-[30px] h-[26px] ml-2"})]}),(0,a.jsx)("p",{className:"text-center pb-5 pt-2 sm:py-5 sm:w-[680px] sm:mx-auto ",children:"Give the new parent in your life the gift of better sleep for the entire family. Cradlewise is the only crib that soothes babies before they start crying, offering a complete sleep solution from 0-24 month."}),(0,a.jsx)("a",{href:"#cards",id:"eGiftCard_hero_viewGiftCards",children:(0,a.jsx)("button",{className:"cradleBtn w-full sm:w-[318px] mx-auto",children:"VIEW GIFT CARDS"})})]})]}),(0,a.jsx)("div",{className:"newContainer sm:!w-[1040px] mx-auto",children:(0,a.jsxs)("div",{className:"grid sm:grid-cols-3 gap-x-10 sm:mt-[100px]",children:[(0,a.jsxs)("div",{className:"flex center !justify-start flex-col sm:w-[320px] mt-10 sm:mt-0",children:[(0,a.jsx)(N(),{width:98,height:46,src:"https://assets.cradlewise.com/images/".concat("en-IN"===t?"egift-prices-en-IN.webp":"egift-prices.webp"),alt:"bg"}),(0,a.jsx)("h2",{className:"my-[15px] !text-[25px] sm:!text-[30px] sm:!leading-[40px] !leading-[35px]",children:"Every amount helps"}),(0,a.jsx)("p",{className:"text-center",children:"Available in a range of prices, Cradlewise gift cards are a great way for the people in your life to contribute to your new smart crib."})]}),(0,a.jsxs)("div",{className:"flex center !justify-start flex-col sm:w-[320px] mt-10 sm:mt-0",children:[(0,a.jsx)(N(),{width:116,height:46,src:"https://assets.cradlewise.com/images/egift-icon.webp",alt:"bg"}),(0,a.jsx)("h2",{className:"my-[15px] !text-[25px] sm:!text-[30px] sm:!leading-[40px] !leading-[35px]",children:"Keep it simple"}),(0,a.jsx)("p",{className:"text-center",children:"Whereas “group gifting” can require people to discuss who is paying what, Cradlewise gift cards can be purchased independently."})]}),(0,a.jsxs)("div",{className:"flex center !justify-start flex-col sm:w-[320px] mt-10 sm:mt-0",children:[(0,a.jsx)(N(),{width:44,height:40,src:"https://assets.cradlewise.com/images/egift-heart.webp",alt:"bg"}),(0,a.jsxs)("h2",{className:"my-[15px] !text-[25px] sm:!text-[30px] sm:!leading-[40px] !leading-[35px] text-center",children:["Loved ones can ",(0,a.jsx)("br",{}),"feel involved"]}),(0,a.jsx)("p",{className:"text-center",children:"Preparing to welcome a new baby is an exciting time for all. Sharing details about Cradlewise can help friends and family members feel involved."})]})]})}),(0,a.jsx)("div",{className:"mt-10 sm:pt-6 relative",id:"cards",children:(0,a.jsxs)("div",{className:"flex flex-col center",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/e-gift/egift-bg-top-fm.webp",alt:"bg",className:"w-full h-auto sm:hidden z-[-1]"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/e-gift/egift-bg-top-fd.webp",alt:"bg",className:"w-full h-auto sm:block hidden z-[-1]"}),(0,a.jsx)("div",{className:"w-full overflow-hidden bg-[#FFF1EF] mb-[-50px] mt-[-100px] z-[1]",children:(0,a.jsxs)("div",{className:"grid sm:grid-cols-2 sm:!w-[1040px] sm:mx-auto",children:[(0,a.jsx)("div",{className:"w-[350px] h-[320px] sm:w-[500px] curveCorners bg-[#fff] mx-auto mt-10 flex center",children:(0,a.jsx)("div",{className:"".concat(p?"horizontal-shake-gift-card":""," "),children:(0,a.jsx)("div",{className:"flex !flex-col center",children:(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-x-[30px] gap-y-[30px] sm:gap-x-[20px] sm:gap-y-[40px] sm:w-[430px]",children:s.variants.edges.map((e,s)=>{var i,l,r;return(0,a.jsx)("div",{id:"".concat(e.node.id),className:"".concat(d.includes(s)?"pointer-events-none bg-[#D0D0D0] text-[#FFF]":"bg-[#F2EEE5] text-[#FF595A]"," sm:hover:bg-[#FF595A] sm:hover:text-[#FFF] curs
1or-pointer w-[120px] sm:w-[130px] h-[70px] rounded-[10px] flex justify-center items-center mr-1.5 overflow-hidden"),onClick:()=>{B(!0),x(!m),I(e,s)},children:(0,a.jsxs)("h2",{className:"!font-recoleta_alt_semibold !text-[20px]",children:["en-IN"==t?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"en-CA"===t?"C$":"$"}),new Intl.NumberFormat(t).format(null===(i=null===(l=e.node.presentmentPrices)||void 0===l?void 0:l.edges[0])||void 0===i?void 0:null===(r=i.node)||void 0===r?void 0:r.price.amount)]})},"".concat(e.node.id))})})})})}),(0,a.jsxs)("div",{className:"sm:w-[500px] sm:ml-10",children:[(0,a.jsx)("h2",{className:"!text-[25px] sm:!text-[30px] !leading-[40px] mt-10 px-5 sm:px-0",children:_.length>0?"E-gift card amount":"Select e-gift card amount"}),_.length>0&&(0,a.jsx)("div",{className:"w-full px-5 my-10  sm:px-0",children:(0,a.jsx)("div",{className:"flex !flex-col",children:(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-x-[30px] gap-y-[30px] sm:gap-x-[40px] sm:gap-y-[40px] w-[270px] sm:w-auto",children:_.map((e,s)=>{var i,l,r;return(0,a.jsxs)("div",{id:"".concat(e.node.id+"egift"),className:"".concat(m," relative bg-[#FFF] text-[#FF595A] cursor-pointer w-[120px] sm:w-[130px] h-[70px] rounded-[10px] flex justify-center items-center mr-1.5"),children:[(0,a.jsxs)("h2",{className:"!font-recoleta_alt_semibold !text-[20px]",children:["en-IN"==t?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"en-CA"===t?"C$":"$"}),new Intl.NumberFormat(t).format(null===(i=null===(l=e.node.presentmentPrices)||void 0===l?void 0:l.edges[0])||void 0===i?void 0:null===(r=i.node)||void 0===r?void 0:r.price.amount)]}),(0,a.jsx)("div",{className:"absolute -top-[5px] -right-[5px] z-[99]",onClick:()=>{A(s),x(!m)},children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,a.jsx)("circle",{cx:"10",cy:"10",r:"10",fill:"#D9D9D9"}),(0,a.jsx)("line",{x1:"0.75",y1:"-0.75",x2:"10.1026",y2:"-0.75",transform:"matrix(0.675725 0.737154 -0.675725 0.737154 6 7)",stroke:"#3C3C3B","stroke-width":"1.5","stroke-linecap":"round"}),(0,a.jsx)("line",{x1:"0.75",y1:"-0.75",x2:"10.1026",y2:"-0.75",transform:"matrix(0.675725 -0.737154 0.675725 0.737154 6.66666 15)",stroke:"#3C3C3B","stroke-width":"1.5","stroke-linecap":"round"})]})})]},"".concat(e.node.id+"egift"))})})})}),(0,a.jsx)("div",{className:"mx-auto",children:(0,a.jsx)(z,{product:s,addToCart:S,getVariantGiftCardError:y,image:"https://assets.cradlewise.com/images/products/gift-card/gift-card-main.pngs",GiftCardSelected:_.length>0})}),(0,a.jsx)("div",{children:(0,a.jsx)(C,{})})]})]})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/e-gift/egift-bg-bottom-fm.webp",alt:"bg",className:"w-full h-auto sm:hidden z-[-1]"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/e-gift/egift-bg-bottom-fd.webp",alt:"bg",className:"w-full h-auto sm:block hidden z-[-1]"})]})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row center mt-[40px] mb-[70px] sm:mb-[100px] sm:mt-[60px] newContainer sm:!w-[1040px] mx-auto",children:[(0,a.jsx)("div",{className:"w-full sm:w-[500px]",children:(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/egift-bottom-img.webp",alt:"img",width:500,height:500})}),(0,a.jsxs)("div",{className:"w-full sm:w-[500px] sm:pl-10 pt-5 sm:pt-0",children:[(0,a.jsx)("h2",{className:"!text-[20px] !leading-[30px] sm:!text-[35px] sm:!leading-[45px] !font-recoleta_alt_regular",children:"“We were able to kind of go through everything from our research and then passionately sell it to our friends and family when we were already sold [ourselves].”"}),(0,a.jsx)("p",{className:"!font-basier_circle_medium !text-[14px] !leading-[16px] sm:!text-[16px] sm:!leading-[20px] tracking-[5px] pt-6 uppercase",children:"Pamela marie hobby"})]})]})]})})]})};var Z=t(5434);let $=e=>{let{showModalHandle:s}=e,{locale:t}=(0,n.useRouter)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"bg-[#000000] w-full h-full fixed top-0 z-[1000000] bg-opacity-75 ",children:(0,a.jsxs)("div",{className:"pt-[20px] sm:pt-[30px] pb-[50px] !z-[50] overflow-auto sm:overflow-none w-full h-[100%] sm:w-[890px] sm:h-[475px] bg-[#fff] absolute bottom-0 sm:top-[50%] sm:left-[50%] sm:translate-x-[-50%] sm:translate-y-[-50%] sm:rou
1nded-[19px]",children:[(0,a.jsx)("div",{className:"flex justify-end px-5 sm:px-10 ",children:(0,a.jsx)(N(),{width:12,height:12,src:"https://assets.cradlewise.com/svgs/modal-close-icon.svg",alt:"modal-close-icon",className:"cursor-pointer","aria-hidden":"true",onClick:()=>s(!1)})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row justify-center pt-[70px] sm:pt-[15px] px-5 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-start",children:[(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/svgs/protection-plan-logo.svg",width:32,height:33,alt:"protection-plan-logo"}),(0,a.jsx)("h5",{className:"!font-recoleta_alt_semibold ml-[13px] pt-[2px]",children:"CradlewiseProtect"})]}),(0,a.jsxs)("div",{className:"flex flex-row pt-0 sm:pt-[5px] pl-[45px] sm:pl-0",children:[(0,a.jsx)("p",{className:"footer-text pl-[11px] pr-[11px] !text-[14px] hidden sm:block",children:"|"}),(0,a.jsx)("p",{className:"footer-text !font-basier_circle_medium tracking-[0.14em] sm:tracking-[0.2em] ",children:"FREQUENTLY ASKED QUESTIONS"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-start items-center pt-[60px] sm:pt-[30px] px-5 sm:px-0",children:[(0,a.jsx)("div",{className:"w-full sm:w-[60%]",children:(0,a.jsx)(f.p,{children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{className:(0,v.Z)("flex justify-between w-full  text-lg font-medium text-gray-900",{"border-b border-[#d4d4d4]":!s}),children:[(0,a.jsx)("p",{className:"!text-[14px] !font-basier_circle_medium !text-[#3C3C3B] mb-[13px] !leading-[22px] text-left",children:"How do I file a claim?"}),s?(0,a.jsx)(Z.rWj,{className:"w-6 h-6 text-[#3C3C3B]  mt-[2px]"}):(0,a.jsx)(Z.Ix0,{className:"w-6 h-6 text-[#3C3C3B]  mt-[2px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"text-base border-b border-[#d4d4d4]   pb-[8px]",children:(0,a.jsxs)("p",{className:"!text-[14px] !leading-[20px] w-[90%]",children:["You can reach out to us through ",(0,a.jsx)("a",{className:"underline",href:"mailto:[email protected]",children:"[email protected]"})," or call us at ",(0,a.jsx)("a",{className:"underline",href:"tel:+1(888)717-2735",children:"+1 (888) 717-2735"})]})})})]})}})}),(0,a.jsx)("div",{className:"w-full sm:w-[60%]",children:(0,a.jsx)(f.p,{children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{className:(0,v.Z)("flex justify-between w-full  text-lg font-medium text-gray-900",{"border-b border-[#d4d4d4]":!s}),children:[(0,a.jsx)("p",{className:"!text-[14px] !font-basier_circle_medium !text-[#3C3C3B] mt-[13px] mb-[13px] !leading-[22px] text-left",children:"What happens in the event that I return my product?"}),s?(0,a.jsx)(Z.rWj,{className:"w-6 h-6 text-[#3C3C3B] mt-[13px]"}):(0,a.jsx)(Z.Ix0,{className:"w-6 h-6 text-[#3C3C3B] mt-[13px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"text-base border-b border-[#d4d4d4] pb-[8px] ",children:(0,a.jsxs)("p",{className:"!text-[14px] !leading-[20px] w-[90%]",children:["Your plan will be automatically canceled and the full amount will be refunded if you return your crib within our ",d.$K[t],"-night-free-trial return policy. If you return your product within the ",d.$K[t],"-night-free-trial or cancel before your product is delivered, your plan will automatically be canceled and refunded. CradlewiseProtect Plans cannot be canceled after the free trial period."]})})})]})}})}),(0,a.jsx)("div",{className:"w-full sm:w-[60%]",children:(0,a.jsx)(f.p,{children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{className:(0,v.Z)("flex justify-between w-full  text-lg font-medium text-gray-900",{"border-b border-[#d4d4d4]":!s}),children:[(0,a.jsx)("p",{className:"!text-[14px] !font-basier_circle_medium !text-[#3C3C3B] mt-[13px] mb-[13px] !leading-[22px] text-left w-[90%]",children:"This purchase is a gift. Can I give the protection plan to the recipient? "}),s?(0,a.jsx)(Z.rWj,{className:"w-6 h-6 text-[#3C3C3B]  mt-[13px]"}):(0,a.jsx)(Z.Ix0,{className:"w-6 h-6 text-[#3C3C3B]  mt-[13px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"text-base border-b border-[#d4d4d4]   pb-[8px] ",children:(0,a.jsx)("p",{className:"!text-[14px] !leading-[20px] w-[90%]",children:"Yes, the recipient has to just let us know the order ID and your email ID while claiming. "})})})]})}})}),(0,a.jsx)("div",{className:"w-full sm:w-[60%]",children:(0,a.jsx)(f.p,{children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{className:(0,v.Z)("flex justify-between w-full  text-lg font-medium text-gray-900",{"border-b border-[#d4d4d4]":!s}),children:[(0,a.jsx)("p",{className:"!text-[14px] !font-basier_circle_medium !text-[#3C3C3B] mt-[13px] mb-[13px] !leading-[22px] text-left",children:"What’s covered in the standard 1-year warranty? "}),s?(0,a.jsx)(Z.rWj,{className:"w-6 h-6 text-[#3C3C3B]  mt-[13px]"}):(0,a.jsx)(Z.Ix0,{className:"w-6 h-6 text-[#3C3C3B]  mt-[13px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"text-base border-b border-[#d4d4d4]   pb-[8px] ",children:(0,a.jsxs)("p",{className:"!text-[14px] !leading-[20px] w-[90%]",children:["All manufacturing defects are covered under the standard 1-year warranty. You can read more about it  ",(0,a.jsx)("a",{href:"/".concat(t,"/legal/warranty/"),target:"_blank",className:"underline",children:"here."})]})})})]})}})}),(0,a.jsx)("div",{className:"w-full sm:w-[60%]",children:(0,a.jsx)(f.p,{children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{className:(0,v.Z)("flex justify-between w-full  text-lg font-medium text-gray-900",{"border-b border-[#d4d4d4]":!s}),children:[(0,a.jsx)("p",{className:"!text-[14px] !font-basier_circle_medium !text-[#3C3C3B] mt-[13px] mb-[13px] !leading-[22px] text-left",children:"When does the protection plan period start?"}),s?(0,a.jsx)(Z.rWj,{className:"w-6 h-6 text-[#3C3C3B]  mt-[13px]"}):(0,a.jsx)(Z.Ix0,{className:"w-6 h-6 text-[#3C3C3B]  mt-[13px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"text-base border-b border-[#d4d4d4]  pb-[8px] ",children:(0,a.jsx)("p",{className:"!text-[14px] !leading-[20px] w-[80%]",children:"Protection plan period starts from the day of delivery of your product."})})})]})}})}),(0,a.jsx)("div",{className:"flex justify-start w-full sm:w-[60%] pt-[24px] sm:pt-[18px]",children:(0,a.jsx)("a",{href:"/".concat(t,"/legal/warranty/#cradlewise-protect-plan"),target:"_blank",children:(0,a.jsx)("p",{className:"footer-text underline text-[#929292] cursor-pointer",children:"Terms and Conditions"})})})]})]})})})};function q(){return(0,a.jsxs)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"20",cy:"20.5",r:"20",fill:"#45A98B"}),(0,a.jsx)("path",{d:"M11.6001 24.1001H14.0001C14.6628 24.1001 15.2001 24.6374 15.2001 25.3001V27.7001C15.2001 28.3628 14.6628 28.9001 14.0001 28.9001H11.6001V20.5001C11.6001 15.8609 15.3609 12.1001 20.0001 12.1001C24.6393 12.1001 28.4001 15.8609 28.4001 20.5001V28.9001H26.0001C25.3374 28.9001 24.8001 28.3628 24.8001 27.7001V25.3001C24.8001 24.6374 25.3374 24.1001 26.0001 24.1001H28.4001",stroke:"white","stroke-width":"2","stroke-linejoin":"round"})]})}function W(){return(0,a.jsxs)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"20",cy:"20.5",r:"20",fill:"#45A98B"}),(0,a.jsx)("path",{d:"M14.9538 13.2997L10.3999 17.9152M10.3999 17.9152L14.9538 22.5307M10.3999 17.9152L24.9332 17.9152C27.5106 17.9152 29.5999 20.0045 29.5999 22.5819L29.5999 23.033C29.5999 25.6104 27.5106 27.6997 24.9332 27.6997L19.9999 27.6997",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}function G(){return(0,B.s_)()?(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",children:[(0,a.jsx)("circle",{cx:"20",cy:"20.5",r:"20",fill:"#45A98B"}),(0,a.jsx)("path",{d:"M20.7038 31.1678C20.2834 31.1678 19.8951 30.9427 19.6862 30.5779L15.0302 22.4484C14.9487 22.3061 14.9058 22.1448 14.9058 21.9807V21.6354C14.9058 21.3063 15.1725 21.0396 15.5016 21.0396C16.4584 21.0396 17.2618 20.9493 17.9117 20.7688C18.5797 20.5882 19.1033 20.2904 19.4824 19.8751C19.8615 19.4599 20.0872 18.8912 20.1594 18.169H15.7724C15.2938 18.169 14.9058 17.7811 14.9058 17.3025C14.9058 
116.8239 15.2938 16.4359 15.7724 16.4359H20.1324C20.006 15.7679 19.7532 15.2263 19.3741 14.811C18.995 14.3777 18.4804 14.0618 17.8305 13.8632C17.1986 13.6646 16.4223 13.5653 15.5016 13.5653H14.7494C14.2708 13.5653 13.8828 13.1773 13.8828 12.6987C13.8828 12.2201 14.2708 11.8322 14.7494 11.8322H25.2506C25.7292 11.8322 26.1172 12.2201 26.1172 12.6987C26.1172 13.1773 25.7292 13.5653 25.2506 13.5653H20.9989C21.4142 13.9083 21.7572 14.3145 22.028 14.7839C22.2988 15.2533 22.4703 15.804 22.5425 16.4359H25.2506C25.7292 16.4359 26.1172 16.8239 26.1172 17.3025C26.1172 17.7811 25.7292 18.169 25.2506 18.169H22.5967C22.4703 19.487 21.9648 20.516 21.0802 21.2562C20.2136 21.9784 19.0582 22.4388 17.6139 22.6373L21.7065 29.3871C22.1804 30.1686 21.6178 31.1678 20.7038 31.1678Z",fill:"white"})]}):(0,a.jsxs)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"20",cy:"20.5",r:"20",fill:"#45A98B"}),(0,a.jsx)("path",{d:"M24.7778 15.5556C24.5566 14.928 24.1527 14.3811 23.6181 13.985C23.0834 13.589 22.4425 13.362 21.7778 13.3333H17.3333C16.4493 13.3333 15.6014 13.6845 14.9763 14.3096C14.3512 14.9348 14 15.7826 14 16.6667C14 17.5507 14.3512 18.3986 14.9763 19.0237C15.6014 19.6488 16.4493 20 17.3333 20H21.7778C22.6618 20 23.5097 20.3512 24.1348 20.9763C24.7599 21.6014 25.1111 22.4493 25.1111 23.3333C25.1111 24.2174 24.7599 25.0652 24.1348 25.6904C23.5097 26.3155 22.6618 26.6667 21.7778 26.6667H17.3333C16.6686 26.638 16.0277 26.411 15.493 26.015C14.9584 25.6189 14.5545 25.072 14.3333 24.4444M19.5556 10V13.3333M19.5556 26.6667V30",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}function V(){return(0,a.jsxs)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"20",cy:"20.5",r:"20",fill:"#45A98B"}),(0,a.jsx)("path",{d:"M13.1428 25.0288H12.2285C11.2186 25.0288 10.3999 24.2101 10.3999 23.2002V14.9716C10.3999 13.9617 11.2186 13.1431 12.2285 13.1431H20.457C21.4669 13.1431 22.2856 13.9617 22.2856 14.9716V23.2002C22.2856 24.2101 21.4669 25.0288 20.457 25.0288H19.5428M23.657 25.0288H23.1999C22.695 25.0288 22.2856 24.6194 22.2856 24.1145V16.3431C22.2856 15.8381 22.695 15.4288 23.1999 15.4288H25.5033C25.7811 15.4288 26.0438 15.555 26.2173 15.7719L29.3995 19.7498C29.5292 19.9119 29.5999 20.1133 29.5999 20.3209V24.1145C29.5999 24.6194 29.1906 25.0288 28.6856 25.0288M18.6285 24.5716C18.6285 25.834 17.6051 26.8574 16.3428 26.8574C15.0804 26.8574 14.057 25.834 14.057 24.5716C14.057 23.3093 15.0804 22.2859 16.3428 22.2859C17.6051 22.2859 18.6285 23.3093 18.6285 24.5716ZM28.2285 24.5716C28.2285 25.834 27.2051 26.8574 25.9428 26.8574C24.6804 26.8574 23.657 25.834 23.657 24.5716C23.657 23.3093 24.6804 22.2859 25.9428 22.2859C27.2051 22.2859 28.2285 23.3093 28.2285 24.5716Z",stroke:"white","stroke-width":"2","stroke-linecap":"round"})]})}function Y(){return(0,a.jsxs)("svg",{width:"30",height:"31",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{x:"0.5",y:"1",width:"29",height:"29",rx:"14.5",fill:"#3C3C3B"}),(0,a.jsx)("rect",{x:"0.5",y:"1",width:"29",height:"29",rx:"14.5",stroke:"#3C3C3B"}),(0,a.jsx)("path",{d:"M13.6922 21C13.4682 21 13.3722 20.92 13.3722 20.776V20.728C13.3722 20.376 14.1722 20.248 14.1722 19.56V12.024C14.1722 11.048 13.1162 11.528 13.1162 11V10.936C13.1162 10.776 13.2442 10.68 13.4842 10.568L15.4362 9.704C15.9962 9.464 16.3322 9.704 16.3322 10.024C16.3322 10.408 15.9482 10.472 15.9482 11.256V19.56C15.9482 20.248 16.7962 20.376 16.7962 20.728V20.776C16.7962 20.92 16.6842 21 16.4762 21H13.6922Z",fill:"white"})]})}function K(){return(0,a.jsxs)("svg",{width:"30",height:"31",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{y:"0.5",width:"30",height:"30",rx:"15",fill:"#3C3C3B"}),(0,a.jsx)("path",{d:"M18.9927 18.296C19.1687 18.296 19.2967 18.424 19.2487 18.616L18.7847 20.648C18.7207 20.84 18.5927 21 18.3847 21H11.1847C10.9927 21 10.8327 20.872 10.8327 20.68V20.52C10.8327 17.224 16.6887 15.288 16.6887 12.36C16.6887 11.048 15.7607 10.28 14.9607 10.28C12.9447 10.28 13.2647 13.112 11.9207 13.112C11.3607 13.112 10.9447 12.776 10.9447 12.184C10.9447 10.968 12.4967 9.48 14.8647 9.48C17.0247 9.48 18.5927 10.472 18.5927 12.52C18.5927 15.832 13.0567 17.096 12.4487 19.624H17.3127C18.3527 19.624 18.4167 18.296 18.8487 18.296H18.9927Z",fill:"white"})]})}function Q(){return(0,a.jsxs)("svg",{width:"30",height:"31",viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{y:"0.5",width:"30",height:"30",rx:"15",fill:"#3C3C3B"}),(0,a.jsx)("path",{d:"M15.1969 14.456C17.4369 14.488 18.9409 15.784 18.9409 17.672C18.9409 19.592 17.4049 21.16 14.7329 21.16C12.1089 21.16 10.9729 19.928 10.9729 19.048C10.9729 18.456 11.2929 18.072 11.8369 18.072C13.0369 18.072 12.8609 20.36 14.8
1129 20.36C16.1249 20.36 17.0369 19.464 17.0369 18.056C17.0369 16.28 15.9649 15.336 14.5729 15.336H14.3489C13.9489 15.336 13.7729 14.984 14.0289 14.664L16.7009 11.288H11.5489C11.3089 11.288 11.1489 11.16 11.1489 10.904V9.992C11.1489 9.752 11.2929 9.64 11.5329 9.64H18.5089C18.7329 9.64 18.8609 9.752 18.8609 9.944V10.12C18.8609 10.328 18.7969 10.456 18.5729 10.712L15.1969 14.456Z",fill:"white"})]})}var X=t(58821);let J=e=>{let{product:s,locale:t}=e,i=new Date,n=new Date(i.getTime()-57888e5),[c,o]=(0,r.useState)(0),{state:m,dispatch:x}=r.useContext(p.A9),[u,g]=(0,r.useState)(""),[f,w]=(0,r.useState)(""),[v,j]=(0,r.useState)(""),[b,y]=(0,r.useState)(!1),[C,_]=(0,r.useState)(!1),[k,F]=(0,r.useState)(""),[S,P]=(0,r.useState)(!1),[I,A]=(0,r.useState)(!1),[L,E]=(0,r.useState)({}),[D,M]=(0,r.useState)([]),[T,R]=(0,r.useState)([]),[H,U]=(0,r.useState)({}),[z,O]=(0,r.useState)(""),[Z,J]=(0,r.useState)(new Date),[ee,es]=(0,r.useState)(!1),[et,ea]=(0,r.useState)(!1),[ei,el]=(0,r.useState)(""),[er,en]=(0,r.useState)(""),[ec,ed]=(0,r.useState)(""),[eo,em]=(0,r.useState)(""),[ex,ep]=(0,r.useState)(""),[eh,eu]=(0,r.useState)(""),[eg,ef]=(0,r.useState)(""),[ew,ev]=(0,r.useState)(""),[ej,eb]=(0,r.useState)(""),[eN,ey]=(0,r.useState)(!1),[eC,e_]=(0,r.useState)(!1);(0,r.useEffect)(()=>{"en-IN"===t?e_(!0):e_(!1)},[]);let ek=e=>{e.target.value&&j(""),e.target.value.length<=5&&O(e.target.value)},eF=e=>{e.target.value&&w(""),F(e.target.value)};(0,r.useEffect)(()=>{"Order ID and Email ID not matched"==L.message?(j(""),w("Order ID and Email ID not matched"),g(""),es(!1),eB()):"success"==L.message&&Object.keys(L).length>0&&(0==L.apiData.orders.length?(j("Order not found"),w(""),g(""),es(!1),eB()):(M(L.apiData.orders[0].line_items),ed(L.apiData.orders[0].email),U(L.apiData.orders[0].shipping_address),J(L.apiData.orders[0].closed_at),es(!1)))},[L]),(0,r.useEffect)(()=>{let e=D.some(e=>e.title.includes("Cradlewise Smart Crib")),s=D.some(e=>e.title.includes("Cradlewise Smart Crib")&&"fulfilled"===e.fulfillment_status);ec&&(ec.toLocaleLowerCase()==k.toLocaleLowerCase()?e?Z&&s&&new Date(Z).getTime()<n.getTime()?(g("Sorry, your crib is past the 60-day eligibility period."),eB()):(g(""),eS()):(g("You have not purchased a Cradlewise Smart Crib with this order ID"),eB()):(w("Order ID and Email ID not matched"),j(""),g(""),eB()))},[ec,ee]),(0,r.useEffect)(()=>{Object.keys(H).length>0?(el(H.first_name),en(H.last_name),ev(H.address1),eb(H.address2),ef(H.phone),em(H.city),ep(H.zip),eu(H.country)):(el(""),en(""),ev(""),eb(""),ef(""),em(""),ep(""),eu(""))},[H]);let eB=()=>{E(""),M([]),U({}),ed(""),es(!1)},eS=()=>{var e=[];D.map((s,t)=>{s.title.includes("Cradlewise Smart Crib")&&(e.push(s),s.fulfillable_quantity>1&&e.push(s)),("Clyde Protection Plan"==s.title||"CradlewiseProtect"==s.title)&&o(s.quantity)}),R(e),e.length>0?(_(!0),g("")):(g("You have not purchased a Cradlewise Smart Crib with this order ID"),eB())},eP=async(e,s)=>{let a="".concat(T.length>1?"#1":"").concat(z),i=(0,l.lA)(t);if(!i){console.error("Protection plan variant not found for locale:",t);return}let r=[{key:"CribVariant",value:s.variant_title?s.variant_title:"$0 Saved"},{key:"CribId",value:a}];es(!0),localStorage.setItem("AddressDetails",JSON.stringify({address1:ew,address2:ej,city:eo,country:eh,firstName:ei,lastName:er,phone:eg,zip:ex}));let n=await h.Lp.addLinesToCart(m.cartId,[{variantId:i,quantity:1,attributes:r}],t);x({type:"cart_info",payload:{cartId:m.cartId,cart_data:n.cart.lines.edges,cart_total_data:n.cart.cost.subtotalAmount,checkout_url:n.cart.checkoutUrl,showCart:!0}}),es(!1)};(0,r.useEffect)(()=>{z.length>=4&&k.length>5?y(!0):y(!1)},[z,k]),(0,r.useEffect)(()=>{m.cartList.length>0?m.cartList.map((e,s)=>{e.attributes[1]&&e.attributes[1].value=="".concat(T.length>1?"#1":"").concat(z)?A(!0):A(!1)}):A(!1)},[m,T.length]),(0,r.useEffect)(()=>{m.cartList.length>0?m.cartList.map((e,s)=>{e.attributes[1]&&e.attributes[1].value=="".concat(T.length>1?"#2":"").concat(z)?P(!0):P(!1)}):P(!1)},[m,T.length]);let eI=e=>{ey(e)};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"sm:mt-[-24px]",children:[eN?(0,a.jsx)($,{showModalHandle:eI}):null,(0,a.jsxs)("div",{id:"postPurchase",children:[(0,a.jsxs)("div",{className:" bg-no-repeat bg-cover sm:bg-top bg-center bg-[url('https://assets.cradlewise.com/images/cradlewise-protect/cw-protect-hero-fm.webp')] sm:bg-[url('https://assets.cradlewise.com/images/cradlewise-protect/cw-protect-hero-fd.webp')] h-[550px] flex items-center ",children:[(0,a.jsxs)("div",{className:"newContainer w-full sm:block hidden",children:[(0,a.jsxs)("div",{className:" w-1/2 !flex !flex-col !items-center",children:[(0,a.jsxs)("div",{className:"flex items-center w-[500px]",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/cradlewise-protect/Monogram.png",alt:"monogram",className:"w-[30px] sm:w-[33px] mr-1"}),(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[30px] !leading-[40px]",children:"CradlewiseProtect"})]}),(0,a.jsx)("h1",{className:"!font-recoleta_alt_regular w-[505px] !text-[30px] !leading-[40px] sm:!text-[45px] sm:!leading-[55px]",children:"2 years of protection and care for better sleep"}),C?(0,a.jsxs)("div",{className:"mt-[40px] w-[500px] flex flex-col",children:[T.length!=c?(0,a.jsx)("h4",{className:"uppercase  curning !text-[14px] sm:!text-[16
1px] sm:!leading-[26px] text-[#45A98B] tracking-[0.8px]",children:"You are eligible"}):(0,a.jsx)("h4",{className:"uppercase curning !text-[14px] sm:!text-[16px] sm:!leading-[26px] text-[#45A98B]",children:"ALREADY PURCHASED"}),(0,a.jsxs)("p",{className:"curning !text-[18px] !leading-[28px]",children:[k,(0,a.jsx)("br",{}),"#",z]})]}):(0,a.jsx)("div",{className:"mt-[40px] w-[500px]",children:(0,a.jsxs)("button",{onClick:()=>(0,X.dD)("cw-protect-form"),className:"cradleBtn mt-[10px] !h-[50px] !w-[306px]",children:["Protect for"," ","en-US"===t?"$129":"en-IN"===t?" ₹12,900":"en-AU"===t?"$199":"C$190"]})})]}),(0,a.jsx)("div",{className:"w-1/2"})]}),(0,a.jsxs)("div",{className:"block sm:hidden newContainer py-[30px] h-full flex flex-col items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsxs)("div",{className:"flex center",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/cradlewise-protect/Monogram.png",alt:"monogram",className:"w-[30px] mr-1"}),(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[30px] !leading-[40px]",children:"CradlewiseProtect"})]}),(0,a.jsx)("h1",{className:"!font-recoleta_alt_regular text-center !text-[30px] !leading-[40px] sm:!text-[45px] sm:!leading-[55px]",children:"2 years of protection and care for better sleep"})]}),(0,a.jsx)("div",{className:"flex-col center",children:C?(0,a.jsxs)("div",{className:"mt-[40px] flex flex-col",children:[T.length!=c?(0,a.jsx)("h4",{className:"uppercase  curning !text-[14px] sm:!text-[16px] sm:!leading-[26px] text-[#45A98B] tracking-[0.8px] text-center",children:"You are eligible"}):(0,a.jsx)("h4",{className:"uppercase curning !text-[14px] sm:!text-[16px] sm:!leading-[26px] text-[#45A98B] text-center",children:"already purchased"}),(0,a.jsxs)("p",{className:"curning !text-[18px] flex items-center !leading-[28px]",children:[k," | #",z]})]}):(0,a.jsxs)("button",{onClick:()=>(0,X.dD)("cw-protect-form"),className:"cradleBtn mt-[10px] !h-[50px] !w-[306px]",children:["Protect for"," ","en-US"===t?"$129":"en-IN"===t?" ₹12,900":"C$190"]})})]})]}),(0,a.jsxs)("div",{className:"",children:[(0,a.jsxs)("div",{className:"sm:mt-[70px] sm:mb-[104px] mt-[40px] mb-[70px] newContainer",children:[(0,a.jsxs)("h2",{className:"!font-recoleta_alt_medium !text-[30px] !leading-[40px] sm:!text-[40px] sm:!leading-[50px] sm:text-center",children:["Extended warranty that ",(0,a.jsx)("br",{className:"sm:block hidden"}),"goes the extra milestones"]}),(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] sm:text-center mt-[20px]",children:["Know you're covered—select this plan within"," ",(0,a.jsx)("span",{className:"!font-basier_circle_medium",children:"60 days"})," of your smart",(0,a.jsx)("br",{className:"sm:block hidden"})," crib's delivery and enjoy peace of mind for two full years."]}),(0,a.jsxs)("div",{className:"my-[50px] grid grid-cols-1 sm:grid-cols-2 gap-[30px] sm:gap-[40px]",children:[(0,a.jsx)("div",{className:"flex sm:justify-center",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(q,{}),(0,a.jsx)("h3",{className:"mt-[20px] mb-[5px] sm:mb-[10px] !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px]",children:"Expert Support"}),(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] w-[300px] sm:w-full",children:["File claims quickly and easily, and get the support you",(0,a.jsx)("br",{className:"sm:block hidden"})," need 24X7 — whether by phone or chat."]})]})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(W,{}),(0,a.jsx)("h3",{className:"mt-[20px] mb-[5px] sm:mb-[10px] !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px]",children:"Replacement Guarantee"}),(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] w-[300px] sm:w-full",children:["If your Cradlewise crib can't be repaired, we'll replace it.",(0,a.jsx)("br",{className:"sm:block hidden"})," No shipping fees, no hassle."]})]}),(0,a.jsx)("div",{className:"flex sm:justify-center",children:(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(G,{}),(0,a.jsxs)("h3",{className:"mt-[20px] mb-[5px] sm:mb-[10px] !text-[16
1px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),"0 deductibles,"," ",(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),"0 fees"]}),(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] w-[300px] sm:w-full",children:["No need to pay a deductible, fees or file for",(0,a.jsx)("br",{className:"sm:block hidden"})," reimbursement. Worry-free coverage without the extra",(0,a.jsx)("br",{className:"sm:block hidden"})," costs."]})]})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(V,{}),(0,a.jsx)("h3",{className:"mt-[20px] mb-[5px] sm:mb-[10px] !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px]",children:"No annual claim limits"}),(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] w-[300px] sm:w-full",children:["Request service or repair anytime. You're covered",(0,a.jsx)("br",{className:"sm:block hidden"})," every time without the worry of reaching an",(0,a.jsx)("br",{className:"sm:block hidden"})," annual limit."]})]})]}),(0,a.jsx)("div",{className:"sm:flex hidden h-[125px] w-full items-center justify-center mt-[80px] ",children:(0,a.jsxs)("div",{className:"flex items-center justify-between w-full lg:w-[90%] pl-[40px] pr-[80px] rounded-[20px] bg-[#FFF4E0]",children:[(0,a.jsx)("img",{className:"w-[234px] h-[214px] z-[2] mt-[-80px] ",src:"https://assets.cradlewise.com/images/landing-page/buncing-gif-11.gif",alt:"bg"}),(0,a.jsxs)("h1",{className:"!font-recoleta_alt_regular !text-[25px] !leading-[35px] ml-[10px]",children:["Already a"," ",(0,a.jsx)("span",{className:"!font-recoleta_alt_medium",children:"Cradlewise parent?"})]}),(0,a.jsx)("button",{onClick:()=>(0,X.dD)("cw-protect-form"),className:"cradleBtn !h-[50px] !w-[306px]",children:"Check eligibility"})]})})]}),(0,a.jsx)("div",{className:"block sm:hidden bg-[#FFF4E0] h-[282px] flex items-center ",children:(0,a.jsxs)("div",{className:"flex flex-col items-center w-full",children:[(0,a.jsx)("img",{className:"w-[234px] h-[214px] z-[2] mt-[-120px] ",src:"https://assets.cradlewise.com/images/landing-page/buncing-gif-11.gif",alt:"bg"}),(0,a.jsxs)("h1",{className:"!font-recoleta_alt_regular !text-[25px] !leading-[35px]",children:["Already a"," ",(0,a.jsx)("span",{className:"!font-recoleta_alt_medium",children:"Cradlewise parent?"})]}),(0,a.jsx)("button",{onClick:()=>(0,X.dD)("cw-protect-form"),className:"cradleBtn mt-[15px] !h-[50px] !w-[350px]",children:"Check eligibility"})]})}),(0,a.jsxs)("div",{className:"my-[80px] sm:my-[100px] flex flex-col-reverse sm:flex-row items-center justify-center newContainer",children:[(0,a.jsx)("div",{className:"sm:w-1/2 w-full flex sm:justify-center mt-[20px] sm:mt-0",children:(0,a.jsxs)("div",{className:"flex flex-col w-[500px]",children:[(0,a.jsx)("h1",{className:"!font-recoleta_alt_regular !text-[30px] !leading-[40px] sm:!text-[40px] sm:!leading-[50px]",children:"All the care, without the hidden costs"}),(0,a.jsx)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] mt-[20px]",children:"They go from tiny to toddler in the blink of an eye, and we're here to make sure you are covered from day one. With 2 years of worry-free protection, you can enjoy the peace of mind that comes with added benefits and savings on out-of-pockets costs."})]})}),(0,a.jsx)("div",{className:"w-full sm:w-[500px]",children:(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/cradlewise-protect/cw-protect-section-2.webp",alt:"section_img_img",width:500,height:210,className:"w-[500px] !h-[210px] sm:!h-[300px]"})})]}),(0,a.jsxs)("div",{className:"newContainer flex flex-col justify-center my-[80px] sm:my-[100px]",children:[(0,a.jsx)("h1",{className:"!font-recoleta_alt_medium !text-[30px] !leading-[40px] sm:!text-[40px] sm:!leading-[50px] sm:text-center",children:"How to request service"}),(0,a.jsxs)("div",{className:"mt-[20px] sm:mt-[50px] grid grid-cols-1 sm:grid-cols-3 gap-y-[20px] sm:gap-x-[40px]",children:[(0,a.jsx)("div",{className:"flex sm:justify-end",children:(0,a.jsxs)("div",{className:"flex flex-col w-[320px]",children:[(0,a.jsx)(Y,{}
1),(0,a.jsx)("h3",{className:"!font-basier_circle_medium mt-[10px] mb-[5px] sm:mt-[20px] sm:mb-[10px] !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:"Contact us"}),(0,B.s_)()?(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:["Email:"," ",(0,a.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"})]}):"en-AU"===t?(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:["Email:"," ",(0,a.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"}),(0,a.jsx)("br",{}),"Phone: ",(0,a.jsx)("a",{href:"tel:+18887172735",children:"+1 (888) 717-2735"})]}):(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:["Email:"," ",(0,a.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"}),(0,a.jsx)("br",{}),"Phone: ",(0,a.jsx)("a",{href:"tel:+18887172735",children:"+1 (888) 717-2735"}),(0,a.jsx)("br",{}),"We're available daily from",(0,a.jsx)("br",{}),(0,a.jsx)("span",{className:"!font-basier_circle_medium",children:"9 am to 9 pm EST"})]})]})}),(0,a.jsx)("div",{className:"flex sm:justify-center",children:(0,a.jsxs)("div",{className:"flex flex-col w-[320px]",children:[(0,a.jsx)(K,{}),(0,a.jsx)("h3",{className:"!font-basier_circle_medium mt-[10px] mb-[5px] sm:mt-[20px] sm:mb-[10px] !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:"Provide Documentation"}),(0,a.jsxs)("div",{className:"!font-basier_circle_regular flex flex-col !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:[(0,a.jsx)("div",{children:"Keep these documents handy:"}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",children:(0,a.jsx)("path",{d:"M1 3.87656C0.668629 3.87656 0.4 4.14519 0.4 4.47656C0.4 4.80793 0.668629 5.07656 1 5.07656L1 3.87656ZM10.8422 4.90083C11.0765 4.66651 11.0765 4.28661 10.8422 4.0523L7.02386 0.233922C6.78954 -0.000392515 6.40964 -0.000392541 6.17533 0.233922C5.94101 0.468237 5.94101 0.848136 6.17533 1.08245L9.56944 4.47656L6.17533 7.87068C5.94101 8.10499 5.94101 8.48489 6.17533 8.7192C6.40964 8.95352 6.78954 8.95352 7.02386 8.7192L10.8422 4.90083ZM1 5.07656L10.418 5.07656L10.418 3.87656L1 3.87656L1 5.07656Z",fill:"#3C3C3B"})}),(0,a.jsx)("span",{children:"Proof of purchase"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",children:(0,a.jsx)("path",{d:"M1 3.87656C0.668629 3.87656 0.4 4.14519 0.4 4.47656C0.4 4.80793 0.668629 5.07656 1 5.07656L1 3.87656ZM10.8422 4.90083C11.0765 4.66651 11.0765 4.28661 10.8422 4.0523L7.02386 0.233922C6.78954 -0.000392515 6.40964 -0.000392541 6.17533 0.233922C5.94101 0.468237 5.94101 0.848136 6.17533 1.08245L9.56944 4.47656L6.17533 7.87068C5.94101 8.10499 5.94101 8.48489 6.17533 8.7192C6.40964 8.95352 6.78954 8.95352 7.02386 8.7192L10.8422 4.90083ZM1 5.07656L10.418 5.07656L10.418 3.87656L1 3.87656L1 5.07656Z",fill:"#3C3C3B"})}),(0,a.jsx)("span",{children:"Product serial number"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",children:(0,a.jsx)("path",{d:"M1 3.87656C0.668629 3.87656 0.4 4.14519 0.4 4.47656C0.4 4.80793 0.668629 5.07656 1 5.07656L1 3.87656ZM10.8422 4.90083C11.0765 4.66651 11.0765 4.28661 10.8422 4.0523L7.02386 0.233922C6.78954 -0.000392515 6.40964 -0.000392541 6.17533 0.233922C5.94101 0.468237 5.94101 0.848136 6.17533 1.08245L9.56944 4.47656L6.17533 7.87068C5.94101 8.10499 5.94101 8.48489 6.17533 8.7192C6.40964 8.95352 6.78954 8.95352 7.02386 8.7192L10.8422 4.90083ZM1 5.07656L10.418 5.07656L10.418 3.87656L1 3.87656L1 5.07656Z",fill:"#3C3C3B"})}),(0,a.jsx)("span",{children:"Protection plan order confirmation"})]})]})]})}),(0,a.jsx)("div",{className:"flex sm:justify-start",children:(0,a.jsxs)("div",{className:"flex flex-col w-[320px]",children:[(0,a.jsx)(Q,{}
1),(0,a.jsx)("h3",{className:"!font-basier_circle_medium mt-[10px] mb-[5px] sm:mt-[20px] sm:mb-[10px] !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:"Get support"}),(0,a.jsx)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#444540]",children:"Once your request is registered, our team will reach out to you to provide the support you need - whether over the phone or an on-site visit."})]})})]})]}),(0,a.jsx)("div",{id:"cw-protect-form",className:"mt-[275px] sm:mt-0 mb-[40px] bg-no-repeat bg-cover sm:bg-top bg-center bg-[url('https://assets.cradlewise.com/images/cradlewise-protect/cw-protect-form-bg-fm.webp')] sm:bg-[url('https://assets.cradlewise.com/images/cradlewise-protect/cw-protect-form-bg-fd.webp')] h-[750px] sm:h-[700px] flex flex-col justify-center relative ",children:(0,a.jsxs)("div",{className:"flex sm:flex-row flex-col-reverse newContainer",children:[(0,a.jsx)("div",{className:"w-full sm:w-[550px]",children:C?(0,a.jsxs)("div",{className:"pt-5",children:[(0,a.jsxs)("div",{className:"flex center flex-col sm:flex-row !justify-start mt-[18px] sm:mt-0",children:[(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[30px] !leading-[35px] sm:!text-[40px] sm:!leading-[50px] whitespace-nowrap",children:"Get your"}),(0,a.jsxs)("div",{className:"flex center gap-[8px] sm:gap-[10px] ml-0 sm:ml-[10px]",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/cradlewise-protect/Monogram.png",alt:"monogram",className:"w-[30px] sm:w-[33px]"}),(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[30px] !leading-[35px] sm:!text-[40px] sm:!leading-[50px]",children:"CradlewiseProtect"})]})]}),(0,a.jsxs)("div",{className:"mt-[40px] flex items-center hidden sm:block",children:[T.length!=c?(0,a.jsx)("h4",{className:"uppercase  curning !text-[14px] sm:!text-[16px] sm:!leading-[26px] text-[#45A98B] tracking-[0.8px]",children:"You are eligible"}):(0,a.jsx)("h4",{className:"uppercase curning !text-[14px] sm:!text-[16px] sm:!leading-[26px] text-[#45A98B]",children:"ALREADY PURCHASED"}),(0,a.jsxs)("p",{className:"curning !text-[18px] !leading-[28px]",children:[k,(0,a.jsx)("br",{}),"#",z]})]}),(0,a.jsxs)("div",{className:"mt-[40px] flex flex-col items-center sm:hidden block",children:[T.length!=c?(0,a.jsx)("h4",{className:"curning uppercase !text-[14px] !leading-[26px] text-[#45A98B] pt-[5px] text-center",children:"You are eligible"}):(0,a.jsx)("h4",{className:"curning uppercase !text-[14px] !leading-[26px] text-[#45A98B] pt-[5px] text-center",children:"ALREADY PURCHASED"}),(0,a.jsxs)("p",{className:"curning !text-[16px] !leading-[26px] text-center",children:[k,(0,a.jsx)("br",{}),"#",z]})]}),T.length!=c?(0,a.jsxs)("div",{className:"bg-white rounded-[20px] px-[30px] py-[20px] w-full sm:w-[453px] h-auto sm:h-fit mt-[40px]",children:[(0,a.jsxs)("p",{className:"curning uppercase !font-basier_circle_medium !text-[14px] sm:!text-[16px] !leading-[26px]",children:["Convertible Smart Crib"," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"#1"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[10px] mt-[20px] w-full",children:[(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[25px] sm:!text-[30px] !leading-[40px]",children:"CradlewiseProtect"}),(0,a.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,a.jsx)("p",{className:"curning !text-[16px] !leading-[26px] uppercase",children:"2-year protection plan"}),(0,a.jsx)("p",{className:"curning !font-basier_circle_medium !text-[16px] !leading-[26px]",children:"en-US"===t?"$129":"C$190"})]})]}),(0,a.jsx)("div",{id:"cradlewiseProtect_productDescription_checkEligibility",onClick:e=>eP(e,T[0]),className:"tracking-[0.8px] font-basier_circle_medium flex justify-center items-center text-[#fff] !text-[14px] sm:!text-[16px] bg-[#ff595a] w-full !h-[50px] mt-[20px] sm:mt-[25px] !rounded-[50px] sm:ml-0 sm:mt-5 curs
1or-pointer",children:ee?(0,a.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white !font-[500]"}):I?"ADDED TO CART":"ADD TO CART"})]}):(0,a.jsxs)("div",{className:"bg-white flex flex-col items-center rounded-[20px] w-full sm:w-[453px] h-auto sm:h-fit mt-[40px]",children:[(0,a.jsxs)("div",{className:"px-[30px] pt-[20px]",children:[(0,a.jsxs)("p",{className:"curning uppercase text-center !font-basier_circle_medium !text-[14px] sm:!text-[16px] !leading-[26px]",children:["Convertible Smart Crib"," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"#1"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[10px] mt-[20px] w-full",children:[(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[25px] sm:!text-[30px] !leading-[40px] text-center",children:"CradlewiseProtect"}),(0,a.jsx)("p",{className:"curning !text-[16px] !leading-[26px] uppercase text-center",children:"2-year protection plan"})]})]}),(0,a.jsx)("div",{id:"cradlewiseProtect_productDescription_checkEligibility",className:"tracking-[0.8px] uppercase font-basier_circle_medium flex justify-center items-center text-[#fff] !text-[14px] sm:!text-[16px] !leading-[26px] bg-[#45A98B] w-full !h-[60px] mt-[20px] sm:mt-[32px] !rounded-b-[20px]",children:"Already purchased"})]}),(0,a.jsx)("div",{className:"sm:text-left text-center mt-[20px]",children:(0,a.jsx)("a",{href:"/".concat(t,"/legal/warranty/#warranty-header1"),target:"_blank",className:"curning underline !font-basier_circle_regular !text-[12px] !leading-[14px] text-[#3C3C3B] cursor-pointer",children:"Terms and Condition"})})]}):(0,a.jsxs)("div",{className:"sm:mt-10",children:[(0,a.jsxs)("div",{className:"flex center flex-col sm:flex-row !justify-start mt-[18px] sm:mt-0",children:[(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[30px] !leading-[35px] sm:!text-[40px] sm:!leading-[50px] whitespace-nowrap",children:"Get your"}),(0,a.jsxs)("div",{className:"flex center gap-[8px] sm:gap-[10px] ml-0 sm:ml-[25px]",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/cradlewise-protect/Monogram.png",alt:"monogram",className:"w-[30px] sm:w-[33px]"}),(0,a.jsx)("h2",{className:"text-[#3C3C3B] !text-[30px] !leading-[35px] sm:!text-[40px] sm:!leading-[50px]",children:"CradlewiseProtect"})]})]}),(0,a.jsxs)("p",{className:"mt-[40px] !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B] sm:text-left text-center",children:["Add a protection plan in checkout when purchasing"," ",(0,a.jsx)("br",{className:"sm:block hidden"}),(0,a.jsx)("a",{href:"/".concat(t,"/product/smart-crib/#product_prices"),target:"_blank",className:"underline",children:"Cradlewise Smart Crib"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-[20px] mt-[40px]",children:[(0,a.jsx)("h3",{className:"!font-basier_circle_medium !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B] sm:text-left text-center",children:"Already own the Cradlewise Smart Crib?"}),u&&(0,a.jsx)("p",{className:"sm:top-[-24px] text-[#FF595A] !text-[12px] sm:!text-[16px] !leading-[12px] sm:!w-[445px] text-center sm:text-left",children:u}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"!font-basier_circle_regular !text-[16px] !leading-[26px] mb-[10px]",children:"Email Address"}),(0,a.jsx)("input",{onChange:eF,value:k,type:"email",placeholder:"Email address",className:"curning bg-white border border-[#D0D0D0] focus:outline-none focus:border-[#3C3C3B] focus:ring-[0.5px] focus:ring-[#3C3C3B] w-full h-[50px] sm:w-[418px] sm:h-[60px] rounded-[40px] overflow-hidden px-[20px] py-[12px] text-[16px] leading-[26px] text-[#3C3C3B] font-basier_circle_regular"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"!font-basier_circle_regular !text-[16px] !leading-[26px] mb-[10px]",children:"Order ID"}),(0,a.jsx)("input",{onChange:ek,value:z,type:"number",placeholder:"Order ID",className:"curning bg-white border border-[#D0D0D0] focus:outline-none focus:border-[#3C3C3B] focus:ring-[0.5px] focus:ring-[#3C3C3B] w-full h-[50px] sm:w-[418px] sm:h-[60px] rounded-[40px] overflow-hidden px-[20px] py-[12px] text-[16px] leading-[26px] text-[#3C3C3B] font-basier_circle_regular"})]})]}),f&&(0,a.jsx)("p",{className:"pl-[15px] sm:pl-[22px] text-[#FF595A] !text-[10px] sm:!text-[12px] !leading-[12px] pt-[5px] sm:pt-[10px]",children:f}),v&&(0,a.jsx)("p",{className:"pl-[15px] sm:pl-[22px] text-[#FF595A] !text-[10px] sm:!text-[12px] !leading-[12px] pt-[5px] sm:pt-[10px]",children:v}),(0,a.jsx)("div",{id:"cradlewiseProtect_productDescription_checkEligibility",onClick:function(){z&&(z.length>=4?/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(k)?(es(!0),fetch("/api/orderById",{method:"POST",body:JSON.stringify({orderId:z,email:k,locale:t})}).then(e=>e.json()).then(e=>{E(e),es(!1)}),g("")):(w("Enter correct Email ID"),eB()):(j("Enter correct Order ID"),eB()))},className:"tracking-[0.8px] font-basier_circle_medium flex justify-center items-center text-[#fff] !text-[14px] sm:!text-[16
1px] bg-[#ff595a] w-full sm:w-[418px] !h-[50px] sm:!h-[60px] mt-[40px] sm:mt-[20px] !rounded-[50px] sm:ml-0 sm:mt-5 cursor-pointer ".concat(!b&&"pointer-events-none opacity-[.9] !bg-[#929292]"),children:ee?(0,a.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white !font-[500]"}):"CHECK ELIGIBILITY"}),(0,a.jsx)("div",{className:"sm:w-[418px] center",children:(0,a.jsx)("a",{href:"/".concat(t,"/legal/warranty/#warranty-header1"),target:"_blank",className:"!font-basier_circle_regular underline !text-[12px] !leading-[14px] text-[#3C3C3B] mt-[20px] sm:mt-3 cursor-pointer text-center",children:"Terms and Condition"})})]})}),(0,a.jsx)("div",{className:"w-full sm:min-w-[550px] sm:mt-0 mt-[-225px]",children:(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/cradlewise-protect/cw-protect-form-img.webp",alt:"section_img_img",width:200,height:200,className:"min-w-[352px] sm:min-w-[550px] !h-[336px] sm:!h-[519px] mt-0 sm:mt-[30px] mx-auto md:mx-0"})})]})}),(0,a.jsxs)("div",{className:"newContainer mb-[80px] sm:mb-[100px]",children:[(0,a.jsx)("h1",{className:"!font-recoleta_alt_medium !text-[30px] !leading-[40px] sm:!text-[40px] sm:!leading-[50px] sm:text-center",children:"Frequently Asked Questions"}),(0,a.jsxs)("div",{className:"mt-[20px] sm:mt-[50px] grid grid-cols-1 sm:grid-cols-2 gap-y-[20px] sm:gap-x-[40px]",children:[(0,a.jsxs)("div",{className:"flex flex-col sm:items-center gap-y-[20px] sm:gap-y-[40px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-y-[5px] sm:gap-y-[10px] sm:w-[500px]",children:[(0,a.jsx)("h3",{className:"!font-basier_circle_medium !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"When does the warranty period start?"}),(0,a.jsx)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"The protection plan period begins on the day your smart crib is delivered to you."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-[5px] sm:gap-y-[10px] sm:w-[500px]",children:[(0,a.jsx)("h3",{className:"!font-basier_circle_medium !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"What's covered in the standard 1-year warranty?"}),(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:["The standard 1-year warranty covers all manufacturing defects. You can read more about it",(0,a.jsx)("a",{href:"/".concat(t,"/legal/warranty/"),target:"_blank",className:"underline ml-1",children:"here."})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-[5px] sm:gap-y-[10px] sm:w-[500px]",children:[(0,a.jsx)("h3",{className:"!font-basier_circle_medium !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"What happens if I return my crib?"}),(0,a.jsxs)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:["If you return your crib within the ",d.$K[t],"-night-free-trial policy or cancel before your product is delivered, your plan will be automatically canceled, and you will receive a ",(0,B.s_)()?"":"full"," refund. Please note, CradlewiseProtect Plans cannot be canceled after the free trial period ends."]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-[20px] sm:gap-y-[40px]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-y-[5px] sm:gap-y-[10px] sm:w-[500px]",children:[(0,a.jsx)("h3",{className:"!font-basier_circle_medium !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"Do I need to register my product after purchasing a CradlewiseProtect plan?"}),(0,a.jsx)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"Your product is automatically registered, so there's nothing additional for you to do. You'll receive the Protection plan's terms and conditions by email shortly after your product is delivered. Be sure to save your product receipt and confirmation email for future reference."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-[5px] sm:gap-y-[10px] sm:w-[500px]",children:[(0,a.jsx)("h3",{className:"!font-basier_circle_medium !text-[16
1px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"Is my CradlewiseProtect Plan transferable to a new owner if I sell or gift my product?"}),(0,a.jsx)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"No, the extended warranty is not transferable."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-[5px] sm:gap-y-[10px] sm:w-[500px]",children:[(0,a.jsx)("h3",{className:"!font-basier_circle_medium !text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"The purchase is a gift. Can I transfer the protection plan to the recipient?"}),(0,a.jsx)("p",{className:"!text-[16px] !leading-[26px] sm:!text-[18px] sm:!leading-[28px] !text-[#3C3C3B]",children:"Yes, the recipient has to just let us know the order ID and your email ID while claiming."})]})]})]})]})]})]})]})})},ee=()=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"sm:px-0 px-[20px] mt-10",children:[(0,a.jsx)("p",{className:"!text-[16px] !leading-[20px] font-basier_circle_medium",children:"Included in your purchase: "}),(0,a.jsxs)("div",{className:"mt-5 flex",children:[(0,a.jsxs)("div",{className:"w-[110px] mr-5",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/crib-rail-cover/cribRailCoverForPieces-2.webp",alt:"cribRailCoverForPieces-2",className:""}),(0,a.jsxs)("p",{className:"text-center !text-[12px] !leading-[16px] mt-3",children:["2 Pieces For The ",(0,a.jsx)("br",{}),"Arc"]})]}),(0,a.jsxs)("div",{className:"w-[110px]",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/crib-rail-cover/cribRailCoverForPieces-4.webp",alt:"cribRailCoverForPieces-4",className:""}),(0,a.jsxs)("p",{className:"text-center !text-[12px] !leading-[16px] mt-3",children:["4 Pieces For The ",(0,a.jsx)("br",{}),"Side Railings"]})]})]})]}),(0,a.jsxs)("div",{className:"px-[20px] sm:px-0 mt-10",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/crib-rail-cover/CRCHighlights-fd.webp",alt:"Highlight",className:"hidden sm:block w-[410px]"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/crib-rail-cover/CRCHighlights-fm.webp",alt:"Highlight",className:"sm:hidden"})]})]}),es=e=>{let{playTheVideo:s}=e,[t,i]=(0,r.useState)(!1),l=(0,r.useRef)(null),n=()=>{i(!0),l.current&&l.current.play()};return(0,r.useEffect)(()=>{s&&setTimeout(()=>{n()},1e3)},[s]),(0,a.jsx)("div",{children:(0,a.jsxs)("section",{className:"mt-[60px] sm:mt-[100px] w-full sm:w-[880px] sm:mx-auto px-[20px]",children:[(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("h2",{className:"sm:!text-[35px] sm:!leading-[45px] !text-[30px] !leading-[40px]",children:["How to attach ",(0,a.jsx)("br",{className:"sm:hidden"}),"Crib Rail Cover"]}),(0,a.jsx)("p",{className:"mt-5 hidden sm:block",children:"Introducing the Cradlewise Crib Rail Cover, the perfect accessory that adds an extra layer of protection. This soft, durable rail cover acts as a cushion, protecting your baby from bumps on the crib's side rails & the top arc. Made from premium, non-toxic materials, it’s gentle on your baby’s skin and easy to clean. It comes in 6 pieces - 4 for the side railings and 2 for the top arc."})]}),(0,a.jsxs)("div",{className:"video-container w-full sm:w-[860px] h-fit mx-auto overflow-hidden my-10 rounded-[20px] sm:rounded-[30px]",onClick:n,children:[!t&&(0,a.jsx)("img",{className:"video-thumbnail w-full",src:"https://assets.cradlewise.com/images/crib-rail-cover/CRCVideo-thumbNail.webp",alt:"Video Thumbnail"}),(0,a.jsx)("video",{ref:l,className:t?"w-full":"hidden",src:"https://assets.cradlewise.com/images/crib-rail-cover/cribRailVideo.mp4",autoPlay:!0,muted:!0,controls:!0})]}),(0,a.jsx)("p",{className:"sm:hidden !text-[16px]",children:"Introducing the Cradlewise Crib Rail Cover, the perfect accessory that adds an extra layer of protection. This soft, durable rail cover acts as a cushion, protecting your baby from bumps on the crib's side rails & the top arc. Made from premium, non-toxic materials, it’s gentle on your baby’s skin and easy to clean. It comes in 6 pieces - 4 for the side railings and 2 for the top arc."})]})})},et=e=>{let{product:s,locale:t}=e,i=s.allProductsData,[l]=r.useContext(A.t),[n,c]=(0,r.useState)(2);(0,r.useEffect)(()=>{l.inventories&&c(null==l?void 0:l.inventories[s.handle])},[l]);let[o,p]=(0,r.useState)(1),[h,f]=(0,r.useState)(!1),[w,v]=(0,r.useState)({}),[j,b]=(0,r.useState)([]),[N,y]=(0,r.useState)([]),k=[_.Bd,_.eM],F=(0,r.useMemo)(()=>Array.from({length:5},(e,t)=>({id:t,src:"https://assets.cradlewise.com/images/store/product-gallery-webp/crib-rail-cover/img".concat(t+1,".webp"),alt:"".concat(s.title," ").concat(t+1)})),[s.title]);(0,r.useEffect)(()=>{var e,t;let a={};a.variantId=s.variants.edges[0].node.id,a.handle=s.handle,a.title=s.title,a.price=s.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,a.actualPrice=null===(e=s.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===e?void 0:null===(t=e.compareAtPrice)||void 0===t?void 0:t.amount,v(a)},[]),(0,r.useEffect)(()=>{let e=[];i.length>0&&k.map(a=>{i.map(i=>{if(a===i.node.handle&&a!==s.handle){var l,r,n;e.push({variantId:null===(l=i.node.variants.edges[0])||void 0===l?void 0:l.node.id,handle:i.node.handle,title:i.node.title,price:i.node.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(r=i.node.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===r?void 0:null===(n=r.compareAtPrice)||void 0===n?void 0:n.amount,customAttributes:(0,u.A0)(i.node.handle,t)})}})}),b(e),y(e)},[]);let P=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=new IntersectionObserver(e=>
1{e.forEach(e=>{e.isIntersecting&&I()})},{threshold:1});return P.current&&e.observe(P.current),()=>{P.current&&e.unobserve(P.current)}},[]);let I=()=>{f(!0)};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"cursor-default sm:mb-[-100px] mb-[-120px]",children:[(0,a.jsx)("div",{className:"newContainer cursor-default sm:!w-[1040px] xl:!w-auto sm:mx-auto",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-10 pt-4 !text-[16px] hidden md:block",children:[(0,a.jsx)("a",{href:"/".concat(t),className:"underline text-[#929292]",children:"Home"})," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"/"})," ",(0,a.jsx)("a",{href:"/".concat(t),className:"underline text-[#929292]",children:"Store"})," ","/ ",s.title]}),(0,a.jsxs)("div",{className:"sm:flex sm:w-[1040px] xl:w-auto sm:mx-auto",children:[(0,a.jsx)("div",{className:"sm:w-[500px] xl:w-[730px] hidden md:block",children:(0,a.jsx)("div",{className:"max-w-[500px]",children:(0,a.jsx)(C,{images:F})})}),(0,a.jsxs)("div",{className:"sm:w-[410px] xl:w-[500px] sm:ml-10 mt-[30px] sm:mt-0",children:[(0,a.jsxs)("h2",{className:"!text-[28px] !mb-2.5 sm:mb-5 !leading-[40px] sm:!text-[32px] sm:!leading-[45px] font-recoleta_alt_regular flex items-center",children:[s.title," ",n<1&&(0,a.jsx)("span",{className:"ml-[10px] font-basier_circle_medium sm:w-[76px] h-[24px] w-[66px] rounded-full bg-[#FF595A] text-[white] center text-[10px] sm:text-[12px]",children:"SOLD OUT"})]}),(0,a.jsx)("p",{className:"!text-[16px] sm:!text-[18px] !leading-[24px] font-basier_circle_regular sm:!leading-[26px] tracking-[0.32px]",children:s.description}),(0,a.jsx)("div",{className:"mt-6 md:hidden",children:(0,a.jsx)(C,{images:F})}),(0,a.jsxs)("div",{className:"mt-6 flex items-center",children:[(null==w?void 0:w.actualPrice)&&(null==w?void 0:w.actualPrice)!=(null==w?void 0:w.price)&&(0,a.jsx)("span",{className:"line-through !leading-[40px] text-[#929292] pr-[10px]",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] font-recoleta_alt_regular",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),o*(0,m.C)(null==w?void 0:w.actualPrice)]})}),(0,a.jsxs)("span",{className:"flex flex-row justify-start sm:justify-center md:justify-start items-center",children:["en-US"!==t?(0,a.jsxs)("p",{className:"!text-[18px] !leading-[20px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[t]]}):null,(null==w?void 0:w.price)?(0,B.XT)()?(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,a.jsxs)("span",{className:"line-through text-[#929292] font-recoleta_alt_regular",children:[" ",(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),(0,m.C)(w.price*o)]}),(0,a.jsxs)("span",{className:"pl-1.5",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),(0,B.AK)(w.price*o)]}),(0,a.jsx)("span",{className:"pl-1.5 !text-[#45A98B]",children:"(-5%)"})]}):(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),o*(0,m.C)(null==w?void 0:w.price)]}):""]})]}),n<1&&(0,a.jsx)("p",{className:"sm:mt-1 italic !text-[12px] sm:!text-[14px] font-basier_circle_medium text-[#FF595A]",children:"We're currently out of stock. Please check back soon!"}),(0,a.jsx)("div",{className:"mt-6 ".concat(n<1?"pointer-events-none opacity-[0.4]":""),children:(0,a.jsx)(x,{quantity:o,setQuantity:p,productInventory:n})}),(0,a.jsx)(g,{productDetails:w,quantity:o,locale:t,productInventory:n}),(0,a.jsx)("div",{className:"sm:block hidden",children:(0,a.jsx)(ee,{})})]})]})]})}),(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsx)(ee,{})}),(0,a.jsxs)("div",{className:"absolute z-[-1] sm:mt-[300px] mt-[200px]",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/crib-rail-cover/CRCBG-fd.webp",alt:"bg",className:"hidden sm:block"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/crib-rail-cover/CRCBG-fm.webp",alt:"bg",className:"sm:hidden"})]}),(0,a.jsx)("div",{id:"showSection",ref:P,children:(0,a.jsx)(es,{playTheVideo:h})}),(0,a.jsx)(S,{handle:s.handle,shopMoreProductsFd:N,shopMoreProductsFm:j,locale:t})]})})};var ea=t(8193),ei=t(30719);t(99008),t(33947),t(74256),t(44233),t(71431),t(36929);var el=t(60870),er=t(61126),en=function(e){var s;let{product:t,locale:i}=e,l=null===(s=t.variants.edges[0].node.presentmentPrices.edges[0].node.compareAtPrice)||void 0===s?void 0:s.amount,n=t.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,c=(0,u.A0)("wood-swatch",i),[o,x]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"overflow-hidden sm:!mt-[-24px]",children:[(0,a.jsxs)("div",{className:"relative bg-[#F2EEE5] hidden sm:block ",children:[(0,a.jsx)(ei.Swiper,{style:{"--swiper-navigation-color":"#fff","--swiper-pagination-color":"#fff","--swiper-pagination-bullet-inactive-color":"#000","--swiper-navigation-size":"20px","--swiper-pagination-bullet-pad
1ding":"2px",zIndex:0},loop:!0,spaceBetween:50,autoplay:{delay:2e3,disableOnInteraction:!1},speed:1500,slidesPerView:1,centeredSlides:!0,slidesPerGroup:1,modules:[el.FreeMode,el.Navigation,el.Pagination,el.Thumbs,el.Autoplay],className:"mainSlider w-full z-0",children:["https://assets.cradlewise.com/images/wood-swatch/ws-slide1.webp","https://assets.cradlewise.com/images/wood-swatch/ws-slide2.webp"].map((e,s)=>(0,a.jsx)(ei.SwiperSlide,{children:(0,a.jsx)("div",{className:"bg-cover !w-full sm:h-[850px] lg:h-[890px] xl:h-[938px] xxl:h-[105vh]",style:{backgroundImage:"url(".concat(e,")")}})},"m_"+s))}),(0,a.jsx)("div",{className:"absolute top-[133px] sm:top-[100px] w-full",children:(0,a.jsxs)("div",{className:"flex center flex-col text-center",children:[(0,a.jsxs)("h1",{className:"!text-[35px] !leading-[45px] sm:!text-[64px] sm:!leading-[70px] !font-recoleta_alt_regular ",children:["Color matching",(0,a.jsx)("br",{}),"your nursery?"]}),(0,a.jsx)("p",{className:"!text-[14px] sm:!text-[20px] sm:!leading-[30px] sm:my-5 my-[10px] tracking-[5px] font-basier_circle_medium uppercase",children:"We got you covered"}),(0,a.jsx)("a",{href:"#wood-swatch",id:"woodSwatch_hero_getOurWoodSwatch",children:(0,a.jsx)("button",{className:"cradleBtn w-[310px] uppercase !z-[2]",children:(0,a.jsx)("span",{className:"absolute",children:"Get our wood swatch"})})}),(0,a.jsx)("div",{className:"sm:mt-[-130px] hidden sm:block",children:(0,a.jsx)(N(),{width:956,height:717,src:"https://assets.cradlewise.com/images/wood-swatch/sw-crib.png",alt:"wood-crib"})}),(0,a.jsx)("div",{className:"w-[612px] h-[460px] mt-[-65px] sm:hidden",children:(0,a.jsx)(N(),{width:612,height:460,src:"https://assets.cradlewise.com/images/wood-swatch/sw-crib.png",alt:"wood-crib"})})]})})]}),(0,a.jsx)("div",{className:"w-full h-[100px] bg-[#F2EEE5] mt-[-2px] hidden sm:block"}),(0,a.jsx)("div",{className:"bg-[#F2EEE5] mt-[-2px] !h-[820px] relative sm:block hidden z-1",children:(0,a.jsx)("div",{className:"!bg-cover !w-full !h-[820px] bg-[#F2EEE5]",style:{backgroundImage:"url(https://assets.cradlewise.com/images/wood-swatch/ws-mobile-bg.webp)"},children:(0,a.jsxs)("div",{className:"flex max-w-[1600px] mx-auto absolute top-[20px] left-[50%] translate-x-[-50%] w-full z-1",children:[(0,a.jsx)("div",{className:"pl-[300px]",children:(0,a.jsx)(N(),{width:330,height:650,src:"https://assets.cradlewise.com/images/wood-swatch/ws-mobile.webp",alt:"wood-crib"})}),(0,a.jsxs)("div",{className:"pl-[132px] pt-[270px]",children:[(0,a.jsxs)("h2",{className:"sm:!text-[35px] sm:!leading-[45px]",children:["Try our AR feature to see",(0,a.jsx)("br",{}),"Cradlewise in your space"]}),(0,a.jsxs)("p",{className:"mb-[14px] mt-[20px] flex center !justify-start cursor-pointer",onClick:()=>h(!0),children:[(0,a.jsx)(N(),{width:22,height:20,src:"https://assets.cradlewise.com/images/product-images/qr-logo-fm.png",alt:"QR icon",className:"mr-[10px]"}),(0,a.jsx)("span",{className:"font-basier_circle_medium !text-[16px] !leading-[28px] underline underline-offset-[3px]",children:"Scan this QR code for our AR experience."})]}),(0,a.jsxs)("p",{className:"sm:!text-[12px] sm:!leading-[18px]",children:["AR model for size reference only",(0,a.jsx)(ea.ocf,{size:"16px",color:"#3C3C3B",className:"inline mt-[-3px] ml-2"})]})]})]})})}),(0,a.jsxs)("div",{className:"hidden sm:block mt-[-11vh]",children:[(0,a.jsx)("div",{id:"wood-swatch",className:"!bg-cover !w-full !h-[1530px]",style:{backgroundImage:"url(https://assets.cradlewise.com/images/wood-swatch/blueBg-fd.webp)"}}),(0,a.jsxs)("div",{className:"mt-[-1520px]",children:[(0,a.jsxs)("div",{className:"max-w-[1620px] mx-auto",children:[(0,a.jsx)("div",{className:"text-center text-[#fff] pt-[180px] mb-[50px]",children:(0,a.jsxs)("h2",{className:"sm:!text-[44px] sm:!leading-[54px]",children:["Perfect your nursery before",(0,a.jsx)("br",{}),"your baby arrives"]})}),(0,a.jsxs)("div",{className:"flex",children:[(0,B.s_)()?(0,a.jsx)("div",{className:"w-[49%] bg-[#F2EEE5] h-[720px] flex items-center justify-center rounded-r-[40px]",children:(0,a.jsx)("div",{children:(0,a.jsx)(N(),{width:393,height:363,src:"https://assets.cradlewise.com/images/wood-swatch/wood-swatch-img.webp",alt:"cradle-logo",className:"xxl:rounded-[40px] xxl:overflow-hidden"})})}):(0,a.jsx)("div",{className:"w-[49%]",children:(0,a.jsx)(N(),{width:840,height:650,src:"https://assets.cradlewise.com/images/wood-swatch/wood-image.webp",alt:"cradle-logo",className:"xxl:rounded-[40px] xxl:overflow-hidden"})}),(0,a.jsx)("div",{className:"w-1/2",children:(0,a.jsxs)("div",{className:"w-[620px] text-[#fff] pl-10",children:[(0,a.jsx)("h1",{className:"sm:!text-[32px] sm:leading-[40px] tracking-[0.64px]",children:"Wood swatch"}),(0,a.jsx)("p",{className:"mt-[10px] w-[486px]",children:"Want to de
1sign a nursery as perfect as your little one? This swatch will help you visualize the crib in your home. You'll be able to feel the quality of our materials and color match the crib with the rest of your room."}),(0,a.jsxs)("div",{className:"mt-[40px] flex justify-start items-center",children:["en-US"!==i&&"en-IN"!==i?(0,a.jsxs)("p",{className:"!text-[18px] !leading-[20px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[i]]}):null,l&&l!=n&&(0,a.jsx)("span",{className:"line-through text-[#929292] pr-[10px]",children:(0,a.jsxs)("h2",{className:"!text-[24px] !leading-[30px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(i).format(n),new Intl.NumberFormat(i).format((0,m.C)(l))]})}),(0,a.jsxs)("p",{className:"sm:!text-[24px] sm:leading-[30px] tracking-[0.25rem] !font-basier_circle_medium",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(i).format(n)]})]}),(0,a.jsx)("div",{className:"my-[40px]",children:(0,a.jsx)(er.Z,{variantId:t.variants.edges[0].node.id,quantity:1,w:"290px",btnName:"add to cart",attributes:c})}),(0,a.jsxs)("div",{className:"!text-[#fff] sm:w-[550px]",children:[(0,a.jsx)("p",{className:"uppercase !font-basier_circle_medium !tracking-[0.8px] !text-[#fff] !text-[16px] pb-5 border-b border-[#929292]",children:"Overview"}),(0,a.jsxs)("div",{className:"mt-5 flex font-basier_circle_regular",children:[(0,a.jsxs)("ul",{className:"!text-[16px] sm:!text-[18px] !leading-[30px]",children:[(0,a.jsx)("li",{children:'› 6" square'}),(0,a.jsx)("li",{children:"› Birch Plywood Core"}),(0,a.jsx)("li",{children:"› White Oak Veneer"})]}),(0,a.jsxs)("ul",{className:"!text-[16px] sm:!text-[18px] ml-10 !leading-[30px]",children:[(0,a.jsx)("li",{children:"› GREENGAURD Gold Certified"}),(0,a.jsx)("li",{children:"› Free Shipping"})]})]})]})]})})]}),(0,a.jsx)("div",{className:"w-[1280px] mx-auto mt-[100px] hidden sm:block",children:(0,a.jsx)(N(),{width:1280,height:620,src:"https://assets.cradlewise.com/images/wood-swatch/ws-baby-images.webp",alt:"cradle-logo"})})]}),(0,a.jsx)("div",{className:"h-[400px] bg-[#F2EEE5] w-full mt-[-300px] absolute z-[-1]"}),(0,a.jsx)("div",{className:"bg-[#F2EEE5]",children:(0,a.jsxs)("div",{className:"max-w-[1620px] mx-auto  pb-[100px]",children:[(0,a.jsx)("div",{className:"text-center pt-[150px] mb-[40px] sm:mb-[50px]",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] sm:!text-[44px] sm:!leading-[54px]",children:["Take inspiration from ",(0,a.jsx)("br",{className:"sm:hidden"})," our",(0,a.jsx)("br",{className:"hidden sm:block"})," Cradlewise nurseries"]})}),(0,a.jsx)("div",{className:"w-[1280px] mx-auto hidden sm:block",children:(0,a.jsx)(N(),{width:1280,height:2240,src:"https://assets.cradlewise.com/images/wood-swatch/new-bg-group.webp",alt:"cradle-logo"})})]})})]})]}),(0,a.jsxs)("div",{className:"relative bg-[#F2EEE5] pb-[100px] h-auto sm:h-[110vh] sm:hidden",children:[(0,a.jsx)(ei.Swiper,{style:{"--swiper-navigation-color":"#fff","--swiper-pagination-color":"#fff","--swiper-pagination-bullet-inactive-color":"#000","--swiper-navigation-size":"20px","--swiper-pagination-bullet-padding":"2px",zIndex:0},loop:!0,spaceBetween:50,autoplay:{delay:2e3,disableOnInteraction:!1},speed:1500,slidesPerView:1,centeredSlides:!0,slidesPerGroup:1,modules:[el.FreeMode,el.Navigation,el.Pagination,el.Thumbs,el.Autoplay],className:"mainSlider w-full z-0",children:["https://assets.cradlewise.com/images/wood-swatch/slide1-fm.webp","https://assets.cradlewise.com/images/wood-swatch/slide2-fm.webp"].map((e,s)=>(0,a.jsx)(ei.SwiperSlide,{children:(0,a.jsx)("div",{className:"!bg-cover !w-full h-[650px] sm:hidden",style:{backgroundImage:"url(".concat(e,")")}})},"n_"+s))}),(0,a.jsx)("div",{className:"absolute top-[133px] sm:top-[100px] w-full",children:(0,a.jsxs)("div",{className:"flex center flex-col text-center",children:[(0,a.jsxs)("h1",{className:"!text-[35px] !leading-[45px] sm:!text-[64px] sm:!leading-[70px] !font-recoleta_alt_regular ",children:["Color matching",(0,a.jsx)("br",{}),"your nursery?"]}),(0,a.jsx)("p",{className:"!text-[14px] sm:!text-[20px] sm:!leading-[30px] sm:my-5 my-[10px] tracking-[5px] font-basier_circle_medium uppercase",children:"We got you covered"}),(0,a.jsx)("a",{href:"#woodswatch",id:"woodSwatch_hero_getOurWoodSwatch",children:(0,a.jsx)("button",{className:"cradleBtn w-[310px] uppercase z-[2]",children:(0,a.jsx)("span",{className:"absolute",children:"Get our wood swatch"})})}),(0,a.jsx)("div",{className:"sm:mt-[-130px] z-1 hidden sm:block",children:(0,a.jsx)(N(),{width:956,height:717,src:"https://assets.cradlewise.com/images/wood-swatch/sw-crib.png",alt:"wood-crib"})}),(0,a.jsx)("div",{className:"w-[612px] h-[460px] mt-[-65px] z-1 sm:hidden",children:(0,a.jsx)(N(),{width:612,height:460,src:"https://assets.cradlewise.com/images/wood-swatch/sw-crib.png",alt:"wood-crib"})})]})})]}),(0,a.jsxs)("div",{className:"sm:hidden bg-[#F2EEE5] relative pb-[70px]",children:[(0,a.jsx)("div",{className:"w-full h-[510px] relative mx-auto ",children:(0,a.jsx)(N(),{fill:!0,src:"https://assets.cradlewise.com/images/wood-swatch/ws-mobile-fm.webp",alt:"cradle-logo"})}),(0,a.jsx)("div",{className:"absolute w-full top-[400px] bg-[#F2EEE5]",children:(0,a.jsxs)("div",{className:"mx-auto w-[350px] text-center",children:[(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px]",children:["Try our AR feature to see",(0,a.jsx)("br",{}),"Cradlewise in your space"]}),(0,a.jsx)("a",{href:"https://app.vectary.com/viewer-ar/v1/?model=b1801d43-af42-4067-925a-440e09a439ba&domain=ar&backLink=https://".concat("cradlewise.com","/product/smart-crib#crib-bassinet-tabs"),children:(0,a.jsxs)("button",{className:"cradleBtn w-full uppercase my-5 !bg-[#3C3C3B]",children:[(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/products/smart-crib/ar-logo.svg",width:12,height:14,alt:"ar-logo",className:"mr-[10px]"})," ","View in My ROOM"]})}),(0,a.jsxs)("p",{className:"!text-[10px] !leading-[14px] pt-2",children:["AR model for size reference only",(0,a.jsx)(ea.ocf,{size:"16px",color:"#3C3C3B",className:"inline mt-[-3px] ml-2"})]})," "]})}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"!bg-cover bg-top !w-full !h-[1690px] mt-[150px]",id:"woodswatch",style:{backgroundImage:"url(https://assets.cradlewise.com/images/wood-swatch/blueBg-fm.webp)"}}),(0,a.jsxs)("div",{className:"!mt-[-1680px]",children:[(0,a.jsx)("div",{className:"text-center pt-[80px] mb-[50px] !text-white",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] sm:!text-[44px] sm:!leading-[54px]",children:["Perfect your nursery ",(0,a.jsx)("br",{className:"sm:hidden"})," before your baby arrives"]})}),(0,a.jsx)("div",{className:"w-[350px] mx-auto",children:(0,a.jsx)(N(),{width:350,height:350,src:"https://assets.cradlewise.com/images/wood-swatch/wood-swatch-fm.webp",alt:"cradle-logo"})}),(0,a.jsx)("div",{className:"w-full mt-10",children:(0,a.jsxs)("div",{className:"text-[#fff] mx-5",children:[(0,a.jsx)("h1",{className:"!text-[25px] tracking-[0.64px]",children:"Wood swatch"}
1),(0,a.jsx)("p",{className:"mt-[10px] !text-[16px] w-[350px]",children:"Want to design a nursery as perfect as your little one? This swatch will help you visualize the crib in your home. You'll be able to feel the quality of our materials and color match the crib with the rest of your room."}),(0,a.jsxs)("div",{className:"mt-[20px] flex justify-start items-center",children:["en-US"!==i&&"en-IN"!==i?(0,a.jsxs)("p",{className:"!text-[20px] !leading-[40px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[i]]}):null,l&&l!=n&&(0,a.jsx)("span",{className:"line-through text-[#929292] pr-[10px]",children:(0,a.jsxs)("h2",{className:"!text-[24px] !leading-[30px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(i).format(n),new Intl.NumberFormat(i).format((0,m.C)(l))]})}),(0,a.jsxs)("p",{className:"sm:!text-[24px] sm:leading-[30px] tracking-[0.25rem] !font-basier_circle_medium",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(i).format(n)]})]}),(0,a.jsx)("div",{className:"my-[20px]",children:(0,a.jsx)(er.Z,{variantId:t.variants.edges[0].node.id,quantity:1,w:"100%",btnName:"add to cart",attributes:c})}),(0,a.jsxs)("div",{className:"!text-[#fff] w-[350px] mx-auto",children:[(0,a.jsx)("p",{className:"uppercase !font-basier_circle_medium !tracking-[0.8px] !text-[#fff] !text-[14px] pb-5 border-b border-[#929292]",children:"Overview"}),(0,a.jsx)("div",{className:"mt-5 flex font-basier_circle_regular",children:(0,a.jsxs)("ul",{className:"!text-[16px] !leading-[28px]",children:[(0,a.jsx)("li",{children:'› 6" square'}),(0,a.jsx)("li",{children:"› Birch Plywood Core"}),(0,a.jsx)("li",{children:"› White Oak Veneer"}),(0,a.jsx)("li",{children:"› GREENGAURD Gold Certified"}),(0,a.jsx)("li",{children:"› Free Shipping"})]})})]})]})}),(0,a.jsx)("div",{className:"w-[350px] mx-auto mt-[87px]",children:(0,a.jsx)(N(),{width:352,height:1e3,src:"https://assets.cradlewise.com/images/wood-swatch/children-fm.webp",alt:"cradle-logo"})}),(0,a.jsx)("div",{className:"text-center pt-[80px] mb-[40px]",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] sm:!text-[44px] sm:!leading-[54px]",children:["Take inspiration from ",(0,a.jsx)("br",{className:"sm:hidden"})," our",(0,a.jsx)("br",{className:"hidden sm:block"})," Cradlewise nurseries"]})}),(0,a.jsx)("div",{className:"w-[350px] mx-auto",children:(0,a.jsx)(N(),{width:352,height:3017,src:"https://assets.cradlewise.com/images/wood-swatch/new-images-fm.webp",alt:"cradle-logo"})}),o&&(0,a.jsx)("div",{className:"w-[350px] mx-auto mt-[10px]",children:(0,a.jsx)(N(),{width:352,height:3017,src:"https://assets.cradlewise.com/images/wood-swatch/MobileImages-fm.webp",alt:"cradle-logo"})})]})]})]})]}),p&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"z-[100] fixed top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%]",children:[(0,a.jsx)("div",{className:"absolute top-[108px] right-[43px] cursor-pointer w-[12px] h-[12px]",onClick:()=>h(!1)}),(0,a.jsx)(N(),{width:290,height:550,src:"https://assets.cradlewise.com/images/product-images/qr-for-test.png",alt:"qr code"})]}),(0,a.jsx)("div",{className:"w-full h-full !opacity-[0.7] bg-[#000] fixed left-0 top-0 z-[99]",onClick:()=>h(!1)})]})]})};let ec=()=>(0,a.jsx)("div",{className:"mt-[40px]",children:(0,a.jsx)(N(),{src:"https://assets.cradlewise.com/images/mattress/cradlewise-mattress-quick-highlights-new.webp",alt:"mattress-highlights",width:410,height:250,className:""})}),ed=()=>{let{locale:e}=(0,n.useRouter)();return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("section",{className:"w-full mt-[20px] sm:mt-[40px]",children:[(0,a.jsx)(f.p,{as:"div",className:"border-b border-t border-[#929292]",children:s=>{let{open:t}=s;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{id:"whats_included",className:(0,v.Z)("flex justify-between w-full px-0 sm:py-5 py-[15px]",{"":!t}),children:[(0,a.jsx)("p",{className:"!font-basier_circle_medium tracking-[0.9px]",children:"Safety Certifications"}),t?(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/open-arrow-gray.svg",alt:"open",className:"w-[14px] pt-[8px]"}):(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/close-arrow-gray.svg",alt:"close",className:"w-[16px] pt-[6px]"})]}),(0,a.jsx)(w.u,{show:t,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsxs)(f.p.Panel,{static:!0,className:"flex flex-col gap-y-[20px] text-base w-[324px] sm:w-[95%] pb-[15px] sm:pb-[20px]",children:[(0,a.jsx)("p",{className:"!text-[14px] !leading-[24px] sm:!text-[16
1px] sm:!leading-[28px]",children:"At Cradlewise, we prioritise your baby's safety above all else. Our Smart Crib meets and exceeds the following industry standards:"}),(0,a.jsxs)("ul",{className:"size-sub-paragraph list-disc list-outside pl-[10px] sm:pl-[15px]",children:[(0,a.jsx)("li",{className:"mt-[5px]",children:"California Proposition 65 compliant"}),(0,a.jsxs)("li",{className:"mt-[5px]",children:["The mattress is Phthalate and BPA free and complies to the ",(0,a.jsx)("a",{href:"https://www.ecfr.gov/current/title-16/chapter-II/subchapter-B/part-1307",className:"underline",target:"__blank",children:"16CFR 1307"})," standard for Phthalates."]}),(0,a.jsxs)("li",{className:"mt-[5px]",children:["We qualify for the ",(0,a.jsx)("a",{href:"https://www.cpsc.gov/Business--Manufacturing/Business-Education/Business-Guidance/Crib-Mattresses-Business-Guidance-and-Small-Entity-Compliance-Guide",className:"underline",target:"__blank",children:"Safety Standard for Crib Mattresses"})," as specified by CPSC and passed flame test for mattresses ",(0,a.jsx)("a",{href:"https://www.cpsc.gov/FAQ/Mattresses",className:"underline",target:"__blank",children:"(16 CFR 1632/16 CFR 1633)"}),"\xa0"]}),(0,a.jsx)("li",{className:"mt-[5px]",children:"No AZO colorants or pentachlorophenols"}),(0,a.jsx)("li",{className:"mt-[5px]",children:"No Polyurethane Foam\xa0"})]}),(0,a.jsxs)("p",{className:"!text-[14px] !leading-[24px] sm:!text-[16px] sm:!leading-[28px]",children:["Cradlewise meets all federal requirements for crib mattresses as outlined by ",(0,a.jsx)("a",{href:"https://www.cpsc.gov/Business--Manufacturing/Business-Education/Business-Guidance/Crib-Mattresses-Business-Guidance-and-Small-Entity-Compliance-Guide",className:"underline",target:"__blank",children:"CPSC"}),". In addition to these certifications, our crib is proudly certified by Baby Safety Alliance and has achieved GREENGUARD Gold Certification for low chemical emissions. For more in-depth information about our certifications and commitment to safety, please visit our ",(0,a.jsx)("a",{href:"/".concat(e,"/certifications/"),target:"__blank",className:"underline",children:"Certifications page"}),"."]})]})})]})}}),(0,a.jsxs)("p",{className:"!text-[14px] sm:!text-[16px] text-[#929292] mt-5",children:["Note: Please use only the Cradlewise mattress to ",(0,a.jsx)("br",{})," avoid any safety issues."]})]})})},eo=()=>{let e=[{image:"https://assets.cradlewise.com/images/mattress/sustainable.svg",property:"SUSTAINABLE",description:"Organic and biodegradable materials that are good for baby and good for our Earth."},{image:"https://assets.cradlewise.com/images/mattress/firm-and-gentle.svg",property:"FIRM & GENTLE",description:"The mattress firmness meets the compliance standards and also offer gentle support for perfect sleep."},{image:"https://assets.cradlewise.com/images/mattress/natural.svg",property:"NATURAL",description:"Crafted from natural coconut coir and natural rubber latex. No PU-foam used."}],s=(e,s)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(N(),{src:e,alt:s,width:60,height:60})}),(0,a.jsx)("div",{className:"block sm:hidden",children:(0,a.jsx)(N(),{src:e,alt:s,width:45,height:45})})]}),t=()=>(0,a.jsx)("div",{className:"flex flex-col sm:flex-row justify-start items-center sm:justify-center sm:items-start gap-y-[40px] gap-x-[80px] sm:pb-[60px]",children:e.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-col",children:[s(e.image,e.property),(0,a.jsx)("p",{className:"pt-[20px] !text-[14px] !leading-[22px] sm:!text-[20px] sm:!leading-[32px] !font-basier_circle_medium tracking-[0.25rem]",children:e.property}),(0,a.jsx)("p",{className:"pt-[10px] w-[350px] ".concat("sm:w-[320px]"),children:e.description})]}))});return(0,a.jsxs)("section",{className:"mt-[80px] sm:mt-[150px] flex flex-col justify-center items-center gap-y-[40px] sm:gap-y-[80px]",children:[(0,a.jsx)("h2",{className:"!text-[30px] !leading-[40px] sm:!text-[40px] sm:!leading-[50px]",children:"Why you’ll love it"}),(0,a.jsx)(t,{})]})};var em=t(55969);let ex=e=>{let{product:s,locale:t}=e,i=s.allProductsData,[l,n]=(0,r.useState)(1),[c,o]=(0,r.useState)({}),[p,h]=(0,r.useState)([]),[f,w]=(0,r.useState)([]),v=[_.Bd,_.eM],[j]=r.useContext(A.t),[b,N]=(0,r.useState)(2);(0,r.useEffect)(()=>{j.inventories&&N(null==j?void 0:j.inventories[s.handle])},[j]);let y=(0,r.useMemo)(()=>Array.from({length:2},(e,t)=>({id:t,src:"https://assets.cradlewise.com/images/store/product-gallery-webp/cw-mattress/img".concat(t+1,".webp"),alt:"".concat(s.title," ").concat(t+1)})),[s.title]);return(0,r.useEffect)(()=>{var e,t,a,i;let l={};l.variantId=s.variants.edges[0].node.id,l.handle=s.handle,l.title=s.title,l.price=null===(e=s.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===e?void 0:null===(t=e.price)||void 0===t?void 0:t.amount,l.actualPrice=null===(a=s.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===a?void 0:null===(i=a.compareAtPrice)||void 0===i?void 0:i.amount,o(l)},[]),(0,r.useEffect)(()=>{let e=[];i.length>0&&v.map(a=>{i.map(i=>{if(a===i.node.handle&&a!==s.handle){var l,r,n;e.push({variantId:null===(l=i.node.variants.edges[0])||void 0===l?void 0:l.node.id,handle:i.node.handle,title:i.node.title,price:i.node.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(r=i.node.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===r?void 0:null===(n=r.compareAtPrice)||void 0===n?void 0:n.amount,customAttributes:(0,u.A0)(i.node.handle,t)})}})}),h(e),w(e)},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"cursor-default sm:mb-[-100px] mb-[-120px]",children:[(0,a.jsx)("div",{className:"newContainer cursor-default sm:!w-[1040px] xl:!w-auto sm:mx-auto",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-10 pt-4 !text-[16
1px] hidden md:block",children:[(0,a.jsx)("a",{href:"/".concat(t),className:"underline text-[#929292]",children:"Home"})," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"/"})," ",(0,a.jsx)("a",{href:"/".concat(t,"/products/"),className:"underline text-[#929292]",children:"Store"})," ","/ ",s.title]}),(0,a.jsxs)("div",{className:"sm:flex sm:w-[1040px] xl:w-auto sm:mx-auto",children:[(0,a.jsx)("div",{className:"sm:w-[500px] xl:w-[730px] hidden md:block",children:(0,a.jsx)("div",{className:"max-w-[500px]",children:(0,a.jsx)(C,{images:y})})}),(0,a.jsxs)("div",{className:"sm:w-[410px] xl:w-[500px] sm:ml-10 mt-[30px] sm:mt-0",children:[(0,a.jsxs)("h2",{className:"flex justify-start items-center whitespace-nowrap !text-[28px] !mb-2.5 sm:mb-5 !leading-[40px] sm:!text-[32px] sm:!leading-[45px] font-recoleta_alt_regular",children:[s.title," ",b<1&&(0,a.jsx)("span",{className:"ml-[10px] font-basier_circle_medium sm:w-[76px] h-[24px] w-[66px] rounded-full bg-[#FF595A] text-[white] center text-[10px] sm:text-[12px]",children:"SOLD OUT"})]}),(0,a.jsx)("p",{className:"!text-[16px] sm:!text-[18px] !leading-[24px] font-basier_circle_regular sm:!leading-[26px] tracking-[0.32px]",children:s.description}),(0,a.jsx)("div",{className:"mt-6 md:hidden",children:(0,a.jsx)(C,{images:y})}),(0,a.jsxs)("div",{className:"mt-6 flex flex-row justify-start items-center",children:["en-US"!==t&&"en-IN"!==t?(0,a.jsxs)("p",{className:"!text-[18px] !leading-[20px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[t]]}):null,(null==c?void 0:c.actualPrice)&&(null==c?void 0:c.actualPrice)!=(null==c?void 0:c.price)&&(0,a.jsx)("span",{className:"line-through !leading-[40px] text-[#929292] pr-[10px]",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] font-recoleta_alt_regular",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),l*(0,m.C)(null==c?void 0:c.actualPrice)]})}),(0,a.jsx)("span",{className:"flex flex-row justify-start sm:justify-center md:justify-start",children:(null==c?void 0:c.price)?(0,B.XT)()?(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,a.jsxs)("span",{className:"line-through text-[#929292] font-recoleta_alt_regular",children:[" ",(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format((0,m.C)(c.price*l))]}),(0,a.jsxs)("span",{className:"pl-1.5",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format((0,B.AK)(c.price*l))]}),(0,a.jsx)("span",{className:"pl-1.5 !text-[#45A98B]",children:"(-5%)"})]}):(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format(l*(0,m.C)(null==c?void 0:c.price))]}):""})]}),b<1&&(0,a.jsx)("p",{className:"sm:mt-1 italic !text-[12px] sm:!text-[14px] font-basier_circle_medium text-[#FF595A]",children:"We're currently out of stock. Please check back soon!"}),(0,a.jsx)("div",{className:"mt-6 ".concat(b<1?"pointer-events-none opacity-[0.4]":""),children:(0,a.jsx)(x,{quantity:l,setQuantity:n,productInventory:b})}),(0,a.jsx)(g,{productDetails:c,quantity:l,locale:t,productInventory:b}),(0,a.jsx)(ec,{}),(0,a.jsx)(ed,{})]})]})]})}),(0,a.jsx)("div",{className:"sm:w-[1000px] mx-auto mt-[80px] sm:mt-[150px]",children:(0,a.jsx)(em.Z,{locale:t})}),(0,a.jsx)(eo,{}),(0,a.jsx)(S,{handle:s.handle,shopMoreProductsFd:f,shopMoreProductsFm:p,locale:t})]})})};var ep=t(67403);let eh=e=>{var s;let{product:t,locale:l}=e,c=(0,n.useRouter)(),o={"Tiny Tides":"https://assets.cradlewise.com/images/printed-fitted-sheet/tiny-tides.webp","Hello Sunshine":"https://assets.cradlewise.com/images/printed-fitted-sheet/hello-sunshine.webp","Blush & Bloom":"https://assets.cradlewise.com/images/printed-fitted-sheet/blush-and-bloom.webp"},p=["Festive Fall","Playing in the Leaves","Pumpkin Patch","Cinnamon Roll","Bedtime Boo"],h=[{name:"Festive Fall",title:"Festive Fall ",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-fall.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/brown-swatch-icon.webp"},{name:"Playing in the Leaves",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/playingInTheLeaves-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/Playing-in-the-leaves-icon.webp"},{name:"Pumpkin Patch",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/Pumpkin+Patch.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/Pumpkin-Patch-icon.webp"},{name:"Cinnamon Roll",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/Cinnamon-Roll.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/Cinnamon-Roll-icon.webp"},{name:"Bedtime Boo",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/BedtimeBoo-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/Bedtime-Boo-icon.webp"}],f=[{name:"Festive Dreams",color:"bg-[#FFE1E8]",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-icon.webp",new:!0},{name:"Blush & Bloom",color:"bg-[#FFE1E8]",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/blush_bloom-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/pink-swatch-icon.webp",new:!0},{name:"Hello Sunshine",color:"bg-[#FFD766]",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/yellow-hello-sunshine-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/yellow-swatch-icon.webp",new:!0},{name:"Tiny Tides",color:"bg-[#98C1E9]",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/blue-tiny_tides-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/blue-swatch-icon.webp",new:!0},{name:"Baby Beige",color:"bg-[#EEC39F]",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeigeNew-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/beige-swatch-icon.webp"},{name:"Botanical Bliss",color:"bg-[#C9E2D6]",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/botanical-bliss-swatch-icon.webp"},{name:"Lavender Love",color:"bg-[#CCCCEA]",img:"https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-fd.webp",iconImg:"https://assets.cradlewise.com/images/printed-fitted-sheet/lavender-swatch-icon.webp"}],[w,v]=(0,r.useState)("Lavender Love"),j=(0,r.useMemo)(()=>{let e={};
1return[...f,...h].forEach(s=>{e[s.name]=s;let t=s.name.replace(/\s*-\s*Set of \d+.*$/,"").replace(/\s*\(Limited Edition\).*$/,"").trim();t!==s.name&&(e[t]=s)}),e},[f,h]),b=(0,r.useMemo)(()=>{var e;let s=(0,ep.EB)(l);if(!(null==t?void 0:null===(e=t.visibility)||void 0===e?void 0:e.variants))return[];let a=t.visibility.variants.filter(e=>{let a=(0,ep.WR)(t,e.title,e.id,s);return a}),i=a.map(e=>{let s=j[e.title];if(s)return"en-IN"===l&&o[s.name]?{...s,iconImg:o[s.name]}:s;let t=e.title.replace(/\s*-\s*Set of \d+.*$/,"").replace(/\s*\(Limited Edition\).*$/,"").trim(),a=j[t];return a?"en-IN"===l&&o[a.name]?{...a,iconImg:o[a.name]}:a:{name:e.title,img:"",iconImg:""}}).filter(Boolean),r=["Festive Dreams","Tiny Tides","Hello Sunshine","Blush & Bloom"],n=r.map(e=>i.find(s=>s.name===e)).filter(Boolean),c=i.filter(e=>!r.includes(e.name));return[...n,...c]},[t,l,j]),y=(0,r.useMemo)(()=>(function(e,s){let t={};return[...e,...s].forEach(e=>{t[e.name]={img:e.img,iconImg:e.iconImg}}),t})(h,f),[h,f]),k=t.allProductsData,[F,P]=(0,r.useState)(1),[I,L]=(0,r.useState)({});(0,i.A)(t.handle,null==I?void 0:I.variantId,!!(null==I?void 0:I.variantId));let[E,D]=(0,r.useState)([]),[M,T]=(0,r.useState)([]),[R]=r.useContext(A.t),H=[_.eM,_.Ix],[U,z]=(0,r.useState)(2),[O,Z]=(0,r.useState)();(0,r.useEffect)(()=>{if(R.inventories){let e=q(null==R?void 0:R.inventories,w),s=Array.isArray(e)?e[0]:void 0;s&&z(null==R?void 0:R.inventories[s])}},[R,w]),(0,r.useEffect)(()=>{if(R.inventories){var e={};[...f,...h].map(s=>{let t=q(null==R?void 0:R.inventories,s.name),a=Array.isArray(t)?t[0]:void 0;a&&(e[s.name]=null==R?void 0:R.inventories[a])}),Z(e)}},[R]);let $={"Blush & Bloom":["https://assets.cradlewise.com/images/pfs-summer-edition/pink-img1.png","https://assets.cradlewise.com/images/pfs-summer-edition/pink-img2.png","https://assets.cradlewise.com/images/pfs-summer-edition/pink-img3.png","https://assets.cradlewise.com/images/pfs-summer-edition/pink-img4.png","https://assets.cradlewise.com/images/pfs-summer-edition/pink-img5.png","https://assets.cradlewise.com/images/pfs-summer-edition/pink-img6.png","https://assets.cradlewise.com/images/pfs-summer-edition/pink-img7.png","https://assets.cradlewise.com/images/pfs-summer-edition/pink-img8.png"],"Hello Sunshine":["https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img1.png","https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img2.png","https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img3.png","https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img4.png","https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img5.png","https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img6.png","https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img7.png","https://assets.cradlewise.com/images/pfs-summer-edition/yellow-img8.png"],"Festive Dreams":["https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-1.webp","https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-2.webp","https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-3.webp","https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-2.webp","https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-3.webp","https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-2.webp","https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-3.webp","https://assets.cradlewise.com/images/printed-fitted-sheet/festive-dreams-fm-4.webp"],"Tiny Tides":["https://assets.cradlewise.com/images/pfs-summer-edition/blue-img1-v2.png","https://assets.cradlewise.com/images/pfs-summer-edition/blue-img2-v2.png","https://assets.cradlewise.com/images/pfs-summer-edition/blue-img3-v2.png","https://assets.cradlewise.com/images/pfs-summer-edition/blue-img4-v2.png","https://assets.cradlewise.com/images/pfs-summer-edition/blue-img5-v2.png","https://assets.cradlewise.com/images/pfs-summer-edition/blue-img6-v2.png","https://assets.cradlewise.com/images/pfs-summer-edition/blue-img7-v2.png","https://assets.cradlewise.com/images/pfs-summer-edition/blue-img8-v2.png"],"Botanical Bliss":["https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-5.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-6.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-7.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BotanicalBlissNew-img-8.png"],"Baby Beige":["https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-5.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-6.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-7.png","https://assets.cradlewise.com/images/printed-fitted-sheet/BabyBeingNew-img-8.png"],"Lavender Love":["https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-5.png","https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-6.png","https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-7.png","https://assets.cradlewise.com/images/printed-fitted-sheet/LavenderLoveNew-img-8.png"],"Festive Fall":["https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img5.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img6.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img7.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Festive-Fall-img8.png"],"Pumpkin Patch":["https://assets.cradlewise.com/images/printed-fitted-sheet/Pumpkin-Patch-img1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Pumpkin-Patch-img2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Pumpkin-Patch-img3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Pumpkin-Patch-img4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Pumpkin-Patch-img5.png"],"Cinnamon Roll":["https://assets.cradlewise.com/images/printed-fitted-sheet/Cinnamon-Roll-img1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Cinnamon-Roll-img2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Cinnamon-Roll-img3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Cinnamon-Roll-img4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Cinnamon-Roll-img5.png"],"Playing in the Leaves":["https://assets.cradlewise.com/images/printed-fitted-sheet/Playing-in-the-leaves-img1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Playing-in-the-leaves-img2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Playing-in-the-leaves-img3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Playing-in-the-leaves-img4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Playing-in-the-leaves-img5.png"],"Bedtime Boo":["https://assets.cradlewise.com/images/printed-fitted-sheet/Bedtime-Boo-img1.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Bedtime-Boo-img2.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Bedtime-Boo-img3.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Bedtime-Boo-img4.png","https://assets.cradlewise.com/images/printed-fitted-sheet/Bedtime-Boo-img5.png"]};function q(e,s){let t=Object.keys(e),a=t.filter(e=>e.includes(s));return a}let W=()=>{if(t.variants.edges.length>0){let e=null;
1t.variants.edges.forEach(s=>{if(s.node.title.toLowerCase().includes(w.toLowerCase())){var a,i;e={variantId:s.node.id,handle:t.handle,title:s.node.title,price:s.node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(a=s.node.presentmentPrices.edges[0].node)||void 0===a?void 0:null===(i=a.compareAtPrice)||void 0===i?void 0:i.amount}}}),t.visibility.variants.forEach(s=>{s.id===e.variantId&&(e.product_showcase_title=s.metafields.product_showcase_title)}),e&&L(e)}};(0,r.useEffect)(()=>{setTimeout(()=>{W()},100)},[w,t]),(0,r.useEffect)(()=>{var e;let s=null==c?void 0:null===(e=c.query)||void 0===e?void 0:e.variant,t=Array.isArray(s)?s[0]:s;t&&y[t]&&(p.includes(t)?v(t):p.includes(t)||v(t))},[c]),(0,r.useEffect)(()=>{let e=[];k.length>0&&H.map(s=>{k.map(a=>{if(s===a.node.handle&&s!==t.handle){var i,r,n;e.push({variantId:null===(i=a.node.variants.edges[0])||void 0===i?void 0:i.node.id,handle:a.node.handle,title:a.node.title,price:a.node.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(r=a.node.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===r?void 0:null===(n=r.compareAtPrice)||void 0===n?void 0:n.amount,attributes:(0,u.A0)(a.node.handle,l)})}})}),D(e),T(e)},[k,t.handle,l]);let G={"Baby Beige":{slug:"baby-beige",count:8},"Bedtime Boo":{slug:"bedtime-boo",count:5},"Blush & Bloom":{slug:"blush-and-boom",count:8},"Botanical Bliss":{slug:"botanical-bliss",count:8},"Festive Dreams":{slug:"festive-dreams",count:8},"Festive Fall":{slug:"festive-fall",count:8},"Hello Sunshine":{slug:"hello-sunshine",count:8},"Lavender Love":{slug:"lavender-love",count:8},"Tiny Tides":{slug:"tiny-tides",count:8}},V=(0,r.useMemo)(()=>{var e;let s=G[w],a=s?Array.from({length:s.count},(e,t)=>"https://assets.cradlewise.com/images/store/product-gallery-webp/fitted-sheet/".concat(s.slug,"/img").concat(t+1,".webp")):[null===(e=y[w])||void 0===e?void 0:e.img,...$[w]||[]].filter(Boolean);return a.map((e,s)=>({id:"".concat(w,"-").concat(s),src:e,alt:"".concat(t.title," ").concat(s+1)}))},[w,y,t.title]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"cursor-default sm:mb-[-100px] mb-[-120px]",children:[(0,a.jsx)("div",{className:"newContainer cursor-default sm:!w-[1040px] xl:!w-auto sm:mx-auto",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-10 pt-4 !text-[16px] hidden md:block",children:[(0,a.jsx)("a",{href:"/".concat(l),className:"underline text-[#929292]",children:"Home"})," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"/"})," ",(0,a.jsx)("a",{href:"/".concat(l,"/products/"),className:"underline text-[#929292]",children:"Store"})," ","/ ",t.title]}),(0,a.jsxs)("div",{className:"sm:flex sm:w-[1040px] xl:w-auto sm:mx-auto",children:[(0,a.jsx)("div",{className:"sm:w-[500px] xl:w-[730px] hidden md:block",children:(0,a.jsx)("div",{className:"max-w-[500px]",children:(0,a.jsx)(C,{images:V})})}),(0,a.jsxs)("div",{className:"sm:w-[410px] xl:w-[500px] sm:ml-10 mt-[30px] sm:mt-0",children:["en-US"===l&&(null===(s=f.filter(e=>e.name===w)[0])||void 0===s?void 0:s.new)&&(0,a.jsx)("div",{className:"w-[111px] h-[22px] sm:w-[115px] sm:h-[26px] mb-[5px]",children:(0,a.jsx)(N(),{className:"w-full h-full",width:115,height:26,src:"https://assets.cradlewise.com/images/printed-fitted-sheet/new_badge.webp",alt:"new-sheet"})}),(0,a.jsxs)("h2",{className:"!text-[28px] !mb-2.5 sm:mb-5 !leading-[40px] sm:!text-[32px] sm:!leading-[45px] font-recoleta_alt_regular",children:[(null==I?void 0:I.product_showcase_title)||t.title,U<1&&(0,a.jsx)("span",{className:"ml-[10px] font-basier_circle_regular sm:w-[76px] h-[24px] w-[66px] rounded-full bg-[#FF595A] text-[white] !inline-flex center text-[10px] sm:text-[12px]",children:"SOLD OUT"})]}),(0,a.jsx)("p",{className:"!text-[16px] sm:!text-[18px] !leading-[24px] font-basier_circle_regular sm:!leading-[26px] tracking-[0.32px]",children:t.description}),(0,a.jsx)("div",{className:"mt-6 md:hidden",children:(0,a.jsx)(C,{images:V})}),(0,B.fT)()?null:(0,a.jsxs)("div",{className:"mt-6 flex justify-start items-center",children:["en-US"!==l&&"en-IN"!==l?(0,a.jsxs)("p",{className:"!text-[18px] !leading-[20px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[l]]}):null,(null==I?void 0:I.actualPrice)&&(null==I?void 0:I.actualPrice)!=(null==I?void 0:I.price)&&(0,a.jsx)("span",{className:"line-through !leading-[40px] text-[#929292] pr-[10px]",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] font-recoleta_alt_regular",children:[(0,B.s_)()&&(0,a.jsx)("span",{className:"mr-1",children:"MRP"}),d.yj[l]+new Intl.NumberFormat(l).format(F*(0,m.C)(null==I?void 0:I.price))]})}),(0,a.jsx)("span",{className:"flex flex-row justify-start sm:justify-center md:justify-start",children:(null==I?void 0:I.price)?(0,B.XT)()?(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,a.jsxs)("span",{className:"line-through text-[#929292] font-recoleta_alt_regular",children:[" ",(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),(0,m.C)(I.price*F)]}),(0,a.jsxs)("span",{className:"pl-1.5",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"₹"}):(0,a.jsx)("span",{children:"$"}),(0,B.AK)(I.price*F)]}),(0,a.jsx)("span",{className:"pl-1.5 !text-[#45A98B]",children:"(-5%)"})]}):(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,B.s_)()&&(0,a.jsx)("span",{className:"mr-1",children:"MRP"}),d.yj[l]+new Intl.NumberFormat(l).format(F*(0,m.C)(null==I?void 0:I.price))]}):""})]}),U<1&&(0,a.jsx)("p",{className:"sm:mt-1 italic !text-[12px] sm:!text-[14px] font-basier_circle_medium text-[#FF595A]",children:"We're currently out of stock. Please check back soon!"}),(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsxs)("p",{className:"!text-[14px] sm:!text-[16
1px] font-basier_circle_medium",children:["Colour:"," ",b.some(e=>e.name===w)&&(0,a.jsx)("span",{children:w})]}),(0,a.jsx)("div",{className:"flex sm:w-[402px] w-[331px] items-center gap-[8px] sm:gap-[10px] mt-5 h-auto flex-wrap",children:b.map((e,s)=>(0,a.jsx)("div",{className:"w-[60px] h-[60px] center",children:(0,a.jsx)("div",{onClick:()=>v(e.name),className:"".concat(e.name===w&&"border border-[#3c3c3b] rounded-[12px] p-1 "," cursor-pointer relative"),children:(0,a.jsxs)("div",{className:"w-[50.77px] h-[50.77px] rounded-[10px] relative overflow-hidden",children:[e.iconImg?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"w-[50.77px] h-[50.77px] rounded-[10px] relative overflow-hidden",children:[(0,a.jsx)("img",{src:e.iconImg,alt:e.name,className:O&&O[e.name]<1&&"opacity-[0.5]"}),(0,a.jsx)("div",{className:" w-[3px] h-[80px] bg-[#3c3c3b] absolute top-[-12px] left-[24px] rotate-45  ".concat(O&&O[e.name]<1?"flex":"hidden")})]})}):(0,a.jsx)("div",{className:"".concat(e.color||""," w-[50.77px] h-[50.77px] rounded-[10px] ").concat(O&&O[e.name]<1&&"opacity-[0.5]"," ")}),(0,a.jsx)("div",{className:"w-[3px] h-[80px] bg-[#3c3c3b] absolute top-[-12px] left-[24px] rotate-45 ".concat(O&&O[e.name]<1?"flex":"hidden")})]})})},s+"PFScolor"))})]}),(0,a.jsx)("div",{className:"mt-5 space-y-[6px]",children:(0,a.jsxs)("p",{className:"text-[#929292] !text-[12px] !leading-[16px] md:!text-[12px] md:!leading-[18px]",children:["Actual product colors may differ slightly from images shown"," "]})}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(x,{quantity:F,setQuantity:P,productInventory:U})}),(0,a.jsx)(g,{productDetails:I,locale:l,quantity:F,productInventory:U,extraAttribute:"Tiny Tides"===w?"limitedEdition":["Festive Dreams"].includes(w)?"prepurchase":"normal"}),(0,a.jsxs)("div",{className:"mt-[30px] sm:mt-10",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/products/quick-highlight-fpfs-fm.svg",alt:"Cradlewise Smart Crib",className:"sm:hidden"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/products/quick-highlight-fpfs-fd.svg",alt:"Cradlewise Smart Crib",className:"hidden sm:block"})]}),(0,a.jsx)("div",{className:"mt-5",children:(0,a.jsx)("p",{className:"text-[#929292] !text-[12px] !leading-[18px] md:!text-[14px] md:!leading-[22px]",children:"Note: Please use only the Cradlewise fitted sheet to avoid any safety issues."})})]})]})]})}),(0,a.jsx)(S,{handle:t.handle,shopMoreProductsFd:M,shopMoreProductsFm:E,locale:l})]})})},eu=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("section",{className:"w-full mt-[20px] sm:mt-6",children:[(0,a.jsx)(f.p,{as:"div",className:"border-b border-t border-[#929292]",children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{id:"whats_included",className:(0,v.Z)("flex justify-between w-full px-0 sm:py-5 py-[15px]",{"":!s}),children:[(0,a.jsx)("p",{className:"!font-basier_circle_medium tracking-[0.9px]",children:"Wash care instructions"}),s?(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/open-arrow-gray.svg",alt:"open",className:"w-[14px] pt-[8px]"}):(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/close-arrow-gray.svg",alt:"close",className:"w-[16px] pt-[6px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"flex flex-col gap-y-[20px] text-base w-[324px] sm:w-[95%] pb-[15px] sm:pb-[20px]",children:(0,a.jsxs)("ul",{className:"size-sub-paragraph list-disc list-outside pl-[20px] sm:pl-[15px]",children:[(0,a.jsx)("li",{className:"mt-[5px]",children:"Machine wash cold, with like colors"}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Tumble dry, no heat."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Warm iron if needed."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Do not dry clean, do not bleach."})]})})})]})}}
1),(0,a.jsx)("p",{className:"!text-[14px] sm:!text-[16px] text-[#929292] mt-5",children:"Note: *Actual product colors may differ slightly from images shown"})]})}),eg=e=>{var s;let{product:t,locale:l}=e,c=(0,n.useRouter)(),o=t.allProductsData,p=[{name:"Mint",colorName:"Mint",color:"bg-[#C9E2D6]",img:"https://assets.cradlewise.com/images/muslin-products/mint-blanket-fd-new.webp",iconImg:"https://assets.cradlewise.com/images/muslin-products/mint-icon.webp"},{name:"Peach",colorName:"Peach",color:"bg-[#FFD4C4]",img:"https://assets.cradlewise.com/images/muslin-products/peach-blanket-fd-new.webp",iconImg:"https://assets.cradlewise.com/images/muslin-products/peach-icon.webp"}],h={Mint:["https://assets.cradlewise.com/images/muslin-products/mint-blanket-fm-img-1.webp","https://assets.cradlewise.com/images/muslin-products/mint-img-2.webp","https://assets.cradlewise.com/images/muslin-products/mint-img-3.webp"],Peach:["https://assets.cradlewise.com/images/muslin-products/peach-blanket-fm-img-1.webp","https://assets.cradlewise.com/images/muslin-products/peach-img-2.webp","https://assets.cradlewise.com/images/muslin-products/peach-img-3.webp"],"Jungle Safari - Set of 3":["https://assets.cradlewise.com/images/muslin-products/swaddle-fm-img-1.webp","https://assets.cradlewise.com/images/muslin-products/swaddle-img-2.webp","https://assets.cradlewise.com/images/muslin-products/swaddle-img-3.webp","https://assets.cradlewise.com/images/muslin-products/swaddle-img-4.webp","https://assets.cradlewise.com/images/muslin-products/swaddle-img-6.webp","https://assets.cradlewise.com/images/muslin-products/swaddle-img-7.webp","https://assets.cradlewise.com/images/muslin-products/swaddle-img-8.webp"],"Underwater Life - Set of 3":["https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-1.webp","https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-2.webp","https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-3.webp","https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-4.webp","https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-5.webp","https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-6.webp","https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-7.webp"]},f={"Jungle Safari - Set of 3":Array.from({length:7},(e,s)=>"https://assets.cradlewise.com/images/store/product-gallery-webp/muslin-swaddle/jungle-safari/img".concat(s+1,".webp")),"Underwater Life - Set of 3":Array.from({length:7},(e,s)=>"https://assets.cradlewise.com/images/store/product-gallery-webp/muslin-swaddle/underwater-life/img".concat(s+1,".webp")),"Spring Bloom - Set of 3":Array.from({length:9},(e,s)=>"https://assets.cradlewise.com/images/store/product-gallery-webp/muslin-swaddle/spring-bloom/img".concat(s+1,".webp")),Mint:Array.from({length:3},(e,s)=>"https://assets.cradlewise.com/images/store/product-gallery-webp/muslin-blanket/mint/img".concat(s+1,".webp")),Peach:Array.from({length:3},(e,s)=>"https://assets.cradlewise.com/images/store/product-gallery-webp/muslin-blanket/peach/img".concat(s+1,".webp"))},w=t.handle===_.GI?p:[{name:"Jungle Safari - Set of 3",color:"bg-[#F5F5DC]",img:"https://assets.cradlewise.com/images/muslin-products/jungle-safari-swaddle-fd.webp",iconImg:"https://assets.cradlewise.com/images/muslin-products/jungle-safari-icon.webp"},{name:"Underwater Life - Set of 3",color:"bg-[#F5F5DC]",img:"https://assets.cradlewise.com/images/muslin-products/underwater-swaddle-fd.webp",iconImg:"https://assets.cradlewise.com/images/muslin-products/underwater-icon.webp"},{name:"Spring Bloom - Set of 3",color:"bg-[#F5F5DC]",img:"https://assets.cradlewise.com/images/store/product-gallery-webp/muslin-swaddle/spring-bloom/spring-bloom-img.webp",iconImg:"https://assets.cradlewise.com/images/store/product-gallery-webp/muslin-swaddle/spring-bloom/spring-bloom-img.webp"}],[v,j]=(0,r.useState)(w[0].name),[b,N]=(0,r.useState)(1),[y,k]=(0,r.useState)({});(0,i.A)(t.handle,null==y?void 0:y.variantId,!!(null==y?void 0:y.variantId));let[F,P]=(0,r.useState)([]),[I,L]=(0,r.useState)([]),E=[_.Bd,_.eM,_.Ix],[D]=r.useContext(A.t),[M,T]=(0,r.useState)(2),[R,H]=(0,r.useState)(),U=(0,r.useMemo)(()=>{let e={};
1return w.forEach(s=>{e[s.name]=s}),e},[w]),z=(0,r.useMemo)(()=>{var e;let s=f[v],a=s&&s.length?s:[null===(e=U[v])||void 0===e?void 0:e.img,...h[v]||[]].filter(Boolean);return a.map((e,s)=>({id:"".concat(v,"-").concat(s),src:e,alt:"".concat(t.title," ").concat(s+1)}))},[v,U,t.title]);(0,r.useEffect)(()=>{D.inventories&&T(null==D?void 0:D.inventories[t.handle])},[D]),(0,r.useEffect)(()=>{if(D.inventories){var e={};w.map(s=>{e[s.name]=(null==D?void 0:D.inventories[t.handle])||2}),H(e)}},[D]);let O=()=>{if(t.variants.edges.length>0){let e=null;t.variants.edges.forEach(s=>{if(v.toLowerCase().includes(s.node.title.toLowerCase())||1===t.variants.edges.length){var a,i;e={variantId:s.node.id,handle:t.handle,title:s.node.title,price:s.node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(a=s.node.presentmentPrices.edges[0].node)||void 0===a?void 0:null===(i=a.compareAtPrice)||void 0===i?void 0:i.amount}}}),t.visibility.variants.forEach(s=>{s.id===e.variantId&&(e.product_showcase_title=s.metafields.product_showcase_title)}),e&&k(e)}};return(0,r.useEffect)(()=>{setTimeout(()=>{O()},100)},[v,t]),(0,r.useEffect)(()=>{var e;let s=null==c?void 0:null===(e=c.query)||void 0===e?void 0:e.variant,t=Array.isArray(s)?s[0]:s;t&&j(t)},[c]),(0,r.useEffect)(()=>{let e=[];o.length>0&&E.map(s=>{o.map(a=>{if(s===a.node.handle&&s!==t.handle){var i,r,n;e.push({variantId:null===(i=a.node.variants.edges[0])||void 0===i?void 0:i.node.id,handle:a.node.handle,title:a.node.title,price:a.node.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(r=a.node.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===r?void 0:null===(n=r.compareAtPrice)||void 0===n?void 0:n.amount,attributes:(0,u.A0)(a.node.handle,l)})}})}),P(e),L(e)},[o,t.handle,l]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"cursor-default sm:mb-[-100px] mb-[-120px]",children:[(0,a.jsx)("div",{className:"newContainer cursor-default sm:!w-[1040px] xl:!w-auto sm:mx-auto",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-10 pt-4 !text-[16px] hidden md:block",children:[(0,a.jsx)("a",{href:"/".concat(l),className:"underline text-[#929292]",children:"Home"})," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"/"})," ",(0,a.jsx)("a",{href:"/".concat(l,"/products/"),className:"underline text-[#929292]",children:"Store"})," ","/ ",t.title]}),(0,a.jsxs)("div",{className:"sm:flex sm:w-[1040px] xl:w-auto sm:mx-auto",children:[(0,a.jsx)("div",{className:"sm:w-[500px] xl:w-[730px] hidden md:block",children:(0,a.jsx)("div",{className:"max-w-[500px]",children:(0,a.jsx)(C,{images:z})})}),(0,a.jsxs)("div",{className:"sm:w-[410px] xl:w-[500px] sm:ml-10 mt-[30px] sm:mt-0",children:[(0,a.jsxs)("h2",{className:"!text-[28px] !mb-2.5 sm:mb-5 !leading-[40px] sm:!text-[32px] sm:!leading-[45px] font-recoleta_alt_regular",children:[(null==y?void 0:y.product_showcase_title)||t.title,M<1&&(0,a.jsx)("span",{className:"ml-[10px] font-basier_circle_regular sm:w-[76px] h-[24px] w-[66px] rounded-full bg-[#FF595A] text-[white] !inline-flex center text-[10px] sm:text-[12px]",children:"SOLD OUT"})]}),(0,a.jsx)("p",{className:"!text-[16px] sm:!text-[18px] !leading-[24px] font-basier_circle_regular sm:!leading-[26px] tracking-[0.32px]",children:t.description}),(0,a.jsx)("div",{className:"mt-6 md:hidden",children:(0,a.jsx)(C,{images:z})}),(0,B.fT)()?null:(0,a.jsxs)("div",{className:"mt-6 flex justify-start items-center",children:["en-US"!==l?(0,a.jsxs)("p",{className:"!text-[18px] !leading-[20px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[l]]}):null,(null==y?void 0:y.actualPrice)&&(null==y?void 0:y.actualPrice)!=(null==y?void 0:y.price)&&(0,a.jsx)("span",{className:"line-through !leading-[40px] text-[#929292] pr-[10px]",children:(0,a.jsx)("h2",{className:"!text-[30px] !leading-[40px] font-recoleta_alt_regular",children:"$"+b*(0,m.C)(null==y?void 0:y.actualPrice)})}),(0,a.jsx)("span",{className:"flex flex-row justify-start sm:justify-center md:justify-start",children:(null==y?void 0:y.price)?(0,a.jsx)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:"$"+b*(0,m.C)(null==y?void 0:y.price)}):""})]}),M<1&&(0,a.jsx)("p",{className:"sm:mt-1 italic !text-[12px] sm:!text-[14px] font-basier_circle_medium text-[#FF595A]",children:"We're currently out of stock. Please check back soon!"}),w.length>1&&(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsxs)("p",{className:"!text-[14px] sm:!text-[16
1px] font-basier_circle_medium",children:["Colour:"," ",w.some(e=>e.name===v)&&(0,a.jsx)("span",{children:null===(s=p.find(e=>e.name===v))||void 0===s?void 0:s.colorName})]}),(0,a.jsx)("div",{className:"flex sm:w-[402px] w-[331px] items-center gap-[8px] sm:gap-[10px] mt-5 h-auto flex-wrap",children:w.map((e,s)=>(0,a.jsx)("div",{className:"w-[60px] h-[60px] center",children:(0,a.jsx)("div",{onClick:()=>j(e.name),className:"".concat(e.name===v&&"border border-[#3c3c3b] rounded-[12px] p-1 "," cursor-pointer relative"),children:(0,a.jsxs)("div",{className:"w-[50.77px] h-[50.77px] rounded-[10px] relative overflow-hidden",children:[e.iconImg?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"w-[50.77px] h-[50.77px] rounded-[10px] relative overflow-hidden",children:[(0,a.jsx)("img",{src:e.iconImg,alt:e.name,className:R&&R[e.name]<1&&"opacity-[0.5]"}),(0,a.jsx)("div",{className:" w-[3px] h-[80px] bg-[#3c3c3b] absolute top-[-12px] left-[24px] rotate-45  ".concat(R&&R[e.name]<1?"flex":"hidden")})]})}):(0,a.jsx)("div",{className:"".concat(e.color||""," w-[50.77px] h-[50.77px] rounded-[10px] ").concat(R&&R[e.name]<1&&"opacity-[0.5]"," ")}),(0,a.jsx)("div",{className:"w-[3px] h-[80px] bg-[#3c3c3b] absolute top-[-12px] left-[24px] rotate-45 ".concat(R&&R[e.name]<1?"flex":"hidden")})]})})},s+"muslinColor"))})]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(x,{quantity:b,setQuantity:N,productInventory:M})}),(0,a.jsx)(g,{productDetails:y,locale:l,quantity:b,productInventory:M}),t.handle===_.GI?(0,a.jsxs)("div",{className:"mt-[30px] sm:mt-6",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/muslin-products/quick-highlights-blanket.webp",alt:"Cradlewise Smart Crib",className:"sm:hidden"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/muslin-products/quick-highlights-blanket.webp",alt:"Cradlewise Smart Crib",className:"hidden sm:block"})]}):(0,a.jsxs)("div",{className:"mt-[30px] sm:mt-10",children:[(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/muslin-products/quick-highlights-swaddle.webp",alt:"Cradlewise Smart Crib",className:"sm:hidden"}),(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/muslin-products/quick-highlights-swaddle.webp",alt:"Cradlewise Smart Crib",className:"hidden sm:block"})]}),(0,a.jsx)(eu,{})]})]})]})}),(0,a.jsx)(S,{handle:t.handle,shopMoreProductsFd:I,shopMoreProductsFm:F,locale:l})]})})},ef=e=>{let{handle:s}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("section",{className:"w-full mt-[20px] sm:mt-6",children:[(0,a.jsx)(f.p,{as:"div",className:"border-b border-t border-[#929292]",children:e=>{let{open:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.p.Button,{id:"whats_included",className:(0,v.Z)("flex justify-between w-full px-0 sm:py-5 py-[15px]",{"":!s}),children:[(0,a.jsx)("p",{className:"!font-basier_circle_medium tracking-[0.9px]",children:"Wash care instructions"}),s?(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/open-arrow-gray.svg",alt:"open",className:"w-[14px] pt-[8px]"}):(0,a.jsx)("img",{src:"https://assets.cradlewise.com/images/icons/close-arrow-gray.svg",alt:"close",className:"w-[16px] pt-[6px]"})]}),(0,a.jsx)(w.u,{show:s,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",children:(0,a.jsx)(f.p.Panel,{static:!0,className:"flex flex-col gap-y-[20px] text-base w-[324px] sm:w-[95%] pb-[15px] sm:pb-[20px]",children:(0,a.jsxs)("ul",{className:"size-sub-paragraph list-disc list-outside pl-[20px] sm:pl-[15px]",children:[(0,a.jsx)("li",{className:"mt-[5px]",children:"Machine wash cold, gentle cycle."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Tumble dry, no heat."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Do not iron.\xa0"}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Wash separately or with similar coloured laundry."}),(0,a.jsx)("li",{className:"mt-[5px]",children:"Attach the velcro along the perimeter to prevent it from sticking to the mesh and causing damage.\xa0"})]})})})]})}}
1),(0,a.jsx)("p",{className:"!text-[14px] sm:!text-[16px] text-[#929292] mt-5",children:"Note: Please use only the Cradlewise bassinet mesh to avoid any safety issues."})]})})};var ew=function(){return(0,a.jsxs)("div",{className:"my-10",children:[(0,a.jsx)("p",{className:"!text-[16px] !leading-[28px] !font-basier_circle_medium",children:"Included in your purchase:"}),(0,a.jsxs)("div",{className:"mt-5 hidden sm:flex items-center gap-5",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[15px]",children:[(0,a.jsx)("div",{className:"rounded-[20px] w-[193px] h-[130px]",children:(0,a.jsx)(N(),{width:193,height:130,src:"https://assets.cradlewise.com/images/cradlewise-standard-mesh-bundle/cradlewise-standard-mesh-bundle-incudes-zipper-fd.webp",alt:"mesh-bundle-product-images"})}),(0,a.jsx)("p",{className:"!text-[12px] !leading-none",children:"Zipper Band"})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[15px]",children:[(0,a.jsx)("div",{className:"rounded-[20px] w-[193px] h-[130px]",children:(0,a.jsx)(N(),{width:193,height:130,src:"https://assets.cradlewise.com/images/cradlewise-standard-mesh-bundle/cradlewise-standard-mesh-bundle-incudes-bassinet-crib-fd.webp",alt:"mesh-bundle-product-images"})}),(0,a.jsx)("p",{className:"!text-[12px] !leading-none",children:"Bassinet + Crib Mesh"})]})]}),(0,a.jsxs)("div",{className:"mt-5 sm:hidden flex items-center gap-5",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[15px]",children:[(0,a.jsx)("div",{className:"rounded-[20px] w-[170px] h-[170px]",children:(0,a.jsx)(N(),{width:170,height:170,src:"https://assets.cradlewise.com/images/cradlewise-standard-mesh-bundle/cradlewise-standard-mesh-bundle-incudes-zipper-fm.webp",alt:"mesh-bundle-product-images"})}),(0,a.jsx)("p",{className:"!text-[12px] !leading-none",children:"Zipper Band"})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-[15px]",children:[(0,a.jsx)("div",{className:"rounded-[20px] w-[170px] h-[170px]",children:(0,a.jsx)(N(),{width:170,height:170,src:"https://assets.cradlewise.com/images/cradlewise-standard-mesh-bundle/cradlewise-standard-mesh-bundle-incudes-bassinet-crib-fm.webp",alt:"mesh-bundle-product-images"})}),(0,a.jsx)("p",{className:"!text-[12px] !leading-none",children:"Bassinet + Crib Mesh"})]})]})]})},ev=function(){return(0,a.jsxs)("section",{className:"w-full pt-[20px] sm:pt-[40px] border-t border-[#929292]",children:[(0,a.jsx)("p",{className:"!text-[20px] !leading-[28px] !font-basier_circle_medium",children:"Quick Highlights"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-[12px] mt-5",children:[{name:"Breathable",icon:"https://assets.cradlewise.com/images/icons/breathable-highlight-icon.svg"},{name:"Machine Washable",icon:"https://assets.cradlewise.com/images/icons/machine-highlight-icon.svg"},{name:"Polyester mesh with hexagonal pattern",icon:"https://assets.cradlewise.com/images/icons/polyester-highlight-icon.svg"}].map(e=>(0,a.jsxs)("div",{className:"w-fit flex items-center gap-[10px] bg-[#F8F8F8] rounded-[16px] py-2 px-4",children:[(0,a.jsx)(N(),{src:e.icon,alt:"highlightIcon",width:24,height:24,className:"w-6 h-6"}),(0,a.jsx)("p",{className:"!text-[14px] sm:!text-[16px]",children:e.name})]}))})]})};let ej=e=>{let{product:s,locale:t}=e,i=s.allProductsData,[l,n]=(0,r.useState)(1),[c,o]=(0,r.useState)({}),[p,h]=(0,r.useState)([]),[f,w]=(0,r.useState)([]),v=[_.Bd,_.eM,_.Ix],[j]=r.useContext(A.t),[b,N]=(0,r.useState)(2);(0,r.useEffect)(()=>{j.inventories&&N(null==j?void 0:j.inventories[s.handle])},[j]);let y=(0,r.useMemo)(()=>Array.from({length:4},(e,t)=>({id:t,src:"https://assets.cradlewise.com/images/store/product-gallery-webp/mesh-bundle/img".concat(t+1,".webp"),alt:"".concat(s.title," ").concat(t+1)})),[s.title]);return(0,r.useEffect)(()=>{var e,t,a,i;let l={};l.variantId=s.variants.edges[0].node.id,l.handle=s.handle,l.title=s.title,l.price=null===(e=s.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===e?void 0:null===(t=e.price)||void 0===t?void 0:t.amount,l.actualPrice=null===(a=s.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===a?void 0:null===(i=a.compareAtPrice)||void 0===i?void 0:i.amount,o(l)},[]),(0,r.useEffect)(()=>{let e=[];i.length>0&&v.map(a=>{i.map(i=>{if(a===i.node.handle&&a!==s.handle){var l,r,n;e.push({variantId:null===(l=i.node.variants.edges[0])||void 0===l?void 0:l.node.id,handle:i.node.handle,title:i.node.title,price:i.node.variants.edges[0].node.presentmentPrices.edges[0].node.price.amount,actualPrice:null===(r=i.node.variants.edges[0].node.presentmentPrices.edges[0].node)||void 0===r?void 0:null===(n=r.compareAtPrice)||void 0===n?void 0:n.amount,attributes:(0,u.A0)(i.node.handle,t)})}})}),h(e),w(e)},[]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"cursor-default sm:mb-[-100px] mb-[-120px]",children:[(0,a.jsx)("div",{className:"newContainer cursor-default sm:!w-[1040px] xl:!w-auto sm:mx-auto",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{className:"mb-10 pt-4 !text-[16
1px] hidden md:block",children:[(0,a.jsx)("a",{href:"/".concat(t),className:"underline text-[#929292]",children:"Home"})," ",(0,a.jsx)("span",{className:"text-[#929292]",children:"/"})," ",(0,a.jsx)("a",{href:"/".concat(t,"/products/"),className:"underline text-[#929292]",children:"Store"})," ","/ ",s.title]}),(0,a.jsxs)("div",{className:"sm:flex sm:w-[1040px] xl:w-auto sm:mx-auto",children:[(0,a.jsx)("div",{className:"sm:w-[500px] xl:w-[730px] hidden md:block",children:(0,a.jsx)("div",{className:"max-w-[500px]",children:(0,a.jsx)(C,{images:y})})}),(0,a.jsxs)("div",{className:"sm:w-[410px] xl:w-[500px] sm:ml-10 mt-[30px] sm:mt-0",children:[(0,a.jsxs)("h2",{className:"!text-[28px] !mb-2.5 sm:mb-5 !leading-[40px] sm:!text-[32px] sm:!leading-[45px] font-recoleta_alt_regular",children:[s.title,b<1&&(0,a.jsx)("span",{className:"ml-[10px] font-basier_circle_medium sm:w-[76px] h-[24px] w-[66px] rounded-full bg-[#FF595A] text-[white] !inline-flex center text-[10px] sm:text-[12px]",children:"SOLD OUT"})]}),(0,a.jsx)("p",{className:"!text-[16px] sm:!text-[18px] !leading-[24px] font-basier_circle_regular sm:!leading-[26px] tracking-[0.32px]",children:s.description}),(0,a.jsx)("div",{className:"mt-6 md:hidden",children:(0,a.jsx)(C,{images:y})}),(0,B.fT)()?null:(0,a.jsxs)("div",{className:"mt-6 flex justify-start items-center",children:["en-US"!==t&&"en-IN"!==t?(0,a.jsxs)("p",{className:"!text-[18px] !leading-[20px] sm:!text-[20px] tracking-[0.125rem] !font-basier_circle_medium pr-[10px]",children:[" ",d.iH[t]]}):null,(null==c?void 0:c.actualPrice)&&(null==c?void 0:c.actualPrice)!=(null==c?void 0:c.price)&&(0,a.jsx)("span",{className:"line-through !leading-[40px] text-[#929292] pr-[10px] flex flex-row justify-start sm:justify-center md:justify-start",children:(0,a.jsxs)("h2",{className:"!text-[30px] !leading-[40px] font-recoleta_alt_regular",children:[" ",(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format(l*(0,m.C)(null==c?void 0:c.actualPrice))]})}),(0,a.jsx)("span",{className:"flex flex-row justify-start sm:justify-center md:justify-start",children:(null==c?void 0:c.price)?(0,a.jsxs)("h2",{className:"!text-[#3C3C3B] !text-[30px] !leading-[40px]",children:[(0,B.s_)()?(0,a.jsx)("span",{children:"MRP ₹"}):(0,a.jsx)("span",{children:"$"}),new Intl.NumberFormat(t).format(l*(0,m.C)(null==c?void 0:c.price))]}):""})]}),b<1&&(0,a.jsx)("p",{className:"sm:mt-1 italic !text-[12px] sm:!text-[14px] font-basier_circle_medium text-[#FF595A]",children:"We're currently out of stock. Please check back soon!"}),(0,a.jsx)("div",{className:"mt-6 ".concat(b<1?"pointer-events-none opacity-[0.4]":""),children:(0,a.jsx)(x,{quantity:l,setQuantity:n,productInventory:b})}),(0,a.jsx)(g,{productDetails:c,quantity:l,locale:t,productInventory:b}),(0,a.jsx)(ew,{}),(0,a.jsx)(ev,{}),(0,a.jsx)(ef,{handle:s.handle})]})]})]})}),(0,a.jsx)(S,{handle:s.handle,shopMoreProductsFd:f,shopMoreProductsFm:p,locale:t})]})})},eb={"smart-crib":{title:"Cradlewise Smart Crib | The Only Crib That Responds Before Your Baby Cries",description:"Meet Cradlewise — the AI-powered smart crib that detects early wake-up signs and soothes your baby back to sleep automatically. Free shipping & 60-night trial."},"mattress-cover":{title:"Cradlewise Mattress Cover | Cradlewise",description:"Premium Cradlewise mattress cover for smart crib mattress. Waterproof cotton fabric, perfect fit design, and baby-safe materials for hygienic and comfortable sleep."},"fitted-sheet":{title:"Cradlewise Fitted Sheet | Cradlewise",description:"Specially designed Cradlewise fitted sheet for a secure, perfect fit on your smart crib mattress. Soft cotton, waterproof protection, and baby-safe materials for peace of mind."},"gift-card":{title:"Cradlewise E-Gift Card | The Perfect Baby Gift",description:"Give the gift of better sleep. Send a Cradlewise e-gift card to the parents-to-be in your life — redeemable on any Cradlewise product."},"cradlewise-protect":{title:"Cradlewise Protect | Extended Protection Plan",description:"Extend your peace of mind with Cradlewise Protect — a comprehensive protection plan covering accidental damage and mechanical failures for your smart crib."},"crib-rail-cover":{title:"Crib Rail Cover | Cradlewise",description:"Soft Cradlewise crib rail cover that cushions crib edges and protects your baby, made from durable, non-toxic materials for safe sleep."},"wood-swatch":{title:"Wood Swatch | Cradlewise",description:"Want to de
1sign a nursery as perfect as your little one? This swatch will help you visualize the crib in your home. You'll be able to feel the quality of our materials and color match the crib with the rest of your room."},"standard-mesh-bundle":{title:"Standard Mesh Bundle | Cradlewise",description:"Specially designed Cradlewise bassinet mesh with breathable polyester fabric and secure Velcro fit. Easy to clean and built for safe, comfortable baby sleep."},"cradlewise-mattress":{title:"Cradlewise Mattress | Cradlewise",description:"Specially designed Cradlewise organic mattress made from natural coconut coir and latex. Firm, gentle support with baby-safe materials for peaceful sleep."},"printed-fitted-sheet":{title:"Printed Fitted Sheet | Cradlewise",description:"Printed fitted sheet designed for the Cradlewise smart crib mattress. Soft, breathable fabric with a secure, baby-safe fit."},"transparent-mesh-bundle":{title:"Transparent Mesh Bundle | Cradlewise",description:"Breathable, easy-to-clean transparent polyester mesh. The mesh attaches to the top rail of the crib using a zipper closure and is then secured with a Velcro liner."},"muslin-swaddle":{title:"Jungle Safari Muslin Swaddle Set of 3 | Cradlewise",description:"The gentlest hugs come wrapped in muslin. Choose from our adorable collection for naptime snuggles. Carefully made from 100% GOTS-certified organic cotton - our swaddles are comfortable and durable, wash after wash."},"muslin-blanket":{title:"Muslin Blanket | Cradlewise",description:"A lightweight muslin blanket designed for everyday use. Soft on sensitive skin, breathable for all seasons, and sized to work wherever your baby is — crib, stroller, or on the go. No extra padding. No synthetic blends. Just well-made cotton muslin that does its job, wash after wash."}},eN=e=>{let s=(e||"").toLowerCase();return s.includes("underwater")?"Underwater Life Muslin Swaddle Set of 3 | Cradlewise":s.includes("spring bloom")?"Spring Bloom Muslin Swaddle Set of 3 | Cradlewise":"Jungle Safari Muslin Swaddle Set of 3 | Cradlewise"},ey=e=>{var s,t,r,m,x,p,h,u,g,f;let{productData:w,locale:v,productHandle:j}=e,b=(0,n.useRouter)(),N=["smart-crib","gift-card","printed-fitted-sheet","muslin-swaddle","muslin-blanket"].includes(j),y="cradlewise-protect"===j?(0,l.lA)(v)||(null==w?void 0:null===(s=w.variants)||void 0===s?void 0:null===(t=s.edges)||void 0===t?void 0:null===(r=t[0])||void 0===r?void 0:null===(m=r.node)||void 0===m?void 0:m.id):null==w?void 0:null===(x=w.variants)||void 0===x?void 0:null===(p=x.edges)||void 0===p?void 0:null===(h=p[0])||void 0===h?void 0:null===(u=h.node)||void 0===u?void 0:u.id;(0,i.A)((null==w?void 0:w.handle)||j,y,!N);let C=eb[j],_=null==b?void 0:null===(g=b.query)||void 0===g?void 0:g.variant,k=Array.isArray(_)?_[0]:_,F="muslin-swaddle"===j?eN(k):null==C?void 0:C.title,B=null==C?void 0:null===(f=C.description)||void 0===f?void 0:f.replace("60-night trial","".concat(d.$K[v],"-night trial"));return(0,a.jsxs)(a.Fragment,{children:[C&&(0,a.jsx)(c.PB,{title:F,description:B,openGraph:{title:F,description:B}}),(()=>{switch(j){case"transparent-mesh-bundle":return(0,a.jsx)(L,{product:w,locale:v});case"smart-crib":return(0,a.jsx)(o.Z,{product:w,locale:v});case"mattress-cover":case"fitted-sheet":return(0,a.jsx)(R,{product:w,locale:v});case"gift-card":return(0,a.jsx)(O,{product:w,locale:v});case"cradlewise-protect":return(0,a.jsx)(J,{product:w,locale:v});case"crib-rail-cover":return(0,a.jsx)(et,{product:w,locale:v});case"wood-swatch":return(0,a.jsx)(en,{product:w,locale:v});case"standard-mesh-bundle":return(0,a.jsx)(ej,{product:w,locale:v});case"cradlewise-mattress":return(0,a.jsx)(ex,{product:w,locale:v});case"printed-fitted-sheet":return(0,a.jsx)(eh,{product:w,locale:v});case"muslin-swaddle":case"muslin-blanket":return(0,a.jsx)(eg,{product:w,locale:v});default:return(0,a.jsx)("div",{children:"Product not found"})}})()]})};var eC=!0,e_=ey},67403:function(e,s,t){"use strict";function a(e,s){return Array.isArray(e)?e.map(e=>{var t,a,i;let l=(null===(t=e.node)||void 0===t?void 0:t.title)||e.title||"",r=s.find(s=>{var t;return s.title===l||s.id===((null===(t=e.node)||void 0===t?void 0:t.id)||e.id)});if(!r||!r.metafields){let s={limited_edition:l.toLowerCase().includes("limited edition")||l.toLowerCase().includes("blush & bloom")||l.toLowerCase().includes("hello sunshine")||l.toLowerCase().includes("tiny tides"),always_hidden_if_oos:!1,hidden_in_countries:null,product_showcase_title:"",is_available_for_rental:!1};return{id:(null===(a=e.node)||void 0===a?void 0:a.id)||e.id,title:l,availableForSale:(null===(i=e.node)||void 0===i?void 0:i.availableForSale)||e.availableForSale||!0,metafields:s,source:"inferred"}}return{id:r.id,title:r.title,availableForSale:r.availableForSale,metafields:r.metafields,source:"metafield"}}):[]}function i(e,s){return Array.isArray(e)&&Array.isArray(s)?e.map(e=>{var t,i,l;let r=s.find(s=>{var t;return s.handle===(null==e?void 0:null===(t=e.node)||void 0===t?void 0:t.handle)||s.handle===(null==e?void 0:e.handle)}),n=(null==e?void 0:null===(t=e.node)||void 0===t?void 0:null===(i=t.variants)||void 0===i?void 0:i.edges)||(null==e?void 0:null===(l=e.variants)||void 0===l?void 0:l.edges)||[];if(!r){let s=a(n,[]);return{...e,visibility:{product_metafields:{limited_edition:!1,always_hidden_if_oos:!1,hidden_in_countries:null,product_showcase_title:"",is_available_for_rental:!1},variants:s}}}let c=a(n,r.variants);return{...e,visibility:{product_metafields:r.product_metafields,variants:c}}}):e||[]}function l(e,s,t){return Array.isArray(e)&&Array.isArray(s)?e.filter(e=>{var a,i;let l=(null==e?void 0:null===(a=e.node)||void 0===a?void 0:a.handle)||(null==e?void 0:e.handle);if("smart-crib"===l)return!0;let r=s.find(e=>e.handle===l);if(!r)return!0;let n=r.product_metafields;if((null===(i=n.hidden_in_countries)||void 0===i?void 0:i.includes(t))||n.always_hidden_if_oos&&!r.availableForSale)return!1;let c=r.variants.some(e=>{var s;let a=null===(s=e.metafields.hidden_in_countries)||void 0===s?void 0:s.includes(t),i=e.metafields.always_hidden_if_oos&&!e.availableForSale;return!a&&!i});return c}):e||[]}function r(e){if(!e||"string"!=typeof e)return"US";let s=e.split("-");return s.length>1?s[1]:"US"}
1function n(e,s){var t,a,i;let l=(null==e?void 0:null===(t=e.node)||void 0===t?void 0:t.handle)||(null==e?void 0:e.handle);if("smart-crib"===l||!e.visibility)return!0;let r=e.visibility.product_metafields,n=(null==e?void 0:null===(a=e.node)||void 0===a?void 0:a.availableForSale)||(null==e?void 0:e.availableForSale);if((null===(i=r.hidden_in_countries)||void 0===i?void 0:i.includes(s))||r.always_hidden_if_oos&&!n)return!1;if(e.visibility.variants&&e.visibility.variants.length>0){let t=e.visibility.variants.some(e=>{var t,a,i;let l=null===(t=e.metafields)||void 0===t?void 0:null===(a=t.hidden_in_countries)||void 0===a?void 0:a.includes(s),r=(null===(i=e.metafields)||void 0===i?void 0:i.always_hidden_if_oos)&&!e.availableForSale;return!l&&!r});return t}return!0}function c(e,s,t,a){var i,l,r,n,c;let d=(null==e?void 0:null===(i=e.node)||void 0===i?void 0:i.handle)||(null==e?void 0:e.handle);if("smart-crib"===d||!(null===(l=e.visibility)||void 0===l?void 0:l.variants))return!0;let o=e.visibility.variants.find(e=>e.title===s||e.id===t);if(!o)return!0;let m=null===(r=o.metafields)||void 0===r?void 0:null===(n=r.hidden_in_countries)||void 0===n?void 0:n.includes(a),x=(null===(c=o.metafields)||void 0===c?void 0:c.always_hidden_if_oos)&&!o.availableForSale;return!m&&!x}t.d(s,{Ae:function(){return i},EB:function(){return r},KK:function(){return n},WR:function(){return c},kP:function(){return l}})}},function(e){e.O(0,[4617,4885,1228,7555,2345,6233,8999,7316,1672,1070,9429,9774,2888,179],function(){return e(e.s=32925)}),_N_E=e.O()}]);

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.