"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[13],{40:(e,t,a)=>{a.d(t,{a:()=>w});var s=a(0),r=a(62),n=a(42),i=a(15),c=a(10),o=a(2),d=a(4);const l={backgroundColor:"#F6F6F6",border:"none",padding:"16px",fontSize:"18px",fontWeight:"500",flexGrow:"0"};const{wrapper:u,wrapperHeader:p,wrapperHeaderTitle:f,wrapperSliderWrapper:h,wrapperButton:v}=n.a,w=({products:e,labels:t,addToCart:a,lazySlideHandles:n})=>{const w=t=>{const{product:s,variant:r}=e.reduce(((e,a)=>{const s=a.variants.find((e=>e.id===t));return s?{product:a,variant:s}:e}),{});if(!e[0]||!r)return;const n=(0,c.b)({product:s,variant:r,quantity:1});a(n)},[b,j]=(0,o.useState)(0),[x,S]=(0,o.useState)(e),[y,g]=(0,o.useState)(n);return(0,o.useEffect)((()=>{var e,t,a,s;y&&y.length&&(b%20==0&&0!==b&&(e=void 0,t=void 0,s=function*(){const e=y.slice(0,25);g(y.slice(25));const t=yield(0,d.getLazyState)("simplifiedProducts",{productHandles:e});S([...x,...t])},new((a=void 0)||(a=Promise))((function(r,n){function i(e){try{o(s.next(e))}catch(e){n(e)}}function c(e){try{o(s.throw(e))}catch(e){n(e)}}function o(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,c)}o((s=s.apply(e,t||[])).next())}))))}),[b]),(0,s.jsxs)("section",Object.assign({className:u},{children:[(0,s.jsx)("div",Object.assign({className:p},{children:(0,s.jsx)("p",Object.assign({className:f},{children:t.title}))})),(0,s.jsx)("div",{children:(0,s.jsx)("div",Object.assign({className:h},{children:(0,s.jsx)(i.a,{sliderId:"youMayAlsoLikeSliderId",arrows:!0,slides:x.map((e=>(0,s.jsx)(r.a,Object.assign({},e,{labels:t,showPrice:!1,addSliderProductToCart:w,cardStyles:l,buttonStyles:v,showVariants:!1,hidePromoCallout:!0})))),setCurrentSlide:j})}))})]}))}}}]);