{"version":3,"sources":["webpack:///./node_modules/@glittr/frontend-core/src/plugins/validation/queryBuilder.ts","webpack:///./src/views/pages/_exterior/registration.vue?f6c7","webpack:///./src/services/generated/types/model/resource/UserRegisterRequestModel.ts","webpack:///./src/services/viewModel/resource/UserRegisterRequestViewModel.ts","webpack:///./src/views/pages/_exterior/registration.vue?b3f0","webpack:///./src/views/pages/_exterior/registration.vue?26cd","webpack:///./src/views/pages/_exterior/registration.vue"],"names":["queryBuilder","deepSetProperty","schema","property","value","setRequired","propertyPath","split","currentNode","nodes","forEach","prop","i","properties","type","push","lastNode","length","lastProp","required","constValues","propValues","propsRequired","Object","keys","key","const","if","this","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","staticClass","attrs","_v","_s","$t","user","on","$event","indexOf","_k","keyCode","tabToNextInput","model","callback","$$v","$set","expression","doRegister","isLoading","requestError","gotoLogin","staticRenderFns","dto","email","userName","password","userLanguage","userCulture","isGdprConsentAccepted","registrationKey","transformFromQuery","queries","undefined","validationPatterns","minLength","passwordRepeat","transformToDTO","transformFromDTO","extend","auth","layout","data","mounted","loadQRData","methods","inputs","document","getElementsByTagName","input","activeElement","id","nextInput","focus","query","$router","currentRoute","gotoVerifyUser","validate","$auth","logout","$service","api","users","register","login","username","component"],"mappings":"0MAUMA,EAAe,CACnBC,gBAAA,SAAgBC,EAAqBC,EAAkBC,EAA4BC,G,WAAA,IAAAA,OAAA,GACjF,IAAMC,EAAeH,EAASI,MAAM,KAChCC,EAAoB,OAANN,QAAM,IAANA,IAAU,GACtBO,EAAQ,GACdH,EAAaI,SAAQ,SAACC,EAAMC,G,UAC1BJ,EAAYK,WAAmC,QAAtB,EAAAL,EAAYK,kBAAU,QAAI,GACnDL,EAAYM,KAAuB,QAAhB,EAAAN,EAAYM,YAAI,QAAI,SACvCN,EAAYK,WAAWF,GAAoC,QA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MAAMM,MAAM,CAAEC,SAAU1F,KAAK8B,KAAKmB,SAAUC,SAAUlD,KAAK8B,KAAKoB,Y,cAA3E,SACAlD,KAAKiF,iB,+BAELjF,KAAK4C,aAAe,E,oBAEtB5C,KAAK2C,WAAY,E,eC9H0b,I,YCO/cgD,EAAY,eACd,EACAxE,EACA2B,GACA,EACA,KACA,KACA,MAIa,aAAA6C,E","file":"js/chunk-3fb8f832.a0cf6501.js","sourcesContent":["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('div',{staticClass:\"fill-height\"},[_c('p-row',{attrs:{\"no-gutters\":\"\",\"fill-height\":\"\"}},[_c('p-col',{attrs:{\"xs12\":\"\",\"md6\":\"\",\"justify-end\":\"\"}},[_c('div',{staticClass:\"exterior-section-container\"},[_c('h3',{staticClass:\"text-color-base mb-4\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"page.registration.page.title\"))+\" \")]),_c('p-form',{attrs:{\"model\":_vm.user,\"no-summary\":\"\"}},[_c('p-text-field',{attrs:{\"required\":\"\",\"label\":_vm.$t('page.registration.label.registrationKey')},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.tabToNextInput()}},model:{value:(_vm.user.registrationKey),callback:function ($$v) {_vm.$set(_vm.user, \"registrationKey\", $$v)},expression:\"user.registrationKey\"}}),_c('p-text-field',{attrs:{\"required\":\"\",\"label\":_vm.$t('page.registration.label.userEmail')},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.tabToNextInput()}},model:{value:(_vm.user.userName),callback:function ($$v) {_vm.$set(_vm.user, \"userName\", $$v)},expression:\"user.userName\"}}),_c('p-text-field',{attrs:{\"required\":\"\",\"type\":\"password\",\"label\":_vm.$t('page.registration.label.userPassword')},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.tabToNextInput()}},model:{value:(_vm.user.password),callback:function ($$v) {_vm.$set(_vm.user, \"password\", $$v)},expression:\"user.password\"}}),_c('p-text-field',{attrs:{\"required\":\"\",\"type\":\"password\",\"label\":_vm.$t('page.registration.label.userPasswordRepeat')},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.doRegister()}},model:{value:(_vm.user.passwordRepeat),callback:function ($$v) {_vm.$set(_vm.user, \"passwordRepeat\", $$v)},expression:\"user.passwordRepeat\"}})],1),_c('p-row',{staticClass:\"mt-4\",attrs:{\"align-center\":\"\",\"spacious\":\"\"}},[_c('p-col',{attrs:{\"xs12\":\"\",\"sm6\":\"\"}},[_c('p-button',{attrs:{\"stretch\":\"\",\"loading\":_vm.isLoading,\"disabled\":_vm.isLoading},on:{\"click\":_vm.doRegister}},[_vm._v(\" \"+_vm._s(_vm.$t('page.registration.button.registerAction'))+\" \")])],1),_c('p-col')],1),_c('p-request-alert',{model:{value:(_vm.requestError),callback:function ($$v) {_vm.requestError=$$v},expression:\"requestError\"}})],1)]),_c('p-col',{staticClass:\"color-base\",attrs:{\"xs12\":\"\",\"md6\":\"\"}},[_c('div',{staticClass:\"exterior-section-container\"},[_c('h3',{staticClass:\"mb-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.registration.label.alreadyHaveAccount'))+\" \")]),_c('p',{staticClass:\"my-4 py-3 caption-1 text-color-white\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.registration.text.fillText'))+\" \")]),_c('p-button',{attrs:{\"stretch\":\"\",\"color\":\"white\"},on:{\"click\":_vm.gotoLogin}},[_vm._v(\" \"+_vm._s(_vm.$t('page.registration.button.gotoLogin'))+\" \")])],1)])],1)],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 '@glittr/frontend-core/src/plugins/servicelayer/serviceTypes/baseModel';\r\nimport UserRegisterRequestDTO from '../../dto/resource/UserRegisterRequestDTO';\r\n\r\nexport default abstract class UserRegisterRequestModel extends BaseModel {\r\n /**\r\n * @type {email}\r\n */\r\n get email() { return this.dto.email; }\r\n set email(value) { this.dto.email = value; }\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 userLanguage() { return this.dto.userLanguage; }\r\n set userLanguage(value) { this.dto.userLanguage = value; }\r\n /**\r\n */\r\n get userCulture() { return this.dto.userCulture; }\r\n set userCulture(value) { this.dto.userCulture = value; }\r\n /**\r\n */\r\n get isGdprConsentAccepted() { return this.dto.isGdprConsentAccepted; }\r\n set isGdprConsentAccepted(value) { this.dto.isGdprConsentAccepted = value; }\r\n /**\r\n */\r\n get registrationKey() { return this.dto.registrationKey; }\r\n set registrationKey(value) { this.dto.registrationKey = value; }\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n this.dto.email = queries.email;\r\n this.dto.userName = queries.userName;\r\n this.dto.password = queries.password;\r\n this.dto.userLanguage = queries.userLanguage;\r\n this.dto.userCulture = queries.userCulture;\r\n value = queries.isGdprConsentAccepted === 'true' ? true : queries.isGdprConsentAccepted;\r\n value = queries.isGdprConsentAccepted === 'false' ? false : undefined;\r\n this.dto.isGdprConsentAccepted = value;\r\n this.dto.registrationKey = queries.registrationKey;\r\n }\r\n}\r\n","import { IJSONSchema } from '@glittr/frontend-core/src/plugins/validation/IJSONSchema';\r\nimport queryBuilder from '@glittr/frontend-core/src/plugins/validation/queryBuilder';\r\nimport validationPatterns from '@glittr/frontend-core/src/plugins/validation/validationPatterns';\r\nimport UserRegisterRequestModel from '../../generated/types/model/resource/UserRegisterRequestModel';\r\n\r\nexport default class UserRegisterRequestViewModel extends UserRegisterRequestModel {\r\n protected transformToDTO() {}\r\n protected transformFromDTO() {}\r\n\r\n schema = {\r\n ...queryBuilder.properties({\r\n registrationKey: { required: true },\r\n userName: { required: true, pattern: validationPatterns.email },\r\n password: { required: true, minLength: 6 },\r\n passwordRepeat: { required: true, minLength: 6, sameAs: 'password' },\r\n userLanguage: { required: false },\r\n userCulture: { required: false },\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\nimport Vue from 'vue';\nimport UserRegisterRequestViewModel from '../../../services/viewModel/resource/UserRegisterRequestViewModel';\n\nexport default Vue.extend({\n auth: false,\n layout: 'layout-exterior',\n data: () => ({\n user: new UserRegisterRequestViewModel(),\n isLoading: false,\n requestError: undefined,\n }),\n mounted() {\n this.loadQRData();\n },\n methods:\n {\n tabToNextInput() {\n const inputs = document.getElementsByTagName('input');\n for (let i = 0; i < inputs.length; i += 1) {\n const input = inputs[i];\n if (document!.activeElement!.id === input.id && i + 1 < inputs.length) {\n const nextInput = inputs[i + 1] as HTMLInputElement;\n nextInput.focus();\n break;\n }\n }\n },\n loadQRData() {\n const query = this.$router.currentRoute?.query ?? {};\n const { username, email, registrationKey } = query as Record;\n this.user.userName = email;\n this.user.email = email;\n this.user.registrationKey = registrationKey;\n },\n gotoVerifyUser() {\n this.$router.push('/_exterior/verify-user');\n },\n gotoLogin() {\n this.$router.push('/_exterior/login');\n },\n async doRegister() {\n this.user.email = this.user.userName;\n if (!this.user.validate()) {\n return;\n }\n // Make sure user is logged off - otherwise the server connects a wrong profile\n this.$auth.logout();\n this.isLoading = true;\n try {\n await this.$service.api.users.register(this.user);\n await this.$auth.login({ username: this.user.userName, password: this.user.password });\n this.gotoVerifyUser();\n } catch (error: any) {\n this.requestError = error;\n }\n this.isLoading = false;\n },\n },\n});\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./registration.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./registration.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./registration.vue?vue&type=template&id=16c9bbcc&\"\nimport script from \"./registration.vue?vue&type=script&lang=ts&\"\nexport * from \"./registration.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/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":""}