import{$e as m,_e as y}from"./cli-0.5.4-3t1zyyfc.mjs";import{Vt as f,Yt as _}from"./cli-0.5.4-k5fz4zd3.mjs";import"./cli-0.5.4-wbqf44ym.mjs";import"./cli-0.5.4-9ewg9gfs.mjs";import"./cli-0.5.4-we3mspgg.mjs";import"./cli-0.5.4-jzhazry0.mjs";import"./cli-0.5.4-82sw3hrw.mjs";import"./cli-0.5.4-31v143kt.mjs";import"./cli-0.5.4-1cy7wd6s.mjs";import"./cli-0.5.4-5e0pk96f.mjs";import"./cli-0.5.4-z154a7bp.mjs";import"./cli-0.5.4-ng5p0zjs.mjs";import"./cli-0.5.4-5hp7ks3t.mjs";import"./cli-0.5.4-8hdwp78f.mjs";import"./cli-0.5.4-mr9aznxx.mjs";import"./cli-0.5.4-jevfk5q7.mjs";import"./cli-0.5.4-27dzbzdy.mjs";import"./cli-0.5.4-a5bkdqqb.mjs";import"./cli-0.5.4-j2hnw539.mjs";import"./cli-0.5.4-9w59nnw4.mjs";import"./cli-0.5.4-z5d3q8kh.mjs";import"./cli-0.5.4-c0r12dqp.mjs";import"./cli-0.5.4-kqh172jk.mjs";import{NU as c,PU as g,XU as L,YU as u}from"./cli-0.5.4-vv4jbgkc.mjs";import{KW as E,MW as H,pX as U,rV as d}from"./cli-0.5.4-s7k1f0wc.mjs";import"./cli-0.5.4-0h0yz2k5.mjs";import"./cli-0.5.4-942dm5q1.mjs";import"./cli-0.5.4-rcmp5h4y.mjs";import"./cli-0.5.4-xdcww3x8.mjs";import"./cli-0.5.4-fq32ny1h.mjs";import"./cli-0.5.4-h1m67ngp.mjs";import"./cli-0.5.4-49erze3e.mjs";import"./cli-0.5.4-jytjks37.mjs";import{PY as v,QY as k,RY as A}from"./cli-0.5.4-mn22gk7g.mjs";import{SY as p}from"./cli-0.5.4-5t3jj85n.mjs";import"./cli-0.5.4-5shjmmkz.mjs";import"./cli-0.5.4-zb412kkm.mjs";import"./cli-0.5.4-prfn3sxd.mjs";import"./cli-0.5.4-6xmgebmk.mjs";import"./cli-0.5.4-vjgejcrz.mjs";import"./cli-0.5.4-jqt00ywx.mjs";import"./cli-0.5.4-9e7rkd8e.mjs";import"./cli-0.5.4-jp4wtw87.mjs";import"./cli-0.5.4-hambpq58.mjs";import"./cli-0.5.4-syvgmg9g.mjs";import"./cli-0.5.4-w8ttefr5.mjs";import"./cli-0.5.4-j7kkqxv6.mjs";import"./cli-0.5.4-qrwczx7j.mjs";import"./cli-0.5.4-v2z6p9td.mjs";import"./cli-0.5.4-cbq01zg3.mjs";import"./cli-0.5.4-37v5fhf1.mjs";import"./cli-0.5.4-7grzwf6q.mjs";import"./cli-0.5.4-9qmek5dq.mjs";import"./cli-0.5.4-9c6r1fjg.mjs";import"./cli-0.5.4-2dw33ms6.mjs";import"./cli-0.5.4-x1fzfxmm.mjs";import"./cli-0.5.4-e822fzaq.mjs";import"./cli-0.5.4-09dvrzcr.mjs";import{Pfa as P,Sfa as a}from"./cli-0.5.4-end8wj9r.mjs";import"./cli-0.5.4-4x206j04.mjs";import"./cli-0.5.4-yd3rd9qt.mjs";import"./cli-0.5.4-sgcaw17t.mjs";import"./cli-0.5.4-jmc3bzbn.mjs";import"./cli-0.5.4-959vxhhb.mjs";import{Vma as K,Zma as q}from"./cli-0.5.4-aacw1src.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};
