1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5664],{75664:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});var n=r(95155),l=r(12115),c=r(99486);let s=l.memo(e=>{let{src:t,autoplay:r=!0,loop:s=!0,loopCount:u,restPosition:a=0,speed:i=1,className:o="",hideOnMobile:f=!1,hideOnDesktop:d=!1,ariaLabel:p="Lottie animation",visibilityObserver:m=!0,onInstance:v,onComplete:h}=e,b=(0,l.useRef)(null),E=(0,l.useRef)(null),k=(0,l.useRef)(0),L=(0,l.useRef)(!1),g=(0,l.useRef)(!1),R=(0,l.useRef)(v),x=(0,l.useRef)(h);(0,l.useEffect)(()=>{R.current=v},[v]),(0,l.useEffect)(()=>{x.current=h},[h]);let C=u?parseInt(String(u),10):0,y=a?parseFloat(String(a)):0,[N,j]=(0,l.useState)(!1),I=(0,l.useCallback)(()=>{let e=b.current;if(!e)return;let t=e.totalFrames;if(t>0&&y>0){let r=Math.floor(y/100*t);e.setFrame(r)}},[y]),w=(0,l.useCallback)(()=>{L.current&&(g.current=!0,j(!0),setTimeout(()=>{var e;I(),null==(e=x.current)||e.call(x)},16))},[I]),S=(0,l.useCallback)(()=>{if(!(C<=0)&&!L.current&&(k.current+=1,k.current>=C-1)){L.current=!0;let e=b.current;e&&e.setLoop(!1)}},[C]),_=(0,l.useCallback)(e=>{var t;if(e){if(null==(t=R.current)||t.call(R,e),b.current=e,k.current=0,L.current=!1,g.current=!1,!r){let t=()=>{I(),e.removeEventListener("load",t)};e.addEventListener("load",t)}C>0&&(1===C&&(e.setLoop(!1),L.current=!0),e.addEventListener("loop",S),e.addEventListener("complete",w))}},[r,C,y,I,S,w]);(0,l.useEffect)(()=>()=>{let e=b.current;e&&(e.removeEventListener("loop",S),e.removeEventListener("complete",w))},[S,w]),(0,l.useEffect)(()=>{if(!m)return;let e=E.current;if(!e||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(e=>{let[t]=e,n=b.current;n&&!g.current&&(t.isIntersecting&&r?n.play():t.isIntersecting||n.pause())},{threshold:0});return t.observe(e),()=>t.disconnect()},[r,m]);let F=[f?"hidden lg:block":"",d?"lg:hidden":""].filter(Boolean).join(" ");if(!t)return(0,n.jsx)("div",{className:"".concat(o," ").concat(F).trim(),children:(0,n.jsx)("p",{className:"text-neutral-500 text-sm text-center p-4",children:"No animation source provided"})});let O=C>0?C>1:s;return(0,n.jsx)("div",{ref:E,className:"lottie-container ".concat(F," ").concat(o).trim(),role:"img","aria-label":p,style:{lineHeight:0,fontSize:0},children:(0,n.jsx)(c.GL,{src:t,autoplay:r&&!N,loop:O&&!N,speed:i,dotLottieRefCallback:_,style:{width:"100%",height:"auto",display:"block"}})})})}}]);
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.