HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/index-legacy14.js
!function(){function e(n){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(n)}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,i,r,a,l=[],u=!0,c=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;u=!1}else for(;!(u=(o=r.call(t)).done)&&(l.push(o.value),l.length!==n);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,n)||o(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(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 o(e,n){if(e){if("string"==typeof e)return i(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function r(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?r(Object(t),!0).forEach(function(n){l(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):r(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function l(n,t,o){return(t=function(n){var t=function(n,t){if("object"!=e(n)||!n)return n;var o=n[Symbol.toPrimitive];if(void 0!==o){var i=o.call(n,t||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==e(t)?t:t+""}(t))in n?Object.defineProperty(n,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[t]=o,n}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,n,t="function"==typeof Symbol?Symbol:{},o=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function r(t,o,i,r){var u=o&&o.prototype instanceof l?o:l,s=Object.create(u.prototype);return c(s,"_invoke",function(t,o,i){var r,l,u,c=0,s=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(n,t){return r=n,l=0,u=e,f.n=t,a}};function p(t,o){for(l=t,u=o,n=0;!d&&c&&!i&&n<s.length;n++){var i,r=s[n],p=f.p,v=r[2];t>3?(i=v===o)&&(u=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=p&&((i=t<2&&p<r[1])?(l=0,f.v=o,f.n=r[1]):p<v&&(i=t<3||r[0]>o||o>v)&&(r[4]=t,r[5]=o,f.n=v,l=0))}if(i||t>1)return a;throw d=!0,o}return function(i,s,v){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,v),l=s,u=v;(n=l<2?e:u)||!d;){r||(l?l<3?(l>1&&(f.n=-1),p(l,u)):f.n=u:f.v=u);try{if(c=2,r){if(l||(i="next"),n=r[i]){if(!(n=n.call(r,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,l<2&&(l=0)}else 1===l&&(n=r.return)&&n.call(r),l<2&&(u=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=e}else if((n=(d=f.n<0)?u:t.call(o,f))!==a)break}catch(n){r=e,l=1,u=n}finally{c=1}}return{value:n,done:d}}}(t,i,r),!0),s}var a={};function l(){}function s(){}function d(){}n=Object.getPrototypeOf;var f=[][o]?n(n([][o]())):(c(n={},o,function(){return this}),n),p=d.prototype=l.prototype=Object.create(f);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=d,c(p,"constructor",d),c(d,"constructor",s),s.displayName="GeneratorFunction",c(d,i,"GeneratorFunction"),c(p),c(p,i,"Generator"),c(p,o,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(u=function(){return{w:r,m:v}})()}function c(e,n,t,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}c=function(e,n,t,o){function r(n,t){c(e,n,function(e){return this._invoke(n,t,e)})}n?i?i(e,n,{value:t,enumerable:!o,configurable:!o,writable:!o}):e[n]=t:(r("next",0),r("throw",1),r("return",2))},c(e,n,t,o)}function s(e,n,t,o,i,r,a){try{var l=e[r](a),u=l.value}catch(e){return void t(e)}l.done?n(u):Promise.resolve(u).then(o,i)}function d(e){return function(){var n=this,t=arguments;return new Promise(function(o,i){var r=e.apply(n,t);function a(e){s(r,o,i,a,l,"next",e)}function l(e){s(r,o,i,a,l,"throw",e)}a(void 0)})}}System.register(["./base-lib-legacy.js?v=1777008528","./index-legacy121.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./useController-legacy2.js?v=1777008528","./index-legacy130.js?v=1777008528","./useStore-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./config-legacy.js?v=1777008528","./ace-legacy.js?v=1777008528"],function(e,o){"use strict";var i,r,l,c,s,f,p,v,g,m,h,_,b,y,w,C,x,k,S,O,V,j,U,T,I,P,R,z,L,B,A,M,E,N,D,G,H,J,$,F,q,Q;return{setters:[function(e){i=e.a7,r=e.r,l=e.o,c=e.j,s=e.k,f=e.q,p=e.e,v=e.p,g=e.v,m=e.x,h=e.s,_=e.z,b=e.c,y=e.y,w=e.N,C=e.g,x=e.M,k=e.C,S=e.$,O=e.L,V=e.ap,j=e.f,U=e.ba,T=e.F,I=e.B,P=e.O,R=e.bS,z=e.bB},function(e){L=e._},function(e){B=e.cZ,A=e.c,M=e.Q,E=e.f,N=e.dH,D=e.A,G=e.i9,H=e.ia,J=e.ib,$=e.e},function(e){F=e.u},function(e){q=e.B},function(e){Q=e.g},null,null,null],execute:function(){var o={class:"json-config-dialog"},W={class:"json-config-content"},Z={class:"json-config-actions"},K={class:"actions-left"},X={class:"actions-right"},Y={__name:"JsonConfigDialog",props:{compData:{type:Object,default:function(){return{}}}},setup:function(e){var n=A().globalTheme,b=Q().savaPanelTheme,y=i(),w=E(),C=r(""),x=F(),k=x.importLoading,S=x.exportLoading,O=x.handleImportConfig,V=x.handleExportConfig,j=x.handleRestoreDefault,U={mode:"ace/mode/json",theme:y.value?"ace/theme/clouds_midnight":"ace/theme/chrome",fontSize:"14px",showPrintMargin:!1,wrap:!0,readOnly:!1},T=function(){var e=d(u().m(function e(){var n;return u().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,M({value:C.value});case 1:w.success("配置已复制到剪贴板","success"),e.n=3;break;case 2:e.p=2,n=e.v,console.error("复制失败:",n),w.error("复制失败,请手动选择复制","error");case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),I=function(){var e=d(u().m(function e(){return u().w(function(e){for(;;)switch(e.n){case 0:O({onSuccess:function(){C.value=JSON.stringify(n.value,null,2)}});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),P=function(){var e=d(u().m(function e(){return u().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,V();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),R=function(){var e=d(u().m(function e(){var t;return u().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,j();case 1:C.value=JSON.stringify(n.value,null,2),e.n=3;break;case 2:e.p=2,t=e.v,console.error("恢复默认配置失败:",t);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),z=function(){try{var e=JSON.parse(C.value);if(!e||!e.theme)return void w.error("配置文件格式错误,请检查是否包含必要字段","error");n.value=a({},e),b(),w.success("配置保存成功!","success")}catch(t){w.error("JSON格式错误,请检查配置内容","error")}};return l(function(){C.value=JSON.stringify(n.value,null,2)}),function(e,n){var i=_;return c(),s("div",o,[n[4]||(n[4]=f("div",{class:"json-config-header"},[f("p",null,"当前UI设置的JSON配置数据,可用于备份、分享或导入配置,保存后,需要刷新界面才能显示生效。")],-1)),f("div",W,[p(v(q),{modelValue:C.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return C.value=e}),"editor-option":U,class:"json-editor",onSave:z},null,8,["modelValue"])]),f("div",Z,[f("div",K,[p(i,{onClick:T},{default:g(function(){return t(n[1]||(n[1]=[m("复制",-1)]))}),_:1}),p(i,{loading:v(k),onClick:I},{default:g(function(){return[m(h(v(k)?"导入中...":"导入配置"),1)]}),_:1},8,["loading"]),p(i,{loading:v(S),onClick:P},{default:g(function(){return[m(h(v(S)?"导出中...":"导出配置"),1)]}),_:1},8,["loading"]),p(i,{onClick:R},{default:g(function(){return t(n[2]||(n[2]=[m("恢复默认配置",-1)]))}),_:1})]),f("div",X,[p(i,{type:"primary",onClick:z},{default:g(function(){return t(n[3]||(n[3]=[m("保存配置 ",-1)]))}),_:1})])])])}}},ee=B(Y,[["__scopeId","data-v-732233fb"]]),ne={class:"ui-settings__section"},te={key:0,class:"ui-settings__section-title"},oe={class:"ui-settings__section-content"},ie=b({__name:"SettingsSection",props:{title:{}},setup:function(e){return function(n,t){return c(),s("div",ne,[e.title?(c(),s("div",te,h(e.title),1)):y("",!0),f("div",oe,[w(n.$slots,"default")])])}}}),re={class:"ui-settings__item"},ae={key:0,class:"ui-settings__item-label"},le={class:"ui-settings__item-content"},ue={key:0,class:"ui-settings__tip"},ce=b({__name:"SettingsItem",props:{label:{},tip:{},showRestore:{type:Boolean},actionsMarginTop:{}},emits:["restore"],setup:function(e){var n=e,o=C(function(){return{marginTop:n.actionsMarginTop||"10px"}});return function(n,i){var r=_;return c(),s("div",re,[e.label?(c(),s("div",ae,h(e.label),1)):y("",!0),f("div",le,[w(n.$slots,"default"),e.tip?(c(),s("div",ue,h(e.tip),1)):y("",!0),n.$slots.actions||e.showRestore?(c(),s("div",{key:1,class:"ui-settings__actions",style:x(o.value)},[w(n.$slots,"actions"),e.showRestore?(c(),k(r,{key:0,size:"small",onClick:i[0]||(i[0]=function(e){return n.$emit("restore")})},{default:g(function(){return t(i[1]||(i[1]=[m("恢复默认",-1)]))}),_:1})):y("",!0)],4)):y("",!0)])])}}}),se={class:"settings-image-uploader"},de={key:0,class:"ui-settings__switch mb-[10px]"},fe={key:1},pe={key:0,class:"text-center"},ve={key:1},ge={key:0,class:"ui-settings__tip"},me={class:"ui-settings__actions"},he=b({__name:"ImageUploader",props:{modelValue:{type:Boolean},showSwitch:{type:Boolean},imageUrl:{},label:{},tip:{},uploadType:{},accept:{},uploadBtnText:{},previewClass:{}},emits:["update:modelValue","upload-success","restore","change"],setup:function(e,n){var o=n.emit,i=e,l=o,b=C(function(){return{Authorization:N()}}),w=r(!1),x=function(e){return!w.value},k=function(){var e=d(u().m(function e(n){var t,o,r,l,c,s,d,f,p,v,g;return u().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!w.value){e.n=1;break}return e.a(2);case 1:return w.value=!0,t=n.file,o=n.data,r=n.onSuccess,l=n.onError,c=n.onProgress,o.type,s=t.name.split(".").pop()||"png",d="theme_images_".concat(Date.now(),".").concat(s),e.p=2,e.n=3,D(t,{path:"/www/server/panel/BTPanel/static/temp",name:d,onProgress:function(e){return null==c?void 0:c({percent:e})}});case 3:(f=e.v).status?(f.url||null!==(p=f.data)&&void 0!==p&&p.url||(f.url="/static/temp/".concat(d)),null==r||r(a(a({},f),{},{type:i.uploadType}))):(v=new Error(f.msg||"上传失败"),null==l||l(v)),e.n=5;break;case 4:e.p=4,g=e.v,null==l||l(g);case 5:return e.p=5,w.value=!1,e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(n){return e.apply(this,arguments)}}(),T=S(function(e){l("upload-success",e)},1e3),I=function(e){l("update:modelValue",Boolean(e)),l("change")};return function(n,o){var i=V,r=j,a=_,l=U;return c(),s("div",se,[e.showSwitch?(c(),s("div",de,[p(i,{"model-value":e.modelValue,"active-text":"显示","inactive-text":"隐藏","inline-prompt":"",onChange:I},null,8,["model-value"])])):y("",!0),!e.showSwitch||e.modelValue?(c(),s("div",fe,[f("div",{class:O(e.previewClass||"ui-settings__preview")},[p(r,{src:e.imageUrl,alt:e.label},{error:g(function(){return[e.imageUrl?(c(),s("div",pe,t(o[1]||(o[1]=[f("div",null,"加载失败",-1),f("div",null,"请重新上传",-1)])))):(c(),s("div",ve,"请上传图片"))]}),_:1},8,["src","alt"])],2),e.tip?(c(),s("div",ge,h(e.tip),1)):y("",!0),f("div",me,[p(l,{class:"ui-settings__uploader",action:"/files",data:{type:e.uploadType},headers:b.value,"show-file-list":!1,"before-upload":x,"http-request":k,"on-success":v(T),accept:e.accept},{default:g(function(){return[p(a,{size:"small"},{default:g(function(){return[m(h(e.uploadBtnText||"上传图片"),1)]}),_:1})]}),_:1},8,["data","headers","on-success","accept"]),p(a,{size:"small",onClick:o[0]||(o[0]=function(e){return n.$emit("restore")})},{default:g(function(){return t(o[2]||(o[2]=[m("恢复默认",-1)]))}),_:1})])])):y("",!0)])}}}),_e={class:"ui-settings"},be={class:"ui-settings__json-config"},ye={class:"ui-settings__panel"},we={class:"ui-settings__content"},Ce={class:"ui-settings__theme-grid"},xe=["onClick"],ke={class:"ui-settings__theme-icon"},Se={class:"ui-settings__theme-label"},Oe={class:"ui-settings__theme-grid"},Ve=["onClick"],je={class:"ui-settings__theme-icon"},Ue={class:"ui-settings__theme-label"},Te={class:"ui-settings__scheme-grid"},Ie=["onClick"],Pe={class:"ui-settings__scheme-label"},Re={class:"ui-settings__overview-grid"},ze=["onClick"],Le={class:"ui-settings__overview-icon"},Be={viewBox:"0 0 24 24",width:"24",height:"24"},Ae={class:"ui-settings__overview-label"},Me={class:"flex items-center"},Ee={class:"border-[1px] border-light rounded-base p-[1rem] mt-[1rem] flex flex-col w-[25rem]"},Ne={class:"ui-settings__color-grid"},De=["onClick"],Ge={class:"ui-settings__color-label"},He={class:"ui-settings__radius-grid"},Je=["onClick"],$e={class:"ui-settings__radius-label"},Fe={class:"ui-settings__overview-grid"},qe=["onClick"],Qe={class:"ui-settings__overview-icon"},We=["viewBox"],Ze={class:"ui-settings__overview-label"},Ke=b({__name:"index",setup:function(e){var o=A(),i=o.globalTheme,r=o.isAapanel,a=F(),l=a.systemTheme,b=a.isDark,w=a.importLoading,S=a.exportLoading,V=a.handleRestoreDefault,j=a.handleImportConfig,U=a.handleExportConfig,B=a.handleThemePresetChange,M=a.handleThemeViewChange,E=a.handleUploadImage,N=a.handleThemeColorChange,D=a.handleSidebarColorChange,q=a.handleSidebarOpacityChange,Q=a.handleInterfaceRadiusChange,W=a.handleInterfaceBgShowChange,Z=a.handleInterfaceBgImageChange,K=a.handleInterfaceBgImageOpacityChange,X=a.handleInterfaceContentOpacityChange,Y=a.handleInterfaceShadowColorChange,ne=a.handleInterfaceShadowOpacityChange,te=a.handleContainerWidthChange,oe=a.updateThemeColor,re=a.updateInterfaceShadowColor,ae=a.overviewViewOptions,le=a.handleOverviewViewChange,ue=a.handleHomeFontSizeChange,se=a.handleLogoShowChange,de=a.handleLoginBgShowChange,fe=a.handleLoginBgImageOpacityChange,pe=a.handleLoginContentOpacityChange,ve=C(function(){var e,n,t;return[{value:"auto",label:"自动",active:"auto"===(null===(e=i.value.theme)||void 0===e?void 0:e.preset),icon:"tools-adaptive-".concat(l.value)},{value:"light",label:"浅色",active:"light"===(null===(n=i.value.theme)||void 0===n?void 0:n.preset),icon:"tools-light"},{value:"dark",label:"深色",active:"dark"===(null===(t=i.value.theme)||void 0===t?void 0:t.preset),icon:"tools-dark"}]}),ge=C(function(){var e,n;return[{value:"default",label:"默认",active:"default"===(null===(e=i.value.theme)||void 0===e?void 0:e.view),icon:"tools-theme-default"},{value:"aapanel",label:"aapanel",active:"aapanel"===(null===(n=i.value.theme)||void 0===n?void 0:n.view),icon:"tools-theme-aapanel"}]}),me=C(function(){return Object.entries(G).filter(function(e){var t=n(e,1)[0];return-1===["grey","light"].indexOf(t)}).map(function(e){var t,o=n(e,2),r=o[0],a=o[1];return{value:r,label:a.label,gradient:a.gradient,active:H(a.primary,null===(t=i.value.theme)||void 0===t?void 0:t.color)}})}),Ke=C(function(){var e;return!J(null===(e=i.value.theme)||void 0===e?void 0:e.color)}),Xe=C(function(){return Object.entries(G).filter(function(e){return"gold"!==n(e,1)[0]}).map(function(e){var t,o=n(e,2),r=o[0],a=o[1];return{value:r,label:a.label,color:a.primary,active:H(a.primary,null===(t=i.value.sidebar)||void 0===t?void 0:t.color)}})}),Ye=C(function(){var e;return!J(null===(e=i.value.sidebar)||void 0===e?void 0:e.color)}),en=C(function(){var e,n,t,o,r;return[{value:"none",label:"直角",active:"none"===(null===(e=i.value.interface)||void 0===e?void 0:e.rounded)},{value:"smaller",label:"默认",active:"smaller"===(null===(n=i.value.interface)||void 0===n?void 0:n.rounded)},{value:"small",label:"小",active:"small"===(null===(t=i.value.interface)||void 0===t?void 0:t.rounded)},{value:"medium",label:"中",active:"medium"===(null===(o=i.value.interface)||void 0===o?void 0:o.rounded)},{value:"large",label:"大",active:"large"===(null===(r=i.value.interface)||void 0===r?void 0:r.rounded)}]}),nn=C(function(){var e,n,t;return[{value:"100%",label:"铺满",active:"1400px"!==(null===(e=i.value.interface)||void 0===e?void 0:e.container_width),icon:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M11.988 32L4 24.006L12 16m24.012 0L44 23.994L36 32M4 24h40"></path>'},{value:"1400px",label:"定宽",active:(null===(n=i.value.interface)||void 0===n?void 0:n.container_width)&&"1400px"===(null===(t=i.value.interface)||void 0===t?void 0:t.container_width),icon:'<path fill="currentColor" fill-rule="evenodd" d="M85.333 128H42.667v256h42.666V256l79.085 79.085l30.17-30.17l-27.582-27.582h178.017l-27.583 27.584l30.17 30.17l79.057-79.057V384h42.666V128h-42.666v127.973l-79.057-79.056l-30.17 30.17l27.58 27.58H167.006l27.582-27.582l-30.17-30.17l-79.085 79.084z" clip-rule="evenodd"></path>'}]}),tn=function(){var e=d(u().m(function e(){return u().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,$({title:"主题JSON配置",area:[70,60],showFooter:!1,component:ee});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(e,n){var o=_,a=L,l=R,u=z;return c(),s("div",_e,[f("div",be,[p(o,{class:"mr-[8px]",size:"small",onClick:tn},{default:g(function(){return t(n[35]||(n[35]=[m(" 主题JSON配置 ",-1)]))}),_:1}),p(o,{class:"mr-[8px]",size:"small",loading:v(w),onClick:n[0]||(n[0]=function(e){return v(j)()})},{default:g(function(){return[m(h(v(w)?"导入中...":"导入配置"),1)]}),_:1},8,["loading"]),p(o,{class:"mr-[8px]",size:"small",loading:v(S),onClick:n[1]||(n[1]=function(e){return v(U)()})},{default:g(function(){return[m(h(v(S)?"导出中...":"导出配置"),1)]}),_:1},8,["loading"]),p(o,{size:"small",onClick:n[2]||(n[2]=function(e){return v(V)()})},{default:g(function(){return t(n[36]||(n[36]=[m(" 恢复默认配置 ",-1)]))}),_:1})]),f("div",ye,[f("div",we,[p(ie,{title:"主题设置"},{default:g(function(){return[p(ce,{label:"主题风格",tip:"选择界面主题风格,影响整体界面的明暗风格"},{default:g(function(){return[f("div",Ce,[(c(!0),s(T,null,I(ve.value,function(e){return c(),s("div",{key:e.value,class:O(["ui-settings__theme-option",{"ui-settings__theme-option--active":e.active}]),onClick:function(n){return v(B)(e.value,n)}},[f("div",ke,[p(a,{name:e.icon,size:"22",class:"hob-icon"},null,8,["name"])]),f("span",Se,h(e.label),1)],10,xe)}),128))])]}),_:1}),p(ce,{label:"主题样式",tip:"选择界面主题样式,影响整体界面的视觉风格,注意事项:切换会影响部分已设置的样式"},{default:g(function(){return[f("div",Oe,[(c(!0),s(T,null,I(ge.value,function(e){return c(),s("div",{key:e.value,class:O(["ui-settings__theme-option",{"ui-settings__theme-option--active":e.active}]),onClick:function(n){return v(M)(e.value)}},[f("div",je,[p(a,{name:e.icon,size:"22",class:"hob-icon"},null,8,["name"])]),f("span",Ue,h(e.label),1)],10,Ve)}),128))])]}),_:1}),p(ce,{label:"系统主题色",tip:"选择预设的系统主题色方案或自定义颜色,会影响整体界面色调","show-restore":"","actions-margin-top":"15px",onRestore:n[4]||(n[4]=function(e){return v(V)("theme.color","系统主题色")})},{default:g(function(){return[f("div",Te,[(c(!0),s(T,null,I(me.value,function(e){return c(),s("div",{key:e.value,class:O(["ui-settings__scheme-option",{"ui-settings__scheme-option--active":e.active}]),onClick:function(n){return v(N)(e.value)}},[f("div",{class:"ui-settings__scheme-color",style:x({background:e.gradient})},null,4),f("span",Pe,h(e.label),1)],10,Ie)}),128)),f("div",{class:O(["ui-settings__scheme-option ui-settings__scheme-option--custom",{"ui-settings__scheme-option--active":Ke.value}])},[p(l,{modelValue:v(i).theme.color,"onUpdate:modelValue":n[3]||(n[3]=function(e){return v(i).theme.color=e}),size:"default",onChange:v(N),onActiveChange:v(oe)},null,8,["modelValue","onChange","onActiveChange"]),n[37]||(n[37]=f("div",{class:"ui-settings__scheme-label"},"自定义",-1))],2)])]}),_:1})]}),_:1}),v(r)?y("",!0):(c(),k(ie,{key:0,title:"首页设置"},{default:g(function(){return[p(ce,{label:"状态显示方式",tip:"选择首页概览信息的显示方式,影响概览卡片的布局样式","show-restore":"","actions-margin-top":"15px",onRestore:n[5]||(n[5]=function(e){return v(V)("home.overview_view","状态显示方式")})},{default:g(function(){return[f("div",Re,[(c(!0),s(T,null,I(v(ae),function(e){return c(),s("div",{key:e.value,class:O(["ui-settings__overview-option",{"ui-settings__overview-option--active":e.active}]),onClick:function(n){return v(le)(e.value)}},[f("div",Le,[(c(),s("svg",Be,[(c(),k(P("g"),{innerHTML:e.icon},null,8,["innerHTML"]))]))]),f("span",Ae,h(e.label),1)],10,ze)}),128))])]}),_:1}),"tile"!==v(i).home.overview_view?(c(),k(ce,{key:0,label:"状态字体大小","show-restore":"",onRestore:n[7]||(n[7]=function(e){return v(V)("home.overview_size","状态字体大小")})},{default:g(function(){return[f("div",Me,[p(u,{modelValue:v(i).home.overview_size,"onUpdate:modelValue":n[6]||(n[6]=function(e){return v(i).home.overview_size=e}),min:12,max:36,step:2,"show-input":"",style:{width:"300px"},onChange:v(ue)},null,8,["modelValue","onChange"])]),n[39]||(n[39]=f("span",{class:"ui-settings__tip"},"(12-50,数值越大字体越大)",-1)),f("span",Ee,[n[38]||(n[38]=f("span",{class:"pb-[.2rem] text-[1.4rem] font-alibaba-semibold"}," 负载 ",-1)),f("span",{class:"text-default font-alibaba-heavy whitespace-nowrap",style:x({fontSize:"".concat(v(i).home.overview_size,"px")})}," 运行流畅 ",4)])]}),_:1})):y("",!0)]}),_:1})),p(ie,{title:"登录界面设置"},{default:g(function(){return[p(ce,{label:"登录logo图片"},{default:g(function(){return[p(he,{modelValue:v(i).login.is_show_logo,"onUpdate:modelValue":n[8]||(n[8]=function(e){return v(i).login.is_show_logo=e}),"show-switch":"","image-url":v(i).login.logo,"upload-type":"login.logo",tip:"将会显示在登录页面背景(建议图片大小: 64px*64px,推荐svg格式)",onChange:v(se),onUploadSuccess:v(E),onRestore:n[9]||(n[9]=function(e){return v(V)("login.logo","登录logo图片")})},null,8,["modelValue","image-url","onChange","onUploadSuccess"])]}),_:1}),p(ce,{label:"登录背景图片"},{default:g(function(){return[p(he,{modelValue:v(i).login.is_show_bg,"onUpdate:modelValue":n[10]||(n[10]=function(e){return v(i).login.is_show_bg=e}),"show-switch":"","image-url":v(i).login.bg_image,"upload-type":"login.bg_image","preview-class":"ui-settings__bg-preview",tip:"将会显示在登录页面背景(建议图片大小: 1920px*1080px,推荐png格式)",onChange:v(de),onUploadSuccess:v(E),onRestore:n[11]||(n[11]=function(e){return v(V)("login.bg_image","登录背景图片")})},null,8,["modelValue","image-url","onChange","onUploadSuccess"])]}),_:1}),v(i).login.is_show_bg?(c(),k(ce,{key:0,label:"登录背景图片透明度",tip:"(1-100,数值越小越透明)","show-restore":"",onRestore:n[13]||(n[13]=function(e){return v(V)("login.bg_image_opacity","登录背景图片透明度")})},{default:g(function(){return[p(u,{modelValue:v(i).login.bg_image_opacity,"onUpdate:modelValue":n[12]||(n[12]=function(e){return v(i).login.bg_image_opacity=e}),min:0,max:100,step:5,"show-input":"",style:{width:"300px"},onChange:v(fe)},null,8,["modelValue","onChange"])]}),_:1})):y("",!0),p(ce,{label:"登录内容透明度",tip:"(1-100,数值越小越透明)","show-restore":"",onRestore:n[15]||(n[15]=function(e){return v(V)("login.content_opacity","登录内容透明度")})},{default:g(function(){return[p(u,{modelValue:v(i).login.content_opacity,"onUpdate:modelValue":n[14]||(n[14]=function(e){return v(i).login.content_opacity=e}),min:0,max:100,step:5,"show-input":"",style:{width:"300px"},onChange:v(pe)},null,8,["modelValue","onChange"])]}),_:1})]}),_:1}),p(ie,{title:"Logo设置"},{default:g(function(){return[p(ce,{label:"Logo"},{default:g(function(){return[p(he,{"image-url":v(i).logo.image,"upload-type":"logo.image","upload-btn-text":"上传Logo",tip:"将会显示在左侧菜单栏顶部(建议图片大小:32px*32px,推荐使用SVG格式)",onUploadSuccess:v(E),onRestore:n[16]||(n[16]=function(e){return v(V)("logo.image","Logo")})},null,8,["image-url","onUploadSuccess"])]}),_:1}),p(ce,{label:"网站图标"},{default:g(function(){return[p(he,{"image-url":v(i).logo.favicon,"upload-type":"logo.favicon","upload-btn-text":"上传图标",accept:".ico,.png,.svg",tip:"将会显示在浏览器标签页(建议图片大小: 16px*16px,推荐使用ICO格式或PNG、SVG格式)",onUploadSuccess:v(E),onRestore:n[17]||(n[17]=function(e){return v(V)("logo.favicon","网站图标")})},null,8,["image-url","onUploadSuccess"])]}),_:1})]}),_:1}),p(ie,{title:"侧边栏设置"},{default:g(function(){return[v(b)||v(r)?y("",!0):(c(),k(ce,{key:0,label:"侧边栏颜色",tip:"选择预设的颜色方案或自定义颜色,选择后会立即生效,仅浅色模式和默认主题下生效","show-restore":"","actions-margin-top":"15px",onRestore:n[19]||(n[19]=function(e){return v(V)("sidebar.color","侧边栏颜色")})},{default:g(function(){return[f("div",Ne,[(c(!0),s(T,null,I(Xe.value,function(e){return c(),s("div",{key:e.value,class:O(["ui-settings__color-item",{"ui-settings__color-item--active":e.active}]),onClick:function(n){return v(D)(e.color)}},[f("div",{class:"ui-settings__color-preview",style:x({backgroundColor:e.color})},null,4),f("div",Ge,h(e.label),1)],10,De)}),128)),f("div",{class:O(["ui-settings__color-item ui-settings__color-item--custom",{"ui-settings__color-item--active":Ye.value}])},[p(l,{modelValue:v(i).sidebar.color,"onUpdate:modelValue":n[18]||(n[18]=function(e){return v(i).sidebar.color=e}),disabled:v(b),title:v(b)?"暗色模式下不支持自定义颜色":"",size:"default",onChange:v(D),onActiveChange:v(D)},null,8,["modelValue","disabled","title","onChange","onActiveChange"]),n[40]||(n[40]=f("div",{class:"ui-settings__color-label"},"自定义",-1))],2)])]}),_:1})),p(ce,{label:"侧边栏背景透明度",tip:"(1-100,数值越小越透明)","show-restore":"",onRestore:n[22]||(n[22]=function(e){return v(V)("sidebar.opacity","侧边栏背景透明度")})},{default:g(function(){return[p(u,{modelValue:v(i).sidebar.opacity,"onUpdate:modelValue":n[20]||(n[20]=function(e){return v(i).sidebar.opacity=e}),min:0,max:100,step:5,"show-input":"",style:{width:"300px"},onChange:n[21]||(n[21]=function(e){return v(q)(v(i).sidebar.opacity)})},null,8,["modelValue"])]}),_:1})]}),_:1}),p(ie,{title:"界面设置"},{default:g(function(){return[p(ce,{label:"界面圆角",tip:"选择界面元素的圆角大小,影响按钮、卡片等元素的圆角效果"},{default:g(function(){return[f("div",He,[(c(!0),s(T,null,I(en.value,function(e){return c(),s("div",{key:e.value,class:O(["ui-settings__radius-option",{"ui-settings__radius-option--active":e.active}]),onClick:function(n){return v(Q)(e.value)}},[f("div",{class:O(["ui-settings__radius-preview","ui-settings__radius-preview--".concat(e.value)])},null,2),f("span",$e,h(e.label),1)],10,Je)}),128))])]}),_:1}),p(ce,{label:"界面背景图片"},{default:g(function(){return[p(he,{"show-switch":!0,"model-value":v(i).interface.is_show_bg,"image-url":v(i).interface.bg_image,"upload-type":"interface.bg_image","preview-class":"ui-settings__bg-preview",tip:"将会显示在主界面背景,默认图片会根据当前主题风格/样式自动变化(建议图片大小: 1920px*1080px,推荐png格式,大小不建议超过2MB,过大可能会导致页面加载过慢!)","onUpdate:modelValue":v(W),onUploadSuccess:v(Z),onRestore:n[23]||(n[23]=function(e){return v(V)("interface.bg_image","界面背景图片")})},null,8,["model-value","image-url","onUpdate:modelValue","onUploadSuccess"])]}),_:1}),v(i).interface.is_show_bg?(c(),k(ce,{key:0,label:"背景图片透明度",tip:"(1-100,数值越小越透明)","show-restore":"",onRestore:n[26]||(n[26]=function(e){return v(V)("interface.bg_image_opacity","背景图片透明度")})},{default:g(function(){return[p(u,{class:"!w-[300px]",modelValue:v(i).interface.bg_image_opacity,"onUpdate:modelValue":n[24]||(n[24]=function(e){return v(i).interface.bg_image_opacity=e}),min:0,max:100,step:5,"show-input":"",onChange:n[25]||(n[25]=function(e){return v(K)(v(i).interface.bg_image_opacity)})},null,8,["modelValue"])]}),_:1})):y("",!0),p(ce,{label:"内容透明度",tip:"(1-100,数值越小越透明)",onRestore:n[29]||(n[29]=function(e){return v(V)("interface.content_opacity","内容透明度")}),"show-restore":""},{default:g(function(){return[p(u,{class:"!w-[300px]",modelValue:v(i).interface.content_opacity,"onUpdate:modelValue":n[27]||(n[27]=function(e){return v(i).interface.content_opacity=e}),min:0,max:100,step:5,"show-input":"",onChange:n[28]||(n[28]=function(e){return v(X)(v(i).interface.content_opacity)})},null,8,["modelValue"])]}),_:1}),p(ce,{label:"阴影颜色",tip:"(设置主界面内容的阴影颜色)",onRestore:n[31]||(n[31]=function(e){return v(V)("interface.shadow_color","阴影颜色")}),"show-restore":""},{default:g(function(){return[p(l,{modelValue:v(i).interface.shadow_color,"onUpdate:modelValue":n[30]||(n[30]=function(e){return v(i).interface.shadow_color=e}),onChange:v(Y),onActiveChange:v(re)},null,8,["modelValue","onChange","onActiveChange"])]}),_:1}),p(ce,{label:"阴影透明度",tip:"(0-100,数值越大阴影越浓)",onRestore:n[33]||(n[33]=function(e){return v(V)("interface.shadow_opacity","阴影透明度")}),"show-restore":""},{default:g(function(){return[p(u,{class:"!w-[300px]",modelValue:v(i).interface.shadow_opacity,"onUpdate:modelValue":n[32]||(n[32]=function(e){return v(i).interface.shadow_opacity=e}),min:0,max:100,step:1,"show-input":"",onChange:v(ne)},null,8,["modelValue","onChange"])]}),_:1}),p(ce,{label:"容器宽度",tip:"选择主界面的容器宽度布局","show-restore":"","actions-margin-top":"15px",onRestore:n[34]||(n[34]=function(e){return v(V)("interface.container_width","容器宽度")})},{default:g(function(){return[f("div",Fe,[(c(!0),s(T,null,I(nn.value,function(e){return c(),s("div",{key:e.value,class:O(["ui-settings__overview-option",{"ui-settings__overview-option--active":e.active}]),onClick:function(n){return v(te)(e.value)}},[f("div",Qe,[(c(),s("svg",{viewBox:"".concat("100%"===e.value?"0 0 48 48":"0 0 512 512"),version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},[(c(),k(P("g"),{innerHTML:e.icon},null,8,["innerHTML"]))],8,We))]),f("span",Ze,h(e.label),1)],10,qe)}),128))])]}),_:1})]}),_:1})])])])}}});e("default",B(Ke,[["__scopeId","data-v-33212869"]]))}}})}();