{"version":3,"sources":["webpack:///./src/pages/passwordRecover.vue?f4e9","webpack:///./src/pages/passwordRecover.vue.ts","webpack:///./src/pages/passwordRecover.vue.ts?7377","webpack:///./src/pages/passwordRecover.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","htmlText","scopedSlots","_u","key","fn","_v","_s","headerText","proxy","on","checkForm","recuperata","directives","name","rawName","value","user","expression","domProps","$event","target","composing","$set","$t","_e","staticRenderFns","isLoading","emailRules","v","test","passwordRules","e","instance","preventDefault","credential","username","isWeb","api","doRecuperaPassword","then","token","finally","$appConfig","loginPage","passwordRecoverPage","methods","baseContextComponent","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,QAAQ,CAACE,YAAY,8CAA8C,CAACF,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,KAAK,GAAK,IAAI,GAAK,MAAM,CAACH,EAAG,SAAS,CAACE,YAAY,YAAYC,MAAM,CAAC,MAAQP,EAAIQ,SAAS,aAAa,SAAS,oBAAoB,cAAc,sBAAsB,iBAAiBC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,SAASC,GAAG,WAAW,MAAO,CAACR,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACN,EAAIa,GAAGb,EAAIc,GAAGd,EAAIe,iBAAiBC,OAAM,MAAS,CAACZ,EAAG,OAAO,CAACE,YAAY,kBAAkBC,MAAM,CAAC,OAAS,OAAO,GAAK,0BAA0B,KAAO,2BAA2BU,GAAG,CAAC,OAASjB,EAAIkB,YAAY,CAACd,EAAG,aAAa,CAACG,MAAM,CAAC,KAAO,SAAS,CAAoB,GAAlBP,EAAImB,WAAqBf,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,QAAQ,CAACgB,WAA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AAAC,GACL,EAAK7B,YAAa,EAClBqB,EAASN,WAAY,KACnBe,SAAQ,WAAM,OAAAT,EAASN,WAAY,MAExC,sBAAI,yBAAU,C,IAAd,WACC,OAAOjC,KAAKiD,WAAWC,UAAUpC,Y,gCAElC,sBAAI,uBAAQ,C,IAAZ,WAEC,OAAOd,KAAKkB,WAAa,mGAAqG,uE,gCAjC3GiC,EAAmB,gBAHvC,eAAU,CACVC,QAAS,kBAAK,eAAW,CAAC,kBAEND,GAmCrB,EAnCA,CAAiDE,EAAA,MAA5B,ICXsN,I,YCOvOC,EAAY,eACd,EACAxD,EACAkC,GACA,EACA,KACA,KACA,MAIa,aAAAsB,E","file":"js/chunk-2d0d0615.1a4b3dd9.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid p-lg-5\"},[_c('b-row',{staticClass:\"justify-content-center align-items-center\"},[_c('b-col',{attrs:{\"cols\":\"12\",\"lg\":\"6\",\"xl\":\"4\"}},[_c('b-card',{staticClass:\"shadow-lg\",attrs:{\"title\":_vm.htmlText,\"header-tag\":\"header\",\"header-bg-variant\":\"app-primary\",\"header-text-variant\":'white-lighten'},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h4',{staticClass:\"mb-0\"},[_vm._v(_vm._s(_vm.headerText))])]},proxy:true}])},[_c('form',{staticClass:\"margin-bottom-0\",attrs:{\"method\":\"POST\",\"id\":\"overins_passwordrecover\",\"name\":\"overins_passwordrecover\"},on:{\"submit\":_vm.checkForm}},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.recuperata == false)?_c('div',[_c('div',{staticClass:\"form-group m-b-15\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.user.username),expression:\"user.username\"}],staticClass:\"form-control form-control-lg\",attrs:{\"type\":\"text\",\"name\":\"user\",\"placeholder\":\"Username\"},domProps:{\"value\":(_vm.user.username)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.user, \"username\", $event.target.value)}}})]),_c('div',[_c('b-button',{staticClass:\"text-capitalize\",attrs:{\"type\":'submit',\"block\":\"\",\"variant\":\"app-primary\",\"size\":\"lg\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"generico.recuperaPassword\"))+\" \")])],1)]):_vm._e()]),_c('div',{staticClass:\"pt-2\"},[_c('router-link',{staticClass:\"text-capitalize\",attrs:{\"variant\":\"app-primary\",\"block\":\"\",\"to\":'/login'}},[_vm._v(\" \"+_vm._s(_vm.$t(\"generico.tornaAllaLogin\"))+\" \")])],1)],1)])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// import Vue from 'vue'\r\nimport { Component } from \"vue-property-decorator\";\r\nimport { UserLoginModel, UserLoggedInfoModel, ChangePasswordModel, RecuperaPasswordModel } from \"@/models/userModels\";\r\nimport { mapActions } from \"vuex\";\r\nimport axios, { AxiosPromise } from \"axios\";\r\nimport baseContextComponent from \"@/components/baseContextComponent\";\r\nimport api from \"@/services/api\";\r\n\r\n@Component({\r\n\tmethods: { ...mapActions([\"loginUser\"]) }\r\n})\r\nexport default class passwordRecoverPage extends baseContextComponent {\r\n\tisLoading: boolean = false;\r\n\trecuperata: boolean = false;\r\n\tuser: UserLoginModel = new UserLoginModel();\r\n\tloginUser!: (token: any) => Promise;\r\n\temailRules = [\r\n\t\t(v: string) => {\r\n\t\t\treturn !!v || \"Campo obbligatorio\";\r\n\t\t},\r\n\t\t(v: string | null) =>\r\n\t\t\tv == null || /.+@.+/.test(v) || \"Formato non valido\"\r\n\t];\r\n\tpasswordRules = [(v: string | null) => !!v || \"Campo obbligatorio\"];\r\n\r\n\tcheckForm(e: any) {\r\n\t\tvar instance = this;\r\n\r\n\t\te.preventDefault();\r\n\t\tinstance.isLoading = true;\r\n\t\tvar credential = new RecuperaPasswordModel();\r\n\t\tcredential.username = instance.user.username;\r\n\t\tcredential.isWeb = true;\r\n\t\tapi.doRecuperaPassword(credential)\r\n\t\t\t.then(token => {\r\n\t\t\t\tthis.recuperata = true;\r\n\t\t\t\tinstance.isLoading = false;\r\n\t\t\t}).finally(() => instance.isLoading = false);\r\n\t}\r\n\tget headerText(): string {\r\n\t\treturn this.$appConfig.loginPage.headerText;\r\n\t}\r\n\tget htmlText(): string {\r\n\t\t// return this.$appConfig.loginPage.htmlText;\r\n\t\treturn this.recuperata ? \"E' satta inviata una email all'indirizzo di posta associato all'account con le nuove credenziali\" : \"Inserire l'username per il quale si desidera recuperare la password\";\r\n\t}\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!./passwordRecover.vue.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??ref--12-2!./passwordRecover.vue.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./passwordRecover.vue?vue&type=template&id=418e6ded&\"\nimport script from \"./passwordRecover.vue.ts?vue&type=script&lang=ts&\"\nexport * from \"./passwordRecover.vue.ts?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/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":""}