1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[313],{62026:function(n,e,r){r.r(e),r.d(e,{default:function(){return X}});var t,a,i,u=r(30969),o=r(99500),l=r(95764),s=r(89810),c=r(99710),d=r(81034),f=r(17917),v=r.n(f),p=r(39455),h=r(85255),m=r(37574),x=["children","pauseOnHover","speed","updateOnResize"],Z=(0,h.Z)("div")(t||(t=(0,o.Z)(["\n position: relative;\n width: 100%;\n overflow: hidden;\n"]))),O=(0,h.Z)("div",{shouldForwardProp:function(n){return-1===["pauseOnHover","translateX"].indexOf(n)}})(a||(a=(0,o.Z)(["\n display: flex;\n position: relative;\n width: fit-content;\n animation-name: ",";\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n\n ","\n\n ","\n"])),(function(n){var e=n.translateX;return e?"marquee-".concat(e):""}),(function(n){var e=n.translateX;return e&&"\n @keyframes marquee-".concat(e," {\n 0% {\n transform: translate3d(0, 0, 0);\n }\n\n 100% {\n transform: translate3d(-").concat(e,"px, 0, 0);\n }\n }\n ")}),(function(n){return n.pauseOnHover&&"\n ".concat(p.BC.hover," {\n &:hover {\n animation-play-state: paused;\n }\n }\n ")})),w=function(n){var e,r=n.children,t=n.pauseOnHover,a=void 0!==t&&t,i=n.speed,o=void 0===i?15:i,f=n.updateOnResize,p=void 0===f||f,h=(0,d.Z)(n,x),w=(0,u.useRef)(null),_=(0,u.useRef)(null),y=(0,u.useRef)(null),L=(0,u.useRef)(!0),A=(0,u.useRef)(null),C=void 0!==(e=r)&&null!==e?Array.isArray(e)?e:[e]:[],E={duration:0,translateX:0,marqueeChildren:C},H=(0,u.useState)(E),X=(0,c.Z)(H,2),b=X[0],j=X[1],D=(0,u.useCallback)((function(){if(w.current&&_.current&&L.current){var n=_.current.scrollWidth,e=2*n+w.current.scrollWidth;L.current=!1;for(var r=(0,s.Z)(C),t=n;t<=e;)r=r.concat(C),t+=n;j({duration:n*o,translateX:n,marqueeChildren:r})}}),[C,o]),R=v()((function(){clearTimeout(A.current),A.current=setTimeout((function(){L.current=!0,D()}),550)}),500),S=(0,u.useCallback)((function(){var n=w.current.clientWidth;y.current!==n&&null!==y.current&&(L.current||j(E),R()),y.current=n}),[R,E]);return(0,u.useLayoutEffect)((function(){return D(),p&&window.addEventListener("resize",S),function(){clearTimeout(A.current),R.cancel(),window.removeEventListener("resize",S)}}),[D,p,R,S]),(0,m.jsx)(Z,(0,l.Z)((0,l.Z)({ref:w,opacity:b.translateX?1:0},h),{},{children:(0,m.jsx)(O,{ref:_,animationDuration:"".concat(b.duration,"ms"),pauseOnHover:a,translateX:b.translateX,children:b.marqueeChildren.map((function(n,e){return(0,m.jsx)(u.Fragment,{children:n},e)}))})}))},_=r(33747),y=r(31619),L=r(39660),A=(0,h.Z)("div")(i||(i=(0,o.Z)(["\n padding: 24px 12px;\n white-space: nowrap;\n border: 1px solid ",";\n border-width: 1px 0;\n "," {\n padding: 48px 24px;\n }\n"])),y.Z.warmGrey2,p.aE.xl),C=function(n){var e=n.text,r=(0,L.Z)("lg");return e&&(0,m.jsx)(w,{speed:r?8:15,pauseOnHover:!0,children:(0,m.jsx)(A,{children:(0,m.jsx)(_.Z,{textStyles:["Stabil Grotesk/40-110","Stabil Grotesk/64-100",null,"Stabil Grotesk/128-100"],children:e})})})};C.defaultProps={text:void 0};var E=C,H=function(n){var e=n.data;return(0,m.jsx)(E,{text:null===e||void 0===e?void 0:e.text})};H.defaultProps={data:{}};var X=H}}]); 2//# sourceMappingURL=UspSlider.89d14f8f.chunk.js.map
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.