System.register(["./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785"],(function(e,n){"use strict";var t,l,a,r,u,o,s,i,g,c,p,d;return{setters:[e=>{t=e.P},e=>{l=e.bn},e=>{a=e.f,r=e.a9},e=>{u=e.k,o=e.R,s=e.r,i=e.c,g=e.w,c=e.o,p=e.a0,d=e.n}],execute:function(){const n=l({height:"100%","&[class*='language-']":{border:"none",margin:0},".line-numbers":{whiteSpace:"pre-wrap"}});e("_",u({name:"BtPrism",props:{lang:{type:String,default:"logs"},content:{type:String,default:""},loading:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},fontSize:{type:[String,Number],default:"14px"},rows:{type:Number,default:100},preStyle:{type:Object,default:()=>{}}},setup(e){const{t:l}=o(),u=s(null),f=s(null),y=s(""),v=i((()=>{const n=e.wrap?{wordWrap:"break-word"}:{};return{fontSize:a(e.fontSize),...n,...e.preStyle}})),h=i((()=>""===e.content?[l("Component.Logs.index_1")]:e.content.split("\n").slice(-1*(e.rows+1))));g((()=>h.value),(()=>{m()}));const m=async()=>{y.value=t.highlight(h.value.join("\n"),t.languages[e.lang],e.lang),await d(),f.value&&t.highlightElement(f.value),w()},w=()=>{u.value&&(u.value.scrollTop=u.value.scrollHeight)};return c((()=>{m()})),()=>p(r,{show:e.loading},{default:()=>[p("pre",{ref:u,class:[n,`language-${e.lang}`,"line-numbers"],style:v.value},[p("code",{ref:f,innerHTML:y.value},null)])]})}}))}}}));
