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]=`2c9dbc67-9c5c-47e1-876e-08479e6ea4ca`,e._sentryDebugIdIdentifier=`sentry-dbid-2c9dbc67-9c5c-47e1-876e-08479e6ea4ca`)}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"./AsyncPayment-hep607fm.js";var s=n(),c=e(r(),1),l=t(),u=e=>{let t=(0,s.c)(28),{trackAppAction:n}=i(),r,u;t[0]!==n||t[1]!==e.orderId||t[2]!==e.sessionId?(r=()=>{n(`ShowAsyncPayment`,{orderId:e.orderId.toString(),sessionId:e.sessionId.toString()},{location:`AsyncPayment`})},u=[n,e.orderId,e.sessionId],t[0]=n,t[1]=e.orderId,t[2]=e.sessionId,t[3]=r,t[4]=u):(r=t[3],u=t[4]),(0,c.useEffect)(r,u);let d;t[5]===e?d=t[6]:(d=()=>{e.asyncPaymentComplete({status:`Succeeded`})},t[5]=e,t[6]=d);let f=d,p;t[7]===e?p=t[8]:(p=t=>{e.asyncPaymentComplete({status:`Error`,error:Error(t.message)})},t[7]=e,t[8]=p);let m=p,h;t[9]===e?h=t[10]:(h=()=>{e.asyncPaymentComplete({status:`Canceled`})},t[9]=e,t[10]=h);let g=h,_;t[11]===e.paymentInstrumentId?_=t[12]:(_=e.paymentInstrumentId.toString(),t[11]=e.paymentInstrumentId,t[12]=_);let v;t[13]===e.orderId?v=t[14]:(v=e.orderId.toString(),t[13]=e.orderId,t[14]=v);let y;t[15]===e.sessionId?y=t[16]:(y=e.sessionId.toString(),t[15]=e.sessionId,t[16]=y);let b;return t[17]!==_||t[18]!==v||t[19]!==y||t[20]!==e.language||t[21]!==e.country||t[22]!==e.paymentsAuth.token||t[23]!==e.cV||t[24]!==f||t[25]!==m||t[26]!==g?(b=(0,l.jsx)(a,{location:`AsyncPayment`,children:(0,l.jsx)(o,{paymentInstrumentId:_,orderId:v,sessionId:y,language:e.language,country:e.country,authToken:e.paymentsAuth.token,cV:e.cV,onSuccess:f,onFailure:m,onCancel:g})}),t[17]=_,t[18]=v,t[19]=y,t[20]=e.language,t[21]=e.country,t[22]=e.paymentsAuth.token,t[23]=e.cV,t[24]=f,t[25]=m,t[26]=g,t[27]=b):b=t[27],b};export{u as default};