/*! For license information please see 158.js.LICENSE.txt */
"use strict";(Object("undefined"!=typeof self?self:this).webpackChunkTransferWise=Object("undefined"!=typeof self?self:this).webpackChunkTransferWise||[]).push([[158],{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 u=r.useRef({}),a=r.useMemo((()=>{const t={};return e.forEach((e=>Object.defineProperty(t,e.name,{enumerable:!0,get(){if(i.current)return u.current[e.name]||(u.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()=>{u.current={},o.stopAllAction(),Object.values(a.actions).forEach((t=>{e&&o.uncacheAction(t,e)}))}}),[e]),a}},9158: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),u=n(6574),a=n(4848);const f=()=>{const e=(0,i.useRef)(),t=(0,r.p)((0,u.d)("plane.glb")),n=(0,s.F)(o.ObjectLoader,(0,u.d)("plane-light.json")),f=t.scene.getObjectByName("Plane_6_update"),{mixer:p,clips:l}=(0,c.f)(t.animations,e);return(0,s.C)((()=>{t.materials["Tapestry WebGL"].map.offset.y+=.018,f.position.x=.45,f.position.y=7.5,p.clipAction(l[0]).play()})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("primitive",{ref:e,scale:1.3,position:[0,-7,0],object:t.scene}),(0,a.jsx)("primitive",{object:n})]})}}}]);
//# sourceMappingURL=158.js.map