import{x as s}from"./xterm-addon-canvas.js?v=1763625242172";import{x as o,a as e,b as a}from"./xterm.js?v=1763625242172";import{c as n,m as t}from"./page_layout.js?v=1763625242172";import{k as r,r as l,o as d,b as i,R as m,S as u,U as c}from"./vue.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./public.js?v=1763625242172";const p={class:"h-full"},f=r({__name:"index",props:{status:{},setProjectStatus:{}},setup(r){const f=r,j=l(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 d((()=>{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)=>(m(),u("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};
