"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[6966],{9124:function(e,l,t){t.r(l),t.d(l,{default:function(){return N}});var o=t(641),i=t(2644);const a=e=>((0,o.Qi)("data-v-445e96e8"),e=e(),(0,o.jt)(),e),n={class:"login_bg"},s={class:"login_adv",style:{"background-image":"url(img/auth_banner.jpg)"}},c={class:"login_adv__title"},d=a((()=>(0,o.Lk)("h2",null,"SCUI",-1))),g=a((()=>(0,o.Lk)("div",{class:"login_adv__mask"},null,-1))),u={class:"login_adv__bottom"},r={class:"login_main"},h={class:"login_config"},L=a((()=>(0,o.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 512 512"},[(0,o.Lk)("path",{d:"M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z",fill:"currentColor"}),(0,o.Lk)("path",{d:"M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",fill:"currentColor"})],-1))),k={class:"login-form"},m={class:"login-header"},v={class:"logo"},_=["alt"],f={class:"login-oauth"},b={class:"qrCodeLogin"},p={class:"msg"},O=a((()=>(0,o.Lk)("br",null,null,-1))),w={key:0,class:"qrCodeLogin-result"};function F(e,l,t,a,F,$){const C=(0,o.g2)("sc-icon-vue"),A=(0,o.g2)("el-icon"),P=(0,o.g2)("el-icon-plus"),I=(0,o.g2)("el-icon-eleme-filled"),N=(0,o.g2)("el-button"),T=(0,o.g2)("el-dropdown-item"),W=(0,o.g2)("el-dropdown-menu"),E=(0,o.g2)("el-dropdown"),R=(0,o.g2)("password-form"),M=(0,o.g2)("el-tab-pane"),G=(0,o.g2)("phone-form"),y=(0,o.g2)("el-tabs"),x=(0,o.g2)("el-divider"),D=(0,o.g2)("sc-qr-code"),S=(0,o.g2)("el-result"),K=(0,o.g2)("el-dialog");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.Lk)("div",n,[(0,o.Lk)("div",s,[(0,o.Lk)("div",c,[d,(0,o.Lk)("h4",null,(0,i.v_)(e.$t("login.slogan")),1),(0,o.Lk)("p",null,(0,i.v_)(e.$t("login.describe")),1),(0,o.Lk)("div",null,[(0,o.Lk)("span",null,[(0,o.bF)(A,null,{default:(0,o.k6)((()=>[(0,o.bF)(C)])),_:1})]),(0,o.Lk)("span",null,[(0,o.bF)(A,{class:"add"},{default:(0,o.k6)((()=>[(0,o.bF)(P)])),_:1})]),(0,o.Lk)("span",null,[(0,o.bF)(A,null,{default:(0,o.k6)((()=>[(0,o.bF)(I)])),_:1})])])]),g,(0,o.Lk)("div",u," © "+(0,i.v_)(e.$CONFIG.APP_NAME)+" "+(0,i.v_)(e.$CONFIG.APP_VER),1)]),(0,o.Lk)("div",r,[(0,o.Lk)("div",h,[(0,o.bF)(N,{icon:F.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:$.configDark},null,8,["icon","onClick"]),(0,o.bF)(E,{trigger:"click",placement:"bottom-end",onCommand:$.configLang},{dropdown:(0,o.k6)((()=>[(0,o.bF)(W,null,{default:(0,o.k6)((()=>[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(F.lang,(e=>((0,o.uX)(),(0,o.Wv)(T,{key:e.value,command:e,class:(0,i.C4)({selected:F.config.lang==e.value})},{default:(0,o.k6)((()=>[(0,o.eW)((0,i.v_)(e.name),1)])),_:2},1032,["command","class"])))),128))])),_:1})])),default:(0,o.k6)((()=>[(0,o.bF)(N,{circle:""},{default:(0,o.k6)((()=>[L])),_:1})])),_:1},8,["onCommand"])]),(0,o.Lk)("div",k,[(0,o.Lk)("div",m,[(0,o.Lk)("div",v,[(0,o.Lk)("img",{alt:e.$CONFIG.APP_NAME,src:"img/logo.png"},null,8,_),(0,o.Lk)("label",null,(0,i.v_)(e.$CONFIG.APP_NAME),1)])]),(0,o.bF)(y,null,{default:(0,o.k6)((()=>[(0,o.bF)(M,{label:e.$t("login.accountLogin"),lazy:""},{default:(0,o.k6)((()=>[(0,o.bF)(R)])),_:1},8,["label"]),(0,o.bF)(M,{label:e.$t("login.mobileLogin"),lazy:""},{default:(0,o.k6)((()=>[(0,o.bF)(G)])),_:1},8,["label"])])),_:1}),e.$CONFIG.MY_SHOW_LOGIN_OAUTH?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.bF)(x,null,{default:(0,o.k6)((()=>[(0,o.eW)((0,i.v_)(e.$t("login.signInOther")),1)])),_:1}),(0,o.Lk)("div",f,[(0,o.bF)(N,{type:"success",icon:"sc-icon-wechat",circle:"",onClick:$.wechatLogin},null,8,["onClick"])])],64)):(0,o.Q3)("",!0)])])]),(0,o.bF)(K,{modelValue:F.showWechatLogin,"onUpdate:modelValue":l[0]||(l[0]=e=>F.showWechatLogin=e),title:e.$t("login.wechatLoginTitle"),width:400,"destroy-on-close":""},{default:(0,o.k6)((()=>[(0,o.Lk)("div",b,[(0,o.bF)(D,{class:"qrCode",text:F.WechatLoginCode,size:200},null,8,["text"]),(0,o.Lk)("p",p,[(0,o.eW)((0,i.v_)(e.$tc("login.wechatLoginMsg",1)),1),O,(0,o.eW)((0,i.v_)(e.$tc("login.wechatLoginMsg",2)),1)]),F.isWechatLoginResult?((0,o.uX)(),(0,o.CE)("div",w,[(0,o.bF)(S,{icon:"success",title:e.$tc("login.wechatLoginResult",1),"sub-title":e.$tc("login.wechatLoginResult",2)},null,8,["title","sub-title"])])):(0,o.Q3)("",!0)])])),_:1},8,["modelValue","title"])],64)}var $=t(5907),C=t(6028),A={components:{passwordForm:$["default"],phoneForm:C["default"]},data(){return{config:{lang:this.$TOOL.data.get("APP_LANG")||this.$CONFIG.LANG,dark:this.$TOOL.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",showWechatLogin:!1,isWechatLoginResult:!1}},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)}},created:function(){this.$TOOL.cookie.remove("TOKEN"),this.$TOOL.data.remove("USER_INFO"),this.$TOOL.data.remove("MENU"),this.$TOOL.data.remove("PERMISSIONS"),this.$TOOL.data.remove("DASHBOARDGRID"),this.$TOOL.data.remove("grid"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList"),console.log("%c SCUI %c Gitee: https://gitee.com/lolicode/scui","background:#666;color:#fff;border-radius:3px;","")},methods:{configDark(){this.config.dark=!this.config.dark},configLang(e){this.config.lang=e.value},wechatLogin(){this.showWechatLogin=!0,this.WechatLoginCode="SCUI-823677237287236-"+(new Date).getTime(),this.isWechatLoginResult=!1,setTimeout((()=>{this.isWechatLoginResult=!0}),3e3)}}},P=t(6262);const I=(0,P.A)(A,[["render",F],["__scopeId","data-v-445e96e8"]]);var N=I}}]);