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]=`2d3292b5-5b6a-4ed6-986a-1e42e1da6532`,e._sentryDebugIdIdentifier=`sentry-dbid-2d3292b5-5b6a-4ed6-986a-1e42e1da6532`)}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"./ManagePaymentInstrument-dnyp1ahh.js";var s=t(),c=e(i(),1),l=a(),u=e=>{let t=(0,s.c)(26),{trackAppAction:i}=r(),a,u;t[0]===i?(a=t[1],u=t[2]):(a=()=>{i(`ShowManagePaymentInstrumentPage`,{},{location:`ManagePaymentInstrumentPage`})},u=[i],t[0]=i,t[1]=a,t[2]=u),(0,c.useEffect)(a,u);let d;t[3]===e.paymentSessionId?d=t[4]:(d=e.paymentSessionId?.toString(),t[3]=e.paymentSessionId,t[4]=d);let f;t[5]===e.orderId?f=t[6]:(f=e.orderId?.toString(),t[5]=e.orderId,t[6]=f);let p,m,h,g;t[7]===e?(p=t[8],m=t[9],h=t[10],g=t[11]):(p=()=>e.setManagePaymentInstrumentResult({status:`Canceled`}),m=t=>e.setManagePaymentInstrumentResult({status:`Error`,error:{...t}}),h=t=>e.setManagePaymentInstrumentResult({status:`Succeeded`,paymentInstrumentId:t}),g=()=>e.setManagePaymentInstrumentResult({status:`RedeemGiftCard`}),t[7]=e,t[8]=p,t[9]=m,t[10]=h,t[11]=g);let _;return t[12]!==e.paymentsAuth.token||t[13]!==e.language||t[14]!==e.market||t[15]!==e.price||t[16]!==e.currencyCode||t[17]!==e.position||t[18]!==e.allowedPaymentInstruments||t[19]!==d||t[20]!==f||t[21]!==p||t[22]!==m||t[23]!==h||t[24]!==g?(_=(0,l.jsx)(n,{location:`ManagePaymentInstrument`,children:(0,l.jsx)(o,{authToken:e.paymentsAuth.token,locale:e.language,market:e.market,price:e.price,currencyCode:e.currencyCode,position:e.position,allowedPaymentInstruments:e.allowedPaymentInstruments,paymentSessionId:d,orderId:f,onCancel:p,onError:m,onSuccess:h,onRedeemGiftCard:g})}),t[12]=e.paymentsAuth.token,t[13]=e.language,t[14]=e.market,t[15]=e.price,t[16]=e.currencyCode,t[17]=e.position,t[18]=e.allowedPaymentInstruments,t[19]=d,t[20]=f,t[21]=p,t[22]=m,t[23]=h,t[24]=g,t[25]=_):_=t[25],_};export{u as default};