{"version":3,"sources":["webpack:///./src/views/Account/Components/PersonalData.vue","webpack:///./src/views/Account/Components/PersonalData.vue?76cc","webpack:///./src/views/Account/Components/PersonalData.vue?040a","webpack:///./src/views/Account/Components/PersonalData.vue?e287","webpack:///./src/services/api/country.service.ts","webpack:///./src/services/api/subscription-plan.service.ts"],"names":["attrs","staticStyle","staticClass","directives","name","value","_vm","_c","on","model","callback","isFormValid","expression","isEdit","$event","indexOf","saveEdit","personalDataChange","$set","email","phoneNumber","cancel","_v","style","domProps","$tc","slotText","type","icon","action","deleteLaterDialog","$$v","deleteNowDialog","staticRenderFns","authModule","getModule","AuthModule","store","overlayModule","OverlayModule","snackbarModule","SnackbarModule","PersonalData","Vue","required","this","showOverlay","userService","GetPersonalData","data","country","countryService","GetAllCountry","pendingDelete","GetLogicallyDeletedById","expiration","subscriptionPlansService","GetExpiration","UpdatePersonalData","setUsername","setEmail","showSnackbar","message","timer","e","parse","split","expirationDate","Date","getTime","ChangeAccountStatusByID","PhysicalDeleteByID","$router","push","disabledSnackbar","Component","component","controller","CountryService","ApiService","constructor","super","process","getAll","SubscriptionPlansService","GetAllOffert","GetById","roleId"],"mappings":"uLAAkHA,EAAM,W,IAAC,OAAD,aAAkB,EAAQ,kB,OAA2BC,SAAY,C,MAAC,CAAD,WAA+DC,UAAW,CAAaD,YAAY,c,YAAC,CAAtC,qC,CAAkE,SAAQ,WAAT,wBAA1E,YAAiG,CAAUC,YAAY,SAAiIC,OAAaC,MAAK,W,CAAwBC,SAAOC,C,YAA+B,mCAArE,CAAZ,+EAAsGJ,WAAW,CAAC,CAAOF,KAAM,OAAC,QAAO,SAAR,kBAAkBO,WAAG,oB,YAAgC,O,MAAU,CAAgB,cAAzC,qBAA+EC,MAAG,CAAC,eAAD,cAAhQ,SAAyR,GAA0BC,MAAM,c,GAAyBC,C,MAA6BC,WAAiBC,KAAU,MAAC,aAAlF,OAAmGL,MAAG,EAAD,YAAUP,SAAM,YAAC,cAAQ,GAAYO,WAAW,gBAA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2B,IAAI4B","file":"js/PersonalData.a94449e7.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('v-row',{staticClass:\"flex-column\",staticStyle:{\"min-height\":\"calc(100vh - 140px)\"}},[_c('v-col',[_c('v-row',{staticClass:\"pt-6 pb-4\",staticStyle:{\"max-width\":\"566px\"},attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"z-heading-h4 text-on-background\"},[_vm._v(\" \"+_vm._s(_vm.$tc(\"account.PersonalData\"))+\" \")]),(_vm.action != 'true')?_c('v-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isEdit == false),expression:\"isEdit == false\"}],staticClass:\"pa-0\",attrs:{\"cols\":\"auto\"}},[_c('z-plain-button',{attrs:{\"type\":\"neutral\",\"icon\":\"pencil\",\"iconOnly\":\"\",\"rules\":[_vm.required]},on:{\"click\":_vm.edit}})],1):_vm._e()],1),_c('v-form',{model:{value:(_vm.isFormValid),callback:function ($$v) {_vm.isFormValid=$$v},expression:\"isFormValid\"}},[_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"z-body-regular-small text-on-background\",attrs:{\"cols\":\"3\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"personalData.Email\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[(_vm.isEdit)?_c('div',{style:(!_vm.isFormValid && 'cursor: pointer'),on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;!_vm.isFormValid && _vm.disabledSnackbar()}}},[_c('z-text-field',{attrs:{\"errorMode\":\"icon\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"rules\":[_vm.required]},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.saveEdit.apply(null, arguments)}},model:{value:(_vm.personalDataChange.email),callback:function ($$v) {_vm.$set(_vm.personalDataChange, \"email\", $$v)},expression:\"personalDataChange.email\"}})],1):_c('span',{staticClass:\"text-on-background\"},[_vm._v(\" \"+_vm._s(_vm.personalDataChange.email)+\" \")])])],1),_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"z-body-regular-small text-on-background\",attrs:{\"cols\":\"3\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"personalData.PhoneNumber\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[(_vm.isEdit)?_c('div',{style:(!_vm.isFormValid && 'cursor: pointer'),on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;!_vm.isFormValid && _vm.disabledSnackbar()}}},[_c('z-text-field',{attrs:{\"errorMode\":\"icon\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"rules\":[_vm.required]},on:{\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.saveEdit.apply(null, arguments)}},model:{value:(_vm.personalDataChange.phoneNumber),callback:function ($$v) {_vm.$set(_vm.personalDataChange, \"phoneNumber\", $$v)},expression:\"personalDataChange.phoneNumber\"}})],1):_c('span',{staticClass:\"text-on-background\"},[_vm._v(\" \"+_vm._s(_vm.personalDataChange.phoneNumber)+\" \")])])],1),(_vm.isEdit)?_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"4\"}}),_c('v-col',{staticStyle:{\"max-width\":\"320px\"},attrs:{\"cols\":\"8\",\"align\":\"right\"}},[_c('v-row',[_c('v-col',{staticClass:\"pr-4\"},[_c('z-plain-button',{staticClass:\"mr-4\",attrs:{\"type\":\"neutral\"},on:{\"click\":_vm.cancel}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"personalData.Cancel\"))+\" \")])],1),_c('v-col',{staticClass:\"pl-0\",attrs:{\"cols\":\"auto\"}},[_c('div',{style:(!_vm.isFormValid && 'cursor: pointer'),on:{\"click\":function($event){!_vm.isFormValid && _vm.disabledSnackbar()}}},[_c('z-basic-button',{attrs:{\"disabled\":!_vm.isFormValid,\"cols\":\"auto\",\"type\":\"primary-color\",\"icon\":\"floppy-disc\"},on:{\"click\":_vm.saveEdit}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"personalData.SaveEdit\"))+\" \")])],1)])],1)],1)],1):_vm._e()],1)],1),_c('v-spacer'),(!_vm.isEdit)?_c('div',[(!_vm.pendingDelete)?_c('v-row',{staticClass:\"pt-6\"},[_c('v-col',[_c('z-basic-button',{attrs:{\"cols\":\"auto\",\"type\":\"neutral\",\"icon\":\"trash\"},on:{\"click\":_vm.deleteAccount}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"personalData.DeleteAccount\"))+\" \")])],1)],1):_vm._e(),(_vm.pendingDelete)?_c('v-row',{staticClass:\"pt-8\"},[_c('v-col',{attrs:{\"cols\":\"10\"},domProps:{\"innerHTML\":_vm._s(\n            _vm.$tc('personalData.PendingDelete') +\n            '(<b>' +\n            _vm.expiration +\n            '</b>)' +\n            '. ' +\n            _vm.$tc('personalData.DeleteInfo')\n          )}}),_c('v-col',{staticClass:\"pb-0 pt-4\",attrs:{\"cols\":\"10\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"personalData.ReactivatePlan\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('z-basic-button',{attrs:{\"cols\":\"auto\",\"type\":\"neutral\",\"icon\":\"rotate-2\"},on:{\"click\":_vm.reactivateAccount}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"personalData.ReactivateAccount\"))+\" \")])],1)],1):_vm._e()],1):_vm._e()],1),_c('z-dialog',{attrs:{\"persistent\":\"\",\"maxWidth\":\"400px\",\"title\":_vm.$tc('personalData.DeleteLaterTitle'),\"description\":_vm.$tc('personalData.DeleteLaterDescr'),\"actions\":[\n      {\n        slotText: _vm.$tc('password.Cancel'),\n        plainType: 'neutral',\n        icon: '',\n        action: () => (_vm.deleteLaterDialog = false),\n      },\n      {\n        slotText: _vm.$tc('personalData.Delete'),\n        type: 'error',\n        icon: 'trash',\n        action: () => _vm.deleteLater(),\n      },\n    ]},on:{\"undo\":function($event){_vm.deleteLaterDialog = false}},model:{value:(_vm.deleteLaterDialog),callback:function ($$v) {_vm.deleteLaterDialog=$$v},expression:\"deleteLaterDialog\"}}),_c('z-dialog',{attrs:{\"persistent\":\"\",\"maxWidth\":\"400px\",\"title\":_vm.$tc('personalData.DeleteNowTitle'),\"description\":_vm.$tc('personalData.DeleteNowDescr'),\"actions\":[\n      {\n        slotText: _vm.$tc('password.Cancel'),\n        plainType: 'neutral',\n        icon: '',\n        action: () => (_vm.deleteNowDialog = false),\n      },\n      {\n        slotText: _vm.$tc('personalData.Delete'),\n        type: 'error',\n        icon: 'trash',\n        action: () => _vm.deleteNow(),\n      },\n    ]},on:{\"undo\":function($event){_vm.deleteNowDialog = false}},model:{value:(_vm.deleteNowDialog),callback:function ($$v) {_vm.deleteNowDialog=$$v},expression:\"deleteNowDialog\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { PersonalDataChange } from \"@/models/entities/personal-data-change.interface\";\r\nimport store from \"@/store\";\r\nimport AuthModule from \"@/store/modules/auth.module\";\r\nimport OverlayModule from \"@/store/modules/overlay.module\";\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { getModule } from \"vuex-module-decorators\";\r\nimport { userService } from \"@/services/api/user.service\";\r\nimport { countryService } from \"@/services/api/country.service\";\r\nimport { required } from \"@/helpers/rules\";\r\nimport { Country } from \"@/models/entities/country.interface\";\r\nimport { SnackbarModule } from \"@zelando/vuelando\";\r\nimport { subscriptionPlansService } from \"@/services/api/subscription-plan.service\";\r\n\r\nconst authModule = getModule(AuthModule, store);\r\n\r\nconst overlayModule = getModule(OverlayModule, store);\r\n\r\nconst snackbarModule = getModule(SnackbarModule, store);\r\n\r\n@Component\r\nexport default class PersonalData extends Vue {\r\n  private action = \"\";\r\n  private isEdit = false;\r\n  private pendingDelete = false;\r\n  private deleteLaterDialog = false;\r\n  private deleteNowDialog = false;\r\n  private expiration = \"\";\r\n  private isFormValid = false;\r\n\r\n  private async edit() {\r\n    this.isEdit = true;\r\n  }\r\n\r\n  private personalDataChange: PersonalDataChange = {\r\n    // userDescription: \"\",\r\n    email: \"\",\r\n    phoneNumber: \"\",\r\n  };\r\n\r\n  private dataEdited = false;\r\n  private country: Country[] = [];\r\n  private required = required;\r\n  private item = \"it\";\r\n\r\n  async created(): Promise<void> {\r\n    overlayModule.showOverlay();\r\n    this.personalDataChange = (await userService.GetPersonalData()).data;\r\n    overlayModule.showOverlay();\r\n    this.country = (await countryService.GetAllCountry()).data;\r\n    this.pendingDelete = (await userService.GetLogicallyDeletedById()).data;\r\n    this.expiration = (await subscriptionPlansService.GetExpiration()).data;\r\n  }\r\n\r\n  private async saveEdit() {\r\n    if (this.isFormValid) {\r\n      try {\r\n        overlayModule.showOverlay();\r\n        await userService.UpdatePersonalData(this.personalDataChange);\r\n        authModule.setUsername(this.personalDataChange.email);\r\n        authModule.setEmail(this.personalDataChange.email);\r\n        this.isEdit = false;\r\n        snackbarModule.showSnackbar({\r\n          message: this.$tc(\"personalData.DataSuccess\"),\r\n          type: \"success\",\r\n          timer: 5000,\r\n        });\r\n      } catch (e) {\r\n        snackbarModule.showSnackbar({\r\n          message: this.$tc(\"personalData.DuplicatedMail\"),\r\n          type: \"error\",\r\n          timer: 5000,\r\n        });\r\n      }\r\n    } else {\r\n      snackbarModule.showSnackbar({\r\n        message: this.$tc(\"personalData.InsertData\"),\r\n        type: \"error\",\r\n        timer: 5000,\r\n      });\r\n    }\r\n  }\r\n\r\n  private async deleteAccount() {\r\n    var parse = this.expiration.split(\"/\");\r\n    var expirationDate =\r\n      new Date(parse[1] + \"/\" + parse[0] + \"/\" + parse[2]).getTime() >\r\n      new Date().getTime();\r\n    if (expirationDate) {\r\n      this.deleteLaterDialog = true;\r\n    } else {\r\n      this.deleteNowDialog = true;\r\n    }\r\n  }\r\n\r\n  private async deleteLater() {\r\n    overlayModule.showOverlay();\r\n    await userService.ChangeAccountStatusByID(true);\r\n    this.pendingDelete = (await userService.GetLogicallyDeletedById()).data;\r\n    this.deleteLaterDialog = false;\r\n    snackbarModule.showSnackbar({\r\n      message: this.$tc(\"personalData.AccountDeleted\"),\r\n      type: \"success\",\r\n      timer: 5000,\r\n    });\r\n  }\r\n\r\n  private async deleteNow() {\r\n    overlayModule.showOverlay();\r\n    await userService.PhysicalDeleteByID();\r\n    this.$router.push({\r\n      name: \"Logout\",\r\n    });\r\n  }\r\n\r\n  private async reactivateAccount() {\r\n    overlayModule.showOverlay();\r\n\r\n    await userService.ChangeAccountStatusByID(false);\r\n    overlayModule.showOverlay();\r\n    this.pendingDelete = (await userService.GetLogicallyDeletedById()).data;\r\n    snackbarModule.showSnackbar({\r\n      message: this.$tc(\"personalData.AccountReactivated\"),\r\n      type: \"success\",\r\n      timer: 5000,\r\n    });\r\n  }\r\n\r\n  private async cancel() {\r\n    overlayModule.showOverlay();\r\n    this.personalDataChange = (await userService.GetPersonalData()).data;\r\n    this.isEdit = false;\r\n  }\r\n\r\n  private disabledSnackbar() {\r\n    snackbarModule.showSnackbar({\r\n      message: this.$tc(\"personalData.InsertData\"),\r\n      type: \"error\",\r\n      timer: 5000,\r\n    });\r\n  }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalData.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalData.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PersonalData.vue?vue&type=template&id=f5619b72&\"\nimport script from \"./PersonalData.vue?vue&type=script&lang=ts&\"\nexport * from \"./PersonalData.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","import { Country } from \"@/models/entities/country.interface\";\r\nimport { ApiService } from \"@zelando/vuelando\";\r\n\r\nconst controller = \"country\";\r\n\r\nclass CountryService extends ApiService {\r\n  constructor() {\r\n    super(process.env.VUE_APP_API_ENDPOINT);\r\n  }\r\n\r\n  GetAllCountry() {\r\n    return this.getAll<Country[]>(`${controller}/getall`);\r\n  }\r\n}\r\n\r\nexport const countryService = new CountryService();\r\n","import { PromotionPlans } from \"@/models/entities/subscription-plan.interface\";\r\nimport { ApiService } from \"@zelando/vuelando\";\r\n\r\nconst controller = \"subscriptionplans\";\r\n\r\nclass SubscriptionPlansService extends ApiService {\r\n  constructor() {\r\n    super(process.env.VUE_APP_API_ENDPOINT);\r\n  }\r\n\r\n  GetAllOffert() {\r\n    return this.getAll<PromotionPlans[]>(`${controller}/getall`);\r\n  }\r\n\r\n  GetById(roleId: number) {\r\n    return this.getAll<PromotionPlans>(\r\n      `${controller}/getbyid?roleId=${roleId}`\r\n    );\r\n  }\r\n\r\n  GetExpiration() {\r\n    return this.getAll<string>(`${controller}/getexpiration`);\r\n  }\r\n}\r\n\r\nexport const subscriptionPlansService = new SubscriptionPlansService();\r\n"],"sourceRoot":""}