{"version":3,"sources":["webpack:///./src/services/api/generate-xml.service.ts","webpack:///./src/services/api/country.service.ts","webpack:///./src/views/Account/Components/Administration.vue?a827","webpack:///./src/views/Account/Components/Administration.vue","webpack:///./src/views/Account/Components/Administration.vue?4dbe","webpack:///./src/views/Account/Components/Administration.vue?45d6","webpack:///./src/views/Account/Components/Administration.vue?64d9","webpack:///./src/services/api/subscription-plan.service.ts"],"names":["controller","GenerateXmlService","ApiService","constructor","super","process","GetDownloadXml","generateXml","firstTime","this","post","getMonthDownload","userID","getAll","clearMonthDownload","downloadXmlService","CountryService","GetAllCountry","countryService","attrs","staticClass","_vm","tableOptions","scopedSlots","key","fn","staticStyle","_c","class","Date","on","slotText","closeDialog","type","$event","model","value","callback","expression","modifyDialogUser","$tc","action","saveBillingAddress","billingAddress","ref","countries","isCancelMonthlyDownloadsOpen","snackbarModule","getModule","SnackbarModule","store","authModule","AuthModule","Administration","Vue","text","filterable","sortable","cellType","CellType","DEFAULT","BOOLEAN","DATE","CUSTOM","loading","search","actions","name","icon","tooltip","size","headers","values","user","itemsPerPage","profileRoleID","$router","push","userData","userService","GetAllUsers","loadOnlyEnabled","data","$set","p","subscriptionPlansService","GetAllOffert","plans","GetUserByID","expiration","toFormat","modifyDialog","date","split","UpdateUser","then","x","status","showSnackbar","message","timer","selectedUserID","GetBillingAddressAdmin","billingAddressDialog","AdminUpdateBillingAddress","defActions","plainType","closeCancelMonthlyDownloads","disabled","userMonthlyDownloadsCount","cancelMonthlyDownloadsSubmit","pop","filter","map","y","email","length","res","Component","component","staticRenderFns","SubscriptionPlansService","GetById","roleId","GetExpiration"],"mappings":"gHACA,kDAEA,MAAMA,EAAa,cAEnB,MAAMC,UAA2BC,gBAC/BC,cACEC,MAAMC,SAGRC,eAAeC,EAA0BC,GAEvC,OADAD,EAAYC,UAAYA,EACjBC,KAAKC,KACPV,EAAH,eACAO,GAIJI,iBAAiBC,GACf,OAAOH,KAAKI,OAAe,GAAGb,sBAA+BY,KAG/DE,mBAA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KI,OAA4Bb,EAAH,WAGvC0H,QAAQC,GACN,OAAOlH,KAAKI,OACV,GAAGb,oBAA6B2H,KAIpCC,gBACE,OAAOnH,KAAKI,OAAkBb,EAAH,mBAIxB,MAAMqF,EAA2B,IAAIoC,G","file":"js/chunk-71decb12.76f0f5cb.js","sourcesContent":["import { GenerateXml } from \"@/models/entities/generate-xml.interface\";\r\nimport { ApiService } from \"@zelando/vuelando\";\r\n\r\nconst controller = \"downloadxml\";\r\n\r\nclass GenerateXmlService extends ApiService {\r\n constructor() {\r\n super(process.env.VUE_APP_API_ENDPOINT);\r\n }\r\n\r\n GetDownloadXml(generateXml: GenerateXml, firstTime: boolean) {\r\n generateXml.firstTime = firstTime;\r\n return this.post(\r\n `${controller}/downloadxml`,\r\n generateXml\r\n );\r\n }\r\n\r\n getMonthDownload(userID: number) {\r\n return this.getAll(`${controller}/getMonthDownload/${userID}`);\r\n }\r\n\r\n clearMonthDownload(userID: number) {\r\n return this.post(\r\n `${controller}/clearMonthDownload/${userID}`,\r\n null\r\n );\r\n }\r\n}\r\n\r\nexport const downloadXmlService = new GenerateXmlService();\r\n","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","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!./Administration.vue?vue&type=style&index=0&id=087b1946&prod&scoped=true&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('v-container',[_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"z-heading-h4 text-on-background\"},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.UserManage\"))+\" \")])],1),_c('v-row',[_c('v-col',[_c('z-data-table',{staticClass:\"mod--old_vuelando\",attrs:{\"no-data-text\":_vm.$tc('home.NoData'),\"items\":_vm.tableOptions,\"items-per-page\":_vm.tableOptions.itemsPerPage,\"search\":_vm.tableOptions.search,\"singleSelect\":\"\",\"type\":\"editable\",\"disableDragAndDrop\":\"\",\"hideCheckbox\":\"\",\"disableTableHeightCalcOnUpdate\":\"\"},scopedSlots:_vm._u([{key:\"expiration\",fn:function({ item }){return [_c('div',{staticStyle:{\"align-items\":\"start\",\"display\":\"flex\",\"width\":\"max-content\"}},[_c('span',{class:new Date(item.expiration) > new Date()\n ? 'text-on-background'\n : 'text-red'},[_vm._v(\" \"+_vm._s(new Date(item.expiration).toFormat(\"dd/MM/yyyy\"))+\" \")])])]}},{key:\"action\",fn:function({ item }){return [_c('div',{staticStyle:{\"align-items\":\"start\",\"display\":\"flex\",\"width\":\"max-content\"}},[_c('z-plain-button',{attrs:{\"icon\":\"pencil\",\"iconOnly\":\"\",\"type\":\"neutral\",\"size\":\"extra-small\"},on:{\"click\":function($event){return _vm.openModifyUser(item.userID)}}}),_c('z-plain-button',{attrs:{\"icon\":\"user\",\"iconOnly\":\"\",\"type\":\"neutral\",\"size\":\"extra-small\"},on:{\"click\":function($event){return _vm.openBillingAddress(item.userID)}}}),_c('z-plain-button',{attrs:{\"type\":\"primary\",\"size\":\"extra-small\"},on:{\"click\":function($event){return _vm.cancelMonthlyDownloads(item.userID)}}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.CancelMonthlyDownloadsBtn\"))+\" \")])],1)]}}])})],1)],1),_c('z-dialog',{attrs:{\"persistent\":\"\",\"title\":_vm.modifyDialogUser.email,\"maxWidth\":\"616px\",\"description\":\"\",\"actions\":[\n {\n slotText: _vm.$tc('administration.Cancel'),\n plainType: 'primary',\n action: () => {\n _vm.closeDialog();\n },\n },\n {\n slotText: _vm.$tc('administration.Save'),\n type: 'primary-color',\n action: () => _vm.saveUser(),\n },\n ]},on:{\"undo\":function($event){return _vm.closeDialog()}},scopedSlots:_vm._u([{key:\"description\",fn:function(){return [_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.Username\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\",\"disabled\":\"\"},model:{value:(_vm.modifyDialogUser.email),callback:function ($$v) {_vm.$set(_vm.modifyDialogUser, \"email\", $$v)},expression:\"modifyDialogUser.email\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.PhoneNumber\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.modifyDialogUser.phoneNumber),callback:function ($$v) {_vm.$set(_vm.modifyDialogUser, \"phoneNumber\", $$v)},expression:\"modifyDialogUser.phoneNumber\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.LicenceType\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-select',{attrs:{\"items\":_vm.plans,\"item-value\":\"roleId\",\"item-text\":\"nameOffert\"},model:{value:(_vm.modifyDialogUser.profileRoleID),callback:function ($$v) {_vm.$set(_vm.modifyDialogUser, \"profileRoleID\", $$v)},expression:\"modifyDialogUser.profileRoleID\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.Expiration\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.modifyDialogUser.expiration),callback:function ($$v) {_vm.$set(_vm.modifyDialogUser, \"expiration\", $$v)},expression:\"modifyDialogUser.expiration\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.Active\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-checkbox',{model:{value:(_vm.modifyDialogUser.isEnabled),callback:function ($$v) {_vm.$set(_vm.modifyDialogUser, \"isEnabled\", $$v)},expression:\"modifyDialogUser.isEnabled\"}})],1)],1),_c('v-row',{staticClass:\"pb-3\"},[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"administration.LicenceNotes\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.modifyDialogUser.notes),callback:function ($$v) {_vm.$set(_vm.modifyDialogUser, \"notes\", $$v)},expression:\"modifyDialogUser.notes\"}})],1)],1)]},proxy:true}]),model:{value:(_vm.modifyDialog),callback:function ($$v) {_vm.modifyDialog=$$v},expression:\"modifyDialog\"}}),_c('z-dialog',{attrs:{\"persistent\":\"\",\"title\":_vm.modifyDialogUser.email,\"maxWidth\":\"616px\",\"description\":\"\",\"actions\":[\n {\n slotText: _vm.$tc('administration.Cancel'),\n plainType: 'primary',\n action: () => _vm.closeBillingAddress(),\n },\n {\n slotText: _vm.$tc('administration.Save'),\n type: 'primary-color',\n action: () => _vm.saveBillingAddress(),\n },\n ]},on:{\"undo\":function($event){_vm.billingAddressDialog = false}},scopedSlots:_vm._u([{key:\"description\",fn:function(){return [_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.Name\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"hideDetails\":\"\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"errorMode\":\"icon\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.companyName),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"companyName\", $$v)},expression:\"billingAddress.companyName\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.Address\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.companyAddress),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"companyAddress\", $$v)},expression:\"billingAddress.companyAddress\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.City\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.city),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"city\", $$v)},expression:\"billingAddress.city\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.Province\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.province),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"province\", $$v)},expression:\"billingAddress.province\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.PostAddress\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.postalCode),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"postalCode\", $$v)},expression:\"billingAddress.postalCode\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.Country\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-autocomplete',{ref:\"countryAutocomplete\",attrs:{\"hideDetails\":\"\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"errorMode\":\"icon\",\"items\":_vm.countries,\"itemText\":\"name\",\"itemValue\":\"countryID\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.countryID),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"countryID\", $$v)},expression:\"billingAddress.countryID\"}})],1)],1),_c('v-row',[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.InvoiceCode\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.sdiCode),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"sdiCode\", $$v)},expression:\"billingAddress.sdiCode\"}})],1)],1),_c('v-row',{staticClass:\"pb-3\"},[_c('v-col',{staticStyle:{\"align-self\":\"center\",\"max-width\":\"150px\"}},[_vm._v(\" \"+_vm._s(_vm.$tc(\"payments.VATnumber\"))+\" \")]),_c('v-col',{attrs:{\"cols\":\"9\"}},[_c('z-text-field',{attrs:{\"type\":\"text\",\"removeHintSpace\":\"\",\"removeLabelSpace\":\"\",\"width\":\"400px\"},model:{value:(_vm.billingAddress.vatID),callback:function ($$v) {_vm.$set(_vm.billingAddress, \"vatID\", $$v)},expression:\"billingAddress.vatID\"}})],1)],1)]},proxy:true}]),model:{value:(_vm.billingAddressDialog),callback:function ($$v) {_vm.billingAddressDialog=$$v},expression:\"billingAddressDialog\"}}),_c('z-dialog',{attrs:{\"persistent\":\"\",\"title\":_vm.cancelMonthlyDownloadsTitle,\"maxWidth\":\"600px\",\"description\":_vm.cancelMonthlyDownloadsDescription,\"actions\":_vm.cancelMonthlyDownloadsActions},on:{\"undo\":function($event){_vm.isCancelMonthlyDownloadsOpen = false}},model:{value:(_vm.isCancelMonthlyDownloadsOpen),callback:function ($$v) {_vm.isCancelMonthlyDownloadsOpen=$$v},expression:\"isCancelMonthlyDownloadsOpen\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport store from \"@/store\";\r\nimport { getModule } from \"vuex-module-decorators\";\r\nimport { userService } from \"@/services/api/user.service\";\r\nimport { User } from \"@/models/entities/user.interface\";\r\nimport { CellType, DataTable, Header, TableAction } from \"@zelando/vuelando\";\r\nimport AuthModule from \"@/store/modules/auth.module\";\r\nimport { subscriptionPlansService } from \"@/services/api/subscription-plan.service\";\r\nimport { PromotionPlans } from \"@/models/entities/subscription-plan.interface\";\r\nimport { BillingAddress } from \"@/models/entities/billing-address.interface\";\r\nimport { Country } from \"@/models/entities/country.interface\";\r\nimport { countryService } from \"@/services/api/country.service\";\r\nimport { SnackbarModule } from \"@zelando/vuelando\";\r\nimport { downloadXmlService } from \"@/services/api/generate-xml.service\";\r\n\r\nconst snackbarModule = getModule(SnackbarModule, store);\r\nconst authModule = getModule(AuthModule, store);\r\n\r\n@Component\r\nexport default class Administration extends Vue {\r\n private user = [] as User[];\r\n private profileRoleID = -1;\r\n private loadOnlyEnabled = false;\r\n private modifyDialog = false;\r\n private billingAddressDialog = false;\r\n private modifyDialogUser = {} as User;\r\n private plans = [] as PromotionPlans[];\r\n private selectedUserID = -1;\r\n private billingAddress: BillingAddress = {} as BillingAddress;\r\n\r\n private headers: Header[] = [\r\n {\r\n text: this.$tc(\"administration.UserId\"),\r\n value: \"userID\",\r\n filterable: true,\r\n sortable: true,\r\n cellType: CellType.DEFAULT,\r\n },\r\n {\r\n text: this.$tc(\"administration.IsEnabled\"),\r\n value: \"isEnabled\",\r\n filterable: false,\r\n sortable: false,\r\n cellType: CellType.BOOLEAN,\r\n },\r\n {\r\n text: this.$tc(\"administration.Email\"),\r\n value: \"email\",\r\n filterable: true,\r\n sortable: true,\r\n cellType: CellType.DEFAULT,\r\n },\r\n {\r\n text: this.$tc(\"administration.PhoneNumber\"),\r\n value: \"phoneNumber\",\r\n filterable: true,\r\n sortable: true,\r\n cellType: CellType.DEFAULT,\r\n },\r\n {\r\n text: this.$tc(\"administration.CreatedOn\"),\r\n value: \"createdOn\",\r\n filterable: true,\r\n sortable: true,\r\n cellType: CellType.DATE,\r\n },\r\n {\r\n text: this.$tc(\"administration.Expiration\"),\r\n value: \"expiration\",\r\n filterable: true,\r\n sortable: true,\r\n cellType: CellType.CUSTOM,\r\n },\r\n {\r\n text: this.$tc(\"administration.LastLogin\"),\r\n value: \"lastLogin\",\r\n filterable: true,\r\n sortable: true,\r\n cellType: CellType.DATE,\r\n },\r\n {\r\n text: this.$tc(\"administration.Role\"),\r\n value: \"roleDescription\",\r\n filterable: true,\r\n sortable: true,\r\n cellType: CellType.DEFAULT,\r\n },\r\n {\r\n text: \"\",\r\n value: \"action\",\r\n filterable: false,\r\n sortable: false,\r\n cellType: CellType.CUSTOM,\r\n },\r\n ];\r\n\r\n private tableOptions: DataTable = {\r\n key: \"userID\",\r\n loading: false,\r\n search: \"\",\r\n actions: [\r\n {\r\n name: \"edit\",\r\n icon: \"trash\",\r\n tooltip: this.$tc(\"home.Delete\"),\r\n size: \"extra-small\",\r\n } as TableAction,\r\n ],\r\n headers: this.headers,\r\n values: this.user,\r\n itemsPerPage: 15,\r\n };\r\n\r\n private countries: Country[] = [];\r\n\r\n async created(): Promise {\r\n if (authModule.profileRoleID !== 1) {\r\n this.$router.push({\r\n name: \"Logout\",\r\n });\r\n }\r\n let userData = await userService.GetAllUsers(\r\n this.profileRoleID,\r\n this.loadOnlyEnabled\r\n );\r\n this.user = userData.data;\r\n this.$set(this.tableOptions, \"values\", this.user);\r\n var p = await subscriptionPlansService.GetAllOffert();\r\n this.plans = p.data;\r\n this.countries = (await countryService.GetAllCountry()).data;\r\n }\r\n\r\n private async openModifyUser(userID: number) {\r\n let userData = await userService.GetUserByID(userID);\r\n this.modifyDialogUser = userData.data;\r\n this.modifyDialogUser.expiration = new Date(\r\n this.modifyDialogUser.expiration\r\n ).toFormat(\"dd/MM/yyyy\");\r\n this.modifyDialog = true;\r\n }\r\n private async closeDialog() {\r\n await userService.GetAllUsers(this.profileRoleID, this.loadOnlyEnabled);\r\n this.$set(this.tableOptions, \"values\", this.user);\r\n this.modifyDialog = false;\r\n }\r\n\r\n private async saveUser() {\r\n const date = this.modifyDialogUser.expiration.split(\"/\");\r\n this.modifyDialogUser.expiration = new Date(\r\n new Date(date[2] + \"-\" + date[1] + \"-\" + date[0])\r\n ).toFormat(\"yyyy-MM-dd\");\r\n await userService.UpdateUser(this.modifyDialogUser).then((x) => {\r\n if (x.status == 200) {\r\n snackbarModule.showSnackbar({\r\n message: this.$tc(\"administration.ModifiedOK\"),\r\n type: \"success\",\r\n timer: 5000,\r\n });\r\n }\r\n });\r\n await this.closeDialog();\r\n await userService\r\n .GetAllUsers(this.profileRoleID, this.loadOnlyEnabled)\r\n .then((x) => {\r\n if (x.status == 200) {\r\n this.user = x.data;\r\n this.$set(this.tableOptions, \"values\", this.user);\r\n }\r\n });\r\n }\r\n\r\n private async openBillingAddress(userID: number) {\r\n this.selectedUserID = userID;\r\n this.billingAddress = (\r\n await userService.GetBillingAddressAdmin(userID)\r\n ).data;\r\n this.billingAddressDialog = true;\r\n }\r\n\r\n private async closeBillingAddress() {\r\n this.billingAddressDialog = false;\r\n this.selectedUserID = -1;\r\n }\r\n\r\n private async saveBillingAddress() {\r\n await userService\r\n .AdminUpdateBillingAddress(this.billingAddress, this.selectedUserID)\r\n .then((x) => {\r\n if (x.status == 200) {\r\n snackbarModule.showSnackbar({\r\n message: this.$tc(\"administration.ModifiedOK\"),\r\n type: \"success\",\r\n timer: 5000,\r\n });\r\n }\r\n });\r\n this.billingAddressDialog = false;\r\n this.selectedUserID = -1;\r\n }\r\n\r\n private isCancelMonthlyDownloadsOpen = false;\r\n private userMonthlyDownloadsCount = 0;\r\n\r\n get cancelMonthlyDownloadsActions(): unknown[] {\r\n const defActions = [\r\n {\r\n slotText: this.$tc(\"administration.Cancel\"),\r\n plainType: \"primary\",\r\n action: () => this.closeCancelMonthlyDownloads(),\r\n },\r\n {\r\n slotText: this.$tc(\"administration.CancelMonthlyDownloadsBtnConfirm\"),\r\n type: \"primary-color\",\r\n disabled: !this.userMonthlyDownloadsCount,\r\n action: () => this.cancelMonthlyDownloadsSubmit(),\r\n },\r\n ];\r\n if (!(this.userMonthlyDownloadsCount > 0)) {\r\n defActions.pop();\r\n }\r\n return defActions;\r\n }\r\n\r\n get cancelMonthlyDownloadsTitle(): string {\r\n if (this.isCancelMonthlyDownloadsOpen) {\r\n const userData = this.user\r\n .filter((x) => x.userID === this.selectedUserID)\r\n .map((y) => y.email);\r\n return userData.length > 0 ? userData[0] : \"\";\r\n }\r\n return \"\";\r\n }\r\n\r\n get cancelMonthlyDownloadsDescription(): string {\r\n if (this.isCancelMonthlyDownloadsOpen && this.userMonthlyDownloadsCount) {\r\n return (\r\n this.$tc(\"administration.CancelMonthlyDownloadsDescription\") +\r\n this.userMonthlyDownloadsCount\r\n );\r\n } else {\r\n return this.$tc(\"administration.CancelMonthlyDownloadsDescriptionNoData\");\r\n }\r\n }\r\n\r\n private async cancelMonthlyDownloads(userID: number) {\r\n this.selectedUserID = userID;\r\n const res = await downloadXmlService.getMonthDownload(userID);\r\n this.userMonthlyDownloadsCount = res.data;\r\n this.isCancelMonthlyDownloadsOpen = true;\r\n }\r\n\r\n private async cancelMonthlyDownloadsSubmit() {\r\n const res = await downloadXmlService.clearMonthDownload(\r\n this.selectedUserID\r\n );\r\n snackbarModule.showSnackbar({\r\n message: this.$tc(\"administration.CancelMonthlyDownloadsOK\"),\r\n type: res.status === 200 ? \"success\" : \"error\",\r\n timer: 5000,\r\n });\r\n this.closeCancelMonthlyDownloads();\r\n }\r\n\r\n private async closeCancelMonthlyDownloads() {\r\n this.selectedUserID = -1;\r\n this.isCancelMonthlyDownloadsOpen = false;\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!./Administration.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!./Administration.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Administration.vue?vue&type=template&id=087b1946&scoped=true&\"\nimport script from \"./Administration.vue?vue&type=script&lang=ts&\"\nexport * from \"./Administration.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Administration.vue?vue&type=style&index=0&id=087b1946&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 \"087b1946\",\n null\n \n)\n\nexport default component.exports","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"],"sourceRoot":""}