{"version":3,"sources":["webpack:///./src/assets/images/icons/icon-ellipsis-v.svg","webpack:///./src/views/components/DialogConfirmDelete/DialogConfirmDelete.vue?b090","webpack:///./src/views/components/DialogConfirmDelete/DialogConfirmDelete.ts","webpack:///./src/views/components/DialogConfirmDelete/DialogConfirmDelete.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSettings/EntrancePlantStructure/DialogAddEditBuilding/DialogAddEditBuilding.scss?22c3","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSettings/EntrancePlantStructure/DialogAddEditBuilding/DialogAddEditBuilding.vue?fa61","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSettings/EntrancePlantStructure/DialogAddEditBuilding/DialogAddEditBuilding.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSettings/EntrancePlantStructure/DialogAddEditBuilding/DialogAddEditBuilding.vue","webpack:///./node_modules/core-js/modules/es.array.splice.js"],"names":["module","exports","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","render","_ctx","_cache","$props","$setup","$data","$options","_component_InlineSvgScoped","_component_Button","_component_Dialog","visible","isDialogVisible","$event","onHide","doHideDialog","modal","showHeader","closable","default","src","dialogTitle","dialogMessage","onClick","handleHideDialog","$t","_","doConfirm","this","title","message","isVisible","$emit","name","props","type","Boolean","required","String","watch","newValue","emits","__exports__","for","_hoisted_6","_hoisted_7","key","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","style","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_component_InputText","_component_InputNumber","_component_ElScrollbar","_component_NumberButtons","_component_Dropdown","height","brfaStep","inputLabel","id","isValidName","modelValue","building","verifyValidityOfName","invalidNameReason","isEdit","validApartmentNumber","fluid","min","max","availableApartments","apartmentsCount","checkValidApartmentNumber","invalidNumberReason","risersCount","minValue","onIncrement","addRiser","onDecrement","removeRiser","rfaConfig","risers","riser","index","isLast","riserName","riserIndex","floorsCount","maxValue","addFloor","removeFloor","floors","floor","floorIndex","floorName","floorLabel","options","apartmentCountValues","optionLabel","optionValue","numberOfApartments","allApartmentsAssigned","mismatchedApartmentsErrorText","label","secondaryButtonLabel","handleSecondaryButtonAction","buttonSubmitLabel","disabled","saveButtonDisabled","handleButtonSubmitAction","isBrfa","newRisersNumber","currentEntrancePlant","addressingType","BuildingRiserFloorApartment","buildingToEdit","buildingId","apartments","length","i","newName","buildings","disabledForNameCheck","trim","disabledForApartments","totalPlantApartments","reduce","acc","firstLine","secondLine","totalAssignedApartments","Array","keys","map","value","denominationRisers","denominationFloors","risersToAdd","push","splice","pop","undefined","nameToCheck","listToCheck","filter","editing","exist","some","existing","toLowerCase","maxApartments","updateApartmentCountValues","lastStepFunction","$store","dispatch","saveBuilding","structure","buildingsCreate","forEach","epBuilding","editingIndex","findIndex","desktopId","editStructure","retrieveEditedStructure","entranceplantGET","lastModify","entrPlant","rfaStructure","newBuild","find","build","plantConfigStructure","console","log","setTimeout","$toast","add","severity","summary","life","Object","computed","initBuilding","components","NumberButtons","$","toAbsoluteIndex","toInteger","toLength","toObject","arraySpeciesCreate","createProperty","arrayMethodHasSpeciesSupport","HAS_SPECIES_SUPPORT","Math","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","target","proto","forced","start","deleteCount","insertCount","actualDeleteCount","A","k","from","to","O","len","actualStart","argumentsLength","arguments","TypeError"],"mappings":"wJAAAA,EAAOC,QAAU,IAA0B,oC,oDCErCC,EAAa,CAAEC,MAAO,wBACtBC,EAAa,CAAED,MAAO,yBACtBE,EAAa,CAAEF,MAAO,2BACtBG,EAA0B,yBAAa,KAAM,KAAM,MAAO,GAC1DC,EAAa,CAAEJ,MAAO,0BAEtB,SAAUK,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,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EAAaG,IAC3BG,EAAEH,EAAIK,GAAeE,UAAUP,EAAI,GAGrC,OADAG,EAAE3F,OAAS4F,EAAMN,EAAoBD,EAC9BE","file":"js/page-entranceplant-settings~page-entranceplant-structure-building.c74e01cf.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/icon-ellipsis-v.6e5f7bcb.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"bt-icon text-primary\" }\nconst _hoisted_2 = { class: \"dialog-confirm__title\" }\nconst _hoisted_3 = { class: \"dialog-confirm__message\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"hr\", null, null, -1)\nconst _hoisted_5 = { class: \"dialog-confirm__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(_component_Dialog, {\n visible: _ctx.isDialogVisible,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.isDialogVisible = $event)),\n onHide: _ctx.doHideDialog,\n modal: true,\n showHeader: false,\n closable: false,\n class: \"dialog-confirm\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_1, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-alert-medium-outline.svg`)\n ,\n \"aria-label\": \"icon-alert-medium-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"h5\", _hoisted_2, _toDisplayString(_ctx.dialogTitle), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.dialogMessage), 1),\n _hoisted_4,\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_Button, {\n class: \"p-button-text p-button-secondary text-uppercase mr-2\",\n onClick: _ctx.handleHideDialog\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Cancel\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button--m\",\n onClick: _ctx.doConfirm\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Ok\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'DialogConfirmDelete',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n required: true,\n },\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n },\n },\n emits: ['hide-dialog', 'confirm'],\n})\nexport default class DialogConfirmDelete extends Vue {\n isVisible!: boolean;\n title!: string;\n message!: string;\n isDialogVisible = false;\n\n get dialogTitle() {\n return this.title;\n }\n\n get dialogMessage() {\n return this.message;\n }\n\n mounted() {\n this.isDialogVisible = this.isVisible;\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n doConfirm() {\n this.$emit('confirm');\n this.handleHideDialog();\n }\n}\n","import { render } from \"./DialogConfirmDelete.vue?vue&type=template&id=009d4b24&ts=true\"\nimport script from \"./DialogConfirmDelete.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogConfirmDelete.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export * from \"-!../../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./DialogAddEditBuilding.scss?vue&type=style&index=0&lang=scss\"","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header mb-2\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { class: \"p-field mt-2\" }\nconst _hoisted_5 = {\n class: \"p-field-label\",\n for: \"buildingname\"\n}\nconst _hoisted_6 = {\n for: \"buildingname\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_7 = {\n key: 0,\n class: \"p-field\"\n}\nconst _hoisted_8 = {\n class: \"p-field-label\",\n for: \"apartmentnumber\"\n}\nconst _hoisted_9 = {\n for: \"apartmentnumber\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_10 = { class: \"p-field mb-4\" }\nconst _hoisted_11 = { class: \"d-flex align-items-start\" }\nconst _hoisted_12 = { class: \"p-field-label\" }\nconst _hoisted_13 = { class: \"p-field mb-3\" }\nconst _hoisted_14 = { class: \"d-flex align-items-start\" }\nconst _hoisted_15 = { class: \"p-field-label\" }\nconst _hoisted_16 = {\n key: 0,\n class: \"hr mt-4\"\n}\nconst _hoisted_17 = { class: \"p-field\" }\nconst _hoisted_18 = { class: \"d-flex align-items-start\" }\nconst _hoisted_19 = {\n style: {\"width\":\"30%\"},\n class: \"p-field-label pl-2 ml-auto\"\n}\nconst _hoisted_20 = { class: \"p-field\" }\nconst _hoisted_21 = {\n key: 0,\n class: \"hr mt-4\"\n}\nconst _hoisted_22 = { class: \"dialog-custom__footer\" }\nconst _hoisted_23 = {\n key: 0,\n class: \"form-custom mr-auto\"\n}\nconst _hoisted_24 = { class: \"p-field-label\" }\nconst _hoisted_25 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\nconst _hoisted_26 = { class: \"label-error fs-13\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_InputNumber = _resolveComponent(\"InputNumber\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_NumberButtons = _resolveComponent(\"NumberButtons\")\n const _component_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(_component_Dialog, {\n visible: _ctx.isDialogVisible,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.isDialogVisible = $event)),\n onHide: _ctx.doHideDialog,\n modal: true,\n showHeader: false,\n closable: false,\n class: \"dialog-custom\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.dialogTitle), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", {\n style: [{\"width\":\"450px\"}, { height: _ctx.brfaStep === 0 ? '355px' : '60vh'}]\n }, [\n (_ctx.brfaStep === 0)\n ? (_openBlock(), _createBlock(_component_ElScrollbar, {\n key: 0,\n class: \"dialog-scroll\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"label\", _hoisted_5, _toDisplayString(_ctx.inputLabel), 1),\n _createVNode(_component_InputText, {\n id: \"buildingname\",\n type: \"text\",\n class: [\"w-100\", { 'input-error': !_ctx.isValidName }],\n modelValue: _ctx.building.name,\n \"onUpdate:modelValue\": [\n _cache[1] || (_cache[1] = ($event: any) => (_ctx.building.name = $event)),\n _ctx.verifyValidityOfName\n ]\n }, null, 8, [\"modelValue\", \"class\", \"onUpdate:modelValue\"]),\n _createVNode(\"label\", _hoisted_6, _toDisplayString(_ctx.invalidNameReason), 1)\n ]),\n (!_ctx.isEdit)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_7, [\n _createVNode(\"label\", _hoisted_8, _toDisplayString(_ctx.$t(\"AppResourceEP.Apartments\")), 1),\n _createVNode(_component_InputNumber, {\n id: \"apartmentnumber\",\n class: [\"w-50\", { 'input-error': !_ctx.validApartmentNumber }],\n fluid: \"\",\n min: \"1\",\n max: _ctx.availableApartments,\n modelValue: _ctx.building.apartmentsCount,\n \"onUpdate:modelValue\": [\n _cache[2] || (_cache[2] = ($event: any) => (_ctx.building.apartmentsCount = $event)),\n _ctx.checkValidApartmentNumber\n ]\n }, null, 8, [\"max\", \"modelValue\", \"class\", \"onUpdate:modelValue\"]),\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.invalidNumberReason), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.brfaStep === 1)\n ? (_openBlock(), _createBlock(_Fragment, { key: 1 }, [\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"span\", _hoisted_11, [\n _createVNode(\"label\", null, _toDisplayString(`${_ctx.$t(\"AppResourceEP.Risers\")} ${\n _ctx.building.name\n }`), 1),\n _createVNode(_component_NumberButtons, {\n class: \"ml-auto\",\n modelValue: _ctx.risersCount,\n minValue: 1,\n onIncrement: _ctx.addRiser,\n onDecrement: _ctx.removeRiser\n }, null, 8, [\"modelValue\", \"onIncrement\", \"onDecrement\"])\n ])\n ]),\n _createVNode(_component_ElScrollbar, {\n class: \"dialog-scroll\",\n style: {\"height\":\"calc(100% - (25px + 1.5rem))\"}\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.rfaConfig.risers, (riser, index) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: index,\n class: [\"p-field\", {'mb-3': _ctx.isLast(index)}]\n }, [\n _createVNode(\"label\", _hoisted_12, _toDisplayString(_ctx.riserName(index + 1)), 1),\n _createVNode(_component_InputText, {\n type: \"text\",\n class: \"w-50\",\n modelValue: riser.name,\n \"onUpdate:modelValue\": ($event: any) => (riser.name = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ], 2))\n }), 128))\n ]),\n _: 1\n })\n ], 64))\n : _createCommentVNode(\"\", true),\n (_ctx.brfaStep === 2)\n ? (_openBlock(), _createBlock(_component_ElScrollbar, {\n key: 2,\n class: \"dialog-scroll\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.rfaConfig.risers, (riser, riserIndex) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: riserIndex,\n class: \"mb-3\"\n }, [\n _createVNode(\"div\", _hoisted_13, [\n _createVNode(\"span\", _hoisted_14, [\n _createVNode(\"label\", null, _toDisplayString(`${_ctx.$t(\"AppResourceEP.Floors\")} ${riser.name}`), 1),\n _createVNode(_component_NumberButtons, {\n class: \"ml-auto\",\n modelValue: _ctx.floorsCount(riser),\n minValue: 1,\n maxValue: 200,\n onIncrement: ($event: any) => (_ctx.addFloor(riser)),\n onDecrement: ($event: any) => (_ctx.removeFloor(riser))\n }, null, 8, [\"modelValue\", \"onIncrement\", \"onDecrement\"])\n ])\n ]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(riser.floors, (floor, floorIndex) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: floorIndex,\n class: \"p-field mt-3\"\n }, [\n _createVNode(\"label\", _hoisted_15, _toDisplayString(_ctx.floorName(floorIndex + 1)), 1),\n _createVNode(_component_InputText, {\n type: \"text\",\n class: \"w-50\",\n modelValue: floor.name,\n \"onUpdate:modelValue\": ($event: any) => (floor.name = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ]))\n }), 128)),\n (!_ctx.isLast(riserIndex))\n ? (_openBlock(), _createBlock(\"hr\", _hoisted_16))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.brfaStep === 3)\n ? (_openBlock(), _createBlock(_component_ElScrollbar, {\n key: 3,\n class: \"dialog-scroll\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.rfaConfig.risers, (riser, riserIndex) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: riserIndex,\n class: \"mb-3\"\n }, [\n _createVNode(\"div\", _hoisted_17, [\n _createVNode(\"h6\", null, _toDisplayString(riser.name), 1),\n _createVNode(\"span\", _hoisted_18, [\n _createVNode(\"label\", _hoisted_19, _toDisplayString(_ctx.$t(\"AppResourceEP.Apartments\")), 1)\n ])\n ]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(riser.floors, (floor, floorIndex) => {\n return (_openBlock(), _createBlock(\"span\", {\n key: floorIndex,\n class: \"d-flex align-items-center\"\n }, [\n _createVNode(\"div\", _hoisted_20, [\n _createVNode(\"label\", null, _toDisplayString(_ctx.floorLabel(floor, floorIndex + 1)), 1)\n ]),\n _createVNode(_component_Dropdown, {\n style: {\"width\":\"30%\"},\n class: \"apartment__count ml-auto\",\n options: _ctx.apartmentCountValues,\n optionLabel: \"label\",\n optionValue: \"value\",\n modelValue: floor.numberOfApartments,\n \"onUpdate:modelValue\": ($event: any) => (floor.numberOfApartments = $event)\n }, null, 8, [\"options\", \"modelValue\", \"onUpdate:modelValue\"])\n ]))\n }), 128)),\n (!_ctx.isLast(riserIndex))\n ? (_openBlock(), _createBlock(\"hr\", _hoisted_21))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ], 4)\n ]),\n _createVNode(\"footer\", _hoisted_22, [\n (_ctx.brfaStep === 3 && !_ctx.allApartmentsAssigned())\n ? (_openBlock(), _createBlock(\"span\", _hoisted_23, [\n _createVNode(\"span\", _hoisted_24, [\n _createVNode(\"label\", null, _toDisplayString(_ctx.mismatchedApartmentsErrorText[0]), 1),\n _hoisted_25,\n _createVNode(\"label\", _hoisted_26, _toDisplayString(_ctx.mismatchedApartmentsErrorText[1]), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_Button, {\n class: \"p-button-text mr-2\",\n label: _ctx.secondaryButtonLabel,\n onClick: _ctx.handleSecondaryButtonAction\n }, null, 8, [\"label\", \"onClick\"]),\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-raised p-button--m\",\n label: _ctx.buttonSubmitLabel,\n disabled: _ctx.saveButtonDisabled,\n onClick: _ctx.handleButtonSubmitAction\n }, null, 8, [\"label\", \"disabled\", \"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import {\n AddressingType,\n BuildingCreateDTO,\n BuildingDTO,\n EntrancePlantDetailDTO,\n EntrancePlantStructureCreateDTO,\n FloorConfigDTO,\n RFAConfigDTO,\n RiserConfigDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport plantsClient from '@/core/services/plants';\nimport { SET_APP_LOADING } from '@/core/store/action-types';\nimport { toLabel } from '@/core/utils/EntrancePlant/denomination-helper';\nimport { \n DEFAULT_NUMBER_OF_FLOORS_IN_RISER, \n DEFAULT_NUMBER_OF_RISERS_IN_BUILDING, \n distributeApartmentsToRaisersAndFloors \n} from '@/core/utils/EntrancePlant/entrance-plant.utils';\nimport NumberButtons from '@/views/components/NumberButtons/NumberButtons.vue';\nimport { PropType } from 'vue';\nimport { Options, Vue } from 'vue-class-component';\nimport { mapState } from 'vuex';\n\n@Options({\n name: 'DialogAddEditBuilding',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n buildingToEdit: {\n type: Object as PropType<BuildingDTO>,\n required: false,\n },\n },\n computed: {\n ...mapState(['currentEntrancePlant']),\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n if (this.isDialogVisible) {\n this.invalidNameReason = '';\n this.isValidName = true;\n this.validApartmentNumber = true;\n this.invalidNumberReason = '';\n this.brfaStep = 0;\n this.rfaConfig.risers = [];\n this.initBuilding();\n }\n },\n \"building.apartmentsCount\": function () {\n this.checkValidApartmentNumber();\n },\n 'building.name': function () {\n if (this.building) {\n this.verifyValidityOfName();\n }\n },\n },\n components: { NumberButtons },\n emits: ['hide-dialog', 'update-list'],\n})\nexport default class DialogAddEditBuilding extends Vue {\n currentEntrancePlant!: EntrancePlantDetailDTO;\n isVisible!: boolean;\n buildingToEdit!: BuildingDTO;\n isDialogVisible = false;\n\n isEdit = false;\n building!: BuildingCreateDTO;\n\n // Naming validation props\n isValidName = true;\n invalidNameReason: string = '';\n\n isBrfa = false;\n brfaStep = 0;\n newRisersNumber = 1;\n rfaConfig: RFAConfigDTO = new RFAConfigDTO();\n apartmentCountValues: { label: number, value: number }[] = [];\n validApartmentNumber = true;\n invalidNumberReason = '';\n\n mounted() {\n this.isDialogVisible = this.isVisible;\n this.isBrfa =\n this.currentEntrancePlant.addressingType ===\n AddressingType.BuildingRiserFloorApartment;\n }\n\n async initBuilding() {\n this.building = new BuildingCreateDTO();\n if (this.buildingToEdit) {\n this.isEdit = true;\n this.building.buildingId = this.buildingToEdit.buildingId;\n this.building.apartmentsCount = this.buildingToEdit.apartments?.length;\n this.building.name = this.buildingToEdit.name;\n } else {\n this.isEdit = false;\n let i = 0;\n do {\n i++;\n const newName = `${this.$t('AppResourceEP.Building')} ${\n this.currentEntrancePlant.buildings!.length + i\n }`;\n this.building.name = newName;\n this.verifyValidityOfName();\n } while (!this.isValidName);\n this.building.apartmentsCount = 1;\n }\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n get dialogTitle() {\n if (this.isEdit) return this.$t('AppResourceEP.RenameBuilding');\n switch (this.brfaStep) {\n case 0:\n return this.$t('AppResourceEP.AddNewBuilding');\n case 1:\n return this.$t('AppResourceEP.SetupWizardStepBuildingRisers');\n case 2:\n return this.$t('AppResourceEP.SetupWizardStepBuldingFloors');\n case 3:\n return this.$t('AppResourceEP.SetupWizardStepBuidingLinkApartemntsTitle');\n }\n }\n\n get inputLabel() {\n return `${this.$t('AppResource.NameUpper')} ${this.$t(\n 'AppResourceEP.Building'\n )}`;\n }\n\n get buttonSubmitLabel() {\n if (!this.isBrfa || this.isEdit) return this.$t('AppResource.Save');\n\n if (this.brfaStep < 3) {\n return this.$t('AppResource.Continue');\n } else {\n return this.$t('AppResource.Save');\n }\n }\n\n get secondaryButtonLabel() {\n if (this.brfaStep > 0) {\n return this.$t('AppResource.Back');\n } else {\n return this.$t('AppResource.Cancel');\n }\n }\n\n get saveButtonDisabled() {\n const disabledForNameCheck =\n !this.isValidName || !this.building?.name?.trim();\n const disabledForApartments =\n !this.building?.apartmentsCount || !this.validApartmentNumber;\n if (this.isBrfa && this.brfaStep === 3) {\n return disabledForNameCheck || disabledForApartments || !this.allApartmentsAssigned();\n }\n return disabledForNameCheck || disabledForApartments;\n }\n\n get availableApartments() {\n const totalPlantApartments = this.currentEntrancePlant.buildings?.reduce(\n (acc, building) => acc + building.apartments?.length!,\n 0\n ) || 0;\n return 3999 - totalPlantApartments;\n }\n\n get risersCount() {\n if (!this.rfaConfig || !this.rfaConfig.risers) return 0;\n return this.rfaConfig.risers.length;\n }\n\n get totalAssignedApartments() {\n if (!this.rfaConfig || !this.rfaConfig.risers) return 0;\n return this.rfaConfig.risers.reduce(\n (acc, riser) =>\n acc +\n riser.floors!.reduce(\n (acc, floor) => acc + (floor.numberOfApartments ?? 0),\n 0\n ),\n 0\n );\n }\n\n get mismatchedApartmentsErrorText() {\n const firstLine = this.$t('entrancePlant.buildingApartments') + ': ' + this.rfaConfig.numberOfApartments;\n const secondLine = this.$t('entrancePlant.assignedApartmets') + ': ' + this.totalAssignedApartments;\n return [firstLine, secondLine];\n }\n\n updateApartmentCountValues() {\n if (this.isBrfa && this.building.apartmentsCount)\n this.apartmentCountValues = [\n ...Array(+this.building.apartmentsCount + 1).keys(),\n ].map((i) => { return { label: i, value: i }; });\n }\n\n riserName(index: number) {\n return `${this.$t('AppResourceEP.Name')} ${this.$t(\n 'AppResourceEP.Riser'\n )} ${toLabel(index, this.currentEntrancePlant.denominationRisers)}`;\n }\n\n floorsCount(riser: RiserConfigDTO) {\n if (!riser.floors) return 0;\n return riser.floors.length;\n }\n\n floorName(index: number) {\n return `${this.$t('AppResourceEP.Name')} ${this.$t(\n 'AppResourceEP.Floor'\n )} ${toLabel(index, this.currentEntrancePlant.denominationFloors)}`;\n }\n\n floorLabel(floor: FloorConfigDTO, index: number) {\n let label = `${this.$t('AppResourceEP.Floor')} ${toLabel(\n index,\n this.currentEntrancePlant.denominationFloors\n )}`;\n\n if (floor.name !== label) {\n label += ` - ${floor.name}`;\n }\n\n return label;\n }\n\n addRiser(risersToAdd = 1) {\n if (!this.rfaConfig) return;\n if (!this.rfaConfig.risers) this.rfaConfig.risers = [];\n\n for (let index = 0; index < risersToAdd; index++) {\n const riserIndex = this.rfaConfig.risers.length + 1;\n const riserName = `${this.$t('AppResourceEP.Riser')} ${toLabel(\n riserIndex,\n this.currentEntrancePlant.denominationRisers\n )}`;\n\n const riser = new RiserConfigDTO({\n index: riserIndex,\n name: riserName,\n });\n\n this.addFloor(riser, DEFAULT_NUMBER_OF_FLOORS_IN_RISER);\n this.rfaConfig.risers.push(riser);\n }\n distributeApartmentsToRaisersAndFloors(this.rfaConfig);\n }\n\n removeRiser() {\n if (!this.rfaConfig || !this.rfaConfig.risers) return;\n this.rfaConfig.risers.splice(this.rfaConfig.risers.length - 1, 1);\n distributeApartmentsToRaisersAndFloors(this.rfaConfig);\n }\n\n isLast(riserIndex: number) {\n if (!this.rfaConfig || !this.rfaConfig.risers) return false;\n return riserIndex + 1 === this.rfaConfig.risers.length;\n }\n\n addFloor(riser: RiserConfigDTO, floorsCount = 1) {\n if (!riser.floors) riser.floors = [];\n\n for (let index = 0; index < floorsCount; index++) {\n const floorIndex = riser.floors.length + 1;\n const floorName = `${this.$t('AppResourceEP.Floor')} ${toLabel(\n floorIndex,\n this.currentEntrancePlant.denominationFloors\n )}`;\n\n riser.floors.push(\n new FloorConfigDTO({\n index: floorIndex,\n name: floorName,\n })\n );\n }\n\n if (!this.rfaConfig || this.rfaConfig.risers?.length === 0) return;\n distributeApartmentsToRaisersAndFloors(this.rfaConfig);\n }\n\n removeFloor(riser: RiserConfigDTO) {\n if (!riser.floors) return;\n riser.floors.pop();\n distributeApartmentsToRaisersAndFloors(this.rfaConfig);\n }\n\n verifyValidityOfName() {\n if (this.building?.name === undefined) return;\n\n const nameToCheck = this.building.name.trim();\n let listToCheck = this.currentEntrancePlant.buildings || [];\n\n if (this.isEdit) {\n listToCheck = listToCheck.filter(\n (editing) => editing.buildingId !== this.buildingToEdit.buildingId\n );\n }\n\n const exist = listToCheck.some(\n (existing) =>\n existing.name?.toLowerCase().trim() == nameToCheck.toLowerCase().trim()\n );\n this.isValidName = !exist;\n this.invalidNameReason = this.isValidName\n ? ''\n : this.$t('general.alreadyExisting');\n }\n\n checkValidApartmentNumber() {\n this.validApartmentNumber = +this.building.apartmentsCount! <= this.availableApartments && +this.building.apartmentsCount! > 0;\n this.invalidNumberReason = this.validApartmentNumber ? '' : this.$t('entrancePlant.apartmentLimitReached', { maxApartments: 3999 });\n this.updateApartmentCountValues();\n }\n \n allApartmentsAssigned() {\n if (!this.rfaConfig || !this.rfaConfig.risers) return false;\n return this.rfaConfig.numberOfApartments === this.totalAssignedApartments;\n }\n\n handleButtonSubmitAction() {\n if (!this.isBrfa || this.isEdit) return this.lastStepFunction();\n\n switch (this.brfaStep) {\n case 0:\n this.rfaConfig.numberOfApartments = +(this.building.apartmentsCount || 0);\n this.addRiser(DEFAULT_NUMBER_OF_RISERS_IN_BUILDING);\n this.brfaStep++;\n break;\n\n case 1:\n this.brfaStep++;\n break;\n \n case 2:\n this.updateApartmentCountValues();\n this.brfaStep++;\n break;\n\n case 3:\n this.lastStepFunction();\n break;\n }\n }\n\n handleSecondaryButtonAction() {\n switch (this.brfaStep) {\n case 0:\n this.handleHideDialog();\n break;\n\n case 1:\n this.rfaConfig.risers = [];\n this.brfaStep--;\n break;\n\n default:\n this.brfaStep--;\n break;\n }\n }\n\n async lastStepFunction() {\n this.isDialogVisible = false;\n this.$store.dispatch(SET_APP_LOADING, true);\n\n await this.saveBuilding();\n\n this.$store.dispatch(SET_APP_LOADING, false);\n\n this.$emit('update-list');\n }\n\n retrieveEditedStructure() {\n const structure = new EntrancePlantStructureCreateDTO();\n structure.buildingsCreate = [];\n this.currentEntrancePlant.buildings?.forEach((epBuilding) =>\n structure.buildingsCreate?.push(\n new BuildingCreateDTO({\n buildingId: epBuilding.buildingId,\n name: epBuilding.name,\n apartmentsCount: epBuilding.apartments?.length,\n })\n )\n );\n\n if (this.isEdit) {\n const editingIndex = structure.buildingsCreate.findIndex(\n (editing) => editing.buildingId === this.building.buildingId\n );\n structure.buildingsCreate.splice(editingIndex, 1, this.building);\n } else {\n structure.buildingsCreate.push(this.building);\n }\n return structure;\n }\n\n async saveBuilding() {\n if (this.currentEntrancePlant.desktopId === undefined) return;\n try {\n const editStructure = this.retrieveEditedStructure();\n await plantsClient.structure(\n this.currentEntrancePlant.desktopId,\n editStructure\n );\n if (this.isBrfa && !this.isEdit) {\n const entrPlant = await plantsClient.entranceplantGET(\n this.currentEntrancePlant.desktopId!,\n this.currentEntrancePlant.lastModify\n );\n const rfaStructure: { [key: string]: RFAConfigDTO } = {};\n const newBuild = entrPlant.buildings?.find(\n (build) => build.name === this.building.name\n );\n rfaStructure[newBuild!.buildingId!] = this.rfaConfig;\n\n const structure = new EntrancePlantStructureCreateDTO({\n plantConfigStructure: rfaStructure,\n });\n\n await plantsClient.structure(\n this.currentEntrancePlant.desktopId!,\n structure\n );\n }\n \n } catch (error) {\n console.log(error);\n setTimeout(() => {\n this.$toast.add({\n severity: 'error',\n summary: 'Error',\n closable: false,\n life: 3000,\n });\n }, 1500);\n }\n }\n}\n","import { render } from \"./DialogAddEditBuilding.vue?vue&type=template&id=368effb6&ts=true\"\nimport script from \"./DialogAddEditBuilding.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogAddEditBuilding.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogAddEditBuilding.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"/home/vsts/work/1/s/Frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n"],"sourceRoot":""}