File: /www/server/panel/BTPanel/static/js/main-legacy2.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}System.register(["./base-lib-legacy.js?v=1777008528","./index-legacy60.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./site-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./index-legacy212.js?v=1777008528","./index-legacy121.js?v=1777008528","./ActivityCenter.vue_vue_type_style_index_1_scoped_a56e7856_lang-legacy.js?v=1777008528","./ssl-legacy.js?v=1777008528","./useController-legacy2.js?v=1777008528","./config-legacy.js?v=1777008528","./useStore-legacy.js?v=1777008528","./store-legacy.js?v=1777008528","./store-legacy2.js?v=1777008528","./useController-legacy7.js?v=1777008528","./useStore-legacy7.js?v=1777008528","./useStore-legacy11.js?v=1777008528","./useController-legacy8.js?v=1777008528","./index-legacy118.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./useStore-legacy3.js?v=1777008528","./useController-legacy18.js?v=1777008528","./useMethod-legacy3.js?v=1777008528","./useController-legacy13.js?v=1777008528","./useController-legacy19.js?v=1777008528","./useMethod-legacy12.js?v=1777008528","./index-legacy192.js?v=1777008528","./useController-legacy20.js?v=1777008528","./useMethod-legacy8.js?v=1777008528","./store-legacy3.js?v=1777008528","./hooks-legacy.js?v=1777008528"],function(t,l){"use strict";var o,a,n,s,r,u,i,c,d,f,y,p,g,v,m,h,x,b,j,_,w,k,S,C,M,B;return{setters:[function(e){o=e.c,a=e.aI,n=e.g,s=e.o,r=e.a8,u=e.j,i=e.k,c=e.e,d=e.v,f=e.q,y=e.p,p=e.s,g=e.J,v=e.F,m=e.M,h=e.x,x=e.K,b=e.C,j=e.L,_=e.N,w=e.aX,k=e.aB,S=e.bf},function(e){C=e.a,M=e.b},function(e){B=e.cZ},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var l={class:"module-ui relative"},L={class:"flex flex-shrink-0 w-full"},N={class:"flex flex-col justify-end flex-shrink-0 w-full home-load-status-title"},T=["title"],$={class:"text-extraLarge text-default font-alibaba-heavy 2xl:text-subtitleLarge whitespace-nowrap",style:{fontSize:"var(--bt-home-overview-font-size)"}},z={class:"text-small"},A={class:"text-small"},D={class:"absolute right-0 top-0"},F={class:"flex flex-col gap-y-1"},H={class:"flex flex-col items-center text-small font-alibaba-semibold"},I={class:"font-800 md:text-subtitleLarge lg:text-iconLarge 2xl:text-titleLarge"},W=o({__name:"main",props:{visible:{type:Boolean,default:!1},custom:{type:Boolean,default:!1},showDesc:{type:Boolean,default:!0},href:{default:""},info:{default:function(){return{type:"",title:"",range:0}}},disk:{type:Boolean,default:!1},data:{default:function(){return{}}},type:{default:""},alert:{type:Boolean,default:!1},mainWidth:{default:200}},emits:["update:visible","openPopover","show","hide"],setup:function(t,o){o.emit;var B=C(),W=a(B).tagsType,q=t,J=M(),K=a(J),P=K.virtualRef,R=K.popoverContent,X=n(function(){var e=q.mainWidth||200;return e<=200?Math.max(80,Math.min(100,Math.floor(.35*e)-20)):e<=300?Math.max(100,Math.min(120,Math.floor(.33*e)-20)):Math.max(120,Math.min(140,Math.floor(.3*e)-20))}),Z=n(function(){var t=q.info,l=q.alert,o=t.desc,a=t.title,n=t.range,s=t.rangeText,r=t.disabled,u=t.type,i=J.chartColorActive(n,l),c=o,d=i.color;if("disk"===q.type&&"var(--el-color-primary)"===d){var f=q.data;d=Number(f.inodes[3].replace("%",""))>90?"#ef0808":Number(f.inodes[3].replace("%",""))>80?"#ff9900":"var(--el-color-primary)"}if("object"===e(o)&&("disk"===u||"mem"===u))try{c={used:o.used?o.used:"0",used_unit:o.used_unit?o.used_unit:"0",total:o.total?o.total:"0",total_unit:o.total_unit?o.total_unit:"0"}}catch(y){c="获取中"}return{type:u,title:a,color:d,range:n,disabled:!!r,desc:c||i.desc,rangeText:s||"",position:"bottom-start"}}),E=n(function(){var e=q.data;if("disk"===q.info.type){var t=Number(e.inodes[3].replace("%",""));if(t>=90)return{status:!0,color:"#ef0808",range:t};if(t>=80)return{status:!0,color:"#ff9900",range:t}}return{status:!1,color:"#1890ff",range:0}}),G=function(e){var t=Z.value.rangeText;return t||"".concat(e,"%")};n(function(){return O.value?{backgroundColor:Z.value.color}:{}});var O=n(function(){return"load"===Z.value.type&&"success"!==W.value.load});return s(function(){J.init()}),r(function(){J.$reset()}),function(o,a){var n=w,s=k,r=S;return u(),i("div",l,[c(s,{trigger:"hover","virtual-ref":y(P),width:400,offset:t.custom?1:0,placement:y(Z).position,teleported:!1,"show-after":100,"auto-close":0,"popper-class":"el-popover-shadow",onShow:a[0]||(a[0]=function(e){return o.$emit("show")}),onHide:a[1]||(a[1]=function(e){return o.$emit("hide")})},{reference:d(function(){var l,o,s,_;return[f("div",{ref_key:"popoverContent",ref:R,class:"flex flex-row items-end justify-between w-full h-full relative"},[f("div",L,[f("div",N,[f("span",{class:"pb-[.6rem] text-base truncate block w-[50%] font-alibaba-semibold",title:y(Z).title},p(y(Z).title),9,T),g(f("span",$,["object"!==e(y(Z).desc)||"disk"!==y(Z).type&&"mem"!==y(Z).type?(u(),i(v,{key:1},[h(p(y(Z).desc),1)],64)):(u(),i(v,{key:0},[f("span",{style:m({color:y(Z).color})},[f("span",null,p(null===(l=y(Z).desc)||void 0===l?void 0:l.used),1),f("span",z,p(null===(o=y(Z).desc)||void 0===o?void 0:o.used_unit),1)],4),a[2]||(a[2]=f("span",null," / ",-1)),f("span",null,p(null===(s=y(Z).desc)||void 0===s?void 0:s.total),1),f("span",A,p(null===(_=y(Z).desc)||void 0===_?void 0:_.total_unit),1)],64))],512),[[x,t.showDesc]])])]),f("div",D,[g(c(n,{class:"status-secondary-progress",type:"dashboard",percentage:y(E).range,color:y(E).color,width:.7*y(X),"stroke-width":6},{default:d(function(e){var t=e.percentage;return[f("div",F,[a[3]||(a[3]=f("span",{class:"text-extraSmall text-secondary"},"inode",-1)),f("span",{style:m({color:y(E).color})},p(t)+"%",5)])]}),_:1},8,["percentage","color","width"]),[[x,y(E).status]]),g((u(),b(n,{class:j(["status-main-progress",{"mount-progress":"None"===t.data.path}]),type:"circle",width:y(X),"stroke-width":8,color:y(Z).color,percentage:y(Z).range||0,format:G,style:m("color:"+y(Z).color)},{default:d(function(e){var t=e.percentage;return[f("div",H,[f("span",{class:"percentage-value",style:m({color:y(Z).color})},[f("span",I,p(Number(t).toFixed(0)),1),a[4]||(a[4]=h("% ",-1))],4)])]}),_:1},8,["width","class","color","percentage","style"])),[[r,void 0,"popover"]])])],512)]}),default:d(function(){return[_(o.$slots,"default",{},void 0,!0)]}),_:3},8,["virtual-ref","offset","placement"])])}}});t("default",B(W,[["__scopeId","data-v-bb897b4a"]]))}}})}();