1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4989],{19287:(e,s,a)=>{a.r(s),a.d(s,{NewsSlider:()=>l});var n=a(6029),r=a(17906),t=a(86013),i=a(55729);let l=({items:e,customBackgroundColor:s,customTextColor:a,speed:l=6})=>{let c=(0,i.useRef)(),[d,o]=(0,i.useState)(!1),[u,m]=(0,i.useState)(20),x=(0,i.useCallback)(()=>{c.current&&m(Math.max(c.current.scrollWidth/2/(15*l),5))},[l]);(0,i.useEffect)(()=>(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x,e]);let w=e?[...e,...e,...e,...e]:[],h=e=>w.map((s,a)=>(0,n.jsxs)("div",{className:"inline-flex shrink-0 items-center",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,n.jsx)(r.R,{className:"news-slider-markdown-text",children:s?.text}),(0,n.jsx)("div",{className:"mx-2",children:(0,n.jsx)(t.I,{iconName:"arrow",iconSize:"xs"})})]},`${e}-${a}`));return(0,n.jsx)("div",{className:"overflow-hidden bg-black py-4 text-white",style:{color:a,backgroundColor:s},children:(0,n.jsxs)("div",{ref:c,className:"news-slider-track flex w-max",style:{animationDuration:`${u}s`,animationPlayState:d?"paused":"running"},children:[h("a"),h("b")]})})}}}]);
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.