(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[1324],{231324(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{"default":()=>r});var e=__webpack_require__(515863);__webpack_require__.n(e);var t=__webpack_require__(67659);var i=__webpack_require__(569710);__webpack_require__.n(i);var n=__webpack_require__(954817);var a=__webpack_require__(124832);function r(r){let f=(0,e.c)(36);let{isLoader:u,skipTransition:d}=r;let c=u===undefined?!1:u;let m=d===undefined?!1:d;let{isWasmReady:v,error:h}=(0,a.db)();let{buffer:g,error:p,loading:_}=(0,a.sW)("./images/riv_animations/fox_appear.riv");let w=(0,t.useRef)(null);let x;let E;f[0]!==p||f[1]!==h?(x=()=>{h&&console.error("[Rive - FoxAppearAnimation] Failed to load WASM:",h),p&&console.error("[Rive - FoxAppearAnimation] Failed to load buffer:",p)},E=[h,p],f[0]=p,f[1]=h,f[2]=x,f[3]=E):(x=f[2],E=f[3]),(0,t.useEffect)(x,E);let F;f[4]!==g?(F={buffer:g},f[4]=g,f[5]=F):F=f[5];let{riveFile:R,status:y}=(0,i.useRiveFile)(F);let A=R??undefined;let b=R?"FoxRaiseUp":undefined;let C=c?i.Alignment.Center:i.Alignment.BottomCenter;let L;f[6]!==C?(L=new i.Layout({fit:i.Fit.Contain,alignment:C}),f[6]=C,f[7]=L):L=f[7];let M;f[8]!==A||f[9]!==b||f[10]!==L?(M={riveFile:A,stateMachines:b,autoplay:!1,layout:L},f[8]=A,f[9]=b,f[10]=L,f[11]=M):M=f[11];let{rive:T,RiveComponent:$}=(0,i.useRive)(M);let k;let N;f[12]!==T?(k=()=>{if(!T||!w.current)return;let e=w.current.querySelector("canvas");if(!e)return;let t=()=>{let t=w.current;if(!t)return;let{clientWidth:i,clientHeight:n}=t;let a=window.devicePixelRatio||1;let r=Math.round(i*a);let l=Math.round(n*a);if(e.width===r&&e.height===l)return;e.width=r,e.height=l,e.style.width=`${i}px`,e.style.height=`${n}px`,T.resizeToCanvas()};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},N=[T],f[12]=T,f[13]=k,f[14]=N):(k=f[13],N=f[14]),(0,t.useEffect)(k,N);let S;let z;if(f[15]!==g||f[16]!==_||f[17]!==c||f[18]!==v||f[19]!==T||f[20]!==m?(S=()=>{if(T&&v&&!_&&g){let e=T.stateMachineInputs("FoxRaiseUp");if(e){if(m){let t=e.find(s);t&&t.fire()}else{let t=e.find(o);t&&t.fire()}if(c){let t=e.find(l);t&&t.fire()}T.play()}}},z=[T,c,v,m,_,g],f[15]=g,f[16]=_,f[17]=c,f[18]=v,f[19]=T,f[20]=m,f[21]=S,f[22]=z):(S=f[21],z=f[22]),(0,t.useEffect)(S,z),!v||_||!g||y==="loading"||y==="failed"){let e=`${c?"riv-animation__fox-container--loader":"riv-animation__fox-container"}`;let i;f[23]!==c?(i=c&&t.createElement("img",{"data-testid":"loading-indicator",className:"riv-animation__spinner",src:"./images/spinner.gif",alt:""}),f[23]=c,f[24]=i):i=f[24];let a;return f[25]!==e||f[26]!==i?(a=t.createElement(n.a,{className:e},i),f[25]=e,f[26]=i,f[27]=a):a=f[27],a}let W=`${c?"riv-animation__fox-container--loader":"riv-animation__fox-container"}`;let U;f[28]!==$?(U=t.createElement($,{className:"riv-animation__canvas"}),f[28]=$,f[29]=U):U=f[29];let q;f[30]!==c?(q=c&&t.createElement("img",{"data-testid":"loading-indicator",className:"riv-animation__spinner",src:"./images/spinner.gif",alt:""}),f[30]=c,f[31]=q):q=f[31];let B;return f[32]!==W||f[33]!==U||f[34]!==q?(B=t.createElement(n.a,{ref:w,className:W},U,q),f[32]=W,f[33]=U,f[34]=q,f[35]=B):B=f[35],B}function l(e){return e.name==="Loader2"}function o(e){return e.name==="Start"}function s(e){return e.name==="Wiggle"}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);