System.register(["./index-legacy.js?v=1764830988434","./public-legacy.js?v=1764830988434","./terminal-legacy2.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./xterm-legacy.js?v=1764830988434","./xterm-addon-canvas-legacy.js?v=1764830988434"],function(e,l){"use strict";var t,n,a,s,o,u,c,i,r,d,f,m,g,y,v,j;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.a2,f=e.V,m=e.a3,g=e.W,y=e.U,v=e.ak,j=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 k(){return n({title:s("file.terminalModal.closeTitle"),content:s("file.terminalModal.closeMessage"),width:420,onConfirm(){h.value=!1,j(()=>M.value=!1)}}),!1}function C(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:k}),(e,l)=>{const n=t;return f(),d(n,{show:y(h),"onUpdate:show":l[0]||(l[0]=e=>v(h)?h.value=e:null),title:y(s)("file.terminalModal.title"),width:926,onPublicClose:k},{default:m(()=>[g(a,{ref_key:"terminalRef",ref:x,data:y(w),onConnectSuccess:C},null,8,["data"])]),_:1},8,["show","title"])}}}))}}});
