"use strict";(self["webpackChunkmi_wifi_agent"]=self["webpackChunkmi_wifi_agent"]||[]).push([[7636],{1098:function(e,l,a){a.r(l),a.d(l,{default:function(){return b}});var t=a(641),o=a(2644);const i={class:"el-form-item-msg"},n={class:"el-form-item-msg"},r=(0,t.Lk)("div",{class:"el-form-item-msg"},"自动登出设置将在下次登录时生效",-1);function d(e,l,a,d,u,c){const s=(0,t.g2)("el-switch"),m=(0,t.g2)("el-form-item"),b=(0,t.g2)("el-color-picker"),f=(0,t.g2)("el-option"),g=(0,t.g2)("el-select"),F=(0,t.g2)("el-form"),h=(0,t.g2)("el-card");return(0,t.uX)(),(0,t.CE)(t.FK,null,[(0,t.bF)(h,{shadow:"never",header:"语言主题"},{default:(0,t.k6)((()=>[(0,t.bF)(F,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.k6)((()=>[(0,t.bF)(m,{label:e.$t("user.nightmode")},{default:(0,t.k6)((()=>[(0,t.bF)(s,{modelValue:u.config.dark,"onUpdate:modelValue":l[0]||(l[0]=e=>u.config.dark=e),"inline-prompt":"","active-icon":"el-icon-moon","inactive-icon":"el-icon-sunny"},null,8,["modelValue"]),(0,t.Lk)("div",i,(0,o.v_)(e.$t("user.nightmode_msg")),1)])),_:1},8,["label"]),(0,t.bF)(m,{label:"主题颜色"},{default:(0,t.k6)((()=>[(0,t.bF)(b,{modelValue:u.config.colorPrimary,"onUpdate:modelValue":l[1]||(l[1]=e=>u.config.colorPrimary=e),predefine:u.colorList},{default:(0,t.k6)((()=>[(0,t.eW)(">")])),_:1},8,["modelValue","predefine"])])),_:1}),(0,t.bF)(m,{label:e.$t("user.language")},{default:(0,t.k6)((()=>[(0,t.bF)(g,{modelValue:u.config.lang,"onUpdate:modelValue":l[2]||(l[2]=e=>u.config.lang=e)},{default:(0,t.k6)((()=>[(0,t.bF)(f,{label:"简体中文",value:"zh-cn"}),(0,t.bF)(f,{label:"English",value:"en"})])),_:1},8,["modelValue"]),(0,t.Lk)("div",n,(0,o.v_)(e.$t("user.language_msg")),1)])),_:1},8,["label"])])),_:1},512)])),_:1}),(0,t.bF)(h,{shadow:"never",header:"个人设置",style:{"margin-top":"20px"}},{default:(0,t.k6)((()=>[(0,t.bF)(F,{ref:"form","label-width":"120px",style:{"margin-top":"20px"}},{default:(0,t.k6)((()=>[(0,t.bF)(m,{label:"自动登出"},{default:(0,t.k6)((()=>[(0,t.bF)(g,{modelValue:u.config.autoExit,"onUpdate:modelValue":l[3]||(l[3]=e=>u.config.autoExit=e)},{default:(0,t.k6)((()=>[(0,t.bF)(f,{label:"从不",value:0}),(0,t.bF)(f,{label:"1分钟",value:1}),(0,t.bF)(f,{label:"5分钟",value:5}),(0,t.bF)(f,{label:"10分钟",value:10}),(0,t.bF)(f,{label:"15分钟",value:15}),(0,t.bF)(f,{label:"20分钟",value:20}),(0,t.bF)(f,{label:"25分钟",value:25}),(0,t.bF)(f,{label:"30分钟",value:30}),(0,t.bF)(f,{label:"35分钟",value:35}),(0,t.bF)(f,{label:"40分钟",value:40}),(0,t.bF)(f,{label:"45分钟",value:45}),(0,t.bF)(f,{label:"50分钟",value:50}),(0,t.bF)(f,{label:"55分钟",value:55}),(0,t.bF)(f,{label:"60分钟",value:60})])),_:1},8,["modelValue"]),r])),_:1})])),_:1},512)])),_:1})],64)}var u=a(3058),c={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.lang"(e){this.$i18n.locale=e,this.$TOOL.data.set("APP_LANG",e)},"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}`,u.A.lighten(e,l/10));for(let l=1;l<=9;l++)document.documentElement.style.setProperty(`--el-color-primary-dark-${l}`,u.A.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)}}},s=a(6262);const m=(0,s.A)(c,[["render",d]]);var b=m}}]);