"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[279],{8279:function(e,l,t){t.r(l),t.d(l,{default:function(){return c}});var a=t(6808);const o=(0,a._)("div",{class:"el-form-item-msg"},null,-1),r=(0,a._)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function m(e,l,t,m,i,n){const d=(0,a.up)("el-switch"),u=(0,a.up)("el-form-item"),c=(0,a.up)("el-color-picker"),s=(0,a.up)("el-form"),f=(0,a.up)("el-card"),p=(0,a.up)("el-option"),h=(0,a.up)("el-select");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(f,{shadow:"never",header:"语言主题"},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"主题"},{default:(0,a.w5)((()=>[(0,a.Wm)(d,{modelValue:i.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>i.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),o])),_:1}),(0,a.Wm)(u,{label:"主题颜色"},{default:(0,a.w5)((()=>[(0,a.Wm)(c,{modelValue:i.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>i.config.colorPrimary=e),predefine:i.colorList},{default:(0,a.w5)((()=>[(0,a.Uk)(">")])),_:1},8,["modelValue","predefine"])])),_:1})])),_:1},512)])),_:1}),(0,a.Wm)(f,{shadow:"never",header:"个人设置",style:{"margin-top":"10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(s,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(u,{label:"自动登出"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,{modelValue:i.config.autoExit,"onUpdate:modelValue":l[2]||(l[2]=e=>i.config.autoExit=e)},{default:(0,a.w5)((()=>[(0,a.Wm)(p,{label:"从不",value:0}),(0,a.Wm)(p,{label:"1分钟",value:1}),(0,a.Wm)(p,{label:"5分钟",value:5}),(0,a.Wm)(p,{label:"10分钟",value:10}),(0,a.Wm)(p,{label:"15分钟",value:15}),(0,a.Wm)(p,{label:"20分钟",value:20}),(0,a.Wm)(p,{label:"25分钟",value:25}),(0,a.Wm)(p,{label:"30分钟",value:30}),(0,a.Wm)(p,{label:"35分钟",value:35}),(0,a.Wm)(p,{label:"40分钟",value:40}),(0,a.Wm)(p,{label:"45分钟",value:45}),(0,a.Wm)(p,{label:"50分钟",value:50}),(0,a.Wm)(p,{label:"55分钟",value:55}),(0,a.Wm)(p,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var i=t(9158),n={data(){return{colorList:["#409EFF","#009688","#536dfe","#ff5c93","#c62f2f","#fd726d"],config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1,colorPrimary:this.$tool.data.get("APP_COLOR")||this.$config.COLOR||"#409EFF",autoExit:this.$tool.data.get("AUTO_EXIT")||0}}},watch:{"config.dark"(e){e?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",e)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))},"config.colorPrimary"(e){e||(e="#409EFF",this.config.colorPrimary="#409EFF"),document.documentElement.style.setProperty("--el-color-primary",e);for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-light-${l}`,i.Z.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,i.Z.darken(e,l/10));this.$tool.data.set("APP_COLOR",e)},"config.autoExit"(e){0==e?this.$tool.data.remove("AUTO_EXIT"):this.$tool.data.set("AUTO_EXIT",e)}}},d=t(8700);const u=(0,d.Z)(n,[["render",m]]);var c=u}}]);