1"use strict";(self["webpackChunkgs_memberPortal"]=self["webpackChunkgs_memberPortal"]||[]).push([[283],{283:function(t,e,s){s.r(e),s.d(e,{default:function(){return p}});var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p-scroll-y-reverse-transition",{attrs:{"hide-on-leave":""}},[t.mounted?s("p-container",{staticClass:"login-page"},[s("p-row",{attrs:{"fill-height":""}},[s("p-col",{staticClass:"login-panel",attrs:{xs12:"",sm7:"",md8:""}},[s("p-row",{attrs:{column:"","fill-height":""}},[s("p-col",{attrs:{shrink:""}},[s("h3",[t._v(t._s(t.$t("core.page.login.page.title")))])]),s("p-col",{attrs:{shrink:""}},[s("p-form",{attrs:{model:t.login,"no-summary":""}},[t._t("append-input-fields"),s("p-text-field",{attrs:{autocomplete:"username",name:"username",autofocus:"",label:t.$t("core.page.login.label.usernameOrEmail")},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.focusOnPassword.apply(null,arguments)}},model:{value:t.login.userName,callback:function(e){t.$set(t.login,"userName",e)},expression:"login.userName"}}),s("p-text-field",{ref:"passwordField",attrs:{type:"password",name:"password",label:t.$t("core.page.login.label.password")},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doLogin.apply(null,arguments)}},model:{value:t.login.password,callback:function(e){t.$set(t.login,"password",e)},expression:"login.password"}}),t._t("append-input-fields")],2)],1),s("p-col",{attrs:{grow:""}},[s("p-row",{attrs:{"no-gutters":"","fill-height":""}},[s("p-col",{attrs:{xs12:"",sm6:""}},[s("p-button",{staticClass:"mt-4",attrs:{stretch:"",loading:t.isLoading,disabled:t.isLoading},on:{click:t.doLogin}},[t._v(" "+t._s(t.$t("core.page.login.button.login"))+" ")])],1),s("p-col",{attrs:{xs12:"",sm6:"","justify-end":""}},[s("p-button",{staticClass:"mt-5",attrs:{tertiary:"",link:""},on:{click:t.gotoForgotPassword}},[t._v(" "+t._s(t.$t("core.page.login.button.forgotPassword"))+" ")])],1)],1)],1),t._.component.hasSlot(this,"append-form")?s("p-col",{attrs:{shrink:""}},[t._t("append-form")],2):t._e(),t.requestError?s("p-col",{attrs:{shrink:""}},[s("p-request-alert",{staticClass:"mt-3",model:{value:t.requestError,callback:function(e){t.requestError=e},expression:"requestError"}})],1):t._e()],1)],1),s("p-col",{staticClass:"login-page-divider",attrs:{xs12:"",sm1:"","justify-center":""}},[s("p-divider",{staticClass:"hidden-xs-only",attrs:{vertical:""}}),s("p-divider",{staticClass:"hidden-sm-and-up"})],1),s("p-col",{staticClass:"goto-registration-panel",attrs:{xs12:"",sm4:"",md3:""}},[s("p-row",{attrs:{column:"","fill-height":""}},[s("p-col",{attrs:{grow:""}},[s("h3",[t._v(" "+t._s(t.$t("core.page.login.label.needToRegister"))+" ")])]),s("p-col",{attrs:{shrink:""}},[s("p-button",{staticClass:"mb-5",attrs:{stretch:"",secondary:""},on:{click:t.gotoRegister}},[t._v(" "+t._s(t.$t("core.page.login.button.register"))+" ")])],1)],1)],1)],1)],1):t._e()],1)},o=[],a=s(5471),i=s(4174),n=a.A.extend({auth:!1,layout:["layout-exterior","_exterior"],data:()=>({mounted:!1,login:new i.A,isLoading:!1,requestError:void 0}),computed:{redirectPath(){return this.$route.query.redirect}},mounted(){this.mounted=!0,this.loadQRData()},methods:{loadQRData(){var t,e;const s=null!==(e=null===(t=this.$router.currentRoute)||void 0===t?void 0:t.query)&&void 0!==e?e:{},{username:r,email:o,registrationKey:a}=s;this.login.userName=r},focusOnPassword(){const{passwordField:t}=this.$refs,e=t.$refs.input;e.focus()},gotoForgotPassword(){this.$router.push({path:"/_exterior/reset-password",query:this.$route.query})},gotoRegister(){this.$router.push({path:"/_exterior/register",query:this.$route.query})},async redirectToTarget(){var t;0!==(null===(t=this.$auth.user)||void 0===t?void 0:t.statusId)?this.$routerUtils.returnToRedirectOrigin("/"):this.$router.push({path:"/_exterior/verify-user/",query:this.$route.query})},async doLogin(){if(this.login.validate()){this.requestError=void 0,this.isLoading=!0;try{await this.$auth.login(this.login),this.isLoading=!1,this.redirectToTarget()}catch(t){this.requestError=t}this.isLoading=!1}}}}),l=n,u=s(1656),d=(0,u.A)(l,r,o,!1,null,null,null),p=d.exports},4174:function(t,e,s){s.d(e,{A:function(){return n}});var r=s(5471),o=s(5041),a=s(6530);class i extends a.A{get userName(){return this.dto.userName}set userName(t){this.dto.userName=t}get password(){return this.dto.password}set password(t){this.dto.password=t}get shareId(){return this.dto.shareId}set shareId(t){this.dto.shareId=t}transformFromQuery(t){const e={};Object.keys(t).forEach(s=>{e[s.toLowerCase()]=t[s]}),this.dto.userName=e.username,this.dto.password=e.password,this.dto.shareId=e.shareid}}class n extends i{constructor(){var t;super(...arguments),this.schema=Object.assign({},o.A.properties({userName:{required:!0},password:{required:!0,minLength:null!==(t=r.A.$config.values["auth-min-password-length"])&&void 0!==t?t:0}}))}}}}]); 2//# sourceMappingURL=283.ee9d4b4f.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.