{"version":3,"sources":["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/plugins/validation/queryBuilder.ts","webpack:///./node_modules/@glittr/frontend-core/src/views/pages/_exterior/login.vue?3ebd","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":["this","dto","userName","value","password","shareId","transformFromQuery","queries","schema","queryBuilder","properties","required","minLength","$config","values","deepSetProperty","property","setRequired","propertyPath","split","currentNode","nodes","forEach","prop","i","type","push","lastNode","length","lastProp","constValues","propValues","propsRequired","Object","keys","key","const","if","ifNot","not","thenRequired","propNames","then","thenValue","elseRequired","else","elseValue","computedRequired","computedProps","filteredValue","sameAs","isObject","pattern","$validation","REF_PREFIX","nestedProps","render","_vm","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","$t","login","_t","on","$event","indexOf","_k","keyCode","focusOnPassword","apply","arguments","model","callback","$$v","$set","expression","ref","doLogin","isLoading","$router","_","component","hasSlot","_e","requestError","gotoRegister","staticRenderFns","extend","auth","layout","data","mounted","TokenRequestViewModel","undefined","computed","redirectPath","$route","query","redirect","loadQRData","methods","currentRoute","username","passwordField","$refs","inputField","input","focus","validate","$auth","user","statusId"],"mappings":"wLASA,2B,+CAoBA,OApBwD,oBAGtD,sBAAI,uBAAQ,C,IAAZ,WAAiB,OAAOA,KAAKC,IAAIC,U,IACjC,SAAaC,GAASH,KAAKC,IAAIC,SAAWC,G,gCAG1C,sBAAI,uBAAQ,C,IAAZ,WAAiB,OAAOH,KAAKC,IAAIG,U,IACjC,SAAaD,GAASH,KAAKC,IAAIG,SAAWD,G,gCAG1C,sBAAI,sBAAO,C,IAAX,WAAgB,OAAOH,K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yG,cAEPC,QAAS,CACPD,WAAA,W,QACQF,EAAwC,QAAhC,EAAyB,QAAzB,EAAAvG,KAAKqF,QAAQsB,oBAAY,eAAEJ,aAAK,QAAI,GAE5C,EAAuCA,EAArCK,EAAQ,WAAO,QAAiB,kBACxC5G,KAAKmE,MAAMjE,SAAW0G,GAExBlC,gBAAA,WACU,IAAAmC,EAAkB7G,KAAK8G,MAAV,cACfC,EAAcF,EAAsBC,MAAME,MAC/CD,EAA2BE,SAE9BtB,aAAY,WACV,OAAIN,QAAQ3D,KAAK,wBAEbyD,QAAN,W,gIACE,IAAKnF,KAAKmE,MAAM+C,WACd,UAEFlH,KAAK0F,kBAAeS,EACpBnG,KAAKoF,WAAY,E,iBAEf,O,sBAAA,GAAMpF,KAAKmH,MAAMhD,MAAMnE,KAAKmE,Q,cAA5B,SACAnE,KAAKoF,WAAY,EACiB,KAAf,QAAf,EAAApF,KAAKmH,MAAMC,YAAI,eAAEC,UACnB,OAAIhC,QAAQ3D,KAAK,2BACR1B,KAAKqG,aACd,OAAIhB,QAAQ3D,KAAK1B,KAAKqG,cAEtB,OAAIhB,QAAQ3D,KAAK,K,+BAGnB1B,KAAK0F,aAAe,E,oBAEtB1F,KAAKoF,WAAY,E,eC1I2Y,I,YCO9ZG,EAAY,eACd,EACA/B,EACAoC,GACA,EACA,KACA,KACA,MAIa,aAAAL,E","file":"js/chunk-410a3b33.e6276369.js","sourcesContent":["// ╭────────────────────────────────────────────────────────────────────────────────────╮\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","import Vue from 'vue';\r\nimport _ from '../../utils';\r\nimport { IJSONSchema } from './IJSONSchema';\r\n\r\ntype PropertiesOptions = Omit & {\r\n required?: boolean,\r\n sameAs?: string\r\n properties?: Record,\r\n};\r\n\r\nconst queryBuilder = {\r\n deepSetProperty(schema: IJSONSchema, property: string, value: Record, setRequired: boolean = false) {\r\n const propertyPath = property.split('.');\r\n let currentNode = schema ?? {};\r\n const nodes = [] as IJSONSchema[];\r\n propertyPath.forEach((prop, i) => {\r\n currentNode.properties = currentNode.properties ?? {};\r\n currentNode.type = currentNode.type ?? 'object';\r\n currentNode.properties[prop] = currentNode.properties[prop] ?? {};\r\n nodes.push(currentNode);\r\n currentNode = currentNode.properties[prop] as IJSONSchema;\r\n });\r\n const lastNode = nodes[nodes.length - 1];\r\n const lastProp = propertyPath[propertyPath.length - 1];\r\n if (setRequired) {\r\n lastNode.required = [...(lastNode.required ?? []), lastProp];\r\n }\r\n if (value) {\r\n lastNode.properties![lastProp] = { ...lastNode.properties![lastProp] as {}, ...value };\r\n }\r\n },\r\n constValues(propValues: Record, propsRequired: boolean = false) {\r\n const schema: IJSONSchema = {};\r\n Object.keys(propValues).forEach((key) => {\r\n this.deepSetProperty(schema, key, { const: propValues[key] }, propsRequired);\r\n });\r\n return schema;\r\n },\r\n if(propValues: Record, propsRequired: boolean = true) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { if: properties };\r\n },\r\n ifNot(propValues: Record, propsRequired: boolean = true) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { if: { not: properties } };\r\n },\r\n thenRequired(propNames: string[]) {\r\n return { then: { required: propNames } };\r\n },\r\n thenValue(propValues: Record, propsRequired: boolean = false) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { then: properties };\r\n },\r\n elseRequired(propNames: string[]) {\r\n return { else: { required: propNames } };\r\n },\r\n elseValue(propValues: Record, propsRequired: boolean = false) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { else: properties };\r\n },\r\n\r\n properties(properties: Record) {\r\n const computedRequired = [] as string[];\r\n Object.keys(properties).forEach((key) => {\r\n if (properties[key].required) {\r\n computedRequired.push(key);\r\n }\r\n });\r\n const computedProps = {} as NonNullable;\r\n Object.keys(properties).forEach((key) => {\r\n if (properties[key].type === 'object') {\r\n const nestedProps = properties[key].properties;\r\n computedProps[key] = this.properties(nestedProps as Record);\r\n return;\r\n }\r\n const { required, ...filteredValue } = properties[key];\r\n // In nested cases this has already been converted above, so casting to any here\r\n computedProps[key] = filteredValue as any;\r\n if (filteredValue.sameAs && _.isObject(computedProps[key])) {\r\n (computedProps[key] as IJSONSchema).pattern = `${Vue.$validation.REF_PREFIX}${filteredValue.sameAs}`;\r\n }\r\n });\r\n return {\r\n type: 'object' as IJSONSchema['type'],\r\n required: computedRequired as IJSONSchema['required'],\r\n properties: computedProps as IJSONSchema['properties'],\r\n };\r\n },\r\n};\r\n\r\nexport default queryBuilder;\r\n","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 }","\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":""}