try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f8182725-b112-4eb8-91aa-305d94cc6f2a`,e._sentryDebugIdIdentifier=`sentry-dbid-f8182725-b112-4eb8-91aa-305d94cc6f2a`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,Ig as r,ch as i,gr as a}from"./entry.client-dr7r6s9a.js";import{t as o}from"./PurchaseShell-bdt26dfl.js";import{t as s}from"./BankChallenge-n20pd30m.js";var c=n(),l=e(r(),1),u=t(),d=e=>{let t=(0,c.c)(19),n=(0,l.useRef)(null),{trackAppAction:r}=i(),d,f;t[0]!==r||t[1]!==e.session.id?(d=()=>{r(`ShowBankChallenge`,{sessionId:e.session.id},{location:`BankChallengePage`})},f=[e.session.id,r],t[0]=r,t[1]=e.session.id,t[2]=d,t[3]=f):(d=t[2],f=t[3]),(0,l.useEffect)(d,f);let p;t[4]===e?p=t[5]:(p=()=>{e.challengeComplete({status:`Canceled`})},t[4]=e,t[5]=p);let m=p,h;t[6]===e?h=t[7]:(h=()=>{e.challengeComplete({status:`Failed`})},t[6]=e,t[7]=h);let g=h,_;t[8]===e?_=t[9]:(_=()=>{e.challengeComplete({status:`Succeeded`,session:e.session})},t[8]=e,t[9]=_);let v=_,y;t[10]!==v||t[11]!==g||t[12]!==m?(y={callbacks:{success:v,failure:g,gohome:m}},t[10]=v,t[11]=g,t[12]=m,t[13]=y):y=t[13];let b=y,x;return t[14]!==e.session||t[15]!==e.cV||t[16]!==e.paymentsAuth.token||t[17]!==b?(x=(0,u.jsx)(a,{location:`BankChallenge`,children:(0,u.jsx)(s,{session:e.session,cV:e.cV,authToken:e.paymentsAuth.token,returnOptions:b,containerRef:n,shell:o,requiresFingerprinting:!1})}),t[14]=e.session,t[15]=e.cV,t[16]=e.paymentsAuth.token,t[17]=b,t[18]=x):x=t[18],x};export{d as default};