System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./terminal-legacy-lSIZbtj-.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./xterm-legacy-UzqSqzXt.js?v=1773287522785","./useSocket-legacy-D9BDJ2id.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./xterm-addon-canvas-legacy-Tys2uZOF.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785"],(function(e,l){"use strict";var t,n,a,s,u,i,o,c,r,d,f,m,g,y,j,v;return{setters:[e=>{t=e.x,n=e.h},e=>{a=e.T},e=>{s=e.k,u=e.R,i=e.i,o=e.r,c=e.al,r=e.w,d=e.$,f=e.a8,m=e.a9,g=e.a0,y=e.S,j=e.X,v=e.n},null,null,null,null,null,null,null],execute:function(){e("default",s({__name:"Terminal",setup(e,{expose:l}){const{t:s}=u(),h=i("fileStore"),{currentPath:x}=h,p=o(!1),w=o({id:"1",host:"127.0.0.1",port:22,ps:"",state:!0}),S=c("terminalRef"),M=o(!1);function _(){return n({title:s("file.terminalModal.closeTitle"),content:s("file.terminalModal.closeMessage"),width:420,onConfirm(){p.value=!1,v((()=>M.value=!1))}}),!1}function k(e){e.indexOf("Welcome to")&&(M.value=!0)}return r(M,(e=>{e&&S.value?.send(`cd ${x.value} \r\n`)})),l({open:function(){p.value=!0},close:_}),(e,l)=>{const n=t;return d(),f(n,{show:y(p),"onUpdate:show":l[0]||(l[0]=e=>j(p)?p.value=e:null),title:y(s)("file.terminalModal.title"),width:926,onPublicClose:_},{default:m((()=>[g(a,{ref_key:"terminalRef",ref:S,data:y(w),onConnectSuccess:k},null,8,["data"])])),_:1},8,["show","title"])}}}))}}}));
