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