import{if as y,jf as m}from"./cli-0.5.12-7c345wdv.mjs";import{Qt as f,Tt as _}from"./cli-0.5.12-zc0qwdy2.mjs";import"./cli-0.5.12-whfz3xsx.mjs";import"./cli-0.5.12-z100r543.mjs";import"./cli-0.5.12-bzab36pn.mjs";import"./cli-0.5.12-pp1549k7.mjs";import"./cli-0.5.12-9mq24qzr.mjs";import"./cli-0.5.12-7repzgzv.mjs";import"./cli-0.5.12-pdqnfqg3.mjs";import"./cli-0.5.12-c2yq69h9.mjs";import"./cli-0.5.12-kez9r81a.mjs";import"./cli-0.5.12-zbcr8cbk.mjs";import"./cli-0.5.12-2wf629mh.mjs";import"./cli-0.5.12-ghtxkxqx.mjs";import"./cli-0.5.12-xg7a0dy4.mjs";import"./cli-0.5.12-s0h788we.mjs";import"./cli-0.5.12-m22yxpb9.mjs";import"./cli-0.5.12-cw1qs4bg.mjs";import"./cli-0.5.12-yq8ds97a.mjs";import"./cli-0.5.12-qew4mzgp.mjs";import"./cli-0.5.12-gwg1e43k.mjs";import"./cli-0.5.12-36swspqa.mjs";import"./cli-0.5.12-4dn79vqp.mjs";import{EV as L,FV as u,uV as c,wV as g}from"./cli-0.5.12-f5pfjvdk.mjs";import{YX as U,_V as d,rX as E,tX as H}from"./cli-0.5.12-fqp5s15p.mjs";import"./cli-0.5.12-rc1p9wk6.mjs";import"./cli-0.5.12-x479axrj.mjs";import"./cli-0.5.12-ysy6e9rz.mjs";import"./cli-0.5.12-cqv7z22w.mjs";import"./cli-0.5.12-7cn41yy7.mjs";import"./cli-0.5.12-34cd39ve.mjs";import"./cli-0.5.12-m2gh4ewc.mjs";import{BZ as v,CZ as k,DZ as A}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as p}from"./cli-0.5.12-w3hy6c60.mjs";import"./cli-0.5.12-5d3qcvf5.mjs";import"./cli-0.5.12-f141d2qa.mjs";import"./cli-0.5.12-khvy67r3.mjs";import"./cli-0.5.12-pycnjaeg.mjs";import"./cli-0.5.12-8v5w8znc.mjs";import"./cli-0.5.12-ctqkj6ve.mjs";import"./cli-0.5.12-cbevkwg4.mjs";import"./cli-0.5.12-w00qj83e.mjs";import"./cli-0.5.12-nbcjwzzn.mjs";import"./cli-0.5.12-3t06hwwh.mjs";import"./cli-0.5.12-057c2cp2.mjs";import"./cli-0.5.12-ecgx5n54.mjs";import"./cli-0.5.12-g4wb8mj2.mjs";import"./cli-0.5.12-vp5smcs1.mjs";import"./cli-0.5.12-y2kq7fe8.mjs";import"./cli-0.5.12-7vxpqr5a.mjs";import"./cli-0.5.12-hvtcdcev.mjs";import"./cli-0.5.12-asbn3d19.mjs";import"./cli-0.5.12-k1crwtdc.mjs";import"./cli-0.5.12-2jxq8gnm.mjs";import{fga as P,iga as a}from"./cli-0.5.12-p5ps8gf0.mjs";import"./cli-0.5.12-hp0508v9.mjs";import"./cli-0.5.12-tfdwzg37.mjs";import"./cli-0.5.12-60w1a0bs.mjs";import"./cli-0.5.12-c8f4daey.mjs";import"./cli-0.5.12-0qasc0ef.mjs";import"./cli-0.5.12-f8850v2j.mjs";import"./cli-0.5.12-495d826j.mjs";import"./cli-0.5.12-rt0k97yj.mjs";import"./cli-0.5.12-1vyz0tt9.mjs";import{Yna as K,aoa as q}from"./cli-0.5.12-xzeb7mtb.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};
