{"version":3,"sources":["webpack:///./src/views/App/Tools/BranchesManagement/index.vue?09ec","webpack:///./src/views/App/Tools/BranchesManagement/BranchCard.vue?b0c3","webpack:///./src/views/App/Tools/BranchesManagement/EditInstallationsBranchDialog.vue?53cb","webpack:///./src/model/communication/branch/GetBranchInstallationsCommand.ts","webpack:///./src/model/communication/branch/EditBranchInstallationsReqData.ts","webpack:///./src/views/App/Tools/BranchesManagement/EditInstallationsBranchDialog.vue","webpack:///./src/views/App/Tools/BranchesManagement/EditInstallationsBranchDialog.vue?b226","webpack:///./src/views/App/Tools/BranchesManagement/EditInstallationsBranchDialog.vue?25fa","webpack:///./src/views/App/Tools/BranchesManagement/BranchCard.vue","webpack:///./src/views/App/Tools/BranchesManagement/BranchCard.vue?a81e","webpack:///./src/views/App/Tools/BranchesManagement/BranchCard.vue?4925","webpack:///./src/views/App/Tools/BranchesManagement/AddNewBranchDialog.vue?7b8d","webpack:///./src/views/App/Tools/BranchesManagement/AddNewBranchDialog.vue","webpack:///./src/views/App/Tools/BranchesManagement/AddNewBranchDialog.vue?3452","webpack:///./src/views/App/Tools/BranchesManagement/AddNewBranchDialog.vue?590c","webpack:///./src/model/communication/branch/DeleteBranchCommand.ts","webpack:///./src/model/communication/branch/EditBranchCommand.ts","webpack:///./src/model/communication/branch/CreateBranchCommand.ts","webpack:///./src/model/communication/branch/GetInstallationsCountByBranchResData.ts","webpack:///./src/model/communication/branch/GetInstallationsCountByBranchCommand.ts","webpack:///./src/model/communication/fitnessStatistics/AnyStatisticsWithBranchIdCommand.ts","webpack:///./src/model/communication/branch/EditBranchInstallationsCommand.ts","webpack:///./src/views/App/Tools/BranchesManagement/index.vue","webpack:///./src/views/App/Tools/BranchesManagement/index.vue?a967","webpack:///./src/views/App/Tools/BranchesManagement/index.vue?558a"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","title","icon","color","branchesWithInstallationsCount","search","scopedSlots","_u","key","fn","class","$vuetify","breakpoint","smAndDown","staticClass","$t","model","value","callback","$$v","expression","on","$event","CRUD","proxy","ref","items","_v","_s","errorMessage","_e","loading","loadingInstallationsCountByBranch","loadingEditInstallationsBranch","_l","item","id","deleteBranch","editInstallationsBranch","showDeleteConfirmationDialog","selectedBranchIdForDelete","staticRenderFns","localBranch","isEditMode","$set","domProps","name","_g","globalInstallationsCount","onDelete","gln","location","$emit","toggleEditMode","isLocalBranchNameNullOrWhitespaces","onSave","mdAndDown","visibleInstallationsCount","dialog","branch","staticStyle","branchInstallations","filter","d","type","DeviceTreeNodeTypeEnum","Device","length","ENDPOINT","branchId","endPoint","httpVerb","executeCommand","res","Command","response","installationNames","data","Payload","Array","isArray","InstallationNames","ApiGenericResponse","extend","components","DeviceTree","branchInstallationNames","props","computed","deviceTree","state","devices","showAlertIcon","watch","onOpenDialog","onCloseDialog","newValue","checkNode","node","initialValues","forEach","initialValue","temp","license","completeNodes","push","Folder","children","childNode","methods","getBranchInstallations","req","map","execute","responseStatus","ApiResponseStatusEnum","Success","console","error","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VChip","VDialog","VDivider","VSkeletonLoader","EditInstallationsBranchDialog","required","Object","match","assign","mounted","VCardSubtitle","VContainer","VTextField","VToolbar","VToolbarTitle","VTooltip","createFolder","onClose","createFolderEnabled","authUserHasPrivilege","DevicesManagement","reset","VCheckbox","params","GetBranchesResData","installationsCountByBranch","Map","parse","obj","InstallationsCountByBranch","branchInstallationsCountings","set","Number","VisibleInstallationsCount","GlobalInstallationsCount","result","Result","AppPage","BranchCard","AddNewBranchDialog","routes","loadingAnyStatisticsWithBranchId","addNewBranchDialog","branches","menuRoutes","$store","getters","availableMenu","styleProps","found","resultObj","findIconColorAndTitle","child","path","BranchesManagement","name_i18n","route","currentBranch","has","get","request","createBranch","getBranches","availableBranches","responseString","Promise","r","setTimeout","content","message","GetBranchesCommand","GetBranchesReqData","warn","getInstallationsCountByBranch","VAlert","VCol","VDataIterator","VRow"],"mappings":"6IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,K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A,KAAQ4E,QAAA,KAAK1E,kBAAA,KAAgBS,aAAA,KAAWC,WAAA","file":"js/chunk_app_branches_management_view.7df42e0a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('AppPage',{attrs:{\"pageTitle\":_vm.title,\"icon\":_vm.icon,\"color\":_vm.color}},[_c('v-data-iterator',{attrs:{\"items\":_vm.branchesWithInstallationsCount,\"search\":_vm.search,\"items-per-page\":8,\"footer-props\":{ 'items-per-page-options': [4, 8, 20, 40] }},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('v-container',{class:_vm.$vuetify.breakpoint.smAndDown ? 'ma-0' : 'mx-3',attrs:{\"fluid\":\"\"}},[_c('v-row',[_c('v-col',{attrs:{\"cols\":_vm.$vuetify.breakpoint.smAndDown ? 8 : '',\"align-self\":\"center\"}},[_c('v-toolbar',{staticClass:\"mb-1\",attrs:{\"outlined\":\"\",\"rounded\":\"\"}},[_c('v-text-field',{attrs:{\"clearable\":\"\",\"flat\":\"\",\"hide-details\":\"\",\"prepend-inner-icon\":\"fa-search\",\"label\":_vm.$vuetify.breakpoint.smAndDown ? _vm.$t('common.search') : _vm.$t('branchesManagement.filterBy')},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1)],1),_c('v-col',{attrs:{\"cols\":_vm.$vuetify.breakpoint.smAndDown ? 4 : '',\"align-self\":\"center\"}},[_c('AddNewBranchDialog',{on:{\"add\":function($event){return _vm.CRUD(null, $event, 'C')}}})],1)],1)],1)]},proxy:true},{key:\"default\",fn:function(ref){\nvar items = ref.items;\nreturn [(_vm.error)?_c('v-row',{attrs:{\"justify\":\"center\"}},[_c('v-alert',{attrs:{\"type\":\"error\"}},[_vm._v(_vm._s(_vm.errorMessage))])],1):_vm._e(),_c('v-skeleton-loader',{attrs:{\"type\":\"table-row@6\",\"loading\":_vm.loading || _vm.loadingInstallationsCountByBranch || _vm.loadingEditInstallationsBranch}},[_c('v-container',{attrs:{\"fluid\":\"\"}},[_c('v-row',_vm._l((items),function(item){return _c('v-col',{key:item.id,attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('BranchCard',{attrs:{\"branch\":item},on:{\"delete\":function($event){return _vm.deleteBranch($event)},\"edit\":function($event){return _vm.CRUD(null, $event, 'U')},\"edit-installations\":function($event){return _vm.editInstallationsBranch($event)}}})],1)}),1)],1)],1)]}},{key:\"no-data\",fn:function(){return [_c('v-skeleton-loader',{attrs:{\"type\":\"table-row@6\",\"loading\":true}})]},proxy:true}])}),_c('v-dialog',{attrs:{\"width\":_vm.$vuetify.breakpoint.smAndDown ? '95%' : '70%'},model:{value:(_vm.showDeleteConfirmationDialog),callback:function ($$v) {_vm.showDeleteConfirmationDialog=$$v},expression:\"showDeleteConfirmationDialog\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"text-h5\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"branchesManagement.confirmToDelete\"))+\" \")]),_c('v-card-text',[_vm._v(\" \"+_vm._s(_vm.$t(\"branchesManagement.anyStatisticsWarning\"))+\" \")]),_c('v-card-actions',{staticClass:\"d-flex justify-center\"},[_c('v-btn',{attrs:{\"color\":\"error\"},on:{\"click\":function($event){_vm.showDeleteConfirmationDialog = false}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"branchesManagement.cancelDeletion\"))+\" \")]),_c('v-btn',{attrs:{\"color\":\"success\"},on:{\"click\":function($event){_vm.CRUD(_vm.selectedBranchIdForDelete, null, 'D');\n _vm.showDeleteConfirmationDialog = false;}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"branchesManagement.confirmDeletion\"))+\" \")])],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[(_vm.localBranch != null)?_c('v-card',[_c('v-toolbar',{staticClass:\"white--text\",attrs:{\"elevation\":\"1\",\"color\":\"primary\"}},[(!_vm.isEditMode)?_c('v-toolbar-title',{domProps:{\"textContent\":_vm._s(_vm.localBranch.name)}}):_c('v-text-field',{staticClass:\"pa-0 ma-0\",attrs:{\"hide-details\":\"\",\"dark\":\"\"},model:{value:(_vm.localBranch.name),callback:function ($$v) {_vm.$set(_vm.localBranch, \"name\", $$v)},expression:\"localBranch.name\"}}),(_vm.isEditMode)?_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({key:4,attrs:{\"icon\":\"\",\"disabled\":_vm.localBranch.globalInstallationsCount != 0,\"dark\":\"\"},on:{\"click\":function($event){return _vm.onDelete()}}},on),[_c('v-fa-icon',{attrs:{\"icon\":\"trash\"}})],1)]}}],null,false,1523116871)},[_c('span',{domProps:{\"textContent\":_vm._s(_vm.$t('branchesManagement.deleteBranch'))}})]):_vm._e()],1),_c('v-card-subtitle',{staticClass:\"pb-0\",domProps:{\"textContent\":_vm._s(_vm.$t('statisticsReport.GLN'))}}),(!_vm.isEditMode)?_c('v-card-text',{staticClass:\"pb-0 text--primary font-weight-medium text-h6\",domProps:{\"textContent\":_vm._s(_vm.localBranch.gln ? _vm.localBranch.gln : '-')}}):_c('v-text-field',{staticClass:\"py-0 px-4 ma-0\",attrs:{\"hide-details\":\"\"},model:{value:(_vm.localBranch.gln),callback:function ($$v) {_vm.$set(_vm.localBranch, \"gln\", $$v)},expression:\"localBranch.gln\"}}),_c('v-card-subtitle',{staticClass:\"pb-0\",domProps:{\"textContent\":_vm._s(_vm.$t('branchesManagement.location'))}}),(!_vm.isEditMode)?_c('v-card-text',{staticClass:\"pb-0 text--primary font-weight-medium text-h6\",domProps:{\"textContent\":_vm._s(_vm.localBranch.location ? _vm.localBranch.location : '-')}}):_c('v-text-field',{staticClass:\"py-0 px-4 ma-0\",attrs:{\"hide-details\":\"\"},model:{value:(_vm.localBranch.location),callback:function ($$v) {_vm.$set(_vm.localBranch, \"location\", $$v)},expression:\"localBranch.location\"}}),_c('v-card-subtitle',{staticClass:\"pb-0\",domProps:{\"textContent\":_vm._s(_vm.$t('common.associatedWith'))}}),_c('v-card-text',{staticClass:\"pb-0 text--primary font-weight-medium text-h6\"},[_c('EditInstallationsBranchDialog',{attrs:{\"branch\":_vm.localBranch,\"isEditMode\":_vm.isEditMode},on:{\"edit-installations\":function($event){return _vm.$emit('edit-installations', $event)}}})],1),_c('v-card-actions',{staticClass:\"d-flex justify-end\"},[(!_vm.isEditMode)?_c('v-btn',{key:1,attrs:{\"color\":\"orange\",\"text\":\"\"},on:{\"click\":function($event){return _vm.toggleEditMode()}}},[_c('v-fa-icon',{staticClass:\"mr-1\",attrs:{\"icon\":\"edit\",\"small\":\"\"}}),_vm._v(\" \"+_vm._s(_vm.$t(\"common.edit\"))+\" \")],1):_vm._e(),(_vm.isEditMode)?_c('v-btn',{key:3,attrs:{\"color\":\"orange\",\"text\":\"\"},domProps:{\"textContent\":_vm._s(_vm.$t('common.cancel'))},on:{\"click\":function($event){return _vm.toggleEditMode()}}}):_vm._e(),(_vm.isEditMode)?_c('v-btn',{key:2,staticClass:\"white--text\",attrs:{\"color\":\"orange\",\"disabled\":_vm.isLocalBranchNameNullOrWhitespaces},on:{\"click\":function($event){return _vm.onSave()}}},[_c('v-fa-icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"check-circle\",\"small\":\"\"}}),_vm._v(\" \"+_vm._s(_vm.$t(\"common.save\"))+\" \")],1):_vm._e()],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.isEditMode)?_c('v-chip',{staticClass:\"px-3\",attrs:{\"outlined\":\"\",\"color\":\"primary\"}},[_c('v-card-text',{staticClass:\"px-0 font-weight-medium text-subtitle-1 text-capitalize\",domProps:{\"textContent\":_vm._s(_vm.visibleInstallationsCount + ' ' + _vm.$t('common.installations'))}}),(_vm.showAlertIcon)?_c('v-fa-icon',{staticClass:\"ml-2\",attrs:{\"color\":\"primary\",\"icon\":\"exclamation-triangle\",\"small\":\"\"}}):_vm._e()],1):_c('v-dialog',{attrs:{\"width\":_vm.$vuetify.breakpoint.mdAndDown ? '95%' : '40%'},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-chip',_vm._g({staticClass:\"px-3\",attrs:{\"outlined\":\"\",\"color\":\"primary\"}},on),[_c('v-card-text',{staticClass:\"px-0 font-weight-medium text-subtitle-1 text-capitalize\",domProps:{\"textContent\":_vm._s(_vm.visibleInstallationsCount + ' ' + _vm.$t('common.installations'))}}),_c('v-fa-icon',{staticClass:\"pl-2 mb-1\",attrs:{\"icon\":\"edit\",\"small\":\"\"}})],1)]}}]),model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',{staticClass:\"px-6\",attrs:{\"flat\":\"\"}},[_c('v-card-title',{staticClass:\"px-0\",domProps:{\"textContent\":_vm._s(_vm.$t('branchesManagement.editBranchInstallations') + ' \\'' + _vm.branch.name + '\\'')}}),_c('v-divider'),_c('v-card',{staticClass:\"ma-6\",attrs:{\"flat\":\"\"}},[(_vm.loading)?_c('v-skeleton-loader',{attrs:{\"type\":\"card-heading, list-item-avatar@2\",\"max-width\":\"60%\"}}):_c('DeviceTree',{staticStyle:{\"max-height\":\"600px\",\"overflow\":\"auto\"},attrs:{\"title\":_vm.$t('device_tree.default_title') +\n ' (' +\n (_vm.branchInstallations != null ? _vm.branchInstallations.filter(function (d) { return d.type == _vm.DeviceTreeNodeTypeEnum.Device; }).length : 0) +\n ')',\"selectable\":\"\",\"editable\":false,\"returnObject\":true,\"ignoreEmptyFolder\":true},model:{value:(_vm.branchInstallations),callback:function ($$v) {_vm.branchInstallations=$$v},expression:\"branchInstallations\"}})],1),_c('v-card-actions',{staticClass:\"d-flex justify-center\"},[_c('v-btn',{attrs:{\"color\":\"error\"},domProps:{\"textContent\":_vm._s(_vm.$t('common.cancel'))},on:{\"click\":function($event){_vm.dialog = false}}}),_c('v-btn',{attrs:{\"color\":\"success\"},domProps:{\"textContent\":_vm._s(_vm.$t('common.save'))},on:{\"click\":function($event){return _vm.onSave()}}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { AxiosResponse } from \"axios\";\r\nimport { ApiGenericResponse } from \"../ApiGenericResponse\";\r\nimport { Command, HttpVerbType, API_PREFIX, API_VERSION } from \"../Command\";\r\n\r\nconst ENDPOINT = \"/branch\";\r\n\r\nexport class GetBranchInstallationsCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"get\";\r\n\r\n constructor(branchId: number) {\r\n super();\r\n this.endPoint += `/${branchId}/installations`;\r\n }\r\n\r\n public async execute(): Promise {\r\n var res = await this.executeCommand();\r\n return new GetBranchInstallationsResData(res);\r\n }\r\n}\r\n\r\nexport class GetBranchInstallationsResData extends ApiGenericResponse {\r\n installationNames: string[];\r\n\r\n constructor(response: AxiosResponse) {\r\n super(response);\r\n this.installationNames = [];\r\n\r\n if (response.data && response.data.Payload && Array.isArray(response.data.Payload.InstallationNames) && response.data.Payload.InstallationNames.length)\r\n this.installationNames = response.data.Payload.InstallationNames;\r\n }\r\n}\r\n","export class EditBranchInstallationsReqData {\r\n installationNames: string[] = null;\r\n branchId: number;\r\n\r\n constructor(installationNames: string[], branchId: number) {\r\n this.installationNames = installationNames;\r\n this.branchId = branchId;\r\n }\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\n\r\n// Vuex\r\nimport { mapState } from \"vuex\";\r\n\r\n// Vue components\r\nimport DeviceTree from \"@/components/DeviceTree/index.vue\";\r\n\r\n// Model\r\nimport { GetBranchInstallationsCommand, GetBranchInstallationsResData } from \"@/model/communication/branch/GetBranchInstallationsCommand\";\r\nimport { ApiResponseStatusEnum } from \"@/model/communication/ApiResponseStatusEnum\";\r\nimport { DeviceTreeNode, FolderDeviceTreeNode, InstallationDeviceTreeNode } from \"@/model/data/deviceTree/DeviceTreeNode\";\r\nimport { DeviceTreeNodeTypeEnum } from \"@/model/data/deviceTree/DeviceTreeNodeTypeEnum\";\r\nimport { EditBranchInstallationsReqData } from \"@/model/communication/branch/EditBranchInstallationsReqData\";\r\n\r\nexport default Vue.extend({\r\n components: {\r\n DeviceTree,\r\n },\r\n data() {\r\n return {\r\n DeviceTreeNodeTypeEnum,\r\n loading: false,\r\n dialog: false,\r\n branchInstallationNames: [],\r\n branchInstallations: [],\r\n };\r\n },\r\n props: [\"branch\", \"isEditMode\"],\r\n computed: {\r\n ...mapState({\r\n deviceTree: (state: any) => state.devices.deviceTree,\r\n }),\r\n\r\n visibleInstallationsCount() {\r\n return this.branch.visibleInstallationsCount;\r\n },\r\n\r\n showAlertIcon() {\r\n return this.visibleInstallationsCount == 0 && this.branch.globalInstallationsCount == 0;\r\n },\r\n },\r\n watch: {\r\n dialog(value) {\r\n if (value) this.onOpenDialog();\r\n else this.onCloseDialog();\r\n // if (!value) this.branch = {};\r\n // poi penso che debba anche settare la variabile selectedDevices = {}\r\n },\r\n\r\n branchInstallationNames(newValue) {\r\n var checkNode = function (node: DeviceTreeNode, initialValues: any) {\r\n if (node.type == DeviceTreeNodeTypeEnum.Device) {\r\n initialValues.forEach((initialValue) => {\r\n if (node.id == initialValue || node.name == initialValue) {\r\n var temp: InstallationDeviceTreeNode = new InstallationDeviceTreeNode(null);\r\n temp.id = node.id;\r\n temp.type = node.type;\r\n temp.name = node.name;\r\n temp.license = (node as InstallationDeviceTreeNode).license;\r\n completeNodes.push(temp);\r\n }\r\n });\r\n } else if (node.type == DeviceTreeNodeTypeEnum.Folder && (node as FolderDeviceTreeNode).children && (node as FolderDeviceTreeNode).children.length > 0) {\r\n (node as FolderDeviceTreeNode).children.forEach((childNode) => {\r\n checkNode(childNode, initialValues);\r\n });\r\n }\r\n\r\n return null;\r\n };\r\n\r\n if (newValue && newValue.length > 0) {\r\n var completeNodes = [];\r\n this.deviceTree.forEach((node: DeviceTreeNode) => {\r\n checkNode(node, newValue);\r\n });\r\n\r\n this.branchInstallations = completeNodes;\r\n }\r\n },\r\n },\r\n methods: {\r\n onOpenDialog() {\r\n this.getBranchInstallations();\r\n },\r\n\r\n onCloseDialog() {\r\n this.branchInstallationNames = [];\r\n this.branchInstallations = null;\r\n },\r\n\r\n async onSave() {\r\n var req: EditBranchInstallationsReqData = new EditBranchInstallationsReqData(\r\n this.branchInstallations ? this.branchInstallations.filter((d) => d.type == DeviceTreeNodeTypeEnum.Device).map((d) => d.name) : [],\r\n this.branch.id\r\n );\r\n\r\n this.$emit(\"edit-installations\", req);\r\n this.dialog = false;\r\n },\r\n\r\n async getBranchInstallations() {\r\n try {\r\n this.loading = true;\r\n var res: GetBranchInstallationsResData = await new GetBranchInstallationsCommand(this.branch.id).execute();\r\n this.loading = false;\r\n\r\n if (res.responseStatus == ApiResponseStatusEnum.Success) {\r\n this.branchInstallationNames = res.installationNames;\r\n } else console.error(\"Error executing GetBranchInstallationsCommand\");\r\n } catch (e) {\r\n console.error(\"Error executing GetBranchInstallationsCommand\");\r\n this.loading = false;\r\n }\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!./EditInstallationsBranchDialog.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!./EditInstallationsBranchDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./EditInstallationsBranchDialog.vue?vue&type=template&id=87025f06&\"\nimport script from \"./EditInstallationsBranchDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./EditInstallationsBranchDialog.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VSkeletonLoader } from 'vuetify/lib/components/VSkeletonLoader';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VChip,VDialog,VDivider,VSkeletonLoader})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\n\r\n// Vue components\r\nimport EditInstallationsBranchDialog from \"./EditInstallationsBranchDialog.vue\";\r\n\r\nexport default Vue.extend({\r\n components: {\r\n EditInstallationsBranchDialog,\r\n },\r\n data() {\r\n return {\r\n isEditMode: false,\r\n localBranch: null,\r\n };\r\n },\r\n props: {\r\n branch: { required: true, type: Object },\r\n },\r\n computed: {\r\n isLocalBranchNameNullOrWhitespaces() {\r\n return this.localBranch.name == null || this.localBranch.name.match(/^ *$/) !== null;\r\n },\r\n },\r\n methods: {\r\n onDelete() {\r\n this.$emit(\"delete\", this.localBranch.id);\r\n },\r\n\r\n onSave() {\r\n this.$emit(\"edit\", this.localBranch);\r\n this.isEditMode = !this.isEditMode;\r\n },\r\n\r\n toggleEditMode() {\r\n this.isEditMode = !this.isEditMode;\r\n this.localBranch = Object.assign({}, this.branch);\r\n },\r\n },\r\n mounted() {\r\n this.localBranch = Object.assign({}, this.branch);\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!./BranchCard.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!./BranchCard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BranchCard.vue?vue&type=template&id=68004dcb&\"\nimport script from \"./BranchCard.vue?vue&type=script&lang=ts&\"\nexport * from \"./BranchCard.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardSubtitle } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardSubtitle,VCardText,VContainer,VTextField,VToolbar,VToolbarTitle,VTooltip})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":_vm.$vuetify.breakpoint.smAndDown ? '95%' : '40%'},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [(!_vm.$vuetify.breakpoint.smAndDown)?_c('v-btn',_vm._g({attrs:{\"color\":\"success\",\"x-large\":\"\"}},on),[_c('v-fa-icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"plus\"}}),_vm._v(\" \"+_vm._s(_vm.$t(\"common.new\"))+\" \")],1):_c('v-btn',_vm._g({attrs:{\"color\":\"success\"}},on),[_c('v-fa-icon',{attrs:{\"icon\":\"plus\"}})],1)]}}]),model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',{staticClass:\"px-6\"},[_c('v-card-title',{staticClass:\"px-0\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"branchesManagement.addNewBranch\"))+\" \")]),_c('v-divider'),_c('v-text-field',{staticClass:\"mb-3\",attrs:{\"label\":_vm.$t('common.name'),\"autofocus\":\"\",\"hide-details\":\"\"},model:{value:(_vm.branch.name),callback:function ($$v) {_vm.$set(_vm.branch, \"name\", $$v)},expression:\"branch.name\"}}),_c('v-text-field',{staticClass:\"mb-3\",attrs:{\"label\":_vm.$t('statisticsReport.GLN'),\"hide-details\":\"\"},model:{value:(_vm.branch.gln),callback:function ($$v) {_vm.$set(_vm.branch, \"gln\", $$v)},expression:\"branch.gln\"}}),_c('v-text-field',{staticClass:\"mb-3\",attrs:{\"label\":_vm.$t('branchesManagement.location'),\"hide-details\":\"\"},model:{value:(_vm.branch.location),callback:function ($$v) {_vm.$set(_vm.branch, \"location\", $$v)},expression:\"branch.location\"}}),(_vm.createFolderEnabled)?_c('v-checkbox',{staticClass:\"mt-4\",attrs:{\"label\":_vm.$t('branchesManagement.createFolder')},model:{value:(_vm.createFolder),callback:function ($$v) {_vm.createFolder=$$v},expression:\"createFolder\"}}):_vm._e(),_c('v-card-actions',{staticClass:\"d-flex justify-end\"},[_c('v-btn',{attrs:{\"color\":\"error\"},on:{\"click\":_vm.onClose}},[_vm._v(\" \"+_vm._s(_vm.$t(\"common.cancel\"))+\" \")]),_c('v-btn',{attrs:{\"color\":\"success\",\"disabled\":!(_vm.branch.name && _vm.branch.name.length)},on:{\"click\":_vm.onSave}},[_vm._v(\" \"+_vm._s(_vm.$t(\"common.save\"))+\" \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { mapGetters } from \"vuex\";\r\n\r\n//Model\r\nimport { ClientPrivileges } from \"@/model/data/authentication/ClientPrivilegesEnum\";\r\n\r\nexport default Vue.extend({\r\n data() {\r\n return {\r\n branch: {},\r\n createFolder: false,\r\n dialog: false,\r\n };\r\n },\r\n watch: {\r\n dialog(value) {\r\n if (!value) this.branch = {};\r\n },\r\n },\r\n computed: {\r\n ...mapGetters([\"authUserHasPrivilege\"]),\r\n\r\n createFolderEnabled() {\r\n return this.authUserHasPrivilege(ClientPrivileges.DevicesManagement);\r\n },\r\n },\r\n methods: {\r\n reset() {\r\n this.branch = {};\r\n this.createFolder = false;\r\n },\r\n onSave() {\r\n this.$emit(\"add\", { branch: this.branch, createFolder: this.createFolder });\r\n this.dialog = false;\r\n this.reset();\r\n },\r\n onClose() {\r\n this.dialog = false;\r\n this.reset();\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!./AddNewBranchDialog.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!./AddNewBranchDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AddNewBranchDialog.vue?vue&type=template&id=3d1dc0da&\"\nimport script from \"./AddNewBranchDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./AddNewBranchDialog.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardTitle,VCheckbox,VDialog,VDivider,VTextField})\n","import { Command, HttpVerbType, API_PREFIX, API_VERSION } from \"../Command\";\r\nimport { GetBranchesReqData } from \"./GetBranchesReqData\";\r\nimport { GetBranchesResData } from \"./GetBranchesResData\";\r\n\r\nconst ENDPOINT = \"/branch\";\r\n\r\nexport class DeleteBranchCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"delete\";\r\n\r\n params: DeleteBranchReqData = null;\r\n\r\n constructor(branchId: number) {\r\n super();\r\n this.params = new DeleteBranchReqData(branchId);\r\n }\r\n\r\n public async execute(): Promise {\r\n var res = await this.executeCommand(null, null, this.params);\r\n return new GetBranchesResData(res);\r\n }\r\n}\r\n\r\nexport class DeleteBranchReqData {\r\n id: number;\r\n constructor(branchId: number) {\r\n this.id = branchId;\r\n }\r\n}\r\n","import { Branch } from \"@/model/data/Branch\";\r\nimport { Command, HttpVerbType, API_PREFIX, API_VERSION } from \"../Command\";\r\nimport { GetBranchesResData } from \"./GetBranchesResData\";\r\n\r\nconst ENDPOINT = \"/branch\";\r\n\r\nexport class EditBranchCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"put\";\r\n\r\n params: Branch = null;\r\n\r\n constructor(branch: Branch) {\r\n super();\r\n this.params = branch;\r\n }\r\n\r\n public async execute(): Promise {\r\n var res = await this.executeCommand(this.params);\r\n return new GetBranchesResData(res);\r\n }\r\n}\r\n","import { Branch } from \"@/model/data/Branch\";\r\nimport { API_PREFIX, API_VERSION, Command, HttpVerbType } from \"../Command\";\r\nimport { GetBranchesResData } from \"./GetBranchesResData\";\r\n\r\nconst ENDPOINT = \"/branch\";\r\n\r\nexport class CreateBranchCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"post\";\r\n\r\n params: CreateBranchReqData = null;\r\n\r\n constructor(branch: Branch, createFolder: boolean) {\r\n super();\r\n this.params = new CreateBranchReqData(branch, createFolder);\r\n }\r\n\r\n public async execute(): Promise {\r\n var res = await this.executeCommand(this.params);\r\n return new GetBranchesResData(res);\r\n }\r\n}\r\n\r\nexport class CreateBranchReqData {\r\n branch: Branch;\r\n createFolder: boolean;\r\n\r\n constructor(branch: Branch, createFolder: boolean) {\r\n this.branch = branch;\r\n this.createFolder = createFolder;\r\n }\r\n}\r\n","import { AxiosResponse } from \"axios\";\r\nimport { ApiGenericResponse } from \"../ApiGenericResponse\";\r\n\r\nexport class GetInstallationsCountByBranchResData extends ApiGenericResponse {\r\n installationsCountByBranch: Map;\r\n\r\n constructor(response: AxiosResponse) {\r\n super(response);\r\n\r\n this.installationsCountByBranch = new Map();\r\n if (response.data && response.data.Payload) {\r\n this.parse(response.data.Payload);\r\n }\r\n }\r\n\r\n public parse(obj: any) {\r\n if (obj.InstallationsCountByBranch) {\r\n for (let key in obj.InstallationsCountByBranch) {\r\n if (key != null) {\r\n let branchInstallationsCountings: BranchInstallationsCountings = new BranchInstallationsCountings();\r\n branchInstallationsCountings.parse(obj.InstallationsCountByBranch[key]);\r\n this.installationsCountByBranch.set(Number(key), branchInstallationsCountings);\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport class BranchInstallationsCountings {\r\n public visibleInstallationsCount: number;\r\n public globalInstallationsCount: number;\r\n\r\n public parse(obj: any) {\r\n if (obj.VisibleInstallationsCount != null) this.visibleInstallationsCount = obj.VisibleInstallationsCount;\r\n if (obj.GlobalInstallationsCount != null) this.globalInstallationsCount = obj.GlobalInstallationsCount;\r\n }\r\n}\r\n","import { Command, HttpVerbType, API_PREFIX, API_VERSION } from \"../Command\";\r\nimport { GetInstallationsCountByBranchResData } from \"./GetInstallationsCountByBranchResData\";\r\n\r\nconst ENDPOINT = \"/branch/installationsCountByBranch\";\r\n\r\nexport class GetInstallationsCountByBranchCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"get\";\r\n\r\n constructor() {\r\n super();\r\n }\r\n\r\n public async execute(): Promise {\r\n var res = await this.executeCommand();\r\n return new GetInstallationsCountByBranchResData(res);\r\n }\r\n}\r\n","import { AxiosResponse } from \"axios\";\r\nimport { ApiGenericResponse } from \"../ApiGenericResponse\";\r\nimport { Command, HttpVerbType, API_PREFIX, API_VERSION } from \"../Command\";\r\n\r\nconst ENDPOINT = \"/fitness_statistics/any_with_branchid\";\r\n\r\nexport class AnyStatisticsWithBranchIdCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"get\";\r\n\r\n params: AnyStatisticsWithBranchIdReqData = null;\r\n\r\n constructor(branchId: number) {\r\n super();\r\n this.params = new AnyStatisticsWithBranchIdReqData(branchId);\r\n }\r\n\r\n public async execute(): Promise {\r\n var res = await this.executeCommand(null, null, this.params);\r\n return new AnyStatisticsWithBranchIdResData(res);\r\n }\r\n}\r\n\r\nexport class AnyStatisticsWithBranchIdReqData {\r\n id: number;\r\n constructor(branchId: number) {\r\n this.id = branchId;\r\n }\r\n}\r\n\r\nexport class AnyStatisticsWithBranchIdResData extends ApiGenericResponse {\r\n result: boolean;\r\n\r\n constructor(response: AxiosResponse) {\r\n super(response);\r\n this.result = false;\r\n if (response.data && response.data.Payload && response.data.Payload.Result) this.result = response.data.Payload.Result;\r\n }\r\n}\r\n","import { API_PREFIX, API_VERSION, Command, HttpVerbType } from \"../Command\";\r\nimport { ApiGenericResponse } from \"../ApiGenericResponse\";\r\nimport { EditBranchInstallationsReqData } from \"./EditBranchInstallationsReqData\";\r\n\r\nconst ENDPOINT = \"/branch\";\r\n\r\nexport class EditBranchInstallationsCommand extends Command {\r\n endPoint: string = API_PREFIX + API_VERSION + ENDPOINT;\r\n httpVerb: HttpVerbType = \"patch\";\r\n params: EditBranchInstallationsReqData;\r\n\r\n constructor(params: EditBranchInstallationsReqData) {\r\n super();\r\n this.endPoint += `/${params.branchId}/installations`;\r\n this.params = params;\r\n }\r\n\r\n public async execute(): Promise {\r\n var res = await this.executeCommand(this.params);\r\n return new ApiGenericResponse(res);\r\n }\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { mapActions, mapMutations } from \"vuex\";\r\nimport * as ad from \"@/store/modules/DevicesModule/actions\";\r\nimport * as m from \"@/store/modules/DevicesModule/mutations\";\r\nimport * as routes from \"@/router/routes\";\r\n\r\n// Vue components\r\nimport AppPage from \"@/components/AppPage.vue\";\r\nimport BranchCard from \"./BranchCard.vue\";\r\nimport AddNewBranchDialog from \"./AddNewBranchDialog.vue\";\r\n\r\n// Model\r\nimport { GetBranchesResData } from \"@/model/communication/branch/GetBranchesResData\";\r\nimport { GetBranchesCommand } from \"@/model/communication/branch/GetBranchesCommand\";\r\nimport { DeleteBranchCommand } from \"@/model/communication/branch/DeleteBranchCommand\";\r\nimport { EditBranchCommand } from \"@/model/communication/branch/EditBranchCommand\";\r\nimport { CreateBranchCommand } from \"@/model/communication/branch/CreateBranchCommand\";\r\nimport { GetInstallationsCountByBranchCommand } from \"@/model/communication/branch/GetInstallationsCountByBranchCommand\";\r\nimport { AnyStatisticsWithBranchIdCommand, AnyStatisticsWithBranchIdResData } from \"@/model/communication/fitnessStatistics/AnyStatisticsWithBranchIdCommand\";\r\n\r\nimport { GetBranchesReqData } from \"@/model/communication/branch/GetBranchesReqData\";\r\nimport { ApiResponseStatusEnum } from \"@/model/communication/ApiResponseStatusEnum\";\r\nimport { GetInstallationsCountByBranchResData } from \"@/model/communication/branch/GetInstallationsCountByBranchResData\";\r\nimport { EditBranchInstallationsReqData } from \"@/model/communication/branch/EditBranchInstallationsReqData\";\r\nimport { EditBranchInstallationsCommand } from \"@/model/communication/branch/EditBranchInstallationsCommand\";\r\n\r\nexport default Vue.extend({\r\n components: {\r\n AppPage,\r\n BranchCard,\r\n AddNewBranchDialog,\r\n },\r\n data() {\r\n return {\r\n routes,\r\n loading: false,\r\n loadingAnyStatisticsWithBranchId: false,\r\n loadingInstallationsCountByBranch: false,\r\n loadingEditInstallationsBranch: false,\r\n installationsCountByBranch: null,\r\n addNewBranchDialog: false,\r\n branches: [],\r\n showDeleteConfirmationDialog: false,\r\n selectedBranchIdForDelete: null,\r\n search: \"\",\r\n errorMessage: \"\",\r\n error: false,\r\n };\r\n },\r\n computed: {\r\n menuRoutes() {\r\n return this.$store.getters.availableMenu;\r\n },\r\n\r\n styleProps() {\r\n let found = false;\r\n let resultObj = { icon: null, title: null, color: null };\r\n\r\n let findIconColorAndTitle: Function = (node: any) => {\r\n if (!found) {\r\n if (node.children && node.children.length > 0) {\r\n node.children.forEach((child) => {\r\n findIconColorAndTitle(child);\r\n });\r\n } else if (node.path == this.routes.BranchesManagement) {\r\n resultObj.icon = node.icon;\r\n resultObj.title = this.$t(node.name_i18n);\r\n resultObj.color = node.color;\r\n found = true;\r\n }\r\n }\r\n };\r\n\r\n this.menuRoutes.forEach((route) => {\r\n findIconColorAndTitle(route);\r\n });\r\n\r\n return resultObj;\r\n },\r\n\r\n icon() {\r\n return this.styleProps.icon ? this.styleProps.icon : \"\";\r\n },\r\n\r\n title() {\r\n return this.styleProps.title ? this.styleProps.title : \"\";\r\n },\r\n\r\n color() {\r\n return this.styleProps.color ? this.styleProps.color : \"\";\r\n },\r\n\r\n branchesWithInstallationsCount() {\r\n let res = [];\r\n\r\n if (Array.isArray(this.branches) && this.branches.length) {\r\n this.branches.forEach((branch) => {\r\n let currentBranch = { ...branch };\r\n\r\n if (this.installationsCountByBranch != null && this.installationsCountByBranch.has(currentBranch.id)) {\r\n currentBranch.visibleInstallationsCount = this.installationsCountByBranch.get(currentBranch.id).visibleInstallationsCount;\r\n currentBranch.globalInstallationsCount = this.installationsCountByBranch.get(currentBranch.id).globalInstallationsCount;\r\n } else {\r\n currentBranch.visibleInstallationsCount = 0;\r\n currentBranch.globalInstallationsCount = 0;\r\n }\r\n\r\n res.push(currentBranch);\r\n });\r\n }\r\n\r\n return res;\r\n },\r\n },\r\n watch: {\r\n showDeleteConfirmationDialog(newValue) {\r\n if (!newValue) this.selectedBranchIdForDelete = null;\r\n },\r\n },\r\n methods: {\r\n ...mapActions([ad.FETCH_ALL_DEVICE_TREE]),\r\n ...mapMutations([m.SET_DEVICE_TREE_CONTENT]),\r\n\r\n async CRUD(branchId, branch, request: \"C\" | \"R\" | \"U\" | \"D\") {\r\n if (!this.loading && !this.loadingAnyStatisticsWithBranchId && !this.loadingInstallationsCountByBranch) {\r\n try {\r\n this.error = false;\r\n this.loading = true;\r\n let res: GetBranchesResData;\r\n switch (request) {\r\n case \"C\":\r\n await this.createBranch(branch);\r\n break;\r\n case \"R\":\r\n this.getBranches();\r\n break;\r\n case \"U\":\r\n res = await new EditBranchCommand(branch).execute();\r\n if (res.responseStatus == ApiResponseStatusEnum.Success) this.branches = res.availableBranches;\r\n else console.error(\"cannot edit this branch: \", branch);\r\n break;\r\n case \"D\":\r\n res = await new DeleteBranchCommand(branchId).execute();\r\n if (res.responseStatus == ApiResponseStatusEnum.Success) this.branches = res.availableBranches;\r\n else console.error(\"cannot delete this branch: \", branchId);\r\n break;\r\n }\r\n this.loading = false;\r\n } catch (e) {\r\n console.error(\"Server error, request: \", request, \" branchId: \", branchId, \" branch: \", branch);\r\n this.loading = false;\r\n }\r\n }\r\n },\r\n async createBranch(branch) {\r\n let res: GetBranchesResData = await new CreateBranchCommand(branch.branch, branch.createFolder).execute();\r\n if (res.responseStatus == ApiResponseStatusEnum.Success && res.responseString != \"GenericError\") {\r\n this.branches = res.availableBranches;\r\n if (branch.createFolder) {\r\n await new Promise((r) => setTimeout(r, 1000));\r\n this[m.SET_DEVICE_TREE_CONTENT]({ node: null, content: [] });\r\n await this[ad.FETCH_ALL_DEVICE_TREE]();\r\n }\r\n } else {\r\n this.error = true;\r\n if (res.message != null && res.message != \"\" && res.message != \"Server error, ServerError\") this.errorMessage = res.message;\r\n else this.errorMessage = this.$t(\"branchesManagement.duplicated\");\r\n }\r\n },\r\n async getBranches() {\r\n let res: GetBranchesResData = await new GetBranchesCommand(new GetBranchesReqData(true, false)).execute();\r\n if (res.responseStatus == ApiResponseStatusEnum.Success) this.branches = res.availableBranches;\r\n else console.error(\"cannot fetch available branches\");\r\n },\r\n async deleteBranch(branchId) {\r\n if (!this.loading && !this.loadingAnyStatisticsWithBranchId) {\r\n try {\r\n this.loadingAnyStatisticsWithBranchId = true;\r\n let res: AnyStatisticsWithBranchIdResData = await new AnyStatisticsWithBranchIdCommand(branchId).execute();\r\n this.loadingAnyStatisticsWithBranchId = false;\r\n\r\n if (res.responseStatus == ApiResponseStatusEnum.Success) {\r\n // questo branch è associato a delle statistiche fitness, esse verranno eliminate, continuare?\r\n if (res.result) {\r\n console.warn(\"questo branch è associato a delle statistiche fitness, esse verranno eliminate, continuare?\");\r\n this.selectedBranchIdForDelete = branchId;\r\n this.showDeleteConfirmationDialog = true;\r\n } else this.CRUD(branchId, null, \"D\");\r\n } else console.error(\"cannot delete this branch: \", branchId);\r\n } catch (e) {\r\n console.error(\"cannot delete this branch: \", branchId);\r\n this.loadingAnyStatisticsWithBranchId = false;\r\n }\r\n }\r\n },\r\n\r\n async getInstallationsCountByBranch() {\r\n try {\r\n this.loadingInstallationsCountByBranch = true;\r\n let res: GetInstallationsCountByBranchResData = await new GetInstallationsCountByBranchCommand().execute();\r\n this.loadingInstallationsCountByBranch = false;\r\n\r\n if (res.responseStatus == ApiResponseStatusEnum.Success) {\r\n this.installationsCountByBranch = res.installationsCountByBranch;\r\n } else console.error(\"Error executing GetInstallationsCountByBranchCommand\");\r\n } catch (e) {\r\n console.error(\"Error executing GetInstallationsCountByBranchCommand\");\r\n this.loadingInstallationsCountByBranch = false;\r\n }\r\n },\r\n\r\n async editInstallationsBranch(request) {\r\n try {\r\n this.loadingEditInstallationsBranch = true;\r\n let res = await new EditBranchInstallationsCommand(request as EditBranchInstallationsReqData).execute();\r\n this.loadingEditInstallationsBranch = false;\r\n\r\n if (res.responseStatus == ApiResponseStatusEnum.Success) {\r\n await this.CRUD(null, null, \"R\");\r\n this.getInstallationsCountByBranch();\r\n } else console.error(\"Error executing EditBranchInstallationsCommand\");\r\n } catch (e) {\r\n console.error(\"Error executing EditBranchInstallationsCommand\");\r\n this.loadingEditInstallationsBranch = false;\r\n }\r\n },\r\n },\r\n async mounted() {\r\n this.CRUD(null, null, \"R\");\r\n await this.getInstallationsCountByBranch();\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!./index.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!./index.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=1f73b1b8&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataIterator } from 'vuetify/lib/components/VDataIterator';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSkeletonLoader } from 'vuetify/lib/components/VSkeletonLoader';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VAlert,VBtn,VCard,VCardActions,VCardText,VCardTitle,VCol,VContainer,VDataIterator,VDialog,VRow,VSkeletonLoader,VTextField,VToolbar})\n"],"sourceRoot":""}