"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5597],{8314:function(t,r,e){var n=e(4978),o=e(65),i=e(925),c=e(7098),l=e(8056),u=e(9426),a=e(9590),f=e(4004);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var p=["data","children"];function y(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function b(t){for(var r=1;rt.length)&&(r=t.length);for(var e=0,n=Array(r);e0&&j(function(t){return t-1})},E=function(t){j(t)};return(0,n.useEffect)(function(){x(e?e.length:0)},[]),(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(v,b(b({data:e,onTouchStart:function(t){d(t.touches[0].clientX)},onTouchMove:function(t){if(t.preventDefault(),null!==y){var r=y-("touches"in t?t.touches[0].clientX:t.clientX);r>5&&C(),r<-5&&I(),d(0)}}},i),{},{ref:r,"data-test":"carousel",children:[(0,f.jsx)(g,{currentIndex:w,"data-test":"carousel-items",children:o}),(0,f.jsxs)(O,{"data-test":"carousel-navigation",children:[(0,f.jsx)(a.Z,{type:"button",onClick:I,disabled:!(w>0),variant:"transparent","data-testid":"prev",children:(0,f.jsx)(c.Z,{height:"3rem",width:"3rem",fill:w>0?"primary":"#8e8e8e"})}),e&&e.map(function(t){return(0,f.jsx)(a.Z,{border:"dark",p:6,type:"button",onClick:function(){return E(t.count)},variant:"icon","data-testid":"index-".concat(t.count),disabled:w===t.count,startAdornment:(0,f.jsx)(l.Z,{fill:w===t.count?"#8e8e8e":"primary",height:"0.5rem",width:"0.5rem"})},t.id)}),(0,f.jsx)(a.Z,{type:"button",onClick:C,disabled:!(w