{"version":3,"sources":["webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardPlantTypeSelection/WizardPlantTypeSelection.scss?53a9","webpack:///./src/assets/images/icons/icon-toilets.svg","webpack:///./src/assets/images/icons/icon-device.svg","webpack:///./src/assets/images/icons/icon-alert-hight-full.svg","webpack:///./src/assets/images/icons/icon-xmeter.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/WizardEntrancePlant.scss?53a4","webpack:///./src/assets/images/icons/icon-filter.svg","webpack:///./src/assets/images/icons/icon-round.svg","webpack:///./src/assets/images/icons/icon-star.svg","webpack:///./src/assets/images/icons/icon_command_night.svg","webpack:///./src/assets/images/icons/icon-datetime.svg","webpack:///./src/assets/images/icons/icon-all-plants.svg","webpack:///./src/assets/images/icons/icon-garden.svg","webpack:///./src/assets/images/icons/icon-refresh.svg","webpack:///./src/views/components/CardContainer/CardContainer.scss?6b44","webpack:///./src/assets/images/icons/icon-general-view.svg","webpack:///./src/assets/images/icons/icon-shutter.svg","webpack:///./src/assets/images/icons/icon-done.svg","webpack:///./src/assets/images/icons/icon-edit.svg","webpack:///./src/assets/images/icons/icon-automation-2.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantDuplicate/DialogPlantDuplicate.scss?7a23","webpack:///./src/assets/images/entrancePlants/icon-message.svg","webpack:///./node_modules/core-js/modules/es.number.parse-int.js","webpack:///./src/assets/images/icons/icon-laundry.svg","webpack:///./src/assets/images/icons/icon-light.svg","webpack:///./src/assets/images/icons/icon-towel-rail.svg","webpack:///./src/assets/images/icons/icon-music-player.svg","webpack:///./src/assets/images/icons/icon-electrical-cabinet.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/assets/images/icons/icon-livingroom.svg","webpack:///./src/assets/images/icons/icon-bedroom.svg","webpack:///./src/assets/images/icons/icon-security-2.svg","webpack:///./src/assets/images/entrancePlants/icon-parameters.svg","webpack:///./src/assets/images/icons/icon-blind.svg","webpack:///./node_modules/lodash.kebabcase/index.js","webpack:///./src/assets/images/icons/icon-automation.svg","webpack:///./src/assets/images/icons/icon-faq.svg","webpack:///./src/assets/images/icons/icon-duplication.svg","webpack:///./src/assets/images/icons/icon-bathroom.svg","webpack:///./src/assets/images/icons/icon-expand-menu.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep5/DialogEntrancePlantCreateStep5.scss?727f","webpack:///./src/assets/images/icons/icon-actuator-2.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantDuplicate/DialogPlantDuplicate.vue?418e","webpack:///./src/views/pages/PlantsHub/DialogPlantDuplicate/DialogPlantDuplicate.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantDuplicate/DialogPlantDuplicate.vue","webpack:///./src/assets/images/icons/icon-alert-hight-outline.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep4/DialogEntrancePlantCreateStep4.scss?f901","webpack:///./src/assets/images/icons/icon-socket.svg","webpack:///./src/assets/images/icons/icon-sync.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep3/DialogPlantCreateStep3.vue?3cd3","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep3/DialogPlantCreateStep3.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep3/DialogPlantCreateStep3.vue","webpack:///./src/views/components/DialogConfirmDeletePlant/DialogConfirmDeletePlant.vue?0373","webpack:///./src/views/components/DialogConfirmDeletePlant/DialogConfirmDeletePlant.ts","webpack:///./src/views/components/DialogConfirmDeletePlant/DialogConfirmDeletePlant.vue","webpack:///./src/assets/images/icons/icon-diningroom.svg","webpack:///./src/assets/images/icons/icon-grid.svg","webpack:///./src/assets/images/icons/icon-blueprint.svg","webpack:///./src/assets/images/icons/icon-round-outline.svg","webpack:///./src/assets/images/icons/icon-confirm-outline.svg","webpack:///./src/assets/images/icons sync ^\\.\\/.*\\.svg$","webpack:///./src/assets/images/plants/server/ImagesMX-300EOS.png","webpack:///./node_modules/core-js/modules/es.set.js","webpack:///./src/assets/images/icons/icon-server-mhs-1.svg","webpack:///./src/assets/images/icons/icon-search.svg","webpack:///./src/assets/images/icons/icon-wizard-assegna-attuatore.svg","webpack:///./src/assets/images/icons/icon-arrows-back.svg","webpack:///./src/assets/images/icons/icon-push-notification.svg","webpack:///./src/assets/images/icons/icon-outdoor.svg","webpack:///./src/views/pages/PlantDetail/ConfirmPlantUpdated/ConfirmPlantUpdated.vue?ee77","webpack:///./src/views/pages/PlantDetail/ConfirmPlantUpdated/ConfirmPlantUpdated.ts","webpack:///./src/views/pages/PlantDetail/ConfirmPlantUpdated/ConfirmPlantUpdated.vue","webpack:///./src/assets/images/icons sync ^\\.\\/icon\\-favourite.*\\.svg$","webpack:///./src/assets/images/icons/icon-arrows-down.svg","webpack:///./src/assets/images/icons/icon-confirm-full.svg","webpack:///./src/assets/images/icons/icon-arrows-up.svg","webpack:///./src/assets/images/icons/icon_command_day.svg","webpack:///./src/assets/images/icons/icon-failed-outline.svg","webpack:///./src/views/components/CardContainer/CardContainer.vue?1f0f","webpack:///./src/views/components/CardContainer/CardContainer.ts","webpack:///./src/views/components/CardContainer/CardContainer.vue","webpack:///./src/assets/images/icons/icon-office.svg","webpack:///./src/assets/images/icons/icon-remove-hand-02.svg","webpack:///./src/assets/images/icons/icon-dimmer-dmx.svg","webpack:///./src/assets/images/icons/icon-checkbox-disabled.svg","webpack:///./src/assets/images/icons/icon-fancoil.svg","webpack:///./src/views/pages/PlantDetail/MenuSharing/ConfirmDeleteUser/ConfirmDeleteUser.vue?5561","webpack:///./src/views/pages/PlantDetail/MenuSharing/ConfirmDeleteUser/ConfirmDeleteUser.ts","webpack:///./src/views/pages/PlantDetail/MenuSharing/ConfirmDeleteUser/ConfirmDeleteUser.vue","webpack:///./src/assets/images/icons/icon-assistant.svg","webpack:///./src/assets/images/icon-check.svg","webpack:///./src/assets/images/icons/icon-colored-light.svg","webpack:///./src/assets/images/icons/icon-general-light.svg","webpack:///./src/assets/images/icons/icon-arrows-next.svg","webpack:///./src/assets/images/icons/icon-staff.svg","webpack:///./src/assets/images/icons/icon-add-outline.svg","webpack:///./src/assets/images/icons/icon-delete.svg","webpack:///./src/assets/images/icons/icon-desktop.svg","webpack:///./src/assets/images/icons/icon-list.svg","webpack:///./src/assets/images/icons/icon-alert-triangle-outline.svg","webpack:///./src/assets/images/plants/server/ImagesMHS1.png","webpack:///./src/assets/images/icons/icon-close.svg","webpack:///./src/assets/images/icons/icon-security.svg","webpack:///./src/assets/images/icons/icon-connected-server.svg","webpack:///./src/assets/images/icons/icon-staircase.svg","webpack:///./src/assets/images/icons/icon-lock.svg","webpack:///./src/assets/images/icons/icon-thermostat.svg","webpack:///./src/assets/images/icons/icon-room.svg","webpack:///./src/assets/images/icons/icon-book.svg","webpack:///./src/assets/images/icons/icon-user.svg","webpack:///./src/assets/images/icons/icon-add-circle-outline.svg","webpack:///./src/assets/images/icons/icon-failed-full.svg","webpack:///./src/assets/images/entrancePlants/icon-resident.svg","webpack:///./src/assets/images/icons/icon_command_enter.svg","webpack:///./src/assets/images/icons/icon-entrance.svg","webpack:///./src/assets/images/icons/icon-energy.svg","webpack:///./src/assets/images/icons/icon-scan-qr-code-02.svg","webpack:///./src/assets/images/icons/icon-duplication-all.svg","webpack:///./src/assets/images/icons/icon-corridor.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/WizardAutomationPlant.scss?0daf","webpack:///./node_modules/core-js/internals/number-parse-int.js","webpack:///./src/assets/images/icons/icon-wifi-01-1.svg","webpack:///./src/assets/images/icons/icon_command_exit.svg","webpack:///./src/assets/images/icons/icon-scene.svg","webpack:///./src/assets/images/icons/icon-no-view.svg","webpack:///./src/assets/images/icons/icon-player.svg","webpack:///./src/assets/images/icons/icon-group-lights.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/DialogPlantCreate.scss?8a0a","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-ban-light.svg","webpack:///./src/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.vue?672d","webpack:///./src/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.ts","webpack:///./src/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.vue","webpack:///./src/views/pages/EntrancePlantDetail/MenuEPSharing/MenuEPSharing.scss?6c5c","webpack:///./src/assets/images/icons/icon-edit-page.svg","webpack:///./src/assets/images/icons/icon-info-circle.svg","webpack:///./src/assets/images/icons/icon-thermo.svg","webpack:///./src/assets/images/icons/icon-notification.svg","webpack:///./src/assets/images/icons/icon-command.svg","webpack:///./src/assets/images/icons/icon-alert-medium-full.svg","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/DialogPlantCreate.vue?6822","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardPlantTypeSelection/WizardPlantTypeSelection.vue?ddf3","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardPlantTypeSelection/WizardPlantTypeSelection.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardPlantTypeSelection/WizardPlantTypeSelection.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/WizardAutomationPlant.vue?a195","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep1/DialogPlantCreateStep1.vue?a59b","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep1/DialogPlantCreateStep1.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep1/DialogPlantCreateStep1.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep2/DialogPlantCreateStep2.vue?c774","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep2/DialogPlantCreateStep2.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/DialogAutomationPlantCreate/DialogPlantCreateStep2/DialogPlantCreateStep2.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/WizardAutomationPlant.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardAutomationPlant/WizardAutomationPlant.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/WizardEntrancePlant.vue?7a89","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep1/DialogEntrancePlantCreateStep1.vue?63fb","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep1/DialogEntrancePlantCreateStep1.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep1/DialogEntrancePlantCreateStep1.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep2/DialogEntrancePlantCreateStep2.vue?0c50","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep2/DialogEntrancePlantCreateStep2.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep2/DialogEntrancePlantCreateStep2.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep3/DialogEntrancePlantCreateStep3.vue?2d0f","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep3/DialogEntrancePlantCreateStep3.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep3/DialogEntrancePlantCreateStep3.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep4/DialogEntrancePlantCreateStep4.vue?5eff","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep4/DialogEntrancePlantCreateStep4.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep4/DialogEntrancePlantCreateStep4.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep5/DialogEntrancePlantCreateStep5.vue?0587","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep5/DialogEntrancePlantCreateStep5.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep5/DialogEntrancePlantCreateStep5.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep6/DialogEntrancePlantCreateStep6.vue?ebe6","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep6/DialogEntrancePlantCreateStep6.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep6/DialogEntrancePlantCreateStep6.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep7/DialogEntrancePlantCreateStep7.vue?4ac5","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep7/DialogEntrancePlantCreateStep7.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/DialogEntrancePlantCreate/DialogEntrancePlantCreateStep7/DialogEntrancePlantCreateStep7.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/WizardEntrancePlant.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/WizardEntrancePlant/WizardEntrancePlant.vue","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/DialogPlantCreate.ts","webpack:///./src/views/pages/PlantsHub/DialogPlantCreate/DialogPlantCreate.vue","webpack:///./src/assets/images/entrancePlants/icon-switchboard.svg","webpack:///./src/assets/images/icons/icon-garage.svg","webpack:///./src/assets/images/icons/icon-loading.svg","webpack:///./src/assets/images/icons/icon-network.svg","webpack:///./src/assets/images/icons/icon-weather.svg","webpack:///./src/assets/images/icons/icon-mx-server.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDetail.scss?72a1","webpack:///./src/assets/images/icons/icon-favourite.svg","webpack:///./src/assets/images/icons/icon-favourite-outline.svg","webpack:///./src/assets/images/icons/icon-wifi.svg","webpack:///./src/assets/images/entrancePlants/icon-guest.svg","webpack:///./src/assets/images/icons/icon-email.svg","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDetail.vue?1b67","webpack:///./src/views/pages/EntrancePlantDetail/MenuEPSharing/MenuEPSharing.vue?a588","webpack:///./src/views/pages/EntrancePlantDetail/MenuEPSharing/UserEPItem/UserEPItem.vue?d2e5","webpack:///./src/views/pages/EntrancePlantDetail/MenuEPSharing/UserEPItem/UserEPItem.ts","webpack:///./src/views/pages/EntrancePlantDetail/MenuEPSharing/UserEPItem/UserEPItem.vue","webpack:///./src/views/pages/EntrancePlantDetail/MenuEPSharing/MenuEPSharing.ts","webpack:///./src/views/pages/EntrancePlantDetail/MenuEPSharing/MenuEPSharing.vue","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDetail.ts","webpack:///./src/views/pages/EntrancePlantDetail/EntrancePlantDetail.vue","webpack:///./src/assets/images/icons/icon-filters.svg","webpack:///./src/assets/images/icons/icon-kitchen.svg","webpack:///./node_modules/lodash.debounce/index.js","webpack:///./src/assets/images/icons/icon-start-plan.svg","webpack:///./src/assets/images/icons/icon-paperclip.svg","webpack:///./src/assets/images/icons/icon-reorder-drag-and-drop.svg","webpack:///./src/assets/images/icons/icon-mobile-device.svg","webpack:///./src/views/components/ButtonSelection/ButtonSelection.scss?4a7a","webpack:///./src/assets/images/icons/icon-plan-duplicate.svg"],"names":["module","exports","$","parseInt","target","stat","forced","Number","_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__","INFINITY","symbolTag","reAsciiWord","reLatin","rsAstralRange","rsComboMarksRange","rsComboSymbolsRange","rsDingbatRange","rsLowerRange","rsMathOpRange","rsNonCharRange","rsPunctuationRange","rsSpaceRange","rsUpperRange","rsVarRange","rsBreakRange","rsApos","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsZWJ","rsLowerMisc","rsUpperMisc","rsOptLowerContr","rsOptUpperContr","reOptMod","rsOptVar","rsOptJoin","join","rsSeq","rsEmoji","reApos","RegExp","reComboMark","reUnicodeWord","reHasUnicodeWord","deburredLetters","freeGlobal","global","Object","freeSelf","self","root","Function","arrayReduce","array","iteratee","accumulator","initAccum","index","length","asciiWords","string","match","basePropertyOf","object","key","undefined","deburrLetter","hasUnicodeWord","test","unicodeWords","objectProto","prototype","objectToString","toString","Symbol","symbolProto","symbolToString","baseToString","value","isSymbol","call","result","createCompounder","callback","words","deburr","replace","isObjectLike","kebabCase","word","toLowerCase","pattern","guard","id","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_component_ProgressSpinner","_component_NumberButtons","_component_InputText","_component_ElScrollbar","isLoading","modelValue","plantsCount","plantsToCreate","plant","idx","ref","isInvalid","onInput","handleNameChange","disabled","isConfirmDisabled","entitiesPrefetchDone","allValidNames","every","p","console","log","$store","dispatch","plants","duplicatePlant","desktopId","map","$toast","add","severity","summary","life","validatePlantAgainstList","flushCache","prefetchFlatEntities","PLANT","suggestNameIfNeeded","prevValue","currValue","suggestNextValidEntityName","eType","plantId","metadata","plantSourceName","updateNamingServiceAdditionalEntities","pop","push","additionalEntities","currentName","dispose","doFirstPrefetch","initializeFirstName","components","NumberButtons","style","$attrs","stepTitle","stepSubTitle","roomTypes","roomType","getRoomIcon","label","count","updatePlantRoom","isInEditMode","rooms","roomsCounts","fetchRooms","defaultRoomsList","forEach","r","rt","theRooms","plantRoomCount","find","rc","room","plantRoom","plantName","code","codeToCheck","onSubmit","maxlength","theCode","onPaste","resetCodes","$nextTick","randStr","i","webpackContext","req","webpackContextResolve","__webpack_require__","o","e","Error","keys","resolve","collection","collectionStrong","init","arguments","_component_Card","content","$slots","titleIcon","showActionButton","onActionButtonClick","actionButtonLabel","trim","whitespaces","$parseInt","hex","FORCED","radix","S","_withId","active","localValue","toggleValue","icon","password","_component_WizardPlantTypeSelection","_component_WizardAutomationPlant","_component_WizardEntrancePlant","plantCreateSteps","PlantCreateSteps","TYPE_SELECTION","plantType","selectedPlantType","residentialType","selectedResidentialType","handleContinueButton","WIZARD_AUTOMATION","localPlantId","onUpdate","updateId","onPlantEdited","onExitWizard","WIZARD_ENTRANCE","isEdit","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_component_SelectButton","toUpperCase","pt","options","plantTypesImages","optionLabel","optionValue","option","slotProps","imageURLs","alt","subTitle","Type","ENTRANCE_PLANT","residentialTypesButtons","button","changeRtValue","val","AUTOMATION_PLANT","NEW_PLANT","CONFIGURED_PLANT","faqUrl","window","open","newVal","dialogStepComponent","onIsLoading","handleStepLoading","onNextEnabled","handleNextEnabledChange","isBackButtonVisible","handleStepBack","handleButtonSubmitAction","buttonSubmitLabel","nextEnabled","dialogStep","mxServer","model","for","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_component_Dropdown","isValidName","invalidNameReason","country","countries","address","images","srcset","addTag","placeholder","newTagName","tempTags","tag","isTagSelected","toggleTagSelection","drawScaledImage","ctx","img","scale","Math","max","canvas","width","height","x","y","drawImage","image","plantEditImageCustomEnabled","customIconDataUrl","customIconImageUrl","ICON_CUSTOM","tags","Promise","all","fetchPlantTags","fetchCountries","finally","verifyValidityOfName","checkNextButtonState","document","querySelector","remove","removeEventListener","handlerUploadInput","addEventListener","initialName","imageBinary","tagsList","countriesAutocomplete","preventDefault","stopPropagation","stopImmediatePropagation","uploadInput","createElement","setAttribute","body","append","reader","FileReader","onload","evLoad","Image","getContext","fileRead","toDataURL","onerror","err","error","files","readAsDataURL","click","tagKey","some","t","newTag","groupIndex","findIndex","g","splice","validName","isValidEntityTypeName","suggestedName","preSelectedTags","computed","plantServerImages","ServerModel","Classe300EOS","MyHomeServer1","filter","plantServerUseMHS1Only","$config","ENTRANCE_PLANT_ENABLED","initFormPlant","fetchPlantDetails","plantGET","handleEditPlant","handleCreatePlant","createdPlantId","goToPlantDetail","createdPlant","plantPOST","plantPUT","isNew","$router","params","setTimeout","DialogPlantCreateStep1","DialogPlantCreateStep2","DialogPlantCreateStep3","dialogStepEntrancePlantComponent","entrancePlant","onOnBack","handleBack","onOnNext","handleNext","handleEditedPlant","_hoisted_27","timeZone","handleBackButton","handleNextButton","nextButtonLabel","Intl","DateTimeFormat","resolvedOptions","c","timeZoneId","regex","usedNames","initialEntities","wizardStep","headCreate","updatePlantStructure","getDataToSave","createPlant","peId","structure","entranceplantPOST","_component_ToggleSwitchButton","_component_CallModeForm","_component_DialogImportFile","infoPlant","language","validLanguages","switchboardActive","isBRFA","triggerFilePicker","onChange","onFileSelected","accept","entrancePlantDetail","importedData","isVisibleDialogImportFile","onHideDialog","handleCloseDialog","onOverwrite","overwrite","isCreationMode","onUpdatePlant","handleUpdatePlant","onGrouped","handleGrouped","Language","CallMode","settingsList","i18n","Numbers","Letters","initializeData","browserLanguage","navigator","split","addressBookSorting","addressingType","denominationApartments","denominationBuildings","denominationFloors","denominationRisers","toLocaleLowerCase","callingCodeShowAddressBook","grouped","dictionary","buildingKey","building","apartment","apartmentName","scsAddr","labels","surname","Private","line1","line2","companyName","Business","isPrivate","labelType","information","info","badgeList","badges","keypadCode","buildings","apartments","DirectCall_Alphanumeric","DirectCall_NumbersOnly","BuildingRiserFloorApartment","infoCreate","switchboard","devices","switchboardPOST","input","getElementById","event","file","text","data","details","readAsText","ToggleSwitchButton","HelpPopupButton","CallModeForm","DialogImportFile","_component_CardContainer","cantAddBuildingString","titleCard","onOnActionButtonClick","addBuilding","apartmentsCount","noAppartmentOptions","handleBuildingRemove","buldingIndex","otherBuildings","totalApartments","reduce","acc","getNewBuildingName","cantAddBuilding","maxApartments","fillBuildings","buildingId","newBuildingName","counter","buildingsCreate","nextPage","CardContainer","buildingName","changingBuilding","allApartmentsAssigned","mismatchedApartmentsErrorText","actionButton","lightTheme","minValue","risersCount","onIncrement","addRiser","onDecrement","removeRiser","currentRFAConfig","risers","riser","riserName","floorsCountValues","floors","changeFloorNumber","floor","floorName","apartmentCountValues","numberOfApartments","changeApartmentNumber","currentBuildingIndex","distributeApartmentsToRaisersAndFloors","rfaConfig","currentBuilding","Array","firstLine","secondLine","totalAssignedApartments","addFloors","abs","removeFloors","floorsCount","floorIndex","riserId","a","floorId","plantConfigStructure","changeBuilding","direction","gray","recapCode","riserDoubleChars","floorDoubleChars","apartmentDoubleChars","buildingCode","riserCode","floorCode","apartmentCode","callingcoderecap","gates","addGate","reachedMaxGates","gate","handleGateRemove","scsAddressHelper","availableScsAddressGate","getNewGateName","newGateName","gateCreate","prevPage","_component_ButtonSelection","_component_ListItemCheck","pageTitle","currentGate","changingGate","newPeSelected","newPeDisabled","keypadSelected","keypadDisabled","smartReaderSelected","smartReaderDisabled","scsAddrNotValid","min","MIN_SCS_ADDRESS","MAX_SCS_ADDRESS","scsAddress","invalidScsReason","currentGateId","inputId","allBuildings","handleUpdateBuildingSelection","AllBuildingsValue","binary","last","selectedBuildingIds","selectedBuildings","b","allRisers","handleUpdateRiserSelection","AllRisersValue","selectedRiserIds","currentGateIndex","gateConfig","includes","gateId","connectedBuildingIds","gateName","d","Linea5000","KeyPad","SmartAccess","connectedRiserIds","connectedApartmentsIds","buildForm","refreshDeviceSelection","gateConfigStructure","scsAddressesPlusCurrentAdress","addr","currentGateScs","acceptedRange","isItAvailable","selectBuildings","selectedApartments","flatMap","apartmentId","changeGate","Set","values","flat","retrieveApartmentIds","devicesSelected","buildingsSelected","risersSelected","element","ButtonSelection","verifyValidityOfScsAddress","fetchPePlant","nextComponentName","prevComponentName","entranceplantGET","DialogEntrancePlantCreateStep1","DialogEntrancePlantCreateStep2","DialogEntrancePlantCreateStep3","DialogEntrancePlantCreateStep4","DialogEntrancePlantCreateStep5","DialogEntrancePlantCreateStep6","DialogEntrancePlantCreateStep7","editPlantId","editPlantType","WizardPlantTypeSelection","WizardAutomationPlant","WizardEntrancePlant","_component_MenuEPSharing","_component_ElDropdownItem","_component_ElDropdownMenu","_component_ElDropdown","_component_ElPopover","_component_router_view","_component_DialogPlantCreate","_component_DialogConfirmDeletePlant","_component_ConfirmPlantUpdated","hideFooter","currentEntrancePlant","Component","plantUpdateKey","onUpdateList","fetchPlant","usersPermissions","onAddInvitedUser","handleInvitedUser","onRemoveSharingUser","handleRemoveSharingUser","togglePlantFromFavorites","favouriteIcon","trigger","placement","dropdown","toggleEditDialog","plantEditEnabled","plantDeleteEnabled","toggleDeletePlantConfirm","getParsedDate","lastModify","username","reference","userInitials","iconDeviceLabel","iconDevice","onSaveAndExitClick","selectedPlantId","PlantType","isVisibleEditDialog","onConfirm","handleDeletePlant","isVisibleDeletePlantConfirm","hideConfirmPlantUpdated","isVisibleConfirmPlantUpdated","_component_UserEPItem","_component_ConfirmDeleteUser","_component_DialogConfirmDelete","user","userIndex","getUserInitials","isPopperVisible","togglePopper","invitePerson","newUserToShare","role","roleOptions","email","isMeBuildingAdmin","totBuildingAdmins","totDeviceManagers","onDeleteUser","handleDeleteUser","onRevokeBuildingAdmin","handleRevokeRole","isConfirmDeleteUserVisible","toggleConfirmDeleteUser","deleteUser","isConfirmRevokeRoleVisible","toggleConfirmRevokeRole","revokeRole","userRolesLabel","showRemove","showRevokeBuildingAdmin","handleRevokeBuildingAdmin","handleDeleteSharingUser","roles","rolesLabel","toLocaleString","remainingBuildAdmins","remainingDeviceManagers","BuildingManager","DeviceManager","doShow","tempUser","tempUserId","BuildingAdminRole","roleName","DeviceManagerRole","currentUserPermissions","buildingAdmins","usr","deviceManagers","newProUser","sharingproPOST","sharedWith","userId","sharingproPUT","sharingproDELETE","account","localAccountId","UserEPItem","ConfirmDeleteUser","DialogConfirmDelete","isPlantDuplicateDialogVisible","tempPlant","intervalCheckSync","isPlantDirty","isDevicesCardLoading","isVisibleAddRoomObjectDialog","isVisibleCreateStructureDialog","isVisibleTransferOwnershipConfirm","isPausedFetchupdate","intervalFetchUpdate","timeoutRenewSession","forceRerender","lastModifyByDesktop","to","subroutes","items","menuItemsContextual","menuItem","additionalClass","getMenuItemClass","getMenuItemClassSubmenu","lastModifyBy","$route","isFavourite","menuItemsContextualWithActiveClasses","userspermissions","registerEmitterEvents","registerPeriodicFetchUpdates","renewSessionTimeout","unregisterEmitterEvents","unregisterPeriodicFetchUpdates","unregisterRenewSessionTimeout","usersList","owner","shared","currentUserEmail","u","currentUserPerms","isOfflinePlant","syncStatus","isPlantActive","connected","syncInfo","isOnlyBuildingAdmin","status","currentlySyncing","$emitter","on","handleRefreshPlantFromOuterEvent","off","doFetchUpdatesInternal","PLANT_REFRESH_INTERVAL","clearTimeout","newPlant","session","renewSecondsDto","renewSessionSeconds","setInterval","doCheckSyncStatus","syncstatus","isFailed","virtualdevices","unregisterSyncingCheck","clearInterval","routeName","subroutesNames","date","month","day","year","hour","minute","plantDELETE","fromJS","userEmail","newUser","invitedEmail","confirmed","Date","path","registerSyncingCheck","MenuEPSharing","DialogPlantCreate","ConfirmPlantUpdated","DialogPlantDuplicate","DialogConfirmDeletePlant","DialogConfirmTransferOwnership","FUNC_ERROR_TEXT","NAN","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","nativeMax","nativeMin","now","debounce","func","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","toNumber","isObject","other","valueOf","isBinary","slice"],"mappings":"6HAAA,W,uBCAAA,EAAOC,QAAU,IAA0B,iC,uBCA3CD,EAAOC,QAAU,IAA0B,gC,uBCA3CD,EAAOC,QAAU,IAA0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AATA,GACXS,EAAaT,IAAUN,EAAeQ,KAAKF,IAAU9E,EA0B1D,SAASq5B,EAASv0B,GAChB,GAAoB,iBAATA,EACT,OAAOA,EAET,GAAIC,EAASD,GACX,OAAOiyB,EAET,GAAIuC,EAASx0B,GAAQ,CACnB,IAAIy0B,EAAgC,mBAAjBz0B,EAAM00B,QAAwB10B,EAAM00B,UAAY10B,EACnEA,EAAQw0B,EAASC,GAAUA,EAAQ,GAAMA,EAE3C,GAAoB,iBAATz0B,EACT,OAAiB,IAAVA,EAAcA,GAASA,EAEhCA,EAAQA,EAAMQ,QAAQ0xB,EAAQ,IAC9B,IAAIyC,EAAWvC,EAAW9yB,KAAKU,GAC/B,OAAQ20B,GAAYtC,EAAU/yB,KAAKU,GAC/BsyB,EAAatyB,EAAM40B,MAAM,GAAID,EAAW,EAAI,GAC3CxC,EAAW7yB,KAAKU,GAASiyB,GAAOjyB,EAGvCvI,EAAOC,QAAUg7B,I,2CCxXjBj7B,EAAOC,QAAU,IAA0B,oC,qBCA3CD,EAAOC,QAAU,IAA0B,mC,qBCA3CD,EAAOC,QAAU,IAA0B,+C,qBCA3CD,EAAOC,QAAU,IAA0B,uC,kCCA3C,W,qBCAAD,EAAOC,QAAU,IAA0B","file":"js/page-entranceplant-detail.0dc970fe.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!./WizardPlantTypeSelection.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-toilets.475eec05.svg\";","module.exports = __webpack_public_path__ + \"img/icon-device.fd288cca.svg\";","module.exports = __webpack_public_path__ + \"img/icon-alert-hight-full.3b0f559f.svg\";","module.exports = __webpack_public_path__ + \"img/icon-xmeter.cdd95f85.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!./WizardEntrancePlant.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-filter.4f75b6cb.svg\";","module.exports = __webpack_public_path__ + \"img/icon-round.e7c23e5d.svg\";","module.exports = __webpack_public_path__ + \"img/icon-star.50c24909.svg\";","module.exports = __webpack_public_path__ + \"img/icon_command_night.badbdbf4.svg\";","module.exports = __webpack_public_path__ + \"img/icon-datetime.25498852.svg\";","module.exports = __webpack_public_path__ + \"img/icon-all-plants.8e1b500b.svg\";","module.exports = __webpack_public_path__ + \"img/icon-garden.b5326b97.svg\";","module.exports = __webpack_public_path__ + \"img/icon-refresh.e78fba07.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!./CardContainer.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-general-view.6e8cf869.svg\";","module.exports = __webpack_public_path__ + \"img/icon-shutter.b88b133c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-done.3da9ef41.svg\";","module.exports = __webpack_public_path__ + \"img/icon-edit.e6654111.svg\";","module.exports = __webpack_public_path__ + \"img/icon-automation-2.bdcf38c1.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!./DialogPlantDuplicate.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-message.297290d6.svg\";","var $ = require('../internals/export');\nvar parseInt = require('../internals/number-parse-int');\n\n// `Number.parseInt` method\n// https://tc39.es/ecma262/#sec-number.parseint\n$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, {\n parseInt: parseInt\n});\n","module.exports = __webpack_public_path__ + \"img/icon-laundry.6b1b960c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-light.9f4df880.svg\";","module.exports = __webpack_public_path__ + \"img/icon-towel-rail.a4348895.svg\";","module.exports = __webpack_public_path__ + \"img/icon-music-player.88e7fe63.svg\";","module.exports = __webpack_public_path__ + \"img/icon-electrical-cabinet.2f0f7dac.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__","module.exports = __webpack_public_path__ + \"img/icon-livingroom.b9d081af.svg\";","module.exports = __webpack_public_path__ + \"img/icon-bedroom.acd3f824.svg\";","module.exports = __webpack_public_path__ + \"img/icon-security-2.2f15498d.svg\";","module.exports = __webpack_public_path__ + \"img/icon-parameters.b57aa86c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-blind.dd2cda6f.svg\";","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe23',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20f0',\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',\n rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',\n rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,\n rsUpper + '+' + rsOptUpperContr,\n rsDigits,\n rsEmoji\n].join('|'), 'g');\n\n/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 'ss'\n};\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array ? array.length : 0;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n return string.match(reAsciiWord) || [];\n}\n\n/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n}\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\n/**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\nvar kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n});\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n}\n\nmodule.exports = kebabCase;\n","module.exports = __webpack_public_path__ + \"img/icon-automation.9592e7a0.svg\";","module.exports = __webpack_public_path__ + \"img/icon-faq.0c68bdd5.svg\";","module.exports = __webpack_public_path__ + \"img/icon-duplication.6f861d54.svg\";","module.exports = __webpack_public_path__ + \"img/icon-bathroom.da2ccc30.svg\";","module.exports = __webpack_public_path__ + \"img/icon-expand-menu.b4f3b9a9.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!./DialogEntrancePlantCreateStep5.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-actuator-2.eda64991.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 mb-0\" }\nconst _hoisted_3 = {\n key: 0,\n id: \"dialog-plant-duplicate-spinner\"\n}\nconst _hoisted_4 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_5 = { class: \"p-field mb-4\" }\nconst _hoisted_6 = { class: \"d-block mb-2 p-field-label\" }\nconst _hoisted_7 = { class: \"mr-3\" }\nconst _hoisted_8 = { class: \"p-field\" }\nconst _hoisted_9 = { class: \"p-field-label\" }\nconst _hoisted_10 = { class: \"dialog-custom__footer\" }\nconst _hoisted_11 = {\n key: 1,\n class: \"app-loader app-loader--contextual\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_ProgressSpinner = _resolveComponent(\"ProgressSpinner\")\n const _component_NumberButtons = _resolveComponent(\"NumberButtons\")\n const _component_InputText = _resolveComponent(\"InputText\")\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 modal: true,\n showHeader: false,\n onHide: _ctx.doHideDialog,\n id: \"plant-duplicate-dialog\",\n visible: _ctx.isDialogVisible,\n \"onUpdate:visible\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.isDialogVisible = $event)),\n class: \"dialog-custom dialog-plant-duplicate\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.dialogTitle), 1)\n ]),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3, [\n _createVNode(_component_ProgressSpinner)\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"label\", _hoisted_6, _toDisplayString(_ctx.$t(\"plantDialogDuplicate.howManyCopies\")), 1),\n _createVNode(_component_NumberButtons, {\n modelValue: _ctx.plantsCount,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.plantsCount = $event)),\n \"disable-decrease\": _ctx.plantsCount === 1\n }, null, 8, [\"modelValue\", \"disable-decrease\"])\n ]),\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.$t(\"plantsList.duplicateDialog.inputLabel\")), 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.plantsToCreate, (plant, idx) => {\n return (_openBlock(), _createBlock(_component_InputText, {\n type: \"text\",\n ref: \"nameInput\",\n modelValue: plant.name,\n \"onUpdate:modelValue\": ($event: any) => (plant.name = $event),\n key: 'plant_ ' + idx,\n class: [\"mt-2 mb-4 w-100\", {\n 'input-error': !!plant.isInvalid,\n }],\n onInput: ($event: any) => (_ctx.handleNameChange(plant))\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"onInput\", \"class\"]))\n }), 128))\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleHideDialog,\n class: \"p-button-text p-button-secondary text-uppercase mr-2\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Cancel\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_Button, {\n onClick: _ctx.doConfirm,\n disabled: _ctx.isConfirmDisabled,\n class: \"p-button-rounded p-button--m\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Ok\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"])\n ]),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_11, [\n _createVNode(_component_ProgressSpinner)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"onHide\", \"visible\"]))\n}","import { PropType } from 'vue';\nimport debounce from 'lodash.debounce';\nimport { Options, Vue } from 'vue-class-component';\nimport {\n PlantDTO,\n PlantListDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport plantsClient from '../../../../core/services/plants';\nimport {\n PlantEntityType,\n PlantFlatEntityDTO,\n} from '@/../client-generator/generated-clients/configurations';\nimport { NAME_VALIDATION_DEBOUNCE_TIME } from '@/core/utils/utils';\nimport { SET_APP_LOADING } from '../../../../core/store/action-types';\nimport { NamingService, ValidablePlant } from '@/core/services/naming.service';\nimport NumberButtons from '../../../components/NumberButtons/NumberButtons.vue';\n\n@Options({\n name: 'DialogPlantDuplicate',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n plant: {\n type: Object as PropType,\n required: true,\n },\n },\n watch: {\n isVisible: async function (newValue) {\n this.isDialogVisible = newValue;\n\n if (!this.plant.desktopId || !this.isDialogVisible) {\n this.dispose();\n return;\n }\n\n await this.doFirstPrefetch();\n await this.initializeFirstName();\n },\n plantsCount: async function (newValue, prevValue) {\n await this.suggestNameIfNeeded(prevValue, newValue);\n },\n },\n emits: ['hide-dialog', 'plant-edited', 'fetch-plants'],\n components: {\n NumberButtons,\n },\n})\nexport default class DialogPlantCreate extends Vue {\n plantsCount = 1;\n isLoading = false;\n isVisible!: boolean;\n plant!: PlantListDTO;\n isDialogVisible = false;\n entitiesPrefetchDone = false;\n\n plantsToCreate: ValidablePlant[] = [];\n\n get dialogTitle() {\n return `${this.$t('AppResource.PlantDuplication')}: ${ this.plant.name}`;\n }\n\n get isConfirmDisabled(): boolean {\n const allValidNames = this.plantsToCreate.every((p) => !p.isInvalid);\n console.log(allValidNames);\n return !allValidNames;\n }\n\n async doConfirm() {\n this.$emit('hide-dialog');\n try {\n this.$store.dispatch(SET_APP_LOADING, true);\n await plantsClient.duplicatePlant(\n +this.plant.desktopId!,\n this.plantsToCreate.map((p) => p.name) as string[]\n );\n this.$toast.add({\n severity: 'success',\n summary: this.$t('plantDialogDuplicate.success'),\n closable: true,\n life: 3000,\n });\n } catch (e) {\n console.log('Error duplicating plant', e);\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n this.$emit('fetch-plants');\n }\n }\n\n mounted() {\n this.handleNameChange = debounce(\n this.handleNameChange,\n NAME_VALIDATION_DEBOUNCE_TIME\n );\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n async handleNameChange() {\n // validate the cloned list\n this.plantsToCreate = [\n ...NamingService.validatePlantAgainstList(this.plantsToCreate),\n ];\n }\n\n // DO NOT DELETE ME\n // I'm used in the watcher\n private dispose() {\n NamingService.flushCache();\n this.entitiesPrefetchDone = false;\n this.plantsCount = 1;\n this.plantsToCreate = [];\n }\n\n // DO NOT DELETE ME\n // I'm used in the watcher\n private async doFirstPrefetch() {\n this.isLoading = true;\n await NamingService.prefetchFlatEntities(\n +this.plant.desktopId!,\n PlantEntityType.PLANT\n );\n this.entitiesPrefetchDone = true;\n this.isLoading = false;\n }\n\n // DO NOT DELETE ME\n // I'm used in the watcher\n private async initializeFirstName() {\n this.isLoading = true;\n await this.suggestNameIfNeeded(0, 0);\n this.isLoading = false;\n console.log(this.plantsToCreate);\n return;\n }\n\n // DO NOT DELETE ME\n // I'm used in the watcher\n private async suggestNameIfNeeded(prevValue: number, currValue: number) {\n if (currValue === 0) {\n this.plantsCount = 1;\n this.plantsToCreate = [\n {\n name: await NamingService.suggestNextValidEntityName({\n eType: PlantEntityType.PLANT,\n plantId: +this.plant.desktopId!,\n metadata: { plantSourceName: this.plant.name },\n }),\n },\n ];\n this.updateNamingServiceAdditionalEntities();\n return;\n }\n\n if (prevValue > currValue) {\n this.plantsToCreate.pop();\n this.updateNamingServiceAdditionalEntities();\n return;\n }\n\n this.plantsToCreate.push({\n name: await NamingService.suggestNextValidEntityName({\n eType: PlantEntityType.PLANT,\n plantId: +this.plant.desktopId!,\n metadata: { plantSourceName: this.plant.name },\n }),\n });\n\n this.updateNamingServiceAdditionalEntities();\n }\n\n private updateNamingServiceAdditionalEntities() {\n NamingService.additionalEntities = this.plantsToCreate.map(\n (p, id) =>\n new PlantFlatEntityDTO({\n id: id.toString(),\n currentName: p.name,\n })\n );\n }\n}\n","import { render } from \"./DialogPlantDuplicate.vue?vue&type=template&id=24289664&ts=true\"\nimport script from \"./DialogPlantDuplicate.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogPlantDuplicate.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogPlantDuplicate.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-alert-hight-outline.2c606bba.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!./DialogEntrancePlantCreateStep4.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-socket.27818ce0.svg\";","module.exports = __webpack_public_path__ + \"img/icon-sync.504e71f4.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 } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__title mb-0\" }\nconst _hoisted_2 = { class: \"fs-18 text-gray\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 330px)\"} }\nconst _hoisted_5 = {\n class: \"p-selectbutton--blocks p-2\",\n style: {\"--cols\":\"6\"}\n}\nconst _hoisted_6 = { class: \"bt-icon text-gray\" }\nconst _hoisted_7 = { class: \"mb-3\" }\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_NumberButtons = _resolveComponent(\"NumberButtons\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", {\n \"data-plant\": _ctx.$attrs.plantId,\n class: \"dialog-custom__header\"\n }, [\n _createVNode(\"h1\", _hoisted_1, _toDisplayString(_ctx.stepTitle), 1),\n _createVNode(\"p\", _hoisted_2, _toDisplayString(_ctx.stepSubTitle), 1)\n ], 8, [\"data-plant\"]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.roomTypes, (roomType) => {\n return (_openBlock(), _createBlock(\"div\", {\n key: roomType.type,\n class: \"p-button text-primary\"\n }, [\n _createVNode(\"span\", _hoisted_6, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/${_ctx.getRoomIcon(roomType.type)}.svg`)\n \n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"p\", _hoisted_7, _toDisplayString(roomType.label), 1),\n _createVNode(_component_NumberButtons, {\n modelValue: roomType.count,\n \"onUpdate:modelValue\": ($event: any) => (roomType.count = $event),\n onInput: ($event: any) => (_ctx.updatePlantRoom(roomType))\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"onInput\"])\n ]))\n }), 128))\n ])\n ]),\n _: 1\n })\n ])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n PlantDetailDTO,\n PlantDTO,\n PlantRoomCount,\n RoomDTO,\n RoomType,\n} from '@/../client-generator/generated-clients/plants';\nimport { getRoomIconFromType } from '@/core/utils/utils';\nimport configurationsClient from '@/core/services/configurations-service';\nimport { DefaultRoomDTO } from '@/../client-generator/generated-clients/configurations';\n\nimport NumberButtons from '@/views/components/NumberButtons/NumberButtons.vue';\n\n@Options({\n name: 'DialogPlantCreateStep3',\n props: {\n plant: {\n required: true,\n type: Object as () => PlantDTO,\n },\n isInEditMode: {\n type: Boolean,\n },\n },\n components: {\n NumberButtons,\n },\n emits: ['is-loading'],\n})\nexport default class DialogPlantCreateStep3 extends Vue {\n plant!: PlantDTO;\n roomTypes: DefaultRoomDTO[] = [];\n getRoomIcon = getRoomIconFromType;\n isInEditMode!: boolean;\n\n get stepTitle() {\n if (this.isInEditMode) return this.$t('AppResource.AddARoom');\n return this.$t('AppResource.CreateStructure');\n }\n get stepSubTitle() {\n if (this.isInEditMode) return this.$t('AppResource.ChooseRoomToAdd');\n return this.$t('AppResource.SelectRoomsText');\n }\n\n get theRooms() {\n return this.isInEditMode\n ? (this.plant as PlantDetailDTO).rooms\n : (this.plant as PlantDTO).roomsCounts;\n }\n\n async created() {\n this.fetchRooms();\n }\n\n async fetchRooms() {\n this.$emit('is-loading', true);\n try {\n this.roomTypes = await configurationsClient.defaultRoomsList();\n this.roomTypes.forEach(r => r.label = this.$t(`AppResource.${RoomType[r.type!]}`))\n if (this.isInEditMode) this.roomTypes.forEach((rt) => (rt.count = 0));\n const theRooms = this.plant.roomsCounts;\n if (!theRooms || (theRooms && theRooms.length === 0)) {\n (this.plant as PlantDTO).roomsCounts = this.roomTypes.map(\n (rt) =>\n ({\n type: rt.type!,\n count: rt.count!,\n } as PlantRoomCount)\n );\n }\n\n this.roomTypes = this.roomTypes.map(\n (rt) =>\n ({\n ...rt,\n count: (() => {\n if (!this.isInEditMode) {\n const plantRoomCount = theRooms?.find(\n (rc) => rc.type === rt.type\n );\n if (plantRoomCount) {\n return plantRoomCount.count;\n }\n return rt.count;\n }\n return 0;\n })(),\n } as DefaultRoomDTO)\n );\n } catch (error) {\n console.log(error);\n } finally {\n this.$emit('is-loading', false);\n }\n }\n\n updatePlantRoom(room: DefaultRoomDTO) {\n const plantRoom = this.plant.roomsCounts?.find(\n (rc) => rc.type === room.type\n );\n\n if (!plantRoom) {\n console.log('Plant room not found');\n return;\n }\n\n plantRoom.count = room.count;\n plantRoom.label = room.label;\n }\n}\n","import { render } from \"./DialogPlantCreateStep3.vue?vue&type=template&id=467fb4cd&ts=true\"\nimport script from \"./DialogPlantCreateStep3.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogPlantCreateStep3.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, withModifiers as _withModifiers, 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 = { class: \"p-field\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"hr\", null, null, -1)\nconst _hoisted_6 = { 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_InputText = _resolveComponent(\"InputText\")\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[4] || (_cache[4] = ($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.$t(\"AppResource.PlantDeletion\")), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"plantDetail.deletePlantConfirm\", {\n plantName: _ctx.plantName,\n code: _ctx.codeToCheck,\n })), 1),\n _createVNode(\"form\", {\n class: \"w-50 mb-4\",\n onSubmit: _cache[3] || (_cache[3] = _withModifiers(() => {}, [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_InputText, {\n type: \"text\",\n class: \"w-100\",\n maxlength: \"6\",\n modelValue: _ctx.theCode,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.theCode = $event)),\n onPaste: _cache[2] || (_cache[2] = _withModifiers(() => {}, [\"prevent\"]))\n }, null, 8, [\"modelValue\"])\n ])\n ], 32),\n _hoisted_5,\n _createVNode(\"div\", _hoisted_6, [\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 disabled: _ctx.isConfirmDisabled\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Ok\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { Vue, Options } from 'vue-class-component';\nimport { getRandomInt } from '../../../core/utils/utils';\n\n@Options({\n name: 'DialogConfirmDeletePlant',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n plantName: {\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 DialogConfirmDeletePlant extends Vue {\n isVisible!: boolean;\n isDialogVisible = false;\n codeToCheck = '';\n theCode = '';\n\n get isConfirmDisabled() {\n return this.theCode !== this.codeToCheck;\n }\n\n mounted() {\n this.isDialogVisible = this.isVisible;\n this.resetCodes();\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n\n this.$nextTick(() => {\n this.resetCodes();\n });\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n doConfirm() {\n this.$emit('confirm');\n this.handleHideDialog();\n }\n\n resetCodes() {\n this.theCode = '';\n let randStr = ``;\n for (let i = 0; i < 4; i++) randStr += getRandomInt(0, 9, true);\n this.codeToCheck = randStr;\n }\n}\n","import { render } from \"./DialogConfirmDeletePlant.vue?vue&type=template&id=090d81b2&ts=true\"\nimport script from \"./DialogConfirmDeletePlant.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogConfirmDeletePlant.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__","module.exports = __webpack_public_path__ + \"img/icon-diningroom.492ece47.svg\";","module.exports = __webpack_public_path__ + \"img/icon-grid.d7beaf2c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-blueprint.ef378b33.svg\";","module.exports = __webpack_public_path__ + \"img/icon-round-outline.3cd1592a.svg\";","module.exports = __webpack_public_path__ + \"img/icon-confirm-outline.dba5a9f6.svg\";","var map = {\n\t\"./icon-actuator-2.svg\": \"46f4\",\n\t\"./icon-add-circle-outline.svg\": \"a2b6\",\n\t\"./icon-add-outline.svg\": \"94b1\",\n\t\"./icon-add.svg\": \"605f\",\n\t\"./icon-alert-hight-full.svg\": \"0450\",\n\t\"./icon-alert-hight-outline.svg\": \"4a7c\",\n\t\"./icon-alert-medium-full.svg\": \"df0f\",\n\t\"./icon-alert-medium-outline.svg\": \"8c5c\",\n\t\"./icon-alert-triangle-outline.svg\": \"9cb1\",\n\t\"./icon-all-plants.svg\": \"15c1\",\n\t\"./icon-arrows-back.svg\": \"6b1a\",\n\t\"./icon-arrows-down.svg\": \"7526\",\n\t\"./icon-arrows-next.svg\": \"8cbd\",\n\t\"./icon-arrows-up.svg\": \"764e\",\n\t\"./icon-assistant.svg\": \"8049\",\n\t\"./icon-automation-2.svg\": \"1f93\",\n\t\"./icon-automation.svg\": \"33d3\",\n\t\"./icon-ban-light.svg\": \"cba1\",\n\t\"./icon-bathroom.svg\": \"3a90\",\n\t\"./icon-bedroom.svg\": \"2dc5\",\n\t\"./icon-blind.svg\": \"3343\",\n\t\"./icon-blueprint.svg\": \"50da\",\n\t\"./icon-book.svg\": \"a24e\",\n\t\"./icon-checkbox-disabled.svg\": \"7a74\",\n\t\"./icon-close.svg\": \"9f16\",\n\t\"./icon-colored-light.svg\": \"89d8\",\n\t\"./icon-command.svg\": \"df05\",\n\t\"./icon-confirm-full.svg\": \"754d\",\n\t\"./icon-confirm-outline.svg\": \"56b2\",\n\t\"./icon-connected-server.svg\": \"a17c\",\n\t\"./icon-corridor.svg\": \"b9ef\",\n\t\"./icon-datetime.svg\": \"1496\",\n\t\"./icon-delete.svg\": \"94ba\",\n\t\"./icon-desktop.svg\": \"983e\",\n\t\"./icon-device.svg\": \"03b8\",\n\t\"./icon-dimmer-dmx.svg\": \"7a49\",\n\t\"./icon-diningroom.svg\": \"501c\",\n\t\"./icon-done.svg\": \"1e96\",\n\t\"./icon-duplication-all.svg\": \"b32a\",\n\t\"./icon-duplication.svg\": \"3a03\",\n\t\"./icon-edit-page.svg\": \"d0d6\",\n\t\"./icon-edit.svg\": \"1eee\",\n\t\"./icon-electrical-cabinet.svg\": \"2aa1\",\n\t\"./icon-ellipsis-v.svg\": \"137d\",\n\t\"./icon-email.svg\": \"f1cb\",\n\t\"./icon-energy.svg\": \"b05d\",\n\t\"./icon-entrance.svg\": \"b000\",\n\t\"./icon-expand-menu.svg\": \"420d\",\n\t\"./icon-failed-full.svg\": \"a6b2\",\n\t\"./icon-failed-outline.svg\": \"78b2\",\n\t\"./icon-fancoil.svg\": \"7b42\",\n\t\"./icon-faq.svg\": \"3437\",\n\t\"./icon-favourite-outline.svg\": \"efba\",\n\t\"./icon-favourite.svg\": \"ef9e\",\n\t\"./icon-filter.svg\": \"0931\",\n\t\"./icon-filters.svg\": \"f5b0\",\n\t\"./icon-garage.svg\": \"e25a\",\n\t\"./icon-garden.svg\": \"18bc\",\n\t\"./icon-general-light.svg\": \"8bae\",\n\t\"./icon-general-view.svg\": \"1cb3\",\n\t\"./icon-grid.svg\": \"5084\",\n\t\"./icon-group-lights.svg\": \"c7c0\",\n\t\"./icon-import.svg\": \"467b\",\n\t\"./icon-info-circle.svg\": \"d5db\",\n\t\"./icon-kitchen.svg\": \"f795\",\n\t\"./icon-laundry.svg\": \"26cc\",\n\t\"./icon-less.svg\": \"1fe0\",\n\t\"./icon-light.svg\": \"2967\",\n\t\"./icon-list.svg\": \"9a3b\",\n\t\"./icon-livingroom.svg\": \"2d2a\",\n\t\"./icon-loading.svg\": \"e315\",\n\t\"./icon-lock.svg\": \"a1b1\",\n\t\"./icon-mail.svg\": \"aaa7\",\n\t\"./icon-mobile-device.svg\": \"fcc4\",\n\t\"./icon-music-player.svg\": \"2a2b\",\n\t\"./icon-mx-server.svg\": \"eba1\",\n\t\"./icon-network.svg\": \"e331\",\n\t\"./icon-no-view.svg\": \"c6d8\",\n\t\"./icon-notification.svg\": \"dce2\",\n\t\"./icon-office.svg\": \"790c\",\n\t\"./icon-outdoor.svg\": \"6f2c\",\n\t\"./icon-paperclip.svg\": \"fa60\",\n\t\"./icon-plan-duplicate.svg\": \"fffe\",\n\t\"./icon-plants.svg\": \"f643\",\n\t\"./icon-player.svg\": \"c733\",\n\t\"./icon-plus-outline.svg\": \"1212\",\n\t\"./icon-profile.svg\": \"4fab\",\n\t\"./icon-push-notification.svg\": \"6d4c\",\n\t\"./icon-refresh.svg\": \"1af7\",\n\t\"./icon-remove-hand-02.svg\": \"797b\",\n\t\"./icon-remove-outline.svg\": \"79ab\",\n\t\"./icon-reorder-drag-and-drop.svg\": \"fcb4\",\n\t\"./icon-room.svg\": \"a24d\",\n\t\"./icon-round-outline.svg\": \"5115\",\n\t\"./icon-round.svg\": \"0b54\",\n\t\"./icon-scan-qr-code-02.svg\": \"b205\",\n\t\"./icon-scene.svg\": \"c4c4\",\n\t\"./icon-search.svg\": \"6a1a\",\n\t\"./icon-security-2.svg\": \"2f55\",\n\t\"./icon-security.svg\": \"a13f\",\n\t\"./icon-server-mhs-1.svg\": \"63ec\",\n\t\"./icon-setting.svg\": \"e942\",\n\t\"./icon-shutter.svg\": \"1e5c\",\n\t\"./icon-socket.svg\": \"4e1f\",\n\t\"./icon-staff.svg\": \"8dec\",\n\t\"./icon-staircase.svg\": \"a1a2\",\n\t\"./icon-star.svg\": \"0c24\",\n\t\"./icon-start-plan.svg\": \"f9fc\",\n\t\"./icon-sync.svg\": \"4e9a\",\n\t\"./icon-thermo.svg\": \"dc59\",\n\t\"./icon-thermostat.svg\": \"a231\",\n\t\"./icon-toilets.svg\": \"01b6\",\n\t\"./icon-towel-rail.svg\": \"2a06\",\n\t\"./icon-user.svg\": \"a26a\",\n\t\"./icon-weather.svg\": \"e6c0\",\n\t\"./icon-wifi-01-1.svg\": \"c297\",\n\t\"./icon-wifi.svg\": \"f077\",\n\t\"./icon-wizard-assegna-attuatore.svg\": \"6a9d\",\n\t\"./icon-xmeter.svg\": \"0519\",\n\t\"./icon_command_day.svg\": \"78b0\",\n\t\"./icon_command_enter.svg\": \"afda\",\n\t\"./icon_command_exit.svg\": \"c34e\",\n\t\"./icon_command_night.svg\": \"0ec0\",\n\t\"./icon_parameters_and_settings_folder_2.svg\": \"14b1\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"5981\";","module.exports = __webpack_public_path__ + \"img/ImagesMX-300EOS.2eddd116.png\";","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/ecma262/#sec-set-objects\nmodule.exports = collection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","module.exports = __webpack_public_path__ + \"img/icon-server-mhs-1.ea1fa748.svg\";","module.exports = __webpack_public_path__ + \"img/icon-search.9e4d57d8.svg\";","module.exports = __webpack_public_path__ + \"img/icon-wizard-assegna-attuatore.ff6687dc.svg\";","module.exports = __webpack_public_path__ + \"img/icon-arrows-back.36b433eb.svg\";","module.exports = __webpack_public_path__ + \"img/icon-push-notification.b4cc549d.svg\";","module.exports = __webpack_public_path__ + \"img/icon-outdoor.5771a8e2.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.$t(\"plantDetail.newUpdates\")), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"plantDetail.willRefreshToReflectChanges\")), 1),\n _hoisted_4,\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button--m\",\n onClick: _ctx.handleHideDialog\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: 'ConfirmPlantUpdated',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n },\n },\n emits: ['hide-dialog'],\n})\nexport default class ConfirmPlantUpdated extends Vue {\n isVisible!: boolean;\n isDialogVisible = false;\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","import { render } from \"./ConfirmPlantUpdated.vue?vue&type=template&id=94c1768c&ts=true\"\nimport script from \"./ConfirmPlantUpdated.ts?vue&type=script&lang=ts\"\nexport * from \"./ConfirmPlantUpdated.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__","var map = {\n\t\"./icon-favourite-outline.svg\": \"efba\",\n\t\"./icon-favourite.svg\": \"ef9e\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"7235\";","module.exports = __webpack_public_path__ + \"img/icon-arrows-down.d33a9aed.svg\";","module.exports = __webpack_public_path__ + \"img/icon-confirm-full.e9a56b47.svg\";","module.exports = __webpack_public_path__ + \"img/icon-arrows-up.78952d2b.svg\";","module.exports = __webpack_public_path__ + \"img/icon_command_day.6344b347.svg\";","module.exports = __webpack_public_path__ + \"img/icon-failed-outline.bd9eeab3.svg\";","import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"card__head d-flex align-items-center\" }\nconst _hoisted_2 = { class: \"d-flex align-items-center\" }\nconst _hoisted_3 = { class: \"ml-2\" }\nconst _hoisted_4 = { class: \"ml-auto mr-2\" }\nconst _hoisted_5 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_6 = { class: \"ml-2\" }\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: \"card--primary\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_1, [\n _renderSlot(_ctx.$slots, \"title\", {}, () => [\n _createVNode(\"h3\", _hoisted_2, [\n _createVNode(_component_InlineSvgScoped, { src: _ctx.titleIcon }, null, 8, [\"src\"]),\n _createVNode(\"span\", _hoisted_3, _toDisplayString(_ctx.title), 1)\n ])\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _renderSlot(_ctx.$slots, \"actionButton\", {}, () => [\n (_ctx.showActionButton)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n disabled: _ctx.disabled,\n onClick: _ctx.onActionButtonClick,\n class: \"p-button-rounded p-button-outlined\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_5, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-plus-outline.svg`)\n ,\n \"aria-label\": \"icon-grid\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_6, _toDisplayString(_ctx.actionButtonLabel), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _renderSlot(_ctx.$slots, \"default\")\n ]),\n _: 1\n }))\n}","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'CardContainer',\n components: {},\n props: {\n titleIcon: {\n type: String,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n showActionButton: {\n type: Boolean,\n required: false,\n },\n actionButtonLabel: {\n type: String,\n required: false,\n },\n disabled: {\n type:Boolean,\n required: false, \n default: false\n\n }\n },\n watch: {},\n emits: ['on-Action-Button-Click']\n})\n\nexport default class CardContainer extends Vue {\n titleIcon!: string;\n title!: string;\n showActionButton!: boolean;\n actionButtonLabel!: string;\n disabled!:boolean;\n\n\n\n onActionButtonClick () {\n this.$emit('on-Action-Button-Click');\n }\n}\n","import { render } from \"./CardContainer.vue?vue&type=template&id=5aab2bae&ts=true\"\nimport script from \"./CardContainer.ts?vue&type=script&lang=ts\"\nexport * from \"./CardContainer.ts?vue&type=script&lang=ts\"\n\nimport \"./CardContainer.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-office.87b0bb72.svg\";","module.exports = __webpack_public_path__ + \"img/icon-remove-hand-02.b3013ce2.svg\";","module.exports = __webpack_public_path__ + \"img/icon-dimmer-dmx.6b6ebf5a.svg\";","module.exports = __webpack_public_path__ + \"img/icon-checkbox-disabled.e73b0c58.svg\";","module.exports = __webpack_public_path__ + \"img/icon-fancoil.4c6f40ef.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.$t(\"AppResource.AreYouSureToRemoveUser\")), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"AppResource.AreYouSureToRemoveUserDescription\")), 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.No\")), 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.Yes\")), 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: 'ConfirmDeleteUser',\n props: {\n isVisible: {\n type: Boolean,\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 ConfirmDeleteUser extends Vue {\n isVisible!: boolean;\n isDialogVisible = false;\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 \"./ConfirmDeleteUser.vue?vue&type=template&id=bddcd266&ts=true\"\nimport script from \"./ConfirmDeleteUser.ts?vue&type=script&lang=ts\"\nexport * from \"./ConfirmDeleteUser.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__","module.exports = __webpack_public_path__ + \"img/icon-assistant.fe90f648.svg\";","module.exports = __webpack_public_path__ + \"img/icon-check.ea86f165.svg\";","module.exports = __webpack_public_path__ + \"img/icon-colored-light.ac91883d.svg\";","module.exports = __webpack_public_path__ + \"img/icon-general-light.5d647674.svg\";","module.exports = __webpack_public_path__ + \"img/icon-arrows-next.74ae035b.svg\";","module.exports = __webpack_public_path__ + \"img/icon-staff.6521f768.svg\";","module.exports = __webpack_public_path__ + \"img/icon-add-outline.c9d7b603.svg\";","module.exports = __webpack_public_path__ + \"img/icon-delete.07c02c83.svg\";","module.exports = __webpack_public_path__ + \"img/icon-desktop.71f04af6.svg\";","module.exports = __webpack_public_path__ + \"img/icon-list.bef321b2.svg\";","module.exports = __webpack_public_path__ + \"img/icon-alert-triangle-outline.e4ec6016.svg\";","module.exports = __webpack_public_path__ + \"img/ImagesMHS1.905aa28c.png\";","module.exports = __webpack_public_path__ + \"img/icon-close.87d20c21.svg\";","module.exports = __webpack_public_path__ + \"img/icon-security.348daf12.svg\";","module.exports = __webpack_public_path__ + \"img/icon-connected-server.8dcc623c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-staircase.35c161c5.svg\";","module.exports = __webpack_public_path__ + \"img/icon-lock.8a711cb2.svg\";","module.exports = __webpack_public_path__ + \"img/icon-thermostat.dd8c3261.svg\";","module.exports = __webpack_public_path__ + \"img/icon-room.0000d9fd.svg\";","module.exports = __webpack_public_path__ + \"img/icon-book.356ba9c9.svg\";","module.exports = __webpack_public_path__ + \"img/icon-user.5b7b44ae.svg\";","module.exports = __webpack_public_path__ + \"img/icon-add-circle-outline.37b9f1a7.svg\";","module.exports = __webpack_public_path__ + \"img/icon-failed-full.71b91db3.svg\";","module.exports = __webpack_public_path__ + \"img/icon-resident.fa4efdcd.svg\";","module.exports = __webpack_public_path__ + \"img/icon_command_enter.b137fbf5.svg\";","module.exports = __webpack_public_path__ + \"img/icon-entrance.e9394a23.svg\";","module.exports = __webpack_public_path__ + \"img/icon-energy.6218eb17.svg\";","module.exports = __webpack_public_path__ + \"img/icon-scan-qr-code-02.02353839.svg\";","module.exports = __webpack_public_path__ + \"img/icon-duplication-all.2082cf06.svg\";","module.exports = __webpack_public_path__ + \"img/icon-corridor.bfa294ac.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!./WizardAutomationPlant.scss?vue&type=style&index=0&lang=scss\"","var global = require('../internals/global');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseInt = global.parseInt;\nvar hex = /^[+-]?0[Xx]/;\nvar FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22;\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nmodule.exports = FORCED ? function parseInt(string, radix) {\n var S = trim(String(string));\n return $parseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));\n} : $parseInt;\n","module.exports = __webpack_public_path__ + \"img/icon-wifi-01-1.c4c4f56a.svg\";","module.exports = __webpack_public_path__ + \"img/icon_command_exit.b2fa1a4e.svg\";","module.exports = __webpack_public_path__ + \"img/icon-scene.ac54a2af.svg\";","module.exports = __webpack_public_path__ + \"img/icon-no-view.d400a52f.svg\";","module.exports = __webpack_public_path__ + \"img/icon-player.f26ab061.svg\";","module.exports = __webpack_public_path__ + \"img/icon-group-lights.e1c60001.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!./DialogPlantCreate.scss?vue&type=style&index=0&lang=scss\"","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-ban-light.7cc014d7.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, withModifiers as _withModifiers, 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 = { class: \"p-field\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"hr\", null, null, -1)\nconst _hoisted_6 = { 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_InputText = _resolveComponent(\"InputText\")\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-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.$t(\"AppResource.TransferOwnership\")), 1),\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.$t(\"AppResource.TransferOwnershipPasswordRequest\", {\n plantName: _ctx.plantName,\n })), 1),\n _createVNode(\"form\", {\n class: \"w-100 mb-4\",\n onSubmit: _cache[2] || (_cache[2] = _withModifiers(() => {}, [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_InputText, {\n type: \"password\",\n class: \"w-100\",\n modelValue: _ctx.password,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.password = $event))\n }, null, 8, [\"modelValue\"])\n ])\n ], 32),\n _hoisted_5,\n _createVNode(\"div\", _hoisted_6, [\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 disabled: _ctx.isConfirmDisabled\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Confirm\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { Vue, Options } from 'vue-class-component';\n\n@Options({\n name: 'DialogConfirmTransferOwnership',\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n plantName: {\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 DialogConfirmTransferOwnership extends Vue {\n isVisible!: boolean;\n isDialogVisible = false;\n password = '';\n\n get isConfirmDisabled() {\n return !this.password;\n }\n\n mounted() {\n this.isDialogVisible = this.isVisible;\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n\n this.$nextTick(() => {\n this.password = '';\n });\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n doConfirm() {\n this.$emit('confirm', this.password);\n this.handleHideDialog();\n }\n}\n","import { render } from \"./DialogConfirmTransferOwnership.vue?vue&type=template&id=486a7d3d&ts=true\"\nimport script from \"./DialogConfirmTransferOwnership.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogConfirmTransferOwnership.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!./MenuEPSharing.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-edit-page.8332bf81.svg\";","module.exports = __webpack_public_path__ + \"img/icon-info-circle.22d5a45a.svg\";","module.exports = __webpack_public_path__ + \"img/icon-thermo.2a08b930.svg\";","module.exports = __webpack_public_path__ + \"img/icon-notification.15686f96.svg\";","module.exports = __webpack_public_path__ + \"img/icon-command.3f00fc4d.svg\";","module.exports = __webpack_public_path__ + \"img/icon-alert-medium-full.bcb368fc.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"bt-icon bt-icon--sm\" }\nconst _hoisted_2 = { class: \"dialog-custom__footer\" }\nconst _hoisted_3 = {\n key: 3,\n class: \"app-loader app-loader--contextual\"\n}\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_WizardPlantTypeSelection = _resolveComponent(\"WizardPlantTypeSelection\")\n const _component_WizardAutomationPlant = _resolveComponent(\"WizardAutomationPlant\")\n const _component_WizardEntrancePlant = _resolveComponent(\"WizardEntrancePlant\")\n const _component_ProgressSpinner = _resolveComponent(\"ProgressSpinner\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(_component_Dialog, {\n visible: _ctx.isDialogVisible,\n \"onUpdate:visible\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.isDialogVisible = $event)),\n showHeader: false,\n modal: true,\n onHide: _ctx.doHideDialog,\n class: \"dialog-custom dialog-plant-create\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_Button, {\n label: \"close\",\n onClick: _ctx.handleHideDialog,\n class: \"dialog-custom__close-button p-button-text\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_1, [\n _createVNode(_component_InlineSvgScoped, {\n src: require(`@/assets/images/icons/icon-close.svg`)\n }, null, 8, [\"src\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n (_ctx.plantCreateSteps == _ctx.PlantCreateSteps.TYPE_SELECTION)\n ? (_openBlock(), _createBlock(_Fragment, { key: 0 }, [\n _createVNode(_component_WizardPlantTypeSelection, {\n plantType: _ctx.selectedPlantType,\n \"onUpdate:plantType\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.selectedPlantType = $event)),\n residentialType: _ctx.selectedResidentialType,\n \"onUpdate:residentialType\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.selectedResidentialType = $event))\n }, null, 8, [\"plantType\", \"residentialType\"]),\n _createVNode(\"footer\", _hoisted_2, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleContinueButton,\n label: _ctx.$t('AppResource.Continue'),\n class: \"p-button-rounded p-button-raised p-button--m\"\n }, null, 8, [\"onClick\", \"label\"])\n ])\n ], 64))\n : _createCommentVNode(\"\", true),\n (_ctx.plantCreateSteps == _ctx.PlantCreateSteps.WIZARD_AUTOMATION)\n ? (_openBlock(), _createBlock(_component_WizardAutomationPlant, {\n key: 1,\n plantId: _ctx.localPlantId,\n onUpdate: _ctx.updateId,\n onPlantEdited: _ctx.onPlantEdited,\n onExitWizard: _cache[3] || (_cache[3] = ($event: any) => (_ctx.plantCreateSteps = _ctx.PlantCreateSteps.TYPE_SELECTION))\n }, null, 8, [\"plantId\", \"onUpdate\", \"onPlantEdited\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.plantCreateSteps == _ctx.PlantCreateSteps.WIZARD_ENTRANCE)\n ? (_openBlock(), _createBlock(_component_WizardEntrancePlant, {\n key: 2,\n plantId: _ctx.localPlantId,\n isEdit: _ctx.isEdit,\n onUpdate: _ctx.updateId,\n onPlantEdited: _ctx.onPlantEdited,\n onExitWizard: _cache[4] || (_cache[4] = ($event: any) => (_ctx.plantCreateSteps = _ctx.PlantCreateSteps.TYPE_SELECTION))\n }, null, 8, [\"plantId\", \"isEdit\", \"onUpdate\", \"onPlantEdited\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3, [\n _createVNode(_component_ProgressSpinner)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"visible\", \"onHide\"]))\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__title mb-0\" }\nconst _hoisted_2 = { class: \"fs-18 text-gray\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 330px)\"} }\nconst _hoisted_5 = { class: \"plant-type-selection\" }\nconst _hoisted_6 = { class: \"centered\" }\nconst _hoisted_7 = { class: \"px-3 mt-3 text-dark\" }\nconst _hoisted_8 = { class: \"text-dark\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"residential-plant-type\"\n}\nconst _hoisted_10 = { class: \"mx-3\" }\nconst _hoisted_11 = { class: \"text-dark\" }\nconst _hoisted_12 = { class: \"text-gray\" }\nconst _hoisted_13 = { class: \"residential-type-card__content\" }\nconst _hoisted_14 = { class: \"residential-type-card__icon bt-icon\" }\nconst _hoisted_15 = { class: \"residential-type-card__head ml-4\" }\nconst _hoisted_16 = { class: \"text-gray\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_SelectButton = _resolveComponent(\"SelectButton\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Card = _resolveComponent(\"Card\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", {\n \"data-plant\": _ctx.$attrs.plantId,\n class: \"dialog-custom__header\"\n }, [\n _createVNode(\"h1\", _hoisted_1, _toDisplayString(_ctx.$t(\"AppResource.Typeofplant\")), 1),\n _createVNode(\"p\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResource.TypeofplantDescription\").toUpperCase()), 1)\n ], 8, [\"data-plant\"]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_SelectButton, {\n modelValue: _ctx.pt,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.pt = $event)),\n options: _ctx.plantTypesImages,\n optionLabel: \"value\",\n optionValue: \"value\",\n class: \"p-selectbutton--blocks p-selectbutton--img-only m-3\"\n }, {\n option: _withCtx((slotProps) => [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"img\", {\n src: slotProps.option.imageURLs[0],\n alt: \"img\"\n }, null, 8, [\"src\"]),\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"strong\", null, _toDisplayString(slotProps.option.title), 1)\n ]),\n _createVNode(\"div\", _hoisted_8, _toDisplayString(slotProps.option.subTitle), 1)\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"options\"]),\n (_ctx.pt == _ctx.Type.ENTRANCE_PLANT)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_9, [\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"h4\", _hoisted_11, _toDisplayString(_ctx.$t(\"AppResourceEP.ChooseEntrancePlantTypeTitle\")), 1),\n _createVNode(\"p\", _hoisted_12, _toDisplayString(_ctx.$t(\"AppResourceEP.ChooseEntrancePlantTypeDescription\")), 1)\n ]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.residentialTypesButtons, (button, i) => {\n return (_openBlock(), _createBlock(_component_Card, {\n key: i,\n class: [\"residential-type-card m-3\", {'residential-type-card--selected-type': button.value == _ctx.rt}],\n onClick: ($event: any) => (_ctx.changeRtValue(button.value))\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_13, [\n _createVNode(\"span\", _hoisted_14, [\n _createVNode(_component_InlineSvgScoped, {\n src: button.imageURLs,\n \"aria-label\": \"icon-badge\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"h5\", null, _toDisplayString(button.title), 1),\n _createVNode(\"small\", _hoisted_16, _toDisplayString(button.subTitle), 1)\n ])\n ])\n ]),\n _: 2\n }, 1032, [\"onClick\", \"class\"]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n })\n ])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport { PlantType } from '@/../client-generator/generated-clients/plants';\nimport { ResidentialTypePlant } from '@/core/utils/EntrancePlant/entrance-plant.utils';\n\n@Options({\n name: 'WizardPlantTypeSelection',\n props: {\n plantType: {\n required: true,\n type: Number as () => PlantType,\n },\n residentialType: {\n required: true,\n type: Number as () => ResidentialTypePlant,\n },\n },\n watch: {\n plantType: function (newVal: PlantType) {\n if (newVal === PlantType.ENTRANCE_PLANT) {\n this.rt = ResidentialTypePlant.NEW_PLANT;\n }\n }\n },\n emits: ['update:plantType', 'update:residentialType'],\n})\nexport default class WizardPlantTypeSelection extends Vue {\n plantType!: PlantType;\n residentialType!: ResidentialTypePlant;\n\n Type = PlantType;\n\n get pt() {\n return this.plantType;\n }\n\n set pt(val) {\n this.$emit('update:plantType', val);\n }\n\n get rt() {\n return this.residentialType;\n }\n\n set rt(val) {\n this.$emit('update:residentialType', val);\n }\n\n get plantTypesImages() {\n return [\n {\n imageURLs: [require('@/assets/images/plants/plantType/smart-home.jpg')],\n value: PlantType.AUTOMATION_PLANT,\n title: this.$t('AppResourceEP.DomoticSmartHome').toString(),\n subTitle: `${this.$t('AppResource.MxServer').toString()}, ${this.$t(\n 'AppResource.MyHomeServer1'\n ).toString()}`,\n },\n {\n imageURLs: [\n require('@/assets/images/entrancePlants/plantType/enrtance-plant.webp'),\n ],\n value: PlantType.ENTRANCE_PLANT,\n title: this.$t('AppResourceEP.ResidentialDoorEntrySystem').toString(),\n subTitle: this.$t('AppResourceEP.NewPeDevice').toString(),\n },\n ];\n }\n\n get residentialTypesButtons() {\n return [\n {\n imageURLs: require('@/assets/images/icons/icon-add.svg'),\n value: ResidentialTypePlant.NEW_PLANT,\n title: this.$t('AppResourceEP.EntrancePlantNewTitle').toString(),\n subTitle: `${this.$t('AppResourceEP.EntrancePlantNewDescription').toString()}`,\n },\n {\n imageURLs:require('@/assets/images/entrancePlants/icon-plant-configured.svg'),\n value: ResidentialTypePlant.CONFIGURED_PLANT,\n title: this.$t('AppResourceEP.EntrancePlantConfiguredTitle').toString(),\n subTitle: this.$t('AppResourceEP.EntrancePlantConfiguredDescription').toString(),\n },\n ];\n }\n\n changeRtValue(value: ResidentialTypePlant) {\n if(value === ResidentialTypePlant.NEW_PLANT){\n this.rt = value;\n }\n else {\n const faqUrl = \"https://qna.legrand.com/linea-5000/b2e83fb2-e7f2-4d9a-b106-62fe3b444f8f/LIN018?\";\n window.open(faqUrl, \"_blank\");\n }\n }\n}\n","import { render } from \"./WizardPlantTypeSelection.vue?vue&type=template&id=1dfca87f&ts=true\"\nimport script from \"./WizardPlantTypeSelection.ts?vue&type=script&lang=ts\"\nexport * from \"./WizardPlantTypeSelection.ts?vue&type=script&lang=ts\"\n\nimport \"./WizardPlantTypeSelection.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 { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__footer\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"app-loader app-loader--contextual\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")\n const _component_ProgressSpinner = _resolveComponent(\"ProgressSpinner\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.dialogStepComponent), {\n plant: _ctx.plant,\n plantId: _ctx.plantId,\n onIsLoading: _ctx.handleStepLoading,\n onNextEnabled: _ctx.handleNextEnabledChange\n }, null, 8, [\"plant\", \"plantId\", \"onIsLoading\", \"onNextEnabled\"])),\n _createVNode(\"footer\", _hoisted_1, [\n (_ctx.isBackButtonVisible)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n onClick: _ctx.handleStepBack,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_Button, {\n onClick: _ctx.handleButtonSubmitAction,\n label: _ctx.buttonSubmitLabel,\n disabled: \n !_ctx.nextEnabled ||\n (_ctx.dialogStep === 2 && _ctx.plant.mxServer?.model == undefined)\n ,\n class: \"p-button-rounded p-button-raised p-button--m\"\n }, null, 8, [\"onClick\", \"label\", \"disabled\"])\n ]),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_2, [\n _createVNode(_component_ProgressSpinner)\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, withModifiers as _withModifiers, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { class: \"dialog-plant-create__grid\" }\nconst _hoisted_5 = { style: {\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_6 = { class: \"mr-3\" }\nconst _hoisted_7 = { class: \"p-field\" }\nconst _hoisted_8 = {\n class: \"p-field-label\",\n for: \"plantname\"\n}\nconst _hoisted_9 = {\n for: \"name\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_10 = { class: \"p-field\" }\nconst _hoisted_11 = {\n class: \"p-field-label\",\n for: \"country\"\n}\nconst _hoisted_12 = { class: \"p-field\" }\nconst _hoisted_13 = {\n class: \"p-field-label\",\n for: \"address\"\n}\nconst _hoisted_14 = { class: \"p-field mr-3 mb-4\" }\nconst _hoisted_15 = { class: \"p-field-label mb-4 ml-3\" }\nconst _hoisted_16 = { class: \"p-field\" }\nconst _hoisted_17 = { class: \"p-field-label\" }\nconst _hoisted_18 = { class: \"p-field-with-button\" }\nconst _hoisted_19 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_20 = { class: \"ml-2\" }\nconst _hoisted_21 = { class: \"menu-filters mt-3\" }\nconst _hoisted_22 = { class: \"menu-filters__buttons list-unstyled p-select-button\" }\nconst _hoisted_23 = { class: \"p-button-label\" }\nconst _hoisted_24 = {\n key: 0,\n class: \"bt-icon bt-icon--2xs p-button-icon-hidden\"\n}\nconst _hoisted_25 = { class: \"ml-3 bt-icon bt-icon--2xs\" }\nconst _hoisted_26 = { key: 1 }\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_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_SelectButton = _resolveComponent(\"SelectButton\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.title), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"label\", _hoisted_8, _toDisplayString(_ctx.$t(\"AppResource.PlantNameUpper\")), 1),\n _createVNode(_component_InputText, {\n id: \"plantname\",\n type: \"text\",\n class: [\"w-100\", { 'input-error': !_ctx.isValidName }],\n modelValue: _ctx.plant.name,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.plant.name = $event))\n }, null, 8, [\"modelValue\", \"class\"]),\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.invalidNameReason), 1)\n ]),\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"label\", _hoisted_11, _toDisplayString(_ctx.$t(\"AppResource.PlantCountry\")), 1),\n _createVNode(_component_Dropdown, {\n id: \"country\",\n modelValue: _ctx.plant.country,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.plant.country = $event)),\n options: _ctx.countries,\n optionLabel: \"name\",\n optionValue: \"code\",\n class: \"w-100\"\n }, null, 8, [\"modelValue\", \"options\"])\n ]),\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.$t(\"AppResource.HomeAddressUpper\")), 1),\n _createVNode(_component_InputText, {\n id: \"address\",\n type: \"text\",\n class: \"w-100\",\n modelValue: _ctx.plant.address,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.plant.address = $event))\n }, null, 8, [\"modelValue\"])\n ]),\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(\"label\", _hoisted_15, _toDisplayString(_ctx.$t(\"AppResource.PlantIcon\")), 1),\n _createVNode(_component_SelectButton, {\n modelValue: _ctx.plant.icon,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.plant.icon = $event)),\n options: _ctx.images,\n optionLabel: \"value\",\n optionValue: \"value\",\n class: \"p-selectbutton--blocks p-selectbutton--img-only pl-3\"\n }, {\n option: _withCtx((slotProps) => [\n _createVNode(\"img\", {\n class: \"automation\",\n src: slotProps.option.imageURLs[0],\n srcset: \n slotProps.option.imageURLs\n .length === 1\n ? `${slotProps.option.imageURLs[0]}`\n : `${slotProps.option.imageURLs[0]}, ${slotProps.option.imageURLs[1]} 2x, ${slotProps.option.imageURLs[2]} 3x`\n ,\n alt: \"img\"\n }, null, 8, [\"src\", \"srcset\"])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"options\"])\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _createVNode(\"div\", _hoisted_16, [\n _createVNode(\"span\", _hoisted_17, _toDisplayString(_ctx.$t(\"AppResource.PlantGroups\")), 1),\n _createVNode(\"form\", {\n onSubmit: _cache[6] || (_cache[6] = _withModifiers(\n//@ts-ignore\n(...args) => (_ctx.addTag && _ctx.addTag(...args)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_18, [\n _createVNode(_component_InputText, {\n type: \"text\",\n placeholder: _ctx.$t('newPlantDialog.insertGroup'),\n class: \"w-100\",\n modelValue: _ctx.newTagName,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.newTagName = $event))\n }, null, 8, [\"placeholder\", \"modelValue\"]),\n _createVNode(_component_Button, {\n class: \"p-button-outlined p-button-rounded p-button-field\",\n type: \"submit\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_19, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-plus-outline.svg`)\n ,\n \"aria-label\": \"icon-plus-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_20, _toDisplayString(_ctx.$t(\"AppResource.Add\")), 1)\n ]),\n _: 1\n })\n ])\n ], 32),\n _createVNode(\"div\", _hoisted_21, [\n _createVNode(\"ul\", _hoisted_22, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.tempTags, (tag) => {\n return (_openBlock(), _createBlock(\"li\", {\n class: [\"p-button has--hidden-icon pr-3\", { 'p-highlight': _ctx.isTagSelected(tag) }],\n key: tag.key,\n onClick: ($event: any) => (_ctx.toggleTagSelection(tag))\n }, [\n _createVNode(\"span\", _hoisted_23, [\n _createTextVNode(_toDisplayString(tag.value) + \" \", 1),\n (_ctx.isTagSelected(tag))\n ? (_openBlock(), _createBlock(\"span\", _hoisted_24, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-close.svg')\n ,\n \"aria-label\": \"icon-close\"\n }, null, 8, [\"src\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"span\", _hoisted_25, [\n (!_ctx.isTagSelected(tag))\n ? (_openBlock(), _createBlock(_component_InlineSvgScoped, {\n key: 0,\n src: \n require('@/assets/images/icons/icon-add.svg')\n ,\n \"aria-label\": \"icon-close\"\n }, null, 8, [\"src\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.isTagSelected(tag))\n ? (_openBlock(), _createBlock(\"span\", _hoisted_26, \"✓\"))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 10, [\"onClick\"]))\n }), 128))\n ])\n ])\n ])\n ])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n PlantDTO,\n PlantIconEnum,\n PlantTagDTO,\n PlantType,\n} from '@/../client-generator/generated-clients/plants';\nimport debounce from 'lodash.debounce';\nimport plantsClient from '@/core/services/plants';\nimport {\n getPlantIconImages,\n getPlantIconImageUrls,\n NAME_VALIDATION_DEBOUNCE_TIME,\n} from '@/core/utils/utils';\nimport {\n Country,\n PlantEntityType,\n} from '@/../client-generator/generated-clients/configurations';\n\nimport { SET_APP_LOADING } from '@/core/store/action-types';\nimport { NamingService } from '@/core/services/naming.service';\nimport configurationsClient from '@/core/services/configurations-service';\nimport { mapGetters } from 'vuex';\n\nconst kebabCase = require('lodash.kebabcase');\n\n// get the max scale to fit\nfunction drawScaledImage(ctx: any, img: any) {\n var scale = Math.max(\n ctx.canvas.width / img.width,\n ctx.canvas.height / img.height\n );\n var x = (ctx.canvas.width - img.width * scale) / 2;\n var y = (ctx.canvas.height - img.height * scale) / 2;\n ctx.drawImage(img, x, y, img.width * scale, img.height * scale);\n}\n\n@Options({\n name: 'DialogPlantCreateStep1',\n props: {\n plant: {\n required: true,\n type: Object as () => PlantDTO,\n },\n plantId: {\n type: Number,\n required: false,\n },\n preSelectedTags: {\n type: Object as () => PlantTagDTO[],\n },\n },\n watch: {\n 'plant.name': function () {\n this.verifyValidityOfName();\n },\n 'plant.address': function () {\n this.checkNextButtonState();\n }\n },\n emits: ['is-loading', 'next-enabled'],\n computed: {\n ...mapGetters('UI', ['plantEditImageCustomEnabled']),\n },\n})\nexport default class DialogPlantCreateStep1 extends Vue {\n plant!: PlantDTO;\n initialName!: string;\n preSelectedTags!: PlantTagDTO[] | undefined;\n plantEditImageCustomEnabled!: boolean;\n\n plantId: number | null = null;\n\n tempTags: PlantTagDTO[] = [];\n countries: Country[] = [];\n newTagName = '';\n\n // Naming validation props\n isValidName = true;\n invalidNameReason: string = '';\n\n get title() {\n return this.$t(\n !this.plantId ? 'AppResource.CreateThePlant' : 'AppResource.PlantInfo'\n ).toString();\n }\n\n get isCreateTagDisabled() {\n return !this.newTagName.trim();\n }\n\n get images() {\n const images = [\n ...getPlantIconImages().map((image) => ({\n imageURLs: getPlantIconImageUrls(image),\n value: image.value,\n })),\n ];\n if (this.plantEditImageCustomEnabled)\n images.push({\n imageURLs: [\n this.plant.customIconDataUrl ||\n (this.plant as any).customIconImageUrl ||\n require(`@/assets/images/plants/add-your-image-here.jpg`),\n ],\n value: PlantIconEnum.ICON_CUSTOM,\n });\n return images;\n }\n\n created() {\n if (this.plant.tags && this.plant.tags.length > 0) {\n this.tempTags = this.plant.tags;\n }\n\n if (\n !this.tempTags ||\n this.tempTags.length === 0 ||\n this.countries.length === 0\n ) {\n this.$emit('is-loading', true);\n Promise.all([this.fetchPlantTags(), this.fetchCountries()]).finally(\n () => {\n this.$emit('is-loading', false);\n }\n );\n }\n }\n\n async beforeMount() {\n this.verifyValidityOfName = debounce(\n this.verifyValidityOfName,\n NAME_VALIDATION_DEBOUNCE_TIME\n );\n this.checkNextButtonState();\n\n NamingService.flushCache();\n await NamingService.prefetchFlatEntities(\n 0, // this must be 0, as from API specification\n PlantEntityType.PLANT\n );\n }\n\n beforeUnmount() {\n document.querySelector('#uploadCustomImageInput')?.remove();\n document\n .querySelector(\n `.el-scrollbar__view .p-button[aria-label=\"${PlantIconEnum.ICON_CUSTOM}\"]`\n )\n ?.removeEventListener('click', this.handlerUploadInput);\n }\n\n async mounted() {\n document\n .querySelector(\n `.el-scrollbar__view .p-button[aria-label=\"${PlantIconEnum.ICON_CUSTOM}\"]`\n )\n ?.addEventListener('click', this.handlerUploadInput);\n }\n\n updated() {\n if (this.plantId && this.plant?.name) this.initialName = this.plant.name;\n }\n\n fileRead(imageBinary: string | undefined) {\n if (!imageBinary) {\n this.plant.icon = undefined;\n }\n this.plant.customIconDataUrl = imageBinary;\n }\n\n async fetchPlantTags() {\n try {\n this.tempTags = await plantsClient.tagsList();\n } catch (error) {\n console.log(error);\n }\n }\n\n async fetchCountries() {\n try {\n this.countries = await configurationsClient.countriesAutocomplete(PlantType.AUTOMATION_PLANT);\n } catch (error) {\n console.log(error);\n }\n }\n\n handlerUploadInput(e: any) {\n e.preventDefault();\n e.stopPropagation();\n e.stopImmediatePropagation();\n let uploadInput: any = document.querySelector('#uploadCustomImageInput');\n if (!uploadInput) {\n // upload input create\n uploadInput = document.createElement('input');\n uploadInput.id = 'uploadCustomImageInput';\n uploadInput.setAttribute('type', 'file');\n uploadInput.setAttribute('hidden', '');\n uploadInput.setAttribute('accept', '.bmp,.gif,.jpeg,.jpg,.png,.tiff');\n document.body.append(uploadInput);\n\n // upload input change listener\n uploadInput.addEventListener('change', (e: any) => {\n const reader = new FileReader();\n reader.onload = (evLoad) => {\n // reader loaded data url\n let image = new Image();\n image.onload = () => {\n // image loaded for size reason)\n let canvas = document.createElement('CANVAS') as any;\n canvas.width = 680;\n canvas.height = 320;\n let ctx = canvas.getContext('2d');\n // use canvas and image for scaling the size\n drawScaledImage(ctx, image);\n this.fileRead(canvas.toDataURL());\n };\n image.src = evLoad.target?.result as string;\n };\n reader.onerror = (err) => {\n console.error(err);\n };\n\n if (e.target.files.length > 0) {\n reader.readAsDataURL(uploadInput.files[0]);\n } else {\n this.fileRead(undefined);\n }\n });\n }\n uploadInput.click();\n }\n\n addTag() {\n this.newTagName = this.newTagName.trim();\n\n if (!this.newTagName) return;\n\n const tagKey = kebabCase(this.newTagName);\n\n if (!this.plant.tags) {\n console.log('plant.tags undefined');\n return;\n }\n if (this.plant.tags.some((t) => t.key == tagKey)) {\n return;\n }\n const newTag = new PlantTagDTO({\n key: tagKey,\n value: this.newTagName,\n });\n this.tempTags.push(newTag);\n this.plant.tags.push(newTag);\n\n this.newTagName = '';\n }\n\n toggleTagSelection(tag: PlantTagDTO) {\n if (!this.plant.tags) {\n console.log('plant.tags undefined');\n return;\n }\n\n const groupIndex = this.plant.tags.findIndex((g) => g.key === tag.key);\n\n if (groupIndex >= 0) {\n this.plant.tags.splice(groupIndex, 1);\n } else {\n this.plant.tags.push(tag);\n }\n }\n\n isTagSelected(tag: PlantTagDTO) {\n return this.plant.tags?.some((x) => x.key === tag.key);\n }\n\n private async verifyValidityOfName() {\n this.$store.dispatch(SET_APP_LOADING, true);\n const validName = NamingService.isValidEntityTypeName(this.plant.name);\n if (this.plant.name && this.initialName !== this.plant.name && !validName) {\n const suggestedName = await NamingService.suggestNextValidEntityName({\n plantId: this.plantId!,\n eType: PlantEntityType.PLANT,\n metadata: { plantSourceName: this.plant.name },\n });\n this.isValidName = validName;\n this.invalidNameReason = this.$t(\n `uniqueNaming.validationErrorWithSuggestion`,\n { suggestedName }\n );\n this.$emit('next-enabled', false);\n } else {\n this.isValidName = true;\n this.invalidNameReason = '';\n this.$emit('next-enabled', true);\n }\n this.checkNextButtonState();\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n\n private checkNextButtonState() {\n if (this.plant.name && this.isValidName && this.plant.address)\n this.$emit('next-enabled', true);\n else this.$emit('next-enabled', false);\n }\n}\n","import { render } from \"./DialogPlantCreateStep1.vue?vue&type=template&id=e3d6eae4&ts=true\"\nimport script from \"./DialogPlantCreateStep1.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogPlantCreateStep1.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 { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__title mb-0\" }\nconst _hoisted_2 = { class: \"fs-18 text-gray\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"dialog-custom__content form-custom\"\n}\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 330px)\"} }\nconst _hoisted_5 = { class: \"centered\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_SelectButton = _resolveComponent(\"SelectButton\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", {\n \"data-plant\": _ctx.$attrs.plantId,\n class: \"dialog-custom__header\"\n }, [\n _createVNode(\"h1\", _hoisted_1, _toDisplayString(_ctx.$t(\"AppResource.Associatethegateway\")), 1),\n _createVNode(\"p\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResource.ChoosegatewayTitle\")), 1)\n ], 8, [\"data-plant\"]),\n (_ctx.plant.mxServer)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n _createVNode(_component_SelectButton, {\n modelValue: _ctx.plant.mxServer.model,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.plant.mxServer.model = $event)),\n options: _ctx.plantServerImages,\n optionLabel: \"value\",\n optionValue: \"value\",\n class: \"p-selectbutton--blocks p-selectbutton--img-only\"\n }, {\n option: _withCtx((slotProps) => [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"img\", {\n src: slotProps.option.imageURLs[0],\n alt: \"img\"\n }, null, 8, [\"src\"]),\n _createVNode(\"div\", {\n class: [\"p-3\", {'text-dark': _ctx.plant.mxServer.model !== slotProps.option.value }]\n }, _toDisplayString(_ctx.$t(`AppResource.${_ctx.ServerModel[slotProps.option.value]}`)), 3)\n ])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"options\"])\n ]),\n _: 1\n })\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n PlantDTO,\n ServerModel,\n} from '@/../client-generator/generated-clients/plants';\nimport { getRoomIconFromType } from '@/core/utils/utils';\nimport { DefaultRoomDTO } from '@/../client-generator/generated-clients/configurations';\n\nimport NumberButtons from '@/views/components/NumberButtons/NumberButtons.vue';\nimport { mapGetters } from 'vuex';\n\n@Options({\n name: 'DialogPlantCreateStep2',\n props: {\n plant: {\n required: true,\n type: Object as () => PlantDTO,\n },\n },\n computed: {\n ...mapGetters('UI', ['plantServerUseMHS1Only']),\n },\n components: {\n NumberButtons,\n },\n emits: ['is-loading'],\n})\nexport default class DialogPlantCreateStep2 extends Vue {\n plant!: PlantDTO;\n ServerModel = ServerModel;\n roomTypes: DefaultRoomDTO[] = [];\n getRoomIcon = getRoomIconFromType;\n private readonly plantServerUseMHS1Only!: boolean;\n\n get plantServerImages() {\n return [\n {\n imageURLs: [\n require('@/assets/images/plants/server/ImagesMX-300EOS.png'),\n ],\n value: ServerModel.Classe300EOS,\n },\n {\n imageURLs: [require('@/assets/images/plants/server/ImagesMHS1.png')],\n value: ServerModel.MyHomeServer1,\n },\n ].filter((x) =>\n this.plantServerUseMHS1Only ? x.value === ServerModel.MyHomeServer1 : true\n );\n }\n\n async created() {}\n\n updatePlantRoom(room: DefaultRoomDTO) {\n const plantRoom = this.plant.roomsCounts?.find(\n (rc) => rc.type === room.type\n );\n\n if (!plantRoom) {\n console.log('Plant room not found');\n return;\n }\n\n plantRoom.count = room.count;\n }\n}\n","import { render } from \"./DialogPlantCreateStep2.vue?vue&type=template&id=61d4d610&ts=true\"\nimport script from \"./DialogPlantCreateStep2.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogPlantCreateStep2.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 { Vue, Options } from 'vue-class-component';\nimport {\n PlantDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport DialogPlantCreateStep1 from './DialogAutomationPlantCreate/DialogPlantCreateStep1/DialogPlantCreateStep1.vue';\nimport DialogPlantCreateStep2 from './DialogAutomationPlantCreate/DialogPlantCreateStep2/DialogPlantCreateStep2.vue';\nimport DialogPlantCreateStep3 from './DialogAutomationPlantCreate/DialogPlantCreateStep3/DialogPlantCreateStep3.vue';\n\nimport plantsClient from '@/core/services/plants';\nimport {\n SET_SELECTED_PLANT_ID,\n} from '@/core/store/action-types';\nimport { defaultNewPlant, cloneObject } from '@/core/utils/utils';\n@Options({\n name: 'WizardAutomationPLant',\n components: {\n DialogPlantCreateStep1,\n DialogPlantCreateStep2,\n DialogPlantCreateStep3,\n },\n props: {\n plantId: {\n type: Number,\n required: false,\n },\n },\n emits: ['exit-wizard', 'plant-edited', 'update'],\n})\nexport default class WizardAutomationPLant extends Vue {\n plantId: number | null = null;\n isLoading = false;\n nextEnabled = true;\n dialogStep = 1;\n plant: PlantDTO = cloneObject(defaultNewPlant);\n\n get dialogStepComponent() {\n return `DialogPlantCreateStep${this.dialogStep}`;\n }\n get buttonSubmitLabel() {\n if (this.plantId) {\n return this.$t('AppResource.Save');\n }\n if (!this.plantId) {\n if (this.dialogStep <= 2) {\n return this.$t('AppResource.Continue');\n }\n }\n return this.$t('AppResource.Create');\n }\n\n get isBackButtonVisible() {\n return this.dialogStep == 1 ? this.plantId ? false : this.$config.ENTRANCE_PLANT_ENABLED : true;\n }\n\n mounted(): void {\n this.initFormPlant();\n }\n\n initFormPlant() {\n if (this.plantId) {\n this.fetchPlantDetails();\n } else {\n this.plant = cloneObject(defaultNewPlant);\n }\n }\n\n handleNextEnabledChange(e: boolean) {\n this.nextEnabled = e;\n }\n\n async fetchPlantDetails() {\n this.isLoading = true;\n\n try {\n this.plant = await plantsClient.plantGET(\n this.plantId as number,\n undefined\n );\n this.plant.roomsCounts = [];\n } catch (error) {\n console.log(error);\n } finally {\n this.isLoading = false;\n }\n }\n\n async handleButtonSubmitAction() {\n if (this.plantId) {\n await this.handleEditPlant();\n } else {\n if (this.dialogStep <= 2) {\n this.dialogStep++;\n } else {\n const createdPlantId = await this.handleCreatePlant();\n if (createdPlantId) {\n this.goToPlantDetail(createdPlantId, true);\n }\n }\n }\n }\n\n handleStepBack() {\n if (this.dialogStep == 1) {\n this.plant = cloneObject(defaultNewPlant);\n this.nextEnabled = true;\n this.$emit(\"exit-wizard\");\n }\n this.dialogStep--;\n }\n\n async handleCreatePlant() {\n let createdPlant = null;\n this.isLoading = true;\n\n try {\n this.plant.roomsCounts = this.plant.roomsCounts?.filter(\n (room) => (room.count as number) > 0\n );\n createdPlant = await plantsClient.plantPOST(this.plant);\n this.$emit('update', createdPlant)\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.isLoading = false;\n }\n\n return createdPlant;\n }\n\n async handleEditPlant() {\n if (!this.plantId) return;\n\n this.isLoading = true;\n\n try {\n await plantsClient.plantPUT(this.plantId, this.plant);\n this.$emit('plant-edited');\n } catch (error) {\n console.log(error);\n } finally {\n this.isLoading = false;\n }\n }\n\n goToPlantDetail(plantId: number | null, isNew = false) {\n this.$nextTick(async () => {\n await this.$store.dispatch(SET_SELECTED_PLANT_ID, plantId);\n this.$router.push({\n name: 'page-plant-dashboard',\n params: { plantId: plantId?.toString() ?? '' },\n });\n\n this.$toast.add({\n severity: 'success',\n summary: this.$t(\n isNew ? 'AppResource.PlantCreated' : 'newPlantDialog.modified'\n ),\n closable: false,\n life: 3000,\n });\n\n const summary = this.$t('general.synced');\n setTimeout(() => {\n this.$toast.add({\n severity: 'success',\n summary: summary,\n closable: false,\n life: 3000,\n });\n }, 1500);\n });\n }\n\n handleStepLoading(isLoading: boolean) {\n this.isLoading = isLoading;\n }\n}\n","import { render } from \"./WizardAutomationPlant.vue?vue&type=template&id=c0025736&ts=true\"\nimport script from \"./WizardAutomationPlant.ts?vue&type=script&lang=ts\"\nexport * from \"./WizardAutomationPlant.ts?vue&type=script&lang=ts\"\n\nimport \"./WizardAutomationPlant.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 { resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = {\n key: 0,\n class: \"app-loader app-loader--contextual\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_ProgressSpinner = _resolveComponent(\"ProgressSpinner\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.dialogStepEntrancePlantComponent), {\n ref: _ctx.dialogStepEntrancePlantComponent,\n plant: _ctx.entrancePlant,\n \"plant-id\": _ctx.plantId,\n isEdit: _ctx.isEdit,\n onIsLoading: _ctx.handleStepLoading,\n onOnBack: _ctx.handleBack,\n onOnNext: _ctx.handleNext,\n onPlantEdited: _ctx.handleEditedPlant\n }, null, 8, [\"plant\", \"plant-id\", \"isEdit\", \"onIsLoading\", \"onOnBack\", \"onOnNext\", \"onPlantEdited\"])),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(_component_ProgressSpinner)\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, withModifiers as _withModifiers, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { class: \"dialog-plant-create__grid\" }\nconst _hoisted_5 = { style: {\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_6 = { class: \"mr-3\" }\nconst _hoisted_7 = { class: \"p-field\" }\nconst _hoisted_8 = {\n class: \"p-field-label\",\n for: \"plantname\"\n}\nconst _hoisted_9 = {\n for: \"name\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_10 = { class: \"p-field\" }\nconst _hoisted_11 = {\n class: \"p-field-label\",\n for: \"country\"\n}\nconst _hoisted_12 = { class: \"p-field\" }\nconst _hoisted_13 = {\n class: \"p-field-label\",\n for: \"address\"\n}\nconst _hoisted_14 = { class: \"p-field mr-3 mb-4\" }\nconst _hoisted_15 = { class: \"p-field-label mb-4 ml-3\" }\nconst _hoisted_16 = { class: \"p-field\" }\nconst _hoisted_17 = { class: \"p-field-label\" }\nconst _hoisted_18 = { class: \"p-field-with-button\" }\nconst _hoisted_19 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_20 = { class: \"ml-2\" }\nconst _hoisted_21 = { class: \"menu-filters mt-3\" }\nconst _hoisted_22 = { class: \"menu-filters__buttons list-unstyled p-select-button\" }\nconst _hoisted_23 = { class: \"p-button-label\" }\nconst _hoisted_24 = {\n key: 0,\n class: \"bt-icon bt-icon--2xs p-button-icon-hidden\"\n}\nconst _hoisted_25 = { class: \"ml-3 bt-icon bt-icon--2xs\" }\nconst _hoisted_26 = { key: 1 }\nconst _hoisted_27 = { 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_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_SelectButton = _resolveComponent(\"SelectButton\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.title), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"label\", _hoisted_8, _toDisplayString(_ctx.$t(\"AppResource.PlantNameUpper\")), 1),\n _createVNode(_component_InputText, {\n id: \"plantname\",\n type: \"text\",\n class: [\"w-100\", { 'input-error': !_ctx.isValidName }],\n modelValue: _ctx.plant.name,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.plant.name = $event))\n }, null, 8, [\"modelValue\", \"class\"]),\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.invalidNameReason), 1)\n ]),\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"label\", _hoisted_11, _toDisplayString(_ctx.$t(\"AppResource.PlantCountry\")), 1),\n _createVNode(_component_Dropdown, {\n id: \"country\",\n modelValue: _ctx.plant.timeZone,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.plant.timeZone = $event)),\n options: _ctx.countries,\n optionLabel: \"extendedName\",\n optionValue: \"timeZoneId\",\n class: \"w-100\"\n }, null, 8, [\"modelValue\", \"options\"])\n ]),\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.$t(\"AppResource.HomeAddressUpper\")), 1),\n _createVNode(_component_InputText, {\n id: \"address\",\n type: \"text\",\n class: \"w-100\",\n modelValue: _ctx.plant.address,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.plant.address = $event))\n }, null, 8, [\"modelValue\"])\n ]),\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(\"label\", _hoisted_15, _toDisplayString(_ctx.$t(\"AppResource.PlantIcon\")), 1),\n _createVNode(_component_SelectButton, {\n modelValue: _ctx.plant.icon,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.plant.icon = $event)),\n options: _ctx.images,\n optionLabel: \"value\",\n optionValue: \"value\",\n class: \"p-selectbutton--blocks p-selectbutton--img-only pl-3\"\n }, {\n option: _withCtx((slotProps) => [\n _createVNode(\"img\", {\n src: slotProps.option.imageURLs[0],\n srcset: \n slotProps.option.imageURLs\n .length === 1\n ? `${slotProps.option.imageURLs[0]}`\n : `${slotProps.option.imageURLs[0]}, ${slotProps.option.imageURLs[1]} 2x, ${slotProps.option.imageURLs[2]} 3x`\n ,\n alt: \"img\"\n }, null, 8, [\"src\", \"srcset\"])\n ]),\n _: 1\n }, 8, [\"modelValue\", \"options\"])\n ])\n ])\n ]),\n _: 1\n })\n ]),\n _createVNode(\"div\", _hoisted_16, [\n _createVNode(\"span\", _hoisted_17, _toDisplayString(_ctx.$t(\"AppResource.PlantGroups\")), 1),\n _createVNode(\"form\", {\n onSubmit: _cache[6] || (_cache[6] = _withModifiers(\n//@ts-ignore\n(...args) => (_ctx.addTag && _ctx.addTag(...args)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_18, [\n _createVNode(_component_InputText, {\n type: \"text\",\n placeholder: _ctx.$t('newPlantDialog.insertGroup'),\n class: \"w-100\",\n modelValue: _ctx.newTagName,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.newTagName = $event))\n }, null, 8, [\"placeholder\", \"modelValue\"]),\n _createVNode(_component_Button, {\n class: \"p-button-outlined p-button-rounded p-button-field\",\n type: \"submit\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_19, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-plus-outline.svg`)\n ,\n \"aria-label\": \"icon-plus-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_20, _toDisplayString(_ctx.$t(\"AppResource.Add\")), 1)\n ]),\n _: 1\n })\n ])\n ], 32),\n _createVNode(\"div\", _hoisted_21, [\n _createVNode(\"ul\", _hoisted_22, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.tempTags, (tag) => {\n return (_openBlock(), _createBlock(\"li\", {\n class: [\"p-button has--hidden-icon pr-3\", { 'p-highlight': _ctx.isTagSelected(tag) }],\n key: tag.key,\n onClick: ($event: any) => (_ctx.toggleTagSelection(tag))\n }, [\n _createVNode(\"span\", _hoisted_23, [\n _createTextVNode(_toDisplayString(tag.value) + \" \", 1),\n (_ctx.isTagSelected(tag))\n ? (_openBlock(), _createBlock(\"span\", _hoisted_24, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-close.svg')\n ,\n \"aria-label\": \"icon-close\"\n }, null, 8, [\"src\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"span\", _hoisted_25, [\n (!_ctx.isTagSelected(tag))\n ? (_openBlock(), _createBlock(_component_InlineSvgScoped, {\n key: 0,\n src: \n require('@/assets/images/icons/icon-add.svg')\n ,\n \"aria-label\": \"icon-close\"\n }, null, 8, [\"src\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.isTagSelected(tag))\n ? (_openBlock(), _createBlock(\"span\", _hoisted_26, \"✓\"))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 10, [\"onClick\"]))\n }), 128))\n ])\n ])\n ])\n ])\n ]),\n _createVNode(\"footer\", _hoisted_27, [\n (!_ctx.plantId)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n onClick: _ctx.handleBackButton,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_Button, {\n onClick: _ctx.handleNextButton,\n label: _ctx.nextButtonLabel,\n disabled: !_ctx.nextEnabled,\n class: \"p-button-rounded p-button-raised p-button--m\"\n }, null, 8, [\"onClick\", \"label\", \"disabled\"])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\nEntrancePlantDetailDTO,\n EntrancePlantHeadCreateDTO,\n EntrancePlantStructureCreateDTO,\n PlantIconEnum,\n PlantTagDTO,\n PlantType,\n} from '@/../client-generator/generated-clients/plants';\nimport debounce from 'lodash.debounce';\nimport plantsClient from '@/core/services/plants';\nimport {\n getEpPlantIconImages,\n getEpPlantIconImageUrls,\n NAME_VALIDATION_DEBOUNCE_TIME,\n} from '@/core/utils/utils';\nimport {\n Country,\n PlantEntityType,\n} from '@/../client-generator/generated-clients/configurations';\n\nimport { NamingService } from '@/core/services/naming.service';\nimport configurationsClient from '@/core/services/configurations-service';\nimport { mapGetters } from 'vuex';\nimport { PropType } from 'vue';\n\nconst kebabCase = require('lodash.kebabcase');\n\n// get the max scale to fit\nfunction drawScaledImage(ctx: any, img: any) {\n var scale = Math.max(\n ctx.canvas.width / img.width,\n ctx.canvas.height / img.height\n );\n var x = (ctx.canvas.width - img.width * scale) / 2;\n var y = (ctx.canvas.height - img.height * scale) / 2;\n ctx.drawImage(img, x, y, img.width * scale, img.height * scale);\n}\n\n@Options({\n name: 'DialogEntrancePlantCreateStep1',\n props: {\n plant: {\n required: true,\n type: Object as PropType,\n },\n plantId: {\n type: Number,\n required: false,\n },\n preSelectedTags: {\n type: Object as PropType,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n 'plant.name': function () {\n this.verifyValidityOfName();\n },\n 'plant.address': function () {\n this.checkNextButtonState();\n },\n 'plant.timeZone': function () {\n this.plant.country = this.countries.find((c: Country) => c.timeZoneId === this.plant.timeZone)?.code;\n }\n },\n emits: ['is-loading', 'onBack', 'onNext', 'plant-edited'],\n computed: {\n ...mapGetters('UI', ['plantEditImageCustomEnabled']),\n },\n})\nexport default class DialogEntrancePlantCreateStep1 extends Vue {\n plant!: EntrancePlantDetailDTO;\n isEdit!: boolean;\n initialName!: string;\n preSelectedTags!: PlantTagDTO[] | undefined;\n plantEditImageCustomEnabled!: boolean;\n\n plantId: number | null = null;\n\n tempTags: PlantTagDTO[] = [];\n countries: Country[] = [];\n newTagName = '';\n nextEnabled = false;\n\n // Naming validation props\n isValidName = true;\n invalidNameReason: string = '';\n\n get title() {\n return this.$t(\n this.plantId ? 'AppResourceEP.EditEntrancePlantDetails' : 'AppResourceEP.CreateEntrancePlant'\n ).toString();\n }\n\n get isCreateTagDisabled() {\n return !this.newTagName.trim();\n }\n\n get images() {\n const images = [\n ...getEpPlantIconImages().map((image) => ({\n imageURLs: getEpPlantIconImageUrls(image),\n value: image.value,\n })),\n ];\n if (this.plantEditImageCustomEnabled)\n images.push({\n imageURLs: [\n this.plant.customIconDataUrl ||\n (this.plant as any).customIconImageUrl ||\n require(`@/assets/images/plants/add-your-image-here.jpg`),\n ],\n value: PlantIconEnum.ICON_CUSTOM,\n });\n return images;\n }\n\n created() {\n if (this.plant.tags && this.plant.tags.length > 0) {\n this.tempTags = this.plant.tags;\n }\n\n if (\n !this.tempTags ||\n this.tempTags.length === 0 ||\n this.countries.length === 0\n ) {\n this.$emit('is-loading', true);\n Promise.all([this.fetchPlantTags(), this.fetchCountries()]).finally(\n () => {\n this.$emit('is-loading', false);\n }\n );\n }\n }\n\n async beforeMount() {\n this.verifyValidityOfName();\n this.checkNextButtonState();\n\n NamingService.flushCache();\n await NamingService.prefetchFlatEntities(\n 0, // this must be 0, as from API specification\n PlantEntityType.PLANT\n );\n }\n\n beforeUnmount() {\n document.querySelector('#uploadCustomImageInput')?.remove();\n document\n .querySelector(\n `.el-scrollbar__view .p-button[aria-label=\"${PlantIconEnum.ICON_CUSTOM}\"]`\n )\n ?.removeEventListener('click', this.handlerUploadInput);\n }\n\n async mounted() {\n document\n .querySelector(\n `.el-scrollbar__view .p-button[aria-label=\"${PlantIconEnum.ICON_CUSTOM}\"]`\n )\n ?.addEventListener('click', this.handlerUploadInput);\n }\n\n updated() {\n if (this.plantId && this.plant?.name) this.initialName = this.plant.name;\n if (!this.plantId) {\n this.plant.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n this.plant.country = this.countries.find((c: Country) => c.timeZoneId === this.plant.timeZone)?.code;\n }\n }\n\n fileRead(imageBinary: string | undefined) {\n if (!imageBinary) {\n this.plant.icon = undefined;\n }\n this.plant.customIconDataUrl = imageBinary;\n }\n\n async fetchPlantTags() {\n try {\n this.tempTags = await plantsClient.tagsList();\n } catch (error) {\n console.log(error);\n }\n }\n\n async fetchCountries() {\n try {\n this.countries = await configurationsClient.countriesAutocomplete(PlantType.ENTRANCE_PLANT);\n } catch (error) {\n console.log(error);\n }\n }\n\n handlerUploadInput(e: any) {\n e.preventDefault();\n e.stopPropagation();\n e.stopImmediatePropagation();\n let uploadInput: any = document.querySelector('#uploadCustomImageInput');\n if (!uploadInput) {\n // upload input create\n uploadInput = document.createElement('input');\n uploadInput.id = 'uploadCustomImageInput';\n uploadInput.setAttribute('type', 'file');\n uploadInput.setAttribute('hidden', '');\n uploadInput.setAttribute('accept', '.bmp,.gif,.jpeg,.jpg,.png,.tiff');\n document.body.append(uploadInput);\n\n // upload input change listener\n uploadInput.addEventListener('change', (e: any) => {\n const reader = new FileReader();\n reader.onload = (evLoad) => {\n // reader loaded data url\n let image = new Image();\n image.onload = () => {\n // image loaded for size reason)\n let canvas = document.createElement('CANVAS') as any;\n canvas.width = 680;\n canvas.height = 320;\n let ctx = canvas.getContext('2d');\n // use canvas and image for scaling the size\n drawScaledImage(ctx, image);\n this.fileRead(canvas.toDataURL());\n };\n image.src = evLoad.target?.result as string;\n };\n reader.onerror = (err) => {\n console.error(err);\n };\n\n if (e.target.files.length > 0) {\n reader.readAsDataURL(uploadInput.files[0]);\n } else {\n this.fileRead(undefined);\n }\n });\n }\n uploadInput.click();\n }\n\n addTag() {\n this.newTagName = this.newTagName.trim();\n\n if (!this.newTagName) return;\n\n const tagKey = kebabCase(this.newTagName);\n\n if (!this.plant.tags) {\n console.log('plant.tags undefined');\n return;\n }\n if (this.plant.tags.some((t) => t.key == tagKey)) {\n return;\n }\n const newTag = new PlantTagDTO({\n key: tagKey,\n value: this.newTagName,\n });\n this.tempTags.push(newTag);\n this.plant.tags.push(newTag);\n\n this.newTagName = '';\n }\n\n toggleTagSelection(tag: PlantTagDTO) {\n if (!this.plant.tags) {\n console.log('plant.tags undefined');\n return;\n }\n\n const groupIndex = this.plant.tags.findIndex((g) => g.key === tag.key);\n\n if (groupIndex >= 0) {\n this.plant.tags.splice(groupIndex, 1);\n } else {\n this.plant.tags.push(tag);\n }\n }\n\n isTagSelected(tag: PlantTagDTO) {\n return this.plant.tags?.some((x) => x.key === tag.key);\n }\n\n private async verifyValidityOfName() {\n const regex = new RegExp(\"^[\\\\w\\\\sÀ-ÖØ-öø-ÿ:.,_-]*$\");\n if (!regex.test(this.plant.name!)) {\n this.isValidName = false;\n this.invalidNameReason = this.$t('AppResource.characternotallowed');\n this.nextEnabled = false;\n return;\n }\n const usedNames = NamingService.initialEntities;\n\n if (this.plantId) {\n const idx = usedNames.findIndex((e) => e.id === this.plantId!.toString());\n if (idx > -1) usedNames.splice(idx, 1);\n }\n const validName = usedNames.every((e) => e.currentName?.toLowerCase().trim() !== this.plant.name?.toLowerCase().trim());\n if (this.plant.name && this.initialName !== this.plant.name && !validName) {\n const suggestedName = await NamingService.suggestNextValidEntityName({\n plantId: this.plantId!,\n eType: PlantEntityType.PLANT,\n metadata: { plantSourceName: this.plant.name },\n });\n this.isValidName = validName;\n this.invalidNameReason = this.$t(\n `uniqueNaming.validationErrorWithSuggestion`,\n { suggestedName }\n );\n this.nextEnabled = false;\n } else {\n this.isValidName = true;\n this.invalidNameReason = '';\n this.nextEnabled = true;\n }\n this.checkNextButtonState();\n }\n\n private checkNextButtonState() {\n this.nextEnabled = this.plant.name && this.isValidName && this.plant.address ? true : false;\n }\n\n getDataToSave() {\n return new EntrancePlantStructureCreateDTO({\n wizardStep: 2,\n headCreate: new EntrancePlantHeadCreateDTO({\n address: this.plant.address,\n country: this.plant.country,\n timeZone: this.plant.timeZone,\n customIconDataUrl: this.plant.customIconDataUrl,\n customIconImageUrl: this.plant.customIconImageUrl,\n desktopId: this.plant.desktopId,\n icon : this.plant.icon,\n name: this.plant.name,\n plantType: this.plant.plantType,\n tags: this.plant.tags\n }),\n });\n }\n\n get nextButtonLabel() {\n return this.plantId ? this.$t('save') : this.$t('saveAndContinue');\n }\n\n handleBackButton(){\n if (this.plantId) return;\n this.$emit(\"onBack\")\n }\n\n async handleNextButton(){\n if (this.plantId) {\n await this.updatePlantStructure(this.getDataToSave());\n if (this.isEdit) {\n this.$emit('plant-edited');\n } else {\n this.$emit(\"onNext\", \"DialogEntrancePlantCreateStep2\")\n }\n } else {\n const peId = await this.createPlant(this.getDataToSave());\n this.$emit(\"onNext\", \"DialogEntrancePlantCreateStep2\", peId)\n }\n }\n\n async createPlant(structure: EntrancePlantStructureCreateDTO) {\n let createdPlantId = null;\n this.$emit('is-loading', true);\n\n try {\n createdPlantId = await plantsClient.entranceplantPOST(structure);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n\n return createdPlantId;\n }\n\n async updatePlantStructure(structure: EntrancePlantStructureCreateDTO) {\n if (!this.plantId) return;\n this.$emit('is-loading', true);\n\n try {\n await plantsClient.structure(this.plant.desktopId!, structure);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n }\n}\n","import { render } from \"./DialogEntrancePlantCreateStep1.vue?vue&type=template&id=b7ab0d8c&ts=true\"\nimport script from \"./DialogEntrancePlantCreateStep1.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogEntrancePlantCreateStep1.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 { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_5 = { class: \"row mx-0\" }\nconst _hoisted_6 = { class: \"col-6\" }\nconst _hoisted_7 = { class: \"mb-4\" }\nconst _hoisted_8 = { class: \"p-field\" }\nconst _hoisted_9 = { class: \"p-field-label\" }\nconst _hoisted_10 = {\n class: \"col-6\",\n style: {\"padding-top\":\"48px\"}\n}\nconst _hoisted_11 = { class: \"p-field\" }\nconst _hoisted_12 = { class: \"d-flex align-items-center\" }\nconst _hoisted_13 = { class: \"p-field-label\" }\nconst _hoisted_14 = { class: \"mt-2\" }\nconst _hoisted_15 = { class: \"row mx-0\" }\nconst _hoisted_16 = {\n class: \"col-6\",\n style: {\"padding-top\":\"40px\"}\n}\nconst _hoisted_17 = { class: \"d-flex align-items-center\" }\nconst _hoisted_18 = { class: \"title\" }\nconst _hoisted_19 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_20 = { class: \"ml-2\" }\nconst _hoisted_21 = { class: \"dialog-custom__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_ToggleSwitchButton = _resolveComponent(\"ToggleSwitchButton\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_CallModeForm = _resolveComponent(\"CallModeForm\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_DialogImportFile = _resolveComponent(\"DialogImportFile\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupThePlant\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"h5\", _hoisted_7, _toDisplayString(_ctx.$t(\"AppResourceEP.SystemParameters\")), 1),\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.$t(\"AppResourceEP.DeviceLanguage\")), 1),\n _createVNode(_component_Dropdown, {\n modelValue: _ctx.infoPlant.language,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.infoPlant.language = $event)),\n options: _ctx.validLanguages,\n optionLabel: \"name\",\n optionValue: \"code\",\n class: \"w-100\"\n }, null, 8, [\"modelValue\", \"options\"])\n ])\n ]),\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"div\", _hoisted_11, [\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"div\", null, [\n _createVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.$t(\"AppResourceEP.Switchboard\")), 1),\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(\"small\", null, _toDisplayString(_ctx.$t(\n \"AppResourceEP.InsertASwitchboardAtPlantCreation\"\n )), 1)\n ])\n ]),\n _createVNode(_component_ToggleSwitchButton, {\n class: \"ml-auto\",\n modelValue: _ctx.switchboardActive,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.switchboardActive = $event))\n }, null, 8, [\"modelValue\"])\n ])\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"div\", _hoisted_16, [\n _createVNode(\"div\", _hoisted_17, [\n _createVNode(\"label\", _hoisted_18, _toDisplayString(_ctx.$t(\"AppResourceEP.CallMode\")), 1),\n (!_ctx.isBRFA)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n class: \"p-button-rounded ml-auto p-button-outlined\",\n style: {\"max-height\":\"24px !important\"},\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.triggerFilePicker()))\n }, {\n default: _withCtx(() => [\n _createVNode(\"input\", {\n type: \"file\",\n id: \"fileInput\",\n style: {\"display\":\"none\"},\n onChange: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.onFileSelected && _ctx.onFileSelected(...args))),\n accept: \".csv\"\n }, null, 32),\n _createVNode(\"span\", _hoisted_19, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/icon-alert-medium-outline.svg`)\n ,\n \"aria-label\": \"icon-alert\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_20, _toDisplayString(_ctx.$t(\"general.import\")), 1)\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createVNode(_component_CallModeForm, {\n class: \"mt-4\",\n ref: \"callModeForm\",\n infoPlant: _ctx.infoPlant\n }, null, 8, [\"infoPlant\"])\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(\"footer\", _hoisted_21, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleBackButton,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]),\n _createVNode(_component_Button, {\n onClick: _ctx.handleNextButton,\n label: _ctx.$t('AppResource.Continue'),\n class: \"p-button-rounded p-button-raised p-button--m\"\n }, null, 8, [\"onClick\", \"label\"])\n ]),\n _createVNode(_component_DialogImportFile, {\n entrancePlantDetail: _ctx.infoPlant,\n importedData: _ctx.importedData,\n isVisible: _ctx.isVisibleDialogImportFile,\n onHideDialog: _ctx.handleCloseDialog,\n onOverwrite: _ctx.overwrite,\n isCreationMode: true,\n onUpdatePlant: _ctx.handleUpdatePlant,\n onGrouped: _ctx.handleGrouped\n }, null, 8, [\"entrancePlantDetail\", \"importedData\", \"isVisible\", \"onHideDialog\", \"onOverwrite\", \"onUpdatePlant\", \"onGrouped\"])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n Language,\n EntrancePlantDetailDTO,\n EntrancePlantInfoCreateDTO,\n EntrancePlantStructureCreateDTO,\n ApartmentLabelDTO,\n ApartmentDTO,\n LabelType,\n BuildingImportDto,\n AddressingType,\n SwitchboardConfigDTO,\n SwitchboardDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport i18n from '@/core/translations/i18n';\nimport { DenominationMode } from '@/../client-generator/generated-clients/plants';\nimport { setLanguageByCode, validLanguages } from '@/core/utils/utils';\nimport plantsClient from '@/core/services/plants';\nimport { CallMode, fileIsCsv, processCsvData, SimpleLabel, SingleLabelApartment } from '@/core/utils/EntrancePlant/entrance-plant.utils';\nimport ToggleSwitchButton from '@/views/components/ToggleSwitchButton/ToggleSwitchButton.vue';\nimport HelpPopupButton from '@/views/components/HelpPopupButton/HelpPopupButton.vue';\nimport CallModeForm from '@/views/components/CallModeForm/CallModeForm.vue';\nimport DialogImportFile from '@/views/pages/EntrancePlantDetail/EntrancePlantResidents/DialogImportFile/DialogImportFile.vue';\nimport { PropType } from 'vue';\ntype SelectButtonValue = {\n label: string;\n value: DenominationMode;\n};\n\n@Options({\n name: 'DialogEntrancePlantCreateStep2',\n components: {\n ToggleSwitchButton,\n HelpPopupButton,\n CallModeForm,\n DialogImportFile,\n },\n props: {\n plant: {\n type: Object as PropType,\n required: true,\n },\n plantId: {\n type: Number,\n required: false,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n plant: function (newValue) {\n if (newValue) this.initializeData();\n },\n },\n emits: ['is-loading', 'onBack', 'onNext', 'plant-edited'],\n})\nexport default class DialogEntrancePlantCreateStep2 extends Vue {\n plant!: EntrancePlantDetailDTO;\n plantId!: number;\n infoPlant: EntrancePlantInfoCreateDTO = new EntrancePlantInfoCreateDTO();\n Language = Language;\n CallMode = CallMode;\n validLanguages = validLanguages;\n settingsList: SelectButtonValue[] = [\n {\n label: i18n.global.t('AppResourceEP.SetupBrfaNumbers'),\n value: DenominationMode.Numbers,\n },\n {\n label: i18n.global.t('AppResourceEP.SetupBrfaLetters'),\n value: DenominationMode.Letters,\n },\n ];\n importedData: SingleLabelApartment[] = [];\n isVisibleDialogImportFile: boolean = false;\n\n switchboardActive: boolean = false;\n\n mounted(): void {\n this.initializeData();\n }\n\n initializeData() {\n const browserLanguage = navigator.language.split('-')[0];\n\n this.infoPlant = new EntrancePlantInfoCreateDTO({\n addressBookSorting: this.plant.addressBookSorting,\n addressingType: this.plant.addressingType,\n denominationApartments: this.plant.denominationApartments,\n denominationBuildings: this.plant.denominationBuildings,\n denominationFloors: this.plant.denominationFloors,\n denominationRisers: this.plant.denominationRisers,\n language: setLanguageByCode(browserLanguage.toLocaleLowerCase()),\n callingCodeShowAddressBook: this.plant.callingCodeShowAddressBook,\n });\n }\n\n handleGrouped(grouped: { [buildingKey: string]: { apartmentName: string, scsAddr: number, labels: SimpleLabel[], badges:string[], keypadCode: string}[] }) {\n let dictionary = {} as { [key: string]: ApartmentDTO[] };\n for (const buildingKey in grouped) {\n const building = grouped[buildingKey];\n dictionary[buildingKey] = building.map((apartment) => {\n return new ApartmentDTO({\n name: apartment.apartmentName,\n scsAddr: apartment.scsAddr,\n labels: apartment.labels.map((label) => {\n return new ApartmentLabelDTO({\n surname: label.type === LabelType.Private ? label.line1 : undefined,\n name: label.type === LabelType.Private ? label.line2 : undefined,\n companyName: label.type === LabelType.Business ? label.line1 : undefined,\n isPrivate: label.type === LabelType.Private,\n labelType: label.type,\n information: label.info,\n });\n }),\n badgeList: apartment.badges,\n keypadCode: apartment.keypadCode,\n });\n });\n }\n\n this.infoPlant.buildings = Object.keys(dictionary).map((key) => {\n return new BuildingImportDto({\n name: key,\n apartments: dictionary[key],\n });\n });\n }\n\n get isCallingCode() {\n return (\n this.infoPlant.addressingType ===\n AddressingType.DirectCall_Alphanumeric ||\n this.infoPlant.addressingType === AddressingType.DirectCall_NumbersOnly\n );\n }\n\n get isBRFA() {\n return (\n this.infoPlant.addressingType ===\n AddressingType.BuildingRiserFloorApartment\n );\n }\n\n getDataToSave() {\n return new EntrancePlantStructureCreateDTO({\n wizardStep: 2,\n infoCreate: this.infoPlant,\n });\n }\n\n handleBackButton() {\n this.$emit('onBack', 'DialogEntrancePlantCreateStep1');\n }\n async handleNextButton() {\n await this.updatePlantStructure(this.getDataToSave());\n this.$emit('onNext', 'DialogEntrancePlantCreateStep3');\n }\n async updatePlantStructure(structure: EntrancePlantStructureCreateDTO) {\n if (!this.plantId) return;\n this.$emit('is-loading', true);\n\n try {\n await plantsClient.structure(this.plant.desktopId!, structure);\n if(this.switchboardActive) {\n const switchboard = new SwitchboardConfigDTO ({\n switchboard: new SwitchboardDTO({\n name: `${this.$t('AppResourceEP.Switchboard')} 1`,\n scsAddr: 0,\n }),\n devices: [],\n });\n await plantsClient.switchboardPOST(this.plant.desktopId!, switchboard);\n }\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n }\n triggerFilePicker() {\n const input = document.getElementById('fileInput') as HTMLInputElement;\n input.value = '';\n input.click();\n }\n\n async onFileSelected(event: Event): Promise {\n const input = event.target as HTMLInputElement;\n if (!input.files || input.files.length === 0) {\n console.error('No file selected!');\n return;\n }\n\n const file = input.files[0];\n if (!fileIsCsv(file)) {\n console.error('File is not a CSV!');\n return;\n }\n this.$store.dispatch('SET_APP_LOADING', true);\n const reader = new FileReader();\n\n reader.onload = async (e: ProgressEvent) => {\n let text = e.target?.result;\n if (typeof text !== 'string') {\n console.error('Failed to read file as text!');\n this.$store.dispatch('SET_APP_LOADING', false);\n return;\n } else {\n try {\n const data = await processCsvData(text);\n this.importedData = data;\n this.isVisibleDialogImportFile = true;\n } catch (error) {\n console.error('Failed to parse CSV data!', error);\n const message = (error as Error).message.split('|');\n this.$toast.add({\n severity: 'error',\n summary: message[0] ?? this.$t('importFile.error'),\n details: message[1],\n closable: true,\n life: 10000,\n });\n } finally {\n this.$store.dispatch('SET_APP_LOADING', false);\n }\n }\n };\n\n reader.onerror = (e) => {\n console.error('Failed to read file!', e);\n };\n reader.readAsText(file); // Legge il contenuto del file come stringa\n }\n\n handleCloseDialog() {\n this.importedData = [];\n this.isVisibleDialogImportFile = false;\n }\n\n async overwrite() {\n this.handleCloseDialog();\n this.handleNextButton();\n }\n\n async handleUpdatePlant(plant: EntrancePlantDetailDTO) {\n this.plant = plant;\n }\n}\n","import { render } from \"./DialogEntrancePlantCreateStep2.vue?vue&type=template&id=bf58db64&ts=true\"\nimport script from \"./DialogEntrancePlantCreateStep2.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogEntrancePlantCreateStep2.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 { toDisplayString as _toDisplayString, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_5 = {\n class: \"p-field d-flex mb-3 align-items-end\",\n style: {\"height\":\"23px\"}\n}\nconst _hoisted_6 = { class: \"p-field-label\" }\nconst _hoisted_7 = { class: \"fs-15 label-error ml-auto\" }\nconst _hoisted_8 = { class: \"list-blocks\" }\nconst _hoisted_9 = { class: \"form-custom d-flex align-items-center w-100\" }\nconst _hoisted_10 = { class: \"p-field mr-2\" }\nconst _hoisted_11 = { class: \"p-field-label bigger-label\" }\nconst _hoisted_12 = { class: \"d-flex flex-column\" }\nconst _hoisted_13 = { class: \"p-field\" }\nconst _hoisted_14 = { class: \"p-field-label bigger-label\" }\nconst _hoisted_15 = { 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_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_CardContainer = _resolveComponent(\"CardContainer\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResource.CreateStructure\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"div\", null, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"label\", _hoisted_6, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupBuilding\")), 1),\n _createVNode(\"label\", _hoisted_7, _toDisplayString(_ctx.cantAddBuildingString), 1)\n ]),\n _createVNode(_component_CardContainer, {\n titleIcon: \n require(`@/assets/images/entrancePlants/icon-building.svg`)\n ,\n title: _ctx.titleCard,\n showActionButton: true,\n onOnActionButtonClick: _ctx.addBuilding,\n actionButtonLabel: _ctx.$t('AppResource.Add')\n }, {\n default: _withCtx(() => [\n _createVNode(\"ul\", _hoisted_8, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.buildings, (building, i) => {\n return (_openBlock(), _createBlock(\"li\", {\n class: \"new-building\",\n key: i\n }, [\n _createVNode(\"form\", _hoisted_9, [\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"label\", _hoisted_11, _toDisplayString(`${_ctx.$t(\"NameBuilding\")} ${\n i + 1\n }`) + \": \", 1),\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(_component_InputText, {\n type: \"text\",\n class: \"w-100\",\n modelValue: building.name,\n \"onUpdate:modelValue\": ($event: any) => (building.name = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ])\n ]),\n _createVNode(\"div\", _hoisted_13, [\n _createVNode(\"label\", _hoisted_14, _toDisplayString(_ctx.$t(\n \"AppResourceEP.NumberOfApartmentsUpper\"\n )) + \": \", 1),\n _createVNode(_component_Dropdown, {\n modelValue: building.apartmentsCount,\n \"onUpdate:modelValue\": ($event: any) => (building.apartmentsCount = $event),\n options: _ctx.noAppartmentOptions(i),\n optionLabel: \"label\",\n optionValue: \"value\"\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\", \"options\"])\n ]),\n _createVNode(_component_Button, {\n disabled: _ctx.buildings.length == 1,\n label: _ctx.$t('AppResource.Delete'),\n class: [\"ml-auto p-button-text\", {\n 'text-gray': _ctx.buildings.length === 1,\n }],\n onClick: ($event: any) => (_ctx.handleBuildingRemove(i))\n }, null, 8, [\"disabled\", \"label\", \"class\", \"onClick\"])\n ])\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"titleIcon\", \"title\", \"onOnActionButtonClick\", \"actionButtonLabel\"])\n ])\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(\"footer\", _hoisted_15, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleBackButton,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]),\n _createVNode(_component_Button, {\n onClick: _ctx.handleNextButton,\n label: _ctx.$t('AppResource.Continue'),\n class: \"p-button-rounded p-button-raised p-button--m\"\n }, null, 8, [\"onClick\", \"label\"])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n BuildingCreateDTO,\n EntrancePlantDetailDTO,\n EntrancePlantStructureCreateDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { AddressingType } from '@/../client-generator/generated-clients/plants';\nimport CardContainer from '@/views/components/CardContainer/CardContainer.vue';\nimport { toLabel } from '@/core/utils/EntrancePlant/denomination-helper';\nimport { noAppartmentOptions } from '@/core/utils/EntrancePlant/entrance-plant.utils';\nimport plantsClient from '@/core/services/plants';\n\n@Options({\n name: 'DialogEntrancePlantCreateStep3',\n components: {\n CardContainer,\n },\n props: {\n plant: {\n required: true,\n type: Object as () => EntrancePlantDetailDTO,\n },\n plantId: {\n type: Number,\n required: false,\n }, \n isEdit: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n plant: function (newValue) {\n if (newValue) this.initializeData();\n },\n },\n emits: ['is-loading', 'onBack', 'onNext', 'plant-edited'],\n computed: {},\n})\nexport default class DialogEntrancePlantCreateStep3 extends Vue {\n plant!: EntrancePlantDetailDTO;\n plantId!: number;\n buildings: BuildingCreateDTO[] = [];\n cantAddBuildingString = '';\n\n get titleCard() {\n return `${this.buildings.length} ${this.$t(\n this.buildings.length == 1\n ? 'AppResourceEP.Building'\n : 'AppResourceEP.Buildings'\n ).toString()}`;\n }\n\n noAppartmentOptions(buldingIndex: number) {\n const otherBuildings = this.buildings.filter(\n (building, index) => index !== buldingIndex\n );\n const totalApartments = otherBuildings.reduce(\n (acc, building) => acc + building.apartmentsCount!,\n 0\n );\n return noAppartmentOptions(3999-totalApartments);\n } \n\n addBuilding() {\n if(this.noAppartmentOptions(this.buildings.length).length === 0) {\n this.cantAddBuilding();\n return;\n }\n this.buildings.push(\n new BuildingCreateDTO({\n name: this.getNewBuildingName(this.plant),\n apartmentsCount: 1,\n })\n );\n }\n\n cantAddBuilding() {\n this.cantAddBuildingString = this.$t('entrancePlant.apartmentLimitReached', { maxApartments: 3999 });\n setTimeout(() => {\n this.cantAddBuildingString = '';\n }, 4000);\n }\n\n mounted(): void {\n this.initializeData();\n }\n\n initializeData() {\n this.fillBuildings();\n if (this.buildings.length === 0) {\n this.addBuilding();\n }\n }\n\n fillBuildings() {\n this.plant.buildings?.forEach((building) => {\n this.buildings.push(\n new BuildingCreateDTO({\n apartmentsCount: building.apartments?.length,\n buildingId: building.buildingId,\n name: building.name,\n })\n );\n });\n }\n\n handleBuildingRemove(index: number) {\n this.buildings.splice(index, 1);\n }\n\n private getNewBuildingName(plant: EntrancePlantDetailDTO): string {\n let newBuildingName: string;\n let buildingIndex: number;\n let counter = 0;\n do {\n counter++;\n buildingIndex = this.buildings.length + counter;\n newBuildingName = `${this.$t('AppResourceEP.Building')} ${toLabel(\n counter,\n plant.denominationBuildings\n )}`;\n } while (this.buildings.some((x) => x.name == newBuildingName));\n return newBuildingName;\n }\n\n getDataToSave() {\n return new EntrancePlantStructureCreateDTO({\n wizardStep: 3,\n buildingsCreate: this.buildings,\n });\n }\n\n handleBackButton() {\n this.$emit('onBack', 'DialogEntrancePlantCreateStep2');\n }\n\n async handleNextButton() {\n await this.updatePlantStructure(this.getDataToSave());\n\n const nextPage =\n this.plant.addressingType === AddressingType.BuildingRiserFloorApartment\n ? 'DialogEntrancePlantCreateStep4'\n : 'DialogEntrancePlantCreateStep6';\n\n this.$emit('onNext', nextPage);\n }\n\n async updatePlantStructure(structure: EntrancePlantStructureCreateDTO) {\n if (!this.plantId) return;\n this.$emit('is-loading', true);\n\n try {\n await plantsClient.structure(this.plant.desktopId!, structure);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n }\n}\n","import { render } from \"./DialogEntrancePlantCreateStep3.vue?vue&type=template&id=2564ca9a&ts=true\"\nimport script from \"./DialogEntrancePlantCreateStep3.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogEntrancePlantCreateStep3.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 { toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, renderList as _renderList, Fragment as _Fragment, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header stepfour-header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 287px)\"} }\nconst _hoisted_5 = {\n class: \"p-field d-flex mb-3 align-items-end\",\n style: {\"height\":\"36px\"}\n}\nconst _hoisted_6 = { class: \"p-field-label\" }\nconst _hoisted_7 = {\n key: 0,\n class: \"p-field-label error-mismatch fs-15 ml-auto mr-2\"\n}\nconst _hoisted_8 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\nconst _hoisted_9 = { class: \"label-error\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"list-blocks\"\n}\nconst _hoisted_11 = {\n class: \"d-flex\",\n style: {\"align-items\":\"start\"}\n}\nconst _hoisted_12 = { class: \"p-field mr-3\" }\nconst _hoisted_13 = { class: \"p-field-label bigger-label\" }\nconst _hoisted_14 = { class: \"d-flex flex-column\" }\nconst _hoisted_15 = { class: \"p-field\" }\nconst _hoisted_16 = { class: \"p-field-label bigger-label\" }\nconst _hoisted_17 = {\n key: 0,\n class: \"list-blocks-secondary p-0\"\n}\nconst _hoisted_18 = { class: \"form-custom d-flex\" }\nconst _hoisted_19 = { class: \"p-field mr-4\" }\nconst _hoisted_20 = { class: \"p-field-label bigger-label\" }\nconst _hoisted_21 = { class: \"d-flex flex-column\" }\nconst _hoisted_22 = { class: \"p-field\" }\nconst _hoisted_23 = { class: \"p-field-label bigger-label\" }\nconst _hoisted_24 = { class: \"dialog-custom__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_NumberButtons = _resolveComponent(\"NumberButtons\")\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_CardContainer = _resolveComponent(\"CardContainer\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_Button = _resolveComponent(\"Button\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t(\"SetupRisersTitle\", { buildingName: _ctx.buildingName })), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n (!_ctx.changingBuilding)\n ? (_openBlock(), _createBlock(_component_ElScrollbar, {\n key: 0,\n class: \"dialog-scroll\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"div\", null, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"label\", _hoisted_6, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupBuilding\")), 1),\n (!_ctx.allApartmentsAssigned)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_7, [\n _createVNode(\"label\", null, _toDisplayString(_ctx.mismatchedApartmentsErrorText[0]), 1),\n _hoisted_8,\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.mismatchedApartmentsErrorText[1]), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(_component_CardContainer, {\n titleIcon: require(`@/assets/images/entrancePlants/icon-riser.svg`),\n title: _ctx.titleCard,\n showActionButton: false\n }, {\n actionButton: _withCtx(() => [\n _createVNode(_component_NumberButtons, {\n lightTheme: \"\",\n minValue: 1,\n modelValue: _ctx.risersCount,\n onIncrement: _ctx.addRiser,\n onDecrement: _ctx.removeRiser\n }, null, 8, [\"modelValue\", \"onIncrement\", \"onDecrement\"])\n ]),\n default: _withCtx(() => [\n (_ctx.currentRFAConfig)\n ? (_openBlock(), _createBlock(\"ul\", _hoisted_10, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.currentRFAConfig.risers, (riser, i) => {\n return (_openBlock(), _createBlock(\"li\", {\n class: \"riser-row\",\n key: i\n }, [\n _createVNode(\"form\", _hoisted_11, [\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.riserName(riser.index)) + \": \", 1),\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(_component_InputText, {\n type: \"text\",\n modelValue: riser.name,\n \"onUpdate:modelValue\": ($event: any) => (riser.name = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ])\n ]),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"label\", _hoisted_16, _toDisplayString(_ctx.$t(\"AppResourceEP.NumberOfFloorsUpper\")) + \": \", 1),\n _createVNode(_component_Dropdown, {\n options: _ctx.floorsCountValues,\n modelValue: riser.floors.length,\n onChange: (e) => _ctx.changeFloorNumber(riser, e.value)\n }, null, 8, [\"options\", \"modelValue\", \"onChange\"])\n ]),\n (riser.floors)\n ? (_openBlock(), _createBlock(\"ul\", _hoisted_17, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(riser.floors, (floor, i) => {\n return (_openBlock(), _createBlock(\"li\", {\n class: \"riser-row\",\n key: i\n }, [\n _createVNode(\"form\", _hoisted_18, [\n _createVNode(\"div\", _hoisted_19, [\n _createVNode(\"label\", _hoisted_20, _toDisplayString(_ctx.floorName(floor.index)) + \": \", 1),\n _createVNode(\"div\", _hoisted_21, [\n _createVNode(_component_InputText, {\n type: \"text\",\n class: \"w-100\",\n modelValue: floor.name,\n \"onUpdate:modelValue\": ($event: any) => (floor.name = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ])\n ]),\n _createVNode(\"div\", _hoisted_22, [\n _createVNode(\"label\", _hoisted_23, _toDisplayString(_ctx.$t(\"AppResourceEP.NumberOfApartmentsUpper\")) + \": \", 1),\n _createVNode(_component_Dropdown, {\n options: _ctx.apartmentCountValues,\n optionLabel: \"label\",\n optionValue: \"value\",\n modelValue: floor.numberOfApartments,\n onChange: (e) => _ctx.changeApartmentNumber(floor, e.value)\n }, null, 8, [\"options\", \"modelValue\", \"onChange\"])\n ])\n ])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"titleIcon\", \"title\"])\n ])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createVNode(\"footer\", _hoisted_24, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleBackButton,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]),\n _createVNode(_component_Button, {\n onClick: _ctx.handleNextButton,\n label: _ctx.$t('AppResource.Continue'),\n class: \"p-button-rounded p-button-raised p-button--m\",\n disabled: !_ctx.allApartmentsAssigned\n }, null, 8, [\"onClick\", \"label\", \"disabled\"])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n FloorConfigDTO,\n RiserConfigDTO,\n RFAConfigDTO,\n BuildingDTO,\n EntrancePlantDetailDTO,\n EntrancePlantStructureCreateDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport CardContainer from '@/views/components/CardContainer/CardContainer.vue';\nimport NumberButtons from '@/views/components/NumberButtons/NumberButtons.vue';\nimport plantsClient from '@/core/services/plants';\nimport { \n DEFAULT_NUMBER_OF_FLOORS_IN_RISER, \n distributeApartmentsToRaisersAndFloors \n} from '@/core/utils/EntrancePlant/entrance-plant.utils';\nimport { toLabel } from '@/core/utils/EntrancePlant/denomination-helper';\n\n@Options({\n name: 'DialogEntrancePlantCreateStep4',\n components: {\n CardContainer,\n NumberButtons,\n },\n props: {\n plant: {\n required: true,\n type: Object as () => EntrancePlantDetailDTO,\n },\n plantId: {\n type: Number,\n required: false,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n plant: function (newValue) {\n if (newValue) this.initializeData();\n },\n },\n emits: ['is-loading', 'onBack', 'onNext', 'plant-edited'],\n computed: {},\n})\nexport default class DialogEntrancePlantCreateStep4 extends Vue {\n plant!: EntrancePlantDetailDTO;\n plantId!: number;\n currentBuildingIndex = 0;\n distributeApartmentsToRaisersAndFloors = distributeApartmentsToRaisersAndFloors;\n\n changingBuilding = false;\n rfaConfig: { [key: string]: RFAConfigDTO } = {};\n floorsCountValues: number[] = [];\n\n get titleCard() {\n return `${this.risersCount} ${this.$t(\n this.risersCount == 1 ? 'AppResourceEP.Riser' : 'AppResourceEP.Risers'\n ).toString()}`;\n }\n\n get buildingName() {\n return this.currentBuilding?.name;\n }\n\n get currentBuilding(): BuildingDTO | null {\n if (this.plant.buildings) {\n return this.plant.buildings[this.currentBuildingIndex];\n }\n return null;\n }\n\n get currentRFAConfig(): RFAConfigDTO | null {\n if (!this.currentBuilding) return null;\n if (!this.currentBuilding.buildingId) return null;\n return this.rfaConfig[this.currentBuilding.buildingId];\n }\n\n get risersCount(): number {\n if (!this.currentRFAConfig) return 0;\n if (!this.currentRFAConfig.risers) return 0;\n return this.currentRFAConfig.risers.length;\n }\n\n get apartmentCountValues(): { label: number; value: number }[] {\n if (!this.currentBuilding?.apartments) return [{ label: 0, value: 0 }];\n return [...Array(this.currentBuilding?.apartments?.length + 1).keys()].map(\n (i) => {\n return { label: i, value: i };\n });\n }\n\n get mismatchedApartmentsErrorText() {\n const firstLine = this.$t('entrancePlant.buildingApartments') + ': ' + this.currentBuilding?.apartments?.length;\n const secondLine = this.$t('entrancePlant.assignedApartmets') + ': ' + this.totalAssignedApartments;\n return [firstLine, secondLine];\n }\n\n get totalAssignedApartments() {\n if (!this.currentRFAConfig || !this.currentRFAConfig.risers) return 0;\n return this.currentRFAConfig.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 allApartmentsAssigned() {\n if (!this.currentRFAConfig || !this.currentRFAConfig.risers) return false;\n return this.currentRFAConfig.numberOfApartments === this.totalAssignedApartments;\n }\n\n riserName(index?: number): string {\n if (!index) return '';\n return `${this.$t('AppResourceEP.Name')} ${this.$t(\n 'AppResourceEP.Riser'\n )} ${toLabel(index, this.plant.denominationRisers)}`;\n }\n\n floorName(index?: number): string {\n if (!index) return '';\n return `${this.$t('AppResourceEP.Name')} ${this.$t(\n 'AppResourceEP.Floor'\n )} ${toLabel(index, this.plant.denominationFloors)}`;\n }\n\n changeFloorNumber(riser: RiserConfigDTO, value: number) {\n if (!this.currentRFAConfig) return;\n if (!riser.floors) riser.floors = [];\n const count = riser.floors.length - value;\n if (count < 0) {\n this.addFloors(riser, Math.abs(count));\n } else {\n this.removeFloors(riser, count);\n }\n this.distributeApartmentsToRaisersAndFloors(this.currentRFAConfig);\n }\n\n changeApartmentNumber(floor: FloorConfigDTO, value: number) {\n if (!this.currentRFAConfig) return;\n floor.numberOfApartments = value;\n }\n\n addRiser() {\n if (!this.currentRFAConfig) return;\n if (!this.currentRFAConfig.risers) this.currentRFAConfig.risers = [];\n\n const riserName = `${this.$t('AppResourceEP.Riser')} ${toLabel(\n this.risersCount + 1,\n this.plant.denominationRisers\n )}`;\n\n const riser = new RiserConfigDTO({\n index: this.risersCount + 1,\n name: riserName,\n });\n\n this.addFloors(riser, DEFAULT_NUMBER_OF_FLOORS_IN_RISER);\n\n this.currentRFAConfig.risers.push(riser);\n this.distributeApartmentsToRaisersAndFloors(this.currentRFAConfig);\n }\n\n addFloors(riser: RiserConfigDTO, floorsCount: number) {\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.plant.denominationFloors\n )}`;\n\n riser.floors.push(\n new FloorConfigDTO({\n index: floorIndex,\n name: floorName,\n })\n );\n }\n }\n\n removeFloors(riser: RiserConfigDTO, floorsCount: number) {\n if (!riser.floors) return;\n riser.floors.splice(riser.floors.length - floorsCount, floorsCount);\n }\n\n removeRiser() {\n if (!this.currentRFAConfig) return;\n if (!this.currentRFAConfig.risers) return;\n this.currentRFAConfig.risers.splice(\n this.currentRFAConfig.risers.length - 1,\n 1\n );\n this.distributeApartmentsToRaisersAndFloors(this.currentRFAConfig);\n }\n\n mounted(): void {\n this.initializeData();\n }\n\n initializeData() {\n this.floorsCountValues = [\n ...Array(200).keys(),\n ].map((i) => i + 1);\n if (this.plant.buildings) {\n for (const building of this.plant.buildings) {\n if (!building.buildingId) continue;\n if (!building.apartments) continue;\n if (building.risers == null || building.risers.length == 0) {\n this.rfaConfig[building.buildingId] = new RFAConfigDTO({\n numberOfApartments: building.apartments.length,\n risers: [\n new RiserConfigDTO({\n index: 1,\n name: `${this.$t('AppResourceEP.Riser')} ${toLabel(\n 1,\n this.plant.denominationRisers\n )}`,\n }),\n new RiserConfigDTO({\n index: 2,\n name: `${this.$t('AppResourceEP.Riser')} ${toLabel(\n 2,\n this.plant.denominationRisers\n )}`,\n }),\n ],\n });\n this.addFloors(this.rfaConfig[building.buildingId].risers![0], DEFAULT_NUMBER_OF_FLOORS_IN_RISER);\n this.addFloors(this.rfaConfig[building.buildingId].risers![1], DEFAULT_NUMBER_OF_FLOORS_IN_RISER);\n distributeApartmentsToRaisersAndFloors(this.rfaConfig[building.buildingId]);\n }\n else {\n var rfaConfig = new RFAConfigDTO({\n numberOfApartments: building.apartments.length,\n risers: [],\n });\n building.risers.forEach((riser) => {\n rfaConfig.risers?.push(\n new RiserConfigDTO({\n riserId: riser.riserId,\n index: Number.parseInt(riser.index!),\n name: riser.name,\n floors: building.floors?.filter(r=>r.riserId==riser.riserId).map((floor) => {\n return new FloorConfigDTO({\n index: Number.parseInt(floor.index!),\n name: floor.name,\n numberOfApartments:building.apartments?.filter(a=>a.floorId==floor.floorId).length,\n });\n }),\n }),\n );\n });\n this.rfaConfig[building.buildingId] = rfaConfig;\n }\n }\n }\n }\n\n getDataToSave() {\n return new EntrancePlantStructureCreateDTO({\n wizardStep: 4,\n plantConfigStructure: this.rfaConfig,\n });\n }\n\n handleBackButton() {\n if (this.plant.buildings) {\n if (this.currentBuildingIndex > 0) {\n this.changeBuilding('back');\n return;\n }\n }\n this.$emit('onBack', 'DialogEntrancePlantCreateStep3');\n }\n\n async handleNextButton() {\n if (this.plant.buildings) {\n if (this.currentBuildingIndex < this.plant.buildings.length - 1) {\n await this.changeBuilding('next');\n return;\n }\n await this.updatePlantStructure(this.getDataToSave());\n }\n this.$emit('onNext', 'DialogEntrancePlantCreateStep5');\n }\n\n async changeBuilding(direction: 'next' | 'back') {\n this.$emit('is-loading', true);\n this.changingBuilding = true;\n if (direction === 'next') {\n this.currentBuildingIndex++;\n } else {\n this.currentBuildingIndex--;\n }\n setTimeout(() => {\n this.changingBuilding = false;\n this.$emit('is-loading', false)\n }, 500);\n }\n\n async updatePlantStructure(structure: EntrancePlantStructureCreateDTO) {\n if (!this.plantId) return;\n this.$emit('is-loading', true);\n\n try {\n await plantsClient.structure(this.plant.desktopId!, structure);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n }\n}\n","import { render } from \"./DialogEntrancePlantCreateStep4.vue?vue&type=template&id=33d3fd7c&ts=true\"\nimport script from \"./DialogEntrancePlantCreateStep4.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogEntrancePlantCreateStep4.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogEntrancePlantCreateStep4.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 { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_5 = { class: \"p-field mr-3\" }\nconst _hoisted_6 = { class: \"p-field-label mb-3\" }\nconst _hoisted_7 = { class: \"calling-code-container\" }\nconst _hoisted_8 = { class: \"calling-code-card\" }\nconst _hoisted_9 = { class: \"column-code\" }\nconst _hoisted_10 = /*#__PURE__*/_createVNode(\"div\", { class: \"vertical-line\" }, null, -1)\nconst _hoisted_11 = /*#__PURE__*/_createVNode(\"span\", { class: \"code\" }, \"B\", -1)\nconst _hoisted_12 = { class: \"column-code\" }\nconst _hoisted_13 = /*#__PURE__*/_createVNode(\"div\", { class: \"vertical-line\" }, null, -1)\nconst _hoisted_14 = { class: \"code\" }\nconst _hoisted_15 = { class: \"column-code\" }\nconst _hoisted_16 = /*#__PURE__*/_createVNode(\"div\", { class: \"vertical-line\" }, null, -1)\nconst _hoisted_17 = { class: \"code\" }\nconst _hoisted_18 = { class: \"column-code\" }\nconst _hoisted_19 = /*#__PURE__*/_createVNode(\"div\", { class: \"vertical-line\" }, null, -1)\nconst _hoisted_20 = { class: \"code\" }\nconst _hoisted_21 = { class: \"text-center mt-4\" }\nconst _hoisted_22 = /*#__PURE__*/_createVNode(\"b\", null, \"Example:\", -1)\nconst _hoisted_23 = { class: \"code\" }\nconst _hoisted_24 = { class: \"code\" }\nconst _hoisted_25 = { class: \"code\" }\nconst _hoisted_26 = { class: \"code\" }\nconst _hoisted_27 = { class: \"dialog-custom__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_Button = _resolveComponent(\"Button\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupWizardStepSummaryTitle\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, null, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"label\", _hoisted_6, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupWizardStepSummarySubTitle\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Building\")), 1),\n _hoisted_10,\n _hoisted_11\n ]),\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Riser\")), 1),\n _hoisted_13,\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.RiserShort\")), 1),\n _createVNode(\"span\", {\n class: {\n gray: !_ctx.recapCode.riserDoubleChars,\n }\n }, _toDisplayString(_ctx.$t(\"AppResourceEP.RiserShort\")), 3)\n ])\n ]),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Floor\")), 1),\n _hoisted_16,\n _createVNode(\"div\", _hoisted_17, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.FloorShort\")), 1),\n _createVNode(\"span\", {\n class: {\n gray: !_ctx.recapCode.floorDoubleChars,\n }\n }, _toDisplayString(_ctx.$t(\"AppResourceEP.FloorShort\")), 3)\n ])\n ]),\n _createVNode(\"div\", _hoisted_18, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.Apartment\")), 1),\n _hoisted_19,\n _createVNode(\"div\", _hoisted_20, [\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResourceEP.ApartmentShort\")), 1),\n _createVNode(\"span\", {\n class: {\n gray: !_ctx.recapCode.apartmentDoubleChars,\n }\n }, _toDisplayString(_ctx.$t(\"AppResourceEP.ApartmentShort\")), 3)\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_21, [\n _hoisted_22,\n _createVNode(\"div\", null, [\n _createVNode(\"span\", _hoisted_23, _toDisplayString(_ctx.recapCode.buildingCode), 1),\n _createVNode(\"span\", _hoisted_24, _toDisplayString(_ctx.recapCode.riserCode), 1),\n _createVNode(\"span\", _hoisted_25, _toDisplayString(_ctx.recapCode.floorCode), 1),\n _createVNode(\"span\", _hoisted_26, _toDisplayString(_ctx.recapCode.apartmentCode), 1)\n ])\n ])\n ])\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(\"footer\", _hoisted_27, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleBackButton,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]),\n _createVNode(_component_Button, {\n onClick: _ctx.handleNextButton,\n label: _ctx.$t('AppResource.Continue'),\n class: \"p-button-rounded p-button-raised p-button--m\"\n }, null, 8, [\"onClick\", \"label\"])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\nCallingCodeDTO,\n EntrancePlantDetailDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport plantsClient from '@/core/services/plants';\n\n@Options({\n name: 'DialogEntrancePlantCreateStep5',\n components: {\n },\n props: {\n plant: {\n required: true,\n type: Object as () => EntrancePlantDetailDTO,\n },\n plantId: {\n type: Number,\n required: false,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n plant: function (newValue) {\n if (newValue) this.initializeData();\n },\n },\n emits: ['is-loading', 'onBack', 'onNext', 'plant-edited'],\n computed: {},\n})\nexport default class DialogEntrancePlantCreateStep5 extends Vue {\n plant!: EntrancePlantDetailDTO;\n plantId!: number;\n recapCode = new CallingCodeDTO();\n \n mounted(): void {\n this.initializeData();\n }\n\n async initializeData() {\n if (!this.plantId) return;\n this.$emit('is-loading', true);\n\n try {\n this.recapCode = await plantsClient.callingcoderecap(this.plantId);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n }\n\n\n handleBackButton() {\n this.$emit('onBack', 'DialogEntrancePlantCreateStep4');\n }\n\n async handleNextButton() {\n this.$emit('onNext', 'DialogEntrancePlantCreateStep6');\n }\n}\n","import { render } from \"./DialogEntrancePlantCreateStep5.vue?vue&type=template&id=a58b476a&ts=true\"\nimport script from \"./DialogEntrancePlantCreateStep5.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogEntrancePlantCreateStep5.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogEntrancePlantCreateStep5.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 { 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: \"dialog-custom__header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = { class: \"dialog-custom__content form-custom\" }\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_5 = { class: \"p-field\" }\nconst _hoisted_6 = { class: \"p-field-label mb-3\" }\nconst _hoisted_7 = { class: \"list-blocks\" }\nconst _hoisted_8 = { class: \"form-custom d-flex align-items-center w-100\" }\nconst _hoisted_9 = { class: \"p-field mr-4\" }\nconst _hoisted_10 = { class: \"p-field-label\" }\nconst _hoisted_11 = { class: \"d-flex flex-column\" }\nconst _hoisted_12 = { 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_Button = _resolveComponent(\"Button\")\n const _component_CardContainer = _resolveComponent(\"CardContainer\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResourceEP.AddGates\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_ElScrollbar, { class: \"dialog-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"div\", null, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"label\", _hoisted_6, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupNumberOfGates\")), 1)\n ]),\n (_ctx.plant.gates)\n ? (_openBlock(), _createBlock(_component_CardContainer, {\n key: 0,\n titleIcon: require(`@/assets/images/entrancePlants/icon-gate.svg`),\n title: _ctx.titleCard,\n showActionButton: true,\n onOnActionButtonClick: _ctx.addGate,\n disabled: _ctx.reachedMaxGates,\n actionButtonLabel: _ctx.$t('AppResource.Add')\n }, {\n default: _withCtx(() => [\n _createVNode(\"ul\", _hoisted_7, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.plant.gates, (gate, i) => {\n return (_openBlock(), _createBlock(\"li\", {\n class: \"new-building\",\n key: i\n }, [\n _createVNode(\"form\", _hoisted_8, [\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(\"label\", _hoisted_10, _toDisplayString(_ctx.$t(\"AppResourceEP.Name\")) + \": \", 1),\n _createVNode(\"div\", _hoisted_11, [\n _createVNode(_component_InputText, {\n type: \"text\",\n class: \"w-100\",\n modelValue: gate.name,\n \"onUpdate:modelValue\": ($event: any) => (gate.name = $event)\n }, null, 8, [\"modelValue\", \"onUpdate:modelValue\"])\n ])\n ]),\n _createVNode(_component_Button, {\n disabled: _ctx.plant.gates.length == 1,\n label: _ctx.$t('AppResource.Delete'),\n class: \"ml-auto p-button-text\",\n onClick: ($event: any) => (_ctx.handleGateRemove(i))\n }, null, 8, [\"disabled\", \"label\", \"onClick\"])\n ])\n ]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"titleIcon\", \"title\", \"onOnActionButtonClick\", \"disabled\", \"actionButtonLabel\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(\"footer\", _hoisted_12, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleBackButton,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]),\n _createVNode(_component_Button, {\n onClick: _ctx.handleNextButton,\n label: _ctx.$t('AppResource.Continue'),\n class: \"p-button-rounded p-button-raised p-button--m\"\n }, null, 8, [\"onClick\", \"label\"])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n AddressingType,\n EntrancePlantDetailDTO,\n EntrancePlantStructureCreateDTO,\n GateDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { DenominationMode } from '@/../client-generator/generated-clients/plants';\nimport CardContainer from '@/views/components/CardContainer/CardContainer.vue';\nimport { toLabel } from '@/core/utils/EntrancePlant/denomination-helper';\nimport plantsClient from '@/core/services/plants';\n\n@Options({\n name: 'DialogEntrancePlantCreateStep6',\n components: {\n CardContainer,\n },\n props: {\n plant: {\n required: true,\n type: Object as () => EntrancePlantDetailDTO,\n },\n plantId: {\n type: Number,\n required: false,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n emits: ['is-loading', 'onBack', 'onNext', 'plant-edited'],\n computed: {},\n})\nexport default class DialogEntrancePlantCreateStep6 extends Vue {\n plant!: EntrancePlantDetailDTO;\n plantId!: number;\n\n get titleCard() {\n return `${this.plant.gates?.length} ${this.$t(\n this.plant.gates?.length == 1\n ? 'AppResourceEP.Gate'\n : 'AppResourceEP.Gates'\n ).toString()}`;\n }\n\n get reachedMaxGates() {\n return this.plant.gates?.length === this.plant.scsAddressHelper?.availableScsAddressGate?.length;\n }\n\n addGate() {\n if (!this.plant.gates) this.plant.gates = [];\n if (this.reachedMaxGates) {\n return;\n }\n\n this.plant.gates.push(\n new GateDTO({\n name: this.getNewGateName(),\n apartments: [],\n })\n );\n }\n\n mounted(): void {\n if (!this.plant.gates || this.plant.gates.length === 0) {\n this.plant.gates = [];\n this.addGate();\n }\n }\n\n handleGateRemove(index: number) {\n if (!this.plant.gates) return;\n this.plant.gates.splice(index, 1);\n }\n\n private getNewGateName(): string {\n let newGateName: string;\n let counter = 0;\n do {\n counter++;\n newGateName = `${this.$t('AppResourceEP.Gate')} ${counter}`;\n } while (this.plant.gates?.some((x) => x.name == newGateName));\n return newGateName;\n }\n\n getDataToSave() {\n return new EntrancePlantStructureCreateDTO({\n wizardStep: 3,\n gateCreate: this.plant.gates,\n });\n }\n\n handleBackButton() {\n const prevPage =\n this.plant.addressingType !== AddressingType.BuildingRiserFloorApartment\n ? 'DialogEntrancePlantCreateStep3'\n : 'DialogEntrancePlantCreateStep5';\n this.$emit('onBack', prevPage);\n }\n async handleNextButton() {\n await this.updatePlantStructure(this.getDataToSave());\n this.$emit('onNext', 'DialogEntrancePlantCreateStep7');\n }\n async updatePlantStructure(structure: EntrancePlantStructureCreateDTO) {\n if (!this.plantId) return;\n this.$emit('is-loading', true);\n\n try {\n await plantsClient.structure(this.plant.desktopId!, structure);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n }\n}\n","import { render } from \"./DialogEntrancePlantCreateStep6.vue?vue&type=template&id=51326d29&ts=true\"\nimport script from \"./DialogEntrancePlantCreateStep6.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogEntrancePlantCreateStep6.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 { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { class: \"dialog-custom__header\" }\nconst _hoisted_2 = { class: \"dialog-custom__title\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"dialog-custom__content form-custom\"\n}\nconst _hoisted_4 = { style: {\"height\":\"calc(100vh - 300px)\"} }\nconst _hoisted_5 = { class: \"p-field\" }\nconst _hoisted_6 = { class: \"p-field-label mb-3\" }\nconst _hoisted_7 = { class: \"d-flex mb-4\" }\nconst _hoisted_8 = {\n class: \"p-field-label mt-1\",\n for: \"scsAddr\"\n}\nconst _hoisted_9 = {\n for: \"scsAddr\",\n class: \"fs-13 label-error\"\n}\nconst _hoisted_10 = { class: \"p-field-label mt-5 mb-3\" }\nconst _hoisted_11 = { key: 0 }\nconst _hoisted_12 = { key: 1 }\nconst _hoisted_13 = { class: \"mt-4 mb-3 secondary-label fw-normal fs-12 text-uppercase\" }\nconst _hoisted_14 = { class: \"dialog-custom__footer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_ButtonSelection = _resolveComponent(\"ButtonSelection\")\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_ListItemCheck = _resolveComponent(\"ListItemCheck\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_Button = _resolveComponent(\"Button\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"header\", _hoisted_1, [\n _createVNode(\"h1\", _hoisted_2, _toDisplayString(_ctx.pageTitle), 1)\n ]),\n (_ctx.currentGate)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_3, [\n _createVNode(\"div\", _hoisted_4, [\n (!_ctx.changingGate)\n ? (_openBlock(), _createBlock(_component_ElScrollbar, {\n key: 0,\n class: \"list\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"label\", _hoisted_6, _toDisplayString(_ctx.$t(\"SelectDevicesInGate\")), 1)\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(_component_ButtonSelection, {\n class: \"ml-1 mr-4\",\n icon: require(`@/assets/images/entrancePlants/icon-new-pe.svg`)\n ,\n label: _ctx.$t('AppResourceEP.NewPeDevice'),\n modelValue: _ctx.currentGate.newPeSelected,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($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 ,\n label: _ctx.$t('AppResourceEP.KeyPad'),\n modelValue: _ctx.currentGate.keypadSelected,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($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 ,\n label: _ctx.$t('AppResourceEP.SmartReader'),\n modelValue: _ctx.currentGate.smartReaderSelected,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.currentGate.smartReaderSelected = $event)),\n disabled: _ctx.smartReaderDisabled\n }, null, 8, [\"icon\", \"label\", \"modelValue\", \"disabled\"])\n ]),\n _createVNode(\"label\", _hoisted_8, _toDisplayString(_ctx.$t(\"AppResourceEP.DeviceScsAddress\")), 1),\n _createVNode(_component_InputText, {\n id: \"scsAddr\",\n class: {'input-error': _ctx.scsAddrNotValid},\n type: \"number\",\n style: {\"width\":\"40%\"},\n min: _ctx.MIN_SCS_ADDRESS,\n max: _ctx.MAX_SCS_ADDRESS,\n modelValue: _ctx.currentGate.scsAddress,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.currentGate.scsAddress = $event))\n }, null, 8, [\"class\", \"min\", \"max\", \"modelValue\"]),\n _createVNode(\"div\", null, [\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.invalidScsReason), 1)\n ]),\n _createVNode(\"label\", _hoisted_10, _toDisplayString(_ctx.$t(\"AppResourceEP.SetupDefineGatesBuildingGovern\")), 1),\n (_ctx.plant.buildings && _ctx.currentGateId)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_11, [\n _createVNode(_component_ListItemCheck, {\n label: _ctx.$t('AppResource.All'),\n inputId: \"AllBuilding\",\n name: \"building\",\n modelValue: _ctx.allBuildings[_ctx.currentGateId],\n \"onUpdate:modelValue\": [\n _cache[5] || (_cache[5] = ($event: any) => (_ctx.allBuildings[_ctx.currentGateId] = $event)),\n _cache[6] || (_cache[6] = ($event: any) => (_ctx.handleUpdateBuildingSelection(_ctx.AllBuildingsValue)))\n ],\n binary: \"\"\n }, null, 8, [\"label\", \"modelValue\"]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.plant.buildings, (building, i) => {\n return (_openBlock(), _createBlock(_component_ListItemCheck, {\n key: i,\n last: i == _ctx.plant.buildings.length - 1,\n label: building.name,\n value: building.buildingId,\n inputId: 'building' + i,\n name: \"building\",\n modelValue: _ctx.selectedBuildingIds[_ctx.currentGateId],\n \"onUpdate:modelValue\": [\n _cache[7] || (_cache[7] = ($event: any) => (_ctx.selectedBuildingIds[_ctx.currentGateId] = $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 && _ctx.currentGateId)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_12, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.selectedBuildings, (b, i) => {\n return (_openBlock(), _createBlock(_Fragment, { key: i }, [\n _createVNode(\"div\", _hoisted_13, [\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[_ctx.currentGateId][b.buildingId],\n \"onUpdate:modelValue\": [($event: any) => (_ctx.allRisers[_ctx.currentGateId][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[_ctx.currentGateId][b.buildingId],\n \"onUpdate:modelValue\": [($event: any) => (_ctx.selectedRiserIds[_ctx.currentGateId][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 _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(\"footer\", _hoisted_14, [\n _createVNode(_component_Button, {\n onClick: _ctx.handleBackButton,\n label: _ctx.$t('AppResource.Back'),\n class: \"p-button-text mr-3\"\n }, null, 8, [\"onClick\", \"label\"]),\n _createVNode(_component_Button, {\n onClick: _ctx.handleNextButton,\n label: _ctx.$t('AppResource.Continue'),\n class: \"p-button-rounded p-button-raised p-button--m\",\n disabled: !_ctx.nextEnabled\n }, null, 8, [\"onClick\", \"label\", \"disabled\"])\n ])\n ], 64))\n}","import { Vue, Options } from 'vue-class-component';\nimport {\n AddressingType,\n BuildingDTO,\n EntrancePlantDetailDTO,\n EntrancePlantStructureCreateDTO,\n EPDeviceTypeEnum,\n GateConfigDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport plantsClient from '@/core/services/plants';\nimport ButtonSelection from '@/views/components/ButtonSelection/ButtonSelection.vue';\nimport { SET_SELECTED_PLANT_ID } from '@/core/store/action-types';\n\n@Options({\n name: 'DialogEntrancePlantCreateStep7',\n components: {\n ButtonSelection,\n },\n props: {\n plant: {\n required: true,\n type: Object as () => EntrancePlantDetailDTO,\n },\n plantId: {\n type: Number,\n required: false,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n plant: function (newValue) {\n if (newValue) this.initializeData();\n },\n \"currentGate.scsAddress\"() {\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: ['is-loading', 'onBack', 'onNext', 'plant-edited'],\n computed: {},\n})\nexport default class DialogEntrancePlantCreateStep7 extends Vue {\n plant!: EntrancePlantDetailDTO;\n plantId!: number;\n currentGateIndex = 0;\n gateConfig: { [key: string]: GateConfigDTO } = {};\n readonly MIN_SCS_ADDRESS = 0;\n readonly MAX_SCS_ADDRESS = 95;\n scsAddrNotValid: boolean = false;\n invalidScsReason: string = '';\n\n changingGate = false;\n\n readonly AllBuildingsValue = \"All_buildings\";\n readonly AllRisersValue = \"All_risers\";\n \n allBuildings: {[key: string]: boolean} = {};\n allRisers: { [key: string]: { [innerKey: string]: boolean } } = {};\n selectedBuildingIds:{ [key: string]: string[] } = {};\n selectedRiserIds: { [key: string]: { [innerKey: string]: string[] } } = {};\n\n get selectedBuildings(): BuildingDTO[] | null {\n if (!this.plant.buildings) return null;\n return this.plant.buildings.filter(b => this.selectedBuildingIds[this.currentGateId!].includes(b.buildingId!));\n }\n\n get currentGateId(): string | null {\n if (!this.plant.gates) return null;\n return this.plant.gates[this.currentGateIndex].gateId ?? null;\n }\n\n get currentGateScs(): number {\n return this.plant.gates![this.currentGateIndex].scsAddress!;\n }\n\n get currentGate(): GateConfigDTO | null {\n if (!this.plant.gates) return null;\n const gateId = this.currentGateId;\n if (!gateId) return null;\n const g = this.gateConfig[gateId];\n return g;\n }\n get isBRFA() { \n return this.plant.addressingType==AddressingType.BuildingRiserFloorApartment;\n }\n\n get pageTitle() {\n return `${this.$t('AppResourceEP.SetupGateTitle').toString()} ${\n this.currentGateIndex + 1\n }`;\n }\n\n mounted(): void {\n this.initializeData();\n }\n\n initializeData() {\n if (!this.plant.gates) return; \n for (const gate of this.plant.gates) {\n this.selectedBuildingIds[gate.gateId!] = [];\n this.selectedRiserIds[gate.gateId!] = {};\n this.allBuildings[gate.gateId!] = false;\n this.allRisers[gate.gateId!] = {};\n this.plant.buildings?.forEach((building) => {\n this.selectedRiserIds[gate.gateId!][building.buildingId!] = [];\n this.allRisers[gate.gateId!][building.buildingId!] = false;\n });\n gate!.connectedBuildingIds!.forEach((buildingId) => {\n this.selectedRiserIds[gate.gateId!][buildingId] = [];\n this.allRisers[gate.gateId!][buildingId] = false;\n });\n this.gateConfig[gate.gateId!] = new GateConfigDTO({\n scsAddress: gate.scsAddress,\n gateName: gate.name,\n newPeSelected: gate.devices?.some((d) => d.type == EPDeviceTypeEnum.Linea5000) ?? false,\n keypadSelected: gate.devices?.some((d) => d.type == EPDeviceTypeEnum.KeyPad) ?? false,\n smartReaderSelected: gate.devices?.some((d) => d.type == EPDeviceTypeEnum.SmartAccess) ?? false,\n connectedBuildingIds: gate.connectedBuildingIds ?? [],\n connectedRiserIds: gate.connectedRiserIds ?? [],\n connectedApartmentsIds: gate.apartments ?? [],\n });\n }\n this.buildForm(); \n this.refreshDeviceSelection();\n }\n buildForm() {\n if (this.plant.gates && this.plant.gates.length > 0) {\n for (const gate of this.plant.gates) {\n if (gate.connectedBuildingIds) {\n gate.connectedBuildingIds!.forEach((buildingId) => {\n this.selectedBuildingIds[gate.gateId!].push(buildingId);\n let buildings = this.plant.buildings!.filter(b => b.buildingId == buildingId);\n let building = buildings.length > 0 ? buildings[0] : null;\n if (building) {\n gate.connectedRiserIds!.forEach(riserId => {\n if (!this.selectedRiserIds[gate.gateId!][buildingId].includes(riserId!) && building!.risers!.some(r => r.riserId == riserId!)) {\n this.selectedRiserIds[gate.gateId!][buildingId].push(riserId);\n }\n });\n }\n });\n }\n }\n }\n }\n\n getDataToSave() {\n return new EntrancePlantStructureCreateDTO({\n wizardStep: 3,\n gateConfigStructure: this.gateConfig,\n });\n }\n\n checkInputValidity() {\n if(this.currentGate) {\n if(this.currentGate.scsAddress! < this.MIN_SCS_ADDRESS)this.currentGate.scsAddress = this.MIN_SCS_ADDRESS\n if(this.currentGate.scsAddress! > this.MAX_SCS_ADDRESS)this.currentGate.scsAddress = this.MAX_SCS_ADDRESS\n }\n }\n\n verifyValidityOfScsAddress() {\n if(this.currentGate) {\n if (this.currentGate.scsAddress === undefined) return false;\n \n const value = Number(this.currentGate.scsAddress);\n\n const scsAddressesPlusCurrentAdress = this.plant.scsAddressHelper!.availableScsAddressGate!.map(addr => addr) ?? [];\n scsAddressesPlusCurrentAdress?.push(this.currentGateScs);\n\n const acceptedRange = value >= this.MIN_SCS_ADDRESS && value <= this.MAX_SCS_ADDRESS;\n const isItAvailable = scsAddressesPlusCurrentAdress.includes(value) ?? false;\n this.scsAddrNotValid = !acceptedRange || !isItAvailable;\n if (!acceptedRange) {\n this.invalidScsReason = this.$t('AppResourceEP.GateScsAddressOutOfRange');\n } else if (!isItAvailable) {\n this.invalidScsReason = this.$t('AppResourceEP.ScsAddressAlreadyInUse');\n } else {\n this.invalidScsReason = '';\n }\n }\n }\n\n retrieveApartmentIds() {\n if (this.isBRFA)\n {\n const selectBuildings = (this.plant.buildings || [])\n .filter((b) => this.currentGate!.connectedBuildingIds?.includes(b.buildingId!));\n const selectedApartments = selectBuildings\n .flatMap((b) => b.apartments || [])\n .filter((r) => r.riserId && this.currentGate!.connectedRiserIds?.includes(r.riserId))\n .map((a) => a.apartmentId!);\n this.currentGate!.connectedApartmentsIds = selectedApartments;\n } \n else \n {\n this.currentGate!.connectedApartmentsIds = this.plant.buildings\n ?.filter((b) => this.currentGate!.connectedBuildingIds?.includes(b.buildingId!))\n .flatMap((b) => b.apartments || [])\n .map((a) => a.apartmentId!) || [];\n }\n }\n\n async handleBackButton() {\n if (this.plant.gates) {\n if (this.currentGateIndex > 0) {\n await this.changeGate('back');\n this.refreshDeviceSelection();\n return;\n }\n }\n this.$emit('onBack', 'DialogEntrancePlantCreateStep6');\n }\n\n async handleNextButton() {\n if (this.currentGate) {\n this.currentGate.connectedRiserIds =[... new Set(Object.values(this.selectedRiserIds[this.currentGateId!]).flat())];\n this.currentGate.connectedBuildingIds = [...new Set(this.selectedBuildingIds[this.currentGateId!])];\n this.retrieveApartmentIds();\n }\n if (this.plant.gates) {\n if (this.currentGateIndex < this.plant.gates.length - 1) {\n await this.changeGate('next');\n this.refreshDeviceSelection();\n return;\n }\n await this.updatePlantStructure(this.getDataToSave());\n }\n this.goToPlantDetail();\n }\n\n async changeGate(direction: 'next' | 'back') {\n this.$emit('is-loading', true);\n this.changingGate = true;\n if (direction === 'next') {\n this.currentGateIndex++;\n } else {\n this.currentGateIndex--;\n }\n setTimeout(() => {\n this.changingGate = false;\n this.$emit('is-loading', false)\n }, 500);\n }\n\n goToPlantDetail() {\n this.$nextTick(async () => {\n await this.$store.dispatch(SET_SELECTED_PLANT_ID, this.plantId);\n this.$router.push({\n name: 'page-entranceplant-dashboard',\n params: { plantId: this.plantId.toString() ?? '' },\n });\n this.$toast.add({\n severity: 'success',\n summary: this.$t('AppResource.PlantCreated'),\n closable: false,\n life: 3000,\n });\n const summary = this.$t('general.synced');\n setTimeout(() => {\n this.$toast.add({\n severity: 'success',\n summary: summary,\n closable: false,\n life: 3000,\n });\n }, 1500);\n });\n }\n\n async updatePlantStructure(structure: EntrancePlantStructureCreateDTO) {\n if (!this.plantId) return;\n this.$emit('is-loading', true);\n try {\n await plantsClient.structure(this.plant.desktopId!, structure);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.$emit('is-loading', false);\n }\n }\n newPeDisabled = false;\n keypadDisabled = false;\n smartReaderDisabled = false;\n refreshDeviceSelection() {\n if (!this.currentGate) return;\n this.newPeDisabled = false;\n this.keypadDisabled = false;\n this.smartReaderDisabled = false;\n\n if(this.selectedBuildingIds[this.currentGateId!].length==this.plant.buildings?.length) {\n this.allBuildings[this.currentGateId!] = true;\n }\n this.selectedBuildingIds[this.currentGateId!].forEach((buildingId) => { \n if(this.selectedRiserIds[this.currentGateId!][buildingId].length==this.plant.buildings?.filter(b => b.buildingId == buildingId)[0].risers?.length) {\n this.allRisers[this.currentGateId!][buildingId] = true;\n }\n });\n }\n\n get nextEnabled(): boolean {\n if (this.scsAddrNotValid) return false\n if (!this.currentGate || !this.selectedBuildingIds[this.currentGateId!]) return false;\n let devicesSelected= ((this.currentGate.newPeSelected == true || this.currentGate.keypadSelected == true || this.currentGate.smartReaderSelected == true));\n let buildingsSelected = this.selectedBuildingIds[this.currentGateId!].length > 0;\n let risersSelected = true;\n if (this.isBRFA) {\n //foreach building selected, check if one riser is selected\n this.selectedBuildingIds[this.currentGateId!].forEach((buildingId) => { \n if (this.selectedRiserIds[this.currentGateId!] && this.selectedRiserIds[this.currentGateId!][buildingId]) {\n risersSelected = risersSelected && this.selectedRiserIds[this.currentGateId!][buildingId].length > 0;\n }\n });\n return devicesSelected && buildingsSelected && risersSelected;\n }\n return devicesSelected && buildingsSelected;\n }\n\n handleUpdateBuildingSelection(option: string, buildingId?: string) {\n if (option == this.AllBuildingsValue) {\n if (!this.allBuildings[this.currentGateId!]) {\n this.selectedBuildingIds[this.currentGateId!].splice(0);\n this.plant.buildings!.forEach(b => {\n this.selectedRiserIds[this.currentGateId!][b.buildingId!] = [];\n this.allRisers[this.currentGateId!][b.buildingId!] = false;\n });\n }\n else {\n this.plant.buildings!.forEach(element => {\n if(!this.selectedBuildingIds[this.currentGateId!].includes(element.buildingId!)) {\n this.selectedBuildingIds[this.currentGateId!].push(element.buildingId!);\n this.selectedRiserIds[this.currentGateId!][element.buildingId!] = [];\n this.allRisers[this.currentGateId!][element.buildingId!] = false;\n }\n });\n }\n }\n else if(buildingId) {\n if (!this.allBuildings[this.currentGateId!] && this.selectedBuildingIds[this.currentGateId!].length == this.plant.buildings?.length) {\n this.allBuildings[this.currentGateId!] = true;\n this.selectedRiserIds[this.currentGateId!][buildingId] = [];\n this.allRisers[this.currentGateId!][buildingId] = false;\n }\n else if (this.allBuildings[this.currentGateId!]) {\n this.allBuildings[this.currentGateId!] = false;\n this.selectedRiserIds[this.currentGateId!][buildingId] = [];\n this.allRisers[this.currentGateId!][buildingId] = false;\n }\n }\n }\n\n handleUpdateRiserSelection(option: string, buildingId: string) {\n let building = this.plant.buildings!.find(b => b.buildingId == buildingId);\n if (building) { \n if (option == this.AllRisersValue) {\n if (!this.allRisers[this.currentGateId!][buildingId]) {\n this.selectedRiserIds[this.currentGateId!][buildingId].splice(0);\n }\n else {\n this.selectedRiserIds[this.currentGateId!][buildingId] = building.risers!.map(r => r.riserId!);\n }\n }\n else {\n if (!this.allRisers[this.currentGateId!][buildingId] && this.selectedRiserIds[this.currentGateId!][buildingId].length == building.risers!.length) {\n this.allRisers[this.currentGateId!][buildingId] = true;\n }\n else if (this.allRisers[this.currentGateId!][buildingId]) {\n this.allRisers[this.currentGateId!][buildingId] = false;\n }\n }\n }\n }\n}\n","import { render } from \"./DialogEntrancePlantCreateStep7.vue?vue&type=template&id=28b56892&ts=true\"\nimport script from \"./DialogEntrancePlantCreateStep7.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogEntrancePlantCreateStep7.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 { Vue, Options } from 'vue-class-component';\nimport {\n EntrancePlantDetailDTO,\n EntrancePlantStructureCreateDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport DialogEntrancePlantCreateStep1 from './DialogEntrancePlantCreate/DialogEntrancePlantCreateStep1/DialogEntrancePlantCreateStep1.vue';\nimport DialogEntrancePlantCreateStep2 from './DialogEntrancePlantCreate/DialogEntrancePlantCreateStep2/DialogEntrancePlantCreateStep2.vue';\nimport DialogEntrancePlantCreateStep3 from './DialogEntrancePlantCreate/DialogEntrancePlantCreateStep3/DialogEntrancePlantCreateStep3.vue';\nimport DialogEntrancePlantCreateStep4 from './DialogEntrancePlantCreate/DialogEntrancePlantCreateStep4/DialogEntrancePlantCreateStep4.vue';\nimport DialogEntrancePlantCreateStep5 from './DialogEntrancePlantCreate/DialogEntrancePlantCreateStep5/DialogEntrancePlantCreateStep5.vue';\nimport DialogEntrancePlantCreateStep6 from './DialogEntrancePlantCreate/DialogEntrancePlantCreateStep6/DialogEntrancePlantCreateStep6.vue';\nimport DialogEntrancePlantCreateStep7 from './DialogEntrancePlantCreate/DialogEntrancePlantCreateStep7/DialogEntrancePlantCreateStep7.vue';\n\nimport plantsClient from '@/core/services/plants';\nimport { SET_SELECTED_PLANT_ID } from '@/core/store/action-types';\nimport { cloneObject, defaultNewEntrancePlant } from '@/core/utils/utils';\n@Options({\n name: 'WizardEntrancePlant',\n components: {\n DialogEntrancePlantCreateStep1,\n DialogEntrancePlantCreateStep2,\n DialogEntrancePlantCreateStep3,\n DialogEntrancePlantCreateStep4,\n DialogEntrancePlantCreateStep5,\n DialogEntrancePlantCreateStep6,\n DialogEntrancePlantCreateStep7,\n },\n props: {\n plantId: {\n type: Number,\n required: false,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n emits: ['exit-wizard', 'plant-edited', 'update'],\n})\nexport default class WizardEntrancePlant extends Vue {\n plantId: number | null = null;\n isLoading = false;\n nextEnabled = true;\n isEdit!: boolean;\n dialogStep = 1;\n entrancePlant: EntrancePlantDetailDTO = cloneObject(defaultNewEntrancePlant);\n\n dialogStepEntrancePlantComponent = 'DialogEntrancePlantCreateStep1';\n\n mounted() {\n this.initFormPlant();\n }\n\n async initFormPlant() {\n if (this.plantId) {\n await this.fetchPePlant(this.plantId);\n } else {\n this.entrancePlant = cloneObject(defaultNewEntrancePlant);\n }\n }\n\n async handleNext(nextComponentName: string, plantId: number) {\n if (plantId) {\n this.$emit('update', plantId);\n await this.fetchPePlant(plantId);\n } else {\n await this.fetchPePlant(this.plantId);\n }\n this.dialogStepEntrancePlantComponent = nextComponentName;\n }\n\n async handleBack(prevComponentName: string) {\n if (!prevComponentName) this.$emit('exit-wizard');\n else this.dialogStepEntrancePlantComponent = prevComponentName;\n }\n\n async handleEditedPlant() {\n if (this.plantId && this.isEdit) \n this.$emit('plant-edited');\n }\n\n async fetchPePlant(peId: number | null) {\n if (!peId) return;\n this.isLoading = true;\n\n try {\n this.entrancePlant = await plantsClient.entranceplantGET(peId, undefined);\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 6000,\n });\n } finally {\n this.isLoading = false;\n }\n }\n\n handleStepLoading(isLoading: boolean) {\n this.isLoading = isLoading;\n }\n}\n","import { render } from \"./WizardEntrancePlant.vue?vue&type=template&id=6a941a97&ts=true\"\nimport script from \"./WizardEntrancePlant.ts?vue&type=script&lang=ts\"\nexport * from \"./WizardEntrancePlant.ts?vue&type=script&lang=ts\"\n\nimport \"./WizardEntrancePlant.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 { Vue, Options } from 'vue-class-component';\nimport { PlantType } from '@/../client-generator/generated-clients/plants';\nimport WizardPlantTypeSelection from './WizardPlantTypeSelection/WizardPlantTypeSelection.vue';\nimport WizardAutomationPlant from './WizardAutomationPlant/WizardAutomationPlant.vue'\nimport WizardEntrancePlant from './WizardEntrancePlant/WizardEntrancePlant.vue'\nimport { ResidentialTypePlant } from '@/core/utils/EntrancePlant/entrance-plant.utils';\n\nenum PlantCreateSteps {\n TYPE_SELECTION,\n WIZARD_AUTOMATION,\n WIZARD_ENTRANCE,\n}\n\n@Options({\n name: 'DialogPlantCreate',\n components: {\n WizardPlantTypeSelection,\n WizardAutomationPlant,\n WizardEntrancePlant,\n },\n props: {\n isVisible: {\n type: Boolean,\n required: true,\n },\n editPlantId: {\n type: Number,\n required: false,\n },\n editPlantType: {\n type: Number,\n required: false,\n },\n isEdit: {\n type: Boolean,\n default: false\n }\n },\n watch: {\n isVisible: function (newValue) {\n this.isDialogVisible = newValue;\n if (newValue) this.initFormPlant();\n },\n },\n emits: ['hide-dialog', 'plant-edited'],\n})\nexport default class DialogPlantCreate extends Vue {\n isVisible!: boolean;\n editPlantId: number | null = null;\n localPlantId: number | null = this.editPlantId;\n editPlantType: PlantType | null = null;\n isDialogVisible = false;\n isLoading = false;\n isEdit!: boolean;\n PlantCreateSteps = PlantCreateSteps;\n plantCreateSteps: PlantCreateSteps = PlantCreateSteps.TYPE_SELECTION;\n selectedPlantType: PlantType = PlantType.AUTOMATION_PLANT;\n selectedResidentialType: ResidentialTypePlant = ResidentialTypePlant.NEW_PLANT;\n\n mounted() {\n this.localPlantId = this.editPlantId;\n this.isDialogVisible = this.isVisible;\n }\n\n initFormPlant() {\n this.localPlantId = this.editPlantId;\n if (this.editPlantId) {\n if (this.editPlantType == PlantType.ENTRANCE_PLANT) {\n this.plantCreateSteps = PlantCreateSteps.WIZARD_ENTRANCE;\n } else {\n this.plantCreateSteps = PlantCreateSteps.WIZARD_AUTOMATION;\n }\n } else {\n if (this.$config.ENTRANCE_PLANT_ENABLED) {\n this.plantCreateSteps = PlantCreateSteps.TYPE_SELECTION;\n } else {\n this.plantCreateSteps = PlantCreateSteps.WIZARD_AUTOMATION;\n }\n }\n }\n\n handleContinueButton(){\n if (this.selectedPlantType == PlantType.ENTRANCE_PLANT) {\n this.plantCreateSteps = PlantCreateSteps.WIZARD_ENTRANCE;\n } else {\n this.plantCreateSteps = PlantCreateSteps.WIZARD_AUTOMATION;\n }\n }\n\n updateId(e: number){\n this.localPlantId = e\n }\n\n handleHideDialog() {\n this.isDialogVisible = false;\n }\n\n doHideDialog() {\n this.$emit('hide-dialog');\n }\n\n onPlantEdited() {\n this.isDialogVisible = false;\n this.$emit('plant-edited');\n }\n\n handleStepLoading(isLoading: boolean) {\n this.isLoading = isLoading;\n }\n}\n","import { render } from \"./DialogPlantCreate.vue?vue&type=template&id=576365f6&ts=true\"\nimport script from \"./DialogPlantCreate.ts?vue&type=script&lang=ts\"\nexport * from \"./DialogPlantCreate.ts?vue&type=script&lang=ts\"\n\nimport \"./DialogPlantCreate.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-switchboard.8b491d14.svg\";","module.exports = __webpack_public_path__ + \"img/icon-garage.ff736917.svg\";","module.exports = __webpack_public_path__ + \"img/icon-loading.83458905.svg\";","module.exports = __webpack_public_path__ + \"img/icon-network.0411b7d4.svg\";","module.exports = __webpack_public_path__ + \"img/icon-weather.5a72b355.svg\";","module.exports = __webpack_public_path__ + \"img/icon-mx-server.529b5e1c.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!./EntrancePlantDetail.scss?vue&type=style&index=0&lang=scss\"","module.exports = __webpack_public_path__ + \"img/icon-favourite.ce7f9138.svg\";","module.exports = __webpack_public_path__ + \"img/icon-favourite-outline.56d4bb98.svg\";","module.exports = __webpack_public_path__ + \"img/icon-wifi.d72ad1e9.svg\";","module.exports = __webpack_public_path__ + \"img/icon-guest.8344f74b.svg\";","module.exports = __webpack_public_path__ + \"img/icon-email.b2a6500a.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, resolveDynamicComponent as _resolveDynamicComponent, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"apartment__head-menu\" }\nconst _hoisted_2 = { class: \"btn-stripped d-flex align-items-center\" }\nconst _hoisted_3 = { class: \"bt-icon bt-icon--sm mr-3 text-gray\" }\nconst _hoisted_4 = { class: \"btn-stripped text-danger\" }\nconst _hoisted_5 = { class: \"fs-18 text-gray mr-2\" }\nconst _hoisted_6 = { class: \"list-bubbles\" }\nconst _hoisted_7 = { class: \"bt-icon bt-icon--sm\" }\nconst _hoisted_8 = { class: \"apartment__tags\" }\nconst _hoisted_9 = {\n key: 1,\n class: \"apartment__footer\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_MenuEPSharing = _resolveComponent(\"MenuEPSharing\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_ElDropdownItem = _resolveComponent(\"ElDropdownItem\")\n const _component_ElDropdownMenu = _resolveComponent(\"ElDropdownMenu\")\n const _component_ElDropdown = _resolveComponent(\"ElDropdown\")\n const _component_ElPopover = _resolveComponent(\"ElPopover\")\n const _component_router_view = _resolveComponent(\"router-view\")\n const _component_DialogPlantCreate = _resolveComponent(\"DialogPlantCreate\")\n const _component_DialogConfirmDeletePlant = _resolveComponent(\"DialogConfirmDeletePlant\")\n const _component_ConfirmPlantUpdated = _resolveComponent(\"ConfirmPlantUpdated\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"article\", {\n class: [\"apartment\", { 'has--footer': !_ctx.hideFooter }]\n }, [\n (_ctx.currentEntrancePlant)\n ? (_openBlock(), _createBlock(_component_router_view, { key: 0 }, {\n default: _withCtx(({ Component }) => [\n (_openBlock(), _createBlock(_resolveDynamicComponent(Component), {\n key: _ctx.plantUpdateKey,\n onUpdateList: _ctx.fetchPlant\n }, {\n \"head-menu\": _withCtx(() => [\n _createVNode(\"nav\", _hoisted_1, [\n _createVNode(_component_MenuEPSharing, {\n usersPermissions: _ctx.usersPermissions,\n onAddInvitedUser: _ctx.handleInvitedUser,\n onRemoveSharingUser: _ctx.handleRemoveSharingUser\n }, null, 8, [\"usersPermissions\", \"onAddInvitedUser\", \"onRemoveSharingUser\"]),\n _createVNode(_component_Button, {\n class: \"p-button-text p-button-secondary p-1\",\n onClick: _ctx.togglePlantFromFavorites\n }, {\n default: _withCtx(() => [\n _createVNode(_component_InlineSvgScoped, {\n src: _ctx.favouriteIcon,\n \"aria-label\": \"icon-favorite-outline\"\n }, null, 8, [\"src\"])\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_ElDropdown, {\n trigger: \"click\",\n placement: \"bottom-end\",\n \"popper-class\": \"el-dropdown__popper el-dropdown--context\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_ElDropdownMenu, { style: {\"width\":\"300px\"} }, {\n default: _withCtx(() => [\n _createVNode(_component_ElDropdownItem, {\n onClick: _ctx.toggleEditDialog,\n disabled: !_ctx.plantEditEnabled\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_2, [\n _createVNode(\"span\", _hoisted_3, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-edit.svg')\n ,\n \"aria-label\": \"icon-edit\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", null, _toDisplayString(_ctx.$t(\"AppResource.Edit\")), 1)\n ])\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"]),\n _createVNode(_component_ElDropdownItem, {\n disabled: !_ctx.plantDeleteEnabled,\n onClick: _ctx.toggleDeletePlantConfirm\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_4, _toDisplayString(_ctx.$t(\"AppResource.Delete\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"])\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Button, { class: \"p-button-text p-button-secondary p-1\" }, {\n default: _withCtx(() => [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-ellipsis-v.svg')\n ,\n \"aria-label\": \"icon-ellipsis-v\"\n }, null, 8, [\"src\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ])\n ]),\n \"update-time-meta\": _withCtx(() => [\n _createVNode(\"time\", _hoisted_5, _toDisplayString(_ctx.$t(\"general.modified\")) + \": \" + _toDisplayString(_ctx.getParsedDate(_ctx.currentEntrancePlant?.lastModify)), 1),\n _createVNode(\"span\", _hoisted_6, [\n _createVNode(_component_ElPopover, {\n placement: \"top\",\n trigger: \"hover\",\n title: _ctx.username,\n \"popper-class\": \"el-popover--dark el-popover--slim\"\n }, {\n reference: _withCtx(() => [\n _createVNode(_component_Button, {\n disabled: \"\",\n class: \"p-button-rounded p-button-sm p-button-secondary\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.userInitials), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\"]),\n _createVNode(_component_ElPopover, {\n placement: \"top\",\n trigger: \"hover\",\n title: _ctx.iconDeviceLabel,\n \"popper-class\": \"el-popover--dark el-popover--slim\"\n }, {\n reference: _withCtx(() => [\n _createVNode(_component_Button, {\n disabled: \"\",\n class: \"p-button-rounded p-button-icon-only p-button-sm p-button-secondary\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_7, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require(`@/assets/images/icons/${_ctx.iconDevice}.svg`)\n ,\n \"aria-label\": _ctx.iconDevice\n }, null, 8, [\"src\", \"aria-label\"])\n ])\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"title\"])\n ]),\n _createVNode(\"ul\", _hoisted_8, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.currentEntrancePlant.tags, (tag, index) => {\n return (_openBlock(), _createBlock(\"li\", { key: index }, _toDisplayString(tag.value), 1))\n }), 128))\n ])\n ]),\n _: 2\n }, 1032, [\"onUpdateList\"]))\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true),\n (!_ctx.hideFooter)\n ? (_openBlock(), _createBlock(\"footer\", _hoisted_9, [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-raised p-button--m\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.onSaveAndExitClick()))\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.Exit\")), 1)\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true)\n ], 2),\n _createVNode(_component_DialogPlantCreate, {\n editPlantId: _ctx.selectedPlantId,\n editPlantType: _ctx.PlantType.ENTRANCE_PLANT,\n isEdit: true,\n onPlantEdited: _ctx.fetchPlant,\n onHideDialog: _ctx.toggleEditDialog,\n \"is-visible\": _ctx.isVisibleEditDialog\n }, null, 8, [\"editPlantId\", \"editPlantType\", \"onPlantEdited\", \"onHideDialog\", \"is-visible\"]),\n _createVNode(_component_DialogConfirmDeletePlant, {\n \"plant-name\": _ctx.plantName,\n onConfirm: _ctx.handleDeletePlant,\n onHideDialog: _ctx.toggleDeletePlantConfirm,\n \"is-visible\": _ctx.isVisibleDeletePlantConfirm\n }, null, 8, [\"plant-name\", \"onConfirm\", \"onHideDialog\", \"is-visible\"]),\n _createVNode(_component_ConfirmPlantUpdated, {\n onHideDialog: _ctx.hideConfirmPlantUpdated,\n \"is-visible\": _ctx.isVisibleConfirmPlantUpdated\n }, null, 8, [\"onHideDialog\", \"is-visible\"])\n ], 64))\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"list-bubbles mr-4\" }\nconst _hoisted_2 = { class: \"list-bubbles__label fs-14 text-gray\" }\nconst _hoisted_3 = { class: \"bt-icon\" }\nconst _hoisted_4 = { class: \"menu-ep-sharing\" }\nconst _hoisted_5 = { class: \"fs-20 text-dark\" }\nconst _hoisted_6 = { class: \"p-field\" }\nconst _hoisted_7 = {\n class: \"p-field-label\",\n for: \"person-name\"\n}\nconst _hoisted_8 = { class: \"p-field p-field-with-button\" }\nconst _hoisted_9 = {\n class: \"p-field-label\",\n for: \"person-name\"\n}\nconst _hoisted_10 = { class: \"bt-icon bt-icon--xs\" }\nconst _hoisted_11 = { class: \"ml-2\" }\nconst _hoisted_12 = { class: \"form-custom mt-5\" }\nconst _hoisted_13 = {\n class: \"p-field-label\",\n for: \"person-name\"\n}\nconst _hoisted_14 = { class: \"list-users-collab mt-3\" }\nconst _hoisted_15 = { class: \"d-flex justify-content-end bottom-menu\" }\nconst _hoisted_16 = {\n key: 0,\n class: \"app-loader app-loader--contextual\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_UserEPItem = _resolveComponent(\"UserEPItem\")\n const _component_ElScrollbar = _resolveComponent(\"ElScrollbar\")\n const _component_ProgressSpinner = _resolveComponent(\"ProgressSpinner\")\n const _component_ElPopover = _resolveComponent(\"ElPopover\")\n const _component_ConfirmDeleteUser = _resolveComponent(\"ConfirmDeleteUser\")\n const _component_DialogConfirmDelete = _resolveComponent(\"DialogConfirmDelete\")\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"span\", _hoisted_2, _toDisplayString(_ctx.$t(\"AppResource.PlantSharing\")), 1),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.usersPermissions, (user, userIndex) => {\n return (_openBlock(), _createBlock(_component_Button, {\n key: `user-${userIndex}`,\n class: \"p-button-secondary p-button-rounded p-button-sm no-click\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.getUserInitials(user)), 1)\n ]),\n _: 2\n }, 1024))\n }), 128)),\n _createVNode(_component_ElPopover, {\n visible: _ctx.isPopperVisible,\n \"onUpdate:visible\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.isPopperVisible = $event)),\n trigger: \"manual\",\n placement: \"bottom-end\",\n \"popper-class\": \"el-dropdown__popper el-dropdown--context p-0\",\n width: \"500px\"\n }, {\n reference: _withCtx(() => [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-icon-only p-button-text\",\n onClick: _ctx.togglePopper\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_3, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-plus-outline.svg')\n ,\n \"aria-label\": \"icon-plus-outline\"\n }, null, 8, [\"src\"])\n ])\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"h4\", _hoisted_5, _toDisplayString(_ctx.$t(\"AppResource.PlantSharing\")), 1),\n _createVNode(_component_ElScrollbar, { class: \"invite-scroll\" }, {\n default: _withCtx(() => [\n _createVNode(\"form\", {\n class: \"form-custom mt-3\",\n onSubmit: _cache[3] || (_cache[3] = _withModifiers(\n//@ts-ignore\n(...args) => (_ctx.invitePerson && _ctx.invitePerson(...args)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"label\", _hoisted_7, _toDisplayString(_ctx.$t(\"AppResourceEP.Role\")), 1),\n _createVNode(_component_Dropdown, {\n class: \"w-100 role_selector\",\n modelValue: _ctx.newUserToShare.role,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.newUserToShare.role = $event)),\n options: _ctx.roleOptions,\n optionLabel: \"roleName\",\n optionValue: \"value\"\n }, null, 8, [\"modelValue\", \"options\"])\n ]),\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(\"label\", _hoisted_9, _toDisplayString(_ctx.$t(\"AppResource.InviteNewUser\")), 1),\n _createVNode(_component_InputText, {\n id: \"person-name\",\n type: \"email\",\n required: \"true\",\n class: \"w-100\",\n placeholder: \n _ctx.$t('AppResource.InviteUserDescription')\n ,\n modelValue: _ctx.newUserToShare.email,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.newUserToShare.email = $event))\n }, null, 8, [\"placeholder\", \"modelValue\"]),\n _createVNode(_component_Button, {\n class: \"p-button-outlined p-button-rounded p-button-field\",\n type: \"submit\",\n disabled: _ctx.newUserToShare.email === ''\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_10, [\n _createVNode(_component_InlineSvgScoped, {\n src: \n require('@/assets/images/icons/icon-add-circle-outline.svg')\n ,\n \"aria-label\": \"icon-add-circle-outline\"\n }, null, 8, [\"src\"])\n ]),\n _createVNode(\"span\", _hoisted_11, _toDisplayString(_ctx.$t(\"AppResource.Invite\")), 1)\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ])\n ], 32),\n _createVNode(\"div\", _hoisted_12, [\n _createVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.$t(\"AppResource.UsersUpper\")), 1),\n _createVNode(\"ul\", _hoisted_14, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.usersPermissions, (user, userIndex) => {\n return (_openBlock(), _createBlock(_component_UserEPItem, {\n user: user,\n key: `user-item-${userIndex}`,\n isMeBuildingAdmin: _ctx.isMeBuildingAdmin,\n totBuildingAdmins: _ctx.totBuildingAdmins,\n totDeviceManagers: _ctx.totDeviceManagers,\n onDeleteUser: _ctx.handleDeleteUser,\n onRevokeBuildingAdmin: _ctx.handleRevokeRole\n }, null, 8, [\"user\", \"isMeBuildingAdmin\", \"totBuildingAdmins\", \"totDeviceManagers\", \"onDeleteUser\", \"onRevokeBuildingAdmin\"]))\n }), 128))\n ])\n ])\n ]),\n _: 1\n }),\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-raised p-button--m\",\n onClick: _ctx.togglePopper\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(\"AppResource.DoneUpper\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_16, [\n _createVNode(_component_ProgressSpinner)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]),\n _createVNode(_component_ConfirmDeleteUser, {\n \"is-visible\": _ctx.isConfirmDeleteUserVisible,\n onHideDialog: _ctx.toggleConfirmDeleteUser,\n onConfirm: _ctx.deleteUser\n }, null, 8, [\"is-visible\", \"onHideDialog\", \"onConfirm\"]),\n _createVNode(_component_DialogConfirmDelete, {\n \"is-visible\": _ctx.isConfirmRevokeRoleVisible,\n title: _ctx.$t('entrancePlant.revokeRoleTitle'),\n message: _ctx.$t('entrancePlant.revokeRoleMessage'),\n onHideDialog: _ctx.toggleConfirmRevokeRole,\n onConfirm: _ctx.revokeRole\n }, null, 8, [\"is-visible\", \"title\", \"message\", \"onHideDialog\", \"onConfirm\"])\n ], 64))\n}","import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"d-flex align-items-center\" }\nconst _hoisted_2 = { class: \"list-bubbles mr-2\" }\nconst _hoisted_3 = { class: \"d-flex flex-column justify-content-between mr-auto\" }\nconst _hoisted_4 = { class: \"fs-14 text-dark\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"span\", { class: \"fs-14 pr-2\" }, null, -1)\nconst _hoisted_6 = { class: \"btn-stripped d-flex align-items-center\" }\nconst _hoisted_7 = { class: \"btn-stripped d-flex align-items-center text-danger\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")\n const _component_InlineSvgScoped = _resolveComponent(\"InlineSvgScoped\")\n const _component_ElDropdownItem = _resolveComponent(\"ElDropdownItem\")\n const _component_ElDropdownMenu = _resolveComponent(\"ElDropdownMenu\")\n const _component_ElDropdown = _resolveComponent(\"ElDropdown\")\n\n return (_openBlock(), _createBlock(\"li\", _hoisted_1, [\n _createVNode(\"span\", _hoisted_2, [\n _createVNode(_component_Button, {\n class: \"p-button-rounded p-button-sm p-button-secondary no-click\",\n style: {\"--size-bubble\":\"40px\"}\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.userInitials), 1)\n ]),\n _: 1\n })\n ]),\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"span\", _hoisted_4, _toDisplayString(_ctx.user.email), 1),\n _createTextVNode(\" \" + _toDisplayString(_ctx.userRolesLabel), 1)\n ]),\n _hoisted_5,\n (_ctx.showRemove || _ctx.showRevokeBuildingAdmin)\n ? (_openBlock(), _createBlock(_component_ElDropdown, {\n key: 0,\n trigger: \"hover\",\n placement: \"bottom-end\",\n \"popper-class\": \"el-dropdown__popper el-dropdown--context\"\n }, {\n dropdown: _withCtx(() => [\n _createVNode(_component_ElDropdownMenu, { style: {\"width\":\"240px\"} }, {\n default: _withCtx(() => [\n (_ctx.showRevokeBuildingAdmin)\n ? (_openBlock(), _createBlock(_component_ElDropdownItem, {\n key: 0,\n onClick: _withModifiers(_ctx.handleRevokeBuildingAdmin, [\"prevent\",\"stop\"])\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_6, _toDisplayString(_ctx.$t(\"AppResourceEP.RevokeBuildingAdmin\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.showRemove)\n ? (_openBlock(), _createBlock(_component_ElDropdownItem, {\n key: 1,\n onClick: _withModifiers(_ctx.handleDeleteSharingUser, [\"prevent\",\"stop\"])\n }, {\n default: _withCtx(() => [\n _createVNode(\"button\", _hoisted_7, _toDisplayString(_ctx.$t(\"AppResource.Remove\")), 1)\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]),\n default: _withCtx(() => [\n _createVNode(_component_Button, { class: \"p-button-text p-button-icon p-button-sm text-gray\" }, {\n default: _withCtx(() => [\n _createVNode(_component_InlineSvgScoped, {\n src: require('@/assets/images/icons/icon-ellipsis-v.svg'),\n \"aria-label\": \"icon-ellipsis\"\n }, null, 8, [\"src\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]))\n}","import { Vue, Options } from 'vue-class-component';\nimport { PropType } from 'vue';\nimport {\n EntrancePlantProRoles,\n EpUserRole,\n} from '@/../client-generator/generated-clients/plants';\nimport { getUserInitialsForBubble } from '@/core/utils/utils';\nimport { mapState } from 'vuex';\nimport { AccountInfo } from '@azure/msal-browser';\n\n@Options({\n name: 'UserEPItem',\n props: {\n user: {\n required: true,\n type: Object as PropType,\n },\n isMeBuildingAdmin: {\n type: Boolean,\n },\n totBuildingAdmins: {\n type: Number,\n },\n totDeviceManagers: {\n type: Number,\n },\n },\n emits: ['delete-user', 'revoke-building-admin'],\n computed: {\n ...mapState(['account']),\n },\n})\nexport default class UserEPItem extends Vue {\n user!: EpUserRole;\n isMeBuildingAdmin!: boolean;\n totBuildingAdmins!: number;\n totDeviceManagers!: number;\n account!: AccountInfo;\n\n get userInitials() {\n return getUserInitialsForBubble(this.user);\n }\n\n get userRolesLabel() {\n const roles: string[] = [];\n const rolesLabel = [\n this.$t('AppResourceEP.DeviceManagerRole'),\n this.$t('AppResourceEP.BuildingAdminRole'),\n ];\n this.user.roles?.forEach((role) => {\n roles.push(rolesLabel[role]);\n });\n return roles.toLocaleString().replace(',', ', ');\n }\n\n get showRevokeBuildingAdmin() {\n return (\n this.user.roles!.length > 1 &&\n this.totBuildingAdmins > 1 &&\n this.isMeBuildingAdmin\n );\n }\n\n get showRemove() {\n let remainingBuildAdmins = this.totBuildingAdmins;\n let remainingDeviceManagers = this.totDeviceManagers;\n if (this.user.roles?.includes(EntrancePlantProRoles.BuildingManager))\n remainingBuildAdmins = this.totBuildingAdmins - 1;\n if (this.user.roles?.includes(EntrancePlantProRoles.DeviceManager))\n remainingDeviceManagers = this.totDeviceManagers - 1;\n\n return remainingBuildAdmins > 0 && remainingDeviceManagers > 0;\n }\n\n handleDeleteSharingUser() {\n this.$emit('delete-user', this.user);\n }\n\n handleRevokeBuildingAdmin() {\n this.$emit('revoke-building-admin', this.user);\n }\n}\n","import { render } from \"./UserEPItem.vue?vue&type=template&id=36bc332d&ts=true\"\nimport script from \"./UserEPItem.ts?vue&type=script&lang=ts\"\nexport * from \"./UserEPItem.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 { PropType } from 'vue';\nimport { mapState } from 'vuex';\nimport { AccountInfo } from '@azure/msal-browser';\nimport plantsClient from '@/core/services/plants';\nimport { Vue, Options } from 'vue-class-component';\nimport {\n EntrancePlantDetailDTO,\n EntrancePlantProRoles,\n EpUserRole,\n PlantSharingDTO,\n} from '@/../client-generator/generated-clients/plants';\nimport { getUserInitialsForBubble } from '@/core/utils/utils';\nimport UserEPItem from './UserEPItem/UserEPItem.vue';\nimport ConfirmDeleteUser from '../../PlantDetail/MenuSharing/ConfirmDeleteUser/ConfirmDeleteUser.vue';\nimport i18n from '@/core/translations/i18n';\nimport DialogConfirmDelete from '@/views/components/DialogConfirmDelete/DialogConfirmDelete.vue';\n\n@Options({\n name: 'MenuEPSharing',\n props: {\n usersPermissions: {\n type: Object as PropType,\n required: true,\n },\n },\n watch: {\n isPopperVisible: function (newVal) {\n if(newVal) {\n this.newUserToShare.role = this.roleOptions[0].value;\n }\n }\n },\n components: {\n UserEPItem,\n ConfirmDeleteUser,\n DialogConfirmDelete,\n },\n emits: ['add-invited-user', 'remove-sharing-user'],\n computed: {\n ...mapState(['account', 'currentEntrancePlant', 'currentUserPermissions']),\n },\n})\nexport default class MenuEPSharing extends Vue {\n currentEntrancePlant!: EntrancePlantDetailDTO;\n currentUserPermissions!: EpUserRole;\n usersPermissions!: EpUserRole[];\n getUserInitials = getUserInitialsForBubble;\n\n isLoading = false;\n isPopperVisible = false;\n isConfirmDeleteUserVisible = false;\n isConfirmRevokeRoleVisible = false;\n\n doShow = false;\n newUserToShare: { role: EntrancePlantProRoles; email: string } = {\n role: EntrancePlantProRoles.BuildingManager,\n email: '',\n };\n\n tempUser: EpUserRole | undefined = undefined;\n tempUserId?: string = '';\n account!: AccountInfo;\n\n get roleOptions() {\n const BuildingAdminRole = { \n roleName: i18n.global.t('AppResourceEP.BuildingAdminRole'),\n value: EntrancePlantProRoles.BuildingManager,\n };\n const DeviceManagerRole = {\n roleName: i18n.global.t('AppResourceEP.DeviceManagerRole'),\n value: EntrancePlantProRoles.DeviceManager,\n };\n if (this.currentUserPermissions?.roles?.includes(EntrancePlantProRoles.DeviceManager) && \n !this.currentUserPermissions?.roles?.includes(EntrancePlantProRoles.BuildingManager)) {\n return [DeviceManagerRole];\n }\n return [BuildingAdminRole, DeviceManagerRole]; \n }\n\n get isMeBuildingAdmin() {\n return (\n this.currentUserPermissions?.roles?.includes(\n EntrancePlantProRoles.BuildingManager\n ) ?? false\n );\n }\n\n get totBuildingAdmins() {\n const buildingAdmins = this.usersPermissions.filter((usr) =>\n usr.roles?.includes(EntrancePlantProRoles.BuildingManager)\n );\n return buildingAdmins.length;\n }\n\n get totDeviceManagers() {\n const deviceManagers = this.usersPermissions.filter((usr) =>\n usr.roles?.includes(EntrancePlantProRoles.DeviceManager)\n );\n return deviceManagers.length;\n }\n\n togglePopper() {\n this.isPopperVisible = !this.isPopperVisible;\n }\n\n async invitePerson() {\n this.isLoading = true;\n\n const newProUser = new EpUserRole({\n email: this.newUserToShare.email,\n roles: [this.newUserToShare.role],\n });\n\n try {\n await plantsClient.sharingproPOST(\n this.currentEntrancePlant.desktopId ?? -1,\n newProUser\n );\n\n this.$emit('add-invited-user', this.newUserToShare.email);\n this.newUserToShare.email = '';\n } catch (error) {\n console.log(error);\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.isLoading = false;\n }\n }\n\n async handleDeleteUser(user: EpUserRole) {\n this.toggleConfirmDeleteUser();\n this.tempUser = user;\n this.tempUserId = this.currentEntrancePlant.sharedWith?.find(\n (usr) => usr.email === user.email\n )?.userId;\n }\n\n handleRevokeRole(user: EpUserRole) {\n this.toggleConfirmRevokeRole();\n this.tempUser = new EpUserRole({\n email: user.email,\n roles: [EntrancePlantProRoles.BuildingManager],\n });\n }\n\n toggleConfirmRevokeRole() {\n this.isConfirmRevokeRoleVisible = !this.isConfirmRevokeRoleVisible;\n this.isPopperVisible = !this.isPopperVisible;\n }\n\n toggleConfirmDeleteUser() {\n this.isConfirmDeleteUserVisible = !this.isConfirmDeleteUserVisible;\n this.isPopperVisible = !this.isPopperVisible;\n }\n\n async revokeRole() {\n this.isLoading = true;\n try {\n await plantsClient.sharingproPUT(\n this.currentEntrancePlant.desktopId ?? -1,\n this.tempUser\n );\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.isLoading = false;\n this.tempUser = undefined;\n }\n }\n\n async deleteUser() {\n this.isLoading = true;\n\n try {\n await plantsClient.sharingproDELETE(\n this.currentEntrancePlant.desktopId ?? -1,\n this.tempUser\n );\n if (this.tempUserId === this.account.localAccountId) {\n this.$router.push({\n name: 'page-plants-hub',\n });\n } else {\n this.$emit('remove-sharing-user', this.tempUser);\n }\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.isLoading = false;\n this.tempUser = undefined;\n this.tempUserId = '';\n }\n }\n}\n","import { render } from \"./MenuEPSharing.vue?vue&type=template&id=2255ef58&ts=true\"\nimport script from \"./MenuEPSharing.ts?vue&type=script&lang=ts\"\nexport * from \"./MenuEPSharing.ts?vue&type=script&lang=ts\"\n\nimport \"./MenuEPSharing.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 {\n cloneObject,\n getUserInitialsForBubble,\n getPlantLastModifyByIcon,\n getPlantLastModifyByLabel,\n} from '@/core/utils/utils';\nimport {\n SET_APP_LOADING,\n SET_USER_PERMISSIONS,\n SET_CONTEXTUAL_MENU_ITEMS,\n SET_SELECTED_ENTRANCE_PLANT,\n SET_SELECTED_ENTRANCE_PLANT_ID,\n SET_ADMIN_VIEW,\n SET_SYNC_INFO,\n SET_OFFLINE_PLANT,\n} from '@/core/store/action-types';\nimport { mapGetters, mapState } from 'vuex';\nimport plantsClient from '@/core/services/plants';\nimport { Vue, Options } from 'vue-class-component';\nimport {\n PlantType,\n EntrancePlantDetailDTO,\n EpUserRole,\n PlantSharingDTO,\n SyncInfo,\n} from '@/../client-generator/generated-clients/plants';\nimport MenuEPSharing from './MenuEPSharing/MenuEPSharing.vue';\nimport MegaMenuItem, { MenuItemRoute } from '@/core/models/menu-items';\nimport { FETCH_PLANT, HANDLE_REFRESH_PLANT } from '@/core/utils/emitter-events';\nimport DialogPlantCreate from '../PlantsHub/DialogPlantCreate/DialogPlantCreate.vue';\nimport ConfirmPlantUpdated from '../PlantDetail/ConfirmPlantUpdated/ConfirmPlantUpdated.vue';\nimport DialogPlantDuplicate from '../PlantsHub/DialogPlantDuplicate/DialogPlantDuplicate.vue';\nimport DialogConfirmDeletePlant from '@/views/components/DialogConfirmDeletePlant/DialogConfirmDeletePlant.vue';\nimport DialogConfirmTransferOwnership from '@/views/components/DialogConfirmTransferOwnership/DialogConfirmTransferOwnership.vue';\nimport { AccountInfo } from '@azure/msal-browser';\n\n@Options({\n name: 'EntrancePlantDetail',\n watch: {\n menuItemsContextualWithActiveClasses(newValue) {\n this.$store.dispatch(SET_CONTEXTUAL_MENU_ITEMS, newValue);\n },\n \"syncInfo.currentlySyncing\": function(newValue) {\n if(newValue) {\n this.isPausedFetchupdate = newValue;\n this.registerSyncingCheck();\n }\n }\n },\n components: {\n MenuEPSharing,\n DialogPlantCreate,\n ConfirmPlantUpdated,\n DialogPlantDuplicate,\n DialogConfirmDeletePlant,\n DialogConfirmTransferOwnership,\n },\n computed: {\n ...mapState(['currentEntrancePlant', 'account', 'syncInfo']),\n },\n})\nexport default class AppResourceEntrancePlantDetail extends Vue {\n PlantType = PlantType;\n plantEditEnabled: boolean = true;\n plantDeleteEnabled: boolean = true;\n currentEntrancePlant!: EntrancePlantDetailDTO;\n selectedPlantId: number | null = null;\n isPlantDuplicateDialogVisible = false;\n tempPlant: EntrancePlantDetailDTO | null = null;\n account!: AccountInfo;\n usersPermissions: EpUserRole[] = [];\n plantUpdateKey = 0;\n syncInfo!: SyncInfo;\n intervalCheckSync: any | null = null;\n\n get menuItemsContextual(): MegaMenuItem[] {\n return [\n {\n label: this.$t('AppResource.Plant'),\n class: 'p-menuitem-main p-menuitem-custom-icon',\n style: `--menuitem-icon-url: url(${require('@/assets/images/icons/icon-general-view.svg')});`,\n to: {\n name: 'page-entranceplant-dashboard',\n },\n },\n {\n label: this.$t('AppResourceEP.AddressBookResidents'),\n class: 'p-menuitem-main p-menuitem-custom-icon',\n style: `--menuitem-icon-url: url(${require('@/assets/images/entrancePlants/icon-resident.svg')});`,\n to: {\n name: 'page-entranceplant-residents',\n },\n },\n {\n label: this.$t('AppResourceEP.Badges'),\n class: 'p-menuitem-main p-menuitem-custom-icon',\n style: `--menuitem-icon-url: url(${require('@/assets/images/entrancePlants/icon-badge.svg')});`,\n to: {\n name: 'page-entranceplant-badges',\n },\n },\n {\n class: 'p-menuitem-main p-menuitem-custom-icon no-label',\n style: `--menuitem-icon-url: url(${require('@/assets/images/icons/icon-add.svg')});`,\n subroutes: ['page-entranceplant-guests', 'page-entranceplant-messages'],\n items: [\n [\n {\n items: [\n {\n label: this.$t('AppResourceEP.Guests'),\n class: 'p-menuitem-custom-icon',\n style: `--menuitem-icon-url: url(${require('@/assets/images/entrancePlants/icon-guest.svg')});`,\n to: {\n name: 'page-entranceplant-guests',\n },\n },\n {\n label: this.$t('AppResourceEP.Messages'),\n class: 'p-menuitem-custom-icon',\n style: `--menuitem-icon-url: url(${require('@/assets/images/entrancePlants/icon-message.svg')});`,\n to: {\n name: 'page-entranceplant-messages',\n },\n },\n ],\n },\n ],\n ],\n },\n {\n label: this.$t('AppResourceEP.Switchboard'),\n class: 'p-menuitem-main p-menuitem-custom-icon',\n style: `--menuitem-icon-url: url(${require('@/assets/images/entrancePlants/icon-switchboard.svg')});`,\n to: {\n name: 'page-entranceplant-switchboards',\n },\n },\n {\n label: this.$t('AppResourceEP.ParametersAndSettings'),\n class: 'p-menuitem-main p-menuitem-custom-icon',\n icon: `${require('@/assets/images/entrancePlants/icon-parameters.svg')}`,\n style: `--menuitem-icon-url: url(${require('@/assets/images/entrancePlants/icon-parameters.svg')});`,\n to: {\n name: 'page-entranceplant-settings',\n },\n },\n ];\n }\n\n isPlantDirty = false;\n isVisibleEditDialog = false;\n isDevicesCardLoading = false;\n isVisibleDeletePlantConfirm = false;\n isVisibleConfirmPlantUpdated = false;\n isVisibleAddRoomObjectDialog = false;\n isVisibleCreateStructureDialog = false;\n isVisibleTransferOwnershipConfirm = false;\n\n isPausedFetchupdate = false;\n intervalFetchUpdate: any | null = null;\n timeoutRenewSession: any | null = null;\n\n get iconDevice() {\n return getPlantLastModifyByIcon(\n this.currentEntrancePlant?.lastModifyByDesktop\n );\n }\n\n get iconDeviceLabel() {\n return getPlantLastModifyByLabel(\n this.currentEntrancePlant?.lastModifyByDesktop\n );\n }\n\n get menuItemsContextualWithActiveClasses(): MegaMenuItem[] {\n return this.menuItemsContextual.map((menuItem) => {\n let additionalClass = '';\n if (menuItem.to && (menuItem.to as MenuItemRoute).name) {\n additionalClass = this.getMenuItemClass(\n (menuItem.to as MenuItemRoute).name\n );\n }\n\n if (menuItem.subroutes) {\n additionalClass = this.getMenuItemClassSubmenu(menuItem.subroutes);\n }\n\n return {\n ...menuItem,\n class: `${menuItem.class} ${additionalClass}`,\n };\n });\n }\n\n get username() {\n return `${this.currentEntrancePlant?.lastModifyBy?.name} ${this.currentEntrancePlant?.lastModifyBy?.surname}`;\n }\n\n get userInitials() {\n return getUserInitialsForBubble(this.currentEntrancePlant.lastModifyBy);\n }\n\n get hideFooter() {\n return [\n 'page-entranceplant-guests',\n 'page-entranceplant-badges',\n 'page-entranceplant-messages',\n 'page-entranceplant-settings',\n 'page-entranceplant-residents',\n 'page-entranceplant-structure-building',\n 'page-entranceplant-switchboards',\n ].includes(this.$route.name as string);\n }\n\n get favouriteIcon() {\n return require(`@/assets/images/icons/icon-favourite${\n !this.currentEntrancePlant?.isFavourite ? '-outline' : ''\n }.svg`);\n }\n\n get plantName() {\n if (this.currentEntrancePlant) {\n return this.currentEntrancePlant.name;\n }\n\n return '';\n }\n\n forceRerender = () => {\n if(!this.currentEntrancePlant?.lastModifyByDesktop) {\n this.plantUpdateKey += 1;\n }\n };\n\n created() {\n this.$store.dispatch(SET_SELECTED_ENTRANCE_PLANT, null);\n this.$store.dispatch(SET_USER_PERMISSIONS, null);\n this.$store.dispatch(SET_ADMIN_VIEW, false);\n this.$store.dispatch(SET_OFFLINE_PLANT, false);\n this.$store.dispatch(SET_SYNC_INFO, null);\n }\n\n unmounted() {\n this.$store.dispatch(SET_SELECTED_ENTRANCE_PLANT, null);\n this.$store.dispatch(SET_USER_PERMISSIONS, null);\n this.$store.dispatch(SET_ADMIN_VIEW, false);\n this.$store.dispatch(SET_OFFLINE_PLANT, false);\n this.$store.dispatch(SET_SYNC_INFO, null);\n }\n\n async mounted() {\n this.$store.dispatch(\n SET_CONTEXTUAL_MENU_ITEMS,\n this.menuItemsContextualWithActiveClasses\n );\n\n this.selectedPlantId = parseInt(this.$route.params.plantId.toString(), 10);\n this.$store.dispatch(SET_SELECTED_ENTRANCE_PLANT_ID, this.selectedPlantId);\n this.$store.dispatch(SET_APP_LOADING, true);\n this.usersPermissions = await plantsClient.userspermissions(\n this.selectedPlantId\n );\n this.$store.dispatch(SET_APP_LOADING, false);\n\n await this.fetchPlant();\n\n this.registerEmitterEvents();\n this.registerPeriodicFetchUpdates();\n this.renewSessionTimeout();\n }\n\n beforeUnmount() {\n this.unregisterEmitterEvents();\n this.unregisterPeriodicFetchUpdates();\n this.unregisterRenewSessionTimeout();\n\n this.$store.dispatch(SET_SELECTED_ENTRANCE_PLANT_ID, null);\n }\n\n async fetchPlant() {\n if (!this.selectedPlantId) return;\n try {\n this.$store.dispatch(SET_APP_LOADING, true);\n\n const plant = await plantsClient.entranceplantGET(\n this.selectedPlantId,\n undefined\n );\n\n const usersList = { owner: plant.owner, shared: plant.sharedWith };\n const currentUserEmail =\n usersList.owner?.id === this.account.localAccountId\n ? usersList.owner.email\n : usersList.shared?.find(\n (u) => u.userId === this.account.localAccountId\n )?.email;\n const currentUserPerms =\n this.usersPermissions.find((user) => user.email === currentUserEmail) ??\n null;\n\n const isOfflinePlant = plant.syncStatus?.isPlantActive && !plant.syncStatus?.connected;\n \n this.$store.dispatch(SET_OFFLINE_PLANT, isOfflinePlant);\n this.$store.dispatch(SET_SYNC_INFO, plant.syncStatus?.syncInfo);\n this.$store.dispatch(SET_ADMIN_VIEW, currentUserPerms?.isOnlyBuildingAdmin);\n this.$store.dispatch(SET_USER_PERMISSIONS, currentUserPerms);\n this.$store.dispatch(SET_SELECTED_ENTRANCE_PLANT, plant);\n } catch (error) {\n switch (error.status) {\n case 423:\n this.$router.push({\n name: 'page-plants-hub',\n });\n break;\n }\n console.log(error);\n } finally {\n if(!this.syncInfo || !this.syncInfo.currentlySyncing) {\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n }\n }\n\n registerEmitterEvents() {\n this.$emitter.on(FETCH_PLANT, this.fetchPlant);\n this.$emitter.on(\n HANDLE_REFRESH_PLANT,\n this.handleRefreshPlantFromOuterEvent\n );\n }\n\n unregisterEmitterEvents() {\n this.$emitter.off(FETCH_PLANT, this.fetchPlant);\n this.$emitter.off(\n HANDLE_REFRESH_PLANT,\n this.handleRefreshPlantFromOuterEvent\n );\n }\n\n registerPeriodicFetchUpdates() {\n this.intervalFetchUpdate = setTimeout(async () => {\n await this.doFetchUpdatesInternal();\n this.registerPeriodicFetchUpdates();\n }, this.$config.PLANT_REFRESH_INTERVAL);\n }\n\n unregisterPeriodicFetchUpdates() {\n clearTimeout(this.intervalFetchUpdate);\n }\n\n private async doFetchUpdatesInternal() {\n if (this.isPausedFetchupdate) {\n return;\n }\n\n try {\n const newPlant = await plantsClient.entranceplantGET(\n this.selectedPlantId as number,\n this.currentEntrancePlant?.lastModify\n );\n\n if (newPlant && newPlant.desktopId && !newPlant.lastModifyByDesktop) {\n this.isVisibleConfirmPlantUpdated = true;\n this.isPausedFetchupdate = true;\n this.tempPlant = newPlant;\n }\n } catch (error) {\n switch (error.status) {\n case 423:\n this.$router.push({\n name: 'page-plants-hub',\n });\n break;\n }\n console.log(error);\n }\n }\n\n async renewSessionTimeout() {\n if (!this.selectedPlantId) return;\n try {\n var renewSecondsDto = await plantsClient.session(this.selectedPlantId);\n this.timeoutRenewSession = setTimeout(\n this.renewSessionTimeout,\n (renewSecondsDto.renewSessionSeconds ?? 60) * 1000\n );\n } catch (error) {\n switch (error.status) {\n case 423:\n this.$router.push({\n name: 'page-plants-hub',\n });\n break;\n }\n console.log(error);\n }\n }\n\n unregisterRenewSessionTimeout() {\n clearTimeout(this.timeoutRenewSession);\n }\n\n registerSyncingCheck() {\n this.intervalCheckSync = setInterval(async () => {\n await this.doCheckSyncStatus();\n }, 3000);\n }\n\n private async doCheckSyncStatus() {\n if (!!this.syncInfo && this.syncInfo.currentlySyncing) {\n try {\n const syncStatus = await plantsClient.syncstatus(this.currentEntrancePlant.desktopId as number);\n \n if (!!syncStatus && !syncStatus.currentlySyncing || syncStatus.isFailed) {\n await plantsClient.virtualdevices(this.currentEntrancePlant.desktopId as number);\n this.$store.dispatch(SET_SYNC_INFO, syncStatus);\n this.fetchPlant();\n }\n } catch (error) {\n this.$store.dispatch(SET_SYNC_INFO, null);\n this.fetchPlant();\n console.log(error);\n }\n }\n else {\n this.forceRerender();\n this.unregisterSyncingCheck();\n }\n }\n \n unregisterSyncingCheck() {\n clearInterval(this.intervalCheckSync);\n this.intervalCheckSync = null;\n this.$store.dispatch(SET_APP_LOADING, false);\n this.isPausedFetchupdate = false;\n }\n\n handleRefreshPlantFromOuterEvent() {\n this.isPausedFetchupdate = true;\n this.isVisibleConfirmPlantUpdated = true;\n }\n\n getMenuItemClass(routeName: string) {\n if (this.$route.name === routeName) {\n return 'p-menuitem-active';\n }\n\n return '';\n }\n\n getMenuItemClassSubmenu(subroutesNames: string[]) {\n if (subroutesNames.includes(this.$route.name as string)) {\n return 'submenu-active';\n }\n\n return '';\n }\n\n toggleEditDialog() {\n this.isVisibleEditDialog = !this.isVisibleEditDialog;\n }\n\n getParsedDate(date?: Date) {\n if (!date) return '';\n const options: any = {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n };\n return date.toLocaleString(navigator.language, options);\n }\n\n toggleDeletePlantConfirm() {\n this.isVisibleDeletePlantConfirm = !this.isVisibleDeletePlantConfirm;\n }\n\n async handleDeletePlant() {\n this.$store.dispatch(SET_APP_LOADING, true);\n try {\n await plantsClient.plantDELETE(\n this.currentEntrancePlant?.desktopId as number\n );\n this.$router.push({\n name: 'page-plants-hub',\n });\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n }\n\n async handleDuplicatePlant() {}\n\n handleDuplicatePlantFull() {}\n\n async hideConfirmPlantUpdated() {\n this.isVisibleConfirmPlantUpdated = false;\n\n if (!this.tempPlant) {\n // Handle refresh plant triggered by\n // an event (API call) from another\n // (sub)component\n await this.fetchPlant();\n } else {\n // Handle refresh plant triggered by\n // the periodic API call for\n // checking if the plant was updated.\n // The plant was already fetched from\n // the aforementioned API call and\n // stored in tempPlant.\n\n this.$store.dispatch(\n SET_SELECTED_ENTRANCE_PLANT,\n EntrancePlantDetailDTO.fromJS(cloneObject(this.tempPlant))\n );\n this.forceRerender();\n this.tempPlant = null;\n }\n\n this.isPausedFetchupdate = false;\n }\n\n handleInvitedUser(userEmail: string) {\n const newUser = new PlantSharingDTO({\n invitedEmail: userEmail,\n confirmed: false,\n });\n\n this.currentEntrancePlant?.sharedWith?.push(newUser);\n setTimeout( async() => {\n this.usersPermissions = await plantsClient.userspermissions(\n this.selectedPlantId!\n ), 1000});\n }\n\n handleRemoveSharingUser(user: PlantSharingDTO) {\n const userIndex = this.currentEntrancePlant?.sharedWith?.findIndex(\n (u) => u.userId === user.userId\n );\n\n if (userIndex != null && userIndex >= 0) {\n this.currentEntrancePlant?.sharedWith?.splice(userIndex, 1);\n }\n\n setTimeout( async() => {\n this.usersPermissions = await plantsClient.userspermissions(\n this.selectedPlantId!\n ), 1000});\n }\n\n async togglePlantFromFavorites() {\n if (!this.currentEntrancePlant?.desktopId) return;\n try {\n this.$store.dispatch(SET_APP_LOADING, true);\n this.currentEntrancePlant.isFavourite = await plantsClient.togglePlantFromFavorites(\n this.currentEntrancePlant.desktopId\n );\n this.currentEntrancePlant.lastModify = new Date();\n } catch (error) {\n this.$toast.add({\n severity: 'error',\n summary: this.$t('general.operationError'),\n closable: true,\n life: 3000,\n });\n } finally {\n this.$store.dispatch(SET_APP_LOADING, false);\n }\n }\n\n onSaveAndExitClick(): void {\n this.$router.replace({\n path: '/',\n replace: true,\n });\n }\n\n async handleHidePlantDuplicateDialog() {}\n\n async handlePlantDuplicated() {}\n}\n","import { render } from \"./EntrancePlantDetail.vue?vue&type=template&id=d576df3a&ts=true\"\nimport script from \"./EntrancePlantDetail.ts?vue&type=script&lang=ts\"\nexport * from \"./EntrancePlantDetail.ts?vue&type=script&lang=ts\"\n\nimport \"./EntrancePlantDetail.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-filters.c0b258d4.svg\";","module.exports = __webpack_public_path__ + \"img/icon-kitchen.40fc9f7b.svg\";","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","module.exports = __webpack_public_path__ + \"img/icon-start-plan.2cb818f6.svg\";","module.exports = __webpack_public_path__ + \"img/icon-paperclip.f564901c.svg\";","module.exports = __webpack_public_path__ + \"img/icon-reorder-drag-and-drop.7f077836.svg\";","module.exports = __webpack_public_path__ + \"img/icon-mobile-device.1ca476dd.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\"","module.exports = __webpack_public_path__ + \"img/icon-plan-duplicate.7f36dbd5.svg\";"],"sourceRoot":""}