{"version":3,"sources":["webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantBadges/DialogAddBadge/ApartmentSelector/ApartmentSelector.scss?be85","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSettings/EntrancePlantStructure/BuildingItem/BuildingItem.vue?5f36","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSettings/EntrancePlantStructure/BuildingItem/BuildingItem.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantSettings/EntrancePlantStructure/BuildingItem/BuildingItem.vue","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/EntrancePlantBadges/DialogAddBadge/BuildingSelector/BuildingSelector.scss?009b","webpack:///./node_modules/core-js/modules/es.regexp.constructor.js","webpack:///./src/core/utils/axios-instance.ts","webpack:///./src/assets/images/icons/icon-alert-medium-outline.svg","webpack:///./src/assets/images/entrancePlants/icon-building.svg","webpack:///./src/assets/images/entrancePlants/icon-apartment.svg","webpack:///./src/core/services/plants.ts","webpack:///./src/core/utils/EntrancePlant/entrance-plant.utils.ts","webpack:///./src/assets/images/entrancePlants/icon-badge.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantBadges/DialogAddBadge/ApartmentSelector/ApartmentSelector.vue?d7d0","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantBadges/DialogAddBadge/ApartmentSelector/ApartmentSelector.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantBadges/DialogAddBadge/ApartmentSelector/ApartmentSelector.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantBadges/DialogAddBadge/BuildingSelector/BuildingSelector.vue?f719","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantBadges/DialogAddBadge/BuildingSelector/BuildingSelector.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantBadges/DialogAddBadge/BuildingSelector/BuildingSelector.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","render","_ctx","_cache","$props","$setup","$data","$options","_component_InlineSvgScoped","_component_Button","_component_Card","content","src","building","name","risersFloorApartmentCount","icon","_","risersCount","floorsCount","apartmentsCount","this","currentEntrancePlant","addressingType","BuildingRiserFloorApartment","risers","length","$t","floors","apartments","props","type","required","computed","emits","__exports__","_component_Dialog","visible","isDialogVisible","$event","onHide","doHideDialog","modal","showHeader","closable","default","dialogTitle","dialogMessage","onClick","handleHideDialog","doConfirm","title","message","isVisible","$emit","Boolean","String","watch","newValue","DESCRIPTORS","global","isForced","inheritIfRequired","defineProperty","f","getOwnPropertyNames","isRegExp","getFlags","stickyHelpers","redefine","fails","setInternalState","set","setSpecies","wellKnownSymbol","MATCH","NativeRegExp","RegExp","RegExpPrototype","prototype","re1","re2","CORRECT_NEW","UNSUPPORTED_Y","FORCED","RegExpWrapper","pattern","flags","sticky","thisIsRegExp","patternIsRegExp","flagsAreUndefined","undefined","constructor","source","call","indexOf","replace","result","proxy","key","configurable","get","it","keys","index","a","defaults","timeout","interceptors","request","use","config","getToken","token","headers","Authorization","response","error","addError","JSON","stringify","toJSON","status","emit","Promise","reject","push","module","exports","init","data","property","Object","hasOwnProperty","$type","plantsClient","CallMode","EPDeviceTypeEnum","addressBookSortingOptions","reduce","t","k","isNaN","code","noAppartmentOptions","Array","from","label","toString","value","distributeApartmentsToRaisersAndFloors","structure","distribution","distributeElementsInGroups","numberOfApartments","riser","riserIndex","numberOfApartmentsInRiser","distributeApartmentsToFloors","floorsWithoutRiser","floor","floorIndex","numberOfElements","numberOfGroups","Error","numberOfElementsInGroup","groupsWithExtraElement","groupIndex","elementsInGroup","getDeviceIconFromType","isCodeCorrectValue","codeRequiredLength","regex","test","loadRisersFloorsApartments","filter","riserId","floorsApartments","apartment","floorId","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_component_RadioButton","_component_ElScrollbar","_component_TabPanel","_component_TabView","AddressingType","buildingStructure","riserTab","header","floorsection","apartmentIndex","id","modelValue","selectedApartment","onChange","apartmentSelected","for","buildings","selectedBuilding","_component_BuildingItem","plantAddressType","buildingSelected","components","BuildingItem"],"mappings":"oLAAA,W,uFCEMA,EAAa,CAAEC,MAAO,wCACtBC,EAAa,CAAED,MAAO,kCACtBE,EAAa,CAAEF,MAAO,8BACtBG,EAAa,CAAEH,MAAO,QACtBI,EAAa,CAAEJ,MAAO,aACtBK,EAAa,CAAEL,MAAO,kBAEtB,SAAUM,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA6B,8BAAkB,mBAC/CC,EAAoB,8BAAkB,UACtCC,EAAkB,8BAAkB,QAE1C,OAAQ,yBAAc,yBAAaA,EAAiB,CAAEf,MAAO,4BAA8B,CACzFgB,QAAS,sBAAS,iBAAM,CACtB,yBAAa,MAAOjB,EAAY,CAC9B,yBAAa,MAAOE,EAAY,CAC9B,yBAAa,OAAQC,EAAY,CAC/B,yBAAaW,EAA4B,CACvCI,IACkB,EAAQ,QAE1B,aAAc,iBACb,KAAM,EAAG,CAAC,UAEf,yBAAa,MAAOd,EAAY,CAC9B,yBAAa,KAAMC,EAAY,6BAAiBG,EAAKW,SAASC,MAAO,GACrE,yBAAa,QAASd,EAAY,6BAAiBE,EAAKa,2BAA4B,OAGxF,yBAAaN,EAAmB,CAC9BO,KAAM,sBACNrB,MAAO,wDAIbsB,EAAG,I,0HChBc,EAArB,yLAIE,WAA6B,MAQzB,IAPEC,EAAc,GACdC,EAAc,GACdC,EAAkB,GAGpBC,KAAKC,qBAAqBC,iBAC1B,OAAeC,8BAEfN,EAAc,GAAH,iBAAMG,KAAKR,SAASY,cAApB,aAAM,EAAsBC,OAA5B,YAAsCL,KAAKM,GACpD,yBAEFR,EAAc,GAAH,iBAAME,KAAKR,SAASe,cAApB,aAAM,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qL,WAAW,SAAC9L,EAAU4F,GAC3G,OAAQ,yBAAc,yBAAaoG,EAAyB,CAC1DzG,IAAKK,EACL9G,MAAO,qCACPkB,SAAUA,EACViM,iBAAkB5M,EAAKoB,qBAAqBC,eAC5CyB,QAAS,SAACT,GAAD,OAAkBrC,EAAK6M,iBAAiBlM,KAChD,KAAM,EAAG,CAAC,WAAY,mBAAoB,eAC3C,UAENI,EAAG,I,gHCAc,EAArB,kLAGE,SAAiBJ,GACfQ,KAAKiC,MAAM,oBAAqBzC,OAJpC,GAA8C,QAAzB,EAAgB,gBAVpC,eAAQ,CACPC,KAAM,mBACNmB,SAAU,kBACL,eAAS,CAAC,0BAEf+K,WAAY,CACVC,eAAA,MAEF/K,MAAO,CAAC,wBAEW,W,iCCXrB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASlC,KAErD","file":"js/page-entranceplant-badges~page-entranceplant-guests~page-entranceplant-reisdents.1c5e7f0f.js","sourcesContent":["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!./ApartmentSelector.scss?vue&type=style&index=0&lang=scss\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"card__head d-flex aling-items-center\" }\nconst _hoisted_2 = { class: \"d-flex aling-items-center ml-2\" }\nconst _hoisted_3 = { class: \"bt-icon my-auto bt-icon--m\" }\nconst _hoisted_4 = { class: \"ml-3\" }\nconst _hoisted_5 = { class: \"mt-1 mb-0\" }\nconst _hoisted_6 = { class: \"my-0 text-gray\" }\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_Card = _resolveComponent(\"Card\")\n\n return (_openBlock(), _createBlock(_component_Card, { class: \"building-card card--slim\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"span\", _hoisted_3, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/entrancePlants/icon-building.svg`)\n ,\n \"aria-label\": \"icon-building\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"h6\", _hoisted_5, _toDisplayString(_ctx.building.name), 1),\n _createVNode(\"small\", _hoisted_6, _toDisplayString(_ctx.risersFloorApartmentCount), 1)\n ])\n ]),\n _createVNode(_component_Button, {\n icon: \"pi pi-chevron-right\",\n class: \"p-button-text p-button-secondary ml-auto mr-1\"\n })\n ])\n ]),\n _: 1\n }))\n}","import { mapState } from 'vuex';\nimport {\n AddressingType,\n BuildingDTO,\n EntrancePlantDetailDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { Options, Vue } from 'vue-class-component';\n\n@Options({\n name: 'BuildingItem',\n props: {\n building: {\n type: BuildingDTO,\n required: true,\n },\n },\n computed: {\n ...mapState(['currentEntrancePlant']),\n },\n emits: ['building-selected'],\n})\nexport default class BuildingItem extends Vue {\n building!: BuildingDTO;\n currentEntrancePlant!: EntrancePlantDetailDTO;\n\n get risersFloorApartmentCount() {\n let risersCount = '';\n let floorsCount = '';\n let apartmentsCount = '';\n\n if (\n this.currentEntrancePlant.addressingType ===\n AddressingType.BuildingRiserFloorApartment\n ) {\n risersCount = `${this.building.risers?.length} ${this.$t(\n 'AppResourceEP.Risers'\n )}`;\n floorsCount = `${this.building.floors?.length} ${this.$t(\n 'AppResourceEP.Floors'\n )}`;\n }\n\n apartmentsCount = `${this.building.apartments?.length} ${this.$t(\n 'AppResourceEP.Apartments'\n )}`;\n\n return `${risersCount} ${floorsCount} ${apartmentsCount}`;\n }\n}\n","import { render } from \"./BuildingItem.vue?vue&type=template&id=ce72c80c&ts=true\"\nimport script from \"./BuildingItem.ts?vue&type=script&lang=ts\"\nexport * from \"./BuildingItem.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__","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!./BuildingSelector.scss?vue&type=style&index=0&lang=scss\"","var DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar isRegExp = require('../internals/is-regexp');\nvar getFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar redefine = require('../internals/redefine');\nvar fails = require('../internals/fails');\nvar setInternalState = require('../internals/internal-state').set;\nvar setSpecies = require('../internals/set-species');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\nvar NativeRegExp = global.RegExp;\nvar RegExpPrototype = NativeRegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n\n// \"new\" should create a new object, old webkit bug\nvar CORRECT_NEW = new NativeRegExp(re1) !== re1;\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\n\nvar FORCED = DESCRIPTORS && isForced('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {\n re2[MATCH] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';\n})));\n\n// `RegExp` constructor\n// https://tc39.es/ecma262/#sec-regexp-constructor\nif (FORCED) {\n var RegExpWrapper = function RegExp(pattern, flags) {\n var thisIsRegExp = this instanceof RegExpWrapper;\n var patternIsRegExp = isRegExp(pattern);\n var flagsAreUndefined = flags === undefined;\n var sticky;\n\n if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {\n return pattern;\n }\n\n if (CORRECT_NEW) {\n if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;\n } else if (pattern instanceof RegExpWrapper) {\n if (flagsAreUndefined) flags = getFlags.call(pattern);\n pattern = pattern.source;\n }\n\n if (UNSUPPORTED_Y) {\n sticky = !!flags && flags.indexOf('y') > -1;\n if (sticky) flags = flags.replace(/y/g, '');\n }\n\n var result = inheritIfRequired(\n CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),\n thisIsRegExp ? this : RegExpPrototype,\n RegExpWrapper\n );\n\n if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });\n\n return result;\n };\n var proxy = function (key) {\n key in RegExpWrapper || defineProperty(RegExpWrapper, key, {\n configurable: true,\n get: function () { return NativeRegExp[key]; },\n set: function (it) { NativeRegExp[key] = it; }\n });\n };\n var keys = getOwnPropertyNames(NativeRegExp);\n var index = 0;\n while (keys.length > index) proxy(keys[index++]);\n RegExpPrototype.constructor = RegExpWrapper;\n RegExpWrapper.prototype = RegExpPrototype;\n redefine(global, 'RegExp', RegExpWrapper);\n}\n\n// https://tc39.es/ecma262/#sec-get-regexp-@@species\nsetSpecies('RegExp');\n","import axios from 'axios';\nimport router from '../../core/router/index';\n\naxios.defaults.timeout = 30000;\n\nimport authService from '../services/auth.service';\nimport emitter from '@/core/config/emitter';\nimport { MANAGE_ELIOT_PARSE_EXCEPTION } from './emitter-events';\nimport globalErrors from './global-errors';\n\naxios.interceptors.request.use(async (config) => {\n const token = await authService.getToken();\n if (token) config.headers.Authorization = `Bearer ${token}`;\n else config.headers.Authorization = '';\n return config;\n});\n\naxios.interceptors.response.use(\n (response) => {\n return response;\n },\n (error) => {\n globalErrors.addError(JSON.stringify(error.toJSON()));\n if (error.response.status === 412) {\n emitter.emit(MANAGE_ELIOT_PARSE_EXCEPTION);\n } else if (error.response.status === 477) {\n // user is not in allowed list\n router.push({ name: 'page-user-not-allowed' });\n } else {\n return Promise.reject(error);\n }\n }\n);\n\nexport default axios;\n","module.exports = __webpack_public_path__ + \"img/icon-alert-medium-outline.b8add9d7.svg\";","module.exports = __webpack_public_path__ + \"img/icon-building.7c6caebd.svg\";","module.exports = __webpack_public_path__ + \"img/icon-apartment.5ae334cb.svg\";","import {\n Client,\n ActuatorSettings,\n CommandSettings,\n GeneralCommandsAndGroupsAction,\n DefaultObjectAction,\n ObjectAction,\n WaitTimeAction,\n Action,\n Trigger,\n Condition,\n ObjectTrigger,\n ButtonTrigger,\n DateAndTimeTrigger,\n TimeCondition,\n ObjectCondition,\n ExtDevice,\n ColoredLightExtDevice,\n XmeterExtDevice,\n PlayerExtDevice,\n} from '@/../client-generator/generated-clients/plants';\nimport axiosInstance from '../utils/axios-instance';\n\nCondition.prototype.init \n= Trigger.prototype.init \n= Action.prototype.init \n= ActuatorSettings.prototype.init \n= CommandSettings.prototype.init \n= GeneralCommandsAndGroupsAction.prototype.init \n= DefaultObjectAction.prototype.init \n= ObjectAction.prototype.init \n= WaitTimeAction.prototype.init \n= ObjectTrigger.prototype.init \n= ButtonTrigger.prototype.init \n= DateAndTimeTrigger.prototype.init \n= TimeCondition.prototype.init \n= ObjectCondition.prototype.init\n= ExtDevice.prototype.init\n= ColoredLightExtDevice.prototype.init\n= XmeterExtDevice.prototype.init\n= PlayerExtDevice.prototype.init = function (\n data?: any\n) {\n if (data) {\n for (var property in data) {\n if (Object.prototype.hasOwnProperty.call(data, property))\n (this)[property] = (data)[property];\n }\n }\n};\n\nCondition.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.Condition, ProtocolManager`,\n ...this,\n };\n};\nTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.Trigger, ProtocolManager`,\n ...this,\n };\n};\nAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.Action, ProtocolManager`,\n ...this,\n };\n};\nActuatorSettings.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ActuatorSettings, ProtocolManager`,\n ...this,\n };\n};\nCommandSettings.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.CommandSettings, ProtocolManager`,\n ...this,\n };\n};\nGeneralCommandsAndGroupsAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.GeneralCommandsAndGroupsAction, ProtocolManager`,\n ...this,\n };\n};\nDefaultObjectAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.DefaultObjectAction, ProtocolManager`,\n ...this,\n };\n};\nObjectAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ObjectAction, ProtocolManager`,\n ...this,\n };\n};\nWaitTimeAction.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.WaitTimeAction, ProtocolManager`,\n ...this,\n };\n};\nObjectTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ObjectTrigger, ProtocolManager`,\n ...this,\n };\n};\nButtonTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ButtonTrigger, ProtocolManager`,\n ...this,\n };\n};\nDateAndTimeTrigger.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.DateAndTimeTrigger, ProtocolManager`,\n ...this,\n };\n};\nTimeCondition.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.TimeCondition, ProtocolManager`,\n ...this,\n };\n};\nObjectCondition.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ObjectCondition, ProtocolManager`,\n ...this,\n };\n};\nExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ExtDevice, ProtocolManager`,\n ...this,\n };\n};\nColoredLightExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.ColoredLightExtDevice, ProtocolManager`,\n ...this,\n };\n};\nXmeterExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.XmeterExtDevice, ProtocolManager`,\n ...this,\n };\n};\nPlayerExtDevice.prototype.toJSON = function (data?: any) {\n return {\n $type: `ProtocolManager.Model.PlayerExtDevice, ProtocolManager`,\n ...this,\n };\n};\n\nconst plantsClient = new Client('', axiosInstance);\n\nexport default plantsClient;\n","import {\n RFAConfigDTO,\n FloorConfigDTO,\n RiserDTO,\n FloorDTO,\n ApartmentDTO,\n BuildingDTO,\n AddressBookSorting,\n} from '@/../client-generator/generated-clients/plants';\n\ninterface RiserFloorsApartments {\n riser: RiserDTO;\n floors: { floor: FloorDTO; apartments: ApartmentDTO[] }[];\n}\n\nenum CallMode {\n Address = 0,\n Brfa = 1,\n DirectCall = 2,\n}\n\nenum EPDeviceTypeEnum\n{\n linea5000 = 0,\n KeyPad = 1,\n SmartAccess = 2\n}\n\nconst addressBookSortingOptions = Object.keys(AddressBookSorting).reduce(\n (t: any, k: any) => {\n if (!isNaN(+k)) {\n t.push({\n name: AddressBookSorting[k],\n code: +k,\n });\n }\n return t;\n },\n []\n);\n\nconst noAppartmentOptions = Array.from({ length: 3999 }, (_, index) => ({\n label: (index + 1).toString(),\n value: index + 1,\n}));\n\nconst distributeApartmentsToRaisersAndFloors = (structure: RFAConfigDTO) => {\n if (!structure.risers) return;\n if (structure.risers.length > 0) {\n var distribution = distributeElementsInGroups(\n structure.numberOfApartments!,\n structure.risers.length\n );\n for (let riser of structure.risers) {\n const riserIndex = structure.risers.indexOf(riser);\n const numberOfApartmentsInRiser = distribution[riserIndex];\n distributeApartmentsToFloors(riser.floors!, numberOfApartmentsInRiser);\n }\n } else {\n distributeApartmentsToFloors(\n structure.floorsWithoutRiser!,\n structure.numberOfApartments!\n );\n }\n};\n\nfunction distributeApartmentsToFloors(\n floors: FloorConfigDTO[],\n numberOfApartments: number\n) {\n var distribution = distributeElementsInGroups(\n numberOfApartments,\n floors.length\n );\n for (let floor of floors) {\n var floorIndex = floors.indexOf(floor);\n floor.numberOfApartments = distribution[floorIndex];\n }\n}\n\nfunction distributeElementsInGroups(\n numberOfElements: number,\n numberOfGroups: number\n): number[] {\n if (numberOfGroups < 1) throw new Error('Out of range');\n\n if (numberOfElements < 1)\n return Array.from({ length: numberOfGroups }, () => 0);\n\n const numberOfElementsInGroup = (numberOfElements / numberOfGroups) >> 0;\n const groupsWithExtraElement = numberOfElements % numberOfGroups;\n\n const distribution: number[] = [];\n for (let groupIndex = 0; groupIndex < numberOfGroups; groupIndex++) {\n const elementsInGroup =\n groupIndex < groupsWithExtraElement\n ? numberOfElementsInGroup + 1\n : numberOfElementsInGroup;\n distribution.push(elementsInGroup);\n }\n return distribution;\n}\n\nfunction getDeviceIconFromType(t: number | undefined): string {\n switch (t) {\n case 0:\n return 'entrancePlants/icon-new-pe';\n case 1:\n return 'entrancePlants/icon-keypad';\n case 2:\n return 'entrancePlants/icon-smart-reader';\n default:\n return '';\n }\n}\n\nfunction isCodeCorrectValue(code: string, codeRequiredLength: number = 5) {\n const regex = new RegExp(`[0-9]{${codeRequiredLength}}`);\n if (!code) return false;\n return code.length === codeRequiredLength && regex.test(code);\n}\n\nfunction loadRisersFloorsApartments(building: BuildingDTO) {\n const risers: RiserFloorsApartments[] = [];\n if (building?.risers === undefined) return risers;\n\n for (const riser of building.risers) {\n const floors = building.floors!.filter(\n (floor) => floor.riserId === riser.riserId\n );\n const floorsApartments: {\n floor: FloorDTO;\n apartments: ApartmentDTO[];\n }[] = [];\n for (const floor of floors) {\n const apartments = building.apartments!.filter(\n (apartment) => apartment.floorId === floor.floorId\n );\n floorsApartments.push({ floor: floor, apartments: apartments });\n }\n\n risers.push({\n riser: riser,\n floors: floorsApartments,\n });\n }\n return risers;\n}\n\nexport {\n distributeApartmentsToRaisersAndFloors,\n loadRisersFloorsApartments,\n addressBookSortingOptions,\n getDeviceIconFromType,\n noAppartmentOptions,\n isCodeCorrectValue,\n EPDeviceTypeEnum,\n CallMode,\n};","module.exports = __webpack_public_path__ + \"img/icon-badge.0c90095c.svg\";","import { toDisplayString as _toDisplayString, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"p-field\" }\nconst _hoisted_2 = { class: \"p-field-label\" }\nconst _hoisted_3 = { class: \"apartment-selector__page\" }\nconst _hoisted_4 = { class: \"dialog-custom__title mt-3\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"hr\", { class: \"hr\" }, null, -1)\nconst _hoisted_6 = { class: \"p-field-radiobutton\" }\nconst _hoisted_7 = { class: \"my-0\" }\nconst _hoisted_8 = { class: \"my-0 text-gray\" }\nconst _hoisted_9 = /*#__PURE__*/_createVNode(\"hr\", { class: \"hr mb-5\" }, null, -1)\nconst _hoisted_10 = /*#__PURE__*/_createVNode(\"hr\", { class: \"hr\" }, null, -1)\nconst _hoisted_11 = { class: \"p-field-radiobutton\" }\nconst _hoisted_12 = /*#__PURE__*/_createVNode(\"hr\", { class: \"hr\" }, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_RadioButton = _resolveComponent(\"RadioButton\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_TabPanel = _resolveComponent(\"TabPanel\")\n const _component_TabView = _resolveComponent(\"TabView\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"label\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResourceEP.AddBadgesApartmentsSubtitle\")), 1)\n ]),\n _createVNode(\"span\", _hoisted_3, [\n (\n _ctx.currentEntrancePlant.addressingType ===\n _ctx.AddressingType.BuildingRiserFloorApartment\n )\n ? (_openBlock(), _createBlock(_component_TabView, {\n key: 0,\n class: \"p-tabview--custom add-badge-tab mt-3\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.buildingStructure, (riserTab, riserIndex) => {\n return (_openBlock(), _createBlock(_component_TabPanel, {\n key: riserIndex,\n header: riserTab.riser.name,\n class: \"apartment-list\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(riserTab.floors, (floorsection, floorIndex) => {\n return (_openBlock(), _createBlock(\"div\", { key: floorIndex }, [\n _createVNode(\"h1\", _hoisted_4, _toDisplayString(floorsection.floor.name), 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(floorsection.apartments, (apartment, apartmentIndex) => {\n return (_openBlock(), _createBlock(\"div\", { key: apartmentIndex }, [\n _hoisted_5,\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(_component_RadioButton, {\n value: apartment,\n id: `apartment${apartmentIndex + 1}`,\n modelValue: _ctx.selectedApartment,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.selectedApartment = $event)),\n onChange: _ctx.apartmentSelected\n }, null, 8, [\"value\", \"id\", \"modelValue\", \"onChange\"]),\n _createVNode(\"label\", {\n for: `apartment${apartmentIndex + 1}`,\n class: \"ml-3\"\n }, [\n _createVNode(\"h6\", _hoisted_7, _toDisplayString(apartment.name), 1),\n _createVNode(\"small\", _hoisted_8, _toDisplayString(`${_ctx.$t(\n \"AppResourceEP.Apartment\"\n )} ${apartmentIndex + 1}`), 1)\n ], 8, [\"for\"])\n ])\n ]))\n }), 128)),\n _hoisted_9\n ]))\n }), 128))\n ]),\n _: 2\n }, 1024)\n ]),\n _: 2\n }, 1032, [\"header\"]))\n }), 128))\n ]),\n _: 1\n }))\n : (_openBlock(), _createBlock(_component_TabView, {\n key: 1,\n class: \"p-tabview--custom add-badge-tab mt-3\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.currentEntrancePlant.buildings, (building, index) => {\n return (_openBlock(), _createBlock(_component_TabPanel, {\n key: index,\n header: building.name,\n class: \"apartment-list\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(building.apartments, (apartment, apartmentIndex) => {\n return (_openBlock(), _createBlock(\"div\", { key: apartmentIndex }, [\n _hoisted_10,\n _createVNode(\"div\", _hoisted_11, [\n _createVNode(_component_RadioButton, {\n value: apartment,\n id: `apartment${apartmentIndex + 1}`,\n modelValue: _ctx.selectedApartment,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.selectedApartment = $event)),\n onChange: _ctx.apartmentSelected\n }, null, 8, [\"value\", \"id\", \"modelValue\", \"onChange\"]),\n _createVNode(\"label\", {\n for: `apartment${apartmentIndex + 1}`\n }, _toDisplayString(apartment.name), 9, [\"for\"])\n ])\n ]))\n }), 128)),\n _hoisted_12\n ]),\n _: 2\n }, 1024)\n ]),\n _: 2\n }, 1032, [\"header\"]))\n }), 128))\n ]),\n _: 1\n }))\n ])\n ], 64))\n}","import { mapState } from 'vuex';\nimport {\n AddressingType,\n ApartmentDTO,\n BuildingDTO,\n EntrancePlantDetailDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { Options, Vue } from 'vue-class-component';\nimport { loadRisersFloorsApartments } from '@/core/utils/EntrancePlant/entrance-plant.utils';\n\n@Options({\n name: 'ApartmentSelector',\n props: {\n selectedBuilding: {\n type: BuildingDTO,\n required: false,\n },\n },\n computed: {\n ...mapState(['currentEntrancePlant']),\n },\n emits: ['apartment-selected'],\n})\nexport default class ApartmentSelector extends Vue {\n currentEntrancePlant!: EntrancePlantDetailDTO;\n selectedBuilding!: BuildingDTO;\n selectedApartment: ApartmentDTO | null = null;\n\n AddressingType = AddressingType;\n\n mounted() {}\n\n get buildingStructure() {\n if (this.selectedBuilding?.risers === undefined) return [];\n return loadRisersFloorsApartments(this.selectedBuilding);\n }\n\n apartmentSelected() {\n this.$emit('apartment-selected', this.selectedApartment);\n }\n}\n","import { render } from \"./ApartmentSelector.vue?vue&type=template&id=69cc71c3&ts=true\"\nimport script from \"./ApartmentSelector.ts?vue&type=script&lang=ts\"\nexport * from \"./ApartmentSelector.ts?vue&type=script&lang=ts\"\n\nimport \"./ApartmentSelector.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__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_BuildingItem = _resolveComponent(\"BuildingItem\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n\n return (_openBlock(), _createBlock(_component_ElScrollbar, { class: \"card-list\" }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.currentEntrancePlant.buildings, (building, index) => {\n return (_openBlock(), _createBlock(_component_BuildingItem, {\n key: index,\n class: \"building-card card--slim mx-3 my-2\",\n building: building,\n plantAddressType: _ctx.currentEntrancePlant.addressingType,\n onClick: ($event: any) => (_ctx.buildingSelected(building))\n }, null, 8, [\"building\", \"plantAddressType\", \"onClick\"]))\n }), 128))\n ]),\n _: 1\n }))\n}","import { mapState } from 'vuex';\nimport {\n BuildingDTO,\n EntrancePlantDetailDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { Options, Vue } from 'vue-class-component';\nimport BuildingItem from '../../../EntrancePlantSettings/EntrancePlantStructure/BuildingItem/BuildingItem.vue';\n\n@Options({\n name: 'BuildingSelector',\n computed: {\n ...mapState(['currentEntrancePlant']),\n },\n components: {\n BuildingItem,\n },\n emits: ['building-selected'],\n})\nexport default class BuildingSelector extends Vue {\n currentEntrancePlant!: EntrancePlantDetailDTO;\n\n buildingSelected(building: BuildingDTO) {\n this.$emit('building-selected', building);\n }\n}\n","import { render } from \"./BuildingSelector.vue?vue&type=template&id=dd3f3b22&ts=true\"\nimport script from \"./BuildingSelector.ts?vue&type=script&lang=ts\"\nexport * from \"./BuildingSelector.ts?vue&type=script&lang=ts\"\n\nimport \"./BuildingSelector.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__"],"sourceRoot":""}