PageSourceSearch

https://seekingalpha.com/samw/static/js/c.14801.d47e7a517.js

js seekingalpha.com collected 2026-09-24 07:16:07 UTC 8,904 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[14801],{914801(e,l,s){s.d(l,{F:()=>$});var t=s(643145),n=s(705763),i=s(205544),o=(s(218111),s(161701),s(962953),s(285917)),a=s(634164),r=s(296540),d=s(40476),c=s(188377),u=s(122713),m=s(14604),C=s(474848);const N=e=>{var l,s;let t=e.trackClassName,n=e.currentScroll,i=e.swipe,o=e.onTouchEnd,d=e.onTouchStart,c=e.slideWidth,u=e.renderSlides,N=e.fullScreenButton,v=e.onAnimationEnd,h=e.rootClassName;const x=(0,r.useMemo)(()=>{const e=`${c}%`;return n?{animationDuration:`${(0,m.M)(n.duration)}s`,width:e}:{width:e}},[n,c]),S=i?{onMouseDown:d,onMouseUp:o,onTouchEnd:o,onTouchStart:d}:{};return(0,C.jsxs)("div",{className:(0,a.$)("relative flex size-full overflow-hidden",h),children:[(0,C.jsx)("div",{className:(0,a.$)("flex","xmlJf",t),"data-scroll":null!==(l=null==n?void 0:n.direction)&&void 0!==l?l:null,"data-test-id":"slides","data-transition":null!==(s=null==n?void 0:n.transition)&&void 0!==s?s:null,style:x,onAnimationEnd:v,...S,children:u()}),N()]})};var v=s(241535);const h={left:"aRwAK",right:"Onghm"},x=e=>{let l=e.direction,s=e.disabled,t=e.onClick,n=e.rootClassName,i=e.arrowClassName;return e.isVisible?(0,C.jsx)("button",{className:(0,a.$)("pointer-events-auto",n),disabled:s,type:"button",onClick:t,children:(0,C.jsx)("span",{className:"flex items-center justify-center",children:(0,C.jsx)(v.A,{className:(0,a.$)("Bt9cm",h[l],i)})})}):null},S=e=>{let l=e.slidesCount,s=e.rootClassName,t=e.activeSlide,n=e.onSlideTo,i=e.isVisible,r=e.dotClassName;return i?(0,C.jsx)("ul",{className:(0,a.$)("pD_VB","m-0 list-none pl-0",s),children:Array.from({length:l},(e,l)=>(0,C.jsx)("li",{className:"inline-block align-middle",children:(0,C.jsx)("button",{className:(0,a.$)("pointer-events-auto size-18 rounded-full border-0 p-6","yEqNr",r),"data-active":t===l,type:"button",onClick:()=>{n(l)},children:(0,C.jsx)(o.x6,{id:"_TmwW5",values:{index:l}})})},l))}):null},b=e=>{let l=e.rootClassName,s=e.activeSlide,t=e.slidesCount;return e.isVisible?(0,C.jsxs)("span",{className:(0,a.$)(null!=l?l:"absolute bottom-24 flex w-full items-center justify-center text-share-text-2"),children:[(0,C.jsx)("span",{className:(0,a.$)("yYW4b","flex items-center justify-end text-medium-2-b"),children:s}),(0,C.jsx)("span",{className:(0,a.$)("r5zga","flex items-center justify-end text-medium-2-r"),children:t})]}):null},T=e=>{let l=e.onSlideToPrev,s=e.onSlideToNext,t=e.canSlideToNext,n=e.canSlideToPrev,i=e.slidesCount,o=e.activeSlide,r=e.rootClassName,d=e.controlsBtnClassName,c=e.arrowRightClassName,u=e.arrowLeftClassName,m=e.counterClassName,N=e.slideWidth,v=void 0===N?100:N,h=e.counter,T=void 0!==h&&h,f=e.dots,g=void 0!==f&&f,w=e.onSlideTo,k=e.arrows,p=void 0===k||k,j=e.dotsClassName,y=e.dotClassName;return i<=Math.floor(100/v)?null:(0,C.jsxs)("div",{className:(0,a.$)(null!=r?r:"pointer-events-none absolute inset-0 flex justify-between"),"data-test-id":"controls",children:[(0,C.jsx)(x,{arrowClassName:u,direction:"left",disabled:!n,isVisible:p,rootClassName:d,onClick:l}),(0,C.jsx)(b,{activeSlide:o+1,isVisible:T,rootClassName:m,slidesCount:i}),(0,C.jsx)(x,{arrowClassName:c,direction:"right",disabled:!t,isVisible:p,rootClassName:d,onClick:s}),(0,C.jsx)(S,{activeSlide:o,dotClassName:y,isVisible:g,rootClassName:j,slidesCount:i,onSlideTo:w})]})},f="prev",g="next",w={[f]:-1,[g]:1},k={[f]:{entering:-1,exiting:-.5},[g]:{entering:-1,exiting:-.5}};var p=s(195304),j=s(627029),y=s(72580),B="i7XSR";const $=e=>{let l=e.autoSlideDuration,s=e.swipe,m=void 0!==s&&s,v=e.children,h=e.initialIndex,x=void 0===h?0:h,S=e.infinite,b=void 0!==S&&S,f=e.slideWidth,g=void 0===f?100:f,$=e.rootClassName,P=e.slideClassName,A=e.onSlideClick,R=e.renderControls,E=e.isFullScreen,W=void 0!==E&&E,M=e.renderFullScreenButton,V=e.trackClassName,X=e.dotsClassName,F=e.dotClassName,Y=e.controlsRootClassName,L=e.counterClassName,z=e.dots,D=void 0!==z&&z,I=e.controlsBtnClassName,_=e.arrows,O=void 0!==_&&_,q=e.counter,H=e.arrowLeftClassName,J=e.arrowRightClassName,K=e.onNextClick,U=e.onPrevClick,Z=e.controlsOnTop,G=void 0!==Z&&Z,Q=e.controlsOnTopLabel,ee=void 0===Q?"":Q,le=e.slidesClassName,se=e.alwaysVisibilitySlide,te=e.initialCountSlides;const ne=(0,o.uB)()._,ie=(0,r.useRef)(!1),oe=(0,r.useRef)(null),ae=(0,r.useState)(()=>te?v.slice(x,te):v),re=(0,i.A)(ae,2),de=re[0],ce=re[1],ue=v.length,me=(0,r.useCallback)(e=>{return((l=v.length)+e%l)%l;var l},[v.length]),Ce=(0,r.useState)(x),Ne=(0,i.A)(Ce,2),ve=Ne[0],he=Ne[1],xe=(0,r.useState)([]),Se=(0,i.A)(xe,2),be=Se[0],Te=Se[1],fe=(0,r.useRef)(!1),ge=(0,n.A)(be),we=ge[0],ke=(0,t.A)(ge).slice(1),pe=me(ve-ke.reduceRight((e,l)=>{let s=l.direction;return e+w[s]},0)),je=0===ve,ye=ve===v.length-1,Be=b||!je,$e=b||!ye,Pe=(0,r.useCallback)(e=>{const l=Math.abs(e-ve);if(!l)return;he(me(e));const s=e<=ve?"prev":"next";"prev"===s&&e<0&&v.length!==de.length&&ce(v),Te(e=>e.concat(Array.from({length:l},()=>({direction:s,duration:Math.max(.3/l,.05),transition:"entering"}))))},[ve,v,me,de.length]),Ae=(0,r.useCallback)(()=>{Be&&(fe.current=!0,Pe(ve+w.prev),U&&U())},[ve,Be,U,Pe]),Re=(0,r.useCallback)(()=>{$e&&(fe.current=!0,Pe(ve+w.next),K&&K())},[ve,$e,K,Pe]);(0,c.$)({callback:()=>{Re()},delay:l,disabled:!l}),(e=>{let l=e.onSlideToPrev,s=e.onSlideToNext,t=e.isFullScreen;const n=(0,j.d)(l,100),i=(0,j.d)(s,100),o=(0,r.useCallback)(e=>{const l=e.keyCode;37===l&&n(),39===l&&i()},[n,i]);(0,r.useEffect)(()=>
1{if(t)return(0,y.X)((0,p.zk)(),"keydown",o)},[t,o])})({onSlideToPrev:Ae,onSlideToNext:Re,isFullScreen:W});const Ee=(0,r.useCallback)(e=>{var l,s;oe.current=null!=e&&null!==(l=e.touches)&&void 0!==l&&null!==(l=l[0])&&void 0!==l&&l.clientX?null==e||null===(s=e.touches)||void 0===s?void 0:s[0]:e},[]),We=(0,r.useCallback)(e=>{var l,s;if(!oe.current)return;const t=null!=e&&null!==(l=e.changedTouches)&&void 0!==l&&null!==(l=l[0])&&void 0!==l&&l.clientX?null==e||null===(s=e.changedTouches)||void 0===s?void 0:s[0]:e;switch(((e,l)=>{const s=l.clientX-e.clientX,t=l.clientY-e.clientY;return Math.abs(s)>Math.abs(t)?s<-10?"prev":s>10?"next":null:null})(oe.current,t)){case"prev":Re(),ie.current=!0;break;case"next":Ae(),ie.current=!0}},[Re,Ae]),Me=(0,r.useMemo)(()=>A?e=>{ie.current?ie.current=!1:A(e)}:null,[A]),Ve=(0,r.useCallback)(()=>{"next"===we.direction&&de.length!==v.length&&ce(e=>[...e,v[e.length]])},[v,we,de.length]),Xe=(0,r.useCallback)(()=>de.map((e,l)=>{const s=!fe.current&&l!==ve&&!se,t="function"==typeof e?e({activeIndex:ve,isHidden:s,onSlideToNext:Re,onSlideToPrev:Ae}):e;return(0,C.jsxs)("div",{"aria-hidden":l!==ve,className:(0,a.$)("X1VRB",s&&"NFwY_",P),"data-active":l===ve,style:{transform:`translateX(${100*(()=>{const e=50-g/2,s=we?w[we.direction]*k[we.direction][we.transition]:0,t=e+g*(l-pe-s),n=t+g;return("next"===(null==we?void 0:we.direction)?n<=0:n<0)?t+ue*g:("prev"===(null==we?void 0:we.direction)?100<=t:100<t)?t-ue*g:t})()/g}%)`},tabIndex:l===ve?0:-1,children:[t,Me?(0,C.jsx)(u.$,{rootClassName:"gEYYu",onClick:()=>{Me(l)}}):null]},t.key)}),[ve,se,we,pe,Me,Re,Ae,P,g,ue,de]),Fe=(0,r.useCallback)(()=>{if(we)switch(we.transition){case"entering":Te(e=>[{...e[0],transition:"exiting"},...e.slice(1)]);break;case"exiting":Te(e=>e.slice(1)),te&&Ve(),fe.current=!1}},[Ve,we,te]),Ye=(0,r.useCallback)(()=>M?M({activeIndex:ve}):null,[ve,M]);return G?(0,C.jsxs)("div",{className:(0,a.$)(B,$),"data-test-id":"carousel",children:[R?R({onSlideToPrev:Ae,onSlideToNext:Re,canSlideToNext:$e,canSlideToPrev:Be,slidesCount:v.length,activeSlide:ve+1,slideWidth:g,onSlideTo:Pe}):(0,C.jsxs)("div",{className:"flex w-full justify-between pb-16 pt-10",children:[ee?(0,C.jsx)("span",{className:"text-orange-60 lg:text-medium-b",children:(0,d.Z)(ee)?ne(ee):ee}):null,(0,C.jsx)(T,{activeSlide:ve,arrowLeftClassName:H,arrowRightClassName:J,arrows:Boolean(O),canSlideToNext:$e,canSlideToPrev:Be,controlsBtnClassName:I,counter:Boolean(q),counterClassName:L,dotClassName:F,dots:Boolean(D),dotsClassName:X,rootClassName:Y,slidesCount:ue,slideWidth:g,onSlideTo:Pe,onSlideToNext:Re,onSlideToPrev:Ae})]}
1),(0,C.jsx)(N,{currentScroll:we,fullScreenButton:Ye,renderSlides:Xe,rootClassName:le,slideWidth:g,swipe:m,trackClassName:V,onAnimationEnd:Fe,onTouchEnd:We,onTouchStart:Ee})]}):(0,C.jsxs)("div",{className:(0,a.$)(B,$),"data-test-id":"carousel",children:[(0,C.jsx)(N,{currentScroll:we,fullScreenButton:Ye,renderSlides:Xe,rootClassName:le,slideWidth:g,swipe:m,trackClassName:V,onAnimationEnd:Fe,onTouchEnd:We,onTouchStart:Ee}),R?R({onSlideToPrev:Ae,onSlideToNext:Re,canSlideToNext:$e,canSlideToPrev:Be,slidesCount:ue,activeSlide:ve+1,slideWidth:g,onSlideTo:Pe}):(0,C.jsx)(T,{activeSlide:ve,arrowLeftClassName:H,arrowRightClassName:J,arrows:Boolean(O),canSlideToNext:$e,canSlideToPrev:Be,controlsBtnClassName:I,counter:Boolean(q),counterClassName:L,dotClassName:F,dots:Boolean(D),dotsClassName:X,rootClassName:Y,slidesCount:ue,slideWidth:g,onSlideTo:Pe,onSlideToNext:Re,onSlideToPrev:Ae})]})}}}]);

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.