{"version":3,"sources":["webpack:///./src/assets/images/icons/icon-plus-outline.svg","webpack:///./src/assets/images/icons/icon-refresh.svg","webpack:///./src/assets/images/entrancePlants/icon-message.svg","webpack:///./src/assets/images/entrancePlants/icon-parameters.svg","webpack:///./src/assets/images/icons/icon-sync.svg","webpack:///./node_modules/core-js/modules/es.array.flat-map.js","webpack:///./src/assets/images/icons/icon-add.svg","webpack:///./src/assets/images/entrancePlants/icon-keypad.svg","webpack:///./src/assets/images/entrancePlants/icon-new-pe.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantGate/DialogAddEditGate/DialogAddEditGate.vue?cb90","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantGate/DialogAddEditGate/DialogAddEditGate.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantGate/DialogAddEditGate/DialogAddEditGate.vue","webpack:///./src/assets/images/entrancePlants/icon-gate.svg","webpack:///./node_modules/core-js/modules/es.array.unscopables.flat-map.js","webpack:///./src/assets/images/icon-check.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantGate/DialogAddEditGate/DialogAddEditGate.scss?af83","webpack:///./src/assets/images/entrancePlants/icon-building.svg","webpack:///./node_modules/core-js/internals/flatten-into-array.js","webpack:///./node_modules/core-js/modules/es.array.splice.js","webpack:///./src/assets/images/entrancePlants/icon-apartment.svg","webpack:///./src/assets/images/entrancePlants/icon-resident.svg","webpack:///./src/assets/images/entrancePlants/icon-smart-reader.svg","webpack:///./src/assets/images/entrancePlants/icon-badge.svg","webpack:///./src/views/components/ButtonSelection/ButtonSelection.vue?e3dd","webpack:///./src/views/components/ButtonSelection/ButtonSelection.ts","webpack:///./src/views/components/ButtonSelection/ButtonSelection.vue","webpack:///./src/assets/images/icons/icon-alert-medium-full.svg","webpack:///./src/assets/images/entrancePlants/icon-switchboard.svg","webpack:///./src/assets/images/entrancePlants/icon-guest.svg","webpack:///./src/views/components/ButtonSelection/ButtonSelection.scss?4a7a"],"names":["module","exports","$","flattenIntoArray","toObject","toLength","aFunction","arraySpeciesCreate","target","proto","flatMap","callbackfn","A","O","this","sourceLen","length","arguments","undefined","_hoisted_1","class","_hoisted_2","_hoisted_3","key","_hoisted_4","_hoisted_5","for","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","render","_ctx","_cache","$props","$setup","$data","$options","_component_InputText","_component_ButtonSelection","_component_ListItemCheck","_component_ElScrollbar","_component_Button","_component_Dialog","visible","isDialogVisible","$event","showHeader","modal","onHide","doHideDialog","default","dialogTitle","onlyDevices","$t","modelValue","currentGate","gateName","id","type","isValidName","invalidNameReason","icon","label","newPeSelected","disabled","newPeDisabled","keypadSelected","keypadDisabled","smartReaderSelected","smartReaderDisabled","isValidScs","min","MIN_SCS_ADDRESS","max","MAX_SCS_ADDRESS","scsAddress","invalidScsReason","currentEntrancePlant","buildings","inputId","name","allBuildings","handleUpdateBuildingSelection","AllBuildingsValue","binary","building","i","last","value","buildingId","selectedBuildingIds","isBRFA","b","risers","allRisers","handleUpdateRiserSelection","AllRisersValue","riser","riserId","selectedRiserIds","_","onClick","handleHideDialog","isEdit","handleButtonSubmitAction","saveButtonDisabled","selectAll","devicesSelected","buildingsSelected","risersSelected","every","addressingType","BuildingRiserFloorApartment","filter","includes","gateToEdit","scsAddressHelper","availableScsAddressGate","push","devices","some","device","Linea5000","KeyPad","SmartAccess","connectedBuildingIds","connectedRiserIds","connectedApartmentsIds","apartments","firstAvailableScsAddressGate","gates","map","r","forEach","nameToCheck","trim","alreadyExist","Number","acceptedRange","isItAvailable","doesNotExist","listToCheck","gate","gateId","nameExist","existing","toLowerCase","addrExist","selectBuildings","selectedApartments","a","apartmentId","saveGate","$emit","$toast","add","severity","summary","life","$store","dispatch","Object","values","retrieveApartmentIds","gateToUpdate","gatePUT","desktopId","gatePOST","console","log","setTimeout","closable","option","element","splice","find","props","isVisible","Boolean","required","computed","components","ButtonSelection","watch","newValue","initGate","verifyValidityOfName","verifyValidityOfScsAddress","newVal","emits","__exports__","addToUnscopables","isArray","bind","original","source","start","depth","mapper","thisArg","targetIndex","sourceIndex","mapFn","TypeError","toAbsoluteIndex","toInteger","createProperty","arrayMethodHasSpeciesSupport","HAS_SPECIES_SUPPORT","Math","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","forced","deleteCount","insertCount","actualDeleteCount","k","from","to","len","actualStart","argumentsLength","_withId","_component_InlineSvgScoped","active","localValue","toggleValue","src","String"],"mappings":"yIAAAA,EAAOC,QAAU,IAA0B,sC,uBCA3CD,EAAOC,QAAU,IAA0B,iC,qBCA3CD,EAAOC,QAAU,IAA0B,iC,uBCA3CD,EAAOC,QAAU,IAA0B,oC,gDCA3CD,EAAOC,QAAU,IAA0B,8B,oCCC3C,IAAIC,EAAI,EAAQ,QACZC,EAAmB,EAAQ,QAC3BC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAY,EAAQ,QACpBC,EAAqB,EAAQ,QAIjCL,EAAE,CAAEM,OAAQ,QAASC,OAAO,GAAQ,CAClCC,QAAS,SAAiBC,GACxB,IAEIC,EAFAC,EAAIT,EAASU,MACbC,EAAYV,EAASQ,EAAEG,QAK3B,OAHAV,EAAUK,GACVC,EAAIL,EAAmBM,EAAG,GAC1BD,EAAEI,OAASb,EAAiBS,EAAGC,EAAGA,EAAGE,EAAW,EAAG,EAAGJ,EAAYM,UAAUD,OAAS,EAAIC,UAAU,QAAKC,GACjGN,M,uBClBXZ,EAAOC,QAAU,IAA0B,6B,qBCA3CD,EAAOC,QAAU,IAA0B,gC,uBCA3CD,EAAOC,QAAU,IAA0B,gC,8DCErCkB,EAAa,CAAEC,MAAO,8BACtBC,EAAa,CAAED,MAAO,wBACtBE,EAAa,CACjBC,IAAK,EACLH,MAAO,WAEHI,EAAa,CAAEJ,MAAO,sBACtBK,EAAa,CACjBC,IAAK,WACLN,MAAO,qBAEHO,EAAa,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,SAAU,CACRN,KAAMwH,QACNhI,SAAS,EACTiI,UAAU,GAEZtH,KAAM,CACJH,KAAM0K,OACNjD,UAAU,GAEZrH,MAAO,CACLJ,KAAM0K,OACNjD,UAAU,IAGdU,MAAO,CAAC,wBAEW,W,iCClBrB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAShK,GAAQ,CAAC,YAAY,qBAE1E,U,qBCTftC,EAAOC,QAAU,IAA0B,2C,qBCA3CD,EAAOC,QAAU,IAA0B,qC,qBCA3CD,EAAOC,QAAU,IAA0B,+B,kCCA3C","file":"js/page-entranceplant-dashboard~page-entranceplant-gate.dea3c3cb.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/icon-plus-outline.6d157290.svg\";","module.exports = __webpack_public_path__ + \"img/icon-refresh.e78fba07.svg\";","module.exports = __webpack_public_path__ + \"img/icon-message.297290d6.svg\";","module.exports = __webpack_public_path__ + \"img/icon-parameters.b57aa86c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-sync.504e71f4.svg\";","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar aFunction = require('../internals/a-function');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A;\n aFunction(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n","module.exports = __webpack_public_path__ + \"img/icon-add.e7fd00be.svg\";","module.exports = __webpack_public_path__ + \"img/icon-keypad.46481c63.svg\";","module.exports = __webpack_public_path__ + \"img/icon-new-pe.23aa14a1.svg\";","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, withCtx as _withCtx, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header mb-4\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"p-field\"\n}\nconst _hoisted_4 = { class: \"p-field-label mb-3\" }\nconst _hoisted_5 = {\n for: \"gateName\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_6 = { class: \"p-field\" }\nconst _hoisted_7 = { class: \"p-field-label mb-3\" }\nconst _hoisted_8 = { class: \"d-flex mb-4\" }\nconst _hoisted_9 = { key: 1 }\nconst _hoisted_10 = {\n class: \"p-field-label mt-1\",\n for: \"scsAddr\"\n}\nconst _hoisted_11 = {\n for: \"scsAddr\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_12 = { class: \"p-field-label mt-5 mb-3\" }\nconst _hoisted_13 = { key: 0 }\nconst _hoisted_14 = { key: 1 }\nconst _hoisted_15 = { class: \"mt-4 mb-3 secondary-label fw-normal fs-12 text-uppercase\" }\nconst _hoisted_16 = { class: \"dialog-custom__footer\" }\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_ButtonSelection = _resolveComponent(\"ButtonSelection\")\n const _component_ListItemCheck = _resolveComponent(\"ListItemCheck\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\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[9] || (_cache[9] = ($event: any) => (_ctx.isDialogVisible = $event)),\n showHeader: false,\n modal: true,\n onHide: _ctx.doHideDialog,\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\", {\n class: [\"dialog-custom__content form-custom\", _ctx.onlyDevices ? 'devices-only' : 'gate-config']\n }, [\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n (!_ctx.onlyDevices)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3, [\n _createVNode(\"label\", _hoisted_4, _toDisplayString(_ctx.$t(\"AppResourceEP.Name\")), 1),\n _createVNode(_component_InputText, {\n modelValue: _ctx.currentGate.gateName,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.currentGate.gateName = $event)),\n id: \"gateName\",\n type: \"text\",\n class: [\"w-50\", { 'input-error': !_ctx.isValidName }]\n }, null, 8, [\"modelValue\", \"class\"]),\n _createVNode(\"div\", null, [\n _createVNode(\"label\", _hoisted_5, _toDisplayString(_ctx.invalidNameReason), 1)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"label\", _hoisted_7, _toDisplayString(_ctx.$t(\"SelectDevicesInGate\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(_component_ButtonSelection, {\n class: \"ml-1 mr-4\",\n icon: require(`@/assets/images/entrancePlants/icon-new-pe.svg`),\n label: _ctx.$t('AppResourceEP.NewPeDevice'),\n modelValue: _ctx.currentGate.newPeSelected,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.currentGate.newPeSelected = $event)),\n disabled: _ctx.newPeDisabled\n }, null, 8, [\"icon\", \"label\", \"modelValue\", \"disabled\"]),\n _createVNode(_component_ButtonSelection, {\n class: \"mr-4\",\n icon: require(`@/assets/images/entrancePlants/icon-keypad.svg`),\n label: _ctx.$t('AppResourceEP.KeyPad'),\n modelValue: _ctx.currentGate.keypadSelected,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.currentGate.keypadSelected = $event)),\n disabled: _ctx.keypadDisabled\n }, null, 8, [\"icon\", \"label\", \"modelValue\", \"disabled\"]),\n _createVNode(_component_ButtonSelection, {\n class: \"mr-4\",\n icon: require(`@/assets/images/entrancePlants/icon-smart-reader.svg`) ,\n label: _ctx.$t('AppResourceEP.SmartReader'),\n modelValue: _ctx.currentGate.smartReaderSelected,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.currentGate.smartReaderSelected = $event)),\n disabled: _ctx.smartReaderDisabled\n }, null, 8, [\"icon\", \"label\", \"modelValue\", \"disabled\"])\n ]),\n (!_ctx.onlyDevices)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_9, [\n _createVNode(\"label\", _hoisted_10, _toDisplayString(_ctx.$t(\"AppResourceEP.DeviceScsAddress\")), 1),\n _createVNode(_component_InputText, {\n id: \"scsAddr\",\n type: \"number\",\n class: [\"w-50\", { 'input-error': !_ctx.isValidScs }],\n min: _ctx.MIN_SCS_ADDRESS,\n max: _ctx.MAX_SCS_ADDRESS,\n modelValue: _ctx.currentGate.scsAddress,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.currentGate.scsAddress = $event))\n }, null, 8, [\"min\", \"max\", \"modelValue\", \"class\"]),\n _createVNode(\"div\", null, [\n _createVNode(\"label\", _hoisted_11, _toDisplayString(_ctx.invalidScsReason), 1)\n ]),\n _createVNode(\"label\", _hoisted_12, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupDefineGatesBuildingGovern\")), 1),\n (_ctx.currentEntrancePlant.buildings )\n ? (_openBlock(), _createBlock(\"div\", _hoisted_13, [\n _createVNode(_component_ListItemCheck, {\n label: _ctx.$t('AppResource.All'),\n inputId: \"AllBuilding\",\n name: \"building\",\n modelValue: _ctx.allBuildings,\n \"onUpdate:modelValue\": [\n _cache[6] || (_cache[6] = ($event: any) => (_ctx.allBuildings = $event)),\n _cache[7] || (_cache[7] = ($event: any) => (_ctx.handleUpdateBuildingSelection(_ctx.AllBuildingsValue)))\n ],\n binary: \"\"\n }, null, 8, [\"label\", \"modelValue\"]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.currentEntrancePlant.buildings, (building, i) => {\n return (_openBlock(), _createBlock(_component_ListItemCheck, {\n key: i,\n last: i == _ctx.currentEntrancePlant.buildings.length - 1,\n label: building.name,\n value: building.buildingId,\n inputId: 'building' + i,\n name: \"building\",\n modelValue: _ctx.selectedBuildingIds,\n \"onUpdate:modelValue\": [\n _cache[8] || (_cache[8] = ($event: any) => (_ctx.selectedBuildingIds = $event)),\n ($event: any) => (_ctx.handleUpdateBuildingSelection('', building.buildingId))\n ]\n }, null, 8, [\"last\", \"label\", \"value\", \"inputId\", \"modelValue\", \"onUpdate:modelValue\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isBRFA)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_14, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.buildings, (b) => {\n return (_openBlock(), _createBlock(_Fragment, {\n key: b.buildingId\n }, [\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResource.For\")) + \" \" + _toDisplayString(b.name) + \" \" + _toDisplayString(_ctx.$t(\"TheyManage\")), 1)\n ]),\n (b && b.risers && b.buildingId)\n ? (_openBlock(), _createBlock(_Fragment, { key: 0 }, [\n _createVNode(_component_ListItemCheck, {\n label: _ctx.$t('AppResourceEP.SetupDefineGatesBuildingAllRisers'),\n inputId: \"AllRisers_b_{{b.buildingId}}\",\n name: \"riser\",\n modelValue: _ctx.allRisers[b.buildingId],\n \"onUpdate:modelValue\": [($event: any) => (_ctx.allRisers[b.buildingId] = $event), ($event: any) => (_ctx.handleUpdateRiserSelection(_ctx.AllRisersValue, b.buildingId))],\n binary: \"\"\n }, null, 8, [\"label\", \"modelValue\", \"onUpdate:modelValue\"]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(b.risers, (riser, i) => {\n return (_openBlock(), _createBlock(_component_ListItemCheck, {\n key: i,\n last: i == b.risers.length - 1,\n label: riser.name,\n value: riser.riserId,\n inputId: 'riser' + i,\n name: \"riser\",\n modelValue: _ctx.selectedRiserIds[b.buildingId],\n \"onUpdate:modelValue\": [($event: any) => (_ctx.selectedRiserIds[b.buildingId] = $event), ($event: any) => (_ctx.handleUpdateRiserSelection('',b.buildingId))]\n }, null, 8, [\"last\", \"label\", \"value\", \"inputId\", \"modelValue\", \"onUpdate:modelValue\"]))\n }), 128))\n ], 64))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ], 2),\n _createVNode(\"footer\", _hoisted_16, [\n _createVNode(_component_Button, {\n class: \"p-button-text 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 label: \n _ctx.isEdit ? _ctx.$t('AppResource.Save') : _ctx.$t('AppResource.Create')\n ,\n onClick: _ctx.handleButtonSubmitAction,\n class: \"p-button-rounded p-button-raised p-button--m\",\n disabled: _ctx.saveButtonDisabled\n }, null, 8, [\"label\", \"onClick\", \"disabled\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { AddressingType, ApartmentDTO, BuildingDTO, EntrancePlantDetailDTO, EntrancePlantStructureCreateDTO, EPDeviceTypeEnum, GateConfigDTO, GateDTO, RiserDTO } from \"@/../client-generator/generated-clients/plants\";\nimport { Options, Vue } from \"vue-class-component\";\nimport { mapState } from \"vuex\";\nimport { PropType } from \"vue\";\nimport ButtonSelection from \"@/views/components/ButtonSelection/ButtonSelection.vue\";\nimport { SET_APP_LOADING } from \"@/core/store/action-types\";\nimport plantsClient from \"@/core/services/plants\";\nimport { isNumber, isString } from '@microsoft/applicationinsights-core-js';\nimport { deepEquals } from \"@/core/utils/utils\";\n\n@Options({\n name: \"DialogAddEditGate\",\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n gateToEdit: {\n type: Object as PropType<GateDTO>,\n required: false,\n default: null,\n },\n onlyDevices: {\n type: Boolean,\n required: false,\n default: false,\n },\n },\n computed: {\n ...mapState(['currentEntrancePlant']), \n },\n components: { \n ButtonSelection,\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n if (this.isDialogVisible) {\n this.initGate();\n }\n },\n \"currentGate.gateName\": function () {\n this.verifyValidityOfName()\n },\n \"currentGate.scsAddress\": function () {\n this.verifyValidityOfScsAddress()\n },\n \"currentGate.newPeSelected\": function (newVal) {\n if (newVal) {\n this.smartReaderDisabled = true;\n this.keypadDisabled = false;\n } else if (!this.currentGate.keypadSelected) {\n this.smartReaderDisabled = false;\n }\n },\n \"currentGate.keypadSelected\": function (newVal) {\n if (newVal) {\n this.smartReaderDisabled = true;\n this.newPeDisabled = false;\n } else if (!this.currentGate.newPeSelected) {\n this.smartReaderDisabled = false;\n }\n },\n \"currentGate.smartReaderSelected\": function (newVal) {\n if (newVal) {\n this.newPeDisabled = true;\n this.keypadDisabled = true;\n } else {\n this.newPeDisabled = false;\n this.keypadDisabled = false;\n }\n },\n },\n emits: ['hide-dialog', 'update-list'],\n})\nexport default class DialogAddEditGate extends Vue {\n currentEntrancePlant!: EntrancePlantDetailDTO;\n gateToEdit!: GateDTO | null;\n isVisible!: boolean;\n onlyDevices!: boolean;\n isEdit = false;\n isDialogVisible = false;\n currentGate: GateConfigDTO = new GateConfigDTO();\n readonly MIN_SCS_ADDRESS = 0;\n readonly MAX_SCS_ADDRESS = 95;\n allBuildings = false;\n allRisers: {[buildingid: string]: boolean} = {};\n readonly AllBuildingsValue = \"All_buildings\";\n readonly AllRisersValue = \"All_risers\";\n newPeDisabled = false;\n keypadDisabled = false;\n smartReaderDisabled = false;\n selectAll: string[] = [];\n selectedBuildingIds: string[] = [];\n selectedRiserIds: {[buildingid: string]: string[]} = {};\n isValidName = true;\n invalidNameReason = '';\n isValidScs = true;\n invalidScsReason = '';\n \n\n get dialogTitle() {\n return this.isEdit\n ? this.$t('AppResourceEP.EditGate')\n : this.$t('AppResourceEP.SetupGateTitle');\n }\n\n get saveButtonDisabled() {\n let devicesSelected = this.currentGate.newPeSelected || this.currentGate.keypadSelected || this.currentGate.smartReaderSelected;\n let buildingsSelected = this.selectedBuildingIds.length > 0;\n let risersSelected = this.isBRFA ? this.buildings.every(b => this.selectedRiserIds[b.buildingId!] && this.selectedRiserIds[b.buildingId!].length > 0) : true;\n return !devicesSelected || !buildingsSelected || !risersSelected || !this.isValidName || !this.isValidScs;\n }\n\n get isBRFA() { \n return this.currentEntrancePlant.addressingType === AddressingType.BuildingRiserFloorApartment;\n }\n\n get buildings(): BuildingDTO[] {\n if (!this.currentEntrancePlant.buildings) return [];\n return this.currentEntrancePlant.buildings.filter((building) => this.selectedBuildingIds!.includes(building.buildingId!));\n }\n\n initGate() {\n if (this.gateToEdit) {\n this.isEdit = true;\n this.currentEntrancePlant.scsAddressHelper?.availableScsAddressGate?.push(this.gateToEdit.scsAddress!)\n this.currentGate = new GateConfigDTO(\n {\n scsAddress: this.gateToEdit.scsAddress,\n gateName: this.gateToEdit.name,\n newPeSelected: this.gateToEdit.devices?.some(\n (device) => device.type === EPDeviceTypeEnum.Linea5000\n ),\n keypadSelected: this.gateToEdit.devices?.some(\n (device) => device.type === EPDeviceTypeEnum.KeyPad\n ),\n smartReaderSelected: this.gateToEdit.devices?.some(\n (device) => device.type === EPDeviceTypeEnum.SmartAccess\n ),\n connectedBuildingIds: this.gateToEdit.connectedBuildingIds,\n connectedRiserIds: this.gateToEdit.connectedRiserIds,\n connectedApartmentsIds: this.gateToEdit.apartments,\n }\n );\n } else {\n this.isEdit = false;\n this.currentGate = new GateConfigDTO(\n {\n scsAddress: this.currentEntrancePlant.scsAddressHelper?.firstAvailableScsAddressGate,\n gateName: `${this.$t('AppResourceEP.Gate')} ${this.currentEntrancePlant.gates!.length + 1}`,\n newPeSelected: false,\n keypadSelected: false,\n smartReaderSelected: false,\n connectedBuildingIds: this.currentEntrancePlant.buildings?.map(b => b.buildingId!) ?? [],\n connectedRiserIds: this.currentEntrancePlant.buildings?.flatMap(b => b.risers!.map(r => r.riserId!)) ?? [],\n connectedApartmentsIds: [],\n }\n );\n }\n this.selectedBuildingIds = this.currentGate.connectedBuildingIds ?? [];\n if (this.selectedBuildingIds.length == this.currentEntrancePlant.buildings!.length) {\n this.allBuildings = true;\n }\n if (this.isBRFA) {\n this.currentEntrancePlant.buildings?.forEach(b => {\n this.selectedRiserIds[b.buildingId!] = this.currentGate.connectedRiserIds?.filter(r => b.risers?.some(riser => riser.riserId == r)) ?? [];\n if (this.selectedRiserIds[b.buildingId!]?.length == b.risers?.length) {\n this.allRisers[b.buildingId!] = true;\n }\n });\n }\n }\n\n verifyValidityOfName() {\n if (this.currentGate.gateName === undefined) return;\n\n const nameToCheck = this.currentGate.gateName.trim();\n this.isValidName = !this.alreadyExist(nameToCheck);\n this.invalidNameReason = this.isValidName\n ? ''\n : this.$t('general.alreadyExisting');\n }\n\n verifyValidityOfScsAddress() {\n if (this.currentGate.scsAddress === undefined) return false;\n \n const value = Number(this.currentGate.scsAddress);\n\n const acceptedRange = value >= this.MIN_SCS_ADDRESS && value <= this.MAX_SCS_ADDRESS;\n const isItAvailable = this.currentEntrancePlant.scsAddressHelper?.availableScsAddressGate?.includes(value) ?? false;\n const doesNotExist = !this.alreadyExist(value)\n this.isValidScs = acceptedRange && doesNotExist && isItAvailable;\n if (!acceptedRange) {\n this.invalidScsReason = this.$t('AppResourceEP.GateScsAddressOutOfRange');\n } else if (!doesNotExist) {\n this.invalidScsReason = this.$t('AppResourceEP.ScsAddressAlreadyInUse');\n } else if (!isItAvailable) {\n this.invalidScsReason = this.$t('AppResourceEP.InputNotValid');\n } else {\n this.invalidScsReason = '';\n }\n }\n\n\n alreadyExist(value: string | number): boolean {\n let listToCheck = this.currentEntrancePlant.gates || [];\n if (this.isEdit) {\n listToCheck = listToCheck.filter(\n (gate) => gate.gateId !== this.gateToEdit?.gateId\n );\n }\n if (isString(value)) {\n const nameExist = listToCheck.some(\n (existing) => existing.name?.toLowerCase().trim() === (value as string).toLowerCase().trim()\n );\n return nameExist;\n } else if(isNumber(value)) {\n const addrExist = listToCheck.some(\n (existing) => existing.scsAddress === value as number \n );\n return addrExist;\n }\n return true\n }\n\n retrieveApartmentIds() {\n if (this.isBRFA)\n {\n const selectBuildings = (this.currentEntrancePlant.buildings || [])\n .filter((b: BuildingDTO) => this.currentGate.connectedBuildingIds?.includes(b.buildingId!));\n const selectedApartments = selectBuildings\n .flatMap((b: BuildingDTO) => b.apartments || [])\n .filter((r: RiserDTO) => r.riserId && this.currentGate.connectedRiserIds?.includes(r.riserId))\n .map((a: ApartmentDTO) => a.apartmentId!);\n this.currentGate.connectedApartmentsIds = selectedApartments;\n } \n else \n {\n this.currentGate.connectedApartmentsIds = this.currentEntrancePlant.buildings\n ?.filter((b: BuildingDTO) => this.currentGate.connectedBuildingIds?.includes(b.buildingId!))\n .flatMap((b: BuildingDTO) => b.apartments || [])\n .map((a: ApartmentDTO) => a.apartmentId!) || [];\n }\n }\n\n async handleButtonSubmitAction() {\n this.isDialogVisible = false;\n await this.saveGate();\n\n this.$emit('update-list');\n this.$toast.add({\n severity: 'success',\n summary: this.$t('AppResourceEP.GateBannerAdded'),\n life: 3000,\n });\n }\n\n async saveGate() {\n this.$store.dispatch(SET_APP_LOADING, true);\n try {\n this.currentGate.connectedBuildingIds = this.selectedBuildingIds;\n this.currentGate.connectedRiserIds = this.isBRFA ? Object.values(this.selectedRiserIds).flatMap(r => r) : [];\n if(!deepEquals(this.currentGate.connectedBuildingIds, this.gateToEdit?.connectedBuildingIds) \n || !deepEquals(this.currentGate.connectedRiserIds, this.gateToEdit?.connectedRiserIds)) {\n this.retrieveApartmentIds();\n }\n if (this.isEdit) {\n const gateToUpdate: {[key: string]: GateConfigDTO} = {[this.gateToEdit!.gateId!]: this.currentGate};\n await plantsClient.gatePUT(this.currentEntrancePlant.desktopId!, gateToUpdate);\n } else {\n await plantsClient.gatePOST(this.currentEntrancePlant.desktopId!, this.currentGate);\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 } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n handleUpdateBuildingSelection(option: string, buildingId?: string, ) {\n if (option == this.AllBuildingsValue) {\n if (!this.allBuildings) {\n this.selectedBuildingIds.splice(0);\n this.currentEntrancePlant.buildings!.forEach(b => {\n this.selectedRiserIds[b.buildingId!] = [];\n this.allRisers[b.buildingId!] = false;\n });\n }\n else {\n this.currentEntrancePlant.buildings!.forEach(element => {\n if (!this.selectedBuildingIds.includes(element.buildingId!)) {\n this.selectedBuildingIds.push(element.buildingId!);\n this.selectedRiserIds[element.buildingId!] = [];\n this.allRisers[element.buildingId!] = false;\n }\n });\n }\n }\n else if(buildingId) {\n if (!this.allBuildings && this.selectedBuildingIds.length == this.currentEntrancePlant.buildings?.length) {\n this.allBuildings = true;\n this.selectedRiserIds[buildingId] = [];\n this.allRisers[buildingId] = false;\n }\n else if (this.allBuildings) {\n this.allBuildings = false;\n this.selectedRiserIds[buildingId] = [];\n this.allRisers[buildingId] = false;\n }\n }\n }\n\n handleUpdateRiserSelection(option: string, buildingId: string) {\n let building = this.currentEntrancePlant.buildings!.find(b => b.buildingId == buildingId);\n if (building) { \n if (option == this.AllRisersValue) {\n if (!this.allRisers[buildingId]) {\n this.selectedRiserIds[buildingId].splice(0);\n }\n else {\n this.selectedRiserIds[buildingId] = building.risers!.map(r => r.riserId!);\n }\n }\n else {\n if (!this.allRisers[buildingId] && this.selectedRiserIds[buildingId].length == building.risers!.length) {\n this.allRisers[buildingId] = true;\n }\n else if (this.allRisers[buildingId]) {\n this.allRisers[buildingId] = false;\n }\n }\n }\n }\n}\n\n","import { render } from \"./DialogAddEditGate.vue?vue&type=template&id=aa8b250e&ts=true\"\nimport script from \"./DialogAddEditGate.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogAddEditGate.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogAddEditGate.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__","module.exports = __webpack_public_path__ + \"img/icon-gate.89a8ac52.svg\";","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flatMap');\n","module.exports = __webpack_public_path__ + \"img/icon-check.ea86f165.svg\";","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!./DialogAddEditGate.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-building.7c6caebd.svg\";","'use strict';\nvar isArray = require('../internals/is-array');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg, 3) : false;\n var element;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n","'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","module.exports = __webpack_public_path__ + \"img/icon-apartment.5ae334cb.svg\";","module.exports = __webpack_public_path__ + \"img/icon-resident.fa4efdcd.svg\";","module.exports = __webpack_public_path__ + \"img/icon-smart-reader.32311338.svg\";","module.exports = __webpack_public_path__ + \"img/icon-badge.0c90095c.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-0849788d\")\n\n_pushScopeId(\"data-v-0849788d\")\nconst _hoisted_1 = {\n key: 0,\n class: \"badge\"\n}\nconst _hoisted_2 = { class: \"ml-2\" }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n\n return (_openBlock(), _createBlock(\"div\", {\n class: [\"button-selection\", { disabled: _ctx.disabled, active: _ctx.localValue }],\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.toggleValue()))\n }, [\n (_ctx.localValue)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(_component_InlineSvgScoped, {\n src: require(`@/assets/images/icon-check.svg`),\n \"aria-label\": \"icon-blueprint\"\n }, null, 8, [\"src\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_InlineSvgScoped, {\n src: _ctx.icon,\n \"aria-label\": \"icon-blueprint\"\n }, null, 8, [\"src\"]),\n _createVNode(\"span\", _hoisted_2, _toDisplayString(_ctx.label), 1)\n ], 2))\n})","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'ButtonSelection',\n props: {\n modelValue: {\n type: Boolean,\n required: true,\n },\n disabled: {\n type: Boolean,\n default: false,\n required: true,\n },\n icon: {\n type: String,\n required: true,\n },\n label: {\n type: String,\n required: true,\n },\n },\n emits: ['update:modelValue'],\n})\nexport default class ToggleSwitchButton extends Vue {\n modelValue?: boolean;\n disabled?: boolean;\n icon !: string;\n label !: string;\n\n get localValue (){\n return this.modelValue ?? false\n }\n set localValue (value: boolean){\n if (this.disabled) return;\n this.$emit('update:modelValue', value);\n }\n\n toggleValue() {\n this.localValue = !this.localValue;\n }\n}\n","import { render } from \"./ButtonSelection.vue?vue&type=template&id=0849788d&scoped=true&ts=true\"\nimport script from \"./ButtonSelection.ts?vue&type=script&lang=ts\"\nexport * from \"./ButtonSelection.ts?vue&type=script&lang=ts\"\n\nimport \"./ButtonSelection.scss?vue&type=style&index=0&id=0849788d&lang=scss&scoped=true\"\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],['__scopeId',\"data-v-0849788d\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/icon-alert-medium-full.bcb368fc.svg\";","module.exports = __webpack_public_path__ + \"img/icon-switchboard.8b491d14.svg\";","module.exports = __webpack_public_path__ + \"img/icon-guest.8344f74b.svg\";","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!./ButtonSelection.scss?vue&type=style&index=0&id=0849788d&lang=scss&scoped=true\""],"sourceRoot":""}