{"version":3,"sources":["webpack:///./src/views/login/views/login.vue?6bfd","webpack:///./src/views/login/views/login.vue?fdef","webpack:///./src/views/login/views/login.vue","webpack:///./src/assets/img/chevronLeft.svg"],"names":["_hoisted_1","class","_hoisted_2","src","_hoisted_3","_hoisted_4","_hoisted_5","key","_hoisted_6","type","_hoisted_7","_hoisted_8","render","_ctx","_cache","$props","$setup","$data","$options","_component_localized_text","_component_router_link","_component_mini_spinner","_component_social_login","_component_mandatory_documents","_component_val_form","_directive_localizedPlaceholder","onClick","$event","$router","back","localizedKey","text","onSubmit","doLogin","onInvalid","doError","default","vm","username","required","value","afterText","password","tag","to","_","error","loading","cssClass","documents","message","getRegistrationMustSign","then","x","this","login","StorageServices","setUserIdentifier","identifier","token","userIdentifier","LoginServices","loginCallback","push","catch","err","setTimeout","finally","components","SocialLogin","MandatoryDocuments","__exports__","module","exports"],"mappings":"8JAIA,MAAMA,EAAa,CAAEC,MAAO,kBACtBC,EAA0B,eAAa,MAAO,CAAEC,IAAK,KAAc,MAAO,GAC1EC,EAAa,CAAEH,MAAO,cACtBI,EAAa,CAAEJ,MAAO,cACtBK,EAAa,CACjBC,IAAK,EACLN,MAAO,wCAEHO,EAAa,CACjBC,KAAM,SACNR,MAAO,uCAEHS,EAAa,CAAET,MAAO,eACtBU,EAA0B,eAAa,MAAO,CAAEV,MAAO,QAAU,MAAO,GAExE,SAAUW,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,MAAMC,EAA4B,eAAkB,kBAC9CC,EAAyB,eAAkB,eAC3CC,EAA0B,eAAkB,gBAC5CC,EAA0B,eAAkB,gBAC5CC,EAAiC,eAAkB,uBACnDC,EAAsB,eAAkB,YACxCC,EAAkC,eAAkB,wBAE1D,OAAQ,iBAAc,eAAa,MAAOzB,EAAY,CACpD,eAAa,MAAO,CAClBC,MAAO,aACPyB,QAASZ,EAAO,KAAOA,EAAO,GAAMa,GAAiBd,EAAKe,QAAQC,SACjE,CACD3B,IAEF,eAA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,kBAGX,eAAa,MAAOS,EAAY,CAC9BC,EACA,eAAaQ,EAA2B,CACtCW,aAAc,iBACdC,KAAM,eACN9B,MAAO,iBAGX,eAAaqB,GACb,eAAaC,EAAgC,CAAE0B,UAAWpC,EAAKoC,WAAa,KAAM,EAAG,CAAC,eACrF,OAETJ,EAAG,GACF,EAAG,CAAC,WAAY,gB,oGCpGvB,IAAqB,EAArB,cAAmC,OAAnC,c,oBAEI,KAAAI,UAAyC,GACzC,KAAAZ,GAAyC,IAAI,OAC7C,KAAAU,SAAmB,EAEnB,KAAAG,QAAkB,GAClB,KAAAJ,MAAgB,GAEhB,UACI,OAAkCK,0BACjCC,KAAMC,IACHC,KAAKL,UAAYI,IAIzB,UACQC,KAAKjB,GAAGC,UAAagB,KAAKjB,GAAGK,WAGjCY,KAAKR,MAAQ,GACbQ,KAAKP,SAAU,EACf,OAAWQ,MAAMD,KAAKjB,IAAI,GACzBe,KAAKC,IAGF,GAFAG,EAAA,KAAgBC,kBAAkBJ,EAAEK,YAEhCL,EAAEM,MAAN,CAKA,IAAItB,EAAK,IAAI,OACbA,EAAGsB,MAAQN,EAAEM,MACbtB,EAAGuB,eAAiBP,EAAEK,WACtBG,EAAA,KAAcC,cAAczB,EAAIiB,WAP5BA,KAAK1B,QAAQmC,KAAK,mBASzBC,MAAMC,IACHX,KAAKR,MAAQmB,EAAIf,QAEjBgB,WAAW,KACPZ,KAAKR,MAAQ,IACd,OAENqB,QAAQ,IAAMb,KAAKP,SAAU,IAGlC,aA9CiB,EAAK,gBANzB,eAAQ,CACLqB,WAAY,CACRC,YAAA,OACAC,mBAAA,WAGa,W,qBCVrB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS3D,KAErD,gB,qBCPf4D,EAAOC,QAAU,IAA0B","file":"js/chunk-47a6a97ec15722bf8faf.js","sourcesContent":["import { createVNode as _createVNode, resolveComponent as _resolveComponent, vModelText as _vModelText, resolveDirective as _resolveDirective, withDirectives as _withDirectives, withCtx as _withCtx, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } 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 = {\n key: 0,\n class: \"fs_14 mt-4 d-block text-center error\"\n}\nconst _hoisted_6 = {\n type: \"submit\",\n class: \"genericButton bgGradient w-100 mt-5\"\n}\nconst _hoisted_7 = { class: \"orSeparator\" }\nconst _hoisted_8 = /*#__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_router_link = _resolveComponent(\"router-link\")!\n const _component_mini_spinner = _resolveComponent(\"mini-spinner\")!\n const _component_social_login = _resolveComponent(\"social-login\")!\n const _component_mandatory_documents = _resolveComponent(\"mandatory-documents\")!\n const _component_val_form = _resolveComponent(\"val-form\")!\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_bentornato\",\n text: \"Bentornato\",\n class: \"fs_28 spaceCadet d-block mt-2\"\n }),\n _createVNode(_component_localized_text, {\n localizedKey: \"app_accedialtuoaccount\",\n text: \"Accedi al tuo account\",\n class: \"fs_16 grey d-block mb-5\"\n }),\n _createVNode(_component_val_form, {\n onSubmit: _ctx.doLogin,\n onInvalid: _ctx.doError,\n class: \"loginContainer\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_3, [\n _withDirectives(_createVNode(\"input\", {\n type: \"email\",\n class: \"genericInput\",\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.vm.username = $event)),\n required: \"\"\n }, null, 512), [\n [_vModelText, _ctx.vm.username],\n [_directive_localizedPlaceholder, {key: 'app_email', value: 'Email', afterText : '*'}]\n ])\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _withDirectives(_createVNode(\"input\", {\n type: \"password\",\n class: \"genericInput\",\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.vm.password = $event)),\n required: \"\"\n }, null, 512), [\n [_vModelText, _ctx.vm.password],\n [_directive_localizedPlaceholder, {key: 'app_password', value: 'Password', afterText : '*'}]\n ])\n ]),\n _createVNode(_component_router_link, {\n tag: \"div\",\n to: \"/resetpassword\",\n class: \"fs_13 grey pointer\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_localized_text, {\n localizedKey: 'app_haidimenticatolapassword?',\n text: 'Hai dimenticato la password?'\n })\n ]),\n _: 1\n }),\n (_ctx.error)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_5, _toDisplayString(_ctx.error), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.loading)\n ? (_openBlock(), _createBlock(_component_mini_spinner, {\n key: 1,\n cssClass: 'my-5'\n }))\n : (_openBlock(), _createBlock(_Fragment, { key: 2 }, [\n _createVNode(\"button\", _hoisted_6, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_login\",\n text: \"Login\",\n class: \"fs_14 white\"\n })\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_oAccediCon\",\n text: \"o accedi 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 ], 64))\n ]),\n _: 1\n }, 8, [\"onSubmit\", \"onInvalid\"])\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { LoginServices } from '@/services/LoginServices';\r\nimport { AfterLoginMandatoryDocumentClient, AuthClient } from '@/services/Services';\r\nimport SocialLogin from '../components/socialLogin.vue';\r\nimport * as OM from '@/model';\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 vm: OM.LanguageCredentialWithBirthDate = new OM.LanguageCredentialWithBirthDate();\r\n loading: boolean = false;\r\n\r\n message: string = \"\";\r\n error: string = \"\";\r\n\r\n created(){\r\n AfterLoginMandatoryDocumentClient.getRegistrationMustSign()\r\n .then( x => {\r\n this.documents = x;\r\n })\r\n }\r\n\r\n doLogin(){\r\n if(!this.vm.username || !this.vm.password)\r\n return;\r\n\r\n this.error = \"\";\r\n this.loading = true;\r\n AuthClient.login(this.vm, false)\r\n .then(x => {\r\n StorageServices.setUserIdentifier(x.identifier);\r\n\r\n if(!x.token){\r\n this.$router.push(\"confirmedCode\");\r\n return;\r\n }\r\n\r\n var vm = new OM.LoginResponse();\r\n vm.token = x.token;\r\n vm.userIdentifier = x.identifier;\r\n LoginServices.loginCallback(vm, this);\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 doError(){\r\n \r\n }\r\n\r\n}\r\n","import { render } from \"./login.vue?vue&type=template&id=15e6e390&ts=true\"\nimport script from \"./login.vue?vue&type=script&lang=ts\"\nexport * from \"./login.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__","module.exports = __webpack_public_path__ + \"img/chevronLeft.86209808.svg\";"],"sourceRoot":""}