/*! For license information please see 566.js.LICENSE.txt */
"use strict";(Object("undefined"!=typeof self?self:this).webpackChunkTransferWise=Object("undefined"!=typeof self?self:this).webpackChunkTransferWise||[]).push([[566],{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)),[o]=r.useState((()=>new c.AnimationMixer(void 0)));r.useLayoutEffect((()=>{t&&(i.current=t instanceof c.Object3D?t:t.current),o._root=i.current}));const a=r.useRef({}),u=r.useMemo((()=>{const t={};return e.forEach((e=>Object.defineProperty(t,e.name,{enumerable:!0,get(){if(i.current)return a.current[e.name]||(a.current[e.name]=o.clipAction(e,i.current))},configurable:!0}))),{ref:i,clips:e,actions:t,names:e.map((e=>e.name)),mixer:o}}),[e]);return(0,s.C)(((e,t)=>o.update(t))),r.useEffect((()=>{const e=i.current;return()=>{a.current={},o.stopAllAction(),Object.values(u.actions).forEach((t=>{e&&o.uncacheAction(t,e)}))}}),[e]),u}},6566: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),o=n(9437),a=n(6574),u=n(4848);const f=()=>{const e=(0,i.useRef)(),t=(0,r.p)((0,a.d)("lock.glb")),n=(0,s.F)(o.ObjectLoader,(0,a.d)("lock-light.json"));t.scene.traverse((e=>{e.isMesh&&(e.castShadow=!0,e.receiveShadow=!0)}));const{clips:f,mixer:l}=(0,c.f)(t.animations,e);let p=0;return(0,s.C)((()=>{l.clipAction(f[0]).play().setLoop(o.LoopOnce,1),t.scene.position.y=.2*Math.sin(.04*p++),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.js.map