import{N as s,z as o,l as a}from"./utils-lib.js?v=20260328163632";import{u as t}from"./index50.js?v=20260328163632";import{k as c,c as n,V as i,W as l,X as e,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";import"./index97.js?v=20260328163632";import"./wsl.js?v=20260328163632";const p={class:"w-full h-full bg-black"},m=["src"],d=c({__name:"index",props:{compData:{default:()=>({})}},setup(c,{expose:d}){const u=c,{sid:w}=t(),f=n((()=>"/".concat("rssh","?container_id=").concat(u.compData.container_id,"&sid=").concat(w.value,"&ws=").concat("https:"===window.location.protocol?"wss:":"ws:","//").concat(window.location.host,"/docker_shell/").concat(s(8))));return d({onCancel:async()=>{await o({title:a("确定要关闭终端吗？"),content:a("关闭终端后，当前命令行会话正在执行的命令可能被中止，确定关闭吗？")})}}),(s,o)=>(i(),l("div",p,[e("iframe",{src:r(f),class:"!w-full !h-full !border-none"},null,8,m)]))}});export{d as default};
