File: /www/server/panel/BTPanel/static/js/disk-main-small-legacy.js
!function(){function e(l){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(l)}function l(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,l){if(e){if("string"==typeof e)return t(e,l);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,l):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,l){(null==l||l>e.length)&&(l=e.length);for(var t=0,n=Array(l);t<l;t++)n[t]=e[t];return n}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,n){"use strict";var r,o,s,i,u,a,c,f,d,y,p,g,v,m,h,b,j,x,w,_,S,k,C,A,B,I,M,N;return{setters:[function(e){r=e.c,o=e.aI,s=e.g,i=e.r,u=e.o,a=e.a8,c=e.j,f=e.k,d=e.q,y=e.e,p=e.v,g=e.L,v=e.p,m=e.F,h=e.B,b=e.C,j=e.s,x=e.M,w=e.x,_=e.y,S=e.aB,k=e.b4,C=e.aX,A=e.bC},function(e){B=e.b,I=e.c},function(e){M=e.c,N=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 n={class:"flex flex-1"},P={class:"flex flex-row items-start justify-between w-full"},T={class:"w-full pb-[.2rem] text-base truncate disk-list-title"},z={class:"text-base text-darkTertiary font-400 font-alibaba-bold disk-list-desc"},H={class:"flex flex-col justify-center items-center h-full"};t("default",N(r({__name:"disk-main-small",props:{list:{default:function(){return[]}}},emits:["update:visible","openPopover","show","hide"],setup:function(t,r){r.emit;var N=M().mainWidth,$=B();o($);var q=t,E=s(function(){return N.value<=1600?130:144}),F=i(12),L=s(function(){return F.value+4}),O=i(null),U=null;function W(e){U&&clearTimeout(U),null!==e?O.value=e:U=setTimeout(function(){O.value=null},100)}u(function(){});var X=s(function(){var e=Array.isArray(q.list)?l(q.list):[],t=4-e.length;if(t>0)for(var n=0;n<t;n++)e.push({show:!1,data:{byte_size:[0,0,0],path:"",size:["0 B","0 B","0 B","0%","0.00 b","0"],filesystem:"",type:"",inodes:[0,0,0,"0%"],d_size:"None",rname:""},info:{type:"disk",title:"",range:0,desc:{total:"0",used:"0",total_unit:"",used_unit:""}},isPlaceholder:!0});return e}),Z=function(e,l){if(null!==O.value&&O.value!==l)return"var(--el-color-text-disabled)";var t=e.info.range;return Number(t)>90?"#ef0808":Number(t)>80?"#ff9900":"var(--el-color-primary)"},D=function(e){return E.value-e*L.value*2},G=function(e){var l=D(e);return{left:(E.value-l)/2+"px",top:(E.value-l)/2+"px"}};return u(function(){$.init()}),a($.$reset),function(l,t){var r=S,o=k,s=C,i=A;return c(),f("div",n,[d("div",P,[y(i,{span:24,class:"w-full"},{default:p(function(){return[y(o,{span:16,xl:16},{default:p(function(){return[d("div",{class:g(["h-full flex-2 gap-[4px]",2===v(X).length?"grid grid-cols-1 grid-rows-2":"grid grid-cols-2 grid-rows-2"])},[(c(!0),f(m,null,h(v(X),function(l,n){return c(),f(m,{key:l.info.title+"-"+n},[l.isPlaceholder?_("",!0):(c(),b(r,{key:0,trigger:"hover",width:400,placement:"bottom-start",teleported:!1,"popper-class":"el-popover-shadow","hide-after":0,onShow:function(e){return W(n)},onHide:t[0]||(t[0]=function(e){return W(null)})},{reference:p(function(){var r,o,s,i;return[d("div",{class:g(["flex flex-wrap items-baseline cursor-pointer",{"is-inactive":null!==v(O)&&v(O)!==n}])},[d("span",T,j(l.info.title),1),d("span",{class:"text-[2.2rem] font-700 leading-[1.2] mr-4 disk-list-range",style:x({color:Z(l,n,"list")})},j(l.info.range)+"%",5),d("span",z,["object"===e(l.info.desc)&&"disk"===l.info.type?(c(),f(m,{key:0},[d("span",{style:x({color:l.info.color})},[d("span",null,j(null===(r=l.info.desc)||void 0===r?void 0:r.used)+j(null===(o=l.info.desc)||void 0===o?void 0:o.used_unit),1)],4),t[2]||(t[2]=d("span",null,"/",-1)),d("span",null,j(null===(s=l.info.desc)||void 0===s?void 0:s.total)+j(null===(i=l.info.desc)||void 0===i?void 0:i.total_unit),1)],64)):(c(),f(m,{key:1},[w(j(l.info.desc),1)],64))])],2)]}),default:p(function(){return[y(I,{item:l},null,8,["item"])]}),_:2},1032,["onShow"]))],64)}),128))],2)]}),_:1}),y(o,{span:8,xl:8},{default:p(function(){return[d("div",H,[d("div",{class:"flex relative",style:x({width:v(E)+"px",height:v(E)+"px"})},[(c(!0),f(m,null,h(v(X),function(e,l){return c(),b(r,{key:e.info.title,disabled:e.isPlaceholder,trigger:"hover",width:400,placement:"bottom-start",teleported:!1,"popper-class":"el-popover-shadow","show-after":100,"hide-after":0,transition:"none",onShow:function(e){return W(l)},onHide:t[1]||(t[1]=function(e){return W(null)})},{reference:p(function(){return[d("div",{class:"flex absolute",style:x(G(l))},[y(s,{class:g(["cursor-pointer",{"mount-progress":"None"===e.data.path}]),type:"circle","show-text":!1,width:D(l),"stroke-width":v(F),color:Z(e,l),percentage:e.info.range||0},null,8,["class","width","stroke-width","color","percentage"])],4)]}),default:p(function(){return[y(I,{item:e},null,8,["item"])]}),_:2},1032,["disabled","onShow"])}),128))],4)])]}),_:1})]}),_:1})])])}}}),[["__scopeId","data-v-dce33382"]]))}}})}();