File: /www/server/panel/BTPanel/static/js/index-legacy206.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528"],function(t,n){"use strict";var r,l,o,a,i,c,u,s,f,p,m,y,d,g,b,v,x,S,h,T,w,A;return{setters:[function(e){r=e.c,l=e.e,o=e._,a=e.cZ},function(e){i=e.c,c=e.r,u=e.w,s=e.o,f=e.j,p=e.k,m=e.q,y=e.x,d=e.y,g=e.s,b=e.J,v=e.K,x=e.p,S=e.e,h=e.v,T=e.n,w=e.z},function(e){A=e.a8}],execute:function(){var j=["innerHTML"],k={key:1,class:"flex-1 w-full p-0 bg-none text-i text-disabled dark:text-[#ccc]",style:{"white-space":"break-spaces"}},H={class:"absolute",style:{top:"1.5rem",right:"10.5rem"}},_=i({__name:"index",props:{content:{default:""},isHtml:{type:Boolean,default:!1},autoScroll:{type:Boolean,default:!0},fullScreen:{type:[Object,Boolean],default:!1},aiTips:{default:function(){return{name:"",logType:""}}}},setup:function(t,a){var i=a.expose,_=t,B=r().panel,I=c(null),M=c(!1),C=function(){T(function(){var e=I.value,t=e.scrollHeight;e.scrollTop=t})};u(function(){return _.content},function(){_.autoScroll&&C()},{immediate:!0});var R=function(e){_.fullScreen&&(M.value=e)},L=function(){return _.content},N=function(){l({title:_.fullScreen.title,area:"100%",showFooter:!1,closeBtn:2,customClass:"full-screen-dialog",component:function(){return o(function(){return n.import("./full-screen-legacy.js?v=1777008528")},void 0,n.meta.url)},compData:{isHtml:_.isHtml,autoScroll:_.autoScroll,onRefresh:_.fullScreen.onRefresh,getContent:L,siteName:_.fullScreen.siteName,logType:_.fullScreen.logType}})};return s(function(){_.autoScroll&&C()}),i({setScrollBottom:C}),function(n,r){var l=A,o=w;return f(),p("div",{class:"w-full h-full relative",onMouseover:r[0]||(r[0]=function(e){return R(!0)}),onMouseleave:r[1]||(r[1]=function(e){return R(!1)})},[m("pre",{ref_key:"preRef",ref:I,style:{height:"100%"},class:"w-full flex items-start py-[1rem] px-4 overflow-y-auto bg-[#111] log-box leading-[20px] !rounded-large text-small"},[r[2]||(r[2]=y("\t\t\t",-1)),t.isHtml?(f(),p("code",{key:0,class:"flex-1 w-full p-0 bg-none whitespace-pre-line text-i text-disabled dark:text-[#ccc]",innerHTML:t.content||"暂无日志"},null,8,j)):d("",!0),r[3]||(r[3]=y("\n \t",-1)),t.isHtml?d("",!0):(f(),p("code",k,g(t.content||"暂无日志"),1)),r[4]||(r[4]=y("\n\t\t",-1))],512),b(m("div",H,[S(l,{tips:[{text:"AI分析",message:"帮我分析".concat(t.aiTips.name,"网站").concat(t.aiTips.logType,"日志内容")}]},null,8,["tips"])],512),[[v,t.aiTips.name&&x(B).showAiTip&&x(M)]]),b(S(o,{type:"primary",class:"absolute",style:{top:"1rem",right:"1.5rem"},onClick:N},{default:h(function(){return e(r[5]||(r[5]=[y(" 全屏展示 ",-1)]))}),_:1},512),[[v,x(M)]])],32)}}});t("_",a(_,[["__scopeId","data-v-9cfd19b2"]]))}}})}();