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