import{u as a,N as o,z as t,l as c}from"./utils-lib.js?v=20260328163632";import{u as s}from"./index115.js?v=20260328163632";import{k as l,c as e,V as n,W as p,X as r,Y as i}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index88.js?v=20260328163632";const m={class:"w-full h-full bg-black"},u=["src"],d=l({__name:"index",props:{compData:{default:()=>({cmd:"cmd"})}},setup(l,{expose:d}){const h=l,{serverIp:w,panel:j}=a(),{dirPath:b}=s(),f=e((()=>"/".concat("rwebshell","?cmd=").concat(h.compData.cmd,"&path=").concat(h.compData.path||b.value,"&host=").concat(w.value,"&port=").concat(j.value.port).concat(h.compData.projectshell?"&projectshell=".concat(h.compData.projectshell):"","&ws=").concat("https:"===window.location.protocol?"wss:":"ws:","//").concat(window.location.host,"/").concat("powershell"===h.compData.cmd?"webpowershell":"webshell","/").concat(o(8))));return d({onCancel:async()=>{await t({title:c("确定要关闭终端吗？"),content:c("关闭终端后，当前命令行会话正在执行的命令可能被中止，确定关闭吗？")})}}),(a,o)=>(n(),p("div",m,[r("iframe",{src:i(f),class:"!w-full !h-full !border-none"},null,8,u)]))}});export{d as default};
