(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[8093],{778093(__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__(303280);__webpack_require__.n(e);var t=__webpack_require__(860012);var i=__webpack_require__(913965);__webpack_require__.n(i);var n=__webpack_require__(126528);var a=__webpack_require__(811077);function r(r){let f=(0,e.c)(34);let{isLoader:c,skipTransition:u}=r;let d=c===undefined?!1:c;let m=u===undefined?!1:u;let{isWasmReady:h,error:v}=(0,a.db)();let{buffer:p,error:g,loading:_}=(0,a.sW)("./images/riv_animations/fox_appear.riv");let w=(0,t.useRef)(null);let x;let E;f[0]!==g||f[1]!==v?(x=()=>{v&&console.error("[Rive - FoxAppearAnimation] Failed to load WASM:",v),g&&console.error("[Rive - FoxAppearAnimation] Failed to load buffer:",g)},E=[v,g],f[0]=g,f[1]=v,f[2]=x,f[3]=E):(x=f[2],E=f[3]),(0,t.useEffect)(x,E);let F;f[4]!==p?(F={buffer:p},f[4]=p,f[5]=F):F=f[5];let{riveFile:R,status:y}=(0,i.useRiveFile)(F);let b=R??undefined;let A=R?"FoxRaiseUp":undefined;let L;f[6]===Symbol.for("react.memo_cache_sentinel")?(L=new i.Layout({fit:i.Fit.Contain,alignment:i.Alignment.BottomCenter}),f[6]=L):L=f[6];let M;f[7]!==b||f[8]!==A?(M={riveFile:b,stateMachines:A,autoplay:!1,layout:L},f[7]=b,f[8]=A,f[9]=M):M=f[9];let{rive:S,RiveComponent:T}=(0,i.useRive)(M);let $;let k;f[10]!==S?($=()=>{if(!S||!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`,S.resizeToCanvas()};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},k=[S],f[10]=S,f[11]=$,f[12]=k):($=f[11],k=f[12]),(0,t.useEffect)($,k);let C;let N;if(f[13]!==p||f[14]!==_||f[15]!==d||f[16]!==h||f[17]!==S||f[18]!==m?(C=()=>{if(S&&h&&!_&&p){let e=S.stateMachineInputs("FoxRaiseUp");if(e){if(m){let t=e.find(s);t&&t.fire()}else{let t=e.find(o);t&&t.fire()}if(d){let t=e.find(l);t&&t.fire()}S.play()}}},N=[S,d,h,m,_,p],f[13]=p,f[14]=_,f[15]=d,f[16]=h,f[17]=S,f[18]=m,f[19]=C,f[20]=N):(C=f[19],N=f[20]),(0,t.useEffect)(C,N),!h||_||!p||y==="loading"||y==="failed"){let e=`${d?"riv-animation__fox-container--loader":"riv-animation__fox-container"}`;let i;f[21]!==d?(i=d&&t.createElement("img",{"data-testid":"loading-indicator",className:"riv-animation__spinner",src:"./images/spinner.gif",alt:""}),f[21]=d,f[22]=i):i=f[22];let a;return f[23]!==e||f[24]!==i?(a=t.createElement(n.a,{className:e},i),f[23]=e,f[24]=i,f[25]=a):a=f[25],a}let z=`${d?"riv-animation__fox-container--loader":"riv-animation__fox-container"}`;let W;f[26]!==T?(W=t.createElement(T,{className:"riv-animation__canvas"}),f[26]=T,f[27]=W):W=f[27];let U;f[28]!==d?(U=d&&t.createElement("img",{"data-testid":"loading-indicator",className:"riv-animation__spinner",src:"./images/spinner.gif",alt:""}),f[28]=d,f[29]=U):U=f[29];let q;return f[30]!==z||f[31]!==W||f[32]!==U?(q=t.createElement(n.a,{ref:w,className:z},W,U),f[30]=z,f[31]=W,f[32]=U,f[33]=q):q=f[33],q}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__}))()}}]);