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]=`136b4d4b-5067-46c5-a51e-f4558570c6df`,e._sentryDebugIdIdentifier=`sentry-dbid-136b4d4b-5067-46c5-a51e-f4558570c6df`)}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"./ManageBillingAddress-jtkqllew.js";var s=t(),c=e(i(),1),l=a(),u=e=>{let t=(0,s.c)(14),{trackAppAction:i}=r(),a,u;t[0]===i?(a=t[1],u=t[2]):(a=()=>{i(`ShowManageBillingAddressPage`,{},{location:`ManageBillingAddressPage`})},u=[i],t[0]=i,t[1]=a,t[2]=u),(0,c.useEffect)(a,u);let d,f,p;t[3]===e?(d=t[4],f=t[5],p=t[6]):(d=()=>e.setManageBillingAddressResult({status:`Canceled`}),f=t=>e.setManageBillingAddressResult({status:`Error`,error:{...t}}),p=t=>e.setManageBillingAddressResult({status:`Succeeded`,billingAddressId:t}),t[3]=e,t[4]=d,t[5]=f,t[6]=p);let m;return t[7]!==e.paymentsAuth.token||t[8]!==e.language||t[9]!==e.market||t[10]!==d||t[11]!==f||t[12]!==p?(m=(0,l.jsx)(n,{location:`ManageBillingAddress`,children:(0,l.jsx)(o,{authToken:e.paymentsAuth.token,locale:e.language,market:e.market,onCancel:d,onError:f,onSuccess:p})}),t[7]=e.paymentsAuth.token,t[8]=e.language,t[9]=e.market,t[10]=d,t[11]=f,t[12]=p,t[13]=m):m=t[13],m};export{u as default};