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]=`cd05da8b-c4d2-4569-a620-b34b81f1dce2`,e._sentryDebugIdIdentifier=`sentry-dbid-cd05da8b-c4d2-4569-a620-b34b81f1dce2`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Ai as n,Qm as r,jg as i,ng as a}from"./entry.client-mpghtlrl.js";import{t as o}from"./BankChallenge-l20l7nzh.js";import{l as s}from"./PurchaseDialog-fpui7yuh.js";var c=t(),l=e(i(),1),u=a(),d=e=>{let t=(0,c.c)(19),i=(0,l.useRef)(null),{trackAppAction:a}=r(),d,f;t[0]!==a||t[1]!==e.session.id?(d=()=>{a(`ShowBankChallenge`,{sessionId:e.session.id},{location:`BankChallengePage`})},f=[e.session.id,a],t[0]=a,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)(n,{location:`BankChallenge`,children:(0,u.jsx)(o,{session:e.session,cV:e.cV,authToken:e.paymentsAuth.token,returnOptions:b,containerRef:i,shell:s,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};