import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,t as i,x as a}from"./src-Di342QoJ.js";import{t as o}from"./jsx-runtime-D-D469L8.js";import{Cc as s,Jt as c,dc as l,on as u,yc as d}from"./paths-Ci1iwL5Y.js";import{aS as f,oS as p}from"./loadAgentsDir-C_wFhytF.js";import{i as m,r as h}from"./bridgeEnabled-D9jI6X-w.js";import{n as g,t as _}from"./PermissionDialog-_WQPRYHQ.js";function v({onDone:e}){let t=(0,b.useRef)(e);t.current=e;let n=(0,b.useCallback)(()=>{t.current(`dismiss`)},[]);(0,b.useEffect)(()=>{s(e=>e.remoteDialogSeen?e:{...e,remoteDialogSeen:!0})},[]);let i=(0,b.useCallback)(e=>{t.current(e)},[]);return(0,x.jsx)(_,{title:`Remote Control`,children:(0,x.jsxs)(a,{flexDirection:`column`,paddingX:2,paddingY:1,children:[(0,x.jsxs)(a,{marginBottom:1,flexDirection:`column`,children:[(0,x.jsx)(r,{children:`Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device.`}),(0,x.jsx)(r,{children:` `}),(0,x.jsx)(r,{children:`You can disconnect remote access anytime by running /remote-control again.`})]}),(0,x.jsx)(a,{children:(0,x.jsx)(f,{options:[{label:`Enable Remote Control for this session`,description:`Opens a secure connection to claude.ai.`,value:`enable`},{label:`Never mind`,description:`You can always enable it later with /remote-control.`,value:`dismiss`}],onChange:i,onCancel:n})})]})})}function y(){return!(l().remoteDialogSeen||!m()||!c()?.accessToken)}var b,x,S=e((()=>{b=t(n(),1),h(),i(),u(),d(),p(),g(),x=o()}));export{S as n,y as r,v as t};