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]=`78b9736a-8969-457a-9bb6-a057a259e83a`,e._sentryDebugIdIdentifier=`sentry-dbid-78b9736a-8969-457a-9bb6-a057a259e83a`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{T as t}from"./vendor-misc-dys7qi6h.js";import{Ag as n,Bt as r,Gu as i,Ms as a,Oi as o,Qm as s,Um as c,Zm as l,_r as u,gg as d,jg as f,ng as p,pt as m,sh as h,sn as g}from"./entry.client-mpghtlrl.js";var _=e(f(),1),v=n(),y=p(),b=()=>{let e=(0,v.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsx)(`div`,{className:`h-screen w-screen`,children:(0,y.jsx)(r,{className:`h-1/2 w-1/2`})}),e[0]=t):t=e[0],t};b.displayName=`HydrateFallback`;var x=u(b,()=>{let{getLogger:e}=c(),n=e(`ClientInitPage`),{trackAppAction:r}=s(),{adaptor:{native:{bridge:o}},capabilities:{queries:{usesRedirectUriForColdDeeplinks:u}},deviceInformation:f,onboarding:p}=l(),[v]=t(i.external.init),y=a(v.redirectUri,i.home.$path()),b=g(),{data:x,isPending:S}=d(u.getOptions()),{data:C,isSuccess:w,isError:T,error:E}=d(o.queries.instance.getOptions()),{data:D,isPending:O}=d(p.queries.shouldRedirectToOnboarding.getOptions({redirectUri:y})),{data:k,isPending:A}=d(f.queries.isTizen.getOptions());return(0,_.useEffect)(()=>{if(T&&n.error(`Failed to initialize native bridge`,{error:E instanceof Error?E:Error(String(E))}),!(!w&&!T)&&(C?n.debug(`Native bridge initialized successfully`):n.debug(`Native bridge is not supported or failed to initialize, proceeding without it`),!(O||S||A))){if(x&&v.redirectUri){let e=m(y);e&&r(h.NavigateToDeeplink,{path:e.pathname,campaignId:e.campaignId},{})}b(D?i.onboarding.$buildPath({searchParams:{redirectUri:y}}):k?i.accountPicker.$buildPath({searchParams:{redirectUri:y}}):y,{replace:!0})}},[S,C,w,T,E,x,n,b,v.redirectUri,y,r,O,D,k,A]),{}});x.Pure.displayName=`ContentConnectionPure`;var S=o(()=>(0,y.jsx)(x.useComponent(),{}),`ClientInitPage`);export{S as t};