File: /www/server/panel/BTPanel/static/js/index-legacy409.js
System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy121.js?v=1777008528","./controller-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./useStore-legacy.js?v=1777008528","./config-legacy.js?v=1777008528"],function(e,n){"use strict";var t,l,a,o,s,u,c,i,r,d,p,f,m,v,h,x,g,y,w,_,k,j,C,V,b,S,U;return{setters:[function(e){t=e.c,l=e.d_,a=e.cP,o=e.cZ},function(e){s=e.c,u=e.r,c=e.g,i=e.o,r=e.w,d=e.j,p=e.k,f=e.q,m=e.F,v=e.B,h=e.L,x=e.p,g=e.e,y=e.s,w=e.C,_=e.v,k=e.R,j=e.y,C=e.aW},function(e){V=e._},function(e){b=e.m,S=e.u,U=e.h},null,null,null],execute:function(){var n={class:"menu-settings-wrap"},z={class:"max-h-[380px] overflow-y-auto p-4"},A=["onClick"],R={class:"flex items-center gap-[10px]"},q={key:1,class:"menu-arrow-placeholder"},B={class:"text-[14px]"},F={key:0,class:"text-[12px] text-[var(--el-text-color-disabled)]"},H={class:"flex items-center gap-[10px]"},I={class:"text-[14px] text-[var(--el-text-color-regular)]"};e("default",o(s({__name:"index",setup:function(e){var o=t().isRefreshMenu,s=["首页","软件商店","设置","退出"],L=function(e){return Array.isArray(e.children)&&e.children.length>0},M=u(new Set),P=c(function(){var e;return null!==(e=b.value)&&void 0!==e?e:[]});return i(function(){S()}),r(o,function(e){e&&(S(),o.value=!1)}),function(e,t){var o=V,u=C,c=a;return d(),p("div",n,[f("div",z,[(d(!0),p(m,null,v(x(P),function(e){return d(),p(m,{key:e.id},[f("div",{class:"menu-row",onClick:function(n){return L(e)&&(t=e.id,M.value.has(t)?M.value.delete(t):M.value.add(t),void(M.value=new Set(M.value)));var t}},[f("div",R,[L(e)?(d(),p("i",{key:0,class:h(["svgtofont-el-arrow-right menu-arrow",{"is-expand":x(M).has(e.id)}])},null,2)):(d(),p("span",q)),g(o,{name:"menu-".concat("dologin"===e.name?"exit":e.name),size:"20"},null,8,["name"]),f("span",B,y(e.title),1)]),(n=e.title,s.includes(n)?(d(),p("div",F,"不可操作")):(d(),w(u,{key:1,content:e.show?"关闭后将在导航栏隐藏此菜单":"开启后将在导航栏显示此菜单",placement:"top"},{default:_(function(){return[g(x(l),{modelValue:e.show,"onUpdate:modelValue":function(n){return e.show=n},size:"small",onChange:function(n){return x(U)(e)},onClick:t[0]||(t[0]=k(function(){},["stop"]))},null,8,["modelValue","onUpdate:modelValue","onChange"])]}),_:2},1032,["content"])))],8,A),L(e)?(d(),p("div",{key:0,class:h(["menu-children",{"is-expand":x(M).has(e.id)}])},[(d(!0),p(m,null,v(e.children,function(e){return d(),p("div",{key:e.id,class:"menu-row is-child"},[f("div",H,[f("span",I,y(e.title),1)]),g(u,{content:e.show?"关闭后将在导航栏隐藏此菜单":"开启后将在导航栏显示此菜单",placement:"top"},{default:_(function(){return[g(x(l),{modelValue:e.show,"onUpdate:modelValue":function(n){return e.show=n},size:"small",onChange:function(n){return x(U)(e)}},null,8,["modelValue","onUpdate:modelValue","onChange"])]}),_:2},1032,["content"])])}),128))],2)):j("",!0)],64);var n}),128))]),g(c,{"list-style":"disc",options:[{content:"关闭模块后手动重启宝塔面板会显著降低资源占用"},{content:"不启用的模块不会占用系统资源"}],class:"mt-[12px] pt-[12px]"})])}}}),[["__scopeId","data-v-77ac3f1c"]]))}}});