"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([[158],{426:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(4119),c=n(9437),s=n(9949);function o(e,t){const n=r.useRef(),[o]=r.useState((()=>t?t instanceof c.Object3D?{current:t}:t:n)),[i]=r.useState((()=>new c.AnimationMixer(void 0)));r.useLayoutEffect((()=>{t&&(o.current=t instanceof c.Object3D?t:t.current),i._root=o.current}));const a=r.useRef({}),u=r.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))),r.useEffect((()=>{const e=o.current;return()=>{a.current={},i.stopAllAction(),Object.values(u.actions).forEach((t=>{e&&i.uncacheAction(t,e)}))}}),[e]),u}},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),o=n(4119),i=n(9437),a=n(6574),u=n(4848);const f=()=>{const e=(0,o.useRef)(),t=(0,r.p)((0,a.d)("plane.glb")),n=(0,s.F)(i.ObjectLoader,(0,a.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,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("primitive",{ref:e,scale:1.3,position:[0,-7,0],object:t.scene}),(0,u.jsx)("primitive",{object:n})]})}}}]);
//# sourceMappingURL=158.comparison-table.js.map