{"version":3,"sources":["webpack:///./src/pages/changeFirstPassword.vue?a930","webpack:///./src/pages/changeFirstPassword.vue.ts","webpack:///./src/pages/changeFirstPassword.vue.ts?33d0","webpack:///./src/pages/changeFirstPassword.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","scopedSlots","_u","key","fn","_v","_s","headerText","proxy","on","checkForm","$t","model","value","user","callback","$$v","$set","expression","_e","staticRenderFns","isLoading","passwordRules","v","passwordSet","e","instance","token","$route","query","preventDefault","api","setFirstPassword","then","res","finally","$appConfig","loginPage","changePasswordPage","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,MAAQ,GAAG,aAAa,SAAS,oBAAoB,cAAc,sBAAsB,SAASC,YAAYR,EAAIS,GAAG,CAAC,CAACC,IAAI,SAASC,GAAG,WAAW,MAAO,CAACP,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACN,EAAIY,GAAGZ,EAAIa,GAAGb,EAAIc,iBAAiBC,OAAM,MAAS,CAACX,EAAG,OAAO,CAACE,YAAY,kBAAkBC,MAAM,CAAC,OAAS,OAAO,GAAK,yBAAyB,KAAO,0BAA0BS,GAAG,CAAC,OAAShB,EAAIiB,YAAY,CAACb,EAAG,aAAa,CAACG,MAAM,CAAC,KAAO,SAAS,CAACH,EAAG,MAAM,CAACA,EAAG,eAAe,CAACG,MAAM,CAAC,MAAQP,EAAIkB,GAAG,0BAA0B,aAAa,EAAE,eAAe,EAAE,cAAc,oBAAoB,CAACd,EAAG,eAAe,CAACG,MAAM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E,OACC,EAAAC,WAAqB,EACrB,EAAAP,KAA4B,IAAI,OAChC,EAAAQ,cAAgB,CAAC,SAACC,GAAqB,QAAEA,GAAK,uBAC9C,EAAAC,aAAuB,E,EAsBxB,OA1BgD,oBAM/C,YAAAd,UAAA,SAAUe,GACT,IAAIC,EAAWhC,KACfA,KAAKoB,KAAKa,MAAQjC,KAAKkC,OAAOC,MAAMF,MACpCF,EAAEK,iBACFJ,EAASL,WAAY,EACrBU,EAAA,KAAIC,iBAAiBN,EAASZ,MAC5BmB,MAAK,SAAAC,GACLR,EAASL,WAAY,EAEjBa,IACHR,EAASF,aAAc,MAEtBW,SAAQ,WAAM,OAAAT,EAASL,WAAY,MAExC,sBAAI,yBAAU,C,IAAd,WACC,OAAO3B,KAAK0C,WAAWC,UAAU9B,Y,gCAElC,sBAAI,uBAAQ,C,IAAZ,WACC,MAAO,I,gCAxBY+B,EAAkB,gBAHtC,eAAU,CACVC,QAAS,kBAAK,eAAW,CAAC,kBAEND,GA0BrB,EA1BA,CAAgDE,EAAA,MAA3B,ICV0N,I,YCO3OC,EAAY,eACd,EACAjD,EACA4B,GACA,EACA,KACA,KACA,MAIa,aAAAqB,E","file":"js/chunk-2d22c448.febebdbd.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\":'',\"header-tag\":\"header\",\"header-bg-variant\":\"app-primary\",\"header-text-variant\":\"white\"},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_changepassword\",\"name\":\"overins_changepassword\"},on:{\"submit\":_vm.checkForm}},[_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',[_c('b-form-group',{attrs:{\"label\":_vm.$t('generico.nuovaPassword'),\"label-cols\":4,\"content-cols\":8,\"label-class\":\"text-capitalize\"}},[_c('b-form-input',{attrs:{\"name\":\"nuovaPassword\",\"placeholder\":_vm.$t('generico.nuovaPassword'),\"type\":\"password\"},model:{value:(_vm.user.passwordNuova),callback:function ($$v) {_vm.$set(_vm.user, \"passwordNuova\", $$v)},expression:\"user.passwordNuova\"}})],1),_c('b-form-group',{attrs:{\"label\":_vm.$t('generico.confermaPassword'),\"label-cols\":4,\"content-cols\":8,\"label-class\":\"text-capitalize\"}},[_c('b-form-input',{attrs:{\"name\":\"confermaPassword\",\"placeholder\":_vm.$t('generico.confermaPassword'),\"type\":\"password\"},model:{value:(_vm.user.passwordConferma),callback:function ($$v) {_vm.$set(_vm.user, \"passwordConferma\", $$v)},expression:\"user.passwordConferma\"}})],1),_c('div',[_c('b-button',{staticClass:\"text-capitalize\",attrs:{\"type\":'submit',\"block\":\"\",\"variant\":\"app-primary\",\"size\":\"lg\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"generico.cambiaPassword\"))+\" \")])],1)],1)]),_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),(_vm.passwordSet)?_c('b-row',{staticClass:\"justify-content-center align-items-center mt-5\"},[_c('b-icon',{staticClass:\"ml-1\",attrs:{\"icon\":'check-circle',\"aria-hidden\":\"true\",\"scale\":\"5\",\"variant\":\"success\"}}),_c('h1',{staticClass:\"ml-5 text-success\"},[_vm._v(_vm._s(_vm.$t(\"generico.passwordImpostata\")))])],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// import Vue from 'vue'\r\nimport { Component } from \"vue-property-decorator\";\r\nimport { ChangePasswordModel, UserLoggedInfoModel } from \"@/models/userModels\";\r\nimport { mapActions } from \"vuex\";\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 changePasswordPage extends baseContextComponent {\r\n\tisLoading: boolean = false;\r\n\tuser: ChangePasswordModel = new ChangePasswordModel();\r\n\tpasswordRules = [(v: string | null) => !!v || \"Campo obbligatorio\"];\r\n\tpasswordSet: boolean = false;\r\n\r\n\tcheckForm(e: any) {\r\n\t\tvar instance = this;\r\n\t\tthis.user.token = this.$route.query.token as string;\r\n\t\te.preventDefault();\r\n\t\tinstance.isLoading = true;\r\n\t\tapi.setFirstPassword(instance.user)\r\n\t\t\t.then(res => {\r\n\t\t\t\tinstance.isLoading = false;\r\n\t\t\t\t\r\n\t\t\t\tif (res) {\r\n\t\t\t\t\tinstance.passwordSet = true;\r\n\t\t\t\t}\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\treturn \"\";\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!./changeFirstPassword.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!./changeFirstPassword.vue.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./changeFirstPassword.vue?vue&type=template&id=4ef40f3a&\"\nimport script from \"./changeFirstPassword.vue.ts?vue&type=script&lang=ts&\"\nexport * from \"./changeFirstPassword.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":""}