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]=`e602a0f2-45ee-481e-9665-30fc99d58513`,e._sentryDebugIdIdentifier=`sentry-dbid-e602a0f2-45ee-481e-9665-30fc99d58513`)}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{d as o}from"./Spinner-bhkd19qw.js";import{t as s}from"./RiskChallenge-itrzg1ez.js";var c=t(),l=e(i(),1),u=a(),d=e=>{let t=(0,c.c)(23),{trackAppAction:i}=r(),a,d;t[0]===i?(a=t[1],d=t[2]):(a=()=>{i(`ShowRiskChallenge`,{},{location:`RiskChallenge`})},d=[i],t[0]=i,t[1]=a,t[2]=d),(0,l.useEffect)(a,d);let f;t[3]===e?f=t[4]:(f=t=>{e.challengeComplete({status:`Succeeded`,token:t.challengeType===o.CVV?t.cvvToken:void 0})},t[3]=e,t[4]=f);let p=f,m;t[5]===e?m=t[6]:(m=t=>{e.challengeComplete({status:`Error`,error:Error(t.message)})},t[5]=e,t[6]=m);let h=m,g;t[7]===e?g=t[8]:(g=()=>{e.challengeComplete({status:`Canceled`})},t[7]=e,t[8]=g);let _=g,v=e.type,y;t[9]===e.paymentInstrumentId?y=t[10]:(y=e.paymentInstrumentId.toString(),t[9]=e.paymentInstrumentId,t[10]=y);let b;t[11]===e.sessionId?b=t[12]:(b=e.sessionId.toString(),t[11]=e.sessionId,t[12]=b);let x;return t[13]!==e.type||t[14]!==e.language||t[15]!==e.paymentsAuth.token||t[16]!==e.cV||t[17]!==y||t[18]!==b||t[19]!==p||t[20]!==h||t[21]!==_?(x=(0,u.jsx)(n,{location:`RiskChallenge`,children:(0,u.jsx)(s,{type:v,paymentInstrumentId:y,sessionId:b,language:e.language,authToken:e.paymentsAuth.token,cV:e.cV,onSuccess:p,onFailure:h,onCancel:_})}),t[13]=e.type,t[14]=e.language,t[15]=e.paymentsAuth.token,t[16]=e.cV,t[17]=y,t[18]=b,t[19]=p,t[20]=h,t[21]=_,t[22]=x):x=t[22],x};export{d as default};