import{$e as m,_e as y}from"./cli-0.5.3-saj9kxtt.mjs";import{Tt as f,Wt as _}from"./cli-0.5.3-jbzr8k4s.mjs";import"./cli-0.5.3-me9jkw92.mjs";import"./cli-0.5.3-bqmztzjc.mjs";import"./cli-0.5.3-ytqxzjff.mjs";import"./cli-0.5.3-h6n812td.mjs";import"./cli-0.5.3-hg8c6qbh.mjs";import"./cli-0.5.3-39jr2yrx.mjs";import"./cli-0.5.3-42e2paz8.mjs";import"./cli-0.5.3-mn45xfck.mjs";import"./cli-0.5.3-m884a3pk.mjs";import"./cli-0.5.3-4f9xxrem.mjs";import"./cli-0.5.3-gr8nsa2k.mjs";import"./cli-0.5.3-yj9nbd9d.mjs";import"./cli-0.5.3-55kd38ff.mjs";import"./cli-0.5.3-e6bjcfwg.mjs";import"./cli-0.5.3-4dbxtwh3.mjs";import"./cli-0.5.3-m0kfmb79.mjs";import"./cli-0.5.3-8zq9vdtg.mjs";import"./cli-0.5.3-vmx7agj7.mjs";import"./cli-0.5.3-h8xs2818.mjs";import"./cli-0.5.3-wcx7cnw5.mjs";import"./cli-0.5.3-9zbakvbf.mjs";import{LU as c,NU as g,VU as L,WU as u}from"./cli-0.5.3-hx550gz2.mjs";import{IW as E,KW as H,nX as U,pV as d}from"./cli-0.5.3-842pf3t4.mjs";import"./cli-0.5.3-wxead1ct.mjs";import"./cli-0.5.3-s1hz35ye.mjs";import"./cli-0.5.3-g0svn6bx.mjs";import"./cli-0.5.3-sfdh3pkx.mjs";import"./cli-0.5.3-d8tjnxcj.mjs";import"./cli-0.5.3-6zfw1732.mjs";import"./cli-0.5.3-ptjdgcsy.mjs";import"./cli-0.5.3-tp3jye12.mjs";import{NY as v,OY as k,PY as A}from"./cli-0.5.3-vqmxwet2.mjs";import{QY as p}from"./cli-0.5.3-rch86nhn.mjs";import"./cli-0.5.3-zg2apr51.mjs";import"./cli-0.5.3-ngnshpb7.mjs";import"./cli-0.5.3-e58xste9.mjs";import"./cli-0.5.3-6163zevg.mjs";import"./cli-0.5.3-jmkkd5ph.mjs";import"./cli-0.5.3-1vt6twff.mjs";import"./cli-0.5.3-7017ez65.mjs";import"./cli-0.5.3-ea94acj4.mjs";import"./cli-0.5.3-3k22nqvy.mjs";import"./cli-0.5.3-63q4g3zt.mjs";import"./cli-0.5.3-dyhbm5kp.mjs";import"./cli-0.5.3-vpcrbd8n.mjs";import"./cli-0.5.3-jdw3ajfv.mjs";import"./cli-0.5.3-qg4a557t.mjs";import"./cli-0.5.3-t65dek0m.mjs";import"./cli-0.5.3-kavpx97n.mjs";import"./cli-0.5.3-9bdwhdys.mjs";import"./cli-0.5.3-ttc72eq3.mjs";import"./cli-0.5.3-g75gdzrp.mjs";import"./cli-0.5.3-1rg2r7n7.mjs";import"./cli-0.5.3-6j2jk6dt.mjs";import"./cli-0.5.3-66650sba.mjs";import"./cli-0.5.3-9vh3vpap.mjs";import{Nfa as P,Qfa as a}from"./cli-0.5.3-n3cxyxpg.mjs";import"./cli-0.5.3-kbvzmaax.mjs";import"./cli-0.5.3-7wdgps7z.mjs";import"./cli-0.5.3-c8bcrqa4.mjs";import"./cli-0.5.3-qrvd6cmy.mjs";import"./cli-0.5.3-2dk1sk8w.mjs";import{Tma as K,Xma as q}from"./cli-0.5.3-0df3r78b.mjs";function S(w){let h=B.c(19),{onDone:C}=w,z=f(x),[I,D]=F.useState(""),R,V;if(h[0]!==z)R=()=>{if(!z)return;let G=z;(async function(){let b=await y(G,{type:"utf8",errorCorrectionLevel:"L"});D(b)})().catch(l)},V=[z],h[0]=z,h[1]=R,h[2]=V;else R=h[1],V=h[2];F.useEffect(R,V);let W;if(h[3]===Symbol.for("react.memo_cache_sentinel"))W={context:"Confirmation"},h[3]=W;else W=h[3];if(c("confirm:no",C,W),!z){let G;if(h[4]===Symbol.for("react.memo_cache_sentinel"))G=k(L,{children:[v(H,{color:"warning",children:"Not in remote mode. Start with `claude --remote` to use this command."}),v(H,{dimColor:!0,children:"(press esc to close)"})]}),h[4]=G;else G=h[4];return G}let M,J,N;if(h[5]!==I){let G=I.split(`
`).filter(j),Q=G.length===0;if(M=L,h[9]===Symbol.for("react.memo_cache_sentinel"))J=v(E,{marginBottom:1,children:v(H,{bold:!0,children:"Remote session"})}),h[9]=J;else J=h[9];N=Q?v(H,{dimColor:!0,children:"Generating QR code…"}):G.map(T),h[5]=I,h[6]=M,h[7]=J,h[8]=N}else M=h[6],J=h[7],N=h[8];let X;if(h[10]===Symbol.for("react.memo_cache_sentinel"))X=v(H,{dimColor:!0,children:"Open in browser: "}),h[10]=X;else X=h[10];let O;if(h[11]!==z)O=k(E,{marginTop:1,children:[X,v(H,{color:"ide",children:z})]}),h[11]=z,h[12]=O;else O=h[12];let Y;if(h[13]===Symbol.for("react.memo_cache_sentinel"))Y=v(E,{marginTop:1,children:v(H,{dimColor:!0,children:"(press esc to close)"})}),h[13]=Y;else Y=h[13];let Z;if(h[14]!==M||h[15]!==J||h[16]!==N||h[17]!==O)Z=k(M,{children:[J,N,O,Y]}),h[14]=M,h[15]=J,h[16]=N,h[17]=O,h[18]=Z;else Z=h[18];return Z}function T(w,h){return v(H,{children:w},h)}function j(w){return w.length>0}function l(w){P("QR code generation failed",w)}function x(w){return w.remoteSessionUrl}var B,F,hh=async(w)=>{return v(S,{onDone:w})};var r=q(()=>{m();u();U();g();_();a();A();B=K(d(),1),F=K(p(),1)});r();export{hh as call};
