"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[10],{61:(e,s,a)=>{a.d(s,{a:()=>c});var l=a(0),r=a(24),t=a(15),i=a(10);const{heading:o}=i.a,c=({title:e,subtitle:s,handleGoToNextSlide:a,handleGoToPrevSlide:i,isSmallTitle:c})=>(0,l.jsxs)("div",Object.assign({className:o},{children:[(0,l.jsx)(t.a,{title:e,subtitle:s,isSmallTitle:c}),(0,l.jsx)(r.a,{handleGoToNextSlide:a,handleGoToPrevSlide:i})]}))},24:(e,s,a)=>{a.d(s,{a:()=>c});var l=a(0),r=a(3),t=a(8);const{arrows:i,arrowsArrow:o}=t.a,c=({handleGoToNextSlide:e,handleGoToPrevSlide:s})=>(0,l.jsxs)("div",Object.assign({className:i},{children:[(0,l.jsx)("button",Object.assign({className:o,onClick:s},{children:(0,l.jsx)(r.c,{})})),(0,l.jsx)("button",Object.assign({className:o,onClick:e},{children:(0,l.jsx)(r.c,{})}))]}))},15:(e,s,a)=>{a.d(s,{a:()=>d});var l=a(0),r=a(281),t=a(6);const{text:i,textSubtitle:o,textTitle:c,textTitleIsSmall:n}=t.a,d=({title:e,subtitle:s,isSmallTitle:a,className:t})=>(0,l.jsxs)("div",Object.assign({className:(0,r.a)(i,t&&t)},{children:[!a&&(0,l.jsx)("p",Object.assign({className:o},{children:s})),(0,l.jsx)("p",Object.assign({className:(0,r.a)(c,a&&n)},{children:e}))]}))},20:(e,s,a)=>{a.d(s,{a:()=>$});var l=a(0),r=a(1),t=a(156),i=a(21),o=a(2),c=a(86),n=a(7),d=a(35),u=a(281);const{wrapper:p,wrapperBottomFooter:m,wrapperBottom:b,wrapperBottomHeading:h,wrapperBottomTitle:g,wrapperBottomSubtitle:j,wrapperBottomPrice:S,wrapperBottomPriceDiscountActive:x,wrapperBottomPriceDiscount:P,wrapperBottomPriceRegular:v,wrapperBottomPriceRegularDiscountActive:k,wrapperLink:N,wrapperLinkFixed:w,wrapperImg:f,wrapperImgSmall:C}=i.a,O=({product:e,currencySymbol:s,isPickerHoverDisabled:a,colorLabel:i,colorsLabel:v,badgeLabels:k,isSaleBadgeEnabled:O,isSmallerCard:T})=>{const{currentProduct:B,currentVariant:L,isCarousel:D,colorPickerContainerRef:G,isPickerOpen:y,formattedTitle:E,otherColorsProducts:R,discountPercent:V,isBogoSaleEnabled:M,handleActiveProductChange:A,handlePickerState:F,handleMouseEnter:$,handleMouseLeave:z}=((e,s)=>{const[a,l]=(0,o.useState)(""),[r,t]=(0,o.useState)(s),i=(0,o.useMemo)((()=>{if(""===a)return e[0];const s=e.findIndex((({handle:e})=>e===a));return-1===s?e[0]:e[s]}),[a,e.length]),{colorPickerContainerRef:d,isCarousel:u}=(0,c.b)(i.otherColorsProducts.length),p=(0,o.useCallback)(((e,a)=>{s||(a&&a.preventDefault(),t(e))}),[s]),m=(e=>""===e.selectedValues.color?e.title.replace(e.selectedValues.brand,"").trim():e.title.replace(` - ${e.selectedValues.colorName}`,"").replace(e.selectedValues.brand,"").trim())(i),{variants:b}=i,h=b[0],g=(0,o.useCallback)((e=>{s||p(!0,e)}),[s]),j=(0,o.useCallback)((e=>{s||p(!1,e)}),[s]),S=e.map((({handle:e,selectedValues:s})=>({handle:e,color:s.color,colorName:s.colorName,status:""}))),x=(0,n.c)(Number(h.price||i.price),Number(h.compareAtPrice||i.compareAtPrice)),P=i.bogoSalePercentage;return{handleActiveProductChange:(e,s)=>{s&&s.preventDefault(),l(e)},handlePickerState:p,handleMouseEnter:g,handleMouseLeave:j,isPickerOpen:r,currentProduct:i,formattedTitle:m,currentVariant:h,otherColorsProducts:S,colorPickerContainerRef:d,isCarousel:u,discountPercent:x,isBogoSaleEnabled:P>0&&P<100}})(e,a),{handle:_,image:{url:H,altText:I},selectedValues:W,compareAtPrice:J,price:U}=B;if(!B)return(0,l.jsx)(r.Fragment,{});const q=V>0,K=q||M;return(0,l.jsx)("a",Object.assign({className:(0,u.a)(N,T&&w),href:`/products/${_}?variant=${L.id}`},{children:(0,l.jsxs)("div",Object.assign({className:p,onMouseEnter:$,onMouseLeave:z},{children:[(0,l.jsxs)("div",Object.assign({className:(0,u.a)(f,T&&C)},{children:[K&&(0,l.jsx)(d.a,{labels:k,isBogoSaleActive:M,discountPercent:V,isSaleBadgeEnabled:O}),(0,l.jsx)("img",{src:H,alt:I,width:"13",height:"18"})]})),(0,l.jsxs)("div",Object.assign({className:b},{children:[(0,l.jsxs)("div",Object.assign({className:h},{children:[(0,l.jsx)("p",Object.assign({className:g},{children:W.brand})),(0,l.jsxs)("p",Object.assign({className:j},{children:[(0,l.jsx)("span",{children:E}),` | ${W.colorName||W.color} `]}))]})),(0,l.jsxs)("div",Object.assign({className:m,ref:G},{children:[(0,l.jsx)("div",{children:(0,l.jsx)(t.a,{handlePickerState:F,isCarousel:D,isPickerOpen:y,selectedProduct:_,toggleColorPicker:A,values:R,colorsLabel:v,colorLabel:i,showsInitialThreeColors:!1})}),(0,l.jsxs)("p",Object.assign({className:S},{children:[q&&(0,l.jsxs)(r.Fragment,{children:[(0,l.jsx)("span",Object.assign({className:P},{children:`${s}${(0,n.d)(J)}`}))," "]}),(0,l.jsx)("span",Object.assign({className:(0,u.a)(S,q&&x)},{children:`${s}${(0,n.d)(U)}`}))]}))]}))]}))]}))}))};var T=a(9);const B={initial:0,loop:!0,slides:{perView:3.5,origin:-.16},breakpoints:{"(min-width: 1440px)":{slides:{perView:"auto",origin:-.16}}}},L={selector:".smaller > .keen-slider__slide",loop:!0};var D=a(64);function G(e,s,a){const{lazyRelatedProducts:l,startFetchLazyProducts:r}=(0,D.a)(e,s),{handleGoToNextSlide:t,handleGoToPreviousSlide:i,jsDisabled:c,mainSliderRef:n}=function(e,s,a){const[l,r]=(0,o.useState)(!0),t=1===e,i=((e,s,a)=>s?Object.assign(Object.assign({},L),{slides:{perView:"auto",origin:e},dragStarted(){a&&a()}}):Object.assign(Object.assign({},B),{slides:{perView:3.5,origin:e},selector:".upsellSliderDesktop > .keen-slider__slide",breakpoints:{"(min-width: 1440px)":{slides:{perView:4.5,origin:e}}},dragStarted(){a&&a()}}))(t?"auto":-.16,s,a),[c,n]=(0,T.a)(i);(0,o.useEffect)((0,u.c)(n,i),[n.current,e]),(0,o.useEffect)((()=>{r(!1)}),[]);const d=(0,o.useCallback)((e=>{n.current&&(t||n.current.next())}),[t]),p=(0,o.useCallback)((e=>{n.current&&(t||n.current.prev())}),[]);return(0,o.useEffect)((()=>{r(!1)}),[]),{jsDisabled:l,handleGoToNextSlide:d,handleGoToPreviousSlide:p,mainSliderRef:c}}(l.length,a,r);return{lazyRelatedProducts:l,jsDisabled:c,goToNextSlide:e=>{t(e),r()},handleGoToPreviousSlide:i,mainSliderRef:n}}var y=a(61),E=a(22);const{wrapper:R,wrapperSlider:V,wrapperMaxWidth:M,wrapperBottomPadding:A,wrapperSmallMargin:F}=E.a,$=({currencySymbol:e,subtitle:s,isPickerHoverDisabled:a,leftUpsellProductsHandles:r,isSaleBadgeEnabled:t,title:i,upsellProducts:o,badgeLabels:c,colorLabel:n,colorsLabel:d,hasMaxWidth:p=!1,hasBottomPadding:m=!1,isSmallTitle:b=!1,isSmallerCarousel:h=!0})=>{const{jsDisabled:g,lazyRelatedProducts:j,goToNextSlide:S,handleGoToPreviousSlide:x,mainSliderRef:P}=G(o,r,h),v=((e,s)=>s?"noJsForSmallUpsellCarouselDesktop":e?"noJsForOneSlideCarousel":"noJsForUpsellCarouselDesktop")(1===j.length,h),k=h?{minWidth:300,maxWidth:300}:{};return(0,l.jsxs)("section",Object.assign({className:(0,u.a)(R,g&&v,h&&F,p&&M,m&&A)},{children:[(0,l.jsx)(y.a,{handleGoToNextSlide:S,handleGoToPrevSlide:x,subtitle:s,title:i,isSmallTitle:b}),(0,l.jsx)("div",Object.assign({ref:P,className:(0,u.a)("keen-slider",V,h?"smaller":"upsellSliderDesktop")},{children:j.map(((s,r)=>(0,l.jsx)("div",Object.assign({className:`keen-slider__slide number-slide${r}`,style:k},{children:(0,l.jsx)(O,{isSmallerCard:h,isSaleBadgeEnabled:t,badgeLabels:c,currencySymbol:e,isPickerHoverDisabled:a,product:s,colorLabel:n,colorsLabel:d})}),s[0].image.url+r)))}))]}))}},64:(e,s,a)=>{a.d(s,{a:()=>t});var l=a(2),r=a(7);const t=(e,s)=>{const[a,t]=(0,l.useState)(e),[i,o]=(0,l.useState)(!1),c=e=>t((s=>s.concat(e)));return(0,l.useEffect)((()=>{0!==s.length&&i&&(0,r.g)(s,c)}),[i,s.length]),{lazyRelatedProducts:a,startFetchLazyProducts:()=>o(!0)}}}}]);