"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[73],{9:(e,r,a)=>{a.r(r)},25:(e,r,a)=>{a.r(r)},893:(e,r,a)=>{a.r(r),a.d(r,{default:()=>s});const s={wrapper:"NL7N9QJ5",wrapperTitle:"FmOvZoDH",wrapperTitleText:"RU0z7kyy"}},112:(e,r,a)=>{a.r(r),a.d(r,{default:()=>s});const s={wrapperImage:"mCJEb53I",wrapperImageFigure:"pWPs3gbf",wrapperImageFigureContent:"O7ZnNgZ7",wrapperCard:"I6NM4YLf",wrapperCardContent:"C6hVD7vf",wrapperCardText:"fLsZYpOo",wrapperCardTextTitle:"waoXjDyZ"}},62:(e,r,a)=>{a.r(r),a.d(r,{default:()=>s});const s={wrapper:"oXGyq2ca",wrapperDesktop:"nqPPWqZs",wrapperMobile:"vDhFl5HV",wrapperCarousel:"b9I2rZeP",wrapperCarouselLeft:"rEVFRbG9",wrapperCarouselRight:"OZsKaPGp",wrapperCarouselProgress:"lhMOZpte"}},63:(e,r,a)=>{a.r(r),a.d(r,{default:()=>s});const s={wrapper:"jmp01TbD",wrapperNojs:"tGj1m0yE",wrapperArrow:"IQlWiYTS",wrapperArrowActive:"fAM82TfK",wrapperArrowLeft:"y62mJzne",wrapperArrowLeftDots:"yUMO_uE5",wrapperArrowRight:"yS0GsLzj",wrapperArrowRightDots:"iRk7OCcq",wrapperDots:"Zwz13Exk",wrapperDotsSingleDot:"U5dMdj0H",wrapperDotsSingleDotActive:"LP_wsZMv"}},892:(e,r,a)=>{const s=a(327);(0,a(5).createEntrypoint)("homeAccessories",s.HomeAccessories)},327:function(e,r,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.HomeAccessories=void 0;const t=a(0),p=(a(1),a(3)),i=a(76),l=a(44),o=s(a(893)),{wrapper:n,wrapperTitle:d,wrapperTitleText:c}=o.default;r.HomeAccessories=function({title:e,products:r,maxSlidePerPage:a,device:s}){const[o,w]=(0,p.useState)(1);return r&&0!==r.length?((0,p.useEffect)((()=>{const e=setInterval((()=>{let e=(o+1)%r.length;0===e&&e++,w(e)}),1e3);return()=>clearInterval(e)})),(0,t.jsxs)("div",Object.assign({className:n},{children:[(0,t.jsx)("div",Object.assign({className:d},{children:(0,t.jsx)("div",Object.assign({className:c},{children:e}))})),(0,t.jsx)(l.ProductSlider,Object.assign({total:r.length,maxSlidePerPage:a},{children:r.map(((e,p)=>"variety-pack"===e.sku?(0,t.jsx)("div",Object.assign({class:"keen-slider__slide"},{children:r.map(((r,a)=>"variety-pack"!==r.sku?(0,t.jsx)("div",Object.assign({style:"display: "+(o===a?"block":"none")},{children:(0,t.jsx)(i.ProductCard,Object.assign({},r,{gradiantColor1:p%2==0?"#E0E0FF":"#7f7fd1",gradiantColor2:p%2==0?"#E0E0FF":"#7f7fd1",displayName:e.displayName}),p)})):null))})):(0,t.jsx)("div",Object.assign({class:"keen-slider__slide",style:{minWidth:("mobile"===s?100:100/a)+"%"}},{children:(0,t.jsx)("div",{children:(0,t.jsx)(i.ProductCard,Object.assign({},e,{gradiantColor1:p%2==0?"#E0E0FF":"#7f7fd1",gradiantColor2:p%2==0?"#E0E0FF":"#7f7fd1"}),p)})}))))}))]}))):null}}},e=>{e.O(0,[1,2,4,3,5,8,15,24,30],(()=>(892,e(e.s=892)))),e.O()}]);