"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([[942],{426:function(e,t,n){n.d(t,{f:function(){return s}});var r=n(4119),c=n(9437),o=n(9949);function s(e,t){const n=r.useRef(),[s]=r.useState((()=>t?t instanceof c.Object3D?{current:t}:t:n)),[i]=r.useState((()=>new c.AnimationMixer(void 0)));r.useLayoutEffect((()=>{t&&(s.current=t instanceof c.Object3D?t:t.current),i._root=s.current}));const u=r.useRef({}),a=r.useMemo((()=>{const t={};return e.forEach((e=>Object.defineProperty(t,e.name,{enumerable:!0,get(){if(s.current)return u.current[e.name]||(u.current[e.name]=i.clipAction(e,s.current))},configurable:!0}))),{ref:s,clips:e,actions:t,names:e.map((e=>e.name)),mixer:i}}),[e]);return(0,o.C)(((e,t)=>i.update(t))),r.useEffect((()=>{const e=s.current;return()=>{u.current={},i.stopAllAction(),Object.values(a.actions).forEach((t=>{e&&i.uncacheAction(t,e)}))}}),[e]),a}},4942:function(e,t,n){n.r(t),n.d(t,{default:function(){return f}});var r=n(2603),c=n(426),o=n(9949),s=n(4119),i=n(9437),u=n(6574),a=n(4848);const f=()=>{const e=(0,s.useRef)(),t=(0,r.p)((0,u.d)("confetti.glb")),n=(0,o.F)(i.ObjectLoader,(0,u.d)("confetti-light.json")),{mixer:f,clips:p}=(0,c.f)(t.animations,e);return(0,o.C)((()=>{t.materials["Tapestry WebGL"].map.offset.x+=-.0015,f.clipAction(p[0]).play().setLoop(i.LoopOnce,1)})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("primitive",{ref:e,scale:1.5,position:[0,1.5,0],object:t.scene}),(0,a.jsx)("primitive",{object:n})]})}}}]);
//# sourceMappingURL=942.comparison.js.map