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]=`f8d78ebe-bd7b-4ad8-b15a-cb4342f24bed`,e._sentryDebugIdIdentifier=`sentry-dbid-f8d78ebe-bd7b-4ad8-b15a-cb4342f24bed`)}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"./ManageBillingAddress-mkofup6h.js";var s=n(),c=e(r(),1),l=t(),u=e=>{let t=(0,s.c)(14),{trackAppAction:n}=i(),r,u;t[0]===n?(r=t[1],u=t[2]):(r=()=>{n(`ShowManageBillingAddressPage`,{},{location:`ManageBillingAddressPage`})},u=[n],t[0]=n,t[1]=r,t[2]=u),(0,c.useEffect)(r,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)(a,{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};