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