initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
"use strict";(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[2887],{31496:(e,t,n)=>{n.d(t,{LottieAnimation:()=>f});var s=n(50959),r=n(10422),l=n(11527);const o=({children:e,...t})=>{const[n,o]=(0,s.useState)(null),a=(0,s.useRef)(null);return(0,s.useLayoutEffect)((()=>{a.current?.shadowRoot||o(a.current?.attachShadow({mode:"open"})??null)}),[]),(0,l.jsx)("div",{ref:a,...t,children:n&&(0,r.createPortal)(e,n)})};var a=n(22945),c=n.n(a),u=n(93295);const i=()=>{},d=({style:e,className:t,onAnimationEnd:n=i,...r})=>{const o=(0,s.useRef)(null),a=(0,s.useRef)(null),d=(0,u.NY)((()=>r),[r]);return(0,s.useLayoutEffect)((()=>{if(!o.current)return()=>{};a.current?.destroy();const e=a.current=c().loadAnimation({...d,container:o.current,renderer:"svg"});return e.addEventListener("complete",n),()=>{e.removeEventListener("complete",n),e.destroy()}}),[d,n]),(0,l.jsx)("div",{ref:o,className:t,style:e})},f=({withShadowRoot:e=!0,className:t,style:n,...s})=>e?(0,l.jsx)(o,{className:t,children:(0,l.jsx)(d,{...s,style:n})}):(0,l.jsx)(d,{className:t,style:n,...s})}}]);
|
||||
//# sourceMappingURL=lottie-animation.js.map
|
||||
Reference in New Issue
Block a user