1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{68170:function(r,e,a){"use strict";a.r(e),a.d(e,{Card:function(){return d}});var s=a(85893),n=a(67294),l=a(51436),t=a(94459),c=a(81537),u=a(38032),i=a(84682),o=a.n(i);e.default=(0,t.LM)("CardCarousel",{style:o()},(function(r,e){var a=r.className,t=(0,n.useRef)(null),i=(0,n.useRef)(null),o=(0,n.useRef)(null),d=(0,n.useRef)(null),_=function(r){var e=t.current;e&&(e.classList.add("--shake__".concat(r)),d.current&&clearTimeout(d.current),setTimeout((function(){e.classList.remove("--shake__next","--shake__prev")}),300))};return(0,s.jsxs)("div",{className:a,children:[(0,s.jsx)("div",{className:"CardCarousel__Wrapper",ref:t,children:(0,s.jsx)("div",{ref:i,className:"CardCarousel__Inner",children:e.children})}),(0,s.jsxs)("div",{ref:o,className:"CardCarousel__Controls --firstSlide",children:[(0,s.jsx)(u.zx,{primary:!0,onClick:function(){return function(){var r=i.current;if(r){var e=t.current;if(e&&!e.classList.contains("--shake__next")&&!e.classList.contains("--shake__prev")){var a=r.querySelector(".CardCarousel__Card.--current");if(a){var s=Array.from(r.querySelectorAll(".CardCarousel__Card")),n=s.indexOf(a);if(!s[n-1])return _("next");s[n-2]||o.current.classList.add("--firstSlide"),s.forEach((function(r){return r.classList.remove("--current")})),s[n-1].classList.add("--current")}}}}()},ariaLabel:"Show Previous",children:(0,s.jsx)(c.A6,{icon:l.A35})}),(0,s.jsx)(u.zx,{primary:!0,onClick:function(){return function(){e.onNext&&e.onNext();var r=i.current;if(r){var a=t.current;if(a&&!a.classList.contains("--shake__next")&&!a.classList.contains("--shake__prev")){var s=r.querySelector(".CardCarousel__Card.--current");if(s){var n=Array.from(r.querySelectorAll(".CardCarousel__Card")),l=n.indexOf(s);if(n[l+1]){if(!n[l+3])return _("next");n.forEach((function(r){return r.classList.remove("--current")})),n[l+1].classList.add("--current"),o.current.classList.remove("--firstSlide")}}}}}()},ariaLabel:"Show Next",children:(0,s.jsx)(c.A6,{icon:l._tD})})]})]})}));var d=(0,t.LM)("CardCarousel__Card",{style:o(),classStates:["placeholder"]},(function(r,e){var a=r.className;return(0,s.jsx)("div",{className:a,"aria-hidden":e.placeholder,children:(0,t.If)(!e.placeholder,(function(){return(0,s.jsx)("div",{children:e.children})})).EndIf()})}))},84682:function(r){r.exports={CardCarousel:"CardCarousel",CardCarousel__Controls:"CardCarousel__Controls",Button:"Button","--firstSlide":"--firstSlide",CardCarousel__Wrapper:"CardCarousel__Wrapper","--shake__next":"--shake__next","--shake__prev":"--shake__prev",cardCarouselShake:"cardCarouselShake",CardCarousel__Inner:"CardCarousel__Inner","--shake":"--shake",CardCarousel__Card:"CardCarousel__Card","--current":"--current","CardCarousel__Card--placeholder":"CardCarousel__Card--placeholder"}}}]);
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.