{"version":3,"sources":["webpack:///./node_modules/@glittr/frontend-core/src/views/pages/_exterior/login.vue?e18f","webpack:///./node_modules/@glittr/frontend-core/src/services/generated/types/model/resource/TokenRequestModel.ts","webpack:///./node_modules/@glittr/frontend-core/src/services/viewModel/resource/TokenRequestViewModel.ts","webpack:///./node_modules/@glittr/frontend-core/src/views/pages/_exterior/login.vue?fefe","webpack:///./node_modules/@glittr/frontend-core/src/views/pages/_exterior/login.vue?73d5","webpack:///./node_modules/@glittr/frontend-core/src/views/pages/_exterior/login.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","$t","login","_t","on","$event","type","indexOf","_k","keyCode","key","focusOnPassword","apply","arguments","model","value","callback","$$v","$set","expression","ref","doLogin","isLoading","$router","push","_","component","hasSlot","_e","requestError","gotoRegister","staticRenderFns","dto","userName","password","shareId","transformFromQuery","queries","schema","queryBuilder","properties","required","minLength","$config","values","extend","auth","layout","data","mounted","undefined","computed","redirectPath","$route","query","redirect","loadQRData","methods","currentRoute","username","passwordField","$refs","inputField","input","focus","validate","$auth","user","statusId"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gCAAgC,CAACE,MAAM,CAAC,gBAAgB,KAAK,CAAEN,EAAW,QAAEI,EAAG,cAAc,CAACG,YAAY,cAAc,CAACH,EAAG,QAAQ,CAACE,MAAM,CAAC,cAAc,KAAK,CAACF,EAAG,QAAQ,CAACG,YAAY,cAAcD,MAAM,CAAC,KAAO,GAAG,IAAM,GAAG,IAAM,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,OAAS,GAAG,cAAc,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,OAAS,KAAK,CAACF,EAAG,KAAK,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,oCAAoCN,EAAG,QAAQ,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O,kBAAcqB,IAEhBC,SAAU,CACRC,aAAA,WACE,OAAO5D,KAAK6D,OAAOC,MAAMC,WAG7BN,QAAO,WACLzD,KAAKyD,SAAU,EACfzD,KAAKgE,cAEPC,QAAS,CACPD,WAAA,W,QACQF,EAAwC,QAAhC,EAAyB,QAAzB,EAAA9D,KAAK+B,QAAQmC,oBAAY,eAAEJ,aAAK,QAAI,GAE5C,EAAuCA,EAArCK,EAAQ,WAAO,QAAiB,kBACxCnE,KAAKU,MAAM+B,SAAW0B,GAExBhD,gBAAA,WACU,IAAAiD,EAAkBpE,KAAKqE,MAAV,cACfC,EAAcF,EAAsBC,MAAME,MAC/CD,EAA2BE,SAE9BlC,aAAY,WACV,OAAIP,QAAQC,KAAK,wBAEbH,QAAN,W,gIACE,IAAK7B,KAAKU,MAAM+D,WACd,UAEFzE,KAAKqC,kBAAeqB,EACpB1D,KAAK8B,WAAY,E,iBAEf,O,sBAAA,GAAM9B,KAAK0E,MAAMhE,MAAMV,KAAKU,Q,cAA5B,SACAV,KAAK8B,WAAY,EACiB,KAAf,QAAf,EAAA9B,KAAK0E,MAAMC,YAAI,eAAEC,UACnB,OAAI7C,QAAQC,KAAK,2BACRhC,KAAK4D,aACd,OAAI7B,QAAQC,KAAKhC,KAAK4D,cAEtB,OAAI7B,QAAQC,KAAK,K,+BAGnBhC,KAAKqC,aAAe,E,oBAEtBrC,KAAK8B,WAAY,E,eC1I2Y,I,YCO9ZI,EAAY,eACd,EACApC,EACAyC,GACA,EACA,KACA,KACA,MAIa,aAAAL,E","file":"js/chunk-2d0c7e53.2ec9d391.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-scroll-y-reverse-transition',{attrs:{\"hide-on-leave\":\"\"}},[(_vm.mounted)?_c('p-container',{staticClass:\"login-page\"},[_c('p-row',{attrs:{\"fill-height\":\"\"}},[_c('p-col',{staticClass:\"login-panel\",attrs:{\"xs12\":\"\",\"sm7\":\"\",\"md8\":\"\"}},[_c('p-row',{attrs:{\"column\":\"\",\"fill-height\":\"\"}},[_c('p-col',{attrs:{\"shrink\":\"\"}},[_c('h3',[_vm._v(_vm._s(_vm.$t(\"core.page.login.page.title\")))])]),_c('p-col',{attrs:{\"shrink\":\"\"}},[_c('p-form',{attrs:{\"model\":_vm.login,\"no-summary\":\"\"}},[_vm._t(\"append-input-fields\"),_c('p-text-field',{attrs:{\"autocomplete\":\"username\",\"name\":\"username\",\"autofocus\":\"\",\"label\":_vm.$t('core.page.login.label.usernameOrEmail')},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.focusOnPassword.apply(null, arguments)}},model:{value:(_vm.login.userName),callback:function ($$v) {_vm.$set(_vm.login, \"userName\", $$v)},expression:\"login.userName\"}}),_c('p-text-field',{ref:\"passwordField\",attrs:{\"type\":\"password\",\"name\":\"password\",\"label\":_vm.$t('core.page.login.label.password')},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.doLogin.apply(null, arguments)}},model:{value:(_vm.login.password),callback:function ($$v) {_vm.$set(_vm.login, \"password\", $$v)},expression:\"login.password\"}}),_vm._t(\"append-input-fields\")],2)],1),_c('p-col',{attrs:{\"grow\":\"\"}},[_c('p-row',{attrs:{\"no-gutters\":\"\",\"fill-height\":\"\"}},[_c('p-col',{attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('p-button',{staticClass:\"mt-4\",attrs:{\"stretch\":\"\",\"loading\":_vm.isLoading,\"disabled\":_vm.isLoading},on:{\"click\":_vm.doLogin}},[_vm._v(\" \"+_vm._s(_vm.$t('core.page.login.button.login'))+\" \")])],1),_c('p-col',{attrs:{\"xs12\":\"\",\"sm6\":\"\",\"justify-end\":\"\"}},[_c('p-button',{staticClass:\"mt-5\",attrs:{\"tertiary\":\"\",\"link\":\"\"},on:{\"click\":function($event){return _vm.$router.push('/_exterior/reset-password')}}},[_vm._v(\" \"+_vm._s(_vm.$t('core.page.login.button.forgotPassword'))+\" \")])],1)],1)],1),(_vm._.component.hasSlot(this, 'append-form'))?_c('p-col',{attrs:{\"shrink\":\"\"}},[_vm._t(\"append-form\")],2):_vm._e(),(_vm.requestError)?_c('p-col',{attrs:{\"shrink\":\"\"}},[_c('p-request-alert',{staticClass:\"mt-3\",model:{value:(_vm.requestError),callback:function ($$v) {_vm.requestError=$$v},expression:\"requestError\"}})],1):_vm._e()],1)],1),_c('p-col',{staticClass:\"login-page-divider\",attrs:{\"xs12\":\"\",\"sm1\":\"\",\"justify-center\":\"\"}},[_c('p-divider',{staticClass:\"hidden-xs-only\",attrs:{\"vertical\":\"\"}}),_c('p-divider',{staticClass:\"hidden-sm-and-up\"})],1),_c('p-col',{staticClass:\"goto-registration-panel\",attrs:{\"xs12\":\"\",\"sm4\":\"\",\"md3\":\"\"}},[_c('p-row',{attrs:{\"column\":\"\",\"fill-height\":\"\"}},[_c('p-col',{attrs:{\"grow\":\"\"}},[_c('h3',[_vm._v(\" \"+_vm._s(_vm.$t('core.page.login.label.needToRegister'))+\" \")])]),_c('p-col',{attrs:{\"shrink\":\"\"}},[_c('p-button',{staticClass:\"mb-5\",attrs:{\"stretch\":\"\",\"secondary\":\"\"},on:{\"click\":_vm.gotoRegister}},[_vm._v(\" \"+_vm._s(_vm.$t('core.page.login.button.register'))+\" \")])],1)],1)],1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// ╭────────────────────────────────────────────────────────────────────────────────────╮\r\n// ┊ This file was automatically generated\r\n// ┊ Please do not modify manually\r\n// ┊ ©gl it 2022 - http://www.gl-it.ch\r\n// ╰────────────────────────────────────────────────────────────────────────────────────╯\r\n\r\nimport BaseModel from '../../../../../plugins/servicelayer/serviceTypes/baseModel';\r\nimport TokenRequestDTO from '../../dto/resource/TokenRequestDTO';\r\n\r\nexport default abstract class TokenRequestModel extends BaseModel {\r\n /**\r\n */\r\n get userName() { return this.dto.userName; }\r\n set userName(value) { this.dto.userName = value; }\r\n /**\r\n */\r\n get password() { return this.dto.password; }\r\n set password(value) { this.dto.password = value; }\r\n /**\r\n */\r\n get shareId() { return this.dto.shareId; }\r\n set shareId(value) { this.dto.shareId = value; }\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n this.dto.userName = queries.userName;\r\n this.dto.password = queries.password;\r\n this.dto.shareId = queries.shareId;\r\n }\r\n}\r\n","import Vue from 'vue';\r\nimport { IJSONSchema } from '../../../plugins/validation/IJSONSchema';\r\nimport queryBuilder from '../../../plugins/validation/queryBuilder';\r\nimport TokenRequestModel from '../../generated/types/model/resource/TokenRequestModel';\r\n\r\nexport default class TokenRequestViewModel extends TokenRequestModel {\r\n schema = {\r\n ...queryBuilder.properties({\r\n userName: { required: true },\r\n password: { required: true, minLength: Vue.$config.values['auth-min-password-length'] ?? 0 },\r\n }),\r\n } as IJSONSchema;\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport TokenRequestViewModel from '../../../services/viewModel/resource/TokenRequestViewModel';\n\nexport default Vue.extend({\n auth: false,\n layout: ['layout-exterior', '_exterior'],\n data: () => ({\n mounted: false,\n login: new TokenRequestViewModel(),\n isLoading: false,\n requestError: undefined,\n }),\n computed: {\n redirectPath(): string {\n return this.$route.query.redirect as string;\n },\n },\n mounted() {\n this.mounted = true;\n this.loadQRData();\n },\n methods: {\n loadQRData() {\n const query = this.$router.currentRoute?.query ?? {};\n // eslint-disable-next-line no-unused-vars\n const { username, email, registrationKey } = query as Record;\n this.login.userName = username;\n },\n focusOnPassword() {\n const { passwordField } = this.$refs;\n const inputField = (passwordField as Vue).$refs.input;\n (inputField as HTMLElement).focus();\n },\n gotoRegister() {\n Vue.$router.push('/_exterior/register');\n },\n async doLogin() {\n if (!this.login.validate()) {\n return;\n }\n this.requestError = undefined;\n this.isLoading = true;\n try {\n await this.$auth.login(this.login);\n this.isLoading = false;\n if (this.$auth.user?.statusId === 0) {\n Vue.$router.push('/_exterior/verify-user/');\n } else if (this.redirectPath) {\n Vue.$router.push(this.redirectPath);\n } else {\n Vue.$router.push('/');\n }\n } catch (error: any) {\n this.requestError = error;\n }\n this.isLoading = false;\n },\n },\n});\n","import mod from \"-!../../../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../../../thread-loader/dist/cjs.js!../../../../../../babel-loader/lib/index.js!../../../../../../@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../../cache-loader/dist/cjs.js??ref--1-0!../../../../../../vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../../../thread-loader/dist/cjs.js!../../../../../../babel-loader/lib/index.js!../../../../../../@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../../cache-loader/dist/cjs.js??ref--1-0!../../../../../../vue-loader/lib/index.js??vue-loader-options!./login.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./login.vue?vue&type=template&id=f67fc95e&\"\nimport script from \"./login.vue?vue&type=script&lang=ts&\"\nexport * from \"./login.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}