"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2851],{26039:function(e,t,n){var i=n(39237),s=n(60679),o=n(31549);t.Z=function(e){var{id:t,testId:n,children:a,itemsPerPage:c,variant:r="scroll",infiniteMode:u=!1}=e,{loading:l,isTablet:p,isMobile:h}=(0,s.Z)();return l?null:(0,o.jsx)(i.Z,{id:t,testId:n,variant:r,infiniteMode:u,itemsPerPage:p||h?1.6:c,children:a})}},294:function(e,t,n){n.r(t),n.d(t,{default:function(){return i.Z}});var i=n(26039)},77975:function(e,t,n){n.d(t,{QS:function(){return useSwipeable}});var i=n(44194);let s={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},o={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},a="mousemove",c="mouseup";function rotateXYByAngle(e,t){if(0===t)return e;let n=Math.PI/180*t,i=e[0]*Math.cos(n)+e[1]*Math.sin(n),s=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[i,s]}function useSwipeable(e){var t,n,r;let u;let{trackMouse:l}=e,p=i.useRef(Object.assign({},o)),h=i.useRef(Object.assign({},s)),g=i.useRef(Object.assign({},h.current));for(u in g.current=Object.assign({},h.current),h.current=Object.assign(Object.assign({},s),e),s)void 0===h.current[u]&&(h.current[u]=s[u]);let[O,v]=i.useMemo(()=>(function(e,t){let onStart=t=>{let n="touches"in t;n&&t.touches.length>1||e((e,i)=>{i.trackMouse&&!n&&(document.addEventListener(a,onMove),document.addEventListener(c,onUp));let{clientX:s,clientY:r}=n?t.touches[0]:t,u=rotateXYByAngle([s,r],i.rotationAngle);return i.onTouchStartOrOnMouseDown&&i.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),o),{initial:u.slice(),xy:u,start:t.timeStamp||0})})},onMove=t=>{e((e,n)=>{let i="touches"in t;if(i&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;let{clientX:o,clientY:a}=i?t.touches[0]:t,[c,r]=rotateXYByAngle([o,a],n.rotationAngle),u=c-e.xy[0],l=r-e.xy[1],p=Math.abs(u),h=Math.abs(l),g=(t.timeStamp||0)-e.start,O=Math.sqrt(p*p+h*h)/(g||1),v=[u/(g||1),l/(g||1)],b=p>h?u>0?"Right":"Left":l>0?"Down":"Up",d="number"==typeof n.delta?n.delta:n.delta[b.toLowerCase()]||s.delta;if(p<d&&h<d&&!e.swiping)return e;let f={absX:p,absY:h,deltaX:u,deltaY:l,dir:b,event:t,first:e.first,initial:e.initial,velocity:O,vxvy:v};f.first&&n.onSwipeStart&&n.onSwipeStart(f),n.onSwiping&&n.onSwiping(f);let S=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${b}`])&&(S=!0),S&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:f,swiping:!0})})},onEnd=t=>{e((e,n)=>{let i;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){i=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(i);let s=n[`onSwiped${i.dir}`];s&&s(i)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),o),{eventData:i})})},cleanUpMouse=()=>{document.removeEventListener(a,onMove),document.removeEventListener(c,onUp)},onUp=e=>{cleanUpMouse(),onEnd(e)},attachTouch=(e,t)=>{let cleanup=()=>{};if(e&&e.addEventListener){let n=Object.assign(Object.assign({},s.touchEventOptions),t.touchEventOptions),i=[["touchstart",onStart,n],["touchmove",onMove,Object.assign(Object.assign({},n),t.preventScrollOnSwipe?{passive:!1}:{})],["touchend",onEnd,n]];i.forEach(([t,n,i])=>e.addEventListener(t,n,i)),cleanup=()=>i.forEach(([t,n])=>e.removeEventListener(t,n))}return cleanup},n={ref:t=>{null!==t&&e((e,n)=>{if(e.el===t)return e;let i={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),i.cleanUpTouch=void 0),n.trackTouch&&t&&(i.cleanUpTouch=attachTouch(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),i)})}};return t.trackMouse&&(n.onMouseDown=onStart),[n,attachTouch]})(e=>p.current=e(p.current,h.current),{trackMouse:l}),[l]);return p.current=(t=p.current,n=h.current,r=g.current,n.trackTouch&&t.el?t.cleanUpTouch?n.preventScrollOnSwipe!==r.preventScrollOnSwipe||n.touchEventOptions.passive!==r.touchEventOptions.passive?(t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:v(t.el,n)})):t:Object.assign(Object.assign({},t),{cleanUpTouch:v(t.el,n)}):(t.cleanUpTouch&&t.cleanUpTouch(),Object.assign(Object.assign({},t),{cleanUpTouch:void 0}))),O}}}]);