import{x as s}from"./xterm-addon-canvas.js?v=1764830988434";import{x as o,a as e,b as a}from"./xterm.js?v=1764830988434";import{d as n,m as t}from"./page_layout.js?v=1764830988434";import{k as r,r as d,o as l,b as i,R as m,V as u,S as c}from"./vue.js?v=1764830988434";import"./naive.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./public.js?v=1764830988434";const p={class:"h-full"},f=r({__name:"index",props:{status:{},setProjectStatus:{}},setup(r){const f=r,j=d(null);let v,w;const _=()=>{v.loadAddon(w),v.loadAddon(new s.CanvasAddon),v.loadAddon(new a.WebLinksAddon),j.value&&v.open(j.value)},x=()=>{w.fit()};return l(()=>{v=new o.Terminal({cursorBlink:!0,fontSize:12,lineHeight:1.26,fontFamily:"Monaco, Menlo, Consolas, 'Courier New', monospace",theme:{background:"#333",foreground:"#ececec"}}),w=new e.FitAddon,_(),x(),f.setProjectStatus(f.status,s=>{n(s)&&(-1===s.data&&t.success(s.msg),v.write(s.msg))})}),i(()=>{v.dispose()}),(s,o)=>(u(),m("div",p,[c("div",{ref_key:"terminalRef",ref:j,class:"w-full h-full overflow-hidden rounded-b-4px"},null,512)]))}});export{f as default};
