System.register(["./index-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./terminal-legacy2.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./xterm-legacy.js?v=1763625242172","./xterm-addon-canvas-legacy.js?v=1763625242172"],(function(e,l){"use strict";var t,n,a,s,o,u,c,i,r,d,f,m,g,y,j,v;return{setters:[e=>{t=e._},e=>{n=e.a},e=>{a=e.T},e=>{s=e.k,o=e.P,u=e.i,c=e.r,i=e.av,r=e.w,d=e.R,f=e.a2,m=e.a3,g=e.X,y=e.V,j=e.aj,v=e.n},null,null,null,null,null,null],execute:function(){e("default",s({__name:"Terminal",setup(e,{expose:l}){const{t:s}=o(),_=u("fileStore"),{currentPath:p}=_,h=c(!1),w=c({id:"1",host:"127.0.0.1",port:22,ps:"",state:!0}),x=i("terminalRef"),M=c(!1);function C(){return n({title:s("file.terminalModal.closeTitle"),content:s("file.terminalModal.closeMessage"),width:420,onConfirm(){h.value=!1,v((()=>M.value=!1))}}),!1}function P(e){e.indexOf("Welcome to")&&(M.value=!0)}return r(M,(e=>{e&&x.value?.send(`cd ${p.value} \r\n`)})),l({open:function(){h.value=!0},close:C}),(e,l)=>{const n=t;return d(),f(n,{show:y(h),"onUpdate:show":l[0]||(l[0]=e=>j(h)?h.value=e:null),title:y(s)("file.terminalModal.title"),width:926,onPublicClose:C},{default:m((()=>[g(a,{ref_key:"terminalRef",ref:x,data:y(w),onConnectSuccess:P},null,8,["data"])])),_:1},8,["show","title"])}}}))}}}));
