/*! For license information please see 648.js.LICENSE.txt */
"use strict";(Object("undefined"!=typeof self?self:this).webpackChunkTransferWise=Object("undefined"!=typeof self?self:this).webpackChunkTransferWise||[]).push([[648],{426:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(4119),c=n(9437),s=n(9949);function i(e,t){const n=r.useRef(),[i]=r.useState((()=>t?t instanceof c.Object3D?{current:t}:t:n)),[u]=r.useState((()=>new c.AnimationMixer(void 0)));r.useLayoutEffect((()=>{t&&(i.current=t instanceof c.Object3D?t:t.current),u._root=i.current}));const o=r.useRef({}),a=r.useMemo((()=>{const t={};return e.forEach((e=>Object.defineProperty(t,e.name,{enumerable:!0,get(){if(i.current)return o.current[e.name]||(o.current[e.name]=u.clipAction(e,i.current))},configurable:!0}))),{ref:i,clips:e,actions:t,names:e.map((e=>e.name)),mixer:u}}),[e]);return(0,s.C)(((e,t)=>u.update(t))),r.useEffect((()=>{const e=i.current;return()=>{o.current={},u.stopAllAction(),Object.values(a.actions).forEach((t=>{e&&u.uncacheAction(t,e)}))}}),[e]),a}},6648:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var r=n(2603),c=n(426),s=n(9949),i=n(4119),u=n(9437),o=n(6574),a=n(4848);const f=()=>{const e=(0,i.useRef)(),t=(0,r.p)((0,o.d)("check-mark.glb")),{animations:n,scene:f}=t,l=(0,s.F)(u.ObjectLoader,(0,o.d)("check-mark-light.json")),{mixer:p,clips:m}=(0,c.f)(n,e);return(0,s.C)((()=>{t.materials.Standard.map.offset.x+=-.0025,p.clipAction(m[0]).play().setLoop(u.LoopOnce,1)})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("primitive",{ref:e,scale:1.4,object:f}),(0,a.jsx)("primitive",{object:l})]})}}}]);
//# sourceMappingURL=648.js.map