1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8407],{68407:function(e,r,n){"use strict";n.r(r);var t=n(67294),i=n(91433),a=n.n(i),c=(n(61130),n(85893));r.default=function(e){var r=e.item,n=r.timer,i=r.items,s=r.showNav,o=void 0!==s&&s,u=(0,t.useState)(0),l=u[0],d=u[1],h=(0,t.useState)(!0),_=h[0],m=h[1];(0,t.useEffect)((function(){if(_){var e=setInterval((function(){return d((function(e){return(e+1)%i.length}))}),n);return function(){return clearInterval(e)}}}),[_,n,i]);var p=i.map((function(e,r){return(0,c.jsx)("a",{href:e.href,className:"".concat(a().carouselItem," ").concat(l!==r?a().hidden:void 0),children:(0,c.jsxs)("picture",{children:[(0,c.jsx)("source",{srcSet:e.desktop,media:"(min-width: 369px)"}),(0,c.jsx)("source",{srcSet:e.mobile,media:"(max-width: 768px)"}),(0,c.jsx)("img",{srcSet:e.desktop,alt:e.alt||"image"})]})},r)})),f=i.map((function(e,r){return(0,c.jsx)("div",{className:"".concat(a().dot," ").concat(l===r?a().active:void 0),onClick:function(){d(r),m(!1)}},r)}));return(0,c.jsx)("div",{className:a().hero,children:(0,c.jsxs)("div",{className:a().wrapper,children:[o&&(0,c.jsx)("span",{onClick:function(){d((function(e){return 0===e?i.length-1:e-1})),m(!1)},children:(0,c.jsx)("div",{className:a().iconWrapper,children:(0,c.jsx)("img",{src:"/icons/left-arrow.svg",alt:"previous image",height:40})})}),p,o&&(0,c.jsx)("span",{onClick:function(){d((function(e){return(e+1)%i.length})),m(!1)},children:(0,c.jsx)("div",{className:a().iconWrapper,children:(0,c.jsx)("img",{src:"/icons/right-arrow.svg",alt:"next image",height:60})})}),i.length>1&&(0,c.jsx)("div",{className:a().indicatorContainer,children:f})]})})}},91433:function(e){e.exports={hero:"Carousel_hero__1t-dB",wrapper:"Carousel_wrapper__1qG4G",carouselItem:"Carousel_carouselItem__3qmMV",hidden:"Carousel_hidden__1o1cv",iconWrapper:"Carousel_iconWrapper__fuJ2A",indicatorContainer:"Carousel_indicatorContainer__P1GU-",dot:"Carousel_dot__12rhn",active:"Carousel_active__3_mCC"}}}]);
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.