"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[14],{54:(e,t,n)=>{n.d(t,{a:()=>v});var c=n(1),l=n(5),a=n(51),s=n(4),o=n(94);const{wrapper:r,wrapperDots:i,wrapperDotsDot:p,wrapperDotsDotActive:u,wrapperDotsMobile:b,wrapperDotsDesktop:d}=a.a,h=e=>{const{children:t}=e,n=function(e,t){var n={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&t.indexOf(c)<0&&(n[c]=e[c]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(c=Object.getOwnPropertySymbols(e);l{const{selectedIndex:g,scrollSnaps:f,onDotButtonClick:k}=((e,t,n)=>{const[c,a]=(0,l.useState)(0),[s,r]=(0,l.useState)([]),i=(0,l.useCallback)((t=>{e&&e.scrollTo(t)}),[e]),p=(0,l.useCallback)((e=>{r(e.scrollSnapList())}),[]),u=(0,l.useCallback)((e=>{a((c=>{const l=e.selectedScrollSnap();if(c===l)return l;if(t&&n){const e=l>c?"Right":"Left";(0,o.a)(e,t,n)}return l}))}),[]);return(0,l.useEffect)((()=>{e&&(p(e),u(e),e.on("reInit",p).on("reInit",u).on("select",u))}),[e,p,u]),{selectedIndex:c,scrollSnaps:s,onDotButtonClick:i}})(e,a,v),m=t?new Array(Math.ceil(t.total/t.perView)).fill(0):null,j=n?new Array(Math.ceil(n.total/n.perView)).fill(0):null,[y,w]=(0,l.useState)(!0);return(0,l.useEffect)((()=>{e&&w(!1)}),[e]),j&&(null==j?void 0:j.length)<2&&m&&(null==m?void 0:m.length)<2||!y&&f.length<2?null:(0,c.jsxs)("div",Object.assign({className:r},{children:[(0,c.jsx)("div",Object.assign({className:(0,s.c)(i,b)},{children:y&&m&&m.length>1?m.map(((e,t)=>(0,c.jsx)(h,{onClick:()=>k(t),className:(0,s.c)(p,t===g&&u)},t))):f.map(((e,t)=>(0,c.jsx)(h,{onClick:()=>k(t),className:(0,s.c)(p,t===g&&u)},t)))})),(0,c.jsx)("div",Object.assign({className:(0,s.c)(i,d)},{children:y&&j&&j.length>1?j.map(((e,t)=>(0,c.jsx)(h,{onClick:()=>k(t),className:(0,s.c)(p,t===g&&u)},t))):f.map(((e,t)=>(0,c.jsx)(h,{onClick:()=>k(t),className:(0,s.c)(p,t===g&&u)},t)))}))]}))}},94:(e,t,n)=>{n.d(t,{a:()=>s,b:()=>a,c:()=>l});var c=n(10);const l=(e,t,n,l)=>{const a={event:"click:product",event_action:"click:product",event_category:`TabbedSection-${e}`,event_label:t,product_id:n,product_name:l};c.a.push(a)},a=(e,t)=>{const n={event:"click:promo",event_action:"click:promoItem",event_category:`TabbedSection-${e}`,event_label:t};c.a.push(n)},s=(e,t,n)=>{const l={event:"change:carousel",event_action:`change:carousel${e}`,event_category:`TabbedSection-${t}`,event_label:n};c.a.push(l)}}}]);