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]=`34d54c2c-7c80-4409-9378-73355fae0ded`,e._sentryDebugIdIdentifier=`sentry-dbid-34d54c2c-7c80-4409-9378-73355fae0ded`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{R as t}from"./vendor-misc-hfpbxrii.js";import{$ as n,$d as r,Ag as i,Dg as a,Fg as o,Fi as s,Ig as c,Ym as l,ch as u,dn as d,gh as f,mr as p,sh as m,st as h,th as g}from"./entry.client-dr7r6s9a.js";import{t as _}from"./XenonSpinner-hionx0on.js";var v=e(c(),1),y=o(),b=i(),x=()=>{let e=(0,y.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,b.jsx)(`div`,{className:`h-screen w-screen`,children:(0,b.jsx)(_,{className:`h-1/2 w-1/2`})}),e[0]=t):t=e[0],t};x.displayName=`HydrateFallback`;var S=d(x,()=>{let{getLogger:e}=g(),i=e(`ClientInitPage`),{trackAppAction:o}=u(),{adaptor:{native:{bridge:c}},capabilities:{queries:{usesRedirectUriForColdDeeplinks:l}},onboarding:d}=m(),[p]=t(r.external.init),_=s(p.redirectUri,r.home.$path()),y=h(),{data:b,isPending:x}=a(l.getOptions()),{data:S,isSuccess:C,isError:w,error:T}=a(c.queries.instance.getOptions()),{data:E,isPending:D}=a(d.queries.shouldRedirectToOnboarding.getOptions({redirectUri:_}));return(0,v.useEffect)(()=>{if(w&&i.error(`Failed to initialize native bridge`,{error:T instanceof Error?T:Error(String(T))}),!(!C&&!w)&&(S?i.debug(`Native bridge initialized successfully`):i.debug(`Native bridge is not supported or failed to initialize, proceeding without it`),!(D||x))){if(b&&p.redirectUri){let e=n(_);e&&o(f.NavigateToDeeplink,{path:e.pathname,campaignId:e.campaignId},{})}y(E?r.onboarding.$buildPath({searchParams:{redirectUri:_}}):_,{replace:!0})}},[x,S,C,w,T,b,i,y,p.redirectUri,_,o,D,E]),{}});S.Pure.displayName=`ContentConnectionPure`;var C=p(()=>(0,b.jsx)(S.useComponent(),{}),`ClientInitPage`);async function w(e){return await new Promise(e=>{setTimeout(()=>e({}),10)})}var T=l(C);export{w as clientLoader,T as default};