import{aX as m,c as d}from"./index-BTglIPU2.js?v=1773287522785";import{a9 as h,B as k}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as y,r as l,w as v,ab as w,$ as B,Z as C,a0 as n,a9 as a,S as c,j as b,aa as x,n as F}from"./vue-core-DJjvd5ZC.js?v=1773287522785";const R=y({__name:"index",props:{log:{default:""},loading:{type:Boolean,default:!1}},setup(r){const i=r,s=l(),t=l(null),{isFullscreen:u,toggle:p}=m(t);return v(()=>i.log,()=>{F(()=>{const o=s.value.$el.querySelector("code");o==null||o.scrollTo({top:9999999})})},{immediate:!0}),(e,o)=>{const _=w("highlightjs"),f=h,g=k;return B(),C("div",{ref_key:"containerRef",ref:t,class:"relative h-full group"},[n(f,{show:e.loading,class:"h-full"},{default:a(()=>[n(_,{ref_key:"logsRef",ref:s,class:"bt-log",language:"log",code:e.log},null,8,["code"])]),_:1},8,["show"]),n(g,{type:"primary",class:"full-btn",onClick:c(p)},{default:a(()=>[b(x(c(u)?e.$t("Exit Fullscreen"):e.$t("Fullscreen")),1)]),_:1},8,["onClick"])],512)}}}),T=d(R,[["__scopeId","data-v-7977ade4"]]);export{T as _};
