(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,230752,e=>{"use strict";let t=(0,e.i(816709).create)(e=>({pendingSendToChannel:null,pendingSendToIssue:null,setPendingSendToChannel:t=>e({pendingSendToChannel:t}),setPendingSendToIssue:t=>e({pendingSendToIssue:t})}));e.s(["useEditorSendStore",0,t])},218147,e=>{"use strict";let t=(0,e.i(433721).default)("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);e.s(["default",0,t])},485765,e=>{"use strict";let t=(0,e.i(433721).default)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);e.s(["default",0,t])},148388,e=>{"use strict";var t=e.i(218147);e.s(["MessageSquarePlus",()=>t.default])},793992,e=>{"use strict";var t=e.i(738776),n=e.i(209988),s=e.i(835829),o=e.i(691223),i=e.i(230752),l=e.i(360112),a=e.i(159619),c=e.i(386041),d=e.i(148388),r=e.i(485765),r=r;function u(e){let t="en"===("u">typeof localStorage&&localStorage.getItem("agent-spaces-locale")||"zh");return({title:t?"Inspector Action":"代码定位操作",desc:t?"Choose an action for this code location":"选择对此代码位置的操作",copy:t?"Copy Code Position":"复制代码位置",jump:t?"Jump to Code Editor":"定位到代码编辑器",channel:t?"Send to New Channel":"发送到新频道",issue:t?"Send to New Issue":"发送到新议题",copied:t?"Copied: {pos}":"已复制: {pos}"})[e]??e}e.s(["InspectorActionDialog",0,function(){let{pendingJump:e,setPendingJump:p}=(0,s.useInspectorHistoryStore)();if(!e)return null;let{workspaceId:g,path:h,line:m,column:S}=e,x=`${h}:${m}:${S}`,C=[{icon:(0,t.jsx)(a.Copy,{size:16}),label:u("copy"),onClick:()=>{navigator.clipboard.writeText(x).then(()=>{l.toast.success(u("copied").replace("{pos}",x))}),p(null)}},{icon:(0,t.jsx)(c.Code2,{size:16}),label:u("jump"),onClick:()=>{let e;o.useEditorStore.getState().jumpToPosition(g,h,m,S),e=window.__flutterBridge,e?.emit?.("inspector.jump",{path:h,line:m,column:S}),p(null)}},{icon:(0,t.jsx)(d.MessageSquarePlus,{size:16}),label:u("channel"),onClick:()=>{i.useEditorSendStore.getState().setPendingSendToChannel({workspaceId:g,position:x}),p(null)}},{icon:(0,t.jsx)(r.default,{size:16}),label:u("issue"),onClick:()=>{i.useEditorSendStore.getState().setPendingSendToIssue({workspaceId:g,position:x}),p(null)}}];return(0,t.jsx)(n.Dialog,{open:!!e,onOpenChange:e=>{e||p(null)},children:(0,t.jsxs)(n.DialogContent,{showCloseButton:!1,className:"p-0 gap-0 max-w-xs overflow-hidden",children:[(0,t.jsxs)(n.DialogHeader,{className:"p-4 pb-2",children:[(0,t.jsx)(n.DialogTitle,{className:"text-sm",children:u("title")}),(0,t.jsx)(n.DialogDescription,{className:"text-xs font-mono truncate",children:x})]}),(0,t.jsx)("div",{className:"p-2 pt-0",children:C.map(e=>(0,t.jsxs)("button",{type:"button",onClick:e.onClick,className:"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm hover:bg-muted transition-colors text-left",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e.icon}),e.label]},e.label))})]})})}],793992)},319727,e=>{e.n(e.i(793992))}]);