// [AIV_SHORT]  Build version: 5.6.6 - Monday, November 24th, 2025, 8:48:15 PM  
 (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[58],{"013f":function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t._self._c;return e("q-page",{attrs:{padding:""}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"}),e("q-card",{staticClass:"col"},[e("q-card-section",[e("div",{staticClass:"text-h6 text-center"},[t._v(t._s(t.$t("common.login")))]),e("div",{staticClass:"text-center"},[e("q-icon",{attrs:{name:"mdi-login-variant",size:"64px"}})],1)]),e("q-card-section",{staticClass:"q-gutter-y-sm"},[e("q-input",{staticClass:"q-mx-xl",attrs:{"stack-label":"",placeholder:t.$t("common.username"),"input-style":"text-align: center;",dense:"",outlined:"",autofocus:""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.$refs.password.focus()}},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}}),e("q-input",{ref:"password",staticClass:"q-mx-xl",attrs:{"stack-label":"",type:t.isPwd?"password":"text",placeholder:t.$t("common.password"),"input-style":"text-align: center;",dense:"",outlined:""},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.signin()}},scopedSlots:t._u([{key:"append",fn:function(){return[e("q-icon",{staticClass:"cursor-pointer",attrs:{name:t.isPwd?"mdi-eye-off-outline":"mdi-eye-outline"},on:{click:function(e){t.isPwd=!t.isPwd}}})]},proxy:!0}]),model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),t.loginError?e("div",[e("div",{staticClass:"text-center text-weight-medium q-mt-sm text-negative"},[t._v("\n            "+t._s(t.$tc("common.loginfailed"))+"\n          ")])]):t._e()],1),e("q-card-section",{staticClass:"q-mx-xl"},[e("q-btn",{staticClass:"fit",attrs:{rounded:"",label:t.$tc("common.signin"),color:"primary"},on:{click:function(e){return t.signin()}}})],1),e("q-card-section",[e("div",{staticClass:"text-center"},[e("a",{attrs:{href:"/#/passwordforgotten"}},[t._v(t._s(t.$tc("common.passwordforgotten")))])])])],1),e("div",{staticClass:"col"})],1),e("q-inner-loading",{attrs:{showing:t.processing}},[e("q-spinner-radio",{staticClass:"vertical-middle",attrs:{size:"50px",color:"primary"}})],1)],1)},o=[],i=s("ded3"),a=s.n(i),r=(s("7db0"),s("14d9"),s("d3b7"),s("e6cf"),s("a79d"),s("ac1f"),s("5319"),s("1276"),s("2ca0"),s("159b"),s("2f62")),c=s("ad08"),u=s("61c0"),l={name:"PageLogin",extends:u["a"],methods:a()(a()(a()({},Object(r["b"])("session",{changeSolution:c["h"],changeUser:c["i"]})),Object(r["c"])("session",{solution:"solution"})),{},{signin:function(){var t=this;this.processing=!0,this.$reposyd.post("/auth/login",{},{username:this.username,password:this.password}).then((function(e){t.password="",t.$axios.defaults.headers.common.Authorization="Bearer ".concat(e.token),sessionStorage.setItem("token",e.token),sessionStorage.setItem("refreshToken",e.refreshToken),t.$axios.get("/auth/user").then((function(e){if(t.changeUser(e.data),t.visible=!1,void 0!==t.$route.query.url){var s=t.$route.query.url.split("?");if(2!==s.length)t.$router.push({path:"/projects"});else{var n=s[1].split("&"),o=n.find((function(t){return t.startsWith("dsuuid=")}));void 0===o?t.$router.push({path:"/projects"}):(o=decodeURI(o.replace(/dsuuid=/g,"")),t.changeSolution({uuid:o,axios:t.$axios}).then((function(){if(n.length){var e={};n.forEach((function(t){var s=decodeURI(t).split(/=/);2===s.length&&"dsuuid"!==s[0]&&(e[s[0]]=s[1])})),t.$router.push({path:s[0],query:e})}else t.$router.push({path:s[0]})})).catch((function(e){t.notifyError(e),t.$router.push({path:"/projects"})})))}}else null===t.solution().uuid&&t.$router.push({path:"/projects"})})).catch((function(e){t.notifyError(e)})).finally((function(){t.processing=!1}))})).catch((function(){t.loginError=!0})).finally((function(){t.processing=!1}))}}),data:function(){return{isPwd:!0,loginError:!1,password:"",processing:!1,username:"",visible:!0}}},d=l,p=s("2877"),f=s("9989"),h=s("f09f"),m=s("a370"),g=s("0016"),x=s("27f9"),y=s("9c40"),v=s("74f7"),w=s("9569"),k=s("eebe"),q=s.n(k),C=Object(p["a"])(d,n,o,!1,null,null,null);e["default"]=C.exports;q()(C,"components",{QPage:f["a"],QCard:h["a"],QCardSection:m["a"],QIcon:g["a"],QInput:x["a"],QBtn:y["a"],QInnerLoading:v["a"],QSpinnerRadio:w["a"]})}}]); 