{"version":3,"sources":["webpack:///./src/views/Account/Components/PaymentsComponents/BillingAddressPage.vue","webpack:///./src/views/Account/Components/PaymentsComponents/BillingAddressPage.vue?8b99","webpack:///./src/views/Account/Components/PaymentsComponents/BillingAddressPage.vue?a29b","webpack:///./src/views/Account/Components/PaymentsComponents/BillingAddressPage.vue?1b5c","webpack:///./src/services/api/country.service.ts","webpack:///./src/services/api/subscription-plan.service.ts","webpack:///./src/views/Account/Components/PaymentsComponents/BillingAddressPage.vue?61c6"],"names":["staticClass","attrs","on","previousPage","_vm","href","text","$tc","path","current","staticStyle","model","isFormValid","callback","expression","_c","value","billingAddress","directives","rawName","$$v","required","nativeOn","_s","staticRenderFns","authModule","getModule","AuthModule","store","overlayModule","OverlayModule","BillingAddressPage","Vue","countryID","name","code2","companyName","vatID","sdiCode","companyAddress","city","postalCode","province","countryDescr","offertID","nameOffert","descrOffert","price","monthlyBeneficiaries","totalSubjects","firstSupport","secondSupport","freeTrial","expiration","roleId","priceMonthID","priceYearID","yearPrice","this","countries","countryService","GetAllCountry","data","userService","GetBillingAddressByID","showOverlay","promotionPlanOld","subscriptionPlansService","GetById","profileRoleID","promotionPlanNew","roleIdOld","UpdateBillingAddress","$router","push","params","context","payments","url","payment","durationMonth","priceId","month","paymentsService","CreateSession","window","open","back","backToPayments","onCountryClick","$vuetify","goTo","document","body","scrollHeight","container","__decorate","Prop","default","type","String","Number","Boolean","Ref","Component","component","controller","CountryService","ApiService","constructor","super","process","getAll","SubscriptionPlansService","GetAllOffert","GetExpiration"],"mappings":"6KAAyF,EAAU,W,IAAuCA,OAAmBC,EAAM,WAAQ,oBAAlC,OAA6C,UAAD,EAAkB,kBAACA,YAAM,O,MAAC,CAAoB,KAAO,OAAWC,CAAE,EAAC,kB,MAAC,C,KAA6BC,aAAkE,gBAAnK,GAAuKC,CAAmEJ,MAAW,SAAC,GAA8B,eAApBI,EAAID,aAAiC,EAAC,SAAe,oB,CAA2B,WAC3f,gD,YACW,Q,CACH,e,EAANE,a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ACEC,MAAMC,SAGRlD,gBACE,OAAOH,KAAKsD,OAAqBN,EAAH,YAI3B,MAAM9C,EAAiB,IAAI+C,G,2DCdlC,kDAEA,MAAMD,EAAa,oBAEnB,MAAMO,UAAiCL,gBACrCC,cACEC,MAAMC,SAGRG,eACE,OAAOxD,KAAKsD,OAA4BN,EAAH,WAGvCtC,QAAQd,GACN,OAAOI,KAAKsD,OACV,GAAGN,oBAA6BpD,KAIpC6D,gBACE,OAAOzD,KAAKsD,OAAkBN,EAAH,mBAIxB,MAAMvC,EAA2B,IAAI8C,G,kCCzB5C","file":"js/chunk-130bd799.035eaeb7.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('v-container',[_c('v-row',[_c('v-col',{staticClass:\"pb-0\",attrs:{\"cols\":\"12\"}},[_c('z-plain-button',{attrs:{\"icon\":\"arrow-left\",\"type\":\"neutral\"},on:{\"click\":function($event){_vm.previousPage == 'confirmplan' ? _vm.back() : _vm.backToPayments()}}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.Back\"))+\" \")])],1),_c('v-col',{staticClass:\"pt-0\"},[(_vm.previousPage == 'confirmplan')?_c('z-breadcrumb',{staticClass:\"pt-0\",attrs:{\"breadcrumb\":[\n {\n text: _vm.$tc('payments.Title'),\n href: { path: '/account/payments/home' },\n },\n {\n text: _vm.$tc('payments.ChangeSubscription'),\n href: { path: '/account/payments/overview' },\n },\n {\n text: _vm.$tc('payments.Confirm'),\n href: { path: '/account/payments/confirmplan' },\n },\n { text: _vm.$tc('payments.BillingAddress'), current: true },\n ]}}):_c('z-breadcrumb',{staticClass:\"pt-0\",attrs:{\"breadcrumb\":[\n {\n text: _vm.$tc('payments.Title'),\n href: { path: '/account/payments/home' },\n },\n { text: _vm.$tc('payments.BillingAddress'), current: true },\n ]}})],1)],1),_c('v-form',{staticStyle:{\"max-width\":\"500px\",\"margin-bottom\":\"170px\"},model:{value:(_vm.isFormValid),callback:function ($$v) {_vm.isFormValid=$$v},expression:\"isFormValid\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.Name'),\"rules\":[_vm.required],\"errorMode\":\"icon\"},model:{value:(_vm.billingAddress.companyName),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"companyName\", $$v)},expression:\"billingAddress.companyName\"}})],1),_c('v-col',{staticClass:\"info-col\",attrs:{\"cols\":\"12\"}},[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.InvoiceCode'),\"errorMode\":\"icon\",\"showRequiredness\":\"\"},model:{value:(_vm.billingAddress.sdiCode),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"sdiCode\", $$v)},expression:\"billingAddress.sdiCode\"}}),_c('z-icon',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$tc('payments.InvoiceCodeDescr')),expression:\"$tc('payments.InvoiceCodeDescr')\"}],staticClass:\"info-icon\",attrs:{\"name\":\"information\",\"fill\":\"var(--z-icon-primary-default)\"}})],1),_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.VATnumber'),\"errorMode\":\"icon\",\"showRequiredness\":\"\"},model:{value:(_vm.billingAddress.vatID),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"vatID\", $$v)},expression:\"billingAddress.vatID\"}})],1),_c('v-col',{staticStyle:{\"position\":\"relative\"},attrs:{\"cols\":\"12\"}},[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.Address'),\"rules\":[_vm.required],\"errorMode\":\"icon\"},model:{value:(_vm.billingAddress.companyAddress),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"companyAddress\", $$v)},expression:\"billingAddress.companyAddress\"}})],1),_c('v-col',[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.City'),\"rules\":[_vm.required],\"errorMode\":\"icon\"},model:{value:(_vm.billingAddress.city),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"city\", $$v)},expression:\"billingAddress.city\"}})],1),_c('v-col',[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.Province'),\"rules\":[_vm.required],\"errorMode\":\"icon\"},model:{value:(_vm.billingAddress.province),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"province\", $$v)},expression:\"billingAddress.province\"}})],1),_c('v-col',{staticStyle:{\"max-width\":\"190px\"},attrs:{\"cols\":\"12\"}},[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.PostAddress'),\"rules\":[_vm.required],\"errorMode\":\"icon\"},on:{\"input\":function($event){_vm.billingAddress.postalCode = _vm.billingAddress.postalCode\n .replace(/\\D/g, '')\n .trim()}},model:{value:(_vm.billingAddress.postalCode),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"postalCode\", $$v)},expression:\"billingAddress.postalCode\"}})],1),_c('v-col',{staticStyle:{\"position\":\"relative\"},attrs:{\"cols\":\"12\"}},[_c('z-autocomplete',{ref:\"countryAutocomplete\",attrs:{\"hideDetails\":\"\",\"label\":_vm.$tc('payments.Country'),\"rules\":[_vm.required],\"errorMode\":\"icon\",\"items\":_vm.countries,\"itemText\":\"name\",\"itemValue\":\"countryID\"},nativeOn:{\"click\":function($event){return _vm.onCountryClick.apply(null, arguments)}},model:{value:(_vm.billingAddress.countryID),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"countryID\", $$v)},expression:\"billingAddress.countryID\"}})],1)],1),_c('v-row',{staticClass:\"pt-4\"},[_c('v-col',{staticClass:\"pr-0\",attrs:{\"cols\":\"auto\"}},[_c('z-plain-button',{staticClass:\"mr-6\",attrs:{\"type\":\"neutral\"},on:{\"click\":_vm.backToPayments}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.Cancel\"))+\" \")])],1),_c('v-col',{attrs:{\"cols\":\"auto\"}},[(_vm.previousPage == 'confirmplan')?_c('z-basic-button',{attrs:{\"type\":\"primary-color\",\"icon\":\"arrow-right\",\"disabled\":!_vm.isFormValid},on:{\"click\":_vm.goToPayment}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.ConfirmAndPay\"))+\" \")]):_c('z-basic-button',{attrs:{\"type\":\"primary-color\",\"icon\":\"floppy-disc\",\"disabled\":!_vm.isFormValid},on:{\"click\":_vm.saveBillingAddress}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.Save\"))+\" \")])],1)],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Prop, Ref, Vue } from \"vue-property-decorator\";\r\nimport { required } from \"@/helpers/rules\";\r\nimport { getModule } from \"vuex-module-decorators\";\r\nimport AuthModule from \"@/store/modules/auth.module\";\r\nimport store from \"@/store\";\r\nimport { BillingAddress } from \"@/models/entities/billing-address.interface\";\r\nimport { paymentsService } from \"@/services/api/payments.service\";\r\nimport { countryService } from \"@/services/api/country.service\";\r\nimport OverlayModule from \"@/store/modules/overlay.module\";\r\nimport { Country } from \"@/models/entities/country.interface\";\r\nimport { PromotionPlans } from \"@/models/entities/subscription-plan.interface\";\r\nimport { subscriptionPlansService } from \"@/services/api/subscription-plan.service\";\r\nimport { userService } from \"@/services/api/user.service\";\r\nimport { UpgradePayment } from \"@/models/entities/upgrade-payment\";\r\n\r\nconst authModule = getModule(AuthModule, store);\r\nconst overlayModule = getModule(OverlayModule, store);\r\n\r\n@Component\r\nexport default class BillingAddressPage extends Vue {\r\n @Prop({ required: false, default: null, type: String })\r\n private previousPage: string;\r\n\r\n @Prop({ required: false, default: null, type: Number })\r\n private roleIdOld: number;\r\n\r\n @Prop({ required: false, default: null, type: Boolean })\r\n private month: boolean;\r\n\r\n @Ref(\"countryAutocomplete\")\r\n private countryAutocomplete: HTMLElement;\r\n\r\n private required = required;\r\n private isFormValid = false;\r\n private countries: Country[] = [\r\n {\r\n countryID: 0,\r\n name: \"\",\r\n code2: \"\",\r\n },\r\n ];\r\n\r\n private billingAddress: BillingAddress = {\r\n companyName: \"\",\r\n vatID: \"\",\r\n sdiCode: \"\",\r\n companyAddress: \"\",\r\n city: \"\",\r\n postalCode: \"\",\r\n province: \"\",\r\n countryID: 0,\r\n countryDescr: \"\",\r\n };\r\n\r\n private promotionPlanOld: PromotionPlans = {\r\n offertID: 0,\r\n nameOffert: \"\",\r\n descrOffert: \"\",\r\n price: \"\",\r\n monthlyBeneficiaries: \"\",\r\n totalSubjects: \"\",\r\n firstSupport: false,\r\n secondSupport: false,\r\n freeTrial: \"\",\r\n expiration: \"\",\r\n roleId: 0,\r\n priceMonthID: \"\",\r\n priceYearID: \"\",\r\n yearPrice: \"\",\r\n };\r\n\r\n private promotionPlanNew: PromotionPlans = {\r\n offertID: 0,\r\n nameOffert: \"\",\r\n descrOffert: \"\",\r\n price: \"\",\r\n monthlyBeneficiaries: \"\",\r\n totalSubjects: \"\",\r\n firstSupport: false,\r\n secondSupport: false,\r\n freeTrial: \"\",\r\n expiration: \"\",\r\n roleId: 0,\r\n priceMonthID: \"\",\r\n priceYearID: \"\",\r\n yearPrice: \"\",\r\n };\r\n\r\n private async created() {\r\n // this.userData = (await paymentsService.retriveCustomer()).data;\r\n this.countries = (await countryService.GetAllCountry()).data;\r\n this.billingAddress = (await userService.GetBillingAddressByID()).data;\r\n\r\n overlayModule.showOverlay();\r\n this.promotionPlanOld = (\r\n await subscriptionPlansService.GetById(authModule.profileRoleID)\r\n ).data;\r\n overlayModule.showOverlay();\r\n this.promotionPlanNew = (\r\n await subscriptionPlansService.GetById(this.roleIdOld)\r\n ).data;\r\n }\r\n\r\n private async saveBillingAddress() {\r\n overlayModule.showOverlay();\r\n await userService.UpdateBillingAddress(this.billingAddress);\r\n this.$router.push({\r\n name: \"account\",\r\n params: {\r\n context: \"payments\",\r\n payments: \"home\",\r\n },\r\n });\r\n }\r\n\r\n private async goToPayment() {\r\n overlayModule.showOverlay();\r\n // await paymentsService.updateCustomer(this.userData);\r\n await userService.UpdateBillingAddress(this.billingAddress);\r\n var url = \"\";\r\n let payment: UpgradePayment = {\r\n durationMonth: 0,\r\n priceId: \"\",\r\n };\r\n if (this.month) {\r\n payment.durationMonth = 1;\r\n payment.priceId = this.promotionPlanNew.priceMonthID;\r\n url = (await paymentsService.CreateSession(payment)).data;\r\n window.open(url, \"_self\");\r\n } else {\r\n payment.durationMonth = 12;\r\n payment.priceId = this.promotionPlanNew.priceYearID;\r\n url = (await paymentsService.CreateSession(payment)).data;\r\n window.open(url, \"_self\");\r\n }\r\n this.previousPage = \"\";\r\n this.$router.push({\r\n name: \"account\",\r\n params: {\r\n context: \"payments\",\r\n payments: \"home\",\r\n },\r\n });\r\n }\r\n\r\n private back() {\r\n this.$router.push({\r\n name: \"account\",\r\n params: {\r\n context: \"payments\",\r\n payments: \"confirmplan\",\r\n },\r\n });\r\n }\r\n\r\n private backToPayments() {\r\n this.$router.push({\r\n name: \"account\",\r\n params: {\r\n context: \"payments\",\r\n payments: \"home\",\r\n },\r\n });\r\n }\r\n\r\n private onCountryClick(): void {\r\n this.$vuetify.goTo(document.body.scrollHeight, {\r\n container: \".content-col\",\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!./BillingAddressPage.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!./BillingAddressPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BillingAddressPage.vue?vue&type=template&id=6e44b726&scoped=true&\"\nimport script from \"./BillingAddressPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./BillingAddressPage.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./BillingAddressPage.vue?vue&type=style&index=0&id=6e44b726&prod&scoped=true&lang=css&\"\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 \"6e44b726\",\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(`${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(`${controller}/getall`);\r\n }\r\n\r\n GetById(roleId: number) {\r\n return this.getAll(\r\n `${controller}/getbyid?roleId=${roleId}`\r\n );\r\n }\r\n\r\n GetExpiration() {\r\n return this.getAll(`${controller}/getexpiration`);\r\n }\r\n}\r\n\r\nexport const subscriptionPlansService = new SubscriptionPlansService();\r\n","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BillingAddressPage.vue?vue&type=style&index=0&id=6e44b726&prod&scoped=true&lang=css&\""],"sourceRoot":""}