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]=`620d78ae-7b0c-4ef5-a9b9-f34c0e7f9297`,e._sentryDebugIdIdentifier=`sentry-dbid-620d78ae-7b0c-4ef5-a9b9-f34c0e7f9297`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,Ig as r,dn as i,ep as a,mh as o,sh as s,th as c,wg as l}from"./entry.client-dr7r6s9a.js";import{t as u}from"./useFlowId-n9vqrww9.js";import{t as d}from"./RenewIntoHost-jmp0eyac.js";import{n as f}from"./DialogShell-k2jpaw9r.js";var p=n(),m=e(r(),1),h=t(),g=i(e=>{let t=(0,p.c)(3),n=d.useComponent(),r;return t[0]!==n||t[1]!==e?(r=(0,h.jsx)(n,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r},e=>{let{queryClient:t,systems:{dialog:n}}=c(),r=u(),{authentication:{queries:{xToken:i}}}=s(),{mutate:o}=l(n.mutations.goBack.getOptions()),d=(0,m.useCallback)(async e=>(await t.fetchQuery(i.getActiveUserQuery().getOptions({relyingParty:a.MDollar,uri:e}))).toAuthenticationHeader(),[t,i]),f=(0,m.useCallback)(e=>{o()},[o]);return{...e,getAuthToken:d,onExit:f,flowId:r}}),_=e=>{let t=(0,p.c)(11),n=f.useComponent(),r=g.useComponent(),i=e.productId,a=e.skuId,s=e.availabilityId,c=e.recurrenceId,l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=performance.now(),t[0]=l):l=t[0];let u=e.sourceClientName??o.BaysidePurchase,d;t[1]!==r||t[2]!==e.productId||t[3]!==e.skuId||t[4]!==e.availabilityId||t[5]!==e.recurrenceId||t[6]!==u?(d=(0,h.jsx)(r,{productId:i,skuId:a,availabilityId:s,recurrenceId:c,renewIntoLaunchStartTime:l,sourceClientName:u}),t[1]=r,t[2]=e.productId,t[3]=e.skuId,t[4]=e.availabilityId,t[5]=e.recurrenceId,t[6]=u,t[7]=d):d=t[7];let m;return t[8]!==n||t[9]!==d?(m=(0,h.jsx)(n,{className:`h-full w-full overflow-visible`,children:d}),t[8]=n,t[9]=d,t[10]=m):m=t[10],m};export{_ as RenewIntoDialog,_ as default};