{"version":3,"sources":["webpack:///./src/assets/img/chevronLeft.svg","webpack:///./src/views/login/views/register.vue?9171","webpack:///./src/views/login/views/register.vue?ebb1","webpack:///./src/views/login/views/register.vue"],"names":["module","exports","_hoisted_1","class","_hoisted_2","src","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","key","_hoisted_12","_hoisted_13","render","_ctx","_cache","$props","$setup","$data","$options","_component_localized_text","_component_mandatory_documents","_component_mini_spinner","_component_val_form","_component_social_login","_directive_localizedPlaceholder","onClick","$event","$router","back","localizedKey","text","onNext","doRegister","default","type","languageCredential","name","required","value","afterText","surname","username","no_value","birthDate","telephone","password","error","documents","loading","cssClass","disabled","canRegister","_","push","message","confirmationCode","useridentifier","this","preferredCulture","store","state","getRegistrationMustSign","then","x","validPassword","trim","register","StorageServices","setUserIdentifier","identifier","path","query","$route","catch","err","setTimeout","finally","components","SocialLogin","MandatoryDocuments","__exports__"],"mappings":"mGAAAA,EAAOC,QAAU,IAA0B,gC,gFCI3C,MAAMC,EAAa,CAAEC,MAAO,kBACtBC,EAA0B,eAAa,MAAO,CAAEC,IAAK,KAAc,MAAO,GAC1EC,EAAa,CAAEH,MAAO,cACtBI,EAAa,CAAEJ,MAAO,cACtBK,EAAa,CAAEL,MAAO,cACtBM,EAAa,CAAEN,MAAO,cACtBO,EAAa,CAAEP,MAAO,cACtBQ,EAAa,CAAER,MAAO,cACtBS,EAAa,CAAET,MAAO,2BACtBU,EAA2B,eAAiB,QAC5CC,EAAc,CAClBC,IAAK,EACLZ,MAAO,wCAEHa,EAAc,CAAEb,MAAO,eACvBc,EAA2B,eAAa,MAAO,CAAEd,MAAO,QAAU,MAAO,GAEzE,SAAUe,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,MAAMC,EAA4B,eAAkB,kBAC9CC,EAAiC,eAAkB,uBACnDC,EAA0B,eAAkB,gBAC5CC,EAAsB,eAAkB,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AAU,EACf,OAAWkB,SAAST,KAAKtB,oBACxB2B,KAAKC,IACFN,KAAKtB,mBAAmBQ,UAAYc,KAAKtB,mBAAmBQ,UAE5DwB,EAAA,KAAgBC,kBAAkBL,EAAEM,YACpCZ,KAAK9B,QAAQ0B,KAAK,CACdiB,KAAM,iBACNC,MAAOd,KAAKe,OAAOD,UAG1BE,MAAMC,IACHjB,KAAKX,MAAQ4B,EAAIpB,QAEjBqB,WAAW,KACPlB,KAAKX,MAAQ,IACd,OAEN8B,QAAQ,IAAMnB,KAAKT,SAAU,MArDjB,EAAK,gBANzB,eAAQ,CACL6B,WAAY,CACRC,YAAA,OACAC,mBAAA,WAGa,W,qBCXrB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpE,KAErD","file":"js/chunk-d478f3c69f670b3f68d6.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/chevronLeft.86209808.svg\";","import { createVNode as _createVNode, resolveComponent as _resolveComponent, vModelText as _vModelText, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx } from \"vue\"\nimport _imports_0 from '@/assets/img/chevronLeft.svg'\n\n\nconst _hoisted_1 = { class: \"genericPadding\" }\nconst _hoisted_2 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_3 = { class: \"form-group\" }\nconst _hoisted_4 = { class: \"form-group\" }\nconst _hoisted_5 = { class: \"form-group\" }\nconst _hoisted_6 = { class: \"form-group\" }\nconst _hoisted_7 = { class: \"form-group\" }\nconst _hoisted_8 = { class: \"form-group\" }\nconst _hoisted_9 = { class: \"fs_12 grey mt-3 d-block\" }\nconst _hoisted_10 = /*#__PURE__*/_createTextVNode(\" ** \")\nconst _hoisted_11 = {\n key: 0,\n class: \"fs_14 mt-4 d-block text-center error\"\n}\nconst _hoisted_12 = { class: \"orSeparator\" }\nconst _hoisted_13 = /*#__PURE__*/_createVNode(\"div\", { class: \"line\" }, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _component_mandatory_documents = _resolveComponent(\"mandatory-documents\")!\n const _component_mini_spinner = _resolveComponent(\"mini-spinner\")!\n const _component_val_form = _resolveComponent(\"val-form\")!\n const _component_social_login = _resolveComponent(\"social-login\")!\n const _directive_localizedPlaceholder = _resolveDirective(\"localizedPlaceholder\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", {\n class: \"backbutton\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$router.back()))\n }, [\n _hoisted_2\n ]),\n _createVNode(_component_localized_text, {\n localizedKey: \"app_creaunaccount\",\n text: \"Crea un account\",\n class: \"fs_28 spaceCadet d-block mt-2\"\n }),\n _createVNode(_component_localized_text, {\n localizedKey: \"app_creaunaccountPerContinuare\",\n text: \"Crea un account per continuare\",\n class: \"fs_16 grey d-block mb-5\"\n }),\n _createVNode(_component_val_form, {\n onNext: _ctx.doRegister,\n class: \"registerContainer\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_3, [\n _withDirectives(_createVNode(\"input\", {\n type: \"text\",\n class: \"genericInput\",\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.languageCredential.name = $event)),\n required: \"\"\n }, null, 512), [\n [_vModelText, _ctx.languageCredential.name],\n [_directive_localizedPlaceholder, {key: 'app_nome', value: 'Nome', afterText : '*'}]\n ])\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _withDirectives(_createVNode(\"input\", {\n type: \"text\",\n class: \"genericInput\",\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.languageCredential.surname = $event)),\n required: \"\"\n }, null, 512), [\n [_vModelText, _ctx.languageCredential.surname],\n [_directive_localizedPlaceholder, {key: 'app_cognome', value: 'Cognome', afterText : '*'}]\n ])\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _withDirectives(_createVNode(\"input\", {\n type: \"email\",\n class: \"genericInput\",\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.languageCredential.username = $event)),\n required: \"\"\n }, null, 512), [\n [_vModelText, _ctx.languageCredential.username],\n [_directive_localizedPlaceholder, {key: 'app_email', value: 'Email', afterText : '*'}]\n ])\n ]),\n _createVNode(\"div\", _hoisted_6, [\n _withDirectives(_createVNode(\"input\", {\n type: \"date\",\n class: [\"genericInput\", {no_value : !_ctx.languageCredential.birthDate}],\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.languageCredential.birthDate = $event)),\n required: \"\"\n }, null, 2), [\n [_directive_localizedPlaceholder, {key: 'app_dataDiNascita', value: 'Data di nascita', afterText : '*'}],\n [_vModelText, _ctx.languageCredential.birthDate]\n ])\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _withDirectives(_createVNode(\"input\", {\n type: \"tel\",\n class: \"genericInput\",\n \"onUpdate:modelValue\": _cache[6] || (_cache[6] = ($event: any) => (_ctx.languageCredential.telephone = $event))\n }, null, 512), [\n [_vModelText, _ctx.languageCredential.telephone],\n [_directive_localizedPlaceholder, {key: 'app_cell', value: 'Cell'}]\n ])\n ]),\n _createVNode(\"div\", _hoisted_8, [\n _withDirectives(_createVNode(\"input\", {\n type: \"password\",\n class: \"genericInput\",\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => (_ctx.languageCredential.password = $event)),\n required: \"\"\n }, null, 512), [\n [_vModelText, _ctx.languageCredential.password],\n [_directive_localizedPlaceholder, {key: 'app_password', value: 'Password', afterText : '*'}]\n ]),\n _createVNode(\"span\", _hoisted_9, [\n _hoisted_10,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_passwordrestrizione\",\n text: \"La password deve avere una lunghezza di almeno 6 caratteri, contenere una lettera maiuscola, una minuscola, e un numero\",\n class: \"fs_12 grey\"\n })\n ])\n ]),\n (_ctx.error)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_11, _toDisplayString(_ctx.error), 1))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_mandatory_documents, { documents: _ctx.documents }, null, 8, [\"documents\"]),\n (_ctx.loading)\n ? (_openBlock(), _createBlock(_component_mini_spinner, {\n key: 1,\n cssClass: 'my-5'\n }))\n : (_openBlock(), _createBlock(\"button\", {\n key: 2,\n type: \"submit\",\n class: \"genericButton bgGradient w-100 mt-5\",\n disabled: !_ctx.canRegister\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_signUp\",\n text: \"Sign up\",\n class: \"fs_14 white\"\n })\n ], 8, [\"disabled\"]))\n ]),\n _: 1\n }, 8, [\"onNext\"]),\n _createVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_oRegistratiCon\",\n text: \"o registrati con\",\n class: \"fs_16 grey\"\n })\n ]),\n _createVNode(_component_social_login),\n _createVNode(_component_mandatory_documents, { documents: _ctx.documents }, null, 8, [\"documents\"]),\n _createVNode(\"span\", {\n class: \"d-block mt-5 text-center ln_12\",\n onClick: _cache[8] || (_cache[8] = ($event: any) => (_ctx.$router.push('login')))\n }, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_alreadyHaveAccount\",\n text: \"Already have an account?\",\n class: \"fs_13 grey me-1\"\n }),\n _createVNode(_component_localized_text, {\n localizedKey: \"app_logIn\",\n text: \"Log in\",\n class: \"fs_13 blue underlined\"\n })\n ])\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { AfterLoginMandatoryDocumentClient, AuthClient } from '@/services/Services';\r\nimport { checkPassword } from '@/utils';\r\nimport * as OM from '@/model';\r\nimport SocialLogin from '../components/socialLogin.vue';\r\nimport store from '@/store';\r\nimport { StorageServices } from '@/services/StorageServices';\r\nimport MandatoryDocuments from '@/components/mandatoryDocuments.vue'\r\n\r\n@Options({\r\n components: {\r\n SocialLogin,\r\n MandatoryDocuments\r\n }\r\n})\r\nexport default class Login extends Vue {\r\n \r\n documents: OM.MandatoryDocumentAppVM[] = [];\r\n loading: boolean = false;\r\n languageCredential: OM.LanguageCredentialWithBirthDate = new OM.LanguageCredentialWithBirthDate();\r\n\r\n message: string = \"\";\r\n error: string = \"\";\r\n\r\n confirmationCode: string = \"\";\r\n useridentifier: string = \"\";\r\n\r\n created(){\r\n this.languageCredential.preferredCulture = store.state.preferredCulture;\r\n\r\n AfterLoginMandatoryDocumentClient.getRegistrationMustSign()\r\n .then( x => {\r\n this.documents = x;\r\n })\r\n }\r\n\r\n get canRegister() {\r\n return this.languageCredential.username && this.languageCredential.password && this.validPassword && this.languageCredential.name.trim() && this.languageCredential.surname.trim() && this.languageCredential.birthDate;\r\n // && this.conditions\r\n }\r\n\r\n get validPassword() {\r\n return checkPassword(this.languageCredential.password);\r\n }\r\n\r\n doRegister() {\r\n if(!this.canRegister)\r\n return;\r\n\r\n this.error = \"\";\r\n this.loading = true;\r\n AuthClient.register(this.languageCredential)\r\n .then(x => {\r\n this.languageCredential.birthDate = this.languageCredential.birthDate;\r\n\r\n StorageServices.setUserIdentifier(x.identifier);\r\n this.$router.push({\r\n path: \"/confirmedCode\",\r\n query: this.$route.query\r\n });\r\n })\r\n .catch(err => {\r\n this.error = err.message;\r\n\r\n setTimeout(() => {\r\n this.error = \"\";\r\n }, 3000);\r\n })\r\n .finally(() => this.loading = false)\r\n }\r\n\r\n}\r\n","import { render } from \"./register.vue?vue&type=template&id=399e2d39&ts=true\"\nimport script from \"./register.vue?vue&type=script&lang=ts\"\nexport * from \"./register.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}