import{$h as d,HD as C,JD as R,di as T,dm as S,em as M}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"./cli-0.5.4-vv4jbgkc.mjs";import{KW as _,MW as m,QW as h,UW as b,pX as I,rV as E}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 o,QY as a,RY as f}from"./cli-0.5.4-mn22gk7g.mjs";import{SY as A}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{G$ as y,T$ as N}from"./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{Nea as p,Pea as D}from"./cli-0.5.4-09dvrzcr.mjs";import"./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 g}from"./cli-0.5.4-aacw1src.mjs";D();I();T();N();R();M();f();var P=g(E(),1),B=g(A(),1);function q(w){let e=P.c(7),{onAccept:r}=w,n;if(e[0]===Symbol.for("react.memo_cache_sentinel"))n=[],e[0]=n;else n=e[0];B.default.useEffect(F,n);let t;if(e[1]!==r)t=function(v){e:switch(v){case"accept":{p("tengu_bypass_permissions_mode_dialog_accept",{}),y("userSettings",{skipDangerousModePermissionPrompt:!0}),r();break e}case"decline":d(1)}},e[1]=r,e[2]=t;else t=e[2];let l=t,k=x,i;if(e[3]===Symbol.for("react.memo_cache_sentinel"))i=a(_,{flexDirection:"column",gap:1,children:[a(m,{children:["In Bypass Permissions mode, Claude Code will not ask for your approval before running potentially dangerous commands.",o(b,{}),"This mode should only be used in a sandboxed container/VM that has restricted internet access and can easily be restored if damaged."]}),o(m,{children:"By proceeding, you accept all responsibility for actions taken while running in Bypass Permissions mode."}),o(h,{url:"https://code.claude.com/docs/en/security"})]}),e[3]=i;else i=e[3];let s;if(e[4]===Symbol.for("react.memo_cache_sentinel"))s=[{label:"No, exit",value:"decline"},{label:"Yes, I accept",value:"accept"}],e[4]=s;else s=e[4];let c;if(e[5]!==l)c=a(S,{title:"WARNING: Claude Code running in Bypass Permissions mode",color:"error",onCancel:k,children:[i,o(C,{options:s,onChange:(u)=>l(u)})]}),e[5]=l,e[6]=c;else c=e[6];return c}function x(){d(0)}function F(){p("tengu_bypass_permissions_mode_dialog_shown",{})}export{q as BypassPermissionsModeDialog};
