{"version":3,"sources":["contexts/CardContext.tsx","pages/Overview/AmbsHistoryCard/styles.module.css","components/NewInputs/Default/styles.ts","components/NewInputs/Default/index.tsx","pages/Overview/HealthHistoryCard/styles.module.css","components/DemandChart/styles.module.css","providers/index.ts","icons/Trash.tsx","contexts/menuContext.ts","icons/Logo.tsx","icons/Hamburger.tsx","icons/Speedometer.tsx","icons/Globe.tsx","icons/List.tsx","icons/Warning.tsx","icons/Gear.tsx","icons/Exit.tsx","icons/Bell.tsx","icons/Expand.tsx","icons/NewExpand.tsx","icons/Graph.tsx","icons/Notepad.tsx","icons/People.tsx","icons/Checkbox.tsx","icons/Info.tsx","icons/RealTime.tsx","icons/Cronometer.tsx","icons/Clock.tsx","icons/CO2Icon.tsx","icons/Performance.tsx","icons/Paper.tsx","icons/Calendar.tsx","icons/CalendarSimple.tsx","icons/CalendarPlus.tsx","icons/ArrowBack.tsx","icons/ArrowNext.tsx","icons/Time.tsx","icons/Arrow.tsx","icons/AddImage.tsx","icons/Termometer.tsx","icons/TermometerSub.tsx","icons/Humidity.tsx","icons/Pressure.tsx","icons/Switch.tsx","icons/Close.tsx","icons/DownloadImage.tsx","icons/Timer.tsx","icons/RadialChart.tsx","icons/Power.tsx","icons/Kwh.tsx","icons/ButtonPower.tsx","icons/SubCooling.tsx","icons/SuperHeating.tsx","icons/Alert.tsx","icons/Add.tsx","icons/History.tsx","icons/DeleteOutline.tsx","icons/DeactivateUser.tsx","icons/ReactivateUser.tsx","icons/Edit.tsx","icons/EnergyIcon.tsx","icons/Save.tsx","icons/HealthMeter.tsx","icons/HealthIndexRed.tsx","icons/HealthIndexOrange.tsx","icons/HealthIndexYellow.tsx","icons/HealthIndexGreen.tsx","icons/HealthDisabled.tsx","icons/Magnifying.tsx","icons/Clients.tsx","icons/Admin.tsx","icons/Search.tsx","icons/SearchInput.tsx","icons/ExportDocument.tsx","icons/OutOfSpecification.tsx","icons/UrgentMaintenance.tsx","icons/OperatingCorrectly.tsx","icons/ImminentRisk.tsx","icons/HighTemperature.tsx","icons/LowTemperature.tsx","icons/DottedLine.tsx","icons/Line.tsx","icons/UnknownHealth.tsx","icons/UnknownHealthDark.tsx","icons/Accept.tsx","icons/ClientPanel.tsx","icons/ExportWorksheet.tsx","icons/ZoomOut.tsx","icons/ExportPdf.tsx","icons/Thunder.tsx","icons/OpenEye.tsx","icons/CloseEye.tsx","icons/NoSignal.tsx","icons/BadSignal.tsx","icons/RegularSignal.tsx","icons/GoodSignal.tsx","icons/GreatSignal.tsx","icons/Box.tsx","icons/Chip.tsx","icons/Layers.tsx","icons/WifiMiniOn.tsx","icons/WifiMiniOff.tsx","icons/ArrowUp.tsx","icons/ArrowDown.tsx","icons/Unit.tsx","icons/Statistics.tsx","icons/NewImminentRisk.tsx","icons/TemperatureIcon.tsx","icons/LightOn.tsx","icons/LightOff.tsx","icons/ExitButton.tsx","icons/Watch.tsx","icons/Pen.tsx","icons/VAVOpened.tsx","icons/VAVClosed.tsx","icons/Lock.tsx","icons/Cool.tsx","icons/Information.tsx","icons/LocalOperation.tsx","icons/RemoteAuto.tsx","icons/RemoteManual.tsx","icons/Fan.tsx","icons/Block.tsx","icons/EvapIcons.tsx","icons/ReferenceIcon.tsx","icons/ComparativeIcon.tsx","icons/Thermostat.tsx","icons/AddPlus.tsx","icons/NothingRegistered.tsx","icons/DeleteSimpleIcon.tsx","icons/Monitoring.tsx","icons/Port.tsx","icons/Dat.tsx","icons/CheckDevice.tsx","icons/PortEnable.tsx","icons/PortDisabled.tsx","icons/Filter.tsx","icons/Export.tsx","icons/Battery.tsx","icons/EnergyNobreakIcon.tsx","icons/ NobreakOffIcon.tsx","icons/BatteryFullIcon.tsx","icons/BatteryMidIcon.tsx","icons/BatteryLowIcon.tsx","icons/ElectricalNetwork.tsx","icons/NobreakIcon.tsx","icons/CircleCheckGreen.tsx","icons/CircleNotCheckRed.tsx","icons/CicleWarningYellow.tsx","icons/LuzAcesa.tsx","icons/LuzApagada.tsx","icons/CorrectIncorrectIcons.tsx","icons/BluePaper.tsx","icons/PenBlue.tsx","icons/TrashSample.tsx","icons/CompleteList.tsx","icons/CustomList.tsx","icons/ClockDuration.tsx","icons/ProgIcon.tsx","icons/FoldedSheet.tsx","icons/LinkIcon.tsx","icons/AlertSignal.tsx","icons/SimcardIcon.tsx","icons/PaperBloom.tsx","icons/EditPenPaper.tsx","icons/DeleteTrashIcon.tsx","icons/Collapse.tsx","icons/ExpandCard.tsx","icons/NewEditPaperWithPen.tsx","icons/PinIcon.tsx","icons/PlusRoundedIcon.tsx","icons/TrashRoundedIcon.tsx","icons/EditPenIcon.tsx","icons/SeeEyeIcon.tsx","icons/ImageIcon.tsx","icons/CheckIcon.tsx","icons/ZoomMoreIcon.tsx","icons/ZoomLessIcon.tsx","icons/ResetZoomIcon.tsx","icons/OrderIcon.tsx","icons/DateIcon.tsx","icons/FilterIconV2.tsx","icons/WarnIcon.tsx","icons/EditNotification.tsx","icons/DeleteNotification.tsx","icons/ClientNotification.tsx","icons/UnitNotification.tsx","icons/ArrowLeftIcon.tsx","icons/ArrowRightIcon.tsx","icons/UrgentHealth.tsx","icons/RiskHealth.tsx","icons/OutHealth.tsx","icons/CelciusWhiteLogo.tsx","icons/Seta.tsx","icons/ChillerIcon.tsx","icons/CelciusColorLogo.tsx","icons/SpringerLogo.tsx","icons/MachineIcon.tsx","icons/MonitoramentoIcon.tsx","icons/ArrowDownAnalisys.tsx","icons/NoWifi.tsx","icons/CompDisabled.tsx","icons/OnIcon.tsx","icons/FanBlueIcon.tsx","icons/ColumnIcon.tsx","icons/TimezoneIcon.tsx","icons/TimezoneDSTIcon.tsx","icons/ThermostatCircleIcon.tsx","icons/ThermostatSquareIcon.tsx","icons/Compressor.tsx","icons/InfoLink.tsx","icons/WaterOutlet.tsx","icons/WaterInlet.tsx","icons/OpenTab.tsx","icons/IconH_Index2.tsx","icons/IconH_Index4.tsx","icons/IconH_Index25.tsx","icons/IconH_Index50.tsx","icons/IconH_Index75.tsx","icons/IconH_Index100.tsx","icons/NewApiIcon.tsx","icons/PausedIcon.tsx","icons/PlayIcon.tsx","icons/Thermometer.tsx","icons/SetpointCR.tsx","icons/AutomaticCR.tsx","icons/AutomaticMode.tsx","icons/RefrigerateCR.tsx","icons/MachinesIcons/AtivoSemMonitIcon.tsx","icons/InfoIconCR.tsx","icons/MachinesIcons/CondenserIcon.tsx","icons/MachinesIcons/EvaporatorIcon.tsx","icons/MachinesIcons/FancoilIcon.tsx","icons/MachinesIcons/SelfIcon.tsx","icons/MachinesIcons/SplitCasseteIcon.tsx","icons/MachinesIcons/SplitHiWallIcon.tsx","icons/MachinesIcons/SplitPisoTetoIcon.tsx","icons/MachinesIcons/SplitaoIcon.tsx","icons/ArrowRigthIconOutlined.tsx","icons/VentIcon.tsx","icons/EconomySaveIcon.tsx","icons/FanRC.tsx","icons/WifiConnection.tsx","icons/PowerRC.tsx","icons/MinusRC.tsx","icons/BackRC.tsx","icons/ReturnIcon.tsx","components/Card/styles.ts","components/Card/index.tsx","pages/404/index.tsx","pages/Admin/AdmCities/styles.ts","pages/Admin/AdmCities/index.tsx","assets/img/status_late.svg","assets/img/status_offline.svg","assets/img/status_online.svg","helpers/filterByColumns.ts","pages/Admin/AdmFirmware/styles.ts","pages/Admin/AdmFirmware/index.tsx","pages/ClientPanel/FormEditGroup.tsx","pages/Admin/AdminGroupAutomation/styles.ts","pages/Admin/AdminGroupAutomation/index.tsx","helpers/getObjetcs.ts","pages/Admin/ClientsList/styles.ts","pages/Admin/ClientsList/index.tsx","pages/Admin/ClientsListWrapper/index.tsx","pages/Admin/DevManufacts/styles.ts","pages/Admin/DevManufacts/index.tsx","pages/Admin/DevTools/styles.ts","pages/Admin/DevTools/ComandosDevel.tsx","pages/Admin/DevTools/IoTMonitoring.tsx","pages/Admin/DevTools/EcoModeDebug.tsx","pages/Admin/DevTools/index.tsx","pages/Admin/DUTIrList/styles.ts","pages/Admin/DUTIrList/index.tsx","pages/ClientPanel/styles.ts","helpers/scheduleData.ts","pages/ClientPanel/FormAssociateDevs.tsx","helpers/pasteHelper.tsx","pages/ClientPanel/FormEditClass.tsx","pages/ClientPanel/FormEditDut.tsx","pages/Analysis/SchedulesModals/RoomSchedule.tsx","pages/ClientPanel/FormEditRoomType.tsx","hooks/usePasswordToggle.tsx","components/NewSelect/styles.ts","components/NewSelect/index.tsx","components/NewSelectMultiple/styles.ts","components/NewSelectMultiple/index.tsx","pages/ClientPanel/UnitExtras.tsx","store/index.ts","helpers/cachedStorage.ts","helpers/driConfigOptions.ts","components/Tabs/styles.ts","components/Tabs/index.tsx","pages/ClientPanel/EnergyMeterForm.tsx","pages/ClientPanel/CicleDetail.tsx","components/Dropzone/styles.ts","components/Dropzone/index.tsx","helpers/simcards.ts","pages/ClientPanel/FormEditUnit.tsx","pages/ClientPanel/FormEditModel.tsx","pages/ClientPanel/FormEditAssociation.tsx","pages/ClientPanel/Tables/TableClasses.tsx","pages/ClientPanel/Tables/TableModels.tsx","pages/ClientPanel/Tables/styles.ts","pages/ClientPanel/Tables/TableDuts.tsx","pages/ClientPanel/Tables/TableFreeDevices.tsx","pages/ClientPanel/Tables/TableRoomTypes.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MachineTable/styles.ts","pages/ClientPanel/Tables/TableUnits.tsx","pages/ClientPanel/FormEditMachine/styles.ts","helpers/driConfig.ts","pages/ClientPanel/FormEditMachine/index.tsx","pages/ClientPanel/FormEditCreateCicle.tsx","pages/ClientPanel/FormEditCicle.tsx","pages/ClientPanel/FormEditHeatExchanger.tsx","components/InputWithValidation/styles.ts","components/InputWithValidation/index.tsx","components/SelectDmtPort/styles.ts","components/SelectDmtPort/index.tsx","pages/ClientPanel/FormEditUtility.tsx","pages/ClientPanel/ViewUtility.tsx","pages/ClientPanel/ClientPanelLayout.tsx","pages/ClientPanel/ClientPanel.tsx","pages/Admin/EditClient/styles.ts","helpers/titleHelper.tsx","pages/Admin/EditClient/index.tsx","helpers/maskInputs.ts","pages/Admin/FaultsList/styles.ts","pages/Admin/FaultsLayout/index.tsx","pages/Admin/FaultsList/index.tsx","pages/Admin/FaultsListDAM/styles.ts","pages/Admin/FaultsListDAM/index.tsx","pages/Admin/FaultsListInstallation/styles.ts","pages/Admin/FaultsListInstallation/index.tsx","pages/Admin/FerramentasDiel/styles.ts","pages/Admin/FerramentasDiel/ExportarDevs.tsx","pages/Admin/FerramentasDiel/ExportarDuts/TemprtMediaDUTs.tsx","helpers/axisCalc.ts","pages/Analysis/DACs/DACHistoric/styles.ts","components/NoGraph/styles.ts","components/NoGraph/index.tsx","pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/components/styles.ts","helpers/chillerParametersHelpers.ts","pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/components/ChillerGraphParametersGrouped.tsx","pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/components/ChillerGraphParametersChanged.tsx","assets/img/sem_parametros.svg","pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/components/ChillerParameters.tsx","helpers/historyGraph.tsx","pages/Analysis/DACs/DACHistoric/components/DacHistoryGraph.tsx","pages/Analysis/DACs/DACHistoric/index.tsx","pages/Analysis/DACs/Machines/styles.ts","pages/Analysis/AnalysisFilters.tsx","pages/Admin/FerramentasDiel/MachineConsumption.tsx","pages/Admin/FerramentasDiel/DeviceTelemetry.tsx","pages/Admin/FerramentasDiel/ExportarDuts/MedicaoTempDuts.tsx","pages/Admin/FerramentasDiel/ManualDevCommand.tsx","pages/Admin/FerramentasDiel/index.tsx","pages/Admin/Integrations/CoolAutomation.tsx","pages/Admin/Integrations/DRIUnits.tsx","pages/Admin/Integrations/GreenAntMeters/styles.ts","pages/Admin/Integrations/GreenAntMeters/index.tsx","pages/Admin/Integrations/Water.tsx","pages/Admin/Integrations/ApiIntegrations/styles.ts","pages/General/styles.tsx","pages/General/TableConfigs.tsx","pages/Analysis/Units/UnitDetail/UnitDetailUtilities/styles.ts","pages/Admin/Integrations/ApiIntegrations/index.tsx","pages/Admin/Integrations/index.tsx","pages/Admin/SensorsConfig/styles.ts","pages/Admin/SensorsConfig/index.tsx","components/ChartRecharts/index.tsx","components/ChartRecharts/Legenda.tsx","pages/Admin/ServersMonitoring/index.tsx","pages/Admin/SimCards/styles.ts","components/QuickSelection/styles.tsx","components/QuickSelection/index.tsx","helpers/genericHelper.ts","components/NewInputs/Search/styles.ts","components/NewInputs/Search/index.tsx","helpers/dates.ts","icons/CloseBtn.tsx","icons/ColorChange.tsx","components/EnvGroupAnalysis/styles.ts","pages/Analysis/Utilities/UtilityFilter/index.tsx","pages/Analysis/AnalysisLayout/styles.ts","pages/Admin/SimCards/index.tsx","pages/Admin/ProjetoBB/ProjetoBBLayout/index.tsx","pages/Admin/ProjetoBB/styles.ts","pages/Admin/ProjetoBB/ProjetoBBKPIs/index.tsx","pages/Admin/ProjetoBB/ProjetoBBANS/index.tsx","pages/Admin/ProjetoBB/ProjetoBBCronograma/index.tsx","components/AssetTree/styles.ts","components/AssetConnection/index.tsx","components/AssetTree/index.tsx","components/AssetStatus/styles.ts","components/AssetStatus/index.tsx","pages/Analysis/Assets/AssetInfo/styles.ts","pages/Analysis/SchedulesModals/DAM_Schedule.tsx","pages/Analysis/SchedulesModals/DUT_Schedule.tsx","pages/Analysis/Assets/AssetLayout.tsx","pages/Analysis/SchedulesModals/styles.ts","pages/Analysis/Integrations/IntegrRealTime/styles.ts","assets/img/cool_ico/schedule.svg","assets/img/cool_ico/mode_cool.svg","assets/img/cool_ico/mode_fan.svg","pages/Analysis/SchedulesModals/components/ExceptionsHeader.tsx","helpers/driSchedule.ts","pages/Analysis/SchedulesModals/DRI_Shedule.tsx","pages/NewNotifications/styles.ts","pages/Analysis/Assets/AssetInfo/index.tsx","pages/Analysis/Assets/EditAssetInfo.tsx","pages/Analysis/AnalysisLayout/index.tsx","pages/Analysis/SchedulesModals/fullProgEditStyles.ts","pages/Analysis/SchedulesModals/FullProgEdit.tsx","pages/Analysis/DAMs/ScheduleCheck.tsx","pages/Analysis/DAMs/BatchSchedule.tsx","components/EnvGroupAnalysis/index.tsx","pages/Analysis/DEVs/DevLayout.tsx","pages/Analysis/DAMs/DamSchedule.tsx","pages/Analysis/DAMs/DamsList/styles.ts","pages/Analysis/AnalysisEmpty/index.tsx","pages/Analysis/DAMs/DamsList/index.tsx","pages/Analysis/DAMs/DamHistory.tsx","pages/Analysis/DUTs/styles.ts","icons/EmptyDocumentIcon.tsx","pages/Analysis/DUTs/DUTHistory.tsx","pages/Analysis/Integrations/IntegrHistory/styles.ts","components/ChangeColor/index.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/styles.ts","icons/FilterColumnsIcon.tsx","components/ModalOrderColumns/styles.ts","icons/OlhoAberto.tsx","icons/OlhoFechado.tsx","icons/ThreeDotsVerticalIcon.tsx","components/ModalOrderColumns/Row.tsx","components/ModalOrderColumns/index.tsx","icons/AlarmIcon.tsx","pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/components/TableConfigs.tsx","helpers/reorderList.ts","pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/components/AlarmsHistory.tsx","pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/index.tsx","helpers/ticks.ts","pages/Analysis/Integrations/IntegrHistory/DriHistory.tsx","components/WaterCard/style.ts","helpers/getRangeParamsChart.ts","components/EnergyCard/EnergyCardContext/index.tsx","components/SelectOptionDropdown/styles.ts","helpers/capitalizeFirstLetter.ts","components/SelectOptionDropdown/index.tsx","helpers/getArrayDaysOfMonth.tsx","components/EnergyCard/ConsumptionChart/style.ts","components/EnergyCard/ConsumptionChart/index.tsx","helpers/getArrayMonthsOfYear.tsx","components/EnergyCard/EnergyHistory/index.tsx","components/WaterCard/GraphCardWater/index.tsx","pages/Analysis/Integrations/IntegrHistory/WaterHistory/styles.ts","pages/Analysis/Integrations/IntegrHistory/WaterHistory/WaterHistory.tsx","pages/Analysis/DEVs/DevHistory.tsx","pages/Analysis/DEVs/styles.ts","pages/Analysis/SchedulesModals/DUT_SchedulesList.tsx","pages/Analysis/DALs/styles.ts","components/UtilityTree/styles.ts","components/UtilityTree/index.tsx","pages/Analysis/Units/UnitProfile/styles.ts","icons/WarningIcon.tsx","helpers/validateTime.ts","pages/Analysis/SchedulesModals/DAL_Schedule.tsx","pages/Analysis/DALs/DalInfo.tsx","pages/Analysis/DMTs/styles.ts","pages/Analysis/Utilities/Illumination/styles.ts","pages/Analysis/Utilities/Utilities/styles.ts","pages/Analysis/Utilities/Illumination/IlluminationInfo.tsx","pages/Analysis/Utilities/Utilities/UtilityTypesInfo.tsx","pages/Analysis/DMTs/DmtInfo.tsx","pages/Analysis/DEVs/DevInfo.tsx","pages/Analysis/DACs/RealTime/styles.ts","pages/Analysis/DACs/RealTime/index.tsx","assets/img/icons/eco.svg","components/DamControl/styles.ts","components/DamControl/index.tsx","pages/Analysis/DAMs/styles.ts","pages/Analysis/DAMs/DamRealTime.tsx","pages/Analysis/DUTs/DutAutControl/styles.ts","pages/Analysis/DUTs/DutAutControl/index.tsx","pages/Analysis/DUTs/DutAutRealTime.tsx","assets/img/cool_ico/power_grey.svg","pages/Analysis/DUTs/EnvironmentRealTime.tsx","pages/Analysis/Integrations/IntegrRealTime/DmaRealTime.tsx","assets/img/cool_ico/power_1_color.svg","icons/FanOnOff.tsx","icons/ValveOpenedClosed.tsx","pages/Analysis/SchedulesModals/DRI_ScheduleList.tsx","pages/Analysis/SchedulesModals/DRI_ScheduleModal.tsx","pages/Analysis/Integrations/IntegrRealTime/components/RssiComponent.tsx","helpers/rssi.ts","pages/Analysis/Integrations/IntegrRealTime/DriContents.tsx","pages/Analysis/DMTs/DmtRealTime/styles.tsx","pages/Analysis/DMTs/DmtRealTime/DmtRealTime.tsx","pages/Analysis/DALs/DalRealTime.tsx","pages/Analysis/DEVs/DevRealTime.tsx","pages/Analysis/DUTs/DutSchedule.tsx","pages/Analysis/DEVs/DevSchedule.tsx","assets/img/BackupEcoV2DamDac.png","pages/Analysis/Integrations/IntegrEdit/styles.ts","pages/Analysis/Integrations/IntegrEdit/DriConfig/DriConfigParameters.tsx","pages/Analysis/Integrations/IntegrEdit/DriConfig/DriConfigManufacturer.tsx","pages/Analysis/Integrations/IntegrEdit/DriConfig/DriConfigAutomation.tsx","pages/Analysis/Integrations/IntegrEdit/DriConfig/DriConfigChillerCarrier.tsx","pages/Analysis/Integrations/IntegrEdit/DriConfig/DriConfigEnergyMeter.tsx","pages/Analysis/Integrations/IntegrEdit/DriConfig/DriConfigSchedulesAutomation.tsx","pages/Analysis/Integrations/IntegrEdit/DriConfig/index.tsx","pages/Analysis/DALs/RouterEditDal.tsx","pages/Analysis/DALs/EditDalInfo.tsx","pages/Analysis/DMTs/DmtEdit.tsx","pages/Analysis/DEVs/EditDevInfo.tsx","assets/img/icons/IR_symbol_paths.svg","assets/img/icons/IR_symbol_paths_faint.svg","assets/img/icons/wifi_icon.svg","pages/Analysis/DUTs/DutIrManagement/styles.ts","pages/Analysis/DUTs/DutIrManagement/index.tsx","pages/Analysis/DUTs/Environments/styles.ts","pages/Analysis/DUTs/Environments/index.tsx","helpers/checkDutsLimits.ts","hooks/useFilter.ts","hooks/useDebounce.ts","assets/img/marker.svg","pages/Analysis/Geolocation/styles.ts","pages/Analysis/Geolocation/index.tsx","assets/img/cool_ico/fan_0_off.svg","assets/img/cool_ico/fan_1_low.svg","assets/img/cool_ico/fan_2.svg","assets/img/cool_ico/fan_3.svg","assets/img/cool_ico/fan_4_high.svg","assets/img/cool_ico/fan_auto.svg","assets/img/cool_ico/mode_auto.svg","assets/img/cool_ico/mode_cool_off.svg","assets/img/cool_ico/mode_dry.svg","assets/img/cool_ico/mode_heat.svg","assets/img/cool_ico/swing_1_low.svg","assets/img/cool_ico/swing_2.svg","assets/img/cool_ico/swing_3.svg","assets/img/cool_ico/swing_4.svg","assets/img/cool_ico/swing_5_high.svg","assets/img/cool_ico/swing_auto.svg","assets/img/cool_ico/swing_off.svg","pages/Analysis/Integrations/IntegrRealTime/CoolAutomationRealTime.tsx","pages/Analysis/Integrations/IntegrHistory/CoolAutomationHist.tsx","pages/Analysis/Integrations/IntegrLayout.tsx","pages/Analysis/Integrations/IntegrEdit/CoolAutomationEdit.tsx","pages/Analysis/Integrations/IntegrPerfil/styles.ts","pages/Analysis/Integrations/IntegrPerfil/DRIProfile.tsx","pages/Analysis/Integrations/IntegrPerfil/IntegrDevInfo.tsx","pages/Analysis/Integrations/IntegrPerfil/IntegrWaterInfo.tsx","pages/Analysis/Integrations/IntegrPerfil/index.tsx","pages/Analysis/Units/UnitWater/WaterProfileEdit.tsx","pages/Analysis/Integrations/IntegrPerfil/WaterProfile.tsx","pages/Analysis/Integrations/IntegrEdit/CardsConfig.tsx","pages/Analysis/Integrations/IntegrEdit/index.tsx","pages/Analysis/Integrations/IntegrHistory/index.tsx","pages/Analysis/Units/UnitLayout/index.tsx","pages/Analysis/Units/UnitNess/index.tsx","pages/Analysis/Integrations/IntegrRealTime/WaterRealTime.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/ProgressBar.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/StatusCard.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/MonitoringCard.tsx","assets/img/chiller/chillerCarrierHX.png","assets/img/chiller/chillerCarrierXA.jpg","assets/img/point.svg","assets/img/arrow.svg","assets/img/pointInvert.svg","assets/img/alarm.svg","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/ChillerCard.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/ChillerParameters.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/TableConfigs.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/ChillerAlarms.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/components/TableCommonFunctions.tsx","pages/Analysis/Integrations/IntegrRealTime/DriChillerCarrierRealTime/index.tsx","pages/Analysis/Integrations/IntegrRealTime/index.tsx","pages/Analysis/Integrations/IntegrsList/styles.ts","pages/Analysis/Integrations/IntegrsList/index.tsx","pages/Analysis/Units.tsx","helpers/energyData.ts","pages/Analysis/Units/EnergyEfficiency/styles.ts","pages/Analysis/Units/EnergyEfficiency/DataExportModal.tsx","pages/Analysis/Units/EnergyEfficiency/TelemetryDemandCard/Heatmap/styles.ts","pages/Analysis/Units/EnergyEfficiency/TelemetryDemandCard/Heatmap/index.tsx","pages/Analysis/Units/EnergyEfficiency/TelemetryDemandCard/Linechart/styles.ts","pages/Analysis/Units/EnergyEfficiency/TelemetryDemandCard/Linechart/index.tsx","pages/Analysis/Units/EnergyEfficiency/TelemetryDemandCard/index.tsx","pages/Analysis/Units/EnergyEfficiency/index.tsx","pages/Analysis/Units/UnitDetail/Schedules.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/DriAutMachine/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/DriAutMachine/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/DutAutMachine/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/DutAutMachine/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/HeatExchanger/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/HeatExchanger/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineAutomation/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineAutomation/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineInformation/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineInformation/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineFancoilInformation/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineFancoilInformation/WaterTemperatureTooltipInfo.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineFancoilInformation/MachineDacInformation.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineFancoilInformation/MachineDutDuoInformation.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineFancoilInformation/MachineDatInformation.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineAutomationFancoil/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/ControlOperation/styles.ts","assets/img/cool_ico/power_grey_slash.svg","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/ControlOperation/DamControlOperation.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/ControlOperation/DriControlOperation.tsx","helpers/driAutomation.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineAutomationFancoil/MachineDriAutomation.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineAutomationFancoil/MachineDamAutomation.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/components/MachineAutomationFancoil/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MosaicListItem/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MachineTable/index.tsx","pages/Analysis/Units/UnitDetail/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/components/MosaicListItem/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/components/MosaicListItem/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/components/DutTable/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/components/DutTable/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/components/UnitMapView/styles.ts","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/components/UnitMapView/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailDUTs/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailUtilities/components/MosaicCard/styles.ts","pages/Analysis/Units/UnitDetail/ConfirmStatusChange.tsx","pages/Analysis/Units/UnitDetail/UnitDetailUtilities/components/MosaicCard/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailUtilities/components/NobreakTable/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailUtilities/components/IlluminationTable/index.tsx","pages/Analysis/Units/UnitDetail/UnitDetailUtilities/index.tsx","pages/Analysis/Units/UnitDetail/index.tsx","pages/Analysis/Units/UnitIntegratedAnalysis/index.tsx","pages/Analysis/Units/UnitWater/index.tsx","pages/Analysis/Units/UnitProfile/DocumentationsFiles.tsx","pages/Analysis/Units/UnitProfile/DateButtonExport.tsx","helpers/formatNumber.tsx","pages/Analysis/Units/UnitProfile/index.tsx","helpers/dateFormatedcsv.ts","pages/Analysis/Units/CAG/ChillerLayout.tsx","pages/Analysis/Units/CAG/index.tsx","pages/Analysis/Units/UnitVRF/index.tsx","components/LoaderWithText/styles.ts","components/LoaderWithText/index.tsx","helpers/select.ts","pages/Analysis/Units/UnitProfile/IlluminationMultipleProg.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg/helpers/parseDevices.ts","pages/Analysis/Units/UnitProfile/MultipleDevProg/helpers/sortDevices.ts","pages/Analysis/Units/UnitProfile/MultipleDevProg/constants.ts","pages/Analysis/Units/UnitProfile/MultipleDevProg/components/ClearFilterButton.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg/DutFilter.tsx","helpers/formatText.ts","pages/Analysis/Units/UnitProfile/MultipleDevProg/helpers/verifications.ts","pages/Analysis/Units/UnitProfile/MultipleDevProg/DutTable.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg/components/SelectAllDevices.tsx","helpers/batchRequests.ts","pages/Analysis/Units/UnitProfile/MultipleDevProg/DamTable.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg/DamFilter.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg/helpers/filter.ts","pages/Analysis/Units/UnitProfile/MultipleDevProg/DefaultDeviceTable.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg/components/SelectDevType.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg/components/ProgrammingProgress.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/context/ProgrammingsContext.tsx","helpers/schedule.ts","helpers/error.ts","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/constants.ts","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/ConfirmDeleteProgExceptionModal.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/MultipleProgFilter.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/styles.ts","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/context/CommonPropertiesContext.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/TextComponentWithTooltip.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/DriProgItem.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/DriGroupProgItem.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/MultipleProgItemList.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/ClearAllAddedModal.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/SavingConfirmationModal.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/DriSchedulesContent.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/components/DriSchedulesContainer.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/hooks/useSaveDriSchedules.ts","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/MultipleProgContent.tsx","pages/Analysis/Units/UnitProfile/DriMultipleProg.tsx/index.tsx","pages/Analysis/Units/UnitProfile/MultipleDevProg.tsx","pages/Analysis/Units/UnitProfile/RoomsList.tsx","pages/Analysis/Units/UnitProfile/GeneralData.tsx","pages/Analysis/Units/UnitProfile/EnvironmentVisibility.tsx","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapListMaps/styles.ts","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapPreview/styles.ts","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapPreview/index.tsx","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapViewModal/styles.ts","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapViewModal/index.tsx","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapModal/styles.ts","helpers/formFieldsValidator.ts","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapModal/index.tsx","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapListMaps/index.tsx","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapViewMap/styles.ts","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapViewMap/index.tsx","pages/Analysis/Units/UnitProfile/UnitMap/UnitMap.tsx","pages/Analysis/Units/UnitProfile/EditUnitDevProg.tsx","pages/Analysis/Units/UnitProfile/SchedTurnConfig.tsx","pages/ClientPanel/BatchInput/BatchInputDACs.tsx","helpers/batchInputHelpers.ts","pages/ClientPanel/BatchInput/BatchInputDAMs.tsx","pages/ClientPanel/BatchInput/BatchInputDUTs.tsx","pages/ClientPanel/BatchInput/styles.ts","pages/ClientPanel/BatchInput/BatchInputDRIs.tsx","pages/ClientPanel/BatchInput/BatchInputEnvironmentTypes.tsx","pages/ClientPanel/BatchInput/BatchInputSupervisors.tsx","pages/ClientPanel/BatchInput/BatchInputInvoices.tsx","pages/ClientPanel/BatchInput/BatchInputDMAs.tsx","components/CutomizedButton/styles.tsx","components/CutomizedButton/index.tsx","pages/ClientPanel/BatchInput/PreFillGuide.tsx","pages/ClientPanel/BatchInput/BatchInputUnified.tsx","pages/ClientPanel/BatchInput.tsx","pages/Configs/ChangePassword/styles.ts","pages/Configs/ChangePassword/index.tsx","pages/Configs/EditInfo/styles.ts","pages/Configs/EditInfo/index.tsx","pages/Configs/Settings/styles.ts","assets/img/brasil.svg","assets/img/estadosunidos.svg","pages/Configs/Settings/index.tsx","pages/Help/styles.ts","pages/Help/index.tsx","pages/Users/Default/styles.ts","pages/NewNotifications/Layout.tsx","pages/Notifications/Default/styles.ts","pages/Notifications/Default/ModalCreateNotification.tsx","pages/Notifications/Default/index.tsx","helpers/dutNotifVerifcation.ts","pages/Notifications/FormEditNotification/styles.ts","pages/Notifications/FormEditNotification/index.tsx","pages/Notifications/Notification/styles.ts","pages/Notifications/Notification/EnergyNotification.tsx","pages/Notifications/Notification/index.tsx","components/EnergyCard/styles.ts","components/EnergyCard/EnergyCardFooter/styles.ts","icons/CalendarIcon.tsx","pages/General/index.tsx","components/EnergyCard/EnergyCardFooter/TableConfig.tsx","components/EnergyCard/EnergyCardFooter/index.tsx","components/ItemCardTabOption/TabOption.tsx","components/EnergyCard/EnergyInsights/styles.ts","components/EnergyCard/EnergyInsights/EnergyEfficiencyTicket/styles.ts","components/EnergyCard/EnergyInsights/EnergyEfficiencyTicket/index.tsx","components/EnergyCard/EnergyInsights/index.tsx","components/EnergyCard/TrendsChart/styles.ts","components/EnergyCard/TrendsChart/index.tsx","components/EnergyCard/EnergyTrends/index.tsx","components/EnergyCard/index.tsx","components/WaterCard/CalendarWaterCard/index.tsx","components/WaterCard/TableConfig.tsx","components/WaterCard/CardWaterTable/index.tsx","components/WaterCard/index.tsx","pages/Overview/Default/index.tsx","pages/Overview/IntegrationNess/styles.ts","pages/Overview/IntegrationNess/index.tsx","pages/TechnicalVisits/components/StyledComponents/index.ts","pages/TechnicalVisits/Layout/styles.ts","pages/TechnicalVisits/Layout/index.tsx","pages/TechnicalVisits/TechnicalUsersListing/components/TVList/styles.ts","pages/TechnicalVisits/TechnicalUsersListing/styles.tsx","components/LoadingSpinner/styles.ts","components/LoadingSpinner/index.tsx","metadata/GetTechnicalVisitsList.ts","pages/TechnicalVisits/TVListing/components/DeleteTVModal/styles.ts","pages/TechnicalVisits/TVListing/components/DeleteTVModal/index.tsx","pages/TechnicalVisits/TVListing/components/ShowTVModal/components/PhotoBox/styles.ts","pages/TechnicalVisits/TVListing/components/ShowTVModal/components/PhotoBox/index.tsx","pages/TechnicalVisits/TVListing/components/ShowTVModal/styles.ts","pages/TechnicalVisits/TVListing/components/ShowTVModal/index.tsx","pages/TechnicalVisits/TVListing/components/TVList/styles.ts","pages/TechnicalVisits/TVListing/components/SpeakWithTechnicianModal/styles.ts","pages/TechnicalVisits/TVListing/components/SpeakWithTechnicianModal/index.tsx","pages/TechnicalVisits/TVListing/components/TVList/ListItem.tsx","pages/TechnicalVisits/TVListing/components/TVList/index.tsx","pages/TechnicalVisits/TVListing/styles.tsx","pages/TechnicalVisits/TVListing/index.tsx","components/NewInputs/Date/styles.ts","components/NewInputs/Date/index.tsx","components/NewInputs/Hour/styles.ts","components/NewInputs/Hour/index.tsx","components/NewInputs/Hour/applySuffixToInputValue.ts","components/NewInputs/Number/styles.ts","components/NewInputs/Number/index.tsx","components/NewInputs/TextArea/styles.ts","components/NewInputs/TextArea/index.tsx","pages/TechnicalVisits/TVRegistration/components/PhotoBox/styles.ts","pages/TechnicalVisits/TVRegistration/components/PhotoBox/index.tsx","pages/TechnicalVisits/TVRegistration/styles.ts","pages/TechnicalVisits/TVRegistration/index.tsx","pages/TechnicalVisits/index.tsx","pages/Users/Default/index.tsx","pages/Users/EditUser/components/ClientItem/index.tsx","pages/Users/EditUser/styles.ts","pages/Users/EditUser/index.tsx","pages/ClientPanel/ClientMultipleProg.tsx","assets/img/logos/LogoCelciusColor.svg","assets/img/sidebar/UserAzul.svg","assets/img/sidebar/menu_azul.svg","components/MenuMobile/styles.ts","components/MenuMobile/index.tsx","components/MobileNavbar/styles.ts","components/MobileNavbar/index.tsx","routes/PrivateRoute.tsx","routes/PublicRoute.tsx","routes/SpecialRoute.tsx","pages/Analysis/Comparative/styles.tsx","pages/Analysis/Comparative/index.tsx","pages/Analysis/Units/DownloadUnitReport/index.tsx","routes/PrivateWithRedirectRoute.tsx","pages/Admin/FaultsDisable/styles.ts","pages/Admin/FaultsDisable/index.tsx","pages/Analysis/Devices/styles.ts","pages/Analysis/Devices/index.tsx","pages/Analysis/Utilities/styles.ts","pages/Analysis/Utilities/UtilityLayout.tsx","pages/Analysis/Utilities/UtilityInfo.tsx","pages/Analysis/Utilities/Illumination/IlluminationEdit.tsx","pages/Analysis/Utilities/Utilities/UtilityEdit.tsx","pages/Analysis/Utilities/EditUtilityInfo.tsx","pages/Analysis/DEVs/UsageCommon/styles.ts","pages/Analysis/DEVs/UsageCommon/index.tsx","pages/Analysis/DACs/Usage/index.tsx","pages/Analysis/DMTs/DmtUtilityHistoryCard/styles.ts","pages/Analysis/DMTs/DmtUtilityHistoryCard/index.tsx","pages/Analysis/DMTs/DmtUsageIndex.tsx","pages/Analysis/DALs/IlluminationHistoryCard/index.tsx","pages/Analysis/DALs/DalUsageIndex.tsx","pages/Analysis/DUTs/DutDuoUsage/index.tsx","pages/Analysis/DEVs/DevUsageIndex.tsx","pages/Analysis/Utilities/UtilityUsageIndex.tsx","pages/Analysis/Utilities/UtilityRealTime.tsx","pages/Authentication/styles.ts","assets/img/logos/DielDarkLogo.svg","assets/img/logos/GooglePlayLogo.svg","assets/img/logos/CelciusWhiteLogo.svg","pages/Authentication/Login/styles.ts","pages/Authentication/Login/index.tsx","pages/Authentication/ForgotPassword/styles.ts","pages/Authentication/ForgotPassword/index.tsx","pages/Authentication/index.tsx","pages/Admin/HorarioVerao/styles.ts","pages/Admin/HorarioVerao/index.tsx","components/CustomAccordion/styles.ts","icons/Water.tsx","icons/CircleCheckFill.tsx","components/CustomAccordion/index.tsx","pages/NewNotifications/NotificationsEmpty.tsx","pages/NewNotifications/index.tsx","pages/Analysis/DEVs/DevHealth/styles.ts","pages/Analysis/DEVs/DevHealth/Health.tsx","assets/img/DesativarFalha.svg","assets/img/ReativarFalha.svg","pages/Analysis/DEVs/DevHealth/ManagementFaults.tsx","pages/Analysis/DEVs/DevHealth/index.tsx","pages/Admin/ProjetoBB/ProjetoBBCadastroAC/index.tsx","pages/Admin/ProjetoBB/ProjetoBBCadastroNobreak/index.tsx","pages/Admin/ProjetoBB/ProjetoBBANS/RecentAns.tsx","pages/Analysis/Energy/index.tsx","pages/Analysis/Utilities/index.tsx","pages/Analysis/Utilities/RedirectUtility.tsx","pages/ResetPassword/styles.ts","pages/ResetPassword/index.tsx","pages/Analysis/Machines/styles.ts","components/SlidingBannerTooltip/styled.ts","components/SlidingBannerTooltip/index.tsx","pages/Analysis/Machines/TableConfig.tsx","pages/Analysis/Machines/index.tsx","pages/Analysis/DACs/Machines/index.tsx","pages/Analysis/Machines/AnalysisMachine.tsx","assets/img/DefaultImageUnitControlRemote.png","pages/RemoteControl/MachinesList/style.ts","pages/RemoteControl/MachinesList/helpersIndex.tsx","pages/RemoteControl/MachinesList/index.tsx","pages/RemoteControl/MachineProfile/styles.ts","pages/RemoteControl/MachineProfile/components/SetpointController.tsx","pages/RemoteControl/MachineProfile/hooks/useCalculateStrokeSetpoint.ts","pages/RemoteControl/MachineProfile/components/SaveChangesModal.tsx","pages/RemoteControl/MachineProfile/components/EnvironmentTemperatureItem.tsx","pages/RemoteControl/MachineProfile/components/LeavePageModal.tsx","pages/RemoteControl/MachineProfile/components/HeaderMachine.tsx","pages/RemoteControl/MachineProfile/index.tsx","pages/RemoteControl/MachineProfile/helpers.ts","routes/index.tsx","useGaTracker.ts","styles/GlobalStyles.ts","App.tsx","index.tsx","components/InvoiceChart/styles.module.css","pages/Analysis/Units/UnitProfile/UnitMap/UnitMapContext/index.tsx","pages/Overview/Default/styles.ts","pages/Analysis/Header/styles.ts","helpers/useStateVar.ts","components/Accordion/styles.ts","components/Accordion/index.tsx","helpers/languageHelper.tsx","helpers/thousandFormatNumber.ts","components/ModalWindow/index.tsx","helpers/jsonTryParse.ts","components/EnergyEfficiencyCard/styles.ts","components/Button/styles.ts","components/Button/index.tsx","helpers/userProfile.ts","components/CardManager/styles.ts","components/CardManager/index.tsx","components/Loader/styles.ts","components/Loader/index.tsx","hooks/useOuterClickNotifier.ts","components/ModalWindow/styles.ts","helpers/apmElastic.ts","assets/img/ExpansaoRemocao.gif","assets/img/MoverCards.gif","contexts/TourContext.tsx","i18n/index.ts","components/Breadcrumb/styles.ts","components/PinEditModal/styles.ts","components/DataTable/Cards/styles.ts","components/DataTable/Cards/Cards.tsx","components/DataTable/styles.ts","components/DataTable/index.tsx","helpers/additionalParameters.tsx","pages/Analysis/Units/EnergyEfficiency/TelemetryDemandCard/styles.ts","components/Breadcrumb/index.tsx","components/NewTable/styles.ts","components/NewTable/index.tsx","components/TourPopover/styles.ts","components/TourPopover/index.tsx","icons/Utility.tsx","components/DesktopNavbar/styles.ts","components/DesktopNavbar/index.tsx","components/InputSearch/styles.ts","components/InputSearch/index.tsx","helpers/parseDecimalNumber.ts","assets/img/cool_ico/power.svg","helpers/getClientsHelper.ts","components/Table/index.tsx","assets/img/EcoV2.png","components/TimezoneWarn/styles.ts","components/TimezoneWarn/index.tsx","styles/colors.ts","components/EnergyEfficiencyInvoice/styles.module.css","pages/Admin/DevLogs/styles.ts","pages/Analysis/Utilities/UtilityFilter/styles.ts","icons/Tool.tsx","helpers/fwVersion.ts","pages/Analysis/styles.ts","assets/img/sidebar/ExpandirMenu.svg","assets/img/sidebar/MenuExpandido.svg","assets/img/sidebar/configuracoes.svg","assets/img/sidebar/NovoAnalise.svg","assets/img/sidebar/NovoClientPanel.svg","assets/img/sidebar/NovoNotificacoes.svg","assets/img/sidebar/NovoUsuarios.svg","assets/img/sidebar/NovoVisaoGeral.svg","components/Menu/Draggable/styles.ts","components/Menu/Draggable/DraggableCard.tsx","components/Menu/Draggable/DraggableArea.tsx","components/Menu/index.tsx","components/Header/styles.ts","icons/Logout.tsx","icons/UserGuide.tsx","icons/Config.tsx","icons/CloseV2.tsx","components/Header/ModalUserGuide.tsx","components/Header/index.tsx","components/Checkbox/styles.ts","components/Checkbox/index.tsx","components/FormEditBaselines/styles.ts","components/FormEditBaselines/index.tsx","components/QuickSelectionV2/styles.ts","components/QuickSelectionV2/index.tsx","components/ConnectedDevices/styles.ts","assets/img/logos/LogoDielPowered.svg","icons/More.tsx","helpers/posthogHelper.ts","icons/FilterIconV3.tsx","helpers/wsConnection.ts","styles/remoteControlColors.ts","components/MachineCard/styles.ts","components/Select/styles.ts","pages/Analysis/Header/index.tsx","helpers/formatArrHistory.ts","helpers/convertEnergy.ts","components/ToggleSwitch/styles.ts","components/ToggleSwitch/index.tsx","components/HealthIcon/styles.ts","components/HealthIcon/index.tsx","components/Menu/styles.ts","helpers/formatTime.ts","components/Input/styles.ts","components/Input/index.tsx","components/StyledComponents/Link.ts","helpers/tips.ts","components/Select/index.tsx","components/OnOff/styles.ts","components/OnlineOffline/styles.ts","components/Carousel/styles.ts","components/Carousel/index.tsx","components/StyledComponents/ActionButton.ts","components/AlertsTable/styles.ts","components/SearchBox/styles.ts","components/RadioButton/styles.ts","components/RadioButton/index.tsx","components/StyledComponents/EmptyWrapper.ts","components/StyledComponents/UnavailableLinkMessageStyle.ts","components/Breadcrumb2/styles.ts","components/Breadcrumb2/index.tsx","components/Datepicker/styles.ts","components/Datepicker/index.tsx","components/DateInput/styles.tsx","components/DateInput/index.tsx","components/LayerBackgroundModal/index.tsx","components/Overlay/styles.ts","components/Overlay/index.tsx","components/StyledComponents/InputsSearchWrappers.ts","components/AntSwitch/styles.ts","components/AntSwitch/index.tsx","components/StatusBox/index.tsx","assets/img/icons/aviso_icon.svg","components/EnergyEfficiencyGeneral/styles.ts","components/DemandChart/styles.ts","components/EnergyEfficiencyGeneral/index.tsx","components/InvoiceChart/styles.ts","components/InvoiceChart/index.tsx","components/EnergyEfficiencyInvoice/styles.ts","components/EnergyEfficiencyInvoice/index.tsx","components/EnergyEfficiencyMachines/styles.ts","components/EnergyEfficiencyMachines/index.tsx","components/EnergyEfficiencyMachine/styles.ts","components/EnergyEfficiencyMachine/index.tsx","components/EnergyEfficiencyCard/index.tsx","components/EnergyMeterDemand/index.tsx","components/Divider/styles.tsx","components/Divider/index.tsx","components/DemandChart/index.tsx","pages/Overview/HealthHistoryCard/index.tsx","components/MachineCard/index.tsx","assets/img/icons/environment.svg","assets/img/icons/active.svg","assets/img/icons/machines.svg","assets/img/icons/energy.svg","assets/img/icons/water.svg","assets/img/icons/lighting.svg","assets/img/icons/nobreak.svg","assets/img/icons/utilities.svg","components/ConnectedDevices/index.tsx","pages/Overview/AmbsHistoryCard/index.tsx","components/EnvCard/styles.ts","components/EnvCard/index.tsx","components/AutomationCard/styles.ts","components/AutomationCard/index.tsx","components/FormMachine/index.tsx","components/FormAssetsList/styles.ts","components/FormAssetsList/index.tsx","components/FormAsset/styles.ts","components/FormAsset/index.tsx","components/ViewMachine/styles.ts","components/ViewMachine/index.tsx","components/ViewCAG/styles.ts","components/ViewCAG/index.tsx","components/ScheduleButton/styles.ts","components/ScheduleButton/index.tsx","components/ScheduleViewCard/styles.ts","components/ScheduleViewCard/index.tsx","components/ScheduleEditCard/styles.ts","assets/img/BackupEcoV2.png","assets/img/ModoSobDemanda.png","assets/img/SobDemanda.png","helpers/modalImage.ts","helpers/dutScheduleConfig.ts","components/ScheduleEditCard/constants.ts","components/ScheduleEditCard/index.tsx","components/ExceptionViewCard/styles.ts","components/ExceptionViewCard/index.tsx","components/ExceptionEditCard/styles.ts","components/ExceptionEditCard/index.tsx","components/InputCalculator/styles.ts","components/InputCalculator/index.tsx","components/DamEcoCard/styles.ts","components/DamEcoCard/index.tsx","components/OptionsWithIcon/styles.ts","components/OptionsWithIcon/index.tsx","components/ModalContainerLoading/styles.ts","components/ModalContainerLoading/index.tsx","components/PromptRouter/styles.ts","components/PromptRouter/index.tsx","components/ClearSelect/styles.ts","components/ClearSelect/index.tsx","components/ModalPrivacyPolicies/styles.ts","components/ModalPrivacyPolicies/index.tsx","components/ProgressBar/style.ts","components/ProgressBar/index.tsx","assets/img/polimorphic_shapes/polimorphic_shape_green.svg","assets/img/polimorphic_shapes/polimorphic_shape_light_blue.svg","components/PolimorphicGradientBackground/styles.ts","components/PolimorphicGradientBackground/index.tsx","components/TelemetryChartsLegend/styles.ts","components/TelemetryChartsLegend/index.tsx","components/ImageZoom/styles.ts","components/Pin/styles.ts","components/Pin/index.tsx","components/PinEditModal/index.tsx","components/PinTooltip/styles.ts","components/PinTooltip/index.tsx","components/ImageZoom/index.tsx","components/FileDrop/styles.ts","components/FileDrop/index.tsx","components/FiltersContainer/styles.ts","components/FiltersContainer/index.tsx","pages/Admin/AdminLayout/index.tsx","components/Table/styles.ts","components/DamEcoCard/styles.module.css","pages/Admin/DevLogs/index.tsx","assets/img/order.svg","components/FormMachine/styles.ts"],"names":["CardContext","createContext","undefined","CardProvider","_ref","children","user","getUserProfile","cards","dispatch","useReducer","reducer","state","action","type","map","card","payload","isActive","isExpanded","dragIndex","hoverIndex","dragCard","newCards","splice","index","position","async","apiCall","userId","prefs","error","console","submitCards","length","useEffect","response","orderedCards","sort","a","b","contextValue","useMemo","_jsx","Provider","value","useCard","context","useContext","Error","module","exports","Container","styled","div","_templateObject","_taggedTemplateLiteral","BaseSpan","concat","colors","Blue300","Base","input","Grey400","Red","GreyInputBorder","GreyInputPlaceholder","Label","label","_ref2","disabled","isInputFilled","readonly","defineLabelColor","Grey200","Blue700","span","_templateObject2","Input","formLabel","register","validation","placeholder","handleChange","props","_jsxs","onChange","isProductionFront","includes","window","location","host","__API__","localStorage","getItem","process","_backendDescriptionToShow","apiHostName","URL","hostname","err","backendDescriptionToShow","__WS_URL__","defaultOptions","baseURL","instance","axios","create","reqWithCredentials","authHeader","route","body","config","method","url","data","headers","Authorization","unicodeBase64","str","equivString","encodeURIComponent","replace","match","p1","String","fromCharCode","parseInt","btoa","key","reqParams","token","prefsStorage","JSON","parse","formatLanguage","language","authorization","apmElastic","dielApiPost","then","r","apiCall2","authToken","toFormData","formData","FormData","propName","propVal","Object","entries","Array","isArray","propValItem","set","toString","interceptors","request","use","status","clear","pathname","Promise","reject","href","apiSpecial","post","responseType","apiCallFormData","files","apiCallDownload","TrashIcon","width","color","height","viewBox","fill","xmlns","d","SmallTrashIcon","stroke","strokeWidth","strokeLinecap","strokeLinejoin","DEFAULTVALUEMENU","menuToogle","setMenuToogle","MenuContext","LogoIcon","src","alt","HamburgerIcon","SpeedometerIcon","percentage","Chart","Svg","Orange","Yellow","Green","Pointer","Percentage","svg","_templateObject3","_templateObject4","DarkGrey","_templateObject5","_ref3","GlobeIcon","ListIcon","fillOpacity","WarningIcon","GearIcon","ExitIcon","BellIcon","ExpandIcon","className","style","NewExpandIcon","GraphIcon","NotepadIcon","PeopleIcon","CheckboxIcon","size","InfoIcon","RealTimeIcon","CronometerIcon","ClockIcon","CO2Icon","fillRule","clipRule","CO2IconV2","PerformanceIcon","PaperIcon","CalendarIcon","CalendarSimpleIcon","CalendarPlusIcon","ArrowBackIcon","ArrowNextIcon","TimeIcon","ArrowIcon","AddImageIcon","TermometerIcon","variant","TermometerSubIcon","HumidityIcon","PressureIcon","SwitchIcon","CloseIcon","onClick","DownloadImageIcon","TimerIcon","RadialChartIcon","graphData","setGraphData","useState","name","White","BlueChart","RadialBarChart","startAngle","endAngle","RadialBar","legendType","minAngle","clockWise","dataKey","PowerIcon","KwhIcon","x","y","version","xmlSpace","ButtonPowerIcon","SubCoolingIcon","SuperHeatingIcon","AlertIcon","AddIcon","HistoryIcon","DeleteOutlineIcon","DeactivateUserIcon","ReactivateUserIcon","EditIcon","EnergyIcon","SaveIcon","transform","HealthMeterIcon","level","RectOpaque","RectShadow","IconPath","Text","bold","TSpan","rect","text","tspan","path","HealthIndexRedIcon","HealthIndexOrangeIcon","HealthIndexYellowIcon","HealthIndexGreenIcon","HealthDisabledIcon","MagnifyingIcon","CCircle","cx","cy","CPath","circle","ClientsIcon","AdminIcon","SearchIcon","SearchInputIcon","ExportDocumentIcon","OutOfSpecificationIcon","UrgentMaintenanceIcon","OperatingCorrectlyIcon","ImminentRiskIcon","HighTemperatureIcon","LowTemperatureIcon","DottedLineIcon","strokeDasharray","LineIcon","DashedLineIcon","UnknownHealthIcon","UnknownHealthDarkIcon","AcceptIcon","ClientPanelIcon","ExportWorksheetIcon","ZoomOutIcon","ExportPdfIcon","ThunderIcon","OpenEyeIcon","CloseEyeIcon","NoSignalIcon","colorSecundary","heigth","BadSignalIcon","RegularSignalIcon","GoodSignalIcon","GreatSignalIcon","BoxIcon","ChipIcon","viewChip","LayersIcon","WifiMiniOnIcon","WifiMiniOffIcon","ArrowUpIcon","ArrowUpIconV2","ArrowDownIcon","ArrowDownIconV2","UnitIcon","StatisticsIcon","NewImminentRiskIcon","TemperatureIcon","LightOnIcon","LightOffIcon","id","maskUnits","mask","ExitButtonIcon","filter","rx","strokeOpacity","filterUnits","colorInterpolationFilters","floodOpacity","result","in","values","dy","stdDeviation","in2","operator","mode","WatchIcon","PenIcon","VAVOpenedIcon","VAVClosedIcon","LockOpenedIcon","LockClosedIcon","CoolIcon","InformationIcon","LocalOperationIcon","RemoteAutoIcon","RemoteManualIcon","FanIcon","BlockIcon","EvapReturnIcon","EvapInsufIcon","ReferenceIcon","ComparativeIcon","ThermostatIcon","AddPlusIcon","NothingRegistered","DeleteSimpleIcon","MonitoringIcon","PortIcon","DatIcon","CheckDeviceIcon","PortEnableIcon","PortDisabledIcon","FilterIcon","ExportIcon","BatteryIcon","EnergyNobreakIcon","NobreakOffIcon","BatteryFullIcon","BatteryMidIcon","BatteryLowIcon","EletricNetworkIcon","NobreakIcon","CircleCheckGreen","CircleNotCheckRed","CircleWarningYellow","LuzAcesa","LuzApagada","CorrectIcon","IncorrectIcon","BluePaper","PenBlue","ColorChose","TrashSample","CompleteListIcon","CustomListIcon","ClockDurationIcon","ProgIcon","FoldedSheet","LinkIcon","AlertSignalIcon","SimcardIcon","PaperBloomIcon","EditPenPaperIcon","DeleteTrashIcon","CollapseIcon","ExpandCardIcon","EditIconPaperPen","PinIcon","PlusRoundedIcon","clipPath","TrashRoundedIcon","handleClick","EditPenIcon","SeeEyeIcon","ImageIcon","CheckIcon","ZoomMoreIcon","ZoomLessIcon","ResetZoomIcon","OrderIcon","orderDesc","DateIcon","FilterIconV2","WarnIcon","EditNotificationIcon","heightSvg","widthSvg","patternContentUnits","xlinkHref","DeleteNotificationIcon","ClientNotificationIcon","UnitNotificationIcon","ArrowLeftIcon","ArrowRightIcon","UrgentHealthIcon","RiskHealthIcon","OutHealthIcon","CelciusLogo","x1","x2","y1","y2","gradientUnits","stopColor","offset","Seta","ChillerIcon","CelciusColorLogo","SpringerLogo","MachineIcon","MonitoramentoIcon","ArrowDownAnalisys","margin","NoWifi","CompDisabled","OnIcon","FanBlueIcon","ColumnIcon","TimezoneIcon","TimezoneDSTIcon","ThermostatCircleIcon","ThermostatSquareIcon","Compressor","InfoLinkIcon","WaterOutlet","WaterInlet","OpenTab","IconHIndex2","IconHIndex4","IconHIndex25","IconHIndex50","IconHIndex75","IconHIndex100","NewApiIcon","PausedIcon","PlayIcon","Thermometer","SetpointCR","Automatic","AutomaticMode","Refrigerate","AtivoSemMonitIcon","InfoIconCR","CondenserIcon","EvaporatorIcon","FancoilIcon","SelfIcon","SplitCasseteIcon","SplitHiWallIcon","SplitPisoTetoIcon","SplitaoIcon","ArrowRightIconOutlined","VentIcon","EconomySaveIcon","FanRCIcon","WifiConnection","opacity","PowerRCIcon","MinusRCIcon","BackRCIcon","strokeMiterlimit","ReturnIcon","Wrapper","overflowHidden","Title","BlueSecondary","ChildrenWrapper","ChildrenWrapperNoPadding","ChildrenWrapperNoPaddingRelative","_templateObject6","Card","title","IconsContainer","noPadding","noPaddingRelative","wrapperStyle","Route404","params","isLogged","isRemoteControl","permissions","isPersonaII","Route","render","Redirect","to","SimpleButton","Button","ContainerInputs","SelectButton","table","thead","_templateObject7","tbody","_templateObject8","th","_templateObject9","Grey","_templateObject10","td","_templateObject11","tr","_templateObject12","_templateObject13","CloseModal","_templateObject14","ModalTitle","h3","_templateObject15","Blue500","ModalCancel","p","_templateObject16","_templateObject17","Blue400","t","i18n","bind","AdmCities","setState","useStateVar","loading","cities","citiesFiltered","searchResults","globalCitiesSearchText","CITY_ID","NAME","COUNTRY_NAME","COUNTRY_LAT","COUNTRY_LON","STATE_CODE","STATE_NAME","LAT","LON","STATE_LAT","STATE_LON","searchState","showModal","setShowModal","setValue","newValues","assign","list","row","ROW_ID","LONG","log","toast","columns","accessor","sortable","textAlign","cursor","rowData","confirm","cityName","cityId","reload","deleteCity","columnsSearch","fillCityInfo","CITY_LAT","CITY_LON","CITY_NAME","substr","toLowerCase","toLocaleUpperCase","_Fragment","Helmet","AdminLayout","Loader","NewTable","pageSize","extraBtns","ModalWindow","borderTop","minWidth","onClickOutside","Flex","justifyContent","flexDirection","alignItems","marginLeft","marginBottom","Box","display","gridTemplateColumns","gridColumnGap","e","target","flex","marginTop","_error$response","_error$response2","InputSearch","noSearchBar","AdmCitiesWrapper","withRouter","withTransaction","filterByColumns","array","searchText","searchTerms","split","item","searchTerm","some","colName","orderByColumns","column","descending","sorter","StyledLink","Link","ModalContent","FileInput","Pink200","Pink300","FwVersTable","limitSize","ViewMoreArrow","viewMore","TableNew2","AdmFirmware","history","useHistory","preFiltered","queryString","search","allDevs","filteredMachines","isLoading","waitingRequest","csvData","fwVersionsAllTypes","fwVersionsRows","fwCols","fwFolders","limitItems","lastScrollTop","openModal","modalReqUpdate","fw","sending","modalUpdateResult","devs","modalReqVersResult","modalReqCertResult","fwStageFilter","renderUpper","renderDevsTable","_fwsList","fwHwRevs","fwFamilies","devsList","all","fwsList","fwColumns","toUpperCase","fDate","Date","date","getTime","toISOString","fwFamily","fCol","push","fPath","fwVers","fwType","fwFolder","dev","fwInfo","versionNumber","hardware_type","devIdFamily","DEV_ID","substring","firmwareText","firmware_version","checked","rowKey","last_update_result","col_firmware_s","vMajor","vMinor","vPatch","keys","handleGetData","onScroll","scrollBottom","document","documentElement","scrollTop","innerHeight","scrollHeight","addEventListener","removeEventListener","UpperControls","pageState","DevsTable","profile","localState","setLocalState","viewMoreFws","debounceTimer","availableActions","firmwareFamilies","moreThanTen","checkedDevs","applyActionToSelected","wantUpate","devId","fwRow","fwColName","vMajorName","hwFirmwares","flexWrap","isAdminSistema","paddingTop","paddingRight","RadioButton","borderRight","padding","fontWeight","gap","fontSize","ReactTooltip","place","effect","delayHide","top","left","textColor","border","backgroundColor","maxWidth","pt","mb","clearTimeout","setTimeout","Select","options","onSelect","opt","ModalAddFirmware","ModalSendOtaUpdate","ModalUpdateResult","ModalReqVersResult","ModalReqCertResult","sortBy","setSorting","filtered","Checkbox","checkState","i","STATE_ID","CLIENT_NAME","UNIT_ID","UNIT_NAME","machineName","IconOnline","IconOffline","IconLate","FWVERSSTATUS","OTAPROCSTATUS","RowCheckbox","renderCheckbox","selectedFwFolder","file","notNull","hidden","fileName","fwStage","devIdFamilies","invalidDevices","compatibleVersions","canUpdate","checkCanUpdate","selected","paddingBottom","propLabel","maxHeight","overflowY","textDecoration","msgCantUpdate","outMsg","fwPath","join","render_modal","sendAll","isRetry","sendCommand","resolve","pars","waitLonger","thereWasErr","DevLine","subProps","renderLine","currFwInfo","wantedFwInfo","_currFwInfo$versionNu","_wantedFwInfo$version","_currFwInfo$fwInfo","currMajor","newMajor","startsWith","currentVersion","newIsLegacy","currentIsLegacy","newIsRefactor","FormEditGroup","groupInfo","unitInfo","unitsList","dutsList","damsList","dacsList","clientId","onSuccess","onCancel","dutItem","roomDutLabel","ROOM_NAME","submitting","GROUP_ID","GROUP_NAME","unit","find","selectedDacs","autom","DEV_AUT","DAM_ID","dut","DUT_ID","associatedDacs","warningMessage","dac","DAC_ID","set_formData","v","isEdit","filteredDuts","filteredDams","selectedAutDacs","automationDevs","automationEnabled","checkAutomationConstraints","allowedDams","dam","marginRight","event","changedAssociation","alert","associations","REL_DEV_AUT","REL_DUT_ID","CLIENT_ID","_associations$REL_DEV","_associations$REL_DEV2","_associations$REL_DEV3","REL_DAM_ID","REL_DRI_ID","numCols","repeat","AdminGroupAutomation","filteredList","damsListFull","dacsListFull","dutsListFull","lastScrollHeight","editingGroup","includeDacs","problemsFound","offsetHeight","group","success","groupId","isDac","openEditGroup","dacs","DAM_DUT_REF","dutAutomationEnabled","problem","getObjects","obj","val","objects","_obj$i","hasOwnProperty","lastIndexOf","Scroll","Head","Body","HeaderCell","HeaderTitle","Data","Row","ClientsList","fabricantes","_render","clients","clientsFiltered","nomesTipos","full","ENABLED","filterData","PERMS_C","cod2","clientTypes","getAllClients","PICTURE","EMAIL","clientType","ActionButton","keepDevsData","deleteClient","LightBlue","ClientsListWrapper","TableContainer","TableHead","TableBody","DataCell","HeaderRow","DevManufacts","manufacturers","fetchData","clientsList","IDSTART","IDEND","deleteItem","FormEdit","responseData","CLIENT_ID_item","reqData","CardTitle","ComandosDevel","comandoDevel","comandoDevelParams","enviando","command","IoTMonitoring","monitorDevMessages","iotMessages","socket","useWebSocket","wsConn","message","iotMessage","topic","now","send","readyState","stringify","EcoModeDebug","dams","damId","ecoInfo","damEcoDebug","_ecoInfo$damEcoState","_ecoInfo$damEcoState2","_ecoInfo$lastDamTelem","_ecoInfo$lastDamTelem2","_ecoInfo$lastDamTelem3","_ecoInfo$lastDamTelem4","_ecoInfo$ecoCfg$SETPO","_ecoInfo$ecoCfg","duts","cmd_state","damEcoState","cmd_exp","lastDamTelem","lastTelemetry","State","Mode","SETPOINT","ecoCfg","dutId","dutInfo","assocDuts","_dutInfo$lastDutTelem","_dutInfo$lastDutTelem2","_dutInfo$TUSEMIN","T0","lastDutTelem","Temperature","TUSEMIN","proxCmd","Table","rowDam","rowDut","DevTools","comp","show","DesktopTable","StyledSpan","SearchInput","IconWrapper","KeyCodes","comma","slash","enter","delimiters","DUTIrList","actionOpts","selectedDUTSource","wantSetIrSource","ownershipOpts","ownershipFilter","tablePage","tablePageSize","totalItems","allChecked","viewAllClients","manageAllClients","viewMultipleClients","Header","Cell","MCHN_BRAND","slice","MCHN_MODEL","damInop","relay","StatusBox","lastCommTs","every","handleGetDUTS","onlyPossibleAutomation","SKIP","LIMIT","city","selectedDevs","ReactTags","tags","handleDelete","tag","handleAddition","allowDragDrop","allowDeleteFromEmptyInput","inputFieldPosition","minQueryLength","EmptyWrapper","DataTable","isUnit","onPageChange","page","currentPage","irSourceDev","dutCommandTypes","sourceIrCodes","configs","targetDutId","responses","confirmIRSource","CustomInput","ConsumptionContainer","ConsumptionRow","DateRow","InputLabel","DateLabel","InputText","Form","form","CicleDetailContainer","TitleSelectRow","CustomInputCicle","_templateObject18","Grey030","GreyLight","CicleInfoContainer","_templateObject19","CicleInfoRow","_templateObject20","CicleDateInfoRow","_templateObject21","ItemRow","_templateObject22","ItemDateRow","_templateObject23","ItemTitle","_templateObject24","ItemSubTitle","_templateObject25","_templateObject26","IconWrapperView","_templateObject27","Content","_templateObject28","BaseLinesBool","_templateObject29","ContentEnergyMeter","_templateObject30","_templateObject31","Black","Unit","_templateObject32","Test","_templateObject33","InputRow","_templateObject34","ContentDate","_templateObject35","Pink400","StyledCalendarIcon","_templateObject36","BtnExport","_templateObject37","ExportWorksheet","ModalTitle2","_templateObject38","IconWrapper2","_templateObject39","SectionContainer","_templateObject40","_templateObject41","SeeAssociationGroups","_templateObject42","ModalDesktop","_templateObject43","_templateObject44","MobileWrapper","_templateObject45","ModalSection","_templateObject46","Grey100","ModalTitleContainer","_templateObject47","_templateObject48","_templateObject49","ModalDisassociate","_templateObject50","EditCicleContainer","_templateObject51","ModelRateContainer","_templateObject52","CancelButton","_templateObject53","RateGroupsTitle","_templateObject54","ContentTab","_templateObject55","StyledList","ul","_templateObject56","StyledItem","li","_templateObject57","StyledName","Grey500","ModalTitle3","_templateObject58","LabelSwitch","_templateObject59","CloseBtn","_templateObject60","Blue200","_templateObject61","CustomInputConstructedArea","_templateObject62","parseProgrammingString","pString","pData","startHM","endHM","desc","isDefault","rgx","matched","period","wholeDay","fillDescription","getDaySched","workPeriods","workPeriodExceptions","day","asDate","dayWeek","getUTCDay","dayDate","sched","getDayProgDesc","dayProgInfo","modes","allow","forbid","toLocaleLowerCase","clearProg","permission","start","end","FormAssociateDevs","groupsList","handlePaste","setUnits","clipboardData","getData","trim","activeElement","HTMLElement","blur","onPasteFilterOptions","pastedItems","parsedPastedItems","FormEditClass","classInfo","listUnitsSelect","editingExtras","selectedUnits","CLASS_ID","CLASS_TYPE","CLASS_NAME","onlyIds","forEach","oldClassUnitsList","oldClassUnitsIds","getClassUnits","onPaste","SelectMultiple","haveFuzzySearch","handleSelectItem","ButtonClear","FakeLink","unitIdsList","UNIT_IDS","_response","FormEditDut","roomTypes","stateChanged","changed","roomType","RTYPE_ID","warn","ENVIRONMENT_ID","ENVIRONMENT_NAME","DRI_ID","VAV_ID","weekDaysList","mon","tue","wed","thu","fri","sat","sun","SchedulesList","devSched","wantDelException","wantAddProg","wantEditDay","wantRemoveDay","dayProgs","excepts","week","dayName","isBlank","exceptions","prog","dateYMD","mt","readOnly","ItemWrapper","pr","ProgTable","TextProgTabDay","TextProgTabMode","pl","pb","ProgTableExc","SchedulesEdit","selectedDay","onConfirmProg","isSending","exception_date","ruleException","allowForbid","weekDays","start_time","end_time","formErrors","days","editProg","SelectDay","isSelected","ErrorMessage","mr","ml","start_index","test","horas","Number","minutos","end_index","validateForm","SchedulesRemove","onConfirm","isRemoving","isBold","Grey300","_ref4","verifyExistOrReturnString","FormEditRoomType","roomTypeInfo","schedulesTypeActive","editDayString","monTypesSelected","RTYPE_NAME","TUSEMAX","fullProg","CO2MAX","HUMIMAX","HUMIMIN","verifyExistItemOrReturnNull","parseDecimalNumber","modalContent","dayString","columnGap","isOk","validateParams","fullProgToWorkPeriods","SelectedContainer","Selected","EmptyLabel","Arrow","isOpen","borderProperty","SelectedLabel","ListItem","Grey050","List","BlueBar","isLast","hideSelected","innerRef","useRef","setIsOpen","clickOutsideCallback","useCallback","useOuterClickNotifier","isOption","option","renderIcon","iconName","Icon","IconNames","ref","toggle","emptyLabel","closeOnSelect","formatDisplayedValue","suggestedNewValues","changeMultipleSelection","ExtrasList","wantDelete","wantEdit","wantAdd","ExtrasEdit","editedItem","FormEditExtras","unitId","wantClose","activeView","editedIndex","EXTRA_DATA","fetchServerData","onWantRemoveItem","onConfirmItem","middleware","thunk","InitialState","devInfo","store","createStore","applyMiddleware","saveSessionStorageItem","sessionStorage","setItem","removeSessionStorageItem","removeItem","getSessionStorageItem","jsonTryParse","getCachedDevInfoSync","getState","getCachedDevInfo","onlyCached","forceFresh","arguments","info","dut_aut","dri","dma","dal","dmt","optsDescs","driApplicationOpts","VAV","Fancoil","driMeterApplications","ET330","EM210","driVAVsApplications","driVAVApplicationsOptions","driFancoilsApplications","getDriChillerCarrierApplications","isHvar","vavFancoilValveTypes","driChillerCarrier30HXParams","circuitAParams","CP_A1","unitMeasurement","CP_A2","CAPA_T","DP_A","SP_A","SCT_A","SST_A","CPA1_OP","CPA2_OP","DOP_A1","DOP_A2","CPA1_DGT","CPA2_DGT","EXV_A","HR_CP_A1","HR_CP_A2","CPA1_TMP","CPA2_TMP","CPA1_CUR","CPA2_CUR","circuitBParams","CP_B1","CP_B2","CAPB_T","DP_B","SP_B","SCT_B","SST_B","CPB1_OP","CPB2_OP","DOP_B1","DOP_B2","CPB1_DGT","CPB2_DGT","EXV_B","HR_CP_B1","HR_CP_B2","CPB1_TMP","CPB2_TMP","CPB1_CUR","CPB2_CUR","driChillerCarrierGeneral30HXParams","CHIL_S_S","CAP_T","DEM_LIM","LAG_LIM","SP","CTRL_PNT","EMSTOP","COND_LWT","COND_EWT","COOL_LWT","COOL_EWT","COND_SP","CHIL_OCC","STATUS","driChillerCarrierAlarmParams","alarm_1","alarm_2","alarm_3","alarm_4","alarm_5","driChillerCarrier30XAParams","OP_A","SLT_A","HR_CP_A","OP_B","SLT_B","HR_CP_B","driChillerCarrierGeneral30XAParams","CTRL_TYP","SLC_HM","SP_OCC","OAT","HR_MACH","HR_MACH_B","driChillerCarrier30XAHvarParams","ECON_P_A","DOP_A","CURREN_A","CP_TMP_A","DGT_A","ECO_TP_A","SUCT_T_A","CIRCA_AN_UI","CIRCB_AN_UI","ECON_P_B","DOP_B","CURREN_B","CP_TMP_B","DGT_B","ECO_TP_B","SUCT_T_B","circuitCParams","CIRCC_AN_UI","CAPC_T","DP_C","SP_C","ECON_P_C","OP_C","DOP_C","CURREN_C","CP_TMP_C","DGT_C","ECO_TP_C","SCT_C","SST_C","SUCT_T_C","EXV_C","driChillerCarrierGeneral30XAHvarParams","GENUNIT_UI","TOT_CURR","driMetersCfgs","application","protocol","serialMode","modbusBaudRate","parity","stopBits","telemetryInterval","createEteConfig","createSchneiderConfig","driProtocolsOpts","driParityOpts","Desabilitado","Ímpar","Par","driLayerOpts","Ethernet","driStopBitsOpts","modbusBaudRateOpts","currentCapacityOpts","installationTypeOpts","driApplicationCfgs","createEteApplicationConfig","createSchneiderApplicationConfig","driSlaveId","Tabs","links","ulRef","link","currCont","current","innerWidth","offsetLeft","scrollLeft","handleScrollTo","EnergyMeterForm","_state$energyMetersDa2","_state$energyMetersDa3","clearEnergyForm","checkMultipleEnergyMeters","useTranslation","borderLeftColor","borderLeftWidth","borderLeftStyle","borderRadius","borderRightColor","borderRightWidth","borderRightStyle","borderTopColor","borderTopWidth","borderTopStyle","borderBottomColor","borderBottomWidth","borderBottomStyle","paddingLeft","paddingBotoom","_state$energyMetersDa","SERIAL","energyMetersData","meterSerial","MANUFACTURER","selectedManufacturer","meterDriId","selectedMeterModel","filteredModelsList","selectedCurrentCapacity","selectedInstallationType","nameOfEstablishment","aligndiv","SelectNew","manufacturersList","modelsList","model","MANUFACTURER_ID","CicleDetail","_state$vigencyCicle$W","_state$vigencyCicle$W2","_state$vigencyCicle$W3","_state$vigencyCicle$W4","_state$vigencyCicle$W5","_state$vigencyCicle$W6","_state$vigencyCicle$W7","_state$vigencyCicle$W8","_state$vigencyCicle$W9","_state$vigencyCicle$W10","_state$vigencyCicle$C","rateModels","formUnitState","selectedModel","modelOptions","energyRate","vigencyCicle","vigencyModel","modelName","selectedModelId","modelId","rateCicles","loadVigencyCicle","START_CICLE_DATE","END_CICLE_DATE","groupName","subGroupName","rateModalityName","WHITERATE_PARAMETERS","RATE_PONTA","START_PONTA","END_PONTA","FIRST_MID_RATE","START_FIRST_MID_RATE","END_FIRST_MID_RATE","LAST_MID_RATE","START_LAST_MID_RATE","END_LAST_MID_RATE","RATE_OUTPONTA","CONVENTIONALRATE_PARAMETERS","RATE","PIS","COFINS","ICMS","iframe","img","DragContainer","isPadding","DropzoneArea","maxFiles","fileDropped","extensions","acceptedFiles","fileRejections","isDragActive","getRootProps","getInputProps","useDropzone","accept","onDrop","preview","createObjectURL","filesNames","deleteSims","deleteArray","sim","listSimcards","ICCID","OLDICCID","ICCIDS","editUpdateSims","listToSet","listSimEdit","ACCESSPOINT","MODEM","MACACCESSPOINT","MACREPEATER","addPhotosSims","listAddPhotos","simInfo","simcard","iccid","referenceId","ID","referenceType","deletePhotosSims","deleteListPhotos","filename","formValidators","login","required","loginExtra","consumerUnit","password","comboHydrometerOptions","FormEditUnit","_unitInfo$UNIT_CODE_C","_unitInfo$UNIT_CODE_A","_unitInfo$AMOUNT_PEOP","_unitInfo$CONSTRUCTED","_formData$CONSTRUCTED2","_formData$distributor","moment","locale","countries","states","timezones","distributors","setFiles","isBaselineOpen","supervisors","selectedDistributor","isBaselineEdit","isBaselineValuesEdit","accessPoints","additionalDistributorInfo","accessPointsAvailable","energyMeters","waterMeters","selectedSupplier","hydrometerModel","installationDate","meterWaterId","totalCapacity","totalOfReservoirs","installationLocal","otherInstallationLocal","focused","isAllEnergyMetersFromDiel","modalAddSimcard","formSimcard","pontoAcesso","modem","macPontoAcesso","macRepetidor","itemDesc","modalDesc","editDeleteSim","modalDeleteSim","PasswordInputType","ToggleIcon","usePasswordToggle","visible","setVisiblity","visiblity","UNIT_CODE_CELSIUS","UNIT_CODE_API","TARIFA_KWH","PRODUCTION","Boolean","city_item","state_item","country_item","distributor","DISTRIBUTOR_ID","LOGIN","login_extra","LOGIN_EXTRA","consumer_unit","CONSUMER_UNIT","PASSWORD","baselineValues","baselineTemplate","baselineId","ADDITIONAL_DISTRIBUTOR_INFO","timezone","area","TIMEZONE_AREA","TIMEZONE_OFFSET","TIMEZONE_ID","AMOUNT_PEOPLE","CONSTRUCTED_AREA","usersList","setUsersList","isAccessDistributorEdit","comboLocalOptions","isAllDiel","meter","_meter$selectedManufa","includeAdmins","oldSupervisorsList","oldSupervisorsEmail","supervisor","oldSupervisors","USER","getClientUsers","updateAccessDistributorData","_state$energyMeters","capacityTc","installationType","_devInfo$dri","_devInfo$dri$varsCfg","_devInfo$dri$varsCfg$","_devInfo$dri2","_devInfo$dri2$varsCfg","_devInfo$dri2$varsCfg2","ENERGY_DEVICE_ID","varsCfg","varsList","address","_installationTypeOpts","manufacturer","MODEL","ESTABLISHMENT_NAME","getEnergyData","_state$waterMeters","meterId","integrId","_info$installationDat","supplier","hasDefaultOption","installationLocation","quantityOfReservoirs","getWaterData","getListSimcards","queryPars","linkBase","tabs","aba","categoria","energyTabs","handleSubmit","watch","formState","errors","useForm","filtStates","COUNTRY_ID","filtCities","unitStatus","flexFlow","onSubmit","responseBaseline","responseAccessDistributor","_formData$CONSTRUCTED","amountPeople","amountPeopleValue","isNaN","isInteger","verifyAmountPeople","RATE_MODEL_ID","reqDataAccessDistributor","reqBaseline","BASELINE_ID","BASELINE_TEMPLATE_ID","BASELINE_TEMPLATE_TAG","reqBaselineValues","USER_ID","Headers2","selectedCountry","selectedState","suffix","SelectSearch","printOptions","filterOptions","fuzzySearch","_state$distributors$f","_state$accessPoints$f","distributorTag","access_points","handleAccessPoints","InputNew","FormEditBaselines","onHandlePrice","month","price","baselineIndex","findIndex","BASELINE_MONTH","BASELINE_PRICE","BASELINE_KWH","onHandleKwh","kwh","onHandleBaselineTemplate","onHandleBaselineId","onHandleIsBaselineEdit","onHandleIsBaselineValuesEdit","SingleDatePicker","onDateChange","dateEnd","onFocusChange","numberOfMonths","isOutsideRange","dmaData","DMA_ID","laagerData","meters","energyMeter","meterReqData","_energyMeter$selected","_energyMeter$selected2","driCfg","driId","_error$response3","_error$response4","handleSubmitEnergyMeterInfo","HYDROMETER_MODEL","defaultInstallationLocation","INSTALLATION_LOCATION","INSTALLATION_DATE","format","TOTAL_CAPACITY","QUANTITY_OF_RESERVOIRS","CHANGED_BY_UNIT","changedByUnit","handleSubmitWaterMeterInfo","catch","SubmitSimcards","FormEditModel","_state$selectedDistri","itemToEdit","groupOptions","subGroupOptions","rateModalities","distributorOptions","selectedGroup","selectedSubgroup","selectedModality","rateGroups","rateSubGroups","loadConfig","distributorLabel","distributorId","subGroup","subgroup","rateModality","modality","MODEL_ID","MODEL_NAME","SUBGROUP_ID","RATEMODALITY_ID","FormEditAssociation","associationInfo","associationsList","selectedUnit","unitGroupsList","selectedGroups","ASSOC_ID","ASSOC_NAME","GROUPS","unitIds","getUnitGroups","ModalContainer","ModalHeader","borderColor","POSITION","_group$POSITION","groups","TableClasses","onDeleteClick","onEditClick","classesUnitsList","filterClassUnits","classUnits","getClassesUnits","TableModels","onDeleteModelClick","onDeleteCicleClick","openEditCicle","openCreateEditModel","models","_item$rateCicles","_item$rateCicles2","hide","onClickHide","cicle","CICLE_ID","CICLE_NAME","ChevronTop","ChevronBottom","TableDuts","vavsList","setIsLoad","_renderVar","selectOption","sortOrder","orderColum","numSelect","selectedRType","filteredRows","setFilteredRows","listEnvironments","setEnvironments","routeParams","useParams","getDataPerPage","columnsEnvironment","checkItem","newItem","ENV_ID","isChecked","isCheckedItem","filterItem","notCheckAllItems","notIncludes","checkAllItems","sortedRows","newSortOrder","dynamicSort","handleSetOrderColumn","Pagination","onNextPage","onPreviousPage","ModalEnvironment","updateOrDelete","arrayPromisse","arr","DEVS_INFO","verifyRoute","setsIsLoading","zIndex","TableFreeDevices","freeDevs","selectionChanged","freeDevChecked","TableRoomTypes","schedCol","DUTS_COUNT","DRIS_COUNT","button","MosaicMachineList","TableList","TooltipContainer","getStatusColor","isPrimary","background","font","TableExpandButton","health","healthLevelColor","dat","TransparentLink","TableItemCell","TableUnits","unitsDisp","unitsDispLoading","onToggleReportClick","waterList","renderUnits","deleteUnitsOpen","onDeleteUnits","onCloseDeleteUnits","listChecked","setListChecked","unitsSupervisorsList","getUnitsSupervisors","acessor","FaTools","LATLON","DISABREP","ENERGY_METER","WATER_METER","_unitsDisp$item$UNIT_","_unitsDisp$item$UNIT_2","water","DEVICES","DACS_COUNT","DAMS_COUNT","AVAILABILITY_LAST_7_DAYS","avgDisp","formatNumberWithFractionDigits","toFixed","RESPONSIBLE","unitSupervisors","NOME","SOBRENOME","filterUnitSupervisors","REPORT","METER_ENEGY_DEVICE","METER_WATER_INTEGR","checkBox","multipleConfig","keySearch","verifyMobile","isAutomation","_state$application","isFancoil","driApplication","isVAV","isFancoilVavAutomation","checkProtocolValue","cfg","getKeyByValue","object","FormEditMachine","_props$machineWithAss","_props$machineWithAss2","_props$machineWithAss3","isViewMachine","selectedApplication","selectedChillerModel","selectedChillerLine","driInfo","driProtocol","driLayer","driParity","driStopBits","driSendInterval","driCfgFile","isChillerCarrier","machine","machineWithAsset","unitName","brandName","BRAND","GROUP_TYPE","refrigerationCapacity","MACHINE_COOLING_CAPACITY","refrigerationFluid","FLUID_TYPE","applic","MCHN_APPL","ratedPower","MACHINE_RATED_POWER","automationDevId","capacityMeasurementUnit","MACHINE_COOLING_CAPACITY_UNIT","refDUTId","condensersSumRatedPower","assets","reduce","accumulator","AST_ROLE","MCHN_KW","condensersSumCoolingCapacity","CAPACITY_PWR","condensersCoolingCapacityUnits","asset","CAPACITY_UNIT","handleChangeAssets","assetsForm","sumRatedPower","roleId","sumRefrigerationCapacity","checkDevExistsAnotherAsset","devCode","assetToIgnore","assetId","verifyPermissions","isInstaller","_profile$adminClientP","adminClientProg","CLIENT_MANAGE","_state$driInfo","_state$driInfo$info","verifyAutomPermission","indexAux","_asset$CAPACITY_PWR","_asset$MCHN_KW","AST_DESC","datId","DAT_ID","role","AST_TYPE","devIdPersisted","devClientAssetId","DEV_CLIENT_ASSET_ID","datIndex","DAT_INDEX","ASSET_ID","chillerModel","CHILLER_MODEL_NAME","chillerModelValue","CHILLER_MODEL_ID","chillerLine","CHILLER_LINE_NAME","chillerLineValue","CHILLER_LINE_ID","chillerGateway","CHILLER_GATEWAY_NAME","chillerGatewayValue","CHILLER_GATEWAY_ID","nominalCapacity","NOMINAL_CAPACITY","nominalVoltage","NOMINAL_VOLTAGE","nominalFrequency","NOMINAL_FREQUENCY","setDriCfg","_getKeyByValue","_getKeyByValue2","_getKeyByValue3","_getKeyByValue4","_getKeyByValue5","_driCfg$driConfigs","_driCfg$driConfigs$fi","_driCfg$driConfigs2","_driCfg$driConfigs2$f","_driCfg$driConfigs3","_driCfg$driConfigs3$f","_driCfg$driConfigs$fi2","_driCfg$driConfigs4","_driCfg$driConfigs4$f","_driCfg$driConfigs4$f2","_driCfg$driConfigs$fi3","_driCfg$driConfigs5","_driCfg$driConfigs5$f","_driCfg$driConfigs5$f2","_formData$assets$0$ch","_formData$assets$","_driCfg$varsList","_driCfg$varsList$find","_driCfg$varsList$find2","_driCfg$varsList$find3","defaultConfig","driConfigs","uploadSelectedDriConfigFile","_formData$assets$2","_formData$assets$3","getDriApplication","sendInterval","slaveId","_state$selectedCurren","_state$selectedInstal","intervalTmp","createVariables","_state$driCfgFile","SYSTEM_NAME","worksheetName","onStateSelected","_formData$assets$7","getDriInfo","_formData$assets$4","_formData$assets$5","_formData$assets$6","assetsWithoutName","_formData$machine$aut4","_props$machineWithAss4","reqCombos","combos","devAut","value1","value2","isDut","formatedDate","groupResponse","COOLING_CAPACITY","COOLING_CAPACITY_UNIT","RATED_POWER","SUM_RATED_POWER_CONDENSERS","SUM_COOLING_CAPACITY_CONDENSERS","COOLING_CAPACITY_UNITS_CONDENSERS","assetsOriginal","DEVICE_CODE","DAT_COUNT","OLD_DEV_ID","UPDATE_MACHINE_RATED_POWER","UPDATE_MACHINE_COOLING_CAPACITY","TYPE_CFG","CHILLER_CARRIER_MODEL_ID","CHILLER_CARRIER_GATEWAY_ID","_formData$machine$aut","_formData$machine$aut2","_formData$machine$aut3","isDam","isDri","FormMachine","registerParente","onHandleChangeMachine","machineForm","onHandleChangeAsset","unitsOpt","modelsChillerList","comboOpts","handleSelectedApplication","handleSelectedChillerCarrier","selectedChillerCarrier","handleSelectedChillerModel","handleSelectedChillerLine","FormAssetsList","onHandleDeleteAsset","onHandleChange","ViewCAG","ViewMachine","preventDefault","FormEditCreateCicle","cicleBaseInfo","dateStart","focusedEnd","dateStartEnd","dateEndF","formCicle","ponta","outPonta","startPonta","endPonta","firstMidRate","startFirstMidRate","endFirstMidRate","lastMidRate","startLastMidRate","endLastMidRate","rate","_itemToEdit$WHITERATE","_itemToEdit$WHITERATE2","_itemToEdit$WHITERATE3","_itemToEdit$WHITERATE4","_itemToEdit$WHITERATE5","_itemToEdit$WHITERATE6","_itemToEdit$WHITERATE7","_itemToEdit$WHITERATE8","_itemToEdit$WHITERATE9","_itemToEdit$WHITERATE10","_itemToEdit$CONVENTIO","loadEditCicle","_ref5","_ref6","_ref7","_ref8","_ref9","_ref10","_ref11","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","_state$dateStart","_state$dateStartEnd","_state$dateStartEnd2","createEditCicle","FormEditCicle","openCreateEditCicle","FormEditHeatExchanger","heatExchangerInfo","brandList","T_MIN","T_MAX","DELTA_T_MIN","DELTA_T_MAX","suffixLength","TextInfo","TextInfoLoading","InputWithValidation","cProps","onEnterKey","validateFunction","newDevice","hasMachine","setLoading","setStatus","setAllowedMonitoring","InputValidationContext","htmlFor","onKeyPress","nativeEvent","keyCode","visibility","TextStatus","textStatus","textStatusOkDAM","textStatusNotOkDAM","associated","SideBar","SelectDMTport","eletricCircuitId","addUnitToString","propOrNullValue","getParamNumber","param","FormEditUtility","utilityInfo","utilityType","hasMonitoring","DMT_CODE","DAL_CODE","DAM_ILLUMINATION_CODE","selectPortNow","PORT","FEEDBACK","hasDatId","DAT_CODE","buttonDisabled","portsOpt","feedbackOpt","applicationOpts","getDmtPortsOpts","ports","MONITORING_DEVICE","NEW_UTILITY_TYPE","port","NobreakId","feedbacks","getDalPortsOpts","illuminationId","fb","getPortsOpts","opts","portsInfo","propOrEmpty","prop","allowedMonitoring","portProp","labelProp","hasPort","UNIT","APPLICATION","INSTALLATION_DATA","INPUT_VOLTAGE","OUTPUT_VOLTAGE","NOMINAL_POTENTIAL","BATTERY_LIFE","NOMINAL_BATTERY_LIFE","INPUT_ELECTRIC_CURRENT","OUTPUT_ELECTRIC_CURRENT","NOMINAL_BATTERY_CAPACITY","GRID_VOLTAGE","GRID_CURRENT","getFormDataInitialState","isLessThanZero","number","confirmNobreak","propOrNull","confirmIllumination","_formData$GRID_VOLTAG","hasDevice","hasDmt","hasDal","hasDam","feedback","gridVoltageSplitted","validateMonitoringDmtUtility","ans","freePorts","handleValidateFunction","freeDevice","validateMonitoringDamIlluminationUtility","validateMonitoringIllumination","notValidate","monitoringDeviceForm","labels","deviceCode","deviceIdText","devicePortText","monitoringText","ToggleSwitchMini","UtilityIcon","noSuffixBorder","_result$action","_result$action2","sliceStr","len","addUnit","ViewUtility","onClickEdit","additionalParameters","setAdditionalParameters","utilityValues","feedBack","nobreakId","devicePort","installationData","toLocaleDateString","inputVoltage","outputVoltage","gridCurrent","gridVoltage","nominalPotential","nominalBatteryLife","inputElectricCurrent","outputElectricCurrent","nominalBatteryCapacity","dmtCode","nobreakPort","datCode","formatUtilityInfo","NOBREAK_ID","parameters","getNobreakAdditionalParameters","verifyInfoAdditionalParameters","ClientPanelLayout","manageSomeClient","prefix","CSVheader","modalOptions","daysOfTheWeek","modalWidthByType","modalPaddingByType","ClientPanelPage","selectedClient","singleClientViewId","ClientPanel","clientInfo","deviceLink","PROP","csvLinkEl","cicleToEdit","isLoadingDuts","units","energyMetersList","timezonesList","statesList","citiesList","countriesList","accessPointsList","damsListDac","environmentList","drisList","machinesWithAssetsList","classesList","distributorsList","showDAMs","showDUTs","selectedMachine","selectedAssociation","selectedDut","selectedRoomType","selectedAlert","selectedClass","selectedRateModel","selectedRateCicle","selectedHeatExchanger","lastDate","subtract","selectedDate","datesRange","getDatesRange","focusedInput","gettingCsv","associationsColumns","showGroups","openCreateEditAssociation","groupColumns","openCreateEditGroup","machineColumns","openCreateEditMachine","heatExchangerColumns","deleteHeatExchanger","openCreateEditHeatExchangere","heatExchangersList","nobreaksColumns","getUtilityActionColumns","illuminationColumns","selectedUtilityItem","selectedUtility","iluminationList","nobreakList","actionColumns","openViewUtility","openCreateEditUtility","resetParamsUrl","setEnvironmentList","environments","newListEnvFiltered","listIds","DUT_CODE","ENVIRONMENTS_ROOM_TYPES_ID","PLACEMENT","ISVISIBLE","temprtAlert","clientIds","INCLUDE_INSTALLATION_UNIT","nobreak","illum","rtypes","fullName","countryId","providers","stateFullName","fluids","types","brands","roles","applics","chillerModels","chillerLines","chillerGateways","brand","fluid","line","processReceivedServerData","getDispCsvData","formattedCSV","dispList","unitDisp","startDate","YMD","endDate","disp","_disp$disponibility","cliente","clientName","unidade","disponibilidade","disponibility","dia","d1","m1","d2","m2","diff","click","rType","_machine$dacs","DEVS_QUANTITY","association","GROUPS_COUNT","vav","openCreateEditUnit","isView","openEditDut","openCreateEditRoomType","openCreateEditClass","deleteUtility","deleteNobreaks","ILLUMINATION_ID","deleteIlluminations","deleteEnvironment","env","afterCreateEditClass","utilityButtons","float","getModels","profilePerms","AccordionV2","opened","openedExtraHeader","isSuperAdmin","calculateClientUnitsDisp","getDuts","_state$clientId","ModelRate","_ref19","_ref18","isChiller","deleteGroup","deleteAssociation","_ref27","_ref28","_ref29","getEnvironments","bool","rtype","StyledLine","hideEmptyTable","bottom","_ref20","_ref21","_ref22","_ref23","found","_ref24","cicleInfo","ShowAssociationGroups","_ref25","_ref26","_ref30","isBefore","alignSelf","CSVLink","DMY","replaceAll","separator","asyncOnClick","enclosingCharacter","_ref31","ModalMobile","closeModal","LayerBackgroundModal","GreyDefaultCardBorder","PictureBox","generateNameFormatted","subName","FORM_VALIDATORS","email","phone","validate","RegExp","cnpj","EditClient","useRouteMatch","fabricante","picture","setPicture","setClientType","enabled","setEnabled","phoneNumber","setPhoneNumber","setCnpj","setClientInfo","client","auxClientType","CNPJ","PHONE","defaultParams","MaskCnpj","Image","FaRegTrashAlt","selectPictureFile","htmlNode","getElementById","onchange","reader","FileReader","readAsDataURL","tabIndex","FaFileUpload","Radio","Group","AntSwitch","SelectContainer","LoaderContainer","FaultsRow","FaultsLayout","APPROVAL_DESCS","APPROVED","REJECTED","ERASED","PENDING","RESTABLISHED","RESTAB_WAITING","RESTAB_PENDING","FaultsList","selectPositionX","selectPositionY","filterOpts","statusSelection","healthSelection","unitSelection","clientSelection","dataSelection","faults_count","tomorrow","add","isModalOpen","multiDays","useLocation","faultType","splitPath","filterFaultsBySearchTerms","filteredFaults","term","shouldSkipTerm","filterFaultRowsByTerm","hLevelDesc","faultRow","origem","applyFilters","primDet","isSameOrAfter","isSameOrBefore","faultyDacs","expirationLimit","devType","faults","fdetected","falha","buildFaultLine","healthLevelDesc","H_INDEX","rowkey","loadData","filteredDacs","_state$dataSelection","auxiliarFilteredDacs","_falha$firstRiseTS","_falha$firstRiseTS$su","_falha$lastRiseTS","_falha$lastRiseTS$sub","lastActionTime","lastAction","faultName","origin","firstRiseTS","ultDet","lastRiseTS","statusDesc","TABLE_COLUMNS","HealthIcon","fault","checkable","checkValue","clientX","clientY","handleFaultItemClick","selectedDacFaults","faultId","exportResponse","revokeObjectURL","download","applyActionToSelectedDacs","selectedFaults","faultAction","dev_id","ignore","FaultsListDAM","faultyDams","selectedDamFaults","applyActionToSelectedDams","FaultsListInstallation","startTime","falhas","dacInfos","dacFaults","faultsList","fault_time","former","notif_type","return_time","dacInfo","fault_name","flattenedData","flatMap","dataEntrada","dataSaida","InputNumber","StyleSelect","CustomAnalysis","ExportarDevs","isExportingDacs","exportDacsList","exportDutsList","exportDamsList","TemprtMediaDUTs","render_","isExporting","dayStart","exportList","updateDataLimits","newDataLimits","currentDataLimits","minVar","calculateAxisInfo","dataLimits","numOfBoolVars","booleanTypes","minTval","maxTval","minPval","maxPval","minCO2val","maxCO2val","hasTdata","hasPdata","minHum","maxHum","varLimits","Pressure","CO2","Humidity","presentLimits","hasCO2data","hasHum","getInitialLimits","minTicks","tInfo","pInfo","minTtick","maxTtick","Math","ceil","floor","minPtick","maxPtick","getMinTicks","L1start","boolVarStep","minTaxisVal","tempLimits","tempTicks","lineType","lineBase","presLimits","presTicks","minTAxisVal","totalSteps","round","positiveSteps","negativeSteps","pStepSize","getPresLimitsAndTicks","co2Limits","co2Ticks","co2Info","stepSize","minVal","maxVal","getCO2LimitsAndTicks","updateBoolY","varTypes","ticksValues","lineData","pop","ticks","tick_0","tick_1","calcTickLimits","element","L","convertBoolValue","Lval","lineIndex","fillMaxMin","maxY","minY","fillSteps","y_orig","steps","s","y_chart","DesktopWrapper","ContainerArrowLeft","angle","ContainerArrowRight","LabelData","LightGrey_v3","NoGraph","StyledLabel","ContainerParameters","SearchInputStyled","SelectOptionStyled","SelectedContent","HorizontalLineSelectParameters","BorderSubItem","InfoSelected","InputStyledSelected","isLeft","ContainerNotSelectedParams","groupGraph","ContainerGraphParamsChange","lengthArraySample","MenuFixedContainer","historySelected","daysWeek","getListDays","setDate","getDate","daysBetweenDates","currentDate","getDaysBetweenDates","dataPeriodOut","listDays","numPoints","hourGraph","interval","agruparPorData","listDates","grupos","objectDatesArrayNull","record_date","arrayNull","valuesFinal","arraySeparadasPorDia","verifyAddNull","chavesObjeto","novoArray","currentIndex","currentTime","finalDoDia","setSeconds","getSeconds","currentObj","nextObj","nextTime","parameter_value","criarNovoArrayDuplicandoOsValoresPeloTempo","arrayDatasOrganizadas","indexOf","acc","items","formatterxAxis","changedParams","_state$listDays$","_state$listDays","isDifferentMonth","getMonth","_state$listDays2","getDay","monthPart","padStart","returnXAxis","boundaryGap","splitLine","lineStyle","dataXChangedParams","dataX","axisLabel","fontFamily","lineHeight","formatter","rich","axisLine","axisTick","recordDate","_recordDate$index","dateFull","year","getFullYear","hour","seconds","hours","minutes","secs","formattedHours","formattedMinutes","formattedSeconds","secondsToTime","getDataToGraphsAndSetMaxValues","allWithoutDefault","percentArray","countValuesUniMed","sendToGraphDefault","sendToGraphPercent","maxValue","newState","isCircuit","unidMed","_item$data","max","setCircuitMaxValueAndCounter","C","kPa","A","H","P","darkenColor","hex","amount","g","hexToRgb","rgbToHex","toHex","setTimeToLoop","countHour","counter","time","fillMissingIntervals","dataArray","filledData","dataMap","isSame","ObjectXAData","ObjectXAHvarData","ObjectHXData","cap_t","cond_ewt","cond_lwt","cool_ewt","cool_lwt","ctrl_pnt","dp_a","dp_b","hr_cp_a","hr_cp_b","hr_mach","hr_mach_b","oat","op_a","op_b","sct_a","sct_b","slt_a","slt_b","sp","sp_a","sp_b","sst_a","sst_b","unit_id","genunit_ui","tot_curr","circa_an_ui","capa_t","econ_p_a","dop_a","curren_a","cp_tmp_a","dgt_a","eco_tp_a","suct_t_a","exv_a","circb_an_ui","capb_t","econ_p_b","dop_b","curren_b","cp_tmp_b","dgt_b","eco_tp_b","suct_t_b","exv_b","circc_an_ui","capc_t","dp_c","sp_c","econ_p_c","op_c","dop_c","curren_c","cp_tmp_c","dgt_c","eco_tp_c","sct_c","sst_c","suct_t_c","exv_c","cond_sp","cpa1_cur","cpa1_dgt","cpa1_op","cpa1_tmp","cpa2_cur","cpa2_dgt","cpa2_op","cpa2_tmp","cpb1_cur","cpb1_dgt","cpb1_op","cpb1_tmp","cpb2_cur","cpb2_dgt","cpb2_op","cpb2_tmp","dem_lim","device_code","dop_a1","dop_a2","dop_b1","dop_b2","hr_cp_a1","hr_cp_a2","hr_cp_b1","hr_cp_b2","lag_lim","GenerateGraphSample","arrayData","xAxis","haveTitle","countUniMed","toolbox","chartRef","objectData","verifyIndexY","returnWitchUniMedHave","haveCelcius","haveHour","haveKpa","haveAmper","havePercent","haveSeconds","generateAxisConfig","align","splitNumber","minInterval","numberValue","parseFloat","formattedNumber","formatLabel","nameTextStyle","generateCleanConfig","quantEspaco","min","returnSide","condition","returnOffsetHour","returnOffsetAmper","yAxisDecide","yAxisNotPorcent","haveOnlyLeftKpa","decideSideAmper","decideSideKpa","decideSide","decideSideCelcius","returnGraphNotPorcent","getTitle","textStyle","formatUnidMed","_objectData$item$seri","uniMed","seriesName","handleRenderChiller","echarts","chartInstance","showLoading","seriesData","stack","smooth","symbolSize","yAxisIndex","resize","setOption","haveToolbox","grid","containLabel","tooltip","trigger","nameChiller","dataIndex","arrayA","arrayB","arrayC","dataObject","newSeriesName","cssObject","tooltipContentFactory","formatterTooltip","yAxis","series","dispatchAction","dataZoomSelectActive","newObjectData","hideLoading","zoomTooltipOff","GenerateGraphGeralAlarmMaintaince","yAxisNames","getBallColor","class","verifyNullOrSum","sum","newSeries","step","formatterDataIfGroupGraph","chillerConfig","arrayNames","v1","titleName","TooltipComponent","GridComponent","VisualMapComponent","LineChart","SVGRenderer","UniversalTransition","listStatusNames","listMaintenceNames","listGeneralNames","listCompStatusNames","listAlarmNames","createOptionParameter","arrayDefault","arrayCompStatus","applicationType","ChillerParameters","getYAxisNames","handleOptionsParametersHX","handleOptionsParametersXAHvar","numberAux","verifyShowCircuitC","OptionsParameters","handleOptionsParametersXA","record_dates","optionsParameters","selectedParameters","sendToCompStatus","sendGraphDefaultGrouped","selectedAlarm","selectedGeneral","selectedStatus","selectedMaintence","selectedCompStatusA1","selectedCompStatusA2","selectedCompStatusB1","selectedCompStatusB2","groupGraphValues","haveData","changeData","searchData","textAlertParameters","handleGetParamsHistory","_response$paramsLists","_response$paramsLists2","_response$paramsLists3","_response$paramsLists4","_response$paramsLists5","_response$paramsLists6","_response$paramsLists7","_response$paramsLists8","_response$paramsLists9","_response$paramsLists10","_response$paramsLists11","_response$paramsLists12","_response$paramsLists13","_response$paramsLists14","_response$paramsLists15","_response$paramsLists16","_response$paramsLists17","_response$paramsLists18","START_DATE","END_DATE","HOUR_GRAPHIC","paramsLists","paramsChanged","paramsGrouped","dataProcessed","pointsObj","results","sumData","count","processData","recordDates","recordStatusObject","dateObj","createRecordStatusObject","valoresPorPropriedade","propriedades","objeto","chave","valor","chaveLower","separarValoresPorPropriedade","statusValues","parameter_name","compStatusValuesB1","compStatusValuesB2","compStatusValuesA1","compStatusValuesA2","geralValues","alarmValues","arrayStatus","arrayGeral","arrayAlarm","arrayCpb1","arrayCpb2","arrayCpa1","arrayCpa2","changeDataOptionsParameters","transformDataFunction","geral","manutencao","alarme","arrayFiltered","valoresExcluidos","Set","has","getObjectsFiltered","sendToCompGraph","arrayValues","numeros","gerarNumerosAteMaximoDataXChangedParams","handleBlur","handleColorInputClick","stopPropagation","addValuesParametersCircuit","stringName","filterValuesParametersCircuit","circuitName","op","minHeigth","multiple","AValues","BValues","CValues","selectedParameter","customElements","_state$optionsParamet","onBlur","onMouseOutCapture","selectedColor","darkenedColor","setColor","styleBox","haveCountSelect","limitSelect","AlertMessage","arrayLength","onAnimationEnd","HoverExportList","right","SemParametros","isGraphGeral","feature","dataZoom","xAxisIndex","zoom","back","filterMode","restore","saveAsImage","isZooming","on","handleZoom","handleRestore","AlertTextParameters","CsvLabelFormatterData","numDays","dd","mm","dateFinal","hh","abs","ss","tickXLabelFormatterDay","tickXLabelFormatterHour","sign","renderQuarterTickHour","tickProps","textAnchor","tooltipXLabelFormatter","_state$chartData$vars","graphEnable","axisInfo","hwCfg","selectedParams","chartData","vars","varInfo","isDesktop","matchMedia","matches","isSmallMobile","tickXLabelFormaterHour","mapToFurthestMultiple","L1Start","_state$chartData$vars2","_state$chartData","_state$alteredValues","chartDataVars","minTemperature","axisId","alteredValues","mappingValue","_mappingValues$get","mappingValues","Map","alternate","minKey","nextValue","get","generateMappings","originalValue","roundedValue","foundValue","valueAux","getClosestMultipleOfFive","mapSavedDataLabel","abbreviate","onlineLabel","offlineLabel","getCustomTickTempLabel","isSavedDataValue","valueY","_state$chartData$vars3","_alteredValuesAux$","_alteredValuesAux$2","_item$y","alteredValuesAux","verifyIsSavedDataValue","valAux","verifyValue","paramName","isPressure","isBool","isFanCoil","getLabelBasedOnCondition","getBooleanLabel","ifOption","elseOption","verifyYLabel","_state$devInfo","_state$devInfo2","verifyInterval","verifyMinPressure","_state$chartData$vars4","_axisInfo$presLimits$","hasValidData","_item$y2","intervalPressure","verifyIntervalPressure","gaps","verifyGapsIntervalPressure","minValue","verifyMaxPressure","_state$chartData$vars5","_item$y3","_axisInfo$presTicks","verifyMinTemp","_state$chartData$vars6","_item$y4","verifyMaxTemp","_state$chartData$vars7","_item$y5","_state$alteredValues$","_state$alteredValues2","verifyPaddingLegend","_selectedParams$lengt","lengthParams","_state$chartData$vars8","_state$chartData$vars9","_state$chartData$vars10","showSymbol","unitMap","legend","orient","itemGap","unitMed","unitAux","axisValue","_item$seriesName","itemValue","itemName","confine","tickXLabelFormaterDay","dataMin","maxTemp","alignTicks","minPressure","maxPressure","minimum","maximum","dacId","handleResize","dispose","DataZoomComponent","colorList","varsProperties","Tamb","colorDefault","colorFanCoil","Pink100","Tsuc","colorHeat","Tliq","Psuc","Pliq","Curr","Green_v2","Tsc","Tsh","Lcmp","SavedData","Levp","Lcut","Orange600","L1raw","L1fancoil","deltaT","Icomp","Vinsuf","Yellow_v3","varsFix","processFaultsData","histData","faultsChart","lines","colorIndex","lineId","booleanLines","axisCalc","leftLimits","leftTicks","boolTicksNames","calculateGraphData","DACHistoricContents","onDevInfoUpdate","xDomain","xTicks","refAreaLeft","refAreaRight","arrowDisabled","numDeparts","selectedL1Sim","gotHwCfg","advancedAnalysis","withPsuc","withFaults","getEndTime","usePsi","prefsObj","pressureUnit","axisDataLimits","t_lim","deltaT_lim","hasPliq","hasPsuc","hasTsc","hasTsh","hasCurr","hasAutomation","periodSelected","dateRanges","changeSelectedPeriod","handleSelection","startOf","endOf","processFault","faultsHist","definitions","gravityTranslation","periodStart","source","approvalState","approved","isPermDetected","permanence_detected","restab","CheckPermDetected","faultTextAux","fault_id","gravity","duration","utc","timestamp","asHours","roundToFurthestMultipleOfThree","trackChanges","mappings","_mappings$get","valString","endsWith","verifyPairValues","verifySelectedParams","verifyShowSavedData","findColorByKey","optionIndex","verifyKeyToAdjustData","insertVars","chartVars","tsucIndex","tliqIndex","checkKeyInsertVars","_state$devInfo4","_state$devInfo4$dac","DAC_APPL","updateIndexes","checkAxisId","verifyUnitMed","temp","verifyTsucTliqIndexes","isUsePsei","csvValueFormatter","_findValue$originalVa","findValue","CsvLabelFromaterData","_state$devInfo3","_state$devInfo3$dac","dayYMD","commonX","limts","DAC_TYPE","debug_L1_fancoil","boolLines","from","_","faultParams","faultDefs","faultDef","defs","getFaultHistory","P0Psuc","P1Psuc","P0Pliq","P1Pliq","P0Curr","P1Curr","SELECTED_L1_SIM","heatExchangeId","HEAT_EXCHANGER_ID","valueIndex","labelTempSelf","isFanCoilOrHeatExchanger","temperatureLabel","addFanCoilAndHeatExchangerOptions","addPsucPliqTscTshCurrOptions","addAutomationOptions","addHeatExchangerOptions","addClientFeatureOptions","initializeOptionParameters","weekdaysMin","returnObjects","updateLocale","returnNoGraph","verifyClientsFeature","_state$devInfo13","_state$devInfo14","verifyEvaporatorAndInsufflation","EVAPORATOR_MODEL_ID","INSUFFLATION_SPEED","isQuickSelection","dateEndAux","handleDateChangeDirection","change","dateInit","formattedDate","differenceInDays","formattedDateInit","formattedDateEnd","getDisabledButton","currentDay","newEndDate","veirifyLeftArrowDisabled","verifyRightArrowDisabled","getColorBasedOnConditions","_state$devInfo15","_state$devInfo15$dac","_state$devInfo16","_state$devInfo16$dac","handleChangePeriod","small","removeScroll","QuickSelectionV2","twoColumns","minHeight","displayFormat","DateRangePicker","startDateId","endDateId","onDatesChange","noBorder","maxEndDate","isValid","clone","isAfter","startDatePlaceholderText","endDatePlaceholderText","typeLoading","_state$devInfo9","_state$devInfo10","_state$devInfo11","_state$devInfo12","totalNumDeparts","indexNumDeparts","_state$devInfo5","_state$devInfo6","_state$devInfo7","_state$devInfo8","valueNumDeparts","insertNumDeparts","penultimo","parameter","CheckboxComponent","Overlay","FaultsChart","paddingX","ResponsiveContainer","ScatterChart","Tooltip","content","active","local","isAnimationActive","CartesianGrid","XAxis","allowDecimals","allowDataOverflow","tickFormatter","domain","xAxisId","tickLine","allowDuplicatedCategory","tick","YAxis","yAxisId","Scatter","isDet","shape","Dot","WrapperDesktop","WrapperMobile","AnalysisFilters","filters","dateValuePicker","getSelectedDate","renderOption","snapshot","icon","sortedFilters","_opt$options$","uniqueSelect","setOnChange","DielTool","dielTool","onApply","MachineConsumption","machinesCsvLinkEl","groupedMachines","dateList","mdate","totalGreenAntCons","totalGreenAntInvoice","totalAirCondCons","savings_kWh","getDatesList","dayEnd","dacList","machinesCsvData","getMachinesCsvData","includeConsumption","cons","extTemp","extTempMax","extTempMin","CONSUMPTION","DAY_HOURS_ON","DAT_REPORT","meanT","maxT","minT","dayInfo","DAC_KW","sumCons","DAC_NAME","pot","kw","coloredCons","consH","consKWH","handleGetUnitInfo","consumo","usage","DeviceTelemetry","deviceTelemetryCsvLinkEl","groupedDevs","yesterday","hourStart","hourStartMilliSeconds","hourEnd","hourEndMilliSeconds","energyApiResponse","assetsList","initTimeSave","initTime","endTime","numMilliseconds","alertColor","dutList","damList","driList","deviceTelemetryCsvData","handleDevices","device","promises","handleDacData","paramsDac","promise","websocketHistory","tamb","tliq","tsuc","tsc","tsh","psuc","lcmp","lcut","levp","handleDutData","paramsDut","setDutData","asTable","dutsTemprt","labels_State","c","telemetry","setDutsTemprt","isDutDuo","handleDriData","_state$energyMeter","_state$energyMeter2","paramsDri","_device$dris","en_at_tri","dris","energy","limits","selectedTime","OperationMode","operationMode","Setpoint","setpoint","Status","limiteMax","limiteMin","handleDamData","paramsDam","_state$groupedDevs","energy_device_id","serial","handleEnergyMeter","updateDevsLists","pliq","_state$energyMeter5","CsvLabelFromaterDataMilliSeconds","_telemetry","formatTelemetriesCurrent","csvOperationModeFormatter","addFiveSeconds","_state$energyMeter3","_state$energyMeter4","tamb_DAC","tliq_DAC","tsuc_DAC","sinal_DAC","pliq_DAC","psuc_DAC","tsh_DAC","tsc_DAC","state_DUT","mode_DUT","prog_DUT","temp_DUT","_state$energyApiRespo","energy_DRI","operationMode_DRI","setpoint_DRI","status_DRI","limiteMax_DRI","limiteMin_DRI","state_DAM","mode_DAM","prog_DAM","MedicaoTempDuts","periodTelemetria","workPeriod","dutsInfo","selectedDuts","usageData","work","_state$workPeriod$ite","getTempsCsvData","initialDate","finalDate","timeDiff","telemetriaFilter","ManualDevCommand","FerramentasDiel","CoolAutomation","customers","sites","devices","systems","coolAutUnits","gridCells","gridColumns","associatedDevices","dielUnits","groupedEvents","combo_selectedDielUnit","combo_selectedCoolAutDevice","valsTransl","customer","_sites","site","_devices","_customer","_systems","_site","system","_units","_device","_system","operationStatuses","operationModes","fanModes","swingModes","unitTypes","outdoorUnitTasks","customerCells","siteCells","isConnected","deviceCells","operationStatus","systemCells","activeFanMode","activeOperationMode","activeOperationStatus","activeSetpoint","activeSwingMode","ambientTemperature","task","systemCell","deviceCell","siteCell","customerCell","generateGrid","evtGrp","firstTs","lastTs","comboLabel","dielUnitId","coolAutSystemId","dataSource","GridContainer","header","cell","gridRowEnd","colStatus","colSite","colDevice","colSystem","colResources","colEventType","colCode","colDescription","evCount","DRIUnits","combo_selectedDRI","TableBasic","GreenAntMeters","sortedUnits","freeMeters","combo_dielUnit","combo_greenantMeter","units2","GA_METER","associatedUnits","disassociatedUnits","disassociatedMeters","organizationName","uid","Water","freeDmas","combo_meters","combo_supplier","metersList","disassociatedDmas","associatedMetersId","customer_id","_state$combo_meters","ButtonsRow","ContainerButtonOpen","OptionsButtonsTypeAPI","ButtonOptions","NoApiReturn","ModalSubTitle","ContainerModal","ContainerModalInputs","ContainerRow","TextLine","TableWrapper","ContainerButtonStatusOpen","OptionsButtonsStatus","css","DateExportRow","ResultContainer","AnalisysResult","NoAnalisysSelected","DateWrapper","DateButton","DateButtonActions","ResultsResume","ResultsContent","ResultsContentEF","qtdCharacteres","EnergyEfficiencyItem","EnergyEfficiencyBar","barColor","barHeight","ExportButton","ShowProblemDataWrapper","NoInfoTooltip","UnitLink","LoaderOverlay","controlColumnsConfigs","formatValue","sufix","ShowProblemData","_profile$permissions","tooltipId","flags","isAdmin","iconColor","description","showValue","dataIsProcessed","dataIsInvalid","invalidPercentage","OptionsButton","handleButtonStatusToggle","onActivateClick","StringLabel","displayValue","LinkedStringLabel","ValueTotalCharged","isPositiveValue","nullableData","ValueTrated","auxValue","percentageConsumption","refrigerationConsumptionPercentage","RankingLabel","procelRangking","ProcelCategoryLabel","procelCategory","tickets","currentTicket","ticket","VarConsumptionLabel","consumptionPreviousPercentage","_profile$permissions2","formattedData","propsOption","_snapshot","PopoverFilters","_filterOption$value","_filterOption$options2","onOpenPopover","setOnOpenPopover","filterOption","infoOptions","Popover","open","onOpenChange","_filterOption$options","prevOnOpenPopover","asChild","ButtonFilters","hasFilter","sideOffset","PopoverContent","PopoverHeader","selectedOption","onChangeFilter","onSelectAllOptions","textUnderlineOffset","ViewModeButton","HeaderContainer","BtnClean","MosaicContainer","notif_type_options","health_status_options","ApiIntegrations","_state$selected_clien8","_state$selected_clien9","isAdminApi","API_MANAGEMENT","setIsModalOpen","openButton","setOpenButton","isEditModal","setIsEditModal","isIdEditApi","setIsIdEditApi","pagination","itemsPerPage","currentSort","field","selected_is_test","selected_client","selected_ids_apis","selected_status_open","selected_notif_type","selected_type","title_api","selected_health_status","trigger_id","filtersData","selectedFilters","nome","health_status","notify_condition","is_test","filterAll","apis","columnSort","TITLE","TRIGGER_ID","NOTIFY_CONDITION","HEALTH_STATUS","IS_TEST","handleModalToggle","infos","_state$selected_clien","client_id","client_name","unitIdsToCheck","unit_ids","handleButtonToggle","prev","isAlreadySelected","handleModalClose","limit","apisComboOpts","CLIENTS","TITLES","TRIGGER_IDS","ApiUnitRelations","handleCreateNewApi","_state$selected_clien3","unitRelations","getUnitRelations","_state$selected_clien6","_state$selected_clien7","integrationType","triggerId","notifyCondition","healthStatus","isTest","_state$apis","_state$selected_clien4","_state$selected_clien5","api","filtersMappings","filterKey","filterAllKey","handleSelectFiltersAll","mapping","handleGetFilters","handleChangeFilters","filterParams","setFiltersAndReturn","getApisList","columnsTable","allIds","handleSelectAll","verifyChecked","disableSortBy","original","updatedSelectedIds","handleCheckboxChange","_state$filtersData$cl","GenerateItemColumn","handleSortData","_state$filtersData$is","_state$filtersData$no","_state$filtersData$no2","_state$filtersData$tr","_state$filtersData$he","_state$filtersData$un","StatusCell","_state$filtersData$st","handleUpdate","columnKey","sortDataColumnKey","sortParams","filterParamsSet","orderByField","orderByType","listApis","toogleAsset","_state$selectedFilter","_state$selectedFilter2","_state$selectedFilter3","_state$selectedFilter4","_state$selectedFilter5","orderDirection","orderBy","filteredColumnsData","columnsData","ids","noDataComponent","NoDataInTable","noBorderBottom","total","handleChangePagination","_state$selected_clien2","onSelectClient","haveSelectAll","selectAllOptions","itemsToCheck","shouldBeChecked","el","elem","Integrations","allTabs","SensorsConfig","_state$curvesList","_state$validSensors","curvesList","validSensors","dacFwVers","newSensor","selectedSensor","_await$apiCall$list","_await$apiCall$list2","_x$versionNumber$vMaj","_x$versionNumber","_x$versionNumber$vMin","_x$versionNumber2","_x$versionNumber$vPat","_x$versionNumber3","fwVersUnique","fromEntries","SENSOR_ID","openCreateEditSensor","TableCurves","curveId","CURVE_ID","sensor","FormEditCurve","curveInfo","sensorList","validFwVers","TableSensors","res","sensorId","SENSOR_NAME","sensorName","onSubmitClick","newSensorInputEnabled","rowIdEdited","EditableRow","onDeleteRow","deleteSensor","outline","MIN_FIRMWARE_VERSION","MULT_QUAD","MULT_LIN","OFST","_curveInfo$SENSOR_ID","_curveInfo$MULT_QUAD","_curveInfo$MULT_LIN","_curveInfo$OFST","MIN_FW_VERSION","fwList","colorPalete","ChartLine","indexes","_v","userSelect","onMouseDown","activeLabel","onMouseMove","onMouseUp","formaterXTick","tickSecondX","orientation","labelFormatter","tooltipXLabelFormater","_accessor","_payload","varsInfo","Line","dot","animationDuration","ReferenceArea","LegendaGroup","onCheckboxChanging","onColorChanging","setAllGroup","Legenda","_lineInfo","lineInfo","displayColorPickerFor","CheckboxLine","onLineColorClick","SketchPicker","ServersMonitoring","loadingOtherCharts","loadingBrokersMonit","formExport","timespan","tsStart","exporting","serversList","brokersMonit","datePickerFocused","list2","serverData","serverItem","isBrokerDiel","records","isBroker2Dynamo","disk_info","isIotRelay","payload_ts","charts","flatRecords","flattenRecords","createChartsBroker2Dynamo","createChartsIotRelay","brokersMonHist1","createChartsBrokerDiel2","commonx","fetchBrokersMonit","chartId","toLocaleTimeString","toLocaleString","tsEnd","telm","ts","est_conn","b0_conn_arr","brokers_stats","conn_arr","b0_conn_closed","conn_closed","b0_est_conn","b0_pub_brtodv","pub_brtodv","b0_pub_others","pub_others","b0_subscr","subscr","b0_tls_err","tls_err","b1_conn_arr","b1_conn_closed","b1_est_conn","b1_pub_brtodv","b1_pub_others","b1_subscr","b1_tls_err","disk_info_free","free","disk_info_total","loadavg_fifteen","loadavg","fifteen","loadavg_five","five","loadavg_one","one","mem_info_avail","mem_info","avail","mem_info_buffers","buffers","mem_info_cached","cached","mem_info_free","mem_info_swap_free","swap_free","mem_info_swap_total","swap_total","mem_info_total","http_reqs","command_reqs","b0_commands_sent","commands_sent","b0_commands_error","commands_error","b1_commands_sent","b1_commands_error","numBrokers","record","clientes","mqttAct","conexoes","nColor","rec","refTs","unico","HeaderCellOrder","DataCellCenter","DataCellRight","CustomSelect","QuickSelection","_props$excludeSelects","_props$excludeSelects2","showDialog","setShowDialog","ClickAwayListener","onClickAway","handleClickAway","m","textDecorationLine","isShortMode","boxShadow","Grid","excludeSelects","setValueState","getCitiesList","citiesListOpts","stateId","selectedCityOpts","getUnitsList","unitsListOpts","selectedUnitOpts","getStatesList","statesListOpts","selectedStateOpts","getDeviceInfo","ajustParams","getListCities","getListUnits","stateName","getListStates","getListRoomTypes","verifyArrayParameters","verifyArrayParametersWithNumber","filterStyle","onKeyDown","formatISODateToFormattedDateString","ColorChangeBtn","blueVersion","BlueSelectedSpan","ZoomOut","CloseBtnIcon","OptionColor","StyledReactTooltip","ColorChangeBtnSvg","ColorChangeBtnWithHover","ListBoxOptionColor","UtilFilter","_props$listFilters43","_props$listFilters44","_props$listFilters45","_props$listFilters46","_props$listFilters47","_props$listFilters48","_props$listFilters49","_props$listFilters50","_props$listFilters51","_props$listFilters52","_props$listFilters53","_props$listFilters54","_props$listFilters55","_props$listFilters56","_props$listFilters57","_props$listFilters58","_props$listFilters59","_props$listFilters60","_props$listFilters61","_props$listFilters62","_props$listFilters63","_props$state15","_props$state15$trooms","_props$state16","_props$listFilters64","_props$state17","_props$state17$l1sFil","_props$state18","_props$listFilters65","_props$state19","_props$state19$tambsF","_props$state20","_props$listFilters66","_props$state21","_props$state21$tInmet","_props$state22","_props$listFilters67","_props$state23","_props$state23$utilit","_props$state24","_props$listFilters68","_props$state25","_props$state25$powers","_props$state26","_props$listFilters69","_props$listFilters70","_props$listFilters71","_props$listFilters72","_props$listFilters73","_props$listFilters74","_props$listFilters75","_props$listFilters76","_props$listFilters77","_props$listFilters78","_props$state$selected","_props$state","showFilter","closeDefault","clientsListOpts","selectedClientOpts","statesListFilterOpts","citiesListFilterOpts","unitsFilterOpts","supervisorListOpts","supervisorFilterListOpts","classesListOpts","classesNamesListOpts","classesNamesFilterListOpts","selectedSupervisorOpts","selectedClassesOpts","selectedClassesNamesOpts","selectedConnectionOpts","selectedStatusOpts","selectedSupplierOpts","selectedHealthOpts","selectedTemperatureOpts","selectedControlOpts","selectedModeEcoOpts","selectedPeriodOpts","selectedTimeRange","selectedDataTypeOpts","selectedAnalysisOpts","countryListOpts","selectStartOperationOpts","selectEndOperationOpts","selectedOperationStatusOpts","selectedOwnershipFilter","infoType","selectedInfoExib","selectedDevId","selectedNotificationType","selectedNotificationSubtype","selectedNotificationDestinatary","selectedDateStart","selectedDateEnd","selectFocused","destinataryListOps","buttonName","isFilterButton","typesNotificationFilterOpts","typesNotificationListOpts","subtypesNotificationFilterOpts","subtypesNotificationListOpts","isClearFilter","selectedTrooms","selectedL1s","selectedTambs","selectedTInmets","selectedUtilities","selectedPowers","selectedFiltersColumns","CLIENT","STATE","CITY","SUPERVISOR","finalizedInputs","clearFilters","_props$listFilters","fixedPeriod","removeAllFilters","listFilters","informationsUnits","dates","isUnits","statusUnitsCheck","onAply","filteredUtilities","utilities","STATE_UF","connection","needFilter","getValues","_props$listFilters2","_props$listFilters3","_props$listFilters4","_props$listFilters5","_props$listFilters6","_props$listFilters7","_props$listFilters8","INCLUDE_CITIES","INCLUDE_STATES","CITIES","STATES","getClientsList","typeValueName","getCountry","_state$unitsListOpts","supervisorOptions","existingSupervisor","getSupervisorsList","listClasses","listClassesNames","listItem","getClassesList","_props$state2","_props$state2$selecte","_props$state4","_props$state4$selecte","_props$state6","_props$state6$selecte","_props$state$selected2","_props$state$selected3","_props$state9","_props$state9$selecte","_props$state10","_props$state10$select","_props$state11","_props$state11$select","_props$state12","_props$state12$select","_props$state13","_props$state13$select","_props$state14","_props$state14$select","hasPrefilters","_props$state3","selectedCity","_props$state5","_props$state7","selectedTemperature","selectedSupervisor","_props$state8","setVariables","getPreFilteredParams","defineSessionStorage","onChangeClient","filteredArray","selectedClients","onChangeClientAux","selectedValues","filteredStates","st","filteredCities","filteredUnits","isClientMatching","isCityMatching","filteredSupervisors","onChangeState","selectedStates","onChangeStateAux","isStateMatching","_unit$state","onChangeCity","selectedCities","onChangeCityAux","ct","_unit$state2","onChangeUnit","u","onChangeClassesNames","classesNames","selectedClasses","classItem","onChangeSupervisor","_props$listFilters30","_props$listFilters31","_props$listFilters32","_props$listFilters33","_props$listFilters34","_props$listFilters35","_props$listFilters36","_props$listFilters37","_props$listFilters38","_props$listFilters39","_props$listFilters40","_props$listFilters41","_props$listFilters42","_props$listFilters12","_props$listFilters13","_props$listFilters14","_props$listFilters15","_props$listFilters16","_props$listFilters17","_props$listFilters18","_props$listFilters19","_props$listFilters20","_props$listFilters21","_props$listFilters22","_props$listFilters23","_props$listFilters24","selectedClientFilter","setVariablesUsuals","selectedConnection","selectedHealth","selectedControlType","selectedEcoMode","selectedDataType","selectedAnalysis","selectedOperationStatus","_props$listFilters25","selectSupplier","setVariablesWater","_props$listFilters26","_props$listFilters27","_props$listFilters28","_props$listFilters29","setVariablesNotification","closeFilter","_props$listFilters9","_props$listFilters10","typeId","_props$listFilters11","CLIENT_IDS","adminUsers","fullList","FULLNAME","adminUser","getDestinataryListOpts","lengthArrayResult","handleClickChange","updateCheckInformations","getColorExpandIcon","clearGroup","trooms","l1s","tambs","tInmet","powers","selectedVars","handleRemoveAllFilterIntegratedAnalysis","handleRemoveFilterAux","filtersSelected","valueRemoved","updateOpts","alterDate","newDate","today","monthDate","datesList","minute","second","millisecond","onSelectDevice","selectedDevicesState","stateAux","updatedVars","selectedVar","getIconLink","_group$devs","_group$devs$","_group$devs2","_group$devs2$","_group$devs3","_group$devs3$","renderLinkIcon","utilId","getUtilityLinkIcon","l1Only","getDevice","_group$devs$2","_group$devs$3","_group$devs$4","_group$devs$5","rel","TransparentLinkIcon","renderOptionAnalysisIntegrated","_deviceGroup$group5","_props$unitCoordinate","_props$unitCoordinate2","deviceGroup","findDeviceGroup","changeCheckbox","tempValue","_deviceGroup$group","getIndex","showLine","showCheckbox","tempItem","_deviceGroup$group2","co2Item","_deviceGroup$group3","humItem","_deviceGroup$group4","colorCheckbox","borderLeft","borderBottom","CheckBoxLineAnalysis","CheckboxAnalysis","unitCoordinate","lat","lon","distance","deviceId","_state$trooms","_state$troomsFiltered","_state$l1s","_state$tambs","_state$tInmet","_state$powers","_state$utilities","troom","troomsFiltered","l1","inmet","power","util","loadingData","exportLoading","FiltersContainer","transition","FilterOption","onChangeClasses","optionsConnetions","StatusIcon","optionsConnetionsName","TempHigh","TempGreat","TempLow","NoTempData","onChangeNotificationTypes","FilterOptionAnalysis","l1sFiltered","tambsFiltered","tInmetFiltered","utilitiesFiltered","powersFiltered","removeYearFilter","removeMonthFilter","removeMarginBottom","includeQuickSelection","isPeriodLabel","isMaxOneMonthPeriod","ContainerDateNew","ArrowButton","ContentDateNew","DatePicker","maxDate","toDate","dateFormat","showMonthYearPicker","rotate","onSelectedOwnership","setProg","searchLabel","CleanBtn","textTransform","LoadingContainer","ControlFilter","filterFooter","FiltersSelected","handleRemoveAllFilters","handleRemoveFilter","filterIndex","handleRemoveCategoryFilter","exportFunc","CustomFilter","stateFilter","csvHeader","tab","verifyParams","openExportList","getCsvData","closeExportList","modeExportList","formatterCSV","averageDur","autonon","ExportBtn","ModalWindowStyled","topBorder","TitleModal","SubtitleModal","OptionExportList","isCompleteList","isCustomList","ContainerCheckbox","informationsUnitsCheck","checkCity","checkUnit","checkMachines","checkEnvironments","checkUtilities","checkStartMonitoring","checkWaterDevices","checkEnergyDevices","checkAutomationDevices","checkMonitoringDevices","checkStatus","ContainerArea","closeOnSelected","_props$group","SelectWithCheckbox","DomProps","grupo","sizeToByteConversion","measure","property","aa","bb","_a$property","_a$property2","_b$property","_b$property2","SimCards","simCardsList","simCardsListFiltered","selectedSim","resetSolicitado","empresa","setOrderColum","applyTextFilter","chevron","getSoldPlanMeta","soldplan","operadora","reset","mensalidade","getSimOperatorVivo","ratType","solution","tns","planSize","planMeasure","soldplan__consumption_f","consumptionSize","consumptionMeasure","line__total_f","consumptionMB","consumptionPercent","planSizeInBytes","onlineStatus","status__name","soldplan__name","lastConn","last_conn","lastDisc","last_disc","consumption","accessPoint","accessPointMAC","repeaterMAC","associationDate","formatSimTns","meta","saldo","online","ultimaConexao","formatSimMeta","vivo","_sim$gprsStatus","_sim$gprsStatus2","_sim$gprsStatus3","_sim$gprsStatus4","_sim$gprsStatus5","gprsStatus","lastConnStart","lastConnStop","gb","consumptionMonthly","formatSimVivo","_dev$stateId","_dev$cityId","_dev$unitId","_dev$clientId","onApplyFilter","clearFilter","Trans","i18nKey","_item$consumption","shift","solicitarReset","openEditSimCard","FormEditItem","comboClients","comboUnits","loadUnitsClient","ASSOCIATION_DATE","ProjetoBBLayout","AnsLayout","PowerBIEmbedContainer","PowerBIEmbedTitle","ProjetoBBKPIs","PowerBIEmbed","embedConfig","embedUrl","accessToken","tokenType","TokenType","Embed","settings","panes","expanded","BackgroundType","Transparent","eventHandlers","detail","cssClassName","ProjetoBBANS","ProjetoBBCronograma","IconBiggerWrapper","AssetConnection","RSSI","wsl","onWsOpen","onWsMessage","beforeWsClose","useWebSocketLazy","dac_id","dam_id","verifyAndUpdateDataStatus","rssiDesc","handleDamStatusMessage","handleDacTelemetryMessage","handleDacOnlineStatusMessage","handleDevsTelemetryMessage","_props$DEV_AUT","rssi","formatRssiIcon","AssetTree","automationSelected","isAutomationelected","groupSelected","isGroupSelected","selectCard","onHandleSelectCard","borderCard","borderLeftCard","cardName","devIdText","cardRootDescription","maxSize","overExtended","nameDisplay","textOverflow","overflowX","whiteSpace","formatItemIcon","shouldShowHealthIcon","_asset$DEV_ID","AUTOM_ID","machineId","partes","splitUrl","assetfilter","overflow","formatHealthIcon","DataText","getLteQuality","AssetStatus","TIMESTAMP","LAST_TELEMETRY","RSRP","oldDate","hasLTENetwork","lastMessageTS","LTE_NETWORK","_devInfo$LTE_RSRP","lteNetworkRsrpQuality","LTE_RSRP","getNetworkDevInfo","verifyAndUpdateDataStatusAndRSSI","handleDacIdMessage","deviceTimestamp","handleDevIdMessage","dateLastTelemetry","dateDays","checkLastTemetry","_state$RSRP","statusText","rssiText","onlyIcon","isMobile","withoutMarginTop","mimWidth","h1","_state$devInfo2$dam","_state$devInfo$dam7","_state$damRealTimeInf","_state$damRealTimeInf2","_state$damRealTimeInf3","_state$devInfo$dam8","wantSaveVent","hideId","editingVentilation","submittingVentilation","ventInput","ventTime","ecoModeCfg","relDutInfo","damRealTimeInfo","ecoModeCfgs","lws","SELF_REFERENCE","saveVentilation","_state$devInfo$dam6","supportsVentEnd","begin","_state$devInfo$dam","_state$devInfo$dam2","_state$devInfo$dam3","_state$devInfo$dam4","_state$devInfo$dam5","ENABLE_ECO","ECO_CFG","ROOM_DESC","ventilation","Ventilacao","ModoEco","StyledText","MAXIMUM_TEMPERATURE","assetLayout","returnDamId","onConfirmExcept","changeExceptionMode","newMode","DamScheduleSummary","dutControlOperation","wantSaveCtrl","editingTemprtControl","CTRLOPER_item","temprtControl","TSETPOINT","temperature","LTCRIT","LTC","LTINF","LTI","TemperatureControl","setPoint","isFinite","DutScheduleSummary","AssetLayout","screenInfo","verifyDevIdStartsWith","devInit","isDacPage","isDamPage","isDutPage","isDriPage","isAssetPage","devAssociated","showDutDuoUsage","_screenInfo$dutAutoma","dutAutomationInfo","placement","hasNonDutDeviceInAssets","verifyShowDutDuoUsage","bcrumbs","unshift","Breadcrumb2","timezoneArea","timezoneGmt","forceHideHealthTab","isDuoSelected","assetRoleSelected","isUserManut","NotyNumStyle","NotyIconStyle","ControlButtonIcon","ControlButton","NotyNumStyleMini","NotyIconStyleMini","ControlButtonIconMini","ControlButtonMini","WeekDayButton","SchedCardContainer","Sidebar","DefaultModeContainer","LinkButton","TabButton","VarsCardTitle","VarName","VarValue","relevance","VarUnit","CardContainer","VarContainer","CardElev","RealTimeBox","Bluebar","ConteinerTitle","ContentRealTime","ControlButtonIconFancoil","larger","NotyNumCornerStyle","Slider","Cursor","onOff","ColoredLine","WaterTooltip","Calendar","Timer","ParamName","ParamTitle","ParamValue","SetpointButton","up","down","ModalContainerLoading","ExceptionsHeader","checkExceptionDate","exceptionToCompare","exception","EXCEPTION_REPEAT_YEARLY","EXCEPTION_DATE","checkWeekDayCommon","days1","days2","checkTimeConflict","intervalToCompare","deleteProgramming","refetch","SCHED_ID","insertProgramming","updateProgramming","generateDaysObject","getSchedTimesValues","BEGIN_TIME","start_time_error","END_TIME","end_time_error","DriSchedModeOpts","ButtonShowSchedule","img_schedule","DRIScheduleSummary","_varsCfg$application","_state$driScheds","_state$driScheds2","_state$driScheds3","_state$driScheds4","_state$driScheds5","_state$driScheds6","_state$driScheds7","_state$driExceptionSc","_state$driScheds8","_state$driExceptionSc2","_state$devInfo$dri2","layout","driScheds","driExceptionScheds","modalEditSchedule","showScheds","showExceptions","shouldRender","loadingSchedule","driInterval","totalScheds","getSchedExceptionValues","isException","exceptionDate","repeatYearly","getSchedSetpointValues","useSetpoint","MODE","setpointValue","getSchedModeValues","editAddProgramming","DAYS","schedId","addEdit","ACTIVE","operation","OPERATION","selectedDays","formatStringToDate","verifyProfileCanManageProgramming","_state$devInfo$dri","SchedCard","canManageProgramming","onEdit","onDelete","ExceptionSchedCard","DRISchedForm","_props$driCfg","_props$driCfg2","_props$driCfg3","_props$driCfg4","_props$driCfg5","entireDay","editSetpoint","minSetpoint","maxSetpoint","selectDay","isFancoilCarrierEcosplit","wordBreak","hideRepeatYearly","fontStyle","img_mode_cool","img_mode_fan","fontVariantNumeric","_props$driCfg6","_props$driCfg7","_props$driCfg8","_props$driCfg9","_props$driCfg10","_props$driCfg11","edit","delete","wordWrap","LimitExceedTooltip","warnMessage","ViewAllContainer","AssetInfo","_state$assets$state$s9","_state$AUTOM_ID5","additionalMachineParameters","assetSelected","selectedIndex","placementSelected","AUTOM_DEVICE_ID","GROUP_INSTALLATION_DATE","GROUP_MODEL","selectedDevInfo","getCarouselId","getReferenceTypeDevAut","_state$AUTOM_ID2","_state$AUTOM_ID3","_state$AUTOM_ID4","devInfoRes","verifyDevInfo","verifyGroupInfo","assetsApiResponse","condenser","evaporator","heatExchanger","_assetsApiResponse$DU","astRoleIndex","DEVICE_ID","AST_ROLE_NAME","AST_ROLE_INDEX","_itemDev$dac","_itemDev$dac2","_itemDev$dac3","itemDev","DAC_MODEL","DEVICE_TIMESTAMP","DAT_BEGMON","groupIdToRequest","assetApiResponse","_itemDev$dac4","_itemDev$dac5","_itemDev$dac6","verifyAssetInfo","_state$assets$state$s","devAux","_state$assets$state$s2","handleUrl","_state$AUTOM_ID","cachedDutInfo","_cachedDutInfo$info","checkSetDutPlacement","MACHINE_ID","getMachineAdditionalParameters","devSelected","devText","editDevice","showStatus","_state$assets$state$s4","_state$assets$state$s5","getEditDevicePermissions","selectedDecideName","_state$dutAutomationI","_state$dutAutomationI2","_state$dutAutomationI3","_state$dutAutomationI4","_state$assets$state$s6","_state$dutAutomationI5","shouldForceHideHealthTab","buildScreenInfoParams","urlAux","_state$assets$state$s7","_state$assets$state$s8","isAssetWithoutIdSelected","_devText","_devText2","_devText3","getIsDevice","alignContent","brandText","_state$assets$","modelText","_state$assets$state$s3","_state$MACHINE_COOLIN","capacityPowerText","capacityUnitText","fluidTypeText","monitorationDateAux","instalationDateText","Carousel","getImages","listAll","_item$DEV_ID","_item$DEV_ID2","listGroup","postImage","photo","deleteImage","imageUrl","beginAssetIdIndex","beginDacIdIndex","EditAssetInfo","indexId","UNIT_ID_item","GROUP_ID_item","MCHN_APPL_item","FLUID_TYPE_item","AST_TYPE_item","MCHN_ENV_item","MCHN_BRAND_item","CAPACITY_UNIT_item","yesNo","valueN","valueNinv","capacUnits","envs","filtComboOpts","_formData$CLIENT_ID_i","_devInfoData$CAPACITY","_devInfoData$MCHN_KW","devInfoData","FormAsset","assetNumber","_assetIndex","devIdChanged","_formData$asset$devId","AnalysisLayout","getBackgroundColor","getBorderColor","getTextColor","FullProgEdit","_state$ventTime","activePage","editingSetpointDut","programmingData","formValues","setpointDut","holidaysList","dateDMY","DAT_FER","dayProg","set_allowForbid","editDayProg","removeProg","exceptionsItems","EditProg","DESC_FER","handleSelectDay","selectedHoliday","ProgOverview","devConfigOpts","serializeDayProg","serializeFullProg2","descWeekList","fullDescWeek","fullDescVent","descExceptList","fullDescExcept","serializeFullProg","fullDesc","ScheduleCheck","damInf","currentS","desiredS","desired","fetchListFromServer","ElevatedCard","GridCell","BatchSchedule","initialProg","expectedProgS","damIds","CustomYTick","anchor","namedTicks","unitProps","payloadValue","CustomPowerTick","EnvGroupAnalysis","_state$selectedVars","ambientes","conjuntos","utilitarios","includePower","includeEnergy","L1only","temperatureLimits","splitLcmp","troomsOpened","l1sOpened","tambsOpened","powersOpened","utilitiesOpened","allCheck","humLimits","humTicks","powerLimits","powerTicks","displayColorPicker","useMinGraphData","useMaxGraphData","weatherStationsData","aux","lineColor","gData","VARS","INS_GROUP_ID","verifyEnvProps","verifyDacsProps","verifyDrisProps","verifyGroupsProps","_props$weatherStation","weatherStations","CD_ESTACAO","DC_NOME","DISTANCIA_EM_KM","verifyWeatherStationsProps","verifyGreenAntPowerProps","verifyDMEPowerProps","TYPE","verifyUtilityProps","verifyExternalProps","addDacGroupByType","dateChanged","indexIni","indexEnd","getTemperatureLimitLines","_grupo$devs","verifyNumDaysAux","isL1","getTambGraphData","_grupo$devs2","getLcmpGraphData","_grupo$devs3","ValveOn","getValveOnGraphData","_grupo$devs4","isVav","_dut$DEV_ID","TempAmb","getVavRoomTempGraphData","isDutDuoInsuf","identifyDutDuoInsuf","_dut$VARS","_dut$VARS2","Temperature_1","eCO2","_dut$DEV_ID2","_dut$DEV_ID3","getDutGraphData","getRoomTempGraphData","energyConsumption","eConsumption","calculateEnergyLimits","getGreenAntGraphData","energyPower","pot_ap_tri","xInsert","handleCommonX","energyGraph","_state$startDate","_energy$power","momentCurrent","timestampObj","timestampFr","getHours","getMinutes","pos","elemento","powerCurrent","energyGraphDME","powerLast","powerFirst","energyGraphAux","handleEnergyGraphDME","getDMEGraphData","stations","stationsTemps","temperatures","getTinmetGraphData","_grupo$devs5","getDMTGraphData","getNobreakData","_grupo$devs6","dalCode","_utilitarios$find","Feedback","utilFeedbackPort","getIlluminationData","getUtilityGraphData","fetchGraphData","fetchMissingData","existingLine","handleBooleanData","updateTempLimits","updatePowerLimits","updateCO2Limits","getVarsData","indexBool","yData","tick_2","getBoolTicksNames","isDme","utilVar","lData","isNobreak","addDeviceIds","targetArray","idKey","addUnitId","addInmetData","tempInmet","getFilterOptions","CustomTooltipContent","customTooltipProps","newPayload","indexToInsert","o","DefaultTooltipContent","changeGroupsColor","ModalLoading","ModalColorsWindow","renderModalGroups","groupData","handleClose","calcNumDays","dacsTamb","dacsL1","dutsTemp","unitsPower","populateParamsWithGroups","dayAux","addDays_YMD","paramsAux","requireMultiDaysCsv","responsesData","Blob","handleCsvDownload","isValidArrOfNumbers","n","isNotDefault","isXDomainValid","_data","dx","tickMargin","contentStyle","_index","_varInfo$type","isBooleanType","determineUnit","formattedLabel","unitMeasure","getUnitMeasure","formattedValue","formattedName","formatName","ColorsPalet","DevLayout","isDmt2","isDutAut","isDal","isDmt","_devInfo$dut","permissionManageClient","handleSelectTitle","DamSchedule","DamScheduleContents","hideAnalysis","isSaving","fetchDamInfo","groupIds","filteredByGroupName","handleGetDamProgramming","newProg","cloneProg","saveProg","newprog","MobileTable","AnalysisEmpty","descOper","onlyfan","enabling","disabling","eco","CSVHeader","DamsList","React","isProg","setIsProg","setIsDesktop","firstLoading","dielClientId","wantSetClient","searchValue","screenSize","outputJSXSchedule","schedule","outputSchedule","hasMultSchedule","orderColumn","OrderableHeaderCell","onColumnClick","handleGetDAMS","columnsMobile","columnsDesktop","saveSessionFilters","ecoModeEnabled","temprtSetpoint","referenceTemperature","specialColor","getDailySchedule","dutLastProg","damLastProg","_damLastProg$week$key","_damLastProg$week$key2","_damLastProg$week$key3","_dutLastProg$week$key","_dutLastProg$week$key2","_dutLastProg$week$key3","_state$orderBy$","loadSessionFilters","stateIds","cityIds","controlMode","ecoMode","orderByProp","orderByDesc","temprtAlerts","devAutomation","DUT_LASTPROG","DAM_LASTPROG","DUT_NEED_MULT_SCHEDULES","ajustObjectOfDev","_state$orderBy$2","confirmSetClient","DamHistoryContents","dutRoomName","damCharts","dutChart","dutDuoChartNotAut","conclusionsDam","dacsCharts","dacsCols","newCharts","daySched","leftTicksLabels","stepTicksNames","rightLimits","rightTicks","rightTickLabels","ecoCmd","dutT","dutL1","setFormattedDate","getTranslatedInstallationLocation","getDamTemperatureLabel","T0_POSITION","getDamTemperature1Label","T1_POSITION","addDamTemperatureLines","_state$devInfo$dam10","_state$devInfo$dam9","_state$dutChart","_state$devInfo$dam11","_state$devInfo$dam12","_state$dutChart2","temprt","hovertemplate","customdata","isBBOrDiel","nameTemp1","_state$dutRoomName","temprt1","nameTemp2","addDutChartLines","parsedGraphData","_state$dutChart5","_state$dutChart6","_state$dutChart7","_state$dutChart8","_state$dutChart9","_state$dutChart10","limTmax","limTmin","tSetpoint","setpointHist","dash","_item$y7","_item$y6","addDutHistereseLines","_state$devInfo$dam13","_state$dutChart3","CAN_SELF_REFERENCE","UPPER_HYSTERESIS","LOWER_HYSTERESIS","addDutLtiLines","_state$dutChart4","tLti","_state$date","valueOrEmptyArr","updateChartData","_parsedGraphData$duts","_state$devInfo$dam14","comprHistory","provision_error","processReceivedHistoryDAM","damTemperature","damTemperature_1","humidity","createDacLines","dacLine","_comprHistory$dacsInf","dacInf","dacsInfo","usePeriod","useFactor","potNominal","conclusions","stateStats","cond1_hit","cond1_miss","cond2_hit","cond2_miss","ecoFull_hit","noEcoVent_hit","dutsDuoNotAut","_state$dutChart12","setDutsLimits","setDamsLimits","setDutsDuoLimits","maxAxisVal","minDataVal","maxDataVal","steppedLines","allTicks","ticksNames","endValue","varsTicks","nTicks","varTicks","tickValue","stepIndex","vs","updateAxis","yaxis","addDamDefaultLines","addDamSelfReferenceLines","addDacLines","chart","_comprHistory$asTable","_comprHistory$Mode","_comprHistory$State","_comprHistory$ecoCmd","_comprHistory$prog","dacsRows","labelsMode","labelsState","labelsEcoCmd","labelsProg","formatAsTable","_state$dutChart$limTm","_state$dutChart$limTm2","_state$dutChart$tempr","_state$dutChart$tempr2","yTempArrayMax","_item$y8","maxLimit","yTempArrayMin","_item$y9","minLimit","_state$dutChart11","_state$dutChart11$tem","setTemprtLimits","_state$damCharts$limT","_state$damCharts$limT2","setDamsTLimits","_state$devInfo$dam15","_state$devInfo$dam16","setDamsTempLimits","_state$devInfo$dam17","setDamsTemp1Limits","_state$dutDuoChartNot5","_state$dutDuoChartNot6","_state$dutDuoChartNot","_state$dutDuoChartNot2","setDutsDuoTemprtLimits","_state$dutDuoChartNot3","_state$dutDuoChartNot4","setDutsDuoTemprt1Limits","_devInfo$dam","_devInfo$dam2","_dutInfo$dut$ROOM_NAM","_dutInfo$dut","Datepicker","CardWrapper","GraphWrapper","Plot","showlegend","l","pad","xaxis","showgrid","zeroline","showline","tick0","dtick","range","tickformat","hoverformat","tickvals","ticktext","yaxis2","overlaying","side","hovermode","hoverdistance","hoverlabel","bgcolor","responsive","idac","irow","HistoryContainerQA","EmptyDocumentIcon","ticksXgraph","DUTHistoryContents","graphDataX","useCO2LimitGraphData","showLimits","showCO2Limits","isDutQA","eCO2Ticks","eCO2Domain","humLineInfo","lineColorObj","isDisplayColorVisible","limitColorObj","colorLimit","isVisible","isLimitVisible","tempLineInfo","temp1LineInfo","L1LineInfo","co2LineInfo","hasL1","setGraphEnable","TVOC","L1","setAxisInfo","_dutHist$daySched","_dutHist$daySched2","_dutHist$daySched3","_dutHist$daySched4","_dutHist$Temperature","_dutHist$L","_dutHist$L$y","dutHist","num","Filtering","DesktopFiltering","returnUnityMeasure","CustomTooltip","limitData","limitInfo","minTemp","CustomTooltipGroup","_data$Temperature","_data$Temperature_","_data$Humidity","_data$eCO","_data$L","Temperature1","groupLimitsTip","returnTooltip","returnTooltipGroup","xaxisObject","ticksFormater","DutQAHistory","_graphDataX$Humidity","_graphDataX$Humidity2","_graphDataX$eCO","_state$devInfo$dut","_state$devInfo2$dut","_state$devInfo3$dut","_state$devInfo4$dut","_state$devInfo5$dut","_state$devInfo6$dut","_graphDataX$Temperatu","_state$devInfo7$dut","_state$devInfo8$dut","_graphDataX$Temperatu4","_graphDataX$Temperatu5","_graphDataX$Temperatu6","_graphDataX$Temperatu7","_graphDataX$Temperatu8","_graphDataX$Humidity3","_state$devInfo9$dut","_state$devInfo10$dut","_graphDataX$eCO2","_state$devInfo11$dut","labelTemp","labelTemp1","hasData","menorNumber","generateTicks","firstTick","additionalTicks","CustomTickGraph","ReferenceLine","CheckBoxLines","GraphLineChart","xaxisProps","yaxisProps","lineProps","_graphDataX$Temperatu2","_graphDataX$Temperatu3","_graphDataX$L","_graphDataX$L2","referenceProps","segment","_graphDataX$Humidity4","_graphDataX$eCO3","RenderModalLines","LineInfo","_state$graphDataX","_state$graphDataX$Tem","_state$graphDataX2","_state$graphDataX2$Te","_state$graphDataX3","_state$graphDataX3$Hu","_state$graphDataX4","_state$graphDataX4$eC","_state$graphDataX5","_state$graphDataX5$L","operation_mode","_graphDataX$commonX","ifOverflow","MonthViewBtnText","DashedColoredLine","CustomLabel","InfoText","ChangeColor","ButtonChangeColor","ChangeColorDialog","onClose","setSelected","showPickerColor","setShowPickerColor","Dialog","itemData","onChangeComplete","GreenBlob","YellowBlob","RedBlob","GreyBlob","BlackBlob","ProgressBarContainer","ProgressBarChildren","progress","TopTitle","CellLabel","BtnOrderColumns","NoDataComponent","FilterColumnsIcon","OrderColumnModal","HorizontalLine","OlhoAberto","OlhoFechado","ThreeDotsVerticalIcon","handleChangeVisibility","handleMoveItem","drop","useDrop","collect","monitor","handlerId","getHandlerId","hover","_ref$current","hoverBoundingRect","getBoundingClientRect","hoverMiddleY","hoverClientY","getClientOffset","isDragging","drag","useDrag","ModalOrderColumns","handleSubmitModal","handleCancelModal","handleChangeColumns","handleDragColumn","handleResetColumns","originalColumns","setOriginalColumns","hasColumnVisible","setHasColumnVisible","hasError","setHasError","handleVisibility","hasColumnVisibleAux","paddingY","DndProvider","backend","HTML5Backend","AlarmIcon","controlColumnsConfig","reorderList","itemsList","AlarmsHistory","setIsLoading","renderState","setSelectedFilters","setSortBy","setAlarmHistoryColumns","showModalOrderColumns","tablePagination","orderedHistAlarms","filterColumns","ALARM_CODE","DESCRIPTION","REASON_ALARM","ACTION_TAKEN","RESET_TYPE","CAUSE","controlColumns","filterChanged","handleSort","handleSelectAllFilters","alarm","ReturnLabelContent","FormatDateColumn","VerifyColumns","reason_alarm","action_taken","reset_type","cause","setColumnsData","setControlColumns","verifyAlarmRegistered","alarmKey","i18next","exists","handleCloseModal","sortByAux","handleGetAlarmsHist","sortByColumn","sortByDesc","_params$filterParams","pageAux","alarmsHist","ORDER_BY","filterBy","alarms","alarmsWithExtraInfo","handleGetExtraInfoALarm","handleSetColumnsData","newColumns","handleSetExportColumns","newColumnsData","_columns$find3","columnTable","columnsToExport","col","exportAlarmHistoryColumns","handleUpdateFiltersAux","selectedFilterColumns","allAlarmsCodes","filterColumnsAux","handleGetAllFilters","_columns$find","selectedFilterAlarms","columnObj","columnName","valueObj","NoPeriodSelected","handleSearchWithFilters","NoColumnsSelected","handleChangePage","columnId","updatedColumns","_columns$find2","prevState","dataAux","dataMoment","dateFormated","hourFormated","ChillerCarrierHistory","_props$model","focus","setFocus","paramsHistorySelected","elementRef","handleDateChange","selectedTimeRangeAux","handleExport","handleExportAlarms","scroll","showYearPicker","isFlexivel","PADDING_TICKS","TOTAL_TICKS","LIMIT_TOTAL_TICKS","LIMITS_SETPOINT","stepper","totalTicks","newTicks","generateTicksByStepper","auxMax","auxMin","limitMinByStepper","generateTicksByRange","lastTick","addTicks","stepperSize","totalDifference","divideDifference","remainingDifference","minArray","maxArray","minIndex","maxIndex","roundedTicks","varsPropertiesFancoil","DutTemp","EcoSetpoint","ThermOn","FanStatus","Lock","CustomTick","baseSetpointMinLimit","stepperGraph","belowLimitFirstTick","isBelowAdjustedMinLimit","belowLimitSecondTick","belowLimitPenultTick","belowLimitLastTick","getStatusMessage","generateLabel","numberBelow","trueMessage","falseMessage","CustomTickMode","CustomCompressorTickMode","CustomTickVAV","modeTicks","thermOnTicks","valveOnTicks","lockTicks","CustomTickFancoil","fanTicks","DriHistory","_state$driInfo9","_state$driInfo10","_state$driInfo11","associatedDacsId","setpointLimits","setpointTicks","modeLimits","vavModeLimits","vavModeTicks","fancoilModeTicks","fancoilModeLimits","customPointLimit","valveOnChecked","thermOnChecked","fanStatusChecked","lockChecked","baseSetpointTicks","yDomain","associatedDutsDuoId","associatedDutsDuo","selectedDutsDuo","_state$driInfo$varsCf","_state$driInfo2","_state$driInfo2$varsC","isCarrierEcosplit","_state$driInfo3","_state$driInfo3$varsC","updateMinMaxSetpoint","newSetpoints","newSetpointsTicks","newSetpointsLimit","checkAgroupGraphData","baseTicks","differenceTicks","createAdditionalTicksFancoil","customPointTick","updatedBaseTick","getChartDacs","_state$driInfo7","_state$driInfo7$varsC","_dri$associatedDacs","promiseDacs","resultPromises","labelDifference","_varsProperties$param","_varsProperties$param2","_varsProperties$param3","_varsProperties$param4","_varsProperties$param5","_varsProperties$param6","TsucChecked","TliqChecked","TambChecked","getChartDutsDuo","_state$driInfo8","_state$driInfo8$varsC","_dri$associatedDutsDu","promisesDutsDuo","dutDuo","DUT_DUO_ID","temperatureGraphValues","dutDuoId","_varsProperties$param7","_varsProperties$param8","_varsProperties$param9","chartsData","_state$driInfo4","_state$driInfo4$varsC","_state$driInfo5","_varsProperties$key","_varsProperties$key2","_varsProperties$key3","_varsProperties$EcoSe","_varsProperties$EcoSe2","_varsProperties$EcoSe3","_state$devInfo$varsCf","_state$driInfo6","ECO_OFST_START","_labels$id","getDataToChangeColor","Graph","_state$driInfo12","_state$driInfo12$vars","_state$associatedDacs","_state$associatedDacs2","_state$associatedDacs3","_state$driInfo13","_state$driInfo13$ecoC","_state$associatedDacs4","_state$associatedDacs5","_state$associatedDacs6","_state$associatedDacs7","dutTemp","tusemax","tusemin","ecoSetpoint","tempAmb","thermOn","valveOn","fanStatus","lock","defaultVars","getDataByVars","tooltipFancoilFormater","baseValueLimit","valueForLabel","operationalModeFancoilLabel","tooltipVavFormater","operationalModeVavLabel","toolTipFormater","operationalModeCarrierEcoSplitLabel","statusLabelMap","Bloqueio","toolTipFormaterDac","returnSizeGraph","isNumber","customSizeGraph","getParamsColor","fancoilGroupGraphDataKey","chartDataInfo","chartDataVar","dacsSteps","chartDataIValue","valueChart","onClickDutDuoCheckboxTemperature","selectedDutDuo","_chartData$Temperatur","_chartData$Temperatur2","_chartData$Temperatur3","_chartData$Temperatur4","_chartData$vars","_chartData$vars2","_chartData$vars3","_chartData$vars4","_chartData$vars5","_chartData$vars6","_chartData$vars7","_chartData$vars8","_chartData$vars9","_chartData$vars10","_chartData$vars11","_chartData$vars12","selectedDac","_chartData$vars13","_chartData$vars14","ContainerCardWater","NameCardItem","BorderSpan","ContainerCalendar","ContainerInfoCalendar","ContainerDatesCalendar","ContainerItemDateCalendar","handleGetDatesParams","chartMode","isComparing","cardYear","dateParams","utcOffset","EnergyCardContext","EnergyCardProvider","isLoadingFilters","setIsLoadingFilters","cardControlTab","setCardControlTab","currentMonth","currentYear","cardDate","setCardDate","isApiDate","verifyDate","isCurrentMonth","tabIsLoading","setTabIsLoading","insights","trends","verifyIsCurrentMonth","handleSetIsLoadingFilters","handleChangeTab","newTab","handleSetTabIsLoading","handleSetCardDate","useEnergyCard","SelectOptionDropdownWrapper","Dropdown","DropdownHeader","DropdownContent","DropdownOption","DropdownYearButtons","capitalizeFirstLetter","charAt","MONTH_MODE","SelectOptionDropdown","yearSelected","monthSelected","yearOptions","monthOptions","handleClickOutside","handleChangeDate","handleGetYearIndex","handleGetMonthIndex","monthLabel","yearLabel","handleMonthHasData","checkCanClick","direction","currentYearIndex","reverse","handleSelect","breakLoop","currentMonthIndex","breakLoopMonth","getArrayDaysOfMonth","mes","ano","numDias","SelectedDate","BarchartWrapper","BarChart","CanvasRenderer","daysOfWeek","ConsumptionChart","forwardRef","cardMonth","filterDatesChart","handleClickBarChart","handleChangeComparingChart","chartWrapperStyle","consumptionChartStyle","canCompare","energyCard","isComparingChart","isOpenComparingDropdown","viewTratedData","calculateDelta","firstNumber","secondNumber","handleGetDataChart","checkProblemDataIsInvalid","chartValue","hasProblemData","checkProblemDataIsProcessed","createTratedDataElement","createTooltipHTML","tooltipTitle","consumptionValue","consumptionMeasurement","totalChargedData","totalUnits","deltaValue","deltaElement","createDeltaElement","signal","rotation","infoIcon","tratedData","createTooltipElement","delta","_value$consumption","_value$totalCharged","_value$totalUnits","totalCharged","convertEnergy","tooltipElement","createIsProblemTooltipHTML","tooltipFactory","yearMode","tooltipDate","monthName","compareYear","chartValueCompare","compare","compareElement","chartValueCurrent","currentElement","monthMode","compareMonthName","isNotComparing","xAxisFactory","handleGetXAxisYearMode","monthsOfYear","monthsOfYearFormatted","prevYear","prevYearMonths","currentYearMonths","xAxisFormatterFactory","dateChart","hasProblemDataIsProcessed","hasProblemDataIsInvalid","problemDataIndicator","monthDay","weekDayIndex","yAxisFormatter","valueDemandConverted","valueDemandUnitMeasurement","barWidthFactory","isNotExpanded","formatSeriesChart","itemStyle","seriesFactory","currentFormattedData","compareFormattedData","barWidth","handleUpdateChartDates","onClickComparePeriod","useImperativeHandle","barchartDom","barChart","barClicked","barchartOptions","axisPointer","shadowStyle","shadowBlur","shadowOffsetY","shadowOffsetX","showMaxLabel","warnIcon","image","incoerentIcon","handleRenderBarchart","INCOERENT_ICON","WARNING_ICON","EnergyHistory","energyCardFilters","insideFilters","handleIsComparing","handleResetDates","historyChartData","isLoadingChart","isOpenFilterHeader","monthChartSelected","yearChartSelected","handleGetChartData","chartModeParam","datesParams","startDateToCompare","endDateToCompare","filterType","energyHistParams","startObject","monthClicked","yearSelectedComparing","monthSelectedComparing","namesMonths","completeNameMonths","completeNumberMonths","GenerateGraphWater","waterCard","unitMeasuere","isHistory","last12Months","showForecast","handleClickBar","litersSelected","idioma","arrayDataFiltered","xAxisNames","barWidthHistory","getDateTooltip","_arrayData$value$0$da","_arrayData$value$0$da2","_arrayData$value$0$da3","_arrayData$value$0$da4","_arrayData$value$0$da5","_arrayData$value$0$da6","_arrayData$value$0$da7","_arrayData$value$0$da8","_arrayData$value$0$da9","_arrayData$value$0$da10","number_devices","isEstimated","handleWeekDay","dayWeekName","handleRenderWater","_item$day","_item$day2","_item$day3","_item$day4","_item$day5","_item$day6","_item$year","_item$day7","_item$day8","_item$day9","_item$year2","isProblemData","nameLocation","numberString","formatNumber","barCategoryGap","HoverConsumptionInfo","HoverMeterInfo","ContainerCaption","ContainerUsageDiff","ButtonReturnPeriod","ContainerIcon","period_usage_up","WaterHistory","_profile$prefsObj","shouldNotDisplayLiters","setShouldNotDisplayLiters","loadingNewData","lastStartDate","lastEndDate","graphDataForecast","cubicMetersGraphData","cubicMetersGraphDataForecast","graphLegend","periodIsMonthOrFlexible","maxUsage","lastReadingDate","daily_average","period_usage","period_usage_last","predicted","predictedLastMonth","forecastUsage","consumptionByDayOfWeek","yearGraphic","periodHist","startDateHist","endDateHist","lastStartDateHist","lastEndDateHist","numberArr","_currentDayData$daily","currentDayData","dailyReadings","dayUsage","getValueOrZero","getGraphDataAndForecast","responseUsage","LAST_START_DATE","LAST_END_DATE","YEAR_GRAPHIC","LAAGER_CODE","getResponseUsage","h","parseISO","information_date","estimatedUsage","handlePeriodUsageDiff","maxUsageForecast","predictedConsumption","forecast","getForecast","currDate","setHours","dataDate","verifyConsumptionInMeterCubic","cubicMetersHistGraphData","dailyHistReadings","readings","readTime","cubicMetersHistGraphDataForecast","isMoment","formattedLastDate","currentWeek","isNextMonth","usageLast","diffPercent","Infinity","setForecastStates","_responseUsage","_responseUsage$histor","dailyReading","graphDataDaily","getDailyData","dateArray","strDate","getOthersPeriodData","_info$installationDat2","dmaId","last_reading_date","getMeasureUnit","formatConsumption","formattedLastDateInit","formattedLastDateEnd","handleDateChangeLeft","isAfterMaxEndDate","isOutsideCurrentMonth","handleDateChangeRight","timeSelected","endDateFormat","startDateFormat","eventOff","clickable","DateCaption","ConsumptionInfoCaption","dataId","legendHover","widthIcon","minimumFractionDigits","maximumFractionDigits","months","DevHistory","isDma","DAM_DISABLED","DUTAUT_DISABLED","isAutomationOnly","getDevInfo","dutSelected","getNewScreens","_state$devInfo$info","getScreen","ContainerInfo","ContainerText","OverLay","ContainerEcoMode","HoverEcoLocal","DutSchedulesList","showList","schedules","ScheduleViewCard","cardPosition","hideButtons","ExceptionViewCard","InfoItem","InfoGraphCont","ButtonAddAssociationsDal","ContainerUseIndex","TextPNoMargin","TextPMargin","ContainerInfoIndexUse","ContainerWithBorderInfo","ContainerGraphicIndexUsage","ContainerDalTree","ContainerInfoDalProfoile","FlexRowColumn","FlexRowColumn1250","UtilityTree","_props$lastTelemetry","utils","deviceSelected","isDevSelected","utilSelected","isUtilSelected","larguraPage","onresize","clientWidth","utilityStatus","Nobreak","Bateria","Desligado","Indisponível","Illumination","Ligado","extraInfo","_util$DAT_CODE","_util$DMT_CODE","CIRCUIT_ID","CustomSelectDutsReference","IconWrapperSearch","ContainerDuts","DutItemStyle","HeaderVisibility","UnderlineBtn","Separator","DocumentationContainer","ExibInvisibleFile","DocumentationContainerArea","SelectAndDownloadArea","ItemDoc","InibVisibilityAddDoc","BoxResponsive","EditAreaDocs","_props$color","ObservationAreaContainer","TitleInfoObservation","ContainerObservationsItems","ContainerEditDeleteObs","ContainerObservation","TextObsUnit","TextObsUnitExpand","IconsContainerObs","ContainerHtmlObs","TextProgressBar","SmallWarningIcon","validateStringTimeInterval","milliseconds","parseDamProgToDalProg","damProg","uniqueProgs","scheds","schedBase","DAL_ID","exceptBase","REPEAT_YEARLY","DALSchedule","_state$dalScheds19","_state$dalScheds20","_state$dalScheds21","illumId","illumName","dalScheds","dalExceptions","modalEditException","loadingSet","dalSchedsToEdit","dalExceptsToDelete","illumWithConflict","editAddException","editAddSched","_item$TITLE","_item$TITLE2","exceptionId","deleteSchedule","getScheds","_state$dalScheds7","_state$dalScheds8","DELETE","canEdit","_state$dalScheds9","_state$dalScheds10","deleteException","_state$dalExceptions7","_state$dalExceptions8","except","_state$dalExceptions9","_state$dalExceptions10","changeShowExceptions","changeDefaultMode","defaultMode","editDefaultMode","changeHasEdited","handleHasEdited","damSched","checkConvergence","currentScheds","newSched","convergence","compareTimes","_newSched$ID","newDays","getNewSchedDays","convergenceDays","deleteSched","foundConvergence","checkDalSchedsCardsConflicts","newScheds","persisted","daysProgs","hasConflict","schedsIdToEdit","deletedIds","inserted","INSERT","edited","EDIT","editedIds","schedsToValidate","persistedWithoutEditeds","dayScheds","checkConvAns","time_1","time_2","hasHoursConflicts","exceptsIds","j","_excepts$i","_excepts$j","handleDayExceptsInsertion","dayExcepts","dateDM","_dayExcepts$dateDM","YEARLY","_dayExcepts$dateDM2","dateY","checkNotYearlyExcept","yearlyExcepts","checkExceptsConvergence","exceptsIdToDelete","checkDalCardsExceptsConflicts","newExceptions","exceptsToValidate","getDayExcepts","_dayExcepts$date","validateScheds","illumsWithConflict","foundConflict","dalSchedValidation","dalExceptsValidation","validateDalScheds","saveUtilitySched","isModal","_state$dalScheds14","_state$dalScheds15","_state$dalScheds16","_state$dalScheds17","_state$dalScheds18","_state$dalExceptions11","_state$dalExceptions12","_state$dalScheds11","_state$dalScheds12","_state$dalScheds13","styledIcon","DALScheduleContent","isEditDAL","isEditUtility","exceededExceptionLimit","setExceededExceptionLimit","hyphens","_state$dalSchedsToEdi","_state$dalSchedsToEdi2","_state$dalExceptsToDe","_state$dalExceptsToDe2","schedsToEdit","schedsToSend","editInfo","exceptsToDelete","exceptsToSend","hasToDelete","EXCEPTION_ID","SCHEDS","EXCEPTIONS","DalSchedForm","_state$dalScheds","_state$dalScheds2","addNewSched","_state$dalScheds3","_state$dalScheds4","_state$modalEditSched","_state$modalEditSched2","_state$modalEditSched3","_state$modalEditSched4","_state$dalScheds5","_state$dalScheds6","_state$modalEditSched5","_state$modalEditSched6","_state$modalEditSched7","_state$modalEditSched8","editSched","DalExceptionForm","_state$dalExceptions","_state$dalExceptions2","addNewException","_state$dalExceptions3","_state$dalExceptions4","_state$modalEditExcep","_state$modalEditExcep2","_state$dalExceptions5","_state$dalExceptions6","_state$modalEditExcep3","_state$modalEditExcep4","editException","_props$dalScheds$","_props$dalScheds","_props$dalExceptions","_props$dalScheds2","_props$dalExceptions2","defaultModeOpts","DEFAULT_MODE","exceptionList","AddToltipIfDisabled","_props$modalEditSched2","_props$modalEditSched3","_props$modalEditSched4","_props$modalEditSched5","_props$modalEditSched6","_props$modalEditSched7","_props$modalEditSched8","_props$modalEditSched","checkedColor","_props$modalEditExcep","formatDays","renderEditButtons","renderWeekDaysButtons","DalInfo","_dalInfo$dal","_profile$adminClientP2","dalInfo","illuminationList","handleGetImages","handlePostImage","handleDeleteImage","renderImages","renderDeviceInfo","_dalInfo$dal2","_state$lastTelemetry","_state$lastTelemetry2","_state$utils$state$se","_state$utils$state$se2","_profile$adminClientP3","ContainerInfoUsageIndex","ContainerCardDmtUsage","InfoItemShort","IlluminationInfo","_illuminationStatus$u","_illuminationStatus$u2","_util$PORT","_util$FEEDBACK","screen","feedbackStatus","setFeedbackStatus","illuminationStatus","noOpStatus","utilIllumination","isDMT2","UtilityTypesInfo","_util$UTILITY_CODE","_nobreakStatus$util$S","_nobreakStatus$util$S2","nobreakStatus","columnItemWidth","deviceLabel","UTILITY_CODE","UTILITY_ID","SENSOR","RenderImagesDmtUtility","utilityId","UTILITY_DEVICE_ID","forceReload","DmtInfo","_dmtInfo$dmt","dmtInfo","utilitiesList","portList","_dmtInfo$dmt2","DevInfo","verifyTranslation","temperatureControlState","lastTelemetryTS","DUTS_SCHEDULES","SCHEDULES_ACTIVE_QUANTITY","DUTS_EXCEPTIONS","redirectToIntegrations","handleDamMessages","handleDacMessages","handleDutMessages","handleGetDACImages","handlePostDACImage","handleDeleteDACImage","handleGetDUTImages","handlePostDUTImage","handleDeleteDUTImage","handleGetDAMImages","handlePostDAMImage","handleDeleteDAMImage","handleGetDRIImages","handlePostDRIImage","handleDeleteDRIImage","openModalDutSchedulesList","automation","ctrl_mode","SCHEDULE_STATUS","getDutAutExtraInfo","NewCard","renderScheds","ScheduleButton","handleOnClick","SCHEDULE_TOTAL_QUANTITY","DUT_SCHEDULE_ID","outros","habilitadoDesabilitado","_devInfo$dam3","permissionProfile","UNIT_MANAGE","isEditEnable","verifyCapacityPower","_devInfo$dac","_devInfo$dac2","_devInfo$dac3","_devInfo$dac$DAC_DESC","_devInfo$dac$DAC_DESC2","_getTranslatedInstall","BT_ID","dam_mode","DAC_DESC","renderDevInfo","StatusL1","ColoredDottedLine","DivisionLine","TSPAN","ONLINE_TIMEOUT","invBool","formatTimeToTimeAxios","CustomTickTime","initialTimeRef","CustomTickTemp","CustomTickPress","ChartRealTime","_state$hwCfg","_state$devInfo$dac","styleLabelTemperature","styleLabelPressure","DacFluid","tickCount","CommandStatus","labelGreen","labelRed","statusColor","additionalStyles","_state$devInfo2$dac","styleText","styleFluidType","RealTimeDesktop","_state$lastData$Tamb","_state$lastData","_state$lastData2","_state$lastData3","_state$lastData4","_state$lastData5","_state$lastData6","_state$lastData7","_state$lastData8","_state$lastData9","_state$lastData10","_state$lastData11","_state$lastData12","_state$lastData13","_state$lastData14","_state$lastData15","_state$lastData16","_state$lastData17","_state$lastData18","_state$lastData19","_state$lastData20","_state$lastData21","_state$lastData22","_state$lastData23","_state$lastData24","lastData","verifyIsHeatExchanger","verifyIsFancoilOrHeatExchanger","debugFaults","_state$devInfo5$dac","_state$devInfo6$dac","RealTimeMobile","_state$lastData25","_state$lastData26","_state$devInfo7$dac","_state$lastData27","_state$lastData28","_state$lastData29","_state$lastData30","_state$lastData31","_state$lastData32","_state$lastData33","_state$lastData34","_state$lastData35","_state$lastData36","_state$lastData37","_state$lastData38","_state$lastData39","_state$lastData40","_state$lastData41","_state$lastData42","_state$lastData43","_state$lastData44","_state$lastData45","flexBasis","RealTimeContents","hasNewTelm","calculate_L1_fancoil","onTelmTimer","timezoneOffset","convertToPsi","currentData","allValues","extractValidValues","yLcmp","yLevp","yLcut","addTelemetryPoint","processReceivedTelemetry","condDesc","historyPromise","intervalLength_s","intervalLength","tzOffset","dateWithOffset","histResp","devHist","newData","initialTimestamp","timeAxis","datIni","LcmpHist","LevpHist","LcutHist","TambHist","TsucHist","TliqHist","PsucHist","PliqHist","CurrHist","TscHist","TshHist","deltaTHist","NaN","processReceivedHistory","prevL1start","chartPoints","newPoint","chartTimeIni","lastPoint","timeEndThreshold","updateDamStatus","DamControl","onStateChanged","sendDamMode","safeWaitMode","sendDamRelay","safeWaitRelay","manualCommandsEnabled","damStateIsEco","uncheckedColor","SetpointButtonMobile","DamRealTimeContents","_getTemperature","_state$devInfo$dam$MI","_state$devInfo$dam$MA","_getTemperature2","ecoModeActing","optionsControlMode","iconSelected","optionsOperationMode","disableOperationMode","disableSetpoint","dutIrCommands","_message$data","_message$data2","_message$data3","defineSelectedOptions","controlModeCurrent","controlModeNew","operationModeCurrent","optionControlModeSelected","getDialColor","BlueSecondary_v3","MINIMUM_TEMPERATURE","GreenLight","changeSetpoint","newSetpoint","selectControleMode","selectOperationMode","optionOperationModeSelected","getTemperature","getReturnTemperature","_state$devInfo$DEV_ID","SETPOINT_ECO_REAL_TIME","supportsExtTherm","getInsufflationTemperature","showInsufTemp","_getInsufflationTempe","objectFit","EcoModeIcon","DamEcoCard","damInfo","damEco","Dial","showIndicator","OptionsWithIcon","mobile","tagName","parentElement","LightLightGrey_v3","ry","DutAutControl","transmittingCommand","emmitDutCommand","CMD_TYPE","DutAutRealTimeContents","telemetryDutAut","progState","telemetryDut","CTRLOPER","identifyDutIrCommands","dutIrCmds","CMD_DESC","t1","TEMPER","t2","T","ehDesl","ehVent","ehRefr","M","avaliacao","identificado","cmdName","EnvironmentRealTimeContents","_state$data","_state$devInfo$dut$HU3","_state$devInfo$dut$HU4","_state$devInfo$dut$HU5","_state$devInfo$dut$HU6","dutStats","dutType","timerChangeSetpoint","floatingControlMode","floatingControlFan","floatingControlSwing","getDutType","_state$dutIrCommands","_state$dutIrCommands$","tempDefault","_command$cmdName","_command$cmdName2","IR_ID","CMD_NAME","getClosestSetpointCommand","_state$dutIrCommands2","cmd","_value$cmdName","_cmd$cmdName","_value$cmdName2","cmdSetpoint","valueSetpoint","dayIni","dutIrCodes","setOperationMode","_state$dutIrCommands3","_command$cmdName3","co2","hum","LightOrange","_state$devInfo$dut$HU","_state$devInfo$dut$HU2","humidityMin","humidityMax","humAux","labelTempRetorno","labelTempInsuf","tempOrDutDuo","BoxWrapper","getOperationModeIcon","_state$dutIrCommands4","_command$cmdName4","setOperationStatus","img_power_grey","img_power","getOperationStatusIcon","DmaRealTime","DmaRealTimeContents","getCurrDate","yyyy","_state$graphDataCubic","_state$graphData","telemetries","graphDataCubic","lastConsumption","lastConsumptionCube","changeSamplingPeriod","samplingPeriod","pulses","saved_data","dateStr","dArr","reformatDate","litersPerPulse","updateGraphData","currValue","dataCopy","dataCopyCubic","CustomizedToolTip","LabelInfo","LineLegend","FanOnIcon","FanOffIcon","ValveOpenedIcon","ValveClosedIcon","DriScheduleList","onAddEdit","onChangeShowException","limitExceeded","hasSize","stylesTabButtonExceptions","EditScheduleModal","validateSchedule","onAddSchedule","onUpdateSchedule","callProgrammingRequest","AUTOMATION_INTERVAL","automationCfg","generateAddDriScheduleInput","generateUpdateDriScheduleInput","saveNewProgramming","DriScheduleContent","_devInfo$dri3","actions","fixedContent","msgError","validateException","onAddProgramming","onEditProgramming","onDeleteProgramming","DriScheduleModal","RssiComponent","showLabel","verifyAndUpdateRSSI","ikron03availableErrors","multkAvailableErrors","getMagnitudeOrder","LN10","DriRealTimeContents","_state$devInfo$dri$va4","_state$devInfo$dri$va5","_state$vavTempAmb","_state$devInfo$dri$va6","_state$devInfo$dri5","_state$devInfo$dri5$v","_state$devInfo$dri$va7","_state$devInfo$dri6","_state$devInfo$dri6$v","_state$vavSetpoint$to","_state$vavSetpoint","_state$devInfo$dri7","_state$devInfo$dri7$f","_state$fancoilTempAmb","_state$devInfo$dri8","_state$devInfo$dri8$f","_state$devInfo$dri9","_state$devInfo$dri9$f","_state$devInfo$dri10","_state$devInfo$dri10$","_state$devInfo$dri11","_state$devInfo$dri11$","_state$fancoilSetpoin","_state$devInfo$dri$va8","_state$telemetries$v_","_state$telemetries$v_2","_state$telemetries$i_","_state$telemetries$i_2","_state$telemetries$po","_state$telemetries$po2","_state$telemetries$v_3","_state$telemetries$v_4","_state$telemetries$i_3","_state$telemetries$i_4","_state$telemetries$po3","_state$telemetries$po4","_state$telemetries$v_5","_state$telemetries$v_6","_state$telemetries$i_5","_state$telemetries$i_6","_state$telemetries$po5","_state$telemetries$po6","_state$telemetries$v_7","_state$telemetries$v_8","_state$telemetries$i_7","_state$telemetries$i_8","_state$telemetries$po7","_state$telemetries$po8","_state$telemetries$v_9","_state$telemetries$v_10","_state$telemetries$v_11","_state$telemetries$v_12","_state$telemetries$v_13","_state$telemetries$v_14","_state$telemetries$i_9","_state$telemetries$i_10","_state$telemetries$i_11","_state$telemetries$i_12","_state$telemetries$i_13","_state$telemetries$i_14","_state$telemetries$po9","_state$telemetries$po10","_state$telemetries$po11","_state$telemetries$po12","_state$telemetries$po13","_state$telemetries$po14","_state$telemetries$po15","_state$telemetries$po16","_state$telemetries$fp","_state$telemetries$fp2","_state$telemetries$fp3","_state$telemetries$fp4","_state$telemetries$fp5","_state$telemetries$fp6","_state$telemetries$fp7","_state$telemetries$fp8","_state$devInfo$dri$va9","_state$devInfo$dri$va10","_state$devInfo$dri$va11","CONT_WS_REQUEST","isTelemetryNull","installationError","desktopWidth","isSendingSetpoint","vavSetpoint","vavTempAmb","vavValve","vavLock","fancoilSetpoint","fancoilTempAmb","fancoilValve","fancoilFan","activeFancoilOperationMode","activeMachineStatus","showCurves","totalOrMedium","phaseA","phaseB","phaseC","sendingNewFancoilMode","driState","setDriState","totalSchedules","showScheduleModal","energyState","setEnergyState","windowSize","setWindowSize","debouncedRender","useDebouncedRender","verifyMeterIsSchneiderPm210","formatPowerAux","sendDriSetpoint","VALUE","updateTimeReceiveTelemetries","sendOnOffCommand","changeVAVSetpoint","changeVAVLock","changeFancoilSetpoint","onClickMode","_state$devInfo$dri$va","scrollBy","_state$devInfo$dri$va2","setFancoilOperationMode","shiftedTime","_state$devInfo$dri$va3","vavCfg","_state$devInfo$dri2$v","_state$devInfo$dri3","_state$devInfo$dri3$v","_state$devInfo$dri4","_state$devInfo$dri4$v","_state$devInfo2$dri$v","applicationDri","pot_at_a","pot_at_b","pot_at_c","verifyDriTypeToFormatPower","v_avg","v_a","v_b","v_c","i_total","i_a","i_b","i_c","pot_at_total","pot_at_tri","addEnergyParams","checkLastTimeStamp","Temp","MachineStatus","convertErrorTelemetry","erro","updateRssi","defaultValue","isDRIFancoil","callDriSchedules","schedulesList","_devInfo$dri$varsCfg3","_devInfo$dri$varsCfg4","_devInfo$dri$varsCfg5","_devInfo$dri$varsCfg2","isDRIVav","getTimezoneOffset","handleWindowResize","withCommands","ToggleSwitch","fancoilCfg","FANCOIL_ID","THERM_T_MIN","THERM_T_MAX","rowGap","img_mode_off","getFancoilOperationModeIcon","getFancoilOperationModeLabel","minTickGap","dataMax","tel","CheckboxMaterial","disableRipple","fp","fp_a","fp_b","fp_c","convertKronErrorTelemetry","availableErrors","erroBin","msg","bit","GraphContainer","TitleFieldNobreak","TitleColumn","DmtRealTime","dmtId","DmtRealTimeContent","_state$state$electric","electricalNetwork","F1","F2","F3","F4","portInfo","listNobreaks","listIllumination","getPortsInfoGraph","NobreakCustomTick","labelFormater","getTelemetryValue","getTelemetryIllumination","NobreakGraph","illumination","IlluminationGraph","GraphContainerAll","CustomTickFeedback","DalRealTimeContent","Control","Relays","scale","DevRealTime","setDevice","setScreenDevice","Edit","Remove","Add","DutSchedule","DutScheduleContents","editedDay","schedProm","DevSchedule","CardIntem","SelectSearchStyled","allowedMeterModelsDriSlaveId","DriConfigParameters","_state$driMeterModel4","_state$driMeterModel5","_state$driMeterModel6","verifyDisabled","_state$driMeterModel$","_state$driMeterModel","driMeterModel","_state$driMeterModel3","disabledDriProtocol","_state$driMeterModel2","disableDriLayer","Manufacturer","fancoil","valveManuf","fancoilValveManuf","otherValveManuf","valveModel","boxManuf","vavBoxManuf","vavBoxModel","fancoilManuf","otherFancoilManuf","fancoilModel","DriConfigAutomation","resetCfgFields","setDriApplication","roomName","selectedValveModel","thermManuf","driVavFancoilModel","DriConfigChillerCarrier","_state$formData$GROUP","_state$formData$UNIT_","_state$formData$GROUP2","_state$formData$ASSET","_state$formData$GROUP3","_state$formData$ASSET2","_state$formData$ASSET3","updateAssets","setVariablesChiller","ClearSelect","onClickClear","ASSET_ID_item","driChillerCarrierLine","driChillerCarrierModel","_state$driChillerCarr","_state$driChillerCarr2","driChillerCarrierGateway","DriConfigEnergyMeter","meterModels","_defaultConfig$driSla","establishmentName","DriConfigSchedulesAutomation","isFirstRender","valueOrNull","DriConfig","_state$formData$UNIT_3","_props$devInfoResp$dr","_props$devInfoResp$dr2","_props$devInfoResp$dr3","_props$devInfoResp$dr4","_state$formData$CLIEN9","_state$formData$CLIEN10","_state$formData$CLIEN11","_state$formData$UNIT_10","_state$formData$CLIEN12","_state$formData$UNIT_11","_state$formData$UNIT_12","listModelsChiller","listGatewaysChiller","vavLoaded","fancoilLoaded","enableEco","applications","REL_DUT_ID_item","ENABLE_ECO_item","ECO_MODE_CFG_item","ECO_INTERVAL_TIME","ECO_OFST_END","AUTOMATION_INTERVAL_TIME","persistedAssetDevice","devInfoResp","rooms","roomDutInfo","setDriApplicationEnergy","setDriApplicationVAV","setDriApplicationFancoil","setDriApplicationChillerCarrier","setDriApplicationCarrierEcosplit","chillerName","setDriApplicationChillerName","getOptionByValue","_options$find","gateway","loadPlaceConfig","fetchUnits","updateGroups","_state$formData$CLIEN","_driCfg$chillerName","_state$driChillerCarr4","ASSET_ROLE","_findCapacity$address","_findCapacity$address2","_driCfg$varsList2","_findInstallationType","_findInstallationType2","_state$driChillerCarr3","_driCfg$varsList3","_driCfg$varsList3$fin","_driCfg$varsList3$fin2","_driCfg$varsList3$fin3","findCapacity","findInstallationType","_driCfg$application","_driCfg$application2","_driInfo$establishmen","_devInfoResp$dri2","_devInfoResp$dri3","_devInfoResp$dri4","_value$THERM_MANUF","_value$VALVE_MANUF","_value$VALVE_MODEL","_vavFancoilValveTypes","_value$BOX_MANUF","_value$BOX_MODEL","_value$ROOM_NAME","THERM_MANUF","VALVE_MANUF","VALVE_MODEL","VALVE_TYPE","BOX_MANUF","BOX_MODEL","_value$THERM_MANUF2","_value$THERM_MODEL","_value$VALVE_MANUF2","_value$VALVE_MODEL2","_vavFancoilValveTypes2","_value$FANCOIL_MANUF","_value$FANCOIL_MODEL","THERM_MODEL","FANCOIL_MANUF","FANCOIL_MODEL","loadEcoConfig","_state$comboOpts$enab","_state$comboOpts$ecoM","_driCfg$ecoCfg$ECO_IN","_driCfg$ecoCfg$ECO_IN2","_driCfg$ecoCfg$ECO_OF","_driCfg$ecoCfg$ECO_OF2","_driCfg$ecoCfg$ECO_OF3","_driCfg$ecoCfg$ECO_OF4","ECO_INT_TIME","loadAutomationConfig","_devInfoResp$dri","verifyComboLabel","_props$devInfoResp","_props$devInfoResp$in","verifyMeterModelsSort","getDutsList","getEnergyComboOpts","getChillerComboOpts","getVavComboOpts","getFancoilComboOpts","isReturn","verifyOpenPermissionAndClients","formattedList","verifyOpenModalAndStates","verifyOpenModalAndCities","dielManuf","manuf","driMeterModelsSort","LINE_NAME","formattedListModels","formattedListGateways","GATEWAY_NAME","vavs","vavsForEach","fancoils","fancoilForEach","_state$formData$UNIT_2","_state$formData$CLIEN4","_state$formData$UNIT_4","groupFiltered","_state$formData$UNIT_5","_state$formData$UNIT_6","machinesAssetsList","_state$formData$CLIEN5","lastApplication","_state$driChillerCarr5","verifyDriProtocol","verifyDriProtocolAndModel","_state$driVavFancoilM","verifyValveType","remove","vavUpdate","fancoilUpdate","_state$persistedAsset","_state$formData$UNIT_8","_state$formData$UNIT_9","_state$formData$CLIEN7","_state$formData$CLIEN8","systemName","_state$driChillerCarr6","_state$listModelsChil","_state$listModelsChil2","_state$listGatewaysCh","_state$listGatewaysCh2","_state$driChillerCarr9","_state$listModelsChil3","_state$listModelsChil4","_state$listGatewaysCh3","_state$listGatewaysCh4","_state$driChillerCarr7","_state$driChillerCarr8","_state$driChillerCarr10","_state$driChillerCarr11","handleEditAsset","_state$formData$UNIT_7","_state$formData$CLIEN6","energyMeterSetAndDelete","_state$driSlaveId","getDefaultSendInterval","resetAutomationField","returnExistOrValue1","item2","isFancoilVavApplication","isAutomationApplication","_state$formData$CLIEN2","_state$formData$CLIEN3","updateUnits","onSelectUnit","_getKeyByValue6","_parseDecimalNumber","saveAutomationInfo","EditDevInfoDRI","onDataUpdate","varsConfigInput","RouterEditDal","when","onQuit","onSave","currentPath","setCurrentPath","unblock","block","handleSairSemSalvar","canRoute","handleSalvarSair","EditDalInfo","_state$selectedPort2","_state$selectedFeedba2","_state$illuminationLi","clientsOpts","unitsOpts","utilitiesOpts","selectedPort","selectedFeedback","replaceIllum","clientChanged","unitChanged","deletionList","illuminationScheds","hasEdited","isOverLimit","nonAssociatedIllums","fetchClientData","feedbackPorts","getDalPortsInfo","saveDalInfo","illumErrors","removed","ilumn","_ilumn$PORT","_ilumn$FEEDBACK","currIllumInfo","_ilumn$PORT2","_ilumn$FEEDBACK2","defaultIllum","shouldOpen","handlePortChange","oldPort","_state$type","_state$type2","old","handleRemoveIllum","illumIndex","removedIllum","handleSchedChanges","utilIndex","_state$selectedPort","_state$selectedFeedba","isNew","IllumItem","illumInfo","portsList","feedbacksList","schedChanges","handleDefaultMode","valid","clearPort","_illumInfo$PORT","_illumInfo$FEEDBACK","removeIllumAssociation","margingTop","_illumInfo$PORT2","filterIllumFeedbackOpts","_illumInfo$FEEDBACK2","EditDmtInfo","_state$utilitiesList","handleProp","portsToEdit","openDeleteModal","selectedElectricNetwork","replaceUtility","replaceUtilityIdx","deleteUtilityIdx","sensors","updateDimensions","setElectricNetwork","electricNetworkIdx","DISSOCIATE","setDefaultElectricNetworkPort","numberOfNobreaks","defaultPort","getUnitOpts","getDmtPortsInfo","utilitiesFromUnit","associateds","dissociateds","getUtilitiesOpts","setUnitInfo","setSelectedValues","hasNobreak","numberOfUtilityWithoutIllumination","hasElectricNetwork","getSensorsInfo","getNumberOfUtilitiesHasEletricNetwork","handleNewUtility","nonAssociatedUtilities","utilites","getNonAssociatedUtilities","setNewUtilityPort","cancel","utility","utilityIdx","utilityListIdx","clearUnitInfo","removeElectricNetwork","electricCircuitIdx","dissociateElectricNetwork","hasEletricNetwork","UtilityItem","renderList","sensorOptions","_state$dmtInfo$DEV_ID","selectsDecide","numberUtilitiesHaveEletricNetwork","EditDevInfo","_state$devInfo63","_state$devInfo63$dut","_devInfo$dam19","_state$devInfo64","_state$devInfo64$dam","_TUSEMAX","_state$devInfo65","_state$devInfo65$dam","_state$devInfo66","_state$devInfo66$dam","_state$devInfo67","_state$devInfo67$dam","resendTimeError","setResendTimeError","sendAndDisableAut","setSendAndDisableAut","damFuNomCalc","DAT_BEGAUT","ENVIRONMENT_ID_item","DUTAUTCFG_item","ENABLE_ECO_local","ECO_CFG_item","DAC_APPL_item","DAC_TYPE_item","DAC_ENV_item","DAC_BRAND_item","DAC_MODIF_item","DAC_COMIS_item","DAC_HEAT_EXCHANGER_item","P0_POSITION","P0_SENSOR","P1_POSITION","P1_SENSOR","T2_POSITION","USE_RELAY_item","PLACEMENT_item","DAM_PLACEMENT_item","MEASUREMENT_SELECTED_P0","MEASUREMENT_SELECTED_P1","SENSOR_AUTOM","RESENDPER","DAC_COP","FU_NOM","configTsensors","TEMPERATURE_OFFSET","ECO_SETPOINT","ECO_LTC","ECO_LTI","ECO_UPPER_HYSTERESIS","ECO_LOWER_HYSTERESIS","ECO_SCHEDULE_START_BEHAVIOR_item","EXT_THERM_CFG","COMPRESSOR_NOMINAL_CURRENT","EQUIPMENT_POWER_item","DAM_INSTALLATION_LOCATION_item","T0_POSITION_DAM","T1_POSITION_DAM","EVAPORATOR_MODEL_item","automationTabHasBeenSelected","optionsEco","optionsEcoLocal","pPositions","tPositions","applicsNew","generateDacApplicationOption","applicationName","damPlacement","sensorAutom","sensorDamDuo","dutAutCfg","psens","scheduleStartBehavior","heatExchangerTypes","dutScheduleStartBehavior","dutScheduleEndBehavior","dutForcedBehavior","damInstallationLocation","evaporatorModels","extThermCfg","equipmentPower","P0raw","P1raw","measurementOpts","offsetChecked","hysteresisChecked","dutCompatibilityHysteresisEco2","subcards","relevances","DUTS_SCHEDULES_FILTERED","DUTS_SCHEDULES_DELETED","DUTS_EXCEPTIONS_FILTERED","DUTS_EXCEPTIONS_DELETED","selectedSchedule","selectedIndexSchedule","selectedException","selectedIndexException","NEED_MULT_SCHEDULES","CHANGE_EXCEPTION_PARAMETERS","irCommands","persisted_USE_RELAY_item","isLoadingUnitInfo","verifyDacApplicationOptions","firmwareVersion","V_MAJOR","actualPosition","verifyDacApplicationsWithFirmwareValidate","dacDamEcoDetails","ecoModeDetails","checkGroupAutomated","groupsDevice","returnCheck","dev_aut","checkIsDutRef","getPsucAndPliqAndCurr","_state$formData$DAC_A","applicationConfig","isValidationOk","verifyPressurePositions","_state$formData$MEASU","_state$formData$MEASU2","currPosition","verifyCurrentPosition","validateDacAppConfig","dacData","_state$formData$DAC_A3","validatePsucAndPliqAndCurr","_state$formData$DAC_A2","P0_POSITN","P1_POSITN","DAC_HEAT_EXCHANGER_ID","validateDacApp","valueOrNumber","handleDacWithDam","_state$formData$USE_R","_state$formData$ENABL","_state$formData$ECO_C","USE_RELAY","_state$formData","_state$formData$FU_NO","_state$devInfo3$dam","_state$formData$ECO_S","SCHEDULE_START_BEHAVIOR","setDacWithDamInfo","saveDacInfo","formatDacData","_state$persisted_USE_","_state$formData$FLUID","_state$formData$DAC_T","_state$formData$EQUIP","_state$formData$DAC_E","_state$formData$DAC_B","_state$formData$DAC_M","_state$formData$DAC_C","_state$formData$DAC_H","_state$formData$REL_D","currentUseRelayValue","considerDutRef","l1SimMode","EQUIPMENT_POWER","DAC_ENV","DAC_BRAND","DAC_MODIF","DAC_COMIS","T0_T1_T2","validateDacData","_state$formData$T0_PO","_state$formData$T1_PO","_state$formData$T2_PO","sendDacData","validateDamParams","damData","_damData$groups","showDamWarnings","setDamDataWithCanSelfReference","_state$devInfo9$dam","_state$devInfo10$dam","_state$formData$REL_D5","_state$formData$REL_D6","_parseDecimalNumber6","_state$formData$ECO_U","_parseDecimalNumber7","_state$formData$ECO_L","_parseDecimalNumber8","_state$formData$ECO_S2","_parseDecimalNumber4","_state$formData$MINIM","_parseDecimalNumber5","_state$formData$MAXIM","checkDamFields","saveDamInfo","formatDamData","_state$formData$ENABL2","_state$formData$ECO_C2","_state$formData$REL_D2","_state$formData$REL_D3","_state$formData$REL_D4","_state$formData$ECO_O","_parseDecimalNumber2","_state$formData$ECO_O2","_parseDecimalNumber3","_state$devInfo8$dam","_state$formData$EXT_T","_state$formData$DAM_I","_state$formData$DAM_P","_state$formData$DAM_P2","_state$formData$DAM_P3","_state$formData$T0_PO2","_state$formData$DAM_P4","_state$formData$T1_PO2","ENABLE_ECO_LOCAL","HAD_AUTOMATION_SETTING_CHANGED","_state$formData$ECO_S3","_parseDecimalNumber9","_state$formData$ECO_I","_parseDecimalNumber10","_state$formData$ECO_L2","_parseDecimalNumber11","_state$formData$ECO_L3","_parseDecimalNumber12","_state$formData$ECO_U2","_parseDecimalNumber13","_state$formData$ECO_L4","redirectToProfile","handleDutsCommandsWithoutMultScheds","dutProgramming","deleteDayProg","scheduleAux","PERMISSION","handleDutsCommandsWithoutMultSchedsPart1","handleDutsCommandsWithoutMultSchedsPart2","handleEqualsExcepts","scheduleReference","SCHEDULE_END_BEHAVIOR","ACTION_MODE","ACTION_TIME","ACTION_POST_BEHAVIOR","FORCED_BEHAVIOR","setDutExcepts","setDutExceptsFiltered","handleDutAut","dutData","dutSchedules","dutExceptions","_state$devInfo17","_state$devInfo17$dut_","_state$formData$DUTAU7","_state$formData$MCHN_","_state$formData$DUTAU","_state$formData$DUTAU2","beginDutAutValidations","UPDATE_AUTOM_INFO","_state$devInfo15$dut","_state$formData$SENSO","_state$devInfo16$dut","_state$formData$SENSO2","_dutData$PLACEMENT","setDutAutEquipInfo","isDevicesConnecteds","scheduleCompare","bothSchedulesActives","checkWeekDayCommun","conflict","SCHEDULE_TITLE","checkCardsNoConflicts","_state$formData$DUTAU8","checkSchedulesConfigurationDifferent","checkExceptionsHasSameProperties","compareWithAllOthersSchedules","checkScheduleAndExceptions","checkNeedMultipleSchedule","_state$formData$DUTAU3","_state$formData$DUTAU4","_state$irCommands$fin","_state$irCommands$fin2","hasIrCode","IR_ID_COOL","deletedId","deleted","handleDutSched","_state$irCommands$fin3","_state$irCommands$fin4","handleDutSchedWithoutMultProg","resendPER","PORTCFG","USE_IR","setDutAutTimeAndConf","handleDutsExcepts","_state$irCommands$fin5","_state$irCommands$fin6","DUT_EXCEPTION_ID","EXCEPTION_TITLE","EXCEPTION_STATUS_ID","_state$formData$DUTAU5","_state$formData$DUTAU6","handleDutsCommands","sendDutAutData","saveDutInfo","dutBeginValidations","environmentToCheck","_state$formData$ENVIR3","formatDutData","_state$formData$PLACE3","_state$formData$ENVIR4","_devInfo","handleDutAsset","_state$devInfo18","_state$devInfo18$dut","_state$formData$SENSO3","_state$devInfo19","_state$devInfo19$dut","_state$formData$SENSO4","_dutData$PLACEMENT2","sendDutData","saveDriInfo","driData","cfgsList","_itemJ$address","itemJ","handleDriConfig","urlBase","getDAMFUnom","_state$devInfo20","_state$devInfo21","_state$devInfo21$dam","begMonDate","begAutDate","utc1","UTC","utc2","dateDiffInDays","usageList","usageListFiltered","hoursOn","fu","getDutAutConfig","_b","self","fetchEndpoints","_response$damInstalla","fetchEnvironments","fetchGroups","valueOrEmptyString","setDacSensors","_devInfo$dac9","_devInfo$dac10","getMeasurementType","setCurrentDacSensors","hasPosition","isCurrent","setDacFormData","_devInfo$dac11","_devInfo$dac12","_devInfo$dac13","_devInfo$dac14","_devInfo$dac15","_devInfo$dac16","_devInfo$dac17","_devInfo$dac18","_devInfo$dac19","setDacL1","_devInfo$dac4","_devInfo$dac5","_devInfo$dac6","_devInfo$dac7","_devInfo$dac8","setDacApplication","getOriginalInfoAssets","setDutFormData","_devInfo$dut$TEMPERAT","_devInfo$dut2","_devInfo$dut_aut4","_devInfo$dut_aut5","_devInfo$dut_aut6","_devInfo$dut_aut7","portCfg","autCfg","setDutAutConfig","setFormDataValues","_state$comboOpts$clie","_state$comboOpts$unit","_devInfo$dut_aut3","_devInfo$dut_aut","COMPATIBLE_MODES","_devInfo$dut_aut2","setDutAutFormData","setFormDataDates","_state$formData$ENABL3","_devInfo$dam4","_devInfo$dam5","_devInfo$dam6","_devInfo$dam7","_devInfo$dam8","_devInfo$dam9","_devInfo$dam10","_devInfo$dam11","_devInfo$dam12","_devInfo$dam13","_devInfo$dam14","_devInfo$dam15","_devInfo$dam16","_devInfo$dam$groups","_devInfo$dam17","devGroups","setDamFormData","_devInfo$dut_aut$MCHN","_devInfo$dut_aut8","_state$comboOpts$bran","_devInfo$dut_aut$TSET","_devInfo$dut_aut9","_devInfo$dut_aut10","_devInfo$dut_aut11","_devInfo$dut_aut$LTCR","_devInfo$dut_aut12","_devInfo$dut_aut$LTIN","_devInfo$dut_aut13","_devInfo$dut_aut$grou","_devInfo$dut_aut14","_devInfo$dut_aut$TEMP","_devInfo$dut_aut15","setDutAutMachine","getDutsSchedAndExcepts","_state$devInfo22","_state$devInfo22$dut","getDevType","cardsCfg","heatExchangers","onSelectApplication","formatGroups","dacsAutoList","_state$devInfo23","_state$devInfo24","_state$devInfo25","_x$VARS","withDacAut","_state$devInfo26","_state$devInfo27","_devInfo2","_state$formData$ENVIR5","_state$formData$ENVIR6","setFormData","environment","ENVIRONMENT_LABEL","_state$devInfo28","_state$devInfo28$dut","fancoilLabel","_state$formData$DAC_A4","_state$formData$DAC_A5","_state$devInfo29","_state$devInfo29$dac","_state$devInfo30","_state$devInfo30$dac","_state$formData2","_state$formData2$DAC_","_state$formData2$DAC_2","_state$devInfo32","_state$devInfo32$dac","_state$devInfo31","_state$devInfo31$dac","_state$devInfo33","_state$devInfo33$dac","_state$formData$DAC_A6","_state$formData$DAC_A7","_state$formData3","_state$formData3$DAC_","_state$formData3$DAC_2","_state$formData4","_state$formData4$DAC_","_state$formData4$DAC_2","dacApplic","dacApplicationTag","_state$formData5","_state$formData5$DAC_","changeDacPropertiesByMachine","_state$machinesAssets","_state$devInfo34","_state$devInfo34$dac","_state$devInfo35","_state$devInfo35$dac","_state$devInfo36","_state$devInfo36$dac","filterByUnitId","_state$devInfo37","_state$devInfo38","_state$devInfo38$dac","_state$devInfo39","_state$devInfo40","_devInfo$dam18","fetchGroupByUnit","afterCreateUnit","_state$formData$CLIEN13","_state$formData6","_state$formData6$CLIE","_state$comboOpts$unit2","afterCreateGroup","_state$formData$CLIEN14","_state$formData7","_state$formData7$CLIE","_state$comboOpts$grou","_state$formData$UNIT_13","groupItem","changeSelectedL1Sim","_state$devInfo41","_state$devInfo42","_state$devInfo43","_state$devInfo44","_state$devInfo45","_state$devInfo46","_state$devInfo47","_state$devInfo48","_state$devInfo49","_state$devInfo49$dut","isOnlyDutRef","dutAutEnabled","_obj$REL_DUT_ID_item$","editSchedule","saveSchedule","scheduleId","_schedule","saveException","bothSchedulesAllow","exceptionAsScheduleConfig","schedule1","schedule2","hasSetPoint","hasLtc","hasLti","hasEco2Options","hasForcedOptions","getModifications","hasActionMode","hasActionPostBehavior","hasActionTime","getModificationsSobDemanda","resultInitial","configResultSobDemanda","_state$devInfo50","_state$devInfo51","increaseDecreaseIntervalTime","increaseDecreaseSetpoint","increaseDecreaseUpperHysterese","increaseDecreaseLowerHysterese","dutDuoFancoil","_devInfo3","_devInfo3$dut","renderDutDuoEquipFields","_state$formData$PLACE4","t1_index","renderDutEquipFields","_state$devInfo52","_state$devInfo52$dut","_state$formData$TEMPE","_parseDecimalNumber14","onWheel","renderAssetsFields","_state$formData$GROUP5","_state$formData$GROUP6","_state$formData$GROUP7","_state$formData$ASSET5","changePropertiesByMachine","_state$formData$GROUP8","_state$machinesAssets2","selectedAsset","_state$formData$GROUP4","_state$formData$ASSET4","_selectedAsset$MCHN_M","_selectedAsset$AST_DE","changePropertiesByAsset","renderDacEquipFields","_state$formData$DAC_A8","_state$formData$DAC_A9","_state$formData$DAC_A10","_state$formData$DAC_A11","_state$formData$DAC_A12","_state$formData$DAC_A13","_state$formData$DAC_A14","_state$formData$DAC_A15","_state$formData$DAC_A16","_state$formData$DAC_A17","_state$formData$DAC_A18","_state$formData$DAC_A19","_state$formData$DAC_A20","_state$formData$DAC_A21","_state$formData$DAC_A22","_state$formData$DAC_A23","_state$formData$DAC_A24","_state$formData$DAC_A25","_state$formData$DAC_A26","_state$formData$DAC_A27","_state$devInfo53","_state$devInfo54","_state$persistedAsset2","_state$comboOpts$evap","_state$formData$EVAPO","_state$devInfo55","_state$devInfo56","_state$persistedAsset3","_state$persistedAsset4","removeMarginSelected","removeExtraWidth","renderHeatExchangerFields","renderDamDuoEquipFields","_state$formData$DAM_P5","_state$formData$T0_PO3","_state$formData$T1_PO3","_state$formData$DAC_A28","_state$formData$DAC_T2","_state$formData8","_state$formData8$DAC_","_state$formData9","_state$formData9$DAC_","_state$formData$DAC_H2","_state$formData$DAC_H3","_state$formData$DAC_H4","_state$formData$DAC_H5","_state$formData$DAC_H6","_state$formData$DAC_H7","renderDamEcoFields","_state$devInfo59","_state$devInfo59$dam","_state$devInfo60","_state$devInfo60$dam","InputCalculator","onIncreaseDecrease","lowerLimit","inicio","final","verifyVariableExistence","variable","exeption","_state$driInfo$dri","renderDriConfig","_state$formData$CLIEN15","_state$formData$CLIEN16","_state$formData$UNIT_14","_state$formData$UNIT_15","_state$devInfo57","_state$devInfo58","_state$formData$DAM_I2","renderEquipmentInfo","verifyDamAndRelDutId","unity","BackupEcoV2DamDac","_state$devInfo61","_state$devInfo61$dam","_state$devInfo62","_state$devInfo62$dam","value3","renderEco1Fields","verifyDamAndDamDisabled","radius","onHandleEdit","onHandleDelete","renderDutAutSchedule","saveDevInfo","ScheduleEditCard","cardIndex","onHandleSave","onHandleCancel","ExceptionEditCard","renderModal","_state$formData$ROOM_","_state$formData$PLACE","_state$formData$PLACE2","_state$formData$ENVIR","_state$formData$ENVIR2","deleteAutAndDisassociate","IrTable","IrTableCell","IrTableCell2","getDutDefaultTemps","temps","DutIrManagement","_state$modalCmdType$C3","_state$modalCmdType$C4","modify","haveError","savingCmdType","savingCmdsTable","savingFakeCmds","deletingSelectedCmds","selectedDutCommands","defaultIrList","irList","loadedIrList","dutDefaultTemps","dutCommandActions","probableIrCommands","loadedIrModel","checkedAllCodes","lastIr","isOld","timer","modalCmdType","CMD_ACTION","learnActive","rends","openEdit","savingModel","permissionGeral","probableCommands","_x$ircodes","ircodes","levenshtein","dropdown_text","fetchIRCommandSets","msgType","msgData","sendCommandsTableToDut","clearEditItemValues","cmdDesc","cmdDescTemp","getCommandTemp","RouterPrompt","cancelText","okText","onOK","MdArrowDropDown","MdArrowRight","_state$MCHN_BRAND_ite","_state$devInfo6$dut_a","_state$devInfo6$dut_a2","ir_command","clonedIrCodes","commands","idx","ir","IrReadFaintIcon","IrReadIcon","wantEditItem","TransmitIcon","deleteIrCode","deleteAllSelectedCommands","_state$modalCmdType$C","_state$modalCmdType$C2","tempCodes","Environments","arrayFormat","formattedPreFilter","invisibleDuts","measuring_point","_props$VARS","verifyExist","getParamsToCallEnvironmentsListPage","_state$ownershipFilte","searchEnvironment","USEPERIOD_INDEX_INI","USEPERIOD_INDEX_END","nowShifted","todayWeek","todaySchedule","nowIndex","getUTCHours","getUTCMinutes","checkDutsLimits","formatDut","invisibleDutsCount","clientlist","awaitData","measuring","useFilter","dacs_all","duts_all","dams_all","dacs_filt","duts_filt","dams_filt","countriesPositions","statesPositions","citiesPositions","optionsCountry","optionsState","optionsCity","optionsUnits","country","handleFilterChanged","handleFilterState","handleFilterCity","handleFilterUnit","permissionsIncludeInstallationUnit","responseDacs","responseDuts","responseCountries","responseStates","responseCities","includeHealthDesc","includeCapacityKW","handleGetDacs","useDebounce","delay","debouncedValue","setDebouncedValue","handler","MapCard","PopupContainer","ContainerSearch","Geolocation","center","setCenter","setZoom","isDisabledButton","machines","dutsAndMachines","LeafletIcon","Default","prototype","_getIconUrl","fac","mergeOptions","iconUrl","MarkerIcon","iconRetinaUrl","iconSize","iconAnchor","shadowSize","setToInitialStateMap","handleSelectGeolocation","handleSelectCountry","handleSelectState","handleSelectCity","handleSelectUnit","DesktopGeoFilter","handleMapGeolocation","MobileGeoFilter","minZoom","maxZoom","onzoomend","layers","_layers","_zoom","i2","layerId","layer","_icon","setIcon","TileLayer","attribution","Marker","riseOnHover","Popup","FilterGeo","SearchsGeoloc","bg","convertCoolAutomationSchedTime","formatSchedules","devsSched","CoolAutomationRealTime","_props$coolAutomation","_props$coolAutomation2","_state$selectedScheds","_state$selectedScheds2","_state$selectedScheds3","_state$selectedScheds4","setWidth","loadingTelemetry","lastRefresh","allUnits","indoorUnits","outdoorUnits","coolAutomation","selectedScheds","selectedUnitId","unitLastTelemetry","siteTemprt","modalSchedulesList","atualizarUnits","coolAutDeviceId","img_mode_heat","img_mode_auto","img_mode_dry","img_mode_cool_off","setFanMode","fanMode","setSwingMode","swingMode","sendSSetpoint","selectedSchedules","_props$coolAutomation3","_sched$unitName","isDisabled","powerOnTime","powerOffTime","refreshUnitsTimer","setInterval","clearInterval","coolAutUnitId","parseCoolAutVarName","mobileWitdh","UnitsTable","paddingInline","UnitRow","operationStatuse","img_fan_1_low","img_fan_2","img_fan_3","img_fan_auto","img_fan_4_high","img_fan_0_off","getFanModeIcon","img_swing_1_low","img_swing_4","img_swing_3","img_swing_2","img_swing_5_high","img_swing_auto","img_swing_off","getSwingModeIcon","varItem","InfoCellWrapper","InfoCellTitle","InfoCellValueWrapper","InfoCellValue","InfoCellUnit","CoolAutomationSchedForm","onNewConfirm","newScnhedule","onEditConfirm","newSchedule","ast","namePart","unitPart","formatHours","textHours","textMinutes","CoolAutomationHist","loadingChart","loadingUnitsList","ticksLabels","deviceUnits","checkedBefore","linesCont","linesDisc","linesLeft","minLval","maxLval","maxLtick","minLtick","fillDynamicValues","IntegrLayout","integrType","buildTabLink","IntegrInlineTabs","IntegrBreadCrumbs","automatedMachine","CoolAutomationEdit","schedInfo","CoolAutomationSchedTable","onSwitchClick","hasActions","daysTransl","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","TableScheds","rowVar","StatusDevice","DRIPRofile","_varsCfg$worksheetNam","getDriModel","IntegrDevInfo","vertical","equipType","IntegrWaterInfo","bateryState","setBateryState","rfModule","setRfModule","setLastReadingDate","lastRSSI","setLastRSSI","laagerUsage","batery_state","module_rf","verifyLastReadingDateLaager","_response$data","_response$data2","_response$data$RSSI","_response$data3","wrap","order","handleDate","_devInfo$installation","_devInfo$installation2","thousandPointFormat","flexShrink","IntegrPerfil","_state$devInfoResp","_state$devInfoResp$in","_state$devInfoResp2","IntegrPerfilContents","editLink","coolautomation","varscards","varId","subcard","valUnit","_devInfoResp$info","CardElement","comboOptions","WaterProfileEdit","_state$unitId","prevQuantityOfReservoirs","prevHydrometerModel","prevTotalCapacity","prevInstallationDate","prevInstallationLocation","handleUpdateIntegrPerfil","setInstallationLocation","setHydrometerModel","setInstallationDate","setTotalCapacity","setQuantityOfReservoirs","calendarFocused","setCalendarFocused","otherLocation","setOtherLocation","isOtherSelected","setIsOtherSelected","onSelectHydrometer","onSelectInstallationLocation","_err$response","waterVars","CardsConfig","newCardName","newSubcardName","newRelevance","addNewCard","removeCard","addNewSubcard","removeSubcard","addNewRelevance","removeRelevance","currVal","IntegrEdit","_rowVar$valUnit","save","IntegrHistory","returnHistory","UnitLayout","hasChiller","hasChillerAndOtherMachines","hasNess","hasLaager","hasVrf","bcrumbItems","_unitInfo$arrayChille","arrayChiller","Breadcrumb3","UnitNess","_state$unitInfo","fetchUnitInfo","UnitNessContent","iframeLoading","onLoad","WaterRealTimeContents","informationSection","varsCards","getVarValue","varsValues","cardTitle","subcardTitle","subCards","ProgressBar","counterState","setCounter","getAlarmInfo","blob","getGeralStatusInfo","getEmergencyStopInfo","StatusCard","geralStatus","emergencyStop","tablet","handleFontSize","handleSpaceRight","MonitoringCard","lteNetwork","lteRSRP","rssiQuality","getRssiQuality","signals","getCompressorInfo","tmpLimits","evaporatorSP","evaporatorInputTemp","evaporatorOutputTemp","condenserInputTemp","condenserOutputTemp","compressorOleoA1","compressorOleoA2","compressorOleoB1","circuitSucA","circuitSucB","circuitSucC","circuitDescB","circuitDescA","circuitDescC","compressorOleoA","compressorOleoB","compressorOleoC","tmpLimitsChillerXa","getTemperatureColor","tmpLimitAux","decideCSS","valueNot","valueTrue","ChillerCard","compressorB1","compressorA1","compressorA2","capacityCA","capacityCB","showCircuitC","removeCondenser","formatTmp","tmp","maxTmp","numberBeforeDotMaxTmp","tmpSplitted","numberBeforeDotTmp","Compressors30hxValuesCard","PressureValuesCard","ImageValueCard","TemperatureValuesCard","setArrows","_formatTmp","_formatTmp2","_formatTmp3","_formatTmp4","_formatTmp5","includeArrows","getMarginLeft","ItemValueDescription","variavel","isEnd","nameVariavel","Point","marginX","ChillerCarrierHX","ChillerCarrierXA","selectedCircuit","setSelectedCircuit","paramsLimitsByModel","paramLimitsXA","paramLimits","generalParams","setGeneralParams","paramsCircuitA","setParamsCircuitA","paramsCircuitB","setParamsCircuitB","paramsCircuitC","setParamsCircuitC","filteredParams","setFilteredParams","setSearchText","AddTooltipIfOverflow","currentMeasurement","ReturnLabelLimits","circuit","personalizedValues","returnUnitMeasurementFormated","buildRowsFromParams","circuitType","rows","_param$unitMeasuremen","_paramsLimitsByModel$","_paramsLimitsByModel$2","handleClickCircuitType","verifyCircuitType","hasCircuitC","handleSearch","handleOrderRows","sortedParams","columnA","columnB","columnAValue","columnBValue","handleSortLimits","isStringA","isStringB","localeCompare","handleOrderAux","getGridColumns","isDesktopView","handleChangeSearchText","CircuitTypeButton","GetTemperatureColor","valueCell","ReturnColumnBackground","selectedCategory","category","ReturnFontWeight","ChillerAlarms","alarmsGenerated","setAlarmsGenerated","orderedAlarms","setOrderedAlarms","lastAlarms","setLastAlarms","alarmsList","setAlarmsList","setShowModalOrderColumns","initVerifyAlarms","setInitVerifyAlarms","formatedValue","formatedText","lastMinute","moreThanHour","ReturnLabelDate","DATE","dateInMinutes","calculateDiffDatesInMinutes","milliSecondsDiff","handleSortAlarmCode","alarmParams","newAlarms","newTelemetryAlarms","removedAlarms","lastAlarmValue","actualAlarmsList","resolved_alarms","actualAlarms","alarm_code","handleRemoveAlarms","alarmsListAux","dateNow","alarmInfo","datetime","handleAlarmCode","verifyAlarms","updatedAlarms","updateAlarmTimes","allAlarms","_alarms$","_alarms$2","_alarms$3","_alarms$4","_alarms$5","_alarms$6","_alarms$7","_alarms$8","_alarms$9","_alarms$10","lastAlarmsAux","handleActualAlarms","reduceWidth","DriChillerCarrierRealTime","_state$model","_state$model2","chillerCarrier30HX","chillerCarrier30XA","chillerCarrier30XAHvar","generalParams30HX","generalParams30XA","generalParams30XAHvar","_props$varsList","inputRow","Alias","Unidade","updateInfoParams","dateDifference","checkLastTelemetry","roundOnePlace","_model$match","_state$generalParams","_state$generalParams2","_state$generalParams3","ALM","updateChillerCarrierTelemetry30XA","updateChillerCarrierTelemetry30XAHvar","verifyIsChillerHXHvar","IntegrRealTime","IntegrRealTimeContents","ExternalLink","_props$color2","pageLocale","prev_page","next_page","prev_5","next_5","prev_3","next_3","IntegrsList","allRows","suppliersList","verticalList","_state$selectSupplier","dispositivo","fornecedor","handleGetIntegrationsList","includeInstallationUnit","_state$selectedCity","_state$selectedState","_state$selectedUnit","_state$selectedUnit2","_state$selectedClient","_state$selectedClient2","_state$selectedConnec","_err","handleGetIntegrationsListEnergy","_state$selectedCity3","_state$selectedState3","_state$selectedUnit5","_state$selectedUnit6","_state$selectedClient5","_state$selectedClient6","_state$selectedConnec3","handleSuppliersList","rowSupplier","handleVerticalList","rowVertical","handleInfoLinkUnit","infoLink","_state$selectedCity2","_state$selectedState2","_state$selectedUnit3","_state$selectedUnit4","_state$selectedClient3","_state$selectedClient4","_state$selectedConnec2","handleGetIntegrationsListWater","handleGetPromises","integrDefaultPage","_dev$STATE_ID","_dev$CITY_ID","_dev$UNIT_ID","_dev$CLIENT_ID","_dev$integrId","defaultCurrent","Units","lastPageRequestTs","unitlistfilter","startOperation","endOperation","includeInstallationUnits","setInformationsUnits","formatDate","dateString","_props$chillers","chillers","RowHealth","redHealth","TempColor","NewUnitsHealthIcon","yellowHealth","orangeHealth","greenHealth","greyHealth","blackHealth","TOTAL_CHARGES","formatTotal","TOTAL_MEASURED","RowTemp","highQtd","goodQtd","lowQtd","offQtd","isCharge","decimalPlaces","handleCSVHeader","handleCSVHeaderComplete","handleCSVHeaderCustom","production","PRODUCTION_TIMESTAMP","ExpandAll","ExpandBtn","_state$searchState","handleHealthUnit","insufDutId","insufDut","convertDateFormat","getUtilitiesCSV","nobreaks","NOBREAK_NAME","getWaterDevicesCSV","getEnergyDevicesCSV","energyInfo","dme","getAutomationDevicesCSV","getMonitoringDevicesCSV","setFiltersAndList","listFilter","updatedUnit","waterDevices","energyDevices","automationDevices","monitoringDevices","handleCSVData","compileEnergyData","firstDate","sampleWithParams","sample","dataStruct","firstDay","lastDay","dayInMonth","dayOfWeek","dayNumber","totalMeasured","hourValues","generateDataStruct","compiledEnergyData","measures","_dataStruct$key$day","compiledData","properties","daysData","dayIndex","dayData","percentageTotalMeasured","hoursSorted","hourIndex","_nextHourDataVec","hourDataVec","nextHourDataVec","_daysData","hourDataValue","nextHourValue","totalMeasuredVerified","maxDayTotalMeasured","yPointsHoursMeasured","formatData","Section","ChevronDown","ChevronUp","TopDate","GreyDark","CardNoService","TextLabel","registerLocale","ptBR","DataExportModal","exportType","energyMeterDataType","closeExportModal","periodParams","HeatmapWrapper","HeatmapChart","Heatmap","telemetryData","handlePrepareXAxis","handlePrepareYAxis","heatmapData","demands","handlePrepareData","handleRenderHeatmap","startDateTimestamp","endDateTimestamp","arrOfDates","controlDate","prData","isSameHour","isSameDay","avg_demand","average_demand","xIndex","xAxisFormatter","weekDay","visualMapFormatter","tooltipFormatter","valueDemand","valueHour","stringDate","enUS","stringHour","stringMax","stringAvg","stringMin","_Number","_Number2","_Number3","maxValueDemandConverted","maxValueDemandUnitMeasurement","max_demand","medValueDemandConverted","medValueDemandUnitMeasurement","minValueDemandConverted","minValueDemandUnitMeasurement","min_demand","_telemetryData$max_de","_telemetryData$max_de2","heatmapDom","heatmapChart","heatmapConfig","splitArea","showMinLabel","emphasis","borderWidth","visualMap","calculable","itemWidth","gradientColor","TelemetryChartsLegend","LinechartWrapper","TitleComponent","ToolboxComponent","LegendComponent","Linechart","_telemetryData$demand","demandData","handleRenderStackedLine","intervalMinutes","startHour","endHour","times","formattedTime","hour12","setMinutes","valueSplitedHour","valueSplitedMinute","valueEndHourString","linechartDom","lineChart","linechartOptions","legendHoverLink","areaStyle","symbol","TelemetryDemandCard","handleChangeRangeType","backBarchart","cardLabel","typeChart","setTypeChart","chartFactory","heatmap","linechart","TelemetryCard","CardHeader","TabOptions","TabOption","metersColors","EnergyEfficiency","_state$unitInfo5","_state$unitInfo6","_state$energyMetersLi","_state$energyMetersLi2","_state$unitInfo7","_state$energyMetersLi3","_state$unitInfo8","_state$energyMetersLi5","_state$demandsData","_state$demandsData$de","_state$unitInfo10","_state$unitInfo11","_state$unitInfo12","_state$groupedMachine","monthNames","energyCsvLinkEl","unitHasDacs","averageTariff","consumptionSum","opportunity","greenAntSum","greenAntInvoiceSum","sumSavingsKWh","higherConsumptionCounter","mediumConsumptionCounter","lowerConsumptionCounter","zeroConsumptionCounter","savingTarifa","dataTotalConsPercent","automationSavings","showMachines","showInvoice","showEnergyMeter","invoices","maxTotalCharges","maxTotalMeasured","yPointsTotalCharges","yPointsTotalMeasured","demandsByMeter","consumption_by_device_machine","maxTotalDemandsMeasured","maxTotalDemandMeasured","maxTotalDemandMeasuredAllMeters","yPointsDemandTotalMeasured","validInvoiceMonth","currentMonthNumber","currentYearNumber","energyCsvData","exportInvoices","openExportModal","energyMetersFiltered","selectedEnergyMeters","metersTotalDemand","yPointsDemandTotalMeasuredAllMeters","totalConsupmtionPeriod","demandsData","loadingTelemetryInfos","consumptionFlags","shouldShowConsumptionByMeter","setShouldShowConsumptionByMeter","setSelectedDay","selectedDayMeter","setSelectedDayMeter","selectedDayMeterStr","setSelectedDayMeterStr","timeRangeDayOrWeek","padronizedRawParams","padronizedParamsMultipleMeters","v_ab","v_bc","v_ca","pot_ap_a","pot_ap_b","pot_ap_c","pot_re_a","pot_re_b","pot_re_c","v_tri_ln","v_tri_ll","pot_re_tri","en_re_tri","freq","demanda_at","demanda_med_at","getCombinedLists","_device$DAC_ID","_device$DAC_NAME","auxCombinedLists","_sumCons","utilizationTime","sumConsComputedDataService","consByComputedDataService","total_refrigeration_consumption","total_utilization_time","verifyDataByComputedDataService","ASSET_NAME","getDateStartAndDateEnd","totalKwh","totalCost","calc","getDates","apiResponse","periodEnd","baseline_id","messageError","getInvoices","handleCommonFunctionsGetEnergy","handleGetEnergy","handleGetEnergyByComputedDataService","handleGetRefrigerationConsumptionByComputedDataService","previousDay","verifyDates","calculateTotalDemand","calculeYTicks","calculePercentageBar","greenAntResponse","_item$invoice","consumedEnergy","invoice","getUnitConsumptionGreenAnt","combinedList","getDevsWithMachinesList","verifyConsumptionActualDay","_groupedMachines$dev$","_groupedMachines$dev$2","_groupedMachines$dev$3","_groupedMachines$dev$4","machineHasDacs","percent","rangeCons","consumptionCounter","totalConstPercent","verifyTotalConsPercent","hoursBlocked","countersByDay","totalEst","verifyHoursBlocked","_dat$savings_kWh","verifySumSavings","_energyMeter$ENERGY_D","energyData","calculateMaxTotalDemandMeasured","verifyEnergyData","getHoursConsumption","energyInfoByMeter","GET_HOURS_CONSUMPTION","_energy$ENERGY_DEVICE","_meterInfo$consumptio","meterInfo","consumptionByDevice","meterConsumptionFormatted","_state$demandsByMeter","filterByNull","handleGetTelemetryInfos","refrigerationInfo","total_consumption","_state$demandsByMeter2","randomMeter","totalDemand","_Object$keys","_state$demandsByMeter4","totalDayInfo","_state$demandsByMeter3","hoursInfo","_state$demandsByMeter5","hourInfo","currHourTotalMeasured","_state$demandsByMeter6","_state$demandsByMeter7","auxPointsTotalCharges","auxPointsTotalMeasured","auxPointsDemandTotalMeasured","demand","auxPointsHoursMeasured","auxPointsDemandTotalMeasuredAllMeters","percentageTotalCharges","totalCharges","percentageBaselinePrice","baselinePrice","percentageBaselineKwh","baselineKwh","getEnergyCsvData","getEnergyCsvHeaders","getEnergyCsvHourData","_state$demandsByMeter8","_state$unitInfo3","_state$demandsByMeter9","dayHour","_state$demandsByMeter10","_state$demandsByMeter11","currMeterDemand","electricCircuitsSelected","energyDeviceId","energyDevice","ELECTRIC_CIRCUIT_ID","ELECTRIC_CIRCUIT_IDS","onSelectMeter","IconChevrot","_window$open","_state$energyMetersLi4","_state$unitInfo9","EnergyMeterDemand","totalConsumptionPeriod","handleGetTelemetryMonth","handleGetTelemetryDay","getTelemetryCardLabel","EnergyEfficiencyInvoice","shouldExport","EnergyEfficiencyGeneral","EnergyEfficiencyMachines","EnergyEfficiencyMachine","newPeriodParams","energyApiResponses","_meter$ENERGY_DEVICE_","workBook","XLSX","book_new","_state$unitInfo2","Estabelecimento","workSheet","json_to_sheet","book_append_sheet","getEnergyCsvAllData","cond","handleGetEnergyCsv","_state$unitInfo4","handle","Schedules","closeScheduleModal","onConfirmRemoveProg","onDelException","contents","getActivePage","SelectedInput","DropdownMenu","strong","SetPointRow","SetPoint","ArrowUp","ArrowDown","TempSetPoint","Arrows","StatusContainer","IconWiFiRealTime","DriAutMachine","_devAutData$dri","_devAutData$dri$varsC","_devAutData$dri$varsC2","_devAutData$dri$varsC3","_devAutData$dri2","devAutData","statusOptions","_devAutData$dri3","_devAutData$dri3$vars","_devAutData$dri3$vars2","_devAutData$dri3$vars3","_devAutData$dri4","_response$data$Temp","sendOffCommand","styles","RouterLink","LabelDevice","DutAutMachine","_state$data2","_state$data3","_state$data4","dutCommands","openScheduleDialogForDutAut","dutCommand","getDevInfoAndDutCommands","isSetpoint","_state$dutIrCommands5","Subtitle","RealTimeContainer","ListItemContainer","ListItemDataContainer","DataContainer","diagnosisColor","unavailable","malfunctioning","diagnosisText","diagnosisIcon","HeatExchangerInfo","_state$heatInfo","_state$heatInfo2","heatInfo","diagnosis","rebuild","MachineAutomation","openScheduleDialogFor","openConfirmStatusChange","automationOption","statusOption","automationOptions","HealthContainer","DuoTempContainer","UsageContainer","MachineInformation","dutsDuo","profilePermissionAllClients","dacName","MEAN_USE","assetInfo","_assetInfo$DAT_ID2","verifyLinkAssetWithDut","_assetInfo$DAT_ID","verifyLinkAsset","WaterTemperatureTooltipContainer","WaterTemperatureTooltipLabel","h4","SetpointTitle","SetpointMeasure","WaterTemperatureTooltipInfo","_temperatures$inlet","_temperatures$outlet","disable","inlet","outlet","WaterDacInfo","setTemperature","MachineDacInformation","WaterDutDuoInfo","MachineDutDuoInformation","_dutDuo$status","dutDuoName","MachineDatInformation","ModeContainer","IconWatchButton","SwitchContainer","DriContainer","SetPointContainer","SetPointLabel","ControlButtonLabel","DriSelectContainer","DamControlOperation","currentOption","sendOperation","selectContainerReference","openSelectList","setOpenSelectList","currentOperation","getOperationModeByOption","getOptionByOperationMode","DriControlOperation","currentOperationMode","currentSetPoint","setCurrentOperationMode","oldOperationMode","sendDriOperationMode","MachineDriAutomation","_state$activeMachineS","_state$setPoint","isSendingOperationMode","isOffMode","disabledSetpointButton","setShowScheduleModal","getOperationModeLabel","_response$data$Mode","_response$data$Setpoi","actualMode","_devAutData$dri2$vars","_devAutData$dri2$vars2","_devAutData$dri2$vars3","finally","machineStatus","getOperationMode","MachineDamAutomation","setMode","setRssi","previousState","MachineAutomationFancoil","_dats$filter","devsAutData","damOptions","dats","dacsIds","dutsDuoIds","filteredDats","datItem","MosaicListItemTitle","statusOptionsDamApp","urlResult","linkToMachine","MosaicListItem","_group$duts","_heatExchangerInfo","dutsCommands","hasHeatExchanger","dipositiv","Fragment","_heatExchangerInfo2","MachineTable","machineItems","windowWidth","setWindowWidth","getWindowWidth","setRows","enableSorting","isExpandable","machineItem","getTableMachine","lastCommTS","getLastAtt","dense","MachineHeaderContainer","TitleRow","SubTitle","DevId","Phrase","ConfirmContainer","ConfirmStatus","DenyStatus","OptionExportReport","HoverExportReport","ContainerDate","DividerDate","VisualizationMode","AreaCheck","AreaRadio","ContainerCheckboxWithRadio","describeUsage","trunc","UnitDetailDACsDAMs","orderedAssociations","isMachineMosaicView","orderedAssociationGroups","orderedGroups","associationsAndGroups","machineTableItems","usageHistoryDetailsModal","statusOnly","_devsList$find","_row$dam","_dam$Mode","_dam$State","setDamOptions","isManualCommandsEnabled","setIsManualCommandsEnabled","updateDacStatus","hasDacsOrDatsOrDri","groupList","updateDutStatus","driMachine","_payload$data","calculateSize","devAuts","DEV_IDs","devIds","getDevAutsDataAndDutsCommands","_group$dutsDuo","_group$dutsDuo2","LinkRouter","MosaicList","InvisibleDutsMosaic","SuperiorBar","LateralBar","ListItemDutQA","ItemAreaColorHealth","InformationContainer","InformationLabel","InformationValue","InformationUnit","dutQA","_dut$tpstats","_dut$tpstats2","infoItemQA","getColorHumi","getColorCo2","gridColumnStart","gridColumnEnd","gridRowStart","getCardColor","tpstats","fontSizeWord","healthColor","fontSizeValue","cardDut","isDutQa","med","TableItemTemperature","InfoInvisibleDuts","dutColumns","DutTable","notVisible","filterDuts","listViewInvisibleDuts","setListViewInvisibleDuts","countInvisible","allDuts","UnitMapListMapsHeader","UnitMapView","_selectedUnitMap$POIN3","unitMaps","isUpdatedDuts","selectedUnitMap","setSelectedUnitMap","showHiddenEnvironment","setShowHiddenEnvironment","countHiddenEnvironment","setCountHiddenEnvironment","mapPinsFilter","setMapPinsFilter","pinsData","setPins","resetPins","useUnitMap","handleSetPoints","points","pins","pin","defaultPin","POINT_ID","POINT_X","POINT_Y","HUMIDITY","TEMPERATURE","POINTS","visiblePoints","point","counterHiddenEnvironment","_newPoints","arrayIdFilterDuts","newPoints","_selectedUnitMap$POIN","_selectedUnitMap$POIN2","NAME_GP","GROUNDPLAN_ID","unitMapId","newUnitMap","Divider","IMAGE","ImageZoom","hasDragPin","onPinDrag","tempAlert","co2Max","humi","humimax","humimin","UnitDetailDUTs","stateUnitDetail","updateDuts","this","createState","mosaicViewInvisibleDuts","setMosaicViewInvisibleDuts","notVisibleDuts","setNotVisibleDuts","environmentVisualizationOrder","setEnvironmentVisualizationOrder","orderedDuts","setOrderedDuts","setFilter","environmentContentType","setEnvironmentContentType","setIsUpdatedDuts","updateDutInfo","unorderedDuts","filterRoom","filterTemperatureLower","filterTemperatureHighest","tempA","tempB","filterExeption","dutsFilterVisibility","filteredEnvironments","Accordion","BsFillGridFill","BsList","newFilter","mosaic","InfoDuts","countInvisibleDuts","UnitMapProvider","BorderTop","ProgWrapper","ButtomStatus","ButtomStatusOn","ButtomStatusOff","ModalStatusDivisor","ModalStatus","ConfirmStatusChange","closeConfirmStatusChange","commandLabel","noInfoItem","getNobreakStatus","PORT_ELETRIC","electricNetworkPort","getIlluminationStatus","openModalStatus","closeModalStatus","_telemetry$dev_id","_telemetry$dev_id2","_telemetry$dev_id3","illumStatus","_telemetry$Feedback","illumPort","hasOnline","getIlluminationDeviceStatus","illumState","illumMode","ModalStatusIllumination","getIlluminationDamStatus","getIlluminationMode","_utilityInfo$DEVICE_C","_utilityInfo$DEVICE_C2","_telemetry$Mode","modeAux","MosaicCard","_utilityInfo$DEVICE_C3","_utilityInfo$DEVICE_C4","_utilityInfo$DEVICE_C6","_utilityInfo$DEVICE_C7","_utilityInfo$PORT","utilType","getUtilType","setSafeWaitMode","_setState","isConfirmStatusChangeOpen","statusChangeCommand","selectedDamId","localModalStatus","telemetryCurrent","_utilityInfo$DEVICE_C5","changeDamMode","checkedOn","_setCheckedOn","checkedOff","_setCheckedOff","switchProgOn","emptyProg","refModal","contains","NobreakTable","filterNobreaks","nobreakColumns","IlluminationTable","filterIlluminations","getIlluminationColumns","UnitDetailUtilities","mosaicView","setMosaicView","utilitiesVisualizationOrder","setUtilitiesVisualizationOrder","startedWslNobreak","startedWslIllumination","loadedData","illuminations","nobreaksList","illuminationsList","dmtIds","dalIds","nobreaksListOpts","illuminationsListOpts","orderedNobreaksList","setOrderedNobreaksList","orderedIlluminationsList","setOrderedIlluminationsList","wslNoBreak","wslIllumination","_state$nobreaks","_state$illuminations","getUtilitiesStatus","ascendingOrderStatus","statusA","descendingOrderStatus","unorderedNobreaks","orderedNobreaks","unorderedIlluminations","orderedIlluminations","sortingAlphabetNobreak","sortingAscendingStatusNobreak","sortingDescendingStatusNobreak","sortingAlphabetIllumination","sortingAscendingStatusIllumination","sortingDescendingStatusIllumination","getBackgroundTabs","getCursorTabs","getBorderBottomTabs","nobreaksUtilities","illuminationsUtilities","getUtilitiesInfo","UnitDetail","isMounted","healthIndexes","groupsFull","dutsFilt","associationsFull","isScheduleModalOpen","selectedDutId","showExportReport","reportMode","focusedStart","modeView","selectedExportsRealTime","setIsMachineMosaicView","machineVisualizationOrder","setMachineVisualizationOrder","setMachineTableItems","orderedData","setOrderedData","setOrderedAssociations","orderedGroup","setOrderedGroup","orderedAssociationGroup","setOrderedAssociationGroup","handleClickExport","handleExportPreventiveReport","downloadLink","DATA_ENVIRONMENTS","EXPORTATION","exportEnvironmentMosaic","DATA_MACHINE","DATA_SISTEM_MACHINE","exportMachineMosaic","handleExportRealTimeReport","sortHealth","_a$dacs$","_b$dacs$","sortPower","_a$dacs$2","_b$dacs$2","capacityKW","sortConsuption","_a$dacs$3","_b$dacs$3","sortUsage","_a$dacs$4","_b$dacs$4","arrayTempoA","arrayTempoB","filterVisualizationOrder","unorderedGroups","orderedGropsList","sortAlphabeticalOrder","formatOrderedGroups","localMachineTableItems","_group$dats$find","formatGroupDacs","formatGroupDats","_group$dats$find2","ValveState","formatGroupDris","orderedGroupData","getOrderedGroup","orderedAssociationData","getAssociationOrderedGroup","arrayOrdered","ordered","_dacsList","_damsList","_dutsList","_vavsList","_dutDuosList","_assetsList","includeMeanTemperature","dutDuosList","IS_VISIBLE","usageHistory","_filteredByGroupName$","_filteredByGroupName$2","damsObj","_group$DEV_AUT","_group$DEV_AUT2","associationGroups","associationGroup","_state$groups$find","_state$groups$find$du","createAssociationsAndGroups","debugTemplate","lastMonth","closeExportReport","formattedUnitMaps","PARAMS","handleGetUnitMaps","useLayoutEffect","InputSearchDesktopWrapper","setSearchState","_item$ROOM_NAME","isReportWeekly","isReportMonthly","ToolIcon","isReportRealTime","openDirection","ModalRealTimeReport","AreaExportContent","UnitIntegratedAnalysis","energyList","validateAndAddUtilItem","_groupsList","buildDacsItems","buildDutsItems","vavEnv","vavGroup","vavGroupInfo","buildVAVsItems","buildUtilitiesItems","hasEnergyInfo","UnitWater","_state$devInfoResp$in2","queryParams","URLSearchParams","supplierCheck","unitMeter","checkSupplier","unitMetersList","noStatus","DocumentationFiles","documentations","selectedDocumentations","setSelectedDocumentations","selectedAll","setSelectedAll","selectFiles","setSelectedFiles","documentationsVisible","setDocumentationsVisible","doc","UNIT_SKETCH_ID","filterDocs","filterFile","handleSelectDocs","SKETCH_NAME","FILENAME","isParceiroValidador","unitSketchId","pdfResponse","extension","downloadFiles","DateButtonExport","onFocusedUpdate","onClickDownload","isNegative","whole","decimal","UnitProfile","_state$meanDevsDisp","devsDispLoading","devsDisp","meanDevsDisp","isClientManage","isUnitManage","navigateUrl","navigate","ADDRESS","flagExportCSV","maquina","ambiente","processDataAndDownloadCSV","ObservationUnit","openModalEditAdd","openModalDelete","listObservations","getObservationList","verifyWhoIsObservation","permissionOnlyEditOwn","permissionEditAll","obs","handleSendObs","TextObservation","DATE_OBS","UserAndIcons","IconsEditExclude","ModalAddEditObservations","getObservations","ModalDeleteObservation","setText","OBS","textAreaRef","observation","deleteObs","expand","setExpand","html","setHtml","updatedHtml","clean","DOMPurify","TextWithHtml","htmlContent","parsedHtml","ReactHtmlParser","ChillerInlineTabs","UnitCAG","_state$devInfoResp$dr","setAba","setDeviceId","setLinks","listDriChiller","listIntegrationInfo","_unitInfo$arrayChille2","_state$listDriChiller","MACHINE_NAME","handleGetDrisInfo","foundItem","varsConfig","_varsConfig","VARSCFG","maxChar","ChilerAbas","_state$listDriChiller2","_state$devInfoResp2$d","_state$devInfoResp$dr2","_state$devInfoResp3","_state$devInfoResp3$d","returnAbasChiller","UnitVRF","_queryPars$aba","_state$devicesList","_state$devicesList2","devicesList","selectedDevice","isLoadingDevice","selectedDeviceAux","SelectDeviceVRF","keyframes","Circular","Circle","LoaderWithText","A350","handleFilteredStringOptions","selectedOptions","checkDevOnline","devsErrors","Motivo","selectedsStates","selectedsCities","selectedsUnits","selectedProgs","filterBySearchState","stringsToCheck","searchPartial","checkedWords","stringToCheck","searchItem","normalize","stringsPassed","passedSomeSearch","passedAllSearchs","filterString","ILLUMINATION_NAME","handleProgFilter","hasSchedule","HAS_SCHEDULE","IlluminationMultipleProgFilter","query","_item$name","illuminationsGroupedBySite","CHECKED","clearStateFilter","clearCityFilter","clearUnitFilter","clearProgFilter","IlluminationMultipleProgItemList","_state$illuminationsG","_state$illuminationsG2","cutText","COLLAPSED","ILLUMINATIONS","_illum$ILLUMINATION_N","changeCircuitStatus","illumDevId","ILLUM_DEV_ID","isAllChecked","IlluminationMultipleProgList","allCollapsed","setAllCollapsed","HandleIllumScheds","_state$illumException5","_state$illumScheds5","_state$illumScheds6","_state$illumException6","_state$illumException7","_state$illumException8","illumScheds","showExcepts","illumExceptions","damDevSched","selectedDam","needDamMultipleScheds","needOverwriteDamSchedule","illuminationsWithNumberExceptions","getDalScheds","schedToEdit","checkNeedMultipleCards","daysWithProg","daysWithExcepts","checkDamConvergence","checkDamSchedConvergence","newExcepts","checkDamExceptConvergence","illumination_id","existingIndex","numberExceptions","checkDalCardsExceptsLimits","selectedDevList","persistedSched","validateDevsScheds","handleDalSchedules","handleNewDalSaving","handleDamWithoutMultipleScheds","basedOnExcept","trueOpt","falseOpt","_state$illumScheds4","_state$illumException","clearAllAdded","illuminationName","checkIlluminationExceptions","pendingIllumns","refreshIlumnsList","closeOnClick","draggable","_state$illumScheds","_state$illumScheds2","_state$illumScheds3","_state$illumException2","_state$illumException3","_state$illumException4","IlluminationMultipleProg","clearAllExcepts","clearAllScheds","isFetching","groupIlluminations","groupedIlums","getIlluminations","clearAllPersisted","FROM_MULTIPLE_PROGRAMMING","handleClearAllDal","handleClearAllDam","pendingIllums","refreshIllumnsList","parseDamList","groupsIds","groupsNames","hasProgramming","parseDutList","_dut$CTRLOPER","_dut$PORTCFG","sortLocation","dev_1","dev_2","sortDut","dut_1","dut_2","sortDam","dam_1","dam_2","temprtControlModeDetails","defaultFormData","USE_IR_item","ECO_TIME_INTERVAL_HYSTERESIS","ECO_DUT_SCHEDULE_START_BEHAVIOR_item","ECO_DUT_SCHEDULE_END_BEHAVIOR_item","FORCED_BEHAVIOR_item","ClearFilterButton","memo","flexGrowFields","DutFilter","_state$selectedDutAut","_state$selectedProgra","isFiltering","onClickFilter","selectedConnections","selectedDutControlOperations","selectedDutAutConfigurations","selectedProgrammingMult","connectionsOptions","dutControlOperationOptions","dutAutCfgOptions","handleSearchDelete","handleSearchAddition","onFilterStateChange","onFilterCityChange","onFilterUnitChange","onFilterConnectionsChange","connections","onFilterDutControlOperations","controlOperations","onFilterDutAutConfigurations","dutAutConfigurations","getStateUnitCitiesList","flexGrow","programmingMult","hasProgrammingMult","dutAutConfigs","dutControlOperations","getCheckStatusKey","toggleAllDevicesFromKey","checkDecimalPlace","isAllDevicesSelected","toggleSelectAllDevices","verifyValueDefinedNotEmpty","FilterColumn","keyProp","toggleAllDevicesFromValue","verticalAlign","alignLeft","ItemTable","_dev$name","onClickDevCheck","toggleAllDevices","TableHeader","TableVirtuoso","components","fixedHeaderContent","itemContent","useWindowScroll","SelectAllDevices","isAllSelected","onClickSelect","batchRequests","numberPromises","copyPromises","chunks","arrCopy","chunk","chunkArray","allSettled","HandleDamSelfReferenceInfos","dutReference","selfReference","minimumTemperature","maximumTemperature","onChangeMaximumTemperature","onChangeMinimumTemperature","HandleRoomName","canSelfReference","dutsListToReference","onSelectDutReference","selfReferenceOption","dutsReferenceUnit","HandleGroupName","sizeStringLimit","DamTable","dutsToReference","DamFilter","selectedEcoModes","selectedControlModes","selectedProgramming","programmingOptions","controlModesOptions","ecoModesOptions","onClickFilterButton","onFilterEcoModesChange","ecoModes","onFilterControlModesChange","controlModes","onFilterProgrammingChange","programming","DefaultDeviceTable","nameKey","onClickSelectDevice","selectAllDevicesElement","devTypesList","SelectDevType","defaultDev","onFilterDevChange","selectedDevType","setSelectedDevType","ProgrammingProgress","currentDevices","totalDevices","DriProgrammingContext","useDriProgrammingContext","DriProgrammingProvider","driProgramming","setDriProgramming","timeouts","retryInterval","deleteTimeoutByDriIds","driIds","timeout","fetchScheds","previousValues","newProgramming","clearSavedProgramming","refetchScheds","clearTimeouts","checkConflictsByDay","schedsConflicts","checkSchedsCardsConflicts","checkNewConflicts","updatedScheds","_ans$schedsConflicts$","foundSched","newAns","updatedSchedsConflicts","deleteNewConflicts","exceptionsIdsToDelete","checkExceptsCardsConflicts","isAxiosError","LIMIT_DRIS_SENDING_SCHEDS","MAXIMUM_EXCEPTIONS","MAXIMUM_SCHEDULES","MINIMUM_AUTOMATION_VERSION","flexGrowFilterFields","generateDefaultDriCfg","extraCondition","splitProgrammingToSchedulesExceptions","generateDefaultDevInfo","buildDriScheduleInfo","isNewSched","buildDriExceptionInfo","showToastError","checkSchedsConflicts","_validateSchedules$sc","_validateSchedules$sc2","_validateExceptions$e","oldExceptionCards","oldScheduleCards","validateSchedules","validateExceptions","schedulesToEdit","schedulesToDelete","exceptionsToDelete","checkSchedsConflictsByDevice","selectedDeviceIds","conflictsByDevice","uniqueByDriId","verifyDriErrorData","errorSearchText","verifyErrorsRequestProgramming","drisErrors","drisOffline","verifyDriErrorMessage","errorMessage","buildDeleteRequest","dataSend","driErrors","isValidDevices","selectedDevices","ConfirmDeleteProgException","clearState","setClearState","onClickCheckbox","CleanButton","MultipleProgFilter","searchStateDebounced","setSelectedOptions","clearSelectedFilter","onFilterSelected","defaultSelectSearchProps","GroupButton","TooltipSpan","ItemContainer","CommonContext","useCommonPropsContext","CommonPropertiesProvider","TextComponentWithTooltip","cutTextLength","newText","DriItem","_dri$MACHINE_NAME","_dri$DRI_ID","_dri$ENVIRONMENT_NAME","_dri$RTYPE_NAME","disabledWatch","onClickWatchButton","onCheckItem","DriProgItem","setDriInfo","schedsDri","DriGroupProgItem","_data$stateName","_data$cityName","_data$unitId$toString","_data$unitId","collapsedAll","onCheckDriList","collapsed","setCollapsed","checkedUnit","setCheckedUnit","previousValue","newArrayDris","onCheckUnit","gridColumn","newArray","MultipleProgItemList","groupDriList","setCollapsedAll","ClearAllAddedModal","onClickClearAll","SavingConfirmationModal","sendSchedules","hasDevicesOfflineProg","hasEditScheds","hasDeleteExceptions","DriSchedulesContent","openAddModal","onCloseModal","_item$EXCEPTION_DATE","_item$NAME","onAddSched","onUpdateSched","onDeleteSched","DriSchedulesContainer","getSelectedDevices","onSendSchedules","disabledSaveButton","setIsException","openClearAllModal","setOpenClearAllModal","openSavingConfirmModal","setOpenSavingConfirmModal","setSchedules","setExceptions","setOpenAddModal","savingConfirmOptions","setSavingConfirmOptions","validateSchedsOpts","setValidateSchedsOpts","onCloseClearAllModal","handleSaveSched","selectedDevicesIds","scheduleCards","exceptionCards","checkConflicts","_dev$CURRFW_VERS","isFwVersionGreatestOrEqual","CURRFW_VERS","onClearAll","useSaveDriSchedules","progressState","setProgressState","prepareSendingSchedsByDevice","conflictsScheds","schedHasEdit","sendSchedsByDevice","preparedData","verifyLimitsSchedules","buildSendSchedulePromise","MultipleProgContent","setOptions","roomTypesListOpts","setIsFetching","setIsFiltering","isDeleting","setIsDeleting","openConfirmDeleteModal","setOpenConfirmDeleteModal","groupedDriList","setGroupedDriList","isFetchingSchedules","allOptions","groupDrisList","newGroupList","newDri","handleApplicationInput","onCloseConfirmModal","getSelectedDris","deselectDevicesSuccess","groupDrisByUnit","newGroupedDriList","driError","handleSendingErrors","uniqueDrisErrors","uniqueDrisOffline","onlyWithAutomation","getDrisListByUnit","getOptionsLists","successDriIds","driOffline","_data$searchState","rTypeIds","programmingStatus","getDrisList","newDrisList","newGrouped","autoClose","DriMultipleProg","MultipleDevProg","_state$formData$FORCE","_state$formData$USE_I","showNewParametersDAM3","selectedModeToDut","DUTS_SCHEDULES_TO_ADD","DUTS_EXCEPTIONS_TO_ADD","selectExceptionDate","filteredDevList","getDutsToReference","getUnitDevicesInfoByClientId","getDacsList","getUnitDevicesInfo","removeIlluminations","getUnitDevicesInfoByUnitId","damDacEcoV2","damDacEcoV2Description","dacConfigOpts","damConfigOpts","dutConfigOpts","EcoV2","possibleValues","dutCardsSchedulesExceptionsConfig","dutsErrors","dutsOffline","DUTS_SCHEDULES_PERSISTED","clearDeviceProgramming","handleDutMessageError","clearCards","clearProgramming","curstor","_state$formData$CTRLO","_state$formData$FORCE2","_state$formData$FORCE3","getDaysWithNewProgramming","daysWithProgramming","isAllDisabled","checkCardsCompatibility","checkCompatibiltyWithOperationMode","dutsIncompatibles","_irCommands$find","addExceptionsToClean","DUTS_EXCEPTIONS_PERSISTED","specificDay","sendDutDeviceSchedule","_state$formData$USE_I10","_state$formData$USE_I12","_state$formData$USE_I13","_state$formData$USE_I14","FINAL_DUTS_SCHEDULES","FINAL_DUTS_EXCEPTIONS","getDutIrCodesList","indexToRemove","hasSameDate","_state$formData$USE_I11","_irCommands$find2","_irCommands$find3","_irCommands$find4","_state$formData$USE_I17","_state$formData$USE_I15","_state$formData$USE_I2","_state$formData$USE_I3","_state$formData$USE_I4","_state$formData$USE_I5","_state$formData$USE_I6","_state$formData$USE_I7","_state$formData$USE_I8","_state$formData$USE_I9","scheduleToProgrammming","prepareDutProgramming","_state$formData$USE_I16","onCompleteProgressDevice","sendDutSchedule","hasOutdatedOnDemandFw","notAcceptActionPostBehavior","canUpdateSched","devicesIdWithErrors","devicesIdsOffline","pendingDevs","refreshDevsList","clearExceptions","clearDeviceException","forcedBehavior","dutsToCheck","dutsCompatibility","dutIds","dutsCompatibles","compatible","getDevProperties","enabledEco","ctrlOperation","autConfiguration","clearSelectedNonFilterResults","filteredResults","nonFilteredSelectedResults","callDutsFilter","_verifyValueDefinedNo","_verifyValueDefinedNo2","automationConfig","formatDutsList","onClickSelectAllDevices","adjustProgrammingFilter","callDamsFilter","formatDamsList","renderProgEditCard","RenderDevicesTable","unitIdKey","onClickSelectAllDevicesList","errorsList","_formData$ENABLE_ECO_5","MULT_PROG_SCREEN","damsOffline","IGNORE_SET_SENSORS","_formData$ENABLE_ECO_","_formData$ENABLE_ECO_2","_formData$ECO_CFG_ite","_formData$ECO_CFG_ite2","_formData$ENABLE_ECO_3","_formData$ENABLE_ECO_4","devErr","_err$response2","damIndex","sendDamSchedule","damsErrors","handleDamMessageError","validateEco2","_formData$USE_IR_item","_formData$CTRLOPER_it","_formData$FORCED_BEHA","useIrValue","ltc","lti","upperHysteresis","lowerHysteresis","validateEco2Values","_irCommands$find5","dutsIdsIncompatibles","temperaturesForcedSetpoint","isFromMultipleProg","RoomsList","ROOM_ID","GeneralData","_props$amountPeople","_state$constructedAre3","_state$constructedAre4","_state$unit_code_cels","_state$unit_code_cels2","_state$unit_code_api$","_state$unit_code_api","_state$numberPeople$t","_state$numberPeople3","unit_code_celsius","unit_code_api","selectedTimezone","timezonesOptions","isLoadingModalAdd","originalDocs","deleteDocs","numberDeleteDocs","modalEdit","modalAddDocs","modalDeleteDoc","checkInibVisibility","editDoc","editDocsList","deleteDocsList","addDocsList","isChangeName","constructedArea","numberPeople","getDocsUnit","sketchesList","sortedDocs","verifyExistNameSketch","setDocumentations","saveTimezone","timezoneId","_state$constructedAre","_state$constructedAre2","_state$numberPeople","_state$numberPeople2","sendArrayEditUnit","nameSketch","FILE","configArrayToSendAddDocs","sketchList","configArrayToEditSent","configArrayToDeleteSend","timezoneItem","timezoneUnitId","filteredTimezone","getTimeZonesOptions","handleKeyPress","which","ItemDocElement","ModalSetInfo","hasItem","addDeleteInList","filterExtension","splitString","editMap","docs","newEditDocsList","newDocumentations","setVisibility","setCheckInibVisibility","decideFunction","newFiles","lastModified","configArrayToSend","cols","EnvironmentVisibility","DutItem","sendDuts","NewUnitMapButton","UnitMapListMapsContent","UnitMapSearchInput","UnitMapSearchWrapper","UnitMapPreviewStyled","UnitMapPreviewHeaderStyled","UnitMapContentStyled","UnitMapContentImgStyled","UnitMapContentOverlayStyled","DeleteModal","TextContent","DeleteModalFooter","UnitMapPreview","handleEditUnitMap","handleDeleteUnitMap","handleClickSeeMap","setOpenDeleteModal","isOverflowingTitle","setIsOverflowingTitle","onMouseOver","wrapper","offsetWidth","scrollWidth","RedDark","UnitMapModalViewStyled","UnitMapModalViewHeader","UnitMapViewModal","unitMapData","setIsShowListUnitMap","setIsEditingFlow","resetUnitMap","_unitMapData$POINTS","_unitMapData$POINTS2","newPins","UnitMapModalStyled","UnitMapHeader","FileDropStyled","FileDrop","FileDropContent","MediumGrey","fileDropHasError","UnitMapFooter","formFieldsValidator","checkers","initialValues","touched","checkField","checker","Function","validateSync","checkAll","requiredStringField","UnitMapModal","isEditing","handleConfirmModal","setFileDropHasError","unitMapSchema","yup","unitMapValuesState","initialFile","unitMapValues","unitMapErrors","handleValidateForm","checkForm","checkFileDrop","onError","onReset","fileDropConfig","UnitMapListMaps","handleListUnitMap","setUnitMap","setUnitMaps","openUnitMapViewModal","setOpenUnitMapViewModal","openUnitMapModal","setOpenUnitMapModal","stateBox","renderBox","unitMapsId","UnitMapViewMapHeader","UnitMapViewMapFooter","UnitMapViewMap","_unitMapData$file","addPin","removePin","movePin","handleCreateUnitMap","handleAddPoints","openEditModal","setOpenEditModal","selectedValuesFullInfo","handleGetUnitDevices","_unitMapData$POINTS3","_unitMapData$POINTS4","_unitMapData$POINTS5","_unitMapData$POINTS6","pinsApi","_value$value","filterDevicesSelected","_value$value2","verifySelected","newPinId","_removePinId$","removePinId","handleChangePins","groundPlanId","UnitMap","isShowList","EditUnitDevProg","permissionProg","SchedTurnConfig","routePars","roomInf","newRoomName","newPeriodDays","numPeriods","newStartDate","roomId","progs","ON","OFF","schedTurn","datRef","turns","newRoom","SchedEditor","fullSched","BatchInputDACs","selectedTypeSolution","sended","parsedColHeaders","parsedRows","parsedColsAdditionalParameters","resultadoEnvio","energyOpts","selectedTypeOfSolution","fetchedColumns","example","fileRef","tableCols","onChange_textAreaUnidades","AUTOM_ENABLE","PHOTO_1","PHOTO_2","PHOTO_3","PHOTO_4","PHOTO_5","added","ignored","reason","onDoubleClick","exportUnitMachines","BatchInputDAMs","_state$columns","_state$columns2","_state$columns3","_state$columns4","_state$columns5","_state$columns6","_state$columns7","_state$columns8","_state$columns9","_state$columns10","exampleList","_item","AUT_GROUP","BatchInputDUTs","_state$columns11","_state$columns12","_state$columns13","_state$columns14","dutPlacement","AUTOM_CFG","ASSET_MODEL","MONIT_MACHINE","BottonTypeSolution","isClicked","PreFillGuideArea","ContainerExportationAndDowload","hasSelected","getNormalizedOpt","optList","BatchInputDRIs","_state$columns15","_state$columns16","_state$columns17","_state$columns18","_state$columns19","_state$columns20","_state$columns21","_state$columns22","GROUP","ROOM","ENERGY_METER_SERIAL","ENERGY_METER_MODEL","TC_CAPACITY","INSTALLATION_TYPE","TELEMETRY_INTERVAL","_getNormalizedOpt","meterModel","vavModel","BatchInputEnvironmentTypes","roomtypes","BatchInputSupervisors","BatchInputInvoices","fourDocsResult","DISTRIBUTOR_NAME","BASELINE_TEMPLATE","JANUARY_PRICE","JANUARY_KWH","FEBRUARY_PRICE","FEBRUARY_KWH","MARCH_PRICE","MARCH_KWH","APRIL_PRICE","APRIL_KWH","MAY_PRICE","MAY_KWH","JUNE_PRICE","JUNE_KWH","JULLY_PRICE","JULLY_KWH","AUGUST_PRICE","AUGUST_KWH","SEPTEMBER_PRICE","SEPTEMBER_KWH","OCTOBER_PRICE","OCTOBER_KWH","NOVEMBER_PRICE","NOVEMBER_KWH","DECEMBER_PRICE","DECEMBER_KWH","sendToFourDocs","hydrometerModels","BatchInputDMAs","dmas","METER_ID","SUPPLIER","IconArea","CustomizedButton","colorIcon","PreFillGuide","typeOfSolution","unitMachine","unitMachineIds","unitMachineLabel","timezoneList","setTimezonesList","sensorsPressure","setSensorsPressure","valuesDefault","tranformeArrayInValue","getTimezones","getCurrentSensor","valuesTable","fancoilsManuf","ValuesTableTable","typeHeader","tableValuesCell","verifyParam","BatchInputUnified","_state$selectedTypeOf","typesOfSolutions","setTypesOfSolutions","verifyColumn","verifyRowsAdditionalParameter","additionalColumns","rowAdditionalParams","verifyColumnWithoutLabel","unified","dielManufInfo","filteredModels","thermManufOpts","fancoilManufOpts","valveManufOpts","fancoilsThermManuf","fancoilsValveManuf","generateFancoilOptions","_typesOfSolutions$val","Utility","matchingUnits","newSelectedUnits","selectAllUnit","labelTransition","typeOfSolutions","exportUnitUnified","exportExempleFileUnified","tableColsAdditionalParameters","SOLUTION_TYPE","COUNTRY","TIME_ZONE","UNIT_STATUS","LATLONG","SIMCARD_PHOTO1","SIMCARD_PHOTO2","SIMCARD_PHOTO3","SKETCH_1","SKETCH_2","SKETCH_3","SKETCH_4","SKETCH_5","PHOTO_DEVGROUPS_1","PHOTO_DEVGROUPS_2","PHOTO_DEVGROUPS_3","PHOTO_DEVGROUPS_4","PHOTO_DEVGROUPS_5","DEV_AUTOM_ID","SENSORS_DUT_DUO","DAM_INSTALLATION_LOCATION","DAM_PLACEMENT","DAM_T0_POSITION","DAM_T1_POSITION","PHOTO_AUTOM_DEV_1","PHOTO_AUTOM_DEV_2","PHOTO_AUTOM_DEV_3","PHOTO_AUTOM_DEV_4","PHOTO_AUTOM_DEV_5","PHOTO_DUT_1","PHOTO_DUT_2","PHOTO_DUT_3","PHOTO_DUT_4","PHOTO_DUT_5","CAPACITY_POWER","ASSET_RATED_POWER","EVAPORATOR_MODEL","COMPRESSOR_RLA","PHOTO_ASSET_1","PHOTO_ASSET_2","PHOTO_ASSET_3","PHOTO_ASSET_4","PHOTO_ASSET_5","PHOTO_DAC_1","PHOTO_DAC_2","PHOTO_DAC_3","PHOTO_DAC_4","PHOTO_DAC_5","ELECTRIC_CIRCUIT_NAME","ENERGY_DEVICES_INFO_ID","ID_MED_ENERGY","NUM_SERIE_MED_ENERGY","MODEL_MED_ENERGY","CAPACITY_TCA","INSTALLATION_ELETRICAL_TYPE","SHIPPING_INTERVAL","ROOM_VAV","PHOTO_DRI_1","PHOTO_DRI_2","PHOTO_DRI_3","PHOTO_DRI_4","PHOTO_DRI_5","WATER_INSTALLATION_DATE","TOTAL_RESERVOIRS","PHOTO_DMA_1","PHOTO_DMA_2","PHOTO_DMA_3","PHOTO_DMA_4","PHOTO_DMA_5","UTILITY_APPLICATION","UTILITY_NAME","INSTALLATION_DATE_UTIL","DISTRIBUTOR","ENTRY_VOLTAGE","OUT_VOLTAGE","POT_NOMINAL","AUTON_NOMINAL","MAINS_CURRENT","ASSOCIATE_DEV","ASSOCIATE_DEV_PORT","FEEDBACK_DAL","CURRENT_TRANSFORMER","CURRENT_SENSOR","ASSOCIATE_ASSET","PHOTO_DMT","PHOTO_DAL","PHOTO_UTILITY","ADDITIONAL_PARAMETERS","datas","BatchInput","idcliente","tipo","CardUntitled","ChangePassword","setLocale","mixed","oldPassword","newPassword","confirmPassword","Breadcrumb","ProfilesTable","EditInfo","lastName","simulateProfile","simularPerfilParceiroValidador","simularPerfilInstalador","notifsBy","notifsby","cProfiles","radioState","waterMeasuring","submitProfileSim","fakeProfile","clients_v2","PERMS","UNITS","PERMS_U","setUpdatedProfile","withManagerPermission","OptionsSelect","updatedData","NOTIFSBY","PREFS","changeLanguage","profileSim","EditLink","StyleSelectedOptions","parseDataWater","pressure","Settings","profileData","phonenb","icone","brasilIcon","usaIcon","FormEditValue","currentValue","PHONENB","refreshUserProfile","code","TOKEN","ExpansionBody","SectionTitle","ExpansionPanel","withStyles","root","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","MuiExpansionPanel","ExpansionPanelSummary","MuiExpansionPanelSummary","ExpansionPanelDetails","theme","spacing","MuiExpansionPanelDetails","Help","setExpanded","panel","newExpanded","square","expandIcon","Typography","Desktop","Mobile","DataCard","DataItem","NewNotificationsLayout","ButtonAdd","BlueMenu","WrapperClickOut","wrapperRef","handleClickOutsideComponent","ModalCreateNotification","OptionWrapper","OptionMenu","OptionItem","Item","notifFreq","DAY","WEEK","MONTH","NONE","Notifications","notifications","modalDelete","notifId","modalWindow","owner","notification","destiny","handleGetNotification","specials","isMasterUser","responseUnitrepList","FREQ","formatterData","typeIds","subtypeIds","destinataryIds","dests","onClear","StyledCard","HeaderCard","BodyCard","Modal","modalOpen","listOfDutNotifs","getDutNotifTemperature","dutName","getDutDescription","OffsetContainer","Offset","initFormFields","notifType","notifCond","condValue","condSecondaryValue","FormEditNotification","_formValues$notifType","notificationType","notifInfo","isSpecialNotif","isRegularFault","multiUsers","multiClient","isSubmitting","users","freqs","notifTypes","allGroups","formFields","checkboxOption","usesDacFilters","usesDutFilters","isWaterNotification","isAutomaticReportNotification","setFormField","clientSelected","filterComboOptions","sel_units","_notifInfo","frequencyOptions","_group$unit","_dut$unit","_comboOpts$units","_comboOpts$allGroups","_comboOpts$allDuts","_comboOpts$units2","_comboOpts$allGroups2","_comboOpts$allDuts2","_comboOpts$units3","_comboOpts$allGroups3","_comboOpts$allDuts3","COND_PARS","FILT_IDS","FILT_TYPE","COND_VAR","ops","COND_OP","COND_VAL","COND_SECONDARY_VAL","NOTIF_DESTS","handleGetInfos","tip","unit2","_formValues$notifType2","notifTypeId","notifEnvironment","notifMachine","selected_duts","selected_groups","selected_units","cond_pars","NOTIF_ID","NOTIF_TYPE","_formValues$notifType3","handleSubmitNotification","EnergyCardsWrapper","EnergyCardsEmpty","EnergyNotifCardContainer","EnergyNotification","_profile$singleClient","notifTitle","notifTypeOpts","selectedNotifType","notifCards","allReceivers","receiversFullList","receiversList","selectedReceivers","loadedNotifInfo","handleGetPageData","_state$clientsList$fi","dmeList","_notifInfo$FILT_IDS","unitSelected","_notifInfo$FILT_IDS2","subList","renderSelectedUnitOptions","getUsersList","filt","_user$unitIds","filterUsersList","_jsonTryParse","_notifInfo$NOTIF_DEST","energyCards","loadNotifInfo","indexTotal","_option$subList","unitIndex","justifySelf","inv","condOper","limiarInput","allDays","allHours","instant","endOfDay","EnergyNotifCard","deleteNotifCard","getFiltInfoNotif","schedIndex","startNumber","endNumber","invalidInterval","oneHourDiff","notifValidation","ENERGY_CARDS","condOperOptions","handleLimiarInput","Notification","_state$notifInfo","handleGetNotifInfo","CardHeaderContent","FilterHeader","FilterHeaderButton","CardContent","CardContentFooter","InsightsFooter","ShowListButton","EnergyAnalisys","_formatNumberWithFrac","_formatNumberWithFrac2","_formatNumberWithFrac3","isShowCalendar","setIsShowCalendar","filteredColumnsModal","exportColumns","setExportColumns","filteredColumnsTable","_state$filtersData","_state$filtersData2","_state$filtersData2$s","_state$filtersData3","_state$filtersData3$c","_state$selectedFilter6","_state$filtersData4","_state$filtersData4$u","_state$selectedFilter7","_state$selectedFilter8","procelRanking","GenerateEfColumn","energyEfficiency","OrderColumn","consumptionByArea","refrigerationConsumption","PercentageTableLabel","refCapacity","ValueLabelWithSufix","haveInfo","refrigerationConsumptionByArea","ValueLabelWithSufixNullable","showModelsCard","showTableCard","haveAnalisysResult","hasResult","showResult","totalCities","totalStates","showCalendar","procell","getUnitListInfo","resetPagination","categoryFilter","resume","procelItems","qtd","procel","totalCITIES","totalSTATES","sortDataColumn","filtersParams","handleExportEnergyAnalysis","handleFeedDefaultFilters","pageFilters","handleTransformFilterApi","handleLoadPrevData","searchParams","procellFilters","selectedTicket","defaultFilterOptions","handleSetDefaultFilters","endDateAux","replaceState","DayPickerRangeController","renderCalendarInfo","onOutsideClick","handleGetMaxQtdCharacteres","higherNumber","_filteredColumnsTable","_filteredColumnsTable2","ColumnsTableConfig","EnergyCardFooter","handleChangeTableFilters","procellLetters","totalUnitsWithConstructedArea","showTable","setShowTable","tableData","setTableData","handleGetTableData","handleFormatterFilterParams","letter","updatedFilters","callHandleChange","handleResetFilters","showTablePrevState","newFilters","TabOptionCard","arrayItems","onClickFunc","EnergyEfficiencyStyled","EnergyEfficiencyHeader","ConsumptionStyled","ConsumptionResultContainer","ConsumptionResultData","ConsumptionResultHighlight","HighlightData","DeltaInfo","isPositive","NoAnalisysWarning","EnergyEfficiencyTicketStyled","EnergyEfficiencyTicketData","isActivate","EnergyEfficiencyTicket","handleClickTicket","handleRedirect","EnergyInsights","_state$energyInsights","_state$historyChartDa","_state$historyChartDa2","handleChangeProcellFilters","handleResetProcellFilters","handleGetTotalUnits","energyInsightsData","energyInsightsSummary","procellFiltersSelected","handleFormatAndConvertNumber","convertedNumber","numberUnit","handleLoadData","procellUnits","flat","containsProcel","containsAnalysisData","averageConsumption","totalConsumption","averageConsumptionPreviousMonthPercentage","handleGetInsightsProcel","procelUnitsFilter","_data$totalUnitsWithC","updateFilters","handleResetProcell","insideFiltersEncoded","TrendsFooter","TrendsFooterData","redPercentage","TrendsChart","trendChartData","showConsumptionPredict","dayChart","trendDay","trendsData","trend","labelConsumption","valueConsumption","consumptionForecast","previousTrendDay","consumptionDay","numberConsuptionPercentageFixed","consumptionPercentage","formatterAux","consumptionTarget","formatterNumbers","formatterSeries","trendsFormatted","consumptionForecastGraphic","consumptionOverTarget","consumptionTotal","actualDate","isOverTarget","showForecastBar","trendConsumption","isBeforeActualDate","stackStrategy","monthlyTarget","formatterBackground","backgroundArray","totalConsumtionPercentage","monthlyForecastPercentage","monthlyForecast","EnergyTrend","trendsChartData","handleGetTrendsData","EnergyCard","historyChartRef","footerRef","filterDatesCard","tableFilters","cardTabs","handleUpdateTab","cardContentFactory","handleGetDatesFilter","letters","checkMonthCanClick","checkYearCanClick","handleSelectYear","handleSelectMonth","generateArrayDates","anoInicio","anoFim","intervalo","dataAtual","tabType","years","yearArray","monthArray","yearTrated","apiYear","monthTrated","apiMonth","cardDateFormatted","breakLoopYear","CardManager","CalendarWater","setDateCalendar","selectedYear","openDates","setOpenDates","setDates","neighbors","setNeighbors","previous","next","findNeighbors","previousYear","nextYear","hasUsage","client_ids","state_ids","city_ids","getDatesOfCalendar","DefaultTableLabel","DefaultTableLabelUnit","DefaultTableLabelUnitLink","CardWaterTable","handleGetDevInfo","infoTableData","filterDataTable","getUnitConsumptionWater","_state$filterColumns$","handleChangeFilter","_item$value","_state$filterColumns$2","state_name","_item$value2","_state$filterColumns$3","city_name","_item$value3","_state$filterColumns$4","unit_name","_item$value4","usage_people","usage_area","getPages","comparison","sortByParameter","waterPag","firstSearch","useFilters","acessorFilterChange","curr","scrollbarWidth","borderRow","WaterCard","_props$paramsForLoadD12","_props$paramsForLoadD13","_props$paramsForLoadD14","_props$paramsForLoadD15","setFilterDataTable","_props$paramsForLoadD","_props$paramsForLoadD2","showAsHistory","showEnergyEfficiencyInvoices","historyData","paramsForLoadData","transformAndRemoveDuplicates","acessor2","unique","transformedArray","setParams","_params$unit_ids","_params$client_ids","paramsNew","_props$paramsForLoadD3","_props$paramsForLoadD4","_props$paramsForLoadD5","_props$paramsForLoadD6","_props$paramsForLoadD7","_props$paramsForLoadD8","_props$paramsForLoadD9","_props$paramsForLoadD10","_props$paramsForLoadD11","setParamsProps","_JSON$parse","isTable","daysInMonth","getConsumptionWater","BtnList","enCA","AUTOMATION_STATS_INITIAL_VALUE","automated","powerTR","notAutomated","dacAutomation","damAutomation","dutAutomation","scheduleOnly","ecoOnly","scheduleAndEco","noEcoNoSched","ENERGY_EFFICIENCY_INITIAL_VALUE","savings","greenAntConsumption","condenserConsumption","unhealthyConsumption","Overview","initialFilterOptions","selectedFilter","supervisorsList","utilsCount","ativo","offline","maquinas","catalogadas","monitoradas","unMonitored","energia","agua","iluminacao","envCardLoadDataParams","devicesCount","onlineDevs","offlineDevs","unitsCount","onlineUnits","offlineUnits","automationStats","automationList","automationPag","invoicedList","measurementUnit","hideDefaultTab","isLoadingAutomationTypeList","isLoadingEfficiencyOverviewCard","isLoadingEfficiencyOverviewCardInvoiceTab","isLoadingClassesList","isLoadingUnitsList","isLoadingCitiesList","isLoadingStatesList","isLoadingOnlineDevicesOverview","isLoadingAutomationOverviewCard","energyEfficiencyInvoiceTab","invoicesTotal","unitsInvoice","multipleToYMeasured","calculeYInvoicesTicks","getWaterDevices","classId","currentClass","getUnitsFromClass","getEnergyDevices","getEnvironmentList","environmentsList","paramsCommon","getMachinesList","STATE_IDS","CITY_IDS","countUnits","supervisorIds","saveOverviewFilters","loadOverviewFilters","buildSelectedFilter","ConnectedDevices","EnvCard","enableHistoryTab","MachineCard","PageTitle","specialClients","IntegrationNess","machinesHealthNow","green","yellow","orange","red","deactiv","others","machinesHealthBefore","machinesTRs","dutsCount","dutsTempOk","dutsTempHigh","dutsTempLow","dutsNoTempData","apiAuth","healthHistory","healthHistoryDuration","H_DATE","asSeconds","asMinutes","asDays","asWeeks","asMonths","DefaultCard","TabsContainer","TabsList","TabItem","NavLink","TABS","Layout","isThereATabWithExactPath","exact","ListContainer","LoadingSpinner","TVStatusValues","Agendado","EmAndamento","AguardandoAprovacao","Finalizado","Reagendado","Column","ColumnTitle","Value","DeleteTVModal","setVisible","handleTechnicalVisitDelete","centered","onOk","bodyStyle","footer","TECNICO_NOME","TECNICO_SOBRENOME","doesPictureUriExists","labelSpanVisible","PhotoBox","pictureUri","previewOverlayContainerHeight","setPreviewOverlayContainerHeight","previewOverlayContainerWidth","setPreviewOverlayContainerWidth","setLabelSpanVisible","spanRef","node","onMouseEnter","onMouseLeave","ShowTVModal","technicalVisitId","setData","VTDATE","VTTIME","PLANTABAIXA_IMG","AUTORIZACAO_IMG","OBSERVACAO","RESPONSAVEL_NOME","TECNICO_PHONE","isDurationVisible","ListItemContent","ListItemBtnsContainer","ListTitleContainer","CaretsContainer","Caret","SpeakWithTechnicianModal","userData","setUserData","tvData","setTvData","clientData","setClientData","technicalVisitData","TECNICO_ID","textDecorationColor","RG","FaUser","COMMENTS","handleEditItem","handleDeleteItem","handleAccompanyItem","handleVisualizeItem","handleApproveItem","handleRescheduleItem","isShowTVModalVisible","setIsShowTVModalVisible","isDeleteTVModalVisible","setIsDeleteTVModalVisible","isSpeakWithTechnicianModalVisible","setIsSpeakWithTechnicianModalVisible","ShowBtn","EditBtn","DeleteBtn","AccompanyBtn","SpeakWithTechnicianBtn","VisualizeBtn","ApproveBtn","RescheduleBtn","ACTION_BTNS_FOR_EACH_STATUS_MAPPER","STATUS_ID","ListTitle","FaCaretUp","FaCaretDown","TVList","activeTab","handleOrdenation","CardSubHeader","pluralLabel","truthy","TVListing","_TABS$find","statusFilter","setStatusFilter","setSearchTerm","technicalVisitsList","setTechnicalVisitsList","filteredTechnicalVisitsList","setFilteredTechnicalVisitsList","listOfTechnicalVisits","fetchTechnicalVisitsList","handleTechnicalVisitsFiltering","filteredVisits","visit","rawVisit","asc","technicalVisitsListCopy","statusOrdenation","statusId","tv","attrs","InputDate","setFocused","onFocus","InputContainer","InputHour","handleCaretClick","newValue","hourSplited","applySuffixToInputValue","originalText","sanitizePattern","normalizedText","handleInputValueChange","negativeNumbersAllowed","TextArea","onDeleteRequest","FaTimes","Col","ColSection","SectionDescription","ClimatizationParameterContainer","ClimatizationValueBox","ClimatizationSwitchContainer","UploadPhotoBtn","Footer","TVRegistration","setTechnicalVisitData","availableClients","setAvailableClients","choosenClient","setChoosenClient","previousChoosenCompany","availableUnits","setAvailableUnits","choosenUnit","setChoosenUnit","availableTvCharacteristics","setAvailableTvCharacteristics","choosenTvCharacteristics","setChoosenTvCharacteristics","canSelectQuantityOfEnvironments","setCanSelectQuantityOfEnvironments","quantityOfEnvironments","setQuantityOfEnvironments","canSelectQuantityOfMachines","setCanSelectQuantityOfMachines","quantityOfMachines","setQuantityOfMachines","blueprintPictures","setBlueprintPictures","autorizationPictures","setAutorizationPictures","availableTechnicalUsers","setAvailableTechnicalUsers","choosenTechnicalUser","setChoosenTechnicalUser","choosenTVDate","setChoosenTVDate","choosenTVScheduledTime","setChoosenTVScheduleTime","observations","setObservations","fieldsValidation","setFieldsValidation","clientsMant","setClientsMant","choosenCompany","setChoosenCompany","getDefaultData","handleClientChange","COMPANY","handleCompanyChange","listOfClients","filteredListOfTvCharacteristics","characteristic","CHARACTERISTIC","getTechnicalVisitData","technicalVisitInfo","listOfUnits","listOfUsers","technicalUser","CLIENT_BIND","AMBIENTES","MAQUINAS","CARACTERISTICA","handlePictureFileSelection","fileIdentifier","random","onclick","handlePictureDeleteRequest","newBlueprintPictures","newAutorizationPictures","validateFields","technician","doesDataIsValid","defaultData","goBack","Switch","MdFileUpload","company","newTime","TVRegistrationPage","TVListingPage","textFilter","PERFIL_DESC","clientNames","Users","indicadorLinguagem","isActiveColor","visibleCols","LAST_ACCESS","modalType","userSelected","isButtonDisabled","isRemoteControlSelectedUser","_state$userSelected","modalClose","includeAllUsers","perfil","IS_ACTIVE","handlerGetUsers","filterMobile","convertToSortableDate","convertedA","convertedB","allowFullScreen","mensagem","_list","paddingBlock","marginInline","profiles_v2","clientsUser","deactivateUser","clientsIds","reactivateUser","ClientItem","programacaoMultipla","setProgramacaoMultipla","listUnits","setListUnits","listStates","setListStates","userType","handleClientTypeChange","checkClients","setClients","cProg","isState","onChangeUnitsSelection","_props$unitsList","stateMap","hasCheckedUnit","getStates","selectTypeProfile","newClients","toggleCheckbox","changeMultipleSelectionPersona2","EditUser","editedUserId","cpf","setCpf","editedUserClients","sendEmail","clientBind","extraErrors","userPicture","clearErrors","defaultValues","shouldUnregister","lastname","fillUnitsLists","userInfo","verifyPermission","verifyPermissionProg","CLBIND_ID","perms","verifyPermissionState","auxiliarClients","manageMultipleClients","checkFieldsValidation","newErrors","verifyProfileInstalador","clientIdStr","verifyClientAdminProg","verifiedSomeUnitSelected","unitsSelected","profileAddPermis","profilePerClient","someUnitSelected","allUnitsSelected","verifyProfileClientNull","handleFormSubmition","commonParams","formatAndSend","verifyNewUserType","newCProfiles","sigla","checkProfiles","newUserType","checkClientProfile","Space","listedClient","ClientMultipleProg","Background","LogoContainer","MenuItem","MenuHighlight","GrenTab","MenuItemName","MenuMobile","setIsModalNavItemsOpen","ActionableWrapper","setClientIds","itemsMenu","canUseRemoteControl","getUserClientId","LogoCelciusColor","ItemsMenu","NavItem","UserContainer","WrapperItem","RelativeWrapper","CloseWrapper","ModalNavItems","IconRotate","Topbar","MobileNavbarWrapper","isModalNavItemsOpen","isModalUserOpen","setIsModalUserOpen","me","useDispatch","IconSidebar","UserIcon","logout","PrivateRouteWrapper","isMenuOpen","PrivateRoute","_params$path","component","Component","DesktopNavbar","MobileNavbar","PublicRoute","noRedirect","SpecialRoute","Comparative","_state$data$0$unit$UN","initialState","showGraph","timeRanges","graphColors","totalEnergy","totalEnergyPerMonth","view","setView","byMonth","byHour","byDay","calculateEnergyConsumed","referData","buildCsvLine","getCsvDataByDay","getCsvDataByMonth","getCsvDataByHour","getFormattedDate","parseEnergyConsumptionValue","container","xs","payloadItem","PercentageComponent","arrowConsumption","selectUnit","handleChangeSelectedTimeRange","DateInput","timeRange","_data$unit$UNIT_ID","deleteData","dataElement","requests","reqParam","calculateTotalMeasuredByHour","itemEnergyPerMonth","monthInYear","calculateTotalMeasuredByMonth","calculateTotalMeasuredByDay","calculateTotalMeasured","ComposedChart","Ano","Mês","Semana","Flexível","Bar","_state$data$0$energyD3","_state$data$0$energyD","_state$data$0$energyD2","getBarDataKey","barSize","_data$energyData","_data$energyData$en_a","_data$energyData2","DownloadUnitReport","downloaded","setDownloaded","arrTitleFile","getUnitReport","PrivateWithRedirectRoute","urlPath","FaultsDisable","typeFaults","responseTypeFaults","Devices","associatedsDevicesList","notAssociatedsDevicesList","devicesListFiltered","associatedsDevicesListFiltered","notAssociatedsDevicesListFiltered","devicesColumns","infoTypeOpts","verificationItemFilter","arraySelected","INCLUDE_UNOWNED_DEVS","ASSOCIATED","getDevTab","_dev$CLIENT_NAME","_dev$STATE","_dev$CITY_NAME","_dev$UNIT_NAME","_dev$DEVICE_CODE","_dev$STATUS","_dev$MAC","DEVICE","MAC","IconDiv","UtilityLayout","utilInfo","isIllumination","typesExistent","UtilityInfo","_state$utilInfo","getUtilityInfo","IlluminationEdit","_state$utilInfo2","_state$utilInfo2$GRID","_state$utilInfo3","_state$utilInfo4","_state$utilInfo5","_state$utilInfo6","_state$utilInfo7","_state$utilInfo$DMT_C","setForm","backToLastRoute","getExtraUtilityInfo","_utilInfo$GRID_VOLTAG","_utilInfo$GRID_CURREN","updateForm","getDevicePortsInfo","confirmEditUtil","setDmtIllumination","setDalIllumination","setDamIllumination","UtilityEdit","_state$utilInfo6$OUTP","_state$utilInfo7$INPU","_state$utilInfo8","_state$utilInfo9","_state$utilInfo10","_state$utilInfo11","_state$utilInfo12","_state$utilInfo13","_state$utilInfo14","_state$utilInfo15","_state$utilInfo16","_state$utilInfo17","_utilInfo$DMT_CODE2","_utilInfo$DMT_CODE","EditUtilityInfo","PowerGraphic","ContainerTimer","MarginWrapper","Graphic","TextStyled","TextDataTimer","TextDataPower","TextDataKwh","ElipseTimer","CustomMonthXAxis","realLiveHistorical","RenderUsageInformation","_state$mostradores","_state$mostradores2","_state$mostradores3","toolTipLabelFormater","formaterHourTick","valueFormated","sec","decimalHourToTime","graphFormattedWeekDays","dat_report_week","mostradores","tempoLigado_hours","tempoLigado_text","consumo_kwh","num_partidas","_state$realLiveHistor","_state$dacInfo4","_state$dacInfo5","_state$dacInfo6","_state$dacInfo7","dots","greenAreas","formatArrHistory","dayPane","_state$dacInfo3","realLiveData","weekPane","_state$dacInfo2","monthPane","_state$dacInfo","yearData","yearPane","Usage","tempoBloqueado_text","tempoBloqueado_hours","RESET_USAGE_RATES","updateCharts","dat_report_month","day_hours_on","day_num_departs","day_hours_blocked","ac","av","bc","bv","a1","a2","a3","b1","b2","b3","xi","xf","areas","findGreenAreas","formatTime","weekday","datIniD","datEndD","setUTCMonth","getUTCMonth","monthIni","numMonths","MONTH_HOURS_ON","MONTH_NUM_DEPARTS","MONTH_HOURS_BLOCKED","MONTH_REPORT","periodYM","regex","getValue","IconWrapperMini","IconWrapperBig","nobreakLabelFormater","func","illumLabelFormater","UtilityCustomTick","DmtUtilityHistoryCard","widthPageCard","timeUsingBattery","timeFormater","getFormattedTimeFromHour","getDateFromHour","getUsageIndexPageInitialState","advancedMode","onRangeTypeChange","handleGetInfo","endpoint","allParams","xticks","showWarning","toastId","DmtUsageIndex","_state$vars$consumpti","showAllWarnings","_state$devInfo$dmt","_state$devInfo$dmt$ut","_state$devInfo2$dmt","_state$devInfo2$dmt$u","_state$devInfo3$dmt","_state$devInfo4$dmt","hasUtilities","hasUtilitiesWithPort","electricNet","handleGetDmtInfo","handleOnDateChange","hasVars","getOwnPropertyNames","getCsvHeader","varsKeys","getCsvBody","formatCsvDatetime","_state$vars$utilId$co","IllumCustomTick","CorrectIncorrectIcon","feedbackValue","relayValue","isEqual","IlluminationHistoryCard","widthPage","customTick","getUsageTimeFormatted","secondsOn","getUsageTime","pointsResolution","getConsumption","feedbackUsage","feedbackConsumption","relayUsage","relayConsumption","renderConsumptionInfo","_props$feedback","_props$relay","DalUsageIndex","_state$devInfo3$dal","illuminationInfo","handleGetDalInfo","formatCsvValue","_state$devInfo$dal","_state$devInfo2$dal","_state$vars$Feedback2","_state$vars$Feedback","DutDuoUsage","resetUsageRates","_histData$hoursOnL","_histData$hoursOnL2","hoursOnL1","selectDayTimeRange","_hoursOnL","selectWeekTimeRange","selectMonthTimeRange","selectYearTimeRange","DevUsageIndex","UtilityUsageIndex","UtilityRealTime","confirmChange","Relay","optionsLightStatus","getCurrentOptions","newRelayStatus","lightStatusCurrent","lightStatusNew","sendDalStatus","newStatus","relays","_telemetry$Relays3","_telemetry$Feedback3","_telemetry$Mode2","_telemetry$Relays","_telemetry$Relays2","_telemetry$Feedback2","updateUtilStatus","disableAutomationButtons","isCommandAvailable","ConfirmChangeModal","automId","selectedMode","sendDalMode","automationAndStatusInfo","fadeInAnimation","slideDownAnimation","slideOutAnimation","BackgroundContainer","MainContentContainer","ComponentContainer","WelcomeText","ProgressContainer","CreditPowered","MainContent","LoginInput","Login","setIsLogin","dashPage","topage","checkingSSO","formLoginValues","formLoginErrors","loginWithCredentials","dataToFront","prefsOverview","ordernedCards","listIdClients","PER_CLIENT","logoutUrl","_err$response$data","codeError","errorCode","ForgotPasswordInput","ForgotPassword","isEnergia","formForgotPasswordValues","formForgotPasswordErrors","NewLoginWrapper","setModalOpen","isLogin","PolimorphicGradientBackground","CelciusWhiteLogo","LogoDielPowered","DielDarkLogo","GooglePlayLogo","handleRedirectToGooglePlay","ModalPrivacyPolicies","ContainerDST","ContainerAreas","InputAreasContainer","HorarioVerao","listAreas","selectedAreas","hourInitial","minuteInitial","hourFinal","minuteFinal","dateInitial","sendMessageDST","AccordionTitle","AccordionInfo","ContainerViewNotification","WaterIcon","CircleCheckFill","TypeIcon","subType","returnOffset","gmt","tz","isDST","CustomAccordion","_notification$detecti","_notification$detecti2","notificationId","tabName","handleViewNotification","getToLink","setOpen","detections","NotificationsEmpty","NewNotifications","_state$notificationsF","firstReload","notificationsFilteredFeed","notificationsFilteredHistory","notificationsFiltered","callCount","tablePageFeed","tablePageHistory","tablePageSizeFeed","tablePageSizeHistory","totalItemsFeed","totalItemsHistory","feedCanHandle","historyCanHandle","canHandle","informationDates","setInformationDates","dataResponse","isViewed","skip","_informationDates$dat","_informationDates$dat2","getDateSendAccordion","dateDetection","diffMin","diffHr","diffDay","getDescriptionAccordion","typeName","getDescriptionAccordionEnergy","getDescriptionAccordionEnvironment","getDescriptionAccordionHealth","getDescriptionAccordionWater","_notification$energy","_notification$energy2","_notification$energy3","_notification$energy4","_notification$energy5","_notification$energy6","isGreaterString","isGreater","isCompiledString","momentString","isInstantaneous","_notification","_notification$machine","machineHealth","healthIndex","_notification$water","_notification$water2","_notification$water3","getTypeAccordion","viewNotification","getTrasparentLinkTo","detection","getUnitConsumption","measuringUnit","updatePeriodDates","viewAllNotifications","_notification$machine2","_notification$energy7","_notification$water4","_notification$energy8","_notification$water5","_notification$machine3","dateSend","healthIndexName","_notification$energy9","_notification$water6","assetName","report","SelectedStatusText","StatusText","StyledBox","CustomButton","GreenButton","YellowButton","OrangeButton","RedButton","GreyButton","DarkGreyButton","SaveButton","TContainer","THeader","thereIsValue","DataCentered","Health","_state$detectedFaults","_state$modalEditObser2","descObs","setDescObs","currentHealthIndex","currentHealthTitle","currentLaudo","currentPosCauses","selectedLevelTitle","newHealthIndex","showAddObservation","newLaudo","detectedFaults","healthHist","modalEditObservation","laudos","buildLaudoFullText","laudo","pcauses","fullText","causesDesc","_pcauses$id","verifyHealthStatus","faultData","fdata","faultDesc","severity","faultLevel","titulo","actionAprove","actionTaken","limit24h","actionTime","buildDetectedFault","handleGetDevHealth","_devInfo$dac$DAC_APPL","possibleCauses","healthList","assetTypeSelector","H_DESC","P_CAUSES","_possibleCauses$id","selector","filterLaudo","onLevelClick","wantEditAddProgramming","observationId","OBS_DESC","observationsList","HEALTH_MANAGEMENT","selectedLaudo","saveHealthInfo","labelDescHealth","descricao","causa","possCauses","changeType","itemDate","wantDeleteHistoryEvent","wantDeleteObservation","maxLength","_state$modalEditObser","observationDesc","editObservation","saveNewObservation","ManagementFaults","setActive","faultIdPressed","setFaultIdPressed","setDescription","setReload","responseFaults","responseUnit","IconButton","Reativar","Desativar","TextareaAutosize","DevHealth","ProjetoBBCadastroAC","pageName","ProjetoBBNobreak","embedRef","setReport","pages","setPages","reportPages","reportInstance","powerbi","navigateToPage","displayName","ProjetoBBANSRecente","AnalysisEnergy","CSVHeaderNobreak","CSVHeaderIllumination","getUtilityType","Utilities","commonColumns","getStatusIcon","getToolTip","getDurationIcon","getConnectionIcon","getIlluminationStatusIcon","selectedStatusConvert","handleSelectedStatusConvert","_dev$STATE_UF","_dev$NAME","_dev$DAT_CODE","_dev$averageDur","_dev$autonon","_dev$connection","RedirectUtilities","ContainerCard","ForgotPasswordCard","StyledButton","ResetPassword","pass","ButtonArrow","DataExportRow","ColumnTotalValues","ContainerProg","PopoverContentDevAut","PopoverContainerDevAut","marquee","TooltipText","MarqueeContainer","MarqueeContent","MarqueeText","TooltipWrapper","maxChart","contentWidth","GenerateColorIcon","ValueNumberFormatComma","PopoverDevAut","progReturn","_week$day","_week$day2","_week$day3","_week$day4","ValueProgDayWeek","multi_scheds","GenerateColumnValue","LinkedStringLabelMachine","TooltipWhite","controlColumnsMachineConfigs","totalParametersColumns","valuesControlMode","valuesAssetsStateDevice","Evaporadora","Disabled","Others","Condensadora","valuesControlState","Enabled","Ventilation","NO_ACTION","Forbid","Heat","transformScheduleData","daysMapping","groupedSchedules","scheduleTitle","capitalize","modoEco","transformScheduleExceptionData","healthValues","MachinesAnalisys","_state$totalItems$TOT","_state$totalItems$TOT2","hasOneClient","isFirstReload","isLoadingTotal","isLoadingTable","isLoadingModal","showSched","isMonitoring","openInfoMachine","TOTAL_CAPACITY_PWR","TOTAL_MACHINE_KW","TOTAL_UNITS","TOTAL_ASSETS","TOTAL_CITY","TOTAL_STATE","TOTAL_MACHINES","TOTAL_H_INDEX100","TOTAL_H_INDEX50","TOTAL_H_INDEX75","TOTAL_H_INDEX25","TOTAL_H_INDEX2","TOTAL_H_INDEX4","TOTAL_H_INDEX_NULL","TOTAL_ONLINE","TOTAL_OFFLINE","listMachine","machinesTypes","stateDev","tipoMaquina","TEMPERATURE1","TOTAL_DEV_COUNT","conexao","saudeAtual","TOTAL_CAPACITY_CONDENSER","LAST_PROG","arrowValue","_state$filtersData$ci","_state$filtersData$ma","_state$filtersData$ma2","word","ValueMachineTypeFormated","MACHINE_TYPE","counts","ValueMachineHealth","ASSETS","isSetPoint","nameEnv","isTemperature","renderContent","ColumnTemperature","progValidation","parseProg","GenerateIconAutomationValue","_state$filtersData$op","modeValue","ValueMachineControlMode","DUT_MULT_SCHEDULE_DAYS","dev_aut_conn","countOn","STATUS_WIFI","ValueMachineConection","STATE_CONN","columnsSubTable","_a","_c","conn","ValueStateAssetMachine","_valuesAssetsStateDev","_valuesAssetsStateDev2","GenerateConectionIcon","filterLastProg","controlColumnsFilter","_item$accessor","getTotalInfoMachines","getMachineList","getFilters","first","_filters$MACHINES_TYP","MACHINES","MACHINES_TYPES","_state$currentSort$ty","_state$selectedFilter9","_state$selectedFilter10","itemsStateDev","itemsOperationModes","_filter$value","_filter$value2","typeOrdered","onlyAut","operation_modes","resetPage","filterClient","filterMappings","getInfos","excep","getSchedDut","controlDataFiltered","_column$id","MonitoringButton","toogleIsMonitoring","haveProg","handleExportMachineAnalysis","_state$totalItems$ite","_state$totalItems$ite2","isFirstReloadComponent","IsFirstReloadComponent","haveAssets","haveSubTable","openAllSubTables","openArrows","OrderColumnArrow","GenerateItemColumnArrow","subTableItem","itemId","haveItem","ArrowValue","assetOpen","hasAsset","_columnsTable$find","_columnsTable$find2","SchedModalOpen","verifyMonitoring","healthCodes","Machines","formattedFilter","timeOutId","cellGroup","ternaryAux","cellGroupAsset","urlDac","devicesLabel","columnClientName","col_H_DESC","switchDacMonitoring","verifyObject","getParamsToCallDacsAndAssetsList","isExport","searchMachine","dacsAndAssetsList","includeSensorInfo","includeLastMeasures","formattedMachineCSV","healthDate","healthDesc","fluidType","appl","p0var","p0sensor","p1var","p1sensor","capkw","P0Raw","P1Raw","selectedAssets","AnalysisMachines","blinkAnimation","ContainerHeader","ImageHeader","DefaultImage","LineStyle","ContainerPage","TextOverlay","ContainerBoxMachines","ContainerCardMachine","InfoMachineSubtitles","ContainerSubTitles","ContainerSemMaquinas","BoxIconInfo","ContainerColorEnv","IconColorEnv","TitleMachine","ThermometherArea","SearchInputMobile","iconsStatesMachine","ECO","COOL","DISABLED","FAN","ONLYFAN","iconsMachineTypes","chiller","condensadora","evaporadora","splitao","semMonit","DEV_AUT_CODE","machineList","ENVIRONMENTS","iconsModes","Automatico","Manual","MachineListCR","orderedFilter","machinesList","machineFiltered","optionMachines","automaticMode","onSearch","_profile$permissions$","PER_UNIT","getUnitId","optionsMachines","getMachinesData","HeaderUnit","MachinesSearchDesktop","MachinesSearchMobile","BoxCardsMachines","isIconInFront","CardMachine","MACHINE","_MACHINE$OPERATION","stateInfo","nameState","CardMachineInfos","ECONOMY_ENABLED","SETPOINT_EXCEPTION_ECO","_environment$Temperat","tmin","tmax","TMIN","TMAX","remoteColors","BlueGreenGradient","ContainerAutomaticMachine","WifiIconContainer","Blue02Opacity","ConnectionContainer","SetpointContainer","Blue02","CurrentTemperatureEnvironmentContainer","Grey03","EconomySaveInfoContainer","LimitTemperatureContainer","ScheduleBadgeContainer","ScheduleHoursTitle","RoundedButton","Grey04","PowerButton","off","Green02","SetpointLabel","SetpointControllerContent","ModeMachineContainer","ScheduleBadgesContainer","ScheduleHoursContainer","RecommendedTemperatureContainer","BlockedMessageContainer","FooterContainerModal","LeavePageModalContent","SetpointVisualizer","currentSetpoint","availableSetpoints","setpointStrokeDashArray","setpointPositionPercent","totalDashes","foundIndexSetpoint","tMin","tMax","dashesPosition","newDashPosition","generateSetpointStrokeValue","useCalculateStrokeSetpoint","Blue","SetpointController","onClickPower","onChangeSetpoint","disabledSetpoint","setSetpoint","availableSetpointsFilter","hasAvailableSetpoints","_availableSetpointsFi","disabledButtons","isSetpointOutRange","disabledIncreaseButton","disabledDecreaseButton","foundCurrentIndex","previousSetpoint","SaveChangesModal","onClickSave","EnvironmentTemperatureItem","environmentName","renderBackgroundStatusColor","LeavePageModal","onClickLeave","MachineConnection","HeaderMachine","hasEditedValues","isDAM","isDUT","websocketLazy","firstRender","openChangesModal","setOpenChangesModal","goToListPage","AutomaticMachineActivate","onClickCheck","ScheduleBadge","beginTime","splitTime","ButtonOperation","onClickModality","BlockedMessageContent","MachineProfileCR","_machineInfo$name","_machineInfo$deviceCo","_machineInfo$type","_limits$tMin","_limits$tMax","openSaveChangesModal","setOpenSaveChangesModal","checkAutomaticMode","setCheckAutomaticMode","machineInfo","setMachineInfo","setLimits","setCurrentOperation","setCurrentSetpoint","automationIntervals","setAutomationIntervals","setDefaultValues","setAvailableSetpoints","hasEditedValuesRef","positionToastByScreen","goToMachineList","saveChanges","_availableSetpoints$f","idIRSetpoint","setMachineConfig","isAutomaticModeValid","isOperationValid","isSetpointValid","onCloseSaveChangesModal","getMachine","needMachineInfo","_response$OPERATION","permissionUnit","getMachineInfo","dutCode","MAXIMUM_SETPOINT","MINIMUM_SETPOINT","AUTOMATIONS_INTERVALS","END","START","getDutIrSetpoints","setpoints","getIrCommandsList","handleBeforeUnload","currentTemperatureComponent","availableSetpointsValues","blockedOperation","isValidChanges","momentDate","renderFormattedDate","Routes","BrowserRouter","getUserConfirmation","NewLogin","DevLogs","useGaTracker","initialized","setInitialized","ReactGA","initialize","pageview","GlobalStyles","createGlobalStyle","isUserCR","ReFlexbox","breakpoints","App","isOpenMenu","setIsUserCR","checkingAuthToken","posthog","init","api_host","disable_session_recording","identifyUser","isTracker","startSessionRecording","fetchUserProfile","TourProvider","ThemeProvider","ToastContainer","hideProgressBar","newestOnTop","rtl","pauseOnFocusLoss","pauseOnHover","toastClassName","TOP_RIGHT","closeButton","apm","initApm","serviceName","serverUrl","secretToken","verifyServerCert","pageLoadTransactionName","elasticApm","ReactDOM","StrictMode","Router","UnitMapContext","setIsEditing","setIsShowList","setUnitMapData","setPinsData","prevData","pinId","updatedPins","switchPins","oldPinId","newPin","editing","GROUND_PLAN_IDS","FILE_NAME","StyledList2","StyledLink2","timeout_ms","renderWaiting","renderTimer","createDebouncedRender","HeaderWrapper","StyledArrowIcon","TitleWrapper","StyledTitle","StyledTitle3","CollapsedContent","getUserLanguage","verifyIsNull","digits","stringValue","exec","closest","ModalBackground","ModalContentWithBorderTop","asStr","Primary","Secondary","BlueWhite","RedInvert","LightRed","BlueInvert","DarkBlue","VeryLightBlue","BorderBlue","RedInvertWithBorder","RcGreen","remoteControlColors","Grey02","RcBlueGradient","RcGrey","_permissions$PER_UNIT","CLIENT_VIEW","MANAGE_ALL_CLIENTS_AND_DACS","VIEW_ALL_CLIENTS_DACS_GROUPS_UNITS","DropdownItem","DropdownItemTitle","isDropdownOpen","setIsDropdownOpen","dropdownRef","MoreIcon","handleToggleExpanded","handleToggleVisibility","onOuterClick","rota","_profile3","profileStringfim","clientsfim","transaction","startTransaction","addFilter","transactions","_profile","username","spans","_profile2","subtype","setUserContext","TourContext","highlight","MoverCards","ExpansaoRemocao","_tour$find","stepHistory","setStepHistory","tour","prevHistory","tourStep","tour_finished","finishTour","isTourActive","currentStep","tourFinished","useTour","initReactI18next","returnNull","lng","fallbackLng","interpolation","escapeValue","transSupportBasicHtmlNodes","transKeepBasicHtmlNodesFor","resources","en","translation","enJson","ptBRJson","base","MenuOpen","PinEditModalStyled","PinEditModalContent","SearchInputWrapper","CardsContainer","ColTitle","ColTitleCenter","BodyList","ColCenter","HealthIndexIcon","HealthToolTipDiv","ToolTipRowTitle","ToolTipTitle","HealthDesc","HealtLastAtt","ButtonTypeSolution","ContainerNobreak","ContainerTypeOfSolutionsButton","NameStyle","NameStyleNobreak","ColNobreak","Cards","machineWithoutDevices","toggleSortCardEnvironments","sortColEnvironments","sortDirEnvironments","temperatureIcon","sortColMachines","sortDirMachines","sortColIllumination","sortDirIllumination","sortColNobreak","sortDirNobreak","typeofSolution","bottomEnvironments","sortedEnviroments","hasIconA","isAuto","hasIconB","sensitivity","sortedRoomName","sortedDevIdDes","MachineAndUtilityCardUnit","HealthToolTip","stateMachine","setStateMachine","dacsVavsList","DEV_AUTO","sortedMachines","sorted","ascendSort","setTypeOfSolution","constA","constB","comparativeGeneric","constante","sortedIllumination","ButtonsTypeOfSolution","HeaderSolutions","TypeSolutionNobreak","TypeSolutionIllumination","AVERAGEDUR","AUTON","CONNECTION","bottomMachines","toggleSortCardMachines","arraySolutions","bottomIllumination","toggleSortCardIllumination","arrayHeaderIllumination","CardsRow","DataCellCard","colSpan","ClickableSpan","onSearchText","cellIndex","panelScreen","COLUMN_NAME","verifyColumnValue","COLUMN_VALUE","verifyParameter","unusedItems","formattedValues","analise","unidades","editar","notificacoes","gerenciamento","usuarios","configuracoes","integrated","setPath","timezoneInfo","setTimezoneInfo","realPath","initializeBreadCrump","newPath","unitIdIndex","linkPath","TimezoneWarn","isGraterThan20","parts","itemText","PaginationContainer","Page","ButtonPage","ResponsiveTable","ChevronLeft","ChevronRight","CheckboxStyle","setOrderColumn","setSortOrder","setCurrentPage","selectedData","checkedItems","toogleChecked","btn","CheckedAll","AllChecked","ischecked","idsNotIncludes","Checked","ModalDefault","supervisorList","ModalDeleteUnits","allOfOption","setWeeklyReport","setResponsible","sendItems","selectedItemsList","itemsUnits","UNITS_IDS","SUPERVISOR_ID","SELECTED","unitsToDelete","setChecked","check","TourColumn","Stepper","Step","completed","HighlightChildren","hightlight","TourPopover","onNextStepClick","handleEndTour","handleNextStep","textWrap","overlayInnerStyle","Menu","styledInput","extraProps","numberStr","initialSortBy","maxItens","defaultColumn","getTableProps","getTableBodyProps","headerGroups","prepareRow","useTable","useSortBy","useResizeColumns","containerRef","StyledTable","StyledHead","headerGroup","StyledTableRow","getHeaderGroupProps","StyledTableHeader","scope","getHeaderProps","getSortByToggleProps","ArrowTable","getResizerProps","isopen","isSortedDesc","isSorted","selectTableHeadContentColor","StyledBody","getRowProps","cells","hasInternalLink","StyledCell","getCellProps","AssetsColumnsSubTable","StyledSubTableHeader","LineSubTable","_props$columnsSubTabl","StyledSubCell","LineSubItemTable","textAux","truncatedText","visibleColumns","columnValue","columnsVisible","disabledSortBy","fadeOut","noOp","ContainerTimezoneDST","timezoneRef","animationState","setAnimationState","lastUnitId","handleAnimationEnd","animationName","Blue100","Blue600","MediumBlue","VeryDarkGrey","DarkGrey70","LightGrey","Red_v2","Yellow_v2","Orange_v2","Orange_v3","Grey_v3","DynRow","parseFwVersion","lastBar","folder","vExtra","referenceVersion","devFwVersion","devVersion","refVersion","IconWrapperHealth","EmptyCard","AddCard","DraggableCard","moveCard","setIsDragging","lastStep","onDragStart","dataTransfer","onDragOver","DraggableArea","addCard","enabledCards","disabledCards","PlusOutlined","MenuLogo","setToogleAnalise","setToggleNotificacoes","CustomLogo","MenuExpandido","ExpandirMenu","InfoHeader","MenuLink","linkTo","altImage","subItem","SubItemMenu","BorderHorizontalSubItem","MenuSubItemName","MenuItemImg","MenuWrapper","prevCards","setPrevCards","toogleAnalise","toggleNotificacoes","isConfirmation","setIsConfirmation","isClickedAnalise","setIsClicked","isClickedNotificacoes","setIsClickedNotificacoes","countNotifications","toggleModal","getMenuSubItemAnalise","getMenuSubItemNotif","subItemsAnalise","subItemsNotificacoes","fetchCount","menuIsActive","menuLinkIsActive","firstStep","secoundStep","thirdStep","VisaoGeral","MenuLinkActions","Analise","ContainerSubItem","Notificacoes","NotificationBadge","isPlus","Usuarios","Configuracoes","Creditos","AcceptationModalSubTitle","AcceptationModalButton","UserOptions","Welcome","Expand","LogoutIcon","UserGuideIcon","ConfigIcon","ModalUserGuide","menuToggle","handleEsc","frameBorder","refContainer","hasToken","showUserGuide","setShowUserGuide","handleClickLogo","_profile$lastName","getUserName","checkableItem","checkHandler","_formData$baselineTem","baselineTemplates","setBaselineTemplates","selectedTemplate","januaryPrice","januaryKwh","febuaryPrice","febuaryKwh","marchPrice","marchKwh","aprilPrice","aprilKwh","mayPrice","mayKwh","junePrice","juneKwh","jullyPrice","jullyKwh","augustPrice","augustKwh","septemberPrice","septemberKwh","octoberPrice","octoberKwh","novemberPrice","novemberKwh","decemberPrice","decemberKwh","maskInput","isPrice","Intl","NumberFormat","initialMaskInput","baselineTemplatesAux","baselineTemplateAux","template","baselineAux","_baselineAux","_baselineAux2","_baselineAux3","_baselineAux4","_baselineAux5","_baselineAux6","_baselineAux7","_baselineAux8","_baselineAux9","_baselineAux10","_baselineAux11","_baselineAux12","_baselineAux13","_baselineAux14","_baselineAux15","_baselineAux16","_baselineAux17","_baselineAux18","_baselineAux19","_baselineAux20","_baselineAux21","_baselineAux22","_baselineAux23","_baselineAux24","getBaselineInfo","getBaselineTemplates","defaultDateRanges","_props$height","leftColumn","rightColumn","NewCardPersonalized","ServerStyledBorder","ContainerIconImage","ItemValue","ItemVal","BoxHover","rest","identify","maintainer","admin","instalador","validator","shouldBeConnected","currentStatus","reconnectTimer","connectTimeout","listeners","connectToServer","close","WebSocket","onSocketOpen","onSocketClose","onSocketError","onSocketMessage","publish","addListener","callback","removeListener","sendJson","cb","onOpen","onMessage","beforeClose","wsh","started","wscallback","ItemTitleTotal","ItemLegend","ItemCompare","RedTriangleUp","RedTriangleDown","GreenTriangleUp","GreenTriangleDown","IconContainer","HaveSelectAllSelectedContainer","LabelPlaceholder","FuzzySearchLabel","FuzzySearchLabelWithoutTransition","FuzzySearchSelectedLabel","LimitBoxInfo","linksRight","headerRefs","createRef","_link$link","dataVectors","isBool01","invertBool","formatDamParameters","damSelfRefInfo","getTlim","_dut$daySched","getTLti","valueLti","getTSetpoint","_dut$daySched2","fixLimits","formatDutParameters","_dut$isDutDuo","temp1","formatDacParameters","groupDacs","dacHist","formatSetpointHist","energyValue","StateLabelChecked","StateLabelUnchecked","SliderMini","remoteControlStyles","CursorMini","variantWidth","auto","bloq","sLabel","HealthWrapper","with","topMenuToogle","setUTCDate","getUTCDate","xPoint","dayStartYMD","hourFormatted","minFormatted","secFormatted","numberOfDays","getTimeFromHour","setMonth","setFullYear","InputMasked","InputDefault","MaskedInput","props2","tips","inputRef","setSearch","fuzzySearchSelectedLabel","selectedLabel","toggleAndFocusInputs","_inputRef$current","_option$propLabel","_option$propLabel$toL","labelOnTop","formatedDisplayedValue","filteredOptions","_ref3$trim","searchLC","_option$propLabel2","isSelected1","_inputRef$current2","haveSelectAllOptions","isSelected2","haveCustomElements","CustomSlider","DownloadBox","EmptyText","EmptyImages","ContainerSlider","ContainerOptions","ContainerImageSecondary","ContainerImage","ImageSecondary","Close","ModalText","showButton","images","setImages","isOver","setIsOver","currentImageUrlToModal","setCurrentImageUrlToModal","fetchImages","handleUploadImage","fileResult","compressPromise","quality","CustomArrow","dotsClass","infinite","speed","slidesToShow","slidesToScroll","nextArrow","prevArrow","appendDots","customPaging","removeImage","Field","ItemBox","hr","LabelWrap","StyledLinkLast","TimezoneInfo","isFocused","setFocusedInput","yearItemNumber","Layer","SwitchButton","SwitchText","switchOn","AntSwitchWrapper","switchBase","palette","common","white","primary","main","thumb","track","OriginalAntSwitch","FormGroup","ItemValueCurrency","ItemValueUnit","NoInformation","LabelObs","ChartLegendContainer","ChartLegendTitle","ChartInfoContainer","ChartInfoTitle","ChartInfoDataContainer","ChartInfo","_energyEfficiencyOver","_energyEfficiencyOver2","energyEfficiencyOverview","oneUnit","opportunityPercent","totalPercent","verifyPercentOverLimit","isCondenserGreater","calculateRightBorderRadius","displayConsumption","_energyEfficiencyOver3","_energyEfficiencyOver4","greenAntPrice","condenserPrice","effectiveGreenAntSum","effectiveConsumptionSum","effectiveAverageTariff","handleGetLegendTratedData","percentageNumber","aviso_ico","alginItems","calculateConsumption","getConsumptionPrice","sx","InvoiceChart","downloadingPdf","showBaselines","toggleSwitchInvoice","setToggleSwitchInvoice","tickYLabelFormatter","switchInvoice","valueFormatted","measurementUnitAux","tickXLabelFormaterMonth","dateAux","numMonth","tickXLabelFormaterYear","yy","ToolTipContents","_props$invoices$dayIn","dateFrom","periodFrom","dateUntil","periodUntil","timeDifference","daysDifference","tooltipCustom","differencePrice","differenceKwh","variationPrice","ternaryAuxArrow","ternaryAuxSignal","variationPriceExib","variationKwh","variationKwhExib","decimalPalcesToMeasured","isReduced","percentageInvoices","displayBaselineOption","displayPdfOption","downloadPdf","ChartContainer1","ChartContainer","BarContainerReduced","BarContainer","_label","HorizontalGrid","VerticalLabels","BarSubContainer","Baseline","tooltipHolder","XAxisReduced","CsvHeader","formattedCsv","ItemValueInt","TootipTexName","TootipTexValue","TootipTex","CardLine","ZeroConsumo","MenorConsumo","MedioConsumo","MaiorConsumo","ExpandButton","ItemValueDecimal","BarColor","StatusButtonOn","StatusButtonOff","CustomLegendUl","CustomLegendLi","LegendIcon","SeparationLine","_dac$dacs","expandMachines","setDataObject","comsumptionT","comsumptionKWH","_machine$id","_machine$id2","dacTempAvg","dacTempMax","dacTempMin","verifyMachineExternalTemperature","verifyShowExternalTemperatureY","getChartData","verifyMachineDevIdIsDac","dayConsumption","totalSaving","CustomizedAxisTick","_text$","_text$2","_groupInfo$dacTempAvg","_groupInfo$dacTempMax","_groupInfo$dacTempMin","_machine","Legend","iconType","entry","changeChartMode","getRefPeriod","DemandChart","StyledDivider","defaultYTicks","metersColor","weekDayNames","toggleChartMode","selectedDayCurrent","_value","consumptionLabelFormatter","_value2","_valueFormatted","_dateAux$getDate$toSt","tickXLabelFormaterWeekDay","isLastDayOfWeek","handleGetTratedIcon","_props$demandsByMeter","_props$metersTotalDem","consumptionByMeter","weekDayName","meterCurrent","_props$demandsByMeter2","_props$demandsByMeter3","_props$metersTotalDem2","_selectedDay$hours$","_selectedDay$hours$ho","demandToShow","_props$demandsByMeter4","_props$demandsByMeter5","sumTotalDemands","calculateTotal","resultValue","resultUnit","initWeek","handleGetTratedData","lengthConstant","percentageValue","countDataIsInvalid","countDataIsProcessed","showTooltip","handleGetBarColor","handleCanView","monthDataLength","dayDataLength","canView","handleCanClick","_state$selectedDay","_hour$percentageTotal","DayBarContainer","_props$demandsByMeter6","_props$demandsByMeter7","_props$demandsByMeter8","_props$demandsByMeter9","_props$demandsByMeter10","_props$demandsByMeter11","MonthBarContainer","BarSubContainerMultipleMeters","_demand$percentageTot","_hour$hour","getEstablishmentName","levelsList","hIndex","buttonText","HealthHistoryContents","isMachine","setIsMachine","_props$healthHistory","levels","lInfo","disabledLevels","chartVals_dayPerct_Machine","chartVals_dayCount_Machine","chartVals_dayPerct_TR","chartVals_dayCount_TR","TR","selPercentageMachine","selPercentageTR","daysList","topValueMachine","topValueTR","vertGridMachine","vertGridTR","stepMachine","stepTR","maxCount","maxTR","dayHealth","daySelectedCount","daySelectedTR","dayTotalCount","dayTotalTR","dayDMY","containerSizeMachine","containerSizeTR","dayGreenPrctMachine","dayGreenMachine","dayROYPrctMachine","dayROYMachine","dayGreenPrctTR","dayGreenTR","dayROYPrctTR","dayROYTR","selectedCount","selectedTR","lastDayDMY","machineCard","healthLevelsLink","Correto","Urgente","Desativada","generateLink","lId","TooltipLevelContainer","TooltipIconContainer","StyledBox2","HealthCircle","HorizHealthSubContainer","HorizHealthSubTop","HealthButtonUnSelectedMobile","HealthButtonUnSelected","HealthButtonSelectedMobile","HealthButtonSelected","switchLevel","HealthButtonIconContainer","HealthButtonCount","HealthButtonText","HealthButtonLink","daysRange","HEALTH_INITIAL_VALUE","DATE_FORMAT","dacColumns","_state$healthHistory2","isLoadingHealthOverviewNow","isLoadingHealthOverviewBefore","isLoadingHealthHistoryChart","isLoadingDacsList","machinesPag","formatSelectedFilter","healthHistoryChart","refDate","calculateReferenceDate","startYMD","generateDaysList","reqs","atDayYMD","fetchHealthOverviewData","handleGetDacsInfo","healthNow","healthBefore","processedDacs","definedStates","stateInString","totalMachines","compareMachinesGreen","compareMachinesYellow","compareMachinesOrange","compareMachinesRed","compareMachinesDeactiv","compareMachinesOthers","machineCardDaysRange","_state$healthHistory","borderCollapse","_utils$nobreak","_utils$nobreak2","_utils$iluminacao","_utils$iluminacao2","_utils$maquinas","_utils$maquinas2","_utils$maquinas3","_utils$ambientes","_utils$ambientes2","_utils$energia","_utils$energia2","_utils$agua","_utils$agua2","_utils$iluminacao3","_utils$iluminacao4","_utils$nobreak3","_utils$nobreak4","utilitaries","BsSquareFill","Active","Energy","Lighting","Nobreaks","categoriesList","high","good","low","AmbsHistoryContents","roomsHistory","_props$roomsHistory","categories","cInfo","disabledCategories","chartVals_dayPerct","chartVals_dayCount","selPercentage","topValue","vertGrid","containerSize","tooltip2Title","cId","envCard","EnvBlocks","squareSize","dutListCloneHigh","dutListCloneOk","dutListCloneLow","dutListCloneNoData","_state$roomsHistory2","isLoadingRoomsOverviewChart","isLoadingRoomsHistoryChart","isLoadingRoomsList","totalRoomsData","roomsPag","processedDuts","ncols_float","sqrt","nrows_float","nrows1","ncols1","cell_size1","ncols2","nrows2","cell_size2","nrows","ncols","cell_size","initialStep","envCardDaysRange","_state$roomsHistory","getRoomsList","roomsList","cardParams","roomsHistoryChart","historyOnly","invisible","roomsOverviewChart","_props$comboOpts$bran","_props$comboOpts$type","_props$comboOpts$flui","_props$comboOpts$appl","_props$asset","_props$asset2","_formData$unitId","_formData$typeValue","_formData$brandValue","_formData$applicValue","_formData$refrigerati","_formDataAsset$chille","_formDataAsset$chille2","_formDataAsset$chille3","_formDataAsset$datId","_formDataAsset$devId","_formDataAsset$datId2","_formDataAsset$devId2","_formDataAsset$nomina","_formDataAsset$nomina2","_formDataAsset$nomina3","handleSwitchAutomation","machineAutomation","switchCapacity","setSwitchCapacity","switchAutomation","setSwitchAutomation","switchRefDut","setSwitchRefDut","switchDat","setSwitchDat","switchDev","setSwitchDev","chillerModelsFilter","setChillerModelsFilter","brandValue","typeValue","refrigerationFluidValue","applicValue","formDataAsset","setFormDataAsset","handleFormDataAsset","paramAsset","handleFormDataFind","paramFind","arrayParamFind","_arrayParamFind$find","notSelectedChillerCarrier","updateMachineData","_props$asset3","_props$asset4","_props$asset5","_props$asset6","_props$asset7","_props$asset8","_props$asset9","_props$asset10","_props$asset11","_props$asset12","_props$asset13","_props$asset14","_props$asset15","_props$asset16","_props$asset17","_props$asset18","_props$asset$capacity","_props$asset19","_props$asset20","_props$asset21","_props$asset22","_props$asset23","_props$asset24","_props$asset25","_props$asset26","_props$asset27","_props$asset28","_props$asset29","_props$asset30","_props$asset31","chillerIds","lineName","errorOrUndefined","typeAux","brandId","brandAux","applicId","applicAux","PlaceholderWrapper","fluidId","fluidAux","newUnitBoolean","chillerLineId","chillerLineAux","chillerModelId","chillerModelAux","chillerInfo","roleAux","chillerGatewayId","chillerGatewayAux","widht","assetList","pressedNewAsset","deleteAsset","handleChangeAsset","assetsAux","fetchAssets","_formData$roleId","isCondenser","setIsCondenser","isEvaporator","setIsEvaporator","numAtivo","_props$machine","_props$machine$type","_props$machine2","_props$machine2$appli","_props$machine3","_props$machine3$brand","_props$machine4","FieldCAG","twoDigits","_dutControlOperation$","_props$schedule$SETPO","operationText","showSetPoint","showLtc","showLtiOnDemand","showLti","showForcedOptions","colorTextDaySelected","colorBackgroundDaySelected","getContainerModal","querySelector","isNewChangesOnDemandMode","controlOperation","isNewChangesOnDemandModeVersion","MIN_LTI_SETPOINT_SCHEDULE","defaultActionModeOptions","defaultActionPostModeOptions","defaultActionModes","getOptionByKey","getCoolSetpointDefaultCommandValue","setpointDefault","acCoolCommand","_defaultCommand$TEMPE","defaultCommand","CoolSetPointLabel","_props$schedule","_props$schedule2","_props$schedule3","_props$schedule4","_props$schedule5","_props$schedule6","_props$schedule7","_props$schedule8","_props$schedule9","_props$schedule10","_props$schedule11","_props$schedule12","_props$schedule13","_props$schedule14","_props$schedule14$SET","_props$schedule15","_props$schedule15$LTC","_props$schedule16","_props$schedule16$LTI","_props$schedule17","_props$schedule17$UPP","_props$schedule18","_props$schedule18$LOW","_props$schedule19","_props$schedule20","_props$schedule21","_props$schedule22","_props$schedule25","_props$schedule27","_props$schedule29","_props$schedule31","_props$schedule32","_props$schedule33","_props$schedule34","_props$schedule35","_props$schedule36","_props$schedule37","_props$schedule38","_props$schedule39","_props$schedule40","_props$schedule41","_props$schedule$ACTIO","_props$schedule42","_props$schedule$ACTIO2","_props$schedule43","_state$fwVersion3","actionModes","setActionModes","actionModeOptions","setActionModeOptions","actionPostModeOptions","setActionPostModeOptions","getActionKeyFromValue","_props$schedule23","_props$schedule24","SCHEDULE_START_BEHAVIOR_item","_props$schedule26","SCHEDULE_END_BEHAVIOR_item","_props$schedule28","_props$schedule30","SETPOINT_ON_DEMAND","allDay","showEco2Options","showSetPointForced","fwVersion","actionMode","actionPostMode","onDemandChanges","_state$formData$CTRLO2","_state$fwVersion","coolOptionElement","updateActionsOnDemandMode","prevValue","newActionMode","prevValues","newActionOptions","newOptions","updatePropsChangesOnDemandMode","_state$fwVersion2","setpointOnDemand","withRender","_props$schedule47","_props$schedule48","persistedForcedCool","forcedSetpointDefault","_props$schedule49","setFormDataDays","_props$schedule50","_state$formData$SETPO","_state$formData$LTC","_state$formData$UPPER","_state$formData$LOWER","_state$formData$LTC2","_state$formData$LTI","_state$formData$SETPO2","_state$formData$UPPER2","_state$formData$LOWER2","checkOnDemandChangesFields","checkScheduleToSave","addVariationVariableVerificationVersion","addScheduleStartAndEndBehavior","_props$temperaturesFo","_props$schedule44","_props$schedule45","_props$schedule46","setpointForced","getFWVersion","ModoSobDemanda","SobDemanda","getContainer","BackupEcoV2","exceptionTitle","_props$exception","_props$exception2","_props$exception3","_props$exception4","_props$exception5","_props$exception6","_props$exception7","_props$exception8","_props$exception9","_props$exception9$SET","_props$exception10","_props$exception10$LT","_props$exception11","_props$exception11$LT","_props$exception12","_props$exception12$UP","_props$exception13","_props$exception13$LO","_props$exception14","_props$exception15","_props$exception16","_props$exception17","_props$exception20","_props$exception22","_props$exception24","_props$exception26","_props$exception27","_props$exception28","_props$exception29","_props$exception30","_props$exception31","_props$exception32","_props$exception33","_props$exception34","_props$exception35","_props$exception36","_props$exception$ACTI","_props$exception37","_props$exception$ACTI2","_props$exception38","_props$exception18","_props$exception19","_props$exception21","_props$exception23","_props$exception25","_props$temperaturesFo2","_props$exception42","_props$exception43","_props$exception44","_props$exception45","checkExceptionToSave","_props$exception39","_props$exception40","_props$exception41","increaseDecrease","SelectValue","InputValue","increaseDecreaseValue","increase","valueReturn","increaseDecreaseValueList","ShowHideButton","showMobileInfo","_state$mainOption","_state$mainOption2","_state$mainOption3","_state$mainOption3$la","_state$mainOption4","mainOption","selectedPrevious","selectItem","CenterModal","showPrompt","setShowPrompt","handleCancel","handleOK","StyledModalPrivacyPolicies","ModalPrivacyPoliciesHeader","ModalPrivacyPoliciesActionButtons","StyledProgress","StyledProgressDone","movePolimorphicLightBlue","movePolimorphicShapeGreen","gradientAnimation","GradientBackground","BackgroundChildreen","GradientsContainer","PolimorphicShapeGreen","polimorphicShapeGreen","PolimorphicShapeLightBlue","polimorphicShapeLightBlue","CardFooter","FooterInfos","_telemetryData$max_de3","_telemetryData$max_de4","_telemetryData$max_de5","_telemetryData$min_de","_telemetryData$min_de2","_telemetryData$min_de3","_telemetryData$min_de4","ImageZoomWrapper","ImageZoomActions","ImageZoomActionButton","viewMode","ContentWrapper","haveOverflow","StatusColor","ActionButtons","Pin","_pin$ROOM_NAME","handleEditPin","colorsOption","blue","gray","handleGetStatusColor","handleGetPinTemperature","PinEditModal","setDevices","selectOptions","setSelectOptions","switchedPin","setSwitchedPin","devicesFormatted","oldPin","PinTooltipStyled","Contents","isDUTQA","PinTooltip","handleGetPinInfo","imageScale","setImageScale","imageWidth","setImageWidth","imageHeight","setImageHeight","imagePosition","setImagePosition","positionX","positionY","updatePosition","setUpdatePosition","isLoadingImage","setIsLoadingImage","showImage","setShowImage","transformRef","selectedPinId","setSelectedPinId","handleOnLoadImage","wrapperElement","adjustXValue","adjustYValue","setTransform","pointerEvents","handleSetImageSize","imageElement","TransformWrapper","centerOnInit","onTransformed","maxScale","minScale","TransformComponent","Draggable","onDrag","horizontalAdjusts","popover","draggElement","rectTooltip","rectWrapper","transformation","getComputedStyle","scaleFactor","adjustedTop","adjustedLeft","handleMouseOver","onMouseOut","zoomIn","zoomOut","LabelStyled","dropzone","isDragAccept","isDragReject","Filters","BtnActionFilters","BtnFiltersWrapper","BtnFilters","BtnFiltersDropdown","BtnBasic","wrapperRefs","openDropdown","setOpenDropdown","_wrapperRefs$current$","filterLength","selectTableHeadProps","log_dev_cmd","waitingResponse","log_dev_ctrl","aggregatedLogs_all","aggregatedLogs_visible","resultDevId","customFilter","liveLogActive","ocultarSyncDebug","ocultarEcoRt","qPars","periodIni","periodFin","logsSorter","beginSearch","resetResults","dynamoTable","continuesAfter","isIgnored","msgtype","message_type","rt","eval","isWaitingResults"],"mappings":"oHAAA,sGA2BA,MAAMA,EAAcC,6BAA4CC,GAEnDC,EAAeC,IAA4C,IAA3C,SAAEC,GAAmCD,EAChE,MAAME,EAAOC,eAsCNC,EAAOC,GAAYC,sBA5BVC,CAACC,EAAgBC,KAC/B,OAAQA,EAAOC,MACb,IAAK,gBACH,OAAOF,EAAMG,KAAKC,GAAUA,EAAKF,OAASD,EAAOI,QAAU,IAAKD,EAAME,UAAWF,EAAKE,UAAaF,IACrG,IAAK,kBACH,OAAOJ,EAAMG,KAAKC,GAAUA,EAAKF,OAASD,EAAOI,QAAU,IAAKD,EAAMG,YAAaH,EAAKG,YAAeH,IACzG,IAAK,eAAgB,CACnB,MAAM,UAAEI,EAAS,WAAEC,GAAeR,EAAOI,QACnCK,EAAWV,EAAMQ,GACjBG,EAAW,IAAIX,GAGrB,OAFAW,EAASC,OAAOJ,EAAW,GAC3BG,EAASC,OAAOH,EAAY,EAAGC,GACxBC,EAASR,KAAI,CAACC,EAAMS,KAAK,IAAWT,EAAMU,SAAUD,KAC7D,CACA,IAAK,a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AASrxB,SAAC,YACrCsC,4DAACinF,+CAAO,CACNxiF,QAASw3E,UACTz3E,KAAMvG,MAAMo0d,uBACZvna,SAAS,WACTs8B,UAAU,IACVE,mBAAoB,IAAI5pF,SAExBsC,4DAACigB,0CAAM,CAAC9hB,KAAK,SAAS0M,MAAO,CAAE5C,MAAO,SAAWsE,QAAQ,UAAS7O,SAAC,2BAMxEO,MAAMo0d,uBAAuBj0d,KAAKslB,GACjChhB,6DAAC+mb,wCAAM,CAAA/rb,SAAA,CACLsC,4DAAA,QAAAtC,SAAOgmB,EAAIouH,KACX9xI,4DAAA,QAAAtC,SAAOgmB,EAAIuZ,QACXj9B,4DAAA,QAAAtC,SAAOgmB,EAAIplB,YAHAolB,EAAIouH,SAOrB9xI,4DAAA,OAAK6K,MAAO,CAAEub,QAAS,OAAQM,UAAW,QAAShpB,SACjDsC,4DAACigB,0CAAM,CAAC1T,QAAQ,UAAU1B,MAAO,CAAE5C,MAAO,SAAW4E,QAASA,KAAQmmd,eAAgBnzc,QAAQ,EAAIniB,SAAC,qBAS5G,EAIQupB,kGAAgB,UAAW,YAA3BA,CAAwCsrZ,Q,kCC1VxC,QAA0B,iC,2MCGlC,MAAM7uY,EAAchjC,IAAOC,IAAGC,MAAAC,YAAA,6TAexBW,EAAQd,IAAOuB,KAAIC,MAAArB,YAAA,6JAKrBG,IAAOgB,SAKLi+B,EAAcv/B,IAAOC,IAAGoJ,MAAAlJ,YAAA,4OAexBs6c,EAAqBz6c,IAAOC,IAAGqJ,MAAAnJ,YAAA,gW","file":"static/js/main.6cbbd054.chunk.js","sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\r\nimport React, {\r\n createContext, useReducer, useContext, useEffect, ReactNode, useMemo,\r\n} from 'react';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { apiCall } from '~/providers';\r\n\r\nexport interface ICard {\r\n type: number;\r\n position: number;\r\n title: string;\r\n isActive: boolean;\r\n isExpanded: boolean;\r\n}\r\n\r\ntype Action =\r\n | { type: 'TOGGLE_ACTIVE'; payload: number }\r\n | { type: 'TOGGLE_EXPANDED'; payload: number }\r\n | { type: 'CHANGE_ORDER'; payload: { dragIndex: number; hoverIndex: number } }\r\n | { type: 'SAVE_STATE' }\r\n | { type: 'RESET_ALL', payload: ICard[] };\r\n\r\ninterface CardContextState {\r\n cards: ICard[];\r\n dispatch: React.Dispatch;\r\n}\r\n\r\nconst CardContext = createContext(undefined);\r\n\r\nexport const CardProvider = ({ children }: { children: ReactNode }) => {\r\n const user = getUserProfile();\r\n\r\n const submitCards = async (cards: ICard[]) => {\r\n try {\r\n await apiCall('/users/set-prefs-overview', { userId: user.user, prefs: cards });\r\n } catch (error) {\r\n console.error('Erro ao salvar preferências do usuário', error);\r\n }\r\n };\r\n\r\n const reducer = (state: ICard[], action: Action): ICard[] => {\r\n switch (action.type) {\r\n case 'TOGGLE_ACTIVE':\r\n return state.map((card) => (card.type === action.payload ? { ...card, isActive: !card.isActive } : card));\r\n case 'TOGGLE_EXPANDED':\r\n return state.map((card) => (card.type === action.payload ? { ...card, isExpanded: !card.isExpanded } : card));\r\n case 'CHANGE_ORDER': {\r\n const { dragIndex, hoverIndex } = action.payload;\r\n const dragCard = state[dragIndex];\r\n const newCards = [...state];\r\n newCards.splice(dragIndex, 1);\r\n newCards.splice(hoverIndex, 0, dragCard);\r\n return newCards.map((card, index) => ({ ...card, position: index }));\r\n }\r\n case 'SAVE_STATE':\r\n submitCards(state);\r\n return state;\r\n case 'RESET_ALL':\r\n if (action.payload.length === 0) {\r\n return [];\r\n }\r\n\r\n return action.payload;\r\n default:\r\n return state;\r\n }\r\n };\r\n\r\n const [cards, dispatch] = useReducer(reducer, []);\r\n\r\n useEffect(() => {\r\n if (user && user.user) {\r\n (async () => {\r\n try {\r\n const response = await apiCall('/users/get-prefs-overview', { userId: user.user });\r\n if (response) {\r\n const orderedCards: any = response.prefs.sort((a: any, b: any) => a.position - b.position);\r\n dispatch({ type: 'RESET_ALL', payload: orderedCards });\r\n }\r\n } catch (error) {\r\n console.error('Erro ao obter preferências do usuário', error);\r\n }\r\n })();\r\n }\r\n }, [user.user]);\r\n\r\n const contextValue = useMemo(() => ({ cards, dispatch }), [cards, dispatch]);\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport const useCard = () => {\r\n const context = useContext(CardContext);\r\n if (!context) {\r\n throw new Error('useCardContext deve ser usado dentro de um CardProvider');\r\n }\r\n return context;\r\n};\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"TopTitle\":\"styles_TopTitle__3So-B\",\"TopDate\":\"styles_TopDate__269L0\",\"ChartContainer1\":\"styles_ChartContainer1__13vui\",\"ChartContainer\":\"styles_ChartContainer__2faUu\",\"HealthButtonSelected\":\"styles_HealthButtonSelected__3qSgE\",\"HealthButtonUnSelected\":\"styles_HealthButtonUnSelected__8WTHc\",\"HealthButtonIconContainer\":\"styles_HealthButtonIconContainer__2g3pU\",\"HealthButtonCount\":\"styles_HealthButtonCount__1RyO0\",\"HealthButtonText\":\"styles_HealthButtonText__1-KYq\",\"HorizHealthSubContainer\":\"styles_HorizHealthSubContainer__o_bo8\",\"HorizHealthSubTop\":\"styles_HorizHealthSubTop__dvAnz\",\"HealthCircle\":\"styles_HealthCircle__3xbND\",\"TooltipLevelContainer\":\"styles_TooltipLevelContainer__3gwxh\",\"TooltipIconContainer\":\"styles_TooltipIconContainer__10Cqo\",\"OverLay\":\"styles_OverLay__3WKoQ\",\"StyledBox\":\"styles_StyledBox__27Mxb\",\"StyledBox2\":\"styles_StyledBox2__39qYn\",\"BarContainer\":\"styles_BarContainer__2d1-y\",\"BarSubContainer\":\"styles_BarSubContainer__2c2Xu\",\"HorizontalGrid\":\"styles_HorizontalGrid__1oAxn\",\"VerticalGrid\":\"styles_VerticalGrid__3PHTU\",\"VerticalLabels\":\"styles_VerticalLabels__1tIHQ\",\"tooltipHolder\":\"styles_tooltipHolder__3oST1\",\"tooltip2Title\":\"styles_tooltip2Title__3WomO\"};","import styled from 'styled-components';\r\n\r\nimport { colors } from '../../../styles/colors';\r\n\r\nconst defineLabelColor = (error, disabled, readonly) => {\r\n if (error) {\r\n return colors.Red;\r\n }\r\n if (disabled) {\r\n return colors.Grey200;\r\n }\r\n if (readonly) {\r\n return '#8f91b7';\r\n }\r\n return colors.Blue700;\r\n};\r\n\r\nexport const Container = styled.div`\r\n position: relative;\r\n border-radius: 5px;\r\n width: 100%;\r\n`;\r\n\r\nexport const BaseSpan = `\r\n color: ${colors.Blue300};\r\n font-size: 0.75em;\r\n font-weight: bold;\r\n top: 6px;\r\n`;\r\n\r\nexport const Base = styled.input<{ error }>(\r\n ({ error }) => `\r\n border: none;\r\n outline: none;\r\n min-height: 48px;\r\n font-size: 1em;\r\n border-radius: 5px;\r\n padding: 20px 35px 10px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n border: 0.7px solid ${error ? `${colors.Red}` : `${colors.GreyInputBorder}`}\r\n\r\n &:focus {\r\n color: ${colors.Grey400}\r\n }\r\n\r\n &::placeholder {\r\n font-size: 12px;\r\n color: ${colors.GreyInputPlaceholder};\r\n }\r\n`,\r\n);\r\n\r\nexport const Label = styled.label<{ error, disabled, isInputFilled, readonly }>(\r\n ({\r\n error, disabled, isInputFilled, readonly,\r\n }) => `\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n cursor: ${disabled ? 'not-allowed' : 'default'};\r\n span {\r\n color: ${defineLabelColor(error, disabled, readonly)};\r\n transition: 0.2s all ease-in-out;\r\n font-size: 1em;\r\n left: 15px;\r\n font-weight: bold;\r\n font-size: 12px;\r\n position: absolute;\r\n cursor: auto;\r\n ${isInputFilled ? BaseSpan : 'top: calc(50% - 18px);'}\r\n }\r\n &:focus-within {\r\n span {\r\n ${BaseSpan}\r\n }\r\n }\r\n `,\r\n);\r\n\r\nexport const Error = styled.span`\r\n color: ${colors.Red};\r\n display: block;\r\n margin: 5px;\r\n text-align: left;\r\n font-size: 0.75em;\r\n height: 24px;\r\n`;\r\n","import {\r\n Base, Container, Label, Error,\r\n} from './styles';\r\n\r\ntype InputProps = {\r\n label?: string;\r\n formLabel: string;\r\n isInputFilled?: any;\r\n register: any;\r\n validation: any;\r\n error?: string;\r\n placeholder?: string;\r\n disabled?: boolean;\r\n readonly?: boolean;\r\n handleChange?: (e: any) => void;\r\n value?: string;\r\n};\r\n\r\nexport const Input = ({\r\n isInputFilled,\r\n label,\r\n formLabel,\r\n register,\r\n validation,\r\n error,\r\n placeholder,\r\n disabled,\r\n readonly,\r\n handleChange,\r\n value,\r\n ...props\r\n}: InputProps): JSX.Element => (\r\n \r\n \r\n {error && {error}}\r\n \r\n);\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"TopTitle\":\"styles_TopTitle__1JJj1\",\"TopDate\":\"styles_TopDate__3zHI6\",\"ChartContainer1\":\"styles_ChartContainer1__10cOw\",\"ChartContainer\":\"styles_ChartContainer__1juof\",\"HealthButtonLink\":\"styles_HealthButtonLink__1Q3af\",\"HealthButtonSelected\":\"styles_HealthButtonSelected__3UNTL\",\"HealthButtonSelectedMobile\":\"styles_HealthButtonSelectedMobile__2JwJ6\",\"HealthButtonUnSelected\":\"styles_HealthButtonUnSelected__2UhW-\",\"HealthButtonUnSelectedMobile\":\"styles_HealthButtonUnSelectedMobile__2TL5f\",\"HealthButtonIconContainer\":\"styles_HealthButtonIconContainer__3maPb\",\"HealthButtonCount\":\"styles_HealthButtonCount__3SOkh\",\"HealthButtonText\":\"styles_HealthButtonText__1nX4O\",\"HorizHealthSubContainer\":\"styles_HorizHealthSubContainer__1uaOB\",\"HorizHealthSubTop\":\"styles_HorizHealthSubTop__3yqH3\",\"HealthCircle\":\"styles_HealthCircle__33qUw\",\"TooltipLevelContainer\":\"styles_TooltipLevelContainer__-GMnq\",\"TooltipIconContainer\":\"styles_TooltipIconContainer__1sgTG\",\"OverLay\":\"styles_OverLay__QV-Pj\",\"Icon\":\"styles_Icon__1rLaT\",\"StyledBox\":\"styles_StyledBox__2tR7-\",\"StyledBox2\":\"styles_StyledBox2__3VLx8\",\"BarContainer\":\"styles_BarContainer__1aj2h\",\"BarSubContainer\":\"styles_BarSubContainer__3sHzt\",\"HorizontalGrid\":\"styles_HorizontalGrid__dNS3O\",\"VerticalGrid\":\"styles_VerticalGrid__3Ux_q\",\"VerticalLabels\":\"styles_VerticalLabels__131jg\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"ChartContainer1\":\"styles_ChartContainer1__42h5m\",\"ChartContainer\":\"styles_ChartContainer__14CYD\",\"OverLay\":\"styles_OverLay__3o4eG\",\"StyledBox\":\"styles_StyledBox__1iW_N\",\"StyledBox2\":\"styles_StyledBox2__w4Cd9\",\"MonthBarContainer\":\"styles_MonthBarContainer__3gSwc\",\"DayBarContainer\":\"styles_DayBarContainer__7aisB\",\"BarContainerReduced\":\"styles_BarContainerReduced__2c3fZ\",\"XAxis\":\"styles_XAxis__1zHU3\",\"XAxisReduced\":\"styles_XAxisReduced__1lwrF\",\"BarSubContainer\":\"styles_BarSubContainer__2lisg\",\"BarSubContainerMultipleMeters\":\"styles_BarSubContainerMultipleMeters__S56AS\",\"HorizontalGrid\":\"styles_HorizontalGrid__q-VN1\",\"Baseline\":\"styles_Baseline__3Iy8G\",\"VerticalGrid\":\"styles_VerticalGrid__1Mmph\",\"VerticalLabels\":\"styles_VerticalLabels__1Vc02\",\"tooltipHolder\":\"styles_tooltipHolder__gc4z2\",\"tooltipCustom\":\"styles_tooltipCustom__2BHzN\"};","/* eslint-disable import/no-named-as-default-member */\r\n/* eslint-disable import/no-named-as-default */\r\nimport axios, { AxiosRequestConfig } from 'axios';\r\n\r\nimport ThenArg from 'helpers/ThenArg';\r\n\r\nimport API_private from './types/api-private';\r\nimport API_public from './types/api-public';\r\nimport API_uploadService from './types/api-upload-service';\r\nimport { apmElastic } from 'helpers/apmElastic';\r\n\r\nconst isProductionFront = [\r\n 'celsius360.dielenergia.com',\r\n 'dap.dielenergia.com',\r\n 'dash.dielenergia.com',\r\n 'energia.dielenergia.com',\r\n 'hvac.dielenergia.com',\r\n].includes(window.location.host);\r\n\r\n// localStorage.setItem('@diel:custom-backend', 'http://localhost:8443');\r\n// localStorage.setItem('@diel:custom-backend', 'https://api-qa.dielenergia.com');\r\n\r\nexport const __API__ = localStorage.getItem('@diel:custom-backend')\r\n || process.env.REACT_APP_API_URL\r\n || 'http://api.unknown-host'; // force error\r\n\r\nlet _backendDescriptionToShow: string|null = null;\r\ntry {\r\n const apiHostName = new URL(__API__).hostname;\r\n switch (apiHostName) {\r\n case 'api.dielenergia.com': { _backendDescriptionToShow = 'SERVIDOR DE PRODUÇÃO!'; break; }\r\n case 'api-qa.dielenergia.com': { _backendDescriptionToShow = 'QA'; break; }\r\n case 'api-test.dielenergia.com': { _backendDescriptionToShow = 'TIMEZONE'; break; }\r\n case 'api-dev-nav.dielenergia.com': { _backendDescriptionToShow = 'DEV-NAV'; break; }\r\n case 'api-demo.dielenergia.com': { _backendDescriptionToShow = 'DEMONSTRAÇÃO'; break; }\r\n default: { _backendDescriptionToShow = 'SERVIDOR DE TESTES'; break; }\r\n }\r\n\r\n if (isProductionFront && (apiHostName === 'api.dielenergia.com')) { _backendDescriptionToShow = null; }\r\n} catch (err) { console.error(err); }\r\n\r\nexport const backendDescriptionToShow = _backendDescriptionToShow;\r\n\r\nexport const __WS_URL__ = process.env.REACT_APP_WEBSOCKET_URL || `ws${__API__.substring(4)}:8010/wsfront`;\r\n\r\nconst defaultOptions = {\r\n baseURL: __API__,\r\n};\r\n\r\nconst instance = axios.create(defaultOptions);\r\n\r\ninstance.interceptors.request.use((config) => {\r\n if (localStorage.getItem('@diel:token')) {\r\n config.headers.Authorization = `Bearer ${localStorage.getItem('@diel:token')}`;\r\n }\r\n return config;\r\n});\r\n\r\ninstance.interceptors.response.use(\r\n (response) => response,\r\n (error) => {\r\n if (error && error.response && error.response.status === 401) {\r\n localStorage.clear();\r\n }\r\n if (\r\n error\r\n && error.response\r\n && error.response.status === 401\r\n && window.location.pathname !== '/login'\r\n && window.location.pathname !== '/esqueceu-senha'\r\n && window.location.pathname !== '/configuracoes/alterar-senha'\r\n ) {\r\n window.location.href = '/login';\r\n } else {\r\n return Promise.reject(error);\r\n }\r\n },\r\n);\r\n\r\nexport function reqWithCredentials(authHeader: string, route: string, body?: string|{}) {\r\n const config: AxiosRequestConfig = {\r\n method: 'post',\r\n baseURL: __API__,\r\n url: route,\r\n data: body,\r\n headers: {},\r\n };\r\n if (authHeader && authHeader.length > 10) config.headers.Authorization = authHeader;\r\n return axios(config);\r\n}\r\n\r\nexport function unicodeBase64(str: string) {\r\n const encoded = encodeURIComponent(str);\r\n const equivString = encoded.replace(/%([0-9A-F]{2})/g, (match, p1) => String.fromCharCode(parseInt(`0x${p1}`, 16)));\r\n return btoa(equivString);\r\n}\r\n\r\nasync function dielApiPost(route: string, body?: any) {\r\n const token = localStorage.getItem('@diel:token');\r\n const prefsStorage = (localStorage.getItem('@diel:profile') && JSON.parse(localStorage.getItem('@diel:profile')!).prefs) || undefined;\r\n const formatLanguage = (prefsStorage && JSON.parse(prefsStorage).language) || 'pt';\r\n const authorization = (token && `Bearer ${token}`);\r\n apmElastic(route);\r\n\r\n const config: AxiosRequestConfig = {\r\n method: 'post',\r\n baseURL: __API__,\r\n url: route,\r\n data: body,\r\n headers: {\r\n 'Accept-Language': formatLanguage || undefined,\r\n },\r\n };\r\n if (authorization && authorization.length > 10) config.headers.Authorization = authorization;\r\n return axios(config);\r\n}\r\n\r\ntype FullApi = API_private & API_public & API_uploadService;\r\nexport type ApiResps = {\r\n [Route in keyof FullApi]: ThenArg>;\r\n};\r\nexport type ApiParams = {\r\n [Route in keyof FullApi]: Parameters[0];\r\n};\r\n\r\nexport function apiCall(key: Key, reqParams?: Parameters[0]): ReturnType {\r\n return dielApiPost(key, reqParams).then((r) => r.data) as any;\r\n}\r\n\r\nexport function apiCall2(route: Key, reqParams: Parameters[0], authToken: string): ReturnType {\r\n const config: AxiosRequestConfig = {\r\n method: 'post',\r\n baseURL: __API__,\r\n url: route,\r\n data: reqParams,\r\n headers: {},\r\n };\r\n if (authToken && authToken.length > 10) config.headers.Authorization = authToken;\r\n return axios(config).then((r) => r.data) as any;\r\n // .catch((e) => {\r\n // return checkAxiosError(e);\r\n // })\r\n}\r\n\r\nfunction toFormData(reqParams: { [name: string]: string|Blob|Array|Array|null|number|boolean }) {\r\n const formData = new FormData();\r\n for (const [propName, propVal] of Object.entries(reqParams)) {\r\n if (Array.isArray(propVal)) {\r\n for (const propValItem of propVal) {\r\n formData.set(propName, propValItem);\r\n }\r\n } else if (propVal != null) {\r\n if (typeof propVal === 'number' || typeof propVal === 'boolean') {\r\n formData.set(propName, propVal.toString());\r\n } else {\r\n formData.set(propName, propVal);\r\n }\r\n }\r\n }\r\n return formData;\r\n}\r\n\r\nexport const apiSpecial = {\r\n '/devs/upload-new-firmware-version': (reqParams: ApiParams['/devs/upload-new-firmware-version']&{ file: Blob }) => instance.post('/devs/upload-new-firmware-version', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-dacs-batch': (reqParams: ApiParams['/check-client-dacs-batch']&{ file: Blob }) => instance.post('/check-client-dacs-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/export-client-dacs-batch-input': (reqParams: ApiParams['/export-client-dacs-batch-input']) => instance.post('/export-client-dacs-batch-input', reqParams, { responseType: 'blob' }),\r\n '/check-client-duts-batch': (reqParams: ApiParams['/check-client-duts-batch']&{ file: Blob }) => instance.post('/check-client-duts-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-dmas-batch': (reqParams: ApiParams['/check-client-dmas-batch']&{ file: Blob }) => instance.post('/check-client-dmas-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-dams-batch': (reqParams: ApiParams['/check-client-dams-batch']&{ file: Blob }) => instance.post('/check-client-dams-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-supervisors-batch': (reqParams: ApiParams['/check-client-supervisors-batch']&{ file: Blob }) => instance.post('/check-client-supervisors-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-units-batch': (reqParams: ApiParams['/check-client-units-batch']&{ file: Blob }) => instance.post('/check-client-units-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-roomtypes-batch': (reqParams: ApiParams['/check-client-roomtypes-batch']&{ file: Blob }) => instance.post('/check-client-roomtypes-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-assets-batch': (reqParams: ApiParams['/check-client-assets-batch']&{ file: Blob }) => instance.post('/check-client-assets-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/check-client-unified-batch': (reqParams: ApiParams['/check-client-unified-batch']&{ file: Blob }) => instance.post('/check-client-unified-batch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/upload-dri-varscfg': (reqParams: ApiParams['/upload-dri-varscfg']&{ file: Blob }) => instance.post('/upload-dri-varscfg', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/dac/export-unit-report': (reqParams: ApiParams['/dac/export-unit-report']) => instance.post('/dac/export-unit-report', reqParams, { responseType: 'blob' }),\r\n '/dac/export-preventive-report': (reqParams: ApiParams['/dac/export-preventive-report']) => instance.post('/dac/export-preventive-report', reqParams, { responseType: 'blob' }),\r\n '/export-dacs-faults': (reqParams: ApiParams['/export-dacs-faults']) => instance.post('/export-dacs-faults', reqParams, { responseType: 'blob' }),\r\n '/devtools/export-dacs-info': (reqParams: ApiParams['/devtools/export-dacs-info']) => instance.post('/devtools/export-dacs-info', reqParams, { responseType: 'blob' }),\r\n '/devtools/export-duts-info': (reqParams: ApiParams['/devtools/export-duts-info']) => instance.post('/devtools/export-duts-info', reqParams, { responseType: 'blob' }),\r\n '/devtools/export-dams-info': (reqParams: ApiParams['/devtools/export-dams-info']) => instance.post('/devtools/export-dams-info', reqParams, { responseType: 'blob' }),\r\n '/analise-integrada-export': (reqParams: ApiParams['/analise-integrada-export']) => instance.post('/analise-integrada-export', reqParams, { responseType: 'blob' }),\r\n '/unit/export-real-time': (reqParams: ApiParams['/unit/export-real-time']) => instance.post('/unit/export-real-time', reqParams, { responseType: 'blob' }),\r\n '/unit/upload-ground-plan': (reqParams: ApiParams['/unit/upload-ground-plan']&{ photo: Blob }) => instance.post('/unit/upload-ground-plan', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/upload-service/upload-image': (reqParams: ApiParams['/upload-service/upload-image']&{ file: Blob }) => instance.post('/upload-service/upload-image', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n '/upload-service/upload-sketch': (reqParams: ApiParams['/upload-service/upload-sketch']&{ file: Blob }) => instance.post('/upload-service/upload-sketch', toFormData(reqParams), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data),\r\n};\r\n\r\ninterface ApiWithUpload {\r\n '/devs/upload-new-firmware-version': { file: Blob },\r\n '/check-client-dacs-batch': { file: Blob },\r\n '/check-client-duts-batch': { file: Blob },\r\n '/check-client-dmas-batch': { file: Blob },\r\n '/check-client-dams-batch': { file: Blob },\r\n '/check-client-dris-batch': { file: Blob },\r\n '/check-client-supervisors-batch': { file: Blob },\r\n '/check-client-units-batch': { file: Blob },\r\n '/check-client-roomtypes-batch': { file: Blob },\r\n '/check-client-assets-batch': { file: Blob },\r\n '/check-client-invoices-batch': { file: Blob },\r\n '/check-client-unified-batch': { file: Blob },\r\n '/upload-service/upload-sketch': { file: Blob },\r\n '/upload-dri-varscfg': { file: Blob|null },\r\n '/vt/set-vt-info': { PLANTABAIXA_IMG: string[], AUTORIZACAO_IMG: string[] },\r\n '/vt/update-vt-info': { PLANTABAIXA_IMG: string[], AUTORIZACAO_IMG: string[] },\r\n '/unit/upload-ground-plan': { photo: Blob },\r\n '/upload-service/upload-image': { file: Blob }\r\n}\r\nexport function apiCallFormData(key: Key, reqParams: Parameters[0], files: ApiWithUpload[Key]) {\r\n return instance.post(key, toFormData({ ...reqParams, ...files }), { headers: { 'content-type': 'multipart-form-data' } }).then((r) => r.data);\r\n}\r\n\r\ninterface ApiWithDownload {\r\n '/export-client-dacs-batch-input': true,\r\n '/dac/export-unit-report': true,\r\n '/dac/export-preventive-report': true,\r\n '/export-dacs-faults': true,\r\n '/devtools/export-dacs-info': true,\r\n '/devtools/export-duts-info': true,\r\n '/devtools/export-dams-info': true,\r\n '/analise-integrada-export': true,\r\n '/export-client-assets-batch-input': true,\r\n '/export-client-unified-batch-input': true,\r\n '/invoice/get-invoice-pdf': true,\r\n '/upload-service/download-sketches': true,\r\n '/devtools/brokers-monitor-disconnected-devs': true,\r\n '/devtools/export-duts-mean-temperatures': true,\r\n '/get-assets-sheet-manual': true,\r\n '/get-private-unit-report-file': true,\r\n '/devtools/export-duts-temperatures': true,\r\n '/devtools/export-waters-usages': true,\r\n '/unified/export-unified-example': true,\r\n '/unit/export-real-time': true,\r\n '/dri/export-chiller-alarms-hist': true,\r\n '/energy/export-energy-analysis-list': true,\r\n '/machines/export-machines-analysis-list': true,\r\n}\r\nexport function apiCallDownload(key: Key, reqParams: Parameters[0]) {\r\n return instance.post(key, reqParams, { responseType: 'blob' });\r\n}\r\n","import { colors } from '../styles/colors';\r\n\r\ntype TrashIconProps = {\r\n color?: string;\r\n width?: string;\r\n}\r\n\r\nexport const TrashIcon = ({ width = '24px', color = colors.Grey400, ...props }: TrashIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nexport const SmallTrashIcon = ({\r\n width = '20px', color = 'black', ...props\r\n}: TrashIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { createContext, useState } from 'react';\r\n\r\ntype MenuType = boolean;\r\n\r\ntype PropsMenuContext = {\r\n menuToogle: MenuType,\r\n setMenuToogle: React.Dispatch>;\r\n};\r\n\r\nconst DEFAULTVALUEMENU = {\r\n menuToogle: true,\r\n setMenuToogle: () => {},\r\n};\r\n\r\nconst MenuContext = createContext(DEFAULTVALUEMENU);\r\n\r\nexport default MenuContext;\r\n","type LogoIconProps = {\r\n};\r\n\r\nexport const LogoIcon = ({ ...props }: LogoIconProps): JSX.Element => \"Logo\";\r\n","type HamburgerIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const HamburgerIcon = ({ color, ...props }: HamburgerIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '../styles/colors';\r\n\r\ntype SpeedometerIconProps = {\r\n percentage?: number;\r\n}\r\n\r\nexport const SpeedometerIcon = ({ percentage = 100, ...props }: SpeedometerIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {percentage}\r\n {' '}\r\n %\r\n \r\n \r\n);\r\n\r\nconst Container = styled.div``;\r\n\r\nconst Chart = styled.div`\r\n width: 100%;\r\n margin-top: 50%;\r\n padding: 0 40px;\r\n position: relative;\r\n`;\r\n\r\nconst Svg = styled.svg`\r\n width: calc(100% - 80px);\r\n position: absolute;\r\n bottom: 0;\r\n`;\r\n\r\nconst Pointer = styled.span<{ percentage }>`\r\n width: 20%;\r\n height: 2px;\r\n position: absolute;\r\n left: calc(50% + 1px);\r\n bottom: 0;\r\n background-color: ${colors.DarkGrey};\r\n transform: rotate(${({ percentage }) => (percentage ? `-${percentage}` : 0)}deg);\r\n transform-origin: bottom left;\r\n &:before {\r\n width: 10px;\r\n height: 10px;\r\n background-color: ${colors.DarkGrey};\r\n content: '';\r\n display: block;\r\n border-radius: 50%;\r\n margin: 0;\r\n padding: 0;\r\n transform: translateY(-40%);\r\n }\r\n`;\r\n\r\nconst Percentage = styled.span<{ percentage }>`\r\n display: inline-block;\r\n text-align: center;\r\n width: 100%;\r\n font-size: 2em;\r\n font-weight: bold;\r\n color: ${({ percentage }) => (percentage <= 25 ? colors.Red : percentage <= 50 ? colors.Orange : percentage <= 75 ? colors.Yellow : colors.Green)};\r\n`;\r\n","type GlobeIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const GlobeIcon = ({ color }: GlobeIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ListIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const ListIcon = ({ color }: ListIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type WarningIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const WarningIcon = ({ color, ...props }: WarningIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type GearIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const GearIcon = ({ color, ...props }: GearIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ExitIconProps = {\r\n colors?: string;\r\n}\r\n\r\nexport const ExitIcon = ({ colors }: ExitIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type BellIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const BellIcon = ({ color, ...props }: BellIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","interface ExpandIconProps extends React.SVGProps {\r\n color?: string;\r\n className?: string;\r\n style?: {};\r\n}\r\n\r\nexport const ExpandIcon = ({\r\n color, className, style, ...props\r\n}: ExpandIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","interface NewExpandIconProps extends React.SVGProps {\r\n color?: string;\r\n className?: string;\r\n style?: {};\r\n }\r\n\r\nexport const NewExpandIcon = ({\r\n color, className, style, ...props\r\n}: NewExpandIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n","type GraphIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const GraphIcon = ({ color, ...props }: GraphIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type NotepadIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const NotepadIcon = ({ color, ...props }: NotepadIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type PeopleIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PeopleIcon = ({ color, ...props }: PeopleIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type CheckboxIconProps = {\r\n color?: string;\r\n size?: number;\r\n}\r\n\r\nexport const CheckboxIcon = ({ color, size }: CheckboxIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","import { CSSProperties } from 'react';\r\n\r\ntype InfoIconProps = {\r\n color?: string;\r\n width?: string;\r\n style?: CSSProperties;\r\n};\r\n\r\nexport const InfoIcon = ({ width, color, ...props }: InfoIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type RealTimeIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const RealTimeIcon = ({ color, ...props }: RealTimeIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype CronometerIconProps = {\r\n color?: string;\r\n width?: string;\r\n}\r\n\r\nexport const CronometerIcon = ({ color = colors.Grey400, width = '174px', ...props }: CronometerIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ClockIconProps = {\r\n color?: string;\r\n size?: number;\r\n}\r\n\r\nexport const ClockIcon = ({ color, size = 20, ...props }: ClockIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype CO2IconProps = {\r\n width?: string;\r\n height?: string;\r\n color?: string;\r\n style?: {};\r\n}\r\n\r\nexport const CO2Icon = ({\r\n width = '24px',\r\n height = '24px',\r\n color = colors.Grey400,\r\n ...props\r\n}: CO2IconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nexport const CO2IconV2 = ({\r\n width = '27px',\r\n height = '30px',\r\n color = '#464555',\r\n ...props\r\n}: CO2IconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type PerformanceIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PerformanceIcon = ({ color, ...props }: PerformanceIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type PaperIconProps = {\r\n}\r\n\r\nexport const PaperIcon = ({ ...props }: PaperIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype CalendarIconProps = {\r\n color?: string;\r\n width?: string;\r\n}\r\n\r\nexport const CalendarIcon = ({ color = colors.Grey400, width = '24px', ...props }: CalendarIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type CalendarSimpleIconProps = {\r\n color?: string;\r\n width?: string;\r\n}\r\n\r\nexport const CalendarSimpleIcon = ({ color, width = '18px', ...props }: CalendarSimpleIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type CalendarPlusIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const CalendarPlusIcon = ({ color }: CalendarPlusIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type ArrowBackIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ArrowBackIcon = ({ color }: ArrowBackIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ArrowNextIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ArrowNextIcon = ({ color }: ArrowNextIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type TimeIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const TimeIcon = ({ color, ...props }: TimeIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype ArrowIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ArrowIcon = ({ color, ...props }: ArrowIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type AddImageIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const AddImageIcon = ({ color, ...props }: AddImageIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype TermometerIconProps = {\r\n variant?: string;\r\n width?: string;\r\n color?: string;\r\n children?: string;\r\n}\r\n\r\nexport const TermometerIcon = ({\r\n variant, width = '24px', color = colors.Grey400, ...props\r\n}: TermometerIconProps): JSX.Element => {\r\n switch (variant) {\r\n case 'primary':\r\n return (\r\n \r\n \r\n \r\n );\r\n default:\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n};\r\n","import { colors } from '../styles/colors';\r\n\r\ntype TermometerSubIconProps = {\r\n width?: string;\r\n color?: string;\r\n}\r\n\r\nexport const TermometerSubIcon = ({ width = '24px', color = colors.Grey400 }: TermometerSubIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype HumidityIconProps = {\r\n color?: string;\r\n variant?: string;\r\n width?: string;\r\n};\r\n\r\nexport const HumidityIcon = ({\r\n variant, width = '24px', color = colors.Grey400, ...props\r\n}: HumidityIconProps): JSX.Element => {\r\n switch (variant) {\r\n case 'primary':\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n default:\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n};\r\n","type PressureIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PressureIcon = ({ color, ...props }: PressureIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type SwitchIconProps = {\r\n}\r\n\r\nexport const SwitchIcon = ({ ...props }: SwitchIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from 'styles/colors';\r\n\r\ninterface CloseIconProps extends React.SVGProps {\r\n color?: string;\r\n size?: string;\r\n onClick?: () => void;\r\n}\r\n\r\nexport const CloseIcon = ({\r\n size = '10px', color = colors.Grey400, onClick, ...props\r\n}: CloseIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type DownloadImageIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const DownloadImageIcon = ({ color, ...props }: DownloadImageIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type TimerIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const TimerIcon = ({ color, ...props }: TimerIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { useState, useEffect } from 'react';\r\n\r\nimport { RadialBar, RadialBarChart } from 'recharts';\r\n\r\nimport { colors } from '../styles/colors';\r\n\r\ntype RadialChartIconProps = {\r\n data?: any;\r\n fill?: string;\r\n}\r\n\r\ntype GraphData = {\r\n name: string;\r\n value: number;\r\n fill: string;\r\n};\r\n\r\nexport const RadialChartIcon = ({ data = 0, fill }: RadialChartIconProps): JSX.Element => {\r\n const [graphData, setGraphData] = useState([]);\r\n\r\n useEffect(() => {\r\n setGraphData([\r\n {\r\n name: '18-24',\r\n value: 24,\r\n fill: colors.White,\r\n },\r\n {\r\n name: '18-24',\r\n value: 24,\r\n fill: colors.White,\r\n },\r\n {\r\n name: '18-24',\r\n value: 24,\r\n fill: colors.White,\r\n },\r\n {\r\n name: 'unknow',\r\n value: data,\r\n fill: (fill || colors.BlueChart),\r\n },\r\n ]);\r\n }, [data]);\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n","type PowerIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PowerIcon = ({ color }: PowerIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type KwhIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const KwhIcon = ({ color }: KwhIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype ButtonPowerIconProps = {\r\n color?: string;\r\n width?: string;\r\n}\r\n\r\nexport const ButtonPowerIcon = ({ width = '160px', color = colors.Grey400, ...props }: ButtonPowerIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type SubCoolingIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const SubCoolingIcon = ({ color, ...props }: SubCoolingIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type SuperHeatingIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const SuperHeatingIcon = ({ color, ...props }: SuperHeatingIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type AlertIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const AlertIcon = ({ color, ...props }: AlertIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype AddIconProps = {\r\n color?: string;\r\n size?: string;\r\n}\r\n\r\nexport const AddIcon = ({ color = colors.Grey400, size = '12', ...props }: AddIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type HistoryIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const HistoryIcon = ({ color, ...props }: HistoryIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type DeleteOutlineIconProps = {\r\n colors?: string;\r\n size?: string;\r\n\r\n}\r\n\r\nexport const DeleteOutlineIcon = ({ colors, size, ...props }: DeleteOutlineIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type DeactivateUserIconProps = {\r\n colors?: string;\r\n size?: string;\r\n}\r\n\r\nexport const DeactivateUserIcon = ({ colors, size, ...props }: DeactivateUserIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n","type ReactivateUserIconProps = {\r\n colors?: string;\r\n size?: string;\r\n}\r\n\r\nexport const ReactivateUserIcon = ({ colors, size, ...props }: ReactivateUserIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype EditIconProps = {\r\n color?: string;\r\n variant?: string;\r\n width?: string;\r\n}\r\n\r\nexport const EditIcon = ({\r\n variant, width = '24px', color = colors.Grey400, ...props\r\n}: EditIconProps): JSX.Element => {\r\n switch (variant) {\r\n case 'secondary':\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n case 'note':\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n default:\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n }\r\n};\r\n","type EnergyIconProps = {\r\n color?: string;\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const EnergyIcon = ({ color, height, width }: EnergyIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype SaveIconProps = {\r\n color?: string;\r\n width?: string;\r\n}\r\n\r\nexport const SaveIcon = ({ width = '24px', color = colors.Grey400, ...props }: SaveIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\n\r\ntype HealthMeterIconProps = {\r\n level?: number;\r\n};\r\n\r\nexport const HealthMeterIcon = ({ level = 100, ...props }: HealthMeterIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n\r\n {level === 25 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {level === 50 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {level === 75 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n {level === 100 && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n 1\r\n \r\n \r\n \r\n \r\n 2\r\n \r\n \r\n \r\n \r\n 3\r\n \r\n \r\n \r\n \r\n 4\r\n \r\n \r\n \r\n);\r\n\r\n// rect style=\"fill:#00FF00;fill-opacity:1;stroke:none;\"\r\nconst RectOpaque = styled.rect`\r\n fill: ${({ color }) => color};\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n// rect style=\"fill:#000000;fill-opacity:0.3;stroke:none;\"\r\nconst RectShadow = styled.rect`\r\n fill: #000000;\r\n fill-opacity: 0.3;\r\n stroke: none;\r\n`;\r\n// text style=\"font-weight:normal;font-size:8px;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;\"\r\nconst Text = styled.text<{ bold }>`\r\n font-weight: ${({ bold }) => (bold ? 'bold' : 'normal')};\r\n font-size: 0.5em;\r\n font-family: 'Inter';\r\n fill: #000000;\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n// tspan style=\"stroke-width:0.3;\"\r\nconst TSpan = styled.tspan`\r\n stroke-width: 0.3;\r\n`;\r\n// path style=\"fill:#000000;fill-opacity:1;stroke:none;\"\r\nconst IconPath = styled.path`\r\n fill: #000000;\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\ntype HealthIndexRedIconProps = {\r\n}\r\n\r\nexport const HealthIndexRedIcon = ({ ...props }: HealthIndexRedIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nconst IconPath = styled.path`\r\n fill: #000000;\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\ntype HealthIndexOrangeIconProps = {\r\n}\r\n\r\nexport const HealthIndexOrangeIcon = ({ ...props }: HealthIndexOrangeIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nconst IconPath = styled.path`\r\n fill: #000000;\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\ntype HealthIndexYellowIconProps = {\r\n}\r\n\r\nexport const HealthIndexYellowIcon = ({ ...props }: HealthIndexYellowIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nconst IconPath = styled.path`\r\n fill: #000000;\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\ntype HealthIndexGreenIconProps = {\r\n}\r\n\r\nexport const HealthIndexGreenIcon = ({ ...props }: HealthIndexGreenIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nconst IconPath = styled.path`\r\n fill: #000000;\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n","type HealthDisabledIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const HealthDisabledIcon = ({ color = '#4e4e4e' }: HealthDisabledIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\n\r\ntype MagnifyingIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const MagnifyingIcon = ({ color, ...props }: MagnifyingIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n\r\nconst CCircle = styled.circle`\r\n fill: none;\r\n fill-opacity: 1;\r\n stroke: ${({ color }) => color || '#000000'};\r\n stroke-width: 0.44591081;\r\n stroke-miterlimit: 4;\r\n stroke-dasharray: none;\r\n stroke-opacity: 1;\r\n`;\r\nconst CPath = styled.path`\r\n fill: none;\r\n stroke: ${({ color }) => color || '#000000'};\r\n stroke-width: 0.44591081;\r\n stroke-linecap: butt;\r\n stroke-linejoin: miter;\r\n stroke-miterlimit: 4;\r\n stroke-dasharray: none;\r\n stroke-opacity: 1;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\ntype ClientsIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ClientsIcon = ({ color, ...props }: ClientsIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nconst CPath = styled.path`\r\n fill: ${({ color }) => color || '#000000'};\r\n fill-opacity: 1;\r\n stroke: none;\r\n stroke-width: 0.0237061;\r\n stroke-miterlimit: 4;\r\n stroke-dasharray: none;\r\n stroke-opacity: 1;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\ntype AdminIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const AdminIcon = ({ color, ...props }: AdminIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nconst CPath = styled.path`\r\n fill: ${({ color }) => color || '#000000'};\r\n fill-opacity: 1;\r\n stroke: none;\r\n stroke-width: 0.0237061;\r\n stroke-miterlimit: 4;\r\n stroke-dasharray: none;\r\n stroke-opacity: 1;\r\n`;\r\n","type SearchIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const SearchIcon = ({ color = 'black', ...props }: SearchIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type SearchInputIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const SearchInputIcon = ({ color }: SearchInputIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\n\r\ntype ExportDocumentIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ExportDocumentIcon = ({ color, ...props }: ExportDocumentIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nconst IconPath = styled.path`\r\n fill-opacity: 1;\r\n stroke: none;\r\n`;\r\n","type OutOfSpecificationIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const OutOfSpecificationIcon = ({ color = 'white', ...props }: OutOfSpecificationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type UrgentMaintenanceIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const UrgentMaintenanceIcon = ({ color = 'white', ...props }: UrgentMaintenanceIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type OperatingCorrectlyIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const OperatingCorrectlyIcon = ({ color = 'white', ...props }: OperatingCorrectlyIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ImminentRiskIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ImminentRiskIcon = ({ color = 'white', ...props }: ImminentRiskIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type HighTemperatureIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const HighTemperatureIcon = ({ color = 'white', ...props }: HighTemperatureIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type LowTemperatureIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const LowTemperatureIcon = ({ color = 'white', ...props }: LowTemperatureIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type DottedLineIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const DottedLineIcon = ({ color = '#000', ...props }: DottedLineIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type LineIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const LineIcon = ({ color = '#000', ...props }: LineIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nexport const DashedLineIcon = ({ color = '#000', ...props }: LineIconProps) : JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type UnknownHealthIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const UnknownHealthIcon = ({ color = '#fff', ...props }: UnknownHealthIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type UnknownHealthDarkIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const UnknownHealthDarkIcon = ({ color = '#fff', ...props }: UnknownHealthDarkIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\n\r\ntype AcceptIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const AcceptIcon = ({ color, ...props }: AcceptIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nconst CPath = styled.path`\r\n fill:${({ color }) => (color || '#000000')};\r\n fill-opacity:1;\r\n stroke:${({ color }) => (color || '#000000')};\r\n stroke-width:0.44591081;\r\n stroke-linecap:butt;\r\n stroke-linejoin:miter;\r\n stroke-miterlimit:4;\r\n stroke-dasharray:none;\r\n stroke-opacity:1;\r\n`;\r\n","export const ClientPanelIcon = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type ExportWorksheetProps = {\r\n color?: string;\r\n }\r\n\r\nexport const ExportWorksheetIcon = ({ color, ...props }: ExportWorksheetProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ZoomOutProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ZoomOutIcon = ({ color, ...props }: ZoomOutProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const ExportPdfIcon = ({ ...props }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type ThunderIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const ThunderIcon = ({ color, ...props }: ThunderIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type OpenEyeIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const OpenEyeIcon = ({ color = '#202370', ...props }: OpenEyeIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type CloseEyeIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const CloseEyeIcon = ({ color = '#202370', ...props }: CloseEyeIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type NoSignalIconProps = {\r\n color?: string;\r\n colorSecundary?: string;\r\n width?: string;\r\n heigth?: string;\r\n}\r\n\r\nexport const NoSignalIcon = ({ color = '#E6E1E1', colorSecundary = '#8B8B8B', ...props }: NoSignalIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type BadSignalIconProps = {\r\n color?: string;\r\n colorSecundary?: string;\r\n}\r\n\r\nexport const BadSignalIcon = ({ color = '#E6E1E1', colorSecundary = '#363BC4' }: BadSignalIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type RegularSignalIconProps = {\r\n color?: string;\r\n colorSecundary?: string;\r\n}\r\n\r\nexport const RegularSignalIcon = ({ color = '#E6E1E1', colorSecundary = '#363BC4' }: RegularSignalIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type GoodSignalIconProps = {\r\n color?: string;\r\n colorSecundary?: string;\r\n}\r\n\r\nexport const GoodSignalIcon = ({ color = '#E6E1E1', colorSecundary = '#363BC4' }: GoodSignalIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type GreatSignalIconProps = {\r\n color?: string;\r\n width?: string;\r\n heigth?: string;\r\n}\r\n\r\nexport const GreatSignalIcon = ({ color = '#363BC4', ...props }: GreatSignalIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type BoxIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const BoxIcon = ({ color = '#363BC4', ...props }: BoxIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ChipIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ChipIcon = ({ color = '#363BC4', ...props }: ChipIconProps): JSX.Element => (\r\n // eslint-disable-next-line react/no-unknown-property\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type LayersIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const LayersIcon = ({ color = '#363BC4', ...props }: LayersIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type WifiMiniOnIconProps = {\r\n color?: string;\r\n size?: number;\r\n}\r\n\r\nexport const WifiMiniOnIcon = ({ color = '#363BC4', size }: WifiMiniOnIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type WifiMiniOffIconProps = {\r\n color?: string;\r\n size?: number;\r\n}\r\n\r\nexport const WifiMiniOffIcon = ({ color = '#C6C6C6', size }: WifiMiniOffIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type ArrowUpIconProps = {\r\n color?: string;\r\n style?: {};\r\n heigth?: string;\r\n width?: string;\r\n}\r\n\r\nexport const ArrowUpIcon = ({ color = '#000000', ...props }: ArrowUpIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nexport const ArrowUpIconV2 = ({\r\n color = '#202370', width = '12', heigth = '11', ...props\r\n}: ArrowUpIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ArrowDownIconProps = {\r\n color?: string;\r\n style?: {};\r\n heigth?: string;\r\n width?: string;\r\n}\r\n\r\nexport const ArrowDownIcon = ({ color = '#000000', ...props }: ArrowDownIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nexport const ArrowDownIconV2 = ({\r\n color = '#202370', width = '13', heigth = '12', ...props\r\n}: ArrowDownIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type unitIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const UnitIcon = ({ color = '#363BC4' }: unitIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type StatisticsIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const StatisticsIcon = ({ color = 'white' }: StatisticsIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type NewImminentRiskIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const NewImminentRiskIcon = ({ color = 'white' }: NewImminentRiskIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type TemperatureIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const TemperatureIcon = ({\r\n color = '#363BC4',\r\n}: TemperatureIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type LightProps = {\r\n heigth?: string\r\n width?: string\r\n color?: string;\r\n}\r\n\r\nexport const LightOnIcon = ({ heigth = '19', width = '19', color }: LightProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type LightProps = {\r\n heigth?: string\r\n width?: string\r\n color?: string;\r\n}\r\n\r\nexport const LightOffIcon = ({ heigth = '17', width = '15', color }: LightProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type ExitButtonProps = {\r\n colors?: string;\r\n }\r\n\r\nexport const ExitButtonIcon = ({ colors = 'white' }: ExitButtonProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type WatchIconProps = {\r\n color?: string;\r\n size?: number\r\n}\r\n\r\nexport const WatchIcon = ({ color = '#878787', size }: WatchIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type PenIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PenIcon = ({ color = 'black' }: PenIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type VAVOpenedIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const VAVOpenedIcon = ({ color, ...props }: VAVOpenedIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type VAVClosedIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const VAVClosedIcon = ({ color }: VAVClosedIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type LockIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const LockOpenedIcon = ({ color, ...props }: LockIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const LockClosedIcon = ({ color, ...props }: LockIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type CoolIconProps = {\r\n color?: string;\r\n colorSecundary?: string;\r\n width?: string;\r\n height?: string\r\n}\r\n\r\nexport const CoolIcon = ({\r\n color = '#363BC4', width, height, colorSecundary = 'white',\r\n}: CoolIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type InformationIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const InformationIcon = ({ color = '#6A6A6A' }: InformationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type LocalOperationIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const LocalOperationIcon = ({ color = '#363BC4' }: LocalOperationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type RemoteAutoIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const RemoteAutoIcon = ({ color = '#363BC4' }: RemoteAutoIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type RemoteManualIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const RemoteManualIcon = ({ color = '#363BC4' }: RemoteManualIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\ntype FanIconProps = {\r\n color?: string;\r\n width?: string;\r\n variant?: string;\r\n}\r\n\r\nexport const FanIcon = ({\r\n width = '24px', color = colors.Grey400, variant, ...props\r\n}: FanIconProps): JSX.Element => {\r\n switch (variant) {\r\n case 'primary':\r\n return (\r\n \r\n \r\n \r\n );\r\n default:\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n};\r\n","type BlockIconProps = {\r\n color?: string;\r\n height?: number;\r\n width?: number;\r\n}\r\n\r\nexport const BlockIcon = ({ height = 24, width = 24, color = '#363BC4' }: BlockIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type EvapIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const EvapReturnIcon = ({\r\n color = '#373737',\r\n ...props\r\n}: EvapIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const EvapInsufIcon = ({\r\n color = '#373737',\r\n ...props\r\n}: EvapIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","export const ReferenceIcon = () => (\r\n \r\n \r\n \r\n \r\n);\r\n","type ComparativeIconProps = {\r\n color?: string;\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const ComparativeIcon = ({ color = '#3F3F3F', width = '24', height = '14' }:ComparativeIconProps) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type ThermostatIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ThermostatIcon = ({ color = '#363BC4' }: ThermostatIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type AddIconProps = {\r\n color?: string;\r\n width?: string;\r\n heigth?: string;\r\n}\r\n\r\nexport const AddPlusIcon = ({ ...props }: AddIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type NothingRegisteredProps = {\r\n color?: string;\r\n};\r\n\r\nexport const NothingRegistered = ({ color = '#818181' }: NothingRegisteredProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type DeleteSimpleIconProps = {\r\n color?: string;\r\n size?: number;\r\n}\r\n\r\nexport const DeleteSimpleIcon = ({ color = '#6A6A6A', size = 19, ...props }: DeleteSimpleIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type MonitoringIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const MonitoringIcon = ({ color = '#363BC4', ...props }: MonitoringIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type PortIconProps = {\r\n color?: string;\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const PortIcon = ({\r\n color = '#363BC4', width = '14', height = '15', ...props\r\n}: PortIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n","type DatIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const DatIcon = ({ color = '#363BC4', ...props }: DatIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type CheckDeviceIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const CheckDeviceIcon = ({ color = '#363BC4', ...props }: CheckDeviceIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","export const PortEnableIcon = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export const PortDisabledIcon = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type FilterIconProps = {\r\n color?: string;\r\n style?: {};\r\n heigth?: string;\r\n width?: string;\r\n}\r\n\r\nexport const FilterIcon = ({\r\n color = '#363BC4', width = '16', heigth = '15', ...props\r\n}: FilterIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ExportIconProps = {\r\n color?: string;\r\n style?: {};\r\n heigth?: string;\r\n width?: string;\r\n}\r\n\r\nexport const ExportIcon = ({\r\n color = '#363BC4', width = '19', heigth = '19', ...props\r\n}: ExportIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type BatteryIconProps = {\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const BatteryIcon = ({ width = '20', height = '12', ...props }: BatteryIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type EnergyIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const EnergyNobreakIcon = ({ color }: EnergyIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type EnergyIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const NobreakOffIcon = ({ color = '#363BC4' }: EnergyIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type BatteryFullIconProps = {\r\n color?: string;\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const BatteryFullIcon = ({ color = '#363BC4', width = '19', height = '12' }: BatteryFullIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n","type BatteryMidIconIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const BatteryMidIcon = ({ color = '#363BC4' }: BatteryMidIconIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type BatteryLowIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const BatteryLowIcon = ({ color = '#363BC4' }: BatteryLowIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type EletricalNetworkIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const EletricNetworkIcon = ({ color = '#363BC4', ...props }: EletricalNetworkIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type EnergyIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const NobreakIcon = ({ color }: EnergyIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export const CircleCheckGreen = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export const CircleNotCheckRed = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const CircleWarningYellow = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const LuzAcesa = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const LuzApagada = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const CorrectIcon = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n\r\nexport const IncorrectIcon = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export function BluePaper() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default BluePaper;\r\n","type TPenBlue = {\r\n color?: string\r\n}\r\n\r\nexport function PenBlue({ color }: TPenBlue) {\r\n let ColorChose = '#363BC4';\r\n if (color) {\r\n ColorChose = color;\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default PenBlue;\r\n","type TTrashSample = {\r\n color?: string\r\n}\r\n\r\nexport function TrashSample({ color }: TTrashSample) {\r\n let ColorChose = '#363BC4';\r\n if (color) {\r\n ColorChose = color;\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default TrashSample;\r\n","type CompleteListProps = {\r\n color?: string;\r\n width?: string;\r\n};\r\n\r\nexport const CompleteListIcon = ({ width, color, ...props }: CompleteListProps): JSX.Element => (\r\n \r\n\r\n \r\n \r\n);\r\n","type CustomListProps = {\r\n color?: string;\r\n width?: string;\r\n};\r\n\r\nexport const CustomListIcon = ({ width, color, ...props }: CustomListProps): JSX.Element => (\r\n \r\n\r\n \r\n \r\n \r\n);\r\n","type ClockDurationIconProps = {\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const ClockDurationIcon = ({ width = '15', height = '15', ...props }: ClockDurationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ProgIconProps = {\r\n size?: string\r\n color?: string\r\n cursor?: string\r\n}\r\n\r\nexport const ProgIcon = ({ size = '19px', color = '#363BC4', ...props }: ProgIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type FoldedIconProps = {\r\n color?: string;\r\n width?: string;\r\n}\r\n\r\nexport function FoldedSheet({ color, width }: FoldedIconProps) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default FoldedSheet;\r\n","type LinkIconProps = {\r\n color?: string;\r\n height?: string;\r\n width?: string;\r\n };\r\n\r\nexport const LinkIcon = ({ color, height, width }: LinkIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type AlertSignalIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const AlertSignalIcon = ({ color }: AlertSignalIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export const SimcardIcon = ({ color, width, height }: { color?: string, width?: string, height?: string }) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const PaperBloomIcon = () => (\r\n \r\n \r\n \r\n);\r\n","export const EditPenPaperIcon = () => (\r\n \r\n \r\n \r\n);\r\n","export const DeleteTrashIcon = () => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","interface CollapseIconProps extends React.SVGProps {\r\n color?: string;\r\n className?: string;\r\n style?: {};\r\n}\r\n\r\nexport const CollapseIcon = ({\r\n color, className, style, ...props\r\n}: CollapseIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","interface ExpandCardIconProps extends React.SVGProps {\r\n color?: string;\r\n className?: string;\r\n style?: {};\r\n}\r\n\r\nexport const ExpandCardIcon = ({\r\n color, className, style, ...props\r\n}: ExpandCardIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type EditIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const EditIconPaperPen = ({ color }: EditIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type PinIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PinIcon = ({ color = '#3F3F3F', ...props }: PinIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type PlusRoundedIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PlusRoundedIcon = ({ color = '#363BC4', ...props }: PlusRoundedIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","interface TrashRoundedIconProps extends React.SVGProps {\r\n color?: string;\r\n handleClick?: () => void\r\n}\r\n\r\nexport const TrashRoundedIcon = ({ color = '#363BC4', handleClick, ...props }: TrashRoundedIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type EditPenIconProps = {\r\n color?: string;\r\n handleClick?: () => void\r\n}\r\n\r\nexport const EditPenIcon = ({ color = '#363BC4', handleClick, ...props }: EditPenIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type SeeEyeIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const SeeEyeIcon = ({ color = '#363BC4', ...props }: SeeEyeIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type ImageIconProps = {\r\n color?: string;\r\n};\r\n\r\nexport const ImageIcon = ({\r\n color = '#363BC4',\r\n ...props\r\n}: ImageIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type CheckIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const CheckIcon = ({ color = '#5AB365', ...props }: CheckIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ZoomMoreIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ZoomMoreIcon = ({ color = '#363BC4', ...props }: ZoomMoreIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type ZoomLessIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ZoomLessIcon = ({ color = '#363BC4', ...props }: ZoomLessIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type ResetZoomIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ResetZoomIcon = ({ color = '#363BC4', ...props }: ResetZoomIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type OrderIconProps = {\r\n color?: string\r\n cursor?: string\r\n orderDesc?: boolean\r\n}\r\n\r\nexport const OrderIcon = ({ color = '#363BC4', ...props }: OrderIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type DatIconProps = {\r\n color?: string;\r\n }\r\n\r\nexport const DateIcon = ({ color = '#363BC4', ...props }: DatIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type FilterIconV2nProps = {\r\n color?: string;\r\n }\r\n\r\nexport const FilterIconV2 = ({ color }: FilterIconV2nProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type WarnIconProps = {\r\n color?: string;\r\n width?: string;\r\n height?: string;\r\n};\r\n\r\nexport const WarnIcon = ({\r\n color = '#F3B107', width = '15', height = '13', ...props\r\n}: WarnIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type EditNotificationIconProps = {\r\n width?: string;\r\n height?: string;\r\n heightSvg?: string;\r\n widthSvg?: string;\r\n}\r\n\r\nexport const EditNotificationIcon = ({\r\n width, height, heightSvg, widthSvg,\r\n}: EditNotificationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type DeleteNotificationIconProps = {\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const DeleteNotificationIcon = ({ width, height }: DeleteNotificationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type ClientNotificationIconProps = {\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const ClientNotificationIcon = ({ width, height }: ClientNotificationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type UnitNotificationIconProps = {\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const UnitNotificationIcon = ({ width, height }: UnitNotificationIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type ArrowLeftIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ArrowLeftIcon = ({ color = 'black', ...props }: ArrowLeftIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ArrowRightIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ArrowRightIcon = ({ color = '#B7B7B7', ...props }: ArrowRightIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","interface UrgentHealthIconProps {\r\n color?: string;\r\n height?: string;\r\n width?: string;\r\n}\r\n\r\nexport const UrgentHealthIcon = ({ color, height, width }: UrgentHealthIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","interface RiskHealthIconProps {\r\n color?: string;\r\n height?: string;\r\n width?: string;\r\n}\r\n\r\nexport const RiskHealthIcon = ({ color, height, width }: RiskHealthIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n\r\n);\r\n","interface OutHealthIconProps {\r\n color?: string;\r\n height?: string;\r\n width?: string;\r\n}\r\n\r\nexport const OutHealthIcon = ({ color, height, width }: OutHealthIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n\r\n);\r\n","export const CelciusLogo = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const Seta = ({ color }: { color?: string }) => (\r\n \r\n \r\n \r\n);\r\n","type ChillerIconProps = {\r\n color?: string;\r\n width?: number;\r\n height?: number;\r\n}\r\n\r\nexport const ChillerIcon = ({\r\n color = '#363BC4', width, height, ...props\r\n}: ChillerIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const CelciusColorLogo = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export function SpringerLogo({ color }: { color?: string }) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","export function MachineIcon() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","export function MonitoramentoIcon() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","export function ArrowDownAnalisys() {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","export function NoWifi({ width, height }: { width?: string, height?: string }) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","export function CompDisabled({ width, height }: { width?: string, height?: string }) {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","export function OnIcon({ color }: { color?: string }) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","export function FanBlueIcon({ width, height }: { width?: string, height?: string }) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","export function ColumnIcon({ width, height }: { width?: string, height?: string }) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n","interface ITimezone {\r\n color?: string,\r\n width?: string,\r\n height?: string\r\n}\r\n\r\nexport const TimezoneIcon = ({ color, width, height }: ITimezone): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","interface ITimezoneDST {\r\n color?: string,\r\n width?: string,\r\n height?: string\r\n}\r\n\r\nexport const TimezoneDSTIcon = ({ color, width, height }: ITimezoneDST): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ThermostatCircleIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ThermostatCircleIcon = ({ color = '#363BC4' }: ThermostatCircleIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type ThermostatSquareIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ThermostatSquareIcon = ({ color = '#363BC4' }: ThermostatSquareIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n\r\n);\r\n","export function Compressor({ width, height }: { width?: string, height?: string }) {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","type InfoLinkIconProps = {\r\n width?: string;\r\n};\r\n\r\nexport const InfoLinkIcon = ({ width }: InfoLinkIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type WaterOutletProps = {\r\n width?: string;\r\n height?: string;\r\n color?: string;\r\n}\r\n\r\nexport const WaterOutlet = ({ width = '7px', height = '12px', color = '#363BC4' }: WaterOutletProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type WaterInletProps = {\r\n width?: string;\r\n height?: string;\r\n color?: string;\r\n}\r\n\r\nexport const WaterInlet = ({ width = '7px', height = '12px', color = '#363BC4' }: WaterInletProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const OpenTab = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const IconHIndex2 = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","export const IconHIndex4 = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","export const IconHIndex25 = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","export const IconHIndex50 = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const IconHIndex75 = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const IconHIndex100 = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type IconProps = {\r\n color?: string\r\n cursor?: string\r\n}\r\nexport const NewApiIcon = ({ color = '#363BC4', ...props }: IconProps) => (\r\n \r\n \r\n \r\n);\r\n","type IconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PausedIcon = ({ color = '#B1B1B1', ...props }: IconProps) => (\r\n \r\n \r\n \r\n);\r\n","type IconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const PlayIcon = ({ color = '#363BC4', ...props }: IconProps) => (\r\n\r\n \r\n \r\n \r\n \r\n);\r\n","export const Thermometer = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export const SetpointCR = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const Automatic = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export const AutomaticMode = (): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type RefrigerateIconProps = {\r\n color?: string;\r\n size?: string;\r\n}\r\n\r\nexport const Refrigerate = ({ color, size }: RefrigerateIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","export const AtivoSemMonitIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","export const InfoIconCR = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","export const CondenserIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const EvaporatorIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }) => (\r\n \r\n \r\n \r\n \r\n);\r\n","export const FancoilIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const SelfIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const SplitCasseteIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const SplitHiWallIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","export const SplitPisoTetoIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const SplitaoIcon = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","export const ArrowRightIconOutlined = ({ width, height, color }: { width?: number, height?: number, color?: string }): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type VentIconProps = {\r\n color?: string;\r\n height?: number;\r\n width?: number;\r\n}\r\n\r\nexport const VentIcon = ({ height = 22, width = 20, color = '#9C9C9C' }: VentIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type EconomySaveIconProps = {\r\n size?: number;\r\n}\r\n\r\nexport const EconomySaveIcon = ({ size }: EconomySaveIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type FanIconProps = {\r\n color?: string;\r\n size?: string;\r\n}\r\n\r\nexport const FanRCIcon = ({\r\n color = '#9C9C9C',\r\n size,\r\n}: FanIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type WifiConnectionProps = {\r\n size?: number;\r\n disabled?: boolean;\r\n}\r\n\r\nexport const WifiConnection = ({ disabled, size }: WifiConnectionProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","type PowerRCIconProps = {\r\n color?: string;\r\n size?: string;\r\n}\r\n\r\nexport const PowerRCIcon = ({ color = '#FFFFFF', size }: PowerRCIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","type MinusRCIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const MinusRCIcon = ({ color = '#363BC4' }: MinusRCIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type BackIconProps = {\r\n color?: string;\r\n size?: string;\r\n}\r\n\r\nexport const BackRCIcon = ({\r\n color = '#FFFFFF',\r\n size,\r\n}: BackIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","type ReturnIconProps = {\r\n color?: string;\r\n size?: string;\r\n}\r\n\r\nexport const ReturnIcon = ({ color, size }: ReturnIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const CardUntitled = styled.div`\r\npadding: 32px;\r\nmargin-top: 24px;\r\nborder-radius: 16px;\r\nbox-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const Wrapper = styled.div<{overflowHidden: boolean}>(({ overflowHidden }) => `\r\nwidth: 100%;\r\nheight: 100%;\r\nborder: 1px solid #D7D7D7;\r\nborder-radius: 4px;\r\nbackground-color: ${colors.White};\r\n${overflowHidden && 'overflow: hidden'};\r\n`);\r\nexport const Title = styled.div`\r\ndisplay: flex;\r\nborder-radius: 4px 4px 0 0;\r\njustify-content: space-between;\r\nalign-items: center;\r\npadding: 5px 12px;\r\nbackground-color: ${colors.BlueSecondary};\r\n`;\r\nexport const ChildrenWrapper = styled.div`\r\npadding: 20px 29px;\r\nmin-height: 0;\r\nborder-radius: 0 0 4px 4px;\r\nposition: relative;\r\n@media (min-width: 992px) {\r\n padding: 16px 30px;\r\n}\r\n`;\r\nexport const ChildrenWrapperNoPadding = styled.div`\r\nmin-height: 0;\r\nborder-radius: 0 0 4px 4px;\r\nbackground-color: ${colors.White};\r\n`;\r\nexport const Text = styled.span`\r\nfont-weight: bold;\r\nfont-size: 1.125em;\r\ncolor: ${colors.White};\r\n`;\r\n\r\nexport const ChildrenWrapperNoPaddingRelative = styled.div`\r\nmin-height: 0;\r\nborder-radius: 0 0 4px 4px;\r\nposition: relative;\r\nbackground-color: ${colors.White};\r\n`;\r\n","import {\r\n Wrapper,\r\n Title,\r\n ChildrenWrapper,\r\n ChildrenWrapperNoPadding,\r\n ChildrenWrapperNoPaddingRelative,\r\n Text,\r\n} from './styles';\r\n\r\ntype CardProps = {\r\n title?: string;\r\n children: JSX.Element | (JSX.Element[]) | null | string;\r\n IconsContainer?: React.ComponentType;\r\n noPadding?: boolean;\r\n noPaddingRelative?: boolean;\r\n overflowHidden?: boolean;\r\n wrapperStyle?: React.CSSProperties;\r\n}\r\n\r\nexport const Card = ({\r\n title = '', children, IconsContainer, noPadding = false, noPaddingRelative = false, overflowHidden = false, wrapperStyle = {},\r\n}: CardProps): JSX.Element => (\r\n \r\n \r\n <Text>{title || ''}</Text>\r\n {IconsContainer && <IconsContainer />}\r\n \r\n {noPadding && !noPaddingRelative && (\r\n \r\n {' '}\r\n {children}\r\n \r\n )}\r\n {!noPadding && !noPaddingRelative && (\r\n \r\n {' '}\r\n {children}\r\n \r\n )}\r\n {noPaddingRelative && (\r\n \r\n {' '}\r\n {children}\r\n \r\n )}\r\n \r\n);\r\n","import { Route, Redirect } from 'react-router-dom';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nexport const Route404 = ({ ...params }): JSX.Element => {\r\n const isLogged = !!localStorage.getItem('@diel:token');\r\n const profile = getUserProfile();\r\n const isRemoteControl = profile.permissions.isPersonaII || false;\r\n\r\n function redirect() {\r\n if (isLogged) {\r\n if (isRemoteControl) {\r\n return ;\r\n }\r\n return ;\r\n }\r\n return ;\r\n }\r\n return (\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { Button } from '~/components';\r\nimport { colors } from '~/styles/colors';\r\nimport { CloseIcon } from '~/icons';\r\n\r\nexport const SimpleButton = styled(Button)`\r\n width: initial;\r\n padding: 8px 15px;\r\n margin: 7px 7px;\r\n`;\r\n\r\nexport const ContainerInputs = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n max-width: 42rem;\r\n justify-content: center`;\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n position: relative;\r\n`;\r\n\r\nexport const LoaderContainer = styled.div`\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate3d(-50%, -50%, 0);\r\n width: 100%;\r\n background-color: rgba(255, 255, 255, 0.6);\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n`;\r\n\r\nexport const Scroll = styled.div`\r\n overflow-x: auto;\r\n`;\r\n\r\nexport const Container = styled.table`\r\n width: 100%;\r\n`;\r\n\r\nexport const Head = styled.thead`\r\n text-align: left;\r\n`;\r\n\r\nexport const Body = styled.tbody`\r\n overflow-x: scroll;\r\n`;\r\n\r\nexport const HeaderCell = styled.th`\r\n padding: 0 10px;\r\n color: ${colors.DarkGrey};\r\n background-color: ${colors.White};\r\n border-bottom: solid 1px ${colors.Grey};\r\n`;\r\n\r\nexport const HeaderTitle = styled.div`\r\n align-items: center;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: flex-start;\r\n position: relative;\r\n font-size: 0.75em;\r\n`;\r\n\r\nexport const Data = styled.td`\r\n color: ${colors.DarkGrey};\r\n min-width: 100px;\r\n padding: 0 10px;\r\n`;\r\n\r\nexport const Row = styled.tr`\r\n height: 50px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\n\r\nexport const SelectButton = styled.span`\r\n padding: 5px 10px;\r\n border-radius: 3px;\r\n border: 1px solid ${colors.DarkGrey};\r\n cursor: pointer;\r\n`;\r\n\r\nexport const CloseModal = styled(CloseIcon)`\r\n width: 0.8rem;\r\n height: 0.8rem;\r\n cursor: pointer;\r\n`;\r\n\r\nexport const ModalTitle = styled.h3`\r\n color: ${colors.Blue500};\r\n`;\r\n\r\nexport const ModalText = styled.p`\r\n font-size: 1em;\r\n color: ${colors.Grey400};\r\n width: 95%;\r\n margin-bottom: 35px;\r\n`;\r\n\r\nexport const ModalCancel = styled.p`\r\n font-size: 1em;\r\n color: ${colors.Blue300};\r\n text-decoration: underline;\r\n width: 100%;\r\n text-align: center;\r\n margin-top: 8px;\r\n &:hover {\r\n color: ${colors.Blue400};\r\n }\r\n`;\r\n","import { useState, useEffect } from 'react';\r\n\r\nimport i18n from '~/i18n';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { withRouter } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n Input, Button, SearchBox, Loader, InputSearch, NewTable, ModalWindow,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { DeleteOutlineIcon } from 'icons';\r\nimport { apiCall } from 'providers';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { AxiosError } from 'axios';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n ContainerInputs,\r\n SelectButton,\r\n SimpleButton,\r\n CloseModal,\r\n ModalTitle,\r\n ModalCancel,\r\n} from './styles';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nconst t = i18n.t.bind(i18n);\r\n\r\nasync function deleteCity(rowData) {\r\n if (!window.confirm(t('desejaExcluirCidade', { cityName: rowData.name }))) return;\r\n try {\r\n await apiCall('/dac/remove-city', { cityId: rowData.id });\r\n window.location.reload();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n}\r\n\r\nconst AdmCities = () => {\r\n const [state, render, setState] = useStateVar({\r\n loading: false, // setLoading\r\n cities: [] as {\r\n id: string\r\n state: string\r\n name: string\r\n lat: string\r\n lon: string\r\n }[], // set_cities\r\n citiesFiltered: [] as {\r\n id: string\r\n state: string\r\n name: string\r\n lat: string\r\n lon: string\r\n }[], // set_cities\r\n searchResults: [] as {\r\n ROW_ID?: string\r\n COUNTRY_NAME: string\r\n STATE_ID: string\r\n CITY_ID: string\r\n NAME: string\r\n LAT: number\r\n LONG: number\r\n }[], // set_searchResults\r\n globalCitiesSearchText: '', // set_searchText\r\n values: { // set_values\r\n CITY_ID: '',\r\n NAME: '',\r\n COUNTRY_NAME: '',\r\n COUNTRY_LAT: '',\r\n COUNTRY_LON: '',\r\n STATE_CODE: '',\r\n STATE_NAME: '',\r\n LAT: '',\r\n LON: '',\r\n STATE_LAT: '',\r\n STATE_LON: '',\r\n },\r\n searchState: '',\r\n });\r\n const [showModal, setShowModal] = useState(false);\r\n\r\n function setValue(newValues: Partial<(typeof state)['values']>) {\r\n Object.assign(state.values, newValues);\r\n render();\r\n }\r\n\r\n async function submitNewCity() {\r\n try {\r\n setState({ loading: true });\r\n await apiCall('/dac/add-new-city', state.values);\r\n window.location.reload();\r\n } catch (err) {\r\n console.log(err);\r\n const error = err as AxiosError;\r\n if (error.response?.status !== 500) {\r\n toast.error(error.response?.data);\r\n } else {\r\n toast.error(t('houveErro'));\r\n }\r\n } finally {\r\n setState({ loading: false });\r\n }\r\n }\r\n\r\n function fillCityInfo(row) {\r\n state.values.CITY_ID = row.CITY_ID;\r\n state.values.STATE_NAME = row.STATE_NAME;\r\n state.values.STATE_CODE = row.STATE_CODE;\r\n state.values.COUNTRY_NAME = row.COUNTRY_NAME;\r\n state.values.COUNTRY_LAT = row.COUNTRY_LAT;\r\n state.values.COUNTRY_LON = row.COUNTRY_LON;\r\n state.values.LAT = row.CITY_LAT ? String(row.CITY_LAT) : '';\r\n state.values.LON = row.CITY_LON ? String(row.CITY_LON) : '';\r\n state.values.STATE_LAT = row.STATE_LAT ? String(row.STATE_LAT) : '';\r\n state.values.STATE_LON = row.STATE_LON ? String(row.STATE_LON) : '';\r\n state.values.NAME = row.CITY_NAME && row.CITY_NAME.length > 1 ? row.CITY_NAME[0] + row.CITY_NAME.substr(1).toLowerCase() : row.CITY_NAME;\r\n render();\r\n }\r\n\r\n function searchCities() {\r\n (async function () {\r\n if (!state.globalCitiesSearchText) {\r\n setState({ searchResults: [] });\r\n return;\r\n }\r\n try {\r\n const { list } = await apiCall('/dac/search-city-info', { id: state.globalCitiesSearchText });\r\n state.searchResults = list;\r\n for (const row of state.searchResults) {\r\n row.ROW_ID = `${row.LAT}x${row.LONG}`;\r\n }\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }());\r\n }\r\n\r\n useEffect(searchCities, [state.globalCitiesSearchText]);\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n const response = await apiCall('/dac/get-cities-list', {});\r\n setState({ cities: response.list, citiesFiltered: response.list });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }());\r\n }, []);\r\n\r\n const columns = [\r\n {\r\n name: 'country',\r\n value: t('pais'),\r\n accessor: 'country',\r\n },\r\n {\r\n name: 'state',\r\n value: t('estado'),\r\n accessor: 'state',\r\n },\r\n {\r\n name: 'id',\r\n value: 'ID',\r\n accessor: 'id',\r\n },\r\n {\r\n name: 'name',\r\n value: t('nome'),\r\n accessor: 'name',\r\n },\r\n {\r\n name: 'lat',\r\n value: t('latitude'),\r\n accessor: 'lat',\r\n },\r\n {\r\n name: 'lon',\r\n value: t('longitude'),\r\n accessor: 'lon',\r\n },\r\n {\r\n name: 'actions',\r\n value: t('acoes'),\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n
\r\n deleteCity(props)} colors={undefined} />\r\n
\r\n ),\r\n },\r\n ];\r\n\r\n const columnsSearch = [\r\n {\r\n name: 'country',\r\n value: t('pais'),\r\n accessor: 'COUNTRY_NAME',\r\n },\r\n {\r\n name: 'state',\r\n value: t('estado'),\r\n accessor: 'STATE_CODE',\r\n },\r\n {\r\n name: 'id',\r\n value: 'ID',\r\n accessor: 'CITY_ID',\r\n },\r\n {\r\n name: 'name',\r\n value: t('nome'),\r\n accessor: 'CITY_NAME',\r\n },\r\n {\r\n name: 'lat',\r\n value: 'Lat.',\r\n accessor: 'CITY_LAT',\r\n },\r\n {\r\n name: 'lon',\r\n value: 'Long.',\r\n accessor: 'CITY_LON',\r\n },\r\n {\r\n name: 'actions',\r\n value: t('acoes'),\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n
\r\n fillCityInfo(props)}>{t('selecionar').toLocaleUpperCase()}\r\n
\r\n ),\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaCidades')}\r\n \r\n \r\n {state.loading && }\r\n {(!state.loading) && (\r\n
\r\n
\r\n setShowModal(true)}>{t('botaoAdicionarCidade')}]}\r\n />\r\n
\r\n )}\r\n {\r\n showModal && (\r\n {\r\n setShowModal(false);\r\n setState({\r\n searchResults: [],\r\n values: {\r\n CITY_ID: '',\r\n NAME: '',\r\n COUNTRY_NAME: '',\r\n COUNTRY_LAT: '',\r\n COUNTRY_LON: '',\r\n STATE_NAME: '',\r\n STATE_CODE: '',\r\n LAT: '',\r\n LON: '',\r\n STATE_LAT: '',\r\n STATE_LON: '',\r\n },\r\n globalCitiesSearchText: '',\r\n });\r\n }}\r\n >\r\n \r\n \r\n {t('botaoAdicionarCidade')}\r\n {\r\n setShowModal(false);\r\n setState({\r\n searchResults: [],\r\n values: {\r\n CITY_ID: '',\r\n NAME: '',\r\n COUNTRY_NAME: '',\r\n COUNTRY_LAT: '',\r\n COUNTRY_LON: '',\r\n STATE_NAME: '',\r\n STATE_CODE: '',\r\n LAT: '',\r\n LON: '',\r\n STATE_LAT: '',\r\n STATE_LON: '',\r\n },\r\n globalCitiesSearchText: '',\r\n });\r\n }}\r\n />\r\n \r\n \r\n \r\n
\r\n setValue({ NAME: e.target.value })}\r\n />\r\n setValue({ CITY_ID: e.target.value })}\r\n />\r\n
\r\n
\r\n setValue({ LAT: e.target.value })}\r\n />\r\n setValue({ LON: e.target.value })}\r\n />\r\n
\r\n
\r\n { setValue({ STATE_NAME: e.target.value }); }}\r\n />\r\n {\r\n if (e.target.value.length <= 3) {\r\n setValue({ STATE_CODE: e.target.value });\r\n }\r\n }}\r\n />\r\n
\r\n
\r\n setValue({ STATE_LAT: e.target.value })}\r\n />\r\n setValue({ STATE_LON: e.target.value })}\r\n />\r\n
\r\n setValue({ COUNTRY_NAME: e.target.value })}\r\n />\r\n
\r\n setValue({ COUNTRY_LAT: e.target.value })}\r\n />\r\n setValue({ COUNTRY_LON: e.target.value })}\r\n />\r\n
\r\n \r\n {\r\n setShowModal(false);\r\n setState({\r\n searchResults: [],\r\n values: {\r\n CITY_ID: '',\r\n NAME: '',\r\n COUNTRY_NAME: '',\r\n COUNTRY_LAT: '',\r\n COUNTRY_LON: '',\r\n STATE_CODE: '',\r\n STATE_NAME: '',\r\n LAT: '',\r\n LON: '',\r\n STATE_LAT: '',\r\n STATE_LON: '',\r\n },\r\n globalCitiesSearchText: '',\r\n });\r\n }}\r\n >\r\n {t('botaoCancelar')}\r\n \r\n
\r\n
\r\n \r\n {\r\n setState({ globalCitiesSearchText: e.target.value });\r\n }}\r\n />\r\n {state.searchResults.length > 0 && (\r\n \r\n )}\r\n \r\n
\r\n \r\n )\r\n }\r\n \r\n );\r\n};\r\n\r\nconst AdmCitiesWrapper = withRouter(AdmCities);\r\n\r\nexport { AdmCitiesWrapper as AdmCities };\r\nexport default withTransaction('AdmCities', 'component')(AdmCities);\r\n","export default __webpack_public_path__ + \"static/media/status_late.cfb3f088.svg\";","export default __webpack_public_path__ + \"static/media/status_offline.9f1cc089.svg\";","export default __webpack_public_path__ + \"static/media/status_online.c8e37bb1.svg\";","export function filterByColumns(array: S[], columns: (keyof S)[], searchText: string): S[] {\r\n searchText = searchText.toLowerCase();\r\n if (!searchText) return [...array];\r\n const searchTerms = searchText.split('/').filter((x) => !!x);\r\n return array.filter((item) => {\r\n for (const searchTerm of searchTerms) {\r\n const found = columns.some((colName) => {\r\n if (item[colName] && (item[colName] as unknown as string).toLowerCase && (item[colName] as unknown as string).toLowerCase().includes(searchTerm)) {\r\n return true;\r\n }\r\n });\r\n if (!found) return false;\r\n }\r\n return true;\r\n });\r\n}\r\n\r\nexport function orderByColumns(array: any[], column: string, descending: boolean) {\r\n function sorter(a: any, b: any) {\r\n if ((a[column]) && (!b[column])) return -1;\r\n if ((!a[column]) && (b[column])) return 1;\r\n if (a[column] > b[column]) return 1;\r\n if (a[column] < b[column]) return -1;\r\n return 0;\r\n }\r\n function revSorter(a: any, b: any) {\r\n return -sorter(a, b);\r\n }\r\n return array.sort(descending ? revSorter : sorter);\r\n}\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const StyledSpan = styled.span`\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const ModalContent = styled.div`\r\n width: 400px;\r\n`;\r\n\r\nexport const FileInput = styled.label`\r\n border-radius: 32px;\r\n border-style: solid;\r\n border-width: 1px;\r\n cursor: pointer;\r\n font-size: 1em;\r\n font-family: 'Open Sans', sans-serif;\r\n font-weight: bold;\r\n outline: none;\r\n padding: 8px 0px;\r\n text-decoration: none;\r\n text-transform: uppercase;\r\n transition: all 0.2s ease-in-out;\r\n width: 100%;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n background-color: ${colors.Pink200};\r\n border-color: ${colors.Pink200};\r\n color: ${colors.White};\r\n transition: all 0.3s ease-in-out;\r\n &:hover {\r\n background-color: ${colors.Pink300};\r\n border-color: ${colors.Pink300};\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.35), 0px 11px 15px rgba(85, 97, 115, 0.25);\r\n }\r\n`;\r\n\r\nexport const FwVersTable = styled.div<{ limitSize }>(({ limitSize }) => `\r\n display: flex;\r\n flex-wrap: nowrap;\r\n margin-top: 30px;\r\n border-left: 1px solid lightgrey;\r\n ${limitSize ? 'max-height: 240px; overflow-y: hidden;' : ''}\r\n`);\r\nexport const ViewMoreArrow = styled.p<{ viewMore }>(\r\n ({ viewMore }) => `\r\n span {\r\n font-size: 1em;\r\n color: ${colors.Grey400};\r\n }\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n svg {\r\n margin-left: 12px;\r\n transition: all 0.2s;\r\n transform: rotate(${viewMore ? '-180' : '0'}deg);\r\n }\r\n`,\r\n);\r\nexport const TableNew = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n\r\nexport const TableNew2 = styled.table`\r\n white-space: nowrap;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n & tbody {\r\n border: 1px solid ${colors.Grey};\r\n & tr {\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n }\r\n & td {\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n }\r\n }\r\n & thead {\r\n & tr {\r\n height: 40px;\r\n display: table-row;\r\n }\r\n & th {\r\n flex: 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 0 10px;\r\n word-break: normal;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n }\r\n }\r\n`;\r\n\r\n/*\r\nTODO:\r\nCriar um outro modal que permite escolher uma versão de firmware para cada hw_rev e mostra uma tabela com os DEVs, a versão atual, a versão enviada e o resultado da requisição.\r\n*/\r\n","import { useState, useEffect, useMemo } from 'react';\r\n\r\nimport queryString from 'query-string';\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\n\r\nimport IconLate from 'assets/img/status_late.svg';\r\nimport IconOffline from 'assets/img/status_offline.svg';\r\nimport IconOnline from 'assets/img/status_online.svg';\r\nimport {\r\n Button,\r\n InputSearch,\r\n Loader,\r\n Checkbox,\r\n Select,\r\n RadioButton,\r\n ModalWindow,\r\n} from 'components';\r\nimport { filterByColumns, orderByColumns } from 'helpers/filterByColumns';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { ArrowIcon } from 'icons';\r\nimport { apiCall, apiCallFormData } from 'providers';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n StyledLink,\r\n ModalContent,\r\n FileInput,\r\n FwVersTable,\r\n ViewMoreArrow,\r\n TableNew2,\r\n} from './styles';\r\nimport { useHistory } from 'react-router-dom';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\ninterface FirmwareRow {\r\n path: string\r\n date: string\r\n fwType: 'prod' | 'test'\r\n fwFamily: string // dac4, dut3, dal0...\r\n fwVers: string\r\n versionNumber?: {\r\n vMajor: number\r\n vMinor: number\r\n vPatch: number\r\n vExtra?: string\r\n }\r\n fDate?: string\r\n fPath?: string\r\n}\r\n\r\ninterface DeviceRow {\r\n DEV_ID: string\r\n STATE_ID: string\r\n CITY_NAME: string\r\n UNIT_NAME: string\r\n UNIT_ID: number\r\n status: string\r\n machineName: string\r\n CLIENT_NAME: string\r\n OTAPROCSTATUS: string\r\n FWVERSSTATUS: string\r\n\r\n devIdFamily?: string\r\n firmwareText?: string\r\n checked?: boolean\r\n rowKey?: string\r\n last_update_result?: string\r\n\r\n col_firmware_s?: string\r\n\r\n fwInfo?: {\r\n hardware_type: string\r\n firmware_version: string\r\n last_update_result?: string\r\n }\r\n versionNumber?: {\r\n vMajor: number\r\n vMinor: number\r\n vPatch: number\r\n vExtra?: string\r\n }\r\n}\r\n\r\nconst exceptionsToRule = ['dac2', 'dac3', 'dac4', 'dut', 'dut3', 'dam2', 'dam3', 'dal'];\r\n\r\nexport interface PageState {\r\n allDevs: DeviceRow[],\r\n filteredMachines: DeviceRow[],\r\n isLoading: boolean,\r\n waitingRequest: boolean,\r\n csvData: {}[],\r\n searchState: string\r\n fwVersionsAllTypes: FirmwareRow[],\r\n fwVersionsRows: FirmwareRow[],\r\n fwCols: string[],\r\n fwFolders: string[],\r\n limitItems: number\r\n lastScrollTop: number\r\n openModal: null|'ModalAddFirmware'|'ModalSendOtaUpdate'|'ModalUpdateResult'|'ModalReqVersResult'|'ModalReqCertResult'\r\n modalReqUpdate: {\r\n fw: {\r\n [hwRev: string]: FirmwareRow|null\r\n }\r\n sending: boolean\r\n },\r\n modalUpdateResult: {\r\n devs: { devId: string, fwPath: string, status?: string }[]\r\n },\r\n modalReqVersResult: {\r\n devs: { devId: string }[]\r\n },\r\n modalReqCertResult: {\r\n devs: { devId: string }[]\r\n },\r\n fwStageFilter: 'prod'|'test'\r\n renderUpper: () => void\r\n renderDevsTable: () => void\r\n}\r\n\r\nexport const AdmFirmware = () => {\r\n const history = useHistory();\r\n const [state, render, setState] = useStateVar(() => {\r\n const { preFiltered } = queryString.parse(history.location.search);\r\n const state: PageState = {\r\n allDevs: [],\r\n filteredMachines: [],\r\n isLoading: true,\r\n waitingRequest: false,\r\n csvData: [],\r\n searchState: (preFiltered || '').toString(),\r\n fwVersionsAllTypes: [],\r\n fwVersionsRows: [],\r\n fwCols: [],\r\n fwFolders: [],\r\n limitItems: 50,\r\n lastScrollTop: 0,\r\n openModal: null,\r\n modalReqUpdate: {\r\n fw: {},\r\n sending: false,\r\n },\r\n modalUpdateResult: {\r\n devs: [],\r\n },\r\n modalReqVersResult: {\r\n devs: [],\r\n },\r\n modalReqCertResult: {\r\n devs: [],\r\n },\r\n fwStageFilter: 'prod',\r\n renderUpper: () => {}, // will be replaced\r\n renderDevsTable: () => {}, // will be replaced\r\n };\r\n\r\n return state;\r\n });\r\n\r\n async function handleGetData() {\r\n try {\r\n setState({ isLoading: true });\r\n\r\n const [\r\n { list: _fwsList, fwHwRevs: fwFamilies },\r\n { list: devsList },\r\n ] = await Promise.all([\r\n apiCall('/devs/get-firmware-versions-v2', {}),\r\n apiCall('/devs/get-devs-fwinfo-v2', {}),\r\n ]);\r\n const fwsList: FirmwareRow[] = _fwsList;\r\n\r\n const fwColumns: string[] = (fwFamilies || []).map((x) => x.toUpperCase());\r\n for (const fw of fwsList) {\r\n fw.fDate = new Date(new Date(fw.date).getTime() - 3 * 60 * 60 * 1000).toISOString().substr(0, 19).replace('T', ' ');\r\n if (!fw.fwFamily) continue;\r\n const fCol = fw.fwFamily.toUpperCase();\r\n if (!fwColumns.includes(fCol)) {\r\n fwColumns.push(fCol);\r\n }\r\n fw.fPath = `[${fw.fwFamily}] ${fw.fwVers}`;\r\n }\r\n state.fwCols = fwColumns.sort();\r\n state.fwVersionsAllTypes = fwsList;\r\n state.fwVersionsRows = state.fwVersionsAllTypes.filter((item) => (!state.fwStageFilter) || (item.fwType === state.fwStageFilter));\r\n\r\n const fwFolders: { [type: string]: true } = {};\r\n for (const fwFolder of fwColumns) {\r\n fwFolders[fwFolder.toLowerCase()] = true;\r\n }\r\n\r\n const allDevs: DeviceRow[] = devsList;\r\n\r\n for (const dev of allDevs) {\r\n const { fwInfo, versionNumber } = dev;\r\n\r\n if (fwInfo && fwInfo.hardware_type) {\r\n fwFolders[fwInfo.hardware_type] = true;\r\n }\r\n const devIdFamily = dev.DEV_ID.substring(0, 4).toLowerCase();\r\n if ((devIdFamily.length === 4) && (devIdFamily[0] === 'd') && (devIdFamily[3] >= '0') && (devIdFamily[3] <= '9')) {\r\n dev.devIdFamily = devIdFamily;\r\n }\r\n\r\n dev.firmwareText = fwInfo ? `[${fwInfo.hardware_type}] ${fwInfo.firmware_version}` : '-';\r\n dev.checked = false;\r\n dev.rowKey = dev.DEV_ID;\r\n dev.last_update_result = fwInfo && fwInfo.last_update_result;\r\n\r\n dev.col_firmware_s = fwInfo && `[${fwInfo.hardware_type}] ${fwInfo.firmware_version}`;\r\n dev.versionNumber = versionNumber || { vMajor: 0, vMinor: 0, vPatch: 0 };\r\n }\r\n state.allDevs = allDevs;\r\n state.fwFolders = Object.keys(fwFolders);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível carregar os dados das máquinas');\r\n }\r\n state.isLoading = false;\r\n render();\r\n }\r\n\r\n useEffect(() => {\r\n handleGetData();\r\n }, []);\r\n\r\n useEffect(() => {\r\n function onScroll() {\r\n if (!state.limitItems) return;\r\n if (state.limitItems >= state.filteredMachines.length) return;\r\n const scrollBottom = document.documentElement.scrollTop + window.innerHeight;\r\n const distanceToEnd = document.documentElement.scrollHeight - scrollBottom;\r\n if (!(distanceToEnd < 500)) return;\r\n if (state.lastScrollTop >= document.documentElement.scrollTop) return;\r\n setState({\r\n limitItems: state.limitItems + 200,\r\n lastScrollTop: document.documentElement.scrollTop,\r\n });\r\n }\r\n window.addEventListener('scroll', onScroll);\r\n return () => window.removeEventListener('scroll', onScroll);\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Máquinas\r\n \r\n \r\n {state.isLoading && }\r\n {(!state.isLoading) && (\r\n <>\r\n {/* Parte superior da página e modais (tudo que não é a tabela de dispositivos). Renderização mais leve. */}\r\n \r\n\r\n {/* Tabela dos dispositivos. Renderização pesada. */}\r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nfunction UpperControls(props: { pageState: PageState }) {\r\n const [profile] = useState(getUserProfile);\r\n const { pageState: state } = props;\r\n const [localState, renderUpper, setLocalState] = useStateVar({\r\n viewMoreFws: false,\r\n debounceTimer: null as null|NodeJS.Timeout,\r\n availableActions: [\r\n { label: 'Enviar Atualização', value: 'update' },\r\n { label: 'Solicitar Versão', value: 'fw-info' },\r\n { label: 'Solicitar Certificado', value: 'cert-info' },\r\n ],\r\n firmwareFamilies: {} as {\r\n // Tem que ter todos os hardwares que serão usados como título das colunas\r\n // Embaixo vai ter uma coluna por major\r\n [fwColName: string]: {\r\n [vMajorName: string]: {\r\n fwVers: string\r\n fPath: string\r\n fDate: string\r\n }[]\r\n }\r\n },\r\n });\r\n state.renderUpper = renderUpper;\r\n\r\n const moreThanTen = state.fwVersionsRows.length > 10;\r\n const checkedDevs = state.filteredMachines.filter((dev) => dev.checked);\r\n\r\n function wantUploadFirmware() {\r\n state.openModal = 'ModalAddFirmware';\r\n state.renderUpper();\r\n }\r\n\r\n function debounceRenderTable() {\r\n if (localState.debounceTimer) clearTimeout(localState.debounceTimer);\r\n localState.debounceTimer = setTimeout(() => state.renderDevsTable(), 200);\r\n }\r\n\r\n async function applyActionToSelected(action: string) {\r\n if (state.waitingRequest) return;\r\n if (!checkedDevs.length) return;\r\n if (action === 'update') {\r\n wantUpate();\r\n }\r\n if (action === 'fw-info') {\r\n wantGetFwInfo();\r\n }\r\n if (action === 'cert-info') {\r\n wantGetCertInfo();\r\n }\r\n }\r\n\r\n function wantUpate() {\r\n if (!checkedDevs.length) return;\r\n state.openModal = 'ModalSendOtaUpdate';\r\n state.renderUpper();\r\n }\r\n\r\n function wantGetFwInfo() {\r\n state.modalReqVersResult.devs = checkedDevs.map((dev) => ({\r\n devId: dev.DEV_ID,\r\n }));\r\n state.openModal = 'ModalReqVersResult';\r\n state.renderUpper();\r\n }\r\n\r\n function wantGetCertInfo() {\r\n state.modalReqCertResult.devs = checkedDevs.map((dev) => ({\r\n devId: dev.DEV_ID,\r\n }));\r\n state.openModal = 'ModalReqCertResult';\r\n state.renderUpper();\r\n }\r\n\r\n useEffect(() => {\r\n state.fwVersionsRows = state.fwVersionsAllTypes.filter((item) => (!state.fwStageFilter) || (item.fwType === state.fwStageFilter));\r\n renderUpper();\r\n }, [state.fwStageFilter]);\r\n\r\n useEffect(() => {\r\n localState.firmwareFamilies = {};\r\n for (const fwRow of state.fwVersionsRows) {\r\n const fwColName = fwRow.fwFamily.toUpperCase();\r\n const vMajorName = fwRow.versionNumber!.vMajor.toString();\r\n if (!localState.firmwareFamilies[fwColName]) {\r\n localState.firmwareFamilies[fwColName] = {};\r\n }\r\n const hwFirmwares = localState.firmwareFamilies[fwColName];\r\n if (!hwFirmwares[vMajorName]) {\r\n hwFirmwares[vMajorName] = [];\r\n }\r\n hwFirmwares[vMajorName].push({\r\n fwVers: fwRow.fwVers,\r\n fPath: fwRow.fPath!,\r\n fDate: fwRow.fDate!,\r\n });\r\n }\r\n renderUpper();\r\n }, [state.fwVersionsRows]);\r\n\r\n return (\r\n <>\r\n {/* Tabela de versões de firmware existentes, botão de upload e explicação das colunas */}\r\n \r\n {profile.permissions.isAdminSistema && (\r\n
\r\n
\r\n \r\n
\r\n
\r\n { state.fwStageFilter = 'prod'; renderUpper(); }} label=\"Produção\" />\r\n
\r\n
\r\n { state.fwStageFilter = 'test'; renderUpper(); }} label=\"Teste\" />\r\n
\r\n
\r\n )}\r\n
\r\n \r\n {state.fwCols.map((fwColName) => (\r\n \r\n
{fwColName}
\r\n
\r\n {Object.keys(localState.firmwareFamilies[fwColName] || {}).map((vMajorName) => (\r\n
\r\n {localState.firmwareFamilies[fwColName][vMajorName].map((fw) => (\r\n
\r\n
\r\n {fw.fwVers}\r\n
\r\n \r\n \r\n {fw.fDate}\r\n \r\n \r\n
\r\n ))}\r\n
\r\n ))}\r\n
\r\n
\r\n ))}\r\n \r\n {(!state.fwVersionsRows.length)\r\n &&
(nenhum)
}\r\n {(moreThanTen)\r\n && (\r\n \r\n \r\n setLocalState({ viewMoreFws: !localState.viewMoreFws })}>\r\n {localState.viewMoreFws ? 'Ver menos' : 'Ver mais'}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
\r\n

\r\n A coluna "Status OTA" é uma mensagem que o firmware envia pelo broker sobre o processo de OTA dele.\r\n

\r\n

\r\n A coluna "Versão Correta" indica se o dispositivo está com a versão de firmware esperada.\r\n
\r\n Se um usuário vai nessa tela e solicita OTA para a versão 2_0_15, por exemplo, e o dispositivo informa que está nessa mesma versão, a coluna vai mostrar "OK".\r\n
\r\n Se o dispositivo não estiver na versão solicitada, vai aparecer "DIFF".\r\n
\r\n Se não for uma versão limpa, vai aparecer "DIRTY".\r\n
\r\n E qualquer outro caso, por exemplo quando se exclui um firmware do sistema, vai aparecer "ERR".\r\n

\r\n

\r\n A coluna "Comando OTA" se refere ao estado da estratégia do DAP de reenvio de comandos de OTA. As etapas são:\r\n
\r\n 0 - Ninguém solicitou OTA ainda;\r\n
\r\n 1 - Algum usuário solicitou OTA mas o dispositivo ainda não recebeu o comando;\r\n
\r\n 2 - O dispositivo recebeu o comando mas ainda não baixou o arquivo;\r\n
\r\n 3 - O dispositivo já solicitou o arquivo mas não está na versão certa ainda;\r\n
\r\n 4 - O dispositivo já solicitou o arquivo e já está na versão certa;\r\n
\r\n

\r\n

\r\n A estratégia de reenvios só opera nos estados 1 e 2 e só para versões "limpas", incluindo as de teste.\r\n

\r\n

\r\n Se o dispositivo já começou a fazer o download e por algum motivo ainda não está na versão certa (estado 3) a estratégia não tenta novamente pelo risco de fazer o dispositivo entrar em um loop infinito de ficar baixando firmware.\r\n

\r\n

\r\n Hoje esta tela mostra a versão atual do firmware mas não mostra a versão que o usuário solicitou para enviar.\r\n

\r\n
\r\n
\r\n\r\n {/* Campo de busca/filtro e combo-box de ações para os dispositivos selecionados */}\r\n \r\n \r\n \r\n \r\n \r\n { state.searchState = e.target.value; state.limitItems = 200; state.lastScrollTop = 0; state.renderUpper(); debounceRenderTable(); }}\r\n />\r\n \r\n \r\n \r\n {(checkedDevs.length > 0) && (\r\n state.waitingRequest\r\n ? \r\n : (\r\n applyActionToSelected(opt.value)}\r\n />\r\n )\r\n )}\r\n \r\n
 
\r\n
\r\n
\r\n
\r\n\r\n {/* Modais */}\r\n {(state.openModal === 'ModalAddFirmware') && }\r\n {(state.openModal === 'ModalSendOtaUpdate') && }\r\n {(state.openModal === 'ModalUpdateResult') && }\r\n {(state.openModal === 'ModalReqVersResult') && }\r\n {(state.openModal === 'ModalReqCertResult') && }\r\n \r\n );\r\n}\r\n\r\nfunction DevsTable(props: { pageState: PageState }) {\r\n const { pageState: state } = props;\r\n const [localState, renderDevsTable, setLocalState] = useStateVar({\r\n sortBy: 'CLIENT_NAME',\r\n });\r\n state.renderDevsTable = renderDevsTable;\r\n\r\n state.filteredMachines = useMemo(() => {\r\n const columns: (keyof typeof state.allDevs[0])[] = ['STATE_ID', 'CITY_NAME', 'UNIT_NAME', 'CLIENT_NAME', 'machineName', 'DEV_ID', 'firmwareText', 'status', 'last_update_result', 'OTAPROCSTATUS', 'FWVERSSTATUS'];\r\n const filtered = filterByColumns(state.allDevs, columns, state.searchState);\r\n if (localState.sortBy) {\r\n orderByColumns(filtered, localState.sortBy, false);\r\n }\r\n return filtered;\r\n }, [state.searchState, state.allDevs]);\r\n\r\n function toggleCheckAll() {\r\n const checkState = !(state.filteredMachines[0] && state.filteredMachines[0].checked);\r\n for (const dev of state.filteredMachines) {\r\n dev.checked = checkState;\r\n }\r\n state.renderUpper();\r\n state.renderDevsTable();\r\n }\r\n\r\n function setSorting(column: string) {\r\n setLocalState({ sortBy: column });\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n setSorting('STATE_ID')}>Estado\r\n setSorting('CITY_NAME')}>Cidade\r\n setSorting('CLIENT_NAME')}>Cliente\r\n setSorting('UNIT_NAME')}>Unidade\r\n setSorting('machineName')}>Grupo\r\n setSorting('DEV_ID')}>Dispositivo\r\n setSorting('status')}>Status\r\n setSorting('col_firmware_s')}>Firmware\r\n setSorting('last_update_result')}>Status OTA\r\n setSorting('FWVERSSTATUS')}>Versão Correta\r\n setSorting('OTAPROCSTATUS')}>Comando OTA\r\n \r\n \r\n \r\n \r\n {state.filteredMachines.filter((x, i) => (i < state.limitItems)).map((dev) => (\r\n \r\n {dev.STATE_ID || '-'}\r\n {dev.CITY_NAME || '-'}\r\n {dev.CLIENT_NAME || '-'}\r\n {dev.UNIT_ID ? {dev.UNIT_NAME} : '-'}\r\n {dev.machineName || '-'}\r\n {dev.DEV_ID}\r\n {(dev.status === 'ONLINE') ? : (dev.status === 'OFFLINE') ? : (dev.status === 'LATE') ? : (dev.status || '-')}\r\n {(dev.col_firmware_s || '-')}\r\n {dev.last_update_result || '-'}\r\n {dev.FWVERSSTATUS || '-'}\r\n {dev.OTAPROCSTATUS || '-'}\r\n \r\n \r\n ))}\r\n \r\n \r\n {(state.limitItems < state.filteredMachines.length)\r\n && (\r\n

\r\n Carregando mais itens... (\r\n {state.limitItems}\r\n {' '}\r\n /\r\n {' '}\r\n {state.filteredMachines.length}\r\n )\r\n

\r\n )}\r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction RowCheckbox(props: { dev: DeviceRow, pageState: PageState }) {\r\n const { dev, pageState: state } = props;\r\n const [, renderCheckbox] = useState({});\r\n return { dev.checked = !dev.checked; renderCheckbox({}); state.renderUpper(); }} />;\r\n}\r\n\r\nfunction ModalAddFirmware(props: { pageState: PageState }) {\r\n const pageState = props.pageState;\r\n const [state, render, setState] = useStateVar({\r\n selectedFwFolder: null as null|string,\r\n file: null as null|(Blob&{name: string}),\r\n sending: false,\r\n });\r\n async function confirmAddFirmware() {\r\n if (!state.file) {\r\n toast.error('Selecione um arquivo');\r\n return;\r\n }\r\n if (!state.selectedFwFolder) {\r\n toast.error('Selecione uma pasta');\r\n return;\r\n }\r\n if (!pageState.fwStageFilter) {\r\n toast.error('Não foi possível identificar o tipo de firmware');\r\n return;\r\n }\r\n try {\r\n setState({ sending: true });\r\n await apiCallFormData('/devs/upload-new-firmware-version', {\r\n fileName: state.file.name,\r\n fwStage: pageState.fwStageFilter,\r\n fwFamily: state.selectedFwFolder,\r\n }, {\r\n file: state.file,\r\n });\r\n window.location.reload();\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.sending = false;\r\n render();\r\n }\r\n\r\n return (\r\n { pageState.openModal = null; pageState.renderUpper(); }}>\r\n \r\n
\r\n { state.selectedFwFolder = item; render(); }}\r\n notNull\r\n />\r\n
\r\n
 
\r\n
\r\n {(state.file && state.file.name) || ''}\r\n { state.file = e.target.files[0]; render(); }}>\r\n \r\n Selecionar Arquivo\r\n \r\n \r\n \r\n
\r\n
 
\r\n
\r\n {state.sending\r\n ? \r\n : }\r\n { pageState.openModal = null; pageState.renderUpper(); }}\r\n variant=\"grey\"\r\n >\r\n Cancelar\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction ModalSendOtaUpdate(props: { fwVersionsRows: FirmwareRow[], checkedDevs: DeviceRow[], pageState: PageState }) {\r\n const { fwVersionsRows, checkedDevs, pageState } = props;\r\n\r\n const [state, render, setState] = useStateVar({\r\n devIdFamilies: {} as {\r\n [devIdFamily: string]: {\r\n options: FirmwareRow[]\r\n selected: FirmwareRow\r\n }\r\n },\r\n invalidDevices: {} as {\r\n [devId: string]: string,\r\n },\r\n sending: false,\r\n });\r\n\r\n useEffect(() => {\r\n for (const dev of checkedDevs) {\r\n if ((!dev.devIdFamily) || (!dev.versionNumber)) {\r\n state.invalidDevices[dev.DEV_ID] = 'Firmware não identificado';\r\n continue;\r\n }\r\n if (!state.devIdFamilies[dev.devIdFamily]) {\r\n const compatibleVersions = pageState.fwVersionsRows.filter((fw) => {\r\n const { canUpdate } = checkCanUpdate(dev, fw);\r\n return !!canUpdate;\r\n });\r\n if (compatibleVersions.length === 0) {\r\n state.invalidDevices[dev.DEV_ID] = 'Nenhuma versão compatível';\r\n continue;\r\n }\r\n state.devIdFamilies[dev.devIdFamily] = {\r\n options: compatibleVersions,\r\n selected: compatibleVersions[0],\r\n };\r\n }\r\n const { canUpdate } = checkCanUpdate(dev, state.devIdFamilies[dev.devIdFamily].selected);\r\n if (!canUpdate) {\r\n state.invalidDevices[dev.DEV_ID] = 'Versão não compatível';\r\n continue;\r\n }\r\n }\r\n render();\r\n }, []);\r\n\r\n async function confirmRequestUpdate() {\r\n const devs: typeof pageState.modalUpdateResult.devs = [];\r\n\r\n const msgCantUpdate: string[] = [];\r\n\r\n for (const dev of checkedDevs) {\r\n if (state.invalidDevices[dev.DEV_ID]) continue;\r\n const fw = state.devIdFamilies[dev.devIdFamily!].selected;\r\n const { canUpdate, outMsg } = checkCanUpdate(dev, fw);\r\n if (!canUpdate) {\r\n msgCantUpdate.push(outMsg);\r\n continue;\r\n }\r\n devs.push({\r\n devId: dev.DEV_ID,\r\n fwPath: fw.path,\r\n });\r\n }\r\n\r\n if (msgCantUpdate.length > 0) {\r\n toast.error(`Os seguintes dispositivos não podem ser alterados para outra família: \\n${msgCantUpdate.join(';\\n')}`);\r\n return;\r\n }\r\n\r\n if (!window.confirm(`Deseja atualizar o firmware de ${devs.length} equipamento(s)?`)) {\r\n return;\r\n }\r\n\r\n pageState.modalUpdateResult.devs = devs;\r\n pageState.openModal = 'ModalUpdateResult';\r\n pageState.renderUpper();\r\n }\r\n\r\n return (\r\n { pageState.openModal = null; pageState.renderUpper(); }}>\r\n \r\n {Object.keys(state.devIdFamilies).map((devIdFamily) => (\r\n
\r\n { state.devIdFamilies[devIdFamily].selected = item; render(); }}\r\n notNull\r\n />\r\n
\r\n ))}\r\n
\r\n {checkedDevs.map((dev) => (\r\n
\r\n [\r\n {dev.devIdFamily}\r\n ] \r\n {dev.DEV_ID}\r\n
\r\n ))}\r\n
\r\n
 
\r\n
\r\n {state.sending\r\n ? \r\n : }\r\n { pageState.openModal = null; pageState.renderUpper(); }}\r\n variant=\"grey\"\r\n >\r\n Cancelar\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction ModalUpdateResult(props: { pageState: PageState }) {\r\n const state = props.pageState;\r\n const [, render_modal] = useStateVar(() => {\r\n sendAll();\r\n return {};\r\n });\r\n\r\n function sendAll(isRetry?: boolean) {\r\n for (const dev of state.modalUpdateResult.devs) {\r\n sendCommand(dev, isRetry);\r\n }\r\n }\r\n\r\n function sendCommand(dev, isRetry) {\r\n if (dev.status === 'Comando enviado!') return;\r\n dev.status = 'Aguardando resposta...';\r\n Promise.resolve().then(async () => {\r\n try {\r\n if (dev.fwPath) {\r\n const pars = { devId: dev.devId, path: dev.fwPath, waitLonger: isRetry };\r\n await apiCall('/dev/command-ota', pars);\r\n dev.status = 'Comando enviado!';\r\n } else {\r\n dev.status = 'Não foi possível identificar o firmware!';\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n dev.status = 'Houve erro';\r\n }\r\n render_modal();\r\n });\r\n }\r\n\r\n const thereWasErr = state.modalUpdateResult.devs.some((dev) => (dev.status === 'Houve erro'));\r\n\r\n return (\r\n { state.openModal = null; state.renderUpper(); }}>\r\n \r\n
\r\n {state.modalUpdateResult.devs.map((dev) => (\r\n
\r\n {dev.devId}\r\n :\r\n {' '}\r\n {dev.status}\r\n
\r\n ))}\r\n
\r\n
\r\n {(thereWasErr)\r\n && (\r\n \r\n )}\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction ModalReqVersResult(props: { pageState: PageState }) {\r\n const state = props.pageState;\r\n type SubProps = {\r\n dev: {\r\n devId: string\r\n status?: string\r\n }\r\n };\r\n function DevLine(subProps: SubProps) {\r\n const { dev } = subProps;\r\n const [, renderLine] = useState(() => {\r\n dev.status = 'Aguardando resposta...';\r\n return {};\r\n });\r\n useEffect(() => {\r\n Promise.resolve().then(async () => {\r\n try {\r\n const pars = { devId: dev.devId };\r\n await apiCall('/dev/request-firmware-info', pars);\r\n dev.status = 'Recebido!';\r\n } catch (err) {\r\n console.log(err);\r\n dev.status = 'Houve erro';\r\n }\r\n renderLine({});\r\n });\r\n }, []);\r\n return (\r\n
\r\n {dev.devId}\r\n :\r\n {' '}\r\n {dev.status}\r\n
\r\n );\r\n }\r\n\r\n return (\r\n { state.openModal = null; state.renderUpper(); }}>\r\n \r\n
\r\n {state.modalReqVersResult.devs.map((dev) => )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction ModalReqCertResult(props: { pageState: PageState }) {\r\n const state = props.pageState;\r\n function DevLine({ dev }) {\r\n const [, renderLine] = useState(() => {\r\n dev.status = 'Aguardando resposta...';\r\n return {};\r\n });\r\n useEffect(() => {\r\n Promise.resolve().then(async () => {\r\n try {\r\n await apiCall('/request-dev-cert-check', { devId: dev.devId });\r\n dev.status = 'Recebido!';\r\n } catch (err) {\r\n console.log(err);\r\n dev.status = 'Houve erro';\r\n }\r\n renderLine({});\r\n });\r\n }, []);\r\n return (\r\n
\r\n {dev.devId}\r\n :\r\n {' '}\r\n {dev.status}\r\n
\r\n );\r\n }\r\n\r\n return (\r\n { state.openModal = null; state.renderUpper(); }}>\r\n \r\n
\r\n {state.modalReqCertResult.devs.map((dev) => )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\n// Não é permitido atualização de versão de uma major para outra; tanto downgrade quanto upgrade (ex: 2.x.x para 3.x.x ou vice versa)\r\n// com exceção para famílias 1 e 2 dos dispositivos 'dac2', 'dac3', 'dac4', 'dut', 'dut3', 'dam2' e 'dam3' (ex: 1.x.x para a 2.x.x)\r\n// e dispositivos sem versão (tageados), em que nesse caso podem atualizar apenas para versão que seja refatorada\r\nfunction checkCanUpdate(currFwInfo: DeviceRow, wantedFwInfo: FirmwareRow) {\r\n const devId = currFwInfo.DEV_ID;\r\n\r\n // Se não soubermos a versão atual do dispositivo, não permite atualizar\r\n const currMajor = currFwInfo.versionNumber?.vMajor || null;\r\n const newMajor = wantedFwInfo.versionNumber?.vMajor || null;\r\n if ((!currMajor) || (!currFwInfo.fwInfo)) {\r\n return { canUpdate: false, outMsg: `${devId} com versão desconhecida` };\r\n }\r\n\r\n // Restrição pelo DEVID e coluna. Dispositivos só devem ser capazes de atualizar suas versões de acordo com a coluna certa com as iniciais igual ao DEVID.\r\n // \"fwFamily\" é a pasta (do S3) que contém o arquivo de firmware e é também o nome da coluna na tela de firmwares.\r\n if ((wantedFwInfo.fwFamily.length === 4) && devId.toLowerCase().startsWith(wantedFwInfo.fwFamily.toLowerCase())) {\r\n // OK, caso padrão\r\n } else if ((wantedFwInfo.fwFamily === 'dut') && ['DUT0', 'DUT1', 'DUT2'].includes(devId.toUpperCase().substring(0, 4))) {\r\n // OK, dispositivos com o DEVID iniciado em DUT0, DUT1 e DUT2 podem receber firmware da coluna DUT\r\n } else if ((wantedFwInfo.fwFamily === 'dma0') && ['DMA1'].includes(devId.toUpperCase().substring(0, 4))) {\r\n // OK, dispositivos com DEVID iniciado em DMA1 podem receber versões de firmware da coluna DMA0\r\n } else {\r\n return { canUpdate: false, outMsg: `Não pode atualizar ${devId} pois a pasta do firmware (${wantedFwInfo.path}) não corresponde ao dev_id` };\r\n }\r\n\r\n // Legado tem formato: \"1_3_4\"\r\n // Refatorado tem formato: \"v3.2.0\", \"v4.1.1-1-g21fcc67-dirty\", \"d80e580-dirty\", \"085427f\"\r\n // Observei que atualmente versão major 1 e 2 é sempre legado, refatorado é a partir de versão major 3.\r\n const currentVersion = currFwInfo.fwInfo?.firmware_version;\r\n const newIsLegacy = wantedFwInfo.fwVers.includes('_');\r\n const currentIsLegacy = currentVersion?.includes('_');\r\n const currentIsRefactor = !currentIsLegacy;\r\n\r\n const newIsRefactor = !newIsLegacy;\r\n const isSameLegacyRefactor = newIsRefactor === currentIsRefactor || newIsLegacy === currentIsLegacy;\r\n\r\n // Não é permitido atualização de versão de uma major para outra; tanto downgrade quanto upgrade (ex: 2.x.x para 3.x.x ou vice versa)\r\n // Compatibilidade de Versões de major. Versões de firmware na linha 2_x_x, v3.x.x ou v4.x.x só podem receber versões da mesma linha.\r\n // Dispositivos só podem ser atualizados de refatorado para refatorado e de legado para legado\r\n if (!isSameLegacyRefactor) {\r\n return {\r\n canUpdate: false,\r\n outMsg: `Não pode atualizar ${devId} entre legado e refatorado. Versão ${currentVersion} para ${wantedFwInfo.fwVers}`,\r\n };\r\n }\r\n\r\n if (newMajor === currMajor) {\r\n // OK, caso padrão\r\n } else if ((currMajor === 1) && (newMajor === 2) && ['DAC2', 'DAC3', 'DAC4'].includes(devId.toUpperCase().substring(0, 4))) {\r\n // OK, dispositivos com o DEVID iniciado em DAC2, DAC3 e DAC4 E versão de firmware 1_x_x podem receber versões de firmware na linha 2_x_x\r\n // Antes esta regra se aplicava também a: 'dut', 'dut3', 'dam2', 'dam3'\r\n } else if ((!currMajor) && newIsRefactor) {\r\n // OK, dispositivos sem versão (tageados) podem atualizar apenas para versão que seja refatorada\r\n } else {\r\n return { canUpdate: false, outMsg: `Não pode atualizar ${devId} mudando da versão ${currentVersion} para ${wantedFwInfo.fwVers}` };\r\n }\r\n\r\n return { canUpdate: true, outMsg: '' };\r\n}\r\n\r\nexport default withTransaction('AdmFirmware', 'component')(AdmFirmware);\r\n","import { useState, useMemo } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n Button, Input, Select, Checkbox,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\n\r\nexport const FormEditGroup = (props: {\r\n groupInfo?: {\r\n GROUP_ID: number\r\n GROUP_NAME: string\r\n UNIT_ID: number\r\n DEV_AUT: string\r\n DUT_ID: string\r\n }\r\n unitInfo?: {\r\n UNIT_ID: number\r\n UNIT_NAME: string\r\n }\r\n unitsList?: {\r\n UNIT_ID: number\r\n }[]\r\n dutsList?: {\r\n ROOM_NAME: string\r\n DEV_ID: string\r\n UNIT_ID: number\r\n roomDutLabel?: string\r\n automationEnabled: boolean\r\n }[]\r\n damsList?: {\r\n DAM_ID: string\r\n UNIT_ID: number\r\n }[]\r\n dacsList?: {\r\n DAC_ID: string\r\n GROUP_ID: number\r\n automationEnabled: boolean\r\n }[]\r\n clientId: number\r\n onSuccess: (result: { item: {}, action: string, changedAssociation: boolean }) => void\r\n onCancel: () => void\r\n}): JSX.Element => {\r\n const {\r\n groupInfo, unitInfo, unitsList, dutsList, damsList, dacsList, clientId, onSuccess, onCancel,\r\n } = props;\r\n const [state, render, setState] = useStateVar(() => {\r\n if (dutsList) {\r\n for (const dutItem of dutsList) {\r\n dutItem.roomDutLabel = dutItem.ROOM_NAME ? `${dutItem.ROOM_NAME} (${dutItem.DEV_ID})` : dutItem.DEV_ID;\r\n }\r\n }\r\n\r\n const state = {\r\n submitting: false,\r\n formData: {\r\n GROUP_ID: (groupInfo && groupInfo.GROUP_ID) || null,\r\n GROUP_NAME: (groupInfo && groupInfo.GROUP_NAME) || '',\r\n unit: unitInfo || (unitsList && groupInfo && groupInfo.UNIT_ID && unitsList.find((unit) => unit.UNIT_ID === groupInfo.UNIT_ID)) || null,\r\n selectedDacs: {} as { [dacId: string]: boolean },\r\n autom: (groupInfo && groupInfo.DEV_AUT && damsList && damsList.find((item) => item.DAM_ID === groupInfo.DEV_AUT)) || null,\r\n dut: (groupInfo && groupInfo.DUT_ID && dutsList && dutsList.find((item) => item.DEV_ID === groupInfo.DUT_ID)) || null,\r\n associatedDacs: null as null|({ DAC_ID: string, automationEnabled: boolean }[]),\r\n },\r\n warningMessage: null as null|string,\r\n };\r\n\r\n const { formData } = state;\r\n if (formData.GROUP_ID && dacsList) {\r\n formData.associatedDacs = dacsList.filter((dac) => dac.GROUP_ID === formData.GROUP_ID);\r\n for (const dac of dacsList) {\r\n formData.selectedDacs[dac.DAC_ID] = (dac.GROUP_ID != null && dac.GROUP_ID === formData.GROUP_ID);\r\n }\r\n }\r\n\r\n return state;\r\n });\r\n\r\n const { formData } = state;\r\n function set_formData(v) { state.formData = v; render(); }\r\n const isEdit = !!formData.GROUP_ID;\r\n\r\n const filteredDuts = useMemo(() => {\r\n if (!dutsList) return [];\r\n if (!formData.unit) return dutsList;\r\n return dutsList.filter((x) => x.UNIT_ID === formData.unit!.UNIT_ID);\r\n }, [formData.unit]);\r\n const filteredDams = useMemo(() => {\r\n if (!damsList) return [];\r\n if (!formData.unit) return damsList;\r\n return damsList.filter((x) => x.UNIT_ID === formData.unit!.UNIT_ID);\r\n }, [formData.unit]);\r\n\r\n function checkAutomationConstraints() {\r\n // Check if the machine has DACs with automation enabled\r\n const automationDevs = [] as string[];\r\n const selectedAutDacs = [] as string[];\r\n for (const dac of (formData.associatedDacs || [])) {\r\n if (dac.automationEnabled && formData.selectedDacs[dac.DAC_ID]) {\r\n automationDevs.push(dac.DAC_ID);\r\n selectedAutDacs.push(dac.DAC_ID);\r\n }\r\n }\r\n\r\n if (formData.dut && formData.dut.automationEnabled) {\r\n automationDevs.push(formData.dut.DEV_ID);\r\n }\r\n\r\n if (formData.autom) {\r\n if (!automationDevs.includes(formData.autom.DAM_ID)) {\r\n automationDevs.push(formData.autom.DAM_ID);\r\n }\r\n }\r\n\r\n state.warningMessage = null;\r\n if (automationDevs.length > 1) {\r\n state.warningMessage = automationDevs.join(', ');\r\n }\r\n\r\n return selectedAutDacs;\r\n }\r\n\r\n async function confirm() {\r\n let response = null as null|{};\r\n let action = null as null|string;\r\n let changedAssociation = false;\r\n try {\r\n if (!formData.GROUP_NAME) {\r\n alert('É necessário informar um nome para o grupo');\r\n return;\r\n }\r\n\r\n const associations = {\r\n REL_DEV_AUT: (formData.autom && formData.autom.DAM_ID) || null,\r\n REL_DUT_ID: (formData.dut && formData.dut.DEV_ID) || null,\r\n };\r\n\r\n // Check if there is DAC with automation enabled\r\n for (const dac of (formData.associatedDacs || [])) {\r\n if (dac.automationEnabled) {\r\n if (associations.REL_DEV_AUT && (associations.REL_DEV_AUT !== dac.DAC_ID)) {\r\n alert(`Não é permitido selecionar 2 dispositivos de automação\\nna mesma máquina: ${associations.REL_DEV_AUT} e ${dac.DAC_ID}`);\r\n return;\r\n }\r\n associations.REL_DEV_AUT = dac.DAC_ID;\r\n }\r\n }\r\n\r\n // Check if selected DUT has automation enabled\r\n if (associations.REL_DEV_AUT && associations.REL_DUT_ID) {\r\n if (formData.dut!.automationEnabled) {\r\n alert(`Não é permitido selecionar 2 dispositivos de automação\\nna mesma máquina: ${associations.REL_DEV_AUT} e ${associations.REL_DUT_ID}`);\r\n return;\r\n }\r\n }\r\n\r\n if (isEdit) {\r\n // if (state.originalDuts && state.originalDuts.some(dutId => dutId !== reqData.REL_DUT_ID)) {\r\n // changedAssociation = true;\r\n // } else if (state.originalDams.length !== formData.dams.length) {\r\n // changedAssociation = true;\r\n // } else {\r\n // for (const damId of reqData.damIds) {\r\n // if (!state.originalDams.includes(damId)) {\r\n // changedAssociation = true;\r\n // }\r\n // }\r\n // }\r\n state.submitting = true; render();\r\n if (formData.associatedDacs) {\r\n for (const dac of formData.associatedDacs) {\r\n if (!formData.selectedDacs[dac.DAC_ID]) {\r\n changedAssociation = true;\r\n await apiCall('/dac/set-dac-info', { DAC_ID: dac.DAC_ID, GROUP_ID: null });\r\n }\r\n }\r\n }\r\n response = await apiCall('/clients/edit-group', {\r\n GROUP_ID: formData.GROUP_ID!,\r\n GROUP_NAME: formData.GROUP_NAME!,\r\n REL_DEV_AUT: associations.REL_DEV_AUT,\r\n REL_DUT_ID: associations.REL_DUT_ID,\r\n CLIENT_ID: clientId,\r\n });\r\n action = 'edit';\r\n } else {\r\n if (!formData.unit) {\r\n alert('É necessário selecionar a unidade');\r\n return;\r\n }\r\n state.submitting = true; render();\r\n response = await apiCall('/dac/add-new-group', {\r\n UNIT_ID: (formData.unit && formData.unit.UNIT_ID),\r\n GROUP_NAME: formData.GROUP_NAME!,\r\n REL_DAM_ID: (associations.REL_DEV_AUT?.startsWith('DAM') || associations.REL_DEV_AUT?.startsWith('DAC')) && associations.REL_DEV_AUT || null,\r\n REL_DRI_ID: associations.REL_DEV_AUT?.startsWith('DRI') && associations.REL_DEV_AUT || null,\r\n REL_DEV_AUT: associations.REL_DEV_AUT,\r\n REL_DUT_ID: associations.REL_DUT_ID,\r\n CLIENT_ID: clientId,\r\n });\r\n action = 'new';\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.submitting = false; render();\r\n if (response && action) onSuccess({ item: response, action, changedAssociation });\r\n }\r\n\r\n const selectedAutDacs = checkAutomationConstraints();\r\n let allowedDams;\r\n if (selectedAutDacs.length > 0) {\r\n allowedDams = filteredDams.filter((dam) => selectedAutDacs.includes(dam.DAM_ID));\r\n } else {\r\n allowedDams = filteredDams;\r\n }\r\n\r\n return (\r\n
\r\n {unitsList && (\r\n { set_formData({ ...formData, unit: item }); }}\r\n disabled={isEdit}\r\n />\r\n )}\r\n {((!unitsList) && unitInfo && unitInfo.UNIT_NAME) && (\r\n
\r\n Unidade:\r\n {unitInfo.UNIT_NAME}\r\n
\r\n )}\r\n 250}\r\n error={state.formData.GROUP_NAME.length > 250 ? 'O campo deve ter entre 3 e 250 caracteres.' : undefined}\r\n onChange={(event) => set_formData({ ...formData, GROUP_NAME: event.target.value })}\r\n />\r\n {((filteredDams.length > 0) || (groupInfo && groupInfo.DEV_AUT)) && (\r\n { formData.autom = item; render(); }}\r\n />\r\n )}\r\n {((filteredDuts.length > 0) || (groupInfo && groupInfo.DUT_ID)) && (\r\n { formData.dut = item; render(); }}\r\n />\r\n )}\r\n {(dacsList || []).map((dac) => (\r\n { formData.selectedDacs[dac.DAC_ID] = !formData.selectedDacs[dac.DAC_ID]; render(); }}\r\n style={{ marginTop: '10px' }}\r\n />\r\n ))}\r\n {(state.warningMessage) && (\r\n
\r\n Múltiplos dispositivos de automação selecionados:\r\n {' '}\r\n
\r\n {state.warningMessage}\r\n
\r\n )}\r\n \r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const StyledSpan = styled.span`\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const FwVersTable = styled.div<{ limitSize, numCols }>(({ limitSize, numCols }) => `\r\n display: grid;\r\n grid-column-gap: 20px;\r\n grid-template-columns:${' auto'.repeat(numCols)};\r\n margin-top: 30px;\r\n ${limitSize ? 'max-height: 240px; overflow-y: hidden;' : ''}\r\n`);\r\nexport const ViewMoreArrow = styled.p<{ viewMore }>(\r\n ({ viewMore }) => `\r\n span {\r\n font-size: 1em;\r\n color: ${colors.Grey400};\r\n }\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n svg {\r\n margin-left: 12px;\r\n transition: all 0.2s;\r\n transform: rotate(${viewMore ? '-180' : '0'}deg);\r\n }\r\n`,\r\n);\r\nexport const TableNew2 = styled.table`\r\n white-space: nowrap;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n & tbody {\r\n border: 1px solid ${colors.Grey};\r\n & tr {\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n }\r\n & td {\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n }\r\n }\r\n & thead {\r\n & tr {\r\n height: 40px;\r\n display: table-row;\r\n }\r\n & th {\r\n flex: 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 0 10px;\r\n word-break: normal;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n }\r\n }\r\n`;\r\n","import { useEffect } from 'react';\r\n\r\nimport queryString from 'query-string';\r\nimport { Helmet } from 'react-helmet';\r\nimport { Link } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\n\r\nimport {\r\n Loader, ModalWindow,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { FormEditGroup } from 'pages/ClientPanel/FormEditGroup';\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n TableNew2,\r\n} from './styles';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport const AdminGroupAutomation = ({ history }) => {\r\n const [state, render, setState] = useStateVar(() => {\r\n const { preFiltered } = queryString.parse(history.location.search);\r\n const state = {\r\n list: [] as ApiResps['/get-machines-automation-info']['list'],\r\n filteredList: [] as ApiResps['/get-machines-automation-info']['list'],\r\n damsListFull: [] as ApiResps['/dam/get-dams-list']['list'],\r\n dacsListFull: [] as ApiResps['/dac/get-dacs-list']['list'],\r\n dutsListFull: [] as ApiResps['/dut/get-duts-list']['list'],\r\n limitItems: 50,\r\n lastScrollHeight: 0,\r\n isLoading: true,\r\n editingGroup: null as null|{\r\n group: ApiResps['/get-machines-automation-info']['list'][0],\r\n damsList: ApiResps['/dam/get-dams-list']['list'],\r\n dacsList: ApiResps['/dac/get-dacs-list']['list'],\r\n dutsList: ApiResps['/dut/get-duts-list']['list'],\r\n },\r\n };\r\n\r\n return state;\r\n });\r\n\r\n function openEditGroup(groupId: number) {\r\n const group = groupId && state.list.find((row) => row.GROUP_ID === groupId) || null;\r\n if (!group) {\r\n state.editingGroup = null;\r\n return;\r\n }\r\n state.editingGroup = {\r\n group,\r\n dacsList: state.dacsListFull.filter((dac) => (dac.UNIT_ID === group.UNIT_ID) && ((dac.GROUP_ID == null) || (dac.GROUP_ID === group.GROUP_ID))),\r\n dutsList: state.dutsListFull.filter((dut) => dut.UNIT_ID === group.UNIT_ID),\r\n damsList: state.damsListFull.filter((dam) => dam.UNIT_ID === group.UNIT_ID),\r\n };\r\n state.editingGroup.damsList = state.editingGroup.damsList.filter((dam) => {\r\n const dac = dam.isDac && state.editingGroup!.dacsList.find((dac) => dac.DAC_ID === dam.DAM_ID) || null;\r\n if (dac && dac.GROUP_ID !== group.GROUP_ID) return false;\r\n return true;\r\n });\r\n render();\r\n }\r\n\r\n async function handleGetData() {\r\n try {\r\n setState({ isLoading: true });\r\n const [\r\n { list },\r\n { list: damsListFull },\r\n { list: dacsListFull },\r\n { list: dutsListFull },\r\n ] = await Promise.all([\r\n apiCall('/get-machines-automation-info', {}),\r\n apiCall('/dam/get-dams-list', { includeDacs: true }),\r\n apiCall('/dac/get-dacs-list', {}),\r\n apiCall('/dut/get-duts-list', {}),\r\n ]);\r\n state.list = list;\r\n state.damsListFull = damsListFull;\r\n state.dacsListFull = dacsListFull;\r\n state.dutsListFull = dutsListFull;\r\n state.filteredList = state.list.filter((x) => x.problemsFound && x.problemsFound.length);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n useEffect(() => {\r\n handleGetData();\r\n }, []);\r\n\r\n useEffect(() => {\r\n function onScroll() {\r\n if (!state.limitItems) return;\r\n if (state.limitItems >= state.filteredList.length) return;\r\n const scrollBottom = document.documentElement.scrollTop + window.innerHeight;\r\n const distanceToEnd = document.documentElement.offsetHeight - scrollBottom;\r\n if (!(distanceToEnd < 500)) return;\r\n if (state.lastScrollHeight >= document.documentElement.offsetHeight) return;\r\n setState({\r\n limitItems: state.limitItems + 200,\r\n lastScrollHeight: document.documentElement.offsetHeight,\r\n });\r\n }\r\n window.addEventListener('scroll', onScroll);\r\n return () => window.removeEventListener('scroll', onScroll);\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Máquinas\r\n \r\n \r\n {state.isLoading && }\r\n {(!state.isLoading) && (\r\n <>\r\n {state.editingGroup && (\r\n setState({ editingGroup: null })}>\r\n setState({ editingGroup: null })}\r\n onSuccess={() => { toast.success('Atualize a página'); setState({ editingGroup: null }); }}\r\n />\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n CLIENT_NAME\r\n UNIT_NAME\r\n GROUP_NAME\r\n dacs\r\n DAM_ID\r\n DUT_ID\r\n problemsFound\r\n \r\n \r\n \r\n {state.filteredList.filter((x, i) => (i < state.limitItems)).map((group) => (\r\n \r\n {group.CLIENT_NAME}\r\n {group.UNIT_NAME}\r\n \r\n openEditGroup(group.GROUP_ID)}>\r\n {group.GROUP_NAME}\r\n \r\n \r\n \r\n {group.dacs.map((dac) => (\r\n
\r\n \r\n {dac.DAC_ID}\r\n \r\n {dac.automationEnabled && ' (aut)'}\r\n
\r\n )) || '-'}\r\n \r\n \r\n {group.DEV_AUT && (\r\n \r\n {group.DEV_AUT}\r\n \r\n ) || '-'}\r\n {group.DAM_DUT_REF && (\r\n \r\n {` (${group.DAM_DUT_REF})`}\r\n \r\n )}\r\n \r\n \r\n {group.DUT_ID && (\r\n
\r\n \r\n {group.DUT_ID}\r\n \r\n {group.dutAutomationEnabled && ' (aut)'}\r\n
\r\n ) || '-'}\r\n \r\n \r\n {group.problemsFound && group.problemsFound.map((problem) =>
{problem}
)}\r\n \r\n \r\n ))}\r\n \r\n
\r\n {(state.limitItems < state.filteredList.length)\r\n && (\r\n

\r\n Carregando mais itens... (\r\n {state.limitItems}\r\n {' '}\r\n /\r\n {' '}\r\n {state.filteredList.length}\r\n )\r\n

\r\n )}\r\n
\r\n
\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('AdminGroupAutomation', 'component')(AdminGroupAutomation);\r\n","export function getObjects(obj, val) {\r\n let objects: any[] = [];\r\n for (const i in obj) {\r\n if (!obj.hasOwnProperty(i)) continue;\r\n\r\n if (obj[i] && typeof obj[i] === 'object') {\r\n objects = objects.concat(getObjects(obj[i], val));\r\n } else if (obj[i]?.toString().toLowerCase().includes(val.toString().toLowerCase())) {\r\n if (objects.lastIndexOf(obj) === -1) {\r\n objects.push(obj);\r\n }\r\n }\r\n }\r\n return objects;\r\n}\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const Scroll = styled.div`\r\n overflow-x: auto;\r\n`;\r\n\r\nexport const Container = styled.table`\r\n width: 100%;\r\n`;\r\n\r\nexport const Head = styled.thead`\r\n text-align: left;\r\n`;\r\n\r\nexport const Body = styled.tbody`\r\n overflow-x: scroll;\r\n`;\r\n\r\nexport const HeaderCell = styled.th`\r\n padding: 0 10px;\r\n color: ${colors.DarkGrey};\r\n background-color: ${colors.White};\r\n border-bottom: solid 1px ${colors.Grey};\r\n`;\r\n\r\nexport const HeaderTitle = styled.div`\r\n align-items: center;\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: flex-start;\r\n position: relative;\r\n font-size: 0.75em;\r\n`;\r\n\r\nexport const Data = styled.td`\r\n color: ${colors.DarkGrey};\r\n min-width: 100px;\r\n padding: 0 10px;\r\n`;\r\n\r\nexport const Row = styled.tr`\r\n height: 50px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\n","/* eslint-disable react/no-unknown-property */\r\nimport { useEffect, useState } from 'react';\r\n\r\nimport { Link } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Box } from 'reflexbox';\r\nimport {\r\n Loader,\r\n Button,\r\n ActionButton,\r\n InputSearch,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { DeleteOutlineIcon, EditIcon } from 'icons';\r\nimport { apiCall } from 'providers';\r\nimport { colors } from 'styles/colors';\r\nimport { getObjects } from '~/helpers/getObjetcs';\r\nimport {\r\n Scroll,\r\n Container,\r\n Head,\r\n Body,\r\n HeaderCell,\r\n HeaderTitle,\r\n Data,\r\n Row,\r\n} from './styles';\r\n\r\nexport const ClientsList = (props: { fabricantes?: boolean }): JSX.Element => {\r\n const { fabricantes } = props;\r\n const [state, _render, setState] = useStateVar({\r\n clients: [] as {\r\n CLIENT_ID: number;\r\n NAME: string;\r\n EMAIL?: string;\r\n PICTURE?: string;\r\n ENABLED?: string;\r\n clientType: ('cliente' | 'fabricante' | 'mantenedor' | 'parceira')[];\r\n }[],\r\n clientsFiltered: [] as {\r\n CLIENT_ID: number;\r\n NAME: string;\r\n EMAIL?: string;\r\n PICTURE?: string;\r\n ENABLED?: string;\r\n clientType: ('cliente' | 'fabricante' | 'mantenedor' | 'parceira')[];\r\n }[],\r\n loading: false,\r\n nomesTipos: {} as { [k: string]: string },\r\n searchText: '',\r\n });\r\n\r\n useEffect(() => {\r\n getAllClients();\r\n }, []);\r\n\r\n const onSearch = (e) => {\r\n setState({ searchText: e.target.value });\r\n\r\n if (e.target.value) {\r\n setState({ clientsFiltered: state.clientsFiltered.filter((row) => getObjects(row, e.target.value).length) });\r\n } else {\r\n setState({ clientsFiltered: state.clients });\r\n }\r\n };\r\n\r\n async function getAllClients() {\r\n try {\r\n setState({ loading: true });\r\n const response = await apiCall('/clients/get-clients-list', { full: true });\r\n if (response) {\r\n for (const row of response.list) {\r\n if (row.ENABLED === '1') row.ENABLED = 'SIM';\r\n if (row.ENABLED === '0') row.ENABLED = 'NÃO';\r\n }\r\n const filterData = response.list.filter((row) => {\r\n if (fabricantes && !(row.PERMS_C || '').includes('[F]')) return false;\r\n return true;\r\n })\r\n .sort((a, b) => (a.NAME >= b.NAME ? 1 : -1));\r\n state.nomesTipos = {};\r\n for (const { cod2, label } of Object.values(response.clientTypes || {})) {\r\n state.nomesTipos[cod2] = label;\r\n }\r\n setState({ clients: filterData });\r\n setState({ clientsFiltered: filterData });\r\n }\r\n } catch (error) { console.log(error); toast.error('Houve erro'); }\r\n setState({ loading: false });\r\n }\r\n\r\n async function deleteClient(rowData) {\r\n try {\r\n if (!window.confirm(`Deseja excluir o cliente ${rowData.NAME}?`)) return;\r\n await apiCall('/clients/remove-client', { clientId: rowData.CLIENT_ID, keepDevsData: true });\r\n window.location.reload();\r\n } catch (error) { console.log(error); toast.error('Houve erro'); }\r\n }\r\n\r\n if (state.loading) {\r\n return ;\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n Logo\r\n \r\n \r\n \r\n \r\n Nome\r\n \r\n \r\n \r\n \r\n Email\r\n \r\n \r\n \r\n \r\n Tipo\r\n \r\n \r\n \r\n \r\n Habilitado\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {state.clientsFiltered.map((item) => (\r\n \r\n \r\n \r\n \r\n {item.NAME || '-'}\r\n {item.EMAIL || '-'}\r\n {(item.clientType || []).map((x) => state.nomesTipos[x] || x).join(', ')}\r\n {item.ENABLED}\r\n \r\n deleteClient(item)} variant=\"red-inv\">\r\n \r\n \r\n \r\n {}}\r\n variant=\"blue-inv\"\r\n >\r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import { Helmet } from 'react-helmet';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport { ClientsList } from '../ClientsList';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { t } from 'i18next';\r\n\r\nexport const ClientsListWrapper = (): JSX.Element => (\r\n <>\r\n \r\n {t('celcius360Empresas')}\r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport default withTransaction('ClientsListWrapper', 'component')(ClientsListWrapper);\r\n","import styled from 'styled-components';\r\n\r\nimport {\r\n Button,\r\n} from '~/components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\n\r\nexport const TableHead = styled.thead`\r\n`;\r\n\r\nexport const TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\n\r\nexport const HeaderCell = styled.th`\r\n text-align: left;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\n\r\nexport const DataCell = styled.td`\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\n\r\nexport const Row = styled.tr`\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\n\r\nexport const HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n\r\nexport const SimpleButton = styled(Button)`\r\n width: initial;\r\n padding: 8px 15px;\r\n margin: 7px 7px;\r\n`;\r\n","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n Input, ModalWindow, ActionButton, Button, Loader, Select,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { DeleteOutlineIcon } from 'icons';\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport { ClientsList } from '../ClientsList';\r\nimport {\r\n TableContainer,\r\n TableHead,\r\n TableBody,\r\n HeaderCell,\r\n DataCell,\r\n Row,\r\n HeaderRow,\r\n SimpleButton,\r\n} from './styles';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport const DevManufacts = (): JSX.Element => {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n list: [] as {\r\n IDSTART: string;\r\n IDEND: string;\r\n CLIENT_ID: number;\r\n CLIENT_NAME: string;\r\n }[],\r\n manufacturers: [] as {\r\n CLIENT_ID: number;\r\n NAME: string;\r\n PERMS_C: string;\r\n EMAIL?: string | undefined;\r\n PICTURE?: string | undefined;\r\n ENABLED?: string | undefined;\r\n clientType: ('cliente'|'fabricante'|'mantenedor'|'parceira')[];\r\n CNPJ?: string | undefined;\r\n PHONE?: string | undefined;\r\n }[],\r\n openModal: false,\r\n loading: true,\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n\r\n async function fetchData() {\r\n try {\r\n state.loading = true; render();\r\n const [\r\n { list },\r\n { list: clientsList },\r\n ] = await Promise.all([\r\n apiCall('/config/get-manufact-devs', {}),\r\n apiCall('/clients/get-clients-list', {}),\r\n ]);\r\n state.list = list;\r\n state.manufacturers = clientsList.filter((item) => (item.PERMS_C || '').includes('[F]'));\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.loading = false; render();\r\n }\r\n async function deleteItem(item) {\r\n try {\r\n if (window.confirm(`Deseja excluir a faixa ${item.IDSTART} - ${item.IDEND}?`)) {\r\n await apiCall('/config/delete-manufact-devs', { IDSTART: item.IDSTART, IDEND: item.IDEND });\r\n window.location.reload();\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterCreateItem({ item: responseData }) {\r\n try {\r\n state.openModal = false;\r\n await fetchData();\r\n toast.success('Sucesso');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Configurações\r\n \r\n \r\n {state.loading && }\r\n {(!state.loading)\r\n && (\r\n
\r\n
\r\n
\r\n
 
\r\n setState({ openModal: true })}>Adicionar Faixa\r\n
\r\n \r\n \r\n \r\n Faixa\r\n Fabricante\r\n \r\n \r\n \r\n \r\n {state.list.map((item) => (\r\n \r\n {`${item.IDSTART} - ${item.IDEND}`}\r\n {item.CLIENT_NAME}\r\n \r\n deleteItem(item)} variant=\"red-inv\">\r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n
\r\n \r\n {state.openModal\r\n ? (\r\n \r\n { state.openModal = false; render(); }}\r\n onSuccess={afterCreateItem}\r\n />\r\n \r\n ) : <> }\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nfunction FormEdit({ manufacturers, onSuccess, onCancel }) {\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n IDSTART: '',\r\n IDEND: '',\r\n CLIENT_ID_item: manufacturers[0] || null,\r\n });\r\n\r\n async function confirm() {\r\n let response = null as null|ApiResps['/config/add-manufact-devs'];\r\n try {\r\n state.submitting = true; render();\r\n const reqData = {\r\n IDSTART: state.IDSTART,\r\n IDEND: state.IDEND,\r\n CLIENT_ID: state.CLIENT_ID_item.CLIENT_ID,\r\n };\r\n response = await apiCall('/config/add-manufact-devs', reqData);\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.submitting = false; render();\r\n if (response) onSuccess({ item: response });\r\n }\r\n\r\n return (\r\n
\r\n { setState({ IDSTART: event.target.value }); }}\r\n />\r\n
\r\n { setState({ IDEND: event.target.value }); }}\r\n />\r\n
\r\n { setState({ CLIENT_ID_item: item }); }}\r\n notNull\r\n />\r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\nexport default withTransaction('DevManufacts', 'component')(DevManufacts);\r\n","import styled from 'styled-components';\r\n\r\nexport const ContainerInputs = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n max-width: 300px;\r\n`;\r\n\r\nexport const DynRow = styled.div`\r\n display: grid;\r\n grid-template-columns: 170px 50px 50px 50px 50px 50px 50px;\r\n`;\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const CardTitle = styled.h3`\r\n cursor: pointer;\r\n text-decoration: underline;\r\n`;\r\n","import {\r\n Button,\r\n Loader,\r\n Input,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\n\r\nexport function ComandosDevel(): JSX.Element {\r\n const [state, render, setState] = useStateVar({\r\n comandoDevel: '',\r\n comandoDevelParams: '{}',\r\n enviando: false,\r\n });\r\n\r\n async function sendDevelCommand() {\r\n if (state.enviando) return;\r\n try {\r\n setState({ enviando: true });\r\n const reqParams = { ...JSON.parse(state.comandoDevelParams || '{}'), command: state.comandoDevel };\r\n await apiCall('/devtools/run-command', reqParams);\r\n alert('Sucesso');\r\n } catch (err) { console.log(err); alert('Erro'); }\r\n setState({ enviando: false });\r\n }\r\n\r\n return (\r\n
\r\n { state.comandoDevel = e.target.value; render(); }}\r\n placeholder=\"Comando\"\r\n />\r\n
\r\n { state.comandoDevelParams = e.target.value; render(); }}\r\n placeholder=\"Parâmetros\"\r\n />\r\n \r\n
\r\n );\r\n}\r\n","import {\r\n Button,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocket } from 'helpers/wsConnection';\r\n\r\nexport function IoTMonitoring(): JSX.Element {\r\n const [state, render, setState] = useStateVar({\r\n monitorDevMessages: 'DEV011119999',\r\n iotMessages: [] as { key: string, topic: string, payload: string }[],\r\n socket: null as null|WebSocket,\r\n });\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n\r\n function onWsOpen(wsConn) {\r\n state.socket = wsConn.socket;\r\n }\r\n function onWsMessage(message) {\r\n if (message.type === 'iotMessage') iotMessageReceived(message.data);\r\n }\r\n\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'subscribeTelemetry', data: {} });\r\n }\r\n\r\n function iotMessageReceived(iotMessage) {\r\n console.log(iotMessage);\r\n if (iotMessage && iotMessage.topic) {\r\n iotMessage.key = Date.now();\r\n state.iotMessages.push(iotMessage);\r\n render();\r\n }\r\n }\r\n\r\n function monitorDevMessages() {\r\n if (state.socket && state.socket.readyState === 1) {\r\n const request = { type: 'monitorDevMessages', data: { devId: state.monitorDevMessages } };\r\n state.socket.send(JSON.stringify(request));\r\n }\r\n }\r\n\r\n return (\r\n
\r\n { state.monitorDevMessages = e.target.value; render(); }}\r\n />\r\n \r\n {state.iotMessages.map((message) => (\r\n
\r\n Tópico:\r\n {' '}\r\n {message.topic}\r\n {' '}\r\n - Payload:\r\n {' '}\r\n {message.payload}\r\n
\r\n ))}\r\n
\r\n );\r\n}\r\n","import {\r\n Button,\r\n Loader,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\nimport styled from 'styled-components';\r\n\r\ninterface PeriodData {\r\n permission: 'allow' | 'forbid'\r\n start: string // '00:00'\r\n end: string // '23:59'\r\n indexIni: number\r\n indexEnd: number\r\n days: string[]\r\n fullDay: boolean\r\n}\r\n\r\ninterface Resposta {\r\n agora: string,\r\n damEcoDebug: {\r\n [damId: string]: {\r\n ecoCfg: {\r\n ENABLE_ECO: number\r\n ECO_CFG: string\r\n ECO_OFST_START: number\r\n ECO_OFST_END: number\r\n ECO_INT_TIME: number\r\n SCHEDULE_START_BEHAVIOR: string\r\n SETPOINT: number\r\n LTC: number\r\n LTI: number\r\n UPPER_HYSTERESIS: number\r\n LOWER_HYSTERESIS: number\r\n SELF_REFERENCE: number\r\n MINIMUM_TEMPERATURE: number\r\n MAXIMUM_TEMPERATURE: number\r\n CAN_SELF_REFERENCE: number\r\n splitCond: boolean\r\n },\r\n lastDamTelem: {\r\n lastTelemetry: {\r\n dev_id: string\r\n timestamp: string\r\n Mode?: 'Auto' | 'Manual' | 'Local'\r\n State?: 'allow' | 'forbid' | 'onlyfan' | 'enabling' | 'disabling' | 'eco' | 'thermostat'\r\n status?: string\r\n Temperature?: string\r\n Temperature_1?: string\r\n }\r\n },\r\n damSched_current: PeriodData,\r\n damEcoState: {\r\n sleep_ts?: number,\r\n sleep_ts_eco_v2?: number,\r\n sleep_ts_eco_v2_to_cool?: number,\r\n cmd_state?: string,\r\n cmd_exp?: number,\r\n condensersEnabled?: boolean,\r\n duts: {\r\n [dutId: string]: {\r\n telmTS: number\r\n accLOW: number\r\n accAfterCool?: number\r\n }\r\n },\r\n stagesEcoV2?: 'before-setpoint'|'after-LTC'|'after-LTI',\r\n counterToLog?: number,\r\n },\r\n assocDuts: {\r\n [dutId: string]: {\r\n lastDutTelem: {\r\n dev_id: string;\r\n timestamp: string;\r\n Temperature: number;\r\n Temperature_1: number;\r\n Humidity: number;\r\n eCO2: number;\r\n TVOC: number;\r\n raw_eCO2: number;\r\n Tmp: number;\r\n operation_mode: number;\r\n },\r\n dutSched_current: PeriodData,\r\n TUSEMIN: number,\r\n proxCmd: string,\r\n }\r\n },\r\n }\r\n }\r\n}\r\n\r\nexport function EcoModeDebug(): JSX.Element {\r\n const [state, render, setState] = useStateVar({\r\n enviando: false,\r\n dams: [] as {\r\n damId: string\r\n cmd_state: string\r\n cmd_exp: string\r\n state: string\r\n mode: string\r\n SETPOINT: string\r\n duts: {\r\n dutId: string,\r\n T0: string,\r\n TUSEMIN: string,\r\n proxCmd: string,\r\n }[]\r\n }[],\r\n });\r\n\r\n async function solicitar() {\r\n if (state.enviando) return;\r\n try {\r\n setState({ enviando: true, dams: [] });\r\n const response = await apiCall('/realtime/devtools/debug_dam_ecomode', {}) as Resposta;\r\n state.dams = [];\r\n for (const [damId, ecoInfo] of Object.entries(response.damEcoDebug)) {\r\n const duts: (typeof state)['dams'][number]['duts'] = [];\r\n state.dams.push({\r\n damId,\r\n cmd_state: ecoInfo.damEcoState?.cmd_state || '',\r\n cmd_exp: ecoInfo.damEcoState?.cmd_exp ? new Date(ecoInfo.damEcoState.cmd_exp).toISOString() : '',\r\n state: ecoInfo.lastDamTelem?.lastTelemetry?.State || '',\r\n mode: ecoInfo.lastDamTelem?.lastTelemetry?.Mode || '',\r\n SETPOINT: String(ecoInfo.ecoCfg?.SETPOINT ?? ''),\r\n duts,\r\n });\r\n for (const [dutId, dutInfo] of Object.entries(ecoInfo.assocDuts)) {\r\n duts.push({\r\n dutId,\r\n T0: String(dutInfo.lastDutTelem?.Temperature ?? ''),\r\n TUSEMIN: String(dutInfo.TUSEMIN ?? ''),\r\n proxCmd: dutInfo.proxCmd || '',\r\n });\r\n }\r\n }\r\n alert('Sucesso');\r\n } catch (err) { console.log(err); alert('Erro'); }\r\n setState({ enviando: false });\r\n }\r\n\r\n return (\r\n
\r\n \r\n {(state.dams.length > 0) && (\r\n <>\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(state.dams || []).map((rowDam) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
DAMEco CMDCmd DateModeStateSetpointDUTs
{rowDam.damId}{rowDam.cmd_state}{rowDam.cmd_exp}{rowDam.mode}{rowDam.state}{rowDam.SETPOINT}\r\n \r\n \r\n {(rowDam.duts || []).map((rowDut) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
{rowDut.dutId}{rowDut.T0}{rowDut.TUSEMIN}{rowDut.proxCmd}
\r\n
\r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst Table = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Loader,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n Card,\r\n CardTitle,\r\n} from './styles';\r\nimport { ComandosDevel } from './ComandosDevel';\r\nimport { IoTMonitoring } from './IoTMonitoring';\r\nimport { EcoModeDebug } from './EcoModeDebug';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport function DevTools(): JSX.Element {\r\n const [state, render, setState] = useStateVar(() => ({\r\n loading: true,\r\n cards: [\r\n { comp: , title: 'Comandos Devel' },\r\n { comp: , title: 'IoT Monitoring' },\r\n { comp: , title: 'EcoMode DAM Debug' },\r\n ] as { comp: JSX.Element, title: string, show?: boolean }[],\r\n }));\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n async function fetchData() {\r\n try {\r\n setState({ loading: true });\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n setState({ loading: false });\r\n }\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Development Tools\r\n \r\n \r\n {state.loading && }\r\n {(!state.loading) && (\r\n <>\r\n {state.cards.map((card, i) => (\r\n \r\n <>\r\n { card.show = !card.show; render(); }}>\r\n

\r\n { card.title }\r\n

\r\n
\r\n {card.show && card.comp}\r\n \r\n
\r\n ))}\r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nexport default withTransaction('DevTools', 'component')(DevTools);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const DesktopTable = styled.div`\r\n display: none;\r\n @media (min-width: 768px) {\r\n display: block;\r\n }\r\n`;\r\n\r\nexport const StyledSpan = styled.span`\r\n color: ${colors.Grey400};\r\n font-size: 1em;\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey400};\r\n font-size: 1em;\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n margin-left: 16px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n margin-top: 15px;\r\n margin-right: 15px;\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const Label = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-top: 6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n","import React, { useState, useEffect, useMemo } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { WithContext as ReactTags } from 'react-tag-input';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\n\r\nimport {\r\n DataTable, Button, EmptyWrapper, Loader, StatusBox, Checkbox, Select, InputSearch,\r\n} from '~/components';\r\nimport { TableColumn } from '~/components/DataTable';\r\nimport { ModalWindow } from '~/components/ModalWindow';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { SearchIcon } from '~/icons';\r\nimport { AdminLayout } from '~/pages/Admin/AdminLayout';\r\nimport { apiCall, ApiResps } from '~/providers';\r\n\r\nimport {\r\n DesktopTable,\r\n StyledSpan,\r\n StyledLink,\r\n SearchInput,\r\n IconWrapper,\r\n Label,\r\n} from './styles';\r\n\r\nimport '~/assets/css/ReactTags.css';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nconst KeyCodes = {\r\n comma: 188,\r\n slash: 191,\r\n enter: [10, 13],\r\n};\r\n\r\nconst delimiters = [...KeyCodes.enter, KeyCodes.comma, KeyCodes.slash];\r\n\r\nexport const DUTIrList = (): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n actionOpts: [] as {}[],\r\n selectedDUTSource: '',\r\n wantSetIrSource: false,\r\n ownershipOpts: [\r\n { value: 'CLIENTS', label: 'De clientes' },\r\n { value: 'N-COMIS', label: 'Não-comissionados' }, // aqueles com DEV_ID default de firmware\r\n { value: 'N-ASSOC', label: 'Não-associados' }, // Aqueles que já tem DEV_ID próprio, mas não possuem cliente associado\r\n { value: 'MANUFAC', label: 'Comissionados em Fábrica' }, // Aqueles que já tem DEV_ID próprio, e possuem cliente SERDIA\r\n { value: 'D-TESTS', label: 'Em testes' }, // Aqueles que estão associados ao cliente DIEL ENERGIA LTDA.\r\n { value: 'ALLDEVS', label: 'Todos' },\r\n ],\r\n ownershipFilter: null as null|{ value: string },\r\n isLoading: false, // setIsLoading\r\n csvData: [], // setCsvData\r\n duts: [] as (ApiResps['/dut/get-duts-list']['list'][number] & { checked?: boolean })[],\r\n searchState: [] as { text: string }[], // setSearchState\r\n tablePage: 1,\r\n tablePageSize: 50,\r\n totalItems: 0,\r\n allChecked: false,\r\n };\r\n\r\n if (profile.viewAllClients) {\r\n state.ownershipFilter = state.ownershipOpts[0];\r\n }\r\n\r\n if (profile.manageAllClients) {\r\n state.actionOpts = [{ label: 'Copiar Códigos IR', value: 'set-ir' }];\r\n }\r\n return state;\r\n });\r\n\r\n async function applyActionToSelected(action, list) {\r\n try {\r\n const selectedDevs = list.filter((dev) => dev.checked);\r\n\r\n if (!selectedDevs.length) return;\r\n\r\n if (action === 'set-ir') {\r\n // const ids = selectedDevs.map((x) => x.DEV_ID);\r\n // console.log(`setting IR codes for ${ids}`);\r\n // history.push(`/painel/copy-ir/?ids=${encodeURIComponent(ids.join('*'))}`);\r\n state.wantSetIrSource = true;\r\n render();\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function confirmIRSource() {\r\n try {\r\n const selectedDevs = state.duts.filter((dev) => dev.checked);\r\n const irSourceDev = state.selectedDUTSource;\r\n const { list, dutCommandTypes } = await apiCall('/get-dut-ircodes-list', { devId: irSourceDev });\r\n\r\n const sourceIrCodes = list;\r\n await Promise.all(\r\n selectedDevs.map(async (dev) => {\r\n const response = await apiCall('/write-dut-command-by-ircode', { configs: sourceIrCodes, targetDutId: dev.DEV_ID });\r\n if (!response.success || response.success !== true) {\r\n toast.error(`Houve erro ao gravar códigos para ID ${dev.DEV_ID} no banco de dados!`);\r\n }\r\n else {\r\n try {\r\n const response = await apiCall('/resend-dut-ir-codes', {\r\n devId: dev.DEV_ID,\r\n });\r\n if (response.responses.some((x) => !x.success || x.success !== true)) {\r\n toast.error(`Houve erro ao gravar códigos IR no DUT ${dev.DEV_ID}`);\r\n }\r\n }\r\n catch (err) {\r\n toast.error(`Houve erro ao gravar códigos IR no DUT ${dev.DEV_ID}`);\r\n }\r\n }\r\n }),\r\n );\r\n // for (const dev of selectedDevs) { // sequential writing. I don't know whether I can put it all in a single Promise.all()\r\n // const response = await apiCall('/write-dut-command-by-ircode', { configs: sourceIrCodes, targetDutId: dev.DEV_ID });\r\n // if (!response.success || response.success !== true) {\r\n // toast.error(`Houve erro ao gravar códigos para ID ${dev.DEV_ID} no banco de dados!`);\r\n // }\r\n // else {\r\n // try {\r\n // const response = await apiCall('/resend-dut-ir-codes', {\r\n // devId: dev.DEV_ID,\r\n // });\r\n // if (response.responses.some((x) => !x.success || x.success !== true)) {\r\n // toast.error(`Houve erro ao gravar códigos IR no DUT ${dev.DEV_ID}`);\r\n // }\r\n // }\r\n // catch (err) {\r\n // toast.error(`Houve erro ao gravar códigos IR no DUT ${dev.DEV_ID}`);\r\n // }\r\n // }\r\n // }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n const columns = useMemo(() => {\r\n const columns = [] as TableColumn[];\r\n\r\n if (profile.viewMultipleClients) {\r\n columns.push({\r\n Header: 'Cliente',\r\n accessor: 'col_CLIENT_NAME',\r\n Cell: (props) => (props.CLIENT_NAME ? {props.CLIENT_NAME} : '-'),\r\n });\r\n }\r\n columns.push({\r\n Header: 'Unidade',\r\n accessor: 'UNIT_NAME',\r\n Cell: (props) => <>{props.unit.id && props.unit.name ? {props.unit.name} : '-'},\r\n });\r\n columns.push({\r\n Header: 'Marca',\r\n accessor: 'MCHN_BRAND',\r\n Cell: (props) => {(props.MCHN_BRAND && props.MCHN_BRAND.length > 100 ? (props.MCHN_BRAND).slice(0, 100).concat('...') : props.MCHN_BRAND || '-')},\r\n });\r\n columns.push({\r\n Header: 'Modelo',\r\n accessor: 'MCHN_MODEL',\r\n Cell: (props) => {(props.MCHN_MODEL && props.MCHN_MODEL.length > 100 ? (props.MCHN_MODEL).slice(0, 100).concat('...') : props.MCHN_MODEL || '-')},\r\n });\r\n columns.push({\r\n Header: 'Dispositivo',\r\n accessor: 'devId',\r\n Cell: (props) => (\r\n <>\r\n {props.devId\r\n ? (\r\n \r\n {props.devId}\r\n \r\n )\r\n : (\r\n '-'\r\n )}\r\n \r\n ),\r\n });\r\n columns.push({\r\n Header: 'Controle',\r\n accessor: 'Mode',\r\n Cell: (props) => (\r\n <>\r\n {props.mode}\r\n \r\n ),\r\n });\r\n columns.push({\r\n Header: 'Operação',\r\n accessor: 'State',\r\n Cell: (props) => (\r\n <>\r\n {props.relay}\r\n \r\n ),\r\n });\r\n columns.push({\r\n Header: 'Conexão',\r\n accessor: 'status',\r\n Cell: (props) => {props.status},\r\n });\r\n\r\n if (profile.manageAllClients) {\r\n columns.push({\r\n Header: 'Última vez visto',\r\n accessor: 'col_lastseen',\r\n Cell: (props) => (props.lastCommTs || '-'),\r\n });\r\n }\r\n\r\n if (state.actionOpts.length > 0) {\r\n columns.push({\r\n Header: (\r\n !!dut.checked) && state.duts.length > 0}\r\n onClick={() => {\r\n setState({ allChecked: !(state.duts.every((dut) => !!dut.checked) && state.duts.length > 0) });\r\n for (const dut of state.duts) {\r\n dut.checked = state.allChecked;\r\n }\r\n render();\r\n }}\r\n />\r\n ),\r\n accessor: 'col_selection',\r\n Cell: (props) => { props.checked = !props.checked; render(); }} />,\r\n });\r\n }\r\n\r\n return columns;\r\n }, [(state.duts.every((dut) => !!dut.checked) && state.duts.length > 0)]);\r\n\r\n async function handleGetDUTS() {\r\n try {\r\n setState({ isLoading: true });\r\n\r\n const { list, totalItems } = await apiCall('/dut/get-duts-list', {\r\n onlyPossibleAutomation: true,\r\n SKIP: (state.tablePage - 1) * state.tablePageSize,\r\n LIMIT: state.tablePageSize,\r\n searchTerms: state.searchState.map((x) => x.text.toLowerCase()),\r\n ownershipFilter: (state.ownershipFilter && state.ownershipFilter.value) || undefined,\r\n });\r\n\r\n for (const dev of list) {\r\n // dev.State = descOper[dev.State] || dev.State;\r\n if (dev.Mode === 'Auto') dev.Mode = 'Automático';\r\n if (dev.lastCommTs) { dev.lastCommTs = dev.lastCommTs.replace('T', ' '); }\r\n\r\n Object.assign(dev, {\r\n state: dev.STATE_ID || '-',\r\n city: dev.CITY_NAME || '-',\r\n unit: { id: dev.UNIT_ID, name: dev.UNIT_NAME } || '-',\r\n // group: dev.machineName || '-',\r\n devId: dev.DEV_ID || '-',\r\n mode: dev.Mode || '-',\r\n relay: dev.State || '-',\r\n status: dev.status || '-',\r\n });\r\n }\r\n\r\n state.totalItems = totalItems;\r\n state.duts = list;\r\n } catch {\r\n toast.error('Não foi possível carregar os dados.');\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n const onPageChange = (page) => {\r\n state.tablePage = page;\r\n render();\r\n handleGetDUTS();\r\n };\r\n\r\n const handleSearchDelete = (i) => {\r\n state.tablePage = 1;\r\n state.searchState = state.searchState.filter((tag, index) => index !== i);\r\n render();\r\n handleGetDUTS();\r\n };\r\n\r\n const handleSearchAddition = (tag) => {\r\n state.tablePage = 1;\r\n state.searchState = [...state.searchState, tag];\r\n render();\r\n handleGetDUTS();\r\n };\r\n\r\n useEffect(() => {\r\n handleGetDUTS();\r\n }, [state.tablePage]);\r\n\r\n useEffect(() => {\r\n state.tablePage = 1;\r\n render();\r\n handleGetDUTS();\r\n }, [state.ownershipFilter]);\r\n\r\n useEffect(() => {\r\n handleGetDUTS();\r\n }, []);\r\n\r\n const selectedDevs = state.duts.filter((dev) => dev.checked);\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - DUT IR\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n {(profile.viewAllClients)\r\n && (\r\n \r\n { state.ownershipFilter = opt; render(); }}\r\n notNull\r\n />\r\n \r\n )}\r\n \r\n {(selectedDevs.length > 0) && (\r\n applyActionToSelected(opt.value, selectedDevs)}\r\n />\r\n )}\r\n \r\n
\r\n
\r\n
\r\n {state.isLoading\r\n ? (\r\n \r\n \r\n \r\n )\r\n : (\r\n <>\r\n \r\n {state.duts\r\n ? (\r\n \r\n )\r\n : (\r\n \r\n \r\n Não foi possível carregar os dados\r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n {(state.wantSetIrSource) && (\r\n \r\n

Selecione o DUT origem dos comandos

\r\n {/* {\r\n dut;\r\n return dut.devId;\r\n })}\r\n propLabel=\"NAME\"\r\n value={state.selectedDUTSource}\r\n placeholder=\"DUT\"\r\n onSelect={(e) => { state.selectedDUTSource = e; render(); }}\r\n /> */}\r\n setState({ selectedDUTSource: e.target.value })}\r\n />\r\n
\r\n {\r\n await confirmIRSource();\r\n state.wantSetIrSource = false; render();\r\n }}\r\n variant=\"primary\"\r\n >\r\n Salvar\r\n \r\n \r\n
\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('DUTIrList', 'component')(DUTIrList);\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\nimport { CalendarIcon, ExportWorksheetIcon } from '~/icons';\r\nimport {\r\n Button,\r\n} from 'components';\r\nimport { Link, NavLink } from 'react-router-dom';\r\n\r\nexport const InfoSIMCARD = styled.div`\r\n min-width: 90px;\r\n p {\r\n color: #000;\r\n font-size: 12px;\r\n font-style: normal;\r\n font-weight: 400;\r\n }\r\n label {\r\n font-size: 11px;\r\n color: #202370;\r\n font-weight: 700;\r\n }\r\n`;\r\n\r\nexport const ContainerIconsSimcard = styled.div`\r\n display: flex;\r\n gap: 20px;\r\n @media (max-width: 476px) {\r\n width: 100%;\r\n border-bottom: 1px solid rgba(197, 197, 197, 0.56);\r\n }\r\n`;\r\n\r\nexport const ContainerDescEditSim = styled.div`\r\n border-right: 1px solid rgba(197, 197, 197, 0.56);\r\n display: flex;\r\n gap: 10px;\r\n padding-right: 20px;\r\n margin-left: 20px;\r\n @media (max-width: 476px) {\r\n width: 100%;\r\n margin-top: 10px;\r\n margin-bottom: 10px;\r\n border-right: unset;\r\n }\r\n`;\r\n\r\nexport const CustomInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 0.7px solid ${colors.GreyInputBorder}\r\n`;\r\n\r\nexport const ModalContainer = styled.div`\r\n width: 100%;\r\n border-radius: 4px;\r\n`;\r\n\r\nexport const FakeLink = styled.span`\r\n color: black;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n`;\r\n\r\nexport const Title = styled.span`\r\n font-size: 14px\r\n font-weight: bold;\r\n color: #4c4c4c;\r\n`;\r\n\r\nexport const ConsumptionContainer = styled.span`\r\n padding-top: 14px;\r\n display: flex;\r\n flex-direction: column;\r\n width: 625px;\r\n justify-content: space-between;\r\n height: 600px;\r\n marginLeft: 5px;\r\n`;\r\n\r\nexport const ConsumptionRow = styled.span`\r\n display: flex;\r\n flex-direction: row;\r\n width: 100%;\r\n marginLeft: 5px;\r\n`;\r\n\r\nexport const DateRow = styled.span`\r\n display: flex;\r\n flex-direction: row;\r\n width: 370px;\r\n marginLeft: 5px;\r\n`;\r\n\r\nexport const InputLabel = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 5px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const DateLabel = styled.span`\r\n width: 30px;\r\n transition: all 0.2s\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const InputText = styled.input`\r\nmargin-left: 3px;\r\ntype: text;\r\nborder: none;\r\noutline: none;\r\nborderBottom: none;\r\nwidth: 100px;\r\n::-webkit-inner-spin-button{\r\n -webkit-appearance: none;\r\n margin: 0;\r\n}\r\n::-webkit-outer-spin-button{\r\n -webkit-appearance: none;\r\n margin: 0;\r\n}\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 12px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const Form = styled.form`\r\n display: flex;\r\n width: '100&';\r\n flex-direction: column;\r\n `;\r\nexport const CicleDetailContainer = styled.form`\r\n margin: -28px 10px;\r\n display: flex;\r\n width: 570px;\r\n flex-direction: column;\r\n padding-right: 15px;\r\n`;\r\nexport const TitleSelectRow = styled.form`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n`;\r\n\r\nexport const CustomInputCicle = styled.div`\r\n font-size: 12px;\r\n color: #000;\r\n width: 45%;\r\n border: 1px solid ${colors.Grey030};\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 1px solid ${colors.GreyLight};\r\n`;\r\n\r\nexport const CicleInfoContainer = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n`;\r\n\r\nexport const CicleInfoRow = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n padding-top: 15px;\r\n`;\r\n\r\nexport const CicleDateInfoRow = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-start;\r\n padding-top: 15px;\r\n`;\r\n\r\nexport const ItemRow = styled.div`\r\n width: 20%;\r\n display: flex;\r\n flex-direction: column;\r\n text-align: left;\r\n`;\r\n\r\nexport const ItemDateRow = styled.div`\r\n width: 200px;\r\n display: flex;\r\n flex-direction: column;\r\n text-align: left;\r\n`;\r\n\r\nexport const ItemTitle = styled.div`\r\n width: 120%;\r\n color: #202370;\r\n font-weight: bold;\r\n font-size: 14px;\r\n`;\r\nexport const ItemSubTitle = styled.div`\r\n font-size: 12px;\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n margin-top: 15px;\r\n margin-right: 15px;\r\n cursor: pointer;\r\n position: relative;\r\n top: -10px;\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const IconWrapperView = styled.div`\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n position: relative;\r\n margin-right: 15px;\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const Content = styled.div`\r\n width: 90%;\r\n position: relative;\r\n margin: 30px 80px 40px;\r\n display: flex;\r\n justify-content: space-between;\r\n @media (max-width: 568px) {\r\n flex-direction: column;\r\n margin: 20px 10px;\r\n align-items: center;\r\n }\r\n`;\r\n\r\nexport const BaseLinesBool = styled.div`\r\n align-items: center;\r\n display: flex;\r\n flex-direction: row;\r\n font-weight: bold;\r\n font-size: 16px;\r\n margin-left: 15px;\r\n margin: 30px;\r\n width: 100px;\r\n height: 30px;\r\n border: solid 1x black;\r\n`;\r\n\r\nexport const ContentEnergyMeter = styled.div`\r\n position: relative;\r\n display: flex;\r\n margin: 30px 100px 40px;\r\n justify-content: space-between;\r\n gap: 40px;\r\n flex-direction: column;\r\n\r\n @media (max-width: 568px) {\r\n margin: 20px 10px;\r\n align-items: center;\r\n }\r\n`;\r\n\r\nexport const Text = styled.text`\r\ncolor: ${colors.Black};\r\n`;\r\n\r\nexport const Unit = styled.div`\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n background-color: #F2F0F0;\r\n font-size: 13px;\r\n text-align: center;\r\n color: #818181;\r\n height: 25px;\r\n margin-left: 3px;\r\n padding-left: 7px;\r\n padding-right: 7px;\r\n`;\r\n\r\nexport const Test = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n width: 35%;\r\n height: 50px;\r\n padding: 8px;\r\n`;\r\n\r\nexport const InputRow = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n position: relative;\r\n width: 95%;\r\n height: 50px;\r\n`;\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.Pink200};\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.Pink200};\r\n border: 1px double ${colors.Pink200};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.Pink400};\r\n border: 1px double ${colors.Pink400};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.Pink200};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.Pink400};\r\n }\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const BtnExport = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n font-weight: 400;\r\n border-radius: 12px;\r\n height: 41px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n width: fit-content;\r\n :hover {\r\n color: ${colors.White}\r\n background-color: #363BC4\r\n ${Text} {\r\n color: ${colors.White}\r\n }\r\n }\r\n`;\r\n\r\nexport const ExportWorksheet = styled(ExportWorksheetIcon)(\r\n () => `\r\n color: #363BC4\r\n`,\r\n);\r\n\r\nexport const ModalTitle2 = styled.div`\r\n color: black;\r\n font-weight: bold;\r\n font-size: 1rem;\r\n`;\r\n\r\nexport const IconWrapper2 = styled.div`\r\n cursor: pointer;\r\n`;\r\n\r\nexport const SectionContainer = styled.div`\r\n padding: 15px 22px 22px 15px;\r\n`;\r\n\r\nexport const SimpleButton = styled(Button)`\r\n width: initial;\r\n padding: 8px 15px;\r\n margin: 7px 7px;\r\n`;\r\n\r\nexport const SeeAssociationGroups = styled.p`\r\ncolor: black;\r\ntext-decoration: underline;\r\ncursor: pointer;\r\nmargin-top: 0;\r\nmargin-bottom: 0;\r\n`;\r\n\r\nexport const ModalDesktop = styled.div`\r\n display: none;\r\n @media (min-width: 768px) {\r\n display: block;\r\n }\r\n`;\r\n\r\nexport const Container = styled.div`\r\n`;\r\n\r\nexport const MobileWrapper = styled.div`\r\n top: 0;\r\n left: 0;\r\n display: block;\r\n position: fixed;\r\n background-color: ${colors.White};\r\n width: 100%;\r\n height: 100vh;\r\n z-index: 1;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n transition: all 0.5s ease-in-out;\r\n\r\n @media (min-width: 568px) {\r\n display: none;\r\n }\r\n`;\r\n\r\nexport const ModalSection = styled.div`\r\n width: 100%;\r\n height: 80px;\r\n background: ${colors.Grey030};\r\n border-bottom: 2px solid ${colors.Grey100};\r\n box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);\r\n`;\r\n\r\nexport const ModalTitleContainer = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n height: 100%;\r\n width: 100%;\r\n padding: 16px;\r\n svg {\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nexport const ModalTitle = styled.span`\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const ModalCancel = styled.p`\r\n cursor: pointer;\r\n font-size: 1em;\r\n color: ${colors.Grey200};\r\n text-decoration: underline;\r\n width: 140px;\r\n text-align: left;\r\n margin-top: 10px;\r\n margin-left: 5px;\r\n &:hover {\r\n color: ${colors.Blue400};\r\n }\r\n`;\r\nexport const ModalDisassociate = styled.p`\r\n cursor: pointer;\r\n font-size: 1em;\r\n color: ${colors.Red};\r\n text-decoration: underline;\r\n width: 140px;\r\n text-align: left;\r\n margin-top: 10px;\r\n margin-left: 5px;\r\n &:hover {\r\n color: ${colors.Blue400};\r\n }\r\n`;\r\n\r\nexport const EditCicleContainer = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n height: 750px;\r\n justifyContent: space-between;\r\n padding: 5%;\r\n`;\r\n\r\nexport const ModelRateContainer = styled.div`\r\n display: flex;\r\n flex-drection: row;\r\n width: 400px;\r\n padding-top: 20px;\r\n justify-content: space-between;\r\n margin-left: 5px;\r\n`;\r\n\r\nexport const CancelButton = styled.div`\r\n text-decoration: underline;\r\n color: #6C6B6B;\r\n`;\r\n\r\nexport const RateGroupsTitle = styled.div`\r\n color: #202370;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const ContentTab = styled.div`\r\ndisplay: flex;\r\nalign-items: center;\r\npadding: 0;\r\nheight: 35px;\r\nmax-width: 100%;\r\nborder-bottom: 2px solid ${colors.Grey100};\r\njustify-content: space-between;\r\nmargin-bottom: 10px;\r\nmargin-top: 25px;\r\n@media (max-width: 768px) {\r\n height: 50px;\r\n overflow-x: scroll;\r\n}\r\n`;\r\n\r\nexport const StyledList = styled.ul`\r\ndisplay: flex;\r\nflex-direction: row;\r\nalign-items: center;\r\njustify-content: flex-start;\r\nlist-style: none;\r\npadding: 0;\r\nli:not(:first-child) {\r\n margin-left: 32px;\r\n}\r\n.active {\r\n color: ${colors.Blue300}; // texto nav maior\r\n}\r\n`;\r\n\r\nexport const StyledItem = styled.li`\r\ndisplay: flex;\r\nalign-items: center;\r\njustify-content: center;\r\nflex-direction: column;\r\nwhite-space: nowrap;\r\n`;\r\n\r\nexport const StyledName = styled.span<{ isActive: boolean }>(({ isActive }) => `\r\ncolor: ${isActive ? colors.Blue300 : colors.Grey500};\r\nfont-size: 14px;\r\nfont-weight: bold;\r\ntext-decoration: none;\r\nmargin-top: 10px;\r\n :hover {\r\n color: ${colors.Blue300};\r\n }\r\n\r\n`);\r\n\r\nexport const ModalTitle3 = styled.div`\r\n color: black;\r\n font-weight: bold;\r\n font-size: 0.9rem;\r\n`;\r\n\r\nexport const LabelSwitch = styled.span`\r\n display: inline-block;\r\n max-width: 70px;\r\n font-size: 14px;\r\n @media (max-width: 400px) {\r\n font-size: 9px;\r\n }\r\n`;\r\n\r\nexport const CloseBtn = styled.span`\r\n color: ${colors.Blue200};\r\n text-decoration: underline;\r\n font-size: 10px;\r\n :hover {\r\n color: ${colors.Blue400};\r\n }\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey400};\r\n margin: 0 8px 0 8px;\r\n`;\r\n\r\nexport const CustomInputConstructedArea = styled.div`\r\n span:nth-child(3) {\r\n top: 30% !important;\r\n }\r\n`;\r\n","import { DayProg } from 'providers/types';\r\nimport { t } from 'i18next';\r\n\r\ninterface ProgData {\r\n type: string,\r\n startHM: string,\r\n endHM: string,\r\n desc: string,\r\n isDefault: boolean,\r\n}\r\n\r\nexport function parseProgrammingString(pString: string) {\r\n const pData: ProgData = {\r\n type: 'disabled', startHM: '00:00', endHM: '23:59', desc: t('diaTodo'), isDefault: true,\r\n };\r\n if (pString) {\r\n const rgx = /^(\\w+)(;(\\d\\d:\\d\\d)-(\\d\\d:\\d\\d))?$/;\r\n const matched = pString.match(rgx);\r\n if (matched) {\r\n const [, , period, startHM, endHM] = matched;\r\n let [, type] = matched;\r\n if (type === 'allow') type = 'enabled';\r\n if (type === 'forbid') type = 'disabled';\r\n if (['disabled', 'enabled'].includes(type)) pData.type = type;\r\n else {\r\n console.log('Invalid programming string:', pString);\r\n }\r\n if (period) {\r\n pData.startHM = startHM;\r\n pData.endHM = endHM;\r\n }\r\n pData.isDefault = false;\r\n } else {\r\n console.log('Invalid programming string:', pString);\r\n }\r\n }\r\n fillDescription(pData);\r\n return pData;\r\n}\r\n\r\nexport function fillDescription(pData: ProgData) {\r\n const wholeDay = (pData.startHM === '00:00') && (pData.endHM === '23:59');\r\n if (wholeDay) {\r\n if (pData.type === 'enabled') pData.desc = t('diaTodo');\r\n else if (pData.type === 'disabled') pData.desc = t('naoMonitorado');\r\n else pData.desc = t('desconhecido');\r\n return;\r\n }\r\n if (pData.type === 'enabled') pData.desc = t('horarioAte', { startHM: pData.startHM, endHM: pData.endHM });\r\n else pData.desc = t('desconhecido');\r\n}\r\n\r\nexport function describeDay(dayString: string) {\r\n if (dayString === 'mon') return t('diaSeg');\r\n if (dayString === 'tue') return t('diaTer');\r\n if (dayString === 'wed') return t('diaQua');\r\n if (dayString === 'thu') return t('diaQui');\r\n if (dayString === 'fri') return t('diaSex');\r\n if (dayString === 'sat') return t('diaSab');\r\n if (dayString === 'sun') return t('diaDom');\r\n if (dayString.match(/^\\d\\d\\d\\d-\\d\\d-\\d\\d$/)) {\r\n return `${dayString.substr(0, 4)}/${dayString.substr(5, 2)}/${dayString.substr(8, 2)}`;\r\n }\r\n return dayString;\r\n}\r\n\r\nexport function getDaySched(workPeriods: { [day: string]: string }, workPeriodExceptions: { [day: string]: string }, day?: string) {\r\n const asDate = day ? new Date(`${day}T00:00:00Z`) : new Date(Date.now() - 3 * 60 * 60 * 1000);\r\n const dayWeek = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'][asDate.getUTCDay()];\r\n const dayDate = asDate.toISOString().substr(0, 10);\r\n const sched = { ...workPeriods, ...workPeriodExceptions };\r\n const todaySchedule = sched && (sched[dayDate] || sched[dayWeek]);\r\n const pData = parseProgrammingString(todaySchedule);\r\n return pData;\r\n}\r\n\r\nexport function getDayProgDesc(dayProgInfo: DayProg|null) {\r\n // {\"permission\":\"allow\",\"start\":\"07:30\",\"end\":\"17:05\"}\r\n const modes: { [k: string]: string } = {\r\n allow: t('permitido'),\r\n forbid: t('desligado').toLocaleLowerCase(),\r\n };\r\n if (!dayProgInfo) return t('semInformacoes');\r\n if (dayProgInfo.clearProg) return t('semProgramacao');\r\n if (dayProgInfo.permission && dayProgInfo.start && dayProgInfo.end) {\r\n if (dayProgInfo.permission === 'allow') {\r\n return `${t('horarioDeAte', { start: dayProgInfo.start, end: dayProgInfo.end })}`.replace(t('de00.00ate23.59'), t('diaTodo'));\r\n }\r\n return `${modes[dayProgInfo.permission] || dayProgInfo.permission} ${t('horarioEntre', { start: dayProgInfo.start, end: dayProgInfo.end })}`.replace(` ${t('entre00.00e23.59')}`, ` ${t('diaTodo')}`);\r\n }\r\n\r\n return t('semInformacoes');\r\n}\r\n","import { useState } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Button, Select } from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { apiCall } from '~/providers';\r\n\r\nexport const FormAssociateDevs = ({\r\n clientId, devsList, unitsList, groupsList, onSuccess, onCancel,\r\n}): JSX.Element => {\r\n const [state, render] = useStateVar({\r\n submitting: false,\r\n dacs: null,\r\n duts: null,\r\n });\r\n const [formData, set_formData] = useState({\r\n unit: null,\r\n group: null,\r\n });\r\n state.dacs = devsList.filter((dev) => dev.type === 'DAC');\r\n state.duts = devsList.filter((dev) => dev.type === 'DUT');\r\n\r\n async function confirm() {\r\n let success = false;\r\n try {\r\n // @ts-ignore\r\n if ((!state.dacs.length) && (!state.duts.length)) {\r\n alert('Nenhum dispositivo para associar');\r\n return;\r\n }\r\n // @ts-ignore\r\n if (!formData.unit) {\r\n alert('Unidade não selecionada');\r\n return;\r\n }\r\n // @ts-ignore\r\n if (state.dacs.length && (!formData.group)) {\r\n alert('Máquina não selecionada');\r\n return;\r\n }\r\n state.submitting = true; render();\r\n // @ts-ignore\r\n for (const dev of state.dacs) {\r\n await apiCall('/dac/set-dac-info', {\r\n // @ts-ignore\r\n DAC_ID: dev.DEV_ID, CLIENT_ID: clientId, UNIT_ID: formData.unit.UNIT_ID, GROUP_ID: formData.group.GROUP_ID,\r\n }).then((data) => ({ data }));\r\n }\r\n // @ts-ignore\r\n for (const dev of state.duts) {\r\n // @ts-ignore\r\n await apiCall('/dut/set-dut-info', { DEV_ID: dev.DEV_ID, CLIENT_ID: clientId, UNIT_ID: formData.unit.UNIT_ID }).then((data) => ({ data }));\r\n }\r\n success = true;\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.submitting = false; render();\r\n if (success) onSuccess({});\r\n }\r\n\r\n function set_group(item) {\r\n formData.group = item;\r\n if (item && !formData.unit) {\r\n const unit = unitsList.find((unit) => unit.UNIT_ID === item.UNIT_ID);\r\n if (unit) formData.unit = unit;\r\n }\r\n set_formData({ ...formData });\r\n }\r\n\r\n return (\r\n
\r\n { set_formData({ ...formData, unit: item, group: null }); }}\r\n />\r\n
\r\n {/* @ts-ignore */}\r\n {groupsList && (state.dacs.length > 0)\r\n && (\r\n ((!formData.unit) || group.UNIT_ID === formData.unit.UNIT_ID))}\r\n propLabel=\"GROUP_NAME\"\r\n value={formData.group}\r\n placeholder=\"Máquina\"\r\n // eslint-disable-next-line react/jsx-no-bind\r\n onSelect={set_group}\r\n // @ts-ignore\r\n disabled={!formData.unit}\r\n />\r\n )}\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n );\r\n};\r\n","export const handlePaste = (event: React.ClipboardEvent, setUnits) => {\r\n const pastedData = event.clipboardData.getData('Text');\r\n const pastedItems = pastedData.split(/\\r?\\n/).map((item) => item.trim());\r\n setUnits(pastedItems);\r\n if (document.activeElement instanceof HTMLElement) {\r\n document.activeElement.blur();\r\n }\r\n};\r\n\r\nexport const onPasteFilterOptions = (pastedItems: string[], options: {name: string, value: string}[]): string[] => {\r\n const parsedPastedItems = pastedItems.map((item) => item.toLowerCase());\r\n\r\n const response: string[] = [];\r\n for (const { name, value } of options) {\r\n if (parsedPastedItems.includes(name.toLowerCase())) {\r\n response.push(value);\r\n }\r\n }\r\n return response;\r\n};\r\n","import { useState, useMemo, useEffect } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button, Input, SelectMultiple,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\nimport { handlePaste } from '~/helpers/pasteHelper';\r\nimport { ButtonClear } from '../Analysis/styles';\r\nimport { t } from 'i18next';\r\n\r\nexport const FormEditClass = ({\r\n clientId, onSuccess, onCancel, classInfo, unitsList,\r\n}): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n listUnitsSelect: unitsList.map((item) => ({ value: item.UNIT_ID, name: item.UNIT_NAME, checked: false })) as { name: string, value: number, checked: boolean }[],\r\n submitting: false,\r\n editingExtras: false,\r\n isLoading: false,\r\n selectedUnits: [] as any,\r\n formData: {\r\n CLASS_ID: (classInfo && classInfo.CLASS_ID) || null,\r\n // @ts-ignore\r\n CLASS_TYPE: (classInfo && classInfo.CLASS_TYPE) || '',\r\n // @ts-ignore\r\n CLASS_NAME: (classInfo && classInfo.CLASS_NAME) || '',\r\n },\r\n isEdit: !!(classInfo && classInfo.CLASS_ID),\r\n });\r\n\r\n async function getClassUnits() {\r\n if (state.formData.CLASS_ID) {\r\n const { list: oldClassUnitsList } = await apiCall('/clients/get-class-units', { CLASS_ID: state.formData.CLASS_ID, CLIENT_ID: clientId });\r\n const oldClassUnitsIds = oldClassUnitsList.map((unit) => unit.UNIT_ID);\r\n state.listUnitsSelect.forEach((item) => { if (oldClassUnitsIds.includes(item.value)) item.checked = true; });\r\n render();\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n setState({ listUnitsSelect: unitsList.map((item) => ({ value: item.UNIT_ID, name: item.UNIT_NAME, checked: false })) });\r\n getClassUnits();\r\n }, []);\r\n\r\n async function confirm() {\r\n let response: ({ CLASS_ID: number} | null) = null;\r\n let action = null;\r\n try {\r\n state.submitting = true; render();\r\n const reqData = {\r\n CLASS_ID: state.formData.CLASS_ID || undefined,\r\n CLIENT_ID: clientId,\r\n CLASS_TYPE: state.formData.CLASS_TYPE || null,\r\n CLASS_NAME: state.formData.CLASS_NAME || null,\r\n };\r\n if (state.isEdit) {\r\n // @ts-ignore\r\n response = await apiCall('/clients/edit-client-class', reqData);\r\n const unitIdsList = state.listUnitsSelect.filter((x) => x.checked).map((item) => item.value);\r\n await apiCall('/clients/set-class-units', { UNIT_IDS: unitIdsList, CLASS_ID: reqData.CLASS_ID, CLIENT_ID: clientId });\r\n // @ts-ignore\r\n action = 'edit';\r\n } else {\r\n // @ts-ignore\r\n response = await apiCall('/clients/add-client-class', reqData);\r\n const unitIdsList = state.listUnitsSelect.filter((x) => x.checked).map((item) => item.value);\r\n await apiCall('/clients/set-class-units', { UNIT_IDS: unitIdsList, CLASS_ID: response?.CLASS_ID, CLIENT_ID: clientId });\r\n // @ts-ignore\r\n action = 'new';\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n state.submitting = false; render();\r\n if (response && action) onSuccess({ item: response, action });\r\n }\r\n\r\n // function onStateSelected(item) {\r\n // formData.state_item = item;\r\n // // @ts-ignore\r\n // const selectedState = formData.state_item && formData.state_item.STATE_ID;\r\n // // @ts-ignore\r\n // if (formData.city_item && formData.city_item.STATE_ID !== selectedState) {\r\n // formData.city_item = null;\r\n // }\r\n // render();\r\n // }\r\n\r\n // if (formData.city_item && !formData.state_item) {\r\n // // @ts-ignore\r\n // formData.state_item = states.find((item) => item.STATE_ID === formData.city_item.STATE_ID);\r\n // }\r\n\r\n // const filtCities = useMemo(() => {\r\n // if (!formData.state_item) return cities;\r\n // // @ts-ignore\r\n // return cities.filter((city) => city.STATE_ID === formData.state_item.STATE_ID);\r\n // }, [formData.state_item, cities]);\r\n\r\n function setUnits(pastedItems) {\r\n const matchingUnits = (state.listUnitsSelect || []).filter((unit) => pastedItems?.includes(unit.name)).map((unit) => unit);\r\n const onlyIds = matchingUnits.map((item) => item.value);\r\n state.listUnitsSelect.forEach((item) => {\r\n if (onlyIds.includes(item.value)) item.checked = true;\r\n });\r\n render();\r\n }\r\n\r\n function handleSelectItem(value) {\r\n const item = state.listUnitsSelect.find((item) => item.value === value.value);\r\n if (item) item.checked = !value.checked;\r\n render();\r\n }\r\n\r\n function clearSelected() {\r\n state.listUnitsSelect = state.listUnitsSelect.map((item) => ({ ...item, checked: false }));\r\n render();\r\n }\r\n\r\n return (\r\n
\r\n { state.formData.CLASS_TYPE = event.target.value; render(); }}\r\n />\r\n
\r\n { state.formData.CLASS_NAME = event.target.value; render(); }}\r\n />\r\n
handlePaste(e, setUnits)}>\r\n x.checked)}\r\n haveFuzzySearch\r\n search\r\n propLabel=\"name\"\r\n placeholder=\"Unidades\"\r\n onSelect={(item) => handleSelectItem(item)}\r\n />\r\n \r\n clearSelected()}>\r\n {t('limpar')}\r\n \r\n
\r\n
\r\n {(state.isEdit)\r\n && (\r\n
\r\n setState({ editingExtras: true })}>Metadados\r\n
\r\n )}\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nconst FakeLink = styled.span`\r\n color: black;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n`;\r\n","import { useState } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Button, Input, Select } from '~/components';\r\nimport { apiCall } from '~/providers';\r\n\r\nexport const FormEditDut = ({\r\n dutInfo, unitInfo, unitsList, roomTypes, onSuccess, onCancel,\r\n}): JSX.Element => {\r\n const [, stateChanged] = useState({});\r\n const [state] = useState({\r\n changed() { stateChanged({}); },\r\n submitting: false,\r\n formData: {\r\n DEV_ID: dutInfo.DEV_ID,\r\n ROOM_NAME: (dutInfo && dutInfo.ROOM_NAME) || '',\r\n unit: unitInfo || (unitsList && dutInfo && dutInfo.UNIT_ID && unitsList.find((unit) => unit.UNIT_ID === dutInfo.UNIT_ID)) || null,\r\n roomType: (dutInfo && dutInfo.RTYPE_ID && roomTypes.find((item) => item.RTYPE_ID === dutInfo.RTYPE_ID)) || null,\r\n },\r\n });\r\n\r\n const { formData } = state;\r\n\r\n async function confirm() {\r\n let response = null as null|string;\r\n let action = null;\r\n try {\r\n state.submitting = true; state.changed();\r\n const reqData = {\r\n DEV_ID: formData.DEV_ID,\r\n UNIT_ID: formData.unit && formData.unit.UNIT_ID,\r\n ROOM_NAME: formData.ROOM_NAME || null,\r\n RTYPE_ID: (formData.roomType && formData.roomType.RTYPE_ID) || null,\r\n CLIENT_ID: dutInfo.CLIENT_ID,\r\n };\r\n // @ts-ignore\r\n action = 'set';\r\n if (dutInfo.DEV_ID === '-') {\r\n response = await apiCall('/environments/edit-environment', {\r\n ENVIRONMENT_ID: dutInfo.ENVIRONMENT_ID,\r\n ENVIRONMENT_NAME: reqData.ROOM_NAME,\r\n RTYPE_ID: reqData.RTYPE_ID,\r\n UNIT_ID: reqData.UNIT_ID,\r\n CLIENT_ID: dutInfo.CLIENT_ID,\r\n });\r\n }\r\n if (dutInfo.DEV_ID.startsWith('DUT')) {\r\n // @ts-ignore\r\n response = await apiCall('/dut/set-dut-info', { ...reqData, ENVIRONMENT_ID: dutInfo.ENVIRONMENT_ID || undefined }).then((data) => ({ data }));\r\n }\r\n if (dutInfo.DEV_ID.startsWith('DRI')) {\r\n await apiCall('/dri/set-dri-info', { DRI_ID: formData.DEV_ID, UNIT_ID: formData.unit && formData.unit.UNIT_ID });\r\n response = await apiCall('/dri/update-dri-vav', { VAV_ID: formData.DEV_ID, ROOM_NAME: formData.ROOM_NAME || null, RTYPE_ID: (formData.roomType && formData.roomType.RTYPE_ID) || null });\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.submitting = false; state.changed();\r\n // @ts-ignore\r\n if (response && action) onSuccess({ item: response.data, action });\r\n }\r\n\r\n return (\r\n
\r\n {unitsList\r\n && (\r\n { toast.warn('Ambiente não pode ser alterado de unidade! Apenas dispositivo relacionado ao ambiente será realocado!'); state.formData.unit = item; state.changed(); }}\r\n />\r\n )}\r\n { state.formData.ROOM_NAME = event.target.value; state.changed(); }}\r\n />\r\n {(roomTypes.length > 0)\r\n && (\r\n { state.formData.roomType = item; state.changed(); }}\r\n />\r\n )}\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import { ChangeEvent, useEffect, useState } from 'react';\r\n\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button, Input, Loader, RadioButton, Checkbox,\r\n} from 'components';\r\nimport { getDayProgDesc } from 'helpers/scheduleData';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { EditIcon, TrashIcon } from 'icons';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\nimport { colors } from 'styles/colors';\r\n\r\nconst weekDaysList = {\r\n mon: 'Seg',\r\n tue: 'Ter',\r\n wed: 'Qua',\r\n thu: 'Qui',\r\n fri: 'Sex',\r\n sat: 'Sáb',\r\n sun: 'Dom',\r\n};\r\n\r\nexport function SchedulesList(props: {\r\n devSched: FullProg_v4,\r\n wantDelException: ((date: string) => void)|null,\r\n wantAddProg: (() => void)|null,\r\n wantEditDay: ((day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => void)|null,\r\n wantRemoveDay: ((day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => void)|null,\r\n isLoading: boolean,\r\n readOnly?: boolean,\r\n}): JSX.Element {\r\n const {\r\n devSched, wantDelException, wantAddProg, wantEditDay, wantRemoveDay, isLoading,\r\n } = props;\r\n const [state, render, setState] = useStateVar({\r\n dayProgs: [] as {\r\n day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun',\r\n dayName: string,\r\n text: string,\r\n isBlank: boolean,\r\n }[],\r\n excepts: [] as { dateYMD: string, date: string, text: string }[],\r\n });\r\n\r\n useEffect(() => {\r\n const daysList: (keyof typeof weekDaysList)[] = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];\r\n if (!devSched.week) devSched.week = {};\r\n state.dayProgs = daysList.map((day) => ({\r\n day,\r\n dayName: weekDaysList[day],\r\n text: getDayProgDesc((devSched.week && devSched.week[day]) || null),\r\n isBlank: !(devSched.week && devSched.week[day]),\r\n }));\r\n state.excepts = Object.entries(devSched.exceptions || {}).map(([day, prog]) => ({\r\n dateYMD: day,\r\n date: `${day.substr(8, 2)}/${day.substr(5, 2)}/${day.substr(0, 4)}`,\r\n text: getDayProgDesc(prog),\r\n }));\r\n render();\r\n }, [devSched]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n {(!isLoading) ? (\r\n <>\r\n \r\n \r\n
\r\n
\r\n {(!props.readOnly) && (\r\n \r\n )}\r\n  \r\n
\r\n \r\n \r\n \r\n \r\n 0) ? 1 / 2 : 1]} pr={[0, 0, 0, 0, 40]}>\r\n Funcionamento\r\n {state.dayProgs.map((item) => (\r\n \r\n {item.dayName}\r\n {item.text}\r\n
\r\n {(item.isBlank || props.readOnly)\r\n ?
 
\r\n : (\r\n <>\r\n { wantRemoveDay && wantRemoveDay(item.day); }}>\r\n \r\n \r\n { wantEditDay && wantEditDay(item.day); }}>\r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n ))}\r\n
\r\n {(state.excepts.length > 0) && (\r\n \r\n Exceções\r\n {state.excepts.map((item) => (\r\n \r\n {item.date}\r\n {item.text}\r\n
\r\n {(!props.readOnly) && (\r\n wantDelException && wantDelException(item.dateYMD)}>\r\n \r\n \r\n )}\r\n
\r\n
\r\n ))}\r\n
\r\n )}\r\n
\r\n
\r\n \r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport function SchedulesEdit(props: {\r\n devSched: FullProg_v4,\r\n selectedDay: null|('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n onConfirmProg: (days: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')[], prog: DayProg) => void,\r\n onCancel: () => void,\r\n isSending: boolean,\r\n}) {\r\n const {\r\n devSched, selectedDay, onConfirmProg, onCancel, isSending,\r\n } = props;\r\n\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n exception_date: '',\r\n ruleException: 'rule' as 'rule'|'exception',\r\n allowForbid: 'allow' as 'allow'|'forbid',\r\n weekDays: Object.entries(weekDaysList).map(([day, name]) => ({ name, day: day as keyof typeof weekDaysList, checked: false })),\r\n start_time: '',\r\n end_time: '',\r\n formErrors: {\r\n start_time: '',\r\n end_time: '',\r\n days: '',\r\n },\r\n };\r\n\r\n const editProg = selectedDay && devSched.week && devSched.week[selectedDay];\r\n if (editProg) {\r\n for (const item of state.weekDays) {\r\n item.checked = (item.day === selectedDay);\r\n }\r\n state.start_time = editProg.start || '';\r\n state.end_time = editProg.end || '';\r\n }\r\n\r\n return state;\r\n });\r\n\r\n function handleSelectDay(day: { checked: boolean }) {\r\n day.checked = !day.checked;\r\n render();\r\n }\r\n\r\n function validateForm() {\r\n let start_index = null as null|number;\r\n if (!/^\\d\\d:\\d\\d$/.test(state.start_time)) {\r\n state.formErrors.start_time = 'O campo de tempo inicial é obrigatório';\r\n } else {\r\n const horas = Number(state.start_time.substr(0, 2));\r\n const minutos = Number(state.start_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n state.formErrors.start_time = 'Valor inválido';\r\n } else {\r\n state.formErrors.start_time = '';\r\n start_index = horas * 60 + minutos;\r\n }\r\n }\r\n if (!/^\\d\\d:\\d\\d$/.test(state.end_time)) {\r\n state.formErrors.end_time = 'O campo de tempo final é obrigatório';\r\n } else {\r\n const horas = Number(state.end_time.substr(0, 2));\r\n const minutos = Number(state.end_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n state.formErrors.end_time = 'Valor inválido';\r\n } else {\r\n const end_index = horas * 60 + minutos;\r\n if (start_index != null && !(end_index >= start_index)) {\r\n state.formErrors.end_time = 'Valor inválido';\r\n } else {\r\n state.formErrors.end_time = '';\r\n }\r\n }\r\n }\r\n if (state.ruleException === 'rule') {\r\n if (!state.weekDays.some((item) => item.checked)) {\r\n state.formErrors.days = 'É necessário selecionar no mínimo um dia';\r\n } else {\r\n state.formErrors.days = '';\r\n }\r\n } else if (state.ruleException === 'exception') {\r\n if (state.exception_date.length !== 10 || state.exception_date.includes('_')) {\r\n state.formErrors.days = 'A data da exceção é obrigatória';\r\n } else {\r\n state.formErrors.days = '';\r\n }\r\n }\r\n render();\r\n return !(state.formErrors.start_time || state.formErrors.end_time || state.formErrors.days);\r\n }\r\n\r\n function handleSubmit() {\r\n if (!validateForm()) return;\r\n const prog = {\r\n permission: state.allowForbid,\r\n start: state.start_time,\r\n end: state.end_time,\r\n };\r\n if (state.ruleException === 'rule') {\r\n const days = state.weekDays.filter((item) => item.checked).map((item) => item.day);\r\n onConfirmProg(days, prog);\r\n }\r\n // else if (state.ruleException === 'exception') {\r\n // const { exception_date } = state;\r\n // const day = `${exception_date.substr(6, 4)}-${exception_date.substr(3, 2)}-${exception_date.substr(0, 2)}`;\r\n // onConfirmExcept(day, prog);\r\n // }\r\n }\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n ) => { state.start_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n ) => { state.end_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n { state.start_time = '00:00'; state.end_time = '23:59'; render(); }}\r\n />\r\n \r\n \r\n Dias\r\n \r\n \r\n {state.weekDays.map((item) => (\r\n { handleSelectDay(item); }}\r\n >\r\n {item.name}\r\n \r\n ))}\r\n \r\n \r\n x.checked).length === 7)}\r\n onClick={() => { state.weekDays.forEach((x) => x.checked = true); render(); }}\r\n />\r\n \r\n \r\n {state.formErrors.days && {state.formErrors.days}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function SchedulesRemove(props: {\r\n selectedDay: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n onConfirm: (day: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')) => void,\r\n onCancel: () => void,\r\n isRemoving: boolean,\r\n}) {\r\n const {\r\n selectedDay, onConfirm, onCancel, isRemoving,\r\n } = props;\r\n return (\r\n <>\r\n \r\n \r\n Tem certeza que deseja excluir esta programação?\r\n \r\n \r\n \r\n \r\n
{ onCancel(); }}>\r\n \r\n
\r\n
\r\n \r\n
onConfirm(selectedDay)}>\r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst Text = styled.p<{ isBold?: boolean }>(\r\n ({ isBold }) => `\r\n margin-bottom: ${isBold ? 0 : '1em'};\r\n margin-top: ${isBold ? '1em' : 0};\r\n color: ${isBold ? colors.Grey300 : colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n `,\r\n);\r\n\r\nconst ProgTable = styled.div`\r\n display: grid;\r\n grid-template-columns: 43px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nconst ProgTableExc = styled.div`\r\n display: grid;\r\n grid-template-columns: 90px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nconst TextProgTabDay = styled.span`\r\n color: ${colors.Grey300};\r\n font-weight: bold;\r\n`;\r\n\r\nconst TextProgTabMode = styled.div`\r\n display: grid;\r\n grid-template-columns: auto auto;\r\n`;\r\n\r\nconst ItemTitle = styled.h3`\r\n margin-bottom: 0;\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Blue300};\r\n`;\r\n\r\nconst ItemWrapper = styled.div`\r\n width: 100%;\r\n`;\r\n\r\nconst IconWrapper = styled.div`\r\n cursor: pointer;\r\n`;\r\n\r\nconst SelectDay = styled.div<{ isSelected: boolean, ruleException: 'rule'|'exception' }>(\r\n ({ isSelected, ruleException }) => `\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n cursor: pointer;\r\n width: 48px;\r\n height: 32px;\r\n box-sizing: border-box;\r\n border-radius: 8px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n background-color: ${ruleException === 'rule' ? (isSelected ? colors.Blue300 : colors.White) : colors.White};\r\n border: 1px solid ${ruleException === 'rule' ? colors.Blue300 : colors.Grey200};\r\n color: ${ruleException === 'rule' ? (isSelected ? colors.White : colors.Blue300) : colors.Grey200};\r\n `,\r\n);\r\n\r\nconst ErrorMessage = styled.span`\r\n color: ${colors.Red};\r\n font-size: 0.75em;\r\n`;\r\n","import { ChangeEvent, useEffect, useState } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Button, Input, Checkbox } from 'components';\r\nimport parseDecimalNumber from 'helpers/parseDecimalNumber';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { SchedulesList, SchedulesRemove, SchedulesEdit } from 'pages/Analysis/SchedulesModals/RoomSchedule';\r\nimport { apiCall } from 'providers';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\n\r\ntype TDayString = ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun');\r\n\r\nfunction verifyExistOrReturnString(item) {\r\n if (item != null && String(item)) {\r\n return String(item);\r\n }\r\n return '';\r\n}\r\n\r\nexport const FormEditRoomType = (props: {\r\n roomTypeInfo: {\r\n RTYPE_ID: number\r\n RTYPE_NAME: string\r\n TUSEMIN: number\r\n TUSEMAX: number\r\n fullProg: FullProg_v4\r\n CO2MAX: number\r\n HUMIMAX: number\r\n HUMIMIN: number\r\n }\r\n clientId: number\r\n onSuccess: (pars: { action: string, item: {} }) => void\r\n onCancel: () => void\r\n}): JSX.Element => {\r\n const {\r\n roomTypeInfo, clientId, onSuccess, onCancel,\r\n } = props;\r\n const [state, render, setState] = useStateVar({\r\n schedulesTypeActive: 'List',\r\n submitting: false,\r\n editDayString: null as null|TDayString,\r\n monTypesSelected: [] as string[],\r\n formData: {\r\n RTYPE_ID: (roomTypeInfo?.RTYPE_ID) || null,\r\n RTYPE_NAME: (roomTypeInfo?.RTYPE_NAME) || '',\r\n TUSEMIN: verifyExistOrReturnString(roomTypeInfo?.TUSEMIN),\r\n TUSEMAX: verifyExistOrReturnString(roomTypeInfo?.TUSEMAX),\r\n fullProg: (roomTypeInfo?.fullProg) || {},\r\n CO2MAX: verifyExistOrReturnString(roomTypeInfo?.CO2MAX),\r\n HUMIMAX: verifyExistOrReturnString(roomTypeInfo?.HUMIMAX),\r\n HUMIMIN: verifyExistOrReturnString(roomTypeInfo?.HUMIMIN),\r\n },\r\n });\r\n const { formData } = state;\r\n const isEdit = !!formData.RTYPE_ID;\r\n\r\n useEffect(() => {\r\n if (formData.TUSEMAX || formData.TUSEMIN) {\r\n state.monTypesSelected.push('temp');\r\n render();\r\n }\r\n if (formData.CO2MAX) {\r\n state.monTypesSelected.push('co2');\r\n render();\r\n }\r\n if (formData.HUMIMAX || formData.HUMIMIN) {\r\n state.monTypesSelected.push('humi');\r\n render();\r\n }\r\n }, []);\r\n\r\n function verifyExistItemOrReturnNull(type, item) {\r\n if (!state.monTypesSelected.includes(type)) {\r\n return null;\r\n }\r\n if (item) {\r\n return parseDecimalNumber(item);\r\n }\r\n return null;\r\n }\r\n\r\n function validateParams() {\r\n let isOk = true;\r\n if (state.monTypesSelected.includes('co2')) {\r\n if (Number(state.formData.CO2MAX) < 0) {\r\n toast.error('CO2 não pode ser negativo');\r\n isOk = false;\r\n }\r\n }\r\n if (state.monTypesSelected.includes('humi')) {\r\n if (Number(state.formData.HUMIMIN) < 0 || Number(state.formData.HUMIMAX) < 0) {\r\n toast.error('Umidade não pode ser negativa');\r\n isOk = false;\r\n }\r\n if (Number(state.formData.HUMIMIN) > 100 || Number(state.formData.HUMIMAX) > 100) {\r\n toast.error('Umidade não pode ser maior que 100%');\r\n isOk = false;\r\n }\r\n if (Number(state.formData.HUMIMAX) < Number(state.formData.HUMIMIN)) {\r\n toast.error('Umidade máxima não pode ser menor que a mínima');\r\n isOk = false;\r\n }\r\n }\r\n if (state.monTypesSelected.includes('temp')) {\r\n if (Number(state.formData.TUSEMAX) < Number(state.formData.TUSEMIN)) {\r\n toast.error('Temperatura máxima não pode ser menor que a mínima');\r\n isOk = false;\r\n }\r\n }\r\n return isOk;\r\n }\r\n\r\n async function confirm() {\r\n let response = null as null|{};\r\n let action = null as null|string;\r\n if (!formData.RTYPE_NAME) {\r\n alert('É necessário definir o nome');\r\n return;\r\n }\r\n if (Object.keys(formData.fullProg.week).length === 0) {\r\n alert('É necessário definir uma programação');\r\n return;\r\n }\r\n if (!validateParams()) {\r\n return;\r\n }\r\n try {\r\n state.submitting = true; render();\r\n if (isEdit) {\r\n response = await apiCall('/clients/edit-roomtype', {\r\n RTYPE_ID: formData.RTYPE_ID!,\r\n RTYPE_NAME: formData.RTYPE_NAME,\r\n TUSEMIN: verifyExistItemOrReturnNull('temp', formData.TUSEMIN),\r\n TUSEMAX: verifyExistItemOrReturnNull('temp', formData.TUSEMAX),\r\n CLIENT_ID: clientId,\r\n workPeriods: fullProgToWorkPeriods(formData.fullProg),\r\n CO2MAX: verifyExistItemOrReturnNull('co2', formData.CO2MAX),\r\n HUMIMAX: verifyExistItemOrReturnNull('humi', formData.HUMIMAX),\r\n HUMIMIN: verifyExistItemOrReturnNull('humi', formData.HUMIMIN),\r\n });\r\n action = 'edit';\r\n } else {\r\n response = await apiCall('/clients/add-new-roomtype', {\r\n RTYPE_ID: formData.RTYPE_ID || null,\r\n RTYPE_NAME: formData.RTYPE_NAME,\r\n TUSEMIN: verifyExistItemOrReturnNull('temp', formData.TUSEMIN),\r\n TUSEMAX: verifyExistItemOrReturnNull('temp', formData.TUSEMAX),\r\n CLIENT_ID: clientId,\r\n workPeriods: fullProgToWorkPeriods(formData.fullProg),\r\n CO2MAX: verifyExistItemOrReturnNull('co2', formData.CO2MAX),\r\n HUMIMAX: verifyExistItemOrReturnNull('humi', formData.HUMIMAX),\r\n HUMIMIN: verifyExistItemOrReturnNull('humi', formData.HUMIMIN),\r\n });\r\n action = 'new';\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.submitting = false; render();\r\n if (response && action) onSuccess({ item: response, action });\r\n }\r\n\r\n async function onConfirmProg(days: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')[], prog: DayProg) {\r\n if (state.schedulesTypeActive === 'Edit' && ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'].includes(state.editDayString!)) {\r\n delete formData.fullProg.week[state.editDayString!];\r\n }\r\n for (const selectedDay of days) {\r\n formData.fullProg.week[selectedDay] = prog;\r\n }\r\n state.editDayString = null;\r\n state.schedulesTypeActive = 'List';\r\n render();\r\n }\r\n\r\n function onConfirmRemoveProg(day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') {\r\n delete formData.fullProg.week[day];\r\n state.schedulesTypeActive = 'List';\r\n render();\r\n }\r\n\r\n let modalContent = null as null|JSX.Element;\r\n if (state.schedulesTypeActive === 'Edit') {\r\n modalContent = (\r\n { state.schedulesTypeActive = 'List'; render(); }}\r\n onConfirmProg={onConfirmProg}\r\n isSending={false}\r\n />\r\n );\r\n }\r\n if (state.schedulesTypeActive === 'Remove') {\r\n modalContent = (\r\n setState({ schedulesTypeActive: 'List', editDayString: null })}\r\n isRemoving={false}\r\n />\r\n );\r\n }\r\n if (state.schedulesTypeActive === 'Add') {\r\n modalContent = (\r\n { state.schedulesTypeActive = 'List'; render(); }}\r\n onConfirmProg={onConfirmProg}\r\n isSending={false}\r\n />\r\n );\r\n }\r\n if (state.schedulesTypeActive === 'List') {\r\n modalContent = (\r\n { state.schedulesTypeActive = 'Add'; render(); }}\r\n wantRemoveDay={(dayString) => { state.editDayString = dayString; state.schedulesTypeActive = 'Remove'; render(); }}\r\n wantEditDay={(dayString) => { state.editDayString = dayString; state.schedulesTypeActive = 'Edit'; render(); }}\r\n wantDelException={null}\r\n isLoading={false}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n
\r\n {(state.schedulesTypeActive === 'List')\r\n && (\r\n
\r\n ) => { state.formData.RTYPE_NAME = event.target.value; render(); }}\r\n />\r\n
Monitoramento:
\r\n
\r\n {\r\n state.monTypesSelected.includes('temp') ? state.monTypesSelected = state.monTypesSelected.filter((r) => r !== 'temp') : state.monTypesSelected.push('temp');\r\n render();\r\n }}\r\n />\r\n
\r\n {\r\n state.monTypesSelected.includes('humi') ? state.monTypesSelected = state.monTypesSelected.filter((r) => r !== 'humi') : state.monTypesSelected.push('humi');\r\n render();\r\n }}\r\n />\r\n
\r\n {\r\n state.monTypesSelected.includes('co2') ? state.monTypesSelected = state.monTypesSelected.filter((r) => r !== 'co2') : state.monTypesSelected.push('co2');\r\n render();\r\n }}\r\n />\r\n
\r\n {state.monTypesSelected.includes('temp') && (\r\n
\r\n ) => { state.formData.TUSEMIN = event.target.value; render(); }}\r\n />\r\n ) => { state.formData.TUSEMAX = event.target.value; render(); }}\r\n />\r\n
\r\n )}\r\n {state.monTypesSelected.includes('humi') && (\r\n
\r\n 100 ? '1px solid red' : '1px solid gray' }}\r\n type=\"text\"\r\n value={formData.HUMIMIN}\r\n placeholder=\"Umidade mínima [%]\"\r\n onChange={(event: ChangeEvent) => { state.formData.HUMIMIN = event.target.value; render(); }}\r\n />\r\n 100 ? '1px solid red' : '1px solid gray' }}\r\n type=\"text\"\r\n value={formData.HUMIMAX}\r\n placeholder=\"Umidade máxima [%]\"\r\n onChange={(event: ChangeEvent) => { state.formData.HUMIMAX = event.target.value; render(); }}\r\n />\r\n
\r\n )}\r\n {state.monTypesSelected.includes('co2') && (\r\n
\r\n ) => { state.formData.CO2MAX = event.target.value; render(); }}\r\n />\r\n
\r\n )}\r\n
\r\n )}\r\n
\r\n {modalContent}\r\n
\r\n {(state.schedulesTypeActive === 'List')\r\n && (\r\n
\r\n \r\n \r\n
\r\n )}\r\n
\r\n );\r\n};\r\n\r\n// in ts version 4.1.2 prog.start and prog.end erro ts2532 object possibly undefined !!\r\nfunction fullProgToWorkPeriods(fullProg: FullProg_v4) {\r\n const workPeriods: { [day: string]: string } = {};\r\n for (const [day, prog] of Object.entries(fullProg.week || {})) {\r\n workPeriods[day] = `enabled;${prog.start}-${prog.end}`;\r\n }\r\n for (const [day, prog] of Object.entries(fullProg.exceptions || {})) {\r\n workPeriods[day] = `enabled;${prog.start}-${prog.end}`;\r\n }\r\n return workPeriods;\r\n}\r\n","import React, { useState } from 'react';\r\nimport { CloseEyeIcon, OpenEyeIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\nimport styled from 'styled-components';\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n margin-top: 15px;\r\n margin-right: 15px;\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const usePasswordToggle = () => {\r\n const [visible, setVisiblity] = useState(false);\r\n\r\n const Icon = (\r\n setVisiblity((visiblity) => !visiblity)}>\r\n {!visible ? : }\r\n \r\n );\r\n\r\n const InputType = visible ? 'text' : 'password';\r\n\r\n return [InputType, Icon];\r\n};\r\n","import styled from 'styled-components';\r\n\r\nimport { ExpandIcon } from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const IconWrapper = styled.div<{ disabled }>(({ disabled }) => `\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 16px;\r\n height: 16px;\r\n ${disabled ? 'cursor: not-allowed;' : 'cursor: pointer;'}\r\n`);\r\n\r\nexport const SelectedContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-start;\r\n padding: 10px;\r\n height: 25px;\r\n margin-top: 5px;\r\n min-width: 40%;\r\n max-width: 80%;\r\n border-radius: 5px;\r\n`;\r\n\r\nexport const Selected = styled.span`\r\n font-weight: bold;\r\n font-size: 0.75em;\r\n margin-left: 5px;\r\n color: ${colors.Blue300};\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n`;\r\n\r\nexport const EmptyLabel = styled.div`\r\n height: 19px;\r\n`;\r\n\r\nexport const Wrapper = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n height: 48px;\r\n width: calc(100% - 34px);\r\n`;\r\n\r\nexport const Arrow = styled(ExpandIcon)<{ isOpen: boolean }>`\r\n transform: rotate(${(props) => (props.isOpen ? '180' : '360')}deg);\r\n transition: all 0.2s;\r\n margin: 14px 16px 14px 5px;\r\n`;\r\n\r\nexport const Container = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n position: relative;\r\n`;\r\n\r\nexport const Base = styled.div<{ error: string | undefined, disabled: boolean | undefined, isOpen: boolean, isSelected: boolean, onClick:() => void }>`\r\n box-sizing: border-box;\r\n position: relative;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n min-height: 48px;\r\n cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\r\n border: ${(props) => {\r\n let borderProperty = '1px solid ';\r\n if (props.error) borderProperty += colors.Red;\r\n else props.isOpen ? borderProperty += colors.Blue700 : borderProperty += colors.GreyInputBorder;\r\n return `${borderProperty};`;\r\n }};\r\n border-radius: ${(props) => (props.isOpen ? '5px 5px 0px 0px' : '5px')};\r\n color: ${(props) => {\r\n if (props.disabled) return 'rgba(62, 71, 86, 0.2);';\r\n return props.isSelected ? '#000;' : 'rgba(62, 71, 86, 0.3);';\r\n }};\r\n`;\r\n\r\nexport const Label = styled.span<{ error: string | undefined, isSelected: boolean | undefined, isOpen: boolean, disabled: boolean | undefined }>(\r\n ({\r\n error, isSelected, isOpen, disabled,\r\n }) => `\r\n transition: all 0.2s;\r\n margin-left: 16px;\r\n font-size: 12px;\r\n position: absolute;\r\n font-weight: bold;\r\n top: 5px;\r\n color: ${error ? colors.Red : colors.Blue700};\r\n ${disabled ? `color: ${colors.Grey200};` : ''}\r\n ${(isOpen || isSelected)\r\n && `\r\n top: 2px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 12px;\r\n `}\r\n`,\r\n);\r\n\r\nexport const SelectedLabel = styled.span<{ disabled }>(({ disabled }) => `\r\n font-size: 12px;\r\n margin-left: 16px;\r\n margin-bottom: -6px;\r\n margin-top: 7px;\r\n color: ${colors.Black};\r\n ${disabled ? `color: ${colors.Grey200};` : ''}\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n`);\r\n\r\nexport const ListItem = styled.div<{ isSelected: boolean }>`\r\n position: relative;\r\n height: 48px;\r\n padding: 14px 16px;\r\n cursor: pointer;\r\n\r\n &:hover {\r\n background-color: ${(props) => (props.isSelected ? '' : colors.Grey050)};\r\n }\r\n\r\n span {\r\n font-size: 0.875em;\r\n color: ${(props) => (props.isSelected ? colors.Grey400 : colors.Grey300)};\r\n }\r\n`;\r\n\r\nexport const List = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n background-color: ${colors.White};\r\n min-height: 48px;\r\n position: absolute;\r\n top: 103%;\r\n width: 100%;\r\n z-index: 10;\r\n height: auto;\r\n max-height: 316px;\r\n overflow-y: scroll;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n\r\n ${ListItem} {\r\n &:last-child {\r\n border-radius: 0px 0px 8px 8px;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n }\r\n }\r\n`;\r\n\r\nexport const BlueBar = styled.div<{ isLast: boolean }>`\r\n width: 4px;\r\n height: 48px;\r\n background-color: ${colors.Blue300};\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n border-bottom-left-radius: ${(props) => props.isLast && '8px;'};\r\n`;\r\n\r\nexport const Error = styled.span`\r\n color: ${colors.Red};\r\n display: block;\r\n margin: 5px;\r\n text-align: left;\r\n font-size: 0.75em;\r\n height: 24px;\r\n`;\r\n","import {\r\n useState, useRef, useCallback, CSSProperties,\r\n ReactElement,\r\n} from 'react';\r\n\r\nimport { useOuterClickNotifier } from '../../hooks/useOuterClickNotifier';\r\nimport { CloseIcon } from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\n\r\nimport {\r\n IconWrapper,\r\n SelectedContainer,\r\n Selected,\r\n EmptyLabel,\r\n Wrapper,\r\n Arrow,\r\n Container,\r\n Base,\r\n Label,\r\n SelectedLabel,\r\n ListItem,\r\n List,\r\n BlueBar,\r\n Error,\r\n} from './styles';\r\nimport * as IconNames from 'icons';\r\n\r\nexport type Option = {\r\n label: string;\r\n value: string;\r\n iconName: keyof typeof IconNames;\r\n}\r\n\r\ntype SelectProps = {\r\n label?: string;\r\n placeholder?: string;\r\n hideSelected?: boolean;\r\n onSelect: (value: any | Option) => any;\r\n options?: any | Option[];\r\n value?: any;\r\n error?: string;\r\n propLabel?: string;\r\n notNull?: boolean;\r\n disabled?: boolean;\r\n style?: CSSProperties;\r\n}\r\n\r\nexport const Select = ({\r\n label, placeholder, hideSelected = false, onSelect, options, value, error, propLabel = 'label', notNull = false, disabled = undefined, ...props\r\n}: SelectProps): JSX.Element => {\r\n const innerRef = useRef(null);\r\n const [isOpen, setIsOpen] = useState(false);\r\n const clickOutsideCallback = useCallback((e) => setIsOpen(false), []);\r\n useOuterClickNotifier(clickOutsideCallback, innerRef);\r\n const toggle = () => setIsOpen(!isOpen);\r\n\r\n function isOption(option: unknown): option is Option {\r\n return !!option && !!(option as Option).label && !!(option as Option).value;\r\n }\r\n\r\n function renderIcon(option: Option): ReactElement | null {\r\n if (!option.iconName) {\r\n return null;\r\n }\r\n const Icon = IconNames[option.iconName];\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n return (\r\n \r\n {} : toggle}>\r\n \r\n \r\n {\r\n !isOpen && !value && (\r\n
\r\n {placeholder}\r\n
\r\n )\r\n }\r\n {value ? {(value && (value[propLabel] === 'ET330' ? 'ET330 (Padrão Diel)' : value[propLabel])) || String(value)} : isOpen && }\r\n
\r\n \r\n \r\n {value && (!notNull) && !hideSelected && (\r\n \r\n {} : () => onSelect('')}>\r\n \r\n \r\n {(value && (value[propLabel] === 'ET330' ? 'ET330 (Padrão Diel)' : value[propLabel])) || String(value)}\r\n \r\n )}\r\n {error && {typeof (error) === 'string' ? error : 'Campo incorreto.'}}\r\n {isOpen && (\r\n \r\n {options.map((option, index) => {\r\n const isSelected = isOption(option) ? value === option.value : value === option;\r\n const isLast = index === options.length - 1;\r\n return (\r\n {\r\n onSelect(option);\r\n setIsOpen(false);\r\n }}\r\n >\r\n {isSelected && }\r\n {isOption(option) && renderIcon(option)}\r\n {(option && (option[propLabel] === 'ET330' ? 'ET330 (Padrão Diel)' : option[propLabel])) || option}\r\n \r\n );\r\n })}\r\n \r\n )}\r\n
\r\n );\r\n};\r\n","import styled from 'styled-components';\r\n\r\nimport { ExpandIcon } from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const IconWrapper = styled.div<{ disabled }>(({ disabled }) => `\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 16px;\r\n height: 16px;\r\n ${disabled ? 'cursor: not-allowed;' : 'cursor: pointer;'}\r\n`);\r\n\r\nexport const SelectedContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-start;\r\n padding: 10px;\r\n height: 25px;\r\n margin-top: 10px;\r\n min-width: 40%;\r\n max-width: 70%;\r\n border-radius: 5px;\r\n`;\r\n\r\nexport const Selected = styled.span`\r\n font-weight: bold;\r\n font-size: 0.75em;\r\n margin-left: 5px;\r\n color: ${colors.Blue300};\r\n`;\r\n\r\nexport const EmptyLabel = styled.div`\r\n height: 19px;\r\n`;\r\n\r\nexport const Wrapper = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n height: 48px;\r\n`;\r\n\r\nexport const Arrow = styled(ExpandIcon)<{ isOpen: boolean }>`\r\n transform: rotate(${(props) => (props.isOpen ? '180' : '360')}deg);\r\n transition: all 0.2s;\r\n margin: 14px 16px 14px 5px;\r\n`;\r\n\r\nexport const Container = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n position: relative;\r\n`;\r\n\r\nexport const Base = styled.div<{ error: string | undefined, disabled: boolean | undefined, isOpen: boolean, isSelected: boolean, onClick:() => void }>`\r\n box-sizing: border-box;\r\n position: relative;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n min-height: 48px;\r\n cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\r\n border: ${(props) => {\r\n let borderProperty = '1px solid ';\r\n if (props.error) borderProperty += colors.Red;\r\n else props.isOpen ? borderProperty += colors.Blue700 : borderProperty += colors.GreyInputBorder;\r\n return `${borderProperty};`;\r\n }};\r\n border-radius: ${(props) => (props.isOpen ? '5px 5px 0px 0px' : '5px')};\r\n color: ${(props) => {\r\n if (props.disabled) return 'rgba(62, 71, 86, 0.2);';\r\n return props.isSelected ? '#000;' : 'rgba(62, 71, 86, 0.3);';\r\n }};\r\n`;\r\n\r\nexport const Label = styled.span<{ error: string | undefined, isSelected: boolean | undefined, isOpen: boolean, disabled: boolean | undefined }>(\r\n ({\r\n error, isSelected, isOpen, disabled,\r\n }) => `\r\n transition: all 0.2s;\r\n margin-left: 16px;\r\n font-size: 12px;\r\n position: absolute;\r\n font-weight: bold;\r\n top: 5px;\r\n color: ${error ? colors.Red : colors.Blue700};\r\n ${(isOpen || isSelected)\r\n && `\r\n top: 2px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n `}\r\n ${disabled ? `color: ${colors.Grey200};` : ''}\r\n`,\r\n);\r\n\r\nexport const SelectedLabel = styled.span<{ disabled }>(({ disabled }) => `\r\n font-size: 12px;\r\n margin-left: 16px;\r\n margin-bottom: -6px;\r\n margin-top: 7px;\r\n color: ${colors.Black};\r\n ${disabled ? `color: ${colors.Grey200};` : ''}\r\n`);\r\n\r\nexport const ListItem = styled.div<{ isSelected: boolean }>`\r\n position: relative;\r\n height: 48px;\r\n padding: 14px 16px;\r\n cursor: pointer;\r\n\r\n &:hover {\r\n background-color: ${(props) => (props.isSelected ? '' : colors.Grey050)};\r\n }\r\n\r\n span {\r\n font-size: 0.875em;\r\n color: ${(props) => (props.isSelected ? colors.Grey400 : colors.Grey300)};\r\n }\r\n`;\r\n\r\nexport const List = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n background-color: ${colors.White};\r\n min-height: 48px;\r\n position: absolute;\r\n top: 103%;\r\n width: 100%;\r\n z-index: 1;\r\n height: auto;\r\n max-height: 316px;\r\n overflow-y: scroll;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n\r\n ${ListItem} {\r\n &:last-child {\r\n border-radius: 0px 0px 8px 8px;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n }\r\n }\r\n`;\r\n\r\nexport const BlueBar = styled.div<{ isLast: boolean }>`\r\n width: 4px;\r\n height: 48px;\r\n background-color: ${colors.Blue300};\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n border-bottom-left-radius: ${(props) => props.isLast && '8px;'};\r\n`;\r\n\r\nexport const Error = styled.span`\r\n color: ${colors.Red};\r\n display: block;\r\n margin: 5px;\r\n text-align: left;\r\n font-size: 0.75em;\r\n height: 24px;\r\n`;\r\n","import { useState, useRef, useCallback } from 'react';\r\n\r\nimport { useOuterClickNotifier } from '../../hooks/useOuterClickNotifier';\r\nimport { CloseIcon } from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\n\r\nimport {\r\n IconWrapper,\r\n SelectedContainer,\r\n Selected,\r\n EmptyLabel,\r\n Wrapper,\r\n Arrow,\r\n Container,\r\n Base,\r\n Label,\r\n SelectedLabel,\r\n ListItem,\r\n List,\r\n BlueBar,\r\n Error,\r\n} from './styles';\r\n\r\ntype SelectMultipleProps = {\r\n label: string;\r\n placeholder: string;\r\n onSelect: any;\r\n options?: any;\r\n values?: any;\r\n disabled?: boolean;\r\n error?: string;\r\n emptyLabel?: string;\r\n propLabel?: string;\r\n closeOnSelect?: any;\r\n}\r\n\r\nfunction changeMultipleSelection(item, values) {\r\n if (!item) return [];\r\n return values.includes(item) ? values.filter((x) => x !== item) : values.concat([item]);\r\n}\r\n\r\nexport const SelectMultiple = ({\r\n label, placeholder, onSelect, options, values, disabled = undefined, error, emptyLabel = undefined, propLabel = 'name', closeOnSelect = false, ...props\r\n}: SelectMultipleProps): JSX.Element => {\r\n const innerRef = useRef(null);\r\n const [isOpen, setIsOpen] = useState(false);\r\n if (disabled) setIsOpen(false);\r\n const clickOutsideCallback = useCallback((e) => setIsOpen(false), []);\r\n useOuterClickNotifier(clickOutsideCallback, innerRef);\r\n const toggle = () => setIsOpen(!isOpen);\r\n\r\n function formatDisplayedValue(values) {\r\n if (values.length === 0) return emptyLabel || '';\r\n if (values.length === 1) return values[0][propLabel];\r\n if (values.length > 1) return `${values.length} seleções`;\r\n return '';\r\n }\r\n\r\n return (\r\n \r\n 0} disabled={disabled} onClick={disabled ? () => {} : toggle}>\r\n \r\n \r\n {\r\n !isOpen && values.length === 0 && (\r\n
\r\n {placeholder}\r\n
\r\n )\r\n }\r\n {(values.length > 0) ? {formatDisplayedValue(values)} : isOpen && }\r\n
\r\n \r\n \r\n {(values.length > 0) && (\r\n \r\n {} : () => onSelect('', options, [])}>\r\n \r\n \r\n {formatDisplayedValue(values)}\r\n \r\n )}\r\n {error && {typeof (error) === 'string' ? error : 'Campo incorreto.'}}\r\n {isOpen && (\r\n \r\n {options.map((option, index) => {\r\n const isSelected = values.includes(option);\r\n const isLast = index === options.length - 1;\r\n return (\r\n {\r\n let suggestedNewValues = null;\r\n try {\r\n suggestedNewValues = changeMultipleSelection(option, values);\r\n } catch (err) { console.log(err); }\r\n onSelect(option, options, suggestedNewValues);\r\n if (closeOnSelect) setIsOpen(false);\r\n }}\r\n >\r\n {isSelected && }\r\n {option[propLabel]}\r\n \r\n );\r\n })}\r\n \r\n )}\r\n
\r\n );\r\n};\r\n","import { useEffect } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n ActionButton, Button, Input, Loader,\r\n} from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { EditIcon, DeleteOutlineIcon } from '~/icons';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport function ExtrasList({\r\n list, wantDelete, wantEdit, wantAdd,\r\n}) {\r\n return (\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {list.map((row, index) => (\r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
NomeValor\r\n
{row[0]}{row[1]}\r\n wantDelete(index)} variant=\"red-inv\">\r\n \r\n \r\n wantEdit(index)} variant=\"blue-inv\">\r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function ExtrasEdit({ editedItem = null, onConfirm, onCancel }) {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isEdit: !!editedItem,\r\n // @ts-ignore\r\n name: (editedItem && editedItem[0]) || '',\r\n // @ts-ignore\r\n value: (editedItem && editedItem[0]) || '',\r\n formErrors: {\r\n name: '',\r\n value: '',\r\n },\r\n };\r\n return state;\r\n });\r\n\r\n function validateForm() {\r\n state.formErrors.name = state.name ? '' : 'O nome é obrigatório';\r\n state.formErrors.value = state.value ? '' : 'O valor é obrigatório';\r\n render();\r\n return !(state.formErrors.name || state.formErrors.value);\r\n }\r\n\r\n function confirm() {\r\n if (!validateForm()) return;\r\n onConfirm([state.name, state.value]);\r\n }\r\n\r\n return (\r\n
\r\n setState({ name: event.target.value })}\r\n />\r\n setState({ value: event.target.value })}\r\n />\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function FormEditExtras({ unitId, wantClose }) {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n loading: false,\r\n list: [] as string[][],\r\n activeView: 'List',\r\n submitting: false,\r\n // @ts-ignore\r\n editedIndex: null as number,\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n fetchServerData();\r\n }, []);\r\n\r\n async function fetchServerData() {\r\n try {\r\n state.loading = true; render();\r\n const unitInfo = await apiCall('/clients/get-unit-info', { unitId });\r\n const list = JSON.parse(unitInfo.EXTRA_DATA || '[]');\r\n if (!(list instanceof Array)) throw Error('Invalid EXTRA_DATA.');\r\n for (const row of list) {\r\n if (!(row instanceof Array)) throw Error('Invalid EXTRA_DATA.');\r\n if (row.length !== 2) throw Error('Invalid EXTRA_DATA.');\r\n if (typeof row[0] !== 'string') throw Error('Invalid EXTRA_DATA.');\r\n if (typeof row[1] !== 'string') throw Error('Invalid EXTRA_DATA.');\r\n // if (row && (row.length === 2) && (row[0] || row[1])) { } // OK\r\n // else continue;\r\n // state.list.push([\r\n // row[0] || '',\r\n // row[1] || '',\r\n // ]);\r\n }\r\n state.list = list;\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.loading = false; render();\r\n }\r\n\r\n async function confirm() {\r\n try {\r\n state.submitting = true; render();\r\n await apiCall('/clients/edit-unit', {\r\n UNIT_ID: unitId,\r\n EXTRA_DATA: JSON.stringify(state.list),\r\n });\r\n toast.success('Salvo!');\r\n wantClose();\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.submitting = false; render();\r\n }\r\n\r\n function onConfirmItem(item) {\r\n if (state.editedIndex != null) {\r\n state.list[state.editedIndex] = item;\r\n } else {\r\n state.list.push(item);\r\n }\r\n console.log(item, state.editedIndex, state.list[state.editedIndex]);\r\n state.activeView = 'List';\r\n render();\r\n }\r\n\r\n function onWantRemoveItem(index: number) {\r\n if (!window.confirm('Deseja excluir?')) return;\r\n state.list.splice(index, 1);\r\n // @ts-ignore\r\n setState({ activeView: 'List', editedIndex: null });\r\n }\r\n\r\n let modalContent = null;\r\n if (state.activeView === 'List') {\r\n // @ts-ignore\r\n modalContent = (\r\n setState({ activeView: 'Edit', editedIndex: null })}\r\n wantEdit={(index) => setState({ activeView: 'Edit', editedIndex: index })}\r\n wantDelete={(index) => { onWantRemoveItem(index); }}\r\n />\r\n );\r\n }\r\n if (state.activeView === 'Edit') {\r\n // @ts-ignore\r\n modalContent = (\r\n { onConfirmItem(item); }}\r\n // @ts-ignore\r\n onCancel={() => setState({ activeView: 'List', editedIndex: null })}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n
\r\n {state.loading\r\n ? \r\n : (\r\n <>\r\n {modalContent}\r\n {(state.activeView === 'List')\r\n && (\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n )}\r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst Table = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n","import { createStore, applyMiddleware, Reducer } from 'redux';\r\nimport thunk from 'redux-thunk';\r\n\r\n// import logger from 'redux-logger'\r\nimport { ApiResps } from 'providers';\r\n\r\nconst middleware = [thunk];\r\n// if (process.env.NODE_ENV === 'development') {\r\n// middleware.push(logger)\r\n// }\r\n\r\nexport type DevFullInfo = ApiResps['/get-dev-full-info']['info'] & {\r\n dac?: ApiResps['/get-dev-full-info']['dac']\r\n dut?: ApiResps['/get-dev-full-info']['dut']\r\n dam?: ApiResps['/get-dev-full-info']['dam']\r\n dut_aut?: ApiResps['/get-dev-full-info']['dut_aut']\r\n dri?: ApiResps['/get-dev-full-info']['dri']\r\n dma?: ApiResps['/get-dev-full-info']['dma']\r\n dal?: ApiResps['/get-dev-full-info']['dal']\r\n dmt?: ApiResps['/get-dev-full-info']['dmt']\r\n optsDescs?: ApiResps['/get-dev-full-info']['optsDescs']\r\n};\r\n\r\ntype StoreData = {\r\n devInfo: DevFullInfo\r\n};\r\n\r\nconst InitialState: StoreData = {\r\n devInfo: {} as any,\r\n};\r\n\r\nconst reducer: Reducer = function (state: StoreData|undefined, action: { type: string, payload?: any }) {\r\n if (!state) {\r\n state = { ...InitialState };\r\n }\r\n switch (action && action.type) {\r\n case 'SET_DEV_INFO':\r\n state.devInfo = action.payload || {};\r\n break;\r\n case 'RESET_DATA':\r\n return { ...InitialState };\r\n // return {};\r\n // return null;\r\n }\r\n return state;\r\n};\r\n\r\nconst store = createStore(reducer, applyMiddleware(...middleware));\r\nexport default store;\r\n","import store from 'store';\r\nimport { apiCall, ApiResps } from '../providers';\r\nimport jsonTryParse from './jsonTryParse';\r\n\r\n// sessionStorage.setItem('key', 'value'); // Save data to sessionStorage\r\n// let data = sessionStorage.getItem('key'); // Get saved data from sessionStorage\r\n// sessionStorage.removeItem('key'); // Remove saved data from sessionStorage\r\n// sessionStorage.clear(); // Remove all saved data from sessionStorage\r\n\r\nexport function saveSessionStorageItem(key: string, value) {\r\n sessionStorage.setItem(key, JSON.stringify(value));\r\n}\r\n\r\nexport function removeSessionStorageItem(key: string) {\r\n sessionStorage.removeItem(key);\r\n}\r\n\r\nexport function getSessionStorageItem(key: string) {\r\n const data = sessionStorage.getItem(key);\r\n return jsonTryParse(data || '');\r\n}\r\n\r\nfunction getExistingDevInfo() {\r\n const data = localStorage.getItem('DEV-INFO');\r\n if (data) {\r\n try {\r\n return JSON.parse(data);\r\n } catch (err) { }\r\n }\r\n return null;\r\n}\r\n\r\n// async function getCachedDacInfo (devId: string) {\r\n// let data = getExistingDevInfo()\r\n// if (data && data.DAC_ID === devId) return data\r\n// const response = await api['/dac/get-dac-info']({ DAC_ID: devId }).then(data => ({ data }))\r\n// data = response.data.info\r\n// setCachedDacInfo(data)\r\n// return data\r\n// }\r\n\r\n// async function getCachedDutInfo (devId: string, forceNew: boolean) {\r\n// let data = getExistingDevInfo()\r\n// if ((!forceNew) && data && data.DEV_ID === devId) return data\r\n// const response = await api['/dut/get-dut-info']({ DEV_ID: devId })\r\n// data = {\r\n// ...response.info,\r\n// workPeriods: response.workPeriods,\r\n// workPeriodExceptions: response.workPeriodExceptions,\r\n// }\r\n// setCachedDutInfo(data)\r\n// return data\r\n// }\r\n\r\n// async function getCachedDamInfo (devId: string) {\r\n// let data = getExistingDevInfo()\r\n// if (data && data.DAM_ID === devId) return data\r\n// const response = await api['/dam/get-dam-info']({ DAM_ID: devId }).then(data => ({ data }))\r\n// data = response.data.info\r\n// setCachedDamInfo(data)\r\n// return data\r\n// }\r\n\r\n// function setCachedDacInfo (data: any) {\r\n// localStorage.setItem('DEV-INFO', JSON.stringify(data))\r\n// }\r\n\r\n// function setCachedDutInfo (data: any) {\r\n// localStorage.setItem('DEV-INFO', JSON.stringify(data))\r\n// }\r\n\r\n// function setCachedDamInfo (data: any) {\r\n// localStorage.setItem('DEV-INFO', JSON.stringify(data))\r\n// }\r\n\r\nexport type DevInfo = ApiResps['/get-dev-full-info']['info'] & {\r\n dac: ApiResps['/get-dev-full-info']['dac'],\r\n dam: ApiResps['/get-dev-full-info']['dam'],\r\n dut: ApiResps['/get-dev-full-info']['dut'],\r\n dut_aut: ApiResps['/get-dev-full-info']['dut_aut'],\r\n dri: ApiResps['/get-dev-full-info']['dri'],\r\n dma: ApiResps['/get-dev-full-info']['dma'],\r\n optsDescs: ApiResps['/get-dev-full-info']['optsDescs'],\r\n}\r\n\r\nexport function getCachedDevInfoSync(devId: string) { // : DevInfo|null\r\n const { devInfo } = store.getState();\r\n if ((devInfo && devInfo.DEV_ID) === devId) {\r\n return devInfo;\r\n }\r\n return null;\r\n}\r\n\r\nexport function getCachedDevInfo(devId: string, { onlyCached = false, forceFresh = false } = {}) { // : Promise\r\n return Promise.resolve().then(async () => {\r\n let { devInfo } = store.getState();\r\n if ((!forceFresh) && (devInfo && devInfo.DEV_ID) === devId) {\r\n return devInfo;\r\n }\r\n if (onlyCached) return null;\r\n const response = await apiCall('/get-dev-full-info', { DEV_ID: devId });\r\n devInfo = {\r\n ...response.info,\r\n dac: response.dac,\r\n dam: response.dam,\r\n dut: response.dut,\r\n dut_aut: response.dut_aut,\r\n dri: response.dri,\r\n dma: response.dma,\r\n dal: response.dal,\r\n dmt: response.dmt,\r\n optsDescs: response.optsDescs,\r\n };\r\n store.dispatch({ type: 'SET_DEV_INFO', payload: devInfo });\r\n return devInfo;\r\n });\r\n}\r\n","import { Option } from 'components/NewSelect';\r\nimport { t } from 'i18next';\r\n\r\nexport const driApplicationOpts = {\r\n 'Carrier ECOSPLIT': 'carrier-ecosplit',\r\n 'Medidor de Energia': 'medidor-energia',\r\n VAV: 'vav',\r\n 'Modbus Genérico': 'modbus-generico',\r\n Fancoil: 'fancoil',\r\n 'Chiller Carrier': 'chiller-carrier',\r\n};\r\n\r\nexport const driMeterApplications = {\r\n ET330: 'cg-et330',\r\n 'Nexus II': 'abb-nexus-ii',\r\n 'ETE-30': 'abb-ete-30',\r\n 'ETE-50': 'abb-ete-50',\r\n EM210: 'cg-em210',\r\n 'MULT-K': 'kron-mult-k',\r\n 'MULT-K 05': 'kron-mult-k-05',\r\n 'MULT-K 120': 'kron-mult-k-120',\r\n 'iKRON 03': 'kron-ikron-03',\r\n 'Schneider PM2100': 'schneider-eletric-pm2100',\r\n 'Schneider PM210': 'schneider-electric-pm210',\r\n 'Schneider PM9C': 'schneider-electric-pm9c',\r\n};\r\n\r\nexport const driVAVsApplications = {\r\n 'BAC-6000': 'vav-bac-6000',\r\n 'BAC-2000': 'vav-bac-2000',\r\n 'BAC-6000 AMLN': 'vav-bac-6000-amln',\r\n};\r\n\r\nexport const driVAVApplicationsOptions: Option[] = [\r\n { label: 'BAC6000 AMLN', value: 'BAC-6000 AMLN', iconName: 'ThermostatCircleIcon' },\r\n { label: 'BAC6000 MLN', value: 'BAC-6000', iconName: 'ThermostatCircleIcon' },\r\n { label: 'BAC2000 MLN', value: 'BAC-2000', iconName: 'ThermostatSquareIcon' },\r\n];\r\n\r\nexport const driFancoilsApplications = {\r\n 'BAC-6000': 'fancoil-bac-6000',\r\n 'BAC-2000': 'fancoil-bac-2000',\r\n 'BAC-6000 AMLN': 'fancoil-bac-6000-amln',\r\n};\r\n\r\nexport const getDriChillerCarrierApplications = (isHvar: boolean) => ({\r\n '30HXE': isHvar ? 'chiller-carrier-30hxe-gxe-hvar' : 'chiller-carrier-30hxe',\r\n '30GXE': isHvar ? 'chiller-carrier-30hxe-gxe-hvar' : 'chiller-carrier-30gxe',\r\n '30HXF': isHvar ? 'chiller-carrier-30hxe-gxe-hvar' : 'chiller-carrier-30hxf',\r\n '30XAB': isHvar ? 'chiller-carrier-30xab-hvar' : 'chiller-carrier-30xab',\r\n});\r\n\r\nexport const vavFancoilValveTypes: { name: string, value: string}[] = [\r\n { name: t('valvulaProporcional010V'), value: 'PROPORTIONAL' },\r\n { name: t('valvulaOnOff'), value: 'ON-OFF' },\r\n];\r\n\r\ntype Parameter = {\r\n value: number | null;\r\n name: string | null;\r\n unitMeasurement: string | null;\r\n};\r\n\r\ntype ChillerParams = Record;\r\n\r\nexport const driChillerCarrier30HXParams = {\r\n circuitAParams: {\r\n CP_A1: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CP_A2: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CAPA_T: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DP_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SP_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SCT_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SST_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA1_OP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA2_OP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DOP_A1: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DOP_A2: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA1_DGT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA2_DGT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n EXV_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_CP_A1: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_CP_A2: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA1_TMP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA2_TMP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA1_CUR: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPA2_CUR: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n },\r\n circuitBParams: {\r\n CP_B1: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CP_B2: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CAPB_T: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DP_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SP_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SCT_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SST_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB1_OP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB2_OP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DOP_B1: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DOP_B2: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB1_DGT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB2_DGT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n EXV_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_CP_B1: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_CP_B2: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB1_TMP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB2_TMP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB1_CUR: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CPB2_CUR: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n },\r\n};\r\n\r\nexport const driChillerCarrierGeneral30HXParams = {\r\n CHIL_S_S: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CAP_T: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DEM_LIM: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n LAG_LIM: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CTRL_PNT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n EMSTOP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COND_LWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COND_EWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COOL_LWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COOL_EWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COND_SP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CHIL_OCC: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n STATUS: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n};\r\n\r\nexport const driChillerCarrierAlarmParams = {\r\n alarm_1: null as number | null,\r\n alarm_2: null as number | null,\r\n alarm_3: null as number | null,\r\n alarm_4: null as number | null,\r\n alarm_5: null as number | null,\r\n};\r\n\r\nexport const driChillerCarrier30XAParams = {\r\n circuitAParams: {\r\n DP_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SP_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SCT_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SST_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n OP_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SLT_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_CP_A: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n },\r\n circuitBParams: {\r\n DP_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SP_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SCT_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SST_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n OP_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SLT_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_CP_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n },\r\n};\r\n\r\nexport const driChillerCarrierGeneral30XAParams = {\r\n STATUS: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CHIL_S_S: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CHIL_OCC: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CTRL_TYP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SLC_HM: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CAP_T: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n DEM_LIM: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n SP_OCC: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n CTRL_PNT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n OAT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n EMSTOP: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_MACH: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COOL_EWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COOL_LWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COND_EWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n COND_LWT: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n HR_MACH_B: { value: null as number | null, name: null as string | null, unitMeasurement: null as string | null },\r\n};\r\n\r\nexport const driChillerCarrier30XAHvarParams: {\r\n circuitAParams: ChillerParams;\r\n circuitBParams: ChillerParams;\r\n circuitCParams: ChillerParams;\r\n} = {\r\n circuitAParams: {\r\n CAPA_T: { value: null, name: null, unitMeasurement: null },\r\n DP_A: { value: null, name: null, unitMeasurement: null },\r\n SP_A: { value: null, name: null, unitMeasurement: null },\r\n ECON_P_A: { value: null, name: null, unitMeasurement: null },\r\n OP_A: { value: null, name: null, unitMeasurement: null },\r\n DOP_A: { value: null, name: null, unitMeasurement: null },\r\n CURREN_A: { value: null, name: null, unitMeasurement: null },\r\n CP_TMP_A: { value: null, name: null, unitMeasurement: null },\r\n DGT_A: { value: null, name: null, unitMeasurement: null },\r\n ECO_TP_A: { value: null, name: null, unitMeasurement: null },\r\n SCT_A: { value: null, name: null, unitMeasurement: null },\r\n SST_A: { value: null, name: null, unitMeasurement: null },\r\n SUCT_T_A: { value: null, name: null, unitMeasurement: null },\r\n EXV_A: { value: null, name: null, unitMeasurement: null },\r\n CIRCA_AN_UI: { value: null, name: null, unitMeasurement: null },\r\n },\r\n circuitBParams: {\r\n CIRCB_AN_UI: { value: null, name: null, unitMeasurement: null },\r\n CAPB_T: { value: null, name: null, unitMeasurement: null },\r\n DP_B: { value: null, name: null, unitMeasurement: null },\r\n SP_B: { value: null, name: null, unitMeasurement: null },\r\n ECON_P_B: { value: null, name: null, unitMeasurement: null },\r\n OP_B: { value: null, name: null, unitMeasurement: null },\r\n DOP_B: { value: null, name: null, unitMeasurement: null },\r\n CURREN_B: { value: null, name: null, unitMeasurement: null },\r\n CP_TMP_B: { value: null, name: null, unitMeasurement: null },\r\n DGT_B: { value: null, name: null, unitMeasurement: null },\r\n ECO_TP_B: { value: null, name: null, unitMeasurement: null },\r\n SCT_B: { value: null, name: null, unitMeasurement: null },\r\n SST_B: { value: null, name: null, unitMeasurement: null },\r\n SUCT_T_B: { value: null, name: null, unitMeasurement: null },\r\n EXV_B: { value: null, name: null, unitMeasurement: null },\r\n },\r\n circuitCParams: {\r\n CIRCC_AN_UI: { value: null, name: null, unitMeasurement: null },\r\n CAPC_T: { value: null, name: null, unitMeasurement: null },\r\n DP_C: { value: null, name: null, unitMeasurement: null },\r\n SP_C: { value: null, name: null, unitMeasurement: null },\r\n ECON_P_C: { value: null, name: null, unitMeasurement: null },\r\n OP_C: { value: null, name: null, unitMeasurement: null },\r\n DOP_C: { value: null, name: null, unitMeasurement: null },\r\n CURREN_C: { value: null, name: null, unitMeasurement: null },\r\n CP_TMP_C: { value: null, name: null, unitMeasurement: null },\r\n DGT_C: { value: null, name: null, unitMeasurement: null },\r\n ECO_TP_C: { value: null, name: null, unitMeasurement: null },\r\n SCT_C: { value: null, name: null, unitMeasurement: null },\r\n SST_C: { value: null, name: null, unitMeasurement: null },\r\n SUCT_T_C: { value: null, name: null, unitMeasurement: null },\r\n EXV_C: { value: null, name: null, unitMeasurement: null },\r\n },\r\n};\r\n\r\nexport const driChillerCarrierGeneral30XAHvarParams: ChillerParams = {\r\n CTRL_TYP: { value: null, name: null, unitMeasurement: null },\r\n STATUS: { value: null, name: null, unitMeasurement: null },\r\n GENUNIT_UI: { value: null, name: null, unitMeasurement: null },\r\n SP_OCC: { value: null, name: null, unitMeasurement: null },\r\n CHIL_S_S: { value: null, name: null, unitMeasurement: null },\r\n CHIL_OCC: { value: null, name: null, unitMeasurement: null },\r\n DEM_LIM: { value: null, name: null, unitMeasurement: null },\r\n EMSTOP: { value: null, name: null, unitMeasurement: null },\r\n CAP_T: { value: null, name: null, unitMeasurement: null },\r\n TOT_CURR: { value: null, name: null, unitMeasurement: null },\r\n CTRL_PNT: { value: null, name: null, unitMeasurement: null },\r\n OAT: { value: null, name: null, unitMeasurement: null },\r\n COOL_EWT: { value: null, name: null, unitMeasurement: null },\r\n COOL_LWT: { value: null, name: null, unitMeasurement: null },\r\n};\r\n\r\nexport const driMetersCfgs = {\r\n ET330: {\r\n application: 'cg-et330',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'Nexus II': {\r\n application: 'abb-nexus-ii',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'ETE-30': createEteConfig('abb-ete-30'),\r\n 'ETE-50': createEteConfig('abb-ete-50'),\r\n EM210: {\r\n application: 'cg-em210',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'MULT-K': {\r\n application: 'kron-mult-k',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'MULT-K 05': {\r\n application: 'kron-mult-k-05',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'MULT-K 120': {\r\n application: 'kron-mult-k-120',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'iKRON 03': {\r\n application: 'kron-ikron-03',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'Schneider PM2100': {\r\n application: 'schneider-eletric-pm2100',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n },\r\n 'Schneider PM210': createSchneiderConfig('schneider-electric-pm210'),\r\n 'Schneider PM9C': createSchneiderConfig('schneider-electric-pm9c'),\r\n};\r\n\r\nexport const driProtocolsOpts = {\r\n 'Modbus TCP': 'modbus-tcp',\r\n 'Modbus RTU': 'modbus-rtu',\r\n 'Carrier ECOSPLIT': 'carrier-ecosplit',\r\n};\r\n\r\nexport const driParityOpts = {\r\n Desabilitado: 'desabilitado',\r\n Ímpar: 'impar',\r\n Par: 'par',\r\n};\r\n\r\nexport const driLayerOpts = {\r\n 'RS-485': 'rs-485',\r\n 'RS-232': 'rs-232',\r\n Ethernet: 'ethernet',\r\n};\r\n\r\nexport const driStopBitsOpts = {\r\n '1 Stop Bit': '1-stop-bit',\r\n '1.5 Stop Bits': '1.5-stop-bits',\r\n '2 Stop Bits': '2-stop-bits',\r\n};\r\n\r\nexport const modbusBaudRateOpts = ['4800', '9600', '19200', '115200', '921600'];\r\n\r\nexport const currentCapacityOpts = [\r\n { name: '50A', value: '50' },\r\n { name: '75A', value: '75' },\r\n { name: '100A', value: '100' },\r\n { name: '150A', value: '150' },\r\n { name: '200A', value: '200' },\r\n { name: '250A', value: '250' },\r\n { name: '300A', value: '300' },\r\n { name: '350A', value: '350' },\r\n { name: '400A', value: '400' },\r\n { name: '500A', value: '500' },\r\n { name: '600A', value: '600' },\r\n { name: '630A', value: '630' },\r\n { name: '700A', value: '700' },\r\n { name: '800A', value: '800' },\r\n { name: '1000A', value: '1000' },\r\n { name: '1200A', value: '1200' },\r\n { name: '1500A', value: '1500' },\r\n { name: '1600A', value: '1600' },\r\n { name: '2000A', value: '2000' },\r\n { name: '2500A', value: '2500' },\r\n];\r\n\r\nexport const metersWithCurrCapacityConfig = ['ET330'] as string[];\r\n\r\nexport const installationTypeOpts = {\r\n ET330: [\r\n { name: 'Rede Bifásica', value: '2' },\r\n { name: 'Rede Trifásica sem neutro', value: '1' },\r\n { name: 'Rede Trifásica com neutro', value: '0' },\r\n ],\r\n EM210: [\r\n { name: 'Rede Bifásica', value: '2' },\r\n { name: 'Rede Trifásica sem neutro', value: '1' },\r\n { name: 'Rede Trifásica com neutro', value: '0' },\r\n ],\r\n 'MULT-K 120': [\r\n { name: 'Rede Bifásica', value: '2' },\r\n { name: 'Rede Trifásica sem neutro', value: '1' },\r\n { name: 'Rede Trifásica com neutro', value: '0' },\r\n ],\r\n};\r\n\r\nexport const driApplicationCfgs = {\r\n ET330: {\r\n application: 'cg-et330',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'Nexus II': {\r\n application: 'abb-nexus-ii',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'ETE-30': createEteApplicationConfig('abb-ete-30'),\r\n 'ETE-50': createEteApplicationConfig('abb-ete-50'),\r\n 'Carrier ECOSPLIT': {\r\n application: 'carrier-ecosplit',\r\n protocol: 'carrier-ecosplit',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n EM210: {\r\n application: 'cg-em210',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'MULT-K': {\r\n application: 'kron-mult-k',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'MULT-K 05': {\r\n application: 'kron-mult-k-05',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'MULT-K 120': {\r\n application: 'kron-mult-k-120',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'iKRON 03': {\r\n application: 'kron-ikron-03',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'BAC-6000': {\r\n application: 'vav-bac-6000',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'BAC-6000 AMLN': {\r\n application: 'vav-bac-6000-amln',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'BAC-2000': {\r\n application: 'vav-bac-2000',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'Schneider PM2100': createSchneiderApplicationConfig('schneider-eletric-pm2100'),\r\n '30HXE': {\r\n application: 'chiller-carrier-30hxe',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n '30GXE': {\r\n application: 'chiller-carrier-30gxe',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n '30HXF': {\r\n application: 'chiller-carrier-30hxf',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n '30XAB': {\r\n application: 'chiller-carrier-30xab-hvar',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'Chiller-Default': {\r\n application: 'chiller-carrier-30xab-hvar',\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n },\r\n 'Schneider PM210': createSchneiderApplicationConfig('schneider-electric-pm210'),\r\n 'Schneider PM9C': createSchneiderApplicationConfig('schneider-electric-pm9c'),\r\n} as {\r\n [key: string]: {\r\n application: string,\r\n protocol: string,\r\n serialMode: string,\r\n modbusBaudRate: string,\r\n parity: string,\r\n stopBits: string,\r\n }\r\n};\r\n\r\nfunction createEteConfig(application: string) {\r\n return {\r\n application,\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '2-stop-bits',\r\n telemetryInterval: 900,\r\n driSlaveId: '174',\r\n };\r\n}\r\n\r\nfunction createEteApplicationConfig(application: string) {\r\n return {\r\n application,\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '2-stop-bits',\r\n };\r\n}\r\n\r\nfunction createSchneiderConfig(application: string) {\r\n return {\r\n application,\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: 9600,\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n telemetryInterval: 900,\r\n driSlaveId: '1',\r\n };\r\n}\r\n\r\nfunction createSchneiderApplicationConfig(application: string) {\r\n return {\r\n application,\r\n protocol: 'modbus-rtu',\r\n serialMode: 'rs-485',\r\n modbusBaudRate: '9600',\r\n parity: 'desabilitado',\r\n stopBits: '1-stop-bit',\r\n };\r\n}\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const Content = styled.div`\r\ndisplay: flex;\r\nalign-items: center;\r\npadding: 0;\r\nmargin: 0;\r\nheight: 35px;\r\nmax-width: 100%;\r\njustify-content: space-between;\r\nborder-bottom: 1px solid ${colors.Grey};\r\n@media (max-width: 768px) {\r\n height: 50px;\r\n overflow-x: scroll;\r\n}\r\n`;\r\n\r\nexport const StyledList = styled.ul`\r\ndisplay: flex;\r\nflex-direction: row;\r\nalign-items: center;\r\njustify-content: flex-start;\r\nlist-style: none;\r\npadding: 0;\r\nli:not(:first-child) {\r\n margin-left: 12px;\r\n}\r\n`;\r\n\r\nexport const StyledItem = styled.li`\r\ndisplay: flex;\r\nalign-items: center;\r\njustify-content: center;\r\nflex-direction: column;\r\nwhite-space: nowrap;\r\ntext-decoration: none;\r\n\r\n`;\r\n\r\nexport const StyledLink = styled(Link)<{ isActive: boolean }>(({ isActive }) => `\r\ncolor: black;\r\nfont-size: 14px;\r\nfont-weight: ${isActive ? 'bold' : 'none'};\r\ntext-decoration: none;\r\nbackground-color: ${isActive ? colors.White : colors.Grey050};\r\nwidth: 100%;\r\nheight: 100%;\r\npadding: 8px 50px;\r\nborder-style: solid;\r\nborder-color: ${colors.Grey100};\r\nborder-width: 1px 1px 0;\r\nborder-radius: 5px 5px 0px 0px;\r\nmargin-top: 11px;\r\n:hover{\r\n text-decoration: none;\r\n color: black;\r\n}\r\n`);\r\n","import { useRef } from 'react';\r\nimport {\r\n Content,\r\n StyledList,\r\n StyledItem,\r\n StyledLink,\r\n} from './styles';\r\n\r\nfunction handleScrollTo(currCont: { current }, ulRef) {\r\n try {\r\n if (currCont && currCont.current && ulRef && ulRef.current && window !== undefined && window.innerWidth < currCont.current.offsetLeft) {\r\n ulRef.current.scrollLeft = currCont.current.offsetLeft;\r\n }\r\n } catch (err) { console.log(err); }\r\n}\r\n\r\nexport function Tabs({ links }) {\r\n const ulRef = useRef(null);\r\n\r\n return (\r\n \r\n \r\n {links.map((link) => {\r\n if (link.isActive) handleScrollTo(link.ref, ulRef);\r\n return (\r\n \r\n {link.title}\r\n \r\n );\r\n })}\r\n \r\n \r\n );\r\n}\r\n","import { Flex } from 'reflexbox';\r\nimport '~/assets/css/ReactTags.css';\r\nimport { Input } from 'components';\r\nimport { Select as SelectNew } from 'components/NewSelect';\r\nimport {\r\n currentCapacityOpts,\r\n installationTypeOpts,\r\n} from '~/helpers/driConfigOptions';\r\nimport { colors } from '~/styles/colors';\r\nimport { DeleteOutlineIcon } from '~/icons';\r\nimport { toast } from 'react-toastify';\r\nimport { apiCall } from '~/providers';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport const EnergyMeterForm = (props: {\r\n state: any,\r\n render: () => void\r\n clearEnergyForm: (index: number) => void,\r\n index: number,\r\n unitInfo?: {\r\n UNIT_ID: number\r\n UNIT_NAME: string\r\n LAT: string\r\n LON: string\r\n TARIFA_KWH: number\r\n CITY_ID: string\r\n STATE_ID: string\r\n DISTRIBUTOR_ID: number\r\n ADDITIONAL_DISTRIBUTOR_INFO: string\r\n CONSUMER_UNIT: string\r\n LOGIN: string\r\n LOGIN_EXTRA: string\r\n PASSWORD: string\r\n STATUS: string\r\n },\r\n clientId: number,\r\n checkMultipleEnergyMeters: () => void\r\n}): JSX.Element => {\r\n const {\r\n state, index, clearEnergyForm, render, clientId, unitInfo, checkMultipleEnergyMeters,\r\n } = props;\r\n const { t } = useTranslation();\r\n const handleDeleteMeter = async () => {\r\n try {\r\n await apiCall('/energy/delete-energy-info', {\r\n SERIAL: state.energyMetersData[index].meterSerial,\r\n MANUFACTURER: state.energyMetersData[index].selectedManufacturer?.NAME,\r\n DRI_ID: state.energyMetersData[index].meterDriId,\r\n CLIENT_ID: clientId,\r\n UNIT_ID: unitInfo?.UNIT_ID,\r\n });\r\n state.energyMetersData.splice(index, 1);\r\n toast.success(t('sucessoDeletarMedidor'));\r\n if (state.energyMetersData.length === 0) {\r\n state.energyMetersData.push({\r\n selectedManufacturer: null,\r\n selectedMeterModel: null,\r\n filteredModelsList: [],\r\n meterDriId: '',\r\n meterSerial: '',\r\n selectedCurrentCapacity: null,\r\n selectedInstallationType: null,\r\n nameOfEstablishment: '',\r\n });\r\n }\r\n render();\r\n } catch (err) {\r\n console.error(err);\r\n toast.error(t('erroDeletarMedidor'));\r\n }\r\n };\r\n\r\n return (\r\n\r\n \r\n \r\n \r\n {t('medidorEnergia')}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n e?.NAME === 'Diel Energia')}\r\n value={state.energyMetersData[index].selectedManufacturer}\r\n label={t('fabricante')}\r\n placeholder={t('selecionarFabricante')}\r\n propLabel=\"NAME\"\r\n hideSelected\r\n onSelect={(value) => {\r\n clearEnergyForm(index);\r\n if (value !== state.energyMetersData[index].selectedManufacturer) {\r\n state.energyMetersData[index].selectedManufacturer = value;\r\n state.energyMetersData[index].filteredModelsList = state.modelsList.filter((model) => model.MANUFACTURER_ID === value.MANUFACTURER_ID);\r\n } else {\r\n state.energyMetersData[index].selectedManufacturer = null;\r\n }\r\n checkMultipleEnergyMeters();\r\n render();\r\n }}\r\n />\r\n { state.energyMetersData[index].selectedMeterModel = value; render(); }}\r\n disabled={!state.energyMetersData[index].selectedManufacturer}\r\n />\r\n {(!state.energyMetersData[index].selectedManufacturer || state.energyMetersData[index].selectedManufacturer.NAME === 'Diel Energia') && (\r\n { state.energyMetersData[index].meterDriId = e.target.value; render(); }}\r\n disabled={!state.energyMetersData[index].selectedManufacturer}\r\n />\r\n )}\r\n { state.energyMetersData[index].meterSerial = e.target.value; render(); }}\r\n disabled={!state.energyMetersData[index].selectedManufacturer}\r\n />\r\n\r\n {state.energyMetersData[index].selectedMeterModel?.NAME === 'ET330' && (\r\n <>\r\n { state.energyMetersData[index].selectedCurrentCapacity = value; render(); }}\r\n disabled={!state.energyMetersData[index].selectedManufacturer}\r\n />\r\n { state.energyMetersData[index].selectedInstallationType = value; render(); }}\r\n disabled={!state.energyMetersData[index].selectedManufacturer}\r\n />\r\n \r\n\r\n )}\r\n {(state.energyMetersData[index].selectedManufacturer && state.energyMetersData[index].selectedManufacturer.NAME === 'Diel Energia') && (\r\n\r\n { state.energyMetersData[index].nameOfEstablishment = e.target.value; render(); }}\r\n disabled={!state.energyMetersData[index].selectedManufacturer}\r\n />\r\n\r\n )}\r\n \r\n \r\n\r\n ); };\r\n","import { useStateVar } from '~/helpers/useStateVar';\r\nimport {\r\n CicleDetailContainer,\r\n TitleSelectRow,\r\n CustomInputCicle,\r\n CicleInfoContainer,\r\n CicleInfoRow,\r\n ItemRow,\r\n ItemSubTitle,\r\n ItemTitle,\r\n ItemDateRow,\r\n CicleDateInfoRow,\r\n} from './styles';\r\nimport { RateModelsType } from './ClientPanel';\r\nimport { useEffect } from 'react';\r\nimport { Select } from '~/components/NewSelect';\r\n\r\ntype RateCicle = {\r\n CICLE_ID: number\r\n MODEL_ID: number\r\n START_CICLE_DATE: string\r\n END_CICLE_DATE: string\r\n PIS: number\r\n VIGENCYCICLE: boolean,\r\n COFINS: number\r\n ICMS: number\r\n CONVENTIONALRATE_PARAMETERS?: {\r\n RATE: string\r\n CONVENTIONALRATE_ID: number,\r\n }\r\n WHITERATE_PARAMETERS?: {\r\n WHITERATE_ID: number,\r\n RATE_PONTA: string,\r\n RATE_OUTPONTA: string,\r\n START_PONTA: string,\r\n END_PONTA: string,\r\n FIRST_MID_RATE: string,\r\n START_FIRST_MID_RATE: string,\r\n END_FIRST_MID_RATE: string,\r\n LAST_MID_RATE?: string,\r\n START_LAST_MID_RATE: string,\r\n END_LAST_MID_RATE: string,\r\n },\r\n}\r\n\r\nexport const CicleDetail = ({ rateModels, formUnitState }: { rateModels?: RateModelsType[], formUnitState: any }): JSX.Element => {\r\n const [state, render] = useStateVar(() => {\r\n const state = {\r\n selectedModel: '' as string,\r\n modelOptions: [] as string[],\r\n energyRate: '' as string,\r\n vigencyCicle: {} as RateCicle,\r\n vigencyModel: {} as RateModelsType,\r\n };\r\n return state;\r\n });\r\n\r\n function setUpInfos() {\r\n if (rateModels) {\r\n rateModels.forEach((model) => state.modelOptions.push(model.modelName));\r\n }\r\n }\r\n\r\n function loadVigencyCicle(modelName: string) {\r\n state.selectedModel = modelName;\r\n const model = rateModels?.find((model) => model.modelName === modelName);\r\n formUnitState.selectedModelId = model?.modelId;\r\n const vigencyCicle = model?.rateCicles[0];\r\n if (vigencyCicle) state.vigencyCicle = vigencyCicle;\r\n if (model) state.vigencyModel = model;\r\n render();\r\n }\r\n\r\n useEffect(() => {\r\n setUpInfos();\r\n render();\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n \r\n Consumo\r\n \r\n \r\n
\r\n { loadVigencyCicle(value); }}\r\n closeOnSelect\r\n placeholder=\"Selecione um modelo\"\r\n />\r\n
\r\n
\r\n
\r\n { !state.selectedModel ? (<>Selecione um modelo de tarifa) : (\r\n \r\n \r\n \r\n \r\n Início do ciclo vigente\r\n \r\n \r\n {state.vigencyCicle.START_CICLE_DATE }\r\n \r\n \r\n
\r\n\r\n {state.vigencyCicle.END_CICLE_DATE && (\r\n <>\r\n \r\n \r\n Fim do ciclo vigente\r\n \r\n \r\n {state.vigencyCicle.END_CICLE_DATE}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n Grupo\r\n \r\n \r\n {state.vigencyModel.groupName}\r\n \r\n \r\n \r\n \r\n Subgrupo\r\n \r\n \r\n {state.vigencyModel.subGroupName}\r\n \r\n \r\n \r\n \r\n Tipo de tarifa\r\n \r\n \r\n {state.vigencyModel.rateModalityName}\r\n \r\n \r\n \r\n { state.vigencyModel.rateModalityName === 'Branca' ? (\r\n <>\r\n \r\n \r\n \r\n Ponta\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.RATE_PONTA}\r\n \r\n \r\n \r\n \r\n Horário inicio\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.START_PONTA}\r\n \r\n \r\n \r\n \r\n Horário fim\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.END_PONTA}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Faixa intermediária inicial\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.FIRST_MID_RATE}\r\n \r\n \r\n \r\n \r\n Horário inicio\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.START_FIRST_MID_RATE}\r\n \r\n \r\n \r\n \r\n Horário fim\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.END_FIRST_MID_RATE}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Faixa intermediária Final\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.LAST_MID_RATE}\r\n \r\n \r\n \r\n \r\n Horário inicio\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.START_LAST_MID_RATE}\r\n \r\n \r\n \r\n \r\n Horário fim\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.END_LAST_MID_RATE}\r\n \r\n \r\n \r\n \r\n \r\n \r\n Fora ponta\r\n \r\n \r\n {state.vigencyCicle.WHITERATE_PARAMETERS?.RATE_OUTPONTA}\r\n \r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n Tarifa\r\n \r\n \r\n {state.vigencyCicle.CONVENTIONALRATE_PARAMETERS?.RATE}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n PIS\r\n \r\n \r\n {`${state.vigencyCicle.PIS}%`}\r\n \r\n \r\n \r\n \r\n COFINS\r\n \r\n \r\n {`${state.vigencyCicle.COFINS}%`}\r\n \r\n \r\n \r\n \r\n ICMS\r\n \r\n \r\n {`${state.vigencyCicle.ICMS}%`}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\n\r\nexport const Container = styled.div`\r\n border: 1px dashed #BFBFBF;\r\n border-radius: 8px;\r\n`;\r\n\r\nexport const IframeBox = styled.iframe`\r\n width: 100%;\r\n height: 100%;\r\n min-height: 700px;\r\n min-width: 700px;\r\n`;\r\nexport const Image = styled.img`\r\n width: 80px;\r\n height: 80px;\r\n`;\r\n\r\nexport const FilesPreview = styled.div`\r\n display: flex;\r\n min-width: 800px;\r\n min-height: auto;\r\n img {\r\n max-width: 100%;\r\n height: 100%;\r\n background-size: cover;\r\n }\r\n`;\r\n\r\nexport const FilesContainer = styled.div`\r\n display: flex;\r\n justify-content: center;\r\n text-align: center;\r\n padding: 10px;\r\n`;\r\nexport const DragContainer = styled.div<{ isPadding }>(\r\n ({ isPadding }) => `\r\n background: #FFFFFF;\r\n border: 2px dashed #BFBFBF;\r\n border-radius: 8px;\r\n margin: 22px 22px 10px 22px;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n font-weight: 500;\r\n font-size: 13px;\r\n line-height: 16px;\r\n font-family: 'Inter';\r\n gap: 10px;\r\n padding: 50px;\r\n h6 {\r\n font-weight: 500;\r\n font-size: 13px;\r\n line-height: 16px;\r\n }\r\n h5 {\r\n font-size: 13px;\r\n line-height: 16px;\r\n color: #AEAEAE;\r\n }\r\n p {\r\n font-size: 13px;\r\n line-height: 16px;\r\n color: blue;\r\n text-decoration-line: underline;\r\n margin: 0;\r\n }\r\n div {\r\n display: flex;\r\n gap: 3px;\r\n }\r\n h3 {\r\n font-size: 13px;\r\n color: red;\r\n }\r\n h4 {\r\n font-size: 13px;\r\n color: green;\r\n }\r\n iframe {\r\n background-size: ${isPadding ? 'cover' : 'unset'};\r\n }\r\n`,\r\n);\r\n","import { Accept, useDropzone } from 'react-dropzone';\r\nimport {\r\n DragContainer,\r\n} from './styles';\r\nimport { t } from 'i18next';\r\nimport { BluePaper } from '~/icons';\r\n\r\ninterface IDropArea {\r\n maxFiles: number,\r\n fileDropped: (value: any) => void\r\n files: any[],\r\n title?: string,\r\n extensions: Accept\r\n}\r\n\r\nexport const DropzoneArea = ({\r\n maxFiles, fileDropped, files, title, extensions,\r\n}: IDropArea) => {\r\n const {\r\n acceptedFiles,\r\n fileRejections,\r\n isDragActive,\r\n getRootProps,\r\n getInputProps,\r\n } = useDropzone({\r\n maxFiles,\r\n accept: extensions,\r\n onDrop: (acceptedFiles) => {\r\n fileDropped(\r\n acceptedFiles.map((file) => Object.assign(file, {\r\n preview: URL.createObjectURL(file),\r\n })),\r\n );\r\n },\r\n });\r\n\r\n const filesNames = acceptedFiles.map((file: any) =>
{file.path}
);\r\n\r\n function titleReturn() {\r\n if (title) return title;\r\n return t('arrasteNoMaximo5Documentos', { maxFiles });\r\n }\r\n\r\n return (\r\n
\r\n \r\n \r\n {(acceptedFiles.length > 0) && (\r\n
\r\n

{t('arquivoAceito')}

\r\n
{filesNames}
\r\n
\r\n )}\r\n {(fileRejections.length > 0) && (

{t('arquivoRejeitado')}

)}\r\n {(!isDragActive && files.length === 0) && (\r\n <>\r\n \r\n
\r\n
\r\n { maxFiles > 1 ? titleReturn() : t('arrasteUmDocumentoOu') }\r\n
\r\n

{`${maxFiles === 1 ? t('facaUploadArquivo') : t('facaUploadArquivos')}`}

\r\n
\r\n
{t('arquivosJpgPngBpmPdf')}
\r\n \r\n )}\r\n
\r\n
\r\n );\r\n};\r\n","import { toast } from 'react-toastify';\r\nimport { apiCall, apiCallFormData } from '~/providers';\r\nimport { t } from 'i18next';\r\n\r\nexport type TSIMCARD = {\r\n ID: number\r\n ICCID: string\r\n CLIENT?: number\r\n UNIT?: number\r\n ACCESSPOINT?: string\r\n MODEM?: string\r\n MACACCESSPOINT?: string\r\n MACREPEATER?: string\r\n ASSOCIATION_DATE?: string|null\r\n NAME?: string|null\r\n OLDICCID?: string|null\r\n IMAGES?: { name: string, url: string }[]\r\n};\r\n\r\nexport async function handleSubmitSimcards(state, setState, render) {\r\n try {\r\n setState({ isLoading: true });\r\n render();\r\n const listToSet = state.listSimEdit.filter((sim) => {\r\n const item = state.listSimcards.find((item) => item.ICCID === sim.ICCID || item.ICCID === sim.OLDICCID);\r\n if (!item || item.ICCID !== sim.ICCID || item.ACCESSPOINT !== sim.ACCESSPOINT || sim.MODEM !== item.MODEM || item.MACACCESSPOINT !== sim.MACACCESSPOINT || item.MACREPEATER !== sim.MACREPEATER) {\r\n return true;\r\n }\r\n return false;\r\n });\r\n const deleteArray = state.deleteSims.filter((sim) => state.listSimcards.find((item) => item.ICCID === sim.ICCID));\r\n if (deleteArray.length) {\r\n await apiCall('/sims/delete-sim', { ICCIDS: deleteArray });\r\n }\r\n await Promise.all(listToSet.map((sim) => {\r\n apiCall('/sims/set-sim-info', sim);\r\n }));\r\n await Promise.all(state.listAddPhotos.map((item) =>\r\n {\r\n const simInfo = state.listSimcards.find((simcard) => simcard.ICCID === item.iccid);\r\n if (simInfo) {\r\n apiCallFormData('/upload-service/upload-image', { referenceId: simInfo.ID, referenceType: 'SIMCARDS' }, { file: item.file });\r\n }\r\n }));\r\n if (state.deleteListPhotos.length) {\r\n await Promise.all(state.deleteListPhotos.map((item) =>\r\n {\r\n const simInfo = state.listSimcards.find((simcard) => simcard.ICCID === item.iccid);\r\n if (simInfo) {\r\n apiCall('/upload-service/delete-image', { referenceId: simInfo.ID, referenceType: 'SIMCARDS', filename: item.filename });\r\n }\r\n }));\r\n }\r\n } catch (err) {\r\n toast.error(t('erroSalvar'));\r\n }\r\n setState({ isLoading: false });\r\n render();\r\n}\r\n\r\nexport async function deleteSims(state) {\r\n const deleteArray = state.deleteSims.filter((sim) => state.listSimcards.find((item) => item.ICCID === sim.ICCID || item.ICCID === sim.OLDICCID));\r\n if (deleteArray.length) {\r\n await apiCall('/sims/delete-sim', { ICCIDS: deleteArray });\r\n }\r\n}\r\n\r\nexport async function editUpdateSims(state) {\r\n const listToSet = state.listSimEdit.filter((sim) => {\r\n const item = state.listSimcards.find((item) => item.ICCID === sim.ICCID || item.ICCID === sim.OLDICCID);\r\n if (!item || item.ICCID !== sim.ICCID || item.ACCESSPOINT !== sim.ACCESSPOINT || sim.MODEM !== item.MODEM || item.MACACCESSPOINT !== sim.MACACCESSPOINT || item.MACREPEATER !== sim.MACREPEATER) {\r\n return true;\r\n }\r\n return false;\r\n });\r\n await Promise.all(listToSet.map((sim) => {\r\n apiCall('/sims/set-sim-info', sim);\r\n }));\r\n}\r\n\r\nexport async function addPhotosSims(state) {\r\n await Promise.all(state.listAddPhotos.map((item) =>\r\n {\r\n const simInfo = state.listSimcards.find((simcard) => simcard.ICCID === item.iccid);\r\n if (simInfo) {\r\n apiCallFormData('/upload-service/upload-image', { referenceId: simInfo.ID, referenceType: 'SIMCARDS' }, { file: item.file });\r\n }\r\n }));\r\n}\r\n\r\nexport async function deletePhotosSims(state) {\r\n if (state.deleteListPhotos.length) {\r\n await Promise.all(state.deleteListPhotos.map((item) =>\r\n {\r\n const simInfo = state.listSimcards.find((simcard) => simcard.ICCID === item.iccid);\r\n if (simInfo) {\r\n apiCall('/upload-service/delete-image', { referenceId: simInfo.ID, referenceType: 'SIMCARDS', filename: item.filename });\r\n }\r\n }));\r\n }\r\n}\r\n","import {\r\n useState,\r\n useMemo,\r\n useEffect,\r\n useRef,\r\n} from 'react';\r\nimport { t } from 'i18next';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex } from 'reflexbox';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { usePasswordToggle } from '~/hooks/usePasswordToggle';\r\nimport '~/assets/css/ReactTags.css';\r\nimport {\r\n Button, Input, ModalWindow, Select,\r\n} from 'components';\r\nimport { Input as InputNew } from 'components/NewInputs/Default';\r\nimport { Select as SelectNew } from 'components/NewSelect';\r\nimport { useForm } from 'react-hook-form';\r\nimport parseDecimalNumber from 'helpers/parseDecimalNumber';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport queryString from 'query-string';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { apiCall, apiCallFormData, ApiResps } from '../../providers';\r\nimport { SelectMultiple } from '~/components/NewSelectMultiple';\r\nimport { GetUsersListType } from '~/metadata/GetUsersList';\r\nimport {\r\n FormEditBaselines,\r\n} from '~/components/FormEditBaselines';\r\nimport { FormEditExtras } from './UnitExtras';\r\nimport { Headers2 } from '../Analysis/Header';\r\nimport { getCachedDevInfo } from '~/helpers/cachedStorage';\r\nimport { AxiosError } from 'axios';\r\nimport moment from 'moment';\r\n\r\nimport {\r\n CustomInput,\r\n BaseLinesBool,\r\n Label,\r\n Form,\r\n IconWrapper,\r\n Content,\r\n ContentEnergyMeter,\r\n ContentDate,\r\n StyledCalendarIcon,\r\n ModalCancel,\r\n ModalDisassociate,\r\n InfoSIMCARD,\r\n ContainerIconsSimcard,\r\n ContainerDescEditSim,\r\n CustomInputConstructedArea,\r\n} from './styles';\r\n\r\nimport {\r\n currentCapacityOpts,\r\n driMetersCfgs,\r\n installationTypeOpts,\r\n} from '~/helpers/driConfigOptions';\r\nimport { SingleDatePicker } from 'react-dates';\r\nimport { Tabs } from '~/components/Tabs';\r\nimport { EnergyMeterForm } from './EnergyMeterForm';\r\nimport { colors } from '~/styles/colors';\r\nimport i18n from '~/i18n';\r\nimport { CicleDetail } from './CicleDetail';\r\nimport {\r\n ArrowDownIcon,\r\n ArrowUpIcon,\r\n DeleteTrashIcon,\r\n EditPenPaperIcon,\r\n PaperBloomIcon,\r\n SimcardIcon,\r\n} from '~/icons';\r\nimport { RateModelsType } from './ClientPanel';\r\nimport { DropzoneArea } from '~/components/Dropzone';\r\nimport {\r\n TSIMCARD,\r\n addPhotosSims,\r\n deletePhotosSims,\r\n deleteSims,\r\n editUpdateSims,\r\n} from '~/helpers/simcards';\r\n\r\ntype Inputs = {\r\n login: string,\r\n loginExtra: string,\r\n password: string,\r\n consumerUnit: string,\r\n};\r\n\r\nconst formValidators = {\r\n login: {\r\n required: false,\r\n },\r\n loginExtra: {\r\n required: false,\r\n },\r\n consumerUnit: {\r\n required: false,\r\n },\r\n password: {\r\n required: false,\r\n },\r\n};\r\n\r\nconst comboHydrometerOptions: string[] = ['Elster S120 (1 L/pulso)', 'ZENNER ETKD-P-N (10 L/pulso)', 'ZENNER MTKD-AM-I (10 L/pulso)',\r\n 'Saga Unijato US-1.5 (1 L/pulso)', 'Saga Unijato US-3.0 (1 L/pulso)', 'Saga Unijato US-5.0 (1 L/pulso)'];\r\n\r\nconst comboLocalOptions: string[] = [\r\n 'Em série com o hidrômetro da unidade',\r\n \"Próximo à caixa d'agua\",\r\n 'Somente sensor no hidrômetro da unidade',\r\n 'Outro',\r\n];\r\n\r\ninterface IEnergyMeter {\r\n selectedManufacturer: null | { MANUFACTURER_ID: number, NAME: string };\r\n meterSerial: string;\r\n meterDriId: string;\r\n selectedMeterModel: null | { MODEL_ID: number, MANUFACTURER_ID: number, NAME: string };\r\n selectedCurrentCapacity: null | { name: string, value: string };\r\n selectedInstallationType: null | { name: string, value: string };\r\n nameOfEstablishment?: string;\r\n filteredModelsList: { MODEL_ID: number, MANUFACTURER_ID: number, NAME: string }[],\r\n}\r\n\r\ninterface IEnergyMeterToSend {\r\n SERIAL?: string\r\n MANUFACTURER: string\r\n MODEL: string\r\n DRI_ID?: string\r\n ESTABLISHMENT_NAME?: string\r\n DRI_CFG?: {\r\n driId: string\r\n application: string\r\n protocol: string\r\n modbusBaudRate?: string\r\n telemetryInterval?: string\r\n serialMode?: string\r\n parity?: string\r\n stopBits?: string\r\n capacityTc?: string\r\n worksheetName?: string\r\n }\r\n}\r\n\r\nexport const FormEditUnit = (props: {\r\n rateModels?: RateModelsType[],\r\n unitInfo?: {\r\n UNIT_ID: number\r\n UNIT_NAME: string\r\n UNIT_CODE_CELSIUS: string\r\n UNIT_CODE_API: string\r\n LAT: string\r\n LON: string\r\n TARIFA_KWH: number\r\n CITY_ID: string\r\n STATE_ID: string\r\n STATE_NAME: string\r\n COUNTRY_NAME: string\r\n DISTRIBUTOR_ID: number\r\n ADDITIONAL_DISTRIBUTOR_INFO: string\r\n CONSUMER_UNIT: string\r\n LOGIN: string\r\n LOGIN_EXTRA: string\r\n PASSWORD: string\r\n STATUS: string\r\n PRODUCTION: boolean\r\n TIMEZONE_AREA: string\r\n TIMEZONE_ID: number\r\n TIMEZONE_OFFSET: number\r\n AMOUNT_PEOPLE: string\r\n CONSTRUCTED_AREA?: string\r\n }\r\n clientId: number,\r\n onSuccess: (result: { item: {}, action: string }) => void\r\n onCancel: () => void\r\n states: { STATE_ID: string, COUNTRY_ID: number }[]\r\n cities: { CITY_ID: string, STATE_ID: string }[]\r\n timezones: { value: number, label: string }[]\r\n countries: { COUNTRY_NAME: string, COUNTRY_ID: number }[]\r\n distributors?: { value: number, name: string }[]\r\n accessPoints?: {\r\n name: string,\r\n cnpjs: string[],\r\n access_points: string[]\r\n }[]\r\n energyMeters?: ApiResps['/energy/get-energy-list']['list'],\r\n waterMeters?: ApiResps['/get-integrations-list']['list']\r\n}): JSX.Element => {\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const history = useHistory();\r\n const {\r\n unitInfo = undefined, clientId, onSuccess, onCancel, countries, states, cities, timezones, distributors,\r\n } = props;\r\n const [files, setFiles] = useState([]);\r\n const [state, render, setState] = useStateVar({\r\n selectedModelId: null as number | null,\r\n isBaselineOpen: false,\r\n submitting: false,\r\n editingExtras: false,\r\n supervisors: [] as { USER: string }[],\r\n distributors: props.distributors as { value: number, name: string, tag: string }[],\r\n selectedDistributor: '' as string,\r\n isLoading: false as boolean,\r\n isBaselineEdit: false as boolean,\r\n isBaselineValuesEdit: false as boolean,\r\n accessPoints: props.accessPoints as {name: string, access_points: string[]}[],\r\n additionalDistributorInfo: '' as string,\r\n accessPointsAvailable: [] as string[],\r\n manufacturersList: [] as { MANUFACTURER_ID: number, NAME: string, }[],\r\n modelsList: [] as { MODEL_ID: number, MANUFACTURER_ID: number, NAME: string }[],\r\n energyMeters: props.energyMeters,\r\n energyMetersData: [] as IEnergyMeter[],\r\n waterMeters: props.waterMeters,\r\n selectedSupplier: '' as string,\r\n hydrometerModel: '' as string,\r\n installationDate: '' as any,\r\n meterWaterId: '' as string,\r\n totalCapacity: '',\r\n totalOfReservoirs: '',\r\n installationLocal: '',\r\n otherInstallationLocal: '',\r\n focused: false,\r\n isAllEnergyMetersFromDiel: true,\r\n listSimcards: [] as TSIMCARD[],\r\n listSimEdit: [] as TSIMCARD[],\r\n modalAddSimcard: false,\r\n formSimcard: {\r\n iccid: '',\r\n pontoAcesso: '',\r\n modem: '',\r\n macPontoAcesso: '',\r\n macRepetidor: '',\r\n },\r\n itemDesc: {} as TSIMCARD,\r\n deleteSims: [] as { ICCID: string }[],\r\n isEdit: false,\r\n modalDesc: false,\r\n editDeleteSim: {} as TSIMCARD | null,\r\n listAddPhotos: [] as {\r\n iccid: string,\r\n file: Blob\r\n }[],\r\n deleteListPhotos: [] as {\r\n filename: string,\r\n iccid: string,\r\n }[],\r\n modalDeleteSim: false,\r\n });\r\n const [PasswordInputType, ToggleIcon] = usePasswordToggle();\r\n const [formData] = useState({\r\n UNIT_ID: (unitInfo && unitInfo.UNIT_ID) || null,\r\n UNIT_NAME: (unitInfo && unitInfo.UNIT_NAME) || '',\r\n UNIT_CODE_CELSIUS: unitInfo?.UNIT_CODE_CELSIUS ?? '',\r\n UNIT_CODE_API: unitInfo?.UNIT_CODE_API ?? '',\r\n LAT: (unitInfo && unitInfo.LAT) || '',\r\n LON: (unitInfo && unitInfo.LON) || '',\r\n TARIFA_KWH: (unitInfo && unitInfo.TARIFA_KWH && String(unitInfo.TARIFA_KWH)) || '',\r\n PRODUCTION: (unitInfo && unitInfo.PRODUCTION !== undefined ? Boolean(unitInfo.PRODUCTION) : null),\r\n city_item: (unitInfo && unitInfo.CITY_ID && cities.find((item) => item.CITY_ID === unitInfo.CITY_ID)) || null,\r\n state_item: (unitInfo && unitInfo.STATE_ID && states.find((item) => item.STATE_ID === unitInfo.STATE_NAME)) || null,\r\n country_item: (unitInfo && unitInfo.COUNTRY_NAME && countries.find((item) => item.COUNTRY_NAME === unitInfo.COUNTRY_NAME)) || null,\r\n distributor: (unitInfo && unitInfo.DISTRIBUTOR_ID && distributors && distributors.find((item) => item.value === unitInfo.DISTRIBUTOR_ID)) || null,\r\n accessPoints: [],\r\n login: (unitInfo && unitInfo.LOGIN) || '',\r\n login_extra: (unitInfo && unitInfo.LOGIN_EXTRA) || '',\r\n consumer_unit: (unitInfo && unitInfo.CONSUMER_UNIT) || '',\r\n password: (unitInfo && unitInfo.PASSWORD) || '',\r\n baselineValues: [] as {\r\n BASELINE_MONTH: number,\r\n BASELINE_KWH: number,\r\n BASELINE_PRICE: number,\r\n }[],\r\n baselineTemplate: {} as {value: number, name: string, tag: string},\r\n baselineId: null as null|number,\r\n additionalDistributorInfo: unitInfo && unitInfo.ADDITIONAL_DISTRIBUTOR_INFO || '',\r\n status: unitInfo && unitInfo.STATUS || null,\r\n timezone: unitInfo && { area: `${unitInfo.TIMEZONE_AREA} (${unitInfo.TIMEZONE_OFFSET})`, id: unitInfo.TIMEZONE_ID } || {} as { area: string, id: number },\r\n AMOUNT_PEOPLE: unitInfo?.AMOUNT_PEOPLE ?? '',\r\n CONSTRUCTED_AREA: unitInfo?.CONSTRUCTED_AREA ?? null,\r\n });\r\n\r\n const [usersList, setUsersList] = useState([]);\r\n const isEdit = !!formData.UNIT_ID;\r\n const isAccessDistributorEdit = !!formData.distributor;\r\n const comboLocalOptions: string[] = [\r\n t('emSerieHidrometroUnidade'),\r\n t('proximoCaixaDagua'),\r\n t('somenteSensorHidrometroUnidade'),\r\n t('outro'),\r\n ];\r\n async function getClientUsers(unitId?: number) {\r\n const response = await apiCall('/users/list-users', { CLIENT_ID: clientId, includeAdmins: false });\r\n setUsersList(response.list);\r\n if (unitId) {\r\n const { list: oldSupervisorsList } = await apiCall('/clients/get-unit-supervisors', { UNIT_ID: unitId });\r\n const oldSupervisorsEmail = oldSupervisorsList.map((supervisor) => supervisor.EMAIL);\r\n const oldSupervisors = response.list.filter((user) => oldSupervisorsEmail.includes(user.USER));\r\n setState({ supervisors: oldSupervisors });\r\n }\r\n }\r\n\r\n function handleAccessPoints() {\r\n const distributorTag = (state.distributors.find((item) => item.value === Number(state.selectedDistributor)))?.tag;\r\n setState({ accessPointsAvailable: state.accessPoints.find((item) => item.name === distributorTag)?.access_points });\r\n }\r\n\r\n const checkMultipleEnergyMeters = () => {\r\n let isAllDiel = true;\r\n state.energyMetersData.forEach((meter) => {\r\n if (meter.selectedManufacturer?.NAME !== 'Diel Energia') {\r\n isAllDiel = false;\r\n }\r\n });\r\n setState({ isAllEnergyMetersFromDiel: isAllDiel });\r\n };\r\n\r\n function handlePrice(month, price) {\r\n const baselineIndex = formData.baselineValues.findIndex((item) => item.BASELINE_MONTH === month);\r\n price = price != null ? price.replace('R$ ', '') : price;\r\n if (baselineIndex > -1) {\r\n formData.baselineValues[baselineIndex].BASELINE_PRICE = Number(price);\r\n }\r\n else {\r\n formData.baselineValues.push({ BASELINE_MONTH: month, BASELINE_PRICE: Number(price), BASELINE_KWH: 0 });\r\n }\r\n }\r\n\r\n function handleKwh(month, kwh) {\r\n const baselineIndex = formData.baselineValues.findIndex((item) => item.BASELINE_MONTH === month);\r\n kwh = kwh != null ? kwh.replace('kWh ', '') : kwh;\r\n if (baselineIndex > -1) {\r\n formData.baselineValues[baselineIndex].BASELINE_KWH = Number(kwh);\r\n }\r\n else {\r\n formData.baselineValues.push({ BASELINE_MONTH: month, BASELINE_PRICE: 0, BASELINE_KWH: Number(kwh) });\r\n }\r\n }\r\n\r\n function handleBaselineId(baselineId) {\r\n formData.baselineId = baselineId;\r\n }\r\n\r\n function handleBaselineTemplate(baselineTemplate: {value: number, name: string, tag: string}) {\r\n formData.baselineTemplate = { value: baselineTemplate.value, name: baselineTemplate.name, tag: baselineTemplate.tag };\r\n }\r\n\r\n function handleBaselineEdit(isBaselineEdit: boolean) {\r\n state.isBaselineEdit = isBaselineEdit;\r\n }\r\n\r\n function handleBaselineValuesEdit(isBaselineValuesEdit: boolean) {\r\n state.isBaselineValuesEdit = isBaselineValuesEdit;\r\n }\r\n\r\n function onFilterDistributorChange(distributor) {\r\n state.selectedDistributor = distributor;\r\n render();\r\n formData.additionalDistributorInfo = '';\r\n handleAccessPoints();\r\n }\r\n\r\n async function getEnergyData(unitId?: number) {\r\n const { manufacturersList, modelsList } = await apiCall('/energy/get-energy-combo-opts', {});\r\n setState({ manufacturersList, modelsList });\r\n\r\n if (!unitId) return;\r\n const energyMeters = state.energyMeters?.filter((meter) => meter.UNIT_ID === unitId);\r\n\r\n if (!energyMeters) return;\r\n for (const meter of energyMeters) {\r\n let capacityTc : string;\r\n let installationType: string;\r\n if (meter && meter.MANUFACTURER === 'Diel Energia') {\r\n const devInfo = await getCachedDevInfo(meter.ENERGY_DEVICE_ID, { forceFresh: true });\r\n capacityTc = devInfo?.dri?.varsCfg?.varsList.find((x) => x.name === 'Capacidade TC')?.address.value;\r\n installationType = devInfo?.dri?.varsCfg?.varsList.find((x) => x.name === 'Tipo Instalação')?.address.value;\r\n }\r\n if (meter) {\r\n const manufacturer = manufacturersList.find((x) => x.NAME === meter.MANUFACTURER);\r\n state.energyMetersData.push({\r\n selectedManufacturer: manufacturer || null,\r\n selectedMeterModel: modelsList.find((x) => x.NAME === meter.MODEL) || null,\r\n filteredModelsList: state.modelsList.filter((model) => model.MANUFACTURER_ID === manufacturer?.MANUFACTURER_ID),\r\n meterDriId: meter.MANUFACTURER === 'Diel Energia' ? meter.ENERGY_DEVICE_ID : '',\r\n meterSerial: meter.SERIAL,\r\n selectedCurrentCapacity: currentCapacityOpts?.find((opt) => opt.value === (Number(capacityTc) / 2).toString()) || null,\r\n selectedInstallationType: installationTypeOpts[meter.MODEL]?.find((opt) => opt.value === installationType) || null,\r\n nameOfEstablishment: meter.ESTABLISHMENT_NAME,\r\n });\r\n }\r\n }\r\n if (state.energyMetersData.length === 0) {\r\n state.energyMetersData.push({\r\n selectedManufacturer: null,\r\n selectedMeterModel: null,\r\n filteredModelsList: [],\r\n meterDriId: '',\r\n meterSerial: '',\r\n selectedCurrentCapacity: null,\r\n selectedInstallationType: null,\r\n nameOfEstablishment: '',\r\n });\r\n }\r\n checkMultipleEnergyMeters();\r\n }\r\n\r\n async function getWaterData(unitId?: number) {\r\n if (unitId) {\r\n const meter = state.waterMeters?.find((meter) => meter.UNIT_ID === unitId);\r\n const meterId = meter?.integrId;\r\n if (meterId) {\r\n const { info } = await apiCall('/get-integration-info', { supplier: (meterId.startsWith('DMA') ? 'diel-dma' : 'laager'), integrId: meterId });\r\n const hasDefaultOption = comboLocalOptions.includes(info.installationLocation || '');\r\n setState({\r\n selectedSupplier: info.supplier,\r\n hydrometerModel: info.hydrometerModel || '',\r\n installationDate: info.installationDate ? moment(info.installationDate?.substring(0, 10)) : null,\r\n meterWaterId: meterId,\r\n totalCapacity: String(info.totalCapacity) || '',\r\n totalOfReservoirs: String(info.quantityOfReservoirs) || '',\r\n });\r\n if (hasDefaultOption) {\r\n setState({\r\n installationLocal: info.installationLocation || '',\r\n otherInstallationLocal: '',\r\n });\r\n } else if (info.installationLocation && info.installationLocation !== '') {\r\n setState({\r\n installationLocal: 'Outro',\r\n otherInstallationLocal: info.installationLocation,\r\n });\r\n }\r\n }\r\n }\r\n }\r\n\r\n async function getListSimcards(unitId?: number) {\r\n try {\r\n if (unitId) {\r\n const list = await apiCall('/sims/get-unit-sims', { unitId });\r\n setState({ listSimcards: list, listSimEdit: list });\r\n }\r\n } catch (err) {\r\n toast.error('Nao foi possivel buscar a lista de SIMCARD da unidade');\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n getClientUsers(unitInfo?.UNIT_ID);\r\n updateAccessDistributorData();\r\n getEnergyData(unitInfo?.UNIT_ID);\r\n getWaterData(unitInfo?.UNIT_ID);\r\n getListSimcards(unitInfo?.UNIT_ID);\r\n }, []);\r\n\r\n const updateAccessDistributorData = () => {\r\n if (clientId == null) return;\r\n state.isLoading = true;\r\n setValue('login', formData.login);\r\n setValue('loginExtra', formData.login_extra);\r\n setValue('consumerUnit', formData.consumer_unit);\r\n state.isLoading = false;\r\n };\r\n\r\n function verifyAmountPeople(amountPeople) {\r\n const amountPeopleValue = Number(amountPeople);\r\n if (amountPeopleValue && (Number.isNaN(amountPeopleValue) || amountPeopleValue <= 0 || !Number.isInteger(amountPeopleValue))) {\r\n toast.error(t('numeroPessoasDeveSerUmNumeroInteiro'));\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n const handleFormSubmition = async ({\r\n consumerUnit, login, password, loginExtra,\r\n }: Inputs) => {\r\n let response = null as null|{\r\n UNIT_ID: number\r\n UNIT_NAME: string\r\n LAT: string\r\n LON: string\r\n CITY_ID: string\r\n CITY_NAME: string\r\n STATE_ID: string\r\n GA_METER?: number\r\n PRODUCTION?: boolean\r\n TARIFA_DIEL?: 0|1\r\n AMOUNT_PEOPLE?: number\r\n };\r\n\r\n let responseAccessDistributor = null as {\r\n UNIT_ID: number\r\n DISTRIBUTOR_ID: number\r\n CONSUMER_UNIT: string\r\n LOGIN: string\r\n LOGIN_EXTRA: string\r\n DISTRIBUTOR_LABEL: string\r\n STATUS: string\r\n }|null;\r\n\r\n let responseBaseline: {\r\n UNIT_ID: number,\r\n BASELINE_ID: number,\r\n BASELINE_TEMPLATE_ID: number,\r\n BASELINE_TEMPLATE_TAG: string,\r\n }|null;\r\n\r\n let action = null as null|string;\r\n try {\r\n state.submitting = true; render();\r\n\r\n const reqData = {\r\n UNIT_ID: formData.UNIT_ID || undefined,\r\n CLIENT_ID: clientId,\r\n UNIT_CODE_CELSIUS: formData.UNIT_CODE_CELSIUS || null,\r\n UNIT_CODE_API: formData.UNIT_CODE_API || null,\r\n UNIT_NAME: formData.UNIT_NAME,\r\n LAT: formData.LAT || null,\r\n LON: formData.LON || null,\r\n TARIFA_KWH: parseDecimalNumber(formData.TARIFA_KWH) || null,\r\n CITY_ID: formData.city_item && formData.city_item.CITY_ID,\r\n STATE_ID: formData.state_item && formData.state_item.STATE_ID,\r\n // eslint-disable-next-line no-unneeded-ternary\r\n PRODUCTION: formData.PRODUCTION,\r\n TIMEZONE_ID: formData.timezone.id,\r\n AMOUNT_PEOPLE: formData.AMOUNT_PEOPLE || null,\r\n CONSTRUCTED_AREA: formData.CONSTRUCTED_AREA ?? null,\r\n };\r\n if (verifyAmountPeople(reqData.AMOUNT_PEOPLE)) {\r\n return;\r\n }\r\n if (isEdit) {\r\n response = await apiCall('/clients/edit-unit', {\r\n ...reqData,\r\n ...(formData.AMOUNT_PEOPLE !== '' ? { AMOUNT_PEOPLE: formData.AMOUNT_PEOPLE } : { AMOUNT_PEOPLE: null }),\r\n ...(formData.CONSTRUCTED_AREA !== '' ? { CONSTRUCTED_AREA: formData.CONSTRUCTED_AREA } : { CONSTRUCTED_AREA: null }),\r\n UNIT_ID: formData.UNIT_ID!,\r\n RATE_MODEL_ID: state.selectedModelId,\r\n });\r\n action = 'edit';\r\n } else {\r\n response = await apiCall('/dac/add-client-unit', {\r\n ...reqData,\r\n ...(formData.CONSTRUCTED_AREA !== '' ? { CONSTRUCTED_AREA: formData.CONSTRUCTED_AREA } : { CONSTRUCTED_AREA: null }),\r\n ...(formData.AMOUNT_PEOPLE !== '' ? { AMOUNT_PEOPLE: formData.AMOUNT_PEOPLE } : { AMOUNT_PEOPLE: null }),\r\n });\r\n formData.UNIT_ID = response.UNIT_ID;\r\n action = 'new';\r\n }\r\n\r\n if (state.selectedDistributor === '' && formData.distributor) {\r\n state.selectedDistributor = formData.distributor.value.toString();\r\n }\r\n\r\n if (response && state.selectedDistributor && login) {\r\n const reqDataAccessDistributor = {\r\n UNIT_ID: response.UNIT_ID,\r\n CLIENT_ID: clientId,\r\n DISTRIBUTOR_ID: Number(state.selectedDistributor) || undefined,\r\n ADDITIONAL_DISTRIBUTOR_INFO: state.additionalDistributorInfo || undefined,\r\n CONSUMER_UNIT: consumerUnit || null,\r\n LOGIN: login || null,\r\n PASSWORD: password || null,\r\n LOGIN_EXTRA: loginExtra || null,\r\n STATUS: formData.status || null,\r\n };\r\n\r\n if (isAccessDistributorEdit) {\r\n responseAccessDistributor = await apiCall('/clients/edit-access-distributor', reqDataAccessDistributor);\r\n }\r\n else {\r\n responseAccessDistributor = await apiCall('/clients/add-access-distributor', reqDataAccessDistributor);\r\n }\r\n }\r\n\r\n if (response && formData.baselineTemplate) {\r\n const reqBaseline = {\r\n CLIENT_ID: clientId,\r\n UNIT_ID: response.UNIT_ID,\r\n BASELINE_ID: formData.baselineId || undefined,\r\n BASELINE_TEMPLATE_ID: formData.baselineTemplate.value,\r\n };\r\n\r\n if (reqBaseline.BASELINE_ID || reqBaseline.BASELINE_TEMPLATE_ID) {\r\n if (state.isBaselineEdit) {\r\n responseBaseline = await apiCall('/clients/edit-baseline', { ...reqBaseline, BASELINE_ID: formData.baselineId! });\r\n }\r\n else {\r\n responseBaseline = await apiCall('/clients/add-baseline', reqBaseline);\r\n }\r\n\r\n if (responseBaseline && responseBaseline.BASELINE_TEMPLATE_TAG === 'manual') {\r\n const reqBaselineValues = {\r\n CLIENT_ID: clientId,\r\n UNIT_ID: response.UNIT_ID,\r\n BASELINE_ID: responseBaseline.BASELINE_ID,\r\n baselineValues: formData.baselineValues,\r\n };\r\n\r\n await apiCall('/clients/set-baseline-values', reqBaselineValues);\r\n }\r\n }\r\n }\r\n\r\n if (unitInfo) {\r\n if (state.supervisors.length > 0) {\r\n await Promise.all(state.supervisors.map((user: { USER: string }) => apiCall('/clients/set-unit-supervisors', {\r\n USER_ID: user.USER,\r\n UNIT_ID: unitInfo.UNIT_ID,\r\n })));\r\n } else {\r\n await apiCall('/clients/clear-unit-supervisors', { UNIT_ID: unitInfo.UNIT_ID });\r\n }\r\n }\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n console.log(err);\r\n if (error.response?.status !== 500) {\r\n toast.error(`${error.response?.data}`);\r\n } else {\r\n toast.error(t('erroDadosGerais'));\r\n }\r\n }\r\n state.submitting = false; render();\r\n if (response && (responseAccessDistributor || state.selectedDistributor === '' || isAccessDistributorEdit) && action) onSuccess({ item: { response, responseAccessDistributor }, action });\r\n };\r\n\r\n async function handleSubmitEnergyMeterInfo() {\r\n try {\r\n const meters: IEnergyMeterToSend[] = [];\r\n for (const energyMeter of state.energyMetersData) {\r\n if (energyMeter.selectedManufacturer && energyMeter.selectedMeterModel) {\r\n const meterReqData: IEnergyMeterToSend = {\r\n MANUFACTURER: energyMeter.selectedManufacturer.NAME,\r\n MODEL: energyMeter.selectedMeterModel.NAME,\r\n DRI_ID: energyMeter.meterDriId,\r\n SERIAL: energyMeter.meterSerial,\r\n CLIENT_ID: clientId,\r\n UNIT_ID: formData.UNIT_ID,\r\n ESTABLISHMENT_NAME: energyMeter.nameOfEstablishment,\r\n };\r\n meters.push(meterReqData);\r\n }\r\n }\r\n await apiCall('/energy/set-energy-list-info', { meters, CLIENT_ID: clientId, UNIT_ID: formData.UNIT_ID });\r\n toast.success('Sucesso na associação dos medidores de energia');\r\n\r\n for (const energyMeter of state.energyMetersData) {\r\n if (energyMeter.selectedManufacturer && energyMeter.selectedMeterModel) {\r\n if (energyMeter.meterDriId) {\r\n const driCfg = driMetersCfgs[energyMeter.selectedMeterModel.NAME];\r\n driCfg.driId = energyMeter.meterDriId;\r\n driCfg.capacityTc = energyMeter.selectedCurrentCapacity?.value;\r\n driCfg.installationType = energyMeter.selectedInstallationType?.value;\r\n apiCallFormData('/upload-dri-varscfg', driCfg, { file: null });\r\n }\r\n }\r\n }\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n console.log(err);\r\n if (error.response?.status !== 500) {\r\n toast.error(`${error.response?.data}`);\r\n } else {\r\n toast.error(t('erroAssociacaoMedidorEnergia'));\r\n }\r\n }\r\n }\r\n\r\n async function handleDisassociation() {\r\n try {\r\n if (state.selectedSupplier && state.meterWaterId) {\r\n if (state.selectedSupplier === 'Diel') {\r\n const dmaData: any = { DMA_ID: state.meterWaterId };\r\n dmaData.UNIT_ID = null;\r\n await apiCall('/dma/set-dma-info', dmaData);\r\n\r\n toast.success(t('sucessoDesassociacaoDma'));\r\n } else if (state.selectedSupplier === 'Laager') {\r\n const laagerData: any = { integrId: state.meterWaterId };\r\n laagerData.UNIT_ID = null;\r\n\r\n await apiCall('/laager/set-meter-info', {\r\n unitId: laagerData.UNIT_ID,\r\n meterId: laagerData.integrId,\r\n });\r\n\r\n toast.success(t('sucessoDesassociacaoLaager'));\r\n }\r\n }\r\n } catch (err) { console.log(err);\r\n toast.error(t('erroDesassociacaoMedidorAgua'));\r\n }\r\n }\r\n async function handleSubmitWaterMeterInfo() {\r\n try {\r\n if (state.selectedSupplier && state.meterWaterId) {\r\n if (state.selectedSupplier === 'Diel') {\r\n const dmaData: any = { DMA_ID: state.meterWaterId };\r\n\r\n dmaData.UNIT_ID = unitInfo && unitInfo.UNIT_ID ? unitInfo.UNIT_ID : (formData.UNIT_ID ? formData.UNIT_ID : null);\r\n dmaData.UNIT_NAME = unitInfo && unitInfo.UNIT_NAME ? unitInfo.UNIT_NAME : null;\r\n dmaData.CLIENT_ID = clientId || null;\r\n dmaData.HYDROMETER_MODEL = state.hydrometerModel ? state.hydrometerModel : null;\r\n const defaultInstallationLocation = state.installationLocal !== 'Outro' && state.installationLocal !== '' ? state.installationLocal : null;\r\n dmaData.INSTALLATION_LOCATION = state.installationLocal === 'Outro' && state.otherInstallationLocal !== '' ? state.otherInstallationLocal : defaultInstallationLocation;\r\n dmaData.INSTALLATION_DATE = state.installationDate !== '' && state.installationDate !== null ? moment(state.installationDate).format('YYYY-MM-DD') : moment().format('YYYY-MM-DD');\r\n dmaData.TOTAL_CAPACITY = state.totalCapacity ? Number(state.totalCapacity) : null;\r\n dmaData.QUANTITY_OF_RESERVOIRS = state.totalOfReservoirs ? Number(state.totalOfReservoirs) : null;\r\n dmaData.CHANGED_BY_UNIT = true;\r\n\r\n await apiCall('/dma/set-dma-info', dmaData);\r\n\r\n toast.success(t('sucessoAdicaoDma'));\r\n } else if (state.selectedSupplier === 'Laager') {\r\n const laagerData: any = { integrId: state.meterWaterId };\r\n\r\n laagerData.UNIT_ID = unitInfo && unitInfo.UNIT_ID ? unitInfo.UNIT_ID : (formData.UNIT_ID ? formData.UNIT_ID : null);\r\n laagerData.hydrometerModel = state.hydrometerModel ? state.hydrometerModel : null;\r\n const defaultInstallationLocation = state.installationLocal !== 'Outro' && state.installationLocal !== '' ? state.installationLocal : null;\r\n laagerData.installationLocation = state.installationLocal === 'Outro' && state.otherInstallationLocal !== '' ? state.otherInstallationLocal : defaultInstallationLocation;\r\n laagerData.installationDate = state.installationDate !== '' && state.installationDate !== null ? moment(state.installationDate).format('YYYY-MM-DD') : moment().format('YYYY-MM-DD');\r\n laagerData.totalCapacity = state.totalCapacity ? Number(state.totalCapacity) : null;\r\n laagerData.quantityOfReservoirs = state.totalOfReservoirs ? Number(state.totalOfReservoirs) : null;\r\n\r\n await apiCall('/laager/set-meter-info', {\r\n unitId: laagerData.UNIT_ID,\r\n meterId: laagerData.integrId,\r\n installationLocation: laagerData.installationLocation,\r\n installationDate: laagerData.installationDate,\r\n totalCapacity: laagerData.totalCapacity,\r\n quantityOfReservoirs: laagerData.quantityOfReservoirs,\r\n hydrometerModel: laagerData.hydrometerModel,\r\n changedByUnit: true,\r\n\r\n });\r\n\r\n toast.success(t('sucessoAssociacaoMedidorAgua'));\r\n }\r\n }\r\n } catch (err) { console.log(err);\r\n toast.error(t('erroAdicaoDmaOuAssociacaoMedidorAgua'));\r\n }\r\n }\r\n\r\n async function SubmitSimcards() {\r\n await Promise.all([\r\n deleteSims(state),\r\n editUpdateSims(state),\r\n addPhotosSims(state),\r\n deletePhotosSims(state),\r\n ]).then(() => {\r\n toast.success(t('sucessoSalvar'));\r\n }).catch(() => {\r\n toast.error(t('erroSalvar'));\r\n });\r\n }\r\n\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n\r\n const tabs = [\r\n {\r\n title: t('dadosGerais'),\r\n link: `${linkBase}`,\r\n isActive: !queryPars.aba,\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('energia'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'energia', categoria: 'fatura' })}`,\r\n isActive: (queryPars.aba === 'energia'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('agua'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'water' })}`,\r\n isActive: (queryPars.aba === 'water'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n // {\r\n // title: 'SIMCARD',\r\n // link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'simcard' })}`,\r\n // isActive: (queryPars.aba === 'simcard'),\r\n // visible: true,\r\n // ref: useRef(null),\r\n // },\r\n ];\r\n\r\n const energyTabs = [\r\n {\r\n title: 'Faturas',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, categoria: 'fatura' })}`,\r\n isActive: (queryPars.categoria === 'fatura'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'Medidores',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, categoria: 'medidor-de-energia' })}`,\r\n isActive: (queryPars.categoria === 'medidor-de-energia'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n const {\r\n register, setValue, handleSubmit, watch, formState: { errors },\r\n } = useForm({\r\n mode: 'all',\r\n });\r\n\r\n function onCountrySelected(item) {\r\n formData.country_item = item;\r\n const selectedCountry = formData.country_item && formData.country_item.COUNTRY_ID;\r\n if (formData.state_item && formData.state_item.COUNTRY_ID !== selectedCountry) {\r\n formData.state_item = null;\r\n formData.city_item = null;\r\n }\r\n render();\r\n }\r\n\r\n function onStatusUnitSelected(item) {\r\n if (item === t('emOperacao')) {\r\n formData.PRODUCTION = true;\r\n } else if (item === t('emInstalacao')) {\r\n formData.PRODUCTION = false;\r\n }\r\n render();\r\n }\r\n\r\n function onStateSelected(item) {\r\n formData.state_item = item;\r\n const selectedState = formData.state_item && formData.state_item.STATE_ID;\r\n if (formData.city_item && formData.city_item.STATE_ID !== selectedState) {\r\n formData.city_item = null;\r\n }\r\n render();\r\n }\r\n\r\n const filtStates = useMemo(() => {\r\n if (!formData.country_item) return states;\r\n return states.filter((state) => state.COUNTRY_ID === formData.country_item!.COUNTRY_ID);\r\n }, [formData.country_item, states]);\r\n\r\n const filtCities = useMemo(() => {\r\n if (!formData.state_item) return cities;\r\n return cities.filter((city) => city.STATE_ID === formData.state_item!.STATE_ID);\r\n }, [formData.state_item, cities]);\r\n\r\n const unitStatus = [\r\n t('emInstalacao'),\r\n t('emOperacao'),\r\n ];\r\n\r\n function clearEnergyForm(index: number) {\r\n state.energyMetersData[index].selectedMeterModel = null;\r\n state.energyMetersData[index].meterDriId = '';\r\n state.energyMetersData[index].meterSerial = '';\r\n state.energyMetersData[index].selectedCurrentCapacity = null;\r\n state.energyMetersData[index].filteredModelsList = [];\r\n render();\r\n }\r\n\r\n function onDateChange(date, dateEnd) {\r\n state.installationDate = date;\r\n render();\r\n }\r\n\r\n function setUnitStatus(status: boolean|null) {\r\n if (status === true) {\r\n return t('emOperacao');\r\n } if (status === false) {\r\n return t('emInstalacao');\r\n }\r\n return null;\r\n }\r\n\r\n return (\r\n state.editingExtras\r\n ? (\r\n setState({ editingExtras: false })}\r\n />\r\n )\r\n : (\r\n
\r\n
\r\n
\r\n \r\n {t('adicionarUnidade')}\r\n \r\n
\r\n \r\n
\r\n {tabs[0].isActive\r\n && (\r\n
\r\n
\r\n \r\n {t('localizacao')}\r\n { formData.UNIT_NAME = event.target.value; render(); }}\r\n data-test-id=\"nomeUnidade\"\r\n />\r\n { formData.UNIT_CODE_CELSIUS = event.target.value; render(); }}\r\n data-test-id=\"codigoDaUnidadeCelsius\"\r\n />\r\n \r\n { formData.UNIT_CODE_API = event.target.value; render(); }}\r\n data-test-id=\"codigoDaUnidadeApi\"\r\n />\r\n \r\n { formData.city_item = item; render(); }}\r\n disabled={!formData.state_item}\r\n data-test-id=\"selectCidade\"\r\n />\r\n {\r\n setState({ supervisors: newValues });\r\n }\r\n }\r\n data-test-id=\"selectResponsaveis\"\r\n />\r\n { formData.timezone = { area: e.label, id: e.value }; render(); }}\r\n data-test-id=\"selectFuso\"\r\n />\r\n { formData.LAT = event.target.value; render(); }}\r\n data-test-id=\"latitude\"\r\n />\r\n { formData.LON = event.target.value; render(); }}\r\n data-test-id=\"longitude\"\r\n />\r\n \r\n { formData.AMOUNT_PEOPLE = event.target.value; render(); }}\r\n />\r\n \r\n {\r\n formData.CONSTRUCTED_AREA = event.target.value;\r\n render();\r\n }}\r\n suffix=\"m²\"\r\n />\r\n \r\n \r\n {t('outrosDados')}\r\n \r\n { formData.TARIFA_KWH = event.target.value; render(); }}\r\n data-test-id=\"tarifaMedia\"\r\n />\r\n \r\n\r\n
\r\n\r\n
\r\n )}\r\n {tabs[1].isActive\r\n && (\r\n
\r\n\r\n \r\n
\r\n\r\n
\r\n {\r\n energyTabs[1].isActive && (\r\n \r\n {state.energyMetersData.map((meter, index) => ) }\r\n {(state.energyMetersData.length < 4 && state.isAllEnergyMetersFromDiel) && (\r\n {\r\n if (state.energyMetersData.length < 4) {\r\n state.energyMetersData.push({\r\n selectedManufacturer: null,\r\n selectedMeterModel: null,\r\n filteredModelsList: [],\r\n meterDriId: '',\r\n meterSerial: '',\r\n selectedCurrentCapacity: null,\r\n selectedInstallationType: null,\r\n nameOfEstablishment: '',\r\n });\r\n render();\r\n }\r\n }}\r\n >\r\n Cadastrar novo medidor\r\n\r\n

\r\n )}\r\n
\r\n )\r\n }\r\n {energyTabs[0].isActive && (\r\n
\r\n \r\n \r\n \r\n Distribuidora\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n setState({ additionalDistributorInfo: item })}\r\n />\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n {ToggleIcon}\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n {\r\n props.rateModels ? (\r\n \r\n \r\n \r\n )\r\n : (\r\n

\r\n Nenhum modelo de tarifa criado\r\n

\r\n )\r\n }\r\n \r\n {\r\n state.isBaselineOpen = !state.isBaselineOpen;\r\n render();\r\n }}\r\n >\r\n { state.isBaselineOpen ? () : () }\r\n
\r\n Baseline\r\n \r\n {\r\n state.isBaselineOpen && (\r\n \r\n \r\n \r\n )\r\n }\r\n
\r\n )}\r\n
\r\n )}\r\n {tabs[2].isActive\r\n && (\r\n
\r\n
\r\n\r\n \r\n {t('medidorDeAgua')}\r\n \r\n\r\n \r\n\r\n {\r\n setState({ hydrometerModel: item });\r\n }}\r\n label={t('hidrometro')}\r\n placeholder={t('selecioneHidrometro')}\r\n hideSelected\r\n style={{ margin: '10px 0px', width: '260px' }}\r\n />\r\n\r\n setState({ totalCapacity: e.target.value })}\r\n />\r\n\r\n setState({ totalOfReservoirs: e.target.value })}\r\n />\r\n \r\n\r\n \r\n {t('dispositivo')}\r\n \r\n\r\n \r\n {\r\n setState({ selectedSupplier: item });\r\n }}\r\n notNull\r\n style={{ margin: '10px 0px', width: '260px' }}\r\n />\r\n {\r\n setState({ installationLocal: item });\r\n }}\r\n notNull\r\n style={{ margin: '10px 0px', width: '260px' }}\r\n disabled={!state.selectedSupplier}\r\n />\r\n setState({ otherInstallationLocal: e.target.value })}\r\n disabled={state.installationLocal !== t('outro')}\r\n />\r\n setState({ meterWaterId: e.target.value })}\r\n disabled={!state.selectedSupplier}\r\n />\r\n \r\n \r\n { state.focused = focused; render(); }}\r\n id=\"datepicker\"\r\n disabled={!state.selectedSupplier}\r\n numberOfMonths={1}\r\n isOutsideRange={() => false}\r\n\r\n />\r\n \r\n \r\n \r\n\r\n
\r\n {t('desassociarDispositivo')}\r\n\r\n
\r\n )}\r\n {/* {tabs[3].isActive\r\n && (\r\n <>\r\n {state.listSimEdit.length > 0 ? (\r\n \r\n ) : (\r\n \r\n )}\r\n {\r\n state.modalAddSimcard && (\r\n { setState({ modalAddSimcard: false, isEdit: false, editSim: null }); setFiles([]); }}\r\n edit={state.isEdit}\r\n editSim={state.editDeleteSim}\r\n state={state}\r\n setState={setState}\r\n unitId={unitInfo?.UNIT_ID}\r\n clientId={clientId}\r\n files={files}\r\n setFiles={setFiles}\r\n />\r\n )\r\n }\r\n {\r\n state.modalDesc && (\r\n setState({ modalDesc: false })} />\r\n )\r\n }\r\n {\r\n state.modalDeleteSim && (\r\n { setState({ modalDeleteSim: false, editDeleteSim: null }); setFiles([]); }} sim={state.editDeleteSim} state={state} setState={setState} />\r\n )\r\n }\r\n \r\n\r\n )} */}\r\n
\r\n {t('botaoCancelar')}\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n {\r\n if (queryPars.aba === 'energia') {\r\n handleSubmitEnergyMeterInfo();\r\n } else if (queryPars.aba === 'water') {\r\n handleSubmitWaterMeterInfo();\r\n } else if (queryPars.aba === 'simcard') {\r\n SubmitSimcards();\r\n } }}\r\n data-test-id=\"botaoSalvarUnidade\"\r\n >\r\n {t('salvarDados')}\r\n \r\n {/* @ts-ignore */}\r\n
\r\n
\r\n \r\n
\r\n )\r\n );\r\n};\r\n\r\nconst Infos = ({ label, value }) => (\r\n \r\n \r\n

{value || '-'}

\r\n
\r\n);\r\n\r\nexport function SimcardContainerList({\r\n state, setState, total, botao,\r\n}) {\r\n const newArraySort = state.listSimEdit.sort((a, b) => {\r\n if (a.ICCID > b.ICCID) {\r\n return 1;\r\n }\r\n if (a.ICCID < b.ICCID) {\r\n return -1;\r\n }\r\n // a must be equal to b\r\n return 0;\r\n });\r\n return (\r\n
\r\n {\r\n total && (\r\n
\r\n

Total Adicionado:

\r\n {state.listSimEdit.length > 1 ? ` ${state.listSimEdit.length} SIMCARDS` : ` ${state.listSimEdit.length} SIMCARD`}\r\n
\r\n )\r\n }\r\n \r\n
\r\n {\r\n newArraySort.map((sim, index) => (\r\n \r\n \r\n \r\n \r\n \r\n {sim.ICCID}\r\n \r\n {`SIMCARD ${index + 1}`}\r\n
\r\n
\r\n \r\n \r\n
setState({ modalDesc: true, itemDesc: sim })}>\r\n \r\n
\r\n
setState({ modalAddSimcard: true, isEdit: true, editDeleteSim: sim })}>\r\n \r\n
\r\n
\r\n
setState({ modalDeleteSim: true, editDeleteSim: sim })}>\r\n \r\n
\r\n
\r\n
\r\n ))\r\n }\r\n
\r\n {\r\n botao && (\r\n \r\n )\r\n }\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function NoSimcardAdd({ setState, botao, where }) {\r\n return (\r\n \r\n \r\n \r\n {t('unidadesemSimcards')}\r\n {t('Paraadicionarcliqueno')}\r\n \r\n {t('botão')}\r\n {' '}\r\n {t(where)}\r\n \r\n
\r\n {\r\n botao && (\r\n \r\n )\r\n }\r\n
\r\n );\r\n}\r\n\r\nexport function ModalDeleteSimcard({\r\n closeModal, sim, state, setState,\r\n}) {\r\n function removeFromArray() {\r\n const newArray = state.listSimEdit.filter((simCard) => simCard.ICCID !== sim.ICCID);\r\n setState({\r\n listSimEdit: [...newArray],\r\n deleteSims: [...state.deleteSims, { ICCID: sim.ICCID, OLDICCID: sim.OLDICCID }],\r\n });\r\n closeModal();\r\n }\r\n\r\n return (\r\n closeModal()} style={{ width: 355, padding: '20px 30px' }}>\r\n
\r\n \r\n Deletar SIMCARD\r\n
\r\n

\r\n Tem certeza que deseja deletar o SIMCARD\r\n
\r\n {sim.ICCID}\r\n ?\r\n

\r\n \r\n removeFromArray()}\r\n >\r\n {t('deletar')}\r\n \r\n closeModal()}>{t('botaoCancelar')}\r\n
\r\n \r\n );\r\n}\r\n\r\nexport function ModalDescSimcard({ sim, closeModal }) {\r\n return (\r\n closeModal()} style={{ width: 355, padding: '10px 30px' }}>\r\n

Visualizar SIMCARD

\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n

Fotos do SIMCARD

\r\n
\r\n {\r\n sim.IMAGES.map((item) => (\r\n \r\n downloadFile(item.preview || item.url, item.name || item.filename, !!item.url)}\r\n />\r\n
\r\n ))\r\n }\r\n
\r\n\r\n closeModal()}>{t('fechar')}\r\n \r\n );\r\n}\r\n\r\nfunction downloadFile(url, fileName, baix) {\r\n if (baix) {\r\n window.open(url, '_blank');\r\n } else {\r\n fetch(url, { method: 'get', mode: 'no-cors', referrerPolicy: 'no-referrer' })\r\n .then((res) => res.blob())\r\n .then((res) => {\r\n const aElement = document.createElement('a');\r\n aElement.setAttribute('download', fileName);\r\n const href = URL.createObjectURL(res);\r\n aElement.href = href;\r\n aElement.setAttribute('target', '_blank');\r\n aElement.click();\r\n URL.revokeObjectURL(href);\r\n });\r\n }\r\n}\r\n\r\nexport function ModalAddSimcard({\r\n closeModal, edit, editSim, state, setState, unitId, clientId, files, setFiles,\r\n}) {\r\n const [stateAdd, _render, setStateAdd] = useStateVar({\r\n iccid: '',\r\n pontoAcesso: '',\r\n modem: '',\r\n macPontoAcesso: '',\r\n macRepetidor: '',\r\n dropzoneArea: false,\r\n files: [] as any[],\r\n oldFiles: [] as any[],\r\n filesEditDelete: [] as any[],\r\n });\r\n\r\n useEffect(() => {\r\n if (edit) {\r\n setStateAdd({\r\n iccid: editSim?.ICCID,\r\n pontoAcesso: editSim?.ACCESSPOINT,\r\n modem: editSim?.MODEM,\r\n macPontoAcesso: editSim?.MACACCESSPOINT,\r\n macRepetidor: editSim?.MACREPEATER,\r\n dropzoneArea: false,\r\n oldFiles: editSim?.IMAGES,\r\n });\r\n }\r\n }, []);\r\n\r\n function addInArraySimcard() {\r\n if (!edit) {\r\n if (state.listSimEdit.find((sim) => stateAdd.iccid === sim.ICCID) || !stateAdd.iccid) {\r\n toast.error('ICCID já existente na Unidade ou Vazio');\r\n return;\r\n }\r\n setState({\r\n listSimEdit: [...state.listSimEdit, {\r\n ICCID: stateAdd.iccid,\r\n OLDICCID: stateAdd.iccid,\r\n CLIENT: clientId,\r\n UNIT: unitId,\r\n ACCESSPOINT: stateAdd.pontoAcesso,\r\n MODEM: stateAdd.modem,\r\n MACACCESSPOINT: stateAdd.macPontoAcesso,\r\n MACREPEATER: stateAdd.macRepetidor,\r\n IMAGES: [...stateAdd.files, ...stateAdd.oldFiles],\r\n }],\r\n });\r\n } else {\r\n const newArray = state.listSimEdit.filter((sim) => sim.ICCID !== editSim.ICCID);\r\n setState({\r\n listSimEdit: [...newArray, {\r\n ICCID: stateAdd.iccid,\r\n OLDICCID: editSim?.ICCID,\r\n CLIENT: clientId,\r\n UNIT: unitId,\r\n ACCESSPOINT: stateAdd.pontoAcesso,\r\n MODEM: stateAdd.modem,\r\n MACACCESSPOINT: stateAdd.macPontoAcesso,\r\n MACREPEATER: stateAdd.macRepetidor,\r\n IMAGES: [...stateAdd.files, ...stateAdd.oldFiles],\r\n }],\r\n });\r\n }\r\n for (const file of stateAdd.files) {\r\n setState({\r\n listAddPhotos: [...state.listAddPhotos, { iccid: stateAdd.iccid, file }],\r\n });\r\n }\r\n setState({\r\n deleteListPhotos: [...state.deleteListPhotos, ...stateAdd.filesEditDelete],\r\n });\r\n closeModal();\r\n setFiles([]);\r\n }\r\n\r\n function deleteImageArray(image) {\r\n let array;\r\n let oldArray;\r\n if (image.url && image.name) {\r\n setStateAdd({\r\n filesEditDelete: [...stateAdd.filesEditDelete, {\r\n filename: image.name,\r\n iccid: stateAdd.iccid,\r\n }],\r\n });\r\n array = stateAdd.files.filter((item) => item.url !== image.url);\r\n oldArray = stateAdd.oldFiles.filter((item) => item.url !== image.url);\r\n } else {\r\n array = stateAdd.files.filter((item) => item.preview !== image.preview);\r\n oldArray = stateAdd.oldFiles.filter((item) => item.preview !== image.preview);\r\n }\r\n setStateAdd({\r\n files: array,\r\n oldFiles: oldArray,\r\n });\r\n }\r\n\r\n return (\r\n closeModal()} style={{ width: 400, padding: 40 }}>\r\n

{!edit ? t('adicionarSIMCARD') : t('editarSIMCARD')}

\r\n \r\n setStateAdd({ iccid: e.target.value })}\r\n />\r\n
\r\n setStateAdd({ pontoAcesso: e.target.value })}\r\n />\r\n setStateAdd({ modem: e.target.value })}\r\n />\r\n
\r\n
\r\n setStateAdd({ macPontoAcesso: e.target.value })}\r\n />\r\n setStateAdd({ macRepetidor: e.target.value })}\r\n />\r\n
\r\n
\r\n

Fotos do SIMCARD

\r\n \r\n
\r\n {\r\n ([...stateAdd.files, ...stateAdd.oldFiles] || []).map((item) => (\r\n \r\n downloadFile(item.preview || item.url, item.name || item.filename, !!item.url)}\r\n />\r\n
deleteImageArray(item)}>\r\n \r\n
\r\n
\r\n ))\r\n }\r\n
\r\n setStateAdd({ dropzoneArea: true })}\r\n >\r\n +\r\n
\r\n
\r\n {\r\n stateAdd.dropzoneArea && (\r\n { setStateAdd({ dropzoneArea: false }); setFiles([]); }} style={{ width: 400, padding: 20 }}>\r\n

\r\n Adicionar fotos: \r\n (png, jpeg, jpg)\r\n

\r\n \r\n { setStateAdd({ dropzoneArea: false }); setFiles([]); }}>{t('botaoCancelar')}\r\n \r\n
\r\n )\r\n }\r\n \r\n { closeModal(); setFiles([]); }}>{t('botaoCancelar')}\r\n \r\n );\r\n}\r\n","import { useEffect } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport { Button, Input } from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\n\r\nimport { Select } from '~/components/NewSelect';\r\nimport { apiCall } from '~/providers';\r\nimport { CustomInput, Label } from './styles';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { RateModels } from './Tables/TableModels';\r\n\r\ntype typeProps = {\r\n clientId: number,\r\n onCancel: () => void,\r\n itemToEdit?: null | RateModels,\r\n isEdit?: boolean,\r\n}\r\nexport const FormEditModel = ({\r\n clientId, onCancel, isEdit = false, itemToEdit,\r\n}: typeProps): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n editingExtras: false,\r\n options: {} as {\r\n rateModalities: {\r\n name: string,\r\n value: number,\r\n }[],\r\n rateGroups: {\r\n name: string,\r\n value: number,\r\n }[],\r\n rateSubGroups: {\r\n name: string,\r\n value: number,\r\n groupId: number,\r\n }[],\r\n distributors: {\r\n name: string,\r\n value: number,\r\n }[],\r\n },\r\n groupOptions: [] as string[],\r\n subGroupOptions: [] as string[],\r\n rateModalities: [] as string[],\r\n distributorOptions: [] as { name: string, value: number }[],\r\n selectedGroup: '',\r\n selectedSubgroup: '',\r\n selectedModality: '',\r\n selectedDistributor: {} as { name: string, value: number },\r\n modelName: '',\r\n });\r\n\r\n function getSubGroups(group: string): string[] {\r\n if (group === 'B') return state.subGroupOptions;\r\n return [];\r\n }\r\n\r\n async function loadConfig() {\r\n const options = await apiCall('/load-model-options', { clientId });\r\n setState({\r\n options,\r\n groupOptions: options.rateGroups.map((group) => group.name).filter((name) => name !== 'A'),\r\n subGroupOptions: options.rateSubGroups.map((group) => group.name),\r\n rateModalities: options.rateModalities.map((group) => group.name),\r\n distributorOptions: options.distributors,\r\n });\r\n }\r\n\r\n function loadEdit() {\r\n if (itemToEdit) {\r\n state.modelName = itemToEdit.modelName;\r\n state.selectedDistributor = { name: itemToEdit.distributorLabel, value: itemToEdit.distributorId };\r\n state.selectedSubgroup = itemToEdit.subGroupName;\r\n state.selectedModality = itemToEdit.rateModalityName;\r\n state.selectedGroup = itemToEdit.groupName;\r\n render();\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n loadConfig();\r\n loadEdit();\r\n }, []);\r\n\r\n async function confirm() {\r\n try {\r\n const subGroup = state.options.rateSubGroups.find((subgroup) => subgroup.name === state.selectedSubgroup);\r\n const rateModality = state.options.rateModalities.find((modality) => modality.name === state.selectedModality);\r\n\r\n if (itemToEdit) {\r\n await apiCall('/update-model-rate', {\r\n MODEL_ID: itemToEdit.modelId,\r\n MODEL_NAME: state.modelName,\r\n DISTRIBUTOR_ID: state.selectedDistributor.value,\r\n SUBGROUP_ID: subGroup?.value,\r\n RATEMODALITY_ID: rateModality?.value,\r\n });\r\n toast.success('Modelo editado');\r\n onCancel();\r\n window.location.reload();\r\n } else if (subGroup && rateModality) {\r\n await apiCall('/create-model-rate', {\r\n CLIENT_ID: clientId,\r\n MODEL_NAME: state.modelName,\r\n DISTRIBUTOR_ID: state.selectedDistributor.value,\r\n SUBGROUP_ID: subGroup.value,\r\n RATEMODALITY_ID: rateModality.value,\r\n });\r\n toast.success('Modelo criado');\r\n onCancel();\r\n window.location.reload();\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro ao criar um modelo');\r\n }\r\n state.submitting = false; render();\r\n }\r\n\r\n return (\r\n
\r\n

\r\n { itemToEdit ? 'Editar Modelo' : 'Criar novo Modelo' }\r\n

\r\n { state.modelName = event.target.value; render(); }}\r\n />\r\n
\r\n
\r\n\r\n {\r\n state.selectedGroup = value;\r\n state.subGroupOptions = getSubGroups(value);\r\n state.selectedSubgroup = '';\r\n render();\r\n }\r\n }\r\n />\r\n
\r\n\r\n
\r\n {\r\n setState({ selectedSubgroup: value });\r\n }\r\n }\r\n />\r\n
\r\n\r\n
\r\n\r\n {\r\n setState({ selectedModality: value });\r\n }\r\n }\r\n />\r\n \r\n
\r\n \r\n {\r\n setState({ selectedDistributor: state.distributorOptions.find((distributor) => distributor.value === Number(value)) });\r\n console.log(state.selectedDistributor);\r\n }}\r\n closeOnSelect={false}\r\n />\r\n
\r\n
\r\n\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n
\r\n {/* @ts-ignore */}\r\n

\r\n Cancelar\r\n

\r\n
\r\n
\r\n );\r\n};\r\n","import { useState, useMemo, useEffect } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport { Button, Input, ActionButton } from 'components';\r\nimport parseDecimalNumber from 'helpers/parseDecimalNumber';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\nimport { SelectMultiple } from '~/components/NewSelectMultiple';\r\nimport { Select } from '~/components/NewSelect';\r\nimport { GetUsersListType } from '~/metadata/GetUsersList';\r\nimport { DeleteOutlineIcon, CloseIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport { FormEditExtras } from './UnitExtras';\r\n\r\nexport const FormEditAssociation = ({\r\n clientId, onSuccess, onCancel, associationInfo, unitsList, associationsList,\r\n}): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n editingExtras: false,\r\n selectedUnit: null as null|{ UNIT_ID: number },\r\n unitGroupsList: [] as {\r\n GROUP_ID: number;\r\n GROUP_NAME: string;\r\n DEV_AUT: string;\r\n DUT_ID: string;\r\n UNIT_ID: number;\r\n UNIT_NAME: string;\r\n CITY_NAME: string;\r\n STATE_ID: string;\r\n }[],\r\n selectedGroups: [] as {\r\n GROUP_ID: number|null;\r\n GROUP_NAME: string|null;\r\n DEV_AUT: string|null;\r\n DUT_ID: string|null;\r\n UNIT_ID: number|null;\r\n UNIT_NAME: string|null;\r\n CITY_NAME: string|null;\r\n STATE_ID: string|null;\r\n POSITION: number|null;\r\n }[],\r\n });\r\n const [formData] = useState({\r\n // @ts-ignore\r\n ASSOC_ID: (associationInfo && associationInfo.ASSOC_ID) || null,\r\n // @ts-ignore\r\n ASSOC_NAME: (associationInfo && associationInfo.ASSOC_NAME) || '',\r\n // @ts-ignore\r\n GROUPS: (associationInfo && associationInfo.GROUPS) || null,\r\n UNIT_ID: (associationInfo && associationInfo.UNIT_ID) || null,\r\n });\r\n const isEdit = !!formData.ASSOC_ID;\r\n\r\n async function getUnitGroups() {\r\n const groupsList = await apiCall('/clients/get-groups-list', { unitIds: (state.selectedUnit && [state.selectedUnit.UNIT_ID]) || undefined });\r\n state.unitGroupsList = groupsList;\r\n render();\r\n }\r\n\r\n function addGroup() {\r\n const list = state.selectedGroups;\r\n list.push({\r\n GROUP_ID: null,\r\n GROUP_NAME: null,\r\n DEV_AUT: null,\r\n DUT_ID: null,\r\n UNIT_ID: null,\r\n UNIT_NAME: null,\r\n CITY_NAME: null,\r\n STATE_ID: null,\r\n POSITION: null,\r\n });\r\n setState({ selectedGroups: list });\r\n }\r\n\r\n useEffect(() => {\r\n if (isEdit) {\r\n state.selectedGroups = [...associationInfo.GROUPS];\r\n setState({ selectedUnit: unitsList.find((unit) => unit.UNIT_ID === associationInfo.UNIT_ID) });\r\n }\r\n if (state.selectedUnit) {\r\n getUnitGroups();\r\n }\r\n }, [state.selectedUnit]);\r\n\r\n async function confirm() {\r\n let response: ({ ASSOC_ID: number} | null) = null;\r\n let action = null;\r\n try {\r\n state.submitting = true; render();\r\n const groups = state.selectedGroups.map((group) => ({ GROUP_ID: group.GROUP_ID, POSITION: group.POSITION }));\r\n groups.forEach((group) => {\r\n if (!group.GROUP_ID || !group.POSITION) {\r\n throw Error('Todas as máquinas devem estar preenchidas');\r\n }\r\n });\r\n const reqData = {\r\n ASSOC_ID: formData.ASSOC_ID || undefined,\r\n CLIENT_ID: clientId,\r\n ASSOC_NAME: formData.ASSOC_NAME || null,\r\n UNIT_ID: formData.UNIT_ID || null,\r\n GROUPS: groups,\r\n };\r\n if (isEdit) {\r\n // @ts-ignore\r\n response = await apiCall('/clients/edit-association', reqData);\r\n // @ts-ignore\r\n action = 'edit';\r\n } else {\r\n // @ts-ignore\r\n response = await apiCall('/clients/add-new-association', reqData);\r\n // @ts-ignore\r\n action = 'new';\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n state.submitting = false; render();\r\n if (response && action) onSuccess({ item: response, action });\r\n }\r\n\r\n return (\r\n \r\n \r\n

{`${isEdit ? 'Editar' : 'Adicionar'} Grupo de Máquinas`}

\r\n onCancel()}\r\n >\r\n \r\n \r\n
\r\n \r\n
\r\n

Geral

\r\n
\r\n
\r\n { formData.ASSOC_NAME = event.target.value; render(); }}\r\n />\r\n
\r\n
\r\n {\r\n formData.UNIT_ID = value.UNIT_ID;\r\n setState({ selectedUnit: value });\r\n }\r\n }\r\n />\r\n
\r\n
\r\n
\r\n
\r\n
\r\n

Adicionar Máquinas ao Grupo

\r\n \r\n Adicionar\r\n \r\n
\r\n {state.selectedGroups.map((group, index) => (\r\n \r\n {\r\n state.selectedGroups[index] = { ...value, POSITION: index + 1 };\r\n render();\r\n }\r\n }\r\n />\r\n {\r\n if (!Number.isNaN(Number(event.target.value))) {\r\n state.selectedGroups[index].POSITION = Number(event.target.value);\r\n render();\r\n }\r\n }}\r\n />\r\n { state.selectedGroups.splice(index, 1); render(); }} variant=\"red-inv\" style={{ marginLeft: '10px' }}>\r\n \r\n \r\n
\r\n ))}\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nconst FakeLink = styled.span`\r\n color: black;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n`;\r\n\r\nconst IconWrapper = styled.div`\r\n cursor: pointer;\r\n`;\r\n\r\nconst ModalContainer = styled.div`\r\n width: 100%;\r\n border-radius: 4px;\r\n`;\r\n\r\nconst ModalHeader = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n background-color: #4950CC;\r\n color: #fff;\r\n margin: 0px 0px;\r\n border-radius: 5px 5px 0px 0px;\r\n padding: 20px 20px;\r\n height: 40px;\r\n align-items: center;\r\n`;\r\n\r\nconst ModalContent = styled.div`\r\n padding: 50px;\r\n`;\r\n","import { useEffect, useState } from 'react';\r\n\r\nimport styled from 'styled-components';\r\n\r\nimport { apiCall } from 'providers';\r\nimport { ActionButton, Loader } from '~/components';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { DeleteOutlineIcon, EditIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const TableClasses = ({\r\n list, onDeleteClick, onEditClick, clientId,\r\n}): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n const [state, setState] = useState({\r\n isLoading: true,\r\n classesUnitsList: [] as {}[][],\r\n });\r\n\r\n async function getClassesUnits() {\r\n const classesUnitsList: { UNIT_ID: string, NOME: string, SOBRENOME: string }[][] = await Promise.all(list.map(async (item) => {\r\n const { list } = await apiCall('/clients/get-class-units', { CLASS_ID: item.CLASS_ID, CLIENT_ID: clientId });\r\n return list;\r\n }));\r\n setState({ isLoading: false, classesUnitsList });\r\n }\r\n\r\n useEffect(() => {\r\n getClassesUnits();\r\n }, []);\r\n\r\n function filterClassUnits(index) {\r\n const classUnits = state.classesUnitsList[index];\r\n if (classUnits && classUnits.length > 0) {\r\n return (\r\n
\r\n {`${classUnits.length} unidades`}\r\n
\r\n );\r\n }\r\n return '0 unidades';\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n Tipo\r\n Nome do Grupo\r\n Unidades\r\n {(profile.manageAllClients)\r\n && }\r\n \r\n \r\n \r\n { list.map((item, index) => (\r\n \r\n {item.CLASS_TYPE}\r\n {item.CLASS_NAME}\r\n {filterClassUnits(index)}\r\n {(profile.manageAllClients)\r\n && (\r\n \r\n onDeleteClick(item)} variant=\"red-inv\">\r\n \r\n \r\n onEditClick(item)} variant=\"blue-inv\">\r\n \r\n \r\n \r\n )}\r\n \r\n ))}\r\n \r\n \r\n );\r\n};\r\n\r\nconst TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\nconst TableHead = styled.thead`\r\n`;\r\nconst TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\nconst HeaderCell = styled.th`\r\n text-align: left;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\nconst DataCell = styled.td`\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\nconst Row = styled.tr`\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\nconst HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n","import { useState } from 'react';\r\nimport styled from 'styled-components';\r\nimport { ActionButton } from '~/components';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport {\r\n ArrowDownIcon, ArrowUpIcon, DeleteOutlineIcon, EditIcon, AddPlusIcon,\r\n} from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { CicleType } from '../ClientPanel';\r\n\r\nexport type RateCicleType = {\r\n CICLE_ID: number\r\n MODEL_ID: number\r\n START_CICLE_DATE : string\r\n END_CICLE_DATE: string\r\n PIS: number\r\n COFINS: number\r\n ICMS: number\r\n CONVENTIONALRATE_PARAMETERS?: {\r\n RATE: string\r\n CONVENTIONALRATE_ID: number,\r\n }\r\n WHITERATE_PARAMETERS?: {\r\n WHITERATE_ID: number,\r\n RATE_PONTA: string,\r\n RATE_OUTPONTA: string,\r\n START_PONTA: string,\r\n END_PONTA: string,\r\n FIRST_MID_RATE: string,\r\n START_FIRST_MID_RATE: string,\r\n END_FIRST_MID_RATE: string,\r\n LAST_MID_RATE?: string,\r\n START_LAST_MID_RATE: string,\r\n END_LAST_MID_RATE: string,\r\n },\r\n}\r\n\r\nexport type RateModels = {\r\n hide: boolean,\r\n modelName: string,\r\n modelId: number,\r\n distributorId: number,\r\n subGroupId: number,\r\n subGroupName: string,\r\n rateGroupId: number,\r\n groupName: string,\r\n rateModalityId: number,\r\n rateModalityName: string,\r\n distributorTag: string,\r\n distributorLabel: string,\r\n rateCicles: RateCicleType[]\r\n}\r\n\r\ntype ModelProps = {\r\n rateModels: RateModels[],\r\n onDeleteModelClick: (item: { MODEL_ID: number, MODEL_NAME: string }) => Promise,\r\n onDeleteCicleClick: (item: { CICLE_ID: number, CICLE_NAME: string }) => Promise,\r\n onEditClick: () => void,\r\n clientId: number,\r\n openEditCicle: (ModelRate: CicleType, itemToEdit?: RateCicleType) => void,\r\n openCreateEditModel: (itemToEdit?) => void,\r\n}\r\n\r\nexport const TableModels = ({\r\n rateModels,\r\n onDeleteModelClick,\r\n onDeleteCicleClick,\r\n openEditCicle,\r\n openCreateEditModel,\r\n}: ModelProps): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n const [, render] = useStateVar({\r\n isLoading: true,\r\n classesUnitsList: [] as {}[][],\r\n models: [],\r\n });\r\n\r\n function onClickHide(item) {\r\n rateModels.forEach((model) => {\r\n if (model.modelId === item.modelId) {\r\n model.hide = !model.hide;\r\n }\r\n render();\r\n });\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n Modelo\r\n Vigência\r\n Modalidade\r\n Subgrupo\r\n Distribuidora\r\n {(profile.manageAllClients)\r\n && }\r\n \r\n \r\n \r\n { rateModels && rateModels.map((item) => (\r\n <>\r\n \r\n \r\n
onClickHide(item)}>\r\n { item.hide ? : }\r\n
\r\n
\r\n {item.modelName}\r\n \r\n {item.rateModalityName}\r\n {item.subGroupName}\r\n {item.distributorLabel}\r\n {(profile.manageAllClients)\r\n && (\r\n \r\n onDeleteModelClick({ MODEL_ID: item.modelId, MODEL_NAME: item.modelName })} variant=\"red-inv\">\r\n \r\n \r\n openCreateEditModel(item)} variant=\"blue-inv\">\r\n \r\n \r\n \r\n )}\r\n
\r\n\r\n { item.hide && item.rateCicles?.length > 0 ? item.rateCicles.map((cicle, key) => (\r\n \r\n \r\n \r\n { key === 0 ? (\r\n
openEditCicle({\r\n modelId: item.modelId, groupName: item.groupName, subGroupName: item.subGroupName, rateModalityName: item.rateModalityName,\r\n })}\r\n >\r\n \r\n
\r\n ) :
}\r\n

\r\n {`Ciclo ${key + 1}`}\r\n

\r\n \r\n \r\n { `${cicle.START_CICLE_DATE} - ${cicle.END_CICLE_DATE ? cicle.END_CICLE_DATE : ''}` }\r\n \r\n \r\n \r\n \r\n {(profile.manageAllClients)\r\n && (\r\n \r\n onDeleteCicleClick({ CICLE_ID: cicle.CICLE_ID, CICLE_NAME: `Ciclo ${key + 1}` })} variant=\"red-inv\">\r\n \r\n \r\n openEditCicle({\r\n modelId: item.modelId, groupName: item.groupName, subGroupName: item.subGroupName, rateModalityName: item.rateModalityName,\r\n }, cicle)}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n )) : item.hide && (\r\n \r\n \r\n \r\n
openEditCicle({\r\n modelId: item.modelId, groupName: item.groupName, subGroupName: item.subGroupName, rateModalityName: item.rateModalityName,\r\n })}\r\n >\r\n \r\n
\r\n

\r\n Criar novo ciclo\r\n

\r\n
\r\n \r\n \r\n \r\n \r\n {(profile.manageAllClients) && item.hide && item.rateCicles?.length > 0\r\n ? (\r\n \r\n {}} variant=\"red-inv\">\r\n \r\n \r\n {}} variant=\"blue-inv\">\r\n \r\n \r\n \r\n ) : ()}\r\n
\r\n ) }\r\n \r\n ))}\r\n \r\n \r\n );\r\n};\r\n\r\nconst TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\nconst TableHead = styled.thead`\r\n`;\r\nconst TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\nconst HeaderCell = styled.th`\r\n text-align: left;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\nconst DataCell = styled.td`\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\nconst Row = styled.tr`\r\n height: 40px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\nconst HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\nexport const TableHead = styled.thead`\r\n`;\r\nexport const TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\nexport const HeaderCell = styled.th`\r\n text-align: left;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\nexport const DataCell = styled.td`\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\nexport const Row = styled.tr`\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\nexport const HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n\r\nexport const ChevronTop = styled.span`\r\n border-style: solid;\r\n border-width: 0.25em 0.25em 0 0;\r\n content: '';\r\n display: inline-block;\r\n height: 0.45em;\r\n left: 0.15em;\r\n position: relative;\r\n top: 0.15em;\r\n transform: rotate(-45deg);\r\n vertical-align: top;\r\n width: 0.45em;\r\n margin-left: 10px;\r\n margin-top: 3px;\r\n`;\r\n\r\nexport const ChevronBottom = styled.span`\r\n border-style: solid;\r\n border-width: 0.25em 0.25em 0 0;\r\n content: '';\r\n display: inline-block;\r\n height: 0.45em;\r\n left: 0.15em;\r\n position: relative;\r\n top: 0;\r\n transform: rotate(135deg);\r\n vertical-align: top;\r\n width: 0.45em;\r\n margin-left: 10px;\r\n margin-top: 3px;\r\n`;\r\n","import { useState, useEffect, useMemo } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { InputSearch } from '../../../components/InputSearch';\r\nimport {\r\n TableContainer,\r\n ChevronBottom,\r\n ChevronTop,\r\n HeaderRow,\r\n HeaderCell,\r\n Row,\r\n DataCell,\r\n TableBody,\r\n TableHead,\r\n} from './styles';\r\nimport {\r\n ActionButton,\r\n Button,\r\n Checkbox,\r\n ModalWindow,\r\n Loader,\r\n} from '~/components';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { DeleteOutlineIcon, EditIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { SearchInput, Label } from '~/pages/Analysis/styles';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { dynamicSort, Pagination } from '~/components/NewTable';\r\nimport { apiCall } from '~/providers';\r\nimport { toast } from 'react-toastify';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { getObjects } from '~/helpers/getObjetcs';\r\nimport { useParams } from 'react-router-dom';\r\nimport { SimpleButton } from '~/pages/Admin/AdmCities/styles';\r\n\r\nexport const TableDuts = ({\r\n list,\r\n vavsList,\r\n onEditClick,\r\n onDeleteClick,\r\n roomTypes,\r\n render,\r\n pageSize,\r\n setIsLoad,\r\n}): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n const [state, _renderVar, setState] = useStateVar(() => {\r\n const state = {\r\n selectOption: '' as any,\r\n searchText: '',\r\n currentPage: 1,\r\n sortOrder: '+',\r\n orderColum: '',\r\n isLoading: false,\r\n numSelect: 0,\r\n selectedRType: undefined,\r\n };\r\n return state;\r\n });\r\n const [filteredRows, setFilteredRows] = useState(list.concat(vavsList));\r\n const [listEnvironments, setEnvironments] = useState<{ DEV_ID: string, ENV_ID: number }[]>([]);\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ clientId: string }>();\r\n function getPages() {\r\n return filteredRows.map((item, index) => ({ ...item, key: `${index} ${item.DEV_ID} ${item.ENVIRONMENT_ID}` })).slice((state.currentPage - 1) * pageSize, state.currentPage * pageSize);\r\n }\r\n\r\n async function verifyRoute(arrayPromisse, clientId, type) {\r\n if (state.selectOption === 'deleteEnvironments') {\r\n await Promise.all(\r\n arrayPromisse.map((arr) => apiCall('/dut/delete-environments', { DEVS_INFO: arr, CLIENT_ID: clientId })),\r\n ).then(() => {\r\n toast.success(t('ambientesDeletadosComSucesso'));\r\n toast.info(t('dutsNaoForamDeletados'));\r\n setEnvironments([]);\r\n setState({ selectOption: '', selectedRType: undefined });\r\n render();\r\n }).catch((err) => {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n setState({ selectOption: '' });\r\n });\r\n } else {\r\n await Promise.all(\r\n arrayPromisse.map((arr) => apiCall('/dut/set-dut-rtype-v2', { DEVS_INFO: arr, CLIENT_ID: clientId, RTYPE_ID: type === 'clear' ? null : state.selectedRType })),\r\n ).then(() => {\r\n toast.success(t('tipoAmbientesAlteradoSucesso'));\r\n toast.info(t('ambientesSemNomeDefinidoNaoForamAlterados'));\r\n setEnvironments([]);\r\n setState({ selectOption: '', selectedRType: undefined });\r\n render();\r\n }).catch((err) => {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n setState({ selectOption: '' });\r\n });\r\n }\r\n }\r\n\r\n async function updateOrDelete(type) {\r\n if (listEnvironments.length > 0) {\r\n if (state.selectOption !== 'deleteEnvironments' && type !== 'clear' && !state.selectedRType) {\r\n toast.error(t('selecioneOTipoDeAmbiente'));\r\n return;\r\n }\r\n const arrayPromisse: { DEV_ID: string, ENV_ID: number }[][] = [];\r\n const clientId = (routeParams.clientId && Number(routeParams.clientId)) || null;\r\n for (let i = 0; i < listEnvironments.length; i += 100) {\r\n arrayPromisse.push(listEnvironments.slice(i, i + 100));\r\n }\r\n await verifyRoute(arrayPromisse, clientId, type);\r\n setState({ isLoading: true });\r\n } else {\r\n toast.error(t('deveSelecionarPeloMenos1Ambiente'));\r\n setState({ selectOption: '', selectedRType: undefined });\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n const getDataPerPage = useMemo(() => getPages(), [filteredRows, state.currentPage, pageSize]);\r\n useEffect(() => {\r\n setFilteredRows(list.concat(vavsList));\r\n setState({ currentPage: 1 });\r\n }, [list, vavsList]);\r\n\r\n useEffect(() => {\r\n setState({ numSelect: listEnvironments.length });\r\n }, [listEnvironments]);\r\n\r\n const onSearch = (e) => {\r\n setState({ searchText: e.target.value });\r\n\r\n if (e.target.value) {\r\n setFilteredRows(list.concat(vavsList).filter((row) => getObjects(row, e.target.value).length));\r\n } else {\r\n setFilteredRows(list.concat(vavsList));\r\n }\r\n\r\n setState({ orderColum: 'name' });\r\n setState({ sortOrder: '+' });\r\n setState({ currentPage: 1 });\r\n };\r\n\r\n const columnsEnvironment = [\r\n {\r\n label: t('nome'),\r\n value: 'name',\r\n accessor: 'ROOM_NAME',\r\n },\r\n {\r\n label: t('tipo'),\r\n value: 'type',\r\n accessor: 'RTYPE_NAME',\r\n },\r\n {\r\n label: t('unidade'),\r\n value: 'unit',\r\n accessor: 'UNIT_NAME',\r\n },\r\n {\r\n label: t('pais'),\r\n value: 'country',\r\n accessor: 'COUNTRY_NAME',\r\n },\r\n {\r\n label: t('estado'),\r\n value: 'state',\r\n accessor: 'STATE_ID',\r\n },\r\n {\r\n label: t('cidade'),\r\n value: 'city',\r\n accessor: 'CITY_NAME',\r\n },\r\n ];\r\n\r\n const handleSetOrderColumn = (column) => {\r\n let newSortOrder = '+';\r\n if (state.orderColum === column.value && state.sortOrder === '+') {\r\n newSortOrder = '-';\r\n }\r\n let sortedRows;\r\n if (state.orderColum === column.value && state.sortOrder === newSortOrder) {\r\n setState({ orderColum: '' });\r\n setState({ sortOrder: '' });\r\n } else {\r\n sortedRows = [...filteredRows].sort(dynamicSort(column, newSortOrder));\r\n setState({ orderColum: column.value });\r\n setState({ sortOrder: newSortOrder });\r\n }\r\n\r\n if (state.currentPage !== 1) {\r\n setState({ currentPage: 1 });\r\n }\r\n\r\n setFilteredRows(sortedRows);\r\n };\r\n\r\n const chevron = () => {\r\n if (state.sortOrder === '+') {\r\n return ;\r\n }\r\n return ;\r\n };\r\n\r\n function checkItem(item) {\r\n const newItem = item.DEV_ID !== '-' ? 'DEV_ID' : 'ENV_ID';\r\n const value = newItem === 'ENV_ID' ? item.ENVIRONMENT_ID : item.DEV_ID;\r\n if (listEnvironments.some((dut) => dut[newItem] === value)) {\r\n setEnvironments(listEnvironments.filter((dev) => dev[newItem] !== value));\r\n item.checked = false;\r\n } else {\r\n item.checked = true;\r\n setEnvironments([...listEnvironments, {\r\n DEV_ID: item.DEV_ID,\r\n ENV_ID: item.ENVIRONMENT_ID,\r\n }]);\r\n }\r\n }\r\n function checkAllItems() {\r\n setFilteredRows(filteredRows.map((item) => ({ ...item, checked: true })));\r\n const notIncludes = filteredRows.filter((item) => {\r\n const key = item.DEV_ID !== '-' ? 'DEV_ID' : 'ENV_ID';\r\n const value = key === 'ENV_ID' ? item.ENVIRONMENT_ID : item.DEV_ID;\r\n return !listEnvironments.some((dut) => dut[key] === value);\r\n });\r\n setEnvironments([...listEnvironments, ...notIncludes.map((item) => ({\r\n DEV_ID: item.DEV_ID,\r\n ENV_ID: item.ENVIRONMENT_ID,\r\n }))]);\r\n }\r\n\r\n function notCheckAllItems() {\r\n setFilteredRows(filteredRows.map((item) => ({ ...item, checked: false })));\r\n const includes = listEnvironments.filter((item) => {\r\n const key = item.DEV_ID !== '-' ? 'DEV_ID' : 'ENVIRONMENT_ID';\r\n const value = key === 'ENVIRONMENT_ID' ? item.ENV_ID : item.DEV_ID;\r\n return !filteredRows.some((filterItem) => filterItem[key] === value);\r\n });\r\n setEnvironments([...includes]);\r\n }\r\n\r\n const onPreviousPage = () => {\r\n if (state.currentPage > 1) {\r\n setState({ currentPage: state.currentPage - 1 });\r\n }\r\n };\r\n\r\n const onNextPage = () => {\r\n if (state.currentPage * pageSize < filteredRows.length) {\r\n setState({ currentPage: state.currentPage + 1 });\r\n }\r\n };\r\n\r\n function isChecked() {\r\n return !filteredRows.some((item) => {\r\n const key = item.DEV_ID !== '-' ? 'DEV_ID' : 'ENV_ID';\r\n const value = key === 'ENV_ID' ? item.ENVIRONMENT_ID : item.DEV_ID;\r\n return !listEnvironments.some((dev) => dev[key] === value);\r\n });\r\n }\r\n\r\n function isCheckedItem(item) {\r\n const key = item.DEV_ID !== '-' ? 'DEV_ID' : 'ENV_ID';\r\n const value = key === 'ENV_ID' ? item.ENVIRONMENT_ID : item.DEV_ID;\r\n return listEnvironments.some((dev) => dev[key] === value);\r\n }\r\n\r\n if (state.isLoading) {\r\n return ;\r\n }\r\n\r\n return (\r\n <>\r\n {(profile.manageAllClients) && (\r\n \r\n
\r\n { setState({ selectOption: 'deleteEnvironments' }); }}>Excluir Ambientes\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {\r\n profile.manageAllClients && (\r\n \r\n \r\n \r\n { setState({ selectOption: value }); }}\r\n />\r\n
\r\n \r\n )\r\n }\r\n
\r\n
\r\n \r\n \r\n \r\n {profile.manageAllClients && (\r\n \r\n {\r\n !isChecked() ? checkAllItems() : notCheckAllItems();\r\n }}\r\n />\r\n \r\n )}\r\n {\r\n columnsEnvironment.map((column) => (\r\n handleSetOrderColumn(column)}>\r\n {column.label}\r\n {' '}\r\n {state.orderColum === column.value ? chevron() : ''}\r\n \r\n ))\r\n }\r\n {(profile.manageAllClients)\r\n && }\r\n \r\n \r\n \r\n {getDataPerPage.map((item) => (\r\n \r\n {profile.manageAllClients && (\r\n \r\n {\r\n checkItem(item);\r\n }}\r\n />\r\n \r\n )}\r\n {item.ROOM_NAME || item.DEV_ID || '-'}\r\n {item.RTYPE_NAME || '-'}\r\n {item.UNIT_NAME || '-'}\r\n {item.COUNTRY_NAME || '-'}\r\n {item.STATE_ID || '-'}\r\n {item.CITY_NAME || '-'}\r\n {(profile.manageAllClients)\r\n && (\r\n \r\n {item.ENVIRONMENT_ID ? (\r\n { setIsLoad(true); onDeleteClick(item); checkItem(item); setIsLoad(false); }} variant=\"red-inv\">\r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n )}\r\n onEditClick(item.unit, item)} variant=\"blue-inv\">\r\n \r\n \r\n \r\n )}\r\n \r\n ))}\r\n \r\n \r\n \r\n {\r\n ((state.selectOption === 'setEnvironmentType') || (state.selectOption === 'deleteEnvironments')) && (\r\n \r\n )\r\n }\r\n \r\n );\r\n};\r\n\r\nfunction ModalEnvironment({\r\n state,\r\n setState,\r\n roomTypes,\r\n listEnvironments,\r\n setEnvironments,\r\n render,\r\n t,\r\n updateOrDelete,\r\n selectedRType,\r\n}) {\r\n const [isLoading, setsIsLoading] = useState(false);\r\n const title = state.selectOption === 'deleteEnvironments' ? t('deletarAmbientes') : t('definirTipoAmbiente');\r\n const send = state.selectOption === 'deleteEnvironments' ? t('deletar') : t('aplicar');\r\n return (\r\n \r\n

\r\n {title}\r\n

\r\n
\r\n {\r\n state.selectOption !== 'deleteEnvironments' && (\r\n <>\r\n \r\n
\r\n \r\n { setState({ selectedRType: value }); render(); }}\r\n />\r\n
\r\n
\r\n {\r\n if (window.confirm(t('confirmaExcluirTipoAmbiente'))) {\r\n setsIsLoading(true);\r\n setState({ selectedRType: null });\r\n updateOrDelete('clear');\r\n setsIsLoading(false);\r\n }\r\n }}\r\n >\r\n {t('limparAmbientes')}\r\n

\r\n \r\n )\r\n }\r\n {\r\n (state.selectOption === 'deleteEnvironments') && (\r\n \r\n {t('voceTemCertezaDeletarAmbientes')}\r\n

\r\n )\r\n }\r\n \r\n setState({ selectOption: '' })}\r\n >\r\n {t('cancelar')}\r\n

\r\n
\r\n
\r\n );\r\n}\r\n","import { useState } from 'react';\r\n\r\nimport styled from 'styled-components';\r\n\r\nimport { Checkbox } from '~/components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const TableFreeDevices = ({ freeDevs, selectionChanged }): JSX.Element => {\r\n const [, stateChanged] = useState({});\r\n return (\r\n \r\n \r\n \r\n Tipo\r\n ID\r\n Conexão\r\n Seleção\r\n \r\n \r\n \r\n {(freeDevs.map((devInfo) => (\r\n \r\n {devInfo.type}\r\n {devInfo.DEV_ID}\r\n {devInfo.status}\r\n \r\n {['DAC', 'DUT'].includes(devInfo.type)\r\n && (\r\n { devInfo.freeDevChecked = !devInfo.freeDevChecked; stateChanged({}); selectionChanged(); }}\r\n />\r\n )}\r\n \r\n \r\n )))}\r\n \r\n \r\n );\r\n};\r\n\r\nconst TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\nconst TableHead = styled.thead`\r\n`;\r\nconst TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\nconst HeaderCell = styled.th`\r\n text-align: left;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\nconst DataCell = styled.td`\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\nconst Row = styled.tr`\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\nconst HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n","import { useState } from 'react';\r\n\r\nimport styled from 'styled-components';\r\n\r\nimport { ActionButton } from '~/components';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { DeleteOutlineIcon, EditIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const TableRoomTypes = ({ roomTypes, onDeleteClick, onEditClick }): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n return (\r\n \r\n \r\n \r\n Nome\r\n T-min\r\n T-max\r\n Horário\r\n CO2-max\r\n Umi-min\r\n Umi-max\r\n Dispositivos\r\n {(profile.manageAllClients)\r\n && }\r\n \r\n \r\n \r\n {roomTypes.map((item) => (\r\n \r\n {item.RTYPE_NAME}\r\n {item.TUSEMIN == null ? '-' : `${item.TUSEMIN} °C`}\r\n {item.TUSEMAX == null ? '-' : `${item.TUSEMAX} °C`}\r\n {item.schedCol || '-'}\r\n {item.CO2MAX == null ? '-' : `${item.CO2MAX} ppm`}\r\n {item.HUMIMIN == null ? '-' : `${item.HUMIMIN}%`}\r\n {item.HUMIMAX == null ? '-' : `${item.HUMIMAX}%`}\r\n {item.DUTS_COUNT + item.DRIS_COUNT}\r\n {(profile.manageAllClients)\r\n && (\r\n \r\n onDeleteClick(item)} variant=\"red-inv\">\r\n \r\n \r\n onEditClick(item)} variant=\"blue-inv\">\r\n \r\n \r\n \r\n )}\r\n \r\n ))}\r\n \r\n \r\n );\r\n};\r\n\r\nconst TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\nconst TableHead = styled.thead`\r\n`;\r\nconst TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\nconst HeaderCell = styled.th`\r\n text-align: left;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\nconst DataCell = styled.td`\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\nconst Row = styled.tr`\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\nconst HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const StyledSpan = styled.span`\r\nfont-size: 1em;\r\nfont-weight: bold;\r\ncolor: ${colors.Grey400};\r\n`;\r\n\r\nexport const MachineHeaderContainer = styled.div`\r\n display: flex;\r\n flex: 1;\r\n align-items: flex-start;\r\n\r\n .input-container {\r\n display: flex;\r\n flex: 1;\r\n justify-content: flex-end;\r\n\r\n > div {\r\n height: 50px;\r\n min-width: 250px;\r\n }\r\n\r\n > div + div {\r\n margin-left: 32px;\r\n height: 50px;\r\n }\r\n }\r\n`;\r\n\r\nexport const ViewModeButton = styled.button<{ isActive: boolean }>`\r\n cursor: pointer;\r\n width: 80px;\r\n height: 26px;\r\n background-color: #ffffff;\r\n\r\n border: ${(props) => (props.isActive ? '2px solid #363bc4' : 0)};\r\n border-radius: 5px;\r\n\r\n font-size: 11px;\r\n font-weight: 600;\r\n color: ${(props) => (props.isActive ? '#363BC4' : '#7A7A7A')};\r\n\r\n > span {\r\n margin-right: 2px;\r\n }\r\n\r\n & + & {\r\n margin-left: 10px;\r\n }\r\n\r\n transition: filter 0.3s;\r\n\r\n &:hover {\r\n filter: brightness(0.9);\r\n }\r\n`;\r\n\r\nexport const MosaicMachineList = styled.div`\r\n display: flex;\r\n flex-flow: wrap;\r\n gap: 16px;\r\n\r\n max-height: 634px;\r\n width: 100%;\r\n margin-bottom: 20px;\r\n padding: 30px;\r\n border: 1px solid #d7d7d7;\r\n border-radius: 8px;\r\n\r\n overflow-y: scroll;\r\n`;\r\n\r\nexport const TableList = styled.div`\r\n margin: 20px 0 20px 0;\r\n`;\r\n\r\nexport const TooltipContainer = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n\r\n > span {\r\n font-size: 9px;\r\n line-height: 11px;\r\n color: #656565;\r\n }\r\n\r\n > strong {\r\n font-size: 10px;\r\n line-height: 12px;\r\n }\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\n min-height: 48px;\r\n max-width: 250px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #818181;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const Link = styled.div`\r\n font-size: 11px;\r\n line-height: 13px;\r\n color: #363BC4;\r\n text-decoration: underline;\r\n\r\n margin-top: 6px;\r\n\r\n cursor: pointer;\r\n`;\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\nimport { healthLevelColor } from '~/components/HealthIcon';\r\n\r\nconst getStatusColor = (isPrimary: boolean, status: number) => {\r\n if (isPrimary) {\r\n if (status === 1) {\r\n return { background: '#363BC4', border: '#363BC4', font: '#FFFFFF' };\r\n }\r\n\r\n return { background: '#B8B8B8', border: '#B8B8B8', font: '#FFFFFF' };\r\n }\r\n\r\n if (status === 1) {\r\n return { background: '#FFFFFF', border: '#3DD598', font: '#3DD598' };\r\n }\r\n\r\n return { background: '#FFFFFF', border: '#FF5454', font: '#FF5454' };\r\n};\r\n\r\nexport const TableExpandButton = styled.button`\r\n width: 25px;\r\n height: 25px;\r\n\r\n background-color: #ffffff;\r\n border: 0.8px solid rgba(71, 71, 71, 0.31);\r\n border-radius: 8px;\r\n\r\n cursor: pointer;\r\n`;\r\n\r\nexport const Icon = styled.div<{ health: number }>`\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: 19px;\r\n height: 19px;\r\n border-radius: 5px;\r\n background-color: ${({ health }) => healthLevelColor(health)};\r\n\r\n > svg {\r\n width: 11px;\r\n height: 11px;\r\n }\r\n`;\r\n\r\nexport const StatusBox = styled.div<{ isPrimary: boolean, status: number, dat?: boolean }>`\r\n width: 40px;\r\n height: 13px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n border: 1px solid ${({ isPrimary, status, dat }) => (dat ? '#B8B8B8' : getStatusColor(isPrimary, status).border)};\r\n background-color: ${({ isPrimary, status, dat }) => (dat ? '#FFFFFF' : getStatusColor(isPrimary, status).background)};\r\n border-radius: 4px;\r\n\r\n color: ${({ isPrimary, status, dat }) => (dat ? '#B8B8B8' : getStatusColor(isPrimary, status).font)};\r\n font-weight: bold;\r\n font-size: 6px;\r\n line-height: 7px;\r\n text-transform: uppercase;\r\n\r\n & + & {\r\n margin-left: 6px;\r\n }\r\n`;\r\n\r\nexport const TransparentLink = styled(Link)`\r\n color: inherit;\r\n text-decoration: inherit;\r\n &:hover {\r\n color: inherit;\r\n text-decoration: inherit;\r\n }\r\n`;\r\n\r\nexport const TableItemCell = styled.div`\r\n font-size: 12.6px;\r\n`;\r\n","import { useEffect, useState } from 'react';\r\nimport { ApiResps, apiCall } from '../../../providers';\r\nimport {\r\n ActionButton,\r\n Loader,\r\n NewTable,\r\n} from '~/components';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { DeleteOutlineIcon, EditIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { FaTools } from 'react-icons/fa';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { TooltipContainer } from '~/pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/styles';\r\nimport { TableItemCell } from '~/pages/Analysis/Units/UnitDetail/UnitDetailDACsDAMs/components/MachineTable/styles';\r\nimport { GetUsersListType } from '~/metadata/GetUsersList';\r\nimport { useParams } from 'react-router-dom';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport const TableUnits = ({\r\n list, energyMeters, unitsDisp, unitsDispLoading, onEditClick, onToggleReportClick, waterList, renderUnits, deleteUnitsOpen, onDeleteUnits, onCloseDeleteUnits,\r\n}): JSX.Element => {\r\n const { clientId } = useParams<{ clientId: string }>();\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n const [usersList, setUsersList] = useState([]);\r\n const [listChecked, setListChecked] = useState(list.map((item) => ({ ...item, checked: false })));\r\n const [state, setState] = useState({\r\n isLoading: true,\r\n unitsSupervisorsList: [] as { UNIT_ID: number, NOME: string, SOBRENOME: string }[],\r\n });\r\n\r\n async function getClientUsers(unitId?: number) {\r\n const response = await apiCall('/users/list-users', { CLIENT_ID: Number(clientId), includeAdmins: false });\r\n setUsersList(response.list);\r\n }\r\n\r\n async function getUnitsSupervisors() {\r\n const data = await apiCall('/clients/get-unit-supervisors', { UNIT_IDS: list.map((unit) => unit.UNIT_ID) });\r\n const unitsSupervisorsList = data.list;\r\n setState({ isLoading: false, unitsSupervisorsList });\r\n }\r\n\r\n useEffect(() => {\r\n getUnitsSupervisors();\r\n getClientUsers();\r\n setListChecked(list.map((item) => ({ ...item, checked: false })));\r\n }, [list]);\r\n\r\n const columns = [\r\n {\r\n name: 'id',\r\n value: 'ID',\r\n accessor: 'UNIT_ID',\r\n width: 47,\r\n },\r\n {\r\n name: 'name',\r\n value: t('nome'),\r\n accessor: 'UNIT_NAME',\r\n },\r\n {\r\n name: 'unit_code_celsius',\r\n value: t('codigoDaUnidade'),\r\n accessor: 'UNIT_CODE_CELSIUS',\r\n },\r\n profile.manageAllClients && {\r\n name: 'status',\r\n value: t('status'),\r\n acessor: 'PRODUCTION',\r\n render: (props) => (\r\n props.PRODUCTION === 0 ? (\r\n <>\r\n \r\n \r\n Em instalação\r\n \r\n \r\n \r\n \r\n \r\n \r\n ) : (\r\n
\r\n )\r\n ),\r\n },\r\n {\r\n name: 'country',\r\n value: t('pais'),\r\n accessor: 'COUNTRY_NAME',\r\n },\r\n {\r\n name: 'state',\r\n value: t('estado'),\r\n accessor: 'STATE_ID',\r\n },\r\n {\r\n name: 'city',\r\n value: t('cidade'),\r\n accessor: 'CITY_NAME',\r\n },\r\n {\r\n name: 'latlon',\r\n value: 'LAT e LONG',\r\n accessor: 'LATLON',\r\n width: 160,\r\n render: (props) => (\r\n
\r\n {`${props.LATLON}`}\r\n \r\n
\r\n

{`LAT: ${props.LAT}`}

\r\n

{`LON: ${props.LON}`}

\r\n
\r\n \r\n
\r\n ),\r\n },\r\n {\r\n name: 'devices',\r\n value: t('dispositivos'),\r\n accessor: 'DEVICES',\r\n },\r\n {\r\n name: 'disp',\r\n value: t('disponibilidadeUltimos7Dias'),\r\n accessor: 'AVAILABILITY_LAST_7_DAYS',\r\n },\r\n {\r\n name: 'resp',\r\n value: t('responsaveis'),\r\n accessor: 'RESPONSIBLE',\r\n },\r\n profile.manageAllClients && {\r\n name: 'relatorio',\r\n value: t('relatorio'),\r\n accessor: 'REPORT',\r\n render: (props) => (\r\n
onToggleReportClick(props)} style={{ cursor: 'pointer' }}>{props.submitting ? '...' : (props.DISABREP ? '(desativado)' : '(ativado)')}
\r\n ),\r\n },\r\n {\r\n name: 'distributor',\r\n value: t('distribuidora'),\r\n accessor: 'DISTRIBUTOR_LABEL',\r\n },\r\n {\r\n name: 'Modelo',\r\n value: 'Modelo de tarifa',\r\n accessor: 'MODEL_NAME',\r\n },\r\n {\r\n name: 'energyMeter',\r\n value: t('medidorEnergia'),\r\n accessor: 'METER_ENEGY_DEVICE',\r\n render: (props) => (\r\n
\r\n {props.ENERGY_METER.length !== 0 ? (\r\n
\r\n {props.ENERGY_METER.map((meter, index) => (\r\n <>\r\n {index === 0 && {meter.MANUFACTURER}}\r\n {meter.MANUFACTURER === 'Diel Energia' && (\r\n {meter.ENERGY_DEVICE_ID}\r\n )}\r\n {meter.SERIAL}\r\n \r\n ))}\r\n
\r\n ) : ('-')}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'waterMeter',\r\n value: t('medidorDeAgua'),\r\n accessor: 'METER_WATER_INTEGR',\r\n render: (props) => (\r\n
\r\n {props.WATER_METER ? (\r\n
\r\n {props.WATER_METER.supplier === 'Diel' ? 'Diel Energia' : props.WATER_METER.supplier}\r\n {props.WATER_METER.integrId}\r\n
\r\n ) : ('-')}\r\n
\r\n ),\r\n },\r\n profile.manageAllClients && {\r\n name: 'actions',\r\n value: t('acoes'),\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n
\r\n onEditClick(\r\n props,\r\n )}\r\n variant=\"blue-inv\"\r\n >\r\n \r\n \r\n
\r\n ),\r\n },\r\n ].filter((x) => !!x);\r\n\r\n function filterUnitSupervisors(unitId) {\r\n const unitSupervisors = state.unitsSupervisorsList.filter((unit) => unit.UNIT_ID === unitId);\r\n if (unitSupervisors && unitSupervisors.length > 0) {\r\n return (\r\n
\r\n {unitSupervisors.map((supervisor) => (\r\n
\r\n {`${supervisor.NOME} ${supervisor.SOBRENOME}`}\r\n
\r\n ))}\r\n
\r\n );\r\n }\r\n return '-';\r\n }\r\n\r\n if (state.isLoading) {\r\n return ;\r\n }\r\n return (\r\n <>\r\n {listChecked.map((item) => {\r\n item.ENERGY_METER = energyMeters.filter((meter) => meter.UNIT_ID === item.UNIT_ID);\r\n item.WATER_METER = waterList.find((water) => water.UNIT_ID === item.UNIT_ID);\r\n item.DEVICES = (item.DACS_COUNT + item.DUTS_COUNT || 0 + item.DAMS_COUNT + item.DRIS_COUNT) || '-';\r\n item.AVAILABILITY_LAST_7_DAYS = unitsDispLoading ? () : (unitsDisp[item.UNIT_ID]?.avgDisp != null ? `${formatNumberWithFractionDigits(unitsDisp[item.UNIT_ID]?.avgDisp.toFixed(1))}%` : '(sem cálculo)');\r\n item.RESPONSIBLE = state.isLoading ? () : filterUnitSupervisors(item.UNIT_ID);\r\n item.REPORT = item.submitting ? '...' : (item.DISABREP ? '(desativado)' : '(ativado)');\r\n item.METER_ENEGY_DEVICE = item.ENERGY_METER.map((x) => x.ENERGY_DEVICE_ID).join(';') || '-';\r\n item.METER_WATER_INTEGR = (item.WATER_METER && item.WATER_METER.integrId) || '-';\r\n })}\r\n { state.isLoading = true; renderUnits(); }}\r\n keySearch=\"searchUnits\"\r\n deleteUnitsOpen={deleteUnitsOpen}\r\n onDeleteUnits={onDeleteUnits}\r\n onCloseDeleteUnits={onCloseDeleteUnits}\r\n verifyMobile\r\n />\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\nimport { CalendarIcon, ExportWorksheetIcon } from '~/icons';\r\n\r\nexport const CustomInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 0.7px solid ${colors.GreyInputBorder}\r\n`;\r\n\r\nexport const ModalContainer = styled.div`\r\n width: 100%;\r\n border-radius: 4px;\r\n`;\r\n\r\nexport const FakeLink = styled.span`\r\n color: black;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const Form = styled.form`\r\n display: flex;\r\n width: '100%';\r\n flex-direction: column;\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n margin-top: 15px;\r\n margin-right: 15px;\r\n cursor: pointer;\r\n position: relative;\r\n top: -10px;\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const Content = styled.div`\r\n position: relative;\r\n margin: 30px 100px 40px;\r\n display: flex;\r\n justify-content: space-between;\r\n\r\n @media (max-width: 568px) {\r\n flex-direction: column;\r\n margin: 20px 10px;\r\n align-items: center;\r\n }\r\n`;\r\n\r\nexport const Text = styled.text`\r\ncolor: ${colors.Black};\r\n`;\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.Pink200};\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.Pink200};\r\n border: 1px double ${colors.Pink200};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.Pink400};\r\n border: 1px double ${colors.Pink400};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.Pink200};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.Pink400};\r\n }\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const BtnExport = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n font-weight: 400;\r\n border-radius: 12px;\r\n height: 41px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n width: fit-content;\r\n :hover {\r\n color: ${colors.White}\r\n background-color: #363BC4\r\n ${Text} {\r\n color: ${colors.White}\r\n }\r\n }\r\n`;\r\n\r\nexport const ExportWorksheet = styled(ExportWorksheetIcon)(\r\n () => `\r\n color: #363BC4\r\n`,\r\n);\r\n","import { DriConfigState } from '~/pages/Analysis/Integrations/IntegrEdit/types';\r\nimport { ApiResps } from '~/providers';\r\n\r\nexport function isAutomation(state: DriConfigState): boolean {\r\n return state.application?.value === 'automation';\r\n}\r\n\r\nexport function isFancoil(state: DriConfigState): boolean {\r\n return isAutomation(state) && state.driApplication === 'Fancoil';\r\n}\r\n\r\nexport function isVAV(state: DriConfigState): boolean {\r\n return isAutomation(state) && state.driApplication === 'VAV';\r\n}\r\n\r\nexport function isFancoilVavAutomation(state: DriConfigState): boolean {\r\n return isAutomation(state) && (isFancoil(state) || isVAV(state));\r\n}\r\n\r\ntype DriConfigs = NonNullable['driConfigs'];\r\ntype DriConfigProtocol = NonNullable[number];\r\n\r\nexport function checkProtocolValue(cfg: DriConfigProtocol, value: string): boolean {\r\n if (cfg.protocol != null) {\r\n return cfg.protocol === value;\r\n }\r\n return false;\r\n}\r\n","import {\r\n useState,\r\n useMemo,\r\n useEffect,\r\n useRef,\r\n} from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\nimport { Flex } from 'reflexbox';\r\nimport '~/assets/css/ReactTags.css';\r\nimport {\r\n Button,\r\n FormMachine,\r\n FormAssetsList,\r\n ViewMachine,\r\n ViewCAG,\r\n} from 'components';\r\nimport { useForm } from 'react-hook-form';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport queryString from 'query-string';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { apiCall, apiCallFormData, ApiResps } from 'providers';\r\n\r\nimport { FormEditExtras } from '../UnitExtras';\r\nimport { Headers2 } from '../../Analysis/Header';\r\nimport { AxiosError } from 'axios';\r\n\r\nimport { useTranslation } from 'react-i18next';\r\nimport {\r\n Form,\r\n} from './styles';\r\nimport {\r\n driApplicationCfgs, driLayerOpts, driParityOpts, driProtocolsOpts, driStopBitsOpts,\r\n getDriChillerCarrierApplications,\r\n} from '~/helpers/driConfigOptions';\r\nimport { checkProtocolValue } from '~/helpers/driConfig';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nfunction getKeyByValue(object, value) {\r\n return Object.keys(object).find((key) => object[key] === value);\r\n}\r\n\r\ntype Inputs = {\r\n login: string,\r\n loginExtra: string,\r\n password: string,\r\n consumerUnit: string,\r\n finished: boolean,\r\n name: string | null,\r\n model: string | null,\r\n refrigerationCapacity: string | null,\r\n refrigerationFluid: string | null,\r\n ratedPower: string | null,\r\n installationDate: string | null,\r\n automationDevId: string | null,\r\n};\r\n\r\ntype Machine = {\r\n groupId: number | null,\r\n name: string,\r\n unitId: number,\r\n unitName: string | null,\r\n brandName: string | null,\r\n type: string | null,\r\n model: string | null,\r\n refrigerationCapacity: string | null,\r\n refrigerationFluid: string | null,\r\n applic: string | null,\r\n ratedPower: string | null,\r\n installationDate: string | null,\r\n automationDevId: string | null,\r\n capacityMeasurementUnit: string | null,\r\n refDUTId: string | null\r\n condensersSumRatedPower: string | null,\r\n condensersSumCoolingCapacity: string | null,\r\n condensersCoolingCapacityUnits: string[] | null,\r\n};\r\n\r\ntype Asset = {\r\n index: number,\r\n name: string,\r\n installationLocation: string | null,\r\n datId: string | null,\r\n devId: string | null,\r\n roleId: number | null,\r\n role: string | null,\r\n type: string | null,\r\n brandName: string | null,\r\n model: string | null,\r\n refrigerationCapacity: string | null,\r\n ratedPower: string | null,\r\n refrigerationFluid: string | null,\r\n capacityMeasurementUnit: string | null,\r\n devClientAssetId: number | null,\r\n datIndex: number | null,\r\n devIdPersisted: string | null,\r\n assetId: number | null,\r\n chillerModel: string | null,\r\n chillerModelValue: number | null,\r\n chillerLine: string | null,\r\n chillerLineValue: number | null,\r\n chillerGateway: string | null,\r\n chillerGatewayValue: number | null,\r\n nominalCapacity: number | null,\r\n nominalVoltage: number | null,\r\n nominalFrequency: number | null,\r\n};\r\n\r\nexport const FormEditMachine = (props: {\r\n unitInfo?: {\r\n UNIT_ID: number\r\n UNIT_NAME: string\r\n LAT: string\r\n LON: string\r\n TARIFA_KWH: number\r\n CITY_ID: string\r\n STATE_ID: string\r\n DISTRIBUTOR_ID: number\r\n CONSUMER_UNIT: string\r\n LOGIN: string\r\n LOGIN_EXTRA: string\r\n PASSWORD: string\r\n }\r\n unitsList: {\r\n value: number\r\n name: string\r\n }[]\r\n modelsChillerList: {\r\n id: number\r\n modelName: string\r\n lineName: string\r\n nominalCapacity: number\r\n nominalVoltage: number\r\n nominalFrequency: number\r\n }[]\r\n comboOpts: {\r\n fluids: { value: number, name: string, id: string, }[],\r\n types: { value: number, name: string, id: string, }[],\r\n brands: { value: number, name: string, id: string, }[],\r\n applics: { value: number, name: string, id: string, }[],\r\n roles: { value: number, name: string }[],\r\n chillerModels: { value: number, name: string }[],\r\n chillerLines: { value: number, name: string }[],\r\n chillerGateways: { value: number, name: string }[],\r\n }\r\n machineWithAsset?: {\r\n GROUP_ID: number\r\n GROUP_NAME: string\r\n DUT_ID: string\r\n DEV_AUT: string | null\r\n UNIT_ID: number\r\n UNIT_NAME: string\r\n CITY_NAME: string\r\n STATE_ID: string\r\n MODEL: string | null\r\n INSTALLATION_DATE: string | null\r\n GROUP_TYPE: string | null\r\n BRAND: string | null\r\n FLUID_TYPE: string | null\r\n DEVS_COUNT: number,\r\n ASSETS_COUNT: number,\r\n MCHN_APPL: string | null,\r\n MACHINE_RATED_POWER: number,\r\n MACHINE_COOLING_CAPACITY: number | null\r\n MACHINE_COOLING_CAPACITY_UNIT: string | null\r\n assets: {\r\n DAT_ID: string | null\r\n AST_DESC: string\r\n INSTALLATION_LOCATION: string | null\r\n AST_TYPE: string | null\r\n CAPACITY_PWR: number | null\r\n CAPACITY_UNIT: string | null\r\n CLIENT_ID: number | null\r\n FLUID_TYPE: string | null\r\n GROUP_ID: number | null\r\n MCHN_APPL: string | null\r\n MCHN_BRAND: string | null\r\n MCHN_ENV: string | null\r\n MCHN_KW: number | null\r\n MCHN_MODEL: string | null\r\n UNIT_ID: number\r\n INSTALLATION_DATE: string | null\r\n AST_ROLE: number | null\r\n DEV_ID: string | null\r\n DEV_CLIENT_ASSET_ID: number | null\r\n DAT_INDEX: number | null\r\n ASSET_ID: number\r\n CHILLER_MODEL_NAME: string | null\r\n CHILLER_MODEL_ID: number | null\r\n CHILLER_LINE_NAME: string | null\r\n CHILLER_LINE_ID: number | null\r\n CHILLER_GATEWAY_NAME: string | null\r\n CHILLER_GATEWAY_ID: number | null\r\n NOMINAL_CAPACITY: number | null\r\n NOMINAL_VOLTAGE: number | null\r\n NOMINAL_FREQUENCY: number | null\r\n }[]\r\n }\r\n dacsList?: {\r\n DAC_ID: string\r\n GROUP_ID: number\r\n automationEnabled: boolean\r\n }[]\r\n clientId: number\r\n isViewMachine?: boolean\r\n onSuccess: (result: { item: {}, action: string }) => void\r\n onCancel: () => void\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n const {\r\n unitInfo = undefined, clientId, onSuccess, onCancel,\r\n } = props;\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n editingExtras: false,\r\n isLoading: false as boolean,\r\n key: 1 as number,\r\n isViewMachine: props.isViewMachine as boolean,\r\n sending: false,\r\n selectedApplication: false as boolean,\r\n selectedChillerModel: false as boolean,\r\n selectedChillerLine: false as boolean,\r\n driInfo: null as null|ApiResps['/get-integration-info'],\r\n driProtocol: null as null | string,\r\n driLayer: null as null | string,\r\n modbusBaudRate: '',\r\n driParity: null as null | string,\r\n driStopBits: null as null | string,\r\n driSendInterval: '',\r\n selectedCurrentCapacity: null as null | { name: string, value: string },\r\n selectedInstallationType: null as null | { name: string, value: string },\r\n driSlaveId: '',\r\n driCfgFile: null as null | (Blob & { name: string }),\r\n isChillerCarrier: false as boolean,\r\n\r\n });\r\n\r\n const [formData] = useState({\r\n UNIT_ID: (unitInfo && unitInfo.UNIT_ID) || null,\r\n machine: {\r\n groupId: props.machineWithAsset && props.machineWithAsset.GROUP_ID || null as number | null,\r\n name: props.machineWithAsset && props.machineWithAsset.GROUP_NAME || '' as string,\r\n unitId: props.machineWithAsset && props.machineWithAsset.UNIT_ID || 0 as number,\r\n unitName: props.machineWithAsset && props.machineWithAsset.UNIT_NAME || '' as string | null,\r\n brandName: props.machineWithAsset && props.machineWithAsset.BRAND || '' as string | null,\r\n type: props.machineWithAsset && props.machineWithAsset.GROUP_TYPE || '' as string | null,\r\n model: props.machineWithAsset && props.machineWithAsset.MODEL || '' as string | null,\r\n refrigerationCapacity: props.machineWithAsset && props.machineWithAsset.MACHINE_COOLING_CAPACITY?.toString() || '0' as string | null,\r\n refrigerationFluid: props.machineWithAsset && props.machineWithAsset.FLUID_TYPE || '' as string | null,\r\n applic: props.machineWithAsset && props.machineWithAsset.MCHN_APPL || '' as string | null,\r\n ratedPower: props.machineWithAsset?.MACHINE_RATED_POWER?.toString() || '' as string | null,\r\n installationDate: props.machineWithAsset && props.machineWithAsset.INSTALLATION_DATE || '' as string | null,\r\n automationDevId: (props.machineWithAsset && (props.machineWithAsset.DEV_AUT)) || '' as string | null,\r\n capacityMeasurementUnit: props.machineWithAsset && props.machineWithAsset.MACHINE_COOLING_CAPACITY_UNIT || 'TR' as string | null,\r\n refDUTId: props.machineWithAsset && (props.machineWithAsset.DUT_ID !== props.machineWithAsset.DEV_AUT) && props.machineWithAsset.DUT_ID || '' as string | null,\r\n condensersSumRatedPower: props.machineWithAsset ? props.machineWithAsset.assets.reduce((accumulator, object) => (object.AST_ROLE === 2 ? accumulator + Number(object.MCHN_KW) : accumulator), 0).toString() : null,\r\n condensersSumCoolingCapacity: props.machineWithAsset ? props.machineWithAsset.assets.reduce((accumulator, object) => (object.AST_ROLE === 2 ? accumulator + Number(object.CAPACITY_PWR) : accumulator), 0).toString() : null,\r\n condensersCoolingCapacityUnits: props.machineWithAsset ? props.machineWithAsset.assets.map((asset) => asset.CAPACITY_UNIT).filter((unit): unit is string => unit !== null) : null,\r\n },\r\n assets: [] as {\r\n index: number,\r\n name: string,\r\n installationLocation: string | null,\r\n datId: string | null,\r\n devId: string | null,\r\n roleId: number | null,\r\n role: string | null,\r\n type: string | null,\r\n brandName: string | null,\r\n model: string | null,\r\n refrigerationCapacity: string | null,\r\n ratedPower: string | null,\r\n refrigerationFluid: string | null,\r\n capacityMeasurementUnit: string | null,\r\n devIdPersisted: string | null,\r\n devClientAssetId: number | null,\r\n datIndex: number | null,\r\n assetId: number | null,\r\n chillerModel: string | null,\r\n chillerModelValue: number | null,\r\n chillerLine: string | null,\r\n chillerLineValue: number | null,\r\n chillerGateway: string | null,\r\n chillerGatewayValue: number | null,\r\n nominalCapacity: number | null,\r\n nominalVoltage: number | null,\r\n nominalFrequency: number | null,\r\n }[],\r\n });\r\n\r\n const isEdit = !!formData.machine.groupId;\r\n\r\n useEffect(() => {\r\n if (isEdit || state.isViewMachine) {\r\n if (props.machineWithAsset) {\r\n let indexAux = 0;\r\n for (const asset of props.machineWithAsset.assets) {\r\n formData.assets.push({\r\n index: indexAux,\r\n name: asset.AST_DESC || '',\r\n installationLocation: asset.INSTALLATION_LOCATION || '',\r\n datId: asset.DAT_ID || '',\r\n devId: asset.DEV_ID || '',\r\n roleId: asset.AST_ROLE || 0,\r\n role: '',\r\n type: asset.AST_TYPE || '',\r\n brandName: asset.MCHN_BRAND || '',\r\n model: asset.MCHN_MODEL || '',\r\n refrigerationCapacity: asset.CAPACITY_PWR?.toString() || '',\r\n ratedPower: asset.MCHN_KW?.toString() || '',\r\n refrigerationFluid: asset.FLUID_TYPE || '',\r\n capacityMeasurementUnit: asset.CAPACITY_UNIT || 'TR',\r\n devIdPersisted: asset.DEV_ID || null,\r\n devClientAssetId: asset.DEV_CLIENT_ASSET_ID || null,\r\n datIndex: asset.DAT_INDEX || null,\r\n assetId: asset.ASSET_ID,\r\n chillerModel: asset.CHILLER_MODEL_NAME,\r\n chillerModelValue: asset.CHILLER_MODEL_ID,\r\n chillerLine: asset.CHILLER_LINE_NAME,\r\n chillerLineValue: asset.CHILLER_LINE_ID,\r\n chillerGateway: asset.CHILLER_GATEWAY_NAME,\r\n chillerGatewayValue: asset.CHILLER_GATEWAY_ID,\r\n nominalCapacity: asset.NOMINAL_CAPACITY,\r\n nominalVoltage: asset.NOMINAL_VOLTAGE,\r\n nominalFrequency: asset.NOMINAL_FREQUENCY,\r\n });\r\n indexAux++;\r\n }\r\n render();\r\n }\r\n }\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (formData.machine.applic === 'chiller' && formData.machine.brandName === 'carrier') {\r\n state.isChillerCarrier = true;\r\n render();\r\n }\r\n }, []);\r\n\r\n function handleChangeMachine(machineForm: Machine) {\r\n formData.machine = machineForm;\r\n render();\r\n }\r\n\r\n function handleChangeSelectedApplication(selectedApplication: boolean) {\r\n state.selectedApplication = selectedApplication;\r\n render();\r\n }\r\n\r\n function handleChangeSelectedChillerCarrier(selectedChillerCarrier: boolean) {\r\n state.isChillerCarrier = selectedChillerCarrier;\r\n render();\r\n }\r\n\r\n function handleChangeSelectedChillerModel(selectedChillerModel: boolean) {\r\n state.selectedChillerModel = selectedChillerModel;\r\n render();\r\n }\r\n\r\n function handleChangeSelectedChillerLine(selectedChillerLine: boolean) {\r\n state.selectedChillerLine = selectedChillerLine;\r\n render();\r\n }\r\n\r\n function handleChangeAssets(assetsForm: Asset[]) {\r\n formData.assets = assetsForm;\r\n\r\n const sumRatedPower = assetsForm.reduce((accumulator, object) => (object.roleId === 2 ? accumulator + Number(object.ratedPower) : accumulator), 0);\r\n const sumRefrigerationCapacity = assetsForm.reduce((accumulator, object) => (object.roleId === 2 ? accumulator + Number(object.refrigerationCapacity) : accumulator), 0);\r\n\r\n formData.machine.condensersSumRatedPower = sumRatedPower.toString();\r\n formData.machine.condensersSumCoolingCapacity = sumRefrigerationCapacity.toString();\r\n formData.machine.condensersCoolingCapacityUnits = assetsForm.map((asset) => asset.capacityMeasurementUnit).filter((unit): unit is string => unit !== null);\r\n }\r\n\r\n function handleDeleteAssets(index: number) {\r\n formData.assets.splice(formData.assets.findIndex((item) => item.index === index), 1);\r\n render();\r\n }\r\n\r\n function checkDevExistsAnotherAsset(devCode: string, assetToIgnore: number) {\r\n return !!formData.assets.find((item) => item.assetId !== assetToIgnore && item.devId === devCode);\r\n }\r\n\r\n function verifyAutomPermission() {\r\n return profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === state.driInfo?.info?.CLIENT_ID);\r\n }\r\n\r\n async function getDriInfo(driId: string) {\r\n try {\r\n const response = await apiCall('/get-integration-info', { supplier: 'diel', integrId: driId });\r\n state.driInfo = response;\r\n const { dri: driCfg } = response;\r\n setDriCfg(driCfg);\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n alert(t('erroInformacoesDispositivos'));\r\n }\r\n }\r\n\r\n function verifyPermissions() {\r\n if (!profile.manageAllClients && !profile.permissions.isInstaller && !verifyAutomPermission()) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n const setDriCfg = (driCfg: ApiResps['/get-integration-info']['dri']) => {\r\n const defaultConfig = driApplicationCfgs['Chiller-Default'];\r\n\r\n const driProtocol = getKeyByValue(driProtocolsOpts, defaultConfig.protocol) ?? null;\r\n const modbusBaudRate = defaultConfig.modbusBaudRate;\r\n const driParity = getKeyByValue(driParityOpts, defaultConfig.parity) ?? null;\r\n const driLayer = getKeyByValue(driLayerOpts, defaultConfig.serialMode) ?? null;\r\n const driStopBits = getKeyByValue(driStopBitsOpts, defaultConfig.stopBits) ?? null;\r\n const driSendInterval = '60';\r\n\r\n state.driProtocol = getKeyByValue(driProtocolsOpts, driCfg?.protocol) ?? driProtocol;\r\n\r\n const parity = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'mdb_parity'))?.value;\r\n state.driParity = (parity !== undefined) ? Object.keys(driParityOpts)[parity] : driParity;\r\n\r\n const serialMode = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'serial_mode'))?.value;\r\n state.driLayer = (serialMode !== undefined) ? Object.keys(driLayerOpts)[Number(serialMode) - 1] : driLayer;\r\n\r\n const stopBits = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'mdb_stopbits'))?.value;\r\n state.driStopBits = (stopBits !== undefined) ? Object.keys(driStopBitsOpts)[stopBits] : driStopBits;\r\n\r\n state.driSendInterval = (driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'interval'))?.value?.toString() ?? driSendInterval);\r\n\r\n state.modbusBaudRate = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'mdb_baud'))?.value?.toString() ?? modbusBaudRate;\r\n\r\n state.driSlaveId = (['30HXE', '30GXE', '30HXF', '30XAB'].includes(formData?.assets[0]?.chillerLine ?? '') && driCfg?.varsList?.find((item) => item.address)?.address?.id?.toString()) || '';\r\n };\r\n\r\n function createVariables() {\r\n const driProtocol = state.driProtocol && driProtocolsOpts[state.driProtocol];\r\n const driLayer = state.driLayer ? driLayerOpts[state.driLayer] : undefined;\r\n const modbusBaudRate = state.modbusBaudRate || undefined;\r\n const parity = state.driParity ? driParityOpts[state.driParity] : undefined;\r\n const stopBits = state.driStopBits ? driStopBitsOpts[state.driStopBits] : undefined;\r\n const intervalTmp = state.driSendInterval || undefined;\r\n const sendInterval = state.driSendInterval ? state.driSendInterval : intervalTmp;\r\n const capacityTc = state.selectedCurrentCapacity?.value || undefined;\r\n const installationType = state.selectedInstallationType?.value || undefined;\r\n const slaveId = (Number(state.driSlaveId) && state.driSlaveId) || undefined;\r\n\r\n return {\r\n driProtocol,\r\n driLayer,\r\n modbusBaudRate,\r\n parity,\r\n stopBits,\r\n sendInterval,\r\n capacityTc,\r\n installationType,\r\n slaveId,\r\n };\r\n }\r\n\r\n function getDriApplication() {\r\n const chillerLine = formData?.assets[0]?.chillerLine;\r\n const isHvar = formData?.assets[0]?.chillerGateway === 'HVARC CONTROL';\r\n const driApplication = chillerLine ? getDriChillerCarrierApplications(isHvar)[chillerLine] : null;\r\n\r\n return driApplication;\r\n }\r\n\r\n async function uploadSelectedDriConfigFile() {\r\n try {\r\n const asset = formData?.assets[0];\r\n const driApplication = getDriApplication();\r\n\r\n const {\r\n driProtocol,\r\n driLayer,\r\n modbusBaudRate,\r\n parity,\r\n stopBits,\r\n sendInterval,\r\n capacityTc,\r\n installationType,\r\n slaveId,\r\n } = createVariables();\r\n\r\n if (asset.devId) {\r\n await Promise.all([\r\n (async () => {\r\n if (verifyPermissions()) return;\r\n asset.devId && await apiCall('/dri/set-dri-info', {\r\n DRI_ID: asset.devId,\r\n SYSTEM_NAME: asset.name || formData.machine.name,\r\n UNIT_ID: formData.machine.unitId,\r\n CLIENT_ID: clientId,\r\n });\r\n })(),\r\n apiCallFormData('/upload-dri-varscfg', {\r\n driId: asset.devId,\r\n application: driApplication,\r\n protocol: driProtocol,\r\n serialMode: driLayer,\r\n modbusBaudRate,\r\n parity,\r\n stopBits,\r\n telemetryInterval: sendInterval,\r\n capacityTc,\r\n installationType,\r\n slaveId,\r\n worksheetName: state.driCfgFile?.name,\r\n }, {\r\n file: state.driCfgFile,\r\n }),\r\n ]);\r\n }\r\n\r\n toast.success(t('sucessoSalvarConfiguracoes'));\r\n toast.success(t('sucessoReiniciarDispositivo'));\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n console.log(err);\r\n if (error.response?.status !== 500) {\r\n toast.error(`${error.response?.data}`);\r\n } else {\r\n toast.error(t('erro'));\r\n }\r\n }\r\n }\r\n\r\n const handleFormSubmition = async () => {\r\n let action: string | null;\r\n let response: null | {};\r\n if (state.submitting) {\r\n try {\r\n if (!formData.machine.name) {\r\n alert('É necessário informar um nome para a máquina');\r\n state.submitting = false;\r\n render();\r\n return;\r\n }\r\n\r\n const assetsWithoutName = formData.assets.filter((assets) => assets.name == null);\r\n if (!state.isChillerCarrier && assetsWithoutName.length > 0) {\r\n alert('É necessário informar nome para os ativos');\r\n state.submitting = false;\r\n render();\r\n return;\r\n }\r\n if (state.isChillerCarrier && (!formData.assets[0]?.chillerLine || !formData.assets[0]?.chillerModel || !formData.assets[0]?.chillerGateway)) {\r\n alert(t('preencherModeloChiller'));\r\n state.submitting = false;\r\n render();\r\n return;\r\n }\r\n if (formData.machine.installationDate && formData.machine.installationDate.length !== 10) {\r\n alert('Data de instalação fora do formato dd/mm/yyyy');\r\n state.submitting = false;\r\n render();\r\n return;\r\n }\r\n setState({ sending: true });\r\n if (!isEdit) {\r\n if (!formData.machine.unitId) {\r\n toast.warn(t('alertaNecessarioSelecionarUnidade'));\r\n state.submitting = false;\r\n state.sending = false;\r\n render();\r\n return;\r\n }\r\n\r\n const isDam = formData.machine.automationDevId?.includes('DAM');\r\n const isDut = formData.machine.automationDevId?.includes('DUT');\r\n const isDri = formData.machine.automationDevId?.includes('DRI');\r\n const formatedDate = formData.machine.installationDate\r\n ? `${formData.machine.installationDate.substring(6, 10)}-${formData.machine.installationDate.substring(3, 5)}-${formData.machine.installationDate.substring(0, 2)}` : null;\r\n setState({ sending: true });\r\n if (isDam) {\r\n await apiCall('/dam/set-dam-info', {\r\n UNIT_ID: formData.machine.unitId,\r\n CLIENT_ID: clientId,\r\n DAM_ID: formData.machine.automationDevId as string,\r\n });\r\n }\r\n else if (isDri) {\r\n await apiCall('/dri/set-dri-info', {\r\n UNIT_ID: formData.machine.unitId,\r\n CLIENT_ID: clientId,\r\n DRI_ID: formData.machine.automationDevId as string,\r\n });\r\n }\r\n else if (isDut || formData.machine.refDUTId) {\r\n await apiCall('/dut/set-dut-info', {\r\n UNIT_ID: formData.machine.unitId,\r\n CLIENT_ID: clientId,\r\n DEV_ID: (isDut && formData.machine.automationDevId ? formData.machine.automationDevId : formData.machine.refDUTId) as string,\r\n });\r\n }\r\n\r\n const groupResponse = await apiCall('/dac/add-new-group', {\r\n UNIT_ID: formData.machine.unitId,\r\n GROUP_NAME: formData.machine.name,\r\n REL_DUT_ID: isDut && formData.machine.automationDevId ? formData.machine.automationDevId : formData.machine.refDUTId,\r\n DEV_AUT: formData.machine.automationDevId || '',\r\n REL_DAM_ID: formData.machine.automationDevId && (formData.machine.automationDevId.startsWith('DAM') || formData.machine.automationDevId.startsWith('DAC')) && formData.machine.automationDevId || null,\r\n REL_DRI_ID: formData.machine.automationDevId && formData.machine.automationDevId.startsWith('DRI') && formData.machine.automationDevId || null,\r\n CLIENT_ID: clientId,\r\n MODEL: formData.machine.model,\r\n INSTALLATION_DATE: formatedDate,\r\n GROUP_TYPE: formData.machine.type,\r\n BRAND: formData.machine.brandName,\r\n COOLING_CAPACITY: Number(formData.machine.refrigerationCapacity),\r\n COOLING_CAPACITY_UNIT: formData.machine.capacityMeasurementUnit,\r\n FLUID_TYPE: formData.machine.refrigerationFluid,\r\n MCHN_APPL: formData.machine.applic,\r\n SUM_RATED_POWER_CONDENSERS: formData.machine.condensersSumRatedPower ? Number(formData.machine.condensersSumRatedPower) : null,\r\n SUM_COOLING_CAPACITY_CONDENSERS: formData.machine.condensersSumCoolingCapacity ? Number(formData.machine.condensersSumCoolingCapacity) : null,\r\n COOLING_CAPACITY_UNITS_CONDENSERS: formData.machine.condensersCoolingCapacityUnits ? formData.machine.condensersCoolingCapacityUnits : null,\r\n RATED_POWER: formData.machine.ratedPower ? Number(formData.machine.ratedPower) : 0,\r\n });\r\n\r\n for (const asset of formData.assets) {\r\n const datId = asset.datId;\r\n await apiCall('/clients/add-new-asset', {\r\n DAT_ID: datId,\r\n AST_DESC: asset.name || formData.machine.name,\r\n AST_TYPE: asset.type,\r\n CAPACITY_PWR: asset.refrigerationCapacity != null ? Number(asset.refrigerationCapacity) : null,\r\n CAPACITY_UNIT: asset.capacityMeasurementUnit,\r\n CLIENT_ID: clientId,\r\n FLUID_TYPE: formData.machine.refrigerationFluid,\r\n GROUP_ID: groupResponse.GROUP_ID,\r\n MCHN_BRAND: formData.machine.brandName,\r\n MCHN_MODEL: asset.model,\r\n UNIT_ID: formData.machine.unitId,\r\n INSTALLATION_DATE: formatedDate,\r\n AST_ROLE: asset.roleId,\r\n DEV_ID: asset.devId,\r\n DAT_COUNT: asset.index,\r\n MCHN_KW: asset.ratedPower != null ? Number(asset.ratedPower) : null,\r\n INSTALLATION_LOCATION: asset.installationLocation,\r\n MCHN_APPL: formData.machine.applic,\r\n CHILLER_CARRIER_MODEL_ID: asset.chillerModelValue,\r\n CHILLER_CARRIER_GATEWAY_ID: asset.chillerGatewayValue,\r\n UPDATE_MACHINE_COOLING_CAPACITY: false,\r\n });\r\n\r\n if (asset.devId && asset.devId.includes('DAC')) {\r\n await apiCall('/dac/set-dac-info', {\r\n DAC_ID: asset.devId, GROUP_ID: groupResponse.GROUP_ID, UNIT_ID: formData.machine.unitId, CLIENT_ID: clientId,\r\n });\r\n }\r\n\r\n if (asset.devId && asset.devId.includes('DRI') && state.isChillerCarrier) {\r\n await uploadSelectedDriConfigFile();\r\n }\r\n }\r\n action = 'new';\r\n response = groupResponse;\r\n }\r\n else {\r\n if (!formData.machine.unitId) {\r\n toast.warn(t('alertaNecessarioSelecionarUnidade'));\r\n state.submitting = false;\r\n state.sending = false;\r\n render();\r\n return;\r\n }\r\n\r\n if (formData.machine.automationDevId) {\r\n const reqCombos = { CLIENT_ID: clientId, groups: true };\r\n const combos = await apiCall('/dev/dev-info-combo-options', reqCombos);\r\n\r\n if (combos.groups) {\r\n const groupInfo = combos.groups.find((groupInfo) => groupInfo.value === formData.machine.groupId);\r\n if (groupInfo && groupInfo.devAut != null && groupInfo.devAut !== formData.machine.automationDevId) {\r\n toast.warn(t('avisoGrupoEstaAutomatizadoDispositivo', {\r\n value1: groupInfo.label,\r\n value2: groupInfo.devAut,\r\n }));\r\n state.submitting = false;\r\n render();\r\n return;\r\n }\r\n }\r\n }\r\n\r\n const isDut = formData.machine.automationDevId?.includes('DUT');\r\n const formatedDate = formData.machine.installationDate\r\n ? `${formData.machine.installationDate.substring(6, 10)}-${formData.machine.installationDate.substring(3, 5)}-${formData.machine.installationDate.substring(0, 2)}` : null;\r\n const groupResponse = await apiCall('/clients/edit-group', {\r\n GROUP_ID: formData.machine.groupId as number,\r\n UNIT_ID: formData.machine.unitId,\r\n GROUP_NAME: formData.machine.name,\r\n REL_DUT_ID: isDut && formData.machine.automationDevId ? formData.machine.automationDevId : formData.machine.refDUTId,\r\n REL_DEV_AUT: formData.machine.automationDevId,\r\n CLIENT_ID: clientId,\r\n MODEL: formData.machine.model,\r\n INSTALLATION_DATE: formatedDate,\r\n GROUP_TYPE: formData.machine.type,\r\n BRAND: formData.machine.brandName,\r\n COOLING_CAPACITY: Number(formData.machine.refrigerationCapacity),\r\n COOLING_CAPACITY_UNIT: formData.machine.capacityMeasurementUnit,\r\n FLUID_TYPE: formData.machine.refrigerationFluid,\r\n RATED_POWER: formData.machine.ratedPower ? Number(formData.machine.ratedPower) : 0,\r\n MCHN_APPL: formData.machine.applic,\r\n SUM_RATED_POWER_CONDENSERS: formData.machine.condensersSumRatedPower ? Number(formData.machine.condensersSumRatedPower) : null,\r\n SUM_COOLING_CAPACITY_CONDENSERS: formData.machine.condensersSumCoolingCapacity ? Number(formData.machine.condensersSumCoolingCapacity) : null,\r\n COOLING_CAPACITY_UNITS_CONDENSERS: formData.machine.condensersCoolingCapacityUnits ? formData.machine.condensersCoolingCapacityUnits : null,\r\n });\r\n\r\n const groupId = formData.machine.groupId as number;\r\n\r\n // first remove assets that have card deleted\r\n const assetsOriginal = props.machineWithAsset?.assets || [];\r\n\r\n if (assetsOriginal.length > 0) {\r\n for (const asset of assetsOriginal) {\r\n const assetAux = formData.assets.find((item) => item.assetId === asset.ASSET_ID);\r\n if (!assetAux) {\r\n // Remove asset that had card deleted\r\n await apiCall('/clients/remove-asset', { ASSET_ID: asset.ASSET_ID, DAT_ID: asset.DAT_ID as string, DEVICE_CODE: asset.DEV_ID ? asset.DEV_ID : undefined });\r\n\r\n if (asset.DEV_ID && asset.DEV_ID.includes('DAC') && !checkDevExistsAnotherAsset(asset.DEV_ID, asset.ASSET_ID)) {\r\n await apiCall('/dac/set-dac-info', { DAC_ID: asset.DEV_ID, GROUP_ID: null });\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Handle with the asset list\r\n for (const asset of formData.assets) {\r\n // New asset\r\n if (!asset.assetId) {\r\n const datId = asset.datId;\r\n await apiCall('/clients/add-new-asset', {\r\n DAT_ID: datId,\r\n AST_DESC: asset.name || formData.machine.name,\r\n AST_TYPE: asset.type,\r\n CAPACITY_PWR: asset.refrigerationCapacity != null ? Number(asset.refrigerationCapacity) : null,\r\n CAPACITY_UNIT: asset.capacityMeasurementUnit,\r\n CLIENT_ID: clientId,\r\n FLUID_TYPE: formData.machine.refrigerationFluid,\r\n GROUP_ID: groupId,\r\n MCHN_BRAND: formData.machine.brandName,\r\n MCHN_MODEL: asset.model,\r\n UNIT_ID: formData.machine.unitId,\r\n INSTALLATION_DATE: formatedDate,\r\n AST_ROLE: asset.roleId,\r\n DEV_ID: asset.devId,\r\n DAT_COUNT: asset.index,\r\n MCHN_KW: asset.ratedPower != null ? Number(asset.ratedPower) : null,\r\n INSTALLATION_LOCATION: asset.installationLocation,\r\n MCHN_APPL: formData.machine.applic,\r\n TYPE_CFG: formData.machine.type,\r\n CHILLER_CARRIER_MODEL_ID: asset.chillerModelValue,\r\n CHILLER_CARRIER_GATEWAY_ID: asset.chillerGatewayValue,\r\n UPDATE_MACHINE_COOLING_CAPACITY: false,\r\n });\r\n\r\n if (asset.devId && asset.devId.includes('DAC')) {\r\n await apiCall('/dac/set-dac-info', {\r\n DAC_ID: asset.devId, GROUP_ID: groupId, UNIT_ID: formData.machine.unitId, CLIENT_ID: clientId,\r\n });\r\n }\r\n\r\n if (asset.devId && asset.devId.includes('DRI') && state.isChillerCarrier) {\r\n await uploadSelectedDriConfigFile();\r\n }\r\n }\r\n else {\r\n if (asset.devIdPersisted != null && asset.devIdPersisted !== asset.devId && asset.devIdPersisted.startsWith('DAC') && asset.devId != null && !checkDevExistsAnotherAsset(asset.devIdPersisted, asset.assetId)) {\r\n await apiCall('/dac/set-dac-info', { DAC_ID: asset.devIdPersisted, GROUP_ID: null });\r\n }\r\n\r\n await apiCall('/clients/edit-asset', {\r\n ASSET_ID: asset.assetId,\r\n DAT_ID: asset.datId as string,\r\n AST_DESC: asset.name,\r\n AST_TYPE: asset.type,\r\n CAPACITY_PWR: asset.refrigerationCapacity != null ? Number(asset.refrigerationCapacity) : null,\r\n CAPACITY_UNIT: asset.capacityMeasurementUnit,\r\n CLIENT_ID: clientId,\r\n FLUID_TYPE: asset.refrigerationFluid,\r\n GROUP_ID: groupId,\r\n MCHN_BRAND: asset.brandName,\r\n MCHN_MODEL: asset.model,\r\n UNIT_ID: formData.machine.unitId,\r\n INSTALLATION_DATE: formatedDate,\r\n AST_ROLE: asset.roleId,\r\n DEV_ID: asset.devId,\r\n DAT_COUNT: asset.index,\r\n OLD_DEV_ID: asset.devIdPersisted,\r\n DEV_CLIENT_ASSET_ID: asset.devClientAssetId,\r\n DAT_INDEX: asset.datIndex,\r\n MCHN_KW: asset.ratedPower != null ? Number(asset.ratedPower) : null,\r\n INSTALLATION_LOCATION: asset.installationLocation,\r\n UPDATE_MACHINE_RATED_POWER: false,\r\n UPDATE_MACHINE_COOLING_CAPACITY: false,\r\n });\r\n\r\n if (asset.devId && asset.devId.includes('DRI') && state.isChillerCarrier) {\r\n await uploadSelectedDriConfigFile();\r\n }\r\n }\r\n }\r\n\r\n response = groupResponse;\r\n action = 'edit';\r\n }\r\n if (response && action) onSuccess({ item: response, action });\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n console.log(err);\r\n // Exibindo mensagens dos erros tratados no backend\r\n if (error.response?.status !== 500) {\r\n toast.error(`${error.response?.data}`);\r\n } else {\r\n toast.error('Houve erro');\r\n }\r\n }\r\n }\r\n state.sending = false;\r\n };\r\n\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n\r\n const tabs = [\r\n {\r\n title: t('maquina'),\r\n link: `${linkBase}`,\r\n isActive: !queryPars.aba,\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('ativosAssociados'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'ativos-associados' })}`,\r\n isActive: (queryPars.aba === 'ativos-associados'),\r\n visible: !state.isChillerCarrier,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n const {\r\n register, handleSubmit,\r\n } = useForm({\r\n mode: 'all',\r\n });\r\n\r\n function onStateSelected() {\r\n if (state.isChillerCarrier && formData?.assets[0]?.devId) {\r\n const driId = formData.assets[0].devId;\r\n getDriInfo(driId);\r\n }\r\n setState({ isLoading: true, submitting: true });\r\n render();\r\n }\r\n\r\n return (\r\n state.editingExtras\r\n ? (\r\n setState({ editingExtras: false })}\r\n />\r\n )\r\n : (\r\n
\r\n
\r\n
\r\n {!state.isViewMachine && !state.submitting && (\r\n <>\r\n \r\n {!isEdit ? 'Nova Máquina' : 'Editar Máquina'}\r\n \r\n
\r\n \r\n
\r\n {tabs[0].isActive\r\n && (\r\n
\r\n \r\n
\r\n )}\r\n {tabs[1].isActive\r\n && state.key++\r\n && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n )}\r\n {(state.isViewMachine || state.submitting) && (\r\n
\r\n \r\n {state.isViewMachine ? 'Visualizar' : 'Resumo'}\r\n \r\n {state.submitting && (\r\n \r\n Confira as informações inseridas\r\n \r\n )}\r\n
\r\n {/* */}\r\n {state.isChillerCarrier ? : }\r\n
\r\n
\r\n )}\r\n {!state.submitting && !state.isViewMachine && (\r\n \r\n \r\n \r\n Cancelar\r\n \r\n \r\n \r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n \r\n )}\r\n {state.submitting && (\r\n \r\n \r\n {\r\n e.preventDefault();\r\n state.submitting = false;\r\n render(); }}\r\n >\r\n Voltar para Edição\r\n \r\n \r\n \r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n Salvar\r\n \r\n {/* @ts-ignore */}\r\n \r\n \r\n )}\r\n {state.isViewMachine && (\r\n \r\n \r\n \r\n Fechar\r\n \r\n \r\n \r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n \r\n \r\n )}\r\n
\r\n
\r\n
\r\n )\r\n );\r\n};\r\n","import { useEffect } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport { Button } from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { SingleDatePicker } from 'react-dates';\r\nimport {\r\n ContentDate, StyledCalendarIcon, DateLabel, Unit, Test, InputText, InputLabel, InputRow, Title, ConsumptionContainer, ConsumptionRow, DateRow, EditCicleContainer, ModelRateContainer, CancelButton, RateGroupsTitle,\r\n} from './styles';\r\nimport moment from 'moment';\r\nimport { CicleType } from './ClientPanel';\r\nimport { apiCall } from '~/providers';\r\nimport { RateCicleType } from './Tables/TableModels';\r\n\r\ntype typeProps = {\r\n clientId: number,\r\n onCancel: () => void,\r\n cicleBaseInfo: CicleType,\r\n itemToEdit?: null | RateCicleType,\r\n}\r\n\r\nexport const FormEditCreateCicle = ({\r\n onCancel, cicleBaseInfo, itemToEdit,\r\n}: typeProps): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n editingExtras: false,\r\n focused: false,\r\n dateStart: null as null|moment.Moment,\r\n dateEnd: null as null|moment.Moment,\r\n focusedEnd: false,\r\n dateStartEnd: null as null|moment.Moment,\r\n dateEndF: null as null|moment.Moment,\r\n formCicle: {\r\n ponta: '' as string,\r\n outPonta: '' as string,\r\n startPonta: '' as string,\r\n endPonta: '' as string,\r\n firstMidRate: '' as string,\r\n startFirstMidRate: '' as string,\r\n endFirstMidRate: '' as string,\r\n lastMidRate: '' as string,\r\n startLastMidRate: '' as string,\r\n endLastMidRate: '' as string,\r\n rate: '' as string,\r\n },\r\n PIS: '',\r\n COFINS: '',\r\n ICMS: '',\r\n });\r\n\r\n useEffect(() => {\r\n loadEditCicle();\r\n }, []);\r\n\r\n async function createEditCicle() {\r\n try {\r\n if (itemToEdit) {\r\n await apiCall('/update-rate-cicle', {\r\n START_CICLE_DATE: state.dateStart?.format('DD/MM/YYYY'),\r\n MODEL_ID: cicleBaseInfo.modelId,\r\n CICLE_ID: itemToEdit.CICLE_ID,\r\n END_CICLE_DATE: state.dateStartEnd?.format('DD/MM/YYYY'),\r\n PIS: Number(state.PIS),\r\n ICMS: Number(state.ICMS),\r\n COFINS: Number(state.COFINS),\r\n WHITERATE_PARAMETERS: (cicleBaseInfo.rateModalityName === 'Branca') ? {\r\n RATE_PONTA: state.formCicle.ponta,\r\n RATE_OUTPONTA: state.formCicle.outPonta,\r\n END_PONTA: state.formCicle.endPonta,\r\n START_PONTA: state.formCicle.startPonta,\r\n FIRST_MID_RATE: state.formCicle.firstMidRate,\r\n END_FIRST_MID_RATE: state.formCicle.endFirstMidRate,\r\n START_FIRST_MID_RATE: state.formCicle.startFirstMidRate,\r\n LAST_MID_RATE: state.formCicle.lastMidRate,\r\n END_LAST_MID_RATE: state.formCicle.endLastMidRate,\r\n START_LAST_MID_RATE: state.formCicle.startLastMidRate,\r\n } : undefined,\r\n CONVENTIONALRATE_PARAMETERS: (cicleBaseInfo.rateModalityName === 'Convencional') ? {\r\n RATE: state.formCicle.rate,\r\n } : undefined,\r\n });\r\n } else if (state.dateStart) {\r\n await apiCall('/create-rate-cicle', {\r\n MODEL_ID: cicleBaseInfo.modelId,\r\n START_CICLE_DATE: state.dateStart.format('DD/MM/YYYY'),\r\n END_CICLE_DATE: state.dateStartEnd?.format('DD/MM/YYYY'),\r\n PIS: Number(state.PIS),\r\n COFINS: Number(state.COFINS),\r\n ICMS: Number(state.ICMS),\r\n WHITERATE_PARAMETERS: (cicleBaseInfo.rateModalityName === 'Branca') ? {\r\n RATE_PONTA: state.formCicle.ponta,\r\n RATE_OUTPONTA: state.formCicle.outPonta,\r\n START_PONTA: state.formCicle.startPonta,\r\n END_PONTA: state.formCicle.endPonta,\r\n FIRST_MID_RATE: state.formCicle.firstMidRate,\r\n START_FIRST_MID_RATE: state.formCicle.startFirstMidRate,\r\n END_FIRST_MID_RATE: state.formCicle.endFirstMidRate,\r\n LAST_MID_RATE: state.formCicle.lastMidRate,\r\n START_LAST_MID_RATE: state.formCicle.startLastMidRate,\r\n END_LAST_MID_RATE: state.formCicle.endLastMidRate,\r\n } : undefined,\r\n CONVENTIONALRATE_PARAMETERS: (cicleBaseInfo.rateModalityName === 'Convencional') ? {\r\n RATE: state.formCicle.rate,\r\n } : undefined,\r\n });\r\n }\r\n window.location.reload();\r\n } catch (error) {\r\n toast.error('Houve um erro ao criar/editar ciclo');\r\n }\r\n }\r\n\r\n function loadEditCicle() {\r\n if (itemToEdit) {\r\n console.log(itemToEdit);\r\n setState({\r\n focusedEnd: false,\r\n formCicle: {\r\n ponta: itemToEdit.WHITERATE_PARAMETERS?.RATE_PONTA || '',\r\n outPonta: itemToEdit.WHITERATE_PARAMETERS?.RATE_OUTPONTA || '',\r\n startPonta: itemToEdit.WHITERATE_PARAMETERS?.START_PONTA || '',\r\n endPonta: itemToEdit.WHITERATE_PARAMETERS?.END_PONTA || '',\r\n firstMidRate: itemToEdit.WHITERATE_PARAMETERS?.FIRST_MID_RATE || '',\r\n startFirstMidRate: itemToEdit.WHITERATE_PARAMETERS?.START_FIRST_MID_RATE || '',\r\n endFirstMidRate: itemToEdit.WHITERATE_PARAMETERS?.END_FIRST_MID_RATE || '',\r\n lastMidRate: itemToEdit.WHITERATE_PARAMETERS?.LAST_MID_RATE || '',\r\n startLastMidRate: itemToEdit.WHITERATE_PARAMETERS?.START_LAST_MID_RATE || '',\r\n endLastMidRate: itemToEdit.WHITERATE_PARAMETERS?.END_LAST_MID_RATE || '',\r\n rate: itemToEdit.CONVENTIONALRATE_PARAMETERS?.RATE || '',\r\n },\r\n PIS: (itemToEdit.PIS).toString(),\r\n COFINS: (itemToEdit.COFINS).toString(),\r\n ICMS: (itemToEdit.ICMS).toString(),\r\n });\r\n }\r\n }\r\n\r\n async function confirm() {\r\n try {\r\n createEditCicle();\r\n onCancel();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n state.submitting = false; render();\r\n }\r\n\r\n return (\r\n \r\n

\r\n { itemToEdit ? 'Editar ciclo' : 'Criar novo ciclo' }\r\n

\r\n
\r\n
\r\n \r\n Início do ciclo vigente\r\n
\r\n {\r\n setState({ dateStart: value, dateEnd: value });\r\n }}\r\n focused={state.focused}\r\n onFocusChange={({ focused }) => setState({ focused })}\r\n numberOfMonths={1}\r\n />\r\n \r\n
\r\n
\r\n \r\n Fim do ciclo vigente\r\n
\r\n {\r\n setState({ dateStartEnd: value, dateEndF: value });\r\n }}\r\n focused={state.focusedEnd}\r\n onFocusChange={({ focused }) => setState({ focusedEnd: focused })}\r\n numberOfMonths={1}\r\n />\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n Grupo\r\n \r\n { cicleBaseInfo.groupName }\r\n
\r\n
\r\n
\r\n \r\n Subgrupo\r\n \r\n

\r\n { cicleBaseInfo.subGroupName }\r\n

\r\n
\r\n
\r\n
\r\n \r\n Modelo de tarifa\r\n \r\n

\r\n { cicleBaseInfo.rateModalityName }\r\n

\r\n
\r\n \r\n
\r\n \r\n Consumo\r\n \r\n
\r\n { cicleBaseInfo.rateModalityName === 'Branca' ? (\r\n \r\n \r\n \r\n Ponta\r\n \r\n \r\n kWh/R$\r\n \r\n { state.formCicle.ponta = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n \r\n Horário início\r\n \r\n { state.formCicle.startPonta = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n Horário fim\r\n \r\n { state.formCicle.endPonta = target.value; render(); }}\r\n />\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n Inicio do horário intermediário\r\n \r\n \r\n kWh/R$\r\n \r\n { state.formCicle.firstMidRate = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n \r\n Horário início\r\n \r\n { state.formCicle.startFirstMidRate = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n Horário fim\r\n \r\n { state.formCicle.endFirstMidRate = target.value; render(); }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n Fim do horário intermediário\r\n \r\n \r\n kWh/R$\r\n \r\n { state.formCicle.lastMidRate = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n \r\n Horário início\r\n \r\n { state.formCicle.startLastMidRate = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n Horário fim\r\n \r\n { state.formCicle.endLastMidRate = target.value; render(); }}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n Fora ponta\r\n \r\n \r\n kWh/R$\r\n \r\n { state.formCicle.outPonta = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n \r\n ) : (\r\n \r\n \r\n Tarifa\r\n \r\n \r\n kWh/R$\r\n \r\n { state.formCicle.rate = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n )}\r\n\r\n
\r\n \r\n Impostos\r\n \r\n
\r\n \r\n PIS\r\n \r\n \r\n %\r\n \r\n { state.PIS = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n COFINS\r\n \r\n \r\n %\r\n \r\n { state.COFINS = target.value; render(); }}\r\n />\r\n \r\n \r\n
\r\n \r\n ICMS\r\n \r\n \r\n %\r\n \r\n { state.ICMS = (target.value); render(); }}\r\n />\r\n \r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n Cancelar\r\n \r\n
\r\n \r\n );\r\n};\r\n","import { useEffect } from 'react';\r\nimport { Button } from 'components';\r\nimport { CicleType } from './ClientPanel';\r\nimport { RateCicleType } from './Tables/TableModels';\r\n\r\ntype Props = {\r\n onCancel: () => void,\r\n openCreateEditCicle: () => void,\r\n cicleInfo: CicleType\r\n itemToEdit?: null | RateCicleType,\r\n}\r\n\r\nexport const FormEditCicle = ({\r\n onCancel, openCreateEditCicle, itemToEdit,\r\n}: Props): JSX.Element => {\r\n useEffect(() => { });\r\n\r\n return (\r\n
\r\n

\r\n { itemToEdit ? 'Editar Ciclo' : 'Criar novo Ciclo'}\r\n

\r\n

\r\n { itemToEdit ? 'Editar um ciclo existente, prosseguir ?' : 'Será criado um novo ciclo, prosseguir?'}\r\n

\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n {/* @ts-ignore */}\r\n

\r\n Cancelar\r\n

\r\n
\r\n );\r\n};\r\n","import { useEffect, useState } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport { Label, CustomInput, ModalTitle2 } from './styles';\r\nimport {\r\n Button, Input, Select,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport { Flex } from 'reflexbox';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\n\r\nexport const FormEditHeatExchanger = ({\r\n clientId, onSuccess, onCancel, heatExchangerInfo,\r\n}): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n editingExtras: false,\r\n brandList: [] as string[],\r\n });\r\n const fetchData = async () => {\r\n try {\r\n const data = await apiCall('/heat-exchanger/get-brands-list-v2', { CLIENT_ID: clientId });\r\n state.brandList = data.map((e) => e.label);\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n\r\n const [formData] = useState({\r\n ID: (heatExchangerInfo && heatExchangerInfo.ID) || null,\r\n NAME: (heatExchangerInfo && heatExchangerInfo.NAME) || '',\r\n T_MIN: (heatExchangerInfo && heatExchangerInfo.T_MIN) || '',\r\n T_MAX: (heatExchangerInfo && heatExchangerInfo.T_MAX) || '',\r\n DELTA_T_MIN: (heatExchangerInfo && heatExchangerInfo.DELTA_T_MIN) || '',\r\n DELTA_T_MAX: (heatExchangerInfo && heatExchangerInfo.DELTA_T_MAX) || '',\r\n });\r\n\r\n const isEdit = !!formData.ID;\r\n\r\n async function confirm() {\r\n let response;\r\n let action: string|null = null;\r\n try {\r\n state.submitting = true; render();\r\n const reqData = {\r\n CLIENT_ID: clientId,\r\n ID: formData.ID || null,\r\n NAME: formData.NAME || null,\r\n T_MIN: formData.T_MIN || null,\r\n T_MAX: formData.T_MAX || null,\r\n DELTA_T_MIN: formData.DELTA_T_MIN || null,\r\n DELTA_T_MAX: formData.DELTA_T_MAX || null,\r\n };\r\n\r\n if (!formData.NAME) { toast.error('Necessário preencher o campo Nome do Tipo de Trocador de Calor.'); state.submitting = false; return; }\r\n if (!formData.T_MIN) { toast.error('Necessário preencher o campo T-min.'); state.submitting = false; return; }\r\n if (!formData.T_MAX) { toast.error('Necessário preencher o campo T-max'); state.submitting = false; return; }\r\n if (!formData.DELTA_T_MIN) { toast.error('Necessário preencher o campo ΔT-min.'); state.submitting = false; return; }\r\n if (!formData.DELTA_T_MAX) { toast.error('Necessário preencher o campo ΔT-max.'); state.submitting = false; return; }\r\n\r\n if (isEdit) {\r\n response = await apiCall('/heat-exchanger/set-info-v2', reqData);\r\n action = 'edit';\r\n } else {\r\n response = await apiCall('/heat-exchanger/create-v2', reqData);\r\n action = 'new';\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n state.submitting = false; render();\r\n if (response && action) onSuccess({ item: response, action });\r\n }\r\n\r\n return (\r\n
\r\n\r\n {`${isEdit ? 'Editar' : 'Adicionar'} Tipo de Trocador de Calor`}\r\n
\r\n\r\n { formData.NAME = event.target.value; render(); }}\r\n formLabel=\"name\"\r\n />\r\n
\r\n \r\n { formData.T_MIN = event.target.value; render(); }}\r\n formLabel=\"t_min\"\r\n />\r\n {' '}\r\n { formData.T_MAX = event.target.value; render(); }}\r\n formLabel=\"t_max\"\r\n />\r\n \r\n
\r\n\r\n \r\n { formData.DELTA_T_MIN = event.target.value; render(); }}\r\n formLabel=\"delta_t_min\"\r\n />\r\n {' '}\r\n { formData.DELTA_T_MAX = event.target.value; render(); }}\r\n formLabel=\"delta_t_max\"\r\n />\r\n \r\n\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import { color } from 'html2canvas/dist/types/css/types/color';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from 'styles/colors';\r\n\r\nconst defineLabelColor = (disabled) => {\r\n if (disabled) {\r\n return colors.Grey200;\r\n }\r\n return colors.Blue700;\r\n};\r\n\r\nexport const BaseSpan = `\r\n color: ${colors.Blue700};\r\n font-size: 0.75em;\r\n font-weight: bold;\r\n top: 8px;\r\n`;\r\n\r\nexport const Base = styled.input<{ suffixLength? }>(\r\n ({ suffixLength }) => `\r\n border: none;\r\n outline: none;\r\n min-height: 48px;\r\n font-size: 1em;\r\n border-radius: 5px;\r\n padding: 20px ${suffixLength ? `${suffixLength * 9}px` : '35px'} 10px 14px;\r\n color: ${colors.Black};\r\n width: 100%;\r\n border: 0.7px solid ${colors.GreyInputBorder};\r\n\r\n &:focus {\r\n color: ${colors.Black}\r\n }\r\n\r\n &::placeholder {\r\n font-size: 12px;\r\n color: ${colors.GreyInputPlaceholder};\r\n }\r\n ::-webkit-inner-spin-button{\r\n -webkit-appearance: none; \r\n margin: 0; \r\n }\r\n ::-webkit-outer-spin-button{\r\n -webkit-appearance: none; \r\n margin: 0; \r\n } \r\n`,\r\n);\r\n\r\nexport const Container = styled.div`\r\n position: relative;\r\n border-radius: 5px;\r\n`;\r\n\r\nexport const Label = styled.label<{ disabled, value, suffixLength?, noSuffixBorder? }>(\r\n ({\r\n disabled,\r\n value,\r\n }) => `\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n cursor: ${disabled ? 'not-allowed' : 'default'};\r\n span:first-of-type {\r\n color: ${defineLabelColor(disabled)};\r\n transition: 0.2s all ease-in-out;\r\n font-size: 1em;\r\n left: 15px;\r\n font-weight: bold;\r\n font-size: 12px;\r\n position: absolute;\r\n cursor: auto;\r\n ${value ? BaseSpan : 'top: calc(50% - 20px);'}\r\n }\r\n\r\n span:nth-child(3) {\r\n position: absolute;\r\n width: auto;\r\n padding: 5px;\r\n font-size: 12px;\r\n font-weight: 400;\r\n line-height: 1;\r\n color: #818181;\r\n right: 10px;\r\n top: calc(50% - 12px);\r\n border: 1px solid #ccc;\r\n white-space: nowrap;\r\n vertical-align: middle;\r\n border-radius: 5px;\r\n &:hover{\r\n background-color: #f8f8f8;\r\n }\r\n }\r\n\r\n &:focus-within {\r\n span:first-of-type {\r\n ${BaseSpan}\r\n }\r\n }\r\n `,\r\n);\r\n\r\nexport const TextInfo = styled.div<{status}>(({ status }) => `\r\n color: ${status ? colors.Green : colors.Red};\r\n display: block;\r\n margin: 5px;\r\n text-align: left;\r\n font-size: 0.75em;\r\n padding-top: 2px;\r\n`);\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 15px;\r\n height: 15px;\r\n cursor: pointer;\r\n position: relative;\r\n svg {\r\n width: 15px;\r\n height: 15px;\r\n }\r\n`;\r\n\r\nexport const TextInfoLoading = styled.div`\r\n color: ${colors.Grey300};\r\n display: block;\r\n margin: 5px;\r\n text-align: left;\r\n font-size: 0.75em;\r\n padding-top: 2px;\r\n`;\r\n","import {\r\n useContext,\r\n useState,\r\n} from 'react';\r\nimport { Flex } from 'reflexbox';\r\nimport { CheckDeviceIcon, PortDisabledIcon, PortEnableIcon } from '~/icons';\r\nimport { InputValidationContext } from '~/pages/ClientPanel/FormEditUtility';\r\nimport { Loader } from '../Loader';\r\nimport {\r\n Base,\r\n Container,\r\n Label,\r\n IconWrapper,\r\n TextInfo,\r\n TextInfoLoading,\r\n} from './styles';\r\nimport { t } from 'i18next';\r\n\r\nexport const InputWithValidation = (cProps: {\r\n label?: string;\r\n placeholder?: string;\r\n value: string;\r\n name?: string;\r\n disabled?: boolean;\r\n onChange?: any\r\n onEnterKey?: () => void;\r\n validateFunction: () => Promise;\r\n newDevice?: boolean;\r\n hasMachine?: boolean;\r\n}): JSX.Element => {\r\n const {\r\n disabled, label, name, onEnterKey, placeholder, onChange, validateFunction, newDevice, hasMachine, ...props\r\n } = cProps;\r\n const { value } = cProps;\r\n\r\n const onKeyPress = (e) => {\r\n if (e.nativeEvent && e.nativeEvent.keyCode === 13 && onEnterKey) {\r\n e.preventDefault(); // Ensure it is only this code that runs\r\n onEnterKey();\r\n }\r\n };\r\n\r\n const [loading, setLoading] = useState(false);\r\n const [status, setStatus] = useState(-1 as null|number|boolean);\r\n // @ts-ignore\r\n const { setAllowedMonitoring } = useContext(InputValidationContext);\r\n const validate = async () => {\r\n setLoading(true);\r\n setStatus(-1);\r\n const allow = await validateFunction();\r\n setAllowedMonitoring(!!allow);\r\n setStatus(allow);\r\n setLoading(false);\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n { !loading && status === true ? : null}\r\n {/* eslint-disable-next-line eqeqeq */}\r\n { !loading && (!!status) == false ? : null}\r\n {/* eslint-disable-next-line eqeqeq */}\r\n { !loading && ((!!status) == false || status === true)\r\n ? \r\n : null}\r\n \r\n {loading ? t('verificandoDispositivo') : ''}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport const TextStatus = (props: {\r\n value: string,\r\n status: number | boolean | null,\r\n newDevice?: boolean\r\n hasMachine?: boolean\r\n\r\n}): JSX.Element => {\r\n const {\r\n status, value, newDevice, hasMachine,\r\n } = props;\r\n const textStatus = status === null ? t('dispositivoInexistente') : t('portasNaoDisponiveis');\r\n const textStatusOkDAM = newDevice ? t('dispositivoNovo') : t('dispositivoDisponivel');\r\n const textStatusNotOkDAM = hasMachine ? t('dispositivoAssociadoMaquina') : t('dispositivoNaoDisponivel');\r\n\r\n return (\r\n (\r\n value.startsWith('DAM')\r\n ? (\r\n \r\n {status && value.length === 12 ? textStatusOkDAM : textStatusNotOkDAM }\r\n \r\n )\r\n : (\r\n \r\n {status ? t('portasDisponiveis') : textStatus}\r\n \r\n )\r\n )\r\n );\r\n};\r\n","import styled from 'styled-components';\r\n\r\nimport { ExpandIcon } from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const IconWrapper = styled.div<{ disabled }>(({ disabled }) => `\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 16px;\r\n height: 16px;\r\n ${disabled ? 'cursor: not-allowed;' : 'cursor: pointer;'}\r\n`);\r\n\r\nexport const SelectedContainer = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: flex-start;\r\n padding: 10px;\r\n height: 25px;\r\n margin-top: 5px;\r\n min-width: 40%;\r\n max-width: 70%;\r\n border-radius: 5px;\r\n`;\r\n\r\nexport const Selected = styled.span`\r\n font-weight: bold;\r\n font-size: 0.75em;\r\n margin-left: 5px;\r\n color: ${colors.Blue300};\r\n`;\r\n\r\nexport const EmptyLabel = styled.div`\r\n height: 19px;\r\n`;\r\n\r\nexport const Wrapper = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n height: 48px;\r\n`;\r\n\r\nexport const Arrow = styled(ExpandIcon)<{ isOpen: boolean }>`\r\n transform: rotate(${(props) => (props.isOpen ? '180' : '360')}deg);\r\n transition: all 0.2s;\r\n margin: 14px 16px 14px 5px;\r\n`;\r\n\r\nexport const Container = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n position: relative;\r\n`;\r\n\r\nexport const Base = styled.div<{ error: string | undefined, disabled: boolean | undefined, isOpen: boolean, isSelected: boolean, onClick:() => void }>`\r\n box-sizing: border-box;\r\n position: relative;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n min-height: 34px;\r\n cursor: ${(props) => (props.disabled ? 'not-allowed' : 'pointer')};\r\n border: ${(props) => {\r\n let borderProperty = '1px solid ';\r\n if (props.error) borderProperty += colors.Red;\r\n else props.isOpen ? borderProperty += colors.Blue700 : borderProperty += colors.GreyInputBorder;\r\n return `${borderProperty};`;\r\n }};\r\n border-radius: ${(props) => (props.isOpen ? '5px 5px 0px 0px' : '5px')};\r\n color: ${(props) => {\r\n if (props.disabled) return 'rgba(62, 71, 86, 0.2);';\r\n return props.isSelected ? '#000;' : 'rgba(62, 71, 86, 0.3);';\r\n }};\r\n`;\r\n\r\nexport const Label = styled.span<{ error: string | undefined, isSelected: boolean | undefined, isOpen: boolean, disabled: boolean | undefined }>(\r\n ({\r\n error, isSelected, isOpen, disabled,\r\n }) => `\r\n transition: all 0.2s;\r\n margin-left: 16px;\r\n font-size: 12px;\r\n position: absolute;\r\n font-weight: bold;\r\n top: 5px;\r\n color: ${error ? colors.Red : colors.Blue700};\r\n ${disabled ? `color: ${colors.Grey200};` : ''}\r\n ${(isOpen || isSelected)\r\n && `\r\n top: 2px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n `}\r\n`,\r\n);\r\n\r\nexport const SelectedLabel = styled.span<{ disabled }>(({ disabled }) => `\r\n font-size: 12px;\r\n margin-left: 16px;\r\n margin-bottom: -6px;\r\n margin-top: 7px;\r\n color: ${colors.Black};\r\n ${disabled ? `color: ${colors.Grey200};` : ''}\r\n`);\r\n\r\nexport const ListItem = styled.div<{ isSelected: boolean, associated: boolean }>`\r\n position: relative;\r\n height: 34px;\r\n padding: 0px 16px;\r\n display: flex;\r\n align-items: center;\r\n flex-direction: row;\r\n cursor: pointer;\r\n width: 100%;\r\n border-bottom: 1px solid ${colors.Grey300};\r\n\r\n &:hover {\r\n background-color: ${(props) => (props.isSelected ? '' : colors.Grey050)};\r\n }\r\n\r\n span {\r\n font-size: 0.875em;\r\n color: ${(props) => (props.isSelected || !props.associated ? colors.Grey400 : colors.Grey300)};\r\n }\r\n svg {\r\n padding-bottom: 2px;\r\n }\r\n`;\r\n\r\nexport const List = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n background-color: ${colors.White};\r\n min-height: 34px;\r\n position: absolute;\r\n top: 103%;\r\n width: 100%;\r\n z-index: 10;\r\n height: auto;\r\n max-height: 316px;\r\n overflow-y: scroll;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n\r\n ${ListItem} {\r\n &:last-child {\r\n border-radius: 0px 0px 8px 8px;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n border-bottom: none;\r\n }\r\n }\r\n`;\r\n\r\nexport const SideBar = styled.div<{ associated: string, isLast: boolean }>`\r\n width: 4px;\r\n height: 34px;\r\n background-color: ${(props) => (props.associated ? colors.Grey300 : colors.BlueSecondary)};\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n border-bottom-left-radius: ${(props) => props.isLast && '8px;'};\r\n`;\r\n\r\nexport const Error = styled.span`\r\n color: ${colors.Red};\r\n display: block;\r\n margin: 5px;\r\n text-align: left;\r\n font-size: 0.75em;\r\n height: 24px;\r\n`;\r\n","import { useState, useRef, useCallback } from 'react';\r\nimport { useOuterClickNotifier } from '../../hooks/useOuterClickNotifier';\r\nimport { EletricNetworkIcon, PortIcon } from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\nimport { t } from 'i18next';\r\n\r\nimport {\r\n EmptyLabel,\r\n Wrapper,\r\n Arrow,\r\n Container,\r\n Base,\r\n Label,\r\n SelectedLabel,\r\n ListItem,\r\n List,\r\n Error,\r\n SideBar,\r\n} from './styles';\r\n\r\ntype SelectProps = {\r\n label?: string;\r\n placeholder?: string;\r\n onSelect: (value: any) => any;\r\n options?: any;\r\n value?: any;\r\n error?: string;\r\n propLabel?: string;\r\n notNull?: boolean;\r\n disabled?: boolean;\r\n}\r\n\r\nexport const SelectDMTport = ({\r\n label, placeholder, onSelect, options, value, error, propLabel = 'label', notNull = false, disabled = undefined, ...props\r\n}: SelectProps): JSX.Element => {\r\n const innerRef = useRef(null);\r\n const [isOpen, setIsOpen] = useState(false);\r\n const clickOutsideCallback = useCallback((e) => setIsOpen(false), []);\r\n useOuterClickNotifier(clickOutsideCallback, innerRef);\r\n const toggle = () => setIsOpen(!isOpen);\r\n\r\n return (\r\n \r\n {} : toggle}>\r\n \r\n \r\n {\r\n !isOpen && !value && (\r\n
\r\n {placeholder}\r\n
\r\n )\r\n }\r\n {value ? {value[propLabel] || String(value)} : isOpen && }\r\n
\r\n \r\n \r\n {error && {typeof (error) === 'string' ? error : t('campoIncorreto')}}\r\n {isOpen && (\r\n \r\n {options.map((option, index) => {\r\n const isSelected = value ? (String(value) === String(option[propLabel]) || value[propLabel] === option[propLabel]) : false;\r\n const isLast = index === options.length - 1;\r\n return (\r\n {\r\n if (!option?.associated) {\r\n onSelect(option);\r\n setIsOpen(false);\r\n }\r\n }}\r\n >\r\n {(isSelected || option?.associated) && }\r\n {option[propLabel] || option}\r\n {\r\n option?.associated && (\r\n \r\n {option?.eletricCircuitId ? : }\r\n {option?.eletricCircuitId ? t('redeEletrica') : t('emUso')}\r\n \r\n )\r\n }\r\n \r\n );\r\n })}\r\n \r\n )}\r\n
\r\n );\r\n};\r\n","import {\r\n createContext, useEffect, useState,\r\n} from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Label, CustomInput, IconWrapper, ModalTitle3, LabelSwitch,\r\n} from './styles';\r\nimport {\r\n Button, Input,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\nimport { Flex } from 'reflexbox';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { UtilityIcon } from '~/icons/Utility';\r\nimport {\r\n DatIcon, MonitoringIcon, PortIcon,\r\n} from '~/icons';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\nimport { InputWithValidation } from '~/components/InputWithValidation';\r\nimport { SelectDMTport } from '~/components/SelectDmtPort';\r\nimport { t } from 'i18next';\r\n\r\nexport const InputValidationContext = createContext({});\r\n\r\nexport const addUnitToString = (str: string|null, unit: string) : string => (str ? `${str} ${unit}` : '');\r\nexport const propOrNullValue = (value) => (value || null);\r\nexport const getParamNumber = (param: string|null) => (param?.split(' ').length ? Number(param.split(' ')[0]) : null);\r\n\r\nexport const FormEditUtility = ({\r\n clientId, onSuccess, onCancel, utilityInfo, utilityType,\r\n}): JSX.Element => {\r\n const [state, render] = useStateVar({\r\n submitting: false,\r\n editingExtras: false,\r\n brandList: [] as string[],\r\n hasMonitoring: !!utilityInfo?.DMT_CODE || !!utilityInfo?.DAL_CODE || !!utilityInfo?.DAM_ILLUMINATION_CODE,\r\n selectPortNow: !!utilityInfo?.PORT || (!!utilityInfo?.DMT_CODE && !!utilityInfo?.FEEDBACK),\r\n hasDatId: !!utilityInfo?.DAT_CODE,\r\n buttonDisabled: !utilityInfo?.DMT_CODE || !utilityInfo?.DAL_CODE || !utilityInfo?.DAM_ILLUMINATION_CODE,\r\n unitsOpt: [] as {value: number, name: string}[],\r\n portsOpt: [] as {label: string, associated: boolean, port: number, nobreakId?: number, illuminationId?: number}[],\r\n feedbackOpt: [] as {label: string, associated: boolean, port: number, illuminationId?: number}[],\r\n applicationOpts: [t('nobreak'), t('iluminacao')].map((e) => ({ name: e, value: e })) as { name: string, value: string }[],\r\n newDevice: false as boolean,\r\n hasMachine: false as boolean,\r\n });\r\n const fetchData = async () => {\r\n try {\r\n const data = await apiCall('/clients/get-units-list', { CLIENT_ID: clientId });\r\n const opts: {value: number, name: string}[] = [];\r\n for (const unit of data) {\r\n opts.push({ value: unit.UNIT_ID, name: unit.UNIT_NAME });\r\n }\r\n state.unitsOpt = opts;\r\n if (formData.MONITORING_DEVICE) {\r\n const portsInfo = await getPortsOpts();\r\n state.portsOpt = portsInfo.ports;\r\n state.feedbackOpt = portsInfo.feedbacks;\r\n }\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n };\r\n\r\n const getDmtPortsOpts = async () => {\r\n const ports = await apiCall('/dmt/get-dmt-ports-info', { DMT_CODE: formData.MONITORING_DEVICE, CLIENT_ID: clientId, NEW_UTILITY_TYPE: utilityType === t('nobreak') ? 'Nobreak' : 'Illumination' });\r\n return {\r\n ports: ports.ports.map((port) => { if (utilityInfo?.ID && port.NobreakId === utilityInfo.ID) { port.associated = false; } return port; }),\r\n feedbacks: [],\r\n };\r\n };\r\n\r\n const getDalPortsOpts = async () => {\r\n const ports = await apiCall('/dal/get-dal-ports-info', { DAL_CODE: formData.MONITORING_DEVICE, CLIENT_ID: clientId });\r\n return {\r\n ports: ports.ports.map((port) => { if (utilityInfo && port.illuminationId === utilityInfo.ID) { port.associated = false; } return port; }),\r\n feedbacks: ports.feedbacks.map((fb) => { if (utilityInfo && fb.illuminationId === utilityInfo.ID) { fb.associated = false; } return { ...fb, label: 'F'.concat(fb.label) }; }),\r\n };\r\n };\r\n\r\n async function getPortsOpts() {\r\n if (utilityType === t('nobreak') || (utilityType === t('iluminacao') && formData.MONITORING_DEVICE.startsWith('DMT'))) {\r\n const ports = await getDmtPortsOpts();\r\n return ports;\r\n }\r\n if (utilityType === t('iluminacao') && formData.MONITORING_DEVICE.startsWith('DAL')) {\r\n const ports = await getDalPortsOpts();\r\n return ports;\r\n }\r\n\r\n return { ports: [], feedbacks: [] };\r\n }\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n\r\n const propOrEmpty = (prop) => (prop || '');\r\n function getFormDataInitialState() {\r\n const portProp = (utilityInfo?.DMT_CODE && utilityInfo?.FEEDBACK) ? utilityInfo?.FEEDBACK : utilityInfo.PORT;\r\n const labelProp = (utilityInfo?.DMT_CODE && utilityInfo?.FEEDBACK) ? 'F'.concat(String(utilityInfo.FEEDBACK)) : String(utilityInfo.PORT);\r\n const hasPort = utilityInfo?.PORT || (utilityInfo?.DMT_CODE && utilityInfo?.FEEDBACK);\r\n return {\r\n ID: (utilityInfo?.ID) || null,\r\n NAME: propOrEmpty(utilityInfo?.NAME),\r\n UNIT: propOrEmpty(utilityInfo?.UNIT_ID),\r\n APPLICATION: propOrEmpty(utilityType),\r\n INSTALLATION_DATA: (utilityInfo?.INSTALLATION_DATE) ? utilityInfo.INSTALLATION_DATE.substring(0, 10) : '' as any,\r\n MANUFACTURER: propOrEmpty(utilityInfo?.MANUFACTURER),\r\n MODEL: propOrEmpty(utilityInfo?.MODEL),\r\n INPUT_VOLTAGE: addUnitToString(utilityInfo?.INPUT_VOLTAGE, 'VAC') as any,\r\n OUTPUT_VOLTAGE: addUnitToString(utilityInfo?.OUTPUT_VOLTAGE, 'VAC') as any,\r\n NOMINAL_POTENTIAL: propOrEmpty(utilityInfo?.NOMINAL_POTENTIAL),\r\n BATTERY_LIFE: propOrEmpty(utilityInfo?.NOMINAL_BATTERY_LIFE),\r\n INPUT_ELECTRIC_CURRENT: propOrEmpty(utilityInfo?.INPUT_ELECTRIC_CURRENT),\r\n OUTPUT_ELECTRIC_CURRENT: propOrEmpty(utilityInfo?.OUTPUT_ELECTRIC_CURRENT),\r\n NOMINAL_BATTERY_CAPACITY: propOrEmpty(utilityInfo?.NOMINAL_BATTERY_CAPACITY),\r\n MONITORING_DEVICE: propOrEmpty(utilityInfo?.DMT_CODE || utilityInfo?.DAL_CODE || utilityInfo?.DAM_ILLUMINATION_CODE),\r\n DAT_ID: propOrEmpty(utilityInfo?.DAT_CODE),\r\n PORT: hasPort ? { label: labelProp, port: portProp } : '' as any,\r\n FEEDBACK: (utilityInfo?.FEEDBACK) ? { label: 'F'.concat(String(utilityInfo.FEEDBACK)), port: utilityInfo.FEEDBACK } : '' as any,\r\n GRID_VOLTAGE: addUnitToString(utilityInfo?.GRID_VOLTAGE, 'VAC') as any,\r\n GRID_CURRENT: propOrEmpty(utilityInfo?.GRID_CURRENT),\r\n };\r\n }\r\n\r\n const [allowedMonitoring, setAllowedMonitoring] = useState(!!utilityInfo?.DMT_CODE || !!utilityInfo?.DAL_CODE || !!utilityInfo?.DAM_ILLUMINATION_CODE);\r\n const [formData] = useState(getFormDataInitialState());\r\n const isEdit = !!formData.ID;\r\n\r\n const isLessThanZero = (number) => (number && number < 0);\r\n\r\n function checkErrorNobreakFormData() {\r\n if (!formData.NAME) { toast.error(t('necessarioNomeUtilitario')); state.submitting = false; return true; }\r\n if (!formData.APPLICATION) { toast.error(t('necessarioCampoAplicacao')); state.submitting = false; return true; }\r\n if (!formData.UNIT) { toast.error(t('necessarioCampoUnidade')); state.submitting = false; return true; }\r\n if (state.hasMonitoring && !formData.MONITORING_DEVICE && !allowedMonitoring) { toast.error(t('necessarioDispositivoDeMonitoramento')); state.submitting = false; return true; }\r\n if (state.hasMonitoring && allowedMonitoring && state.selectPortNow && !formData.PORT && !formData.PORT.port) { toast.error(t('necessarioCampoPortaDmt')); state.submitting = false; return true; }\r\n if (isLessThanZero(formData.NOMINAL_POTENTIAL)) { toast.error(t('necessarioNumeroPositivoPotencia')); state.submitting = false; return true; }\r\n if (isLessThanZero(formData.BATTERY_LIFE)) { toast.error(t('necessarioNumeroPositivoAutonomia')); state.submitting = false; return true; }\r\n if (isLessThanZero(formData.INPUT_ELECTRIC_CURRENT)) { toast.error(t('necessarioNumeroPositivoCorrenteEletricaDeEntrada')); state.submitting = false; return true; }\r\n if (isLessThanZero(formData.OUTPUT_ELECTRIC_CURRENT)) { toast.error(t('necessarioNumeroPositivoCorrenteEletricaDeSaida')); state.submitting = false; return true; }\r\n if (isLessThanZero(formData.NOMINAL_BATTERY_CAPACITY)) { toast.error(t('necessarioNumeroPositivoCapacidadeNominalDaBateria')); state.submitting = false; return true; }\r\n return false;\r\n }\r\n\r\n function getNobreakReqData() {\r\n return {\r\n CLIENT_ID: clientId,\r\n ID: propOrNullValue(formData.ID),\r\n UNIT_ID: propOrNullValue(formData.UNIT),\r\n DMT_CODE: propOrNullValue(state.hasMonitoring && formData.MONITORING_DEVICE),\r\n DAT_CODE: propOrNullValue(state.hasDatId && formData.DAT_ID),\r\n NAME: propOrNullValue(formData.NAME),\r\n MANUFACTURER: propOrNullValue(formData.MANUFACTURER),\r\n MODEL: propOrNullValue(formData.MODEL),\r\n INPUT_VOLTAGE: getParamNumber(formData.INPUT_VOLTAGE),\r\n OUTPUT_VOLTAGE: getParamNumber(formData.OUTPUT_VOLTAGE),\r\n NOMINAL_POTENTIAL: propOrNullValue(formData.NOMINAL_POTENTIAL),\r\n NOMINAL_BATTERY_LIFE: propOrNullValue(formData.BATTERY_LIFE),\r\n INPUT_ELECTRIC_CURRENT: propOrNullValue(formData.INPUT_ELECTRIC_CURRENT),\r\n OUTPUT_ELECTRIC_CURRENT: propOrNullValue(formData.OUTPUT_ELECTRIC_CURRENT),\r\n NOMINAL_BATTERY_CAPACITY: propOrNullValue(formData.NOMINAL_BATTERY_CAPACITY),\r\n INSTALLATION_DATE: propOrNullValue(formData.INSTALLATION_DATA),\r\n PORT: propOrNullValue(state.selectPortNow && formData.PORT && formData.PORT.port),\r\n };\r\n }\r\n\r\n async function confirmNobreak() {\r\n let response;\r\n let action: string|null = null;\r\n const reqData = getNobreakReqData();\r\n\r\n const error = checkErrorNobreakFormData();\r\n if (error) return;\r\n\r\n if (isEdit) {\r\n response = await apiCall('/dmt/set-dmt-nobreak', reqData);\r\n action = 'edit';\r\n } else {\r\n response = await apiCall('/dmt/set-dmt-nobreak', reqData);\r\n action = 'new';\r\n }\r\n return { response, action };\r\n }\r\n\r\n function checkErrorIllumFormData() {\r\n if (!formData.NAME) { toast.error(t('necessarioNomeUtilitario')); state.submitting = false; return true; }\r\n if (!formData.APPLICATION) { toast.error(t('necessarioCampoAplicacao')); state.submitting = false; return true; }\r\n if (!formData.UNIT) { toast.error(t('necessarioCampoUnidade')); state.submitting = false; return true; }\r\n if (state.hasMonitoring && !formData.MONITORING_DEVICE && !allowedMonitoring) { toast.error(t('necessarioDispositivoDeAutomacao')); state.submitting = false; return true; }\r\n if (state.hasMonitoring && allowedMonitoring && state.selectPortNow && !formData.PORT && !formData.PORT.port) { toast.error(t('necessarioCampoPortaDal')); state.submitting = false; return true; }\r\n return false;\r\n }\r\n\r\n const propOrNull = (prop) => (prop || null);\r\n async function confirmIllumination() {\r\n let response;\r\n let action: string|null = null;\r\n\r\n const hasDevice = state.hasMonitoring && formData.MONITORING_DEVICE;\r\n const hasDmt = hasDevice && formData.MONITORING_DEVICE.startsWith('DMT');\r\n const hasDal = hasDevice && formData.MONITORING_DEVICE.startsWith('DAL');\r\n const hasDam = hasDevice && formData.MONITORING_DEVICE.startsWith('DAM');\r\n const port = state.selectPortNow && formData.PORT && formData.PORT.port;\r\n const feedback = state.selectPortNow && formData.FEEDBACK && formData.FEEDBACK.port;\r\n const gridVoltageSplitted = formData.GRID_VOLTAGE?.split(' ');\r\n\r\n const reqData = {\r\n CLIENT_ID: clientId,\r\n ID: propOrNull(formData.ID),\r\n UNIT_ID: propOrNull(formData.UNIT),\r\n DAL_CODE: hasDal ? formData.MONITORING_DEVICE : null,\r\n DMT_CODE: hasDmt ? formData.MONITORING_DEVICE : null,\r\n DAM_ILLUMINATION_CODE: hasDam ? formData.MONITORING_DEVICE : null,\r\n NAME: propOrNull(formData.NAME),\r\n GRID_VOLTAGE: gridVoltageSplitted.length ? Number(gridVoltageSplitted[0]) : null,\r\n GRID_CURRENT: propOrNull(formData.GRID_CURRENT),\r\n PORT: propOrNull(port),\r\n FEEDBACK: propOrNull(feedback),\r\n };\r\n\r\n const error = checkErrorIllumFormData();\r\n if (error) return;\r\n\r\n if (reqData.DMT_CODE) {\r\n response = await apiCall('/dmt/set-dmt-illumination', reqData);\r\n }\r\n else if (reqData.DAL_CODE) {\r\n response = await apiCall('/dal/set-dal-illumination', reqData);\r\n }\r\n else {\r\n response = await apiCall('/dam/set-dam-illumination', reqData);\r\n }\r\n\r\n action = isEdit ? 'edit' : 'new';\r\n\r\n return { response, action };\r\n }\r\n\r\n async function confirm() {\r\n let response;\r\n let action: string|null = null;\r\n try {\r\n state.submitting = true; render();\r\n if (formData.APPLICATION === t('nobreak')) {\r\n const result = await confirmNobreak();\r\n response = result?.response;\r\n action = result?.action ?? null;\r\n }\r\n\r\n if (formData.APPLICATION === t('iluminacao')) {\r\n const result = await confirmIllumination();\r\n response = result?.response;\r\n action = result?.action ?? null;\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n if (formData.APPLICATION === t('nobreak')) {\r\n toast.error(t('houveErroVerifiqueUnidade'));\r\n } else {\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n state.submitting = false; render();\r\n if (response && action) onSuccess({ item: response, action });\r\n }\r\n\r\n function checkMonitoring() {\r\n if (utilityInfo && utilityInfo.DMT_CODE === formData.MONITORING_DEVICE) {\r\n setAllowedMonitoring(true);\r\n state.buttonDisabled = false;\r\n } else if ((!state.hasMonitoring) || (state.hasMonitoring && allowedMonitoring && !state.selectPortNow) || (state.hasMonitoring && allowedMonitoring && state.selectPortNow && formData.PORT)) {\r\n state.buttonDisabled = false;\r\n } else {\r\n state.buttonDisabled = true;\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n (async function () {\r\n if (formData.MONITORING_DEVICE && state.selectPortNow) {\r\n const portsInfo = await getPortsOpts();\r\n state.portsOpt = portsInfo.ports;\r\n state.feedbackOpt = portsInfo.feedbacks;\r\n }\r\n if (!allowedMonitoring) {\r\n checkMonitoring();\r\n } else if (state.hasMonitoring && state.selectPortNow) {\r\n if (formData.MONITORING_DEVICE) {\r\n const portsInfo = await getPortsOpts();\r\n state.portsOpt = portsInfo.ports;\r\n state.feedbackOpt = portsInfo.feedbacks;\r\n }\r\n state.buttonDisabled = !(formData.MONITORING_DEVICE && formData.PORT);\r\n } else {\r\n state.buttonDisabled = false;\r\n }\r\n render();\r\n }());\r\n }, [allowedMonitoring, formData.MONITORING_DEVICE, formData.PORT, state.hasMonitoring, state.selectPortNow]);\r\n\r\n const validateMonitoringDmtUtility = async () : Promise => {\r\n try {\r\n const ans = await apiCall('/dmt/get-dmt-ports-info', { DMT_CODE: formData.MONITORING_DEVICE, CLIENT_ID: clientId, NEW_UTILITY_TYPE: formData.APPLICATION === t('nobreak') ? 'Nobreak' : 'Illumination' });\r\n if (utilityInfo && utilityInfo.DMT_CODE === formData.MONITORING_DEVICE && utilityInfo.ID) {\r\n return true;\r\n }\r\n return ans.freePorts;\r\n } catch (err) {\r\n return null;\r\n }\r\n };\r\n\r\n const validateMonitoringIllumination = async () : Promise => {\r\n try {\r\n const ans = await apiCall('/dal/get-dal-ports-info', { DAL_CODE: formData.MONITORING_DEVICE, CLIENT_ID: clientId });\r\n if (utilityInfo && utilityInfo.DAL_CODE === formData.MONITORING_DEVICE && utilityInfo.ID) {\r\n return true;\r\n }\r\n return ans.freePorts;\r\n } catch (err) {\r\n return null;\r\n }\r\n };\r\n\r\n const validateMonitoringDamIlluminationUtility = async () : Promise => {\r\n try {\r\n const ans = await apiCall('/dam/get-dam-illumination-validation', { DAM_ILLUMINATION_CODE: formData.MONITORING_DEVICE, CLIENT_ID: clientId, UNIT_ID: formData.UNIT });\r\n if (utilityInfo && utilityInfo.DAM_ILLUMINATION_CODE === formData.MONITORING_DEVICE && utilityInfo.ID) {\r\n return true;\r\n }\r\n state.newDevice = ans.newDevice;\r\n state.hasMachine = ans.hasMachine;\r\n render();\r\n return ans.freeDevice;\r\n } catch (err) {\r\n return null;\r\n }\r\n };\r\n\r\n const notValidate = async () : Promise => null;\r\n\r\n const handleValidateFunction = async () : Promise => {\r\n if (formData.MONITORING_DEVICE.startsWith('DAM')) {\r\n return validateMonitoringDamIlluminationUtility();\r\n }\r\n if (formData.MONITORING_DEVICE.startsWith('DMT')) {\r\n return validateMonitoringDmtUtility();\r\n }\r\n if (formData.MONITORING_DEVICE.startsWith('DAL')) {\r\n return validateMonitoringIllumination();\r\n }\r\n return notValidate();\r\n };\r\n\r\n const getDeviceFormLabels = (application) => {\r\n if (application === t('nobreak')) {\r\n return {\r\n deviceCode: 'DMT_CODE',\r\n deviceIdText: t('digiteIdDmt'),\r\n devicePortText: t('feedbackDoDmt'),\r\n monitoringText: t('dispositivoDeMonitoramento'),\r\n validateFunction: validateMonitoringDmtUtility,\r\n };\r\n }\r\n return {\r\n deviceCode: 'DAL_CODE',\r\n deviceIdText: t('digiteIdDalDmtDam'),\r\n devicePortText: !formData.MONITORING_DEVICE.startsWith('DMT') ? t('portaDoDal') : t('feedbackDoDmt'),\r\n monitoringText: t('dispositivoDeAutomacao'),\r\n validateFunction: handleValidateFunction,\r\n };\r\n };\r\n\r\n const monitoringDeviceForm = () => {\r\n const labels = getDeviceFormLabels(formData.APPLICATION);\r\n\r\n if (labels.deviceCode) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('possuiMonitoramento')}\r\n \r\n
\r\n {t('nao')}\r\n { state.hasMonitoring = !state.hasMonitoring; render(); formData.PORT = (state.hasMonitoring && utilityInfo && utilityInfo[labels.deviceCode] === formData.MONITORING_DEVICE && utilityInfo.PORT) || ''; render(); }}\r\n style={{ marginLeft: '8px', marginRight: '8px' }}\r\n />\r\n {t('sim')}\r\n
\r\n
\r\n
\r\n \r\n { formData.MONITORING_DEVICE = event.target.value; setAllowedMonitoring(false); render(); formData.PORT = (state.hasMonitoring && utilityInfo && utilityInfo[labels.deviceCode] === formData.MONITORING_DEVICE && utilityInfo.PORT) || ''; render(); }}\r\n disabled={!state.hasMonitoring}\r\n validateFunction={labels.validateFunction}\r\n newDevice={state.newDevice}\r\n hasMachine={state.hasMachine}\r\n />\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('portaUtilizada')}\r\n \r\n \r\n {t('selecionarDepois')}\r\n {\r\n state.selectPortNow = !state.selectPortNow;\r\n formData.PORT = (state.selectPortNow && utilityInfo && utilityInfo[labels.deviceCode] === formData.MONITORING_DEVICE && utilityInfo.PORT) || '';\r\n formData.FEEDBACK = (state.selectPortNow && utilityInfo && utilityInfo[labels.deviceCode] === formData.MONITORING_DEVICE && utilityInfo.FEEDBACK) || '';\r\n render();\r\n }}\r\n style={{ marginLeft: '8px', marginRight: '8px' }}\r\n />\r\n {t('selecionarAgora')}\r\n \r\n \r\n
\r\n {\r\n formData.PORT = item;\r\n render();\r\n }}\r\n disabled={!state.selectPortNow}\r\n />\r\n
\r\n {(labels.deviceCode === 'DAL_CODE' && !formData.MONITORING_DEVICE.startsWith('DMT')) && (\r\n
\r\n {\r\n formData.FEEDBACK = item;\r\n render();\r\n }}\r\n disabled={!state.selectPortNow}\r\n />\r\n
\r\n )}\r\n {(!allowedMonitoring || !state.hasMonitoring || formData.MONITORING_DEVICE.startsWith('DAM')) && (\r\n
\r\n )}\r\n\r\n \r\n \r\n );\r\n }\r\n };\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {t('novoUtilitario')}\r\n \r\n {formData.ID && (\r\n \r\n ID: \r\n {formData.ID}\r\n \r\n )}\r\n \r\n { formData.NAME = event.target.value; render(); }}\r\n />\r\n
\r\n \r\n
\r\n \r\n { formData.UNIT = item; render(); }}\r\n search\r\n filterOptions={fuzzySearch}\r\n placeholder={t('selecioneUnidade')}\r\n closeOnSelect={false}\r\n />\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n { formData.APPLICATION = item; render(); }}\r\n placeholder=\"Selecione a aplicação\"\r\n closeOnSelect={false}\r\n disabled={utilityType}\r\n />\r\n
\r\n
\r\n
\r\n {' '}\r\n {formData.APPLICATION === t('nobreak') && (\r\n
\r\n { formData.INSTALLATION_DATA = event.target.value; render(); }}\r\n />\r\n
\r\n )}\r\n
\r\n {formData.APPLICATION === t('nobreak') && (\r\n <>\r\n
\r\n\r\n \r\n
\r\n { formData.MANUFACTURER = event.target.value; render(); }}\r\n />\r\n
\r\n {' '}\r\n
\r\n { formData.MODEL = event.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n ({ name: e, value: e }))}\r\n value={formData.INPUT_VOLTAGE}\r\n onChange={(item) => { formData.INPUT_VOLTAGE = item; render(); }}\r\n placeholder={t('selecioneTensao')}\r\n closeOnSelect={false}\r\n />\r\n
\r\n
\r\n
\r\n {' '}\r\n
\r\n \r\n
\r\n \r\n ({ name: e, value: e }))}\r\n value={formData.OUTPUT_VOLTAGE}\r\n onChange={(item) => { formData.OUTPUT_VOLTAGE = item; render(); }}\r\n placeholder={t('selecioneTensao')}\r\n closeOnSelect={false}\r\n />\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n { formData.NOMINAL_POTENTIAL = event.target.value; render(); }}\r\n suffix=\"VA\"\r\n noSuffixBorder\r\n />\r\n
\r\n {' '}\r\n
\r\n { formData.BATTERY_LIFE = event.target.value; render(); }}\r\n suffix=\"min\"\r\n noSuffixBorder\r\n />\r\n
\r\n
\r\n
\r\n \r\n
\r\n { formData.INPUT_ELECTRIC_CURRENT = event.target.value; render(); }}\r\n suffix=\"A\"\r\n noSuffixBorder\r\n />\r\n
\r\n {' '}\r\n
\r\n { formData.OUTPUT_ELECTRIC_CURRENT = event.target.value; render(); }}\r\n suffix=\"A\"\r\n noSuffixBorder\r\n />\r\n
\r\n
\r\n
\r\n \r\n
\r\n { formData.NOMINAL_BATTERY_CAPACITY = event.target.value; render(); }}\r\n suffix=\"Ah\"\r\n noSuffixBorder\r\n />\r\n
\r\n {' '}\r\n
\r\n
\r\n\r\n {monitoringDeviceForm()}\r\n\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('possuiDatId')}\r\n \r\n
\r\n {t('nao')}\r\n { state.hasDatId = !state.hasDatId; render(); formData.DAT_ID = (state.hasDatId && utilityInfo && utilityInfo.DAT_ID) || ''; render(); }}\r\n style={{ marginLeft: '8px', marginRight: '8px' }}\r\n />\r\n {t('sim')}\r\n
\r\n
\r\n
\r\n { formData.DAT_ID = event.target.value; render(); }}\r\n disabled={!state.hasDatId}\r\n />\r\n
\r\n
\r\n \r\n )}\r\n {formData.APPLICATION === t('iluminacao') && (\r\n <>\r\n
\r\n\r\n \r\n
\r\n \r\n
\r\n \r\n ({ name: e, value: e }))}\r\n value={formData.GRID_VOLTAGE}\r\n onChange={(item) => { formData.GRID_VOLTAGE = item; render(); }}\r\n placeholder={t('selecioneTensao')}\r\n closeOnSelect={false}\r\n />\r\n
\r\n
\r\n
\r\n {' '}\r\n
\r\n {\r\n const value = Number(event.target.value);\r\n if (!Number.isNaN(value) && value >= 0) {\r\n formData.GRID_CURRENT = event.target.value;\r\n render();\r\n }\r\n }}\r\n suffix=\"A\"\r\n />\r\n
\r\n
\r\n\r\n
\r\n\r\n {monitoringDeviceForm()}\r\n\r\n
\r\n \r\n )}\r\n
\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import {\r\n ModalTitle3, IconWrapperView, CloseBtn,\r\n} from './styles';\r\nimport {\r\n Button,\r\n} from 'components';\r\nimport { Flex } from 'reflexbox';\r\nimport { UtilityIcon } from '~/icons/Utility';\r\nimport {\r\n BoxIcon, MonitoringIcon, PortIcon,\r\n} from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\nimport i18n from '../../i18n/index';\r\nimport { t } from 'i18next';\r\nimport { toast } from 'react-toastify';\r\nimport { useState, useEffect } from 'react';\r\nimport { apiCall } from '~/providers';\r\nimport { verifyInfoAdditionalParameters } from '~/helpers/additionalParameters';\r\n\r\nconst sliceStr = (str, len) => (str.length > len ? `${str.substring(0, len)}...` : str);\r\nconst addUnit = (str, unit) => (str ? `${str} ${unit}` : '-');\r\n\r\nconst formatUtilityInfo = (utilityInfo) => {\r\n const feedBack = utilityInfo?.FEEDBACK ? `F${utilityInfo?.FEEDBACK}` : utilityInfo?.FEEDBACK;\r\n const language = i18n.language === 'pt' ? 'pt-BR' : 'en';\r\n return {\r\n nobreakId: utilityInfo?.ID,\r\n name: utilityInfo?.NAME,\r\n devicePort: utilityInfo?.DMT_CODE ? feedBack : utilityInfo?.PORT,\r\n installationData: utilityInfo?.INSTALLATION_DATE ? new Date(utilityInfo.INSTALLATION_DATE).toLocaleDateString(language) : '-',\r\n unitName: utilityInfo?.UNIT_NAME ? sliceStr(utilityInfo.UNIT_NAME, 40) : '-',\r\n manufacturer: utilityInfo?.MANUFACTURER ? sliceStr(utilityInfo.MANUFACTURER, 25) : '-',\r\n model: utilityInfo?.MODEL ? sliceStr(utilityInfo.MODEL, 25) : '-',\r\n application: utilityInfo?.APPLICATION,\r\n inputVoltage: addUnit(utilityInfo?.INPUT_VOLTAGE, 'VAC'),\r\n outputVoltage: addUnit(utilityInfo?.OUTPUT_VOLTAGE, 'VAC'),\r\n gridCurrent: utilityInfo?.GRID_CURRENT ? (\r\n \r\n {utilityInfo.GRID_CURRENT}\r\n  A\r\n \r\n ) : '-',\r\n gridVoltage: utilityInfo?.GRID_VOLTAGE ? (\r\n \r\n {utilityInfo.GRID_VOLTAGE}\r\n  VAC\r\n \r\n ) : '-',\r\n deviceCode: (utilityInfo?.DMT_CODE || utilityInfo?.DAL_CODE || utilityInfo?.DAM_ILLUMINATION_CODE),\r\n nominalPotential: addUnit(utilityInfo?.NOMINAL_POTENTIAL, 'VA'),\r\n nominalBatteryLife: addUnit(utilityInfo?.NOMINAL_BATTERY_LIFE, 'min'),\r\n inputElectricCurrent: addUnit(utilityInfo?.INPUT_ELECTRIC_CURRENT, 'A'),\r\n outputElectricCurrent: addUnit(utilityInfo?.OUTPUT_ELECTRIC_CURRENT, 'A'),\r\n nominalBatteryCapacity: addUnit(utilityInfo?.NOMINAL_BATTERY_CAPACITY, 'Ah'),\r\n dmtCode: utilityInfo?.DMT_CODE,\r\n nobreakPort: utilityInfo?.PORT,\r\n datCode: utilityInfo?.DAT_CODE,\r\n };\r\n};\r\n\r\nexport const ViewUtility = ({\r\n onClickEdit, onCancel, utilityInfo, utilityType,\r\n}): JSX.Element => {\r\n const [additionalParameters, setAdditionalParameters] = useState<{ COLUMN_NAME: string; COLUMN_VALUE: string; }[]>([]);\r\n const utilityValues = formatUtilityInfo(utilityInfo);\r\n\r\n async function getNobreakAdditionalParameters(NOBREAK_ID) {\r\n try {\r\n const parameters = await apiCall('/dmt/get-nobreak-additional-parameters', { NOBREAK_ID });\r\n setAdditionalParameters(parameters);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n utilityType === 'Nobreak' && getNobreakAdditionalParameters(utilityValues.nobreakId);\r\n }, []);\r\n\r\n return (\r\n
\r\n \r\n {t('visualizarUtilitario')}\r\n
\r\n \r\n \r\n \r\n \r\n {utilityValues.name || '-'}\r\n \r\n
\r\n\r\n \r\n \r\n \r\n {t('unidade')}\r\n {utilityValues.unitName}\r\n \r\n \r\n {t('aplicacao')}\r\n {utilityValues.application || '-'}\r\n \r\n {utilityType === t('nobreak') && (\r\n \r\n {t('dataInstalacao')}\r\n {utilityValues.installationData}\r\n \r\n )}\r\n \r\n
\r\n\r\n {utilityType === t('nobreak') && (\r\n \r\n \r\n {t('fabricante')}\r\n {utilityValues.manufacturer}\r\n \r\n \r\n {t('modelo')}\r\n {utilityValues.model}\r\n \r\n \r\n {t('tensaoDeEntrada')}\r\n {utilityValues.inputVoltage}\r\n \r\n \r\n {t('tensaoDeSaida')}\r\n {utilityValues.outputVoltage}\r\n \r\n \r\n )}\r\n {utilityType === t('iluminacao') && (\r\n \r\n \r\n {t('tensaoDaRede')}\r\n {utilityValues.gridVoltage}\r\n \r\n \r\n {t('correnteDaRede')}\r\n {utilityValues.gridCurrent}\r\n \r\n \r\n )}\r\n
\r\n\r\n {utilityType === t('nobreak') && (\r\n \r\n \r\n {t('potenciaNominal')}\r\n {utilityValues.nominalPotential}\r\n \r\n \r\n {t('autonomiaNominalDaBateriaInterna')}\r\n {utilityValues.nominalBatteryLife}\r\n \r\n \r\n )}\r\n\r\n {utilityType === t('nobreak') && (\r\n \r\n \r\n {t('correnteEletricaDeEntrada')}\r\n {utilityValues.inputElectricCurrent}\r\n \r\n \r\n {t('correnteEletricaDeSaida')}\r\n {utilityValues.outputElectricCurrent}\r\n \r\n \r\n )}\r\n {utilityType === t('nobreak') && (\r\n \r\n \r\n {t('capacidadeNominalDaBateria')}\r\n {utilityValues.nominalBatteryCapacity}\r\n \r\n \r\n )}\r\n\r\n \r\n
\r\n\r\n {utilityType === t('nobreak') && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('monitoramento')}\r\n {utilityValues.dmtCode || '-'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('portaDoDmt')}\r\n {utilityValues.nobreakPort || '-'}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n DAT ID\r\n {utilityValues.datCode || '-'}\r\n \r\n \r\n \r\n \r\n \r\n {additionalParameters.length > 0 && verifyInfoAdditionalParameters(additionalParameters, true)}\r\n \r\n \r\n \r\n )}\r\n\r\n {utilityType === t('iluminacao') && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('dispositivo')}\r\n {utilityValues.deviceCode || '-'}\r\n \r\n \r\n {\r\n utilityValues.deviceCode && !utilityValues.deviceCode.startsWith('DAM') && (\r\n \r\n \r\n \r\n \r\n \r\n {utilityInfo?.DMT_CODE ? t('feedbackDoDmt') : t('portaDoDal')}\r\n { utilityValues.devicePort || '-'}\r\n \r\n \r\n )\r\n }\r\n \r\n )}\r\n \r\n\r\n
\r\n {t('botaoFechar')}\r\n {/* eslint-disable-next-line react/jsx-no-bind */}\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import { useState } from 'react';\r\n\r\nimport { useHistory } from 'react-router-dom';\r\n\r\nimport { Header } from '../Analysis/Header';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nexport const ClientPanelLayout = (): JSX.Element => {\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n const links = [\r\n {\r\n link: '/painel/client-painel',\r\n title: 'Painel',\r\n },\r\n ];\r\n\r\n if ((!profile.manageAllClients) && (profile.manageSomeClient) && !profile.permissions.isInstaller && profile.permissions.CLIENT_MANAGE.includes(145)) {\r\n links.push({\r\n link: '/painel/projeto-bb/kpis',\r\n prefix: '/painel/projeto-bb/',\r\n title: 'Informações do Projeto',\r\n });\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n \r\n );\r\n};\r\n","import { useState, useEffect, useRef } from 'react';\r\nimport moment from 'moment';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { CSVLink } from 'react-csv';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport { toast } from 'react-toastify';\r\nimport { SingleDatePicker } from 'react-dates';\r\nimport i18n from '~/i18n';\r\nimport {\r\n ModalTitle, ModalTitleContainer, ModalSection, MobileWrapper, Container, ModalDesktop, SeeAssociationGroups, SimpleButton, SectionContainer, IconWrapper2,\r\n Text,\r\n ContentDate,\r\n Label,\r\n StyledCalendarIcon,\r\n BtnExport,\r\n ExportWorksheet,\r\n ContentTab,\r\n StyledList,\r\n StyledItem,\r\n StyledName,\r\n StyledLink,\r\n} from './styles';\r\nimport {\r\n Loader,\r\n ModalWindow,\r\n NewTable,\r\n ActionButton,\r\n Checkbox,\r\n LayerBackgroundModal,\r\n Card,\r\n Select,\r\n} from 'components';\r\nimport { AccordionV2 } from 'components/Accordion';\r\nimport { getDaySched } from 'helpers/scheduleData';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport {\r\n EditIcon, CloseIcon, OpenEyeIcon, DeleteOutlineIcon,\r\n} from 'icons';\r\nimport { apiCall, ApiParams, ApiResps } from 'providers';\r\nimport { FullProg_v4 } from 'providers/types';\r\nimport { colors } from 'styles/colors';\r\nimport { FormAssociateDevs } from './FormAssociateDevs';\r\nimport { FormEditClass } from './FormEditClass';\r\nimport { FormEditDut } from './FormEditDut';\r\nimport { FormEditGroup } from './FormEditGroup';\r\nimport { FormEditRoomType } from './FormEditRoomType';\r\nimport { FormEditUnit } from './FormEditUnit';\r\nimport { FormEditModel } from './FormEditModel';\r\nimport { FormEditAssociation } from './FormEditAssociation';\r\nimport { TableClasses } from './Tables/TableClasses';\r\nimport { RateCicleType, RateModels, TableModels } from './Tables/TableModels';\r\nimport { TableDuts } from './Tables/TableDuts';\r\nimport { TableFreeDevices } from './Tables/TableFreeDevices';\r\nimport { TableRoomTypes } from './Tables/TableRoomTypes';\r\nimport { TableUnits } from './Tables/TableUnits';\r\nimport { FormEditMachine } from './FormEditMachine';\r\nimport { FormEditCreateCicle } from './FormEditCreateCicle';\r\nimport { FormEditCicle } from './FormEditCicle';\r\nimport { FormEditHeatExchanger } from './FormEditHeatExchanger';\r\nimport queryString from 'query-string';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { FormEditUtility } from './FormEditUtility';\r\nimport { StyledLine } from '../Analysis/Header/styles';\r\nimport { ViewUtility } from './ViewUtility';\r\nimport { getDatesRange } from 'helpers/formatTime';\r\nimport { ClientPanelLayout } from './ClientPanelLayout';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nconst CSVheader = [\r\n { label: 'Cliente', key: 'cliente' },\r\n { label: 'Unidade', key: 'unidade' },\r\n { label: 'ID da Unidade', key: 'id' },\r\n { label: 'Disponibilidade Online (%)', key: 'disponibilidade' },\r\n { label: 'Dia', key: 'dia' },\r\n];\r\n\r\nconst modalOptions = ['create-cicle', 'edit-model', 'edit-cicle', 'edit-machine', 'view-utility', 'edit-create-utility', 'edit-create-heat-exchanger'];\r\n\r\nconst daysOfTheWeek = ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb'];\r\n\r\nconst modalWidthByType = {\r\n 'edit-alert': '950px',\r\n 'edit-room-type': '600px',\r\n 'edit-association': '700px',\r\n 'edit-create-heat-exchanger': '600px',\r\n 'edit-create-utility': '650px',\r\n 'view-utility': '600px',\r\n};\r\n\r\nconst modalPaddingByType = {\r\n 'edit-alert': '20px',\r\n 'edit-room-type': '20px',\r\n 'edit-association': '0px',\r\n};\r\n\r\nexport type CicleType = {\r\n modelId: number,\r\n subGroupName: string,\r\n groupName: string,\r\n rateModalityName: string,\r\n}\r\ninterface DevsExtraInfo {\r\n UNIT_ID: number\r\n DEV_ID?: string\r\n DAC_ID?: string\r\n DAM_ID?: string\r\n DUT_ID?: string\r\n type?: 'DAC' | 'DUT' | 'DAM'\r\n MACHINE_ID?: number\r\n}\r\ninterface DamsExtraInfo extends DevsExtraInfo {\r\n DAM_ID: string\r\n units?: {}[]\r\n groups?: {}[]\r\n}\r\ntype DacsExtraInfo = DevsExtraInfo\r\ntype DutsExtraInfo = DevsExtraInfo\r\ninterface FreeDevExtraInfo extends DevsExtraInfo {\r\n freeDevChecked?: boolean\r\n}\r\n\r\ntype IluminationListItem = ApiResps['/dal/get-dal-illumination-list'][number] & { checked?: boolean };\r\ntype NobreakListItem = ApiResps['/dmt/get-dmt-nobreak-list'][number] & { checked?: boolean };\r\n\r\ntype EnvironmentList = {\r\n DEV_ID: string,\r\n UNIT_ID: number,\r\n UNIT_NAME: string,\r\n ENVIRONMENT_ID: number,\r\n ROOM_NAME: string,\r\n ENVIRONMENTS_ROOM_TYPES_ID: number,\r\n PLACEMENT: string,\r\n ISVISIBLE: number,\r\n temprtAlert: null,\r\n status: string,\r\n CITY_ID: string,\r\n CITY_NAME: string,\r\n STATE_ID: string,\r\n STATE_NAME: string,\r\n COUNTRY_NAME: string,\r\n LAT: string,\r\n LON: string,\r\n CLIENT_NAME: string,\r\n CLIENT_ID: number,\r\n RTYPE_ID: number,\r\n RTYPE_NAME: string,\r\n DUT_ID?: string,\r\n type?: string,\r\n}\r\n\r\nexport const ClientPanelPage = (): JSX.Element => {\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const [profile] = useState(getUserProfile);\r\n const [state, render, setState] = useStateVar({\r\n isLoading: true,\r\n clients: [] as {}[],\r\n selectedClient: null as null | { CLIENT_ID: number },\r\n async fetchServerData() {\r\n try {\r\n if (profile.viewMultipleClients) {\r\n setState({ isLoading: true });\r\n const { list } = await apiCall('/clients/get-clients-list', {});\r\n state.clients = list;\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n setState({ isLoading: false });\r\n },\r\n });\r\n\r\n let clientId = (state.selectedClient && state.selectedClient.CLIENT_ID);\r\n if ((!clientId) && profile.singleClientViewId) {\r\n clientId = profile.singleClientViewId;\r\n }\r\n\r\n useEffect(() => {\r\n state.fetchServerData();\r\n }, []);\r\n\r\n if (state.isLoading) return ;\r\n\r\n return (\r\n
\r\n {profile.viewMultipleClients && (\r\n { setState({ selectedClient: item }); }}\r\n style={{ width: '300px' }}\r\n />\r\n )}\r\n {(clientId)\r\n ? \r\n :
Nenhum cliente selecionado
}\r\n
\r\n );\r\n};\r\n\r\nexport type RateModelsType = {\r\n modelName: string,\r\n modelId: number,\r\n distributorId: number,\r\n hide: boolean,\r\n subGroupId: number,\r\n subGroupName: string,\r\n rateGroupId: number,\r\n groupName: string,\r\n rateModalityId: number,\r\n rateModalityName: string,\r\n distributorTag: string,\r\n distributorLabel: string,\r\n rateCicles: {\r\n CICLE_ID: number\r\n MODEL_ID: number\r\n START_CICLE_DATE: string\r\n END_CICLE_DATE: string\r\n VIGENCYCICLE: boolean\r\n PIS: number\r\n COFINS: number\r\n ICMS: number\r\n CONVENTIONALRATE_PARAMETERS?: {\r\n RATE: string\r\n CONVENTIONALRATE_ID: number,\r\n }\r\n WHITERATE_PARAMETERS?: {\r\n WHITERATE_ID: number,\r\n RATE_PONTA: string,\r\n RATE_OUTPONTA: string,\r\n START_PONTA: string,\r\n END_PONTA: string,\r\n FIRST_MID_RATE: string,\r\n START_FIRST_MID_RATE: string,\r\n END_FIRST_MID_RATE: string,\r\n LAST_MID_RATE?: string,\r\n START_LAST_MID_RATE: string,\r\n END_LAST_MID_RATE: string,\r\n },\r\n }[]\r\n}\r\n\r\nconst deviceLink = (props, PROP) => (\r\n
\r\n {props[PROP] ? (\r\n \r\n {props[PROP]}\r\n \r\n ) : '-'}\r\n
\r\n);\r\n\r\nexport const ClientPanel = ({ clientId, clientInfo }): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n const csvLinkEl = useRef();\r\n const history = useHistory();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n selectedClient: null as null | { NAME: string },\r\n clientId: null as null | number,\r\n openModal: null as null | string,\r\n cicleToEdit: {} as CicleType || null,\r\n selectedModelId: null as number | null,\r\n rateModels: [] as RateModelsType[],\r\n isLoadingDuts: false,\r\n roomTypes: [] as (ApiResps['/clients/get-roomtypes-list']['rtypes'] & ({\r\n DUTS_COUNT?: number\r\n DRIS_COUNT?: number\r\n schedCol?: string\r\n })[]),\r\n units: [] as (ApiResps['/clients/get-units-list'] & ({\r\n groups?: {}[]\r\n duts?: {}[]\r\n DACS_COUNT?: number\r\n DUTS_COUNT?: number\r\n DAMS_COUNT?: number\r\n DRIS_COUNT?: number\r\n disp?: number\r\n })[]),\r\n energyMetersList: [] as (ApiResps['/energy/get-energy-list']['list']),\r\n timezonesList: [] as { value: number, label: string }[],\r\n statesList: [] as { STATE_NAME: string, STATE_ID: string, COUNTRY_ID: number }[],\r\n citiesList: [] as { CITY_NAME: string, CITY_ID: string, STATE_ID: string }[],\r\n countriesList: [] as { COUNTRY_NAME: string, COUNTRY_ID: number }[],\r\n accessPointsList: [] as {\r\n name: string,\r\n cnpjs: string[],\r\n access_points: string[]\r\n }[],\r\n damsListFull: [] as (ApiResps['/dam/get-dams-list']['list'] & (DamsExtraInfo[])),\r\n damsListDac: [] as (ApiResps['/dam/get-dams-list']['list'] & (DamsExtraInfo[])),\r\n damsList: [] as (ApiResps['/dam/get-dams-list']['list'] & (DamsExtraInfo[])),\r\n dacsList: [] as (ApiResps['/dac/get-dacs-list']['list'] & (DacsExtraInfo[])),\r\n environmentList: [] as EnvironmentList[],\r\n dutsList: [] as (ApiResps['/dut/get-duts-list']['list'] & (DutsExtraInfo[])),\r\n drisList: [] as (ApiResps['/dri/get-dris-list']['list']),\r\n modelsChillerList: [] as (ApiResps['/dri/get-chiller-models-list']['list']),\r\n vavsList: [] as (ApiResps['/dri/get-dri-vavs-list']['list']),\r\n waterList: [] as (ApiResps['/get-integrations-list/water']['list']),\r\n groupsList: [] as (ApiResps['/clients/get-groups-list'] & ({\r\n DEVS_COUNT?: number\r\n dacs?: { DAC_ID: string }[]\r\n checked?: boolean\r\n }[])),\r\n machinesWithAssetsList: [] as (ApiResps['/clients/get-machines-list']&({\r\n DEVS_QUANTITY?: number\r\n dacs?: { DAC_ID: string }[]\r\n checked?: boolean\r\n }[])),\r\n associationsList: [] as (ApiResps['/clients/get-associations-list']['list'] & ({\r\n checked?: boolean\r\n UNIT_NAME?: string\r\n GROUPS_COUNT?: string\r\n }[])),\r\n classesList: [] as { CLASS_ID: number, CLASS_TYPE: string, CLASS_NAME: string }[],\r\n distributorsList: [] as { value: number, name: string, tag: string }[],\r\n unitsOpt: [] as { value: number, name: string }[],\r\n comboOpts: {} as {\r\n fluids: { value: number, name: string, id: string, }[],\r\n types: { value: number, name: string, id: string, }[],\r\n brands: { value: number, name: string, id: string, }[],\r\n applics: { value: number, name: string, id: string, }[],\r\n roles: { value: number, name: string }[],\r\n chillerModels: { value: number, name: string }[],\r\n chillerLines: { value: number, name: string }[],\r\n chillerGateways: { value: number, name: string }[],\r\n },\r\n freeDevs: [] as FreeDevExtraInfo[],\r\n showDAMs: false,\r\n showDUTs: false,\r\n selectedUnit: null as null|{ UNIT_ID: number; UNIT_NAME: string; },\r\n selectedGroup: null as null|{ GROUP_ID: number, GROUP_NAME: string, UNIT_ID: number, DEV_AUT: string, DUT_ID: string, DAM_ID: string },\r\n selectedMachine: null as null|(ApiResps['/clients/get-machines-list'][0]),\r\n isViewMachine: false as boolean,\r\n selectedAssociation: null as null|ApiResps['/clients/get-associations-list']['list'],\r\n selectedDut: null as null|{},\r\n selectedRoomType: null as null|{\r\n RTYPE_ID: number;\r\n RTYPE_NAME: string;\r\n TUSEMIN: number;\r\n TUSEMAX: number;\r\n fullProg: FullProg_v4;\r\n CO2MAX: number;\r\n HUMIMAX: number;\r\n HUMIMIN: number;\r\n },\r\n selectedAlert: null as null | {},\r\n selectedClass: null as null | { CLASS_ID: number, CLASS_TYPE: string, CLASS_NAME: string },\r\n selectedRateModel: null as null | RateModels,\r\n selectedRateCicle: null as null | RateCicleType,\r\n selectedHeatExchanger: null as null | {},\r\n unitsDisp: {} as {\r\n [unitId: number]: {\r\n clientId: number;\r\n clientName: string;\r\n unitId: number;\r\n unitName: string;\r\n avgDisp: number;\r\n dispList: {\r\n disponibility: number;\r\n YMD: string;\r\n }[];\r\n };\r\n },\r\n deleteUnitsOpen: false as boolean,\r\n unitsDispLoading: false,\r\n csvData: [] as {}[],\r\n // openModal: false,\r\n lastDate: moment().subtract(1, 'days'),\r\n selectedDate: moment().subtract(1, 'days'),\r\n datesRange: getDatesRange(moment().subtract(1, 'days'), 7) as {\r\n mdate: moment.Moment,\r\n YMD: string,\r\n DMY: string,\r\n }[],\r\n focusedInput: null,\r\n focused: false,\r\n gettingCsv: false,\r\n\r\n associationsColumns: [\r\n {\r\n name: 'name',\r\n value: 'Nome',\r\n width: 200,\r\n render: (props) => (\r\n
showGroups(props)}>\r\n {props.ASSOC_NAME}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'unit',\r\n value: 'Unidade',\r\n accessor: 'UNIT_NAME',\r\n width: 120,\r\n textAlign: 'center',\r\n },\r\n {\r\n name: 'groups',\r\n value: 'Máquinas',\r\n accessor: 'GROUPS_COUNT',\r\n width: 120,\r\n textAlign: 'center',\r\n },\r\n profile.manageAllClients && {\r\n name: 'edit',\r\n value: 'Editar',\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n openCreateEditAssociation(props)} variant=\"blue-inv\">\r\n \r\n \r\n ),\r\n },\r\n profile.permissions.isAdminSistema && {\r\n name: 'delete',\r\n value: 'Excluir',\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 80,\r\n render: (props) => (\r\n {\r\n props.checked = !props.checked;\r\n render();\r\n }}\r\n />\r\n ),\r\n },\r\n ].filter((x) => !!x),\r\n\r\n groupColumns: [\r\n {\r\n name: 'name',\r\n value: 'Nome',\r\n accessor: 'GROUP_NAME',\r\n },\r\n {\r\n name: 'unit',\r\n value: 'Unidade',\r\n accessor: 'UNIT_NAME',\r\n },\r\n {\r\n name: 'city',\r\n value: 'Cidade',\r\n accessor: 'CITY_NAME',\r\n },\r\n {\r\n name: 'state',\r\n value: 'Estado',\r\n accessor: 'STATE_ID',\r\n textAlign: 'center',\r\n },\r\n {\r\n name: 'devices',\r\n value: 'Dispositivos',\r\n accessor: 'DEVS_COUNT',\r\n width: 120,\r\n textAlign: 'center',\r\n },\r\n profile.manageAllClients && {\r\n name: 'edit',\r\n value: 'Editar',\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n openCreateEditGroup(props.unit, props)} variant=\"blue-inv\">\r\n \r\n \r\n ),\r\n },\r\n profile.permissions.isAdminSistema && {\r\n name: 'delete',\r\n value: 'Excluir',\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 80,\r\n render: (props) => (\r\n {\r\n props.checked = !props.checked;\r\n render();\r\n }}\r\n />\r\n ),\r\n },\r\n ],\r\n\r\n machineColumns: [\r\n {\r\n name: 'group_id',\r\n value: 'Id',\r\n accessor: 'GROUP_ID',\r\n },\r\n {\r\n name: 'name',\r\n value: 'Máquina',\r\n accessor: 'GROUP_NAME',\r\n },\r\n {\r\n name: 'unit',\r\n value: 'Unidade',\r\n accessor: 'UNIT_NAME',\r\n },\r\n {\r\n name: 'assets',\r\n value: 'Ativos',\r\n accessor: 'ASSETS_COUNT',\r\n width: 120,\r\n textAlign: 'center',\r\n },\r\n {\r\n name: 'devices',\r\n value: 'Dispositivos',\r\n accessor: 'DEVS_QUANTITY',\r\n width: 120,\r\n textAlign: 'center',\r\n },\r\n profile.manageAllClients && {\r\n name: 'actions',\r\n value: 'Ações',\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n
\r\n openCreateEditMachine(props.unit, props, true)}>\r\n \r\n \r\n openCreateEditMachine(props.unit, props, false)}>\r\n \r\n \r\n
\r\n ),\r\n },\r\n profile.permissions.isAdminSistema && {\r\n name: 'delete',\r\n value: 'Excluir',\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 80,\r\n render: (props) => (\r\n {\r\n props.checked = !props.checked;\r\n render();\r\n }}\r\n />\r\n ),\r\n },\r\n ],\r\n heatExchangerColumns: [\r\n {\r\n name: 'name',\r\n value: 'Nome',\r\n accessor: 'NAME',\r\n },\r\n {\r\n name: 't_min',\r\n value: 'T-min (Saída)',\r\n accessor: 'T_MIN',\r\n },\r\n {\r\n name: 't_max',\r\n value: 'T-max (Saída)',\r\n accessor: 'T_MAX',\r\n },\r\n {\r\n name: 'deltaT_min',\r\n value: 'ΔT-min',\r\n accessor: 'DELTA_T_MIN',\r\n },\r\n {\r\n name: 'deltaT_max',\r\n value: 'ΔT-max',\r\n accessor: 'DELTA_T_MAX',\r\n },\r\n profile.manageAllClients && {\r\n name: 'actions',\r\n value: '',\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n
\r\n deleteHeatExchanger(props.ID)}\r\n variant=\"red-inv\"\r\n >\r\n \r\n \r\n openCreateEditHeatExchangere(props)} variant=\"blue-inv\">\r\n \r\n \r\n
\r\n ),\r\n },\r\n ],\r\n heatExchangersList: [] as (ApiResps['/heat-exchanger/get-list-v2']),\r\n nobreaksColumns: [\r\n {\r\n name: 'id',\r\n value: 'Id',\r\n accessor: 'ID',\r\n },\r\n {\r\n name: 'unit',\r\n value: t('unidade'),\r\n accessor: 'UNIT_NAME',\r\n render: (props) => (\r\n
\r\n {props.UNIT_NAME || '-'}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'utility',\r\n value: t('utilitario'),\r\n accessor: 'NAME',\r\n render: (props) => (\r\n \r\n {props.NAME || '-'}\r\n \r\n ),\r\n },\r\n {\r\n name: 'manufacturer',\r\n value: t('fabricante'),\r\n accessor: 'MANUFACTURER',\r\n render: (props) => (\r\n
\r\n {props.MANUFACTURER || '-'}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'model',\r\n value: t('modelo'),\r\n accessor: 'MODEL',\r\n render: (props) => (\r\n
\r\n {props.MODEL || '-'}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'battery',\r\n value: t('bateria'),\r\n accessor: 'NOMINAL_BATTERY_LIFE',\r\n render: (props) => (\r\n
\r\n {props.NOMINAL_BATTERY_LIFE ? `${props.NOMINAL_BATTERY_LIFE} min` : '-'}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'monitoring',\r\n value: t('monitoramento'),\r\n accessor: 'DMT_CODE',\r\n render: (props) => deviceLink(props, 'DMT_CODE'),\r\n },\r\n {\r\n name: 'feedback',\r\n value: t('feedback'),\r\n accessor: 'PORT',\r\n render: (props) => (\r\n
\r\n {props.PORT ? `F${props.PORT}` : '-'}\r\n
\r\n ),\r\n },\r\n ...getUtilityActionColumns(),\r\n ],\r\n illuminationColumns: [\r\n {\r\n name: 'id',\r\n value: 'Id',\r\n accessor: 'ID',\r\n },\r\n {\r\n name: 'unit',\r\n value: t('unidade'),\r\n accessor: 'UNIT_NAME',\r\n },\r\n {\r\n name: 'utility',\r\n value: t('utilitario'),\r\n accessor: 'NAME',\r\n render: (props) => (\r\n \r\n {props.NAME}\r\n \r\n ),\r\n },\r\n {\r\n name: 'device',\r\n value: t('dispositivo'),\r\n accessor: 'DEVICE_CODE',\r\n render: (props) => deviceLink(props, 'DEVICE_CODE'),\r\n },\r\n {\r\n name: 'PORT',\r\n value: t('porta'),\r\n accessor: 'PORT',\r\n render: (props) => (\r\n
\r\n {props.PORT || '-'}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'FEEDBACK',\r\n value: t('feedback'),\r\n accessor: 'FEEDBACK',\r\n render: (props) => (\r\n
\r\n {props.FEEDBACK ? 'F'.concat(props.FEEDBACK) : '-'}\r\n
\r\n ),\r\n },\r\n ...getUtilityActionColumns(),\r\n ],\r\n selectedUtilityItem: null as null | {},\r\n selectedUtility: t('nobreak') as string,\r\n iluminationList: [] as IluminationListItem[],\r\n nobreakList: [] as NobreakListItem[],\r\n };\r\n state.groupColumns = state.groupColumns.filter((x) => !!x);\r\n\r\n state.machineColumns = state.machineColumns.filter((x) => !!x);\r\n\r\n state.heatExchangerColumns = state.heatExchangerColumns.filter((x) => !!x);\r\n\r\n return state;\r\n });\r\n\r\n function getUtilityActionColumns() {\r\n const actionColumns = [] as any;\r\n if (profile.manageAllClients) {\r\n actionColumns.push({\r\n name: 'actions',\r\n value: t('acoes'),\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 120,\r\n render: (props) => (\r\n
\r\n openViewUtility(props)}>\r\n \r\n \r\n openCreateEditUtility(props)}>\r\n \r\n \r\n
\r\n ),\r\n });\r\n }\r\n if (profile.permissions.isAdminSistema) {\r\n actionColumns.push({\r\n name: 'delete',\r\n value: t('excluir'),\r\n sortable: false,\r\n textAlign: 'center',\r\n width: 80,\r\n render: (props) => (\r\n {\r\n props.checked = !props.checked;\r\n render();\r\n }}\r\n />\r\n ),\r\n });\r\n }\r\n return actionColumns;\r\n }\r\n\r\n const deleteHeatExchanger = async (ID) => {\r\n try {\r\n await apiCall('/heat-exchanger/delete-info', { CLIENT_ID: clientId, ID });\r\n toast.success('Trocador de calor deletado com sucesso');\r\n await fetchServerData();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro ao deletar trocador de calor. Possivelmente o tipo está sendo utilizado em algum DAC.');\r\n }\r\n };\r\n\r\n function onDateChange(date, dateEnd) {\r\n state.selectedDate = date;\r\n state.datesRange = getDatesRange(date, 7);\r\n render();\r\n }\r\n\r\n function clearServerData() {\r\n state.roomTypes = [];\r\n state.units = [];\r\n state.timezonesList = [];\r\n state.statesList = [];\r\n state.citiesList = [];\r\n state.damsListDac = [];\r\n state.damsListFull = [];\r\n state.damsList = [];\r\n state.dacsList = [];\r\n state.dutsList = [];\r\n state.drisList = [];\r\n state.modelsChillerList = [];\r\n state.vavsList = [];\r\n state.groupsList = [];\r\n state.classesList = [];\r\n state.associationsList = [];\r\n state.machinesWithAssetsList = [];\r\n state.unitsOpt = [];\r\n }\r\n\r\n function clearProcessedData() {\r\n state.damsListDac = [];\r\n state.damsList = [];\r\n state.freeDevs = [];\r\n state.showDAMs = false;\r\n state.showDUTs = false;\r\n state.selectedUnit = null;\r\n state.selectedGroup = null;\r\n state.selectedDut = null;\r\n state.selectedRoomType = null;\r\n state.selectedAlert = null;\r\n state.selectedClass = null;\r\n state.selectedAssociation = null;\r\n }\r\n\r\n function resetParamsUrl() {\r\n const linkBase = history.location.pathname;\r\n history.push(linkBase);\r\n }\r\n\r\n function setEnvironmentList(environments) {\r\n const newListEnvFiltered = [] as EnvironmentList[];\r\n const listIds = [] as number[];\r\n environments.forEach((item) => {\r\n if (listIds.includes(item.ENVIRONMENT_ID)) {\r\n return;\r\n }\r\n newListEnvFiltered.push({\r\n DEV_ID: item.DUT_CODE || '-',\r\n UNIT_ID: item.UNIT_ID,\r\n UNIT_NAME: item.UNIT_NAME,\r\n ENVIRONMENT_ID: item.ENVIRONMENT_ID,\r\n ROOM_NAME: item.ENVIRONMENT_NAME,\r\n ENVIRONMENTS_ROOM_TYPES_ID: item.ENVIRONMENTS_ROOM_TYPES_ID,\r\n PLACEMENT: 'AMB',\r\n ISVISIBLE: 1,\r\n temprtAlert: null,\r\n status: '',\r\n CITY_ID: item.CITY_ID,\r\n CITY_NAME: item.CITY_NAME,\r\n STATE_ID: item.STATE_ID,\r\n STATE_NAME: item.STATE_NAME,\r\n COUNTRY_NAME: item.COUNTRY_NAME,\r\n LAT: item.LAT,\r\n LON: item.LON,\r\n CLIENT_NAME: item.CLIENT_NAME,\r\n CLIENT_ID: item.CLIENT_ID,\r\n RTYPE_ID: item.RTYPE_ID,\r\n RTYPE_NAME: item.RTYPE_NAME,\r\n checked: false,\r\n });\r\n listIds.push(item.ENVIRONMENT_ID);\r\n });\r\n state.dutsList.forEach((item) => {\r\n if (!item.ENVIRONMENT_ID && item.DEV_ID) {\r\n newListEnvFiltered.push({\r\n DEV_ID: item.DEV_ID || '-',\r\n UNIT_ID: item.UNIT_ID,\r\n UNIT_NAME: item.UNIT_NAME,\r\n ENVIRONMENT_ID: item.ENVIRONMENT_ID,\r\n ROOM_NAME: item.ROOM_NAME,\r\n ENVIRONMENTS_ROOM_TYPES_ID: item.ENVIRONMENTS_ROOM_TYPES_ID,\r\n PLACEMENT: 'AMB',\r\n ISVISIBLE: 1,\r\n temprtAlert: null,\r\n status: '',\r\n CITY_ID: item.CITY_ID,\r\n CITY_NAME: item.CITY_NAME,\r\n STATE_ID: item.STATE_ID,\r\n STATE_NAME: item.STATE_NAME,\r\n COUNTRY_NAME: item.COUNTRY_NAME,\r\n LAT: item.LAT,\r\n LON: item.LON,\r\n CLIENT_NAME: item.CLIENT_NAME,\r\n CLIENT_ID: item.CLIENT_ID,\r\n RTYPE_ID: item.RTYPE_ID,\r\n RTYPE_NAME: item.RTYPE_NAME,\r\n checked: false,\r\n });\r\n }\r\n });\r\n state.environmentList = newListEnvFiltered;\r\n }\r\n\r\n async function fetchServerData(clientId?: null|number) {\r\n try {\r\n state.isLoading = true; render();\r\n\r\n if (clientId) state.clientId = clientId;\r\n clientId = state.clientId;\r\n\r\n clearServerData();\r\n\r\n if (!clientId) {\r\n state.isLoading = false; render();\r\n return;\r\n }\r\n\r\n await Promise.all([\r\n apiCall('/dmt/get-dmt-nobreak-list', { clientIds: [clientId], INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then((data) => { state.nobreakList = data.map((nobreak) => ({ ...nobreak, checked: false })); }),\r\n apiCall('/dal/get-dal-illumination-list', { clientIds: [clientId], INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then((data) => { state.iluminationList = data.map((illum) => ({ ...illum, checked: false })); }),\r\n apiCall('/heat-exchanger/get-list-v2', { CLIENT_ID: clientId }).then((data) => { state.heatExchangersList = data; }),\r\n apiCall('/dam/get-dams-list', { clientId, includeDacs: true }).then(({ list }) => { state.damsListFull = list; }),\r\n apiCall('/dac/get-dacs-list', { clientId }).then(({ list }) => { state.dacsList = list; }),\r\n apiCall('/dut/get-duts-list', { clientId, INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then(({ list }) => { state.dutsList = list.map((item) => ({ ...item, checked: false })); }),\r\n apiCall('/dri/get-dris-list', { clientIds: [clientId] }).then(({ list }) => { state.drisList = list; }),\r\n apiCall('/dri/get-dri-vavs-list', { clientId }).then(({ list }) => { state.vavsList = list.map((item) => ({ ...item, checked: false })); }),\r\n apiCall('/dri/get-chiller-models-list', {}).then(({ list }) => { state.modelsChillerList = list; }),\r\n apiCall('/clients/get-units-list', { CLIENT_ID: clientId, INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then((list) => { list.forEach((unit) => Object.assign(unit, { LATLON: (unit.LAT && unit.LON) ? `${unit.LAT}, ${unit.LON}` : '-' })); state.units = list; list.forEach((unit) => state.unitsOpt.push({ value: unit.UNIT_ID, name: unit.UNIT_NAME })); }),\r\n apiCall('/clients/get-groups-list', { clientIds: [clientId] }).then((list) => { state.groupsList = list; }),\r\n apiCall('/clients/get-machines-list', { clientIds: [clientId], INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then((list) => { state.machinesWithAssetsList = list; }),\r\n apiCall('/clients/get-roomtypes-list', { CLIENT_ID: clientId }).then(({ rtypes }) => { state.roomTypes = rtypes; }),\r\n apiCall('/get-timezones-list-with-offset', {}).then(({ list }) => {\r\n state.timezonesList = list.map((item) => ({ label: `${item.area} (${item.offset})`, value: item.id }));\r\n }),\r\n apiCall('/dac/get-states-list', { full: true }).then(({ list }) => {\r\n state.statesList = list.map((item) => ({ STATE_NAME: item.fullName, STATE_ID: item.fullName, COUNTRY_ID: item.countryId }));\r\n }),\r\n (async function () {\r\n if (profile.manageAllClients) {\r\n const { list } = await apiCall('/four-docs/get-login-data');\r\n state.accessPointsList = list.providers;\r\n }\r\n }()),\r\n apiCall('/dac/get-cities-list', {}).then((responseData) => {\r\n state.citiesList = responseData.list.map((item) => ({ CITY_NAME: item.name, CITY_ID: item.id, STATE_ID: item.stateFullName }));\r\n }),\r\n apiCall('/dac/get-countries-list', { full: true }).then((responseData) => {\r\n state.countriesList = responseData.list.map((item) => ({ COUNTRY_NAME: item.name, COUNTRY_ID: item.id }));\r\n }),\r\n apiCall('/clients/get-client-classes', { CLIENT_ID: clientId }).then(({ list }) => state.classesList = list),\r\n apiCall('/clients/get-associations-list', { CLIENT_ID: clientId }).then(({ list }) => state.associationsList = list),\r\n apiCall('/clients/get-distributors', { CLIENT_ID: clientId }).then(({ distributors }) => distributors.map((item) => state.distributorsList.push({ value: item.id, name: item.label, tag: item.tag }))),\r\n apiCall('/energy/get-energy-list', { clientId }).then(({ list }) => state.energyMetersList = list),\r\n apiCall('/dev/dev-info-combo-options', {\r\n CLIENT_ID: clientId,\r\n fluids: true,\r\n types: true,\r\n brands: true,\r\n roles: true,\r\n applics: true,\r\n chillerModels: true,\r\n chillerLines: true,\r\n chillerGateways: true,\r\n }).then(({\r\n types,\r\n brands,\r\n fluids,\r\n roles,\r\n applics,\r\n chillerModels,\r\n chillerLines,\r\n chillerGateways,\r\n }) => {\r\n state.comboOpts.brands = [];\r\n state.comboOpts.fluids = [];\r\n state.comboOpts.roles = [];\r\n state.comboOpts.types = [];\r\n state.comboOpts.applics = [];\r\n state.comboOpts.chillerModels = [];\r\n state.comboOpts.chillerLines = [];\r\n state.comboOpts.chillerGateways = [];\r\n types?.forEach((type, index) => { state.comboOpts.types.push({ value: index + 1, name: type.label, id: type.value }); });\r\n brands?.forEach((brand, index) => state.comboOpts.brands.push({ value: index + 1, name: brand.label, id: brand.value }));\r\n fluids?.forEach((fluid, index) => state.comboOpts.fluids.push({ value: index + 1, name: fluid.label, id: fluid.value }));\r\n applics?.forEach((applic, index) => { if (applic.value !== 'iluminacao') state.comboOpts.applics.push({ value: index + 1, name: applic.label, id: applic.value }); });\r\n roles?.forEach((role) => state.comboOpts.roles.push({ value: Number(role.value), name: role.label }));\r\n chillerModels?.forEach((model) => { state.comboOpts.chillerModels.push({ value: Number(model.value), name: model.label }); });\r\n chillerLines?.forEach((line) => { state.comboOpts.chillerLines.push({ value: Number(line.value), name: line.label }); });\r\n chillerGateways?.forEach((line) => { state.comboOpts.chillerGateways.push({ value: Number(line.value), name: line.label }); });\r\n }),\r\n apiCall('/environments/get-environment-list', { CLIENT_ID: clientId, INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then(({ environments }) => {\r\n setEnvironmentList(environments);\r\n }),\r\n ]);\r\n processReceivedServerData();\r\n apiCall('/get-integrations-list/water', { clientIds: [clientId] }).then(({ list }) => { state.waterList = list; });\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.isLoading = false; render();\r\n }\r\n\r\n async function calculateClientUnitsDisp(clientId) {\r\n try {\r\n setState({ unitsDispLoading: true });\r\n\r\n const endDate = moment(state.lastDate).format('YYYY-MM-DD');\r\n const startDate = moment(state.lastDate).subtract(6, 'days').format('YYYY-MM-DD');\r\n state.unitsDisp = {};\r\n for (const unit of state.units) {\r\n const unitDisp = await apiCall('/clients/get-client-units-disp', {\r\n CLIENT_ID: clientId,\r\n UNIT_ID: unit.UNIT_ID,\r\n startDate,\r\n endDate,\r\n });\r\n state.unitsDisp = { ...state.unitsDisp, ...unitDisp };\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível calcular a disponibilidade dos dispositivos');\r\n }\r\n setState({ unitsDispLoading: false });\r\n }\r\n\r\n async function getDispCsvData() {\r\n state.gettingCsv = true; render();\r\n const formattedCSV = [] as any;\r\n\r\n let data = [] as {\r\n clientId: number;\r\n clientName: string;\r\n unitId: number;\r\n unitName: string;\r\n avgDisp: number;\r\n dispList: {\r\n disponibility: number;\r\n YMD: string;\r\n }[];\r\n }[];\r\n\r\n try {\r\n if (moment(state.selectedDate).format('YYYY-MM-DD') === moment(state.lastDate).format('YYYY-MM-DD')) {\r\n if (Object.values(state.unitsDisp).length > 0) {\r\n data = Object.values(state.unitsDisp);\r\n } else {\r\n toast.info('Não há dados de disponibilidade para exportar!'); state.isLoading = false;\r\n }\r\n } else {\r\n let dispList = {};\r\n for (const unit of state.units) {\r\n const unitDisp = await apiCall('/clients/get-client-units-disp', {\r\n UNIT_ID: unit.UNIT_ID,\r\n CLIENT_ID: clientId,\r\n startDate: state.datesRange[state.datesRange.length - 1].YMD,\r\n endDate: state.datesRange[0].YMD,\r\n });\r\n dispList = { ...dispList, ...unitDisp };\r\n }\r\n if (Object.values(dispList).length > 0) {\r\n data = Object.values(dispList);\r\n } else {\r\n toast.info('Não há dados de disponibilidade para exportar!'); state.isLoading = false;\r\n }\r\n }\r\n\r\n data.forEach((item) => {\r\n item.dispList.forEach((disp) => {\r\n const day = daysOfTheWeek[moment(disp.YMD).day()];\r\n formattedCSV.push({\r\n cliente: item.clientName,\r\n unidade: item.unitName,\r\n id: item.unitId,\r\n disponibilidade: disp.disponibility?.toFixed(1).replace('.', ','),\r\n dia: ` ${day}, ${moment(disp.YMD).format('DD-MM-YYYY')}`,\r\n });\r\n });\r\n });\r\n\r\n formattedCSV.sort((a, b) => {\r\n const [d1, m1, y1] = a.dia.split(', ')[1].split('-');\r\n const [d2, m2, y2] = b.dia.split(', ')[1].split('-');\r\n return moment(`${y1}-${m1}-${d1}`).diff(moment(`${y2}-${m2}-${d2}`));\r\n });\r\n\r\n state.csvData = formattedCSV;\r\n render();\r\n setTimeout(() => {\r\n (csvLinkEl as any).current.link.click();\r\n }, 1000);\r\n\r\n state.gettingCsv = false; render();\r\n } catch (err) { console.log(err); toast.error('Houve erro'); state.gettingCsv = false; render(); }\r\n }\r\n\r\n function processReceivedServerData() {\r\n clearProcessedData();\r\n\r\n state.showDAMs = !!(state.damsListFull.length);\r\n state.showDUTs = !!(state.dutsList.length || state.roomTypes.length || state.vavsList.length);\r\n\r\n const units = {};\r\n for (const unit of state.units) {\r\n units[unit.UNIT_ID] = unit;\r\n unit.groups = [];\r\n unit.duts = [];\r\n unit.DACS_COUNT = 0;\r\n unit.DUTS_COUNT = 0;\r\n unit.DAMS_COUNT = 0;\r\n unit.DRIS_COUNT = 0;\r\n }\r\n\r\n const roomTypes = {};\r\n for (const rType of state.roomTypes) {\r\n roomTypes[rType.RTYPE_ID] = rType;\r\n rType.DUTS_COUNT = 0;\r\n rType.DRIS_COUNT = 0;\r\n }\r\n\r\n // const dams = {}\r\n for (const dam of state.damsListFull) {\r\n dam.DEV_ID = dam.DEV_ID || dam.DAM_ID || dam.DAC_ID;\r\n if (dam.isDac) {\r\n state.damsListDac.push(dam);\r\n } else {\r\n state.damsList.push(dam);\r\n }\r\n // dams[dam.DAM_ID] = dam\r\n dam.groups = [];\r\n dam.units = [];\r\n }\r\n\r\n const groups = {};\r\n for (const group of state.groupsList) {\r\n groups[group.GROUP_ID] = group;\r\n group.dacs = [];\r\n // group.unit = units[group.UNIT_ID]\r\n // group.unit.groups.push(group)\r\n // if (group.DAM_ID) {\r\n // group.dam = dams[group.DAM_ID];\r\n // if (group.dam) {\r\n // group.dam.groups.push(group);\r\n // group.dam.units.push(units[group.UNIT_ID]);\r\n // }\r\n // }\r\n }\r\n for (const machine of state.machinesWithAssetsList) {\r\n groups[machine.GROUP_ID] = machine;\r\n machine.dacs = [];\r\n for (const dac of state.dacsList) {\r\n if (dac.GROUP_ID === machine.GROUP_ID) {\r\n machine.dacs?.push(dac);\r\n }\r\n }\r\n }\r\n\r\n for (const dut of state.dutsList) {\r\n // dut.alerts = []\r\n if (dut.UNIT_ID) {\r\n // dut.unit = units[dut.UNIT_ID]\r\n units[dut.UNIT_ID].duts.push(dut);\r\n }\r\n }\r\n\r\n for (const machine of state.machinesWithAssetsList) {\r\n let DEVS_QUANTITY = machine.dacs!.length;\r\n if (machine.DEV_AUT) DEVS_QUANTITY++;\r\n machine.assets.forEach((asset) => {\r\n if (asset.DEV_ID) DEVS_QUANTITY++;\r\n });\r\n machine.DEVS_QUANTITY = DEVS_QUANTITY;\r\n }\r\n\r\n for (const association of state.associationsList) {\r\n const unit = state.units.find((unit) => unit.UNIT_ID === association.UNIT_ID);\r\n const GROUPS_COUNT = association.GROUPS.length;\r\n association.GROUPS_COUNT = `${GROUPS_COUNT} Máquinas`;\r\n association.UNIT_NAME = unit?.UNIT_NAME;\r\n }\r\n\r\n for (const dac of state.dacsList) {\r\n dac.DEV_ID = dac.DEV_ID || dac.DAC_ID;\r\n dac.type = 'DAC';\r\n if (!dac.GROUP_ID) { state.freeDevs.push(dac); }\r\n if (dac.UNIT_ID) units[dac.UNIT_ID].DACS_COUNT++;\r\n }\r\n for (const dut of state.dutsList) {\r\n dut.DEV_ID = (dut.DEV_ID || dut.DUT_ID)!;\r\n dut.type = 'DUT';\r\n if (dut.UNIT_ID) units[dut.UNIT_ID].DUTS_COUNT++;\r\n if (dut.RTYPE_ID) roomTypes[dut.RTYPE_ID].DUTS_COUNT++;\r\n }\r\n for (const dam of state.damsList) {\r\n dam.DEV_ID = dam.DEV_ID || dam.DAM_ID;\r\n dam.type = 'DAM';\r\n if (!dam.groups!.length) { state.freeDevs.push(dam); }\r\n if (dam.UNIT_ID && units[dam.UNIT_ID]) units[dam.UNIT_ID].DAMS_COUNT++;\r\n }\r\n for (const dri of state.drisList) {\r\n if (dri.UNIT_ID) units[dri.UNIT_ID].DRIS_COUNT++;\r\n }\r\n for (const vav of state.vavsList) {\r\n if (vav.RTYPE_ID && roomTypes[vav.RTYPE_ID]) roomTypes[vav.RTYPE_ID].DRIS_COUNT++;\r\n }\r\n\r\n for (const roomType of state.roomTypes) {\r\n const pData = getDaySched(roomType.workPeriods, roomType.workPeriodExceptions);\r\n roomType.schedCol = (pData && pData.desc) || '-';\r\n }\r\n\r\n // for (const alertInfo of state.alerts) {\r\n // // alertInfo.filterDesc = 'Caixas'\r\n // // alertInfo.timeDesc = 'entre 8:00 e 17:00'\r\n // // alertInfo.condDesc = 'temperatura maior que 26°C ou menor que 18°C'\r\n // let relatedRooms = []\r\n // if (alertInfo.FILT_TYPE === 'UNIT') {\r\n // for (const unitId of alertInfo.FILT_IDS) {\r\n // relatedRooms = relatedRooms.concat(units[unitId].rooms)\r\n // }\r\n // }\r\n // if (alertInfo.FILT_TYPE === 'ROOM') {\r\n // relatedRooms = relatedRooms.concat(alertInfo.FILT_IDS.map(roomId => rooms[roomId]))\r\n // }\r\n // for (const room of relatedRooms) {\r\n // room.alerts.push(alertInfo)\r\n // }\r\n // }\r\n\r\n render();\r\n }\r\n\r\n function showGroups(association) {\r\n state.selectedAssociation = association;\r\n state.openModal = 'show-association-groups'; render();\r\n }\r\n\r\n function openCreateEditModel(itemToEdit?: RateModels) {\r\n state.selectedRateModel = itemToEdit || null;\r\n state.openModal = 'edit-model'; render();\r\n }\r\n\r\n function openCreateCicle(ModelRate: CicleType, itemToEdit?: RateCicleType) {\r\n state.cicleToEdit = ModelRate;\r\n state.selectedRateCicle = itemToEdit || null;\r\n state.openModal = 'edit-cicle'; render();\r\n }\r\n\r\n function openCreateEditCicle(itemToEdit?: { UNIT_ID: number; UNIT_NAME: string; }) {\r\n state.selectedUnit = itemToEdit || null;\r\n state.openModal = 'create-cicle'; render();\r\n }\r\n\r\n function openCreateEditUnit(itemToEdit?: { UNIT_ID: number; UNIT_NAME: string; }) {\r\n state.selectedUnit = itemToEdit || null;\r\n state.openModal = 'edit-unit'; render();\r\n }\r\n function openCreateEditGroup(unit?: { UNIT_ID: number; UNIT_NAME: string; }, itemToEdit?: { GROUP_ID: number }) {\r\n state.selectedUnit = unit || null;\r\n // @ts-ignore\r\n state.selectedGroup = itemToEdit || null;\r\n state.openModal = 'edit-group'; render();\r\n }\r\n\r\n function openCreateEditMachine(unit?: { UNIT_ID: number; UNIT_NAME: string; }, itemToEdit?: { GROUP_ID: number }, isView?: boolean) {\r\n state.selectedUnit = unit || null;\r\n // @ts-ignore\r\n state.selectedGroup = itemToEdit || null;\r\n state.isViewMachine = isView || false;\r\n state.selectedMachine = state.machinesWithAssetsList.find((item) => item.GROUP_ID === itemToEdit?.GROUP_ID) || null;\r\n state.openModal = 'edit-machine'; render();\r\n }\r\n\r\n function openCreateEditAssociation(itemToEdit?: ApiResps['/clients/get-associations-list']['list']) {\r\n state.selectedAssociation = itemToEdit || null;\r\n state.openModal = 'edit-association'; render();\r\n }\r\n function openEditDut(unit, itemToEdit) {\r\n state.selectedUnit = unit;\r\n state.selectedDut = itemToEdit || null;\r\n state.openModal = 'edit-dut'; render();\r\n }\r\n function openCreateEditRoomType(itemToEdit?: {}) {\r\n // @ts-ignore\r\n state.selectedRoomType = itemToEdit || null;\r\n state.openModal = 'edit-room-type'; render();\r\n }\r\n function openAssociateDevs() {\r\n state.openModal = 'associate-devs'; render();\r\n }\r\n function openCreateEditClass(itemToEdit?: { CLASS_ID: number, CLASS_TYPE: string, CLASS_NAME: string }) {\r\n state.selectedClass = itemToEdit || null;\r\n state.openModal = 'edit-class'; render();\r\n }\r\n\r\n function openCreateEditHeatExchangere(itemToEdit?: {}) {\r\n // @ts-ignore\r\n state.selectedHeatExchanger = itemToEdit || null;\r\n state.openModal = 'edit-create-heat-exchanger'; render();\r\n }\r\n\r\n function openCreateEditUtility(itemToEdit?: {}) {\r\n // @ts-ignore\r\n state.selectedUtilityItem = itemToEdit || null;\r\n state.openModal = 'edit-create-utility'; render();\r\n }\r\n\r\n function openViewUtility(itemToEdit?: {}) {\r\n // @ts-ignore\r\n state.selectedUtilityItem = itemToEdit || null;\r\n state.openModal = 'view-utility'; render();\r\n }\r\n\r\n async function deleteClass(item) {\r\n try {\r\n if (window.confirm(`Deseja excluir a classe de unidades ${item.CLASS_TYPE} ${item.CLASS_NAME}?`)) {\r\n await apiCall('/clients/remove-client-class', { CLASS_ID: item.CLASS_ID, CLIENT_ID: clientId });\r\n toast.success('Sucesso');\r\n await fetchServerData(); // server might have deleted and/or updated other items\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function deleteCicle({ CICLE_ID, CICLE_NAME }: { CICLE_ID: number, CICLE_NAME: string }) {\r\n try {\r\n if (window.confirm(`Deseja excluir este o ${CICLE_NAME} ?`)) {\r\n await apiCall('/delete-rate-cicle', { CICLE_ID });\r\n toast.success('Sucesso');\r\n await fetchServerData(); // server might have deleted and/or updated other items\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function deleteModel({ MODEL_ID, MODEL_NAME }: { MODEL_ID: number, MODEL_NAME: string }) {\r\n try {\r\n if (window.confirm(`Deseja excluir o modelo de tarifa ${MODEL_NAME} ?`)) {\r\n await apiCall('/delete-model-rate', { MODEL_ID });\r\n toast.success('Sucesso');\r\n await fetchServerData(); // server might have deleted and/or updated other items\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function deleteGroup() {\r\n try {\r\n if (window.confirm('Deseja excluir os grupos selecionados?')) {\r\n for (const item of state.machinesWithAssetsList) {\r\n if (item.checked) {\r\n await apiCall('/clients/remove-group', { GROUP_ID: item.GROUP_ID, isChiller: (item.MCHN_APPL === 'chiller' && item.BRAND === 'carrier') });\r\n }\r\n }\r\n toast.success('Sucesso');\r\n await fetchServerData(); // server might have deleted and/or updated other items\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function deleteUnits(units: { UNIT_ID: number, checked: boolean }[]) {\r\n try {\r\n for (const item of units) {\r\n if (item.checked) {\r\n await apiCall('/clients/remove-unit', { UNIT_ID: item.UNIT_ID, CLIENT_ID: state.clientId ?? undefined });\r\n }\r\n }\r\n toast.success(t('sucesso'));\r\n await fetchServerData(); // server might have deleted and/or updated other items\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n\r\n setState({ deleteUnitsOpen: false });\r\n }\r\n\r\n async function deleteAssociation() {\r\n try {\r\n if (window.confirm('Deseja excluir as associações selecionados?')) {\r\n for (const item of state.associationsList) {\r\n if (item.checked) {\r\n await apiCall('/clients/remove-association', { ASSOC_ID: item.ASSOC_ID });\r\n }\r\n }\r\n toast.success('Sucesso');\r\n await fetchServerData(); // server might have deleted and/or updated other items\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function deleteNobreaks() {\r\n for (const item of state.nobreakList) {\r\n if (item.checked && item.APPLICATION === 'Nobreak') {\r\n await apiCall('/dmt/delete-dmt-nobreak', { NOBREAK_ID: item.ID });\r\n }\r\n }\r\n }\r\n\r\n async function deleteIlluminations() {\r\n for (const item of state.iluminationList) {\r\n if (item.checked && item.APPLICATION === 'Iluminação') {\r\n await apiCall('/dal/delete-dal-illumination', { ILLUMINATION_ID: item.ID });\r\n }\r\n }\r\n }\r\n\r\n async function deleteUtility() {\r\n try {\r\n if (window.confirm('Deseja excluir as associações selecionados?')) {\r\n if (state.selectedUtility === t('nobreak')) {\r\n await deleteNobreaks();\r\n }\r\n if (state.selectedUtility === t('iluminacao')) {\r\n await deleteIlluminations();\r\n }\r\n toast.success('Sucesso');\r\n await fetchServerData(); // server might have deleted and/or updated other items\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function deleteRoomType(item) {\r\n try {\r\n if (window.confirm(`Deseja excluir o tipo ${item.RTYPE_NAME}?`)) {\r\n await apiCall('/clients/remove-roomtype', { RTYPE_ID: item.RTYPE_ID });\r\n state.roomTypes = state.roomTypes.filter((rtype) => rtype.RTYPE_ID !== item.RTYPE_ID);\r\n processReceivedServerData();\r\n render();\r\n toast.success('Sucesso');\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function deleteEnvironment(item) {\r\n try {\r\n if (window.confirm(`Deseja excluir o ambiente ${item.ROOM_NAME}?`)) {\r\n await apiCall('/environments/delete-environment', { ENVIRONMENT_ID: item.ENVIRONMENT_ID, CLIENT_ID: item.CLIENT_ID, UNIT_ID: item.UNIT_ID });\r\n state.dutsList = state.dutsList.filter((env) => env.ENVIRONMENT_ID !== item.ENVIRONMENT_ID);\r\n processReceivedServerData();\r\n render();\r\n toast.success('Sucesso');\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n async function afterCreateEditUnit({ item: responseData, action }) {\r\n try {\r\n state.openModal = null; render();\r\n // if (action === 'new') { state.units.push(responseData); processReceivedServerData(); } else if (action === 'edit') {\r\n // const found = state.units.find((item) => item.UNIT_ID === responseData.UNIT_ID);\r\n // if (found) { Object.assign(found, responseData); processReceivedServerData(); } else { await fetchServerData(); }\r\n // } else { await fetchServerData(); }\r\n await fetchServerData();\r\n\r\n action === 'edit' ? toast.success('Sucesso ao editar a unidade') : toast.success('Sucesso ao criar a unidade');\r\n\r\n // TODO: check if responseAccessDistributor is null\r\n if (responseData.responseAccessDistributor && responseData.responseAccessDistributor.STATUS === 'Erro no envio') {\r\n toast.error('Não foi possível enviar as informações para a Four Docs. ');\r\n }\r\n\r\n resetParamsUrl();\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterCreateEditGroup({ item: responseData, action, changedAssociation }) {\r\n try {\r\n state.openModal = null; render();\r\n // if (changedAssociation) { await state.fetchServerData() }\r\n // else if (action === 'new') { state.groupsList.push(responseData); state.processReceivedServerData() }\r\n // else if (action === 'edit') {\r\n // const found = state.groupsList.find(item => item.GROUP_ID === responseData.GROUP_ID)\r\n // if (found) { Object.assign(found, responseData); state.processReceivedServerData() }\r\n // else { await state.fetchServerData() }\r\n // }\r\n // else { await state.fetchServerData() }\r\n await fetchServerData();\r\n toast.success('Sucesso');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterCreateEditMachine({ action }) {\r\n try {\r\n state.openModal = null; render();\r\n await fetchServerData();\r\n action === 'edit' ? toast.success('Sucesso ao editar a máquina') : toast.success('Sucesso ao criar a máquina');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterEditDut({ item: responseData }) {\r\n try {\r\n state.openModal = null; render();\r\n const found = state.dutsList.find((item) => item.DEV_ID === responseData?.DEV_ID);\r\n if (found) { Object.assign(found, responseData); processReceivedServerData(); } else { await fetchServerData(); }\r\n toast.success('Sucesso');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterCreateEditRoomType({ item: responseData, action }) {\r\n try {\r\n state.openModal = null; render();\r\n if (action === 'new') { state.roomTypes.push(responseData); processReceivedServerData(); } else if (action === 'edit') {\r\n const found = state.roomTypes.find((item) => item.RTYPE_ID === responseData.RTYPE_ID);\r\n if (found) { Object.assign(found, responseData); processReceivedServerData(); } else { await fetchServerData(); }\r\n } else { await fetchServerData(); }\r\n toast.success('Sucesso');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterAssociateDevs() {\r\n try {\r\n state.openModal = null; render();\r\n await fetchServerData();\r\n toast.success('Sucesso');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterCreateEditClass() {\r\n try {\r\n state.openModal = null; render();\r\n await fetchServerData();\r\n toast.success('Sucesso');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterCreateEditAssociation() {\r\n try {\r\n state.openModal = null; render();\r\n await fetchServerData();\r\n toast.success('Sucesso');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n async function afterCreateEditHeatExchanger({ action }) {\r\n try {\r\n state.openModal = null; render();\r\n await fetchServerData();\r\n toast.success(`Sucesso ao ${action === 'new' ? 'criar' : 'editar'} tipo de trocador de calor`);\r\n } catch (err) { console.log(err); toast.error(`Houve erro ao ${action === 'new' ? 'criar' : 'editar'} tipo de trocador de calor`); }\r\n }\r\n\r\n async function afterCreateEditUtility({ action }) {\r\n try {\r\n state.openModal = null; render();\r\n await fetchServerData();\r\n if (action === 'new') {\r\n toast.success(t('sucessoCriarUtilitario'));\r\n } else {\r\n toast.success(t('sucessoEditarUtilitario'));\r\n }\r\n } catch (err) { console.log(err);\r\n if (action === 'new') {\r\n toast.error(t('erroCriarUtilitario'));\r\n } else {\r\n toast.error(t('erroEditarUtilitario'));\r\n }\r\n }\r\n }\r\n\r\n async function toggleUnitReport(item) {\r\n try {\r\n item.submitting = true; render();\r\n const reqParams: ApiParams['/clients/edit-unit'] = {\r\n UNIT_ID: item.UNIT_ID,\r\n DISABREP: (item.DISABREP ? 0 : 1),\r\n };\r\n const responseData = await apiCall('/clients/edit-unit', reqParams);\r\n Object.assign(item, responseData); processReceivedServerData();\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n item.submitting = false; render();\r\n }\r\n\r\n async function getModels() {\r\n await apiCall('/get-model-rates', { CLIENT_ID: clientId }).then((models) => {\r\n state.rateModels = models.map((model) => Object.assign(model, {\r\n hide: false,\r\n }));\r\n });\r\n }\r\n\r\n useEffect(() => {\r\n fetchServerData(clientId);\r\n getModels();\r\n }, [clientId]);\r\n function utilityButtons() {\r\n const disabled = !state.nobreakList.some((item) => item.checked) && !state.iluminationList.some((item) => item.checked);\r\n return [(\r\n
\r\n {(profile.manageAllClients) && {t('novoUtilitario').toUpperCase()}}\r\n {(profile.permissions.isAdminSistema) && {t('excluirUtilitarios')}}\r\n
\r\n )];\r\n }\r\n\r\n async function getDuts() {\r\n try {\r\n state.isLoadingDuts = true;\r\n await Promise.all([\r\n apiCall('/clients/get-units-list', { CLIENT_ID: clientId, INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then((list) => { list.forEach((unit) => Object.assign(unit, { LATLON: (unit.LAT && unit.LON) ? `${unit.LAT}, ${unit.LON}` : '-' })); state.units = list; list.forEach((unit) => state.unitsOpt.push({ value: unit.UNIT_ID, name: unit.UNIT_NAME })); }),\r\n ]);\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n // processReceivedServerData();\r\n state.isLoadingDuts = false;\r\n render();\r\n }\r\n\r\n async function getEnvironments() {\r\n try {\r\n await Promise.all([\r\n apiCall('/dut/get-duts-list', { clientId, INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then(({ list }) => { state.dutsList = list.map((item) => ({ ...item, checked: false })); }),\r\n apiCall('/dri/get-dri-vavs-list', { clientId }).then(({ list }) => { state.vavsList = list.map((item) => ({ ...item, checked: false })); }),\r\n ]);\r\n await apiCall('/environments/get-environment-list', { CLIENT_ID: clientId, INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients }).then(({ environments }) => {\r\n setEnvironmentList(environments);\r\n });\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n render();\r\n }\r\n if (state.isLoading) return ;\r\n\r\n const freeDacsDuts = state.freeDevs.filter((dev) => (dev.type === 'DAC' || dev.type === 'DUT'));\r\n const checkedDevs = freeDacsDuts.filter((dev) => dev.freeDevChecked);\r\n const queryPars = queryString.parse(history.location.search);\r\n\r\n const profilePerms = () => (profile.manageAllClients || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === clientId));\r\n\r\n function tableDuts() {\r\n if (state.dutsList.length === 0 && state.vavsList.length === 0) {\r\n return
(nenhum)
;\r\n }\r\n\r\n if (state.isLoadingDuts) {\r\n return ;\r\n }\r\n\r\n return (\r\n ({ value: item.RTYPE_ID, name: item.RTYPE_NAME }))}\r\n render={() => { getEnvironments(); }}\r\n pageSize={20}\r\n setIsLoad={(bool) => setState({ isLoadingDuts: bool })}\r\n />\r\n );\r\n }\r\n\r\n const modalContent = () => {\r\n if (state.openModal && !modalOptions.includes(state.openModal)) {\r\n return (\r\n
\r\n \r\n \r\n { state.focused = focused; render(); }}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n isOutsideRange={(d) => !d.isBefore(state.lastDate)}\r\n />\r\n \r\n \r\n \r\n
\r\n \r\n \r\n Exportar Planilha\r\n \r\n
\r\n
\r\n \r\n
\r\n );\r\n }\r\n return (\r\n <>\r\n );\r\n };\r\n\r\n return (\r\n
\r\n \r\n \r\n { profilePerms()\r\n && (\r\n \r\n {t('programacaoEmMassa')}\r\n \r\n )}\r\n { profile.manageAllClients\r\n && (\r\n \r\n
\r\n \r\n Tipos de Ambientes\r\n \r\n \r\n Atribuição Automática de Responsáveis\r\n \r\n \r\n Faturas\r\n \r\n \r\n {t('unificado')}\r\n \r\n
\r\n
\r\n )}\r\n
\r\n\r\n {(profile.manageAllClients) && (state.freeDevs.length > 0)\r\n && (\r\n \r\n (checkedDevs.length ? openAssociateDevs() : null)}\r\n >\r\n Associar\r\n \r\n )}\r\n >\r\n render()} />\r\n \r\n \r\n )}\r\n\r\n \r\n \r\n {(profile.manageAllClients)\r\n && (\r\n
\r\n openCreateEditUnit()}>Adicionar Unidade\r\n {state.units.length !== 0\r\n && (\r\n <>\r\n {(profile.permissions.isSuperAdmin) && (\r\n setState({ deleteUnitsOpen: true })}>{t('excluirUnidades')}\r\n )}\r\n setState({ openModal: 'disponibility-export' })}>Exportar Disponibilidade\r\n calculateClientUnitsDisp(clientId)}>Calcular Disponibilidade nos últimos 7 dias\r\n \r\n )}\r\n
\r\n )}\r\n
\r\n )}\r\n >\r\n {(state.units.length === 0) ? (\r\n
(nenhuma)
\r\n ) : (\r\n { getDuts(); }}\r\n isLoading={state.isLoadingDuts}\r\n deleteUnitsOpen={state.deleteUnitsOpen}\r\n onDeleteUnits={deleteUnits}\r\n onCloseDeleteUnits={() => { setState({ deleteUnitsOpen: false }); }}\r\n />\r\n )}\r\n \r\n \r\n\r\n \r\n openCreateEditClass()}>Adicionar Classe de Unidades}\r\n >\r\n {(state.classesList.length === 0) ? (\r\n
(nenhum)
\r\n ) : (\r\n \r\n )}\r\n \r\n
\r\n\r\n \r\n openCreateEditModel()}>CRIAR NOVO MODELO}\r\n >\r\n { state.rateModels.length === 0 ? (
Nenhum modelo
) : (\r\n \r\n ) }\r\n \r\n
\r\n\r\n \r\n \r\n
\r\n {(profile.manageAllClients) && openCreateEditMachine()}>Nova Máquina}\r\n {(profile.permissions.isAdminSistema) && deleteGroup()}>Excluir Máquinas}\r\n
\r\n {(state.machinesWithAssetsList.length === 0) ? (\r\n
(nenhuma)
\r\n ) : (\r\n \r\n )}\r\n \r\n
\r\n\r\n \r\n \r\n
\r\n {(profile.permissions.isAdminSistema) && deleteAssociation()}>Excluir Grupos}\r\n {(profile.manageAllClients) && openCreateEditAssociation()}>Adicionar Grupo}\r\n
\r\n {(state.associationsList.length === 0) ? (\r\n
(nenhuma)
\r\n ) : (\r\n \r\n )}\r\n \r\n
\r\n\r\n \r\n \r\n {tableDuts()}\r\n \r\n \r\n \r\n openCreateEditRoomType()}>Adicionar Tipo de Ambiente}\r\n >\r\n {(state.roomTypes.length === 0) ? (\r\n
(nenhum)
\r\n ) : (\r\n \r\n )}\r\n \r\n
\r\n\r\n \r\n \r\n
\r\n {(profile.manageAllClients) && openCreateEditHeatExchangere()}>{t('adicionarTipoTrocadorDeCalor')}}\r\n
\r\n {(false) ? (\r\n
(nenhuma)
\r\n ) : (\r\n \r\n )}\r\n \r\n
\r\n\r\n \r\n \r\n\r\n \r\n \r\n { state.selectedUtility = t('nobreak'); render(); }} key=\"nobreak\">\r\n {t('nobreak')}\r\n \r\n \r\n { state.selectedUtility = t('iluminacao'); render(); }} key=\"iluminacao\">\r\n {t('iluminacao')}\r\n \r\n \r\n \r\n \r\n <>\r\n {state.selectedUtility === t('nobreak') && (\r\n <>\r\n \r\n \r\n )}\r\n {state.selectedUtility === t('iluminacao') && (\r\n <>\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n\r\n {state.openModal != null && (\r\n { resetParamsUrl(); !state.gettingCsv && setState({ openModal: null }); }}\r\n >\r\n {state.openModal === 'edit-unit' && (\r\n { state.openModal = null; resetParamsUrl(); render(); }}\r\n onSuccess={afterCreateEditUnit}\r\n />\r\n )}\r\n {state.openModal === 'edit-group' && (\r\n (dam.units!.length === 0 || dam.units!.includes(state.selectedUnit!)))}\r\n dacsList={state.dacsList.filter((dac) => (dac.GROUP_ID != null && (state.selectedGroup && (dac.GROUP_ID === state.selectedGroup.GROUP_ID))))}\r\n onCancel={() => { state.openModal = null; render(); }}\r\n onSuccess={afterCreateEditGroup}\r\n />\r\n )}\r\n {state.openModal === 'edit-machine' && (\r\n \r\n (dac.GROUP_ID != null && (state.selectedGroup && (dac.GROUP_ID === state.selectedGroup.GROUP_ID))))}\r\n onCancel={() => { state.openModal = null; resetParamsUrl(); render(); }}\r\n onSuccess={afterCreateEditMachine}\r\n isViewMachine={state.isViewMachine}\r\n />\r\n \r\n )}\r\n {state.openModal === 'edit-association' && (\r\n { state.openModal = null; render(); }}\r\n />\r\n )}\r\n {state.openModal === 'edit-dut' && (\r\n { state.openModal = null; render(); }}\r\n onSuccess={afterEditDut}\r\n />\r\n )}\r\n {state.openModal === 'edit-room-type' && (\r\n { state.openModal = null; render(); }}\r\n onSuccess={afterCreateEditRoomType}\r\n />\r\n )}\r\n {state.openModal === 'associate-devs' && (\r\n dev.freeDevChecked)}\r\n unitsList={state.units}\r\n groupsList={state.groupsList}\r\n onCancel={() => { state.openModal = null; render(); }}\r\n onSuccess={afterAssociateDevs}\r\n />\r\n )}\r\n {state.openModal === 'edit-model' && (\r\n { state.openModal = null; state.selectedRateModel = null; render(); }}\r\n itemToEdit={state.selectedRateModel}\r\n />\r\n )}\r\n {state.openModal === 'edit-cicle' && (\r\n { state.openModal = null; state.selectedRateCicle = null; render(); }}\r\n />\r\n )}\r\n {state.openModal === 'create-cicle' && (\r\n { state.openModal = null; render(); }}\r\n />\r\n )}\r\n {state.openModal === 'edit-class' && (\r\n { state.openModal = null; render(); }}\r\n />\r\n )}\r\n {state.openModal === 'show-association-groups' && (\r\n { state.openModal = null; render(); }}\r\n />\r\n )}\r\n {state.openModal === 'edit-create-heat-exchanger' && (\r\n { state.openModal = null; render(); }}\r\n />\r\n )}\r\n {state.openModal === 'edit-create-utility' && (\r\n { state.openModal = null; render(); }}\r\n />\r\n )}\r\n\r\n {state.openModal === 'view-utility' && (\r\n { state.openModal = null; render(); }}\r\n />\r\n )}\r\n\r\n { queryPars.aba === undefined ? state.openModal === 'disponibility-export'\r\n && state.gettingCsv\r\n ? (\r\n
\r\n Calculando e gerando planilha...\r\n \r\n
\r\n )\r\n : modalContent() : null}\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nconst ShowAssociationGroups = ({\r\n associationInfo, onCancel,\r\n}): JSX.Element => {\r\n function CloseModal() {\r\n return (\r\n onCancel()}\r\n >\r\n \r\n \r\n );\r\n }\r\n\r\n associationInfo.GROUPS.sort((a, b) => a.POSITION - b.POSITION);\r\n\r\n function ModalMobile(props: {\r\n title: string\r\n children: JSX.Element\r\n closeModal: () => void\r\n }) {\r\n const { title, children, closeModal } = props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {title}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {children}\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n

Máquinas do Grupo

\r\n {associationInfo.GROUPS.map((group) => (\r\n
\r\n {`${group.GROUP_NAME} `}\r\n {`#${group.POSITION}`}\r\n
\r\n ))}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n { onCancel(); }}\r\n >\r\n
\r\n

Máquinas do Grupo

\r\n {associationInfo.GROUPS.map((group) => (\r\n
\r\n {`${group.GROUP_NAME} `}\r\n {`#${group.POSITION}`}\r\n
\r\n ))}\r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default withTransaction('ClientPanelPage', 'component')(ClientPanelPage);\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const Form = styled.form`\r\n display: flex;\r\n flex-direction: column;\r\n max-width: 380px;\r\n padding: 20px 10px;\r\n`;\r\n\r\nexport const Card = styled.div`\r\n margin-top: 15px;\r\n border-radius: 8px;\r\n padding: 12px 24px 32px;\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n border-top: 10px solid ${colors.BlueSecondary};\r\n`;\r\n\r\nexport const PictureBox = styled.div`\r\n display: flex;\r\n width: 280px;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 15px;\r\n border-radius: 4px;\r\n`;\r\n","export function generateNameFormatted(name, subName) {\r\n if (name) {\r\n if (name.length > 30) {\r\n return `${name.substring(0, 30)}... - ${subName}`;\r\n }\r\n return `${name} - ${subName}`;\r\n }\r\n return `Celsius 360 - ${subName}`;\r\n}\r\n","import { useEffect, useState } from 'react';\r\n\r\nimport { Radio, Image } from 'antd';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useForm } from 'react-hook-form';\r\nimport { FaRegTrashAlt, FaFileUpload } from 'react-icons/fa';\r\nimport {\r\n useHistory, useRouteMatch,\r\n} from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\n\r\nimport {\r\n Button, Loader, AntSwitch,\r\n} from 'components';\r\nimport { Input } from 'components/NewInputs/Default';\r\nimport { AddNewClientParams } from 'metadata/AddNewClient.model';\r\nimport { EditClientParams } from 'metadata/EditClient.model';\r\nimport { ClientPanel } from 'pages/ClientPanel/ClientPanel';\r\nimport { apiCall } from 'providers';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport { Form, Card, PictureBox } from './styles';\r\nimport { MaskCnpj, MaskPhone } from '~/helpers/maskInputs';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\nimport { t } from 'i18next';\r\n\r\ntype ClientType = 'fabricante' | 'cliente' | 'mantenedor';\r\n\r\nconst FORM_VALIDATORS = {\r\n name: {\r\n required: 'O campo de nome é necessário',\r\n },\r\n email: {\r\n required: 'O campo de email é necessário',\r\n },\r\n phone: {\r\n required: false,\r\n validate: (value) => {\r\n if (value) {\r\n const regex = new RegExp(/^\\([0-9]{2}\\) [0-9]?[0-9]{4}-[0-9]{4}$/);\r\n return regex.test(value);\r\n } return true;\r\n },\r\n },\r\n cnpj: {\r\n required: false,\r\n validate: (value) => {\r\n if (value) {\r\n const regex = new RegExp(/^\\d{2}\\.\\d{3}\\.\\d{3}\\/\\d{4}-\\d{2}$/);\r\n return regex.test(value);\r\n } return true;\r\n },\r\n },\r\n};\r\n\r\ntype Inputs = {\r\n email: string,\r\n name: string,\r\n phone: string,\r\n cnpj: string,\r\n};\r\n\r\nexport const EditClient = (): JSX.Element => {\r\n const history = useHistory();\r\n const match = useRouteMatch<{ clientId: string }>();\r\n const fabricante = match.url.includes('fabricantes');\r\n const clientId = match.params.clientId != null ? Number(match.params.clientId) : null;\r\n const [loading, setLoading] = useState(false);\r\n const [picture, setPicture] = useState(null);\r\n const [clientType, setClientType] = useState(fabricante ? 'fabricante' : 'cliente');\r\n const [enabled, setEnabled] = useState(true);\r\n const [phoneNumber, setPhoneNumber] = useState('');\r\n const [cnpj, setCnpj] = useState('');\r\n const [clientInfo, setClientInfo] = useState<{\r\n CLIENT_ID: number;\r\n NAME: string;\r\n EMAIL: string;\r\n PICTURE: string;\r\n ENABLED: string;\r\n PERMS_C: string;\r\n clientType:('fabricante' | 'cliente' | 'mantenedor')[];\r\n CNPJ: string;\r\n PHONE: string;\r\n}>();\r\n\r\n const {\r\n register, setValue, handleSubmit, watch, formState: { errors },\r\n } = useForm({\r\n mode: 'all',\r\n });\r\n\r\n const handleFormSubmition = async ({\r\n email, name,\r\n }: Inputs) => {\r\n try {\r\n setLoading(true);\r\n\r\n const defaultParams = {\r\n NAME: name,\r\n EMAIL: email,\r\n PICTURE: (picture && String(picture)) || null,\r\n clientType: [clientType],\r\n ENABLED: enabled ? '1' : '0' as '1' | '0',\r\n CNPJ: cnpj,\r\n PHONE: phoneNumber,\r\n };\r\n\r\n if (clientId != null) {\r\n const params: EditClientParams['reqParams'] = {\r\n ...defaultParams,\r\n CLIENT_ID: clientId,\r\n };\r\n\r\n await apiCall('/clients/edit-client', params);\r\n toast.success('Alterado com sucesso');\r\n } else {\r\n const params: AddNewClientParams['reqParams'] = defaultParams;\r\n await apiCall('/clients/add-new-client', params);\r\n toast.success('Adicionado com sucesso');\r\n }\r\n history.push(fabricante ? '/painel/fabricantes' : '/painel/clientes/listagem');\r\n } catch (e) {\r\n console.log(e);\r\n toast.error('Houve erro');\r\n } finally {\r\n setLoading(false);\r\n }\r\n };\r\n\r\n const fetchServerData = async () => {\r\n if (clientId == null) return;\r\n setLoading(true);\r\n try {\r\n const reqParams = { CLIENT_ID: clientId };\r\n const { client } = await apiCall('/clients/get-client-info', reqParams);\r\n setClientInfo(client);\r\n\r\n let auxClientType: ClientType | null = null;\r\n if ((client.clientType || []).includes('cliente')) auxClientType = 'cliente';\r\n if ((client.clientType || []).includes('mantenedor')) auxClientType = 'mantenedor';\r\n if ((client.clientType || []).includes('fabricante')) auxClientType = 'fabricante';\r\n\r\n auxClientType && setClientType(auxClientType);\r\n setValue('email', client.EMAIL);\r\n setValue('name', client.NAME);\r\n setValue('cnpj', client.CNPJ);\r\n setValue('phone', client.PHONE);\r\n setPicture(client.PICTURE);\r\n setEnabled(client.ENABLED === '1');\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n setLoading(false);\r\n };\r\n\r\n const selectPictureFile = () => {\r\n const htmlNode: any = document.getElementById('file-input');\r\n if (htmlNode !== null) {\r\n htmlNode.onchange = () => {\r\n if (htmlNode.files.length === 1) {\r\n const reader = new FileReader();\r\n reader.addEventListener(\r\n 'load',\r\n () => {\r\n setPicture(reader.result);\r\n },\r\n false,\r\n );\r\n reader.readAsDataURL(htmlNode.files[0]);\r\n }\r\n };\r\n htmlNode.click();\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n fetchServerData();\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(clientInfo?.NAME, t('painel'))}\r\n \r\n \r\n \r\n {loading\r\n ? \r\n : (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n setPhoneNumber(MaskPhone(e.target.value))}\r\n value={phoneNumber}\r\n ref={register}\r\n />\r\n \r\n \r\n \r\n \r\n setCnpj(MaskCnpj(e.target.value))}\r\n value={cnpj}\r\n error={errors.cnpj ? 'CNPJ Inválido' : undefined}\r\n />\r\n \r\n \r\n\r\n
\r\n
Logo:
\r\n {picture ? (\r\n \r\n \r\n\r\n setPicture(null)}\r\n >\r\n \r\n \r\n\r\n \r\n ) : (\r\n \r\n\r\n Selecionar imagem\r\n \r\n \r\n )}\r\n \r\n
\r\n
\r\n setClientType(e.target.value)} value={clientType}>\r\n Cliente\r\n Mantenedor\r\n Fabricante\r\n \r\n
\r\n
\r\n setEnabled(!enabled)}\r\n />\r\n
\r\n \r\n
\r\n )}\r\n
\r\n {clientId\r\n && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('EditClient', 'component')(EditClient);\r\n","export function MaskPhone(v) {\r\n v = v.replace(/\\D/g, '');\r\n if (v.length > 11) {\r\n v = v.substr(0, 11);\r\n }\r\n if (v.length === 11) {\r\n v = v.replace(/^(\\d{2})(\\d{5})(\\d{4})/, '($1) $2-$3');\r\n } else {\r\n v = v.replace(/^(\\d{2})(\\d{4})(\\d{4})/, '($1) $2-$3');\r\n }\r\n\r\n return v;\r\n}\r\n\r\nexport function MaskCnpj(cnpj) {\r\n cnpj = cnpj.replace(/\\D/g, '');\r\n if (cnpj.length > 14) {\r\n cnpj = cnpj.substr(0, 14);\r\n }\r\n cnpj = cnpj.replace(/^(\\d{2})(\\d{3})(\\d{3})(\\d{4})(\\d{2})/, '$1.$2.$3/$4-$5');\r\n\r\n return cnpj;\r\n}\r\n\r\nexport function MaskCPF(cpf) {\r\n cpf = cpf.replace(/\\D/g, '');\r\n if (cpf.length > 11) {\r\n cpf = cpf.substr(0, 11);\r\n }\r\n cpf = cpf.replace(/^(\\d{3})(\\d{3})(\\d{3})(\\d{2})/, '$1.$2.$3-$4');\r\n\r\n return cpf;\r\n}\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\nimport { CalendarIcon } from '~/icons';\r\n\r\nexport const Container = styled.div``;\r\n\r\nexport const SelectContainer = styled.div`\r\nfont-weight: bold;\r\nposition: fixed;\r\nbackground: white;\r\nborder: 2px solid #d3d3d3;\r\nborder-radius: 10px;\r\nbox-shadow: 5px 6px 11px rgba(0,0,0,0.24), 0px 14px 15px rgba(0,0,0,0.12);\r\n`;\r\n\r\nexport const LoaderContainer = styled.div`\r\nposition: absolute;\r\nleft: 0;\r\ntop: 0;\r\nwidth: 100%;\r\nheight: 100%;\r\ndisplay: flex;\r\nflex-direction: column;\r\nalign-items: center;\r\njustify-content: center;\r\nz-index: 2;\r\nbackground-color: rgba(255, 255, 255, 0.5);\r\n`;\r\n\r\nexport const Scroll = styled.div`\r\noverflow-x: auto;\r\n`;\r\n\r\nexport const FaultsRow = styled.div`\r\ndisplay: flex;\r\nflex-direction: column;\r\nalign-items: flex-start;\r\njustify-content: space-around;\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\ncolor: ${colors.LightBlue};\r\n`;\r\n\r\nexport const TransparentLink = styled(Link)`\r\ncolor: inherit;\r\ntext-decoration: inherit;\r\n`;\r\n\r\nexport const CustomInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 0.7px solid ${colors.GreyInputBorder}\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const ContainerDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.BlueSecondary};\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const TitleLabel = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const CheckboxDay = styled.div`\r\n display: flex;\r\n margin-top: 5px;\r\n`;\r\n\r\nexport const Text = styled.span`\r\n font-weight: normal;\r\n font-size: 1em;\r\n line-height: 26px;\r\n color: ${colors.Grey400};\r\n margin-left: 5px;\r\n`;\r\n","import { useState } from 'react';\r\n\r\nimport { useHistory } from 'react-router-dom';\r\n\r\nimport { getUserProfile } from 'helpers/userProfile';\r\n\r\nimport { Header } from '../../Analysis/Header';\r\n\r\nexport const FaultsLayout = ({ ...props }): JSX.Element => {\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n\r\n const links = [\r\n {\r\n link: '/painel/falhas/dac',\r\n title: 'DAC',\r\n },\r\n {\r\n link: '/painel/falhas/dut',\r\n title: 'DUT',\r\n },\r\n {\r\n link: '/painel/falhas/dam',\r\n title: 'DAM',\r\n },\r\n {\r\n link: '/painel/falhas/instalacao',\r\n title: 'Instalação',\r\n },\r\n {\r\n link: '/painel/falhas/desativadas',\r\n title: 'Desativadas',\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n
\r\n \r\n );\r\n};\r\n","import { useEffect, useMemo } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport { Box } from 'reflexbox';\r\nimport moment from 'moment';\r\n\r\nimport {\r\n Loader, Checkbox, Select, NewTable, InputSearch, Button,\r\n} from 'components';\r\nimport { HealthIcon, healthLevelDesc } from 'components/HealthIcon';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, apiCallDownload } from 'providers';\r\n\r\nimport { SingleDatePicker, DateRangePicker } from 'react-dates';\r\nimport { t } from 'i18next';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n SelectContainer,\r\n LoaderContainer,\r\n Scroll,\r\n FaultsRow,\r\n StyledLink,\r\n TransparentLink,\r\n Container,\r\n} from './styles';\r\nimport { FaultsLayout } from '../FaultsLayout';\r\nimport { FaultAction } from '../../../providers/types/api-private';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { useLocation } from 'react-router-dom';\r\n\r\ntype Fault = {\r\n id: string;\r\n origem: string;\r\n desc: string;\r\n primDet: string;\r\n ultDet: string;\r\n status: string;\r\n lastAction: FaultAction,\r\n statusDesc: string;\r\n checked?: boolean;\r\n}\r\n\r\ntype Dev = {\r\n DEV_ID: string;\r\n CLIENT_NAME: string;\r\n UNIT_NAME: string;\r\n UNIT_ID: number;\r\n H_INDEX: number;\r\n hLevelDesc: string;\r\n faults: Fault[];\r\n};\r\n\r\nconst APPROVAL_DESCS = {\r\n APPROVED: 'Aprovado',\r\n REJECTED: 'Reprovado',\r\n ERASED: 'Apagado',\r\n PENDING: 'Pendente',\r\n RESTABLISHED: 'Restabelecido',\r\n RESTAB_WAITING: 'Restabelecimento esperando falha pendente',\r\n RESTAB_PENDING: 'Restabelecimento manual pendente',\r\n};\r\n\r\nexport function FaultsList(): JSX.Element {\r\n const [state, render, setState] = useStateVar({\r\n loading: false,\r\n searchText: '',\r\n selectPositionX: 223,\r\n selectPositionY: 1536,\r\n filterOpts: [\r\n { value: 'PENDING', label: 'Pendentes' }, // o valor padrão é \"PENDING\"\r\n { value: 'APPROVED', label: 'Aprovadas' },\r\n { value: 'REJECTED', label: 'Reprovadas' },\r\n { value: 'RESTAB_WAITING', label: 'Restabelecimento esperando falha pendente' },\r\n { value: 'ALL', label: 'Todas' },\r\n ],\r\n statusSelection: null as null|{ value: string, label: string },\r\n healthSelection: null as null|{ value: string, label: string },\r\n unitSelection: 0 as number,\r\n clientSelection: 0 as number,\r\n dataSelection: null as null|{ value: string, label: string },\r\n devs: [] as Dev[],\r\n faults_count: 0,\r\n dateStart: null as null|moment.Moment,\r\n dateEnd: null as null|moment.Moment,\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n focusedInput: null as 'endDate'|'startDate'|null,\r\n focused: false,\r\n isModalOpen: false,\r\n multiDays: false,\r\n });\r\n const { pathname } = useLocation();\r\n\r\n const faultType: 'dac'|'dut'| undefined = useMemo(() => {\r\n const splitPath = pathname.split('/');\r\n const faultType = splitPath[splitPath.length - 1];\r\n console.log(faultType);\r\n if (faultType === 'dac' || faultType === 'dut') {\r\n return faultType;\r\n }\r\n }, [pathname]);\r\n\r\n useEffect(() => {\r\n loadData();\r\n }, [faultType]);\r\n\r\n function filterFaultsBySearchTerms(dac, searchTerms, filteredFaults) {\r\n for (const term of searchTerms) {\r\n if (shouldSkipTerm(dac, term)) {\r\n continue;\r\n }\r\n filteredFaults = filterFaultRowsByTerm(filteredFaults, term);\r\n if (!filteredFaults.length) {\r\n break;\r\n }\r\n }\r\n return filteredFaults;\r\n }\r\n\r\n function shouldSkipTerm(dev, term) {\r\n return (\r\n (dev.CLIENT_NAME || '').toLowerCase().includes(term)\r\n || (dev.UNIT_NAME || '').toLowerCase().includes(term)\r\n || (dev.DEV_ID || '').toLowerCase().includes(term)\r\n || (dev.hLevelDesc || '').toLowerCase().includes(term)\r\n );\r\n }\r\n\r\n function filterFaultRowsByTerm(filteredFaults, term) {\r\n return filteredFaults.filter((faultRow) => (\r\n (faultRow.origem || '').toLowerCase().includes(term)\r\n || (faultRow.desc || '').toLowerCase().includes(term)\r\n ));\r\n }\r\n\r\n function applyFilters(filteredFaults, dataSelection, dateStart, dateEnd) {\r\n if (dataSelection && dataSelection.value !== 'ALL') {\r\n filteredFaults = filteredFaults.filter((faultRow) => (faultRow.status || '') === dataSelection?.value);\r\n }\r\n\r\n if (dateStart) {\r\n filteredFaults = filteredFaults.filter((faultRow) => {\r\n const faultDate = moment(faultRow.primDet);\r\n return faultDate.isSameOrAfter(dateStart, 'day');\r\n });\r\n }\r\n\r\n if (dateEnd) {\r\n filteredFaults = filteredFaults.filter((faultRow) => {\r\n const faultDate = moment(faultRow.primDet);\r\n return faultDate.isSameOrBefore(dateEnd, 'day');\r\n });\r\n }\r\n\r\n return filteredFaults;\r\n }\r\n\r\n const filteredDacs = useMemo(() => {\r\n const searchTerms = state.searchText.toLowerCase().split(' ').map((x) => x.trim()).filter((x) => !!x);\r\n if (!searchTerms.length && state.dataSelection?.value === 'ALL' && !state.dateStart && !state.dateEnd) {\r\n state.faults_count = state.devs.length;\r\n return state.devs;\r\n }\r\n const auxiliarFilteredDacs: Dev[] = [];\r\n\r\n for (const dac of state.devs) {\r\n if (dac.faults !== undefined) {\r\n let filteredFaults = dac.faults;\r\n\r\n filteredFaults = applyFilters(filteredFaults, state.dataSelection, state.dateStart, state.dateEnd);\r\n\r\n filteredFaults = filterFaultsBySearchTerms(dac, searchTerms, filteredFaults);\r\n\r\n if (filteredFaults && filteredFaults.length) {\r\n auxiliarFilteredDacs.push({ ...dac, faults: filteredFaults });\r\n }\r\n }\r\n }\r\n state.faults_count = auxiliarFilteredDacs.length;\r\n return auxiliarFilteredDacs;\r\n },\r\n [state.devs, state.searchText, state.dataSelection]);\r\n\r\n async function loadData() {\r\n setState({ loading: true });\r\n try {\r\n const { list: faultyDacs, expirationLimit } = await apiCall('/dev/get-faults', { devType: faultType });\r\n\r\n state.devs = [];\r\n\r\n for (const item of faultyDacs) {\r\n const faults: Fault[] = [];\r\n\r\n if (item.fdetected) {\r\n Object.values(item.fdetected).forEach((falha) => {\r\n faults.push(buildFaultLine(falha, expirationLimit));\r\n });\r\n }\r\n const hLevelDesc = healthLevelDesc[String(item.H_INDEX)];\r\n state.devs.push(Object.assign(item, { faults, hLevelDesc, rowkey: item.DEV_ID }));\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n setState({ loading: false });\r\n }\r\n\r\n function buildFaultLine(\r\n falha: {\r\n id: string;\r\n origin: string;\r\n faultName: string;\r\n faultLevel: number;\r\n lastActionTime: number;\r\n lastAction: FaultAction;\r\n lastDet: number;\r\n lastRiseTS: string;\r\n firstRiseTS: string;\r\n },\r\n expirationLimit?: number,\r\n ) {\r\n if (expirationLimit && (falha?.lastActionTime < expirationLimit)) {\r\n if (falha.lastAction === 'ERASED' || falha.lastAction === 'REJECTED') {\r\n const falhaTemp: { lastAction?: string } = falha;\r\n delete falhaTemp.lastAction;\r\n }\r\n }\r\n\r\n let desc = falha.faultName || '-';\r\n let status: string = falha.lastAction || 'PENDING';\r\n if (falha.lastAction === 'RESTAB_PENDING') {\r\n desc = `(Restabelecimento) ${desc}`;\r\n status = 'Pendente';\r\n }\r\n return {\r\n id: falha.id,\r\n origem: falha.origin || '-',\r\n desc,\r\n primDet: (falha?.firstRiseTS?.substring(0, 19)?.replace('T', ' ')) || '-',\r\n ultDet: (falha?.lastRiseTS?.substring(0, 19)?.replace('T', ' ')) || '-',\r\n status,\r\n statusDesc: APPROVAL_DESCS[falha.lastAction],\r\n lastAction: falha.lastAction,\r\n };\r\n }\r\n\r\n async function exportFaults() {\r\n try {\r\n const exportResponse = await apiCallDownload('/export-dacs-faults', {});\r\n const link = document.getElementById('downloadLink') as any;\r\n if (link !== null) {\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || 'Falhas.xlsx';\r\n link.click();\r\n toast.success('Exportado com sucesso.');\r\n } else {\r\n throw new Error();\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível exportar!');\r\n }\r\n }\r\n\r\n function handleFaultItemClick(event, fault: { checked?: boolean }) {\r\n state.selectPositionX = event.clientX - 300;\r\n state.selectPositionY = event.clientY;\r\n fault.checked = !fault.checked;\r\n render();\r\n }\r\n\r\n const TABLE_COLUMNS = [\r\n {\r\n name: 'client',\r\n value: t('cliente'),\r\n accessor: 'CLIENT_NAME',\r\n },\r\n {\r\n name: 'unit',\r\n value: t('unidade'),\r\n accessor: 'UNIT_NAME',\r\n render: (props: Dev) => ((props.UNIT_NAME) ? {props.UNIT_NAME || '-'} : (props.UNIT_NAME || '-')),\r\n },\r\n {\r\n name: 'dev',\r\n value: t('dispositivo'),\r\n accessor: 'DEV_ID',\r\n render: ({ DEV_ID }: Dev) => {DEV_ID},\r\n },\r\n {\r\n name: 'health_now',\r\n value: t('saudeAtual'),\r\n accessor: 'H_INDEX',\r\n render: ({ H_INDEX }: Dev) => ,\r\n },\r\n {\r\n name: 'origin',\r\n value: t('origem'),\r\n sortable: false,\r\n accessor: 'fault.origem',\r\n render: ({ faults }: Dev) => (\r\n \r\n {faults.map((fault) =>
{fault.origem}
)}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'fault',\r\n value: t('falhasDetectadas'),\r\n sortable: false,\r\n accessor: 'fault.desc',\r\n render: ({ faults }: Dev) => (\r\n \r\n {faults.map((fault) =>
{fault.desc}
)}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'first_alert',\r\n value: t('1oAlerta'),\r\n sortable: false,\r\n accessor: 'fault.primDet',\r\n render: ({ faults }: Dev) => (\r\n \r\n {faults.map((fault) =>
{fault.primDet}
)}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'last_alert',\r\n value: t('ultimaDet'),\r\n sortable: false,\r\n accessor: 'fault.ultDet',\r\n render: ({ faults, DEV_ID }: Dev) => (\r\n \r\n \r\n {faults.map((fault) =>
{fault.ultDet}
)}\r\n
\r\n
\r\n ),\r\n },\r\n {\r\n name: 'status',\r\n value: 'Status',\r\n sortable: false,\r\n accessor: 'fault.status',\r\n render: ({ faults }: Dev) => (\r\n \r\n {faults.map((fault) =>
{APPROVAL_DESCS[fault.status] || fault.status}
)}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'checkbox',\r\n value: '',\r\n sortable: false,\r\n checkable: true,\r\n checkValue: [{ value: 'faults', type: 'array' }, { value: 'checked', type: 'check' }],\r\n width: 50,\r\n render: ({ faults, DEV_ID }: Dev) => (\r\n \r\n {faults.map((fault) => (\r\n handleFaultItemClick(event, fault)}\r\n />\r\n ))}\r\n \r\n ),\r\n },\r\n ];\r\n\r\n const selectedDacFaults = [] as { devId: string, faultId: string, state: string }[];\r\n state.devs.forEach((dev) => {\r\n dev.faults.forEach((fault) => {\r\n if (fault.checked) {\r\n selectedDacFaults.push({ devId: dev.DEV_ID, faultId: fault.id, state: fault.lastAction });\r\n }\r\n });\r\n });\r\n\r\n function onMultidaysClick() {\r\n state.multiDays = !state.multiDays;\r\n if (!state.multiDays) {\r\n state.dateEnd = state.dateStart;\r\n }\r\n console.log(state.multiDays);\r\n render();\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n Diel Energia -\r\n {` ${faultType === 'dut' ? t('dutsComFalha') : t('dacsComFalha')}`}\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n {state.loading ? (\r\n \r\n \r\n Carregando\r\n \r\n ) : (\r\n <>\r\n
\r\n
\r\n \r\n setState({ searchText: e.target.value })}\r\n />\r\n \r\n \r\n { state.dataSelection = opt; render(); }}\r\n notNull\r\n />\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n

\r\n {state.faults_count}\r\n {' '}\r\n falha(s) encontrada(s)\r\n

\r\n
\r\n
\r\n {(selectedDacFaults.length > 0) && (\r\n \r\n { applyActionToSelectedDacs(opt.value, selectedDacFaults); }}\r\n />\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nexport async function applyActionToSelectedDacs(action: 'approve'|'reject'|'erase'|'disable', selectedFaults: { devId: string, faultId: string, state: string}[]) {\r\n try {\r\n if (!selectedFaults.length) return;\r\n\r\n if (action === 'approve') {\r\n if (!window.confirm('Deseja alterar o índice de saúde e confirmar a(s) falha(s)?')) return;\r\n for (const falha of selectedFaults) {\r\n let faultAction: 'APPROVED'|'REJECTED'|'ERASED'|'RESTABLISHED' = 'APPROVED';\r\n if (falha.state === 'RESTAB_PENDING') {\r\n faultAction = 'RESTABLISHED';\r\n }\r\n await apiCall('/dac/detected-fault-confirmation', {\r\n devId: falha.devId, faultId: falha.faultId, action: faultAction,\r\n });\r\n }\r\n window.location.reload();\r\n return;\r\n }\r\n\r\n if (action === 'reject') {\r\n if (!window.confirm('Deseja reprovar a(s) falha(s)?')) return;\r\n for (const falha of selectedFaults) {\r\n let faultAction: 'APPROVED'|'REJECTED'|'ERASED'|'RESTABLISHED' = 'REJECTED';\r\n if (falha.state === 'RESTAB_PENDING') {\r\n faultAction = 'APPROVED';\r\n }\r\n await apiCall('/dac/detected-fault-confirmation', {\r\n devId: falha.devId, faultId: falha.faultId, action: faultAction,\r\n });\r\n }\r\n window.location.reload();\r\n return;\r\n }\r\n\r\n if (action === 'erase') {\r\n if (!window.confirm('Deseja ignorar a(s) falha(s)?')) return;\r\n for (const falha of selectedFaults) {\r\n await apiCall('/dac/detected-fault-confirmation', {\r\n devId: falha.devId, faultId: falha.faultId, action: 'ERASED',\r\n });\r\n }\r\n window.location.reload();\r\n return;\r\n }\r\n\r\n if (action === 'disable') {\r\n if (!window.confirm('Deseja desativar a verificação da(s) falha(s)?')) return;\r\n for (const falha of selectedFaults) {\r\n await apiCall('/ignore-fault-check', {\r\n dev_id: falha.devId, faultId: falha.faultId, ignore: true,\r\n });\r\n }\r\n window.location.reload();\r\n return;\r\n }\r\n } catch (err) {\r\n console.log(err); toast.error('Houve erro');\r\n }\r\n}\r\n\r\nexport default withTransaction('FaultsListDAC', 'component')(FaultsList);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const LoaderContainer = styled.div`\r\nposition: absolute;\r\nleft: 0;\r\ntop: 0;\r\nwidth: 100%;\r\nheight: 100%;\r\ndisplay: flex;\r\nflex-direction: column;\r\nalign-items: center;\r\njustify-content: center;\r\nz-index: 2;\r\nbackground-color: rgba(255, 255, 255, 0.5);\r\n`;\r\n\r\nexport const Scroll = styled.div`\r\noverflow-x: auto;\r\n`;\r\n\r\nexport const FaultsRow = styled.div`\r\ndisplay: flex;\r\nflex-direction: column;\r\nalign-items: flex-start;\r\njustify-content: space-around;\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\ncolor: ${colors.LightBlue};\r\n`;\r\n\r\nexport const TransparentLink = styled(Link)`\r\ncolor: inherit;\r\ntext-decoration: inherit;\r\n`;\r\n\r\nexport const SelectContainer = styled.div`\r\nfont-weight: bold;\r\nposition: fixed;\r\nbackground: white;\r\nborder: 2px solid #d3d3d3;\r\nborder-radius: 10px;\r\nbox-shadow: 5px 6px 11px rgba(0,0,0,0.24), 0px 14px 15px rgba(0,0,0,0.12);\r\n`;\r\n","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n Loader, Checkbox, Select, NewTable,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n LoaderContainer,\r\n Scroll,\r\n FaultsRow,\r\n StyledLink,\r\n TransparentLink,\r\n SelectContainer,\r\n} from './styles';\r\nimport { FaultsLayout } from '../FaultsLayout';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { t } from 'i18next';\r\n\r\nconst approvalDesc = {\r\n APPROVED: 'Aprovado',\r\n REJECTED: 'Reprovado',\r\n ERASED: 'Apagado',\r\n};\r\n\r\nfunction urlText(text) {\r\n return encodeURIComponent((text || 'null').replace(/ /g, '-'));\r\n}\r\n\r\nexport const FaultsListDAM = (): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n dams: [] as {\r\n DAM_ID: string\r\n faults: {\r\n id: string\r\n desc: string\r\n primDet: string\r\n ultDet: string\r\n checked?: boolean\r\n }[]\r\n }[],\r\n loading: false,\r\n selectPositionX: 223,\r\n selectPositionY: 1536,\r\n columns: [\r\n {\r\n name: 'client',\r\n value: 'Cliente',\r\n accessor: 'CLIENT_NAME',\r\n },\r\n {\r\n name: 'unit',\r\n value: 'Unidade',\r\n accessor: 'UNIT_NAME',\r\n render: (props) => ((props.UNIT_NAME) ? {props.UNIT_NAME || '-'} : (props.UNIT_NAME || '-')),\r\n },\r\n {\r\n name: 'dam',\r\n value: 'DAM',\r\n accessor: 'DAM_ID',\r\n render: (props) => {props.DAM_ID},\r\n },\r\n {\r\n name: 'fault',\r\n value: 'Falha',\r\n sortable: false,\r\n render: (props) => (\r\n \r\n {props.faults.map((fault) =>
{fault.desc}
)}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'firstAlert',\r\n value: '1º Alerta',\r\n sortable: false,\r\n render: (props) => (\r\n \r\n {props.faults.map((fault) =>
{fault.primDet}
)}\r\n
\r\n ),\r\n },\r\n {\r\n name: 'lastDetec',\r\n value: 'Última Detecção',\r\n sortable: false,\r\n render: (props) => (\r\n \r\n \r\n {props.faults.map((fault) =>
{fault.ultDet}
)}\r\n
\r\n
\r\n ),\r\n },\r\n {\r\n name: 'checkbox',\r\n value: '',\r\n sortable: false,\r\n checkable: true,\r\n checkValue: [{ value: 'faults', type: 'array' }, { value: 'checked', type: 'check' }],\r\n width: 50,\r\n render: (props) => (\r\n \r\n {props.faults.map((fault) => (\r\n {\r\n state.selectPositionX = event.clientX - 300;\r\n state.selectPositionY = event.clientY;\r\n fault.checked = !fault.checked;\r\n render();\r\n }}\r\n />\r\n ))}\r\n \r\n ),\r\n },\r\n ],\r\n });\r\n\r\n const loadData = () => {\r\n Promise.resolve().then(async () => {\r\n setState({ loading: true });\r\n try {\r\n const [\r\n { list: faultyDams },\r\n ] = await Promise.all([\r\n apiCall('/get-dams-faults', {}),\r\n ]);\r\n\r\n state.dams = [];\r\n\r\n for (const item of faultyDams) {\r\n const faults = [] as (typeof state.dams)[0]['faults'];\r\n if (item.fdetected) {\r\n Object.values(item.fdetected).forEach((falha) => {\r\n faults.push({\r\n id: falha.id,\r\n desc: falha.faultName || '-',\r\n primDet: (falha.firstRiseTS && new Date(falha.firstRiseTS - 3 * 60 * 60 * 1000).toISOString().substr(0, 19).replace('T', ' ')) || '-',\r\n ultDet: (falha.lastRiseTS && new Date(falha.lastRiseTS - 3 * 60 * 60 * 1000).toISOString().substr(0, 19).replace('T', ' ')) || '-',\r\n });\r\n });\r\n }\r\n state.dams.push(Object.assign(item, { faults }));\r\n }\r\n } catch (err) { console.log(err); }\r\n setState({ loading: false });\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n render();\r\n loadData();\r\n }, []);\r\n\r\n async function applyActionToSelectedDams(action, selectedFaults) {\r\n try {\r\n if (!selectedFaults.length) return;\r\n\r\n if (action === 'erase') {\r\n if (!window.confirm('Deseja ignorar a(s) falha(s)?')) return;\r\n for (const falha of selectedFaults) {\r\n await apiCall('/dam/clear-fault-daminop', { damId: falha.devId });\r\n }\r\n window.location.reload();\r\n return;\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n }\r\n\r\n const selectedDamFaults = [] as { devId: string, faultId: string }[];\r\n state.dams.forEach((dev) => {\r\n dev.faults.forEach((fault) => {\r\n if (fault.checked) {\r\n selectedDamFaults.push({ devId: dev.DAM_ID, faultId: fault.id });\r\n }\r\n });\r\n });\r\n\r\n return (\r\n <>\r\n \r\n \r\n Diel Energia -\r\n {` ${t('damsComFalha')}`}\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n {state.loading && (\r\n \r\n \r\n Carregando\r\n \r\n )}\r\n {(!state.loading)\r\n && (\r\n <>\r\n {(selectedDamFaults.length > 0) && (\r\n \r\n { applyActionToSelectedDams(opt.value, selectedDamFaults); }}\r\n />\r\n \r\n )}\r\n \r\n \r\n \r\n\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('FaultsListDAM', 'component')(FaultsListDAM);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const Container = styled.div``;\r\n\r\nexport const SelectContainer = styled.div`\r\nfont-weight: bold;\r\nposition: fixed;\r\nbackground: white;\r\nborder: 2px solid #d3d3d3;\r\nborder-radius: 10px;\r\nbox-shadow: 5px 6px 11px rgba(0,0,0,0.24), 0px 14px 15px rgba(0,0,0,0.12);\r\n`;\r\n\r\nexport const LoaderContainer = styled.div`\r\nposition: absolute;\r\nleft: 0;\r\ntop: 0;\r\nwidth: 100%;\r\nheight: 100%;\r\ndisplay: flex;\r\nflex-direction: column;\r\nalign-items: center;\r\njustify-content: center;\r\nz-index: 2;\r\nbackground-color: rgba(255, 255, 255, 0.5);\r\n`;\r\n\r\nexport const Scroll = styled.div`\r\noverflow-x: auto;\r\nmargin-top: 25px;\r\n`;\r\n\r\nexport const FaultsRow = styled.div`\r\ndisplay: flex;\r\nflex-direction: column;\r\nalign-items: flex-start;\r\njustify-content: space-around;\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\ncolor: ${colors.LightBlue};\r\n`;\r\n\r\nexport const TransparentLink = styled(Link)`\r\ncolor: inherit;\r\ntext-decoration: inherit;\r\n`;\r\n","import {\r\n useEffect,\r\n useMemo,\r\n useRef,\r\n} from 'react';\r\n\r\nimport { CSVLink } from 'react-csv';\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport { Box } from 'reflexbox';\r\nimport moment from 'moment';\r\n\r\nimport {\r\n Loader, NewTable, InputSearch, Button,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n LoaderContainer,\r\n Scroll,\r\n FaultsRow,\r\n StyledLink,\r\n Container,\r\n} from './styles';\r\nimport { FaultsLayout } from '../FaultsLayout';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { t } from 'i18next';\r\n\r\ntype Fault = {\r\n fault_name: string,\r\n dev_id: string,\r\n fault_time?: string,\r\n return_time?: string,\r\n notif_type: 'Detect' | 'Return',\r\n}\r\n\r\ntype Dac = {\r\n DAC_ID: string;\r\n CLIENT_NAME: string;\r\n UNIT_NAME: string;\r\n UNIT_ID: number;\r\n faults: Fault[];\r\n};\r\n\r\nexport function FaultsListInstallation(): JSX.Element {\r\n const [state, render, setState] = useStateVar({\r\n loading: false,\r\n searchText: '',\r\n selectPositionX: 223,\r\n selectPositionY: 1536,\r\n dacs: [] as Dac[],\r\n csvData: [] as {\r\n DAC_ID: string,\r\n CLIENT_NAME: string,\r\n UNIT_NAME: string,\r\n falha: string,\r\n dataEntrada: string,\r\n dataSaida: string,\r\n }[],\r\n });\r\n\r\n const CSVheader = [\r\n { label: 'Cliente', key: 'CLIENT_NAME' },\r\n { label: 'Unidade', key: 'UNIT_NAME' },\r\n { label: 'Dispositivo', key: 'DAC_ID' },\r\n { label: 'Falha', key: 'falha' },\r\n { label: 'Data de Entrada', key: 'dataEntrada' },\r\n { label: 'Data de Saída', key: 'dataSaida' },\r\n ];\r\n\r\n const csvLinkEl = useRef();\r\n\r\n useEffect(() => {\r\n loadData();\r\n }, []);\r\n\r\n const filteredDacs = useMemo(() => {\r\n const searchTerms = state.searchText.toLowerCase().split(' ').map((x) => x.trim()).filter((x) => !!x);\r\n if (!searchTerms.length) return state.dacs;\r\n const auxiliarFilteredDacs: Dac[] = [];\r\n\r\n for (const dac of state.dacs) {\r\n if (dac.faults !== undefined) {\r\n let filteredFaults = dac.faults;\r\n for (const term of searchTerms) {\r\n if ((dac.CLIENT_NAME || '').toLowerCase().includes(term)) { continue; }\r\n if ((dac.UNIT_NAME || '').toLowerCase().includes(term)) { continue; }\r\n if ((dac.DAC_ID || '').toLowerCase().includes(term)) { continue; }\r\n filteredFaults = filteredFaults.filter((faultRow) => (faultRow.fault_name || '').toLowerCase().includes(term));\r\n\r\n if (!filteredFaults.length) break;\r\n }\r\n\r\n if (filteredFaults && filteredFaults.length) {\r\n auxiliarFilteredDacs.push({ ...dac, faults: filteredFaults });\r\n }\r\n }\r\n }\r\n return auxiliarFilteredDacs;\r\n },\r\n [state.dacs, state.searchText]);\r\n\r\n async function loadData() {\r\n setState({ loading: true });\r\n try {\r\n const reqParams = {\r\n startTime: moment().add(-2, 'w').format('YYYY-MM-DDThh:mm:ss'), // não usa toISOString pois seria necessário retirar a timezone.\r\n };\r\n const { falhas: faultyDacs, dacs: dacInfos, success } = await apiCall('/dac/get-installation-faults', reqParams);\r\n state.dacs = [];\r\n\r\n for (const [devId, faults] of Object.entries(faultyDacs)) {\r\n const dacFaults: Fault[] = [];\r\n for (const faultsList of Object.values(faults)) {\r\n faultsList.sort((a, b) => {\r\n if (a.fault_time > b.fault_time) {\r\n return 1;\r\n }\r\n if (a.fault_time < b.fault_time) {\r\n return -1;\r\n }\r\n return 0;\r\n });\r\n\r\n const filteredFaults = faultsList.filter((fault, index, list) => {\r\n // o objetivo é ter somente a primeira ocorrência de cada estado (detectado ou retornado) para montar uma entrada na lista para cada par.\r\n if (index === 0) return true; // sempre mantém o primeiro\r\n const former = list[index - 1];\r\n if (fault.notif_type === former.notif_type) return false; // se notif_type não variar, descartar o atual\r\n return true;\r\n });\r\n\r\n for (const fault of filteredFaults) {\r\n fault.fault_time = fault.fault_time.replace('T', ' ');\r\n if (fault.notif_type === 'Return') {\r\n if (dacFaults.length === 0) continue;\r\n dacFaults[dacFaults.length - 1].return_time = fault.fault_time;\r\n }\r\n else if (fault.notif_type === 'Detect') {\r\n dacFaults.push(fault);\r\n }\r\n }\r\n }\r\n\r\n const dacInfo = dacInfos[devId] || {};\r\n\r\n const dac: Dac = {\r\n DAC_ID: devId,\r\n CLIENT_NAME: dacInfo.CLIENT_NAME || '-',\r\n UNIT_ID: dacInfo.UNIT_ID || 0,\r\n UNIT_NAME: dacInfo.UNIT_NAME || '-',\r\n faults: dacFaults,\r\n };\r\n if (dacFaults.length > 0) {\r\n state.dacs.push(dac);\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n setState({ loading: false });\r\n }\r\n\r\n async function exportFaults() {\r\n try {\r\n const flattenedData = state.dacs.flatMap((dac) => dac.faults.map((fault) => ({\r\n DAC_ID: dac.DAC_ID,\r\n CLIENT_NAME: dac.CLIENT_NAME,\r\n UNIT_ID: dac.UNIT_ID,\r\n UNIT_NAME: dac.UNIT_NAME,\r\n falha: fault.fault_name,\r\n dataEntrada: fault.fault_time || '-',\r\n dataSaida: fault.return_time || '-',\r\n })));\r\n state.csvData = flattenedData;\r\n render();\r\n setTimeout(() => {\r\n (csvLinkEl as any).current.link.click();\r\n }, 1000);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível exportar!');\r\n }\r\n }\r\n\r\n function handleFaultItemClick(event, fault: { checked?: boolean }) {\r\n state.selectPositionX = event.clientX - 300;\r\n state.selectPositionY = event.clientY;\r\n fault.checked = !fault.checked;\r\n render();\r\n }\r\n\r\n const TABLE_COLUMNS = [\r\n {\r\n name: 'client',\r\n value: 'Cliente',\r\n accessor: 'CLIENT_NAME',\r\n },\r\n {\r\n name: 'unit',\r\n value: 'Unidade',\r\n accessor: 'UNIT_NAME',\r\n render: (props: Dac) => ((props.UNIT_NAME) ? {props.UNIT_NAME || '-'} : (props.UNIT_NAME || '-')),\r\n },\r\n {\r\n name: 'dac',\r\n value: 'DAC',\r\n accessor: 'DAC_ID',\r\n render: ({ DAC_ID }: Dac) => (\r\n \r\n {DAC_ID}\r\n \r\n ),\r\n },\r\n {\r\n name: 'falha',\r\n value: 'Falha',\r\n accessor: null,\r\n render: ({ faults }: Dac) => (\r\n \r\n {faults.map((fault) => (\r\n \r\n {fault.fault_name}\r\n
\r\n ))}\r\n \r\n ),\r\n },\r\n {\r\n name: 'first_alert',\r\n value: 'Data de Entrada',\r\n sortable: true,\r\n accessor: null,\r\n render: ({ faults }: Dac) => (\r\n \r\n {faults.map((fault) =>
{fault.fault_time}
)}\r\n \r\n ),\r\n },\r\n {\r\n name: 'last_alert',\r\n value: 'Data de Saída',\r\n sortable: true,\r\n accessor: null,\r\n render: ({ faults, DAC_ID }: Dac) => (\r\n \r\n {faults.map((fault) =>
{fault.return_time || '-'}
)}\r\n \r\n ),\r\n },\r\n ];\r\n\r\n return (\r\n \r\n \r\n \r\n Diel Energia -\r\n {` ${t('instalacao')}`}\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n {state.loading ? (\r\n \r\n \r\n Carregando\r\n \r\n ) : (\r\n <>\r\n
\r\n
\r\n \r\n setState({ searchText: e.target.value })}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nexport default withTransaction('FaultsListInstallation', 'component')(FaultsListInstallation);\r\n","import styled from 'styled-components';\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const CardTitle = styled.h3`\r\n cursor: pointer;\r\n text-decoration: underline;\r\n`;\r\n\r\nexport const InputNumber = styled.div`\r\n display: flex;\r\n margin-left: 30px;\r\n height: 54px;\r\n position: relative;\r\n label {\r\n color: #202370;\r\n position: absolute;\r\n z-index: 1;\r\n margin: 8px;\r\n margin-left: 10px;\r\n font-size: 11px;\r\n font-weight: bold;\r\n }\r\n input {\r\n padding-top: 13px;\r\n padding-left: 10px;\r\n position: relative;\r\n border-radius: 5px;\r\n border: 1px solid gray;\r\n outline: 0;\r\n }\r\n p {\r\n font-size: 10px;\r\n }\r\n`;\r\n\r\nexport const StyleSelect = styled.div`\r\n height: 58.84px;\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n .select-search { \r\n padding-top: 25px;\r\n }\r\n .select-search__value{\r\n }\r\n\r\n .select-search.has-focus{\r\n }\r\n\r\n label {\r\n color: #202370;\r\n position: absolute;\r\n z-index: 1;\r\n margin: 5px;\r\n margin-left: 10px;\r\n font-size: 11px;\r\n padding-top: 3px;\r\n padding-left: 5px;\r\n font-weight: bold;\r\n }\r\n`;\r\n\r\nexport const CustomAnalysis = styled.div`\r\n display: flex;\r\n gap: 20px;\r\n margin-bottom: 15px;\r\n .dielTool{\r\n display: none;\r\n min-width: 0;\r\n height: 0;\r\n }\r\n`;\r\n","import { toast } from 'react-toastify';\r\nimport { Button } from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCallDownload } from 'providers';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport function ExportarDevs(): JSX.Element {\r\n const { t } = useTranslation();\r\n const [state, , setState] = useStateVar(() => ({\r\n isExportingDacs: false,\r\n }));\r\n\r\n async function exportDacsList() {\r\n try {\r\n setState({ isExportingDacs: true });\r\n const exportResponse = await apiCallDownload('/devtools/export-dacs-info', {});\r\n const link: any = document.getElementById('downloadLink');\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || 'DEVs.xlsx';\r\n link.click();\r\n toast.success(t('sucessoExportacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroExportacao'));\r\n }\r\n setState({ isExportingDacs: false });\r\n }\r\n async function exportDutsList() {\r\n try {\r\n setState({ isExportingDacs: true });\r\n const exportResponse = await apiCallDownload('/devtools/export-duts-info', {});\r\n console.log(exportResponse);\r\n const link: any = document.getElementById('downloadLink');\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || 'DEVs.xlsx';\r\n link.click();\r\n toast.success(t('sucessoExportacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroExportacao'));\r\n }\r\n setState({ isExportingDacs: false });\r\n }\r\n async function exportDamsList() {\r\n try {\r\n setState({ isExportingDacs: true });\r\n const exportResponse = await apiCallDownload('/devtools/export-dams-info', {});\r\n const link: any = document.getElementById('downloadLink');\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || 'DEVs.xlsx';\r\n link.click();\r\n toast.success(t('sucessoExportacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroExportacao'));\r\n }\r\n setState({ isExportingDacs: false });\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n","import { useEffect } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Button,\r\n Loader,\r\n Select,\r\n Input,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, apiCallDownload } from 'providers';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { StyleSelect } from '../styles';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport function TemprtMediaDUTs(): JSX.Element {\r\n const { t } = useTranslation();\r\n const [state, render_, setState] = useStateVar({\r\n isLoading: true,\r\n isExporting: false,\r\n dayStart: new Date(Date.now() - 3 * (60 * 60 * 1000) - 60 * (24 * 60 * 60 * 1000)).toISOString().substring(0, 10),\r\n clients: [] as { value: string, name: string }[],\r\n selectedClient: [] as any | any[],\r\n async fetchServerData() {\r\n try {\r\n const { list } = await apiCall('/clients/get-clients-list', {});\r\n state.clients = list.map((client) => ({\r\n value: client.CLIENT_ID.toString(),\r\n name: client.NAME,\r\n }));\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n setState({ isLoading: false });\r\n },\r\n });\r\n\r\n useEffect(() => {\r\n state.fetchServerData();\r\n }, []);\r\n\r\n if (state.isLoading) return ;\r\n\r\n async function exportList() {\r\n try {\r\n if (!state.selectedClient) return;\r\n setState({ isExporting: true });\r\n const exportResponse = await apiCallDownload('/devtools/export-duts-mean-temperatures', {\r\n dayStart: new Date(`${state.dayStart}T00:00Z`).toISOString().substring(0, 10),\r\n clientIds: [Number(state.selectedClient)],\r\n });\r\n const link: any = document.getElementById('downloadLink');\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || 'TemperaturasMedias.xlsx';\r\n link.click();\r\n toast.success(t('sucessoExportacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroExportacao'));\r\n }\r\n setState({ isExporting: false });\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n \r\n \r\n { setState({\r\n selectedClient: value,\r\n }); render_(); }}\r\n placeholder={t('selecioneCliente')}\r\n label={t('cliente')}\r\n />\r\n \r\n
\r\n
\r\n setState({ dayStart: e.target.value })}\r\n label={t('dataInicial')}\r\n style={{ width: '130px' }}\r\n />\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n","import { DiscreteHistVar } from './formatArrHistory';\r\n\r\ninterface DataLimits {\r\n minTval?: number,\r\n maxTval?: number,\r\n minPval?: number,\r\n maxPval?: number,\r\n minCO2val?: number,\r\n maxCO2val?: number,\r\n minHum?: number,\r\n maxHum?: number,\r\n}\r\n\r\nexport function updateDataLimits(newDataLimits: DataLimits, currentDataLimits?: DataLimits): DataLimits {\r\n if (!currentDataLimits) {\r\n currentDataLimits = {};\r\n }\r\n for (const minVar of ['minTval', 'minPval', 'minCO2val', 'minHum']) {\r\n if (newDataLimits[minVar] != null) {\r\n if (typeof currentDataLimits[minVar] !== 'number' || newDataLimits[minVar] < currentDataLimits[minVar]) {\r\n currentDataLimits[minVar] = newDataLimits[minVar];\r\n }\r\n }\r\n }\r\n\r\n for (const minVar of ['maxTval', 'maxPval', 'maxCO2val', 'maxHum']) {\r\n if (newDataLimits[minVar] != null) {\r\n if (typeof currentDataLimits[minVar] !== 'number' || newDataLimits[minVar] > currentDataLimits[minVar]) {\r\n currentDataLimits[minVar] = newDataLimits[minVar];\r\n }\r\n }\r\n }\r\n\r\n return currentDataLimits;\r\n}\r\n\r\nexport function calculateTemprtAxisInfo(limits: { min: null|number, max: null|number }) {\r\n const { min: minDataVal, max: maxDataVal } = limits;\r\n\r\n if ((minDataVal == null) || (maxDataVal == null)) {\r\n return {\r\n L1start: 0,\r\n ticks: [],\r\n maxAxisVal: 0,\r\n };\r\n }\r\n\r\n const maxTtick = Math.ceil((maxDataVal + 0.5) / 5) * 5;\r\n const minTtick = Math.floor((minDataVal - 0.5) / 5) * 5;\r\n const ticks = [] as number[];\r\n for (let t = minTtick; t <= maxTtick; t += 5) {\r\n ticks.push(t);\r\n }\r\n\r\n return { L1start: minTtick, ticks, maxAxisVal: maxTtick };\r\n}\r\n\r\nfunction presentLimits(dataLimits: DataLimits) {\r\n const {\r\n minTval, maxTval, minPval, maxPval, minCO2val, maxCO2val, minHum, maxHum,\r\n } = dataLimits;\r\n return {\r\n Temperature: (minTval != null) && (maxTval != null),\r\n Pressure: (minPval != null) && (maxPval != null),\r\n CO2: (minCO2val != null) && (maxCO2val != null),\r\n Humidity: (minHum != null) && (maxHum != null),\r\n };\r\n}\r\n\r\nfunction getInitialLimits(dataLimits: DataLimits, numOfBoolVars: number) {\r\n let {\r\n minTval, maxTval, minPval, maxPval, minCO2val, maxCO2val, minHum, maxHum,\r\n } = dataLimits;\r\n\r\n const varLimits = presentLimits(dataLimits);\r\n\r\n let hasTdata = varLimits.Temperature;\r\n let hasPdata = varLimits.Pressure;\r\n let hasCO2data = varLimits.CO2;\r\n let hasHum = varLimits.Humidity;\r\n\r\n if ((!hasTdata) && (!numOfBoolVars)) {\r\n minTval = 5;\r\n maxTval = 25;\r\n hasTdata = true;\r\n }\r\n if (hasTdata || hasPdata || hasCO2data) {\r\n if (!hasTdata) {\r\n minTval = 5;\r\n maxTval = 25;\r\n hasTdata = true;\r\n }\r\n if (!hasPdata) {\r\n minPval = 5;\r\n maxPval = 25;\r\n hasPdata = true;\r\n }\r\n\r\n if (minCO2val === null || minCO2val === undefined || maxCO2val === null || maxCO2val === undefined) {\r\n minCO2val = 0;\r\n maxCO2val = 4000;\r\n hasCO2data = true;\r\n }\r\n\r\n if (!hasHum) {\r\n minHum = 0;\r\n maxHum = 100;\r\n hasHum = true;\r\n }\r\n }\r\n\r\n return {\r\n dataLimits: {\r\n minTval, maxTval, minPval, maxPval, minCO2val, maxCO2val,\r\n },\r\n hasTdata,\r\n hasPdata,\r\n hasCO2data,\r\n };\r\n}\r\n\r\nfunction getMinTicks(tInfo: { hasTdata: boolean, maxTval?: number, minTval?: number }, pInfo: { hasPdata: boolean, maxPval?: number, minPval?: number }) {\r\n const { hasTdata, maxTval, minTval } = tInfo;\r\n const { hasPdata, maxPval, minPval } = pInfo;\r\n let minTtick;\r\n let maxTtick;\r\n if (hasTdata && (maxTval != null) && (minTval != null)) {\r\n maxTtick = Math.ceil((maxTval + 1) / 5) * 5;\r\n minTtick = Math.floor((minTval - 1) / 5) * 5;\r\n if (minTtick > 0) minTtick = 0;\r\n if (maxTtick < 5) maxTtick = 5;\r\n }\r\n\r\n let minPtick = 0;\r\n let maxPtick = 1;\r\n if (hasPdata && (maxPval != null) && (minPval != null)) {\r\n maxPtick = Math.ceil((maxPval + 1) / 5) * 5;\r\n minPtick = Math.floor((minPval - 1) / 5) * 5;\r\n if (minPtick > 0) minPtick = 0;\r\n if (maxPtick < 1) maxPtick = 1;\r\n }\r\n\r\n return {\r\n minTtick, maxTtick, minPtick, maxPtick,\r\n };\r\n}\r\n\r\nfunction getPresLimitsAndTicks(pInfo: { hasPdata: boolean, maxPtick, minPtick }, tInfo: { maxTtick, minTtick, minTaxisVal }) {\r\n let { maxPtick, minPtick } = pInfo;\r\n const { maxTtick, minTtick, minTaxisVal: minTAxisVal } = tInfo;\r\n\r\n let presLimits = [0, 10];\r\n const presTicks: number[] = [];\r\n\r\n if (pInfo.hasPdata) {\r\n const totalSteps = Math.round((maxTtick - minTtick) / 5);\r\n const positiveSteps = Math.round(maxTtick / 5);\r\n const negativeSteps = totalSteps - positiveSteps;\r\n let pStepSize;\r\n if (minPtick >= 0) {\r\n pStepSize = Math.ceil(maxPtick / positiveSteps);\r\n // pStepSize = Math.ceil(pStepSize / 5) * 5;\r\n maxPtick = pStepSize * positiveSteps;\r\n minPtick = 0;\r\n } else {\r\n pStepSize = Math.ceil((maxPtick - minPtick) / totalSteps);\r\n // pStepSize = Math.ceil(pStepSize / 5) * 5;\r\n maxPtick = pStepSize * positiveSteps;\r\n minPtick = -pStepSize * negativeSteps;\r\n }\r\n presLimits = [Math.round(minTAxisVal / 5 * pStepSize), maxPtick];\r\n for (let t = minPtick; t <= maxPtick; t += pStepSize) {\r\n presTicks.push(t);\r\n }\r\n }\r\n\r\n return { presLimits, presTicks };\r\n}\r\n\r\nfunction getCO2LimitsAndTicks(co2Info: { minCO2val, maxCO2val }, tempTicks: number[]) {\r\n const { minCO2val, maxCO2val } = co2Info;\r\n\r\n const co2Ticks: number[] = [];\r\n let co2Limits = [0, 4000];\r\n\r\n if (minCO2val != null && maxCO2val != null) {\r\n const totalSteps = tempTicks.length; // para alinhar com o eixo de temperatura\r\n const stepSize = (maxCO2val - minCO2val) / totalSteps;\r\n let minVal = minCO2val - stepSize;\r\n const maxVal = maxCO2val + stepSize;\r\n if (minVal < 0) {\r\n minVal = 0;\r\n }\r\n co2Limits = [minVal, maxVal];\r\n for (let t = minVal; t <= maxVal + stepSize; t += Math.ceil(stepSize / 10) * 10) {\r\n co2Ticks.push(t);\r\n }\r\n }\r\n\r\n return { co2Limits, co2Ticks };\r\n}\r\n\r\nexport function calculateAxisInfo(dataLimits: DataLimits, numOfBoolVars: number, booleanTypes?: string[]) {\r\n const {\r\n dataLimits: {\r\n minTval, maxTval, minPval, maxPval, minCO2val, maxCO2val,\r\n },\r\n hasTdata,\r\n hasPdata,\r\n } = getInitialLimits(dataLimits, numOfBoolVars);\r\n\r\n const minTicks = getMinTicks({ hasTdata, maxTval, minTval }, { hasPdata, maxPval, minPval });\r\n const {\r\n minTtick, maxTtick, minPtick, maxPtick,\r\n } = minTicks;\r\n\r\n let L1start = 0;\r\n if (numOfBoolVars) {\r\n L1start = (minTtick != null) ? (minTtick - 0) : 0;\r\n }\r\n\r\n const boolVarStep = booleanTypes?.some((type) => type === 'Nobreak') ? 6 : 5;\r\n const maxTaxisVal = (maxTtick != null) ? maxTtick : (L1start - 1);\r\n const minTaxisVal = numOfBoolVars ? (L1start - (numOfBoolVars * boolVarStep) - 1) : minTtick;\r\n const tempLimits = [minTaxisVal, maxTaxisVal];\r\n const tempTicks: number[] = [];\r\n if (numOfBoolVars) {\r\n for (let i = 0; i < numOfBoolVars; i++) {\r\n const lineType = booleanTypes?.[i];\r\n const lineBase = L1start - (boolVarStep * i) - boolVarStep;\r\n tempTicks.push(lineBase + 0.5);\r\n tempTicks.push(lineBase + 2.6);\r\n if (lineType === 'Nobreak') tempTicks.push(Number((lineBase + 4.7).toFixed(1)));\r\n }\r\n }\r\n if (minTtick != null) {\r\n for (let t = minTtick; t <= maxTtick; t += 5) {\r\n tempTicks.push(t);\r\n }\r\n }\r\n\r\n const { presLimits, presTicks } = getPresLimitsAndTicks({ hasPdata, maxPtick, minPtick }, { maxTtick, minTtick, minTaxisVal });\r\n\r\n const { co2Limits, co2Ticks } = getCO2LimitsAndTicks({ minCO2val, maxCO2val }, tempTicks);\r\n\r\n return {\r\n tempLimits,\r\n tempTicks,\r\n presLimits,\r\n presTicks,\r\n co2Limits,\r\n co2Ticks,\r\n L1start,\r\n };\r\n}\r\n\r\nfunction calcTickLimits(L1start:number, boolVarStep: number, lineType?: string) {\r\n const tick_0 = Math.round((L1start - boolVarStep + 0.5) * 10) / 10;\r\n const tick_1 = Math.round((L1start - boolVarStep + 2.6) * 10) / 10;\r\n if (lineType === 'Nobreak') {\r\n const tick_2 = Math.round((L1start - boolVarStep + 4.7) * 10) / 10;\r\n return [tick_0, tick_1, tick_2];\r\n }\r\n return [tick_0, tick_1];\r\n}\r\n\r\nexport function updateBoolY(varsList: { L?: number|null, y?: number|null }[][], L1start: number, varTypes?: string[]): [number[]] {\r\n const ticksValues: [number[]] = [[0, 0]];\r\n let index = 0;\r\n const boolVarStep = varTypes?.some((type) => type === 'Nobreak') ? 6 : 5;\r\n varsList.forEach((lineData, i) => {\r\n const lineType = varTypes?.[i];\r\n if (index === 0) ticksValues.pop();\r\n const ticks = calcTickLimits(L1start, boolVarStep, lineType);\r\n ticksValues.push(ticks);\r\n if (lineData && lineData.length) {\r\n for (const element of lineData) {\r\n if (element) {\r\n if (element.L === 1) element.y = ticks[1];\r\n else if (element.L === 0) element.y = ticks[0];\r\n else element.y = null;\r\n }\r\n }\r\n }\r\n\r\n L1start -= boolVarStep;\r\n index++;\r\n });\r\n\r\n return ticksValues;\r\n}\r\n\r\nexport function updateStepY(varsList: DiscreteHistVar[], L1start: number) {\r\n const varsTicks = [] as number[][];\r\n const allTicks = [] as number[];\r\n const ticksNames = {} as { [k:string]: string };\r\n for (const varInfo of varsList) {\r\n const [min, max] = varInfo.limits;\r\n const nTicks = Math.round(max - min) + 1;\r\n L1start -= nTicks * 2.5;\r\n const varTicks = [] as number[];\r\n for (let i = 0; i < nTicks; i++) {\r\n const tickValue = L1start + 0.5 + i * 2.5;\r\n varTicks.push(tickValue);\r\n allTicks.push(tickValue);\r\n ticksNames[tickValue.toString()] = varInfo.labels[i];\r\n }\r\n varsTicks.push(varTicks);\r\n const lineData = varInfo.d;\r\n for (let i = 0; i < lineData.length; i++) {\r\n if (lineData[i]) {\r\n if (lineData[i].L == null) {\r\n lineData[i].y = null;\r\n continue;\r\n }\r\n const stepIndex = lineData[i].L! - min;\r\n lineData[i].y = varTicks[stepIndex];\r\n }\r\n }\r\n }\r\n return {\r\n varsTicks, allTicks: allTicks.sort((a, b) => a - b), ticksNames, endValue: L1start,\r\n };\r\n}\r\n\r\nexport function convertBoolValue(Lval: number, L1start: number, lineIndex: number) {\r\n if (Lval === 1) return L1start - (lineIndex * 5) - 5 + 2.6;\r\n if (Lval === 0) return L1start - (lineIndex * 5) - 5 + 0.5;\r\n return Lval;\r\n}\r\nexport function convertBoolValueInv(Lval: number, L1start: number, lineIndex: number) {\r\n if (Lval === 0) return L1start - (lineIndex * 5) - 5 + 2.6;\r\n if (Lval === 1) return L1start - (lineIndex * 5) - 5 + 0.5;\r\n return Lval;\r\n}\r\n\r\nexport interface ChartLine {\r\n name: string;\r\n x: number[];\r\n y: (null|number)[];\r\n}\r\nexport interface ChartLineNumber extends ChartLine {\r\n maxY: null|number;\r\n minY: null|number;\r\n}\r\nexport interface ChartLineSteps extends ChartLine {\r\n y_orig: (null|number|string)[];\r\n steps: {\r\n y_orig: (null|number|string);\r\n y_chart: (null|number);\r\n label: string;\r\n }[];\r\n}\r\nexport interface AxisInfo {\r\n left: null|{\r\n range: [number, number]\r\n tickvals: number[]\r\n ticktext: string[]\r\n }\r\n // right?: null|{\r\n // range: [number, number]\r\n // tickvals: number[]\r\n // ticktext: string[]\r\n // }\r\n}\r\ninterface ChartLines {\r\n left: ChartLineNumber[],\r\n right: ChartLineNumber[],\r\n stepped: ChartLineSteps[],\r\n}\r\n\r\nexport function fillMaxMin(line: ChartLineNumber) {\r\n if (!line) return;\r\n if (!line.y.length) return;\r\n line.maxY = null;\r\n line.minY = null;\r\n for (const v of line.y) {\r\n if (v == null) continue;\r\n if (line.maxY == null || v > line.maxY) line.maxY = v;\r\n if (line.minY == null || v < line.minY) line.minY = v;\r\n }\r\n}\r\n\r\nexport function fillSteps(line: ChartLineSteps) {\r\n if (!line) return;\r\n if (!line.y_orig.length) return;\r\n line.steps = [];\r\n for (const v of line.y_orig) {\r\n if (v == null) continue;\r\n if (line.steps.some((s) => s.y_orig === v)) continue;\r\n line.steps.push({\r\n y_orig: v,\r\n y_chart: null,\r\n label: String(v),\r\n });\r\n }\r\n line.steps.sort((a, b) => {\r\n if ((a.y_orig != null) && (b.y_orig == null)) return -1;\r\n if ((a.y_orig == null) && (b.y_orig != null)) return 1;\r\n if ((a.y_orig == null) || (b.y_orig == null)) return 0;\r\n if (a.y_orig > b.y_orig) return -1;\r\n if (a.y_orig < b.y_orig) return 1;\r\n return 0;\r\n });\r\n}\r\n\r\nexport function fillDynamicValues(axisInfo: AxisInfo, linesLeft: ChartLineNumber[], steppedLines?: ChartLineSteps[]) { // , linesRight?: ChartLineNumber[]\r\n axisInfo.left = null;\r\n {\r\n let minLval: (null|number) = null;\r\n let maxLval: (null|number) = null;\r\n for (const line of linesLeft) {\r\n if (line.minY == null) continue;\r\n if (line.maxY == null) continue;\r\n if ((minLval == null) || (line.minY < minLval)) minLval = line.minY;\r\n if ((maxLval == null) || (line.maxY > maxLval)) maxLval = line.maxY;\r\n }\r\n if ((minLval != null) && (maxLval != null)) {\r\n axisInfo.left = {\r\n range: [minLval, maxLval],\r\n tickvals: [],\r\n ticktext: [],\r\n };\r\n }\r\n }\r\n\r\n // axisInfo.right = null;\r\n // if (linesRight) {\r\n // let minRval: (null|number) = null;\r\n // let maxRval: (null|number) = null;\r\n // for (const line of linesRight) {\r\n // if (line.minY == null) continue;\r\n // if (line.maxY == null) continue;\r\n // if ((minRval == null) || (line.minY < minRval)) minRval = line.minY;\r\n // if ((maxRval == null) || (line.maxY > maxRval)) maxRval = line.maxY;\r\n // }\r\n // if ((minRval != null) && (maxRval != null)) {\r\n // axisInfo.right = {\r\n // range: [minRval, maxRval],\r\n // tickvals: [],\r\n // ticktext: [],\r\n // }\r\n // }\r\n // }\r\n\r\n // if (axisInfo.left && axisInfo.right) {\r\n // let propF = 0;\r\n // if ((axisInfo.left.range[0] < 0) && (axisInfo.right.range[0] < 0)) {\r\n // if (axisInfo.left.range[0] > -1) axisInfo.left.range[0] = -1;\r\n // if (axisInfo.right.range[0] > -1) axisInfo.right.range[0] = -1;\r\n // const prop = axisInfo.right.range[0] / axisInfo.left.range[0];\r\n // if (prop > propF) propF = prop;\r\n // }\r\n // if ((axisInfo.left.range[1] > 0) && (axisInfo.right.range[1] > 0)) {\r\n // if (axisInfo.left.range[1] < 1) axisInfo.left.range[1] = 1;\r\n // if (axisInfo.right.range[1] < 1) axisInfo.right.range[1] = 1;\r\n // const prop = axisInfo.right.range[1] / axisInfo.left.range[1];\r\n // if (prop > propF) propF = prop;\r\n // }\r\n // if (propF) {\r\n // if (axisInfo.left.range[1])\r\n // }\r\n // }\r\n\r\n // if ((!axisInfo.left) && axisInfo.right) {\r\n // axisInfo.left = {\r\n // range: [...axisInfo.right.range],\r\n // tickvals: [],\r\n // ticktext: [],\r\n // }\r\n // }\r\n\r\n if (axisInfo.left) {\r\n const [minLval, maxLval] = axisInfo.left.range;\r\n const maxLtick = Math.ceil((maxLval + 1) / 5) * 5;\r\n const minLtick = Math.floor((minLval - 1) / 5) * 5;\r\n axisInfo.left.range = [minLtick, maxLtick];\r\n for (let t = minLtick; t <= maxLtick; t += 5) {\r\n axisInfo.left.tickvals.push(t);\r\n axisInfo.left.ticktext.push(String(t));\r\n }\r\n }\r\n\r\n if (steppedLines) {\r\n if (!axisInfo.left) {\r\n axisInfo.left = {\r\n range: [0, 0],\r\n tickvals: [],\r\n ticktext: [],\r\n };\r\n }\r\n for (const line of steppedLines) {\r\n for (const step of line.steps) {\r\n step.y_chart = axisInfo.left.range[0] - 1;\r\n axisInfo.left.range[0] -= 2;\r\n axisInfo.left.tickvals.push(step.y_chart);\r\n axisInfo.left.ticktext.push(step.label);\r\n }\r\n for (let i = 0; i < line.y_orig.length; i++) {\r\n line.y[i] = line.steps.find((x) => x.y_orig === line.y_orig[i])!.y_chart;\r\n }\r\n }\r\n }\r\n}\r\n","import styled from 'styled-components';\r\n\r\nimport { DottedLineIcon, LineIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const GraphWrapper = styled.div`\r\n width: 100%;\r\n position: relative;\r\n height: 100%;\r\n`;\r\n\r\nexport const CheckboxLine = styled.div`\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n`;\r\nexport const Text = styled.span`\r\n font-weight: normal;\r\n font-size: 1em;\r\n line-height: 26px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const DesktopWrapper = styled.div`\r\n display: block;\r\n margin-bottom: 10px;\r\n`;\r\n\r\nexport const CardWrapper = styled.div`\r\n padding: 32px 24px;\r\n background: ${colors.White};\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const CustomLabel = styled.text<{ angle }>`\r\ntransform: rotate(${({ angle }) => (angle || -90)}deg);\r\n`;\r\n\r\nexport const ContainerArrowLeft = styled.div<{disabled: boolean }>(\r\n ({\r\n disabled,\r\n }) => `\r\n display: flex;\r\n width: 35px;\r\n align-items: center;\r\n justify-content: center;\r\n border-right: 1px solid #EDEDED;\r\n cursor: pointer;\r\n pointer-events: ${disabled ? 'none' : 'all'}\r\n`,\r\n);\r\nexport const ContainerArrowRight = styled.div<{disabled: boolean }>(\r\n ({\r\n disabled,\r\n }) => `\r\n display: flex;\r\n width: 35px;\r\n align-items: center;\r\n justify-content: center;\r\n border-left: 1px solid #EDEDED;\r\n cursor: pointer;\r\n pointer-events: ${disabled ? 'none' : 'all'}\r\n`,\r\n);\r\n\r\nexport const LabelData = styled.div`\r\n position: relative;\r\n top: 3px;\r\n margin-left: 13px;\r\n font-size: 11px;\r\n font-weight: 700;\r\n line-height: 15px;\r\n`;\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .CalendarDay__selected_span {\r\n background: #D0D2F1;\r\n border: 1px double #F4EBEB;\r\n color: #000;\r\n }\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.BlueSecondary};\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n background: none;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 15px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 15px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.White};\r\n font-weight: bold;\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.Black};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n display: none;\r\n }\r\n\r\n .CalendarMonth_caption {\r\n color: #000;\r\n text-transform: capitalize;\r\n }\r\n\r\n .CalendarMonth_caption {\r\n color: #000;\r\n text-transform: capitalize;\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n display: none;\r\n }\r\n .CalendarDay__hovered_span, .CalendarDay__hovered_span:hover {\r\n background: #E5E6F8;\r\n border: 1px double #F4EBEB;\r\n color: #000;\r\n }\r\n .CalendarDay__selected_span:hover {\r\n background: #B5B7DD;\r\n border: 1px double #B5B7DD;\r\n color: #fff;\r\n }\r\n`;\r\n\r\nexport const BtnExport = styled.div<{ disabled?: boolean }>(\r\n ({ disabled }) => `\r\n cursor: pointer;\r\n padding: 0 10px;\r\n border: 1px solid lightgrey;\r\n font-weight: 500;\r\n border-radius: 10px;\r\n box-shadow: 0 0px 4px 0px rgba(0, 0, 0, 0.1);\r\n transition: color 0.3s ease;\r\n display: flex;\r\n align-items: center;\r\n height: 40px;\r\n gap: 10px;\r\n\r\n &:hover {\r\n color: ${colors.BlueSecondary};\r\n }\r\n\r\n ${disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n `}\r\n`,\r\n);\r\n","import { Flex } from 'reflexbox';\r\nimport styled from 'styled-components';\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const Container = styled(Flex)`\r\n width: 100%;\r\n align-items: center;\r\n justify-content: center;\r\n flex-direction: column;\r\n border: 1px solid ${colors.LightGrey_v3};\r\n border-radius: 10px;\r\n padding: 50px 0;\r\n background: #F9F9F9;\r\n min-height: 400px;\r\n color: #7D7D7D;\r\n`;\r\n","import {\r\n ComparativeIcon,\r\n} from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\nimport { Container } from './styles';\r\nimport { t } from 'i18next';\r\nimport { Card } from 'components';\r\n\r\nexport const NoGraph = (props): JSX.Element => {\r\n const { title, type } = props;\r\n\r\n function getDescription() {\r\n return type ? type === 'integratedAnalysis' ? t('selecioneUmaDataAnaliseIntegrada') : t('selecioneUmaDataIndiceDeUso') : t('selecioneUmaDataHistorico');\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n {title}\r\n \r\n \r\n { getDescription() }\r\n \r\n \r\n \r\n ); };\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const Wrapper = styled.div`\r\ndisplay: flex;\r\nflex-direction: column;\r\nmargin-bottom: 20px;\r\n`;\r\n\r\nexport const StyledList = styled.ul`\r\ndisplay: flex;\r\nflex-direction: row;\r\nalign-items: center;\r\njustify-content: flex-start;\r\nlist-style: none;\r\npadding: 0;\r\nmargin-bottom: -1px;\r\nli:not(:first-child) {\r\n margin-left: 32px;\r\n}\r\n.active {\r\n color: ${colors.Blue300}; // texto nav maior\r\n}\r\n`;\r\n\r\nexport const StyledItem = styled.li`\r\ndisplay: flex;\r\nalign-items: center;\r\njustify-content: center;\r\nflex-direction: column;\r\nwhite-space: nowrap;\r\ngap: 5px;\r\npadding-top: 10px;\r\n`;\r\n\r\nexport const Content = styled.div`\r\ndisplay: flex;\r\nalign-items: center;\r\noverflow-x: auto;\r\noverflow-y: hidden;\r\nmargin: 5px 5px 0 5px;\r\npadding: 0;\r\nheight: 40px;\r\nmax-width: 100%;\r\nborder-bottom: 1px solid ${colors.Grey100};\r\njustify-content: space-between;\r\nmargin: 0px;\r\n@media (max-width: 1241px) {\r\n height: 41px;\r\n overflow-x: scroll;\r\n}\r\n`;\r\n\r\nexport const StyledLine = styled.div<{ isActive }>(\r\n ({ isActive }) => `\r\n background: ${isActive ? colors.Blue300 : 'transparent'};\r\n width: 100%;\r\n height: 10px;\r\n animation: grow .5s;\r\n border-radius: 3px 3px 0px 0px;\r\n @keyframes grow {\r\n from {\r\n width: 0;\r\n }\r\n to{\r\n width: 100%;\r\n }\r\n }\r\n @media (max-width: 1241px) {\r\n height: 7px;\r\n margin-top: 3px;\r\n }\r\n `,\r\n);\r\n\r\nexport const StyledLabel = styled.div<{ isActive }>(\r\n ({ isActive }) => `\r\n color: ${isActive ? colors.Blue300 : '#5B5B5B'};\r\n font-size: 13px;\r\n font-weight: bold;\r\n text-decoration: none;\r\n cursor: pointer;\r\n `,\r\n);\r\n\r\nexport const ContainerParameters = styled.div`\r\n margin-bottom: 50px;\r\n h3 {\r\n font-size: 16px;\r\n }\r\n`;\r\n\r\nexport const SearchInputStyled = styled.div`\r\n width: 100%;\r\n .select-search__option.is-selected {\r\n background-color: transparent;\r\n color: black;\r\n }\r\n .select-search__option.is-highlighted.is-selected, .select-search__option.is-selected:hover, .select-search__option:not(.is-selected):hover {\r\n background-color: transparent;\r\n color: black;\r\n }\r\n`;\r\n\r\nexport const SelectOptionStyled = styled.button<{ disabled }>(\r\n ({ disabled }) => `\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n height: 50px;\r\n width: 100%;\r\n\r\n border: none;\r\n background: transparent;\r\n padding: 0 8px;\r\n\r\n border-left: 5px solid transparent;\r\n ${disabled && `\r\n div {\r\n color: red;\r\n }\r\n `}\r\n`,\r\n);\r\n\r\nexport const SelectedContent = styled.div`\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n text-align: start;\r\n input {\r\n padding: 0px;\r\n margin: 0px;\r\n border: none;\r\n border-radius: 10px;\r\n width: 40px;\r\n background-color: transparent;\r\n }\r\n`;\r\n\r\nexport const HorizontalLineSelectParameters = styled.div`\r\n width: 10px;\r\n border-bottom: 1px dashed #D0D0D0;\r\n margin-left: 8px;\r\n`;\r\n\r\nexport const BorderSubItem = styled.div<{model?: string}>(\r\n ({ model }) => `\r\n border-left: 1px dashed #D0D0D0;\r\n height: ${model === 'XA' ? '322px' : model === 'XA_HVAR' ? '710px' : '950px'};\r\n position: absolute;\r\n top: -13px;\r\n left: 21px;\r\n z-index: 10;\r\n`,\r\n);\r\n\r\nexport const InfoSelected = styled.div`\r\n display: flex;\r\n align-items: center;\r\n position: relative;\r\n width: 100%;\r\n input {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const InputStyledSelected = styled.input<{ isLeft }>(\r\n ({ isLeft }) => `\r\n width: 20px;\r\n height: 20px;\r\n cursor: pointer;\r\n position: absolute;\r\n opacity: 0;\r\n left: ${isLeft ? '20px' : '0px'}\r\n`,\r\n);\r\n\r\nexport const ChillerGraph = styled.div`\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n height: 400px;\r\n margin-top: 20px;\r\n margin-bottom: 20px;\r\n`;\r\n\r\nexport const ChillerGraphGeral = styled.div<{ marginTop, height, groupGraph }>(\r\n ({ height, groupGraph }) => `\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: ${`${height}px` || '400px'};\r\n margin-top: 20px;\r\n .containerCircle {\r\n display: flex;\r\n gap: 5px;\r\n align-items: center;\r\n }\r\n p {\r\n margin: 0;\r\n }\r\n .circleGreen {\r\n background: #4EB73B;\r\n border-radius: 50%;\r\n box-shadow: 0 0 0 0 rgba(142, 210, 130, 1);\r\n margin-right: 5px;\r\n height: 11px;\r\n width: 11px;\r\n transform: scale(1);\r\n animation: greenPulse 2s infinite;\r\n \r\n @keyframes greenPulse {\r\n 0% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(142, 210, 130, 0.7);\r\n }\r\n 70% {\r\n transform: scale(1);\r\n box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);\r\n }\r\n 100% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\r\n }\r\n }\r\n }\r\n .circleRed {\r\n background: #FF1818;\r\n border-radius: 50%;\r\n box-shadow: 0 0 0 0 rgba(255, 103, 103, 1);\r\n margin-right: 5px;\r\n height: 11px;\r\n width: 11px;\r\n transform: scale(1);\r\n animation: redPulse 2s infinite;\r\n \r\n @keyframes redPulse {\r\n 0% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(255, 103, 103, 0.7);\r\n }\r\n 70% {\r\n transform: scale(1);\r\n box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);\r\n }\r\n 100% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\r\n }\r\n }\r\n }\r\n .circleYellow {\r\n background: #EDA800;\r\n border-radius: 50%;\r\n box-shadow: 0 0 0 0 rgba(255, 206, 0, 1);\r\n margin-right: 5px;\r\n height: 11px;\r\n width: 11px;\r\n transform: scale(1);\r\n animation: yellowPulse 2s infinite;\r\n \r\n @keyframes yellowPulse {\r\n 0% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(255, 206, 0, 0.7);\r\n }\r\n 70% {\r\n transform: scale(1);\r\n box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);\r\n }\r\n 100% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\r\n }\r\n }\r\n }\r\n`,\r\n);\r\n\r\nexport const ContainerNotSelectedParams = styled.div`\r\n background-color: #F9F9F9;\r\n width: 100%;\r\n height: 458px;\r\n gap: 0px;\r\n border-radius: 10px;\r\n color: #7D7D7D;\r\n opacity: 0px;\r\n display: flex;\r\n justify-content: center;\r\n flex-direction: column;\r\n text-align: center;\r\n align-items: center;\r\n margin-top: 20px;\r\n span {\r\n font-size: 12px;\r\n }\r\n padding: 10px;\r\n`;\r\n\r\nexport const ContainerGraphParamsChange = styled.div<{ groupGraph, lengthArraySample }>(\r\n ({ groupGraph, lengthArraySample }) => `\r\n ${groupGraph ? `\r\n width: 85%;\r\n div {\r\n top: ${lengthArraySample > 0 ? '-70px' : '10px'};\r\n }` : `\r\n div {\r\n top: ${lengthArraySample > 0 ? '-30px' : '-50px'};\r\n }\r\n `}\r\n`,\r\n);\r\n\r\nexport const MenuFixedContainer = styled.div<{ historySelected }>(\r\n ({ historySelected }) => `\r\n display: flex;\r\n align-items: center;\r\n margin: 5px;\r\n justify-content: start;\r\n gap: 10px;\r\n margin-bottom: 20px;\r\n ${historySelected ? `\r\n position: sticky;\r\n top: 39px;\r\n width: 100%;\r\n background-color: white;\r\n z-index: 100;\r\n margin-left: -5px;\r\n padding: 5px 5px 15px 15px;\r\n ` : ''} \r\n`,\r\n);\r\n","import { t } from 'i18next';\r\nimport { toast } from 'react-toastify';\r\nimport { ApiResps } from '~/providers';\r\nimport moment from 'moment';\r\n\r\nconst daysWeek = [t('domingo'), t('segundaFeira'), t('tercaFeira'), t('quartaFeira'), t('quintaFeira'), t('sextaFeira'), t('sabado')];\r\n\r\nexport function getDaysBetweenDates(startDate: Date, endDate: Date): Date[] {\r\n const days: Date[] = [];\r\n const currentDate = new Date(startDate);\r\n // Loop para adicionar cada dia entre as datas de início e fim\r\n while (currentDate <= endDate) {\r\n days.push(new Date(currentDate));\r\n currentDate.setDate(currentDate.getDate() + 1);\r\n }\r\n return days;\r\n}\r\n\r\nexport function getListDays(props, setState, state) {\r\n if (props.startDate && props.endDate) {\r\n const startDate = new Date(props.startDate.format('YYYY-MM-DD'));\r\n const endDate = new Date(props.endDate.format('YYYY-MM-DD'));\r\n startDate.setDate(startDate.getDate() + 1);\r\n endDate.setDate(endDate.getDate() + 1);\r\n const daysBetweenDates = getDaysBetweenDates(startDate, endDate);\r\n if (daysBetweenDates.length > 15) {\r\n toast.error(t('numeroMaximoDeDias'));\r\n setState({ dataPeriodOut: true });\r\n return true;\r\n }\r\n setState({ listDays: daysBetweenDates });\r\n }\r\n if (state.listDays.length > 5) {\r\n setState({ numPoints: 24, hourGraph: true, interval: 1 });\r\n } else {\r\n setState({ numPoints: 144, hourGraph: false, interval: 10 });\r\n }\r\n setState({ dataPeriodOut: false });\r\n return false;\r\n}\r\n\r\nexport function criarNovoArrayDuplicandoOsValoresPeloTempo(array: ApiResps['/dri/get-chiller-parameters-hist']['paramsLists']['paramsChanged']) {\r\n const novoArray: number[] = [];\r\n let currentIndex = 0;\r\n let currentTime = new Date(array[0].record_date).getTime();\r\n const finalDoDia = new Date(currentTime);\r\n finalDoDia.setDate(finalDoDia.getDate() + 1);\r\n finalDoDia.setSeconds(finalDoDia.getSeconds() - 1); // Configura o último segundo do dia anterior\r\n const now = Date.now();\r\n while (currentTime <= finalDoDia.getTime()) {\r\n const currentObj = array[currentIndex];\r\n const nextObj = array[currentIndex + 1];\r\n const nextTime = nextObj ? new Date(nextObj.record_date).getTime() : finalDoDia.getTime();\r\n\r\n novoArray.push(currentObj.parameter_value);\r\n\r\n if (currentTime >= now) {\r\n break;\r\n }\r\n\r\n // Se o próximo objeto existir e a hora atual for menor que o próximo tempo, repita o número atual\r\n while (nextObj && currentTime < nextTime) {\r\n novoArray.push(currentObj.parameter_value);\r\n currentTime += 30000; // Avança 30seg\r\n }\r\n // Se o próximo objeto existir, avance para ele\r\n if (nextObj) {\r\n currentIndex++;\r\n }\r\n\r\n // Avança para o próximo intervalo de 30 segundos\r\n currentTime += 30000;\r\n }\r\n return novoArray;\r\n}\r\n\r\nexport function agruparPorData(array: ApiResps['/dri/get-chiller-parameters-hist']['paramsLists']['paramsChanged'], listDates: Date[]) {\r\n const grupos: { [data: string]: ApiResps['/dri/get-chiller-parameters-hist']['paramsLists']['paramsChanged'] } = {};\r\n const objectDatesArrayNull: { [data: string]: any[] } = {};\r\n (array || []).forEach((obj) => {\r\n const data = obj.record_date.split('T')[0];\r\n if (!grupos[data]) {\r\n grupos[data] = [];\r\n }\r\n grupos[data].push(obj);\r\n });\r\n const arrayNull: any[] = new Array(2880).fill(null);\r\n const valuesFinal: number[][] = [];\r\n const filterDates = listDates.filter((item) => !grupos[moment(item).format('YYYY-MM-DD')]);\r\n filterDates.forEach((item) => {\r\n const data = moment(item).format('YYYY-MM-DD');\r\n if (!objectDatesArrayNull[data]) {\r\n objectDatesArrayNull[data] = [];\r\n }\r\n objectDatesArrayNull[data].push('');\r\n });\r\n const arraySeparadasPorDia = Object.values(grupos).map(verifyAddNull);\r\n const chavesObjeto = Object.keys(grupos);\r\n arraySeparadasPorDia.forEach((item) => valuesFinal.push(criarNovoArrayDuplicandoOsValoresPeloTempo(item)));\r\n const arrayDatasOrganizadas: number[][] = [];\r\n listDates.forEach((item) => {\r\n const data = moment(item).format('YYYY-MM-DD');\r\n if (grupos[data]) {\r\n arrayDatasOrganizadas.push(valuesFinal[chavesObjeto.indexOf(data)]);\r\n } else if (objectDatesArrayNull[data]) {\r\n arrayDatasOrganizadas.push(arrayNull);\r\n }\r\n });\r\n const valoresRepetidos: number[] = arrayDatasOrganizadas.reduce((acc, val) => acc.concat(val), []);\r\n return valoresRepetidos;\r\n}\r\n\r\nexport function gerarNumerosAteMaximoDataX(maximo: number, setState) {\r\n const numeros: number[] = [];\r\n for (let i = 0; i <= maximo; i++) {\r\n numeros.push(i);\r\n }\r\n setState({ dataX: numeros });\r\n}\r\n\r\nexport function gerarNumerosAteMaximoDataXChangedParams(days: number, setState, state) {\r\n const numeros: number[] = [];\r\n const max = 2880 * days;\r\n for (let i = 0; i <= max; i++) {\r\n numeros.push(i);\r\n }\r\n const numPoints = days > 5 ? 24 : 144;\r\n setState({ dataXChangedParams: numeros, numPoints });\r\n setState({ dataX: numeros.slice(0, (state.numPoints * days) + 1) });\r\n}\r\n\r\nexport function separarValoresPorPropriedade(array: ApiResps['/dri/get-chiller-parameters-hist']['paramsLists']['paramsGrouped']) {\r\n const propriedades = {}; // Objeto para armazenar arrays de valores por propriedade\r\n array.forEach((objeto) => {\r\n // Para cada objeto, percorra todas as chaves\r\n Object.entries(objeto).forEach(([chave, valor]) => {\r\n const chaveLower = chave.toLocaleLowerCase();\r\n propriedades[chaveLower] = propriedades[chaveLower] || [];\r\n propriedades[chaveLower].push(valor);\r\n });\r\n });\r\n return propriedades;\r\n}\r\n\r\nconst verifyAddNull = (items: any[]) => {\r\n if (items.length > 0 && !items[0].record_date.includes('T00:00:00')) {\r\n return [{ record_date: `${items[0].record_date.split('T')[0]}T00:00:00`, value: null }, ...items];\r\n }\r\n return items;\r\n};\r\n\r\nexport function formatterxAxis(state, changedParams?: boolean) {\r\n const numPoints = (changedParams ? 2880 : state.numPoints); // 2880 segundos no dia.\r\n let isDifferentMonth = false;\r\n if (state.listDays[0]?.getMonth() !== state.listDays[state.listDays.length - 1]?.getMonth()) {\r\n isDifferentMonth = true;\r\n }\r\n return ((value) => {\r\n if (value % numPoints === 0) {\r\n if (value / numPoints === state.listDays.length) {\r\n return;\r\n }\r\n const dayWeek = state.listDays[value / numPoints]?.getDay();\r\n const date = state.listDays[(value / numPoints)];\r\n const monthPart = isDifferentMonth ? `/${(date?.getMonth() + 1).toString().padStart(2, '0')}` : '';\r\n if (dayWeek === 0) {\r\n return `{bold|${date?.getDate().toString().padStart(2, '0')}${monthPart}\\n${daysWeek[dayWeek][0]}}`;\r\n }\r\n return `${date?.getDate().toString().padStart(2, '0')}${monthPart}\\n${daysWeek[dayWeek][0]}`;\r\n }\r\n });\r\n}\r\n\r\nexport function returnXAxis(state, changedParams?: boolean) {\r\n return {\r\n type: 'category',\r\n boundaryGap: false,\r\n splitLine: {\r\n show: true,\r\n interval: changedParams ? 2879 : 23,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n data: changedParams ? state.dataXChangedParams : state.dataX,\r\n axisLabel: {\r\n show: true,\r\n padding: [0, 0, 0, 0],\r\n interval: changedParams ? 2879 : 23,\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n fontSize: '10',\r\n lineHeight: 12,\r\n margin: 8,\r\n formatter: formatterxAxis(state, changedParams),\r\n rich: {\r\n bold: {\r\n fontWeight: 'bold',\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n fontSize: '10',\r\n },\r\n },\r\n },\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n };\r\n}\r\n\r\nfunction secondsToTime(seconds) {\r\n const hours = Math.floor(seconds / 3600);\r\n const minutes = Math.floor((seconds % 3600) / 60);\r\n const secs = seconds % 60;\r\n\r\n // Formata para garantir que horas, minutos e segundos tenham dois dígitos\r\n const formattedHours = String(hours).padStart(2, '0');\r\n const formattedMinutes = String(minutes).padStart(2, '0');\r\n const formattedSeconds = String(secs).padStart(2, '0');\r\n\r\n return `${formattedHours}:${formattedMinutes}:${formattedSeconds}`;\r\n}\r\n\r\nexport function getDate(state, index, recordDate, changedParams?: boolean) {\r\n const numPoints = (changedParams ? 2880 : state.numPoints); // 2880 segundos no dia.\r\n const dateFull = state.listDays[Math.floor(index / numPoints)];\r\n const day = dateFull?.getDate().toString();\r\n const month = (dateFull?.getMonth() + 1).toString();\r\n const year = dateFull?.getFullYear().toString();\r\n const timeGrouped = (index * 30) > 86400 ? (index * 30) % 86400 : index * 30;\r\n const hour = changedParams ? secondsToTime(timeGrouped) : recordDate[index]?.split('T')[1];\r\n return `${day?.padStart(2, '0')}/${month?.padStart(2, '0')}/${year} ${hour?.substring(0, 5)}h`;\r\n}\r\n\r\nfunction setCircuitMaxValueAndCounter(isCircuit, item, acc) {\r\n if (isCircuit && item.unidMed != null) {\r\n const maxValue = item.data?.length > 0 ? Math.max(...item.data) : 0;\r\n if (!acc.maxValue[item.unidMed]) {\r\n acc.maxValue[item.unidMed] = 0;\r\n }\r\n acc.maxValue[item.unidMed] = Math.max(acc.maxValue[item.unidMed] || 0, maxValue);\r\n }\r\n}\r\n\r\nexport function getDataToGraphsAndSetMaxValues(allWithoutDefault, percentArray, setState, state) {\r\n const {\r\n countValuesUniMed, sendToGraphDefault, sendToGraphPercent, maxValue,\r\n } = allWithoutDefault.reduce((acc, item) => {\r\n const newState = { ...acc };\r\n if (!percentArray.includes(item.value)) {\r\n const isCircuit = (item.value !== 'ACircuit' && item.value !== 'BCircuit');\r\n setCircuitMaxValueAndCounter(isCircuit, item, acc);\r\n newState.sendToGraphDefault.push(item);\r\n } else {\r\n newState.sendToGraphPercent.push(item);\r\n }\r\n acc.countValuesUniMed[item.unidMed]++;\r\n return newState;\r\n }, {\r\n maxValue: {\r\n C: 0,\r\n kPa: 0,\r\n A: 0,\r\n H: 0,\r\n s: 0,\r\n },\r\n countValuesUniMed: {\r\n C: 0,\r\n kPa: 0,\r\n A: 0,\r\n H: 0,\r\n P: 0,\r\n s: 0,\r\n },\r\n sendToGraphDefault: [],\r\n sendToGraphPercent: [],\r\n });\r\n setState({\r\n ...state,\r\n maxValue,\r\n countValuesUniMed,\r\n sendToGraphDefault,\r\n sendToGraphPercent,\r\n });\r\n}\r\n\r\nconst hexToRgb = (hex) => {\r\n hex = hex.replace(/^#/, '');\r\n const r = parseInt(hex.substring(0, 2), 16);\r\n const g = parseInt(hex.substring(2, 4), 16);\r\n const b = parseInt(hex.substring(4, 6), 16);\r\n return [r, g, b];\r\n};\r\n\r\nconst rgbToHex = (r, g, b) => {\r\n const toHex = (x) => {\r\n const hex = x.toString(16);\r\n return hex.length === 1 ? `0${hex}` : hex;\r\n };\r\n return `#${toHex(r)}${toHex(g)}${toHex(b)}`.toUpperCase();\r\n};\r\n\r\nexport const darkenColor = (hex, amount) => {\r\n const [r, g, b] = hexToRgb(hex);\r\n const newR = Math.max(0, r - amount);\r\n const newG = Math.max(0, g - amount);\r\n const newB = Math.max(0, b - amount);\r\n return rgbToHex(newR, newG, newB);\r\n};\r\n\r\ntype DataRecord = ApiResps['/dri/get-chiller-parameters-hist']['paramsLists']['paramsGrouped'][0]\r\n\r\nfunction setTimeToLoop(i, interval, numPoints, countHour) {\r\n const counter = i * interval;\r\n const hours = numPoints === 24 ? i : countHour;\r\n const minutes = counter < 60 ? counter : counter % 60;\r\n let time: string;\r\n if (interval === 10) {\r\n time = `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}`;\r\n } else {\r\n time = `${hours.toString().padStart(2, '0')}:00`;\r\n }\r\n return { hours, minutes, time };\r\n}\r\n\r\nfunction fillMissingIntervals(dataArray: DataRecord[], numPoints: number, chillerModel: string): DataRecord[] {\r\n const filledData: any = [];\r\n const dataMap = dataArray.reduce((map, data) => {\r\n const time = moment(data.record_date).format('HH:mm');\r\n map[time] = data;\r\n return map;\r\n }, {} as { [key: string]: DataRecord });\r\n let countHour = 0;\r\n const interval = numPoints === 24 ? 1 : 10; // Intervalo em horas (1 para 24 pontos) ou minutos (10 para 144 pontos)\r\n const data = dataArray[0].record_date.split('T')[0];\r\n const currentDate = moment();\r\n for (let i = 0; i < numPoints; i += 1) {\r\n const { hours, minutes, time } = setTimeToLoop(i, interval, numPoints, countHour);\r\n if (dataMap[time]) {\r\n filledData.push(dataMap[time]);\r\n } else {\r\n if (moment(dataArray[0].record_date).isSame(currentDate, 'day') && hours > currentDate.hours()) {\r\n // Não preenche além do horário atual\r\n break;\r\n }\r\n filledData.push(chillerModel === 'XA' ? ObjectXAData(`${data}T${time}:00Z`) : chillerModel === 'XA_HVAR' ? ObjectXAHvarData(`${data}T${time}:00Z`) : ObjectHXData(`${data}T${time}:00Z`));\r\n }\r\n\r\n if (minutes === 50) {\r\n countHour++;\r\n }\r\n }\r\n return filledData;\r\n}\r\ninterface RecordStatus {\r\n haveData: boolean;\r\n count: number;\r\n date: string;\r\n}\r\n\r\nexport function createRecordStatusObject(recordDates: string[], listDates: Date[]): { [key: number]: RecordStatus } {\r\n const recordStatusObject: { [key: number]: RecordStatus } = {};\r\n listDates.forEach((date, index) => {\r\n const dateObj = moment(date).format('YYYY-MM-DD');\r\n const count = recordDates.filter((recordDate) => recordDate.split('T')[0] === dateObj).length;\r\n recordStatusObject[index] = {\r\n haveData: count > 0,\r\n count,\r\n date: dateObj,\r\n };\r\n });\r\n return recordStatusObject;\r\n}\r\n\r\nconst ObjectXAData = (record_date) => ({\r\n cap_t: null,\r\n cond_ewt: null,\r\n cond_lwt: null,\r\n cool_ewt: null,\r\n cool_lwt: null,\r\n ctrl_pnt: null,\r\n deviceCode: null,\r\n dp_a: null,\r\n dp_b: null,\r\n hr_cp_a: null,\r\n hr_cp_b: null,\r\n hr_mach: null,\r\n hr_mach_b: null,\r\n oat: null,\r\n op_a: null,\r\n op_b: null,\r\n record_date,\r\n sct_a: null,\r\n sct_b: null,\r\n slt_a: null,\r\n slt_b: null,\r\n sp: null,\r\n sp_a: null,\r\n sp_b: null,\r\n sst_a: null,\r\n sst_b: null,\r\n unit_id: null,\r\n});\r\n\r\nconst ObjectXAHvarData = (record_date) => ({\r\n genunit_ui: null,\r\n cap_t: null,\r\n tot_curr: null,\r\n ctrl_pnt: null,\r\n oat: null,\r\n cool_ewt: null,\r\n cool_lwt: null,\r\n circa_an_ui: null,\r\n capa_t: null,\r\n dp_a: null,\r\n sp_a: null,\r\n econ_p_a: null,\r\n op_a: null,\r\n dop_a: null,\r\n curren_a: null,\r\n cp_tmp_a: null,\r\n dgt_a: null,\r\n eco_tp_a: null,\r\n sct_a: null,\r\n sst_a: null,\r\n suct_t_a: null,\r\n exv_a: null,\r\n circb_an_ui: null,\r\n capb_t: null,\r\n dp_b: null,\r\n sp_b: null,\r\n econ_p_b: null,\r\n op_b: null,\r\n dop_b: null,\r\n curren_b: null,\r\n cp_tmp_b: null,\r\n dgt_b: null,\r\n eco_tp_b: null,\r\n sct_b: null,\r\n sst_b: null,\r\n suct_t_b: null,\r\n exv_b: null,\r\n circc_an_ui: null,\r\n capc_t: null,\r\n dp_c: null,\r\n sp_c: null,\r\n econ_p_c: null,\r\n op_c: null,\r\n dop_c: null,\r\n curren_c: null,\r\n cp_tmp_c: null,\r\n dgt_c: null,\r\n eco_tp_c: null,\r\n sct_c: null,\r\n sst_c: null,\r\n suct_t_c: null,\r\n exv_c: null,\r\n deviceCode: null,\r\n record_date,\r\n unit_id: null,\r\n});\r\n\r\nconst ObjectHXData = (record_date) => ({\r\n cap_t: null,\r\n capa_t: null,\r\n capb_t: null,\r\n cond_ewt: null,\r\n cond_lwt: null,\r\n cond_sp: null,\r\n cool_ewt: null,\r\n cool_lwt: null,\r\n cpa1_cur: null,\r\n cpa1_dgt: null,\r\n cpa1_op: null,\r\n cpa1_tmp: null,\r\n cpa2_cur: null,\r\n cpa2_dgt: null,\r\n cpa2_op: null,\r\n cpa2_tmp: null,\r\n cpb1_cur: null,\r\n cpb1_dgt: null,\r\n cpb1_op: null,\r\n cpb1_tmp: null,\r\n cpb2_cur: null,\r\n cpb2_dgt: null,\r\n cpb2_op: null,\r\n cpb2_tmp: null,\r\n ctrl_pnt: null,\r\n dem_lim: null,\r\n device_code: null,\r\n dop_a1: null,\r\n dop_a2: null,\r\n dop_b1: null,\r\n dop_b2: null,\r\n dp_a: null,\r\n dp_b: null,\r\n exv_a: null,\r\n exv_b: null,\r\n hr_cp_a1: null,\r\n hr_cp_a2: null,\r\n hr_cp_b1: null,\r\n hr_cp_b2: null,\r\n lag_lim: null,\r\n record_date,\r\n sct_a: null,\r\n sct_b: null,\r\n sp: null,\r\n sp_a: null,\r\n sp_b: null,\r\n sst_a: null,\r\n sst_b: null,\r\n unit_id: null,\r\n});\r\n\r\nexport function processData(pointsObj: { [key: number]: RecordStatus }, dataArray: DataRecord[], numPoints: number, chillerModel: string): DataRecord[] {\r\n const results: any = [];\r\n\r\n let sumData = 0;\r\n for (const day in pointsObj) {\r\n const value = pointsObj[day];\r\n sumData += value.count;\r\n\r\n if (value.haveData) {\r\n if (numPoints === value.count) {\r\n results.push(...dataArray.slice(sumData - value.count, sumData));\r\n } else {\r\n const arrayData = dataArray.slice(sumData - value.count, sumData);\r\n results.push(...fillMissingIntervals(arrayData, numPoints, chillerModel));\r\n }\r\n } else {\r\n const date = moment(value.date);\r\n for (let i = 0; i < numPoints; i++) {\r\n date.hours(i);\r\n date.minutes(0);\r\n results.push(\r\n chillerModel === 'XA'\r\n ? ObjectXAData(date.format())\r\n : chillerModel === 'XA_HVAR'\r\n ? ObjectXAHvarData(date.format())\r\n : ObjectHXData(date.format()),\r\n ); }\r\n }\r\n }\r\n return results;\r\n}\r\n","import { useContext, useEffect, useRef } from 'react';\r\nimport {\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n} from 'echarts/components';\r\nimport * as echarts from 'echarts/core';\r\nimport { LineChart } from 'echarts/charts';\r\nimport { UniversalTransition } from 'echarts/features';\r\nimport { SVGRenderer } from 'echarts/renderers';\r\nimport { t } from 'i18next';\r\nimport { haveToolbox, zoomTooltipOff } from './ChillerParameters';\r\nimport MenuContext from '~/contexts/menuContext';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\necharts.use([\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n LineChart,\r\n SVGRenderer,\r\n UniversalTransition,\r\n]);\r\n\r\ninterface TooltipParams {\r\n name: string; // Nome da categoria\r\n value: number; // Valor do ponto de dados\r\n seriesName: string; // Nome da série\r\n seriesType: string; // Tipo da série\r\n dataIndex: number; // Índice do ponto de dados\r\n color: string; // Cor da série\r\n}\r\n\r\nexport function GenerateGraphSample({\r\n arrayData, name, xAxis, title, haveTitle, driId, getDate, groupGraph, isLoading, countUniMed, maxValue, toolbox,\r\n}) {\r\n const chartRef = useRef(null);\r\n const { menuToogle } = useContext(MenuContext);\r\n let objectData;\r\n function verifyIndexY(item) {\r\n if (item === 'H') return 0;\r\n if (item === 'C') return 1;\r\n if (item === 'kPa') return 3;\r\n if (item === 'A') return 2;\r\n if (item === 's') return 4;\r\n if (item === 'P' && groupGraph) return 5;\r\n return 0;\r\n }\r\n\r\n function returnWitchUniMedHave() {\r\n const haveCelcius = countUniMed.C > 0;\r\n const haveHour = countUniMed.H > 0;\r\n const haveKpa = countUniMed.kPa > 0;\r\n const haveAmper = countUniMed.A > 0;\r\n const havePercent = countUniMed.P > 0;\r\n const haveSeconds = countUniMed.s > 0;\r\n return {\r\n haveCelcius, haveAmper, haveHour, haveKpa, havePercent, haveSeconds,\r\n };\r\n }\r\n\r\n function formatLabel(value: any, unit: string) {\r\n const numberValue = parseFloat(value);\r\n\r\n if (!Number.isNaN(numberValue)) {\r\n const formattedNumber = formatNumberWithFractionDigits(value);\r\n return `${formattedNumber} ${unit}`;\r\n }\r\n\r\n return `${value}`;\r\n }\r\n\r\n const generateAxisConfig = (name: string, maxValue: number, unit: string, fontSize: number, align: string, offset: number, position: string, textAlign?: string) => ({\r\n type: 'value',\r\n name: name ? `${name}(${unit})` : '',\r\n max: name ? Math.ceil(maxValue) : 0,\r\n splitNumber: 5,\r\n minInterval: name ? Math.ceil(maxValue / 5) : 0,\r\n position,\r\n offset,\r\n axisLabel: {\r\n formatter: (value) => (name ? formatLabel(value, unit) : ''),\r\n align,\r\n fontSize,\r\n },\r\n nameTextStyle: {\r\n fontWeight: 'bolder',\r\n align: textAlign || 'center',\r\n color: 'black',\r\n fontSize: 11,\r\n },\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n });\r\n\r\n const generateCleanConfig = (quantEspaco: number, position) => ({\r\n type: 'value',\r\n min: 0,\r\n max: 100,\r\n position,\r\n axisLabel: {\r\n formatter: `${' '.repeat(quantEspaco)}`,\r\n align: 'center',\r\n },\r\n offset: 20,\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n });\r\n\r\n function returnSide(condition) {\r\n if (condition) {\r\n return 'left';\r\n }\r\n return 'right';\r\n }\r\n\r\n function returnOffsetHour(haveHour, haveCelcius) {\r\n if (haveHour && !haveCelcius) {\r\n return 20;\r\n }\r\n return 60;\r\n }\r\n\r\n function returnOffsetAmper(haveAmper) {\r\n if (haveAmper && countUniMed.A > 0 && countUniMed.kPa === 0) {\r\n return 30;\r\n }\r\n return 95;\r\n }\r\n\r\n function returnGraphNotPorcent() {\r\n const {\r\n haveCelcius, haveHour, haveKpa, haveAmper, haveSeconds,\r\n } = returnWitchUniMedHave();\r\n const haveOnlyLeftKpa = (!(haveHour || haveSeconds) && !haveCelcius);\r\n const haveOnlyLeftAmper = (!(haveHour || haveSeconds) && !haveCelcius);\r\n const decideSideAmper = returnSide(haveOnlyLeftAmper);\r\n const decideSideKpa = returnSide(haveOnlyLeftKpa);\r\n const decideSide = haveCelcius && !(haveHour || haveSeconds) ? 'left' : 'right';\r\n const decideSideCelcius = (haveHour || haveSeconds) && !haveCelcius ? 'left' : 'right';\r\n const yAxisNotPorcent = [\r\n haveHour ? generateAxisConfig('Horas', maxValue.H, 'h', 10, 'right', returnOffsetHour(haveHour, haveCelcius), 'left', 'right') : generateCleanConfig(9, decideSide),\r\n haveCelcius ? generateAxisConfig('Temp.', maxValue.C, '°C', 10, 'center', 30, 'left') : generateCleanConfig(8, decideSideCelcius),\r\n haveAmper ? generateAxisConfig('Corren.', maxValue.A, 'A', 10, decideSideAmper, returnOffsetAmper(haveAmper), decideSideAmper) : generateCleanConfig(9, decideSideAmper),\r\n haveKpa ? generateAxisConfig('Press.', maxValue.kPa, 'kPa', 10, 'center', 30, decideSideKpa) : generateCleanConfig(8, decideSideKpa),\r\n haveSeconds ? generateAxisConfig('Seg.', maxValue.s + 20, 's', 10, 'right', returnOffsetHour(haveSeconds, haveCelcius), 'left', 'right') : generateCleanConfig(9, decideSide),\r\n ] as any;\r\n return yAxisNotPorcent;\r\n }\r\n function yAxisDecide() {\r\n if (title === t('porcentagens')) {\r\n return [\r\n {\r\n type: 'value',\r\n min: 0,\r\n max: 100,\r\n position: 'left',\r\n axisLabel: {\r\n formatter: '{value} %',\r\n align: 'center',\r\n fontSize: 10,\r\n },\r\n nameTextStyle: {\r\n fontWeight: 'bolder',\r\n align: 'center',\r\n color: 'black',\r\n },\r\n offset: 20,\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n },\r\n generateCleanConfig(32, 'right'),\r\n ];\r\n }\r\n const yAxisNotPorcent = returnGraphNotPorcent();\r\n const {\r\n havePercent, haveAmper, haveKpa,\r\n } = returnWitchUniMedHave();\r\n if (groupGraph && havePercent) {\r\n yAxisNotPorcent.push({\r\n type: 'value',\r\n name: 'Porcen.(%)',\r\n min: 0,\r\n max: 100,\r\n position: 'right',\r\n offset: haveKpa && haveAmper ? 155 : (haveKpa || haveAmper ? 90 : 30),\r\n axisLabel: {\r\n formatter: '{value} %',\r\n align: 'center',\r\n fontSize: 11,\r\n padding: [0, 0, 0, 0],\r\n },\r\n nameTextStyle: {\r\n fontWeight: 'bolder',\r\n align: 'center',\r\n color: 'black',\r\n fontSize: 11,\r\n padding: [0, 0, 0, 10],\r\n },\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n });\r\n }\r\n return yAxisNotPorcent;\r\n }\r\n\r\n function getTitle() {\r\n if (title && haveTitle) {\r\n return {\r\n title: {\r\n text: title,\r\n padding: [0, 0, 0, 10],\r\n textStyle: {\r\n color: 'black',\r\n fontSize: 15,\r\n },\r\n },\r\n };\r\n }\r\n }\r\n\r\n function formatUnidMed(item) {\r\n let uniMed = objectData[item.seriesName]?.unidMed;\r\n if (uniMed === 'P') uniMed = '%';\r\n if (uniMed === 'C') uniMed = '°C';\r\n if (uniMed === 'H') uniMed = 'h';\r\n return uniMed;\r\n }\r\n\r\n function formatterTooltip(value: TooltipParams[]) {\r\n const nameChiller = `${driId}`;\r\n // const type = `

${}

`;\r\n const date = getDate(value[0].dataIndex);\r\n const arrayA = [`${t('circuitoA')}`];\r\n const arrayB = [`${t('circuitoB')}`];\r\n const arrayC = [`${t('circuitoC')}`];\r\n const values = [`${title || t('geral')}`];\r\n\r\n if (value.every((x) => x?.value == null)) return '';\r\n\r\n for (const item of value) {\r\n if (item.value == null) {\r\n continue;\r\n }\r\n const dataObject = objectData[item.seriesName];\r\n const newSeriesName = item.seriesName.replace('do circ. A', '').replace('do circ. B', '').replace('do circuito B', '').replace('do circuito A', '');\r\n const uniMed = formatUnidMed(item);\r\n const cssObject = `${newSeriesName}: ${formatNumberWithFractionDigits(Number(item.value).toFixed(uniMed === 'h' ? 0 : 1))}${uniMed}`;\r\n if (dataObject && dataObject.type === 'A') {\r\n arrayA.push(cssObject);\r\n }\r\n else if (dataObject && dataObject.type === 'B') {\r\n arrayB.push(cssObject);\r\n } else if (dataObject && dataObject.type === 'C') {\r\n arrayC.push(cssObject);\r\n }\r\n else {\r\n values.push(cssObject);\r\n }\r\n }\r\n const tooltipContentFactory = [date, nameChiller, ''];\r\n if (values.length > 1) {\r\n tooltipContentFactory.push(...values, '');\r\n }\r\n if (arrayA.length > 1) {\r\n tooltipContentFactory.push(...arrayA, '');\r\n }\r\n if (arrayB.length > 1) {\r\n tooltipContentFactory.push(...arrayB);\r\n }\r\n if (arrayC.length > 1) {\r\n tooltipContentFactory.push(...arrayC);\r\n }\r\n return tooltipContentFactory.join('
');\r\n }\r\n\r\n const handleRenderChiller = () => {\r\n if (chartRef.current) {\r\n echarts.dispose(chartRef.current);\r\n const chartInstance = echarts.init(chartRef.current);\r\n if (isLoading) {\r\n chartInstance.showLoading();\r\n }\r\n const seriesData = (arrayData || []).map((item) => (\r\n {\r\n name: item.name,\r\n color: item.color,\r\n type: 'line',\r\n stack: item.name,\r\n smooth: true,\r\n data: item.data,\r\n symbolSize: 0,\r\n yAxisIndex: verifyIndexY(item.unidMed),\r\n }\r\n ));\r\n window.addEventListener('resize', () => {\r\n chartInstance.resize();\r\n });\r\n chartInstance.setOption({\r\n ...getTitle(),\r\n ...haveToolbox(toolbox, true),\r\n grid: {\r\n left: title === t('porcentagens') ? '91px' : '50px',\r\n top: '70px',\r\n bottom: '10%',\r\n width: '90%',\r\n containLabel: true,\r\n },\r\n tooltip: {\r\n trigger: 'axis',\r\n formatter: (value) => formatterTooltip(value),\r\n padding: 20,\r\n },\r\n xAxis,\r\n yAxis: yAxisDecide(),\r\n series: seriesData,\r\n });\r\n chartInstance.dispatchAction({\r\n type: 'takeGlobalCursor',\r\n key: 'dataZoomSelect',\r\n dataZoomSelectActive: true,\r\n });\r\n chartInstance.group = 'group1';\r\n const newObjectData = {};\r\n arrayData.forEach((item) => {\r\n newObjectData[item.name] = { ...item };\r\n });\r\n objectData = newObjectData;\r\n chartInstance.hideLoading();\r\n zoomTooltipOff(chartInstance, 'group1');\r\n window.addEventListener('resize', () => {\r\n chartInstance.resize();\r\n });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n handleRenderChiller();\r\n }, [arrayData, menuToogle]);\r\n\r\n return (\r\n <>\r\n {\r\n arrayData.length > 0 && (\r\n
\r\n )\r\n }\r\n \r\n );\r\n}\r\n","import { useContext, useEffect, useRef } from 'react';\r\nimport { ContainerGraphParamsChange } from './styles';\r\nimport {\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n} from 'echarts/components';\r\nimport * as echarts from 'echarts/core';\r\nimport { LineChart } from 'echarts/charts';\r\nimport { UniversalTransition } from 'echarts/features';\r\nimport { SVGRenderer } from 'echarts/renderers';\r\nimport { t } from 'i18next';\r\nimport { haveToolbox, zoomTooltipOff } from './ChillerParameters';\r\nimport MenuContext from '~/contexts/menuContext';\r\n\r\necharts.use([\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n LineChart,\r\n SVGRenderer,\r\n UniversalTransition,\r\n]);\r\n\r\ntype TGenerateGraphsPercentGeralAlarmMaintaince = {\r\n arrayData: ({ value: string; name: string; color: string; unidMed?: string; type?: string; data: number[]; } | undefined)[],\r\n name: string,\r\n yAxisNames?: string[],\r\n title?: string,\r\n height: number,\r\n getDate: (index: number) => string,\r\n driId?: string,\r\n xAxis: {},\r\n groupGraph: boolean,\r\n toolbox: boolean,\r\n lengthArraySample?: number\r\n}\r\n\r\nexport function GenerateGraphGeralAlarmMaintaince({\r\n arrayData, name, yAxisNames, title, height, getDate, driId, xAxis, groupGraph, toolbox, lengthArraySample,\r\n}: Readonly) {\r\n const chartRef = useRef(null);\r\n const { menuToogle } = useContext(MenuContext);\r\n function formatterTooltip(value) {\r\n const tooltipContentFactory: string[] = [];\r\n const nameChiller = `${driId}`;\r\n const date = getDate(value[0].dataIndex);\r\n tooltipContentFactory.push(date, nameChiller, ' ');\r\n const arrayNames: string[] = [];\r\n for (const v1 of value) {\r\n if (!v1.value && v1.value !== 0) {\r\n return '';\r\n }\r\n const style = getBallColor(yAxisNames?.[v1.value]);\r\n const type = `
${yAxisNames![v1.value]}
`;\r\n const titleName = `${groupGraph || title === t('status_compressores') ? v1.seriesName : title}`;\r\n arrayNames.push(titleName, type);\r\n }\r\n tooltipContentFactory.push(...arrayNames);\r\n return tooltipContentFactory.join('
');\r\n }\r\n function getBallColor(name) {\r\n if (name === t('emAlarme') || name === t('desligadoMinusculo')) return { class: 'circleRed', style: 'background: #FF1818;' };\r\n if (name === t('semAlarmes') || name === t('emFuncionamento')) return { class: 'circleGreen', style: 'background: #4EB73B;' };\r\n if (name === t('emAlerta')) return { class: 'circleYellow', style: 'background: #EDA800' };\r\n }\r\n\r\n function yAxisDecide() {\r\n return {\r\n type: 'category',\r\n boundaryGap: false,\r\n data: yAxisNames,\r\n axisLabel: {\r\n align: 'left',\r\n fontSize: 10,\r\n margin: 2,\r\n padding: 10,\r\n },\r\n offset: 120,\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n };\r\n }\r\n\r\n function verifyNullOrSum(item, sum) {\r\n if (item == null) {\r\n return null;\r\n }\r\n return item + sum;\r\n }\r\n\r\n function formatterDataIfGroupGraph(item) {\r\n let data = item.data;\r\n if (groupGraph && item.data) {\r\n if (item.value === 'alarme') {\r\n data = item.data.map((item) => verifyNullOrSum(item, 11));\r\n }\r\n if (item.value === 'geral') {\r\n data = item.data.map((item) => verifyNullOrSum(item, 15));\r\n }\r\n if (item.value === 'CP_B1' || item.value === 'CP_B2' || item.value === 'CP_A2' || item.value === 'CP_A1') {\r\n data = item.data.map((item) => verifyNullOrSum(item, 18));\r\n }\r\n if (item.value === 'status') {\r\n data = item.data;\r\n }\r\n }\r\n return {\r\n name: item.name,\r\n color: item.color,\r\n type: 'line',\r\n stack: item.name,\r\n step: 'start',\r\n symbolSize: 0,\r\n data,\r\n };\r\n }\r\n\r\n function haveTitle() {\r\n if (title) {\r\n return {\r\n title: {\r\n text: title,\r\n padding: [15, 0, 0, 10],\r\n textStyle: {\r\n color: 'black',\r\n fontSize: 15,\r\n },\r\n },\r\n };\r\n }\r\n }\r\n\r\n const handleRenderChiller = () => {\r\n if (chartRef.current) {\r\n echarts.dispose(chartRef.current);\r\n const chartInstance = echarts.init(chartRef.current);\r\n const newSeries = (arrayData || []).map((item) => formatterDataIfGroupGraph(item));\r\n window.addEventListener('resize', () => {\r\n chartInstance.resize();\r\n });\r\n const chillerConfig = {\r\n ...haveTitle(),\r\n grid: {\r\n left: groupGraph ? '9px' : '15px',\r\n bottom: '20%',\r\n width: '90%',\r\n containLabel: true,\r\n },\r\n ...haveToolbox(toolbox),\r\n tooltip: {\r\n trigger: 'axis',\r\n formatter: (value) => formatterTooltip(value),\r\n padding: [20, 90, 20, 30],\r\n textStyle: {\r\n width: 400,\r\n },\r\n },\r\n xAxis,\r\n yAxis: yAxisDecide(),\r\n series: newSeries,\r\n };\r\n chillerConfig && chartInstance.setOption(chillerConfig);\r\n chartInstance.dispatchAction({\r\n type: 'takeGlobalCursor',\r\n key: 'dataZoomSelect',\r\n dataZoomSelectActive: true,\r\n });\r\n chartInstance.group = 'group2';\r\n zoomTooltipOff(chartInstance, 'group2');\r\n window.removeEventListener('resize', () => {\r\n chartInstance.resize();\r\n });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n handleRenderChiller();\r\n }, [arrayData, menuToogle]);\r\n\r\n return (\r\n <>\r\n {\r\n arrayData.length > 0 && (\r\n 0 && groupGraph) ? '0px' : '30px',\r\n }}\r\n />\r\n )\r\n }\r\n \r\n );\r\n}\r\n","export default __webpack_public_path__ + \"static/media/sem_parametros.c5dc49a5.svg\";","import { t } from 'i18next';\r\nimport {\r\n Button,\r\n Card, Checkbox,\r\n Loader,\r\n SelectMultiple,\r\n} from '~/components';\r\nimport {\r\n BorderSubItem,\r\n ContainerNotSelectedParams,\r\n ContainerParameters, HorizontalLineSelectParameters, InfoSelected, InputStyledSelected, SearchInputStyled, SelectOptionStyled, SelectedContent,\r\n} from './styles';\r\nimport { Box } from 'reflexbox';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport * as echarts from 'echarts/core';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\nimport { AlertTextParameters, ButtonClear, SearchInput } from '~/pages/Analysis/styles';\r\nimport { useEffect } from 'react';\r\nimport { ComparativeIcon, InfoIcon, WarnIcon } from '~/icons';\r\nimport { toast } from 'react-toastify';\r\nimport { apiCall } from '~/providers';\r\nimport {\r\n agruparPorData, getDate, gerarNumerosAteMaximoDataXChangedParams, getListDays, returnXAxis, separarValoresPorPropriedade,\r\n getDataToGraphsAndSetMaxValues,\r\n createRecordStatusObject,\r\n processData,\r\n darkenColor,\r\n} from '~/helpers/chillerParametersHelpers';\r\nimport { GenerateGraphSample } from './ChillerGraphParametersGrouped';\r\nimport { GenerateGraphGeralAlarmMaintaince } from './ChillerGraphParametersChanged';\r\nimport SemParametros from '../../../../../../assets/img/sem_parametros.svg';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { HoverExportList } from '~/pages/Analysis/Utilities/UtilityFilter/styles';\r\n\r\nconst listStatusNames = [t('desligadoMinusculo'), t('emFuncionamento'), t('emParada'), t('emPartida'), t('desarmado'), t('pronto'), t('forcado'), t('emDescongelamento'), t('emTesteCarga '), `${t('emTeste')} `];\r\nconst listMaintenceNames = [t('emDia'), t('emAlerta'), `${t('atrasada')} `];\r\nconst listGeneralNames = [t('desligadoMinusculo'), `${t('emFuncionamento')} `];\r\nconst listCompStatusNames = [t('desligadoMinusculo'), `${t('ligadoMinusculo')} `];\r\nconst listAlarmNames = [t('semAlarmes'), t('emAlerta'), `${t('emAlarme')} `];\r\n\r\ninterface OptionParameter {\r\n value: string;\r\n name: string;\r\n color: string;\r\n data: number[] | (number | null)[][];\r\n unidMed?: string;\r\n type?: string;\r\n}\r\n\r\nconst createOptionParameter = (value: string, name: string, color: string, index: number, unidMed?: string, type?: string): OptionParameter => ({\r\n value,\r\n name: t(name),\r\n color,\r\n data: [] as number[] | (number | null)[][],\r\n unidMed,\r\n type,\r\n checked: false,\r\n index,\r\n});\r\n\r\nconst FIXED_RED = 80;\r\nconst percentArray = ['CAP_T', 'DEM_LIM', 'LAG_LIM', 'EXV_B', 'EXV_A', 'CAPB_T', 'CAPA_T', 'SLT_A', 'SLT_B'];\r\nconst arrayDefault = ['alarme', 'manutencao', 'geral', 'status', 'CP_B1', 'CP_B2', 'CP_A1', 'CP_A2'];\r\nconst arrayCompStatus = ['CP_B1', 'CP_B2', 'CP_A2', 'CP_A1'];\r\ntype TSelectParameters = { value: string; name: string; color: string; unidMed?: string; type?: string; data: number[], checked: boolean, index: number }\r\nconst applicationType = {\r\n 'chiller-carrier-30hxe': 'HX',\r\n 'chiller-carrier-20gxe': 'HX',\r\n 'chiller-carrier-30hxf': 'HX',\r\n 'chiller-carrier-30xab': 'XA',\r\n 'chiller-carrier-30xab-hvar': 'XA_HVAR',\r\n 'chiller-carrier-30hxe-gxe-hvar': 'HX',\r\n} as {\r\n [type: string]: string,\r\n};\r\n\r\nexport function ChillerParameters(props: Readonly<{\r\n driId?: string, startDate: moment.Moment | null, endDate: moment.Moment | null, isFlexivel?: boolean, model: string, chillerModel?: string,\r\n}>): JSX.Element {\r\n const chillerModel = applicationType[props.model];\r\n const handleOptionsParameters = () => {\r\n if (chillerModel === 'XA') return handleOptionsParametersXA();\r\n if (chillerModel === 'XA_HVAR') return handleOptionsParametersXAHvar();\r\n return handleOptionsParametersHX();\r\n };\r\n\r\n const getYAxisNames = () => {\r\n if (chillerModel === 'XA') return [...listStatusNames, '', ...listMaintenceNames, '', ...listGeneralNames];\r\n return [...listStatusNames, '', ...listAlarmNames, '', ...listGeneralNames, '', ...listCompStatusNames, '', ...listMaintenceNames];\r\n };\r\n\r\n const handleOptionsParametersHX = () => {\r\n let index = 0;\r\n const options = [\r\n createOptionParameter('geral', 'geral', '#363BC4', index++),\r\n createOptionParameter('alarme', 'alarme', '#e1c61b', index++),\r\n // createOptionParameter('manutencao', 'manutencao', '#5733FF'),\r\n createOptionParameter('status', 'status', '#fd9401', index++),\r\n\r\n createOptionParameter('CAP_T', 'descricao_CAP_T', '#33A6FF', index++, 'P'),\r\n createOptionParameter('DEM_LIM', 'descricao_DEM_LIM', '#3c3d68', index++, 'P'),\r\n // temporário, validação extra para retirar LAG_LIM até implementarmos o gateway HVAR do HX no front\r\n ...(props.model !== 'chiller-carrier-30hxe-gxe-hvar' ? [createOptionParameter('LAG_LIM', 'descricao_LAG_LIM', '#5d4aba', index++, 'P')] : []),\r\n createOptionParameter('CTRL_PNT', 'descricao_CTRL_PNT', '#2C5932', index++, 'C'),\r\n createOptionParameter('COND_SP', 'descricao_COND_SP', '#3F8347', index++, 'C'),\r\n createOptionParameter('COND_LWT', 'descricao_COND_LWT', '#F5000F', index++, 'C'),\r\n createOptionParameter('COND_EWT', 'descricao_COND_EWT', '#FF656E', index++, 'C'),\r\n createOptionParameter('COOL_LWT', 'descricao_COOL_LWT', '#0085FF', index++, 'C'),\r\n createOptionParameter('COOL_EWT', 'descricao_COOL_EWT', '#6FBAFF', index++, 'C'),\r\n createOptionParameter('SP', 'descricao_SP', '#3BA448', index++, 'C'),\r\n\r\n createOptionParameter('ACircuit', 'circuitoA', '#DC3C45', index++),\r\n createOptionParameter('DP_A', 'descricao_DP_A', '#DC3C45', index++, 'kPa', 'A'),\r\n createOptionParameter('SP_A', 'descricao_SP_A', '#0066FF', index++, 'kPa', 'A'),\r\n createOptionParameter('CPA1_OP', 'descricao_CPA1_OP', '#FF7144', index++, 'kPa', 'A'),\r\n createOptionParameter('CPA2_OP', 'descricao_CPA2_OP', '#882C40', index++, 'kPa', 'A'),\r\n createOptionParameter('DOP_A1', 'descricao_DOP_A1', '#3b113e', index++, 'kPa', 'A'),\r\n createOptionParameter('DOP_A2', 'descricao_DOP_A2', '#a77b16', index++, 'kPa', 'A'),\r\n createOptionParameter('SCT_A', 'descricao_SCT_A', '#B63030', index++, 'C', 'A'),\r\n createOptionParameter('SST_A', 'descricao_SST_A', '#0042A5', index++, 'C', 'A'),\r\n createOptionParameter('CPA1_DGT', 'descricao_CPA1_DGT', '#CE6268', index++, 'C', 'A'),\r\n createOptionParameter('CPA2_DGT', 'descricao_CPA2_DGT', '#FB3E49', index++, 'C', 'A'),\r\n createOptionParameter('CPA1_TMP', 'descricao_CPA1_TMP', '#213a59', index++, 'C', 'A'),\r\n createOptionParameter('CPA2_TMP', 'descricao_CPA2_TMP', '#702e83', index++, 'C', 'A'),\r\n createOptionParameter('HR_CP_A1', 'descricao_HR_CP_A1', '#296A36', index++, 'H', 'A'),\r\n createOptionParameter('HR_CP_A2', 'descricao_HR_CP_A2', '#FF3357', index++, 'H', 'A'),\r\n createOptionParameter('CPA1_CUR', 'descricao_CPA1_CUR', '#296A36', index++, 'A', 'A'),\r\n createOptionParameter('CPA2_CUR', 'descricao_CPA2_CUR', '#11215c', index++, 'A', 'A'),\r\n createOptionParameter('EXV_A', 'descricao_EXV_A', '#D933FF', index++, 'P', 'A'),\r\n createOptionParameter('CAPA_T', 'descricao_CAPA_T', '#7b2683', index++, 'P', 'A'),\r\n createOptionParameter('CP_A1', 'descricao_CP_A1', '#2870d5', index++, 'P', 'A'),\r\n createOptionParameter('CP_A2', 'descricao_CP_A2', '#265aa3', index++, 'P', 'A'),\r\n\r\n createOptionParameter('BCircuit', 'circuitoB', '#B4A947', index++),\r\n createOptionParameter('DP_B', 'descricao_DP_B', '#EA8A8F', index++, 'kPa', 'B'),\r\n createOptionParameter('SP_B', 'descricao_SP_B', '#5C7AA9', index++, 'kPa', 'B'),\r\n createOptionParameter('CPB1_OP', 'descricao_CPB1_OP', '#296A36', index++, 'kPa', 'B'),\r\n createOptionParameter('CPB2_OP', 'descricao_CPB2_OP', '#5c054f', index++, 'kPa', 'B'),\r\n createOptionParameter('DOP_B1', 'descricao_DOP_B1', '#34522d', index++, 'kPa', 'B'),\r\n createOptionParameter('DOP_B2', 'descricao_DOP_B2', '#2b2998', index++, 'kPa', 'B'),\r\n createOptionParameter('SCT_B', 'descricao_SCT_B', '#D38383', index++, 'C', 'B'),\r\n createOptionParameter('SST_B', 'descricao_SST_B', '#668EC9', index++, 'C', 'B'),\r\n createOptionParameter('CPB1_DGT', 'descricao_CPB1_DGT', '#E2A1A4', index++, 'C', 'B'),\r\n createOptionParameter('CPB2_DGT', 'descricao_CPB2_DGT', '#FD8B92', index++, 'C', 'B'),\r\n createOptionParameter('CPB1_TMP', 'descricao_CPB1_TMP', '#3e33be', index++, 'C', 'B'),\r\n createOptionParameter('CPB2_TMP', 'descricao_CPB2_TMP', '#84169b', index++, 'C', 'B'),\r\n createOptionParameter('HR_CP_B1', 'descricao_HR_CP_B1', '#296A36', index++, 'H', 'B'),\r\n createOptionParameter('HR_CP_B2', 'descricao_HR_CP_B2', '#3e7432', index++, 'H', 'B'),\r\n createOptionParameter('CPB1_CUR', 'descricao_CPB1_CUR', '#296A36', index++, 'A', 'B'),\r\n createOptionParameter('CPB2_CUR', 'descricao_CPB2_CUR', '#A633FF', index++, 'A', 'B'),\r\n createOptionParameter('EXV_B', 'descricao_EXV_B', '#7b402b', index++, 'P', 'B'),\r\n createOptionParameter('CAPB_T', 'descricao_CAPB_T', '#712c80', index++, 'P', 'B'),\r\n createOptionParameter('CP_B1', 'descricao_CP_B1', '#042759', index++, 'P', 'B'),\r\n createOptionParameter('CP_B2', 'descricao_CP_B2', '#303c4e', index++, 'P', 'B'),\r\n ];\r\n\r\n return options;\r\n };\r\n\r\n const handleOptionsParametersXA = () => [\r\n createOptionParameter('geral', 'geral', '#363BC4', 0),\r\n createOptionParameter('status', 'status', '#fd9401', 1),\r\n\r\n createOptionParameter('CAP_T', 'descricao_CAP_T', '#33A6FF', 2, 'P'),\r\n createOptionParameter('CTRL_PNT', 'descricao_CTRL_PNT', '#2C5932', 3, 'C'),\r\n createOptionParameter('COND_LWT', 'descricao_COND_LWT', '#F5000F', 4, 'C'),\r\n createOptionParameter('COND_EWT', 'descricao_COND_EWT', '#FF656E', 5, 'C'),\r\n createOptionParameter('COOL_LWT', 'descricao_COOL_LWT', '#0085FF', 6, 'C'),\r\n createOptionParameter('COOL_EWT', 'descricao_COOL_EWT', '#6FBAFF', 7, 'C'),\r\n createOptionParameter('SP', 'descricao_SP', '#3BA448', 8, 'C'),\r\n createOptionParameter('OAT', 'descricao_OAT', '#303c4e', 9, 'C'),\r\n createOptionParameter('HR_MACH', 'descricao_HR_MACH', '#303c4e', 10, 'H'),\r\n createOptionParameter('HR_MACH_B', 'descricao_HR_MACH_B', '#303c4e', 11, 'H'),\r\n\r\n createOptionParameter('ACircuit', 'circuitoA', '#DC3C45', 12),\r\n createOptionParameter('DP_A', 'descricao_DP_A', '#DC3C45', 13, 'kPa', 'A'),\r\n createOptionParameter('SP_A', 'descricao_SP_A', '#0066FF', 14, 'kPa', 'A'),\r\n createOptionParameter('SCT_A', 'descricao_SCT_A', '#B63030', 15, 'C', 'A'),\r\n createOptionParameter('SST_A', 'descricao_SST_A', '#0042A5', 16, 'C', 'A'),\r\n createOptionParameter('OP_A', 'descricao_OP_A', '#303c4e', 17, 'C', 'A'),\r\n createOptionParameter('SLT_A', 'descricao_SLT_A', '#303c4e', 18, 'P', 'A'),\r\n createOptionParameter('HR_CP_A', 'descricao_HR_CP_A', '#303c4e', 19, 'H', 'A'),\r\n\r\n createOptionParameter('BCircuit', 'circuitoB', '#B4A947', 20),\r\n createOptionParameter('DP_B', 'descricao_DP_B', '#EA8A8F', 21, 'kPa', 'B'),\r\n createOptionParameter('SP_B', 'descricao_SP_B', '#5C7AA9', 22, 'kPa', 'B'),\r\n createOptionParameter('SCT_B', 'descricao_SCT_B', '#D38383', 23, 'C', 'B'),\r\n createOptionParameter('SST_B', 'descricao_SST_B', '#668EC9', 24, 'C', 'B'),\r\n createOptionParameter('OP_B', 'descricao_OP_B', '#303c4e', 25, 'C', 'B'),\r\n createOptionParameter('SLT_B', 'descricao_SLT_B', '#303c4e', 26, 'P', 'B'),\r\n createOptionParameter('HR_CP_B', 'descricao_HR_CP_B', '#303c4e', 27, 'H', 'B'),\r\n ];\r\n\r\n const handleOptionsParametersXAHvar = () => {\r\n const options = [\r\n createOptionParameter('geral', 'geral', '#363BC4', 0),\r\n createOptionParameter('alarme', 'alarme', '#e1c61b', 1),\r\n createOptionParameter('status', 'status', '#fd9401', 2),\r\n\r\n createOptionParameter('GENUNIT_UI', 'descricao_GENUNIT_UI', '#fdc601', 3, 's'),\r\n createOptionParameter('CAP_T', 'descricao_CAP_T', '#33A6FF', 4, 'P'),\r\n createOptionParameter('CTRL_PNT', 'descricao_CTRL_PNT', '#2C5932', 5, 'C'),\r\n createOptionParameter('OAT', 'descricao_OAT', '#303c4e', 6, 'C'),\r\n createOptionParameter('TOT_CURR', 'descricao_TOT_CURR', '#33A6FF', 7, 'A'),\r\n createOptionParameter('COOL_EWT', 'descricao_COOL_EWT', '#6FBAFF', 8, 'C'),\r\n createOptionParameter('COOL_LWT', 'descricao_COOL_LWT', '#0085FF', 9, 'C'),\r\n\r\n createOptionParameter('ACircuit', 'circuitoA', '', 10),\r\n createOptionParameter('DP_A', 'descricao_DP_A', '#DC3C45', 11, 'kPa', 'A'),\r\n createOptionParameter('CIRCA_AN_UI', 'descricao_CIRCA_AN_UI', '#19598a', 12, 's', 'A'),\r\n createOptionParameter('CAPA_T', 'descricao_CAPA_T', '#7b2683', 13, 'P', 'A'),\r\n createOptionParameter('SP_A', 'descricao_SP_A', '#0066FF', 14, 'kPa', 'A'),\r\n createOptionParameter('ECON_P_A', 'descricao_ECON_P_A', '#7dba8b', 15, 'kPa', 'A'),\r\n createOptionParameter('OP_A', 'descricao_OP_A', '#303c4e', 16, 'kPa', 'A'),\r\n createOptionParameter('DOP_A', 'descricao_DOP_A', '#5a914d', 17, 'kPa', 'A'),\r\n createOptionParameter('CURREN_A', 'descricao_CURREN_A', '#629acc', 18, 'A', 'A'),\r\n createOptionParameter('CP_TMP_A', 'descricao_CP_TMP_A', '#cfcf32', 19, 'C', 'A'),\r\n createOptionParameter('DGT_A', 'descricao_DGT_A', '#CE6268', 20, 'C', 'A'),\r\n createOptionParameter('ECO_TP_A', 'descricao_ECO_TP_A', '#c2304e', 21, 'C', 'A'),\r\n createOptionParameter('SCT_A', 'descricao_SCT_A', '#B63030', 22, 'C', 'A'),\r\n createOptionParameter('SST_A', 'descricao_SST_A', '#0042A5', 23, 'C', 'A'),\r\n createOptionParameter('SUCT_T_A', 'descricao_SUCT_T_A', '#732fc2', 24, 'C', 'A'),\r\n createOptionParameter('EXV_A', 'descricao_EXV_A', '#27c490', 25, 'P', 'A'),\r\n\r\n createOptionParameter('BCircuit', 'circuitoB', '', 26),\r\n createOptionParameter('DP_B', 'descricao_DP_B', '#EA8A8F', 27, 'kPa', 'B'),\r\n createOptionParameter('CIRCB_AN_UI', 'descricao_CIRCB_AN_UI', '#044475', 28, 's', 'B'),\r\n createOptionParameter('CAPB_T', 'descricao_CAPB_T', '#712c80', 29, 'P', 'B'),\r\n createOptionParameter('SP_B', 'descricao_SP_B', '#5C7AA9', 30, 'kPa', 'B'),\r\n createOptionParameter('ECON_P_B', 'descricao_ECON_P_B', '#549463', 31, 'kPa', 'B'),\r\n createOptionParameter('OP_B', 'descricao_OP_B', '#303c4e', 32, 'kPa', 'B'),\r\n createOptionParameter('DOP_B', 'descricao_DOP_B', '#476e3d', 33, 'kPa', 'B'),\r\n createOptionParameter('CURREN_B', 'descricao_CURREN_B', '#3971a3', 34, 'A', 'B'),\r\n createOptionParameter('CP_TMP_B', 'descricao_CP_TMP_B', '#b0b035', 35, 'C', 'B'),\r\n createOptionParameter('DGT_B', 'descricao_DGT_B', '#E2A1A4', 36, 'C', 'B'),\r\n createOptionParameter('ECO_TP_B', 'descricao_ECO_TP_B', '#a13d52', 37, 'C', 'B'),\r\n createOptionParameter('SCT_B', 'descricao_SCT_B', '#D38383', 38, 'C', 'B'),\r\n createOptionParameter('SST_B', 'descricao_SST_B', '#668EC9', 39, 'C', 'B'),\r\n createOptionParameter('SUCT_T_B', 'descricao_SUCT_T_B', '#5f299e', 40, 'C', 'B'),\r\n createOptionParameter('EXV_B', 'descricao_EXV_B', '#27a37a', 41, 'P', 'B'),\r\n ];\r\n\r\n if (verifyShowCircuitC(props.chillerModel)) {\r\n options.push(\r\n createOptionParameter('CCircuit', 'circuitoC', '', 42),\r\n createOptionParameter('DP_C', 'descricao_DP_C', '#FF788A', 43, 'kPa', 'C'),\r\n createOptionParameter('CIRCC_AN_UI', 'descricao_CIRCC_AN_UI', '#19598a', 44, 's', 'C'),\r\n createOptionParameter('CAPC_T', 'descricao_CAPC_T', '#642c70', 45, 'P', 'C'),\r\n createOptionParameter('SP_C', 'descricao_SP_C', '#00CCFF', 46, 'kPa', 'C'),\r\n createOptionParameter('ECON_P_C', 'descricao_ECON_P_C', '#2c6639', 47, 'kPa', 'C'),\r\n createOptionParameter('OP_C', 'descricao_OP_C', '#2e3745', 48, 'kPa', 'C'),\r\n createOptionParameter('DOP_C', 'descricao_DOP_C', '#3c5c33', 49, 'kPa', 'C'),\r\n createOptionParameter('CURREN_C', 'descricao_CURREN_C', '#2a5b87', 50, 'A', 'C'),\r\n createOptionParameter('CP_TMP_C', 'descricao_CP_TMP_C', '#8c8c31', 51, 'C', 'C'),\r\n createOptionParameter('DGT_C', 'descricao_DGT_C', '#FFC4D0', 52, 'C', 'C'),\r\n createOptionParameter('ECO_TP_C', 'descricao_ECO_TP_C', '##944354', 53, 'C', 'C'),\r\n createOptionParameter('SCT_C', 'descricao_SCT_C', '#FF6060', 54, 'C', 'C'),\r\n createOptionParameter('SST_C', 'descricao_SST_C', '#11A2CF', 55, 'C', 'C'),\r\n createOptionParameter('SUCT_T_C', 'descricao_SUCT_T_C', '#4b2775', 56, 'C', 'C'),\r\n createOptionParameter('EXV_C', 'descricao_EXV_C', '#248c6a', 57, 'P', 'C'),\r\n );\r\n }\r\n\r\n return options;\r\n };\r\n\r\n function verifyShowCircuitC(model?: string) {\r\n if (!model?.length) return false;\r\n\r\n const numberAux = model.slice(4, 7);\r\n\r\n return Number(numberAux) >= 400;\r\n }\r\n\r\n const OptionsParameters = handleOptionsParameters();\r\n\r\n const [state, render, setState] = useStateVar({\r\n groupGraph: false,\r\n isLoading: false,\r\n record_dates: [] as string[],\r\n optionsParameters: OptionsParameters as TSelectParameters[],\r\n selectedParameters: [] as any,\r\n sendToGraphDefault: [] as TSelectParameters[],\r\n sendToGraphPercent: [] as TSelectParameters[],\r\n sendToCompStatus: [] as TSelectParameters[],\r\n sendGraphDefaultGrouped: [] as TSelectParameters[],\r\n selectedAlarm: false,\r\n selectedGeneral: false,\r\n selectedStatus: false,\r\n selectedMaintence: false,\r\n selectedCompStatusA1: false,\r\n selectedCompStatusA2: false,\r\n selectedCompStatusB1: false,\r\n selectedCompStatusB2: false,\r\n listDays: [] as Date[],\r\n objectData: {} as {[key:string]: {}},\r\n dataX: [] as number[],\r\n dataXChangedParams: [] as number[],\r\n numPoints: 0,\r\n interval: 0,\r\n hourGraph: false,\r\n groupGraphValues: [] as {\r\n value: string;\r\n name: string;\r\n color: string;\r\n unidMed?: string;\r\n type?: string;\r\n data: number[]\r\n }[],\r\n countValuesUniMed: {\r\n C: 0,\r\n kPa: 0,\r\n A: 0,\r\n H: 0,\r\n P: 0,\r\n s: 0,\r\n },\r\n maxValue: {\r\n C: 0,\r\n kPa: 0,\r\n A: 0,\r\n H: 0,\r\n s: 0,\r\n },\r\n haveData: true,\r\n changeData: false,\r\n searchData: false,\r\n dataPeriodOut: false,\r\n textAlertParameters: 0,\r\n });\r\n const limitParameters = 21;\r\n\r\n function changeDataOptionsParameters(item: {\r\n value: string;\r\n name: string;\r\n color: string;\r\n unidMed?: string;\r\n type?: string;\r\n data: number[];\r\n }, arrayStatus: number[], valoresPorPropriedade, arrayGeral: number[], arrayAlarm: number[], arrayCpb1: number[], arrayCpb2: number[], arrayCpa1: number[], arrayCpa2: number[]) {\r\n if (item.value === 'status') {\r\n item.data = arrayStatus;\r\n }\r\n else if (item.value === 'geral') {\r\n item.data = arrayGeral;\r\n }\r\n // else if (item.value === 'manutencao') {\r\n // item.data = arrayMaintence;\r\n // }\r\n else if (item.value === 'alarme') {\r\n item.data = arrayAlarm;\r\n }\r\n else if (item.value === 'CP_B1') {\r\n item.data = arrayCpb1;\r\n }\r\n else if (item.value === 'CP_B2') {\r\n item.data = arrayCpb2;\r\n }\r\n else if (item.value === 'CP_A1') {\r\n item.data = arrayCpa1;\r\n }\r\n else if (item.value === 'CP_A2') {\r\n item.data = arrayCpa2;\r\n }\r\n else {\r\n item.data = valoresPorPropriedade[item.value.toLowerCase()];\r\n }\r\n }\r\n\r\n async function handleGetParamsHistory() {\r\n if (state.selectedParameters.length === 0) {\r\n setState({ textAlertParameters: state.textAlertParameters + 1 });\r\n return;\r\n }\r\n try {\r\n setState({ isLoading: true });\r\n if (props.startDate && props.endDate && state.changeData) {\r\n const response = await apiCall('/dri/get-chiller-parameters-hist', {\r\n DEVICE_CODE: props.driId!, START_DATE: props.startDate.format('YYYY-MM-DD'), END_DATE: props.endDate.format('YYYY-MM-DD'), MODEL: chillerModel, HOUR_GRAPHIC: state.hourGraph,\r\n });\r\n if (response?.paramsLists?.paramsChanged?.length === 0 && response?.paramsLists?.paramsGrouped?.length === 0) {\r\n setState({ haveData: false, isLoading: false });\r\n return;\r\n }\r\n setState({ haveData: true, changeData: false, searchData: true });\r\n const record_dates = response.paramsLists.paramsGrouped.map((item) => item.record_date);\r\n // createRecordStatusObject cria um objeto de dias selecionado e conta quantos registros de pontos tem no dia;\r\n const objectDays = createRecordStatusObject(record_dates, state.listDays);\r\n // processData é para adicionar o valor null nos pontos se não tiver a quantidade de pontos ideal por dia. 24 pontos caso sejam mais de 5 dias selecionado; 144 pontos caso seja menos.\r\n const dataProcessed = processData(objectDays, response.paramsLists.paramsGrouped, state.numPoints, chillerModel);\r\n const valoresPorPropriedade: any = separarValoresPorPropriedade(dataProcessed);\r\n // agruparPorData funciona como um agrupador de parametros changed para separar e repetir o valor anterior caso tenha.\r\n const statusValues = agruparPorData(response.paramsLists?.paramsChanged?.filter((item) => item.parameter_name === 'STATUS'), state.listDays);\r\n const compStatusValuesB1 = agruparPorData(response.paramsLists?.paramsChanged?.filter((item) => item.parameter_name === 'CP_B1'), state.listDays);\r\n const compStatusValuesB2 = agruparPorData(response.paramsLists?.paramsChanged?.filter((item) => item.parameter_name === 'CP_B2'), state.listDays);\r\n const compStatusValuesA1 = agruparPorData(response.paramsLists?.paramsChanged?.filter((item) => item.parameter_name === 'CP_A1'), state.listDays);\r\n const compStatusValuesA2 = agruparPorData(response.paramsLists?.paramsChanged?.filter((item) => item.parameter_name === 'CP_A2'), state.listDays);\r\n const geralValues = agruparPorData(response.paramsLists?.paramsChanged?.filter((item) => item.parameter_name === 'CHIL_S_S'), state.listDays);\r\n const alarmValues = agruparPorData(response.paramsLists?.paramsChanged?.filter((item) => item.parameter_name === 'ALM'), state.listDays);\r\n setState({\r\n record_dates: valoresPorPropriedade.record_date,\r\n });\r\n // changeDataOptionParameters adicona em cada propriedade o valor dos dados ja processados e editados conforme a quantidade de pontos.\r\n state.optionsParameters.forEach((item) => changeDataOptionsParameters(item, statusValues, valoresPorPropriedade, geralValues, alarmValues, compStatusValuesB1, compStatusValuesB2, compStatusValuesA1, compStatusValuesA2));\r\n render();\r\n }\r\n if (state.searchData) {\r\n transformDataFunction();\r\n }\r\n setState({ searchData: true });\r\n } catch (err) {\r\n toast.error(t('houveErro'));\r\n }\r\n setState({ isLoading: false, textAlertParameters: 0 });\r\n }\r\n\r\n useEffect(() => {\r\n if (!getListDays(props, setState, state)) {\r\n setState({\r\n changeData: true, searchData: false,\r\n });\r\n gerarNumerosAteMaximoDataXChangedParams(state.listDays.length, setState, state);\r\n }\r\n }, [props.startDate, props.endDate]);\r\n\r\n function getObjectsFiltered(objectData: { [key: string]: {} }, arrayFiltered: string[]): any[] {\r\n const valoresExcluidos = new Set(arrayFiltered);\r\n return Object.keys(objectData)\r\n .filter((chave) => !valoresExcluidos.has(chave))\r\n .map((chave) => objectData[chave]);\r\n }\r\n\r\n function transformDataFunction() {\r\n setState({ isLoading: true });\r\n render();\r\n const objectData = {} as {[key:string]: TSelectParameters};\r\n const all = state.optionsParameters.filter((item) => item.checked);\r\n all.forEach((item) => {\r\n objectData[item.value] = { ...item };\r\n });\r\n setState({\r\n ...state,\r\n objectData,\r\n selectedGeneral: !!objectData.geral,\r\n selectedStatus: !!objectData.status,\r\n selectedMaintence: !!objectData.manutencao,\r\n selectedAlarm: !!objectData.alarme,\r\n selectedCompStatusA1: !!objectData.CP_A1,\r\n selectedCompStatusA2: !!objectData.CP_A2,\r\n selectedCompStatusB1: !!objectData.CP_B1,\r\n selectedCompStatusB2: !!objectData.CP_B2,\r\n });\r\n const allWithoutDefault = getObjectsFiltered(objectData, arrayDefault);\r\n getDataToGraphsAndSetMaxValues(allWithoutDefault, percentArray, setState, state);\r\n const sendToCompGraph = [] as TSelectParameters[];\r\n arrayCompStatus.forEach((item) => { if (objectData[item]) { sendToCompGraph.push(objectData[item]); } });\r\n setState({ sendToCompStatus: sendToCompGraph, sendGraphDefaultGrouped: state.sendToGraphDefault.concat(state.sendToGraphPercent) });\r\n if (state.groupGraph) {\r\n const arrayValues: {\r\n value: string;\r\n name: string;\r\n color: string;\r\n unidMed?: string;\r\n type?: string;\r\n data: number[];\r\n }[] = [];\r\n state.optionsParameters.forEach((item) => {\r\n if (\r\n (item.value === 'geral' && state.selectedGeneral)\r\n || (item.value === 'manutencao' && state.selectedMaintence)\r\n || (item.value === 'alarme' && state.selectedAlarm)\r\n || (item.value === 'status' && state.selectedStatus)\r\n || (item.value === 'CP_B1' && state.selectedCompStatusB1)\r\n || (item.value === 'CP_B2' && state.selectedCompStatusB2)\r\n || (item.value === 'CP_A2' && state.selectedCompStatusA1)\r\n || (item.value === 'CP_A1' && state.selectedCompStatusA2)\r\n ) {\r\n arrayValues.push(item);\r\n }\r\n });\r\n setState({ groupGraphValues: arrayValues, searchData: true });\r\n }\r\n setState({ isLoading: false });\r\n render();\r\n }\r\n\r\n function setColor(e, index) {\r\n const selectedColor = e.target.value;\r\n const darkenedColor = darkenColor(selectedColor, 40);\r\n state.optionsParameters[index].color = darkenedColor;\r\n }\r\n\r\n const handleBlur = () => {\r\n render();\r\n };\r\n const handleColorInputClick = (event) => {\r\n event.stopPropagation();\r\n };\r\n const renderOption = (option) => (\r\n \r\n { (option.value === 'DP_A' || option.value === 'DP_B' || option.value === 'DP_C') && }\r\n \r\n \r\n { (option.type === 'A' || option.type === 'B' || option.type === 'C') && }\r\n \r\n \r\n \r\n {\r\n option.value === 'ACircuit' || option.value === 'BCircuit' || option.value === 'CCircuit' ? (\r\n \r\n {option.name}\r\n \r\n )\r\n : option.name\r\n }\r\n \r\n \r\n { !(option.value === 'ACircuit' || option.value === 'BCircuit' || option.value === 'CCircuit') && setColor(e, option.index)} onClick={handleColorInputClick} />}\r\n \r\n \r\n );\r\n\r\n function addValuesParametersCircuit(value, stringName, arrayValues) {\r\n if (value.value === stringName) {\r\n if (!value.checked) {\r\n arrayValues.forEach((option) => state.optionsParameters.forEach((item) => { if (item.value === option || item.value === value.value) { item.checked = false; } }));\r\n } else {\r\n state.selectedParameters = state.optionsParameters.forEach((item) => { if (item.value !== value.value) { item.checked = false; } });\r\n arrayValues.forEach((option) => state.optionsParameters.forEach((item) => { if (item.value === option || item.value === value.value) { item.checked = true; } }));\r\n }\r\n state.selectedParameters = state.optionsParameters.filter((item) => item.checked);\r\n render();\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function filterValuesParametersCircuit(value, circuitName, stringName, arrayValues) {\r\n if (value.type === stringName) {\r\n const filterValues = arrayValues.filter((item) => !state.optionsParameters.some((op) => op.checked && item === op.value));\r\n if (filterValues.length > 0) {\r\n state.optionsParameters.forEach((item) => { if (item.value === circuitName) { item.checked = false; } });\r\n } else {\r\n state.optionsParameters.forEach((item) => { if (item.value === circuitName) { item.checked = true; } });\r\n }\r\n state.selectedParameters = state.optionsParameters.filter((item) => item.checked);\r\n render();\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function selectedParameter(value) {\r\n if (limitParameters === state.selectedParameters.length && !state.selectedParameters.find((item) => item.value === value.value)) {\r\n return;\r\n }\r\n state.optionsParameters[value.index].checked = !state.optionsParameters[value.index].checked;\r\n const AValues = ['CIRCA_AN_UI', 'CAPA_T', 'DP_A', 'SP_A', 'ECON_P_A', 'OP_A', 'DOP_A', 'CURREN_A', 'CP_TMP_A', 'CP_TMP_A', 'DGT_A', 'ECO_TP_A', 'SCT_A', 'SST_A', 'SUCT_T_A', 'EXV_A', 'CPA1_OP', 'CPA2_OP', 'HR_CP_A1', 'HR_CP_A2', 'CPA1_CUR', 'CPA2_CUR', 'DOP_A1', 'DOP_A2', 'CPA1_DGT', 'CPA2_DGT', 'CPA1_TMP', 'CPA2_TMP', 'CP_A1', 'CP_A2', 'SLT_A', 'HR_CP_A'];\r\n const BValues = ['CIRCB_AN_UI', 'CAPB_T', 'DP_B', 'SP_B', 'ECON_P_B', 'OP_B', 'DOP_B', 'CURREN_B', 'CP_TMP_B', 'DGT_B', 'ECO_TP_B', 'SCT_B', 'SST_B', 'SUCT_T_B', 'EXV_B', 'CPB1_OP', 'CPB2_OP', 'HR_CP_B1', 'HR_CP_B2', 'CPB1_CUR', 'CPB2_DGT', 'CPB1_TMP', 'CPB2_TMP', 'CP_B1', 'CP_B2', 'SLT_B', 'HR_CP_B', 'CPB2_CUR', 'DOP_B1', 'DOP_B2', 'CPB1_DGT', 'CPB2_DGT'];\r\n const CValues = ['CIRCC_AN_UI', 'CAPC_T', 'DP_C', 'SP_C', 'ECON_P_C', 'OP_C', 'DOP_C', 'CURREN_C', 'CP_TMP_C', 'DGT_C', 'ECO_TP_C', 'SCT_C', 'SST_C', 'SUCT_T_C', 'EXV_C'];\r\n\r\n if (addValuesParametersCircuit(value, 'ACircuit', AValues) || addValuesParametersCircuit(value, 'BCircuit', BValues) || addValuesParametersCircuit(value, 'CCircuit', CValues)) {\r\n return;\r\n }\r\n if (filterValuesParametersCircuit(value, 'ACircuit', 'A', AValues) || filterValuesParametersCircuit(value, 'BCircuit', 'B', BValues) || filterValuesParametersCircuit(value, 'CCircuit', 'C', CValues)) {\r\n return;\r\n }\r\n state.selectedParameters = state.optionsParameters.filter((item) => item.checked);\r\n render();\r\n }\r\n\r\n if (state.isLoading) {\r\n return (\r\n \r\n \r\n \r\n {t('carregandoGraficosDeParametros')}\r\n \r\n \r\n );\r\n }\r\n\r\n function decideGraphs() {\r\n if (!state.groupGraph) {\r\n return (\r\n \r\n getDate(state, item, state.record_dates)}\r\n groupGraph={state.groupGraph}\r\n right=\"4.5%\"\r\n isLoading={state.isLoading}\r\n countUniMed={state.countValuesUniMed}\r\n maxValue={state.maxValue}\r\n toolbox\r\n />\r\n getDate(state, item, state.record_dates)}\r\n groupGraph={state.groupGraph}\r\n right=\"4.5%\"\r\n isLoading={state.isLoading}\r\n countUniMed={state.countValuesUniMed}\r\n maxValue={state.maxValue}\r\n toolbox\r\n />\r\n item.value === 'geral')] : []}\r\n yAxisNames={listGeneralNames}\r\n name=\"chiller-geral-parameters\"\r\n title={t('geral')}\r\n height={180}\r\n getDate={(index) => getDate(state, index, [], true)}\r\n xAxis={returnXAxis(state, true)}\r\n driId={props.driId}\r\n groupGraph={state.groupGraph}\r\n toolbox\r\n />\r\n item.value === 'status')] : []}\r\n yAxisNames={listStatusNames}\r\n name=\"chiller-status-parameters\"\r\n title={t('status')}\r\n height={400}\r\n getDate={(index) => getDate(state, index, [], true)}\r\n xAxis={returnXAxis(state, true)}\r\n driId={props.driId}\r\n groupGraph={state.groupGraph}\r\n toolbox\r\n />\r\n {/* item.value === 'manutencao')] : []}\r\n yAxisNames={listMaintenceNames}\r\n name=\"chiller-maintence-parameters\"\r\n title={t('manutencao')}\r\n height={200}\r\n getDate={(index) => getDate(index, true)}\r\n xAxis={returnXAxis(state, true)}\r\n driId={props.driId}\r\n groupGraph={state.groupGraph}\r\n toolbox\r\n /> */}\r\n item.value === 'alarme')] : []}\r\n yAxisNames={listAlarmNames}\r\n name=\"chiller-alarm-parameters\"\r\n title={t('alarme')}\r\n height={220}\r\n getDate={(index) => getDate(state, index, [], true)}\r\n xAxis={returnXAxis(state, true)}\r\n driId={props.driId}\r\n groupGraph={state.groupGraph}\r\n toolbox\r\n />\r\n getDate(state, index, [], true)}\r\n xAxis={returnXAxis(state, true)}\r\n driId={props.driId}\r\n groupGraph={state.groupGraph}\r\n toolbox\r\n />\r\n
\r\n );\r\n }\r\n return (\r\n
\r\n getDate(state, item, state.record_dates)}\r\n groupGraph={state.groupGraph}\r\n right={state.groupGraph ? '120px' : '10%'}\r\n isLoading={state.isLoading}\r\n countUniMed={state.countValuesUniMed}\r\n maxValue={state.maxValue}\r\n toolbox\r\n />\r\n getDate(state, index, [], true)}\r\n xAxis={returnXAxis(state, true)}\r\n driId={props.driId}\r\n groupGraph={state.groupGraph}\r\n toolbox\r\n lengthArraySample={state.sendToGraphPercent.length + state.sendToGraphDefault.length}\r\n />\r\n
\r\n );\r\n }\r\n\r\n function returnGraphs() {\r\n if (state.searchData && state.haveData) {\r\n return (\r\n <>\r\n {decideGraphs()}\r\n \r\n );\r\n }\r\n return (\r\n \r\n \r\n {t('historicoParametros')}\r\n \r\n {t('selecioneDataParametros')}\r\n
\r\n {t('continuacaoParametrosVazio')}\r\n
\r\n
\r\n );\r\n }\r\n\r\n function clearSelected() {\r\n if (state.selectedParameters.length > 0) {\r\n state.optionsParameters.forEach((item) => item.checked = false);\r\n state.selectedParameters = [];\r\n render();\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n

{t('parametros')}

\r\n
\r\n
\r\n \r\n \r\n { selectedParameter(value); }}\r\n customElements={renderOption}\r\n disabled={!props.startDate || state.isLoading || state.dataPeriodOut}\r\n styleBox={{ border: 'none', width: '100%' }}\r\n haveCountSelect={false}\r\n limitSelect={limitParameters}\r\n />\r\n \r\n \r\n \r\n setState({ textAlertParameters: 0 })} />\r\n clearSelected()}>\r\n {t('limpar')}\r\n \r\n
\r\n
\r\n handleGetParamsHistory()}\r\n >\r\n {t('analisar')}\r\n \r\n {\r\n state.selectedParameters.length === 0 && (\r\n \r\n
\r\n \r\n \r\n {t('pesquiseChiller')}\r\n \r\n
\r\n \r\n )\r\n }\r\n {\r\n state.haveData && (\r\n \r\n {t('visualizacao')}\r\n \r\n {t('desagrupar')}\r\n { state.groupGraph = !state.groupGraph; transformDataFunction(); render(); }}\r\n style={{ marginLeft: '10px', marginRight: '10px' }}\r\n />\r\n {t('agrupar')}\r\n \r\n \r\n )\r\n }\r\n
\r\n \r\n {\r\n state.haveData ? (\r\n <>\r\n {returnGraphs()}\r\n \r\n ) : (\r\n \r\n \"sem-parâmetros\"\r\n {t('semParametros')}\r\n \r\n {t('naoHouveramRegistrosParametros')}\r\n
\r\n {t('paraOperidoSelecionado')}\r\n
\r\n
\r\n )\r\n }\r\n \r\n );\r\n}\r\n\r\nexport function haveToolbox(toolbox, isGraphGeral?: boolean) {\r\n function yAxisIndex() {\r\n if (!isGraphGeral) {\r\n return {\r\n yAxisIndex: '',\r\n };\r\n }\r\n }\r\n if (toolbox) {\r\n return {\r\n toolbox: {\r\n feature: {\r\n dataZoom: {\r\n xAxisIndex: [0],\r\n ...yAxisIndex(),\r\n title: {\r\n zoom: t('Zoom'),\r\n back: t('voltarAmpliacao'),\r\n },\r\n filterMode: 'filter',\r\n },\r\n restore: {\r\n title: t('restaurarZoom'),\r\n },\r\n saveAsImage: {\r\n title: t('salvarComoImagem'),\r\n },\r\n },\r\n top: isGraphGeral ? 2 : '4.5%',\r\n },\r\n };\r\n }\r\n}\r\n\r\nexport function zoomTooltipOff(chartInstance, name) {\r\n let isZooming = false;\r\n const handleZoom = () => {\r\n if (!isZooming) {\r\n isZooming = true;\r\n echarts.connect(name);\r\n chartInstance.setOption({\r\n tooltip: {\r\n show: false,\r\n },\r\n });\r\n }\r\n };\r\n\r\n const handleRestore = () => {\r\n if (isZooming) {\r\n isZooming = false;\r\n echarts.disconnect(name);\r\n chartInstance.setOption({\r\n tooltip: {\r\n show: true,\r\n },\r\n });\r\n }\r\n };\r\n\r\n chartInstance.on('dataZoom', handleZoom);\r\n chartInstance.on('restore', handleRestore);\r\n chartInstance.on('finished', () => {\r\n if (isZooming) {\r\n isZooming = false;\r\n echarts.disconnect(name);\r\n chartInstance.setOption({\r\n tooltip: {\r\n show: true,\r\n },\r\n });\r\n }\r\n });\r\n}\r\n\r\nfunction AlertMessage({ value, arrayLength, onAnimationEnd }) {\r\n const valueInitial = 0;\r\n\r\n return (\r\n <>\r\n {\r\n valueInitial !== value && arrayLength === 0 ? (\r\n \r\n \r\n {t('selecioneParametosDeseja')}\r\n \r\n ) : (\r\n
\r\n )\r\n }\r\n \r\n );\r\n}\r\n","import moment from 'moment-timezone';\r\nimport { ReactElement } from 'react';\r\n\r\nexport function CsvLabelFormatterData(hour: number, dateStart: moment.Moment | null): string {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n const dateFinal = `${dd}/${mm}`;\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n const ss = Math.floor((Math.abs(hour) * 60 * 60) % 60);\r\n return `${dateFinal} ${String(hh).padStart(2, '0')}:${String(min).padStart(2, '0')}:${String(ss).padStart(2, '0')}`;\r\n}\r\n\r\nexport function tickXLabelFormatterDay(hour: number, dateStart: moment.Moment | null): string {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n\r\n const dateFinal = `${dd}/${mm}`;\r\n return `${dateFinal}`;\r\n}\r\n\r\nexport function tickXLabelFormatterHour(hour: number): string {\r\n const numDays = Math.floor(hour / 24);\r\n const sign = hour - 24 * numDays < 0 ? '-' : '';\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const mm = Math.floor((Math.abs(hour) * 60) % 60);\r\n return `${'\\n'} ${sign}${String(hh).padStart(2, '0')}:${String(mm).padStart(2, '0')}`;\r\n}\r\n\r\nexport const renderQuarterTickHour = (tickProps: any): ReactElement => {\r\n const { x, y, payload } = tickProps;\r\n const { value } = payload;\r\n\r\n return {`${tickXLabelFormatterHour(value)}`};\r\n};\r\n\r\nexport function tooltipXLabelFormatter(hour: number, dateStart: moment.Moment | null) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n const dateFinal = `${dd}/${mm}`;\r\n\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n const ss = Math.floor((Math.abs(hour) * 60 * 60) % 60);\r\n\r\n return `${dateFinal} - ${String(hh).padStart(2, '0')}:${String(min).padStart(2, '0')}:${String(ss).padStart(2, '0')}`;\r\n}\r\n","import { useContext, useEffect, useRef } from 'react';\r\nimport {\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n DataZoomComponent,\r\n} from 'echarts/components';\r\nimport * as echarts from 'echarts/core';\r\nimport { LineChart } from 'echarts/charts';\r\nimport { UniversalTransition } from 'echarts/features';\r\nimport { SVGRenderer } from 'echarts/renderers';\r\nimport { t } from 'i18next';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { zoomTooltipOff } from '~/pages/Analysis/Integrations/IntegrHistory/ChillerCarrierHistory/components/ChillerParameters';\r\nimport moment from 'moment';\r\nimport { tooltipXLabelFormatter } from '~/helpers/historyGraph';\r\nimport MenuContext from '~/contexts/menuContext';\r\n\r\necharts.use([\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n LineChart,\r\n SVGRenderer,\r\n UniversalTransition,\r\n DataZoomComponent,\r\n]);\r\n\r\ninterface TooltipParams {\r\n name: string;\r\n value: number;\r\n seriesName: string;\r\n seriesType: string;\r\n dataIndex: number;\r\n axisValue: number;\r\n color: string;\r\n}\r\n\r\nexport function GenerateGraphSample({\r\n state, graphEnable, axisInfo, hwCfg, manageAllClients,\r\n}): JSX.Element {\r\n const chartRef = useRef(null);\r\n const { menuToogle } = useContext(MenuContext);\r\n\r\n const selectedParams = state.chartData.vars?.filter((varInfo) => graphEnable[varInfo.id] || varInfo.id === 'SavedData');\r\n const isDesktop = window.matchMedia('(min-width: 1039px)').matches;\r\n const isSmallMobile = window.matchMedia('(max-width: 550px)').matches;\r\n\r\n function formatterTooltip(value: TooltipParams[], unitMap: { [key: string]: string }) {\r\n const date = tooltipXLabelFormatter(value[0].axisValue, state.dateStart);\r\n const values: string[] = [];\r\n const tooltipContentFactory = [date];\r\n\r\n if (value.every((x) => x?.value == null)) return '';\r\n\r\n for (const item of value) {\r\n if (item.value == null) {\r\n continue;\r\n }\r\n const itemValue = verifyValue(item.value, item.seriesName);\r\n const itemName = item.seriesName?.replace('[Bar]', '').replace('[ΔTºC]', '[ΔT]');\r\n const cssObject = `${itemName}: ${itemValue} ${unitMap[item.seriesName]}`;\r\n values.push(cssObject);\r\n }\r\n\r\n tooltipContentFactory.push(...values);\r\n\r\n return tooltipContentFactory.join('
');\r\n }\r\n\r\n function tickXLabelFormaterDay(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(state.dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n\r\n const dateFinal = `${dd}/${mm}`;\r\n return `${dateFinal}${tickXLabelFormaterHour(hour)}`;\r\n }\r\n\r\n function tickXLabelFormaterHour(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const sign = hour - 24 * numDays < 0 ? '-' : '';\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n\r\n return `${'\\n'} ${sign}${String(hh).padStart(2, '0')}:00`;\r\n }\r\n\r\n function verifyIndexY(axisId: string) {\r\n if (axisId === 'press') return 1;\r\n\r\n return 0;\r\n }\r\n\r\n function generateMappings(value: number) {\r\n const mappingValues = new Map();\r\n\r\n const min = -2.4;\r\n const max = axisInfo.tempTicks[0] ? axisInfo.tempTicks[0] : 0;\r\n let current = min;\r\n let alternate = true;\r\n let minKey = -3;\r\n\r\n while (current >= max) {\r\n const nextValue = current + (alternate ? -2.1 : -2.9);\r\n mappingValues.set(minKey, Number(current.toFixed(1)));\r\n minKey -= 3;\r\n current = nextValue;\r\n alternate = !alternate;\r\n }\r\n\r\n return mappingValues.get(value) ?? value;\r\n }\r\n\r\n function mapToFurthestMultiple(value: number, L1Start?: number): number {\r\n const chartDataVars = state.chartData?.vars ?? [];\r\n const minTemperature = Math.floor(Math.min(\r\n ...chartDataVars.filter((item) => item.axisId === 'temp' && ['Lcmp', 'Levp', 'L1raw', 'L1fancoil', 'Lcut', 'SavedData'].some((x) => x !== item.id))\r\n .flatMap((item) => item.y)\r\n .filter((value) => value != null),\r\n ));\r\n\r\n const alteredValues = state.alteredValues ?? [];\r\n\r\n if (!alteredValues?.length && value < minTemperature || (L1Start != null && L1Start > value)) {\r\n const mappingValue = generateMappings(value);\r\n alteredValues.push({ originalValue: mappingValue, roundedValue: value });\r\n return mappingValue;\r\n }\r\n\r\n const foundValue = alteredValues.find((x) => x.roundedValue === value);\r\n\r\n if (foundValue) {\r\n return foundValue.originalValue;\r\n }\r\n\r\n return getClosestMultipleOfFive(value);\r\n }\r\n\r\n function getClosestMultipleOfFive(value: number): number {\r\n let valueAux = value;\r\n\r\n if (value > 0) return value;\r\n\r\n if (valueAux % 10 === 3) {\r\n valueAux = value - 3;\r\n } else if (valueAux % 10 === 6) {\r\n valueAux = value - 1;\r\n } else if (valueAux % 10 === 9) {\r\n valueAux = value + 1;\r\n } else {\r\n valueAux = Math.round(valueAux / 5) * 5;\r\n }\r\n\r\n return valueAux;\r\n }\r\n\r\n function mapSavedDataLabel(value: number, abbreviate: boolean): string {\r\n const onlineLabel = abbreviate ? t('onlineAbreviado') : t('online');\r\n const offlineLabel = abbreviate ? t('offlineAbreviado') : t('offline');\r\n\r\n if (value % 3 === 0 && value < 0) {\r\n return Math.abs(value / 3) % 2 === 0 ? offlineLabel : onlineLabel;\r\n }\r\n\r\n return value.toString();\r\n }\r\n\r\n function verifyIsSavedDataValue(valueY: number) {\r\n const hasValidData = state.chartData.vars?.some(\r\n (item) => item.id === 'SavedData' && item.y?.some((value) => value != null),\r\n );\r\n\r\n if (!hasValidData) return false;\r\n const alteredValuesAux = state.alteredValues.sort((a, b) => a.originalValue - b.originalValue);\r\n const valueOnline = alteredValuesAux[0]?.roundedValue;\r\n const valueOffline = alteredValuesAux[1]?.roundedValue;\r\n\r\n return [valueOnline, valueOffline].some((x) => x === valueY);\r\n }\r\n\r\n function getCustomTickTempLabel(params: {\r\n value: number, L1start: number, isFancoil: boolean, manageAllClients: boolean,\r\n }) {\r\n const {\r\n value, L1start, isFancoil, manageAllClients,\r\n } = params;\r\n\r\n let label = value.toString();\r\n\r\n const isSavedDataValue = verifyIsSavedDataValue(params.value);\r\n\r\n if (isSavedDataValue) {\r\n const labelSavedData = mapSavedDataLabel(params.value, isSmallMobile);\r\n return labelSavedData.toLocaleUpperCase();\r\n }\r\n\r\n const valAux = mapToFurthestMultiple(value, L1start);\r\n if (valAux < (L1start - 5)) {\r\n if (isFancoil && manageAllClients && (valAux < (L1start - 7) && valAux > (L1start - 10))) {\r\n label = (valAux % 5 > -2.5) ? t('ligadoAbreviado') : t('desligadoAbreviado');\r\n } else {\r\n label = (valAux % 5 > -2.5) ? t('liberadoAbreviado') : t('bloqueadoAbreviado');\r\n }\r\n } else if (valAux < L1start) {\r\n label = (valAux % 5 > -2.5) ? t('ligadoAbreviado') : t('desligadoAbreviado');\r\n }\r\n\r\n return label;\r\n }\r\n\r\n function verifyValue(value: number, paramName: string) {\r\n if (!state.chartData.vars || state.axisInfo.L1start === null) return '';\r\n\r\n const varInfo = state.chartData.vars.find((data) => data.name === paramName);\r\n const id = varInfo?.id;\r\n\r\n const isPressure = id === 'Psuc';\r\n const isBool = ['Levp', 'Lcut', 'Lcmp', 'L1raw', 'L1fancoil'].includes(id || '');\r\n\r\n let label = formatNumberWithFractionDigits(\r\n isPressure ? value.toFixed(1).toString() : value.toString(),\r\n );\r\n\r\n if (id === 'SavedData') {\r\n label = mapSavedDataLabel(value, false);\r\n } else if (isBool) {\r\n const valAux = mapToFurthestMultiple(value, state.axisInfo.L1start);\r\n label = getBooleanLabel(valAux);\r\n }\r\n\r\n return label;\r\n }\r\n\r\n function getLabelBasedOnCondition(valAux: number, ifOption: string, elseOption: string): string {\r\n return valAux % 5 > -2.5 ? ifOption : elseOption;\r\n }\r\n\r\n function getBooleanLabel(valAux: number): string {\r\n const { L1start } = axisInfo;\r\n\r\n if (valAux < L1start - 5) {\r\n const condition = hwCfg.isFanCoil && manageAllClients && valAux < L1start - 7 && valAux > L1start - 10;\r\n\r\n if (condition) {\r\n return getLabelBasedOnCondition(valAux, t('ligadoMin'), t('desligadoMin'));\r\n }\r\n return getLabelBasedOnCondition(valAux, t('liberadoMin'), t('bloqueadoMin'));\r\n }\r\n\r\n if (valAux < L1start) {\r\n return getLabelBasedOnCondition(valAux, t('ligadoMin'), t('desligadoMin'));\r\n }\r\n\r\n return '';\r\n }\r\n\r\n function verifyYLabel() {\r\n return ((state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && (state.devInfo.dac.AST_ROLE === 1 || state.devInfo.dac.AST_ROLE === 2)) ? `${t('temperaturaAbreviado')}/${t('correnteAbreviado')}/${t('velocidadeAbreviado')}` : t('temperatura');\r\n }\r\n\r\n function renderToolbox() {\r\n return {\r\n toolbox: {\r\n feature: {\r\n dataZoom: {\r\n xAxisIndex: [0],\r\n title: {\r\n zoom: t('Zoom'),\r\n back: t('voltarAmpliacao'),\r\n },\r\n filterMode: 'filter',\r\n },\r\n restore: {\r\n title: t('restaurarZoom'),\r\n },\r\n saveAsImage: {\r\n title: t('salvarComoImagem'),\r\n name: state.dacId,\r\n },\r\n },\r\n top: '0%',\r\n },\r\n };\r\n }\r\n\r\n function verifyInterval() {\r\n const interval = Math.floor(Math.max(60, 1440 / state.numDays));\r\n\r\n if (isSmallMobile) return interval * 2;\r\n\r\n return interval;\r\n }\r\n\r\n function verifyMinPressure() {\r\n const hasValidData = state.chartData.vars?.some(\r\n (item) => item.axisId === 'press' && item.y?.some((value) => value != null),\r\n );\r\n const intervalPressure = verifyIntervalPressure();\r\n const gaps = verifyGapsIntervalPressure();\r\n\r\n if (hasValidData) {\r\n const minValue = Math.floor(Math.min(\r\n ...state.chartData.vars\r\n .filter((item) => item.axisId === 'press')\r\n .flatMap((item) => item.y)\r\n .filter((value) => value != null),\r\n ));\r\n\r\n const minValueAux = axisInfo.presTicks[0] < minValue ? axisInfo.presTicks[0] : Math.floor(minValue);\r\n\r\n return minValueAux - (gaps * intervalPressure);\r\n }\r\n\r\n return Number(axisInfo.presLimits[0] ?? 0) - (gaps * intervalPressure);\r\n }\r\n\r\n function verifyMaxPressure() {\r\n const hasValidData = state.chartData.vars?.some(\r\n (item) => item.axisId === 'press' && item.y?.some((value) => value != null),\r\n );\r\n\r\n if (hasValidData) {\r\n return axisInfo.presTicks[axisInfo.presTicks.length - 1];\r\n }\r\n\r\n return axisInfo.presLimits[1];\r\n }\r\n\r\n function verifyIntervalPressure() {\r\n if (axisInfo.presTicks?.length > 1) {\r\n return Math.floor(axisInfo.presTicks[1] - axisInfo.presTicks[0]);\r\n }\r\n return Math.ceil((axisInfo.presLimits[1] - axisInfo.presLimits[0]) / 10);\r\n }\r\n\r\n function verifyMinTemp() {\r\n const hasValidData = state.chartData.vars?.some(\r\n (item) => item.axisId === 'temp' && item.y?.some((value) => value != null),\r\n );\r\n\r\n if (hasValidData) {\r\n const minValue = Math.min(\r\n ...state.chartData.vars\r\n .filter((item) => item.axisId === 'temp')\r\n .flatMap((item) => item.y)\r\n .filter((value) => value != null),\r\n );\r\n\r\n const minValueAux = axisInfo.tempTicks[0] < minValue ? axisInfo.tempTicks[0] : Math.floor(minValue);\r\n\r\n return minValueAux;\r\n }\r\n\r\n return axisInfo.tempLimits[0];\r\n }\r\n\r\n function verifyMaxTemp() {\r\n const hasValidData = state.chartData.vars?.some(\r\n (item) => item.axisId === 'temp' && item.y?.some((value) => value != null),\r\n );\r\n\r\n if (hasValidData) {\r\n return axisInfo.tempTicks[axisInfo.tempTicks.length - 1];\r\n }\r\n\r\n return axisInfo.tempLimits[1];\r\n }\r\n\r\n function verifyGapsIntervalPressure() {\r\n return state.alteredValues?.length ?? 0;\r\n }\r\n\r\n function verifyPaddingLegend() {\r\n const lengthParams = selectedParams?.length ?? 0;\r\n\r\n if (lengthParams >= 8) {\r\n return '30%';\r\n }\r\n\r\n if (lengthParams > 6) {\r\n return '25%';\r\n }\r\n\r\n return '20%';\r\n }\r\n\r\n useEffect(() => {\r\n const seriesData = state.chartData.vars?.filter((varInfo) => graphEnable[varInfo.id])?.map((item) => (\r\n {\r\n name: item.name,\r\n color: item.color,\r\n type: 'line',\r\n stack: item.name,\r\n smooth: true,\r\n data: item.y,\r\n lineStyle: { type: item.strokeDasharray ? 'dashed' : 'solid', width: 1 },\r\n showSymbol: false,\r\n yAxisIndex: verifyIndexY(item.axisId),\r\n }\r\n ));\r\n\r\n const unitMap: { [key: string]: string } = {};\r\n state.chartData.vars?.forEach((item) => {\r\n if (graphEnable[item.id]) {\r\n unitMap[item.name] = item.unit || '';\r\n }\r\n });\r\n const chartInstance = echarts.init(chartRef.current);\r\n\r\n const intervalPressure = verifyIntervalPressure();\r\n\r\n const options = {\r\n legend: {\r\n data: selectedParams?.map((param) => param.name),\r\n bottom: 0,\r\n left: 'center',\r\n textStyle: {\r\n fontSize: isSmallMobile ? 7 : 10,\r\n color: '#333',\r\n },\r\n orient: 'horizontal',\r\n width: '100%',\r\n itemGap: 10,\r\n formatter: (name) => {\r\n const unitMed = unitMap[name];\r\n const unitAux = unitMed?.length ? `[${unitMed}]` : '';\r\n return `${name.replace('[Bar]', '').replace('[ΔTºC]', '').trim()} ${unitAux}`;\r\n },\r\n },\r\n grid: {\r\n top: '14%',\r\n bottom: isDesktop ? '15%' : verifyPaddingLegend(),\r\n },\r\n tooltip: {\r\n trigger: 'axis',\r\n formatter: (value) => formatterTooltip(value, unitMap),\r\n padding: 20,\r\n confine: true,\r\n },\r\n xAxis: {\r\n type: 'category',\r\n data: state.chartData.x,\r\n axisLabel: {\r\n show: true,\r\n interval: verifyInterval(),\r\n formatter: (value) => {\r\n if (state.numDays === 1) {\r\n return tickXLabelFormaterHour(value);\r\n }\r\n return tickXLabelFormaterDay(value);\r\n },\r\n textStyle: {\r\n fontSize: 10,\r\n },\r\n },\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n },\r\n yAxis: [\r\n {\r\n type: 'value',\r\n name: verifyYLabel(),\r\n min: verifyMinTemp(),\r\n max: verifyMaxTemp(),\r\n id: 'temp',\r\n interval: 3,\r\n offset: 8,\r\n nameTextStyle: {\r\n padding: [0, 10, 0, isSmallMobile ? 30 : 50],\r\n fontSize: isSmallMobile ? 8 : 10,\r\n },\r\n axisLabel: {\r\n align: 'right',\r\n textStyle: {\r\n fontSize: isSmallMobile ? 8 : 10,\r\n },\r\n formatter: (value) => {\r\n const dataMin = verifyMinTemp();\r\n const interval = 3;\r\n const maxTemp = verifyMaxTemp();\r\n let current = parseFloat(dataMin);\r\n while (current <= maxTemp) {\r\n if (value === current) {\r\n return getCustomTickTempLabel({\r\n value,\r\n L1start: axisInfo.L1start,\r\n isFancoil: hwCfg.isFanCoil,\r\n manageAllClients,\r\n });\r\n }\r\n current += interval;\r\n }\r\n\r\n return '';\r\n },\r\n },\r\n alignTicks: true,\r\n },\r\n {\r\n type: 'value',\r\n name: t('pressao'),\r\n boundaryGap: false,\r\n min: verifyMinPressure(),\r\n max: verifyMaxPressure(),\r\n position: 'right',\r\n id: 'press',\r\n nameTextStyle: {\r\n fontSize: isSmallMobile ? 8 : 10,\r\n },\r\n axisLabel: {\r\n textStyle: {\r\n fontSize: isSmallMobile ? 8 : 10,\r\n },\r\n formatter: (value) => {\r\n const minPressure = verifyMinPressure();\r\n let current = minPressure;\r\n const maxPressure = verifyMaxPressure();\r\n const gaps = verifyGapsIntervalPressure();\r\n\r\n if (value < (minPressure + gaps * intervalPressure)) {\r\n return '';\r\n }\r\n\r\n while (current <= maxPressure) {\r\n if (value === current) {\r\n return formatNumberWithFractionDigits(value, { minimum: 0, maximum: 0 });\r\n }\r\n current += intervalPressure;\r\n }\r\n\r\n return '';\r\n },\r\n },\r\n interval: intervalPressure,\r\n alignTicks: true,\r\n splitLine: {\r\n show: false,\r\n },\r\n },\r\n ],\r\n series: seriesData,\r\n ...renderToolbox(),\r\n };\r\n\r\n chartInstance.setOption(options);\r\n\r\n zoomTooltipOff(chartInstance, '');\r\n\r\n const handleResize = () => chartInstance.resize();\r\n window.addEventListener('resize', handleResize);\r\n\r\n return () => {\r\n window.removeEventListener('resize', handleResize);\r\n chartInstance.dispose();\r\n };\r\n }, [state.chartData.vars, graphEnable, axisInfo, menuToogle]);\r\n\r\n return (\r\n
\r\n );\r\n}\r\n","import { useEffect, useState, useRef } from 'react';\r\n\r\nimport moment from 'moment';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, ScatterChart, Scatter, Tooltip, Dot,\r\n} from 'recharts';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport { CSVLink } from 'react-csv';\r\nimport {\r\n Overlay, Loader,\r\n Select,\r\n QuickSelectionV2,\r\n SelectMultiple,\r\n Checkbox as CheckboxComponent,\r\n Card,\r\n} from '~/components';\r\nimport { getEndTime } from '~/helpers';\r\nimport * as axisCalc from '~/helpers/axisCalc';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport {\r\n CalendarIcon, ExportWorksheetIcon, ArrowLeftIcon, ArrowRightIcon,\r\n ExportIcon,\r\n} from '~/icons';\r\nimport { apiCall } from '../../../../providers';\r\nimport { colors } from '~/styles/colors';\r\nimport { SingleDatePicker, DateRangePicker } from 'react-dates';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { t } from 'i18next';\r\nimport i18n from '~/i18n';\r\n\r\nimport {\r\n CheckboxLine,\r\n Text,\r\n DesktopWrapper,\r\n ContainerArrowRight,\r\n ContainerArrowLeft,\r\n LabelData,\r\n ContentDate,\r\n BtnExport,\r\n} from './styles';\r\nimport { NoGraph } from '~/components/NoGraph';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport {\r\n InfoSelected, InputStyledSelected, SearchInputStyled, SelectedContent, SelectOptionStyled,\r\n} from '../../Integrations/IntegrHistory/ChillerCarrierHistory/components/styles';\r\nimport { ButtonClear, SearchInput } from '../../styles';\r\nimport { darkenColor } from '~/helpers/chillerParametersHelpers';\r\nimport { GenerateGraphSample } from './components/DacHistoryGraph';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\n\r\ninterface VarItem {\r\n id: string;\r\n name: string;\r\n unit?: string;\r\n y: (null | number)[];\r\n strokeDasharray: string;\r\n type: string;\r\n color: string;\r\n axisId: string;\r\n maxY?: null | number;\r\n minY?: null | number;\r\n y_orig?: (null | number | string)[];\r\n steps?: {\r\n y_orig: null | number | string;\r\n y_chart: null | number;\r\n label: string;\r\n }[];\r\n checked?: boolean;\r\n}\r\n\r\nconst colorList = [\r\n '#e6194B',\r\n '#3cb44b',\r\n '#c7ad00',\r\n '#4363d8',\r\n '#f58231',\r\n '#911eb4',\r\n '#42d4f4',\r\n '#f032e6',\r\n '#96ca11',\r\n '#f25991',\r\n '#469990',\r\n '#dcbeff',\r\n '#9A6324',\r\n '#800000',\r\n '#aaffc3',\r\n '#808000',\r\n '#ffd8b1',\r\n '#000075',\r\n '#a9a9a9',\r\n];\r\n\r\nconst varsProperties = {\r\n Tamb: {\r\n colorDefault: colors.Green,\r\n colorFanCoil: colors.Pink100,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n Tsuc: {\r\n colorDefault: colors.Blue300,\r\n colorFanCoil: colors.Red,\r\n colorHeat: colors.Blue300,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n Tliq: {\r\n colorDefault: colors.Red,\r\n colorFanCoil: colors.Blue300,\r\n colorHeat: colors.Red,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n Psuc: {\r\n colorDefault: colors.Blue300,\r\n colorFanCoil: colors.Blue300,\r\n strokeDasharray: '5 5',\r\n type: 'monotone',\r\n },\r\n Pliq: {\r\n colorDefault: colors.Red,\r\n colorFanCoil: colors.Red,\r\n strokeDasharray: '5 5',\r\n type: 'monotone',\r\n },\r\n Curr: {\r\n colorDefault: colors.Green_v2,\r\n colorFanCoil: colors.Green_v2,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n Tsc: {\r\n colorDefault: colors.Blue500,\r\n colorFanCoil: colors.Blue500,\r\n strokeDasharray: '3 3',\r\n type: 'monotone',\r\n },\r\n Tsh: {\r\n colorDefault: colors.Pink400,\r\n colorFanCoil: colors.Pink400,\r\n strokeDasharray: '3 3',\r\n type: 'monotone',\r\n },\r\n Lcmp: {\r\n colorDefault: colors.Grey400,\r\n colorFanCoil: colors.Grey400,\r\n strokeDasharray: '',\r\n type: 'step',\r\n },\r\n SavedData: {\r\n colorDefault: colors.Grey200,\r\n colorFanCoil: colors.Grey200,\r\n strokeDasharray: '',\r\n type: 'step',\r\n },\r\n Levp: {\r\n colorDefault: colors.Grey400,\r\n colorFanCoil: colors.Grey400,\r\n strokeDasharray: '',\r\n type: 'step',\r\n },\r\n Lcut: {\r\n colorDefault: colors.Orange600,\r\n colorFanCoil: colors.Orange600,\r\n strokeDasharray: '',\r\n type: 'step',\r\n },\r\n L1raw: {\r\n colorDefault: colors.Grey400,\r\n colorFanCoil: colors.Grey400,\r\n strokeDasharray: '',\r\n type: 'step',\r\n },\r\n L1fancoil: {\r\n colorDefault: colors.Grey400,\r\n colorFanCoil: colors.Grey400,\r\n strokeDasharray: '',\r\n type: 'step',\r\n },\r\n deltaT: {\r\n colorDefault: '#181842',\r\n colorFanCoil: '#181842',\r\n strokeDasharray: '3 3',\r\n type: 'monotone',\r\n },\r\n Icomp: {\r\n colorDefault: colors.Green_v2,\r\n colorFanCoil: colors.Green_v2,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n Vinsuf: {\r\n colorDefault: colors.Yellow_v3,\r\n colorFanCoil: colors.Yellow_v3,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n};\r\n\r\nlet CSVheader = [] as any;\r\n\r\nlet varsFix = [] as any;\r\n\r\nfunction calculateGraphData(faultsChart) {\r\n const booleanLines = faultsChart.lines.filter((line) => line.isBool || line.length === 0).map((line) => line.data);\r\n\r\n const { tempLimits, tempTicks, L1start } = axisCalc.calculateAxisInfo({}, booleanLines.length);\r\n faultsChart.L1start = L1start;\r\n faultsChart.leftLimits = tempLimits;\r\n faultsChart.leftTicks = tempTicks;\r\n const ticksValues = axisCalc.updateBoolY(booleanLines, L1start);\r\n\r\n const boolTicksNames = {};\r\n for (let i = 0; i < booleanLines.length; i++) {\r\n const [tick_0, tick_1] = ticksValues[i];\r\n boolTicksNames[String(tick_0)] = faultsChart.lines[i].lineId;\r\n boolTicksNames[String(tick_1)] = '';\r\n }\r\n faultsChart.boolTicksNames = boolTicksNames;\r\n}\r\n\r\nfunction processFaultsData(histData: { [lineId: string]: { x: number; L: number; }[] }, faultsChart) {\r\n const lines = [] as { lineId: string, color: string, data: { x:number, L:number }[] }[]; // { lineId: 'CHAV_d', color: 'blue', data: [{ x: 10, y: 20 }] }\r\n let colorIndex = 0;\r\n for (const [faultId, line] of Object.entries(histData)) {\r\n lines.push({\r\n lineId: faultId,\r\n isBool: true,\r\n color: colorList[colorIndex],\r\n data: line,\r\n });\r\n colorIndex = (colorIndex + 1) % colorList.length;\r\n }\r\n\r\n faultsChart.lines = lines;\r\n calculateGraphData(faultsChart);\r\n}\r\n\r\nexport const DACHistoric = (): JSX.Element => {\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const routeParams = useParams<{ devId }>();\r\n const history = useHistory();\r\n const [, render] = useStateVar({});\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaHistorico')}\r\n \r\n \r\n \r\n );\r\n};\r\nexport function DACHistoricContents({ onDevInfoUpdate = undefined as undefined|(() => void) }) {\r\n const [profile] = useState(getUserProfile);\r\n const csvLinkEl = useRef();\r\n const { devId: dacId } = useParams<{ devId: string }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n xDomain: null as null|([number, number]),\r\n xTicks: [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24] as number[],\r\n refAreaLeft: null as null|number,\r\n refAreaRight: null as null|number,\r\n numDays: 1 as number,\r\n dateStart: null as null|moment.Moment,\r\n dateEnd: null as null|moment.Moment,\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n arrowDisabled: false,\r\n chartData: {\r\n x: [] as number[],\r\n vars: null as null|VarItem[],\r\n },\r\n numDeparts: [] as number[],\r\n csvData: [] as {}[],\r\n focused: false,\r\n focusedInput: null as 'endDate'|'startDate'|null,\r\n dacId,\r\n devInfo: getCachedDevInfoSync(dacId),\r\n selectedL1Sim: undefined as undefined|boolean,\r\n isModalOpen: false,\r\n isLoading: false,\r\n gotHwCfg: false,\r\n advancedAnalysis: false,\r\n withPsuc: false,\r\n withFaults: false,\r\n date: getEndTime(),\r\n usePsi: (profile.prefsObj.pressureUnit === 'psi'),\r\n axisDataLimits: {} as { minTval?: number, maxTval?: number, minPval?: number, maxPval?: number },\r\n axisInfo: {\r\n L1start: null as null|number,\r\n tempLimits: [-6, 30],\r\n tempTicks: [-6, -3, 0, 3, 6, 9, 12, 13, 15, 18, 21, 24, 27, 30],\r\n presLimits: [-5, 35],\r\n presTicks: [-5, 0, 5, 10, 15, 20, 25, 30, 35],\r\n },\r\n faultsChart: {\r\n L1start: null,\r\n leftLimits: [-5, 30],\r\n leftTicks: [-5, 0, 5, 10, 15, 20, 25, 30],\r\n lines: [], // { lineId: 'CHAV_d', color: 'blue', data: [{ x: 10, y: 20 }] }\r\n boolTicksNames: {}, // { '-1.1': 'LIGADO' }\r\n },\r\n graphEnable: {\r\n Tamb: true,\r\n Tsuc: true,\r\n Tliq: true,\r\n deltaT: true,\r\n Psuc: true,\r\n Pliq: true,\r\n Curr: true,\r\n Tsc: true,\r\n Tsh: true,\r\n Lcmp: true,\r\n Levp: true,\r\n Lcut: true,\r\n Icomp: true,\r\n L1raw: true,\r\n L1fancoil: true,\r\n t_lim: true,\r\n deltaT_lim: true,\r\n Vinsuf: true,\r\n SavedData: true,\r\n },\r\n hwCfg: {\r\n hasPliq: true, hasPsuc: true, hasTsc: true, hasTsh: true, hasCurr: true, hasAutomation: false, isFanCoil: false,\r\n },\r\n heatExchangerInfo: {} as {\r\n ID: number\r\n NAME: string\r\n T_MIN: number\r\n T_MAX: number\r\n DELTA_T_MIN: number\r\n DELTA_T_MAX: number\r\n } | null,\r\n alteredValues: [] as { originalValue: number, roundedValue: number }[],\r\n periodSelected: t('dia'),\r\n optionsParameters: [] as { value: string, name: string, color: string, checked: boolean, index: number }[],\r\n selectedParameters: [] as { value: string, name: string, color: string, checked: boolean, index: number }[],\r\n };\r\n return state;\r\n });\r\n\r\n const {\r\n hwCfg, axisInfo, graphEnable, chartData,\r\n } = state;\r\n // const readyToRequestHistory = state.connectedWS && state.gotHwCfg;\r\n\r\n const dateRanges = [\r\n {\r\n label: t('hoje'),\r\n start: () => moment(),\r\n end: () => moment(),\r\n changeSelectedPeriod: () => handleSelection(t('hoje')),\r\n },\r\n {\r\n label: t('ontem'),\r\n start: () => moment().subtract(1, 'day'),\r\n end: () => moment().subtract(1, 'day'),\r\n changeSelectedPeriod: () => handleSelection(t('ontem')),\r\n },\r\n {\r\n label: t('semanaAtual'),\r\n start: () => moment().startOf('week'),\r\n end: () => moment(),\r\n changeSelectedPeriod: () => handleSelection(t('semanaAtual')),\r\n },\r\n {\r\n label: t('semanaPassada'),\r\n start: () => moment().subtract(7, 'days').startOf('week'),\r\n end: () => moment().subtract(7, 'days').endOf('week'),\r\n changeSelectedPeriod: () => handleSelection(t('semanaPassada')),\r\n },\r\n {\r\n label: t('ultimos7dias'),\r\n start: () => moment().subtract(7, 'days'),\r\n end: () => moment().subtract(1, 'day'),\r\n changeSelectedPeriod: () => handleSelection(t('ultimos7dias')),\r\n },\r\n {\r\n label: t('ultimos15dias'),\r\n start: () => moment().subtract(15, 'days'),\r\n end: () => moment().subtract(1, 'day'),\r\n changeSelectedPeriod: () => handleSelection(t('ultimos15dias')),\r\n },\r\n ];\r\n\r\n function CheckPermDetected(fault: {\r\n detected_fault_id: number;\r\n timestamp: string;\r\n dev_id: string;\r\n rise: boolean;\r\n approved: boolean | null;\r\n source: 'Endpoint' | 'FR';\r\n restab: boolean;\r\n fault_id: string;\r\n name: string;\r\n gravity: string;\r\n approval_type: string;\r\n permanence_detected: boolean;\r\n }) {\r\n if (fault.permanence_detected === true && fault.restab === false) {\r\n return '(Lógica Permanência)';\r\n }\r\n if (fault.restab === true) {\r\n return '(Restabelecimento)';\r\n }\r\n return '';\r\n }\r\n\r\n function processFault(fault, faultsHist, definitions, gravityTranslation, periodStart) {\r\n if (fault.source === 'Endpoint') return;\r\n\r\n let approvalState = '';\r\n if (fault.approved === true) {\r\n approvalState = ' - Approved';\r\n } else if (fault.approved === false) {\r\n approvalState = ' - Rejected';\r\n }\r\n\r\n const isPermDetected = CheckPermDetected(fault);\r\n const faultTextAux = `${definitions[fault.fault_id].name} - ${gravityTranslation[definitions[fault.fault_id].gravity]}`;\r\n\r\n const desc = `${isPermDetected} ${faultTextAux}${approvalState}`;\r\n\r\n if (!faultsHist[faultTextAux]) {\r\n faultsHist[faultTextAux] = [];\r\n }\r\n\r\n faultsHist[faultTextAux].push({\r\n x: moment.duration(moment.utc(fault.timestamp).diff(periodStart)).asHours(),\r\n L: 0,\r\n desc,\r\n time: moment.utc(fault.timestamp),\r\n });\r\n }\r\n\r\n async function getFaultHistory() {\r\n try {\r\n const faultsHist = {} as {\r\n [faultId : string]: {\r\n x: number\r\n L:number\r\n desc: string\r\n }[]\r\n };\r\n if (state.advancedAnalysis) {\r\n const periodStart = moment(state.dateStart).startOf('day').utc();\r\n const faultParams = {\r\n dev_id: state.dacId,\r\n start_time: periodStart.utc().format('YYYY-MM-DDTHH:mm:ss'),\r\n end_time: moment(state.dateEnd).endOf('day').utc().format('YYYY-MM-DDTHH:mm:ss'),\r\n };\r\n const [faultDefs, faults] = await Promise.all([apiCall('/dac/get-fault-descs'), apiCall('/dac/get-fr-history', faultParams)]);\r\n if (!faultDefs || !faults || !faults.history) {\r\n console.log('Não foi possível obter definições de falhas ou histórico de falhas');\r\n toast.error(t('erroObterDadosDeFalha'));\r\n state.isLoading = false;\r\n render();\r\n return;\r\n }\r\n const gravityTranslation = {\r\n Green: 'Verde',\r\n Yellow: 'Amarela',\r\n Orange: 'Laranja',\r\n Red: 'Vermelha',\r\n };\r\n\r\n const definitions = {};\r\n\r\n for (const faultDef of faultDefs.defs) {\r\n definitions[faultDef.fault_id] = faultDef;\r\n }\r\n\r\n for (const fault of faults.history) {\r\n processFault(fault, faultsHist, definitions, gravityTranslation, periodStart);\r\n }\r\n processFaultsData(faultsHist, state.faultsChart);\r\n }\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n function generateMappings() {\r\n const mappingValues = new Map();\r\n\r\n const min = -2.4;\r\n const max = -100;\r\n let current = min;\r\n let alternate = true;\r\n let minKey = -3;\r\n\r\n while (current >= max) {\r\n const nextValue = current + (alternate ? -2.1 : -2.9);\r\n mappingValues.set(Number(current.toFixed(1)), minKey);\r\n minKey -= 3;\r\n current = nextValue;\r\n alternate = !alternate;\r\n }\r\n\r\n return mappingValues;\r\n }\r\n\r\n function roundToFurthestMultipleOfThree(value: number, trackChanges: boolean, mappings: Map) {\r\n if (value <= -2.4) {\r\n const roundedValue = mappings.get(value) ?? value;\r\n\r\n if (trackChanges && !state.alteredValues.some((val) => val.roundedValue === roundedValue)) {\r\n state.alteredValues.push({ originalValue: value, roundedValue });\r\n verifyPairValues(value, roundedValue);\r\n }\r\n\r\n return roundedValue;\r\n }\r\n\r\n return value;\r\n }\r\n\r\n function verifySelectedParams() {\r\n const selectedParams = ['Tamb', 'Tsuc', 'Tliq', 'Psuc', 'Pliq', 'Curr', 'Tsc', 'Tsh', 'Lcmp', 'Levp', 'Lcut', 'Icomp', 'Vinsuf'];\r\n if (verifyShowSavedData()) {\r\n selectedParams.push('SavedData');\r\n }\r\n\r\n return selectedParams;\r\n }\r\n\r\n function verifyPairValues(value: number, roundedValue: number) {\r\n const valString = value.toString();\r\n if (valString.endsWith('.4')) {\r\n const nextValue = Number((value - 2.1).toFixed(1));\r\n const existingEntry = state.alteredValues.find((item) => item.originalValue === nextValue);\r\n if (!existingEntry) {\r\n state.alteredValues.push({\r\n originalValue: nextValue,\r\n roundedValue: roundedValue - 3,\r\n });\r\n }\r\n } else if (valString.endsWith('.5')) {\r\n const nextValue = Number((value + 2.1).toFixed(1));\r\n const existingEntry = state.alteredValues.find((item) => item.originalValue === nextValue);\r\n if (!existingEntry) {\r\n state.alteredValues.push({\r\n originalValue: nextValue,\r\n roundedValue: roundedValue + 3,\r\n });\r\n }\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (!state.gotHwCfg) return;\r\n if (!state.dateStart || !state.dateEnd) return;\r\n\r\n state.alteredValues = [];\r\n\r\n Promise.resolve().then(async () => {\r\n if (!state.isLoading) {\r\n state.isLoading = true;\r\n render();\r\n }\r\n try {\r\n const d1 = new Date(`${moment(state.dateStart).format('YYYY-MM-DD')}T00:00:00Z`).getTime();\r\n const d2 = new Date(`${moment(state.dateEnd).format('YYYY-MM-DD')}T00:00:00Z`).getTime();\r\n const numDays = Math.round((d2 - d1) / 1000 / 60 / 60 / 24) + 1;\r\n state.numDays = numDays;\r\n if ((numDays >= 1) && (numDays <= 15)) { } // OK\r\n else {\r\n toast.error(t('periodoDe1a15Dias'));\r\n state.isLoading = false;\r\n render();\r\n return;\r\n }\r\n\r\n // FEATURE DISPONIVEL APENAS PARA OS CLIENTES: BANCO DO BRASIL e DIEL ENERGIA\r\n state.graphEnable.Icomp = (state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && (state.devInfo.dac.AST_ROLE === 1 || state.devInfo.dac.AST_ROLE === 2);\r\n\r\n const params = {\r\n dacId: state.dacId,\r\n dayYMD: moment(state.dateStart).format('YYYY-MM-DD'),\r\n selectedParams: verifySelectedParams(),\r\n numDays,\r\n usePsi: state.usePsi,\r\n isFanCoil: state.hwCfg.isFanCoil,\r\n hasAutomation: state.hwCfg.hasAutomation,\r\n };\r\n\r\n const {\r\n vars, commonX, limts, numDeparts,\r\n } = await apiCall('/dac/get-charts-data-common', params);\r\n\r\n varsFix = vars;\r\n state.chartData.x = commonX;\r\n state.numDeparts = numDeparts;\r\n\r\n if (state.hwCfg.isFanCoil) {\r\n vars.deltaT = JSON.parse(JSON.stringify(vars.Tliq));\r\n vars.Tsuc.name = t('temperaturaSaidaAgua');\r\n vars.Tliq.name = t('temperaturaEntradaAgua');\r\n vars.Tamb.name = t('temperaturaExterna');\r\n vars.deltaT.name = 'ΔT';\r\n for (let i = 0; i < vars.Tliq.y.length; i++) {\r\n if (vars.Tliq.y[i] && vars.Tsuc.y[i]) vars.deltaT.y[i] = Number((vars.Tsuc.y[i] - vars.Tliq.y[i]).toFixed(2));\r\n }\r\n }\r\n else if (state.devInfo?.dac?.DAC_APPL === 'trocador-de-calor') {\r\n vars.deltaT = JSON.parse(JSON.stringify(vars.Tliq));\r\n vars.Tsuc.name = t('temperaturaSaidaAgua');\r\n vars.Tliq.name = t('temperaturaRetornoAgua');\r\n vars.Tamb.name = t('temperaturaExterna');\r\n vars.deltaT.name = 'ΔT';\r\n for (let i = 0; i < vars.Tliq.y.length; i++) {\r\n if (vars.Tliq.y[i] && vars.Tsuc.y[i]) vars.deltaT.y[i] = Number((vars.Tliq.y[i] - vars.Tsuc.y[i]).toFixed(2));\r\n }\r\n }\r\n\r\n if (state.devInfo.dac.DAC_TYPE === 'self') {\r\n vars.Tamb.name = t('temperaturaRetorno');\r\n }\r\n\r\n insertVars(vars);\r\n\r\n const debug_L1_fancoil = state.hwCfg.isFanCoil && profile.manageAllClients;\r\n\r\n // const boolLines = state.hwCfg.hasAutomation ? [vars.Levp, vars.Lcut] : [vars.Lcmp];\r\n const boolLines = state.hwCfg.hasAutomation\r\n ? (debug_L1_fancoil ? [vars.L1raw, vars.L1fancoil, vars.Lcut] : [vars.Levp, vars.Lcut])\r\n : (debug_L1_fancoil ? [vars.L1raw, vars.L1fancoil] : [vars.Lcmp]);\r\n\r\n if (state.advancedAnalysis) { boolLines.push(vars.SavedData); }\r\n state.axisDataLimits = axisCalc.updateDataLimits(limts);\r\n state.axisInfo = axisCalc.calculateAxisInfo(state.axisDataLimits, boolLines.length);\r\n const mappings = generateMappings();\r\n state.axisInfo.tempTicks = state.axisInfo.tempTicks.map((value) => roundToFurthestMultipleOfThree(value, false, mappings)).sort((a, b) => a - b);\r\n // Ajuste quando valor mínimo de pressão é negativo\r\n if (state.axisDataLimits.minPval && state.axisDataLimits.minPval < 0) {\r\n state.axisInfo.presLimits = [state.axisInfo.presLimits[0] - 1, state.axisInfo.presLimits[1]];\r\n }\r\n\r\n state.xDomain = [0, 24 * numDays];\r\n state.xTicks = Array.from({ length: 13 }, (_, i) => i * 2 * numDays);\r\n\r\n axisCalc.updateBoolY(boolLines, state.axisInfo.L1start!);\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n\r\n await getFaultHistory();\r\n\r\n state.isLoading = false;\r\n render();\r\n });\r\n }, [state.gotHwCfg, JSON.stringify(state.date), state.dateStart, state.dateEnd, state.advancedAnalysis]);\r\n\r\n useEffect(() => {\r\n (async function () {\r\n const devInfo = await getCachedDevInfo(state.dacId, {});\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n state.devInfo = devInfo;\r\n const dacInfo = devInfo.dac;\r\n state.hwCfg.hasPsuc = (dacInfo.P0Psuc || dacInfo.P1Psuc);\r\n state.hwCfg.hasPliq = (dacInfo.P0Pliq || dacInfo.P1Pliq);\r\n state.hwCfg.hasCurr = (dacInfo.P0Curr || dacInfo.P1Curr);\r\n state.hwCfg.hasTsh = state.hwCfg.hasPsuc;\r\n state.hwCfg.hasTsc = state.hwCfg.hasPliq;\r\n state.hwCfg.hasAutomation = dacInfo.hasAutomation;\r\n state.hwCfg.isFanCoil = (dacInfo.DAC_APPL === 'fancoil');\r\n if (state.hwCfg.isFanCoil) {\r\n state.selectedL1Sim = state.devInfo.dac.SELECTED_L1_SIM === '1';\r\n if (profile.manageAllClients) {\r\n state.graphEnable.Lcmp = false;\r\n state.graphEnable.Levp = false;\r\n state.graphEnable.L1raw = true;\r\n state.graphEnable.L1fancoil = true;\r\n }\r\n }\r\n if (!state.hwCfg.hasPsuc) state.graphEnable.Psuc = false;\r\n if (!state.hwCfg.hasPliq) state.graphEnable.Pliq = false;\r\n if (!state.hwCfg.hasCurr) state.graphEnable.Curr = false;\r\n if (!state.hwCfg.hasAutomation) state.graphEnable.Levp = false;\r\n if (!state.hwCfg.hasAutomation) state.graphEnable.Lcut = false;\r\n if (state.hwCfg.hasAutomation) state.graphEnable.Lcmp = false;\r\n state.gotHwCfg = true;\r\n\r\n const heatExchangeId = dacInfo!.HEAT_EXCHANGER_ID;\r\n if (heatExchangeId && dacInfo!.DAC_APPL === 'trocador-de-calor') {\r\n state.heatExchangerInfo = await apiCall('/heat-exchanger/get-info-v2', { CLIENT_ID: devInfo.CLIENT_ID, HEAT_EXCHANGER_ID: heatExchangeId });\r\n }\r\n\r\n state.optionsParameters = initializeOptionParameters();\r\n\r\n render();\r\n }()).catch(console.log);\r\n }, []);\r\n\r\n useEffect(() => {\r\n const weekdaysMin: string[] = t('weekdaysMin', { returnObjects: true });\r\n const language = i18n.language === 'pt' ? 'pt-br' : i18n.language;\r\n moment.updateLocale(language, {\r\n weekdaysMin,\r\n });\r\n }, [i18n.language, t]);\r\n\r\n function findColorByKey(key) {\r\n const optionIndex = state.optionsParameters.findIndex((option) => option.value === key);\r\n const color = optionIndex !== -1 ? state.optionsParameters[optionIndex].color : varsProperties[key].colorDefault;\r\n\r\n return color;\r\n }\r\n\r\n function verifyKeyToAdjustData(key: string, vars: VarItem[], mappings: Map) {\r\n if (['Lcmp', 'Levp', 'L1raw', 'L1fancoil', 'Lcut', 'SavedData'].some((x) => x === key)) {\r\n vars[key].y = vars[key].y.map((value) => roundToFurthestMultipleOfThree(value, true, mappings)); }\r\n }\r\n\r\n function verifyShowSavedData() {\r\n return state.advancedAnalysis && profile.manageAllClients;\r\n }\r\n\r\n function insertVars(vars: any) {\r\n const mappings = generateMappings();\r\n state.alteredValues = [];\r\n const chartVars: (typeof chartData.vars) = [];\r\n let i = 0;\r\n\r\n let tsucIndex: number | null = null;\r\n let tliqIndex: number | null = null;\r\n\r\n for (const key in vars) {\r\n if ((vars.hasOwnProperty(key) && checkKeyInsertVars(key)) || (key === 'SavedData' && verifyShowSavedData())) {\r\n // Se for trocador de calor\r\n const color = findColorByKey(key);\r\n if (state.devInfo?.dac?.DAC_APPL === 'trocador-de-calor') {\r\n ({ tsucIndex, tliqIndex } = updateIndexes(key, i, tsucIndex, tliqIndex));\r\n }\r\n verifyKeyToAdjustData(key, vars, mappings);\r\n\r\n chartVars.push({\r\n id: key,\r\n name: vars[key].name,\r\n y: vars[key].y,\r\n color,\r\n strokeDasharray: varsProperties[key].strokeDasharray,\r\n axisId: checkAxisId(key),\r\n checked: graphEnable[key].checked,\r\n type: varsProperties[key].type,\r\n unit: verifyUnitMed(key),\r\n maxY: 35,\r\n minY: 0,\r\n });\r\n }\r\n\r\n i++;\r\n }\r\n\r\n verifyTsucTliqIndexes(chartVars, tsucIndex, tliqIndex);\r\n\r\n state.chartData.vars = chartVars;\r\n }\r\n\r\n function checkKeyInsertVars(key: string) {\r\n return graphEnable[key] && state.optionsParameters.some((opt) => opt.value === key);\r\n }\r\n\r\n function checkAxisId(key: string) {\r\n return (key === 'Psuc' || key === 'Pliq' ? 'press' : 'temp');\r\n }\r\n\r\n function updateIndexes(\r\n key: string,\r\n index: number,\r\n tsucIndex: number | null,\r\n tliqIndex: number | null,\r\n ): { tsucIndex: number | null; tliqIndex: number | null } {\r\n if (key === 'Tliq') {\r\n tliqIndex = index;\r\n }\r\n if (key === 'Tsuc') {\r\n tsucIndex = index;\r\n }\r\n return { tsucIndex, tliqIndex };\r\n }\r\n\r\n function verifyTsucTliqIndexes(chartVars: typeof chartData.vars, tsucIndex: number|null, tliqIndex: number|null) {\r\n // Altera os índices de Tsuc e Tliq\r\n if (chartVars && tsucIndex !== null && tliqIndex !== null) {\r\n const temp = chartVars[tsucIndex];\r\n chartVars[tsucIndex] = chartVars[tliqIndex];\r\n chartVars[tliqIndex] = temp;\r\n }\r\n }\r\n\r\n function verifyUnitMed(itemName: string) {\r\n switch (itemName) {\r\n case 'Pliq':\r\n case 'Psuc':\r\n return isUsePsei;\r\n case 'Tamb':\r\n case 'Tsuc':\r\n case 'Tliq':\r\n case 'Tsc':\r\n case 'Tsh':\r\n case 'deltaT':\r\n return '°C';\r\n case 'Icomp':\r\n case 'Curr':\r\n return 'A';\r\n case 'Vinsuf':\r\n return 'm/s';\r\n default:\r\n return '';\r\n }\r\n }\r\n\r\n function csvValueFormatter(value: any, id: string) {\r\n if (state.chartData.vars && state.axisInfo.L1start !== null && value !== null && value !== undefined) {\r\n let label = value.toString();\r\n if (id === 'Levp' || id === 'Lcut' || id === 'Lcmp') {\r\n const findValue = state.alteredValues.find((x) => x.roundedValue === value);\r\n const valAux = findValue?.originalValue ?? value;\r\n if (valAux < (state.axisInfo.L1start - 5)) {\r\n label = ((valAux % 5) > -2.5) ? 'LIBERADO' : 'BLOQUEADO';\r\n } else if (valAux < state.axisInfo.L1start) {\r\n label = ((valAux % 5) > -2.5) ? 'LIGADO' : 'DESLIGADO';\r\n }\r\n }\r\n const numberValue = parseFloat(label);\r\n if (!Number.isNaN(numberValue)) {\r\n return formatNumberWithFractionDigits(numberValue);\r\n }\r\n return `${label}`;\r\n }\r\n return '-';\r\n }\r\n\r\n function handleChangePeriod(period: string) {\r\n state.periodSelected = period;\r\n if (period === t('dia')) {\r\n state.dateEnd = state.dateStart;\r\n }\r\n render();\r\n }\r\n\r\n function tickXLabelFormaterDay(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(state.dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n\r\n const dateFinal = `${dd}/${mm}`;\r\n return `${dateFinal}`;\r\n }\r\n\r\n function tickXLabelFormaterHour(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const sign = hour - 24 * numDays < 0 ? '-' : '';\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const mm = Math.floor((Math.abs(hour) * 60) % 60);\r\n return `${'\\n'} ${sign}${String(hh).padStart(2, '0')}:${String(mm).padStart(2, '0')}`;\r\n }\r\n\r\n function CsvLabelFromaterData(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(state.dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n const dateFinal = `${dd}/${mm}`;\r\n\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n const ss = Math.floor((Math.abs(hour) * 60 * 60) % 60);\r\n\r\n return `${dateFinal} ${String(hh).padStart(2, '0')}:${String(min).padStart(2, '0')}:${String(ss).padStart(2, '0')}`;\r\n }\r\n\r\n const renderQuarterTickHour = (tickProps: any) => {\r\n const { x, y, payload } = tickProps;\r\n const { value, offset } = payload;\r\n const date = new Date(value);\r\n const month = date.getMonth();\r\n const quarterNo = Math.floor(month / 3) + 1;\r\n\r\n return {`${tickXLabelFormaterHour(value)}`};\r\n };\r\n\r\n const getCsvData = async () => {\r\n state.isLoading = true; render();\r\n const formattedCSV = [] as any;\r\n CSVheader = [];\r\n\r\n try {\r\n CSVheader.push({\r\n label: t('dataHora'),\r\n key: 'data',\r\n });\r\n\r\n if (state.chartData.vars && state.chartData.vars.length > 0) {\r\n for (const object of state.chartData.vars) {\r\n if (graphEnable[object.id]) {\r\n CSVheader.push({\r\n label: object.name,\r\n key: object.id,\r\n });\r\n }\r\n }\r\n\r\n CSVheader.push({\r\n label: t('numeroPartidas'),\r\n key: 'numDeparts',\r\n });\r\n\r\n let totalNumDeparts = 0;\r\n let indexNumDeparts = 0;\r\n for (let i = 0; i < state.chartData.x.length; i++) {\r\n if (state.chartData.vars) {\r\n let valueNumDeparts = 0;\r\n let insertNumDeparts = false;\r\n\r\n if (i > 0 && i < state.chartData.x.length - 1) {\r\n if (state.chartData.x[i] % 24 > state.chartData.x[i + 1] % 24) {\r\n valueNumDeparts = state.numDeparts[indexNumDeparts];\r\n insertNumDeparts = true;\r\n totalNumDeparts += valueNumDeparts;\r\n indexNumDeparts++;\r\n }\r\n }\r\n else if (i === state.chartData.x.length - 1) {\r\n valueNumDeparts = state.numDeparts[indexNumDeparts];\r\n insertNumDeparts = state.numDays > 1;\r\n totalNumDeparts += valueNumDeparts;\r\n indexNumDeparts++;\r\n }\r\n\r\n formattedCSV.push({\r\n data: `${CsvLabelFromaterData(state.chartData.x[i])}`,\r\n Tamb: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Tamb')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Tamb')[0].y[i], 'Tamb') : '-'),\r\n Tsuc: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Tsuc')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Tsuc')[0].y[i], 'Tsuc') : '-'),\r\n Tliq: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Tliq')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Tliq')[0].y[i], 'Tliq') : '-'),\r\n Psuc: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Psuc')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Psuc')[0].y[i], 'Psuc') : '-'),\r\n Pliq: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Pliq')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Pliq')[0].y[i], 'Pliq') : '-'),\r\n Curr: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Curr')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Curr')[0].y[i], 'Curr') : '-'),\r\n Tsc: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Tsc')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Tsc')[0].y[i], 'Tsc') : '-'),\r\n Tsh: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Tsh')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Tsh')[0].y[i], 'Tsh') : '-'),\r\n Lcmp: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Lcmp')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Lcmp')[0].y[i], 'Lcmp') : '-'),\r\n Levp: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Levp')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Levp')[0].y[i], 'Levp') : '-'),\r\n Lcut: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Lcut')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Lcut')[0].y[i], 'Lcut') : '-'),\r\n L1raw: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'L1raw')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'L1raw')[0].y[i], 'L1raw') : '-'),\r\n L1fancoil: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'L1fancoil')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'L1fancoil')[0].y[i], 'L1fancoil') : '-'),\r\n // FEATURE DISPONIVEL APENAS PARA OS CLIENTES: BANCO DO BRASIL e DIEL ENERGIA\r\n ...(((state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && (state.devInfo.dac.AST_ROLE === 1 || state.devInfo.dac.AST_ROLE === 2)) && { Icomp: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Icomp')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Icomp')[0].y[i], 'Icomp') : '-') }),\r\n ...(((state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && ((state.devInfo.dac.AST_ROLE === 1 || state.devInfo.dac.AST_ROLE === 2) && (state.devInfo.dac.EVAPORATOR_MODEL_ID || state.devInfo.dac.INSUFFLATION_SPEED))) && { Vinsuf: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Vinsuf')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Vinsuf')[0].y[i], 'Vinsuf') : '-') }),\r\n numDeparts: !insertNumDeparts ? null : valueNumDeparts,\r\n });\r\n }\r\n }\r\n\r\n const penultimo = CSVheader[CSVheader.length - 2].key;\r\n\r\n formattedCSV.push({\r\n data: null,\r\n Tamb: null,\r\n Tsuc: null,\r\n Tliq: null,\r\n Psuc: null,\r\n Pliq: null,\r\n Curr: null,\r\n Tsc: null,\r\n Tsh: null,\r\n Lcmp: null,\r\n Levp: null,\r\n Lcut: null,\r\n L1raw: null,\r\n L1fancoil: null,\r\n // FEATURE DISPONIVEL APENAS PARA OS CLIENTES: BANCO DO BRASIL e DIEL ENERGIA\r\n ...(((state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && (state.devInfo.dac.AST_ROLE === 1 || state.devInfo.dac.AST_ROLE === 2)) && { Icomp: null }),\r\n ...(((state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && ((state.devInfo.dac.AST_ROLE === 1 || state.devInfo.dac.AST_ROLE === 2) && (state.devInfo.dac.EVAPORATOR_MODEL_ID || state.devInfo.dac.INSUFFLATION_SPEED))) && { Vinsuf: null }),\r\n numDeparts: totalNumDeparts,\r\n });\r\n\r\n formattedCSV[formattedCSV.length - 1][penultimo] = t('totalPartidasPeriodo');\r\n\r\n state.csvData = formattedCSV;\r\n render();\r\n setTimeout(() => {\r\n (csvLinkEl as any).current.link.click();\r\n }, 1000);\r\n\r\n state.isLoading = false; render();\r\n }\r\n else {\r\n toast.info(t('semDadosGraficoExportar')); state.isLoading = false;\r\n }\r\n } catch (err) { console.log(err); toast.error(t('erro')); state.isLoading = false; }\r\n };\r\n\r\n function verifyIsOutsideRange(date: moment.Moment) {\r\n const startDate = moment(state.dateStart, 'YYYY-MM-DD').startOf('day');\r\n const maxEndDate = startDate.isValid() ? startDate.clone().add(14, 'day').endOf('day') : null;\r\n\r\n const isAfterMaxEndDate = maxEndDate ? date.isAfter(maxEndDate) : false;\r\n\r\n return isAfterMaxEndDate || !date.isBefore(state.tomorrow);\r\n }\r\n\r\n const temperatureLabel = (() => {\r\n if (state.devInfo.dac && state.devInfo.dac.DAC_APPL === 'trocador-de-calor') {\r\n return t('deRetornoAgua');\r\n }\r\n if (hwCfg.isFanCoil) {\r\n return t('deEntradaAgua');\r\n }\r\n return t('deSuccao');\r\n })();\r\n\r\n const typeLoading = () => (state.isLoading ? 'disabled' : 'primary');\r\n\r\n const returnNoGraph = (() => {\r\n if (!state.dateStart || !state.dateEnd) {\r\n return ;\r\n }\r\n return null;\r\n })();\r\n\r\n const isFanCoilOrHeatExchanger = (() => {\r\n if (state.devInfo.dac.DAC_APPL === 'fancoil' || hwCfg.isFanCoil || state.devInfo.dac!.DAC_APPL === 'trocador-de-calor') {\r\n return true;\r\n }\r\n return false;\r\n })();\r\n\r\n const verifyClientsFeature = (() => {\r\n if ((state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && (state.devInfo.dac.AST_ROLE === 1 || state.devInfo.dac.AST_ROLE === 2)) {\r\n return true;\r\n }\r\n return false;\r\n })();\r\n\r\n const verifyEvaporatorAndInsufflation = (() => {\r\n if ((state.devInfo.dac.EVAPORATOR_MODEL_ID || state.devInfo.dac.INSUFFLATION_SPEED))\r\n {\r\n return true;\r\n }\r\n return false;\r\n })();\r\n\r\n const isUsePsei = (() => {\r\n if (state.usePsi) {\r\n return 'PSI';\r\n }\r\n return 'Bar';\r\n })();\r\n\r\n function labelTempSelf() {\r\n if (state.devInfo.dac.DAC_TYPE === 'self') {\r\n return t('deRetorno');\r\n }\r\n return t('externa');\r\n }\r\n\r\n function handleSelection(label: string) {\r\n if (label === t('hoje') || label === t('ontem')) {\r\n state.periodSelected = t('dia');\r\n } else {\r\n state.periodSelected = t('flexivel');\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onDateChange(date: moment.Moment, dateEnd: moment.Moment, isQuickSelection?: boolean) {\r\n const dateEndAux = !isQuickSelection && date?.format('YYYY-MM-DD') !== state.dateStart?.format('YYYY-MM-DD') ? null : dateEnd;\r\n\r\n setState({\r\n dateStart: date,\r\n dateEnd: dateEndAux,\r\n });\r\n }\r\n\r\n function handleDateChangeDirection(change: number) {\r\n const dateInit = moment(state.dateStart);\r\n const dateEnd = moment(state.dateEnd);\r\n\r\n if (state.periodSelected === t('dia')) {\r\n const formattedDate = dateInit.add(change, 'days');\r\n setState({\r\n dateStart: formattedDate,\r\n dateEnd: formattedDate,\r\n });\r\n } else {\r\n const differenceInDays = dateEnd.diff(dateInit, 'days');\r\n const formattedDateInit = dateInit.add(change * differenceInDays, 'days');\r\n const formattedDateEnd = dateEnd.add(change * differenceInDays, 'days');\r\n setState({\r\n dateStart: formattedDateInit,\r\n dateEnd: formattedDateEnd,\r\n });\r\n }\r\n\r\n getDisabledButton();\r\n }\r\n\r\n function getDisabledButton() {\r\n const endDate = moment(state.dateEnd);\r\n const currentDate = moment();\r\n const currentDay = currentDate.day();\r\n\r\n if (state.periodSelected === t('dia') && endDate.day() === currentDay) {\r\n setState({ arrowDisabled: true });\r\n } else {\r\n const differenceInDays = endDate.diff(moment(state.dateStart), 'days');\r\n const newEndDate = endDate.add(differenceInDays, 'days');\r\n\r\n setState({ arrowDisabled: currentDate.startOf('day').isBefore(newEndDate.startOf('day')) });\r\n }\r\n }\r\n\r\n function veirifyLeftArrowDisabled() {\r\n return state.isLoading || (!state.dateStart || !state.dateEnd);\r\n }\r\n\r\n function verifyRightArrowDisabled() {\r\n return state.arrowDisabled || (!state.dateStart || !state.dateEnd);\r\n }\r\n\r\n function selectedParameter(item) {\r\n state.optionsParameters[item.index].checked = !state.optionsParameters[item.index].checked;\r\n const parameter = item.value;\r\n\r\n if (graphEnable.hasOwnProperty(parameter)) {\r\n graphEnable[parameter] = !graphEnable[parameter];\r\n insertVars(varsFix);\r\n }\r\n\r\n state.selectedParameters = state.optionsParameters.filter((item) => item.checked);\r\n\r\n render();\r\n }\r\n\r\n function createOptionParameter(value: string, name: string, index: number) {\r\n const color = getColorBasedOnConditions(value);\r\n return {\r\n value,\r\n name,\r\n color,\r\n checked: true,\r\n index,\r\n };\r\n }\r\n\r\n function initializeOptionParameters() {\r\n render();\r\n const valueIndex = { index: 0 };\r\n const options = [\r\n createOptionParameter('Tamb', `${t('temperatura')} ${labelTempSelf()} [°C]`, valueIndex.index++),\r\n createOptionParameter(isFanCoilOrHeatExchanger ? 'Tliq' : 'Tsuc', `${t('temperatura')} ${temperatureLabel} [°C]`, valueIndex.index++),\r\n createOptionParameter(isFanCoilOrHeatExchanger ? 'Tsuc' : 'Tliq', `${t('temperatura')} ${isFanCoilOrHeatExchanger ? t('deSaidaAgua') : t('deLiquido')} [°C]`, valueIndex.index++),\r\n ...addFanCoilAndHeatExchangerOptions(valueIndex),\r\n ...addPsucPliqTscTshCurrOptions(valueIndex),\r\n ...addAutomationOptions(valueIndex),\r\n ...addHeatExchangerOptions(valueIndex),\r\n ...addClientFeatureOptions(valueIndex),\r\n ];\r\n\r\n return options;\r\n }\r\n\r\n function addFanCoilAndHeatExchangerOptions(valueIndex: { index: number }) {\r\n const options = [] as { value: string, name: string, color: string, checked: boolean, index: number }[];\r\n if (isFanCoilOrHeatExchanger) {\r\n options.push(createOptionParameter('deltaT', 'ΔT [°C]', valueIndex.index++));\r\n }\r\n return options;\r\n }\r\n\r\n function addPsucPliqTscTshCurrOptions(valueIndex: { index: number }) {\r\n const options = [] as { value: string, name: string, color: string, checked: boolean, index: number }[];\r\n if (hwCfg.hasPsuc) {\r\n options.push(createOptionParameter('Psuc', `${t('pressaoSuccao')} [${isUsePsei}]`, valueIndex.index++));\r\n }\r\n\r\n if (hwCfg.hasPliq) {\r\n options.push(createOptionParameter('Pliq', `${t('pressaoLiquido')} [${isUsePsei}]`, valueIndex.index++));\r\n }\r\n\r\n if (hwCfg.hasTsc) {\r\n options.push(createOptionParameter('Tsc', `${t('subresfriamento')} ΔT°C`, valueIndex.index++));\r\n }\r\n\r\n if (hwCfg.hasTsh) {\r\n options.push(createOptionParameter('Tsh', `${t('superaquecimento')} ΔT°C`, valueIndex.index++));\r\n }\r\n\r\n if (hwCfg.hasCurr) {\r\n options.push(createOptionParameter('Curr', `${t('corrente')} [A]`, valueIndex.index++));\r\n }\r\n\r\n return options;\r\n }\r\n\r\n function addAutomationOptions(valueIndex: { index: number }) {\r\n const options = [] as { value: string, name: string, color: string, checked: boolean, index: number }[];\r\n if (!hwCfg.hasAutomation && (!hwCfg.isFanCoil || !profile.manageAllClients)) {\r\n options.push(createOptionParameter('Lcmp', `${t('sinalComando')}`, valueIndex.index++));\r\n }\r\n\r\n if ((hwCfg.hasAutomation) && (!hwCfg.isFanCoil || !profile.manageAllClients)) {\r\n options.push(createOptionParameter('Levp', `${t('sinalComando')}`, valueIndex.index++));\r\n }\r\n\r\n if (hwCfg.isFanCoil && profile.manageAllClients) {\r\n options.push(createOptionParameter('L1raw', `${t('sinalComandoReal')}`, valueIndex.index++));\r\n options.push(createOptionParameter('L1fancoil', `${t('sinalComandoSimulado')}`, valueIndex.index++));\r\n }\r\n\r\n if (hwCfg.hasAutomation) {\r\n options.push(createOptionParameter('Lcut', `${t('bloqueioComando')}`, valueIndex.index++));\r\n }\r\n\r\n return options;\r\n }\r\n\r\n function addHeatExchangerOptions(valueIndex: { index: number }) {\r\n const options = [] as { value: string, name: string, color: string, checked: boolean, index: number }[];\r\n if (state.devInfo?.dac?.DAC_APPL === 'trocador-de-calor' && state.devInfo?.dac?.HEAT_EXCHANGER_ID) {\r\n options.push(createOptionParameter('t_lim', `${t('limitesTemperaturaSaidaAgua')}`, valueIndex.index++));\r\n options.push(createOptionParameter('deltaT_lim', `${t('limitesTemperaturaT')}`, valueIndex.index++));\r\n }\r\n return options;\r\n }\r\n\r\n function addClientFeatureOptions(valueIndex: { index: number }) {\r\n const options = [] as { value: string, name: string, color: string, checked: boolean, index: number }[];\r\n if (verifyClientsFeature && !hwCfg.hasCurr) {\r\n options.push(createOptionParameter('Icomp', `${t('correnteDoCompressor')} [A]`, valueIndex.index++));\r\n }\r\n\r\n if (verifyClientsFeature && verifyEvaporatorAndInsufflation) {\r\n options.push(createOptionParameter('Vinsuf', `${t('velocidadeDeInsuflamento')} [m/s]`, valueIndex.index++));\r\n }\r\n\r\n return options;\r\n }\r\n\r\n function getColorBasedOnConditions(key: string): string {\r\n const { dac } = state.devInfo;\r\n const { colorHeat, colorFanCoil, colorDefault } = varsProperties[key];\r\n\r\n if (dac?.DAC_APPL === 'trocador-de-calor' && colorHeat) {\r\n return colorHeat;\r\n }\r\n\r\n if (hwCfg.isFanCoil && colorFanCoil) {\r\n return colorFanCoil;\r\n }\r\n\r\n return colorDefault;\r\n }\r\n\r\n function setColor(e, index) {\r\n const selectedColor = e.target.value;\r\n const darkenedColor = darkenColor(selectedColor, 40);\r\n state.optionsParameters[index].color = darkenedColor;\r\n }\r\n\r\n const handleColorInputClick = (event) => {\r\n event.stopPropagation();\r\n };\r\n\r\n const handleBlur = () => {\r\n insertVars(varsFix);\r\n render();\r\n };\r\n\r\n const renderOption = (option) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n option.name\r\n }\r\n \r\n \r\n setColor(e, option.index)} onClick={handleColorInputClick} />\r\n \r\n \r\n );\r\n\r\n function clearCheckbox() {\r\n if (state.isLoading) return;\r\n\r\n state.optionsParameters.forEach((option) => {\r\n option.checked = false;\r\n });\r\n\r\n state.graphEnable = {\r\n Tamb: false,\r\n Tsuc: false,\r\n Tliq: false,\r\n deltaT: false,\r\n Psuc: false,\r\n Pliq: false,\r\n Curr: false,\r\n Tsc: false,\r\n Tsh: false,\r\n Lcmp: false,\r\n Levp: false,\r\n Lcut: false,\r\n Icomp: false,\r\n L1raw: false,\r\n L1fancoil: false,\r\n t_lim: false,\r\n deltaT_lim: false,\r\n Vinsuf: false,\r\n SavedData: true,\r\n };\r\n\r\n state.selectedParameters = [];\r\n\r\n render();\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {\r\n handleChangePeriod(period);\r\n }}\r\n value={state.periodSelected}\r\n placeholder={t('periodo')}\r\n hideSelected\r\n small\r\n // @ts-ignore\r\n disabled={state.isLoading}\r\n removeScroll\r\n />\r\n {\r\n onDateChange(startDate, endDate, true);\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n handleDateChangeDirection(-1)}>\r\n \r\n \r\n \r\n {t('data')}\r\n {state.periodSelected === t('dia') && (\r\n { setState({ dateStart: data, dateEnd: data }); getDisabledButton(); }}\r\n focused={state.focused}\r\n onFocusChange={({ focused }) => {\r\n state.focused = focused;\r\n render();\r\n }}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n displayFormat=\"DD/MM/YYYY\"\r\n isOutsideRange={(d) => !d.isBefore(state.tomorrow)}\r\n placeholder={t('selecioneUmaData')}\r\n />\r\n )}\r\n {state.periodSelected === t('flexivel') && (\r\n {\r\n onDateChange(startDate, endDate);\r\n getDisabledButton();\r\n }}\r\n onFocusChange={(focused) => {\r\n state.focusedInput = focused;\r\n render();\r\n }}\r\n focusedInput={state.focusedInput}\r\n noBorder\r\n isOutsideRange={verifyIsOutsideRange}\r\n startDatePlaceholderText={t('dataInicial')}\r\n endDatePlaceholderText={t('dataFinal')}\r\n />\r\n )}\r\n\r\n \r\n handleDateChangeDirection(1)}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n {t('botaoExportar')}\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n {returnNoGraph}\r\n {\r\n (state.dateStart && state.dateEnd) && (\r\n \r\n \r\n \r\n
\r\n \r\n \r\n { selectedParameter(value); }}\r\n customElements={renderOption}\r\n disabled={state.isLoading}\r\n styleBox={{ border: 'none', width: '100%' }}\r\n haveCountSelect={false}\r\n />\r\n \r\n \r\n \r\n clearCheckbox()}>\r\n {t('limpar')}\r\n \r\n
\r\n
\r\n {\r\n profile.manageAllClients && (\r\n \r\n {t('analiseAvancada')}\r\n \r\n {t('nao')}\r\n { state.advancedAnalysis = !state.advancedAnalysis; render(); }}\r\n style={{ marginLeft: '10px', marginRight: '10px' }}\r\n />\r\n {t('sim')}\r\n \r\n \r\n )\r\n }\r\n \r\n \r\n {state.isLoading && (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n { profile.manageAllClients && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n \r\n )\r\n }\r\n \r\n );\r\n}\r\n\r\nfunction FaultsChart({\r\n faultsChart, advancedAnalysis, xTicks, tickXLabelFormaterDay, tickXLabelFormaterHour, renderQuarterTickHour, numDays, xDomain,\r\n}) {\r\n return (\r\n <>\r\n {(advancedAnalysis)\r\n && (\r\n \r\n \r\n
\r\n \r\n \r\n {\r\n const { active, payload } = props;\r\n\r\n if (active && payload && payload.length === 2) {\r\n return (\r\n \r\n {`${payload[0].payload.time.local().format('DD/MM - HH:mm:SS')} - ${payload[1].payload.desc}`}\r\n
\r\n );\r\n }\r\n return null;\r\n }}\r\n isAnimationActive={false}\r\n />\r\n \r\n 1 ? tickXLabelFormaterDay : tickXLabelFormaterHour}\r\n domain={xDomain}\r\n />\r\n {numDays && numDays > 1 ? () : null}\r\n \r\n {faultsChart.lines.map((line) => (\r\n (\r\n \r\n )}\r\n data={line.data}\r\n fill={line.color}\r\n isAnimationActive={false}\r\n />\r\n ))}\r\n \r\n \r\n
\r\n \r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const DateLabel = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const BtnExportReduced = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n margin-left: 10px;\r\n border-radius: 12px;\r\n height: 1px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n :hover {\r\n color: ${colors.White};\r\n background-color: #363BC4;\r\n }\r\n`;\r\n\r\nexport const ExportWorksheet = styled(ExportWorksheetIcon)(\r\n () => `\r\n padding-left: 10px;\r\n color: #363BC4;\r\n`,\r\n);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const WrapperDesktop = styled.div`\r\ndisplay: none;\r\n@media (min-width: 768px) {\r\n display: block;\r\n}\r\n`;\r\n\r\nexport const WrapperMobile = styled.div`\r\ndisplay: block;\r\n@media (min-width: 768px) {\r\n display: none;\r\n}\r\n`;\r\n\r\nexport const HealthWrapper = styled.div(\r\n ({ color }) => `\r\ndisplay: flex;\r\nspan {\r\n margin-left: 6px;\r\n color ${color};\r\n font-weight: bold;\r\n font-size: 0.875em;\r\n line-height: 18px;\r\n text-align: center;\r\n white-space: nowrap;\r\n}\r\n`,\r\n);\r\n\r\nexport const StyledLink = styled(Link)`\r\ncolor: ${colors.Grey400};\r\nword-break: normal;\r\n`;\r\n\r\nexport const StyledSpan = styled.span`\r\ncolor: ${colors.Grey400};\r\nword-break: normal;\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\nmin-height: 48px;\r\nmargin: 0;\r\nfont-size: 12px;\r\nmargin-left: 16px;\r\nmargin-bottom: 5px;\r\ncolor: #000;\r\nwidth: 100%;\r\nborder: 1px solid #E9E9E9;\r\nborder-radius: 5px;\r\nbox-sizing: border-box !important;\r\ndisplay: inline-flex;\r\nalign-items: center;\r\n`;\r\n\r\nexport const Label = styled.label`\r\nposition: relative;\r\ndisplay: inline-block;\r\nwidth: 100%;\r\nmargin-top: 6px;\r\nmargin-left: 16px;\r\nmargin-right: 16px;\r\ncolor: #202370;\r\nfont-size: 11px;\r\nfont-weight: bold;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n margin-left: 10px;\r\n text-decoration: underline;\r\n font-size: 11px;\r\n`;\r\n\r\nexport const BtnInput = styled.button`\r\ndisplay: flex;\r\nalign-items: center;\r\njustify-content: center;\r\nbackground-color: white;\r\nwidth: 32px;\r\nheight: 30px;\r\nmargin-right: 10px;\r\n\r\nborder: 1px solid rgba(0, 0, 0, 0.15);\r\ncursor: pointer;\r\nborder-radius: 5px;\r\nbox-shadow: 0 0.3em 0.3em rgba(0, 0, 0, 0.09);\r\ntransition: all 0.5s ease-in;\r\n&:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n cursor: pointer;\r\n }\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { Flex } from 'reflexbox';\r\nimport {\r\n Button,\r\n} from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { DateLabel, StyledCalendarIcon } from './DACs/DACHistoric';\r\n\r\nimport {\r\n SearchInput,\r\n Label,\r\n} from './DACs/Machines/styles';\r\nimport { ContentDate, DielTool } from './styles';\r\nimport { SingleDatePicker } from 'react-dates';\r\nimport moment from 'moment';\r\n\r\nexport interface FilterItem {\r\n label: string,\r\n placeholder: string\r\n options: { value: string, name: string, icon?: JSX.Element }[],\r\n type?: string,\r\n value: string | string[],\r\n onChange: (e?) => void,\r\n index: number,\r\n uniqueSelect?: boolean,\r\n dateMoment?: moment.Moment | null,\r\n}\r\n\r\nexport const AnalysisFilters = (props: { filters: FilterItem[], isLoading: boolean, onApply: () => void, dielTool?: boolean }): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n filters: [] as FilterItem[],\r\n isLoading: true as boolean,\r\n focused: {} as {\r\n id: string,\r\n focused: boolean,\r\n },\r\n dateValuePicker: {} as {\r\n startDate: moment.Moment | null,\r\n endDate: moment.Moment | null,\r\n },\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n };\r\n return state;\r\n });\r\n\r\n const getSelectedDate = (opt, state) => {\r\n if (opt.label === t('inicioOperacao') && state.dateValuePicker.startDate) {\r\n return state.dateValuePicker.startDate;\r\n // eslint-disable-next-line no-else-return\r\n } else if (opt.label === t('fimOperacao') && state.dateValuePicker.endDate) {\r\n return state.dateValuePicker.endDate;\r\n } else if (moment(opt.value).isValid()) {\r\n return moment(opt.value);\r\n }\r\n return null;\r\n };\r\n\r\n const setOnChange = (opt, data) => {\r\n if (opt.label === t('inicioOperacao')) {\r\n state.dateValuePicker.startDate = data;\r\n } else {\r\n state.dateValuePicker.endDate = data;\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n const sortedFilters = props.filters.sort((a, b) => a.index - b.index);\r\n setState({ filters: sortedFilters, isLoading: props.isLoading });\r\n render();\r\n }, [props]);\r\n\r\n function renderOption(props, option, snapshot, className) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return (\r\n <>\r\n \r\n
\r\n {state.filters.map((opt) => (\r\n opt.type !== 'date'\r\n ? (\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n )\r\n : (\r\n <>\r\n \r\n {opt.label}\r\n
\r\n {\r\n setOnChange(opt, data);\r\n opt.onChange(data);\r\n render();\r\n }}\r\n focused={state.focused.id === opt.label ? state.focused.focused : false}\r\n onFocusChange={({ focused }) => {\r\n setState({ focused: { id: opt.label, focused } });\r\n render();\r\n }}\r\n numberOfMonths={1}\r\n displayFormat=\"DD/MM/YYYY\"\r\n isOutsideRange={(d) => {\r\n if (opt.label === t('fimOperacao') && state.dateValuePicker.startDate) {\r\n return d.isBefore(state.dateValuePicker.startDate);\r\n }\r\n return d.isAfter(state.dateValuePicker.endDate);\r\n }}\r\n placeholder={opt.placeholder}\r\n />\r\n \r\n \r\n \r\n )\r\n ))}\r\n
\r\n \r\n { !props.dielTool && state.filters.length > 0 && (\r\n \r\n {t('botaoFiltrar')}\r\n \r\n )}\r\n \r\n
\r\n \r\n );\r\n};\r\n","import { useEffect, useRef } from 'react';\r\nimport { CSVLink } from 'react-csv';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Button,\r\n Loader,\r\n Input,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\nimport { AnalysisFilters, FilterItem } from '~/pages/Analysis/AnalysisFilters';\r\nimport moment from 'moment';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport function MachineConsumption(): JSX.Element {\r\n const machinesCsvLinkEl = useRef();\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n CSVheader: [{\r\n label: t('cliente'),\r\n key: 'clientName',\r\n },\r\n {\r\n label: t('unidade'),\r\n key: 'unitName',\r\n },\r\n {\r\n label: t('maquinas'),\r\n key: 'name',\r\n },\r\n {\r\n label: 'DAC',\r\n key: 'id',\r\n },\r\n {\r\n label: 'TR',\r\n key: 'pot',\r\n },\r\n {\r\n label: t('data'),\r\n key: 'data',\r\n },\r\n {\r\n label: t('consumoKwh'),\r\n key: 'consumo',\r\n },\r\n {\r\n label: `${t('tempoDeUso')} - 0,0h/${t('dia')}`,\r\n key: 'usage',\r\n },\r\n ] as {}[],\r\n groupedMachines: [] as {\r\n clientName: string,\r\n unitName: string,\r\n id: number,\r\n name: string,\r\n dacs: {\r\n id: string,\r\n name: string,\r\n groupId: number,\r\n groupName: string,\r\n pot: number,\r\n health: number,\r\n kw: number,\r\n status: string,\r\n cons: object,\r\n sumCons: number,\r\n extTemp: object,\r\n extTempMax: object,\r\n extTempMin: object,\r\n coloredCons: null,\r\n }[],\r\n pot: number,\r\n consH: number,\r\n consKWH: number,\r\n rangeCons: string,\r\n }[],\r\n endDate: moment().subtract(1, 'days'),\r\n dateList: getDatesList(moment().startOf('month'), new Date(moment().startOf('month').year(), moment().startOf('month').month() + 1, 0).getDate()),\r\n isLoading: false,\r\n dayStart: new Date(Date.now() - 3 * (60 * 60 * 1000) - 60 * (24 * 60 * 60 * 1000)).toISOString().substring(0, 10),\r\n dayEnd: new Date(Date.now() - 3 * (60 * 60 * 1000) - 60 * (24 * 60 * 60 * 1000)).toISOString().substring(0, 10),\r\n clients: [] as { value: string, name: string }[],\r\n selectedClient: [] as string[],\r\n units: [] as { value: string, name: string }[],\r\n selectedUnits: [] as string[],\r\n filters: [] as FilterItem[],\r\n dacList: [] as {\r\n clientName: string,\r\n unitName: string,\r\n id: string,\r\n name: string,\r\n groupId: number,\r\n groupName: string,\r\n pot: number | undefined,\r\n health: number,\r\n kw: number | undefined,\r\n status: string,\r\n cons: any,\r\n sumCons: any,\r\n extTemp: any,\r\n extTempMax: any,\r\n extTempMin: any,\r\n coloredCons: any,\r\n }[],\r\n machinesCsvData: [] as {}[],\r\n async fetchServerData() {\r\n try {\r\n setState({ isLoading: true });\r\n const test = await apiCall('/clients/get-clients-list', {});\r\n state.clients = test.list.map((client) => ({\r\n value: client.CLIENT_ID.toString(),\r\n name: client.NAME,\r\n }));\r\n\r\n const { list } = await apiCall('/get-units-list-page', {\r\n clientIds: state.selectedClient.length ? state.selectedClient.map((x) => Number(x)) : undefined,\r\n });\r\n state.units = list.map((unit) => ({\r\n value: unit.UNIT_ID.toString(),\r\n name: unit.UNIT_NAME,\r\n }));\r\n setState({ isLoading: false });\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n setState({ isLoading: false });\r\n },\r\n });\r\n\r\n async function handleGetUnitInfo() {\r\n try {\r\n state.isLoading = true;\r\n const { list: dacsList } = await apiCall('/dac/get-dacs-list', {\r\n includeConsumption: true,\r\n unitIds: state.selectedUnits.map((unit) => Number(unit)),\r\n dateStart: state.dayStart,\r\n dateEnd: state.dayEnd,\r\n });\r\n\r\n state.dacList = dacsList.map((dac) => {\r\n const cons = {} as { [day: string]: number };\r\n const extTemp = {} as { [day: string]: number };\r\n const extTempMax = {} as { [day: string]: number };\r\n const extTempMin = {} as { [day: string]: number };\r\n\r\n for (const item of (dac.CONSUMPTION || [])) {\r\n if (item.DAY_HOURS_ON == null) continue;\r\n\r\n cons[item.DAT_REPORT] = item.DAY_HOURS_ON;\r\n extTemp[item.DAT_REPORT] = item.meanT;\r\n extTempMax[item.DAT_REPORT] = item.maxT;\r\n extTempMin[item.DAT_REPORT] = item.minT;\r\n\r\n const dayInfo = state.dateList.find((x) => x.YMD === item.DAT_REPORT);\r\n if (dayInfo) {\r\n dayInfo.totalAirCondCons = (dayInfo.totalAirCondCons || 0) + (item.DAY_HOURS_ON * (dac.DAC_KW || 0));\r\n }\r\n }\r\n\r\n let sumCons = 0;\r\n for (const item of Object.values(cons)) {\r\n sumCons = (sumCons || 0) + (item * (dac.DAC_KW || 0));\r\n }\r\n return {\r\n clientName: dac.CLIENT_NAME,\r\n unitName: dac.UNIT_NAME,\r\n id: dac.DAC_ID,\r\n name: dac.DAC_NAME,\r\n groupId: dac.GROUP_ID,\r\n groupName: dac.GROUP_NAME,\r\n pot: dac.DAC_KW,\r\n health: dac.H_INDEX,\r\n kw: dac.DAC_KW,\r\n status: dac.status,\r\n cons,\r\n sumCons,\r\n extTemp,\r\n extTempMax,\r\n extTempMin,\r\n coloredCons: null,\r\n };\r\n });\r\n render();\r\n\r\n const groupedMachines = {} as {\r\n clientName: string,\r\n unitName: string,\r\n id: string,\r\n name: string,\r\n groupId: string,\r\n groupName: string,\r\n pot: number\r\n health: number,\r\n kw: number,\r\n status: string,\r\n cons,\r\n sumCons,\r\n extTemp,\r\n extTempMax,\r\n extTempMin,\r\n coloredCons: null,\r\n };\r\n state.dacList.forEach((dac) => {\r\n if (!groupedMachines[dac.groupId]) {\r\n groupedMachines[dac.groupId] = {\r\n id: dac.groupId,\r\n name: dac.groupName,\r\n dacs: [],\r\n };\r\n }\r\n groupedMachines[dac.groupId].pot = (groupedMachines[dac.groupId].pot || 0) + dac.pot;\r\n groupedMachines[dac.groupId].consH = (groupedMachines[dac.groupId].consH || 0) + Object.values(dac.cons).reduce((a, b) => (a as number) + (b as number), 0);\r\n groupedMachines[dac.groupId].consKWH = dac.kw && (groupedMachines[dac.groupId].consKWH || 0) + (Object.values(dac.cons).reduce((a, b) => (a as number) + (b as number), 0) as number * dac.kw);\r\n groupedMachines[dac.groupId].dacs.push(dac);\r\n groupedMachines[dac.groupId].unitName = dac.unitName;\r\n groupedMachines[dac.groupId].clientName = dac.clientName;\r\n });\r\n state.groupedMachines = Object.values(groupedMachines);\r\n state.groupedMachines.sort((a, b) => b.consKWH - a.consKWH);\r\n setState({ isLoading: false });\r\n render();\r\n } catch (error) {\r\n console.log(error);\r\n toast.error(t('erroInformacaoUnidade'));\r\n }\r\n setState({ isLoading: false });\r\n render();\r\n }\r\n\r\n const getMachinesCsvData = async () => {\r\n setState({ isLoading: true });\r\n await handleGetUnitInfo();\r\n\r\n const formattedCSV = [] as {}[];\r\n try {\r\n render();\r\n if (state.groupedMachines && state.groupedMachines.length > 0) {\r\n for (const machine of state.groupedMachines) {\r\n for (let i = 0; i < machine.dacs.length; i++) {\r\n const usageData = Object.entries(machine.dacs[i].cons);\r\n usageData.forEach((entries) => {\r\n const data = {\r\n clientName: machine.clientName,\r\n unitName: machine.unitName,\r\n name: machine.name,\r\n id: machine.dacs[i].id,\r\n pot: machine.dacs[i].pot,\r\n data: moment(entries[0]).format('DD/MM/YYYY'),\r\n consumo: formatNumberWithFractionDigits((Number(entries[1]) * machine.dacs[i].kw).toFixed(2), { minimum: 0, maximum: 2 }),\r\n usage: formatNumberWithFractionDigits(Number(entries[1]).toFixed(2), { minimum: 0, maximum: 2 }),\r\n };\r\n formattedCSV.push(data);\r\n });\r\n }\r\n }\r\n\r\n setState({ ...state, machinesCsvData: formattedCSV });\r\n setTimeout(() => {\r\n (machinesCsvLinkEl as any).current.link.click();\r\n }, 1000);\r\n\r\n setState({ isLoading: false });\r\n render();\r\n }\r\n else {\r\n toast.info(t('erroExportarDadosGrafico')); setState({ isLoading: false });\r\n }\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); setState({ isLoading: false });\r\n }\r\n };\r\n\r\n function getDatesList(date: moment.Moment, numDays: number) {\r\n const dateList = [] as {\r\n mdate: moment.Moment,\r\n YMD: string,\r\n DMY: string,\r\n totalGreenAntCons: number,\r\n totalGreenAntInvoice: number,\r\n totalAirCondCons: number,\r\n savings_kWh: number,\r\n }[];\r\n\r\n for (let i = 0; i < numDays; i++) {\r\n const mdate = moment(date).add(i, 'days');\r\n dateList.push({\r\n mdate,\r\n DMY: mdate.format('DD/MM/YYYY'),\r\n YMD: mdate.format('YYYY-MM-DD'),\r\n totalGreenAntCons: 0,\r\n totalGreenAntInvoice: 0,\r\n totalAirCondCons: 0,\r\n savings_kWh: 0,\r\n });\r\n }\r\n\r\n return dateList;\r\n }\r\n\r\n state.filters = [\r\n {\r\n label: t('cliente'),\r\n placeholder: t('cliente'),\r\n options: state.clients,\r\n value: state.selectedClient,\r\n onChange: (value) => { state.selectedClient = value; state.fetchServerData(); render(); },\r\n index: 1,\r\n },\r\n {\r\n label: t('unidade'),\r\n placeholder: t('unidade'),\r\n options: state.units,\r\n value: state.selectedUnits,\r\n onChange: (value) => { state.selectedUnits = value; render(); },\r\n index: 2,\r\n },\r\n ];\r\n\r\n useEffect(() => {\r\n state.fetchServerData();\r\n }, []);\r\n\r\n return (\r\n <>\r\n { state.isLoading ? : (\r\n <>\r\n \r\n
\r\n {}}\r\n dielTool\r\n />\r\n
\r\n setState({ dayStart: e.target.value })}\r\n placeholder=\"YYYY-MM-DD\"\r\n label={t('dataInicial')}\r\n style={{ width: '130px' }}\r\n />\r\n
\r\n
\r\n setState({ dayEnd: e.target.value })}\r\n placeholder=\"YYYY-MM-DD\"\r\n label={t('dataFinal')}\r\n style={{ width: '130px' }}\r\n />\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n { state.selectedUnits = state.selectedUnits.length && state.selectedUnits.length > 0 ? [] : state.units.map((unit) => unit.value); render(); }}\r\n style={{\r\n paddingTop: '5px', marginLeft: '289px', textDecoration: 'underline', color: '#00008B', fontSize: '11px', cursor: 'pointer',\r\n }}\r\n >\r\n {t('selecionarTodas')}\r\n
\r\n \r\n )}\r\n \r\n );\r\n}\r\n","import { useEffect, useRef } from 'react';\r\nimport { CSVLink } from 'react-csv';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Button,\r\n Loader,\r\n Input,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport { AnalysisFilters, FilterItem } from '~/pages/Analysis/AnalysisFilters';\r\nimport moment from 'moment';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport function DeviceTelemetry(): JSX.Element {\r\n const deviceTelemetryCsvLinkEl = useRef();\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n CSVheader: [{\r\n label: t('cliente'),\r\n key: 'clientName',\r\n },\r\n {\r\n label: t('unidade'),\r\n key: 'unitName',\r\n },\r\n {\r\n label: t('maquina'),\r\n key: 'machine',\r\n },\r\n {\r\n label: t('idDispositivo'),\r\n key: 'id',\r\n },\r\n {\r\n label: t('dia'),\r\n key: 'date',\r\n },\r\n {\r\n label: t('hora'),\r\n key: 'hour',\r\n },\r\n {\r\n label: `DAC (${t('temperaturaAmbiente')})`,\r\n key: 'tamb_DAC',\r\n },\r\n {\r\n label: `DAC (${t('temperaturaLiquido')})`,\r\n key: 'tliq_DAC',\r\n },\r\n {\r\n label: `DAC (${t('temperaturaSuccao')})`,\r\n key: 'tsuc_DAC',\r\n },\r\n {\r\n label: `DAC (${t('pressaoLiquido')})`,\r\n key: 'pliq_DAC',\r\n },\r\n {\r\n label: `DAC (${t('pressaoSuccao')})`,\r\n key: 'psuc_DAC',\r\n },\r\n {\r\n label: `DAC (${t('sinalComando')})`,\r\n key: 'sinal_DAC',\r\n },\r\n {\r\n label: `DAC (${t('superaquecimento')})`,\r\n key: 'tsh_DAC',\r\n },\r\n {\r\n label: `DAC (${t('subresfriamento')})`,\r\n key: 'tsc_DAC',\r\n },\r\n {\r\n label: `DAC (${t('temperatura')})`,\r\n key: 'temp_DUT',\r\n },\r\n {\r\n label: 'DUT (Mode)',\r\n key: 'mode_DUT',\r\n },\r\n {\r\n label: 'DUT (State)',\r\n key: 'state_DUT',\r\n },\r\n {\r\n label: 'DUT (Prog)',\r\n key: 'prog_DUT',\r\n },\r\n {\r\n label: 'DAM (Mode)',\r\n key: 'mode_DAM',\r\n },\r\n {\r\n label: 'DAM (State)',\r\n key: 'state_DAM',\r\n },\r\n {\r\n label: 'DAM (Prog)',\r\n key: 'prog_DAM',\r\n },\r\n {\r\n label: `DRI - ${t('consumoAcumulado')}`,\r\n key: 'energy_DRI',\r\n },\r\n {\r\n label: `DRI - ${t('modoOperacao')}`,\r\n key: 'operationMode_DRI',\r\n },\r\n {\r\n label: 'DRI - Setpoint',\r\n key: 'setpoint_DRI',\r\n },\r\n {\r\n label: 'DRI - Status',\r\n key: 'status_DRI',\r\n },\r\n {\r\n label: `DRI - ${t('limiteMax')}`,\r\n key: 'limiteMax_DRI',\r\n },\r\n {\r\n label: `DRI - ${t('limiteMin')}`,\r\n key: 'limiteMin_DRI',\r\n },\r\n\r\n ] as {}[],\r\n groupedDevs: [] as {\r\n id: string,\r\n clientName?: string,\r\n unitName: string,\r\n machine?: string,\r\n selectedTime: number[],\r\n dacs?: {\r\n lcmp:number[], // Sinal de comando\r\n lcut:number[], // Bloqueio de comando\r\n levp:number[], // Sinal de comando\r\n tamb:number[], // Temperatura ambiente\r\n tliq:number[], // Temperatura de líquido\r\n tsuc:number[], // Temperatura de sucção\r\n pliq:number[], // Pressão de líquido\r\n psuc:number[], // Pressão de sucção\r\n tsh:number[], // Superaquecimento\r\n tsc:number[], // Subresfriamento\r\n },\r\n duts?: {\r\n State:any; // Estado\r\n Mode:any;// Modo\r\n prog:any; // Programação\r\n temp:number[]; // Temperatura\r\n labels_State:string[]; // Labels de Estado\r\n },\r\n dris?:{\r\n setpoint:number[], // SetPoint\r\n status:number[], // Status\r\n operationMode:number[], // Mode de Operação\r\n limiteMax:number, // Limite Max\r\n limiteMin:number, // Limite Min\r\n energy:number[], // Consumo Acumulado\r\n }\r\n dams?:{\r\n State:any; // Estado\r\n Mode:any;// Modo\r\n prog:any; // Programação\r\n labels_State:string[]; // Labels de Estado\r\n }\r\n }[],\r\n isLoading: false,\r\n date: new Date(Date.now() - 3 * 60 * 60 * 1000).toISOString().substr(0, 10),\r\n yesterday: new Date(Date.now() - 27 * 60 * 60 * 1000).toISOString().substr(0, 10),\r\n hourStart: `${new Date(Date.now() - 3 * 60 * 60 * 1000).toISOString().substr(11, 3)}00`,\r\n hourStartMilliSeconds: 1 as number,\r\n hourEnd: `${new Date(Date.now() - 2 * 60 * 60 * 1000).toISOString().substr(11, 3)}00`,\r\n hourEndMilliSeconds: 1 as number,\r\n commonX: [] as number[],\r\n dateStart: moment().subtract(0, 'days'),\r\n energyMeter: null as null | ApiResps['/energy/get-energy-list']['list'][0],\r\n energyApiResponse: null as null | ApiResps['/energy/get-hist'],\r\n groupsList: [] as any,\r\n assetsList: [] as any,\r\n initTimeSave: false as boolean,\r\n initTime: 0 as number,\r\n endTime: 0 as number,\r\n numMilliseconds: 1 as number,\r\n alertColor: false as boolean,\r\n clients: [] as { value: string, name: string }[],\r\n selectedClient: [] as string[],\r\n units: [] as { value: string, name: string }[],\r\n selectedUnits: [] as string[],\r\n filters: [] as FilterItem[],\r\n dacList: [] as {\r\n id: string,\r\n clientName: string,\r\n unitName: string,\r\n machine?: string,\r\n selectedTime: number[],\r\n dacs: {\r\n lcmp:number[],\r\n lcut:number[],\r\n levp:number[],\r\n tamb:number[],\r\n tliq:number[],\r\n tsuc:number[],\r\n pliq:number[],\r\n psuc:number[],\r\n tsh:number[],\r\n tsc:number[],\r\n },\r\n }[],\r\n dutList: [] as {\r\n id: string,\r\n clientName: string,\r\n unitName: string,\r\n machine?: string,\r\n selectedTime: number[],\r\n duts: {\r\n State:number[],\r\n Mode:number[],\r\n prog:number[],\r\n temp:number[],\r\n labels_State:string[],\r\n\r\n },\r\n }[],\r\n damList: [] as {\r\n id: string,\r\n clientName?: string,\r\n unitName: string,\r\n machine?: string,\r\n selectedTime: number[],\r\n dams:{\r\n Mode: any;\r\n State: any;\r\n labels_State: string[];\r\n prog: any;\r\n }\r\n }[],\r\n driList: [] as {\r\n id: string,\r\n clientName: string,\r\n unitName: string,\r\n machine?: string,\r\n selectedTime: number[],\r\n dris:{\r\n setpoint:number[],\r\n status:number[],\r\n operationMode:number[],\r\n limiteMax: number,\r\n limiteMin: number,\r\n energy:number[],\r\n }\r\n }[],\r\n deviceTelemetryCsvData: [] as {}[],\r\n async fetchServerData() {\r\n try {\r\n setState({ isLoading: true });\r\n const test = await apiCall('/clients/get-clients-list', {});\r\n state.clients = test.list.map((client) => ({\r\n value: client.CLIENT_ID.toString(),\r\n name: client.NAME,\r\n }));\r\n\r\n const { list } = await apiCall('/get-units-list-page', {\r\n clientIds: state.selectedClient.length ? state.selectedClient.map((x) => Number(x)) : undefined,\r\n });\r\n state.units = list.map((unit) => ({\r\n value: unit.UNIT_ID.toString(),\r\n name: unit.UNIT_NAME,\r\n }));\r\n setState({ isLoading: false });\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n setState({ isLoading: false });\r\n },\r\n });\r\n\r\n const getData = async (unitIds: number[]) => {\r\n const [\r\n { list: dacsList },\r\n { list: dutsList },\r\n { list: damsList },\r\n { list: drisList },\r\n { list },\r\n ] = await Promise.all([\r\n apiCall('/dac/get-dacs-list', {\r\n includeConsumption: true,\r\n unitIds,\r\n dateStart: state.yesterday,\r\n dateEnd: state.date,\r\n }),\r\n apiCall('/dut/get-duts-list', {\r\n unitIds,\r\n }),\r\n apiCall('/dam/get-dams-list', {\r\n unitIds,\r\n }),\r\n apiCall('/dri/get-dris-list', {\r\n unitIds,\r\n }),\r\n apiCall('/energy/get-energy-list', { unitIds }),\r\n unitIds.forEach(async (unit) => {\r\n const groupsList = await apiCall('/clients/get-groups-list', { unitIds: [unit] });\r\n const { list: assetsList } = await apiCall('/clients/get-assets-list', { unitIds: [unit] });\r\n state.groupsList.push(groupsList);\r\n state.assetsList.push(assetsList);\r\n }),\r\n ]);\r\n return {\r\n dacsList, dutsList, damsList, drisList, list,\r\n };\r\n };\r\n\r\n const handleEnergyMeter = async (list: ApiResps['/energy/get-energy-list']['list']) => {\r\n const energyMeter = list[0];\r\n state.energyMeter = energyMeter;\r\n\r\n if (energyMeter) {\r\n state.energyApiResponse = await apiCall('/energy/get-hist', {\r\n energy_device_id: energyMeter.ENERGY_DEVICE_ID,\r\n serial: energyMeter.SERIAL,\r\n manufacturer: energyMeter.MANUFACTURER,\r\n model: energyMeter.MODEL,\r\n start_time: `${state.date}T${state.hourStart}:00`,\r\n end_time: `${state.date}T${state.hourEnd}:00`,\r\n params: ['en_at_tri'],\r\n });\r\n }\r\n };\r\n\r\n const updateDevsLists = (\r\n dacsList: ApiResps['/dac/get-dacs-list']['list'],\r\n dutsList: ApiResps['/dut/get-duts-list']['list'],\r\n damsList: ApiResps['/dam/get-dams-list']['list'],\r\n drisList: ApiResps['/dri/get-dris-list']['list'],\r\n ) => {\r\n state.dacList = dacsList.map((device) => ({\r\n id: device.DAC_ID,\r\n clientName: device.CLIENT_NAME,\r\n unitName: device.UNIT_NAME,\r\n selectedTime: state.commonX,\r\n dacs: {\r\n lcmp: [],\r\n lcut: [],\r\n levp: [],\r\n tamb: [],\r\n tliq: [],\r\n tsuc: [],\r\n pliq: [],\r\n psuc: [],\r\n tsh: [],\r\n tsc: [],\r\n },\r\n\r\n }));\r\n render();\r\n\r\n state.dutList = dutsList.map((device) => ({\r\n id: device.DEV_ID,\r\n clientName: device.CLIENT_NAME,\r\n unitName: device.UNIT_NAME,\r\n selectedTime: state.commonX,\r\n duts: {\r\n State: [],\r\n Mode: [],\r\n prog: [],\r\n temp: [],\r\n labels_State: [],\r\n },\r\n\r\n }));\r\n render();\r\n\r\n state.damList = damsList.map((device) => ({\r\n id: device.DAM_ID,\r\n clientName: device.CLIENT_NAME,\r\n unitName: device.UNIT_NAME,\r\n selectedTime: state.commonX,\r\n dams: {\r\n Mode: [],\r\n State: [],\r\n labels_State: [],\r\n prog: [],\r\n },\r\n }));\r\n render();\r\n\r\n state.driList = drisList.map((device) => ({\r\n id: device.DRI_ID,\r\n clientName: device.CLIENT_NAME,\r\n unitName: device.UNIT_NAME,\r\n selectedTime: [],\r\n dris: {\r\n setpoint: [],\r\n status: [],\r\n operationMode: [],\r\n limiteMax: 0,\r\n limiteMin: 0,\r\n energy: [],\r\n },\r\n }));\r\n render();\r\n\r\n state.dacList.forEach((device) => {\r\n state.groupedDevs.push(device);\r\n });\r\n state.dutList.forEach((device) => {\r\n state.groupedDevs.push(device);\r\n });\r\n state.damList.forEach((device) => {\r\n state.groupedDevs.push(device);\r\n });\r\n state.driList.forEach((device) => {\r\n state.groupedDevs.push(device);\r\n });\r\n };\r\n\r\n const handleDacData = (device: typeof state.groupedDevs[number], promises: Promise[]) => {\r\n const paramsDac = {\r\n dacId: device.id,\r\n dayYMD: moment(state.date).format('YYYY-MM-DD'),\r\n selectedParams: ['Tamb', 'Tsuc', 'Tliq', 'Psuc', 'Pliq', 'Lcmp', 'Levp', 'Lcut', 'Tsc', 'Tsh'],\r\n numDays: 1,\r\n };\r\n\r\n const promise = apiCall('/dac/get-charts-data-common', paramsDac).then(\r\n async (websocketHistory) => {\r\n const {\r\n vars,\r\n } = websocketHistory;\r\n if (device.dacs) {\r\n device.dacs.tamb = vars.Tamb.y;\r\n device.dacs.tliq = vars.Tliq.y;\r\n device.dacs.tsuc = vars.Tsuc.y;\r\n device.dacs.tsc = vars.Tsc.y;\r\n device.dacs.tsh = vars.Tsh.y;\r\n device.dacs.psuc = vars.Psuc.y;\r\n device.dacs.lcmp = vars.Lcmp.L;\r\n device.dacs.lcut = vars.Lcut.L;\r\n device.dacs.levp = vars.Levp.L;\r\n }\r\n },\r\n );\r\n (promise !== undefined) && promises.push(promise);\r\n };\r\n\r\n const setDutsTemprt = (dutsTemprt: ApiResps['/get-autom-day-charts-data']['dutsTemprt'], device: typeof state.groupedDevs[number]) => {\r\n !dutsTemprt[0].isDutDuo && dutsTemprt[0].Temperature && dutsTemprt[0].Temperature.c.forEach((telemetry, index) => {\r\n if (device.duts) {\r\n for (let i = 0; i < telemetry; i++) {\r\n device.duts.temp.push(dutsTemprt[0].Temperature.v[index]);\r\n }\r\n }\r\n });\r\n };\r\n\r\n const setDutData = (websocketHistory: ApiResps['/get-autom-day-charts-data'], device: typeof state.groupedDevs[number]) => {\r\n const { asTable, dutsTemprt } = websocketHistory;\r\n device.duts && (device.duts.labels_State = asTable.labels_State);\r\n\r\n asTable?.c.forEach((telemetry, index) => {\r\n if (device.duts) {\r\n for (let i = 0; i < telemetry; i++) {\r\n asTable.State && device.duts.State.push(asTable.State[index]);\r\n asTable.Mode && device.duts.Mode.push(asTable.Mode[index]);\r\n asTable.prog && device.duts.prog.push(asTable.prog[index]);\r\n }\r\n }\r\n });\r\n if (dutsTemprt) {\r\n setDutsTemprt(dutsTemprt, device);\r\n }\r\n };\r\n\r\n const handleDutData = (device: typeof state.groupedDevs[number], promises: Promise[]) => {\r\n const paramsDut = {\r\n devId: device.id,\r\n day: moment(state.date).format('YYYY-MM-DD'),\r\n };\r\n\r\n const promise = apiCall('/get-autom-day-charts-data', paramsDut).then(\r\n async (websocketHistory) => {\r\n setDutData(websocketHistory, device);\r\n },\r\n );\r\n (promise !== undefined) && promises.push(promise);\r\n };\r\n\r\n const handleDamData = (device: typeof state.groupedDevs[number], promises: Promise[]) => {\r\n const paramsDam = {\r\n devId: device.id,\r\n day: moment(state.date).format('YYYY-MM-DD'),\r\n };\r\n\r\n const promise = apiCall('/get-autom-day-charts-data', paramsDam).then(\r\n async (websocketHistory) => {\r\n const { asTable } = websocketHistory;\r\n device.dams && (device.dams.labels_State = asTable.labels_State);\r\n\r\n asTable && asTable.c.forEach((telemetry, index) => {\r\n if (device.dams) {\r\n for (let i = 0; i < telemetry; i++) {\r\n device.dams.State.push(asTable.State[index]);\r\n device.dams.Mode.push(asTable.Mode[index]);\r\n device.dams.prog.push(asTable.prog[index]);\r\n }\r\n }\r\n });\r\n },\r\n );\r\n (promise !== undefined) && promises.push(promise);\r\n };\r\n\r\n const handleDriData = (device: typeof state.groupedDevs[number], promises: Promise[]) => {\r\n const paramsDri = {\r\n driId: device.id,\r\n selectedParams: ['Setpoint', 'Status', 'Mode', 'DutTemp', 'ThermOn', 'Lock', 'TempAmb', 'ValveOn', 'Fanspeed'],\r\n dayYMD: moment(state.date).format('YYYY-MM-DD'),\r\n numDays: 1,\r\n };\r\n\r\n if (device.id === state.energyMeter?.ENERGY_DEVICE_ID) {\r\n state.energyApiResponse && state.energyApiResponse.data.forEach((telemetry) => {\r\n telemetry.en_at_tri && device.dris?.energy.push(telemetry.en_at_tri);\r\n });\r\n }\r\n if (device.id !== state.energyMeter?.ENERGY_DEVICE_ID) {\r\n const promise = apiCall('/dri/get-day-charts-data-common', paramsDri).then(\r\n async (websocketHistory) => {\r\n const {\r\n vars, limits,\r\n } = websocketHistory;\r\n\r\n device.selectedTime = state.commonX;\r\n if (device.dris) {\r\n vars.OperationMode && (device.dris.operationMode = vars.OperationMode.y);\r\n vars.Setpoint && (device.dris.setpoint = vars.Setpoint.y);\r\n vars.Status && (device.dris.status = vars.Status.y);\r\n device.dris.limiteMax = limits.maxTval;\r\n device.dris.limiteMin = limits.minTval;\r\n }\r\n },\r\n );\r\n promise && promises.push(promise);\r\n }\r\n };\r\n\r\n const validations = () => {\r\n if ((state.numMilliseconds >= 1) && (state.numMilliseconds <= 3600000)) return true;\r\n\r\n toast.error(t('periodoMenorOuIgual1Hora'));\r\n state.isLoading = false;\r\n render();\r\n return false;\r\n };\r\n\r\n const handleDevices = (device: typeof state.groupedDevs[number], promises: Promise[]) => {\r\n if (device.id.startsWith('DAC')) {\r\n handleDacData(device, promises);\r\n }\r\n\r\n if (device.id.startsWith('DUT')) {\r\n handleDutData(device, promises);\r\n }\r\n\r\n if (device.id.startsWith('DRI')) {\r\n handleDriData(device, promises);\r\n }\r\n\r\n if (device.id.startsWith('DAM')) {\r\n handleDamData(device, promises);\r\n }\r\n };\r\n\r\n async function handleGetUnitInfo() {\r\n try {\r\n state.isLoading = true;\r\n const unitIds = state.selectedUnits.map((unit) => Number(unit));\r\n const {\r\n dacsList, dutsList, damsList, drisList, list,\r\n } = await getData(unitIds);\r\n\r\n const promises: Promise[] = [];\r\n\r\n await handleEnergyMeter(list);\r\n\r\n if (!validations()) {\r\n return;\r\n }\r\n\r\n updateDevsLists(dacsList, dutsList, damsList, drisList);\r\n\r\n if (state.groupedDevs?.length) {\r\n state.groupedDevs.forEach(async (device) => {\r\n handleDevices(device, promises);\r\n });\r\n }\r\n\r\n await Promise.all(promises);\r\n\r\n toast.success(t('sucessoAguardeUmMomento'));\r\n setState({ isLoading: false });\r\n render();\r\n } catch (error) {\r\n console.log(error);\r\n toast.error(t('erroInformacaoUnidade'));\r\n }\r\n formatTelemetriesCurrent();\r\n setState({ isLoading: false });\r\n render();\r\n }\r\n\r\n const getMachinesCsvData = async () => {\r\n setState({ isLoading: true });\r\n await handleGetUnitInfo();\r\n\r\n const formattedCSV = [] as {}[];\r\n try {\r\n render();\r\n if (state.groupedDevs && state.groupedDevs.length > 0) {\r\n for (const device of state.groupedDevs) {\r\n if (device.id.startsWith('DAC')) {\r\n device.selectedTime.forEach((time, index) => {\r\n const data = {\r\n clientName: device.clientName,\r\n unitName: device.unitName,\r\n id: device.id,\r\n machine: device.machine,\r\n date: moment(state.date).format('DD.MM.YYYY'),\r\n hour: CsvLabelFromaterData(time),\r\n tamb_DAC: (device.dacs && device.dacs.tamb[index]) ? device.dacs.tamb[index].toFixed(1) : '-',\r\n tliq_DAC: (device.dacs && device.dacs.tliq[index]) ? device.dacs.tliq[index].toFixed(1) : '-',\r\n tsuc_DAC: (device.dacs && device.dacs.tsuc[index]) ? device.dacs.tsuc[index].toFixed(1) : '-',\r\n sinal_DAC: device.dacs && (device.dacs.lcmp[index] === 1 || device.dacs.lcut[index] === 1 || device.dacs.levp[index] === 1) ? 'LIGADO' : 'DESLIGADO',\r\n pliq_DAC: device.dacs && device.dacs.pliq[index] ? device.dacs.pliq[index].toFixed(1) : '-',\r\n psuc_DAC: (device.dacs && device.dacs.psuc[index]) ? device.dacs.psuc[index].toFixed(1) : '-',\r\n tsh_DAC: (device.dacs && device.dacs.tsh[index]) ? device.dacs.tsh[index].toFixed(1) : '-',\r\n tsc_DAC: (device.dacs && device.dacs.tsc[index]) ? device.dacs.tsc[index].toFixed(1) : '-',\r\n };\r\n formattedCSV.push(data);\r\n });\r\n }\r\n else if (device.id.startsWith('DUT')) {\r\n device.selectedTime.forEach((time, index) => {\r\n const data = {\r\n clientName: device.clientName,\r\n unitName: device.unitName,\r\n id: device.id,\r\n machine: device.machine,\r\n date: moment(state.date).format('DD.MM.YYYY'),\r\n hour: CsvLabelFromaterData(time),\r\n state_DUT: (device.duts && device.duts.State[index]) && device.duts.labels_State[device.duts.State[index]],\r\n mode_DUT: (device.duts && device.duts.Mode[index]) ? (device.duts.Mode[index] === 1 ? 'Manual' : 'Auto') : '-',\r\n prog_DUT: (device.duts && device.duts.State[index]) ? (device.duts.State[index] === 1 ? 'forbid' : 'allow') : '-',\r\n temp_DUT: (device.duts && device.duts.temp[index]) ? device.duts.temp[index].toFixed(1) : '-',\r\n };\r\n formattedCSV.push(data);\r\n });\r\n }\r\n else if (device.id.startsWith('DRI') && (device.id === state.energyMeter?.ENERGY_DEVICE_ID)) {\r\n state.energyApiResponse?.data.forEach((telemetry) => {\r\n const data = {\r\n clientName: device.clientName,\r\n unitName: device.unitName,\r\n id: device.id,\r\n machine: device.machine,\r\n date: moment(state.date).format('DD.MM.YYYY'),\r\n hour: telemetry.timestamp && telemetry.timestamp.substr(11, 9),\r\n energy_DRI: telemetry.en_at_tri && telemetry.en_at_tri.toFixed(1),\r\n };\r\n formattedCSV.push(data);\r\n });\r\n }\r\n else if (device.id.startsWith('DRI') && (device.id !== state.energyMeter?.ENERGY_DEVICE_ID)) {\r\n device.selectedTime.forEach((time, index) => {\r\n const data = {\r\n clientName: device.clientName,\r\n unitName: device.unitName,\r\n id: device.id,\r\n machine: device.machine,\r\n date: moment(state.date).format('DD.MM.YYYY'),\r\n hour: CsvLabelFromaterData(time),\r\n operationMode_DRI: (device.dris && device.dris.operationMode[index]) ? csvOperationModeFormatter(device.dris.operationMode[index]) : '-',\r\n setpoint_DRI: (device.dris && device.dris.setpoint[index]) ? device.dris.setpoint[index] : '-',\r\n status_DRI: (device.dris && device.dris.status[index]) ? device.dris.status[index].toFixed(1) : '-',\r\n limiteMax_DRI: (device.dris && device.dris.limiteMax) ? device.dris.limiteMax.toFixed(1) : '-',\r\n limiteMin_DRI: (device.dris && device.dris.limiteMin) ? device.dris.limiteMin.toFixed(1) : '-',\r\n };\r\n formattedCSV.push(data);\r\n });\r\n }\r\n else if (device.id.startsWith('DAM')) {\r\n device.selectedTime.forEach((time, index) => {\r\n const data = {\r\n clientName: device.clientName,\r\n unitName: device.unitName,\r\n id: device.id,\r\n machine: device.machine,\r\n date: moment(state.date).format('DD.MM.YYYY'),\r\n hour: CsvLabelFromaterData(time),\r\n state_DAM: (device.dams && device.dams.State[index]) && device.dams.labels_State[device.dams.State[index]],\r\n mode_DAM: (device.dams && device.dams.Mode[index]) ? (device.dams.Mode[index] === 1 ? 'Manual' : 'Auto') : '-',\r\n prog_DAM: (device.dams && device.dams.State[index]) ? (device.dams.State[index] === 1 ? 'forbid' : 'allow') : '-',\r\n };\r\n formattedCSV.push(data);\r\n });\r\n }\r\n }\r\n\r\n setState({ ...state, deviceTelemetryCsvData: formattedCSV });\r\n setTimeout(() => {\r\n (deviceTelemetryCsvLinkEl as any).current.link.click();\r\n }, 1000);\r\n\r\n setState({ isLoading: false });\r\n state.groupedDevs = [];\r\n state.assetsList = [];\r\n state.groupsList = [];\r\n state.initTimeSave = false;\r\n render();\r\n }\r\n else {\r\n toast.info(t('semDadosGraficoExportar')); setState({ isLoading: false });\r\n }\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); setState({ isLoading: false });\r\n }\r\n };\r\n\r\n function formatTelemetriesCurrent() {\r\n for (const device of state.groupedDevs) {\r\n device.selectedTime = device.selectedTime.filter((time, index) =>\r\n {\r\n const currentTime = CsvLabelFromaterDataMilliSeconds(time);\r\n if (state.hourStartMilliSeconds <= currentTime && currentTime <= state.hourEndMilliSeconds) {\r\n if (!state.initTimeSave) {\r\n state.initTime = index;\r\n state.initTimeSave = true;\r\n }\r\n state.endTime = index;\r\n return time;\r\n }\r\n });\r\n\r\n if (device.id.startsWith('DAC') && device.dacs) {\r\n device.dacs.tamb = device.dacs.tamb.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.lcmp = device.dacs.lcmp.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.lcut = device.dacs.lcut.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.levp = device.dacs.levp.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.pliq = device.dacs.pliq.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.psuc = device.dacs.psuc.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.tliq = device.dacs.tliq.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.tsc = device.dacs.tsc.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.tsh = device.dacs.tsh.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dacs.tsuc = device.dacs.tsuc.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n }\r\n if (device.id.startsWith('DUT') && device.duts) {\r\n device.duts.State = device.duts.State.filter((_telemetry, index) => (index % 5) === 0).filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.duts.Mode = device.duts.Mode.filter((_telemetry, index) => (index % 5) === 0).filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.duts.prog = device.duts.prog.filter((_telemetry, index) => (index % 5) === 0).filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.duts.temp = device.duts.temp.filter((_telemetry, index) => (index % 5) === 0).filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n }\r\n if (device.id.startsWith('DRI') && (device.id !== state.energyMeter?.ENERGY_DEVICE_ID)) {\r\n if (device.dris) {\r\n device.dris.setpoint = device.dris.setpoint.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dris.status = device.dris.status.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dris.operationMode = device.dris.operationMode.filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n }\r\n }\r\n\r\n if (device.id.startsWith('DAM') && device.dams) {\r\n device.dams.State = device.dams.State.filter((_telemetry, index) => (index % 5) === 0).filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dams.Mode = device.dams.Mode.filter((_telemetry, index) => (index % 5) === 0).filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n device.dams.prog = device.dams.prog.filter((_telemetry, index) => (index % 5) === 0).filter((_telemetry, index) => state.initTime <= index && index <= state.endTime);\r\n }\r\n state.assetsList.filter((assets) => {\r\n assets.filter((asset) => {\r\n if (asset.DEV_ID === device.id) {\r\n device.machine = asset.GROUP_NAME;\r\n }\r\n });\r\n });\r\n\r\n state.groupsList.filter((groups) => {\r\n groups.filter((group) => {\r\n if (group.DEV_AUT === device.id || group.DUT_ID === device.id) {\r\n device.machine = group.GROUP_NAME;\r\n }\r\n });\r\n });\r\n }\r\n }\r\n\r\n function csvOperationModeFormatter(value: any) {\r\n if (value === 0) return 'DESLIGADO';\r\n if (value === 1) return 'VENTILAR';\r\n if (value === 2) return 'REFRIGERAR';\r\n return '-';\r\n }\r\n\r\n function CsvLabelFromaterDataMilliSeconds(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n const ss = Math.floor((Math.abs(hour) * 60 * 60) % 60);\r\n\r\n const timeMilliseconds = (hh * 60 * 60 * 1000) + (min * 60 * 1000) + (ss * 1000);\r\n\r\n return timeMilliseconds;\r\n }\r\n\r\n function CsvLabelFromaterData(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n const ss = Math.floor((Math.abs(hour) * 60 * 60) % 60);\r\n\r\n return `${String(hh).padStart(2, '0')}:${String(min).padStart(2, '0')}:${String(ss).padStart(2, '0')}`;\r\n }\r\n\r\n state.filters = [\r\n {\r\n label: t('cliente'),\r\n placeholder: t('cliente'),\r\n options: state.clients,\r\n value: state.selectedClient,\r\n onChange: (value) => { state.selectedClient[0] = value; state.fetchServerData(); render(); },\r\n index: 1,\r\n },\r\n {\r\n label: t('unidade'),\r\n placeholder: t('unidade'),\r\n options: state.units,\r\n value: state.selectedUnits,\r\n onChange: (value) => { state.selectedUnits = value; render(); },\r\n index: 2,\r\n },\r\n ];\r\n\r\n useEffect(() => {\r\n state.fetchServerData();\r\n }, []);\r\n\r\n useEffect(() => {\r\n let addFiveSeconds = 0;\r\n for (let i = 0; i <= 17280; i++) {\r\n state.commonX[i] = addFiveSeconds;\r\n addFiveSeconds += 0.00138888888;\r\n }\r\n }, []);\r\n\r\n useEffect(() => {\r\n state.hourStartMilliSeconds = parseInt(state.hourStart.substr(0, 2), 10) * 60 * 60 * 1000 + parseInt(state.hourStart.substr(3, 2), 10) * 60 * 1000;\r\n state.hourEndMilliSeconds = parseInt(state.hourEnd.substr(0, 2), 10) * 60 * 60 * 1000 + parseInt(state.hourEnd.substr(3, 2), 10) * 60 * 1000;\r\n\r\n state.numMilliseconds = (state.hourEndMilliSeconds - state.hourStartMilliSeconds);\r\n if ((state.numMilliseconds >= 1) && (state.numMilliseconds <= 3600000)) {\r\n state.alertColor = false;\r\n render();\r\n }\r\n else {\r\n state.alertColor = true;\r\n render();\r\n }\r\n }, [state.hourStart, state.hourEnd]);\r\n\r\n return (\r\n <>\r\n { state.isLoading ? : (\r\n <>\r\n \r\n
\r\n {}}\r\n dielTool\r\n />\r\n
\r\n setState({ date: e.target.value })}\r\n placeholder=\"YYYY-MM-DD\"\r\n label={t('data')}\r\n style={{ width: '130px' }}\r\n />\r\n
\r\n
\r\n setState({ hourStart: e.target.value })}\r\n placeholder=\"00:00\"\r\n label={t('horaInicial')}\r\n style={{ width: '130px' }}\r\n />\r\n\r\n
\r\n
\r\n setState({ hourEnd: e.target.value })}\r\n placeholder=\"00:00\"\r\n label={t('horaFinal')}\r\n style={{ width: '130px' }}\r\n />\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n { state.selectedUnits.length && state.selectedUnits.length > 0 ? state.selectedUnits = [] : state.selectedUnits = state.units.map((unit) => unit.value); render(); }}\r\n style={{\r\n paddingTop: '5px', marginLeft: '289px', textDecoration: 'underline', color: '#00008B', fontSize: '11px', cursor: 'pointer',\r\n }}\r\n >\r\n {t('selecionarTodas')}\r\n
\r\n \r\n {t('intervaloTempoAte1Hora')}\r\n \r\n
\r\n\r\n \r\n )}\r\n \r\n );\r\n}\r\n","import { useEffect } from 'react';\r\nimport {\r\n Button,\r\n Loader,\r\n Input,\r\n} from 'components';\r\nimport { toast } from 'react-toastify';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, apiCallDownload } from 'providers';\r\nimport { AnalysisFilters } from '../../../Analysis/AnalysisFilters';\r\nimport moment from 'moment';\r\nimport { InputNumber, StyleSelect, CustomAnalysis } from '../styles';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport function MedicaoTempDuts(): JSX.Element {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n endDate: moment().subtract(1, 'days'),\r\n periodTelemetria: '',\r\n isLoading: false,\r\n dayStart: new Date(Date.now() - 30 * (24 * 60 * 60 * 1000)).toISOString().substring(0, 10),\r\n workPeriod: {},\r\n dayEnd: new Date(Date.now()).toISOString().substring(0, 10),\r\n clients: [] as { value: string, name: string }[],\r\n selectedClient: [] as any | any[],\r\n units: [] as { value: string, name: string }[],\r\n duts: [] as { value: string, name: string }[],\r\n dutsInfo: {},\r\n selectedDuts: [] as string[],\r\n selectedUnits: [] as any | any[],\r\n usageData: [] as { id: string, clientName: string, unitName: string, namb: string, telemetry: string[][], temperature: number[], typeAmbHour: any }[],\r\n async fetchServerData() {\r\n try {\r\n setState({ isLoading: true });\r\n const test = await apiCall('/clients/get-clients-list', {});\r\n state.clients = test.list.map((client) => ({\r\n value: client.CLIENT_ID.toString(),\r\n name: client.NAME,\r\n }));\r\n if (state.selectedClient.length > 0) {\r\n const getWorksPeriod = await apiCall('/clients/get-roomtypes-list', { CLIENT_ID: state.selectedClient });\r\n getWorksPeriod.rtypes.forEach((item) => { state.workPeriod[item.RTYPE_ID] = { work: item.workPeriods }; });\r\n const { list } = await apiCall('/get-units-list-page', {\r\n clientIds: [Number(state.selectedClient)],\r\n });\r\n state.units = list.map((unit) => ({\r\n value: unit.UNIT_ID.toString(),\r\n name: unit.UNIT_NAME,\r\n }));\r\n }\r\n if (state.selectedUnits.length > 0) {\r\n const { list: dutsList } = await apiCall('/dut/get-duts-list', {\r\n unitId: Number(state.selectedUnits),\r\n });\r\n state.duts = dutsList.map((dut) => ({ value: dut.DEV_ID, name: dut.ROOM_NAME || dut.DEV_ID }));\r\n dutsList.forEach((item) => state.dutsInfo[item.DEV_ID] = {\r\n name: item.ROOM_NAME, unitName: item.UNIT_NAME, clientName: item.CLIENT_NAME, work: state.workPeriod[item.RTYPE_ID]?.work,\r\n });\r\n state.selectedDuts = dutsList.map((dut) => (\r\n dut.DEV_ID\r\n ));\r\n }\r\n setState({ isLoading: false });\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n setState({ isLoading: false });\r\n },\r\n });\r\n\r\n async function handleGetUnitInfo() {\r\n render();\r\n try {\r\n const params = {\r\n dutsInfo: state.dutsInfo,\r\n duts: state.selectedDuts,\r\n telemetriaFilter: state.periodTelemetria,\r\n dayStart: state.dayStart,\r\n dayEnd: state.dayEnd,\r\n };\r\n const exportResponse = await apiCallDownload('/devtools/export-duts-temperatures', params);\r\n const link: any = document.getElementById('downloadLink');\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || 'DUTsTemperatures.xlsx';\r\n link.click();\r\n toast.success(t('sucessoExportacao'));\r\n setState({ isLoading: false });\r\n } catch (error) {\r\n toast.error(t('houveErro'));\r\n setState({ isLoading: false });\r\n }\r\n }\r\n\r\n const getTempsCsvData = async () => {\r\n state.isLoading = true;\r\n render();\r\n const currentDate = new Date();\r\n const initialDate = new Date(state.dayStart);\r\n const finalDate = new Date(state.dayEnd);\r\n const timeDiff = Math.abs(finalDate.getTime() - initialDate.getTime());\r\n const diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));\r\n if (diffDays > 31) { toast.error(t('erroQuantidadeDias')); state.isLoading = false; return; }\r\n if (currentDate.getTime() < finalDate.getTime() || currentDate.getTime() < initialDate.getTime()) { toast.error(t('dataInvalida')); state.isLoading = false; return; }\r\n if (state.selectedDuts.length === 0) { toast.error(t('erroSelecionePeloMenosUmDut')); state.isLoading = false; return; }\r\n if (Number(state.periodTelemetria) < 5) { toast.error(t('erroPeriodicidadePeloMenos5min')); state.isLoading = false; return; }\r\n if (Number(state.periodTelemetria) > 43800) { toast.error(t('erroPeriodicidade')); state.isLoading = false; return; }\r\n await handleGetUnitInfo();\r\n state.isLoading = false;\r\n };\r\n\r\n useEffect(() => {\r\n state.fetchServerData();\r\n }, [state.selectedUnits, state.selectedClient]);\r\n\r\n return (\r\n <>\r\n { state.isLoading ? (\r\n <>\r\n \r\n \r\n \r\n ) : (\r\n <>\r\n \r\n \r\n \r\n \r\n { setState({\r\n selectedClient: value, selectedDuts: [], selectedUnits: [], dutsInfo: {}, duts: [],\r\n }); render(); }}\r\n placeholder={t('selecioneCliente')}\r\n label={t('cliente')}\r\n />\r\n \r\n \r\n \r\n { setState({ selectedDuts: [], duts: [], selectedUnits: value }); render(); }}\r\n placeholder={t('selecioneUnidade')}\r\n label={t('unidade')}\r\n />\r\n \r\n { state.selectedDuts = value; render(); },\r\n index: 2,\r\n }]}\r\n isLoading={state.isLoading}\r\n onApply={() => {}}\r\n dielTool\r\n />\r\n \r\n
\r\n \r\n \r\n setState({ periodTelemetria: e.target.value })} />\r\n \r\n \r\n { Number(state.periodTelemetria) >= 5\r\n ? ''\r\n : t('peloMenos5Minutos')}\r\n

\r\n
\r\n
\r\n setState({ dayStart: e.target.value })}\r\n placeholder=\"YYYY-MM-DD\"\r\n label={t('dataInicial')}\r\n style={{ width: '130px' }}\r\n />\r\n
\r\n
\r\n setState({ dayEnd: e.target.value })}\r\n placeholder=\"YYYY-MM-DD\"\r\n label={t('dataFinal')}\r\n style={{ width: '130px' }}\r\n />\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n {Number(state.periodTelemetria) >= 5\r\n && (\r\n <>\r\n {t('informacaoExportacao')}\r\n

\r\n {t('seraCalculadaMediaTemperaturas')}\r\n {' '}\r\n {state.periodTelemetria}\r\n {` ${t('em')} `}\r\n {state.periodTelemetria}\r\n {' '}\r\n {`${t('minutos')}.`}\r\n

\r\n \r\n )}\r\n
\r\n
\r\n \r\n )}\r\n \r\n );\r\n}\r\n","import {\r\n Button,\r\n Loader,\r\n Input,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\n\r\nexport function ManualDevCommand(): JSX.Element {\r\n const [state, render, setState] = useStateVar({\r\n devId: 'DEV122223333',\r\n payload: '{\"propname\":\"value\"}',\r\n enviando: false,\r\n });\r\n\r\n async function sendDevCommand() {\r\n if (state.enviando) return;\r\n try {\r\n setState({ enviando: true });\r\n await apiCall('/realtime/devtools/publish_dev_cmd', {\r\n devId: state.devId,\r\n payload: JSON.parse(state.payload),\r\n });\r\n // alert('Sucesso')\r\n } catch (err) { console.log(err); alert('Erro'); }\r\n setState({ enviando: false });\r\n }\r\n\r\n return (\r\n
\r\n { state.devId = e.target.value; render(); }}\r\n />\r\n { state.payload = e.target.value; render(); }}\r\n />\r\n \r\n
\r\n );\r\n}\r\n","import { useEffect } from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Loader,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n Card,\r\n CardTitle,\r\n} from './styles';\r\nimport { ExportarDevs } from './ExportarDevs';\r\nimport { TemprtMediaDUTs } from './ExportarDuts/TemprtMediaDUTs';\r\nimport { MachineConsumption } from './MachineConsumption';\r\nimport { DeviceTelemetry } from './DeviceTelemetry';\r\nimport { MedicaoTempDuts } from './ExportarDuts/MedicaoTempDuts';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { ManualDevCommand } from './ManualDevCommand';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport function FerramentasDiel(): JSX.Element {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar(() => ({\r\n loading: true,\r\n cards: [\r\n { comp: , title: t('exportarListasDispositivos') },\r\n { comp: , title: t('exportarTemperaturaMediaDiariaDuts') },\r\n { comp: , title: t('exportarMedicoesTemperaturaDuts') },\r\n { comp: , title: t('exportarConsumoMaquinas') },\r\n { comp: , title: t('exportarDadosTelemetriaDispositivos') },\r\n { comp: , title: t('enviarComandoParaDispositivo') },\r\n ] as { comp: JSX.Element, title: string, show?: boolean }[],\r\n }));\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n async function fetchData() {\r\n try {\r\n setState({ loading: true });\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n setState({ loading: false });\r\n }\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Ferramentas Diel\r\n \r\n \r\n {state.loading && }\r\n {(!state.loading) && (\r\n <>\r\n {state.cards.map((card, i) => (\r\n \r\n <>\r\n { card.show = !card.show; render(); }}>\r\n

\r\n { card.title }\r\n

\r\n
\r\n {card.show && card.comp}\r\n \r\n
\r\n ))}\r\n {/*
Permitir exportar dados e debugar estratégias
*/}\r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nexport default withTransaction('FerramentasDiel', 'component')(FerramentasDiel);\r\n","import { useEffect } from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button,\r\n Loader,\r\n Select,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, ApiResps } from 'providers';\r\n\r\ntype Customer = ApiResps['/coolautomation/get-units-and-systems']['customers']['']&{\r\n _sites: Site[]\r\n};\r\ntype Site = ApiResps['/coolautomation/get-units-and-systems']['sites']['']&{\r\n _customer: Customer|null\r\n _devices: Device[]\r\n};\r\ntype Device = ApiResps['/coolautomation/get-units-and-systems']['devices']['']&{\r\n _site: Site|null\r\n _systems: System[]\r\n};\r\ntype System = ApiResps['/coolautomation/get-units-and-systems']['systems']['']&{\r\n _device: Device|null\r\n _units: Unit[]\r\n};\r\ntype Unit = ApiResps['/coolautomation/get-units-and-systems']['units']['']&{\r\n _system: System|null\r\n};\r\n\r\nexport const CoolAutomation = (): JSX.Element => {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n loading: true,\r\n customers: [] as Customer[],\r\n sites: [] as Site[],\r\n devices: [] as (Device&{ comboLabel?: string })[],\r\n systems: [] as System[],\r\n coolAutUnits: [] as Unit[],\r\n gridCells: [] as { id: string, text: string|JSX.Element, span?: number, link?: string }[],\r\n gridColumns: [] as string[],\r\n associatedDevices: [] as { CLIENT_NAME: string, UNIT_NAME: string, integrId: string, dataSource: string }[],\r\n dielUnits: [] as { UNIT_ID: number, UNIT_NAME: string, CLIENT_NAME: string, comboLabel?: string }[],\r\n groupedEvents: [] as ApiResps['/coolautomation/debug-alerts']['groupedEvents'],\r\n combo_selectedDielUnit: null as null|{ UNIT_ID: number },\r\n combo_selectedCoolAutDevice: null as null|Device,\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n async function fetchData() {\r\n try {\r\n setState({ loading: true });\r\n const [\r\n dielUnits,\r\n {\r\n customers,\r\n sites,\r\n devices,\r\n systems,\r\n units: coolAutUnits,\r\n valsTransl,\r\n },\r\n { list: associatedDevices },\r\n { groupedEvents },\r\n ] = await Promise.all([\r\n apiCall('/clients/get-units-list', {}),\r\n apiCall('/coolautomation/get-units-and-systems'),\r\n apiCall('/get-integrations-list', { supplier: 'coolautomation' }),\r\n apiCall('/coolautomation/debug-alerts', {}),\r\n ]);\r\n // TODO: falta rotas de cadastrar, listar e remover items do cool automation. Indicar na tabela os sistemas que estão ou não estão associados a unidade da Diel.\r\n state.customers = Object.values(customers).map((customer) => Object.assign(customer, { _sites: [] }));\r\n state.sites = Object.values(sites).map((site) => Object.assign(site, { _devices: [], _customer: null }));\r\n state.devices = Object.values(devices).map((devices) => Object.assign(devices, { _systems: [], _site: null }));\r\n state.systems = Object.values(systems).map((system) => Object.assign(system, { _units: [], _device: null }));\r\n state.coolAutUnits = Object.values(coolAutUnits).map((unit) => Object.assign(unit, { _system: null }));\r\n for (const customer of state.customers) {\r\n customer._sites = state.sites.filter((site) => site.customer === customer.id);\r\n }\r\n for (const site of state.sites) {\r\n site._devices = state.devices.filter((device) => device.site === site.id);\r\n site._customer = state.customers.find((customer) => customer.id === site.customer) || null;\r\n }\r\n for (const device of state.devices) {\r\n device._systems = state.systems.filter((system) => system.device === device.id);\r\n device._site = state.sites.find((site) => site.id === device.site) || null;\r\n }\r\n for (const system of state.systems) {\r\n system._units = state.coolAutUnits.filter((unit) => unit.system === system.id);\r\n system._device = state.devices.find((device) => device.id === system.device) || null;\r\n }\r\n for (const unit of state.coolAutUnits) {\r\n unit._system = state.systems.find((system) => system.id === unit.system) || null;\r\n }\r\n const { gridCells, gridColumns } = generateGrid(valsTransl);\r\n state.gridCells = gridCells;\r\n state.gridColumns = gridColumns;\r\n state.associatedDevices = associatedDevices;\r\n state.dielUnits = dielUnits;\r\n state.groupedEvents = groupedEvents;\r\n\r\n for (const evtGrp of state.groupedEvents) {\r\n evtGrp.firstTs = evtGrp.firstTs && evtGrp.firstTs.replaceAll('T', ' ').replaceAll('-0300', '');\r\n evtGrp.lastTs = evtGrp.lastTs && evtGrp.lastTs.replaceAll('T', ' ').replaceAll('-0300', '');\r\n }\r\n\r\n for (const device of state.devices) {\r\n const site = device._site;\r\n const customer = site && site._customer;\r\n device.comboLabel = `${customer && customer.name} > ${site && site.name} > ${device.name}`;\r\n }\r\n state.devices = state.devices.sort((a, b) => ((a.comboLabel! > b.comboLabel!) ? 1 : (a.comboLabel! < b.comboLabel!) ? -1 : 0));\r\n for (const unit of state.dielUnits) {\r\n unit.comboLabel = `${unit.CLIENT_NAME} > ${unit.UNIT_NAME}`;\r\n }\r\n state.dielUnits = state.dielUnits.sort((a, b) => ((a.comboLabel! > b.comboLabel!) ? 1 : (a.comboLabel! < b.comboLabel!) ? -1 : 0));\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n setState({ loading: false });\r\n }\r\n\r\n function generateGrid(valsTransl: ApiResps['/coolautomation/get-units-and-systems']['valsTransl']) {\r\n if (!valsTransl.operationStatuses) valsTransl.operationStatuses = {};\r\n if (!valsTransl.operationModes) valsTransl.operationModes = {};\r\n if (!valsTransl.fanModes) valsTransl.fanModes = {};\r\n if (!valsTransl.swingModes) valsTransl.swingModes = {};\r\n if (!valsTransl.unitTypes) valsTransl.unitTypes = {};\r\n if (!valsTransl.outdoorUnitTasks) valsTransl.outdoorUnitTasks = {};\r\n const gridCells = [] as { id: string, text: string|JSX.Element, span?: number }[];\r\n for (const customer of state.customers) {\r\n const customerCells = [\r\n { id: customer.id, text: customer.name, span: 0 },\r\n ];\r\n customerCells.forEach((item) => gridCells.push(item));\r\n for (const site of ((customer._sites.length > 0) ? customer._sites : [{\r\n id: '',\r\n name: '',\r\n _devices: [],\r\n }])) {\r\n const siteCells = [\r\n { id: site.id, text: site.name, span: 0 },\r\n ];\r\n siteCells.forEach((item) => gridCells.push(item));\r\n for (const device of ((site._devices.length > 0) ? site._devices : [{\r\n id: '',\r\n name: '',\r\n isConnected: '',\r\n _systems: [],\r\n }])) {\r\n const deviceCells = [\r\n {\r\n id: device.id,\r\n text: (\r\n \r\n {device.name}\r\n
\r\n {device.id}\r\n
\r\n ),\r\n span: 0,\r\n },\r\n { id: `isConnected|${device.id}`, text: String(device.isConnected), span: 0 },\r\n ];\r\n deviceCells.forEach((item) => gridCells.push(item));\r\n for (const system of ((device._systems.length > 0) ? device._systems : [{\r\n id: '',\r\n name: '',\r\n operationMode: null,\r\n operationStatus: null,\r\n _units: [],\r\n }])) {\r\n const systemCells = [\r\n { id: system.id, text: system.name, span: 0 },\r\n { id: `operationMode|${system.id}`, text: (system.operationMode == null) ? '' : `${system.operationMode} ${valsTransl.operationModes[String(system.operationMode)]}`, span: 0 },\r\n { id: `operationStatus|${system.id}`, text: (system.operationStatus == null) ? '' : `${system.operationStatus} ${valsTransl.operationStatuses[String(system.operationStatus)]}`, span: 0 },\r\n ];\r\n systemCells.forEach((item) => gridCells.push(item));\r\n for (const unit of ((system._units.length > 0) ? system._units : [{\r\n id: '',\r\n name: '',\r\n activeFanMode: null,\r\n activeOperationMode: null,\r\n activeOperationStatus: null,\r\n activeSetpoint: null,\r\n activeSwingMode: null,\r\n ambientTemperature: null,\r\n line: null,\r\n task: null,\r\n type: null,\r\n }])) {\r\n gridCells.push({ id: `name|${unit.id}`, text: unit.name, link: `/painel/coolautomation/unit/${unit.id}` });\r\n gridCells.push({ id: `activeFanMode|${unit.id}`, text: (unit.activeFanMode == null) ? '' : `${unit.activeFanMode} ${valsTransl.fanModes[String(unit.activeFanMode)]}` });\r\n gridCells.push({ id: `activeOperationMode|${unit.id}`, text: (unit.activeOperationMode == null) ? '' : `${unit.activeOperationMode} ${valsTransl.operationModes[String(unit.activeOperationMode)]}` });\r\n gridCells.push({ id: `activeOperationStatus|${unit.id}`, text: (unit.activeOperationStatus == null) ? '' : `${unit.activeOperationStatus} ${valsTransl.operationStatuses[String(unit.activeOperationStatus)]}` });\r\n gridCells.push({ id: `activeSetpoint|${unit.id}`, text: (unit.activeSetpoint == null) ? '' : String(unit.activeSetpoint) });\r\n gridCells.push({ id: `activeSwingMode|${unit.id}`, text: (unit.activeSwingMode == null) ? '' : `${unit.activeSwingMode} ${valsTransl.swingModes[String(unit.activeSwingMode)]}` });\r\n gridCells.push({ id: `ambientTemperature|${unit.id}`, text: (unit.ambientTemperature == null) ? '' : String(unit.ambientTemperature) });\r\n gridCells.push({ id: `line|${unit.id}`, text: (unit.line == null) ? '' : String(unit.line) });\r\n gridCells.push({ id: `task|${unit.id}`, text: (unit.task == null) ? '' : `${unit.task} ${valsTransl.outdoorUnitTasks[String(unit.task)]}` });\r\n gridCells.push({ id: `type|${unit.id}`, text: (unit.type == null) ? '' : `${unit.type} ${valsTransl.unitTypes[String(unit.type)]}` });\r\n }\r\n systemCells.forEach((systemCell) => { systemCell.span += system._units.length || 1; });\r\n deviceCells.forEach((deviceCell) => { deviceCell.span += system._units.length || 1; });\r\n siteCells.forEach((siteCell) => { siteCell.span += system._units.length || 1; });\r\n customerCells.forEach((customerCell) => { customerCell.span += system._units.length || 1; });\r\n }\r\n }\r\n }\r\n }\r\n const gridColumns = [\r\n 'Customer',\r\n 'Site',\r\n 'Device',\r\n 'isConnected',\r\n 'System',\r\n 'operationMode',\r\n 'operationStatus',\r\n 'Unit',\r\n 'activeFanMode',\r\n 'activeOperationMode',\r\n 'activeOperationStatus',\r\n 'activeSetpoint',\r\n 'activeSwingMode',\r\n 'ambientTemperature',\r\n 'line',\r\n 'task',\r\n 'type',\r\n ];\r\n return { gridCells, gridColumns };\r\n }\r\n\r\n async function saveAssociation() {\r\n try {\r\n const unitId = state.combo_selectedDielUnit && state.combo_selectedDielUnit.UNIT_ID;\r\n if (!unitId) {\r\n toast.error('Unidade inválida');\r\n return;\r\n }\r\n if (!state.combo_selectedCoolAutDevice) {\r\n toast.error('Selecione um device');\r\n return;\r\n }\r\n await apiCall('/coolautomation/associate-device-to-diel-unit', {\r\n dielUnitId: unitId,\r\n coolAutSystemId: state.combo_selectedCoolAutDevice.id,\r\n });\r\n window.location.reload();\r\n } catch (error) {\r\n toast.error('Houve erro');\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {state.loading && }\r\n {(!state.loading) && (\r\n <>\r\n
\r\n
\r\n { setState({ combo_selectedDielUnit: item }); }}\r\n notNull\r\n />\r\n { setState({ combo_selectedCoolAutDevice: item }); }}\r\n notNull\r\n />\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n

ASSOCIADOS

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(state.associatedDevices || []).map((row) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
Cliente DIELUnidades DIELDispositivo CoolAutomationID CoolAutomation
{row.CLIENT_NAME}{row.UNIT_NAME}{row.dataSource}{row.integrId}
\r\n
\r\n\r\n
\r\n

TABELA COOL AUTOMATION

\r\n 'auto').join(' ') }}>\r\n {state.gridColumns.map((header) => (\r\n {header}\r\n ))}\r\n {state.gridCells.map((cell) => (\r\n \r\n {cell.link ? ({cell.text}) : cell.text}\r\n \r\n ))}\r\n \r\n
\r\n\r\n
\r\n

ALERTAS (últimas 24h)

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(state.groupedEvents || []).map((row, index) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
SiteDeviceSystemResourcesEventTypeCodeDescriptionStatusHorário
{row.colSite}{row.colDevice}{row.colSystem}{row.colResources}{row.colEventType}{row.colCode}{row.colDescription}{row.colStatus}\r\n {(row.evCount === 1) ? '' : `${row.evCount} eventos`}\r\n {(row.firstTs === row.lastTs) ? row.firstTs : ` entre ${row.firstTs} e ${row.lastTs}`}\r\n
\r\n
\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nconst TableBasic = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n\r\nconst Cell = styled.div`\r\n border-right: 1px solid grey;\r\n border-bottom: 1px solid grey;\r\n padding: 3px;\r\n`;\r\n\r\nconst GridContainer = styled.div`\r\n display: grid;\r\n border-top: 1px solid grey;\r\n border-left: 1px solid grey;\r\n`;\r\n\r\nconst Table = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button,\r\n Loader,\r\n Select,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\n\r\nexport const DRIUnits = (): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n loading: true,\r\n dris: [] as { DRI_ID: string, UNIT_ID: number, UNIT_NAME: string, CLIENT_NAME: string, comboLabel?: string }[],\r\n dielUnits: [] as { UNIT_ID: number, UNIT_NAME: string, CLIENT_NAME: string, comboLabel?: string }[],\r\n combo_selectedDielUnit: null as null|{ UNIT_ID: number, CLIENT_ID: number },\r\n combo_selectedDRI: null as null|{ DRI_ID: string },\r\n });\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n async function fetchData() {\r\n try {\r\n setState({ loading: true });\r\n const [\r\n { list: dielUnits },\r\n ] = await Promise.all([\r\n apiCall('/clients/get-units-list-basic', {}),\r\n ]);\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n setState({ loading: false });\r\n }\r\n\r\n async function saveAssociation() {\r\n const DRI_ID = state.combo_selectedDRI && state.combo_selectedDRI.DRI_ID;\r\n const UNIT_ID = state.combo_selectedDielUnit && state.combo_selectedDielUnit.UNIT_ID;\r\n const CLIENT_ID = state.combo_selectedDielUnit && state.combo_selectedDielUnit.CLIENT_ID;\r\n if ((!UNIT_ID) || (!CLIENT_ID)) {\r\n toast.error('Unidade inválida');\r\n return;\r\n }\r\n if (!DRI_ID) {\r\n toast.error('Selecione um DRI');\r\n return;\r\n }\r\n await apiCall('/dri/set-dri-info', {\r\n DRI_ID,\r\n UNIT_ID,\r\n CLIENT_ID,\r\n });\r\n window.location.reload();\r\n }\r\n\r\n return (\r\n <>\r\n {state.loading && }\r\n {(!state.loading) && (\r\n <>\r\n
\r\n
\r\n { setState({ combo_selectedDielUnit: item }); }}\r\n notNull\r\n />\r\n { setState({ combo_selectedDRI: item }); }}\r\n notNull\r\n />\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n

TABELA GREENANT

\r\n \r\n \r\n \r\n Cliente\r\n Unidade\r\n DRI\r\n \r\n \r\n \r\n {(state.dris || []).map((row) => (\r\n \r\n {row.CLIENT_NAME}\r\n {row.UNIT_NAME}\r\n {row.DRI_ID}\r\n \r\n ))}\r\n \r\n \r\n
\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nconst TableBasic = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n","import styled from 'styled-components';\r\n\r\nexport const Table = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Select, Button, Loader,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\nimport { Table } from './styles';\r\n\r\nexport const GreenAntMeters = (): JSX.Element => {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n units: [] as {\r\n UNIT_ID: number\r\n CLIENT_NAME: string\r\n UNIT_NAME: string\r\n comboLabel?: string\r\n meter?: { label: string, uid?: string }\r\n }[],\r\n sortedUnits: [] as {\r\n comboLabel?: string\r\n }[],\r\n freeMeters: [] as {\r\n id: number\r\n organizationName: string\r\n label: string\r\n uid?: string\r\n comboLabel?: string\r\n }[],\r\n loading: true,\r\n combo_dielUnit: null as null|{ UNIT_ID: number },\r\n combo_greenantMeter: null as null|{ id: number },\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n\r\n async function fetchData() {\r\n try {\r\n state.loading = true; render();\r\n const { units, meters } = await apiCall('/clients/get-units-and-meters', {});\r\n const units2 = units.map((unit) => {\r\n const meter = meters.find((meter) => meter.id === unit.GA_METER);\r\n return Object.assign(unit, { meter });\r\n });\r\n const associatedUnits = units2.filter((x) => x.meter);\r\n const disassociatedUnits = units2.filter((x) => !x.meter);\r\n const disassociatedMeters = meters.filter((meter) => !associatedUnits.some((unit) => unit.meter === meter));\r\n state.units = [...associatedUnits, ...disassociatedUnits];\r\n state.freeMeters = disassociatedMeters;\r\n\r\n for (const meter of state.freeMeters) {\r\n meter.comboLabel = `${meter.organizationName} > ${meter.label}${meter.uid ? ` [${meter.uid}]` : ''}`;\r\n }\r\n state.freeMeters = state.freeMeters.sort((a, b) => ((a.comboLabel! > b.comboLabel!) ? 1 : (a.comboLabel! < b.comboLabel!) ? -1 : 0));\r\n for (const unit of state.units) {\r\n unit.comboLabel = `${unit.CLIENT_NAME} > ${unit.UNIT_NAME}`;\r\n }\r\n state.sortedUnits = state.units.sort((a, b) => ((a.comboLabel! > b.comboLabel!) ? 1 : (a.comboLabel! < b.comboLabel!) ? -1 : 0));\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.loading = false; render();\r\n }\r\n\r\n async function saveAssociation() {\r\n try {\r\n const unitId = state.combo_dielUnit && state.combo_dielUnit.UNIT_ID;\r\n if (!unitId) {\r\n toast.error('Unidade inválida');\r\n return;\r\n }\r\n await apiCall('/clients/edit-unit', {\r\n UNIT_ID: unitId,\r\n GA_METER: (state.combo_greenantMeter || null) && state.combo_greenantMeter!.id,\r\n });\r\n window.location.reload();\r\n } catch (error) {\r\n toast.error('Houve erro');\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {state.loading && }\r\n {(!state.loading) && (\r\n
\r\n
\r\n
\r\n { setState({ combo_dielUnit: item }); }}\r\n />\r\n { setState({ combo_greenantMeter: item }); }}\r\n />\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n

TABELA DIEL

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(state.units || []).map((row) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
Cliente DIELUnidades DIELMedidor Greenant AssociadoUID Medidor GreenAnt
{row.CLIENT_NAME}{row.UNIT_NAME}{row.meter && row.meter.label}{row.meter && row.meter.uid}
\r\n
\r\n\r\n
\r\n

TABELA GREENANT

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(state.freeMeters || []).map((row) => (\r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
Cliente GreenAntMedidor GreenAntUID Medidor GreenAnt
{row.organizationName}{row.label}{row.uid}
\r\n
\r\n\r\n
\r\n )}\r\n \r\n );\r\n};\r\n","import { useEffect } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button,\r\n Loader,\r\n Select,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\n\r\nexport const Water = (): JSX.Element => {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n units: [] as {\r\n UNIT_ID: number\r\n CLIENT_NAME: string\r\n UNIT_NAME: string\r\n comboLabel?: string\r\n meter?: { dataSource: string }\r\n }[],\r\n sortedUnits: [] as {\r\n comboLabel?: string\r\n }[],\r\n freeMeters: [] as {\r\n dataSource: string\r\n comboLabel?: string\r\n }[],\r\n freeDmas: [] as {\r\n dataSource: string\r\n comboLabel?: string\r\n }[],\r\n loading: true,\r\n combo_dielUnit: null as null|{ UNIT_ID: number, CLIENT_ID: number},\r\n combo_meters: null as null| { dataSource: string },\r\n combo_supplier: null as null | string,\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n\r\n async function fetchData() {\r\n try {\r\n state.loading = true; render();\r\n const { list: metersList } = await apiCall('/laager/get-meters-list', {});\r\n const [\r\n dielUnits,\r\n { list: meters },\r\n { list: disassociatedDmas },\r\n ] = await Promise.all([\r\n apiCall('/clients/get-units-list', {}),\r\n apiCall('/get-integrations-list/water'),\r\n apiCall('/dma/get-disassociated-dmas'),\r\n ]);\r\n state.freeDmas = disassociatedDmas;\r\n const units2 = dielUnits.map((unit) => {\r\n const meter = meters.find((meter) => meter.UNIT_ID === unit.UNIT_ID);\r\n return Object.assign(unit, { meter });\r\n });\r\n const associatedUnits = units2.filter((x) => x.meter);\r\n const disassociatedUnits = units2.filter((x) => !x.meter);\r\n const associatedMetersId = meters.map((meter) => meter.dataSource);\r\n const disassociatedMeters = metersList.filter((meter) => !associatedMetersId.includes(meter.customer_id));\r\n state.units = [...associatedUnits, ...disassociatedUnits];\r\n state.freeMeters = disassociatedMeters.map((meter) => (\r\n { dataSource: meter.customer_id }\r\n ));\r\n\r\n for (const meter of state.freeMeters) {\r\n meter.comboLabel = `${meter.dataSource}`;\r\n }\r\n for (const meter of state.freeDmas) {\r\n meter.comboLabel = `${meter.dataSource}`;\r\n }\r\n state.freeMeters = state.freeMeters.sort((a, b) => ((a.comboLabel! > b.comboLabel!) ? 1 : (a.comboLabel! < b.comboLabel!) ? -1 : 0));\r\n for (const unit of state.units) {\r\n unit.comboLabel = `${unit.CLIENT_NAME} > ${unit.UNIT_NAME}`;\r\n }\r\n state.sortedUnits = state.units.sort((a, b) => ((a.comboLabel! > b.comboLabel!) ? 1 : (a.comboLabel! < b.comboLabel!) ? -1 : 0));\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n state.loading = false; render();\r\n }\r\n\r\n async function saveAssociation() {\r\n try {\r\n const unitId = state.combo_dielUnit && state.combo_dielUnit.UNIT_ID;\r\n if (!unitId) {\r\n toast.error('Unidade inválida');\r\n return;\r\n }\r\n\r\n if (!state.combo_meters) {\r\n toast.error('Selecione um dispositivo');\r\n return;\r\n }\r\n\r\n const meterId = state.combo_meters?.dataSource || null;\r\n\r\n if (state.combo_supplier === 'Laager') {\r\n await apiCall('/laager/associate-meter-to-diel-unit', { unitId, meterId });\r\n } else if (state.combo_dielUnit && state.combo_dielUnit.CLIENT_ID && meterId) {\r\n await apiCall('/dma/set-dma-info', {\r\n DMA_ID: meterId,\r\n UNIT_ID: unitId,\r\n CLIENT_ID: state.combo_dielUnit.CLIENT_ID,\r\n });\r\n }\r\n window.location.reload();\r\n } catch (error) {\r\n toast.error('Houve erro');\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {state.loading && }\r\n {(!state.loading) && (\r\n
\r\n
\r\n
\r\n { setState({ combo_dielUnit: item }); }}\r\n />\r\n { setState({ combo_supplier: item }); }}\r\n />\r\n { setState({ combo_meters: item }); }}\r\n />\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n

TABELA DIEL

\r\n \r\n \r\n \r\n Cliente DIEL\r\n Unidades DIEL\r\n Dispositivos Associado\r\n \r\n \r\n \r\n {(state.units || []).map((row) => (\r\n \r\n {row.CLIENT_NAME}\r\n {row.UNIT_NAME}\r\n {row.meter && row.meter.dataSource}\r\n \r\n ))}\r\n \r\n \r\n
\r\n
\r\n

TABELA DIEL

\r\n \r\n \r\n \r\n ID DO DMA\r\n \r\n \r\n \r\n {(state.freeDmas || []).map((row) => (\r\n \r\n {row.dataSource}\r\n \r\n ))}\r\n \r\n \r\n
\r\n
\r\n

TABELA LAAGER

\r\n \r\n \r\n \r\n Medidor Laager\r\n \r\n \r\n \r\n {(state.freeMeters || []).map((row) => (\r\n \r\n {row.dataSource}\r\n \r\n ))}\r\n \r\n \r\n
\r\n\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nconst TableBasic = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n","import styled from 'styled-components';\r\n\r\nexport const Container = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n gap: 12px;\r\n\r\n position: relative;\r\n`;\r\n\r\nexport const ButtonsRow = styled.div`\r\n display: flex;\r\n flex-direction: row-reverse;\r\n justify-content: space-between;\r\n`;\r\n\r\nexport const ContainerButtonOpen = styled.div`\r\n position: absolute;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: start;\r\n justify-items: center;\r\n z-index: 12;\r\n bottom: 0;\r\n transform: translateY(125%);\r\n min-width: 216px;\r\n border: 0.8px solid #5050502B;\r\n border-radius: 8px;\r\n background: #FFFFFF;\r\n overflow-x: hidden;\r\n height: max-content;\r\n width: 100%;\r\n cursor: pointer;\r\n `;\r\n\r\nexport const OptionsButtonsTypeAPI = styled.p<{ disabled?: boolean }>`\r\n padding: 15px;\r\n margin: 0;\r\n transition: filter 0.2s ease;\r\n cursor: pointer;\r\n font-size: 12px;\r\n width: 100%;\r\n\r\n ${({ disabled }) => disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n pointer-events: none;\r\n &:hover {\r\n filter: none;\r\n }\r\n `}\r\n`;\r\n\r\nexport const ButtonOptions = styled.div<{ disabled?: boolean }>(\r\n ({ disabled }) => `\r\n padding: 5px;\r\n display: flex;\r\n gap: 5px;\r\n min-width: 100px;\r\n flex-direction: row;\r\n height: max-content;\r\n justify-content: space-around;\r\n align-items: center;\r\n text-align: center;\r\n border-radius: 11px;\r\n border: 1px solid;\r\n border-color: #e3e3e3;\r\n cursor: pointer;\r\n box-shadow: 0px 3px 3px 0px #00000014;\r\n\r\n ${disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n `}\r\n`,\r\n);\r\n\r\nexport const NoApiReturn = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n border: 1px solid #0000000F;\r\n border-radius: 10px;\r\n\r\n background: #F9F9F9;\r\n\r\n height: 273px;\r\n\r\n color: #7D7D7D;\r\n\r\n span {\r\n margin: 0;\r\n\r\n font-family: Inter;\r\n font-size: 13px;\r\n font-weight: 700;\r\n text-align: center;\r\n }\r\n\r\n p {\r\n margin: 0;\r\n\r\n font-family: Inter;\r\n font-size: 10px;\r\n font-weight: 500;\r\n text-align: center;\r\n }\r\n`;\r\n\r\nexport const ModalTitle = styled.span`\r\n font-size: 13px;\r\n font-weight: 700;\r\n`;\r\n\r\nexport const ModalSubTitle = styled.p`\r\n font-size: 11px;\r\n font-weight: 400;\r\n margin-bottom: 50px\r\n`;\r\n\r\nexport const ContainerModal = styled.div`\r\n padding: 25px 80px 0px 80px\r\n`;\r\n\r\nexport const ContainerModalInputs = styled.div`\r\n margin-top: 0px;\r\n display: flex;\r\n flex-direction: column;\r\n`;\r\n\r\nexport const ContainerColumn = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n gap: 10px;\r\n max-width: 200px;\r\n justify-content: 'center';\r\n`;\r\n\r\nexport const ContainerRow = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n width: 100%;\r\n justify-content: space-between;\r\n`;\r\n\r\nexport const Form = styled.form`\r\n display: flex;\r\n width: '100&';\r\n flex-direction: column;\r\n `;\r\n\r\nexport const Label = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-top: 1px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const TextLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n color: #5d5d5d;\r\n`;\r\n\r\nexport const TableWrapper = styled.div`\r\n padding: 20px 29px 20px 21px;\r\n`;\r\n\r\nexport const ContainerButtonStatusOpen = styled.div`\r\n position: absolute;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: start;\r\n justify-items: center;\r\n z-index: 12;\r\n border: 0.8px solid #5050502B;\r\n border-radius: 4px;\r\n background: #FFFFFF;\r\n overflow-x: hidden;\r\n height: max-content;\r\n width: 110px;\r\n cursor: pointer;\r\n `;\r\n\r\nexport const OptionsButtonsStatus = styled.p<{ disabled?: boolean }>`\r\n padding: 5px;\r\n margin: 0;\r\n transition: filter 0.2s ease;\r\n cursor: pointer;\r\n font-size: 12px;\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n\r\n\r\n ${({ disabled }) => disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n pointer-events: none;\r\n &:hover {\r\n filter: none;\r\n }\r\n `}\r\n`;\r\n","import { colors } from '~/styles/colors';\r\nimport styled, { css } from 'styled-components';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const CardContent = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n gap: 12px;\r\n\r\n button {\r\n width: 134px;\r\n }\r\n`;\r\n\r\nexport const CardHeader = styled.div`\r\n display: flex;\r\n gap: 8px;\r\n\r\n h1 {\r\n margin: 0;\r\n\r\n color: #000;\r\n\r\n font-family: Inter;\r\n font-size: 14px;\r\n font-weight: 700;\r\n }\r\n\r\n p {\r\n margin: 0;\r\n\r\n color: #4B4B4B\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 400;\r\n }\r\n`;\r\n\r\nexport const SearchBarWrapper = styled.div`\r\n display: flex;\r\n align-items: center;\r\n\r\n height: 33px;\r\n width: min-content;\r\n border: 0.8px solid #C5C5C58F;\r\n border-radius: 8px;\r\n\r\n padding-left: 12px;\r\n\r\n input {\r\n border: none;\r\n outline: none;\r\n border-radius: 8px;\r\n\r\n color: #000000;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 400;\r\n\r\n &::placeholder {\r\n color: #000000;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 400;\r\n }\r\n }\r\n\r\n div {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n\r\n width: 33px;\r\n height: 33px;\r\n\r\n svg {\r\n width: 13px;\r\n height: 13px;\r\n\r\n path {\r\n fill: #363BC4;\r\n }\r\n }\r\n }\r\n`;\r\n\r\nexport const Tabs = styled.div`\r\n display: flex;\r\n gap: 5px;\r\n`;\r\n\r\nexport const TabOption = styled.span<{active?: boolean}>`\r\n position: relative;\r\n\r\n width: 176px;\r\n height: 34px;\r\n\r\n padding: 8px 25px;\r\n\r\n border-radius: 8px 8px 0 0;\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n border-bottom: none;\r\n\r\n color: ${colors.Black};\r\n\r\n text-align: center;\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-style: normal;\r\n font-weight: 700;\r\n line-height: 20px;\r\n\r\n ${({ active = false }) => {\r\n if (active) {\r\n return css`\r\n background-color: white;\r\n `;\r\n }\r\n\r\n return css`\r\n background-color: #F4F4F4;\r\n cursor: pointer;\r\n `;\r\n }}\r\n`;\r\n\r\nexport const ModelListContainer = styled.div`\r\n overflow-y: scroll;\r\n\r\n background-color: #f9f9f9;\r\n border: 1px solid #e3e3e3;\r\n border-bottom-left-radius: 7px;\r\n border-bottom-right-radius: 7px;\r\n\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n\r\n height: 195px;\r\n max-height: 195px;\r\n padding: 12px;\r\n`;\r\n\r\nexport const ModelRow = styled.div<{isSelected?: boolean}>`\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n\r\n padding: 8px 12px;\r\n border: 1px solid #68686833;\r\n border-radius: 5px;\r\n\r\n background: #FFFFFF;\r\n\r\n cursor: pointer;\r\n\r\n p {\r\n margin: 0;\r\n\r\n color: #464555;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 500;\r\n }\r\n\r\n svg {\r\n cursor: pointer;\r\n }\r\n\r\n ${({ isSelected = false }) => isSelected && css`\r\n background: #363BC4;\r\n\r\n cursor: unset;\r\n\r\n p {\r\n color: #FFFFFF;\r\n }\r\n\r\n svg {\r\n path {\r\n stroke: #FFFFFF;\r\n }\r\n }\r\n `}\r\n`;\r\n\r\nexport const EmptyContent = styled.div`\r\n width: 100%;\r\n height: 100%;\r\n\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 8px;\r\n\r\n p {\r\n width: 214px;\r\n margin: 0;\r\n\r\n color: #818181;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 600;\r\n text-align: center;\r\n }\r\n`;\r\n\r\nexport const TitleSectionDropdown = styled.div<{ isOpen?: boolean }>`\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n padding: 4px 8px;\r\n\r\n width: max-content;\r\n\r\n border: 0.8px solid rgba(80, 80, 80, 0.17);\r\n border-radius: 8px;\r\n\r\n box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.03);\r\n\r\n cursor: pointer;\r\n\r\n span {\r\n color: #000000;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 400;\r\n text-align: center;\r\n }\r\n\r\n div {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n }\r\n\r\n svg {\r\n width: 7.5px;\r\n height: 7.5px;\r\n }\r\n\r\n ${({ isOpen = false }) => !isOpen && css`\r\n div {\r\n transform: rotate(270deg);\r\n }\r\n `}\r\n`;\r\n\r\nexport const DateExportRow = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n`;\r\n\r\nexport const ResultContainer = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n gap: 12px;\r\n\r\n position: relative;\r\n`;\r\n\r\nexport const ResultContainerOverlay = styled.div`\r\n height: 80%;\r\n width: 100%;\r\n\r\n position: absolute;\r\n top: 0;\r\n\r\n background-color: white;\r\n\r\n opacity: 0.6;\r\n`;\r\n\r\nexport const AnalisysResult = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n gap: 12px;\r\n`;\r\n\r\nexport const NoAnalisysSelected = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n border: 1px solid #0000000F;\r\n border-radius: 10px;\r\n\r\n background: #F9F9F9;\r\n\r\n height: 273px;\r\n\r\n color: #7D7D7D;\r\n\r\n span {\r\n margin: 0;\r\n\r\n font-family: Inter;\r\n font-size: 13px;\r\n font-weight: 700;\r\n text-align: center;\r\n }\r\n\r\n p {\r\n margin: 0;\r\n\r\n font-family: Inter;\r\n font-size: 10px;\r\n font-weight: 500;\r\n text-align: center;\r\n }\r\n`;\r\n\r\nexport const DateWrapper = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n\r\n .DayPicker {\r\n z-index: 300;\r\n\r\n position: absolute;\r\n top: 200%;\r\n left: 0%;\r\n }\r\n .DayPickerKeyboardShortcuts_buttonReset {\r\n &::before {\r\n display: none;\r\n }\r\n }\r\n .CalendarMonth_caption {\r\n color: #000;\r\n text-transform: capitalize;\r\n }\r\n .CalendarDay__selected {\r\n background: #363BC4;\r\n border-color: #363BC4;\r\n font-weight: bold;\r\n }\r\n .CalendarDay__selected:hover {\r\n background: #363BC4;\r\n border-color: #363BC4;\r\n }\r\n .CalendarDay__selected_span {\r\n background: #D0D2F1;\r\n border: 1px double #F4EBEB;\r\n color: #000;\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n display: none;\r\n }\r\n .CalendarDay__hovered_span, .CalendarDay__hovered_span:hover {\r\n background: #E5E6F8;\r\n border: 1px double #F4EBEB;\r\n color: #000;\r\n }\r\n .CalendarDay__selected_span:hover {\r\n background: #B5B7DD;\r\n border: 1px double #B5B7DD;\r\n color: #fff;\r\n }\r\n`;\r\n\r\nexport const DateButton = styled.div<{ disabled?: boolean }>(\r\n ({ disabled }) => `\r\n width: max-content;\r\n height: 30px;\r\n min-height: 30px;\r\n position: relative;\r\n\r\n display: flex;\r\n gap: 8px;\r\n align-items: center;\r\n\r\n padding: 0 12px;\r\n\r\n border: 1px solid #C5C5C58F;\r\n border-radius: 8px;\r\n\r\n cursor: pointer;\r\n\r\n p {\r\n margin: 0;\r\n color: #000;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 400;\r\n }\r\n\r\n ${disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n `}\r\n`,\r\n);\r\n\r\nexport const DateButtonActions = styled.div<{ disabled?: boolean }>(\r\n ({ disabled }) => `\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n\r\n span {\r\n margin: 0;\r\n color: #363BC4;\r\n\r\n font-family: Inter;\r\n font-size: 11px;\r\n text-decoration: underline;\r\n cursor: pointer;\r\n }\r\n ${disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n `}\r\n`,\r\n);\r\n\r\nexport const StatusColor = styled.div<{color?: string}>`\r\n width: 11px;\r\n height: 11px;\r\n border-radius: 3px;\r\n\r\n ${({ color = '#00A74A' }) => css`\r\n background: ${color}\r\n `}\r\n`;\r\n\r\nexport const ResultsResume = styled.div`\r\n display: flex;\r\n align-items: start;\r\n justify-content: center;\r\n\r\n gap: 40px;\r\n\r\n border-radius: 9px;\r\n border: 1px solid #e3e3e3;\r\n\r\n background-color: #f9f9f9;\r\n\r\n width: 100%;\r\n height: 100%;\r\n`;\r\n\r\nexport const ResultsContent = styled.div`\r\n height: 100%;\r\n padding: 22px 0;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n p{\r\n text-align: center;\r\n margin: 0;\r\n }\r\n`;\r\n\r\nexport const ResultsContentEF = styled.div<{ qtdCharacteres?: number }>`\r\n height: 100%;\r\n padding: 22px 0;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n p{\r\n text-align: center;\r\n margin: 0;\r\n }\r\n\r\n ${({ qtdCharacteres }) => qtdCharacteres === 1 && css`\r\n max-width: 145px;\r\n width: 100%;\r\n `}\r\n\r\n ${({ qtdCharacteres }) => qtdCharacteres === 2 && css`\r\n max-width: 175px;\r\n width: 100%;\r\n `}\r\n\r\n ${({ qtdCharacteres }) => qtdCharacteres === 3 && css`\r\n max-width: 240px;\r\n width: 100%;\r\n `}\r\n\r\n ${({ qtdCharacteres }) => qtdCharacteres === 4 && css`\r\n max-width: 330px;\r\n width: 100%;\r\n `}\r\n`;\r\n\r\nexport const EnergyEfficiencyItem = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n gap: 4px;\r\n width: 100%;\r\n`;\r\n\r\nexport const EnergyEfficiencyBar = styled.div<{\r\n barColor: string;\r\n barHeight: string;\r\n}>`\r\n width: 14px;\r\n border-radius: 0 0 3px 3px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: start;\r\n ${({ barColor, barHeight }) => css`\r\n background: ${barColor};\r\n height: ${barHeight};\r\n `}\r\n font-size: 10px;\r\n font-weight: 500;\r\n color: #000000;\r\n margin: 0;\r\n`;\r\n\r\nexport const ExportButton = styled.div<{ disabled?: boolean }>(\r\n ({ disabled }) => `\r\n padding: 5px;\r\n display: flex;\r\n flex-direction: row;\r\n width: 97px;\r\n height: max-content;\r\n justify-content: space-around;\r\n align-items: center;\r\n text-align: center;\r\n border-radius: 11px;\r\n border: 1px solid;\r\n border-color: #e3e3e3;\r\n cursor: pointer;\r\n\r\n ${disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n `}\r\n`,\r\n);\r\n\r\nexport const ShowProblemDataWrapper = styled.div`\r\n display: flex;\r\n justify-content: start;\r\n align-items: center;\r\n gap: 4px;\r\n`;\r\n\r\nexport const NoInfoTooltip = styled.div`\r\n display: flex;\r\n gap: 8px;\r\n max-width: 172px;\r\n\r\n div {\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n\r\n max-width: 142px;\r\n }\r\n\r\n span {\r\n margin: 0;\r\n color: #FFFFFF;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 700;\r\n\r\n white-space: normal;\r\n }\r\n\r\n p {\r\n margin: 0;\r\n color: #FFFFFF;\r\n\r\n font-family: Inter;\r\n font-size: 11px;\r\n font-weight: 400;\r\n\r\n white-space: normal;\r\n }\r\n`;\r\n\r\nexport const UnitLink = styled(Link)`\r\n color: #000000;\r\n\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 400;\r\n text-decoration: underline;\r\n`;\r\n\r\nexport const NoInfoIcon = styled.span`\r\n display: flex;\r\n justify-content: center;\r\n`;\r\n\r\nexport const LoaderOverlay = styled.div`\r\n position: absolute;\r\n top: 0;\r\n\r\n background-color: ${`${colors.Grey030}99`};\r\n\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n\r\n border-radius: 10px;\r\n\r\n width: 100%;\r\n height: 100%;\r\n`;\r\n\r\nexport const TableWrapper = styled.div`\r\n padding: 20px 29px 20px 21px;\r\n`;\r\n\r\nexport const SelectOptionStyled = styled.button<{ selected: boolean }>`\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\r\n\r\n height: 41px;\r\n width: 100%;\r\n\r\n border: none;\r\n background: transparent;\r\n padding: 10px;\r\n\r\n border-left: 5px solid transparent;\r\n\r\n ${({ selected }) => selected\r\n && css`\r\n border-left: 5px solid #363BC4;\r\n `}\r\n`;\r\n","import {\r\n ArrowDownAnalisys, InfoIcon, OrderIcon, PausedIcon, PlayIcon, WarnIcon,\r\n} from '~/icons';\r\nimport {\r\n ShowProblemDataWrapper, NoInfoTooltip, UnitLink,\r\n SelectOptionStyled,\r\n} from './styles';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { t } from 'i18next';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport {\r\n ButtonFilters, Label, OrderColumn, PopoverContent, PopoverHeader, SearchInput, TitleColumn,\r\n TooltipContainer,\r\n} from '~/components/Table/styles';\r\nimport { useState } from 'react';\r\nimport * as Popover from '@radix-ui/react-popover';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { Checkbox } from '~/components';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { FilterIcon } from '~/icons/FilterIconV3';\r\nimport {\r\n ButtonOptions, ContainerButtonStatusOpen, OptionsButtonsStatus,\r\n} from '../Admin/Integrations/ApiIntegrations/styles';\r\n\r\ntype ShowProblemDataProps = {\r\n value: string | number;\r\n tooltipId: string;\r\n flags?: {\r\n dataIsInvalid: boolean;\r\n dataIsProcessed: boolean;\r\n invalidPercentage?: boolean;\r\n }\r\n};\r\n\r\nexport const controlColumnsConfigs = [\r\n {\r\n id: 'clientName',\r\n visible: true,\r\n label: t('cliente'),\r\n },\r\n {\r\n id: 'stateName',\r\n visible: true,\r\n label: t('estado'),\r\n },\r\n {\r\n id: 'cityName',\r\n visible: true,\r\n label: t('cidade'),\r\n },\r\n {\r\n id: 'unitName',\r\n visible: true,\r\n label: t('unidade'),\r\n },\r\n {\r\n id: 'procelRanking',\r\n visible: true,\r\n label: 'Ranking',\r\n },\r\n {\r\n id: 'procelCategory',\r\n visible: true,\r\n label: 'Efic. Energética',\r\n },\r\n {\r\n id: 'consumptionByArea',\r\n visible: true,\r\n label: `${t('consumoPorM')} (kWh/m²)`,\r\n },\r\n {\r\n id: 'consumption',\r\n visible: true,\r\n label: `${t('consumo')} (kWh)`,\r\n },\r\n {\r\n id: 'consumptionPreviousPercentage',\r\n visible: true,\r\n label: 'Var. Consumo',\r\n },\r\n {\r\n id: 'totalCharged',\r\n visible: true,\r\n label: `${t('consumo')} (R$)`,\r\n },\r\n {\r\n id: 'refrigerationConsumption',\r\n visible: true,\r\n label: t('consumoRefrigecao'),\r\n },\r\n {\r\n id: 'refrigerationConsumptionPercentage',\r\n visible: true,\r\n label: t('refrigecacaoConsumo'),\r\n },\r\n {\r\n id: 'refCapacity',\r\n visible: true,\r\n label: t('capacidadeRefrigeracao'),\r\n },\r\n {\r\n id: 'refrigerationConsumptionByArea',\r\n visible: true,\r\n label: `m²/TR ${t('instalado')}`,\r\n },\r\n];\r\n\r\nexport const formatValue = (value, prefix, sufix) => (value == null ? '-' : `${prefix}${formatNumberWithFractionDigits(value)}${sufix}`);\r\n\r\nexport const ShowProblemData: React.FC = ({ value, tooltipId, flags }) => {\r\n const profile = getUserProfile();\r\n const isAdmin = profile.permissions?.isAdminSistema;\r\n\r\n let Icon = isAdmin ? WarnIcon : InfoIcon;\r\n let iconColor = isAdmin ? '#F3B107' : '#A9A9A9';\r\n let message = isAdmin ? 'dadoIncoerente' : 'naoFoiPossivelColetarDado';\r\n let description = isAdmin ? 'dadoIncoerenteDesc' : 'paraMaisDetalhes';\r\n\r\n let showValue = false;\r\n\r\n if (flags?.dataIsProcessed) {\r\n if (isAdmin) {\r\n Icon = InfoIcon;\r\n iconColor = '#A9A9A9';\r\n message = 'dadoTratado';\r\n description = 'paraMaisDetalhes';\r\n } else {\r\n showValue = true;\r\n }\r\n }\r\n\r\n if (flags?.dataIsInvalid || flags?.invalidPercentage) {\r\n showValue = false;\r\n if (isAdmin) {\r\n Icon = WarnIcon;\r\n iconColor = '#F3B107';\r\n message = 'dadoIncoerente';\r\n description = 'dadoIncoerenteDesc';\r\n } else {\r\n Icon = InfoIcon;\r\n iconColor = '#A9A9A9';\r\n message = 'naoFoiPossivelColetarDado';\r\n description = 'paraMaisDetalhes';\r\n }\r\n }\r\n\r\n return showValue === true ?
{value}
: (\r\n \r\n {isAdmin && value}\r\n \r\n \r\n \r\n \r\n
\r\n {t(message)}\r\n

{t(description)}

\r\n
\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nexport const OptionsButton = ({\r\n id, isOpen, handleButtonStatusToggle, status, onActivateClick,\r\n}) => (\r\n
\r\n handleButtonStatusToggle(id)}>\r\n {\r\n !status ? \r\n : \r\n }\r\n

{status ? 'Ativada' : 'Pausada'}

\r\n \r\n
\r\n {isOpen && (\r\n <>\r\n \r\n {\r\n onActivateClick(id);\r\n handleButtonStatusToggle(id);\r\n }}\r\n >\r\n {\r\n status ? \r\n : \r\n }\r\n

{!status ? t('ativada') : t('pausada')}

\r\n \r\n
\r\n handleButtonStatusToggle(id)}\r\n aria-label={`Toggle status for ID: ${id}`}\r\n type=\"button\"\r\n />\r\n \r\n )}\r\n
\r\n);\r\n\r\nexport const StringLabel = (value, tooltipId, padding?, fontSize?) => {\r\n const haveInfo = value !== null && value !== undefined && value !== '';\r\n\r\n if (haveInfo) {\r\n return (\r\n
\r\n {value}\r\n
\r\n );\r\n }\r\n\r\n const displayValue = value === null ? '-' : value;\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nexport const LinkedStringLabel = (value, unitId, tooltipId, padding?, fontSize?) => {\r\n const haveInfo = value !== null && value !== undefined && value !== '';\r\n\r\n if (haveInfo) {\r\n return (\r\n
\r\n \r\n {value}\r\n \r\n
\r\n );\r\n }\r\n\r\n const displayValue = value === null ? '-' : value;\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nexport const ValueLabelWithSufix = (value, sufix, tooltipId, padding?, fontSize?) => {\r\n const haveInfo = value !== null && value !== undefined;\r\n const isPositiveValue = value > 0;\r\n const displayValue = formatValue(value, '', sufix);\r\n\r\n return (\r\n
\r\n {haveInfo && isPositiveValue ? displayValue : }\r\n
\r\n );\r\n};\r\n\r\nexport const ValueLabelWithSufixNullable = (value, sufix, tooltipId, padding?, fontSize?) => {\r\n const nullableData = value === null || value === undefined;\r\n const isPositiveValue = value > 0;\r\n const displayValue = formatValue(value, '', sufix);\r\n\r\n if (nullableData) { return (\r\n
-
\r\n ); }\r\n\r\n return (\r\n
\r\n {isPositiveValue ? displayValue : }\r\n
\r\n );\r\n};\r\n\r\nexport const ValueLabelWithPrefixNullable = (value, prefix, tooltipId, padding?, fontSize?) => {\r\n const nullableData = value === null || value === undefined;\r\n const isPositiveValue = value > 0;\r\n const displayValue = formatValue(value, prefix, '');\r\n\r\n if (nullableData) { return (\r\n
-
\r\n ); }\r\n\r\n return (\r\n
\r\n {isPositiveValue ? displayValue : }\r\n
\r\n );\r\n};\r\n\r\nexport const ValueTotalCharged = (row, value, label, prefix, padding?) => {\r\n const isPositiveValue = value > 0;\r\n const displayValue = `R$ ${formatNumberWithFractionDigits(value, { minimum: 2, maximum: 2 })}`;\r\n const nullableData = value == null;\r\n\r\n return (\r\n
\r\n {((row.dataIsInvalid || row.dataIsProcessed || !isPositiveValue) && !nullableData) ? (\r\n \r\n ) : displayValue}\r\n
\r\n );\r\n};\r\n\r\nexport const ValueTrated = (value, label, prefix, sufix, padding?, fontSize?) => {\r\n const auxValue = value[label];\r\n\r\n const displayValue = formatValue(auxValue, prefix, sufix);\r\n let invalidPercentage = false;\r\n\r\n if (label === 'refrigerationConsumption') {\r\n const percentageConsumption = value.refrigerationConsumptionPercentage;\r\n invalidPercentage = percentageConsumption ? !(Math.floor(percentageConsumption) <= 90 && Math.floor(percentageConsumption) >= 10) : true;\r\n }\r\n\r\n return (\r\n
\r\n {(value.dataIsInvalid || value.dataIsProcessed || invalidPercentage) ? (\r\n \r\n ) : displayValue}\r\n
\r\n );\r\n};\r\n\r\nexport const PercentageTableLabel = (value, label, padding?, fontSize?) => {\r\n const auxValue = value[label];\r\n\r\n const displayValue = auxValue === null ? '-' : formatValue(Math.floor(auxValue), '', '%');\r\n const invalidPercentage = auxValue ? !(Math.floor(auxValue) <= 90 && Math.floor(auxValue) >= 10) : true;\r\n\r\n return (\r\n
\r\n {(value.dataIsInvalid || value.dataIsProcessed || invalidPercentage) ? (\r\n \r\n ) : displayValue}\r\n
\r\n );\r\n};\r\n\r\nexport const RankingLabel = (procelRangking) => (procelRangking ? (\r\n \r\n {procelRangking}\r\n °\r\n
\r\n) : (\r\n \r\n -\r\n
\r\n));\r\n\r\nexport const ProcelCategoryLabel = (procelCategory, tickets) => {\r\n const currentTicket = tickets.find((ticket) => ticket.label.toUpperCase() === procelCategory);\r\n\r\n return procelCategory ? (\r\n \r\n
\r\n {procelCategory}\r\n
\r\n ) : (\r\n \r\n -\r\n
\r\n );\r\n};\r\n\r\nexport const VarConsumptionLabel = (row, consumptionPreviousPercentage, label) => {\r\n const profile = getUserProfile();\r\n const isAdmin = profile.permissions?.isAdminSistema;\r\n const value = Number(consumptionPreviousPercentage ?? 0);\r\n const formattedData = value < 0 ? `${Math.floor(value)}%` : `+${Math.floor(value)}%`;\r\n return value ? (\r\n \r\n { (!row.dataIsInvalid || (row.dataIsInvalid && isAdmin)) && (\r\n
\r\n {Number(consumptionPreviousPercentage) > 0 && (\r\n \r\n \r\n \r\n )}\r\n {Number(consumptionPreviousPercentage) < 0 && (\r\n \r\n \r\n \r\n )}\r\n
\r\n )}\r\n

\r\n {((row.dataIsInvalid || row.dataIsProcessed)) ? (\r\n \r\n ) : formattedData}\r\n

\r\n
\r\n ) : (\r\n \r\n -\r\n
\r\n );\r\n};\r\n\r\nconst renderOption = (propsOption, option, _snapshot, className) => (\r\n \r\n
\r\n {option.label.toUpperCase()}\r\n \r\n);\r\n\r\nexport const GenerateEfColumn = (\r\n name: string,\r\n accessor: string,\r\n handleSort: (column: string) => void,\r\n sortBy: { column: string, desc: boolean },\r\n filterOptions?: any,\r\n infoOptions?: {\r\n tooltipId: string;\r\n title: string;\r\n text: string;\r\n },\r\n) => (\r\n \r\n \r\n handleSort(accessor)}>\r\n \r\n \r\n \r\n);\r\n\r\nconst PopoverFilters = (props: {\r\n name, filterOption, infoOptions\r\n}): JSX.Element => {\r\n const [onOpenPopover, setOnOpenPopover] = useState(false);\r\n const { name, filterOption, infoOptions } = props;\r\n\r\n const [options] = useState(filterOption.options.map((option) => ({ value: option.label.toUpperCase(), name: option.label.toUpperCase(), ...option })));\r\n return (\r\n filterOption?.options?.length > 0 && setOnOpenPopover((prevOnOpenPopover) => !prevOnOpenPopover)}>\r\n \r\n \r\n {filterOption?.hasFilter && 0} />}\r\n {name}\r\n\r\n {infoOptions\r\n && (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n

{infoOptions.title}

\r\n \r\n {infoOptions.text}\r\n \r\n
\r\n \r\n
\r\n )}\r\n
\r\n
\r\n {(filterOption?.hasFilter && filterOption?.options?.length > 0) && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

{t('filtroRapido')}

\r\n
\r\n \r\n \r\n {\r\n filterOption.onChangeFilter(name, selectedOption);\r\n }}\r\n />\r\n \r\n \r\n \r\n filterOption.onSelectAllOptions && filterOption.onSelectAllOptions(name, !(options.length === filterOption.value.length))}\r\n />\r\n \r\n {t('selecionarTudo')}\r\n

\r\n
\r\n filterOption.onSelectAllOptions && filterOption.onSelectAllOptions(name, false)}\r\n style={{\r\n fontSize: '10px',\r\n textUnderlineOffset: '4px',\r\n color: 'blue',\r\n paddingRight: '4px',\r\n cursor: 'pointer',\r\n }}\r\n >\r\n {t('limpar')}\r\n

\r\n
\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const ViewModeButton = styled.button<{ isActive: boolean }>`\r\n cursor: pointer;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 90px;\r\n height: 32px;\r\n background-color: #ffffff;\r\n\r\n border: ${(props) => (props.isActive ? '2px solid #363bc4' : 0)};\r\n border-radius: 5px;\r\n\r\n font-size: 12px;\r\n font-weight: 600;\r\n color: ${(props) => (props.isActive ? '#363BC4' : '#7A7A7A')};\r\n\r\n > span {\r\n margin-right: 4px;\r\n }\r\n\r\n & + & {\r\n margin-left: 10px;\r\n }\r\n\r\n transition: filter 0.3s;\r\n\r\n &:hover {\r\n filter: brightness(0.9);\r\n }\r\n`;\r\n\r\nexport const HeaderContainer = styled.div`\r\n display: flex;\r\n flex-wrap: wrap;\r\n flex: 1;\r\n align-items: flex-start;\r\n justify-content: space-between;\r\n\r\n .input-container {\r\n display: flex;\r\n flex-wrap: wrap;\r\n flex: 1;\r\n max-width: fit-content;\r\n\r\n > div {\r\n height: 50px;\r\n min-width: 250px;\r\n }\r\n\r\n > div + div {\r\n height: 50px;\r\n }\r\n }\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\n min-height: 48px;\r\n max-width: 250px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #818181;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n text-decoration: underline;\r\n font-size: 11px;\r\n`;\r\n\r\nexport const StyledSpan = styled.span`\r\n font-size: 1em;\r\n font-weight: bold;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const MosaicContainer = styled.div`\r\n display: flex;\r\n border: 1px solid #D7D7D7;\r\n border-bottom-left-radius: 6px;\r\n border-bottom-right-radius: 6px;\r\n border-top: none;\r\n padding: 30px 40px 30px 40px;\r\n min-height: 300px;\r\n max-height: 515px;\r\n flex-wrap: wrap;\r\n overflow-y: auto;\r\n`;\r\n\r\nexport const TransparentLink = styled(Link)`\r\n color: inherit;\r\n text-decoration: inherit;\r\n &:hover {\r\n color: inherit;\r\n text-decoration: inherit;\r\n }\r\n`;\r\n\r\nexport const TableItemCell = styled.div`\r\n font-size: 12.6px;\r\n margin: 5px 0px;\r\n`;\r\n","import {\r\n Loader,\r\n Input,\r\n ModalWindow,\r\n SelectMultiple,\r\n Button,\r\n Table,\r\n Checkbox,\r\n} from 'components';\r\nimport { Select as SelectNew } from 'components/NewSelect';\r\n\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { DeleteTrashIcon, EditIcon, NewApiIcon } from '~/icons';\r\nimport { t } from 'i18next';\r\nimport {\r\n ButtonOptions, ButtonsRow, Container, ContainerButtonOpen,\r\n ContainerModal,\r\n ContainerModalInputs,\r\n ContainerRow,\r\n Label,\r\n ModalSubTitle,\r\n ModalTitle,\r\n NoApiReturn,\r\n OptionsButtonsTypeAPI,\r\n TableWrapper,\r\n TextLine,\r\n} from './styles';\r\nimport { useEffect, useState } from 'react';\r\nimport { Card } from '~/components/Card';\r\nimport { ModalCancel } from '~/components/Menu/styles';\r\nimport { Flex } from 'reflexbox';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\nimport { colors } from '~/styles/colors';\r\nimport { apiCall } from '~/providers';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { toast } from 'react-toastify';\r\nimport { ColumnTable } from '~/metadata/ColumnTable.model';\r\nimport { GenerateItemColumn } from '~/components/Table';\r\nimport { OptionsButton, StringLabel } from '~/pages/General/TableConfigs';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { TooltipContainer } from '~/components/Table/styles';\r\nimport { TableItemCell } from '~/pages/Analysis/Units/UnitDetail/UnitDetailUtilities/styles';\r\nimport { FaTools } from 'react-icons/fa';\r\nimport Pagination from 'rc-pagination';\r\n\r\nconst notif_type_options = [\r\n t('indiceSaude'),\r\n];\r\n\r\nconst health_status_options = [\r\n t('vermelho'),\r\n t('vermelhoOuLaranja'),\r\n t('diferenteDeVerde'),\r\n];\r\n\r\ntype HealthStatus = 'RED' | 'RED_OR_ORANGE' | 'NOT_GREEN';\r\n\r\nconst StatusCell = (id, units) => (\r\n <>\r\n \r\n \r\n {units.slice(0, 10).map((item) => (\r\n \r\n {item}\r\n \r\n ))}\r\n {units.length > 10 && ...}\r\n \r\n \r\n \r\n {`${units.length} ${t('unidades')}`}\r\n \r\n \r\n);\r\n\r\nexport const ApiIntegrations = (): JSX.Element => {\r\n const profile = getUserProfile();\r\n const isAdminApi = profile.permissions?.API_MANAGEMENT;\r\n const isDesktop = window.matchMedia('(min-width: 768px)');\r\n const [isModalOpen, setIsModalOpen] = useState(false);\r\n const [openButton, setOpenButton] = useState(false);\r\n const [isEditModal, setIsEditModal] = useState(false);\r\n const [isIdEditApi, setIsIdEditApi] = useState();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n pagination: {\r\n itemsPerPage: 10,\r\n totalItems: 0,\r\n currentPage: 1,\r\n },\r\n currentSort: {\r\n field: 'UPDATED_AT',\r\n type: 'desc',\r\n },\r\n selected_is_test: false as boolean,\r\n selected_client: null as null|{ NAME: string, CLIENT_ID: number },\r\n selected_ids_apis: [] as number[],\r\n selected_status_open: [] as number[],\r\n selected_notif_type: null as 'HEALTH_INDEX' | null,\r\n selected_type: false as boolean,\r\n title_api: '' as string,\r\n selected_health_status: null as HealthStatus | null,\r\n trigger_id: '' as string,\r\n comboOpts: {\r\n clients: [] as { NAME: string, CLIENT_ID: number }[],\r\n units: [] as { UNIT_NAME: string, UNIT_ID: number, checked: boolean }[],\r\n },\r\n filtersData: {} as any,\r\n selectedFilters: {\r\n clients: {\r\n label: t('cliente'),\r\n values: [],\r\n },\r\n nome: {\r\n label: t('nome'),\r\n values: [],\r\n },\r\n trigger_id: {\r\n label: t('trigger_id'),\r\n values: [],\r\n },\r\n unit: {\r\n label: t('unidades'),\r\n values: [],\r\n },\r\n health_status: {\r\n label: t('condicao'),\r\n values: [],\r\n },\r\n status: {\r\n label: t('status'),\r\n values: [],\r\n },\r\n notify_condition: {\r\n label: t('modulo'),\r\n values: [],\r\n },\r\n is_test: {\r\n label: t('emteste'),\r\n values: [],\r\n },\r\n } as any,\r\n filterAll: {\r\n clients: false,\r\n nome: false,\r\n trigger_id: false,\r\n unit: false,\r\n health_status: false,\r\n status: false,\r\n notify_condition: false,\r\n is_test: false,\r\n },\r\n apis: [] as {\r\n ID: number;\r\n CLIENT_ID: number;\r\n CLIENT_NAME: string;\r\n HEALTH_STATUS: string;\r\n INTEGRATION_TYPE: string;\r\n ApiUnitRelations: {\r\n UNIT_NAME: string\r\n UNIT_ID: number;\r\n }[];\r\n NOTIFY_CONDITION: string;\r\n STATUS: string;\r\n TITLE: string;\r\n TRIGGER_ID: string;\r\n }[],\r\n columnSort: {\r\n ID: {\r\n column: 'ID',\r\n desc: false,\r\n },\r\n CLIENT_NAME: {\r\n column: 'CLIENT_NAME',\r\n desc: false,\r\n },\r\n TITLE: {\r\n column: 'TITLE',\r\n desc: false,\r\n },\r\n TRIGGER_ID: {\r\n column: 'TRIGGER_ID',\r\n desc: false,\r\n },\r\n UNIT_NAME: {\r\n column: 'UNIT_NAME',\r\n desc: false,\r\n },\r\n NOTIFY_CONDITION: {\r\n column: 'NOTIFY_CONDITION',\r\n desc: false,\r\n },\r\n HEALTH_STATUS: {\r\n column: 'HEALTH_STATUS',\r\n desc: false,\r\n },\r\n STATUS: {\r\n column: 'STATUS',\r\n desc: false,\r\n },\r\n IS_TEST: {\r\n column: 'IS_TEST',\r\n desc: false,\r\n },\r\n },\r\n loading: true,\r\n };\r\n return state;\r\n });\r\n\r\n const handleModalToggle = async (isOpen: boolean, isEdit: boolean, infos?: {\r\n id: number,\r\n is_test: boolean,\r\n client_id: number,\r\n client_name: string,\r\n health_status: HealthStatus,\r\n trigger_id: string,\r\n title_api: string,\r\n notif_type: 'HEALTH_INDEX',\r\n unit_ids: number[]\r\n }) => {\r\n setIsEditModal(isEdit);\r\n setIsModalOpen(isOpen);\r\n if (infos) {\r\n setIsIdEditApi(infos.id);\r\n state.selected_client = {\r\n CLIENT_ID: infos.client_id,\r\n NAME: infos.client_name,\r\n };\r\n state.selected_is_test = infos.is_test;\r\n state.selected_health_status = infos.health_status;\r\n state.trigger_id = infos.trigger_id;\r\n state.title_api = infos.title_api;\r\n state.selected_notif_type = infos.notif_type;\r\n\r\n const list = await apiCall('/clients/get-units-list', { CLIENT_ID: state.selected_client?.CLIENT_ID });\r\n const unitIdsToCheck = infos.unit_ids;\r\n\r\n state.comboOpts.units = list.map((item) => ({\r\n UNIT_ID: item.UNIT_ID,\r\n UNIT_NAME: item.UNIT_NAME,\r\n checked: !!unitIdsToCheck.includes(item.UNIT_ID),\r\n }));\r\n\r\n render();\r\n }\r\n };\r\n\r\n const handleButtonToggle = () => {\r\n setOpenButton((prev) => !prev);\r\n };\r\n\r\n const handleButtonStatusToggle = (id) => {\r\n const isAlreadySelected = state.selected_status_open.includes(id);\r\n const updatedSelectedIds = isAlreadySelected\r\n ? []\r\n : [id];\r\n setState({\r\n selected_status_open: updatedSelectedIds,\r\n });\r\n };\r\n\r\n const handleModalClose = () => {\r\n state.selected_client = null;\r\n state.comboOpts.units = state.comboOpts.units.map((item) => ({ UNIT_ID: item.UNIT_ID, UNIT_NAME: item.UNIT_NAME, checked: false }));\r\n state.selected_health_status = null;\r\n state.selected_notif_type = null;\r\n state.title_api = '';\r\n state.trigger_id = '';\r\n state.selected_is_test = false;\r\n setIsModalOpen(false);\r\n render();\r\n };\r\n\r\n function onSelectedNotfiType(item) {\r\n if (item === t('indiceSaude')) {\r\n setState({\r\n selected_notif_type: 'HEALTH_INDEX',\r\n });\r\n }\r\n render();\r\n }\r\n\r\n const optionSelectedNotifType = () => {\r\n if (state.selected_notif_type === 'HEALTH_INDEX') {\r\n return t('indiceSaude');\r\n }\r\n return '';\r\n };\r\n\r\n function onSelectedHealthStatus(item) {\r\n if (item === t('vermelho')) {\r\n setState({\r\n selected_health_status: 'RED',\r\n });\r\n } else if (item === t('vermelhoOuLaranja')) {\r\n setState({\r\n selected_health_status: 'RED_OR_ORANGE',\r\n });\r\n } else if (item === t('diferenteDeVerde')) {\r\n setState({\r\n selected_health_status: 'NOT_GREEN',\r\n });\r\n }\r\n render();\r\n }\r\n\r\n const optionSelectedHealthStatus = () => {\r\n if (state.selected_health_status === 'RED') {\r\n return t('vermelho');\r\n }\r\n if (state.selected_health_status === 'RED_OR_ORANGE') {\r\n return t('vermelhoOuLaranja');\r\n }\r\n if (state.selected_health_status === 'NOT_GREEN') {\r\n return t('diferenteDeVerde');\r\n }\r\n return '';\r\n };\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n\r\n async function handleChangePagination(current) {\r\n state.pagination.currentPage = current;\r\n const filterParams = setFiltersAndReturn(state);\r\n await getApisList(filterParams);\r\n render();\r\n }\r\n\r\n async function fetchData() {\r\n try {\r\n await apiCall('/clients/get-clients-list', {}).then(({ list }) => {\r\n state.comboOpts.clients = list;\r\n });\r\n } catch (e) {\r\n toast.error(t('erroBuscarListaClientes'));\r\n }\r\n try {\r\n const { apis, totalItems } = await apiCall('/mainservice/api-registries/get-apis', { limit: state.pagination.itemsPerPage, page: state.pagination.currentPage });\r\n const apisComboOpts = await apiCall('/mainservice/api-registries/get-combo-opts');\r\n setState({\r\n apis,\r\n });\r\n state.pagination.totalItems = totalItems;\r\n state.filtersData = {\r\n clients: apisComboOpts.CLIENTS.map((item) => ({\r\n name: item.CLIENT_NAME,\r\n value: item.CLIENT_ID,\r\n })),\r\n notify_condition: [{\r\n name: t('preditivo'),\r\n value: t('preditivo'),\r\n }],\r\n nome: apisComboOpts.TITLES.map((item) => ({\r\n name: item,\r\n value: item,\r\n })),\r\n trigger_id: apisComboOpts.TRIGGER_IDS.map((item) => ({\r\n name: item,\r\n value: item,\r\n })),\r\n health_status: [\r\n {\r\n name: t('vermelho'),\r\n value: 'RED',\r\n },\r\n {\r\n name: t('vermelhoOuLaranja'),\r\n value: 'RED_OR_ORANGE',\r\n },\r\n {\r\n name: t('diferenteDeVerde'),\r\n value: 'NOT_GREEN',\r\n },\r\n ],\r\n unit: apisComboOpts.ApiUnitRelations.map((item) => ({\r\n name: item.UNIT_NAME,\r\n value: item.UNIT_ID,\r\n })),\r\n status: [\r\n {\r\n name: t('ativada'),\r\n value: 1,\r\n }, {\r\n name: t('pausada'),\r\n value: 0,\r\n },\r\n ],\r\n is_test: [\r\n {\r\n name: t('sim'),\r\n value: 1,\r\n }, {\r\n name: t('nao'),\r\n value: 0,\r\n },\r\n ],\r\n };\r\n } catch (e) {\r\n toast.error(t('erroBuscarDadosApis'));\r\n }\r\n setState({ loading: false });\r\n render();\r\n }\r\n\r\n async function onSelectClient(item) {\r\n try {\r\n state.selected_client = { NAME: item.name, CLIENT_ID: item.value };\r\n const list = await apiCall('/clients/get-units-list', { CLIENT_ID: state.selected_client?.CLIENT_ID });\r\n state.comboOpts.units = list.map((item) => ({ UNIT_ID: item.UNIT_ID, UNIT_NAME: item.UNIT_NAME, checked: false }));\r\n\r\n render();\r\n } catch (err) {\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n\r\n function selectAllOptions(list) {\r\n const itemsToCheck = list;\r\n\r\n const shouldBeChecked = itemsToCheck.some((el) => !el.checked);\r\n\r\n for (const elem of itemsToCheck) {\r\n elem.checked = shouldBeChecked;\r\n }\r\n\r\n render();\r\n }\r\n\r\n function handleSelectItem(item, list) {\r\n if (item) {\r\n item.checked = !item.checked;\r\n } else {\r\n for (const elem of list) {\r\n elem.checked = false;\r\n }\r\n }\r\n\r\n render();\r\n }\r\n\r\n function getUnitRelations(): { unitName: string; unitId: number }[] | void {\r\n if (state.selected_is_test) {\r\n const selectedUnits = state.comboOpts.units.filter((unit) => unit.checked);\r\n\r\n if (selectedUnits.length === 0) {\r\n toast.error(t('erroAoCadastrarApiTesteSemUnidade'));\r\n return;\r\n }\r\n\r\n return selectedUnits.map((unit) => ({\r\n unitName: unit.UNIT_NAME,\r\n unitId: unit.UNIT_ID,\r\n }));\r\n }\r\n\r\n return [];\r\n }\r\n\r\n async function handleCreateNewApi() {\r\n if (!state.selected_client?.CLIENT_ID\r\n || !state.selected_client.NAME\r\n || !state.selected_health_status\r\n || !state.trigger_id\r\n ) {\r\n return toast.error(t('confiraCampos'));\r\n }\r\n\r\n const unitRelations = getUnitRelations();\r\n\r\n if (!unitRelations) {\r\n return;\r\n }\r\n\r\n if (!isEditModal) {\r\n try {\r\n const existingApi = state.apis?.find((api) => api.TITLE === state.title_api);\r\n if (existingApi) {\r\n return toast.error(t('nomeDaApiUtilizada'));\r\n }\r\n\r\n await apiCall('/mainservice/api-registries', {\r\n clientId: state.selected_client?.CLIENT_ID,\r\n clientName: state.selected_client?.NAME,\r\n title: state.title_api,\r\n integrationType: 'GOOGLE',\r\n triggerId: state.trigger_id,\r\n notifyCondition: 'HEALTH_INDEX',\r\n healthStatus: state.selected_health_status,\r\n unitRelations: unitRelations || [],\r\n isTest: state.selected_is_test,\r\n });\r\n toast.success(t('registroApiCriadoSucesso'));\r\n fetchData();\r\n handleModalClose();\r\n } catch (error) {\r\n toast.error(t('erroCriarRegistroApi'));\r\n }\r\n } else {\r\n try {\r\n if (isIdEditApi) {\r\n await apiCall('/mainservice/api-registries/update-api', {\r\n id: isIdEditApi,\r\n body: {\r\n clientId: state.selected_client?.CLIENT_ID,\r\n clientName: state.selected_client?.NAME,\r\n title: state.title_api,\r\n integrationType: 'GOOGLE',\r\n triggerId: state.trigger_id,\r\n notifyCondition: 'HEALTH_INDEX',\r\n healthStatus: state.selected_health_status,\r\n unitRelations: unitRelations || [],\r\n isTest: state.selected_is_test,\r\n },\r\n });\r\n fetchData();\r\n handleModalClose();\r\n toast.success(t('apiAlteradaSucesso'));\r\n } else {\r\n toast.error(t('erroAtualizarApi'));\r\n }\r\n } catch (error) {\r\n toast.error(t('erroAtualizarApi'));\r\n }\r\n }\r\n }\r\n\r\n const parseHealthStatusColumn = (value: string) => {\r\n if (value === 'RED') {\r\n return `ficar ${t('vermelho')}`.toLowerCase();\r\n }\r\n if (value === 'RED_OR_ORANGE') {\r\n return `ficar ${t('vermelhoOuLaranja')}`.toLowerCase();\r\n }\r\n if (value === 'NOT_GREEN') {\r\n return `for ${t('diferenteDeVerde')}`.toLowerCase();\r\n }\r\n };\r\n\r\n const handleCheckboxChange = (id: number) => {\r\n const isAlreadySelected = state.selected_ids_apis.includes(id);\r\n const updatedSelectedIds = isAlreadySelected\r\n ? state.selected_ids_apis.filter((item) => item !== id)\r\n : [...state.selected_ids_apis, id];\r\n setState({\r\n selected_ids_apis: updatedSelectedIds,\r\n });\r\n };\r\n\r\n const handleSelectAll = (allIds: number[]) => {\r\n if (state.selected_ids_apis.length === allIds.length) {\r\n setState({\r\n selected_ids_apis: [],\r\n });\r\n } else {\r\n setState({\r\n selected_ids_apis: allIds,\r\n });\r\n }\r\n };\r\n\r\n const verifyChecked = (apis: number[], data) => (apis.length > 0 && apis.length === data.length);\r\n\r\n const filtersMappings = {\r\n [t('cliente')]: { filterKey: 'clients', filterAllKey: 'clients' },\r\n 'Trigger ID': { filterKey: 'trigger_id', filterAllKey: 'trigger_id' },\r\n [t('unidades')]: { filterKey: 'unit', filterAllKey: 'unit' },\r\n [t('status')]: { filterKey: 'status', filterAllKey: 'status' },\r\n [t('condicao')]: { filterKey: 'health_status', filterAllKey: 'health_status' },\r\n [t('modulo')]: { filterKey: 'notify_condition', filterAllKey: 'notify_condition' },\r\n [t('nome')]: { filterKey: 'nome', filterAllKey: 'nome' },\r\n [t('health_status')]: { filterKey: 'health_status', filterAllKey: 'health_status' },\r\n [t('emteste')]: { filterKey: 'is_test', filterAllKey: 'is_test' },\r\n };\r\n\r\n const handleSelectFiltersAll = async (name, filterAll) => {\r\n const mapping = filtersMappings[name];\r\n\r\n if (mapping) {\r\n state.selectedFilters[mapping.filterKey].values = filterAll ? state.filtersData[mapping.filterKey] : [];\r\n state.filterAll[mapping.filterAllKey] = filterAll;\r\n }\r\n\r\n await handleGetFilters();\r\n render();\r\n };\r\n\r\n const handleChangeFilters = async (name, filters) => {\r\n switch (name) {\r\n case t('cliente'):\r\n state.selectedFilters.clients.values = filters.map((filter) => state.filtersData.clients.find((filterData) => filterData.value === filter));\r\n break;\r\n case t('nome'):\r\n state.selectedFilters.nome.values = filters.map((filter) => state.filtersData.nome.find((filterData) => filterData.value === filter));\r\n break;\r\n case 'Trigger ID':\r\n state.selectedFilters.trigger_id.values = filters.map((filter) => state.filtersData.trigger_id.find((filterData) => filterData.value === filter));\r\n break;\r\n case t('unidades'):\r\n state.selectedFilters.unit.values = filters.map((filter) => state.filtersData.unit.find((filterData) => filterData.value === filter));\r\n break;\r\n case t('condicao'):\r\n state.selectedFilters.health_status.values = filters.map((filter) => state.filtersData.health_status.find((filterData) => filterData.value === filter));\r\n break;\r\n case t('modulo'):\r\n state.selectedFilters.notify_condition.values = filters.map((filter) => state.filtersData.notify_condition.find((filterData) => filterData.value === filter));\r\n break;\r\n case t('status'):\r\n if (filters.length === 1) {\r\n state.selectedFilters.status.values = [filters[0]];\r\n } else if (filters.length > 1) {\r\n state.selectedFilters.status.values = [filters[filters.length - 1]];\r\n } else {\r\n state.selectedFilters.status.values = [];\r\n }\r\n break;\r\n case t('health_status'):\r\n state.selectedFilters.health_status.values = filters.map((filter) => state.filtersData.health_status.find((filterData) => filterData.value === filter));\r\n break;\r\n case t('emteste'):\r\n if (filters.length === 1) {\r\n state.selectedFilters.is_test.values = [filters[0]];\r\n } else if (filters.length > 1) {\r\n state.selectedFilters.is_test.values = [filters[filters.length - 1]];\r\n } else {\r\n state.selectedFilters.is_test.values = [];\r\n }\r\n break;\r\n\r\n default:\r\n break;\r\n }\r\n state.pagination.currentPage = 1;\r\n await handleGetFilters();\r\n render();\r\n };\r\n\r\n const handleGetFilters = async () => {\r\n try {\r\n const filterParams = setFiltersAndReturn(state);\r\n await getApisList(filterParams);\r\n } catch (e) {\r\n toast.error(t('naoFoiPossivelBuscarInformacoesFiltros'));\r\n }\r\n render();\r\n };\r\n\r\n const columnsTable = [\r\n {\r\n Header: (props) => (\r\n {\r\n const allIds = props.data.map((item) => item.ID);\r\n handleSelectAll(allIds);\r\n }}\r\n checked={verifyChecked(state.selected_ids_apis, props.data)}\r\n />\r\n ),\r\n accessor: 'ID',\r\n disableSortBy: false,\r\n Cell: (props) => (\r\n handleCheckboxChange(props.row.original.ID)}\r\n key={props.row.original.ID}\r\n />\r\n ),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('cliente'), 'CLIENT_NAME', handleSortData, state.columnSort.CLIENT_NAME, {\r\n hasFilter: true,\r\n options: state.filtersData.clients,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.clients?.length === state.selectedFilters.clients.length,\r\n value: state.selectedFilters.clients.values,\r\n })\r\n ),\r\n accessor: 'CLIENT_NAME',\r\n disableSortBy: true,\r\n Cell: (props) => StringLabel(props.row.original.CLIENT_NAME, 'CLIENT_NAME'),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('emteste'), 'IS_TEST', handleSortData, state.columnSort.IS_TEST, {\r\n hasFilter: true,\r\n options: state.filtersData.is_test,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.is_test?.length === state.selectedFilters.is_test.length,\r\n value: state.selectedFilters.is_test.values,\r\n })\r\n ),\r\n accessor: 'IS_TEST',\r\n disableSortBy: true,\r\n Cell: (props) => (props.row.original.IS_TEST ?
:
),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('modulo'), 'NOTIFY_CONDITION', handleSortData, state.columnSort.NOTIFY_CONDITION, {\r\n hasFilter: true,\r\n options: state.filtersData.notify_condition,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.notify_condition?.length === state.selectedFilters.notify_condition.length,\r\n value: state.selectedFilters.notify_condition.values,\r\n })\r\n ),\r\n accessor: 'NOTIFY_CONDITION',\r\n disableSortBy: true,\r\n Cell: () => StringLabel(t('preditivo'), 'TITLE'),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('nome'), 'TITLE', handleSortData, state.columnSort.TITLE, {\r\n hasFilter: true,\r\n options: state.filtersData.nome,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.nome?.length === state.selectedFilters.nome.length,\r\n value: state.selectedFilters.nome.values,\r\n })\r\n ),\r\n accessor: 'TITLE',\r\n disableSortBy: true,\r\n Cell: (props) => StringLabel(props.row.original.TITLE, 'TITLE'),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn('Trigger ID', 'TRIGGER_ID', handleSortData, state.columnSort.TRIGGER_ID, {\r\n hasFilter: true,\r\n options: state.filtersData.trigger_id,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.trigger_id?.length === state.selectedFilters.trigger_id.length,\r\n value: state.selectedFilters.trigger_id.values,\r\n })\r\n ),\r\n accessor: 'TRIGGER_ID',\r\n disableSortBy: true,\r\n Cell: (props) => StringLabel(props.row.original.TRIGGER_ID, 'TRIGGER_ID'),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('condicao'), 'HEALTH_STATUS', handleSortData, state.columnSort.HEALTH_STATUS, {\r\n hasFilter: true,\r\n options: state.filtersData.health_status,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.health_status?.length === state.selectedFilters.health_status.length,\r\n value: state.selectedFilters.health_status.values,\r\n })\r\n ),\r\n accessor: 'HEALTH_STATUS',\r\n disableSortBy: true,\r\n Cell: (props) => StringLabel(`${t('indiceDeSaude')} ${parseHealthStatusColumn(props.row.original.HEALTH_STATUS)}`, 'HEALTH_STATUS'),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('unidades'), 'UNIT_NAME', handleSortData, state.columnSort.UNIT_NAME, {\r\n hasFilter: true,\r\n options: state.filtersData.unit,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.unit?.length === state.selectedFilters.unit.length,\r\n value: state.selectedFilters.unit.values,\r\n })\r\n ),\r\n accessor: 'UNITS',\r\n disableSortBy: true,\r\n Cell: (props) => (\r\n props.row.original.ApiUnitRelations.length > 0\r\n ? StatusCell(props.row.original.ID, props.row.original.ApiUnitRelations.map((item) => item.UNIT_NAME))\r\n : StringLabel(`${t('todas')}`, 'UNIT_IDS')\r\n ),\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('status'), 'STATUS', handleSortData, state.columnSort.STATUS, {\r\n hasFilter: true,\r\n options: state.filtersData.status,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectFiltersAll,\r\n filterAll: state.filtersData.status?.length === state.selectedFilters.status.values.length,\r\n value: state.selectedFilters.status.values,\r\n })),\r\n accessor: 'STATUS',\r\n disableSortBy: false,\r\n Cell: (props) => {\r\n const id = props.row.original.ID;\r\n const status = props.row.original.STATUS;\r\n return (\r\n handleUpdate(id, status)}\r\n />\r\n );\r\n },\r\n },\r\n {\r\n Header: () => (GenerateItemColumn(t('acoes'), 'ID', () => {}, state.columnSort.ID, {\r\n hasFilter: false,\r\n }, true)),\r\n accessor: 'CLIENT_ID',\r\n disableSortBy: false,\r\n Cell: (props) => {\r\n const infos = props.row.original;\r\n return (\r\n \r\n {\r\n handleModalToggle(true, true, {\r\n id: infos.ID,\r\n is_test: infos.IS_TEST,\r\n client_id: infos.CLIENT_ID,\r\n client_name: infos.CLIENT_NAME,\r\n health_status: infos.HEALTH_STATUS,\r\n title_api: infos.TITLE,\r\n trigger_id: infos.TRIGGER_ID,\r\n notif_type: 'HEALTH_INDEX',\r\n unit_ids: infos.ApiUnitRelations.map((item) => item.UNIT_ID),\r\n });\r\n }}\r\n >\r\n \r\n \r\n \r\n );\r\n },\r\n },\r\n ];\r\n\r\n async function handleUpdate(id, status) {\r\n if (state.selected_status_open[0] === id) {\r\n try {\r\n await apiCall('/mainservice/api-registries/update-api', {\r\n id: state.selected_status_open[0],\r\n body: {\r\n status: !status,\r\n },\r\n });\r\n\r\n fetchData();\r\n state.selected_ids_apis = [];\r\n toast.success(t('statusAlteradoSucesso'));\r\n } catch (error) {\r\n toast.error(t('erroMudarStatus'));\r\n }\r\n }\r\n }\r\n\r\n async function handleDelete() {\r\n if (state.selected_ids_apis && state.selected_ids_apis.length > 0) {\r\n try {\r\n await apiCall('/mainservice/api-registries/delete-apis', {\r\n ids: state.selected_ids_apis,\r\n });\r\n fetchData();\r\n state.selected_ids_apis = [];\r\n toast.success(t('apisExcluidasSucesso'));\r\n } catch (error) {\r\n toast.error('erroExcluirApi');\r\n }\r\n } else {\r\n toast.warn(t('nenhumaApiSelecionadaExclusão'));\r\n }\r\n }\r\n\r\n function sortDataColumnKey(column) {\r\n Object.keys(state.columnSort).forEach((columnKey) => {\r\n if (columnKey === column) {\r\n state.columnSort[columnKey] = {\r\n column: state.columnSort[columnKey].column,\r\n desc: !state.columnSort[columnKey].desc,\r\n };\r\n } else {\r\n state.columnSort[columnKey] = {\r\n column: state.columnSort[columnKey].column,\r\n desc: false,\r\n };\r\n }\r\n });\r\n\r\n state.currentSort = {\r\n field: state.columnSort[column].column,\r\n type: state.columnSort[column].desc ? 'desc' : 'asc',\r\n };\r\n }\r\n\r\n const handleSortData = async (column) => {\r\n sortDataColumnKey(column);\r\n const filterParams = setFiltersAndReturn(state);\r\n await getApisList(filterParams);\r\n render();\r\n };\r\n\r\n const getApisList = async (filterParams) => {\r\n try {\r\n const sortParams = {} as {orderByField: string, orderByType: string };\r\n const filterParamsSet = filterParams;\r\n if (state.currentSort.field && state.currentSort.type) {\r\n sortParams.orderByField = state.currentSort.field;\r\n sortParams.orderByType = state.currentSort.type;\r\n }\r\n const { apis, totalItems } = await apiCall('/mainservice/api-registries/get-apis', { limit: state.pagination.itemsPerPage, page: state.pagination.currentPage, ...filterParamsSet });\r\n const listApis = apis.map((item) => ({ ...item, toogleAsset: false }));\r\n setState({\r\n apis: listApis,\r\n });\r\n state.pagination.totalItems = totalItems;\r\n render();\r\n } catch (error) {\r\n toast.error(t('houveErroBuscandoAsAnalises'));\r\n render();\r\n }\r\n };\r\n\r\n const setFiltersAndReturn = (state) => {\r\n const filterParams = {\r\n clientIds: state.selectedFilters.clients.values?.map((filter) => filter.value),\r\n title: state.selectedFilters.nome.values?.map((filter) => filter.value),\r\n triggerId: state.selectedFilters.trigger_id.values?.map((filter) => filter.value),\r\n unitIds: state.selectedFilters.unit.values?.map((filter) => filter.value),\r\n status: state.selectedFilters.status.values[0] === 1 ? true : state.selectedFilters.status.values[0] === 0 ? false : null,\r\n healthStatus: state.selectedFilters.health_status.values?.map((filter) => filter.value),\r\n isTest: state.selectedFilters.is_test.values[0] === 1 ? true : state.selectedFilters.is_test.values[0] === 0 ? false : null,\r\n orderDirection: state.currentSort.type.toLowerCase(),\r\n orderBy: state.currentSort.field,\r\n };\r\n return filterParams;\r\n };\r\n\r\n const filteredColumnsData: (boolean | ColumnTable)[] = columnsTable;\r\n\r\n const [columnsData] = useState<(boolean | ColumnTable)[]>(filteredColumnsData);\r\n\r\n return (\r\n <>\r\n {state.loading && }\r\n {(!state.loading) && (\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n

{t('novaApi')}

\r\n
\r\n {openButton && (\r\n <>\r\n setOpenButton(false)}>\r\n {\r\n handleModalToggle(true, false);\r\n handleButtonToggle();\r\n }}\r\n >\r\n {t('moduloPreditivo')}\r\n \r\n \r\n\r\n \r\n \r\n )}\r\n
\r\n { handleDelete(); }}\r\n disabled={state.selected_ids_apis.length <= 0}\r\n aria-disabled={state.selected_ids_apis.length <= 0}\r\n >\r\n \r\n

{t('excluir')}

\r\n \r\n
\r\n
\r\n\r\n \r\n {\r\n !state.apis ? \r\n : (\r\n \r\n \r\n \r\n )\r\n }\r\n \r\n \r\n handleChangePagination(current)}\r\n />\r\n \r\n\r\n {isModalOpen && (\r\n \r\n \r\n \r\n \r\n {t('novaApi')}\r\n \r\n {t('moduloPreditivo')}\r\n \r\n \r\n {isAdminApi && (\r\n { state.selected_is_test = !state.selected_is_test; render(); }}\r\n />\r\n )}\r\n \r\n {t('geral')}\r\n \r\n \r\n
\r\n \r\n ({ value: item.CLIENT_ID, name: item.NAME }))}\r\n value={state.selected_client?.CLIENT_ID.toString()}\r\n search\r\n filterOptions={fuzzySearch}\r\n onChange={(value, name) => { onSelectClient(name); }}\r\n placeholder={t('nomeDoCliente')}\r\n data-test-id=\"nomeCliente\"\r\n />\r\n
\r\n {state.selected_is_test && (\r\n
\r\n x.checked)}\r\n haveSelectAll\r\n selectAllOptions={() => { selectAllOptions(state.comboOpts.units); }}\r\n name=\"unidades\"\r\n onSelect={(item) => handleSelectItem(item, state.comboOpts.units)}\r\n placeholder={`${t('unidades')}`}\r\n disabled={!state.selected_client?.CLIENT_ID}\r\n styleBox={{ border: '1px solid #818181', height: '55px' }}\r\n position=\"left\"\r\n />\r\n
\r\n )}\r\n
\r\n \r\n {\r\n onSelectedNotfiType(e);\r\n }}\r\n notNull\r\n value={optionSelectedNotifType()}\r\n placeholder={t('selecionar')}\r\n data-test-id=\"notif_type\"\r\n />\r\n {\r\n onSelectedHealthStatus(e);\r\n }}\r\n value={optionSelectedHealthStatus()}\r\n notNull\r\n placeholder={t('selecionar')}\r\n data-test-id=\"health_status\"\r\n />\r\n\r\n \r\n \r\n \r\n {\r\n setState({\r\n title_api: e.target.value,\r\n });\r\n }}\r\n />\r\n \r\n \r\n {\r\n setState({\r\n trigger_id: e.target.value,\r\n });\r\n }}\r\n data-test-id=\"trigger_id\"\r\n />\r\n \r\n \r\n \r\n
\r\n
\r\n

{t('tipoDeIntegracao')}

\r\n Google\r\n { setState({\r\n selected_type: state.selected_type, // Opção desabilitada Celsius\r\n }); }}\r\n />\r\n Celsius\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n {t('botaoCancelar')}\r\n \r\n \r\n \r\n \r\n )}\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nconst NoDataInTable = () => (\r\n \r\n \r\n {t('listagemDeApi')}\r\n
\r\n

\r\n {t('paraGerarListagemCadastrarNovaConfiguracao')}\r\n

\r\n
\r\n
\r\n);\r\n","import { useRef } from 'react';\r\n\r\nimport queryString from 'query-string';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory } from 'react-router';\r\nimport { Headers2 } from 'pages/Analysis/Header';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport { CoolAutomation } from './CoolAutomation';\r\nimport { DRIUnits } from './DRIUnits';\r\nimport { GreenAntMeters } from './GreenAntMeters';\r\nimport { Water } from './Water';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { ApiIntegrations } from './ApiIntegrations';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nexport const Integrations = (): JSX.Element => {\r\n const profile = getUserProfile();\r\n const isAdmin = profile.permissions?.isAdminSistema;\r\n const history = useHistory();\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n const allTabs = [\r\n {\r\n title: 'API',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'api' })}`,\r\n isActive: isAdmin && (queryPars.aba === 'api') || isAdmin && (!queryPars.aba),\r\n visible: isAdmin,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'GreenAnt',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'greenant' })}`,\r\n isActive: (queryPars.aba === 'greenant') || !isAdmin && (!queryPars.aba),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'CoolAutomation',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'coolautomation' })}`,\r\n isActive: (queryPars.aba === 'coolautomation'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'Água',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'water' })}`,\r\n isActive: (queryPars.aba === 'water'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'DRI',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'dri' })}`,\r\n isActive: (queryPars.aba === 'dri'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n ];\r\n const tabs = allTabs.filter((x) => x.visible);\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Integrações\r\n \r\n \r\n
\r\n \r\n
\r\n {(allTabs[0].isActive) && }\r\n {(allTabs[1].isActive) && }\r\n {(allTabs[2].isActive) && }\r\n {(allTabs[3].isActive) && }\r\n {(allTabs[4].isActive) && }\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('Integrations', 'component')(Integrations);\r\n","import styled from 'styled-components';\r\n\r\nimport {\r\n Button,\r\n} from '~/components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\n\r\nexport const TableHead = styled.thead`\r\n`;\r\n\r\nexport const TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\n\r\nexport const HeaderCell = styled.th`\r\n text-align: center;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\n\r\nexport const DataCell = styled.td`\r\n text-align: center;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem;\r\n white-space: pre-wrap;\r\n`;\r\n\r\nexport const Row = styled.tr`\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\n\r\nexport const HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n\r\nexport const SimpleButton = styled(Button)`\r\n width: initial;\r\n padding: 8px 15px;\r\n margin: 7px 7px;\r\n`;\r\n","import { useState, useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n Input, ModalWindow, ActionButton, Button, Loader,\r\n Select,\r\n} from 'components';\r\nimport parseDecimalNumber from 'helpers/parseDecimalNumber';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport {\r\n AddIcon, ArrowBackIcon, DeleteOutlineIcon, EditIcon, SaveIcon,\r\n} from 'icons';\r\nimport { apiCall } from 'providers';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n TableContainer,\r\n TableHead,\r\n TableBody,\r\n HeaderCell,\r\n DataCell,\r\n Row,\r\n HeaderRow,\r\n SimpleButton,\r\n} from './styles';\r\n\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { t } from 'i18next';\r\nimport { AxiosError } from 'axios';\r\n\r\nexport const SensorsConfig = (): JSX.Element => {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n curvesList: [] as { ID: number; SENSOR_ID: string; MULT_QUAD: number; MULT_LIN: number; OFST: number; MIN_FIRMWARE_VERSION: string; }[],\r\n validSensors: [] as { SENSOR_ID: string; SENSOR_NAME: string; }[],\r\n dacFwVers: [] as string[],\r\n openModal: false,\r\n newSensor: false,\r\n selectedSensor: null,\r\n loading: true,\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, [state.curvesList?.length, state.validSensors?.length]);\r\n\r\n async function fetchData() {\r\n try {\r\n setState({ loading: true });\r\n const curvesList = (await apiCall('/config/get-pressure-curves', {})).list ?? [];\r\n const validSensors = (await apiCall('/config/get-pressure-sensors', {})).list ?? [];\r\n const fwVers = (\r\n (await apiCall('/devs/get-registered-firmware-versions', {}))\r\n .list\r\n .map((x) => ([\r\n x.fwVers,\r\n {\r\n vMajor: x.versionNumber?.vMajor ?? 0,\r\n vMinor: x.versionNumber?.vMinor ?? 0,\r\n vPatch: x.versionNumber?.vPatch ?? 0,\r\n }] as [string, { vMajor: number, vMinor: number, vPatch: number }]\r\n ))\r\n );\r\n const fwVersUnique = Object.fromEntries(fwVers);\r\n const dacFwVers = Object.entries(fwVersUnique).sort((left, right) => (\r\n left[1].vMajor - right[1].vMajor\r\n || left[1].vMinor - right[1].vMinor\r\n || left[1].vPatch - right[1].vPatch\r\n )).map((x) => x[0]);\r\n\r\n curvesList.sort((left, right) => {\r\n if (left.SENSOR_ID.toLowerCase() < right.SENSOR_ID.toLowerCase()) {\r\n return -1;\r\n }\r\n if (left.SENSOR_ID.toLowerCase() > right.SENSOR_ID.toLowerCase()) {\r\n return 1;\r\n }\r\n return 0;\r\n });\r\n\r\n setState({\r\n curvesList: curvesList.filter((item) => item.SENSOR_ID !== 'NO_CONV'),\r\n validSensors: validSensors.filter((item) => item.SENSOR_ID !== 'NO_CONV'),\r\n dacFwVers,\r\n });\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n setState({ loading: false });\r\n }\r\n function openCreateEditSensor(itemToEdit?) {\r\n state.selectedSensor = itemToEdit || null;\r\n setState({ openModal: true });\r\n }\r\n async function deleteSensor(item: (typeof state.curvesList)[number]) {\r\n try {\r\n if (window.confirm(t('excluirCurvaPrompt', { curveId: item.ID }))) {\r\n await apiCall('/config/delete-pressure-curve', { CURVE_ID: item.ID });\r\n state.curvesList = state.curvesList.filter((sensor) => sensor.ID !== item.ID);\r\n render();\r\n toast.success(t('sucesso'));\r\n }\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n async function afterCreateEditCurve({ item: responseData, action }) {\r\n try {\r\n setState({ openModal: false });\r\n if (action === 'new') {\r\n state.curvesList.push(responseData);\r\n render();\r\n }\r\n else if (action === 'edit') {\r\n const found = state.curvesList.find((item) => item.ID === responseData.ID);\r\n if (found) {\r\n Object.assign(found, responseData);\r\n render();\r\n }\r\n else {\r\n await fetchData();\r\n }\r\n }\r\n else {\r\n await fetchData();\r\n }\r\n toast.success(t('sucesso'));\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Configurações\r\n \r\n \r\n {state.loading && }\r\n {(!state.loading)\r\n && (\r\n
\r\n
\r\n
 
\r\n setState({ newSensor: true })}>Gerenciar Sensores\r\n openCreateEditSensor()}>Adicionar Curva\r\n
\r\n \r\n {state.openModal && (\r\n \r\n { setState({ openModal: false }); }}\r\n onSuccess={afterCreateEditCurve}\r\n sensorList={state.validSensors}\r\n validFwVers={state.dacFwVers}\r\n />\r\n \r\n )}\r\n {state.newSensor && (\r\n setState({ newSensor: false })}>\r\n {\r\n if (res === 'success') {\r\n setState({\r\n validSensors: state.validSensors.filter((s) => sensor.sensorId !== s.SENSOR_ID),\r\n curvesList: state.curvesList.filter((c) => c.SENSOR_ID !== sensor.sensorId),\r\n });\r\n }\r\n }}\r\n onEditClick={(x) => {\r\n setState({\r\n validSensors: state.validSensors.map((sensor) => {\r\n if (sensor.SENSOR_ID === x.sensorId) {\r\n return {\r\n SENSOR_ID: sensor.SENSOR_ID,\r\n SENSOR_NAME: x.sensorName,\r\n };\r\n }\r\n return sensor;\r\n }),\r\n });\r\n }}\r\n onSubmitClick={({ item, action }) => {\r\n toast.success(t('sucesso'));\r\n if (action === 'new') {\r\n setState({\r\n validSensors: state.validSensors.concat({ SENSOR_ID: item.SENSOR_ID, SENSOR_NAME: item.SENSOR_NAME }),\r\n });\r\n }\r\n }}\r\n />\r\n \r\n )}\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nfunction TableSensors({\r\n list, onDeleteClick, onEditClick, onSubmitClick,\r\n} : {\r\n readonly list: { SENSOR_ID: string, SENSOR_NAME: string }[],\r\n readonly onDeleteClick: (a: any) => void,\r\n readonly onEditClick: (a: any) => void,\r\n readonly onSubmitClick: (a: any) => void,\r\n}) {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state: {\r\n newSensorInputEnabled: boolean,\r\n sensorId: string;\r\n sensorName: string;\r\n submitting: boolean,\r\n rowIdEdited?: string\r\n } = {\r\n newSensorInputEnabled: false,\r\n sensorId: '',\r\n sensorName: '',\r\n submitting: false,\r\n rowIdEdited: undefined,\r\n };\r\n return state;\r\n });\r\n\r\n async function deleteSensor(sensorId: string) {\r\n let response;\r\n try {\r\n if (!sensorId) { toast.error(t('infoFaltando', { info: t('sensor') })); return; }\r\n setState({ submitting: true });\r\n const reqData = {\r\n SENSOR_ID: sensorId,\r\n };\r\n response = await apiCall('/config/delete-pressure-sensor', reqData);\r\n } catch (err) { toast.error(t('sensorDeleteErro')); }\r\n setState({ submitting: false });\r\n return (response != null) ? 'success' : 'fail';\r\n }\r\n\r\n async function confirm() {\r\n let response = null as null|{ SENSOR_ID: string };\r\n const action = (state.newSensorInputEnabled) ? 'new' : 'edit';\r\n try {\r\n if (!state.sensorId) { toast.error(t('infoFaltando', { info: t('sensor') })); return; }\r\n if (list.some((sensor) => (sensor.SENSOR_ID === state.sensorId))) { toast.error(t('sensorJaExiste', { sensor: state.sensorId })); return; }\r\n setState({ submitting: true });\r\n const reqData = {\r\n SENSOR_ID: state.sensorId,\r\n SENSOR_NAME: state.sensorName,\r\n };\r\n if (action === 'new') {\r\n response = await apiCall('/config/add-pressure-sensor', reqData);\r\n }\r\n else if (action === 'edit') {\r\n response = await apiCall('/config/edit-pressure-sensor', reqData);\r\n }\r\n } catch (err) {\r\n if ((err as AxiosError)?.response?.data === 'Sensor already exists') {\r\n toast.error(t('sensorJaExiste', { sensor: state.sensorId }));\r\n }\r\n else {\r\n console.log(err); toast.error(t('erro'));\r\n }\r\n }\r\n setState({ submitting: false });\r\n if (response && action) {\r\n onSubmitClick({ item: response, action });\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n Sensor\r\n \r\n \r\n \r\n \r\n {list.map((item) => (\r\n {\r\n deleteSensor(item.SENSOR_ID)\r\n .then((res) => {\r\n onDeleteClick({ sensor: { sensorId: item.SENSOR_ID }, res });\r\n render();\r\n });\r\n }}\r\n />\r\n ))}\r\n \r\n {\r\n (state.newSensorInputEnabled && state.rowIdEdited == null) && (\r\n \r\n setState({ sensorId: event.target.value.trim() })}\r\n />\r\n \r\n )\r\n }\r\n \r\n {\r\n (state.newSensorInputEnabled && state.rowIdEdited == null) ? (\r\n <>\r\n setState({ newSensorInputEnabled: false })} variant=\"red-inv\">\r\n \r\n \r\n {\r\n confirm();\r\n setState({ newSensorInputEnabled: false, rowIdEdited: undefined });\r\n }}\r\n variant=\"blue-inv\"\r\n >\r\n \r\n \r\n \r\n ) : (\r\n {\r\n setState({\r\n newSensorInputEnabled: true,\r\n rowIdEdited: undefined,\r\n });\r\n render();\r\n }}\r\n variant=\"blue-inv\"\r\n >\r\n \r\n \r\n )\r\n }\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nfunction TableCurves({ list, onDeleteClick, onEditClick } : {\r\n readonly list: { ID: number; SENSOR_ID: string; MULT_QUAD: number; MULT_LIN: number; OFST: number; MIN_FIRMWARE_VERSION: string; }[],\r\n readonly onDeleteClick: (a: any) => void,\r\n readonly onEditClick: (a: any) => void,\r\n}) {\r\n return (\r\n \r\n \r\n \r\n {t('curveId')}\r\n {t('sensor')}\r\n {t('minFirmware')}\r\n {t('coefQuad')}\r\n {t('coefAng')}\r\n {t('coefLin')}\r\n \r\n \r\n \r\n \r\n {list.map((item) => (\r\n \r\n {item.ID}\r\n {item.SENSOR_ID}\r\n {item.MIN_FIRMWARE_VERSION}\r\n {formatNumberWithFractionDigits(item.MULT_QUAD, { minimum: 0, maximum: 6 })}\r\n {formatNumberWithFractionDigits(item.MULT_LIN, { minimum: 0, maximum: 6 })}\r\n {formatNumberWithFractionDigits(item.OFST, { minimum: 0, maximum: 6 })}\r\n \r\n onDeleteClick(item)} variant=\"red-inv\">\r\n \r\n \r\n onEditClick(item)} variant=\"blue-inv\">\r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction FormEditCurve({\r\n curveInfo,\r\n onSuccess,\r\n onCancel,\r\n sensorList,\r\n validFwVers,\r\n}: {\r\n readonly curveInfo: { ID: number; SENSOR_ID: string; MULT_QUAD: number; MULT_LIN: number; OFST: number; MIN_FIRMWARE_VERSION: string; } | null,\r\n readonly sensorList: { SENSOR_ID: string; SENSOR_NAME: string; }[],\r\n readonly validFwVers: string[],\r\n readonly onSuccess: (a: {item: any, action: any}) => void,\r\n readonly onCancel: (a: any) => void\r\n}) {\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n CURVE_ID: curveInfo?.ID,\r\n SENSOR_ID: (curveInfo?.SENSOR_ID) ?? '',\r\n MULT_QUAD: String(curveInfo?.MULT_QUAD ?? ''),\r\n MULT_LIN: String(curveInfo?.MULT_LIN ?? ''),\r\n OFST: String(curveInfo?.OFST ?? ''),\r\n MIN_FW_VERSION: curveInfo?.MIN_FIRMWARE_VERSION,\r\n sensorList: sensorList.map((sensor) => sensor.SENSOR_ID),\r\n fwList: validFwVers,\r\n newSensor: false,\r\n });\r\n const isEdit = !!curveInfo?.ID;\r\n\r\n async function confirm() {\r\n let response = null as null|{ SENSOR_ID: string };\r\n let action = null as null|'new'|'edit';\r\n try {\r\n if (!state.MULT_QUAD) { toast.error(t('infoFaltando', { info: t('coefQuad') })); return; }\r\n if (!state.MULT_LIN) { toast.error(t('infoFaltando', { info: t('coefAng') })); return; }\r\n if (!state.OFST) { toast.error(t('infoFaltando', { info: t('coefLin') })); return; }\r\n if (!state.MIN_FW_VERSION) { toast.error(t('infoFaltando', { info: t('minFirmware') })); return; }\r\n if (!state.SENSOR_ID) {\r\n toast.error(t('infoFaltando', { info: t('sensor') }));\r\n return;\r\n }\r\n setState({ submitting: true });\r\n\r\n if (isEdit && state.CURVE_ID) {\r\n const reqData = {\r\n ID: state.CURVE_ID,\r\n SENSOR_ID: state.SENSOR_ID,\r\n MIN_FIRMWARE_VERSION: state.MIN_FW_VERSION,\r\n MULT_QUAD: parseDecimalNumber(state.MULT_QUAD)!,\r\n MULT_LIN: parseDecimalNumber(state.MULT_LIN)!,\r\n OFST: parseDecimalNumber(state.OFST)!,\r\n };\r\n response = await apiCall('/config/edit-pressure-curve', reqData);\r\n action = 'edit';\r\n } else if (!isEdit) {\r\n const reqData = {\r\n SENSOR_ID: state.SENSOR_ID,\r\n MIN_FIRMWARE_VERSION: state.MIN_FW_VERSION,\r\n MULT_QUAD: parseDecimalNumber(state.MULT_QUAD)!,\r\n MULT_LIN: parseDecimalNumber(state.MULT_LIN)!,\r\n OFST: parseDecimalNumber(state.OFST)!,\r\n };\r\n response = await apiCall('/config/add-pressure-curve', reqData);\r\n action = 'new';\r\n }\r\n else {\r\n toast.error(t('erro'));\r\n }\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n setState({ submitting: false });\r\n if (response && action) onSuccess({ item: response, action });\r\n }\r\n\r\n return (\r\n
\r\n
\r\n {\r\n setState({ SENSOR_ID: opt });\r\n }}\r\n style={{ width: '100%' }}\r\n notNull\r\n />\r\n
\r\n
\r\n { setState({ MIN_FW_VERSION: opt }); }}\r\n notNull\r\n />\r\n
\r\n setState({ MULT_QUAD: event.target.value })}\r\n />\r\n
\r\n setState({ MULT_LIN: event.target.value })}\r\n />\r\n
\r\n setState({ OFST: event.target.value })}\r\n />\r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nfunction EditableRow>({\r\n key, values, onDeleteRow,\r\n}: {\r\n readonly key: string,\r\n readonly values: T,\r\n readonly onDeleteRow: (a: any) => void,\r\n}) {\r\n return (\r\n \r\n {\r\n values.map((v) => (\r\n {v}\r\n ))\r\n }\r\n \r\n onDeleteRow(key)} variant=\"red-inv\">\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default withTransaction('SensorsConfig', 'component')(SensorsConfig);\r\n","import { useEffect } from 'react';\r\n\r\nimport { useStateVar } from 'helpers/useStateVar';\r\n\r\nimport {\r\n LineChart,\r\n Line,\r\n CartesianGrid,\r\n XAxis,\r\n YAxis,\r\n Tooltip,\r\n ReferenceArea,\r\n ResponsiveContainer,\r\n} from 'recharts';\r\n\r\nexport const colorPalete = [\r\n '#1F77B4',\r\n '#FF7F0E',\r\n '#2CA02C',\r\n '#D62728',\r\n '#9467BD',\r\n '#8C564B',\r\n '#E377C2',\r\n '#7F7F7F',\r\n '#BCBD22',\r\n '#17BECF',\r\n];\r\n\r\nexport function ChartLine(props: {\r\n commonX: number[]\r\n varsInfo: {\r\n name: string\r\n unit?: string\r\n color: string\r\n axisId: string\r\n y: (number|null)[]\r\n type?: 'step'|'linear' // https://github.com/d3/d3-shape#curves\r\n }[]\r\n axisInfo: {\r\n x: {\r\n domain: [number|string, number|string] // [minX, maxX], ['dataMin', 'dataMax+50']\r\n }\r\n y: {\r\n [axisId: string]: {\r\n domain: [number|string, number|string] // [minY, maxY]\r\n orientation?: 'right'\r\n }\r\n }\r\n }\r\n numDays?: number\r\n tooltipXLabelFormater?: (x: number) => string\r\n formaterXTick?: (x: number) => string\r\n tickSecondX?: (x: any) => JSX.Element\r\n}) {\r\n const [state, _render, setState] = useStateVar({\r\n indexes: props.commonX.map((_v, i) => i),\r\n commonX: props.commonX,\r\n xDomain: null as null|([number, number]),\r\n refAreaLeft: null as null|number,\r\n refAreaRight: null as null|number,\r\n });\r\n\r\n useEffect(() => {\r\n setState({\r\n indexes: props.commonX.map((_v, i) => i),\r\n commonX: props.commonX,\r\n });\r\n }, props.commonX);\r\n\r\n function zoom() {\r\n let { refAreaLeft, refAreaRight } = state;\r\n\r\n if (refAreaLeft === refAreaRight || refAreaRight == null || refAreaLeft == null) {\r\n setState({\r\n refAreaLeft: null,\r\n refAreaRight: null,\r\n });\r\n return;\r\n }\r\n\r\n // xAxis domain\r\n if (refAreaLeft > refAreaRight) [refAreaLeft, refAreaRight] = [refAreaRight, refAreaLeft];\r\n\r\n setState({\r\n refAreaLeft: null,\r\n refAreaRight: null,\r\n indexes: state.indexes.slice(),\r\n xDomain: [refAreaLeft, refAreaRight],\r\n });\r\n }\r\n\r\n function zoomOut() {\r\n setState({\r\n refAreaLeft: null,\r\n refAreaRight: null,\r\n indexes: state.indexes.slice(),\r\n xDomain: null,\r\n });\r\n }\r\n\r\n function toolTipFormater(\r\n value: number,\r\n _accessor: string|Function,\r\n _payload: {\r\n value: number,\r\n payload: number // x index\r\n },\r\n index: number,\r\n ) {\r\n const varInfo = (index < props.varsInfo.length) && props.varsInfo[index];\r\n const name = (varInfo && varInfo.name) || String(index);\r\n return `${name}: ${value}${(varInfo && varInfo.unit) || ''}`;\r\n }\r\n\r\n return (\r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n { setState({ refAreaLeft: e?.activeLabel }); }}\r\n onMouseMove={(e) => { (state.refAreaLeft != null) && setState({ refAreaRight: e.activeLabel }); }}\r\n onMouseUp={zoom}\r\n >\r\n \r\n\r\n state.commonX[i]} domain={state.xDomain || props.axisInfo.x.domain} type=\"number\" tickFormatter={props.formaterXTick} />\r\n {props.numDays && props.numDays > 1 ? ( state.commonX[i]} domain={state.xDomain || props.axisInfo.x.domain} />) : null}\r\n {Object.entries(props.axisInfo.y).map(([axisId, axisInfo]) => (\r\n \r\n ))}\r\n\r\n \r\n\r\n {props.varsInfo.map((varInfo) => (\r\n varInfo.y[i]} dot={false} stroke={varInfo.color} animationDuration={300} />\r\n ))}\r\n\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n
\r\n );\r\n}\r\n\r\n// } />\r\n// function CustomTooltip (props: {\r\n// active: boolean\r\n// payload: {\r\n// name: string\r\n// value: number\r\n// payload: {}\r\n// }[]\r\n// label: string\r\n// }) {\r\n// const { active, payload, label } = props;\r\n// if (active && payload && payload.length >= 2) {\r\n// const groupInfo = payload[0].payload;\r\n// let temperature: number | null = null;\r\n// if (payload[1].name === 'temp') {\r\n// temperature = payload[1].value;\r\n// }\r\n// const hora = String(Math.trunc(payload[0].value)).padStart(2, '0');\r\n// const minuto = String(Math.trunc((payload[0].value % 1) * 60)).padStart(2, '0');\r\n// return (
...
);\r\n// }\r\n// return null;\r\n// }\r\n","import React from 'react';\r\n\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport { SketchPicker } from 'react-color';\r\nimport { AccordionV2 } from 'components/Accordion';\r\nimport styled from 'styled-components';\r\nimport { colors } from '../../styles/colors';\r\nimport { useStateVar } from '../../helpers/useStateVar';\r\nimport { Flex } from 'reflexbox';\r\n\r\ninterface LineInfo {\r\n id: string\r\n name: string\r\n unit?: string\r\n color: string\r\n checked?: boolean\r\n}\r\n\r\nexport function LegendaGroup(props: {\r\n groups: {\r\n name: string\r\n lines: LineInfo[]\r\n }[]\r\n onCheckboxChanging: () => void\r\n onColorChanging: (color: { hex: string }, lineInfo: LineInfo, group: { name: string }) => void\r\n}) {\r\n const {\r\n groups, onCheckboxChanging, onColorChanging, ...cProps\r\n } = props;\r\n function setAllGroup(list: { checked?: boolean }[]) {\r\n const shouldBeChecked = list.some((group) => !group.checked);\r\n for (const group of list) {\r\n group.checked = shouldBeChecked;\r\n }\r\n props.onCheckboxChanging();\r\n }\r\n\r\n return (\r\n
\r\n {props.groups.map((group) => (\r\n \r\n line.checked)} onClick={() => setAllGroup(group.lines)} />\r\n Selecionar Todos\r\n
\r\n )}\r\n >\r\n {\r\n props.onCheckboxChanging();\r\n }}\r\n onColorChanging={(color, lineInfo) => {\r\n props.onColorChanging(color, lineInfo, group);\r\n }}\r\n />\r\n \r\n ))}\r\n
\r\n );\r\n}\r\n\r\nexport function Legenda(props: {\r\n lines: LineInfo[]\r\n onCheckboxChanging: (lineInfo: LineInfo) => void\r\n onColorChanging: (color: { hex: string }, lineInfo: LineInfo) => void\r\n}) {\r\n const [state, _render, setState] = useStateVar({\r\n displayColorPickerFor: null as null|LineInfo,\r\n });\r\n\r\n function onLineColorClick(lineInfo: LineInfo) {\r\n setState({ displayColorPickerFor: lineInfo });\r\n }\r\n\r\n function onBackgroundClick() {\r\n setState({ displayColorPickerFor: null });\r\n }\r\n\r\n return (\r\n
\r\n {props.lines.map((lineInfo) => (\r\n \r\n \r\n { lineInfo.checked = !lineInfo.checked; props.onCheckboxChanging(lineInfo); }}\r\n style={{ padding: '3px' }}\r\n />\r\n \r\n {lineInfo.name}\r\n {lineInfo.unit && ` [${lineInfo.unit}]`}\r\n \r\n \r\n onLineColorClick(lineInfo)}\r\n >\r\n \r\n
\r\n \r\n ))}\r\n {(state.displayColorPickerFor) && (\r\n
\r\n onBackgroundClick()}\r\n />\r\n { props.onColorChanging && props.onColorChanging(color, state.displayColorPickerFor!); }} />\r\n
\r\n )}\r\n
\r\n );\r\n}\r\n\r\nconst Text = styled.span`\r\n font-weight: normal;\r\n font-size: 1em;\r\n line-height: 26px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nconst CheckboxLine = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Loader,\r\n Input,\r\n Button,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, apiCallDownload } from '~/providers';\r\nimport { ChartLine, colorPalete } from '~/components/ChartRecharts';\r\nimport { LegendaGroup } from '~/components/ChartRecharts/Legenda';\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport { SingleDatePicker } from 'react-dates';\r\nimport moment from 'moment';\r\nimport i18n from '~/i18n';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\ninterface ChartData {\r\n commonX: number[]\r\n lines: {\r\n id: string\r\n name: string\r\n unit?: string\r\n color: string\r\n axisId: string\r\n y: (number|null)[]\r\n checked?: boolean\r\n type?: 'linear'|'step'\r\n }[]\r\n axisInfo: {\r\n x: {\r\n domain: [number|string, number|string] // [minX, maxX], ['dataMin', 'dataMax+50']\r\n }\r\n y: {\r\n [axisId: string]: {\r\n domain: [number|string, number|string] // [minY, maxY]\r\n orientation?: 'right'\r\n }\r\n }\r\n }\r\n numDays?: number\r\n tooltipXLabelFormater?: (x: number) => string\r\n formaterXTick?: (x: number) => string\r\n tickSecondX?: (x: any) => JSX.Element\r\n}\r\n\r\nexport const ServersMonitoring = (): JSX.Element => {\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n loadingOtherCharts: true,\r\n loadingBrokersMonit: true,\r\n formExport: {\r\n timespan: '10',\r\n tsStart: new Date(Date.now() - 3 * 60 * 60 * 1000 - 30 * 60 * 1000).toISOString().substring(0, 19).replace('T', ' '),\r\n exporting: false,\r\n },\r\n serversList: [] as {\r\n address: string // \"::ffff:172.31.94.63\"\r\n isBroker2Dynamo: boolean\r\n isIotRelay: boolean\r\n firstTs: Date\r\n charts: { [id: string]: ChartData }\r\n }[],\r\n brokersMonit: null as null|{\r\n firstTs: Date\r\n charts: { [id: string]: ChartData }\r\n },\r\n selectedDay: moment(moment().format('YYYY-MM-DD')),\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n datePickerFocused: false,\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n fetchData();\r\n }, []);\r\n async function fetchData() {\r\n try {\r\n setState({ loadingOtherCharts: true });\r\n // const { list2 } = await apiCall('/realtime/devtools/getServersStatus', {});\r\n const list2: any[] = [];\r\n state.serversList = [];\r\n for (const serverData of list2) {\r\n const serverItem: typeof state.serversList[number] = {\r\n ...serverData,\r\n isBrokerDiel: !!(serverData.records.some((x) => x.payload.origin === 'broker-diel-v1')),\r\n isBroker2Dynamo: !!(serverData.records.some((x) => x.payload.disk_info)),\r\n isIotRelay: !!(serverData.records.some((x) => x.payload.origin === 'iotrelay-v1')),\r\n firstTs: (serverData.records[0] && new Date(serverData.records[0].payload_ts)) || new Date(),\r\n charts: {},\r\n };\r\n if (serverItem.isBroker2Dynamo) {\r\n const flatRecords = flattenRecords(serverData.records);\r\n serverItem.charts = createChartsBroker2Dynamo(flatRecords.filter((x) => x.origin === 'broker2dynamo-v1'), serverItem.firstTs);\r\n state.serversList.push(serverItem);\r\n } else if (serverItem.isIotRelay) {\r\n const flatRecords = flattenRecords(serverData.records);\r\n serverItem.charts = createChartsIotRelay(flatRecords.filter((x) => x.origin === 'iotrelay-v1'), serverItem.firstTs);\r\n state.serversList.push(serverItem);\r\n }\r\n }\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n setState({ loadingOtherCharts: false });\r\n }\r\n\r\n useEffect(() => {\r\n fetchBrokersMonit();\r\n }, [state.selectedDay]);\r\n async function fetchBrokersMonit() {\r\n try {\r\n setState({ loadingBrokersMonit: true });\r\n\r\n state.brokersMonit = null;\r\n const dayYMD = state.selectedDay.format('YYYY-MM-DD');\r\n await new Promise((r) => setTimeout(r, 3000));\r\n const brokersMonHist1 = await apiCall('/devtools/brokers-monitor-hist-v1', { dayYMD });\r\n state.brokersMonit = {\r\n firstTs: new Date(`${dayYMD}T00:00:00-0300`),\r\n charts: createChartsBrokerDiel2(brokersMonHist1.records, brokersMonHist1.commonx.map((x) => x * 1000)),\r\n };\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n setState({ loadingBrokersMonit: false });\r\n }\r\n\r\n async function exportDisconnectedDevs() {\r\n try {\r\n if (state.formExport.tsStart.length !== 19) {\r\n toast.error('Horário de início em formato inválido');\r\n return;\r\n }\r\n\r\n const tsStart = new Date(`${state.formExport.tsStart.substring(0, 10)}T${state.formExport.tsStart.substring(11)}-0300`);\r\n const tsEnd = new Date(tsStart.getTime() + Number(state.formExport.timespan.trim()) * 60 * 1000);\r\n\r\n state.formExport.exporting = true;\r\n render();\r\n\r\n const exportResponse = await apiCallDownload('/devtools/brokers-monitor-disconnected-devs', {\r\n tsStart: tsStart.toISOString(),\r\n tsEnd: tsEnd.toISOString(),\r\n });\r\n const link: any = document.getElementById('downloadLink');\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || 'Export.xlsx';\r\n link.click();\r\n toast.success('Exportado com sucesso.');\r\n } catch (err) { console.log(err); toast.error('Houve erro'); }\r\n\r\n state.formExport.exporting = false;\r\n render();\r\n }\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Servidores\r\n \r\n \r\n\r\n {state.loadingBrokersMonit && }\r\n {(!state.loadingBrokersMonit) && state.brokersMonit && (\r\n <>\r\n

broker-connections-sniffing

\r\n
\r\n
\r\n { setState({ selectedDay: value }); }}\r\n focused={state.datePickerFocused}\r\n onFocusChange={({ focused }) => setState({ datePickerFocused: focused })}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n isOutsideRange={(d) => !d.isBefore(state.tomorrow)}\r\n />\r\n
\r\n {Object.entries(state.brokersMonit.charts).map(([chartId, chartData]) => (\r\n
\r\n { render(); }}\r\n onColorChanging={(color, line) => { line.color = color.hex; render(); }}\r\n />\r\n line.checked)}\r\n axisInfo={chartData.axisInfo}\r\n formaterXTick={(x) => new Date(state.brokersMonit!.firstTs.getTime() + x).toLocaleTimeString()}\r\n tooltipXLabelFormater={(x) => new Date(state.brokersMonit!.firstTs.getTime() + x).toLocaleString()}\r\n />\r\n
\r\n ))}\r\n
\r\n
Existem 2 brokers em operação, que nas variáveis são chamados de b0 e b1. Abaixo vou listar só as do b0 para não ficar repetindo texto.
\r\n
    \r\n
  • b0_conn_arr: conexões que chegaram e foram (ou seriam) encaminhadas para o b0. Pode ser que a conexão seja fechada antes mesmo de ser encaminhada para o broker, caso ocorra erro no estabelecimento da criptografia.
  • \r\n
  • b0_conn_closed: conexões fechadas. Pode ser fechamento por erro em estabelecer a criptografia, ou o dispositivo quis fechar, ou o broker fechou ou qualquer outro motivo.
  • \r\n
  • b0_tls_err: erro ao abrir a conexão, geralmente por erro ao estabelecer a criptografia (TLS).
  • \r\n
  • b0_pub_brtodv: mensagens trafegando do broker para o dispositivo. Como o iotrelay se conecta diretamente aos brokers, as conexões monitoradas aqui são sempre de dispositivos. Então essas mensagens devem ser comandos que o dash envia.
  • \r\n
  • b0_pub_others: mensagens trafegando dos dispositivos para o broker, que são as telemetrias e as mensagens de controle.
  • \r\n
  • b0_subscr: quantidade de pacotes de subscribe.
  • \r\n
  • b0_est_conn: estimativa de quantas conexões estão abertas com o broker. Eu chamo de estimativa porque por enquanto eu considero que existe uma possibilidade de uma conexão ser fechada sem decrementar esse contador.
  • \r\n
  • est_conn: total de conexões abertas sendo monitoradas, é a soma de b0 e b1.
  • \r\n
\r\n
\r\n
\r\n
\r\n \r\n )}\r\n
\r\n\r\n {state.loadingOtherCharts && }\r\n {(!state.loadingOtherCharts) && (\r\n <>\r\n

Brokers Instances

\r\n {state.serversList.filter((x) => x.isBroker2Dynamo).map((serverData) => (\r\n
\r\n

{serverData.address}

\r\n {Object.entries(serverData.charts).map(([chartId, chartData]) => (\r\n
\r\n { render(); }}\r\n onColorChanging={(color, line) => { line.color = color.hex; render(); }}\r\n />\r\n line.checked)}\r\n axisInfo={chartData.axisInfo}\r\n formaterXTick={(x) => new Date(serverData.firstTs.getTime() + x).toLocaleTimeString()}\r\n tooltipXLabelFormater={(x) => new Date(serverData.firstTs.getTime() + x).toLocaleString()}\r\n />\r\n
\r\n ))}\r\n
\r\n ))}\r\n
\r\n

IotRelay

\r\n {state.serversList.filter((x) => x.isIotRelay).map((serverData) => (\r\n
\r\n

{serverData.address}

\r\n {Object.entries(serverData.charts).map(([chartId, chartData]) => (\r\n
\r\n { render(); }}\r\n onColorChanging={(color, line) => { line.color = color.hex; render(); }}\r\n />\r\n line.checked)}\r\n axisInfo={chartData.axisInfo}\r\n formaterXTick={(x) => new Date(serverData.firstTs.getTime() + x).toLocaleTimeString()}\r\n tooltipXLabelFormater={(x) => new Date(serverData.firstTs.getTime() + x).toLocaleString()}\r\n />\r\n
\r\n ))}\r\n
\r\n ))}\r\n \r\n )}\r\n
\r\n
Em construção. Falta mostrar validade de certificados.
\r\n \r\n );\r\n};\r\n\r\nfunction flattenRecords(records: { payload_ts: string, payload: any }[]) {\r\n return records.map((telm) => {\r\n if (telm.payload.origin === 'broker-diel-v1') {\r\n return {\r\n ts: telm.payload_ts,\r\n origin: telm.payload.origin,\r\n interval: telm.payload.interval,\r\n est_conn: telm.payload.est_conn,\r\n b0_conn_arr: Math.round((telm.payload.brokers_stats[0].conn_arr * 60 / telm.payload.interval) * 10) / 10,\r\n b0_conn_closed: Math.round((telm.payload.brokers_stats[0].conn_closed * 60 / telm.payload.interval) * 10) / 10,\r\n b0_est_conn: telm.payload.brokers_stats[0].est_conn,\r\n b0_pub_brtodv: Math.round((telm.payload.brokers_stats[0].pub_brtodv * 60 / telm.payload.interval) * 10) / 10,\r\n b0_pub_others: Math.round((telm.payload.brokers_stats[0].pub_others * 60 / telm.payload.interval) * 10) / 10,\r\n b0_subscr: Math.round((telm.payload.brokers_stats[0].subscr * 60 / telm.payload.interval) * 10) / 10,\r\n b0_tls_err: Math.round((telm.payload.brokers_stats[0].tls_err * 60 / telm.payload.interval) * 10) / 10,\r\n b1_conn_arr: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].conn_arr * 60 / telm.payload.interval) * 10) / 10,\r\n b1_conn_closed: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].conn_closed * 60 / telm.payload.interval) * 10) / 10,\r\n b1_est_conn: (telm.payload.brokers_stats[1] || null) && telm.payload.brokers_stats[1].est_conn,\r\n b1_pub_brtodv: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].pub_brtodv * 60 / telm.payload.interval) * 10) / 10,\r\n b1_pub_others: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].pub_others * 60 / telm.payload.interval) * 10) / 10,\r\n b1_subscr: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].subscr * 60 / telm.payload.interval) * 10) / 10,\r\n b1_tls_err: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].tls_err * 60 / telm.payload.interval) * 10) / 10,\r\n };\r\n }\r\n if (telm.payload.disk_info) {\r\n return {\r\n ts: telm.payload_ts,\r\n origin: 'broker2dynamo-v1',\r\n disk_info_free: Math.round(telm.payload.disk_info.free / 1000 / 100) / 10,\r\n disk_info_total: Math.round(telm.payload.disk_info.total / 1000 / 100) / 10,\r\n loadavg_fifteen: Math.round(telm.payload.loadavg.fifteen * 1000) / 10,\r\n loadavg_five: Math.round(telm.payload.loadavg.five * 1000) / 10,\r\n loadavg_one: Math.round(telm.payload.loadavg.one * 1000) / 10,\r\n mem_info_avail: Math.round(telm.payload.mem_info.avail / 1000 / 100) / 10,\r\n mem_info_buffers: Math.round(telm.payload.mem_info.buffers / 1000 / 100) / 10,\r\n mem_info_cached: Math.round(telm.payload.mem_info.cached / 1000 / 100) / 10,\r\n mem_info_free: Math.round(telm.payload.mem_info.free / 1000 / 100) / 10,\r\n mem_info_swap_free: Math.round(telm.payload.mem_info.swap_free / 1000 / 100) / 10,\r\n mem_info_swap_total: Math.round(telm.payload.mem_info.swap_total / 1000 / 100) / 10,\r\n mem_info_total: Math.round(telm.payload.mem_info.total / 1000 / 100) / 10,\r\n };\r\n }\r\n if (telm.payload.origin === 'iotrelay-v1') {\r\n return {\r\n ts: telm.payload_ts,\r\n origin: telm.payload.origin,\r\n interval: telm.payload.interval,\r\n http_reqs: telm.payload.http_reqs,\r\n command_reqs: telm.payload.command_reqs,\r\n b0_commands_sent: Math.round((telm.payload.brokers_stats[0].commands_sent * 60 / telm.payload.interval) * 10) / 10,\r\n b0_commands_error: Math.round((telm.payload.brokers_stats[0].commands_error * 60 / telm.payload.interval) * 10) / 10,\r\n b1_commands_sent: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].commands_sent * 60 / telm.payload.interval) * 10) / 10,\r\n b1_commands_error: (telm.payload.brokers_stats[1] || null) && Math.round((telm.payload.brokers_stats[1].commands_error * 60 / telm.payload.interval) * 10) / 10,\r\n };\r\n }\r\n return {\r\n ...telm.payload,\r\n ts: telm.payload_ts,\r\n };\r\n });\r\n}\r\n\r\ninterface BrokerMonitorRecord {\r\n // origin: \"broker-diel-v1\",\r\n interval: number,\r\n est_conn: number,\r\n brokers_stats: {\r\n conn_arr: number,\r\n conn_closed: number,\r\n est_conn: number,\r\n pub_brtodv: number,\r\n pub_others: number,\r\n subscr: number,\r\n tls_err: number,\r\n }[],\r\n}\r\nfunction createChartsBrokerDiel2(records: BrokerMonitorRecord[], commonX: number[]) {\r\n let numBrokers = 0;\r\n for (const record of records) {\r\n if (record.brokers_stats.length > numBrokers) {\r\n numBrokers = record.brokers_stats.length;\r\n }\r\n }\r\n const axisInfo: ChartData['axisInfo'] = {\r\n x: { domain: [0, 86400 * 1000] },\r\n y: {\r\n y: { domain: [0, 'dataMax'] },\r\n },\r\n };\r\n const charts: { [id: string]: ChartData } = {\r\n clientes: {\r\n commonX,\r\n lines: [\r\n {\r\n id: 'est_conn',\r\n name: 'est_conn',\r\n color: colorPalete[0],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.est_conn),\r\n },\r\n ],\r\n axisInfo,\r\n },\r\n mqttAct: {\r\n commonX,\r\n lines: [],\r\n axisInfo,\r\n },\r\n conexoes: {\r\n commonX,\r\n lines: [],\r\n axisInfo,\r\n },\r\n };\r\n let nColor = 1;\r\n for (let b = 0; b < numBrokers; b++) {\r\n charts.clientes.lines.push({\r\n id: `est_conn_b${b}`,\r\n name: `est_conn_b${b}`,\r\n color: colorPalete[(nColor++) % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((rec) => (rec.brokers_stats[b] || null) && rec.brokers_stats[b].est_conn),\r\n });\r\n }\r\n nColor = 0;\r\n for (let b = 0; b < numBrokers; b++) {\r\n charts.mqttAct.lines.push({\r\n id: `pub_brtodv_b${b}`,\r\n name: `pub_brtodv_b${b}`,\r\n color: colorPalete[(nColor++) % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((rec) => ((rec.brokers_stats[b] || null) && Math.round((rec.brokers_stats[b].pub_brtodv * 60 / rec.interval) * 10) / 10)),\r\n });\r\n charts.mqttAct.lines.push({\r\n id: `pub_others_b${b}`,\r\n name: `pub_others_b${b}`,\r\n color: colorPalete[(nColor++) % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((rec) => ((rec.brokers_stats[b] || null) && Math.round((rec.brokers_stats[b].pub_others * 60 / rec.interval) * 10) / 10)),\r\n });\r\n }\r\n for (let b = 0; b < numBrokers; b++) {\r\n charts.mqttAct.lines.push({\r\n id: `subscr_b${b}`,\r\n name: `subscr_b${b}`,\r\n color: colorPalete[(nColor++) % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((rec) => ((rec.brokers_stats[b] || null) && Math.round((rec.brokers_stats[b].subscr * 60 / rec.interval) * 10) / 10)),\r\n });\r\n }\r\n nColor = 0;\r\n for (let b = 0; b < numBrokers; b++) {\r\n charts.conexoes.lines.push({\r\n id: `conn_arr_b${b}`,\r\n name: `conn_arr_b${b}`,\r\n color: colorPalete[(nColor++) % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((rec) => ((rec.brokers_stats[b] || null) && Math.round((rec.brokers_stats[b].conn_arr * 60 / rec.interval) * 10) / 10)),\r\n });\r\n }\r\n for (let b = 0; b < numBrokers; b++) {\r\n charts.conexoes.lines.push({\r\n id: `conn_closed_b${b}`,\r\n name: `conn_closed_b${b}`,\r\n color: colorPalete[(nColor++) % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((rec) => ((rec.brokers_stats[b] || null) && Math.round((rec.brokers_stats[b].conn_closed * 60 / rec.interval) * 10) / 10)),\r\n });\r\n }\r\n for (let b = 0; b < numBrokers; b++) {\r\n charts.conexoes.lines.push({\r\n id: `tls_err_b${b}`,\r\n name: `tls_err_b${b}`,\r\n color: colorPalete[(nColor++) % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((rec) => ((rec.brokers_stats[b] || null) && Math.round((rec.brokers_stats[b].tls_err * 60 / rec.interval) * 10) / 10)),\r\n });\r\n }\r\n return charts;\r\n}\r\n\r\nfunction createChartsBroker2Dynamo(records: any[], refTs: Date) {\r\n const commonX = records.map((x) => ((new Date(x.ts)).getTime() - refTs.getTime()));\r\n const axisInfo: ChartData['axisInfo'] = {\r\n x: { domain: ['dataMin', 'dataMax'] },\r\n y: {\r\n y: { domain: [0, 'dataMax'] },\r\n },\r\n };\r\n const charts: { [id: string]: ChartData } = {\r\n unico: {\r\n commonX,\r\n lines: [\r\n {\r\n id: 'disk_info_free',\r\n name: 'disk_info_free',\r\n unit: 'GB',\r\n color: colorPalete[0 % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.disk_info_free),\r\n },\r\n {\r\n id: 'disk_info_total',\r\n name: 'disk_info_total',\r\n unit: 'GB',\r\n color: colorPalete[1 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.disk_info_total),\r\n },\r\n {\r\n id: 'loadavg_fifteen',\r\n name: 'loadavg_fifteen',\r\n unit: '%',\r\n color: colorPalete[2 % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.loadavg_fifteen),\r\n },\r\n {\r\n id: 'loadavg_five',\r\n name: 'loadavg_five',\r\n unit: '%',\r\n color: colorPalete[2 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.loadavg_five),\r\n },\r\n {\r\n id: 'loadavg_one',\r\n name: 'loadavg_one',\r\n unit: '%',\r\n color: colorPalete[2 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.loadavg_one),\r\n },\r\n {\r\n id: 'mem_info_avail',\r\n name: 'mem_info_avail',\r\n unit: 'GB',\r\n color: colorPalete[3 % colorPalete.length],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.mem_info_avail),\r\n },\r\n {\r\n id: 'mem_info_buffers',\r\n name: 'mem_info_buffers',\r\n unit: 'GB',\r\n color: colorPalete[4 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.mem_info_buffers),\r\n },\r\n {\r\n id: 'mem_info_cached',\r\n name: 'mem_info_cached',\r\n unit: 'GB',\r\n color: colorPalete[5 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.mem_info_cached),\r\n },\r\n {\r\n id: 'mem_info_free',\r\n name: 'mem_info_free',\r\n unit: 'GB',\r\n color: colorPalete[6 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.mem_info_free),\r\n },\r\n {\r\n id: 'mem_info_swap_free',\r\n name: 'mem_info_swap_free',\r\n unit: 'GB',\r\n color: colorPalete[7 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.mem_info_swap_free),\r\n },\r\n {\r\n id: 'mem_info_swap_total',\r\n name: 'mem_info_swap_total',\r\n unit: 'GB',\r\n color: colorPalete[8 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.mem_info_swap_total),\r\n },\r\n {\r\n id: 'mem_info_total',\r\n name: 'mem_info_total',\r\n unit: 'GB',\r\n color: colorPalete[9 % colorPalete.length],\r\n axisId: 'y',\r\n checked: false,\r\n type: 'linear',\r\n y: records.map((x) => x.mem_info_total),\r\n },\r\n ],\r\n axisInfo,\r\n },\r\n };\r\n return charts;\r\n}\r\n\r\nfunction createChartsIotRelay(records: any[], refTs: Date) {\r\n const commonX = records.map((x) => ((new Date(x.ts)).getTime() - refTs.getTime()));\r\n const axisInfo: ChartData['axisInfo'] = {\r\n x: { domain: ['dataMin', 'dataMax'] },\r\n y: {\r\n y: { domain: [0, 'dataMax'] },\r\n },\r\n };\r\n const charts: { [id: string]: ChartData } = {\r\n unico: {\r\n commonX,\r\n lines: [\r\n {\r\n id: 'http_reqs',\r\n name: 'http_reqs',\r\n color: colorPalete[0],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.http_reqs),\r\n },\r\n {\r\n id: 'command_reqs',\r\n name: 'command_reqs',\r\n color: colorPalete[1],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.command_reqs),\r\n },\r\n {\r\n id: 'b0_commands_sent',\r\n name: 'b0_commands_sent',\r\n color: colorPalete[2],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.b0_commands_sent),\r\n },\r\n {\r\n id: 'b0_commands_error',\r\n name: 'b0_commands_error',\r\n color: colorPalete[3],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.b0_commands_error),\r\n },\r\n {\r\n id: 'b1_commands_sent',\r\n name: 'b1_commands_sent',\r\n color: colorPalete[4],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.b1_commands_sent),\r\n },\r\n {\r\n id: 'b1_commands_error',\r\n name: 'b1_commands_error',\r\n color: colorPalete[5],\r\n axisId: 'y',\r\n checked: true,\r\n type: 'linear',\r\n y: records.map((x) => x.b1_commands_error),\r\n },\r\n ],\r\n axisInfo,\r\n },\r\n };\r\n return charts;\r\n}\r\n\r\nexport default withTransaction('ServersMonitoring', 'component')(ServersMonitoring);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button, Select,\r\n} from '~/components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const TableContainer = styled.table`\r\n width: 100%;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n`;\r\n\r\nexport const TableHead = styled.thead`\r\n`;\r\n\r\nexport const TableBody = styled.tbody`\r\n border: 1px solid ${colors.Grey};\r\n`;\r\n\r\nexport const HeaderCell = styled.th`\r\n flex: 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\n\r\nexport const HeaderCellOrder = styled.th`\r\n flex: 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 0 10px;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n cursor: pointer;\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n`;\r\n\r\nexport const DataCell = styled.td`\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\n\r\nexport const DataCellCenter = styled.td`\r\n text-align: center;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\n\r\nexport const DataCellRight = styled.td`\r\n text-align: right;\r\n color: ${colors.DarkGrey};\r\n min-width: 50px;\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n`;\r\n\r\nexport const Row = styled.tr`\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n`;\r\n\r\nexport const HeaderRow = styled.tr`\r\n height: 40px;\r\n display: table-row;\r\n`;\r\n\r\nexport const SimpleButton = styled(Button)`\r\n width: initial;\r\n padding: 8px 15px;\r\n margin: 7px 7px;\r\n`;\r\n\r\nexport const CustomSelect = styled(Select)`\r\n margin-bottom: 20px;\r\n`;\r\n\r\nexport const ChevronTop = styled.span`\r\n border-style: solid;\r\n border-width: 0.25em 0.25em 0 0;\r\n content: '';\r\n display: inline-block;\r\n height: 0.45em;\r\n left: 0.15em;\r\n position: relative;\r\n top: 0.15em;\r\n transform: rotate(-45deg);\r\n vertical-align: top;\r\n width: 0.45em;\r\n margin-left: 10px;\r\n margin-top: 3px;\r\n`;\r\n\r\nexport const ChevronBottom = styled.span`\r\n border-style: solid;\r\n border-width: 0.25em 0.25em 0 0;\r\n content: '';\r\n display: inline-block;\r\n height: 0.45em;\r\n left: 0.15em;\r\n position: relative;\r\n top: 0;\r\n transform: rotate(135deg);\r\n vertical-align: top;\r\n width: 0.45em;\r\n margin-left: 10px;\r\n margin-top: 3px;\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Black};\r\n font-weight: normal;\r\n font-size: 10px !important;\r\n`;\r\n","import styled from 'styled-components';\r\nimport { colors } from 'styles/colors';\r\n\r\nexport const SelectButton = styled.div`\r\n margin-right: 10px;\r\n padding: 2px;\r\n border-radius: 3px;\r\n color: ${colors.BlueSecondary};\r\n background-color: ${colors.White};\r\n :hover {\r\n background-color: ${colors.GreyLight}\r\n })\r\n`;\r\n\r\nexport const Container = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n width: 300px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const Item = styled.div`\r\n`;\r\n","import { ClickAwayListener, Grid } from '@material-ui/core';\r\nimport Box from '@material-ui/core/Box';\r\nimport Row from 'antd/lib/row';\r\nimport { useState } from 'react';\r\nimport { Container, Item, SelectButton } from './styles';\r\nimport moment from 'moment';\r\nimport i18n from '../../i18n';\r\nimport { Flex } from 'reflexbox';\r\n\r\nconst t = i18n.t.bind(i18n);\r\n\r\nexport const QuickSelection = (props: {\r\n isShortMode?: boolean, excludeSelects?: string[], height?: string, setDate: (startDate, endDate, timeSelected?) => void }): JSX.Element => {\r\n const [showDialog, setShowDialog] = useState(false);\r\n const { setDate } = props;\r\n const handleClickAway = () => {\r\n setShowDialog(false);\r\n };\r\n\r\n return (\r\n \r\n
\r\n setShowDialog(!showDialog)}\r\n style={{\r\n color: '#363BC4', textDecorationLine: 'underline', cursor: 'pointer', fontSize: '11px',\r\n }}\r\n >\r\n {t('selecaoRapida')}\r\n \r\n {showDialog && (\r\n \r\n \r\n {t('selecaoRapida')}\r\n \r\n {!props.isShortMode\r\n ? (\r\n \r\n { setDate(moment(), moment(), 'Hoje'); setShowDialog(false); }}>Hoje\r\n { setDate(moment().subtract(1, 'days'), moment().subtract(1, 'days'), 'Ontem'); setShowDialog(false); }}>Ontem\r\n { setDate(moment().startOf('week'), moment(), 'Semana Atual'); setShowDialog(false); }}>Semana Atual\r\n { setDate(moment().subtract(7, 'days').startOf('week'), moment().subtract(7, 'days').endOf('week'), 'Semana Passada'); setShowDialog(false); }}>Semana Passada\r\n { setDate(moment().subtract(7, 'days'), moment(), 'Últimos 7 dias'); setShowDialog(false); }}>Últimos 7 dias\r\n { setDate(moment().subtract(30, 'days'), moment(), 'Últimos 30 dias'); setShowDialog(false); }}>Últimos 30 dias\r\n {!props.excludeSelects?.includes('Últimos 60 dias') && (\r\n { setDate(moment().subtract(60, 'days'), moment(), 'Últimos 60 dias'); setShowDialog(false); }}>Últimos 60 dias\r\n )}\r\n {!props.excludeSelects?.includes('Últimos 90 dias') && (\r\n { setDate(moment().subtract(90, 'days'), moment(), 'Últimos 90 dias'); setShowDialog(false); }}>Últimos 90 dias\r\n )}\r\n { setDate(moment().subtract(12, 'months'), moment(), 'Últimos 12 meses'); setShowDialog(false); }}>Últimos 12 meses\r\n\r\n \r\n )\r\n : (\r\n \r\n \r\n { setDate(moment().startOf('week'), moment(), 'Semana Atual'); setShowDialog(false); }}>Semana Atual\r\n \r\n \r\n { setDate(moment().subtract(7, 'days'), moment(), 'Últimos 7 dias'); setShowDialog(false); }}>Últimos 7 dias\r\n \r\n \r\n { setDate(moment().subtract(14, 'days'), moment(), 'Últimos 14 dias'); setShowDialog(false); }}>Últimos 14 dias\r\n \r\n \r\n { setDate(moment().subtract(30, 'days'), moment(), 'Últimos 30 dias'); setShowDialog(false); }}>Últimos 30 dias\r\n \r\n \r\n )}\r\n \r\n )}\r\n
\r\n
\r\n );\r\n};\r\n","import { t } from 'i18next';\r\nimport { toast } from 'react-toastify';\r\nimport { apiCall } from '../providers';\r\nimport { getCachedDevInfo } from './cachedStorage';\r\nimport { getUserProfile } from './userProfile';\r\n\r\nexport function setValueState(key: string): string[] {\r\n const profile = getUserProfile();\r\n if (profile.permissions.isAdminSistema) {\r\n return [];\r\n }\r\n const value = sessionStorage.getItem(key);\r\n if (value) {\r\n const splittedValue = value.split(',');\r\n return splittedValue;\r\n }\r\n return [];\r\n}\r\n\r\nexport async function getCitiesList(state, render): Promise {\r\n try {\r\n const { list: citiesList } = await apiCall('/dac/get-cities-list', {});\r\n state.citiesListOpts = citiesList.map((city) => ({\r\n value: city.id.toString(),\r\n name: city.name,\r\n stateId: city.stateId,\r\n }));\r\n state.selectedCityOpts = setValueState('filterCity');\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('ErroCidades'));\r\n }\r\n}\r\n\r\nexport async function getUnitsList(state, render): Promise {\r\n try {\r\n const profile = getUserProfile();\r\n const { list: unitsList } = await apiCall('/clients/get-units-list-basic', {\r\n INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients || !!profile.permissions.isInstaller,\r\n });\r\n state.unitsListOpts = unitsList.map((unit) => ({\r\n value: unit.UNIT_ID.toString(),\r\n name: unit.UNIT_NAME,\r\n clientId: unit.CLIENT_ID,\r\n city: unit.CITY_ID,\r\n state: unit.STATE_ID,\r\n }));\r\n state.selectedUnitOpts = setValueState('filterUnit');\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroUnidades'));\r\n }\r\n}\r\n\r\nexport async function getClientsList(state, render): Promise {\r\n try {\r\n const { list: clientsList } = await apiCall('/clients/get-clients-list', { INCLUDE_CITIES: true, INCLUDE_STATES: true });\r\n state.clientsListOpts = clientsList.map((client) => ({\r\n value: client.CLIENT_ID.toString(),\r\n name: client.NAME,\r\n cities: client.CITIES,\r\n states: client.STATES,\r\n }));\r\n state.selectedClientOpts = setValueState('filterClient');\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroUnidades'));\r\n }\r\n}\r\n\r\nexport async function getStatesList(state, render): Promise {\r\n try {\r\n const { list: statesList } = await apiCall('/dac/get-states-list', {});\r\n state.statesListOpts = statesList.map((state) => ({\r\n value: state.id.toString(),\r\n name: state.name,\r\n }));\r\n state.selectedStateOpts = setValueState('filterStates');\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('ErroEstados'));\r\n }\r\n}\r\n\r\nexport async function getDeviceInfo(devId: string, state: { devInfo, isLoading: boolean }, setState: (props: { devInfo?, isLoading?: boolean }) => void): Promise {\r\n if (!state.devInfo) {\r\n try {\r\n state.devInfo = await getCachedDevInfo(devId, {});\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n setState({ isLoading: false });\r\n}\r\n\r\nexport async function getCountry(state, render, typeValueName) {\r\n try {\r\n const { list: statesList } = await apiCall('/dac/get-countries-list', {});\r\n state.countryListOpts = statesList.map((state) => ({\r\n value: typeValueName?.includes('pais') ? state.name : state.id,\r\n name: state.name,\r\n }));\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('ErroEstados'));\r\n }\r\n}\r\n\r\nexport function ajustParams(param) {\r\n if (typeof param === 'string') {\r\n return [param];\r\n }\r\n return param;\r\n}\r\n\r\nexport async function getSupervisorsList(state, render): Promise {\r\n try {\r\n const { list: supervisors } = await apiCall('/clients/get-unit-supervisors', { UNIT_IDS: state.unitsListOpts?.map((x) => Number(x.value)) });\r\n const formattedData = supervisors.map((supervisor) => ({\r\n name: `${supervisor.NOME} ${supervisor.SOBRENOME}`,\r\n value: supervisor.USER_ID,\r\n unit_id: supervisor.UNIT_ID,\r\n }));\r\n\r\n const list = [] as { name: string; value: string; unit_ids: number[] }[];\r\n formattedData.forEach((supervisorOptions) => {\r\n const { name, value, unit_id } = supervisorOptions;\r\n const existingSupervisor = list.find((item) => item.name === name && item.value === value);\r\n\r\n if (existingSupervisor) {\r\n if (!existingSupervisor.unit_ids.includes(unit_id)) {\r\n existingSupervisor.unit_ids.push(unit_id);\r\n }\r\n } else {\r\n list.push({ name, value, unit_ids: [unit_id] });\r\n }\r\n });\r\n\r\n state.selectedSupervisorOpts = setValueState('filterSupervisor');\r\n state.supervisorListOpts = list;\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSupervisor'));\r\n }\r\n}\r\n\r\nexport async function getClassesList(state, render): Promise {\r\n try {\r\n const { list: classesList } = await apiCall('/clients/get-classes-list', {});\r\n\r\n const listClasses = [] as { name: string; value: string; }[];\r\n const listClassesNames = [] as { name: string; value: string; class: string, units: number[] }[];\r\n\r\n classesList.forEach((item) => {\r\n const exists = listClasses.some((listItem) => listItem.value === item.class.CLASS_TYPE);\r\n if (!exists) {\r\n listClasses.push({ name: item.class.CLASS_TYPE, value: item.class.CLASS_TYPE });\r\n }\r\n\r\n const existsName = listClassesNames.some((listItem) => listItem.class === item.class.CLASS_NAME);\r\n if (!existsName) {\r\n listClassesNames.push({\r\n name: item.class.CLASS_NAME,\r\n value: item.class.CLASS_NAME,\r\n class: item.class.CLASS_TYPE,\r\n units: item.units.map((unit) => unit.UNIT_ID),\r\n });\r\n }\r\n });\r\n\r\n state.classesNamesListOpts = listClassesNames;\r\n state.classesListOpts = listClasses;\r\n\r\n const selectedClass = setValueState('filterClass');\r\n state.selectedClassesOpts = selectedClass;\r\n state.selectedClassesNamesOpts = setValueState('filterClassName');\r\n state.classesNamesFilterListOpts = selectedClass.length > 0\r\n ? listClassesNames.filter((item) => selectedClass.some((selected) => selected === item.class)) : listClassesNames;\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroClasse'));\r\n }\r\n}\r\n\r\nexport async function getListCities(): Promise<{ value: string, name: string, stateId: number }[]> {\r\n try {\r\n const { list: citiesList } = await apiCall('/dac/get-cities-list', {});\r\n return citiesList.map((city) => ({\r\n value: city.id.toString(),\r\n name: city.name,\r\n stateId: city.stateId,\r\n }));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('ErroCidades'));\r\n return [];\r\n }\r\n}\r\n\r\nexport async function getListUnits(clientId?: number): Promise<\r\n {\r\n value: string,\r\n name: string\r\n clientId: number,\r\n city: string,\r\n state: number,\r\n }[]> {\r\n try {\r\n const profile = getUserProfile();\r\n const { list: unitsList } = await apiCall('/clients/get-units-list-basic', {\r\n INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients || !!profile.permissions.isInstaller,\r\n CLIENT_ID: clientId,\r\n });\r\n\r\n return unitsList.map((unit) => ({\r\n value: unit.UNIT_ID.toString(),\r\n name: unit.UNIT_NAME,\r\n clientId: unit.CLIENT_ID,\r\n city: unit.CITY_ID,\r\n state: unit.STATE_ID,\r\n stateName: unit.STATE_NAME,\r\n }));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroUnidades'));\r\n return [];\r\n }\r\n}\r\n\r\nexport async function getListStates(): Promise<{\r\n value: string,\r\n name: string\r\n}[]> {\r\n try {\r\n const { list: statesList } = await apiCall('/dac/get-states-list', {});\r\n return statesList.map((state) => ({\r\n value: state.id.toString(),\r\n name: state.name,\r\n }));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('ErroEstados'));\r\n return [];\r\n }\r\n}\r\n\r\nexport async function getListRoomTypes(clientId?: number): Promise<{\r\n value: string,\r\n name: string,\r\n}[]> {\r\n try {\r\n const { rtypes } = await apiCall('/clients/get-roomtypes-list', { CLIENT_ID: clientId });\r\n\r\n return rtypes.map((rtype) => ({\r\n value: rtype.RTYPE_ID.toString(),\r\n name: rtype.RTYPE_NAME,\r\n }));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroTipoAmbientes'));\r\n return [];\r\n }\r\n}\r\n\r\nexport function verifyArrayParameters(array?: TypeArray): TypeArray | undefined {\r\n return array && array.length > 0 ? array : undefined;\r\n}\r\n\r\nexport function verifyArrayParametersWithNumber(array?: unknown[]): number[] | undefined {\r\n const result = verifyArrayParameters(array);\r\n if (!result) return undefined;\r\n\r\n return result.map((item) => Number(item));\r\n}\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '../../../styles/colors';\r\n\r\nexport const Container = styled.div<{filterStyle}>(({ filterStyle }) => `\r\n position: relative;\r\n border-radius: 5px;\r\n ${filterStyle}\r\n`);\r\n\r\nconst BaseSpan = `\r\n color: ${colors.Blue300};\r\n font-size: 0.85em;\r\n font-weight: bold;\r\n top: 4px;\r\n`;\r\n\r\nexport const Base = styled.input<{ noBorder }>(({ noBorder }) => `\r\n border: none;\r\n outline: none;\r\n min-height: 41px;\r\n font-size: 1em;\r\n border-radius: 8px;\r\n padding: 10px 16px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n max-width: 224px;\r\n ${!noBorder && `border: 0.7px solid ${colors.GreyInputBorder};`}\r\n\r\n &:focus {\r\n color: ${colors.Grey400}\r\n }\r\n\r\n &::placeholder {\r\n font-size: 12px;\r\n color: ${colors.GreyInputPlaceholder};\r\n }\r\n`);\r\n\r\nexport const Label = styled.label<{ disabled, value, filterStyle, noBorder }>(\r\n ({\r\n disabled, value, filterStyle, noBorder,\r\n }) => `\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n cursor: ${disabled ? 'not-allowed' : 'default'};\r\n ${filterStyle && 'border-radius: 5px;'}\r\n\r\n span {\r\n color: ${disabled ? colors.Grey200 : colors.Blue700};\r\n transition: 0.2s all ease-in-out;\r\n font-size: 1em;\r\n left: 15px;\r\n font-weight: bold;\r\n font-size: 11px;\r\n position: absolute;\r\n cursor: auto;\r\n ${value ? BaseSpan : 'top: calc(50% - 22px);'}\r\n }\r\n &:focus-within {\r\n span {\r\n ${BaseSpan}\r\n }\r\n }\r\n\r\n ${(filterStyle && !noBorder) && 'border: 1px solid #E9E9E9;'}\r\n `,\r\n);\r\n\r\nexport const IconWrapper = styled.div`\r\n position: absolute;\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n right: 15px;\r\n top: calc(50% - 12px);\r\n\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n","import { SearchIcon } from '../../../icons';\r\n\r\nimport {\r\n IconWrapper,\r\n Base,\r\n Container,\r\n Label,\r\n} from './styles';\r\n\r\ntype InputSearchProps = {\r\n label: string;\r\n placeholder: string;\r\n value: string;\r\n name: string;\r\n disabled?: boolean;\r\n onChange: (value: string) => void;\r\n onEnterKey?: () => void;\r\n noBorder?: boolean;\r\n filterStyle?: boolean;\r\n};\r\n\r\nexport const InputSearch = ({\r\n label, placeholder, value, name, disabled, onChange, onEnterKey, noBorder, filterStyle, ...props\r\n}: InputSearchProps): JSX.Element => {\r\n const onKeyPress = (e) => {\r\n if (e.nativeEvent && e.nativeEvent.keyCode === 13 && onEnterKey) {\r\n e.preventDefault(); // Ensure it is only this code that runs\r\n onEnterKey();\r\n }\r\n };\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n","import moment from 'moment';\r\n\r\nexport function getDatesList(date: moment.Moment, numDays: number) {\r\n const dateList = [] as {\r\n mdate: moment.Moment;\r\n YMD: string;\r\n DMY: string;\r\n totalGreenAntCons: number;\r\n totalGreenAntInvoice: number;\r\n totalAirCondCons: number;\r\n savings_kWh: number;\r\n }[];\r\n\r\n for (let i = 0; i < numDays; i++) {\r\n const mdate = moment(date).add(i, 'days');\r\n dateList.push({\r\n mdate,\r\n DMY: mdate.format('DD/MM/YYYY'),\r\n YMD: mdate.format('YYYY-MM-DD'),\r\n totalGreenAntCons: 0,\r\n totalGreenAntInvoice: 0,\r\n totalAirCondCons: 0,\r\n savings_kWh: 0,\r\n });\r\n }\r\n\r\n return dateList;\r\n}\r\n\r\n/**\r\n * Converts a date string in `DD/MM/YYYY` format to `YYYY-MM-DD` format.\r\n *\r\n * @param {string} [str] - The input date string in `DD/MM/YYYY` format.\r\n * @returns {string|undefined} - The formatted date string in `YYYY-MM-DD` format, or `undefined` if the input is not provided.\r\n */\r\nexport function formatStringToDate(str?: string): string | undefined {\r\n return str ? `${str.substring(6, 10)}-${str.substring(3, 5)}-${str.substring(0, 2)}` : undefined;\r\n}\r\n\r\n/**\r\n * Converts an ISO date string in `YYYY-MM-DD` format to `DD/MM/YYYY` format.\r\n *\r\n * @param {string} [str] - The input ISO date string in `YYYY-MM-DD` format.\r\n * @returns {string|undefined} - The formatted date string in `DD/MM/YYYY` format, or `undefined` if the input is not provided.\r\n */\r\nexport function formatISODateToFormattedDateString(str?: string): string | undefined {\r\n return str ? `${str.substring(8, 10)}/${str.substring(5, 7)}/${str.substring(0, 4)}` : undefined;\r\n}\r\n","export const CloseBtn = (): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","import { colors } from '../styles/colors';\r\n\r\nexport const ColorChangeBtn = ({ blueVersion }: {blueVersion?: boolean}) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n","import { Link } from 'react-router-dom';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport styled from 'styled-components';\r\nimport { CalendarIcon, ExportWorksheetIcon, ZoomOutIcon } from '../../icons';\r\nimport { CloseBtn } from '~/icons/CloseBtn';\r\nimport { ColorChangeBtn } from '../../icons/ColorChange';\r\n\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const Container = styled.div`\r\n display: flex;\r\n minHeight: 350px;\r\n position: relative;\r\n flex-wrap: wrap;\r\n @media (min-width: 992px) {\r\n flex-wrap: nowrap;\r\n }\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\nmin-height: 48px;\r\nmargin: 0;\r\nfont-size: 12px;\r\ncolor: #000;\r\nwidth: 100%;\r\nborder: 1px solid #E9E9E9;\r\nborder-radius: 5px;\r\nbox-sizing: border-box !important;\r\ndisplay: inline-flex;\r\n`;\r\n\r\nexport const Text = styled.span`\r\n font-weight: normal;\r\n font-size: 1em;\r\n line-height: 26px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n font-weight: normal;\r\n font-size: 1em;\r\n line-height: 26px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const CheckboxLine = styled.div`\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n`;\r\n\r\nexport const TransparentLink = styled(Link)`\r\n color: inherit;\r\n text-decoration: inherit;\r\n :hover {\r\n color: ${colors.Black};\r\n text-decoration: none;\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nexport const TransparentLinkDut = styled(Link)`\r\n width: 11%;\r\n padding-top: 11px;\r\n padding-left: 7px;\r\n padding-right: 15px;\r\n color: inherit;\r\n text-decoration: inherit;\r\n :hover {\r\n color: ${colors.Black};\r\n text-decoration: none;\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\nposition: absolute;\r\ndisplay: inline-block;\r\nwidth: 18px;\r\nheight: 18px;\r\nright: 15px;\r\ntop: calc(50% - 12px);\r\nsvg {\r\n width: 18px;\r\n height: 18px;\r\n}\r\n`;\r\n\r\nexport const IconWrapperSearch = styled.div`\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n margin-top: 15px;\r\n margin-right: 15px;\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n text-decoration: underline;\r\n font-size: 10px;\r\n`;\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 55px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.BlueSecondary};\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker_picker {\r\n z-index: 999;\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .CalendarDay__hovered_span {\r\n background: ${colors.BlueSelectedSpan};\r\n border: 1px double ${colors.BlueSelectedSpan};\r\n color: ${colors.White};\r\n }\r\n CalendarDay__hovered_span:hover {\r\n background: ${colors.BlueSelectedSpan};\r\n border: 1px double ${colors.BlueSelectedSpan};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__hovered_span_3 {\r\n background: ${colors.BlueSelectedSpan};\r\n border: 1px double ${colors.BlueSelectedSpan};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__hovered_span_3:hover {\r\n background: ${colors.BlueSelectedSpan};\r\n border: 1px double ${colors.BlueSelectedSpan};\r\n color: ${colors.White};\r\n }\r\n`;\r\n\r\nexport const DateLabel = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 14px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 12px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const BtnExport = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n margin-left: 10px;\r\n font-weight: 400;\r\n border-radius: 12px;\r\n height: 41px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n :hover {\r\n color: ${colors.White}\r\n background-color: #363BC4\r\n ${Text} {\r\n color: ${colors.White}\r\n }\r\n })\r\n`;\r\n\r\nexport const ZoomOut = styled(ZoomOutIcon)(\r\n () => `\r\n padding-left: 10px;\r\n color: #363BC4;\r\n`,\r\n);\r\n\r\nexport const ExportWorksheet = styled(ExportWorksheetIcon)(\r\n () => `\r\n padding-left: 10px;\r\n color: #363BC4;\r\n`,\r\n);\r\n\r\nexport const CloseBtnIcon = styled(CloseBtn)(\r\n () => `\r\n padding-left: 10px;\r\n color: #363BC4;\r\n`,\r\n);\r\n\r\nexport const TextLabel = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-top: 6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 12px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const OptionColor = styled.div`\r\n display: inline;\r\n border-radius: 4px;\r\n width: 26px;\r\n height: 22px;\r\n padding: 0 10px;\r\n background-color: ${(props) => props.color};\r\n`;\r\n\r\nexport const StyledReactTooltip = styled(ReactTooltip)`\r\n opacity: 1 !important;\r\n`;\r\n\r\nexport const ModalContent = styled.div`\r\n background-color: #fefefe;\r\n padding: 20px;\r\n width: 400px;\r\n height: 400px;\r\n border-radius: 10px;\r\n`;\r\n\r\nexport const ColorChangeBtnSvg = styled(ColorChangeBtn)(\r\n () => `\r\n padding-left: 10px;\r\n color: #363BC4;\r\n `,\r\n);\r\n\r\nexport const ColorChangeBtnWithHover = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n margin-left: 10px;\r\n font-weight: 400;\r\n border-radius: 12px;\r\n height: 41px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n :hover {\r\n color: ${colors.White}\r\n background-color: #363BC4\r\n ${Text} {\r\n color: ${colors.White}\r\n }\r\n })\r\n`;\r\n\r\nexport const ListBoxOptionColor = styled.div`\r\n display: inline;\r\n border-radius: 4px;\r\n width: 20px;\r\n height: 6px;\r\n padding: 0 10px;\r\n background-color: ${(props) => props.color};\r\n`;\r\n","import SelectSearch, {\r\n fuzzySearch,\r\n SelectedOptionValue,\r\n SelectedOption,\r\n SelectSearchOption,\r\n SelectSearchProps,\r\n} from 'react-select-search';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { Checkbox as CheckboxAnalysis } from '@material-ui/core';\r\n\r\nimport {\r\n SearchInput,\r\n Label,\r\n StatusIcon,\r\n ControlFilter,\r\n CleanBtn,\r\n ExportBtn,\r\n TempGreat,\r\n TempHigh,\r\n TempLow,\r\n NoTempData,\r\n OptionExportList,\r\n CancelButton,\r\n ContentDate,\r\n DateLabel,\r\n ContainerCheckbox,\r\n HoverExportList,\r\n ModalWindowStyled,\r\n ContainerModal,\r\n TitleModal,\r\n SubtitleModal,\r\n FiltersContainer,\r\n ContainerArea,\r\n ContentDateNew,\r\n ArrowButton,\r\n ContainerDateNew,\r\n CheckboxLine,\r\n TransparentLink as TransparentLinkIcon,\r\n RowCheckbox,\r\n SelectWithCheckbox,\r\n LoadingContainer,\r\n} from './styles';\r\nimport { DateRangePicker, SingleDatePicker } from 'react-dates';\r\nimport i18n from '~/i18n';\r\nimport {\r\n Button, Card, Checkbox, HealthIcon, FiltersContainer as FiltersSelected,\r\n QuickSelectionV2, Loader,\r\n} from '~/components';\r\n\r\nimport {\r\n useEffect,\r\n useRef,\r\n useState,\r\n} from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n ArrowDownIconV2, ArrowUpIconV2, CompleteListIcon, CustomListIcon, ExportIcon, FilterIcon, InfoIcon, LinkIcon, NewExpandIcon,\r\n} from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\nimport { CSVLink } from 'react-csv';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { QuickSelection } from '~/components/QuickSelection';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport moment, { Moment } from 'moment';\r\nimport { StyledCalendarIcon } from '../../DACs/DACHistoric';\r\nimport {\r\n getClientsList, getCitiesList, getStatesList, getUnitsList, getCountry,\r\n getSupervisorsList,\r\n getClassesList,\r\n} from '~/helpers/genericHelper';\r\nimport { InputSearch } from '~/components/NewInputs/Search';\r\nimport { apiCall } from '~/providers';\r\nimport DatePicker from 'react-datepicker';\r\nimport { getDatesList } from '~/helpers/dates';\r\nimport { GroupInfo } from '~/components/EnvGroupAnalysis';\r\nimport {\r\n StyledReactTooltip, Text, CheckboxLine as CheckBoxLineAnalysis,\r\n BtnClean,\r\n} from '~/components/EnvGroupAnalysis/styles';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nconst t = i18n.t.bind(i18n);\r\n\r\n// para usar o filtro tem que ter as variaveis criadas no state do componente:\r\n// state.searchState\r\n// state.selectedCity\r\n// state.selectedState\r\n// state.selectedUnit\r\n// state.selectedClientFilter\r\n// state.selectedHealthOpts\r\n// state.selectedTemperatureOpts\r\n// state.selectedControlOpts\r\n// state.selectedModeEcoOpts\r\n// state.selectedPeriodOpts\r\n// state.selectedDataTypeOpts\r\n// state.selectedAnalysisOpts\r\n// state.selectedCountry\r\n// state.selectedTrooms\r\n// state.selectedL1s\r\n// state.selectedTambs\r\n// state.selectedTInmets\r\n// state.selectedPowers\r\n// state.selectedUtilities\r\n\r\nexport type TListFilters = 'progDisp' | 'tipo' | 'operacao' | 'cliente' | 'estado' | 'cidade' | 'unidade' | 'statusOperacao' | 'conexao' | 'status' | 'saude' | 'temperatura' | 'controle' | 'modoEco' | 'periodo' | 'data' | 'dataUnica' | 'dados' | 'analise' | 'pais' | 'id' | 'search' | 'tipoNotificacao' | 'subtipoNotificacao' | 'destinatario' | 'responsavel' | 'grupo' | 'dataNew' | 'fornecedor' | 'maquina' | 'ambiente' | 'temperaturaExterna' | 'temperaturaExternaMeteorologica' | 'utilitario' | 'potenciaAtiva';\r\n\r\ntype TValueFilter = string | string[];\r\n\r\ntype FilterColumnsSelected = {\r\n [key: string]: {\r\n label: string;\r\n values: {\r\n value: string;\r\n name: string\r\n }[]\r\n };\r\n}\r\n\r\nexport const UtilFilter = (props:{\r\n state: any,\r\n updateCheckInformations?: (value: any, date?: Moment) => void,\r\n informationsUnits?: any,\r\n optionsConnetions?: SelectSearchOption[],\r\n optionsConnetionsName?: string,\r\n render: any,\r\n searchLabel?: string;\r\n onAply: () => void, // funçao para quando mudar o valor do select;\r\n clearFilters?: () => void, // função de limpar o filtro\r\n listFilters?: TListFilters[], // passar os selects que é pra ter;\r\n exportFunc?: () => Promise | void, // usado em exportação;\r\n typeValueName?: TListFilters[], // usado para quando você quer que os valores sejam os nomes ou seja label e name ficam iguais;\r\n isProg?: boolean, // usado no select de dispostivo / programação;\r\n setView?: (timeSelected: string) => void, // usado no select de periodo para ter as seleções rapidas\r\n setProg?: (value: string) => void, // usado no select de dispostivo / programação;\r\n infoType?: { value: string, name: string }[],\r\n isFilterButton?: boolean,\r\n isPeriodLabel?: boolean,\r\n isMaxOneMonthPeriod?: boolean,\r\n removeYearFilter?: boolean,\r\n removeMonthFilter?: boolean,\r\n fixedPeriod?: boolean,\r\n margin?: boolean;\r\n isLoading?: boolean;\r\n filterFooter?: boolean;\r\n closeDefault?: boolean;\r\n l1Only?: boolean;\r\n handleChangePeriod?: () => void,\r\n includeQuickSelection?: boolean,\r\n unitCoordinate?: { lat: string | null; lon: string | null; }\r\n lengthArrayResult?: number;\r\n closeFilter?: boolean;\r\n csvHeader?: { // usado para exportação\r\n label: string;\r\n key: string;\r\n}[]}): JSX.Element => {\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: false, // setIsLoading\r\n showFilter: props.closeDefault != null ? !props.closeDefault : true as boolean,\r\n clientsListOpts: [] as { value: string, name: string, cities: string[], states: number[] }[],\r\n selectedClientOpts: [] as TValueFilter,\r\n statesListOpts: [] as { value: string, name: string }[],\r\n statesListFilterOpts: [] as { value: string, name: string }[],\r\n selectedStateOpts: [] as TValueFilter,\r\n citiesListFilterOpts: [] as { value: string, name: string, stateId: number }[],\r\n citiesListOpts: [] as { value: string, name: string, stateId: number }[],\r\n selectedCityOpts: [] as TValueFilter,\r\n unitsFilterOpts: [] as { value: string, name: string, clientId: number, city: string, state: string }[],\r\n unitsListOpts: [] as { value: string, name: string, clientId: number, city: string, state: string }[],\r\n selectedUnitOpts: [] as TValueFilter,\r\n supervisorListOpts: [] as { value: string, name: string, unit_ids: number[] }[],\r\n supervisorFilterListOpts: [] as { value: string, name: string}[],\r\n classesListOpts: [] as { value: string, name: string}[],\r\n classesNamesListOpts: [] as { value: string, name: string, class: string, units: number[] }[],\r\n classesNamesFilterListOpts: [] as { value: string, name: string, class: string, units: number[] }[],\r\n selectedSupervisorOpts: [] as TValueFilter,\r\n selectedClassesOpts: [] as TValueFilter,\r\n selectedClassesNamesOpts: [] as TValueFilter,\r\n selectedConnectionOpts: [] as TValueFilter,\r\n selectedStatusOpts: [] as TValueFilter,\r\n selectedSupplierOpts: '' as TValueFilter,\r\n selectedHealthOpts: [] as TValueFilter,\r\n selectedTemperatureOpts: [] as TValueFilter,\r\n selectedControlOpts: [] as TValueFilter,\r\n selectedModeEcoOpts: [] as TValueFilter,\r\n selectedPeriodOpts: props.state?.selectedTimeRange ?? '' as string,\r\n selectedDataTypeOpts: 'energia' as TValueFilter,\r\n selectedAnalysisOpts: 'unidades' as TValueFilter,\r\n selectedCountry: [] as TValueFilter,\r\n countryListOpts: [] as { value: string | number; name: string; }[],\r\n searchTerms: '',\r\n selectStartOperationOpts: '' as TValueFilter,\r\n selectEndOperationOpts: '' as TValueFilter,\r\n selectedOperationStatusOpts: [] as TValueFilter,\r\n selectedOwnershipFilter: props.infoType ? 'all' : { value: 'CLIENTS' } as any | any[],\r\n selectedInfoExib: 'dispositivo' as any | any[],\r\n dateValuePicker: {} as {\r\n startDate: moment.Moment | null,\r\n endDate: moment.Moment | null,\r\n },\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n focused: {} as {\r\n id: string,\r\n focused: boolean,\r\n },\r\n selectedDevId: '',\r\n csvData: [], // setCsvData,\r\n selectedNotificationType: [] as TValueFilter,\r\n selectedNotificationSubtype: [] as TValueFilter,\r\n selectedNotificationDestinatary: [] as TValueFilter,\r\n selectedDateStart: null as Moment | null,\r\n selectedDateEnd: null as Moment | null,\r\n selectFocused: false,\r\n destinataryListOps: [] as { name: string, value: string }[],\r\n buttonName: props?.isFilterButton ? t('filtrar') : t('botaoAnalisar'),\r\n typesNotificationFilterOpts: [] as { value: number, name: string }[],\r\n typesNotificationListOpts: [] as { value: number, name: string }[],\r\n subtypesNotificationFilterOpts: [] as { value: number, name: string, typeId: number }[],\r\n subtypesNotificationListOpts: [] as { value: number, name: string, typeId: number }[],\r\n isClearFilter: false as boolean,\r\n selectedTrooms: [] as TValueFilter,\r\n selectedL1s: [] as TValueFilter,\r\n selectedTambs: [] as TValueFilter,\r\n selectedTInmets: [] as TValueFilter,\r\n selectedUtilities: [] as TValueFilter,\r\n selectedPowers: [] as TValueFilter,\r\n\r\n selectedFiltersColumns: {\r\n CLIENT: {\r\n label: t('cliente'),\r\n values: [],\r\n },\r\n UNIT: {\r\n label: t('unidade'),\r\n values: [],\r\n },\r\n STATE: {\r\n label: t('estado'),\r\n values: [],\r\n },\r\n CITY: {\r\n label: t('cidade'),\r\n values: [],\r\n },\r\n SUPERVISOR: {\r\n label: t('responsavel'),\r\n values: [],\r\n },\r\n CLASS_NAME: {\r\n label: t('nomeDoGrupo'),\r\n values: [],\r\n },\r\n } as FilterColumnsSelected,\r\n finalizedInputs: false as boolean,\r\n };\r\n return state;\r\n });\r\n const [profile] = useState(getUserProfile);\r\n\r\n const isDesktop = window.matchMedia('(min-width: 1039px)').matches;\r\n\r\n function clearFilters() {\r\n state.isClearFilter = true;\r\n state.selectedCityOpts = [];\r\n state.searchTerms = '';\r\n state.selectedClientOpts = [];\r\n state.selectedConnectionOpts = [];\r\n state.selectedStateOpts = [];\r\n state.selectedStatusOpts = [];\r\n state.selectedSupplierOpts = 'Todos';\r\n state.selectedUnitOpts = [];\r\n state.selectedHealthOpts = [];\r\n state.selectedTemperatureOpts = [];\r\n state.selectedControlOpts = [];\r\n state.selectedModeEcoOpts = [];\r\n state.selectedDataTypeOpts = [];\r\n state.selectedAnalysisOpts = [];\r\n state.selectedNotificationType = [];\r\n state.selectedNotificationSubtype = [];\r\n state.selectedNotificationDestinatary = [];\r\n state.selectedClassesNamesOpts = [];\r\n state.selectedSupervisorOpts = [];\r\n state.selectedClassesOpts = [];\r\n\r\n if (!props.fixedPeriod) {\r\n state.selectedPeriodOpts = '';\r\n }\r\n\r\n removeAllFilters();\r\n if (props.listFilters?.includes('data')) {\r\n props.informationsUnits.dates.dateStart = null;\r\n props.informationsUnits.dates.dateEnd = null;\r\n }\r\n if (props.state.isUnits) {\r\n props.informationsUnits.statusUnitsCheck = '2';\r\n }\r\n state.selectEndOperationOpts = '';\r\n state.selectStartOperationOpts = '';\r\n state.dateValuePicker.startDate = null;\r\n state.dateValuePicker.endDate = null;\r\n state.selectedDateStart = null;\r\n state.selectedDateEnd = null;\r\n state.selectedDevId = '';\r\n clearOwners();\r\n setState({ statesListFilterOpts: state.statesListOpts });\r\n setState({ citiesListFilterOpts: state.citiesListOpts });\r\n setState({ supervisorFilterListOpts: state.supervisorListOpts });\r\n setState({ unitsFilterOpts: state.unitsListOpts });\r\n setState({ typesNotificationFilterOpts: state.typesNotificationListOpts });\r\n setState({ subtypesNotificationFilterOpts: state.subtypesNotificationListOpts });\r\n render();\r\n if (!props.onAply) {\r\n filter();\r\n }\r\n sessionStorage.clear();\r\n props.state.needFilter = null;\r\n state.isLoading = false;\r\n }\r\n\r\n async function getDestinataryListOpts() {\r\n try {\r\n const clientIds = Array.isArray(state.selectedClientOpts) && state.selectedClientOpts.length > 0 ? state.selectedClientOpts.map((x) => Number(x)) : undefined;\r\n await apiCall('/users/list-users', { CLIENT_IDS: clientIds, includeAdmins: profile.permissions.isAdminSistema }).then(({ list, adminUsers }) => {\r\n const fullList = list.map((item) => ({ FULLNAME: item.FULLNAME, USER: item.USER, unitIds: item.unitIds })) as {\r\n FULLNAME: string,\r\n USER: string,\r\n unitIds?: number[],\r\n }[];\r\n for (const adminUser of (adminUsers || [])) {\r\n if (fullList.some((x) => x.USER === adminUser.USER)) { continue; } // user already in the list\r\n else fullList.push({ FULLNAME: adminUser.FULLNAME, USER: adminUser.USER });\r\n }\r\n state.destinataryListOps = fullList.map((x) => ({ name: x.FULLNAME, value: x.USER }));\r\n });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroDestinatarios'));\r\n }\r\n render();\r\n }\r\n\r\n function getTypesNotificationListOpts() {\r\n setState({\r\n typesNotificationListOpts: [\r\n { value: 1, name: t('ambiente') },\r\n { value: 2, name: t('maquina') },\r\n { value: 3, name: t('utilitario') },\r\n ],\r\n });\r\n setState({ typesNotificationFilterOpts: state.typesNotificationListOpts });\r\n render();\r\n }\r\n\r\n function getSubtypesNotificationListOpts() {\r\n setState({\r\n subtypesNotificationListOpts: [\r\n { value: 4, name: t('agua'), typeId: 3 },\r\n { value: 1, name: t('ambiente'), typeId: 1 },\r\n { value: 3, name: t('energia'), typeId: 3 },\r\n { value: 5, name: t('saude'), typeId: 2 },\r\n { value: 6, name: t('usoCondensadora'), typeId: 2 },\r\n // { value: 7, name: t('VRF'), typeId: 2 },\r\n ],\r\n });\r\n setState({ subtypesNotificationFilterOpts: state.subtypesNotificationListOpts });\r\n render();\r\n }\r\n\r\n function clearOwners() {\r\n if (props.infoType) {\r\n state.selectedOwnershipFilter = 'all';\r\n } else {\r\n state.selectedOwnershipFilter = { value: 'CLIENTS' };\r\n }\r\n }\r\n\r\n async function getValues() {\r\n state.finalizedInputs = false;\r\n if (props.listFilters?.includes('estado')) {\r\n await getStatesList(state, render);\r\n setState({ statesListFilterOpts: state.statesListOpts });\r\n }\r\n if (props.listFilters?.includes('cidade')) {\r\n await getCitiesList(state, render);\r\n setState({ citiesListFilterOpts: state.citiesListOpts });\r\n }\r\n if (props.listFilters?.includes('cliente') && profile.manageAllClients) {\r\n await getClientsList(state, render);\r\n }\r\n if (props.listFilters?.includes('unidade')) {\r\n await getUnitsList(state, render);\r\n setState({ unitsFilterOpts: state.unitsListOpts });\r\n }\r\n if (props.listFilters?.includes('pais')) {\r\n await getCountry(state, render, props.typeValueName);\r\n }\r\n if (props.listFilters?.includes('responsavel')) {\r\n await getSupervisorsList(state, render);\r\n setState({ supervisorFilterListOpts: state.supervisorListOpts });\r\n }\r\n if (props.listFilters?.includes('grupo') && !profile.manageAllClients) {\r\n await getClassesList(state, render);\r\n }\r\n\r\n state.finalizedInputs = true;\r\n\r\n getPreFilteredParams();\r\n }\r\n\r\n useEffect(() => {\r\n if (props.listFilters?.includes('tipoNotificacao')) {\r\n getTypesNotificationListOpts();\r\n }\r\n\r\n if (props.listFilters?.includes('subtipoNotificacao')) {\r\n getSubtypesNotificationListOpts();\r\n }\r\n\r\n getValues();\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (props.listFilters?.includes('destinatario')) {\r\n getDestinataryListOpts();\r\n }\r\n }, [state.selectedClientOpts]);\r\n\r\n useEffect(() => {\r\n if (props.lengthArrayResult && props.lengthArrayResult > 5) {\r\n setState({ showFilter: false });\r\n }\r\n }, [props.lengthArrayResult]);\r\n\r\n function getPreFilteredParams() {\r\n let hasPrefilters = false;\r\n\r\n if (props.state?.selectedState?.length) {\r\n hasPrefilters = true;\r\n state.selectedFiltersColumns.STATE.values = state.statesListOpts.filter((c) => props.state?.selectedState.includes(c.value));\r\n setState({ selectedStateOpts: props.state.selectedState });\r\n }\r\n if (props.state?.selectedCity?.length) {\r\n hasPrefilters = true;\r\n state.selectedFiltersColumns.CITY.values = state.citiesListOpts.filter((c) => props.state?.selectedCity.includes(c.value));\r\n setState({ selectedCityOpts: props.state.selectedCity });\r\n }\r\n if (props.state?.selectedUnit?.length) {\r\n hasPrefilters = true;\r\n state.selectedFiltersColumns.UNIT.values = state.unitsListOpts.filter((c) => props.state?.selectedUnit.includes(c.value));\r\n setState({ selectedUnitOpts: props.state.selectedUnit });\r\n }\r\n if (props.state.selectedTemperature?.length) {\r\n hasPrefilters = true;\r\n setState({ selectedTemperatureOpts: props.state.selectedTemperature });\r\n }\r\n if (props.state.selectedSupervisor?.length) {\r\n hasPrefilters = true;\r\n state.selectedFiltersColumns.SUPERVISOR.values = state.supervisorListOpts.filter((c) => props.state?.selectedSupervisor.includes(c.value));\r\n setState({ selectedSupervisorOpts: props.state.selectedSupervisor });\r\n }\r\n\r\n if (state.selectedClassesNamesOpts.length) {\r\n hasPrefilters = true;\r\n state.selectedFiltersColumns.CLASS_NAME.values = state.classesNamesListOpts.filter((c) => state.selectedClassesNamesOpts.includes(c.value));\r\n }\r\n\r\n if (props.state?.selectedTrooms?.length) {\r\n hasPrefilters = true;\r\n setState({ selectedTrooms: props.state.selectedTrooms });\r\n }\r\n\r\n if (props.state?.selectedTambs?.length) {\r\n hasPrefilters = true;\r\n setState({ selectedTambs: props.state.selectedTambs });\r\n }\r\n\r\n if (props.state?.selectedL1s?.length) {\r\n hasPrefilters = true;\r\n setState({ selectedL1s: props.state.selectedL1s });\r\n }\r\n\r\n if (props.state?.selectedPowers?.length) {\r\n hasPrefilters = true;\r\n setState({ selectedPowers: props.state.selectedPowers });\r\n }\r\n\r\n if (props.state?.selectedTInmets?.length) {\r\n hasPrefilters = true;\r\n setState({ selectedTInmets: props.state.selectedTInmets });\r\n }\r\n\r\n if (props.state?.selectedUtilities?.length) {\r\n hasPrefilters = true;\r\n setState({ selectedUtilities: props.state.selectedUtilities });\r\n }\r\n\r\n if (hasPrefilters) {\r\n setVariables();\r\n props.onAply!();\r\n }\r\n\r\n render();\r\n }\r\n\r\n function filter() {\r\n props.state.isLoading = true; props.render();\r\n props.state.filteredUtilities = props.state.utilities\r\n .filter((dev) => !state.selectedStateOpts!.length || state.selectedStateOpts!.includes(dev.STATE_UF))\r\n .filter((dev) => !state.selectedCityOpts!.length || state.selectedCityOpts!.includes(dev.CITY_NAME))\r\n .filter((dev) => !state.selectedClientOpts!.length || state.selectedClientOpts!.includes(dev.CLIENT_NAME))\r\n .filter((dev) => !state.selectedUnitOpts!.length || state.selectedUnitOpts!.includes(dev.UNIT_NAME))\r\n .filter((dev) => !state.selectedConnectionOpts!.length || state.selectedConnectionOpts!.includes(dev.connection))\r\n .filter((dev) => !state.selectedStatusOpts!.length || state.selectedStatusOpts!.includes(dev.status));\r\n\r\n props.state.isLoading = false; props.render();\r\n }\r\n\r\n function setVariablesUsuals() {\r\n if (props.listFilters?.includes('estado')) {\r\n props.state.selectedState = state.selectedStateOpts;\r\n defineSessionStorage('filterStates', state.selectedStateOpts);\r\n }\r\n if (props.listFilters?.includes('cidade')) {\r\n props.state.selectedCity = state.selectedCityOpts;\r\n defineSessionStorage('filterCity', state.selectedCityOpts);\r\n }\r\n if (props.listFilters?.includes('cliente') && profile.manageAllClients) {\r\n props.state.selectedClientFilter = state.selectedClientOpts;\r\n defineSessionStorage('filterClient', state.selectedClientOpts);\r\n }\r\n if (props.listFilters?.includes('unidade')) {\r\n props.state.selectedUnit = state.selectedUnitOpts;\r\n defineSessionStorage('filterUnit', state.selectedUnitOpts);\r\n }\r\n if (props.listFilters?.includes('responsavel')) {\r\n props.state.selectedSupervisor = state.selectedSupervisorOpts;\r\n defineSessionStorage('filterSupervisor', state.selectedSupervisorOpts);\r\n }\r\n if (props.listFilters?.includes('grupo')) {\r\n defineSessionStorage('filterClass', state.selectedClassesOpts);\r\n defineSessionStorage('filterClassName', state.selectedClassesNamesOpts);\r\n }\r\n if (props.listFilters?.includes('ambiente')) {\r\n props.state.selectedTrooms = state.selectedTrooms;\r\n defineSessionStorage('filterEnvironment', state.selectedTrooms);\r\n }\r\n if (props.listFilters?.includes('maquina')) {\r\n props.state.selectedL1s = state.selectedL1s;\r\n defineSessionStorage('filterMachines', state.selectedL1s);\r\n }\r\n if (props.listFilters?.includes('temperaturaExterna')) {\r\n props.state.selectedTambs = state.selectedTambs;\r\n defineSessionStorage('filterExtTemperature', state.selectedTambs);\r\n }\r\n if (props.listFilters?.includes('temperaturaExternaMeteorologica')) {\r\n props.state.selectedTrooms = state.selectedTInmets;\r\n defineSessionStorage('filterExtTemperatureMet', state.selectedTInmets);\r\n }\r\n if (props.listFilters?.includes('utilitario')) {\r\n props.state.selectedUtilities = state.selectedUtilities;\r\n defineSessionStorage('filterUtilities', state.selectedUtilities);\r\n }\r\n if (props.listFilters?.includes('potenciaAtiva')) {\r\n props.state.selectedPowers = state.selectedPowers;\r\n defineSessionStorage('filterPowers', state.selectedPowers);\r\n }\r\n if (props.listFilters?.includes('search')) {\r\n props.state.searchState = state.searchTerms;\r\n }\r\n }\r\n\r\n function setVariablesWater() {\r\n if (props.listFilters?.includes('fornecedor')) {\r\n props.state.selectSupplier = state.selectedSupplierOpts;\r\n }\r\n }\r\n\r\n function setVariablesNotification() {\r\n if (props.listFilters?.includes('dataUnica')) {\r\n props.state.selectedDateStart = state.selectedDateStart;\r\n props.state.selectedDateEnd = state.selectedDateEnd;\r\n }\r\n if (props.listFilters?.includes('tipoNotificacao')) {\r\n props.state.selectedNotificationType = state.selectedNotificationType;\r\n }\r\n if (props.listFilters?.includes('subtipoNotificacao')) {\r\n props.state.selectedNotificationSubtype = state.selectedNotificationSubtype;\r\n }\r\n if (props.listFilters?.includes('destinatario')) {\r\n props.state.selectedNotificationDestinatary = state.selectedNotificationDestinatary;\r\n }\r\n }\r\n\r\n function defineSessionStorage(key, value) {\r\n sessionStorage.setItem(key, value);\r\n }\r\n\r\n function onChangeClient(clients) {\r\n const filteredArray = clients.filter((value) => !state.selectedClientOpts.includes(value));\r\n if (filteredArray?.length) {\r\n const selectedClients = [...state.selectedClientOpts, ...filteredArray];\r\n state.selectedFiltersColumns.CLIENT.values = state.clientsListOpts.filter((c) => selectedClients.includes(c.value));\r\n state.selectedFiltersColumns.UNIT.values = [];\r\n state.selectedFiltersColumns.STATE.values = [];\r\n state.selectedFiltersColumns.CITY.values = [];\r\n state.selectedFiltersColumns.SUPERVISOR.values = [];\r\n onChangeClientAux(selectedClients);\r\n } else {\r\n state.selectedFiltersColumns.CLIENT.values = state.clientsListOpts.filter((c) => clients.includes(c.value));\r\n onChangeClientAux(clients);\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onChangeClientAux(selectedValues) {\r\n const filteredStates = state.statesListOpts.filter((st) => !selectedValues?.length || state.clientsListOpts.some((client) => client.states.includes(Number(st.value)) && selectedValues.includes(client.value)));\r\n\r\n const filteredCities = state.citiesListOpts.filter((city) => !selectedValues?.length || state.clientsListOpts.some((client) => selectedValues.includes(client.value) && client.cities.includes(city.value)));\r\n\r\n const filteredUnits = state.unitsListOpts.filter((unit) => {\r\n const isClientMatching = !selectedValues?.length || selectedValues.includes(unit.clientId.toString());\r\n const isCityMatching = filteredCities.some((city) => city.value === unit.city);\r\n return isClientMatching && isCityMatching;\r\n });\r\n\r\n const filteredSupervisors = state.supervisorListOpts.filter((supervisor) => supervisor.unit_ids.some((unitId) => filteredUnits.some((unit) => unit.value === unitId.toString())));\r\n\r\n state.selectedFiltersColumns.CITY.values = [];\r\n state.selectedFiltersColumns.UNIT.values = [];\r\n state.selectedFiltersColumns.SUPERVISOR.values = [];\r\n state.selectedFiltersColumns.STATE.values = [];\r\n\r\n setState({\r\n selectedUnitOpts: [],\r\n selectedSupervisorOpts: [],\r\n selectedCityOpts: [],\r\n selectedStateOpts: [],\r\n citiesListFilterOpts: filteredCities,\r\n unitsFilterOpts: filteredUnits,\r\n supervisorFilterListOpts: filteredSupervisors,\r\n statesListFilterOpts: filteredStates,\r\n selectedClientOpts: selectedValues,\r\n });\r\n }\r\n\r\n function onChangeState(states) {\r\n const filteredArray = states.filter((value) => !state.selectedStateOpts.includes(value));\r\n if (filteredArray?.length) {\r\n const selectedStates = [...state.selectedStateOpts, ...filteredArray];\r\n state.selectedFiltersColumns.CITY.values = [];\r\n state.selectedFiltersColumns.UNIT.values = [];\r\n state.selectedFiltersColumns.SUPERVISOR.values = [];\r\n state.selectedFiltersColumns.STATE.values = state.statesListOpts.filter((c) => selectedStates.includes(c.value));\r\n\r\n onChangeStateAux(selectedStates);\r\n } else {\r\n state.selectedFiltersColumns.STATE.values = state.statesListOpts.filter((st) => states.some((val) => val === st.value));\r\n\r\n onChangeStateAux(states);\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onChangeStateAux(selectedValues) {\r\n const filteredCities = state.citiesListOpts.filter((city) => {\r\n const isStateMatching = !selectedValues?.length || selectedValues.includes(city.stateId.toString());\r\n const isClientMatching = !state.selectedClientOpts.length || state.clientsListOpts.some((client) => state.selectedClientOpts.includes(client.value) && client.cities.includes(city.value));\r\n return isStateMatching && isClientMatching;\r\n });\r\n\r\n const filteredUnits = state.unitsListOpts.filter((unit) => {\r\n const isStateMatching = !selectedValues?.length || selectedValues.includes(unit.state?.toString());\r\n const isCityMatching = !state.selectedCityOpts.length || filteredCities.some((city) => city.value === unit.city);\r\n const isClientMatching = !state.selectedClientOpts.length || state.selectedClientOpts.includes(unit.clientId.toString());\r\n return isStateMatching && isCityMatching && isClientMatching;\r\n });\r\n\r\n const filteredSupervisors = state.supervisorListOpts.filter((supervisor) => supervisor.unit_ids.some((unitId) => filteredUnits.some((unit) => unit.value === unitId.toString())));\r\n\r\n state.selectedFiltersColumns.CITY.values = [];\r\n state.selectedFiltersColumns.UNIT.values = [];\r\n state.selectedFiltersColumns.SUPERVISOR.values = [];\r\n\r\n setState({\r\n selectedUnitOpts: [],\r\n selectedSupervisorOpts: [],\r\n selectedCityOpts: [],\r\n citiesListFilterOpts: filteredCities,\r\n unitsFilterOpts: filteredUnits,\r\n supervisorFilterListOpts: filteredSupervisors,\r\n selectedStateOpts: selectedValues,\r\n });\r\n }\r\n\r\n function onChangeCity(cities) {\r\n const filteredArray = cities.filter((value) => !state.selectedCityOpts.includes(value));\r\n if (filteredArray?.length) {\r\n const selectedCities = [...state.selectedCityOpts, ...filteredArray];\r\n state.selectedFiltersColumns.CITY.values = state.citiesListOpts.filter((c) => selectedCities.includes(c.value));\r\n state.selectedFiltersColumns.UNIT.values = [];\r\n state.selectedFiltersColumns.SUPERVISOR.values = [];\r\n\r\n onChangeCityAux(selectedCities);\r\n } else {\r\n state.selectedFiltersColumns.CITY.values = state.citiesListOpts.filter((ct) => cities.some((val) => val === ct.value));\r\n onChangeCityAux(cities);\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onChangeCityAux(selectedValues) {\r\n const filteredUnits = state.unitsListOpts.filter((unit) => {\r\n const isCityMatching = !selectedValues?.length || selectedValues.includes(unit.city);\r\n const isStateMatching = !state.selectedStateOpts.length || state.selectedStateOpts.includes(unit.state?.toString());\r\n const isClientMatching = !state.selectedClientOpts.length || state.selectedClientOpts.includes(unit.clientId.toString());\r\n return isCityMatching && isStateMatching && isClientMatching;\r\n });\r\n\r\n const filteredSupervisors = state.supervisorListOpts.filter((supervisor) => {\r\n supervisor.unit_ids.some((unitId) => filteredUnits.some((unit) => unit.value === unitId.toString()));\r\n });\r\n\r\n state.selectedFiltersColumns.UNIT.values = [];\r\n state.selectedFiltersColumns.SUPERVISOR.values = [];\r\n\r\n setState({\r\n unitsFilterOpts: filteredUnits,\r\n selectedUnitOpts: [],\r\n selectedSupervisorOpts: [],\r\n selectedCityOpts: selectedValues,\r\n supervisorFilterListOpts: filteredSupervisors,\r\n });\r\n }\r\n\r\n function onChangeUnit(units) {\r\n const filteredArray = units.filter((value) => !state.selectedUnitOpts.includes(value));\r\n if (filteredArray?.length) {\r\n state.selectedFiltersColumns.UNIT.values = state.unitsFilterOpts\r\n .filter((unit) => [...state.selectedUnitOpts, ...filteredArray].some((val) => val.toString() === unit.value))\r\n .map((unit) => ({\r\n name: unit.name,\r\n value: unit.value,\r\n }));\r\n setState({\r\n selectedUnitOpts: [...state.selectedUnitOpts, ...filteredArray],\r\n supervisorFilterListOpts: state.supervisorListOpts.filter((item) => item.unit_ids.some((unitId) => [...state.selectedUnitOpts, ...filteredArray].some((unit) => Number(unit) === unitId))),\r\n });\r\n } else {\r\n state.selectedFiltersColumns.UNIT.values = state.unitsListOpts.filter((u) => units.some((val) => val === u.value));\r\n state.selectedFiltersColumns.CLASS_NAME.values = [];\r\n setState({\r\n selectedUnitOpts: units,\r\n unitsFilterOpts: state.unitsListOpts,\r\n supervisorFilterListOpts: state.supervisorListOpts,\r\n selectedSupervisorOpts: [],\r\n selectedClassesNamesOpts: [],\r\n });\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onChangeClasses(value) {\r\n if (value && value !== state.selectedClassesOpts) {\r\n setState({\r\n selectedClassesOpts: value,\r\n selectedClassesNamesOpts: [],\r\n classesNamesFilterListOpts: state.classesNamesListOpts.filter((x) => value === x.class),\r\n });\r\n } else {\r\n setState({\r\n selectedClassesOpts: [],\r\n selectedClassesNamesOpts: [],\r\n classesNamesFilterListOpts: [],\r\n });\r\n }\r\n state.selectedFiltersColumns.CLASS_NAME.values = [];\r\n\r\n render();\r\n }\r\n\r\n function onChangeClassesNames(classesNames) {\r\n const filteredArray = classesNames.filter((value) => !state.selectedClassesNamesOpts.includes(value));\r\n if (filteredArray?.length) {\r\n const selectedClasses = [...state.selectedClassesNamesOpts, ...filteredArray];\r\n\r\n const selectedUnits = state.unitsFilterOpts.filter((unit) => state.classesNamesListOpts\r\n .filter((classItem) => selectedClasses.includes(classItem.value))\r\n .some((classItem) => classItem.units.includes(Number(unit.value))));\r\n\r\n state.selectedFiltersColumns.CLASS_NAME.values = state.classesNamesListOpts.filter((c) => selectedClasses.includes(c.value));\r\n state.selectedFiltersColumns.UNIT.values = selectedUnits;\r\n\r\n setState({\r\n selectedClassesNamesOpts: selectedClasses,\r\n selectedUnitOpts: selectedUnits.map((u) => u.value),\r\n });\r\n } else {\r\n const selectedUnits = state.unitsFilterOpts.filter((unit) => state.classesNamesListOpts\r\n .filter((classItem) => classesNames.includes(classItem.value))\r\n .some((classItem) => classItem.units.includes(Number(unit.value))));\r\n state.selectedFiltersColumns.UNIT.values = selectedUnits;\r\n state.selectedFiltersColumns.CLASS_NAME.values = state.classesNamesListOpts.filter((c) => classesNames.some((val) => val === c.value));\r\n setState({\r\n selectedUnitOpts: selectedUnits.map((u) => u.value),\r\n selectedClassesNamesOpts: classesNames,\r\n });\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onChangeSupervisor(supervisors) {\r\n const filteredArray = supervisors.filter((value) => !state.selectedSupervisorOpts.includes(value));\r\n if (filteredArray?.length) {\r\n state.selectedSupervisorOpts = [...state.selectedSupervisorOpts, ...filteredArray];\r\n state.selectedFiltersColumns.SUPERVISOR.values = state.supervisorListOpts.filter((st) => [...state.selectedSupervisorOpts, ...filteredArray].some((val) => val === st.value));\r\n } else {\r\n state.selectedSupervisorOpts = supervisors;\r\n state.selectedFiltersColumns.SUPERVISOR.values = state.supervisorListOpts.filter((st) => supervisors.some((val) => val === st.value));\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onChangeNotificationTypes(value) {\r\n if (value) {\r\n state.selectedNotificationSubtype = [];\r\n state.selectedNotificationType = value;\r\n setState({ subtypesNotificationFilterOpts: state.subtypesNotificationListOpts.filter((item) => (value.includes(item.typeId) || value === item.typeId)) });\r\n render();\r\n }\r\n }\r\n\r\n function setVariables() {\r\n setVariablesUsuals();\r\n if (props.listFilters?.includes('conexao')) {\r\n props.state.selectedConnection = state.selectedConnectionOpts;\r\n }\r\n if (props.listFilters?.includes('status')) {\r\n props.state.selectedStatus = state.selectedStatusOpts;\r\n }\r\n\r\n if (props.listFilters?.includes('saude')) {\r\n props.state.selectedHealth = state.selectedHealthOpts;\r\n }\r\n if (props.listFilters?.includes('temperatura')) {\r\n props.state.selectedTemperature = state.selectedTemperatureOpts;\r\n }\r\n if (props.listFilters?.includes('controle')) {\r\n props.state.selectedControlType = state.selectedControlOpts;\r\n }\r\n if (props.listFilters?.includes('modoEco')) {\r\n props.state.selectedEcoMode = state.selectedModeEcoOpts;\r\n }\r\n if (props.listFilters?.includes('periodo')) {\r\n props.state.selectedTimeRange = state.selectedPeriodOpts;\r\n }\r\n if (props.listFilters?.includes('dados')) {\r\n props.state.selectedDataType = state.selectedDataTypeOpts;\r\n }\r\n if (props.listFilters?.includes('analise')) {\r\n props.state.selectedAnalysis = state.selectedAnalysisOpts;\r\n }\r\n if (props.listFilters?.includes('pais')) {\r\n props.state.selectedCountry = state.selectedCountry;\r\n }\r\n if (props.listFilters?.includes('operacao')) {\r\n props.state.selectedOperationStatus = state.selectedOperationStatusOpts;\r\n }\r\n if (props.listFilters?.includes('tipo')) {\r\n props.state.ownershipFilter = state.selectedOwnershipFilter;\r\n }\r\n if (props.listFilters?.includes('id')) {\r\n props.state.selectedDevId = state.selectedDevId;\r\n }\r\n setVariablesWater();\r\n setVariablesNotification();\r\n if (state.isClearFilter) state.isClearFilter = false;\r\n else if (props.closeFilter) state.showFilter = false;\r\n }\r\n\r\n function quickHandleChangeData(startDate, endDate, timeSelected) {\r\n const data = [...props.state.data];\r\n data.forEach((itemData) => {\r\n itemData.date.startDate = startDate.format('YYYY-MM-DD');\r\n itemData.date.endDate = endDate.format('YYYY-MM-DD');\r\n });\r\n setState({ ...state, selectedPeriodOpts: timeSelected, data });\r\n props.setView!(timeSelected);\r\n props.state.selectedTimeRange = state.selectedPeriodOpts;\r\n }\r\n\r\n const handleClickChange = (value: any, date?: Moment | null) => {\r\n if (props.updateCheckInformations) {\r\n if (date) props.updateCheckInformations(value, date);\r\n else props.updateCheckInformations(value);\r\n }\r\n props.render();\r\n };\r\n\r\n function quickChangeData(startDate, endDate) {\r\n props.informationsUnits.dates.dateStart = startDate;\r\n if (endDate) { handleClickChange('dateEnd', endDate); }\r\n }\r\n\r\n function onSelectedOwnership(value) {\r\n if (!props.infoType) {\r\n state.selectedOwnershipFilter = { value };\r\n } else {\r\n state.selectedOwnershipFilter = value;\r\n }\r\n render();\r\n }\r\n\r\n const setOnChange = (opt, data) => {\r\n if (opt.placeholder === t('inicioOperacao')) {\r\n state.dateValuePicker.startDate = data;\r\n } else {\r\n state.dateValuePicker.endDate = data;\r\n }\r\n };\r\n const isOutsideRange = (day) => {\r\n if (!props.isMaxOneMonthPeriod || props.state.focusedInput === 'startDate') return !day.isBefore(state.tomorrow);\r\n if (props.state.focusedInput === 'endDate') {\r\n return !day.isBefore(state.tomorrow) || day.isAfter(moment(new Date(props.informationsUnits.dates.dateStart)).add(30, 'days'));\r\n }\r\n return false;\r\n };\r\n\r\n const getColorExpandIcon = () => (state.isLoading ? colors.Grey200 : colors.Blue700);\r\n\r\n function removeAllFilters() {\r\n setState({\r\n selectedClientOpts: [],\r\n selectedUnitOpts: [],\r\n selectedStateOpts: [],\r\n selectedCityOpts: [],\r\n selectedSupervisorOpts: [],\r\n selectedClassesNamesOpts: [],\r\n selectedClassesOpts: [],\r\n unitsFilterOpts: state.unitsListOpts,\r\n statesListFilterOpts: state.statesListOpts,\r\n citiesListFilterOpts: state.citiesListOpts,\r\n supervisorFilterListOpts: state.supervisorListOpts,\r\n classesNamesFilterListOpts: state.classesNamesListOpts,\r\n });\r\n\r\n if (props.handleChangePeriod) {\r\n props.handleChangePeriod();\r\n state.selectedPeriodOpts = null;\r\n }\r\n\r\n handleRemoveAllFilterIntegratedAnalysis();\r\n\r\n state.selectedFiltersColumns.CLIENT.values = [];\r\n state.selectedFiltersColumns.UNIT.values = [];\r\n state.selectedFiltersColumns.STATE.values = [];\r\n state.selectedFiltersColumns.CITY.values = [];\r\n state.selectedFiltersColumns.SUPERVISOR.values = [];\r\n state.selectedFiltersColumns.CLASS_NAME.values = [];\r\n setVariables();\r\n props.onAply!();\r\n }\r\n\r\n function handleRemoveAllFilterIntegratedAnalysis() {\r\n if (state.selectedTrooms.length) clearGroup(props.state.trooms, 'selectedTrooms');\r\n if (state.selectedL1s.length) clearGroup(props.state.l1s, 'selectedL1s');\r\n if (state.selectedTambs.length) clearGroup(props.state.tambs, 'selectedTambs');\r\n if (state.selectedTInmets.length) clearGroup(props.state.tInmet, 'selectedTInmets');\r\n if (state.selectedUtilities.length) clearGroup(props.state.utilities, 'selectedUtilities');\r\n if (state.selectedPowers.length) clearGroup(props.state.powers, 'selectedPowers');\r\n props.state.selectedVars = [];\r\n }\r\n\r\n function handleRemoveFilterAux(filtersSelected: TValueFilter, valueRemoved: { value: string, name: string }) {\r\n let updateOpts: TValueFilter = '';\r\n\r\n if (Array.isArray(filtersSelected)) {\r\n updateOpts = filtersSelected.filter((x) => x.toString() !== valueRemoved.value.toString());\r\n } else {\r\n updateOpts = filtersSelected === valueRemoved.value ? '' : state.selectedUnitOpts;\r\n }\r\n\r\n return updateOpts;\r\n }\r\n\r\n function handleRemoveFilter(columnKey: string, filterIndex: number) {\r\n const valueRemoved = state.selectedFiltersColumns[columnKey].values[filterIndex];\r\n\r\n switch (columnKey) {\r\n case 'UNIT': {\r\n const updateOpts = handleRemoveFilterAux(state.selectedUnitOpts, valueRemoved);\r\n onChangeUnit(updateOpts);\r\n break;\r\n }\r\n case 'CLIENT': {\r\n const updateOpts = handleRemoveFilterAux(state.selectedClientOpts, valueRemoved);\r\n onChangeClient(updateOpts);\r\n break;\r\n }\r\n case 'STATE': {\r\n const updateOpts = handleRemoveFilterAux(state.selectedStateOpts, valueRemoved);\r\n onChangeState(updateOpts);\r\n break;\r\n }\r\n case 'CITY': {\r\n const updateOpts = handleRemoveFilterAux(state.selectedCityOpts, valueRemoved);\r\n onChangeCity(updateOpts);\r\n break;\r\n }\r\n case 'SUPERVISOR': {\r\n const updateOpts = handleRemoveFilterAux(state.selectedSupervisorOpts, valueRemoved);\r\n onChangeSupervisor(updateOpts);\r\n break;\r\n }\r\n case 'CLASS_NAME': {\r\n const updateOpts = handleRemoveFilterAux(state.selectedClassesNamesOpts, valueRemoved);\r\n onChangeClassesNames(updateOpts);\r\n break;\r\n }\r\n default:\r\n break;\r\n }\r\n\r\n setVariables();\r\n props.onAply!();\r\n }\r\n\r\n function handleRemoveCategoryFilter(columnKey: string) {\r\n switch (columnKey) {\r\n case 'UNIT':\r\n onChangeUnit([]);\r\n break;\r\n case 'CLIENT':\r\n onChangeClient([]);\r\n break;\r\n case 'STATE':\r\n onChangeState([]);\r\n break;\r\n case 'CITY':\r\n onChangeCity([]);\r\n break;\r\n case 'SUPERVISOR':\r\n onChangeSupervisor([]);\r\n break;\r\n case 'CLASS_NAME':\r\n onChangeClassesNames([]);\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n setVariables();\r\n props.onAply!();\r\n }\r\n\r\n function alterDate(type: 'next' | 'previous') {\r\n let newDate;\r\n const today = moment();\r\n\r\n if (state.selectedPeriodOpts === t('mes')) {\r\n newDate = type === 'next' ? new Date(props.state.monthDate.getFullYear(), props.state.monthDate.getMonth() + 1, 1) : new Date(props.state.monthDate.getFullYear(), props.state.monthDate.getMonth() - 1, 1);\r\n }\r\n if (state.selectedPeriodOpts === t('semana')) {\r\n newDate = type === 'next' ? moment(props.state.date).add(7, 'days') : moment(props.state.date).subtract(7, 'days');\r\n }\r\n if (state.selectedPeriodOpts === t('dia')) {\r\n newDate = type === 'next' ? moment(props.state.date).add(1, 'days') : moment(props.state.date).subtract(1, 'days');\r\n }\r\n if (newDate && moment(newDate).isSameOrBefore(today, 'day')) onDateChange(newDate, newDate);\r\n }\r\n\r\n function onDateChange(date, dateEnd) {\r\n if (state.selectedPeriodOpts === t('semana')) {\r\n props.state.date = date;\r\n render();\r\n const datesList = getDatesList(date, 7);\r\n props.state.dateList = datesList;\r\n props.state.startDate = datesList[0].mdate;\r\n props.state.endDate = datesList[datesList.length - 1].mdate;\r\n } else if (state.selectedPeriodOpts === t('dia')) {\r\n props.state.date = date;\r\n props.state.startDate = date;\r\n props.state.endDate = date;\r\n render();\r\n props.state.dateList = getDatesList(date, 1);\r\n } else if (state.selectedPeriodOpts === t('flexivel')) {\r\n props.state.multiDays = true;\r\n props.state.startDate = date;\r\n props.state.endDate = dateEnd;\r\n if (dateEnd) {\r\n dateEnd.set({\r\n hour: 12, minute: 0, second: 0, millisecond: 0,\r\n });\r\n }\r\n } else if (state.selectedPeriodOpts === t('mes')) {\r\n props.state.monthDate = date;\r\n }\r\n\r\n render();\r\n }\r\n\r\n function onSelectDevice(devices, selectedDevicesState: string, stateAux: any) {\r\n stateAux.isSelected = true;\r\n Object.values(stateAux.grupos).forEach((group: any) => {\r\n const deviceFound = devices.find((d) => d === group.GROUP_ID);\r\n\r\n if (deviceFound) {\r\n group.checked = true;\r\n } else if (\r\n state[selectedDevicesState].find((d) => d === group.GROUP_ID)\r\n ) {\r\n group.checked = false;\r\n const updatedVars = stateAux.selectedVars.filter(\r\n (selectedVar) => selectedVar.name !== group.GROUP_NAME,\r\n );\r\n stateAux.selectedVars = updatedVars;\r\n }\r\n });\r\n\r\n state[selectedDevicesState] = devices;\r\n props.render();\r\n }\r\n\r\n function replaceLastCharacters(str: string) {\r\n return str.length > 40 ? `${str.slice(0, 41)}...` : str;\r\n }\r\n\r\n function clearGroup(list: GroupInfo[], selectedGroup: string) {\r\n for (const group of list) {\r\n group.checked = false;\r\n }\r\n\r\n state[selectedGroup] = [];\r\n\r\n onSelectDevice([], selectedGroup, props.state);\r\n\r\n render();\r\n }\r\n\r\n function setAllGroup(list: GroupInfo[], selectedGroup: string) {\r\n const shouldBeChecked = list.some((group) => !group.checked);\r\n for (const group of list) {\r\n group.checked = shouldBeChecked;\r\n state[selectedGroup].push(group.GROUP_ID);\r\n }\r\n\r\n onSelectDevice(state[selectedGroup], selectedGroup, props.state);\r\n render();\r\n }\r\n\r\n function getIconLink(groupName: string, group: GroupInfo) {\r\n if (groupName === t('ambiente')) {\r\n return renderLinkIcon(group.checked, `/analise/dispositivo/${group.GROUP_ID.split('-INS')[0].substring(1)}/historico`);\r\n }\r\n\r\n if (groupName === t('temperaturaExterna') && group?.devs?.[0]?.DAC_ID) {\r\n return renderLinkIcon(group.checked, `/analise/dispositivo/${group.devs[0].DAC_ID}/tempo-real`);\r\n }\r\n\r\n if (groupName === t('utilitario')) {\r\n return getUtilityLinkIcon(group);\r\n }\r\n\r\n if (groupName === t('consumoEnergia') && group.GROUP_ID !== 'greenant:meter') {\r\n return renderLinkIcon(group.checked, `/integracoes/info/diel/${group.ENERGY_DEVICE_ID}/perfil`);\r\n }\r\n\r\n if (groupName === t('consumoEnergia') && group.GROUP_ID === 'greenant:meter') {\r\n return renderLinkIcon(group.checked, `https://dashboard.greenant.com.br/dashboard/meters/${group.ENERGY_DEVICE_ID}`);\r\n }\r\n\r\n const devId = group?.devs?.[0]?.DAC_ID || group?.devs?.[0]?.DRI_ID;\r\n if (!devId) return null;\r\n\r\n return props.l1Only\r\n ? renderLinkIcon(group.checked, `/analise/dispositivo/${devId}/informacoes`)\r\n : renderLinkIcon(group.checked, `/analise/dispositivo/${devId}/tempo-real`);\r\n }\r\n\r\n function getDevice(groupName: string, group: GroupInfo) {\r\n if (groupName === t('ambiente')) {\r\n return group.devs && group.devs[0]?.DEV_ID || '';\r\n }\r\n\r\n if (groupName === t('utilitario')) {\r\n return group.devs && (group.devs[0]?.DAL_CODE || group.devs[0]?.DMT_CODE) || '';\r\n }\r\n\r\n if (groupName === t('maquina') || groupName === t('temperaturaExterna')) {\r\n return group.devs && group.devs[0]?.DAC_ID || '';\r\n }\r\n\r\n if (groupName === t('consumoEnergia')) {\r\n return group.ENERGY_DEVICE_ID;\r\n }\r\n return '';\r\n }\r\n\r\n function renderLinkIcon(checked: boolean, to: string) {\r\n const isExternal = to.startsWith('http');\r\n\r\n return isExternal ? (\r\n \r\n \r\n
\r\n ) : (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n function getUtilityLinkIcon(group: GroupInfo) {\r\n const utilId = group?.GROUP_ID.split(':')[1];\r\n if (!utilId) return null;\r\n\r\n const to = group.type === 'utility-nobreak'\r\n ? `/analise/utilitario/nobreak/${utilId}/informacoes`\r\n : `/analise/utilitario/iluminacao/${utilId}/informacoes`;\r\n\r\n return renderLinkIcon(group.checked, to);\r\n }\r\n\r\n function renderOptionAnalysisIntegrated(propsOption, option, _snapshot, className, state) {\r\n const deviceGroup = findDeviceGroup(option.value, state);\r\n\r\n function changeCheckbox(value: 'temp' | 'hum' | 'co2') {\r\n const tempValue = state.selectedVars.filter((item) => item.axisId === value).find((item) => item.lineId === deviceGroup.group?.GROUP_ID.substring(1));\r\n const getIndex = tempValue && state.selectedVars.indexOf(tempValue);\r\n if (getIndex !== undefined && tempValue) {\r\n state.selectedVars[getIndex].showLine = !tempValue.showLine;\r\n }\r\n }\r\n\r\n let showCheckbox = 0;\r\n const tempItem = state.selectedVars.filter((item) => item.axisId === 'temp').find((item) => item.lineId === deviceGroup.group?.GROUP_ID.substring(1));\r\n const co2Item = state.selectedVars.filter((item) => item.axisId === 'co2').find((item) => item.lineId === deviceGroup.group?.GROUP_ID.substring(1));\r\n const humItem = state.selectedVars.filter((item) => item.axisId === 'hum').find((item) => item.lineId === deviceGroup.group?.GROUP_ID.substring(1));\r\n\r\n if (tempItem) showCheckbox++;\r\n if (co2Item) showCheckbox++;\r\n if (humItem) showCheckbox++;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {option.icon}\r\n
\r\n
\r\n \r\n {\r\n replaceLastCharacters(option.name)\r\n }\r\n \r\n

\r\n {\r\n getDevice(deviceGroup.name, deviceGroup?.group)\r\n }\r\n

\r\n
\r\n
\r\n\r\n
\r\n \r\n {getIconLink(deviceGroup.name, deviceGroup?.group)}\r\n \r\n { deviceGroup.group?.GROUP_NAME && deviceGroup.group.checked && (showCheckbox > 1) && (\r\n <>\r\n \r\n
\r\n
\r\n \r\n {\r\n changeCheckbox('temp');\r\n props.render();\r\n }}\r\n style={{ marginLeft: '-10px' }}\r\n color=\"primary\"\r\n />\r\n {t('temperatura')}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {\r\n changeCheckbox('hum');\r\n props.render();\r\n }}\r\n style={{ marginLeft: '-10px' }}\r\n color=\"primary\"\r\n />\r\n {t('umidade')}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {\r\n changeCheckbox('co2');\r\n props.render();\r\n }}\r\n style={{ marginLeft: '-10px' }}\r\n color=\"primary\"\r\n />\r\n CO₂\r\n \r\n \r\n \r\n ) }\r\n \r\n
\r\n {deviceGroup?.name}\r\n
\r\n
\r\n {\r\n deviceGroup.name === t('temExtEstMetereologicas') && props.unitCoordinate?.lat && props.unitCoordinate?.lon ? (\r\n <>\r\n \r\n {t('estacao')}\r\n {option.name}\r\n \r\n
\r\n \r\n {t('distanciaEstacaoUnidade')}\r\n {formatNumberWithFractionDigits(option.distance)}\r\n \r\n \r\n ) : (\r\n \r\n {option.name}\r\n \r\n )\r\n }\r\n
\r\n \r\n \r\n );\r\n }\r\n\r\n const findDeviceGroup = (deviceId: string, state: any) => {\r\n const trooms = state?.trooms?.find((troom) => troom.GROUP_ID === deviceId);\r\n const troomsFiltered = state?.troomsFiltered?.find((troom) => troom.value === deviceId);\r\n\r\n if (trooms) { return {\r\n name: t('ambiente'), group: trooms, filter: 'selectedTrooms', troomsFiltered,\r\n }; }\r\n\r\n const l1s = state?.l1s?.find((l1) => l1.GROUP_ID === deviceId);\r\n\r\n if (l1s) return { name: t('maquina'), group: l1s, filter: 'selectedL1s' };\r\n\r\n const tambs = state?.tambs?.find((tamb) => tamb.GROUP_ID === deviceId);\r\n\r\n if (tambs) return { name: t('temperaturaExterna'), group: tambs, filter: 'selectedTambs' };\r\n\r\n const tInmet = state?.tInmet?.find((inmet) => inmet.GROUP_ID === deviceId);\r\n\r\n if (tInmet) return { name: 'Tem. Ext. - Est. Metereológicas', group: null, filter: 'selectedTInmets' };\r\n\r\n const powers = state?.powers?.find((power) => power.GROUP_ID === deviceId);\r\n\r\n if (powers) return { name: t('consumoEnergia'), group: powers, filter: 'selectedPowers' };\r\n\r\n const utilities = state?.utilities?.find((util) => util.GROUP_ID === deviceId);\r\n\r\n if (utilities) return { name: t('utilitario'), group: utilities, filter: 'selectedUtilities' };\r\n\r\n return { name: '', group: null, filter: '' };\r\n };\r\n\r\n const handleSelection = (label) => {\r\n if (label === t('hoje') || label === t('ontem')) {\r\n state.selectedPeriodOpts = t('dia');\r\n } else if (label === t('semanaAtual') || label === t('semanaPassada')) {\r\n state.selectedPeriodOpts = t('semana');\r\n } else if (label === t('ultimos7dias') || label === t('ultimos15dias')) {\r\n state.selectedPeriodOpts = t('flexivel');\r\n }\r\n\r\n render();\r\n };\r\n\r\n const loading = props.isLoading || props.state.isLoading || state.isLoading || props.state.loadingData || props.state.exportLoading || !state.finalizedInputs;\r\n\r\n return (\r\n \r\n { state.finalizedInputs ? (\r\n \r\n {\r\n state.showFilter && (\r\n \r\n
\r\n
\r\n {\r\n (props.listFilters?.includes('cliente') && profile.manageAllClients) && (\r\n { onChangeClient(value); }}\r\n multiple\r\n placeholder={t('cliente')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('pais') && (\r\n { state.selectedCountry = value as any; render(); }}\r\n multiple\r\n placeholder={t('pais')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('estado') && (\r\n { onChangeState(value); }}\r\n multiple\r\n placeholder={t('estado')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('cidade') && (\r\n { onChangeCity(value); }}\r\n multiple\r\n placeholder={t('cidade')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('unidade') && (\r\n { onChangeUnit(value); }}\r\n multiple\r\n placeholder={t('unidade')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('responsavel') && (\r\n { onChangeSupervisor(value); }}\r\n multiple\r\n placeholder={t('responsavel')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('grupo') && state.classesListOpts.length > 0) && (\r\n <>\r\n { onChangeClasses(value); }}\r\n placeholder=\"Grupo\"\r\n disabled={loading}\r\n />\r\n { onChangeClassesNames(value); }}\r\n placeholder=\"Nome do Grupo\"\r\n multiple\r\n disabled={loading || !state.selectedClassesOpts.length}\r\n />\r\n \r\n )\r\n }\r\n {\r\n props.listFilters?.includes('statusOperacao') && profile.manageAllClients && (\r\n { handleClickChange(value);\r\n props.render(); }}\r\n placeholder=\"Status\"\r\n disabled={loading}\r\n renderOption\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('conexao') && (\r\n },\r\n { value: 'LATE', name: t('late'), icon: },\r\n { value: 'OFFLINE', name: t('offline'), icon: },\r\n ]}\r\n onChange={(value) => { state.selectedConnectionOpts = value as any; render(); }}\r\n multiple\r\n placeholder={props.optionsConnetionsName || t('conexao')}\r\n disabled={loading}\r\n renderOption\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('status') && (\r\n <>\r\n {props.state.utilities[0] && props.state.utilities[0].APPLICATION === 'Nobreak' && (\r\n { state.selectedStatusOpts = value as any; render(); }}\r\n multiple\r\n placeholder=\"Status\"\r\n disabled={loading}\r\n renderOption\r\n />\r\n )}\r\n\r\n {props.state.utilities[0] && props.state.utilities[0].APPLICATION === 'Iluminação' && (\r\n { state.selectedStatusOpts = value as any; render(); }}\r\n multiple\r\n placeholder=\"Status\"\r\n disabled={loading}\r\n renderOption\r\n />\r\n )}\r\n \r\n )\r\n }\r\n {\r\n props.listFilters?.includes('saude') && (\r\n },\r\n { value: '75', name: t('foraDeEspecificacao'), icon: },\r\n { value: '50', name: t('riscoIminente'), icon: },\r\n { value: '25', name: t('manutencaoUrgente'), icon: },\r\n { value: '2', name: t('equipamentoOffline'), icon: },\r\n { value: '4', name: t('maquinaDesativada'), icon: },\r\n ]}\r\n onChange={(value) => { state.selectedHealthOpts = value as any; render(); }}\r\n multiple\r\n placeholder={t('saude')}\r\n disabled={loading}\r\n renderOption\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('temperatura') && (\r\n },\r\n { value: 'good', name: t('correta'), icon: },\r\n { value: 'low', name: t('abaixo'), icon: },\r\n { value: 'no data', name: t('semInfo'), icon: },\r\n ]}\r\n onChange={(value) => { state.selectedTemperatureOpts = value as any; render(); }}\r\n multiple\r\n placeholder={t('temperatura')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('controle') && (\r\n { state.selectedControlOpts = value as any; render(); }}\r\n multiple\r\n placeholder={t('tipoControle')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('tipoNotificacao') && (\r\n { onChangeNotificationTypes(value); }}\r\n multiple\r\n placeholder={t('tipoNotificacao')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('subtipoNotificacao') && (\r\n { state.selectedNotificationSubtype = value as any; render(); }}\r\n multiple\r\n placeholder=\"Subtipo\"\r\n disabled={loading || !state.selectedNotificationType.length}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('destinatario') && (\r\n { state.selectedNotificationDestinatary = value as any; render(); }}\r\n multiple\r\n placeholder=\"Destinatário\"\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('modoEco') && (\r\n { state.selectedModeEcoOpts = value as any; render(); }}\r\n multiple\r\n placeholder={t('modoEco')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('operacao') && (\r\n { state.selectedOperationStatusOpts = value as any; render(); }}\r\n multiple\r\n placeholder={t('operacao')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('analise') && (\r\n { state.selectedAnalysisOpts = value as any; render(); }}\r\n placeholder={t('analisar')}\r\n disabled\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('dados') && (\r\n { state.selectedDataTypeOpts = value as any; render(); }}\r\n placeholder={t('tipoDeDados')}\r\n disabled\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('ambiente') && !!props.state?.troomsFiltered?.length) && (\r\n onSelectDevice(value, 'selectedTrooms', props.state)}\r\n clearGroup={clearGroup}\r\n setAllGroup={setAllGroup}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('maquina') && !!props.state?.l1sFiltered?.length) && (\r\n onSelectDevice(value, 'selectedL1s', props.state)}\r\n group={props.state.l1s}\r\n groupName=\"selectedL1s\"\r\n clearGroup={clearGroup}\r\n setAllGroup={setAllGroup}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('temperaturaExterna') && !!props.state?.tambsFiltered?.length) && (\r\n onSelectDevice(value, 'selectedTambs', props.state)}\r\n group={props.state.tambs}\r\n groupName=\"selectedTambs\"\r\n clearGroup={clearGroup}\r\n setAllGroup={setAllGroup}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('temperaturaExternaMeteorologica') && !!props.state?.tInmetFiltered?.length) && (\r\n onSelectDevice(value, 'selectedTInmets', props.state)}\r\n group={props.state.tInmet}\r\n groupName=\"selectedTInmets\"\r\n clearGroup={clearGroup}\r\n setAllGroup={setAllGroup}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('utilitario') && !!props.state?.utilitiesFiltered?.length) && (\r\n onSelectDevice(value, 'selectedUtilities', props.state)}\r\n group={props.state.utilities}\r\n groupName=\"selectedUtilities\"\r\n clearGroup={clearGroup}\r\n setAllGroup={setAllGroup}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('potenciaAtiva') && !!props.state?.powersFiltered?.length) && (\r\n onSelectDevice(value, 'selectedPowers', props.state)}\r\n group={props.state.powers}\r\n groupName=\"selectedPowers\"\r\n clearGroup={clearGroup}\r\n setAllGroup={setAllGroup}\r\n />\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('periodo') && (\r\n
\r\n {\r\n state.selectedPeriodOpts = value as any;\r\n if (props.handleChangePeriod) {\r\n props.handleChangePeriod();\r\n }\r\n render();\r\n }}\r\n placeholder={t('periodo')}\r\n disabled={loading}\r\n removeMarginBottom={props.includeQuickSelection}\r\n />\r\n {\r\n props.includeQuickSelection && (\r\n
\r\n moment(), end: () => moment(), changeSelectedPeriod: () => handleSelection(t('hoje')),\r\n },\r\n {\r\n label: t('ontem'), start: () => moment().subtract(1, 'day'), end: () => moment().subtract(1, 'day'), changeSelectedPeriod: () => handleSelection(t('ontem')),\r\n },\r\n {\r\n label: t('semanaAtual'), start: () => moment().startOf('week'), end: () => moment().subtract(1, 'day'), changeSelectedPeriod: () => handleSelection(t('semanaAtual')),\r\n },\r\n {\r\n label: t('semanaPassada'), start: () => moment().subtract(7, 'days').startOf('week'), end: () => moment().subtract(7, 'days').endOf('week'), changeSelectedPeriod: () => handleSelection(t('semanaPassada')),\r\n },\r\n {\r\n label: t('ultimos7dias'), start: () => moment().subtract(7, 'days'), end: () => moment().subtract(1, 'day'), changeSelectedPeriod: () => handleSelection(t('ultimos7dias')),\r\n },\r\n {\r\n label: t('ultimos15dias'), start: () => moment().subtract(15, 'days'), end: () => moment().subtract(1, 'day'), changeSelectedPeriod: () => handleSelection(t('ultimos15dias')),\r\n },\r\n ]}\r\n setDate={(startDate, endDate) => {\r\n if (props.handleChangePeriod) props.handleChangePeriod();\r\n onDateChange(startDate, endDate);\r\n }}\r\n />\r\n
\r\n )\r\n }\r\n
\r\n )\r\n }\r\n {\r\n props.listFilters?.includes('data') && (\r\n\r\n
\r\n \r\n {props?.isPeriodLabel ? t('periodo') : t('inicioOperacao')}\r\n {!props?.isPeriodLabel && }\r\n \r\n\r\n \r\n {t('informacoesInicioOperacao')}\r\n \r\n\r\n \r\n {\r\n if (startDate) { handleClickChange('dateStart', startDate); }\r\n if (startDate !== props.informationsUnits.dates.dateStart) { handleClickChange('dateEnd', null); }\r\n else {\r\n handleClickChange('dateEnd', endDate);\r\n }\r\n }} // PropTypes.func.isRequired,\r\n onFocusChange={(focused: 'endDate' | 'startDate' | null) => {\r\n props.state.focusedInput = focused;\r\n props.render();\r\n }}\r\n focusedInput={props.state.focusedInput}\r\n noBorder\r\n isOutsideRange={(d) => isOutsideRange(d)}\r\n startDatePlaceholderText={t('dataInicial')}\r\n endDatePlaceholderText={t('dataFinal')}\r\n />\r\n \r\n \r\n
\r\n\r\n )\r\n }\r\n { props.listFilters?.includes('dataNew') && state.selectedPeriodOpts && state.selectedPeriodOpts !== t('flexivel') && (\r\n \r\n !loading && alterDate('previous')}>\r\n \r\n \r\n {\r\n state.selectedPeriodOpts === t('mes') && (\r\n \r\n \r\n \r\n \r\n )\r\n }\r\n {\r\n [t('semana'), t('dia')].includes(state.selectedPeriodOpts) && (\r\n \r\n \r\n { props.state.focused = focused; render(); }}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n isOutsideRange={(d) => !d.isBefore(moment())}\r\n placeholder={t('selecionar')}\r\n />\r\n \r\n )\r\n }\r\n !loading && alterDate('next')}>\r\n \r\n \r\n \r\n )}\r\n { props.listFilters?.includes('dataNew') && state.selectedPeriodOpts && state.selectedPeriodOpts === t('flexivel') && (\r\n
\r\n \r\n {t('data')}\r\n onDateChange(startDate, endDate)}\r\n onFocusChange={(focused) => { props.state.focusedInput = focused; render(); }}\r\n focusedInput={props.state.focusedInput}\r\n noBorder\r\n startDatePlaceholderText={t('dataInicial')}\r\n endDatePlaceholderText={t('dataFinal')}\r\n isOutsideRange={(d) => d.startOf('day').isAfter(moment().startOf('day'))}\r\n />\r\n \r\n
\r\n )}\r\n\r\n {\r\n (props.listFilters?.includes('tipo') && (profile.viewAllClients || profile.permissions.isInstaller)) && (\r\n { onSelectedOwnership(value); }}\r\n placeholder={t('tipo')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('progDisp')) && (\r\n { state.selectedInfoExib = value; props.setProg!(state.selectedInfoExib); render(); }}\r\n placeholder={t('informacoesExibidas')}\r\n disabled={loading}\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('id') && (\r\n
\r\n { setVariables(); props.onAply!(); }}\r\n onChange={(id) => { state.selectedDevId = id; render(); }}\r\n disabled={loading}\r\n filterStyle\r\n noBorder\r\n />\r\n
\r\n ))\r\n }\r\n {\r\n props.listFilters?.includes('fornecedor') && (\r\n\r\n { state.selectedSupplierOpts = value as any; render(); }}\r\n placeholder={t('fornecedor')}\r\n disabled={loading}\r\n renderOption\r\n />\r\n )\r\n }\r\n {\r\n (props.listFilters?.includes('search') && (\r\n
\r\n \r\n \r\n\r\n \r\n {t('pesquiseAmbientes')}\r\n \r\n\r\n \r\n { setVariables(); props.onAply!(); }}\r\n onChange={(term) => { state.searchTerms = term; render(); }}\r\n disabled={loading}\r\n filterStyle\r\n noBorder\r\n />\r\n
\r\n ))\r\n }\r\n
\r\n {\r\n props.listFilters?.includes('dataUnica') && (\r\n \r\n {t('data')}\r\n setState({ selectedDateStart: value, selectedDateEnd: value })}\r\n focused={state.selectFocused}\r\n onFocusChange={({ focused }) => setState({ selectFocused: focused })}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n isOutsideRange={(d) => !d.isBefore(state.tomorrow)}\r\n placeholder={t('data')}\r\n />\r\n\r\n \r\n \r\n )\r\n\r\n }\r\n
\r\n {\r\n (state.showFilter)\r\n && (\r\n { clearFilters(); setVariables(); props.onAply!(); }}>\r\n {t('limparTodos')}\r\n \r\n )\r\n }\r\n
\r\n
\r\n { setVariables(); props.onAply!(); render(); }}\r\n >\r\n {state.buttonName}\r\n \r\n
\r\n )\r\n }\r\n \r\n ) : (\r\n \r\n \r\n \r\n )}\r\n {state.showFilter &&
}\r\n \r\n { state.showFilter = !state.showFilter; render(); }}>\r\n \r\n {t('filtros')}\r\n {state.showFilter ? : }\r\n \r\n {\r\n (props.filterFooter && isDesktop && !state.showFilter && Object.values(state.selectedFiltersColumns).some((item) => item.values.length > 0)) && (\r\n
\r\n \r\n
\r\n\r\n )\r\n }\r\n {\r\n props.exportFunc && (\r\n \r\n )\r\n }\r\n
\r\n {state.showFilter &&
}\r\n\r\n \r\n );\r\n};\r\n\r\nexport const CustomFilter = (props : {\r\n showFilter: boolean,\r\n tab: string,\r\n state: any,\r\n updateCheckInformations?: (value: any, date?: Moment) => void,\r\n informationsUnits?: any,\r\n stateFilter: any,\r\n render: any,\r\n exportFunc: (() => Promise | void) | undefined,\r\n loading: boolean,\r\n csvHeader: {\r\n label: string;\r\n key: string;\r\n }[] | undefined\r\n}): JSX.Element => {\r\n const csvLinkEl = useRef();\r\n const [profile] = useState(getUserProfile);\r\n\r\n function verifyParams() {\r\n if (props.state.isUnits && props.state.openExportList === false) {\r\n return openExportList();\r\n }\r\n if (props.exportFunc) {\r\n return props.exportFunc();\r\n }\r\n return getCsvData();\r\n }\r\n function openExportList() {\r\n try {\r\n props.state.openExportList = true;\r\n props.render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n function isCompleteList() {\r\n try {\r\n handleClick('complete');\r\n props.render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n function isCustomList() {\r\n try {\r\n handleClick('custom');\r\n props.render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n function closeExportList() {\r\n try {\r\n props.state.openExportList = false;\r\n props.state.modeExportList = '';\r\n props.render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n const handleClick = (value: string, date?: Moment) => {\r\n if (props.updateCheckInformations) {\r\n if (date) props.updateCheckInformations(value, date);\r\n else props.updateCheckInformations(value);\r\n }\r\n };\r\n\r\n const getCsvData = async () => {\r\n props.state.isLoading = true; props.render();\r\n const formatterCSV = props.state.filteredUtilities.map((dev) => ({\r\n CLIENT_NAME: dev.CLIENT_NAME || '-',\r\n STATE: dev.STATE_UF || '-',\r\n CITY_NAME: dev.CITY_NAME || '-',\r\n NAME: dev.NAME || '-',\r\n UNIT: dev.UNIT_NAME || '-',\r\n DAT_CODE: dev.DAT_CODE || '-',\r\n DMT_CODE: dev.DMT_CODE || '-',\r\n STATUS: dev.status || '-',\r\n averageDur: dev.averageDur || '-',\r\n autonon: dev.autonon || '-',\r\n connection: dev.connection || '-',\r\n }));\r\n\r\n props.stateFilter.csvData = formatterCSV;\r\n props.render();\r\n\r\n setTimeout(() => {\r\n (csvLinkEl as any).current.link.click();\r\n window.location.reload();\r\n }, 1000);\r\n props.state.isLoading = false; props.render();\r\n };\r\n\r\n useEffect(() => {\r\n props.state.filteredUtilities = props.state.utilities;\r\n props.render();\r\n }, []);\r\n\r\n useEffect(() => {\r\n const weekdaysMin: string[] = t('weekdaysMin', { returnObjects: true });\r\n const language = i18n.language === 'pt' ? 'pt-br' : i18n.language;\r\n moment.updateLocale(language, {\r\n weekdaysMin,\r\n });\r\n }, [i18n.language, t]);\r\n\r\n return (\r\n \r\n {\r\n props.tab === 'devices' && (\r\n <>\r\n { verifyParams(); }}>\r\n \r\n \r\n {t('exportarListaCap')}\r\n \r\n \r\n \r\n \r\n )\r\n }\r\n {props.state.isUnits && props.state.openExportList && (\r\n
\r\n closeExportList()}\r\n >\r\n \r\n \r\n \r\n {t('exportarPlanilha')}\r\n \r\n \r\n {t('selecioneOpcaoDesejada')}\r\n \r\n\r\n \r\n {/* Complete */}\r\n { isCompleteList(); }}\r\n >\r\n \r\n {t('planilhaCompleta')}\r\n \r\n \r\n \r\n {t('informacoesPlanilhaCompleta')}\r\n \r\n \r\n \r\n\r\n {/* Custom */}\r\n { isCustomList(); }}\r\n >\r\n \r\n\r\n \r\n {t('planilhaCustomizada')}\r\n \r\n \r\n\r\n \r\n\r\n \r\n {t('informacoesPlanilhaCustomizada')}\r\n \r\n\r\n \r\n \r\n \r\n\r\n {props.informationsUnits.modeExportList === 'custom' && (\r\n <>\r\n\r\n \r\n \r\n {t('informacoes')}\r\n :\r\n \r\n \r\n \r\n {\r\n handleClick('estado');\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('estado')}\r\n \r\n \r\n \r\n {\r\n handleClick('cidade');\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('cidade')}\r\n \r\n \r\n \r\n {\r\n handleClick('unidade');\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('unidade')}\r\n \r\n \r\n \r\n {\r\n handleClick('maquinas');\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('maquinas')}\r\n \r\n \r\n \r\n {\r\n handleClick('ambientes');\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('ambientes')}\r\n \r\n \r\n \r\n {\r\n props.updateCheckInformations !== undefined && props.updateCheckInformations('utilitarios');\r\n props.render();\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('utilitarios')}\r\n \r\n \r\n\r\n {profile.manageAllClients && (\r\n \r\n {\r\n props.updateCheckInformations !== undefined && props.updateCheckInformations('inicioMonitoramento');\r\n props.render();\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('inicioMonitoramento')}\r\n \r\n \r\n\r\n )}\r\n \r\n {\r\n props.updateCheckInformations !== undefined && props.updateCheckInformations('dispositivosAgua');\r\n props.render();\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('dispositivosAgua')}\r\n \r\n \r\n \r\n {\r\n props.updateCheckInformations !== undefined && props.updateCheckInformations('dispositivosEnergia');\r\n props.render();\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('dispositivosEnergia')}\r\n \r\n \r\n \r\n {\r\n props.updateCheckInformations !== undefined && props.updateCheckInformations('dispositivosAutomacao');\r\n props.render();\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('dispositivosAutomacao')}\r\n \r\n \r\n \r\n {\r\n props.updateCheckInformations !== undefined && props.updateCheckInformations('dispositivosMonitoramento');\r\n props.render();\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('dispositivosMonitoramento')}\r\n \r\n \r\n\r\n {profile.manageAllClients && (\r\n \r\n {\r\n props.updateCheckInformations !== undefined && props.updateCheckInformations('status');\r\n props.render();\r\n }}\r\n size={16}\r\n />\r\n \r\n {t('status')}\r\n \r\n \r\n )}\r\n\r\n \r\n\r\n \r\n \r\n\r\n )}\r\n\r\n verifyParams()}\r\n >\r\n {t('exportar')}\r\n \r\n\r\n \r\n closeExportList()}\r\n >\r\n {t('cancelar')}\r\n \r\n\r\n \r\n \r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nconst FilterOption = (props: {\r\n value: string | string[] | undefined\r\n placeholder: string,\r\n onChange: ((selectedValue: SelectedOptionValue | SelectedOptionValue[], selectedOption: SelectedOption | SelectedOption[], optionSnapshot: SelectSearchProps) => void) | undefined\r\n options: SelectSearchOption[],\r\n disabled?: boolean,\r\n multiple?: boolean,\r\n closeOnSelected?: boolean,\r\n renderOption?: boolean,\r\n type?: string,\r\n getSelectedDate?: (opt: any, state: any) => any,\r\n setOnChange?: (opt: any, data: any) => void,\r\n state?: any,\r\n setState?: any,\r\n render?: any,\r\n removeMarginBottom?: boolean,\r\n}) => {\r\n function renderOption(props, option, snapshot, className) {\r\n return (\r\n \r\n );\r\n }\r\n return (\r\n <>\r\n {\r\n props.type && props.type === 'date'\r\n ? (\r\n <>\r\n \r\n {props.placeholder}\r\n
\r\n {\r\n props.setOnChange!(props, data);\r\n props.onChange!(data, [], [] as any);\r\n props.render();\r\n }}\r\n focused={props.state.focused.id === props.placeholder ? props.state.focused.focused : false}\r\n onFocusChange={({ focused }) => {\r\n props.setState({ focused: { id: props.placeholder, focused } });\r\n props.render();\r\n }}\r\n numberOfMonths={1}\r\n displayFormat=\"DD/MM/YYYY\"\r\n isOutsideRange={(d) => {\r\n if (props.placeholder === t('fimOperacao') && props.state.dateValuePicker.startDate) {\r\n return d.isBefore(props.state.dateValuePicker.startDate);\r\n }\r\n return d.isAfter(props.state.dateValuePicker.endDate);\r\n }}\r\n placeholder={props.placeholder}\r\n />\r\n \r\n \r\n \r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n \r\n );\r\n};\r\n\r\nconst FilterOptionAnalysis = (props: {\r\n label: string,\r\n options: SelectSearchOption[],\r\n value: string | string[] | undefined,\r\n onChange: (value) => void,\r\n clearGroup: (list: GroupInfo[], selectedGroup: string) => void,\r\n setAllGroup: (list: GroupInfo[], selectedGroup: string) => void,\r\n renderOption: (DomProps: any, option: any, snapshot: any, className: any, state: any) => JSX.Element,\r\n state: any,\r\n loading: boolean,\r\n group: GroupInfo[],\r\n groupName: string,\r\n }) => (\r\n \r\n \r\n \r\n \r\n \r\n props.renderOption(DomProps, option, snapshot, className, props.state)}\r\n multiple\r\n closeOnSelect={false}\r\n printOptions=\"on-focus\"\r\n search\r\n filterOptions={fuzzySearch}\r\n placeholder={t('selecionar')}\r\n onChange={props.onChange}\r\n disabled={props.loading}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n grupo.checked)}\r\n size={15}\r\n onClick={() => (props.group.every((grupo) => grupo.checked)\r\n ? props.clearGroup(props.group, props.groupName)\r\n : props.setAllGroup(props.group, props.groupName))}\r\n color=\"primary\"\r\n />\r\n {t('selecionarTodos')}\r\n \r\n \r\n \r\n props.clearGroup(props.group, props.groupName)}\r\n >\r\n {t('limpar')}\r\n \r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const FilterContainer = styled.div`\r\n display: flex;\r\n width: 100%;\r\n`;\r\n\r\nexport const ControlFilter = styled.div`\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n background-color: #ffffff;\r\n padding: 6px 10px;\r\n user-select: none;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n flex-wrap: nowrap;\r\n z-index: 10;\r\n &:hover {\r\n cursor: pointer;\r\n background-color: ${colors.BlueSecondary};\r\n color: white;\r\n svg path {\r\n fill: white !important;\r\n }\r\n }\r\n`;\r\n\r\nexport const ContainerFilterOptions = styled.div`\r\n\r\n`;\r\n\r\nexport const Label = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-top: 6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n margin-left: 16px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n background-color: #fff;\r\n`;\r\n\r\nexport const StatusIcon = styled.div<{ color?, status?}>(\r\n ({ color, status }) => `\r\n width: 10px;\r\n height: 10px;\r\n margin-left: 5px;\r\n border-radius: 50%;\r\n border: 2px solid ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n background: ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n font-weight: bold;\r\n font-size: 0.8em;\r\n line-height: 18px;\r\n color: ${colors.White};\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n text-transform: capitalize;\r\n`,\r\n);\r\n","import { useEffect, useRef, useMemo } from 'react';\r\n\r\nimport moment from 'moment';\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport { Box } from 'reflexbox';\r\n\r\nimport {\r\n Loader, Button, ActionButton, ModalWindow, Input, InputSearch,\r\n} from 'components';\r\nimport queryString from 'query-string';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { EditIcon } from 'icons';\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport { colors } from 'styles/colors';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { useTranslation, Trans } from 'react-i18next';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { AdminLayout } from '../AdminLayout';\r\nimport {\r\n TableContainer,\r\n TableHead,\r\n TableBody,\r\n HeaderCell,\r\n DataCell,\r\n DataCellCenter,\r\n DataCellRight,\r\n Row,\r\n HeaderRow,\r\n CustomSelect,\r\n ChevronTop,\r\n ChevronBottom,\r\n StyledLink,\r\n HeaderCellOrder,\r\n} from './styles';\r\n\r\nimport 'moment/locale/pt-br';\r\n\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { Headers2 } from '~/pages/Analysis/Header';\r\nimport { Pagination } from '~/components/NewTable';\r\nimport { UtilFilter } from '~/pages/Analysis/Utilities/UtilityFilter';\r\nimport { StatusIcon } from '~/pages/Analysis/AnalysisLayout/styles';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nfunction sizeToByteConversion(size: number, measure: string) {\r\n switch (measure.toLowerCase()) {\r\n case 'kb':\r\n return size * 1024;\r\n case 'mb':\r\n return size * 1048576;\r\n case 'gb':\r\n return size * 1073741824;\r\n default:\r\n return size;\r\n }\r\n}\r\n\r\nfunction dynamicSort(property: string, sortOrder: '+'|'-') {\r\n return function (a, b) {\r\n let aa;\r\n let bb;\r\n if (property === 'line__total_f') {\r\n aa = sizeToByteConversion(parseFloat(a[property]?.split(' ')[0]), a[property]?.split(' ')[1]);\r\n bb = sizeToByteConversion(parseFloat(b[property]?.split(' ')[0]), b[property]?.split(' ')[1]);\r\n } else {\r\n aa = a[property];\r\n bb = b[property];\r\n }\r\n // equal items sort equally\r\n if (aa === bb) {\r\n return 0;\r\n }\r\n // nulls sort after anything else\r\n if (aa == null) {\r\n return 1;\r\n }\r\n if (bb == null) {\r\n return -1;\r\n }\r\n // otherwise...\r\n if (sortOrder === '+') {\r\n // if we're ascending, lowest sorts first\r\n return aa < bb ? -1 : 1;\r\n }\r\n // if descending, highest sorts first\r\n return aa < bb ? 1 : -1;\r\n };\r\n}\r\n\r\n// type SimCardItem = NonNullable[number]&{ consumptionPercent?: number }\r\ntype SimCardItem = {\r\n iccid: string\r\n onlineStatus: string\r\n soldplan: string\r\n lastConn: string | undefined\r\n lastDisc?: string|null\r\n consumption?: string|null\r\n clientId: number\r\n clientName: string\r\n unitId: number\r\n unitName: string\r\n accessPoint: string\r\n modem: string\r\n accessPointMAC: string\r\n repeaterMAC: string\r\n empresa: string\r\n consumptionPercent: number\r\n associationDate?: string|null\r\n stateId: number\r\n cityId: number\r\n}\r\n\r\nexport const SimCards = (): JSX.Element => {\r\n const history = useHistory();\r\n const queryPars = queryString.parse(history.location.search);\r\n const [state, render, setState] = useStateVar({\r\n simCardsList: [] as SimCardItem[],\r\n simCardsListFiltered: [] as SimCardItem[],\r\n loading: true,\r\n openModal: false,\r\n selectedSim: null as null|SimCardItem,\r\n searchState: '',\r\n orderColum: '',\r\n sortOrder: '+' as '+'|'-',\r\n resetSolicitado: [] as string[],\r\n pageSize: 40,\r\n currentPage: 1,\r\n selectedConnection: '' as string | string[],\r\n selectedState: '' as string | string[],\r\n selectedCity: '' as string | string[],\r\n selectedClientFilter: '' as string | string[],\r\n selectedUnit: '' as string | string[],\r\n totalItems: 0,\r\n });\r\n\r\n const linkBase = history.location.pathname;\r\n const { t } = useTranslation();\r\n\r\n useEffect(() => {\r\n fetchData();\r\n setState({ currentPage: 1 });\r\n }, [queryPars.empresa]);\r\n\r\n const getDataPerPage = useMemo(() => getPages(), [state.simCardsListFiltered, state.currentPage, state.pageSize]);\r\n\r\n function getPages() {\r\n return state.simCardsListFiltered.map((item, index) => ({ ...item, key: `${index} ${item.iccid}` })).slice((state.currentPage - 1) * state.pageSize, state.currentPage * state.pageSize);\r\n }\r\n const allTabs = [\r\n {\r\n title: 'TNS',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, empresa: 'tns' })}`,\r\n isActive: (queryPars.empresa === 'tns' || !queryPars.empresa),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'Meta',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, empresa: 'meta' })}`,\r\n isActive: (queryPars.empresa === 'meta'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'Vivo Kite',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, empresa: 'kite' })}`,\r\n isActive: queryPars.empresa === 'kite',\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'Todos',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, empresa: 'todos' })}`,\r\n isActive: (queryPars.empresa === 'todos'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n function openEditSimCard(itemToEdit: SimCardItem) {\r\n state.selectedSim = itemToEdit;\r\n state.openModal = true;\r\n render();\r\n }\r\n\r\n async function afterEditSim() {\r\n try {\r\n state.openModal = false;\r\n await fetchData();\r\n render();\r\n\r\n toast.success(t('sucesso'));\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n function setOrderColum(column: string) {\r\n if (state.orderColum !== column || state.sortOrder === '-') {\r\n setState({ simCardsListFiltered: state.simCardsListFiltered.sort(dynamicSort(column, '+')) });\r\n state.sortOrder = '+';\r\n } else {\r\n setState({ simCardsListFiltered: state.simCardsListFiltered.sort(dynamicSort(column, '-')) });\r\n state.sortOrder = '-';\r\n }\r\n setState({ currentPage: 1 });\r\n applyTextFilter();\r\n state.orderColum = column;\r\n render();\r\n }\r\n\r\n function chevron(column: string) {\r\n if (state.orderColum === column) {\r\n if (state.sortOrder === '+') {\r\n return ;\r\n }\r\n\r\n return ;\r\n }\r\n }\r\n\r\n function formatSimTns(response: ApiResps['/sims-v2']) {\r\n for (const sim of (response.tns || [])) {\r\n const [planSize, planMeasure] = sim.soldplan__consumption_f.split(' ');\r\n const [consumptionSize, consumptionMeasure] = sim.line__total_f.split(' ');\r\n let consumptionMB = 0;\r\n if (consumptionMeasure === 'GB') {\r\n consumptionMB = parseFloat(consumptionSize) * 1000;\r\n } else if (consumptionMeasure === 'B') {\r\n consumptionMB = parseFloat(consumptionSize) / 0.000001;\r\n } else {\r\n consumptionMB = parseFloat(consumptionSize);\r\n }\r\n let consumptionPercent = 0;\r\n if (parseFloat(consumptionSize) === 0) {\r\n consumptionPercent = 0;\r\n } else if (planMeasure === consumptionMeasure) {\r\n consumptionPercent = parseFloat(consumptionSize) * 100 / parseFloat(planSize);\r\n } else {\r\n const planSizeInBytes = sizeToByteConversion(parseFloat(planSize), planMeasure);\r\n const consumptionSizeInBytes = sizeToByteConversion(parseFloat(consumptionSize), consumptionMeasure);\r\n consumptionPercent = consumptionSizeInBytes * 100 / planSizeInBytes;\r\n }\r\n\r\n state.simCardsList.push({\r\n iccid: sim.iccid,\r\n onlineStatus: sim.status__name,\r\n soldplan: sim.soldplan__name,\r\n lastConn: sim.last_conn,\r\n lastDisc: sim.last_disc,\r\n consumption: sim.line__total_f,\r\n clientId: sim.client,\r\n clientName: sim.clientName,\r\n unitId: sim.unit,\r\n unitName: sim.unitName,\r\n accessPoint: sim.accessPoint,\r\n modem: sim.modem,\r\n accessPointMAC: sim.accessPointMAC,\r\n repeaterMAC: sim.repeaterMAC,\r\n empresa: 'TNS',\r\n consumptionPercent,\r\n consumptionMB,\r\n associationDate: sim.associationDate,\r\n cityId: sim.cityId,\r\n stateId: sim.stateId,\r\n });\r\n }\r\n }\r\n\r\n function getSoldPlanMeta(sim) {\r\n const soldplan = [] as string[];\r\n if (sim.operadora) {\r\n if (sim.operadora === '200') soldplan.push(t('vivo'));\r\n else soldplan.push(`Operadora-${sim.operadora}`);\r\n }\r\n if (sim.reset) {\r\n if (sim.reset >= 1000) soldplan.push(`${Math.round(sim.reset / 1000 * 10) / 10}GB`);\r\n else soldplan.push(`${formatNumberWithFractionDigits(Math.round(sim.reset))}MB`);\r\n }\r\n if (sim.mensalidade) {\r\n soldplan.push(`R$${formatNumberWithFractionDigits(sim.mensalidade.toFixed(2), { minimum: 0, maximum: 2 })}`);\r\n }\r\n return soldplan;\r\n }\r\n\r\n function formatSimMeta(response: ApiResps['/sims-v2']) {\r\n for (const sim of (response.meta || [])) {\r\n let consumption = null as string|null;\r\n let consumptionPercent = 0;\r\n let consumptionMB = 0;\r\n if (sim.reset && sim.saldo != null && sim.saldo <= sim.reset) {\r\n consumptionMB = sim.reset - sim.saldo;\r\n if (consumptionMB >= 1000) consumption = `${Math.round(consumptionMB / 1000 * 100) / 100} GB`;\r\n else consumption = `${Math.round(consumptionMB * 100) / 100} MB`;\r\n consumptionPercent = Math.round(consumptionMB / sim.reset * 100);\r\n }\r\n\r\n let onlineStatus = '';\r\n if (sim.online === '1') onlineStatus = t('online');\r\n else if (sim.online === '0') onlineStatus = t('offline');\r\n\r\n const soldplan = getSoldPlanMeta(sim);\r\n\r\n state.simCardsList.push({\r\n iccid: sim.iccid,\r\n onlineStatus,\r\n soldplan: soldplan.join(' '),\r\n lastConn: sim.ultimaConexao,\r\n lastDisc: null,\r\n consumption,\r\n clientId: sim.client,\r\n clientName: sim.clientName,\r\n unitId: sim.unit,\r\n unitName: sim.unitName,\r\n accessPoint: sim.accessPoint,\r\n modem: sim.modem,\r\n accessPointMAC: sim.accessPointMAC,\r\n repeaterMAC: sim.repeaterMAC,\r\n empresa: t('meta'),\r\n consumptionPercent,\r\n consumptionMB,\r\n associationDate: sim.associationDate,\r\n cityId: sim.cityId,\r\n stateId: sim.stateId,\r\n });\r\n }\r\n }\r\n\r\n function getSimOperatorVivo(sim) {\r\n const soldplan = [] as string[];\r\n if (sim.operator) {\r\n soldplan.push(sim.operator);\r\n if (sim.ratType === 1) {\r\n soldplan.push('3G');\r\n }\r\n else if (sim.ratType === 2) {\r\n soldplan.push('2G');\r\n }\r\n else if (sim.ratType === 5) {\r\n soldplan.push('3.5G');\r\n }\r\n else if (sim.ratType === 6) {\r\n soldplan.push('4G');\r\n }\r\n else if (sim.ratType === 8) {\r\n soldplan.push('NB-IoT');\r\n }\r\n }\r\n return soldplan;\r\n }\r\n\r\n function formatSimVivo(response: ApiResps['/sims-v2']) {\r\n for (const sim of (response.vivo || [])) {\r\n let onlineStatus = '';\r\n if (sim.gprsStatus?.status === 1) onlineStatus = t('online');\r\n else if (sim.gprsStatus?.status === 0) onlineStatus = t('offline');\r\n else if (sim.gprsStatus?.status === 2) onlineStatus = t('inativo');\r\n\r\n const soldplan = getSimOperatorVivo(sim);\r\n\r\n const lastConn = sim.gprsStatus?.status === 1 ? sim.gprsStatus.lastConnStart : '';\r\n const lastDisc = sim.gprsStatus?.status === 1 ? sim.gprsStatus.lastConnStop : '';\r\n const gb = 1073741824;\r\n const mb = 1048576;\r\n\r\n let consumption = null as string|null;\r\n const consumptionMB = Number((sim.consumptionMonthly.data.value / mb).toFixed(2));\r\n if (consumptionMB >= 1000) consumption = `${(sim.consumptionMonthly.data.value / gb).toFixed(2)} GB`;\r\n else if (consumptionMB === 0) consumption = '0.00 B';\r\n else consumption = `${consumptionMB} MB`;\r\n\r\n state.simCardsList.push({\r\n iccid: sim.iccid,\r\n onlineStatus,\r\n soldplan: soldplan.join(' '),\r\n lastConn,\r\n lastDisc,\r\n consumption,\r\n clientId: sim.client,\r\n clientName: sim.clientName,\r\n unitId: sim.unit,\r\n unitName: sim.unitName,\r\n accessPoint: sim.accessPoint,\r\n modem: sim.modem,\r\n accessPointMAC: sim.accessPointMAC,\r\n repeaterMAC: sim.repeaterMAC,\r\n empresa: t('VIVO'),\r\n consumptionPercent: 0,\r\n consumptionMB,\r\n associationDate: sim.associationDate,\r\n cityId: sim.cityId,\r\n stateId: sim.stateId,\r\n });\r\n }\r\n }\r\n const onPreviousPage = () => {\r\n if (state.currentPage > 1) {\r\n setState({ currentPage: state.currentPage - 1 });\r\n }\r\n };\r\n\r\n const onNextPage = () => {\r\n if (state.currentPage * state.pageSize < state.simCardsListFiltered.length) {\r\n setState({ currentPage: state.currentPage + 1 });\r\n }\r\n };\r\n async function fetchData() {\r\n try {\r\n state.simCardsListFiltered = state.simCardsList = [];\r\n state.loading = true; render();\r\n const response = await apiCall('/sims-v2', { solution: queryPars.empresa as ('tns' | 'meta' | 'kite' | 'todos') });\r\n\r\n formatSimTns(response);\r\n formatSimMeta(response);\r\n formatSimVivo(response);\r\n\r\n applyTextFilter();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n state.loading = false;\r\n render();\r\n }\r\n\r\n async function solicitarReset(item: { iccid: string, clientName: string, unitName: string, empresa: string }) {\r\n const {\r\n iccid, clientName, unitName, empresa,\r\n } = item;\r\n if (state.resetSolicitado.includes(iccid)) return;\r\n if (!window.confirm(`${t('temCertezaQueDesejaReiniciarSimcard')}\\n${unitName || clientName || iccid}`)) return;\r\n state.resetSolicitado.push(iccid);\r\n try {\r\n await apiCall('/sims/send-reset-request', {\r\n iccid, type: empresa,\r\n });\r\n toast.success(t('sucessoEnviarSolicitacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n state.resetSolicitado.shift();\r\n }\r\n\r\n function onApplyFilter() {\r\n const result = state.simCardsList.filter((dev) => (state.selectedState.length > 0 && state.selectedState.includes(dev.stateId?.toString())) || state.selectedState.length === 0)\r\n .filter((dev) => (state.selectedCity.length > 0 && state.selectedCity.includes(dev.cityId?.toString())) || state.selectedCity.length === 0)\r\n .filter((dev) => (state.selectedUnit.length > 0 && state.selectedUnit.includes(dev.unitId?.toString())) || state.selectedUnit.length === 0)\r\n .filter((dev) => (state.selectedClientFilter.length > 0 && state.selectedClientFilter.includes(dev.clientId?.toString())) || state.selectedClientFilter.length === 0)\r\n .filter((dev) => (state.selectedConnection.length > 0 && state.selectedConnection.includes(dev.onlineStatus.toLocaleUpperCase())) || state.selectedConnection.length === 0);\r\n setState({\r\n simCardsListFiltered: result,\r\n totalItems: result.length,\r\n });\r\n }\r\n\r\n function clearFilters() {\r\n state.selectedState = [];\r\n state.selectedCity = [];\r\n state.selectedUnit = [];\r\n state.selectedConnection = [];\r\n state.selectedClientFilter = [];\r\n }\r\n\r\n function applyTextFilter() {\r\n const searchState = state.searchState.trim().toLowerCase();\r\n state.simCardsListFiltered = state.simCardsList.filter((item) => (!searchState)\r\n || item.iccid && item.iccid.toLowerCase().includes(searchState)\r\n || item.onlineStatus && item.onlineStatus.toLowerCase().includes(searchState)\r\n || item.soldplan && item.soldplan.toLowerCase().includes(searchState)\r\n || item.clientName && item.clientName.toLowerCase().includes(searchState)\r\n || item.unitName && item.unitName.toLowerCase().includes(searchState)\r\n || item.accessPoint && item.accessPoint.toLowerCase().includes(searchState)\r\n || item.accessPointMAC && item.accessPointMAC.toLowerCase().includes(searchState)\r\n || item.modem && item.modem.toLowerCase().includes(searchState)\r\n || item.repeaterMAC && item.repeaterMAC.toLowerCase().includes(searchState)\r\n || item.empresa && item.empresa.toLowerCase().includes(searchState));\r\n state.simCardsListFiltered = state.simCardsListFiltered.sort(dynamicSort(state.orderColum, state.sortOrder));\r\n setState({ currentPage: 1 });\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {t('dielEnergiaConfiguracoes')}\r\n \r\n \r\n
\r\n \r\n
\r\n onApplyFilter()}\r\n setState={setState}\r\n clearFilter={clearFilters}\r\n listFilters={['estado', 'cidade', 'cliente', 'unidade', 'conexao']}\r\n optionsConnetionsName=\"Status\"\r\n optionsConnetions={[\r\n { value: 'ONLINE', name: t('online'), icon: },\r\n { value: 'INATIVO', name: t('inativo'), icon: },\r\n { value: 'OFFLINE', name: t('offline'), icon: },\r\n { value: 'BLOQUEADO', name: t('bloqueadoMinusculo'), icon: },\r\n { value: 'STANDBY', name: 'Stand By', icon: },\r\n ]}\r\n lengthArrayResult={state.totalItems}\r\n />\r\n {state.loading && (\r\n <>\r\n
\r\n \r\n \r\n )}\r\n {!state.loading && (\r\n
\r\n
\r\n \r\n {\r\n state.searchState = e.target.value;\r\n applyTextFilter();\r\n render();\r\n }}\r\n />\r\n \r\n
\r\n \r\n \r\n \r\n { setOrderColum('iccid'); render(); }}>\r\n ICCID\r\n {' '}\r\n { chevron('iccid') }\r\n {' '}\r\n \r\n { setOrderColum('onlineStatus'); render(); }}>\r\n {t('status')}\r\n {' '}\r\n { chevron('onlineStatus') }\r\n \r\n { setOrderColum('soldplan'); render(); }}>\r\n {t('plano')}\r\n {' '}\r\n { chevron('soldplan') }\r\n \r\n { setOrderColum('lastConn'); render(); }}>\r\n {t('ultimaConexao')}\r\n {' '}\r\n { chevron('lastConn') }\r\n \r\n { setOrderColum('lastDisc'); render(); }}>\r\n {t('ultimaDesconexao')}\r\n {' '}\r\n { chevron('lastDisc') }\r\n \r\n { setOrderColum('consumptionMB'); render(); }}>\r\n {t('consumo')}\r\n {' '}\r\n { chevron('consumptionMB') }\r\n \r\n { setOrderColum('clientName'); render(); }}>\r\n {t('cliente')}\r\n {' '}\r\n { chevron('clientName') }\r\n \r\n { setOrderColum('unitName'); render(); }}>\r\n {t('unidade')}\r\n {' '}\r\n { chevron('unitName') }\r\n \r\n { setOrderColum('associationDate'); render(); }}>\r\n
\r\n {t('dataAssociacao')}\r\n
\r\n {' '}\r\n { chevron('associationDate') }\r\n \r\n \r\n \r\n Datas de Renovação\r\n Mensal\r\n dos planos de Fornecedor:\r\n
\r\n TNS - Dia 01\r\n
\r\n Meta Telecom - Dia 20\r\n
\r\n Vivo Telefônica - Dia 24\r\n
\r\n
\r\n
\r\n \r\n
\r\n { setOrderColum('accessPoint'); render(); }}>\r\n {t('pontoAcesso')}\r\n {' '}\r\n { chevron('accessPoint') }\r\n \r\n { setOrderColum('modem'); render(); }}>\r\n {t('modem')}\r\n {' '}\r\n { chevron('modem') }\r\n \r\n { setOrderColum('accessPointMAC'); render(); }}>\r\n {t('macPontoAcesso')}\r\n {' '}\r\n { chevron('accessPointMAC') }\r\n \r\n { setOrderColum('repeaterMAC'); render(); }}>\r\n {t('macRepetidor')}\r\n {' '}\r\n { chevron('repeaterMAC') }\r\n \r\n { setOrderColum('empresa'); render(); }}>\r\n {t('empresa')}\r\n {' '}\r\n { chevron('empresa') }\r\n \r\n \r\n {t('solicitarReset')}\r\n \r\n \r\n
\r\n
\r\n \r\n {getDataPerPage.map((item) => (\r\n \r\n {item.iccid}\r\n {item.onlineStatus}\r\n {item.soldplan}\r\n {moment(item.lastConn).format('DD/MM/YYYY HH:mm:ss')}\r\n {(item.lastDisc && moment(item.lastDisc).format('DD/MM/YYYY HH:mm:ss')) || '-'}\r\n \r\n {formatNumberWithFractionDigits(item.consumption ?? 0, { minimum: 0, maximum: 2 })}\r\n \r\n {item.clientName || '-'}\r\n {item.unitId ? {item.unitName} : '-'}\r\n {(item.associationDate && moment(item.associationDate).format('DD/MM/YYYY HH:mm:ss')) || '-'}\r\n {item.accessPoint}\r\n {item.modem}\r\n {item.accessPointMAC}\r\n {item.repeaterMAC}\r\n {item.empresa}\r\n \r\n {(item.empresa === 'TNS' || item.empresa === 'VIVO') && (\r\n solicitarReset(item)} variant=\"blue-inv\">\r\n \r\n \r\n )}\r\n \r\n \r\n openEditSimCard(item)} variant=\"blue-inv\">\r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
\r\n \r\n {state.openModal && (\r\n \r\n { state.openModal = false; render(); }}\r\n onSuccess={afterEditSim}\r\n />\r\n \r\n )}\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nfunction FormEditItem(props: {\r\n simInfo: SimCardItem\r\n onSuccess: () => void\r\n onCancel: () => void\r\n}) {\r\n const { t } = useTranslation();\r\n const { simInfo, onSuccess, onCancel } = props;\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n comboClients: [] as {}[],\r\n comboUnits: [] as {}[],\r\n client: simInfo.clientName || '',\r\n unit: simInfo.unitName || '',\r\n clientId: simInfo.clientId || null,\r\n unitId: simInfo.unitId || null,\r\n accessPoint: simInfo.accessPoint || '',\r\n modem: simInfo.modem || '',\r\n accessPointMAC: simInfo.accessPointMAC || '',\r\n repeaterMAC: simInfo.repeaterMAC || '',\r\n associationDate: simInfo.associationDate || null,\r\n });\r\n\r\n useEffect(() => {\r\n if (state.comboClients.length === 0) {\r\n apiCall('/clients/get-clients-list', {}).then((response) => {\r\n state.comboClients = response.list.map((row) => ({ label: row.NAME, value: row.CLIENT_ID }));\r\n render();\r\n });\r\n }\r\n if (state.clientId) {\r\n loadUnitsClient(state.clientId);\r\n }\r\n }, [false]);\r\n\r\n async function confirm() {\r\n try {\r\n state.submitting = true;\r\n if (!state.clientId || !state.unitId) {\r\n toast.error(t('selecioneClienteEUnidade'));\r\n return;\r\n }\r\n render();\r\n const reqData = {\r\n ICCID: simInfo.iccid,\r\n CLIENT: state.clientId || null,\r\n UNIT: state.unitId || null,\r\n ACCESSPOINT: state.accessPoint || null,\r\n MODEM: state.modem || null,\r\n MACACCESSPOINT: state.accessPointMAC || null,\r\n MACREPEATER: state.repeaterMAC || null,\r\n ASSOCIATION_DATE: new Date(Date.now()).toISOString(),\r\n };\r\n await apiCall('/sims/set-sim-info', reqData);\r\n onSuccess();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n\r\n state.submitting = false;\r\n render();\r\n }\r\n\r\n const calculateAssociationDate = () => {\r\n if (state.unitId !== simInfo.unitId || state.associationDate === null) {\r\n return moment(new Date()).format('YYYY-MM-DD HH:mm:ss');\r\n }\r\n return moment(state.associationDate).format('YYYY-MM-DD HH:mm:ss');\r\n };\r\n\r\n const loadUnitsClient = (clientId) => {\r\n const reqCombos = { CLIENT_ID: clientId, units: true };\r\n apiCall('/dev/dev-info-combo-options', reqCombos)\r\n .then((response) => {\r\n state.comboUnits = response.units!.map((row) => ({ label: row.label, value: row.value }));\r\n render();\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n });\r\n };\r\n\r\n const onSelectClient = (item) => {\r\n state.client = item.label;\r\n state.clientId = item.value;\r\n state.unit = '';\r\n state.comboUnits = [];\r\n\r\n render();\r\n\r\n if (item && item.value != null) {\r\n loadUnitsClient(item.value);\r\n } else if (item === '') {\r\n state.unitId = null;\r\n }\r\n };\r\n\r\n return (\r\n
\r\n \r\n {\r\n state.unitId = item.value;\r\n state.unit = item.label;\r\n render();\r\n }}\r\n haveFuzzySearch\r\n disabled={!state.client}\r\n />\r\n { state.accessPoint = event.target.value; render(); }}\r\n />\r\n
\r\n { state.modem = event.target.value; render(); }}\r\n />\r\n
\r\n { state.accessPointMAC = event.target.value; render(); }}\r\n />\r\n
\r\n { state.repeaterMAC = event.target.value; render(); }}\r\n />\r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default withTransaction('SimCards', 'component')(SimCards);\r\n","import { useHistory } from 'react-router-dom';\r\nimport { Header, Headers2 } from '../../../Analysis/Header';\r\nimport queryString from 'query-string';\r\nimport { useRef } from 'react';\r\n\r\nexport const ProjetoBBLayout = ({ ...props }): JSX.Element => {\r\n const links = [\r\n {\r\n link: '/painel/projeto-bb/kpis',\r\n title: 'KPIs do Projeto',\r\n },\r\n {\r\n link: '/painel/projeto-bb/ans/recente',\r\n title: 'ANS',\r\n },\r\n {\r\n link: '/painel/projeto-bb/cronograma',\r\n title: 'Cronograma de Instalação',\r\n },\r\n {\r\n link: '/painel/projeto-bb/cadastroAC',\r\n title: 'Cadastro AC',\r\n },\r\n {\r\n link: '/painel/projeto-bb/nobreak',\r\n title: 'Cadastro Nobreak',\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n
\r\n \r\n );\r\n};\r\n\r\nexport const AnsLayout = ({ ...props }): JSX.Element => {\r\n const history = useHistory();\r\n const linkBase = history.location.pathname;\r\n const links = [\r\n {\r\n title: 'Recente',\r\n link: '/painel/projeto-bb/ans/recente',\r\n isActive: linkBase.includes('recente'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'Antiga',\r\n link: '/painel/projeto-bb/ans/antiga',\r\n isActive: linkBase.includes('antiga'),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n \r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\n\r\nexport const PowerBIEmbedContainer = styled.div`\r\n overflow-x: hidden;\r\n overflow-y: scroll;\r\n width: 100%;\r\n height: 1000px;\r\n position: relative;\r\n border: 1px solid #CBCBCB;\r\n border-radius: 10px;\r\n`;\r\n\r\nexport const PowerBIEmbedTitle = styled.span`\r\nposition: absolute;\r\npadding-inline: 10px;\r\nwidth: 100%;\r\nheight: 25px;\r\nbackground-color: white;\r\nz-index: 5;\r\nborder-bottom: 1px solid #CBCBCB;\r\n`;\r\n","import { Helmet } from 'react-helmet';\r\nimport {\r\n Card,\r\n} from 'components';\r\n\r\nimport { AdminLayout } from '../../AdminLayout';\r\nimport { ProjetoBBLayout } from '../ProjetoBBLayout';\r\nimport { PowerBIEmbedContainer, PowerBIEmbedTitle } from '../styles';\r\nimport '../ProjetoBB.css';\r\nimport { PowerBIEmbed } from 'powerbi-client-react';\r\nimport { models } from 'powerbi-client';\r\nimport { useState } from 'react';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { ClientPanelLayout } from '~/pages/ClientPanel/ClientPanelLayout';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport function ProjetoBBKPIs(): JSX.Element {\r\n const [profile] = useState(getUserProfile);\r\n\r\n return (\r\n <>\r\n \r\n Diel Energia - Projeto BB KPIs\r\n \r\n {(profile.permissions.isAdminSistema)\r\n && }\r\n {((!profile.manageAllClients) && (profile.manageSomeClient) && !profile.permissions.isInstaller && profile.permissions.CLIENT_MANAGE.includes(145))\r\n && }\r\n {(profile.permissions.isAdminSistema || ((!profile.manageAllClients) && (profile.manageSomeClient) && !profile.permissions.isInstaller && profile.permissions.CLIENT_MANAGE.includes(145)))\r\n && (\r\n <>\r\n
\r\n \r\n
\r\n \r\n <>\r\n \r\n KPIs BB\r\n ',\r\n embedUrl: 'https://dielenergialtda749.sharepoint.com/:x:/s/PROJETO-BANCODOBRASIL/EYrrEYQhukxBhr0ublrGkPUBHTl_gK1zTb_3-JWdMZPbHA?e=4%3ApiYdph&fromShare=true&at=9&action=embedview',\r\n accessToken: '',\r\n tokenType: models.TokenType.Embed, // Use models.TokenType.Aad for SaaS embed\r\n settings: {\r\n panes: {\r\n filters: {\r\n expanded: false,\r\n visible: false,\r\n },\r\n },\r\n background: models.BackgroundType.Transparent,\r\n },\r\n }}\r\n eventHandlers={\r\n new Map([\r\n ['loaded', function () { console.log('Report loaded'); }],\r\n ['rendered', function () { console.log('Report rendered'); }],\r\n ['error', function (event) { console.log(event && event.detail); }],\r\n ['visualClicked', () => console.log('visual clicked')],\r\n ['pageChanged', (event) => console.log(event)],\r\n ])\r\n }\r\n cssClassName=\"Embed-container\"\r\n />\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nexport default withTransaction('ProjetoBBKPIs', 'component')(ProjetoBBKPIs);\r\n","import { Helmet } from 'react-helmet';\r\nimport {\r\n Card,\r\n} from 'components';\r\nimport { AdminLayout } from '../../AdminLayout';\r\nimport { AnsLayout, ProjetoBBLayout } from '../ProjetoBBLayout';\r\nimport { PowerBIEmbedContainer, PowerBIEmbedTitle } from '../styles';\r\nimport '../ProjetoBB.css';\r\nimport { PowerBIEmbed } from 'powerbi-client-react';\r\nimport { models } from 'powerbi-client';\r\nimport { useState } from 'react';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { ClientPanelLayout } from '~/pages/ClientPanel/ClientPanelLayout';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport function ProjetoBBANS(): JSX.Element {\r\n const [profile] = useState(getUserProfile);\r\n return (\r\n <>\r\n \r\n Diel Energia - Projeto BB ANS\r\n \r\n {(profile.permissions.isAdminSistema)\r\n && }\r\n {((!profile.manageAllClients) && (profile.manageSomeClient) && !profile.permissions.isInstaller)\r\n && }\r\n {(profile.permissions.isAdminSistema || ((!profile.manageAllClients) && (profile.manageSomeClient) && !profile.permissions.isInstaller && profile.permissions.CLIENT_MANAGE.includes(145)))\r\n && (\r\n <>\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n ANS - BANCO DO BRASIL\r\n ',\r\n embedUrl: 'https://dielenergialtda749.sharepoint.com/:x:/s/PROJETO-BANCODOBRASIL/EabBfIhP1tRDtDUvTe0pQEMB4yXEsLiH5aTG90lca01b6Q?e=4%3A7H1RRc&fromShare=true&at=9&action=embedview',\r\n accessToken: '',\r\n tokenType: models.TokenType.Embed, // Use models.TokenType.Aad for SaaS embed\r\n settings: {\r\n panes: {\r\n filters: {\r\n expanded: false,\r\n visible: false,\r\n },\r\n },\r\n background: models.BackgroundType.Transparent,\r\n },\r\n }}\r\n eventHandlers={\r\n new Map([\r\n ['loaded', function () { console.log('Report loaded'); }],\r\n ['rendered', function () { console.log('Report rendered'); }],\r\n ['error', function (event) { console.log(event && event.detail); }],\r\n ['visualClicked', () => console.log('visual clicked')],\r\n ['pageChanged', (event) => console.log(event)],\r\n ])\r\n }\r\n cssClassName=\"Embed-container\"\r\n />\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nexport default withTransaction('ProjetoBBANS', 'component')(ProjetoBBANS);\r\n","import { Helmet } from 'react-helmet';\r\nimport {\r\n Card,\r\n} from 'components';\r\n\r\nimport { AdminLayout } from '../../AdminLayout';\r\nimport { ProjetoBBLayout } from '../ProjetoBBLayout';\r\nimport { PowerBIEmbedContainer, PowerBIEmbedTitle } from '../styles';\r\nimport '../ProjetoBB.css';\r\nimport { PowerBIEmbed } from 'powerbi-client-react';\r\nimport { models } from 'powerbi-client';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { useState } from 'react';\r\nimport { ClientPanelLayout } from '~/pages/ClientPanel/ClientPanelLayout';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport function ProjetoBBCronograma(): JSX.Element {\r\n const [profile] = useState(getUserProfile);\r\n return (\r\n <>\r\n \r\n Diel Energia - Projeto BB Cronograma\r\n \r\n {(profile.permissions.isAdminSistema)\r\n && }\r\n {((!profile.manageAllClients) && (profile.manageSomeClient) && !profile.permissions.isInstaller)\r\n && }\r\n {(profile.permissions.isAdminSistema || ((!profile.manageAllClients) && (profile.manageSomeClient) && !profile.permissions.isInstaller && profile.permissions.CLIENT_MANAGE.includes(145)))\r\n && (\r\n <>\r\n
\r\n \r\n
\r\n \r\n <>\r\n \r\n REPORT BANCO DO BRASIL - Resumo\r\n ',\r\n embedUrl: 'https://dielenergialtda749.sharepoint.com/:x:/s/PROJETO-BANCODOBRASIL/EdJ3Mf6TM39CvxE4sejqsAMBKYdOD3sAzJvJP47IIV7wNA?rtime=X6BHYBbx20g&action=embedview',\r\n accessToken: '',\r\n tokenType: models.TokenType.Embed, // Use models.TokenType.Aad for SaaS embed\r\n settings: {\r\n panes: {\r\n filters: {\r\n expanded: false,\r\n visible: false,\r\n },\r\n },\r\n background: models.BackgroundType.Transparent,\r\n },\r\n }}\r\n eventHandlers={\r\n new Map([\r\n ['loaded', function () { console.log('Report loaded'); }],\r\n ['rendered', function () { console.log('Report rendered'); }],\r\n ['error', function (event) { console.log(event && event.detail); }],\r\n ['visualClicked', () => console.log('visual clicked')],\r\n ['pageChanged', (event) => console.log(event)],\r\n ])\r\n }\r\n cssClassName=\"Embed-container\"\r\n />\r\n \r\n\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nexport default withTransaction('ProjetoBBCronograma', 'component')(ProjetoBBCronograma);\r\n","import styled from 'styled-components';\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 16px;\r\n height: 16px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 12px;\r\n height: 12px;\r\n }\r\n`;\r\n\r\nexport const IconBiggerWrapper = styled.div`\r\n display: inline-block;\r\n width: 20px;\r\n height: 20px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 16px;\r\n height: 16px;\r\n }\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocketLazy } from 'helpers/wsConnection';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n NoSignalIcon,\r\n BadSignalIcon,\r\n RegularSignalIcon,\r\n GoodSignalIcon,\r\n GreatSignalIcon,\r\n} from '../../icons';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\ninterface ComponentProps {\r\n DEV_ID?: string|null,\r\n isAutomation: boolean,\r\n DEV_AUT?: string|null,\r\n DUT_ID: string|null,\r\n}\r\n\r\nexport const AssetConnection = (props: ComponentProps): JSX.Element => {\r\n const [state, render] = useStateVar(() => ({\r\n RSSI: null as string|null,\r\n STATUS: null as string|null,\r\n }));\r\n const { t } = useTranslation();\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n wsl.start(onWsOpen, onWsMessage, beforeWsClose);\r\n } catch (err) {\r\n toast.error(t('erroStatusDoDispositivo'));\r\n console.log(err);\r\n }\r\n }());\r\n }, [props.DEV_ID]);\r\n\r\n const wsl = useWebSocketLazy();\r\n function onWsOpen(wsConn) {\r\n if (!props.DEV_ID) return;\r\n if (!props.isAutomation && props.DEV_ID.startsWith('DAC')) wsConn.send({ type: 'subscribeTelemetry', data: { dac_id: props.DEV_ID } });\r\n else if (props.isAutomation && props.DEV_AUT && (props.DEV_AUT.startsWith('DAM') || props.DEV_AUT.startsWith('DAC'))) wsConn.send({ type: 'subscribeStatus', data: { dam_id: props.DEV_ID } });\r\n else if (props.isAutomation && props.DEV_ID.startsWith('DRI')) wsConn.send({ type: 'driSubscribeRealTime', data: { DRI_ID: props.DEV_ID } });\r\n else if (props.isAutomation && props.DEV_ID.startsWith('DMT')) wsConn.send({ type: 'dmtSubscribeRealTime', data: { DMT_CODE: props.DEV_ID } });\r\n else if (props.isAutomation && props.DEV_ID.startsWith('DAL')) wsConn.send({ type: 'dalSubscribeRealTime', data: { DAL_CODE: props.DEV_ID } });\r\n else wsConn.send({ type: 'dutSubscribeRealTime', data: { DUT_ID: props.DEV_ID } });\r\n }\r\n\r\n const verifyAndUpdateDataStatus = (payload) => {\r\n if (payload.data.status) {\r\n state.STATUS = payload.data.status;\r\n }\r\n };\r\n\r\n function handleDamStatusMessage(payload) {\r\n if (payload.type === 'damStatus' && payload.data.dev_id === props.DEV_ID) {\r\n verifyAndUpdateDataStatus(payload);\r\n if (payload.data.RSSI != null) state.RSSI = rssiDesc(payload.data.RSSI, payload.data.status);\r\n render();\r\n }\r\n }\r\n\r\n function handleDacTelemetryMessage(payload) {\r\n if (payload.type === 'dacTelemetry' && payload.data.dac_id === props.DEV_ID) {\r\n verifyAndUpdateDataStatus(payload);\r\n if (payload.data.RSSI != null) state.RSSI = rssiDesc(payload.data.RSSI, payload.data.status);\r\n render();\r\n }\r\n }\r\n\r\n function handleDacOnlineStatusMessage(payload) {\r\n if (payload.type === 'dacOnlineStatus' && payload.data.dac_id === props.DEV_ID) {\r\n verifyAndUpdateDataStatus(payload);\r\n render();\r\n }\r\n }\r\n\r\n function handleDevsTelemetryMessage(payload) {\r\n if (\r\n (payload.type === 'dutTelemetry' || payload.type === 'driTelemetry' || payload.type === 'dalTelemetry' || payload.type === 'dmtTelemetry')\r\n && payload.data.dev_id === props.DEV_ID\r\n ) {\r\n verifyAndUpdateDataStatus(payload);\r\n if (payload.data.RSSI != null) state.RSSI = rssiDesc(payload.data.RSSI, payload.data.status);\r\n render();\r\n }\r\n }\r\n\r\n function onWsMessage(payload) {\r\n if (!payload) return;\r\n handleDamStatusMessage(payload);\r\n handleDacTelemetryMessage(payload);\r\n handleDacOnlineStatusMessage(payload);\r\n handleDevsTelemetryMessage(payload);\r\n }\r\n\r\n function beforeWsClose(wsConn) {\r\n if (!props.DEV_ID) return;\r\n if (!props.isAutomation && props.DEV_ID) wsConn.send({ type: 'subscribeTelemetry', data: {} });\r\n else if (props.isAutomation && props.DEV_AUT && (props.DEV_AUT.startsWith('DAM') || props.DEV_AUT?.startsWith('DAC'))) wsConn.send({ type: 'unsubscribeStatus' });\r\n else if (props.isAutomation && props.DUT_ID) wsConn.send({ type: 'dutUnsubscribeRealTime' });\r\n else if (props.isAutomation && props.DEV_ID.startsWith('DRI')) wsConn.send({ type: 'driUnsubscribeRealTime' });\r\n else if (props.isAutomation && props.DEV_ID.startsWith('DMT')) wsConn.send({ type: 'dmtUnsubscribeRealTime' });\r\n }\r\n\r\n function rssiDesc(RSSI: number, status: string) {\r\n if (RSSI < 0 && status === 'ONLINE') {\r\n if (RSSI > -50) return 'Excelente';\r\n if (RSSI > -60) return 'Bom';\r\n if (RSSI > -70) return 'Regular';\r\n return 'Ruim';\r\n }\r\n return '-';\r\n }\r\n\r\n function formatRssiIcon(rssi: string|null) {\r\n switch (rssi) {\r\n case 'Excelente': return ;\r\n case 'Bom': return ;\r\n case 'Regular': return ;\r\n case 'Ruim': return ;\r\n default: return ;\r\n }\r\n }\r\n\r\n function rssiText() {\r\n return state.RSSI || '-';\r\n }\r\n\r\n return (\r\n <>\r\n {(rssiText() != null)\r\n && (\r\n formatRssiIcon(state.RSSI)\r\n )}\r\n \r\n );\r\n};\r\n","import { useEffect, useState } from 'react';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { Flex } from 'reflexbox';\r\nimport { IconWrapper, IconBiggerWrapper } from './styles';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { AssetConnection } from 'components/AssetConnection';\r\nimport { formatHealthIcon, healthLevelColor } from 'components/HealthIcon';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { useTranslation } from 'react-i18next';\r\nimport {\r\n BoxIcon,\r\n LayersIcon,\r\n ChipIcon,\r\n} from '../../icons';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { position } from 'html2canvas/dist/types/css/property-descriptors/position';\r\n\r\ninterface ComponentProps {\r\n assets: {\r\n ASSET_ID: number,\r\n DAT_ID: string,\r\n AST_TYPE: string,\r\n AST_DESC: string,\r\n DEV_ID: string|null,\r\n H_INDEX: number|null,\r\n AST_ROLE_NAME: string,\r\n AST_ROLE_INDEX: number\r\n selected: boolean,\r\n rssiText: string,\r\n } [],\r\n AUTOM_ID: string|null,\r\n DEV_AUT: string|null,\r\n DUT_ID: string|null,\r\n GROUP_NAME: string|null,\r\n GROUP_ID: string,\r\n isAutomationelected: boolean,\r\n isGroupSelected: boolean,\r\n onHandleSelectCard,\r\n}\r\n\r\nexport const AssetTree = (props: ComponentProps): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n const history = useHistory();\r\n const { t } = useTranslation();\r\n const [state, render] = useStateVar(() => ({\r\n assets: props.assets,\r\n automationSelected: props.isAutomationelected,\r\n groupSelected: props.isGroupSelected,\r\n isSelected: false,\r\n }));\r\n\r\n // position -1 means selected automation and -2 means selected group\r\n function selectCard(position: number) {\r\n state.isSelected = true;\r\n state.assets.forEach((asset, index) => asset.selected = position === index);\r\n state.automationSelected = position === -1;\r\n state.groupSelected = position === -2;\r\n props.onHandleSelectCard(position);\r\n render();\r\n }\r\n\r\n function splitUrl(url: string) {\r\n const partes = url.split('/');\r\n const index = partes.indexOf('ativos');\r\n if (index !== -1 && index + 1 < partes.length) {\r\n return partes[index + 1];\r\n }\r\n return null;\r\n }\r\n\r\n useEffect(() => {\r\n if (!state.isSelected) {\r\n let position;\r\n const machineId = splitUrl(history.location.pathname);\r\n if (!machineId) {\r\n position = -2;\r\n state.groupSelected = true;\r\n state.automationSelected = false;\r\n state.assets.forEach((asset) => asset.selected = false);\r\n }\r\n else if (props.AUTOM_ID === machineId) {\r\n position = -1;\r\n state.groupSelected = false;\r\n state.automationSelected = true;\r\n state.assets.forEach((asset) => asset.selected = false);\r\n }\r\n else {\r\n const assetfilter = state.assets.filter((asset) => String(asset.ASSET_ID) === machineId || asset.DEV_ID === machineId);\r\n position = assetfilter.length > 0 ? state.assets.indexOf(assetfilter[0]) : -1;\r\n state.groupSelected = false;\r\n state.assets.forEach((asset, index) => asset.selected = position === index);\r\n }\r\n props.onHandleSelectCard(position);\r\n render();\r\n }\r\n state.isSelected = false;\r\n }, [history.location.pathname]);\r\n\r\n function borderCard(isSelected: boolean) {\r\n return !isSelected ? '1px solid lightgrey' : '2px solid #363BC4';\r\n }\r\n\r\n function borderLeftCard(isSelected: boolean) {\r\n return !isSelected ? '1px solid lightgrey' : '4px solid #363BC4';\r\n }\r\n\r\n function cardName(DAT_ID: string, DEV_ID: string|null) {\r\n const devIdText = DEV_ID ? `/${DEV_ID}` : '';\r\n if (DAT_ID) return `${DAT_ID}${devIdText}`;\r\n return DEV_ID;\r\n }\r\n\r\n function cardRootDescription(name: string|null, maxSize: number) {\r\n if (!name) return null;\r\n const overExtended = name.length > maxSize;\r\n const nameDisplay = !overExtended ? name : `${name.substring(0, maxSize)}...`;\r\n return (\r\n <>\r\n \r\n \r\n {name}\r\n \r\n
\r\n {overExtended && (\r\n \r\n \r\n \r\n {name}\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n function formatItemIcon(type: string) {\r\n switch (type) {\r\n case 'Group': return ;\r\n case 'Asset': return ;\r\n case 'Automation': return ;\r\n default: return null;\r\n }\r\n }\r\n\r\n function shouldShowHealthIcon(asset: (typeof state.assets)[number]) {\r\n return props.AUTOM_ID === asset.DEV_ID\r\n || asset.DEV_ID?.startsWith('DAC'); // DACs sempre mostram ícone de saúde se existir\r\n }\r\n\r\n return (\r\n \r\n \r\n selectCard(-2)}\r\n >\r\n \r\n \r\n ▼\r\n \r\n \r\n \r\n \r\n {formatItemIcon('Group')}\r\n \r\n \r\n \r\n {cardRootDescription(props.GROUP_NAME, 36)}\r\n {profile.manageAllClients && (\r\n \r\n {`ID${props.GROUP_ID}`}\r\n \r\n )}\r\n \r\n \r\n \r\n {state.assets.map((asset, index) => (\r\n \r\n
\r\n
\r\n selectCard(index)}\r\n >\r\n \r\n \r\n {formatItemIcon('Asset')}\r\n \r\n \r\n \r\n \r\n {cardRootDescription(`${asset.AST_DESC}`, 20)}\r\n {profile.manageAllClients && (\r\n
\r\n {cardName(asset.DAT_ID, asset.DEV_ID)}\r\n
\r\n )}\r\n \r\n \r\n {asset.H_INDEX && shouldShowHealthIcon(asset)\r\n && (\r\n \r\n \r\n \r\n \r\n \r\n {profile.manageAllClients && (\r\n \r\n \r\n \r\n )}\r\n \r\n {formatHealthIcon(asset.H_INDEX)}\r\n \r\n \r\n \r\n )}\r\n {!asset.H_INDEX\r\n && (\r\n \r\n \r\n \r\n \r\n \r\n {profile.manageAllClients && (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n \r\n ))}\r\n {props.AUTOM_ID && (\r\n \r\n selectCard(-1)}\r\n >\r\n \r\n \r\n {formatItemIcon('Automation')}\r\n \r\n \r\n \r\n {cardRootDescription(t('descricaoRaizCartaoArvoreAtivos'), 20)}\r\n {profile.manageAllClients && (\r\n \r\n {props.AUTOM_ID}\r\n \r\n )}\r\n \r\n {profile.manageAllClients && (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { colors } from 'styles/colors';\r\n\r\nexport const Data = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-bottom: 16px;\r\n`;\r\nexport const DataText = styled.span<{ fontWeight? }>(\r\n ({ color = colors.Grey400, fontWeight = 'normal' }) => `\r\n font-size: 12px;\r\n font-weight: ${fontWeight};\r\n color: ${color};\r\n`,\r\n);\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 21px;\r\n height: 27px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 21px;\r\n height: 27px;\r\n }\r\n`;\r\n\r\nexport const StatusBox = styled.div<{ color?, status? }>(\r\n ({ color, status }) => `\r\n width: 80px;\r\n height: 25px;\r\n margin-left: 5px;\r\n border-radius: 5px;\r\n border: 2px solid ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n background: ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n font-weight: bold;\r\n font-size: 0.8em;\r\n line-height: 18px;\r\n color: ${colors.White};\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n text-transform: capitalize;\r\n`,\r\n);\r\n","import { useEffect } from 'react';\r\nimport moment from 'moment';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { getCachedDevInfo } from 'helpers/cachedStorage';\r\nimport { useWebSocketLazy } from 'helpers/wsConnection';\r\nimport { Flex } from 'reflexbox';\r\nimport { useTranslation } from 'react-i18next';\r\nimport i18n from 'i18n';\r\nimport {\r\n IconWrapper,\r\n Data,\r\n DataText,\r\n StatusBox,\r\n} from './styles';\r\nimport { colors } from 'styles/colors';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n NoSignalIcon,\r\n BadSignalIcon,\r\n RegularSignalIcon,\r\n GoodSignalIcon,\r\n GreatSignalIcon,\r\n} from '../../icons';\r\n\r\ninterface ComponentProps {\r\n DEV_ID: string|null,\r\n isAutomation: boolean,\r\n DEV_AUT: string|null,\r\n DUT_ID: string|null,\r\n withoutMarginTop?: boolean,\r\n onlyIcon?: boolean,\r\n}\r\n\r\nconst getLteQuality = (value: number, status: string | null) => {\r\n if (value < 0 && status === 'ONLINE') {\r\n if (value <= -100) return 'Ruim';\r\n if (value <= -90 && value > -100) return 'Regular';\r\n if (value < -80 && value > -90) return 'Bom';\r\n if (value >= -80) return 'Excelente';\r\n }\r\n\r\n return null;\r\n};\r\n\r\nexport const AssetStatus = (props: ComponentProps): JSX.Element => {\r\n const [state, render] = useStateVar(() => ({\r\n TIMESTAMP: null,\r\n LAST_TELEMETRY: null as string|null,\r\n STATUS: null as string|null,\r\n RSSI: null as string|null,\r\n RSRP: null as number | null,\r\n oldDate: false as boolean,\r\n hasLTENetwork: false,\r\n }));\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const { t } = useTranslation();\r\n\r\n async function getNetworkDevInfo(): Promise {\r\n try {\r\n if (props.DEV_ID) {\r\n const devInfo = await getCachedDevInfo(props.DEV_ID, { forceFresh: true });\r\n\r\n if (devInfo.lastMessageTS) state.LAST_TELEMETRY = devInfo.lastMessageTS;\r\n\r\n state.hasLTENetwork = !!devInfo?.LTE_NETWORK;\r\n\r\n if (state.hasLTENetwork) {\r\n const lteNetworkRsrpQuality = devInfo?.LTE_NETWORK && devInfo?.LTE_RSRP && getLteQuality(devInfo?.LTE_RSRP, devInfo?.status);\r\n state.RSRP = devInfo?.LTE_RSRP ?? null;\r\n state.RSSI = lteNetworkRsrpQuality;\r\n }\r\n\r\n render();\r\n }\r\n wsl.start(onWsOpen, onWsMessage, beforeWsClose);\r\n } catch (err) {\r\n toast.error(t('erroDadosDispositivo'));\r\n console.log(err);\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n getNetworkDevInfo();\r\n }, [props.DEV_ID]);\r\n\r\n const wsl = useWebSocketLazy();\r\n function onWsOpen(wsConn) {\r\n if (!props.DEV_ID) return;\r\n if (!props.isAutomation && props.DEV_ID.startsWith('DAC')) wsConn.send({ type: 'subscribeTelemetry', data: { dac_id: props.DEV_ID } });\r\n else if (props.isAutomation && props.DEV_AUT && (props.DEV_AUT.startsWith('DAM') || props.DEV_AUT.startsWith('DAC'))) wsConn.send({ type: 'subscribeStatus', data: { dam_id: props.DEV_AUT } });\r\n else if (props.isAutomation && props.DEV_AUT && props.DEV_AUT.startsWith('DRI')) wsConn.send({ type: 'driSubscribeRealTime', data: { DRI_ID: props.DEV_AUT } });\r\n else if (props.isAutomation && props.DEV_AUT && props.DEV_AUT.startsWith('DMT')) wsConn.send({ type: 'dmtSubscribeRealTime', data: { DMT_CODE: props.DEV_AUT } });\r\n else if (props.isAutomation && props.DEV_AUT && props.DEV_AUT.startsWith('DAL')) wsConn.send({ type: 'dalSubscribeRealTime', data: { DAL_CODE: props.DEV_AUT } });\r\n else wsConn.send({ type: 'dutSubscribeRealTime', data: { DUT_ID: props.DEV_ID } });\r\n }\r\n\r\n function handleDacIdMessage(payload) {\r\n if (payload.data.dac_id === props.DEV_ID) {\r\n if (payload.type === 'dacTelemetry') {\r\n verifyAndUpdateDataStatusAndRSSI(payload);\r\n }\r\n if (payload.type === 'dacOnlineStatus') {\r\n verifyAndUpdateDataStatus(payload);\r\n render();\r\n }\r\n }\r\n }\r\n\r\n function handleDevIdMessage(payload) {\r\n if (payload.data.dev_id === props.DEV_ID) {\r\n if (payload.type === 'damStatus') {\r\n if (payload.data.deviceTimestamp) state.TIMESTAMP = payload.data.deviceTimestamp;\r\n verifyAndUpdateDataStatusAndRSSI(payload);\r\n }\r\n if (payload.type === 'dutTelemetry') {\r\n verifyAndUpdateDataStatusAndRSSI(payload);\r\n render();\r\n }\r\n if (payload.type === 'dmtTelemetry') {\r\n verifyAndUpdateDataStatusAndRSSI(payload);\r\n render();\r\n }\r\n if (payload.type === 'driTelemetry') {\r\n verifyAndUpdateDataStatusAndRSSI(payload);\r\n }\r\n if (payload.type === 'dalTelemetry') {\r\n verifyAndUpdateDataStatusAndRSSI(payload);\r\n }\r\n }\r\n }\r\n\r\n function onWsMessage(payload) {\r\n if (!payload) return;\r\n handleDacIdMessage(payload);\r\n handleDevIdMessage(payload);\r\n }\r\n\r\n const verifyAndUpdateDataStatus = (payload) => {\r\n if (payload.data.status) state.STATUS = payload.data.status;\r\n if (payload.data.timestamp || payload.data.deviceTimestamp) {\r\n const timestamp = payload.data.timestamp || payload.data.deviceTimestamp;\r\n const data = moment(timestamp);\r\n payload.data.timestamp = data;\r\n state.LAST_TELEMETRY = payload.data.timestamp;\r\n checkLastTemetry(state.LAST_TELEMETRY);\r\n }\r\n };\r\n\r\n const verifyAndUpdateDataStatusAndRSSI = (payload) => {\r\n verifyAndUpdateDataStatus(payload);\r\n if (payload.data.RSSI != null) state.RSSI = rssiDesc(payload.data.RSSI, payload.data.status);\r\n else if (state.hasLTENetwork) state.RSSI = getLteQuality(state.RSRP ?? 0, payload.data.status);\r\n else state.RSSI = null;\r\n\r\n render();\r\n };\r\n\r\n function beforeWsClose(wsConn) {\r\n if (!props.DEV_ID) return;\r\n if (!props.isAutomation && props.DEV_ID) wsConn.send({ type: 'subscribeTelemetry', data: {} });\r\n else if (props.isAutomation && props.DEV_AUT && (props.DEV_AUT.startsWith('DAM') || props.DEV_AUT?.startsWith('DAC'))) wsConn.send({ type: 'unsubscribeStatus' });\r\n else if (props.isAutomation && props.DUT_ID) wsConn.send({ type: 'dutUnsubscribeRealTime' });\r\n else if (props.isAutomation && props.DEV_AUT && (props.DEV_AUT.startsWith('DRI'))) wsConn.send({ type: 'driUnsubscribeRealTime' });\r\n else if (props.isAutomation && props.DEV_AUT && (props.DEV_AUT.startsWith('DMT'))) wsConn.send({ type: 'dmtUnsubscribeRealTime' });\r\n }\r\n\r\n function rssiDesc(RSSI: number, status: string) {\r\n if (RSSI < 0 && status === 'ONLINE') {\r\n if (RSSI > -50) return t('excelente');\r\n if (RSSI > -60) return t('bom');\r\n if (RSSI > -70) return t('regular');\r\n return t('ruim');\r\n }\r\n return '-';\r\n }\r\n\r\n function formatRssiIcon(rssi: string) {\r\n switch (rssi) {\r\n case t('excelente'): return ;\r\n case t('bom'): return ;\r\n case t('regular'): return ;\r\n case t('ruim'): return ;\r\n default: return ;\r\n }\r\n }\r\n\r\n function statusText() {\r\n return (!state.oldDate && state.STATUS) || 'OFFLINE';\r\n }\r\n\r\n function rssiText() {\r\n return (!state.oldDate && state.RSSI) || '-';\r\n }\r\n\r\n function lastTelemetryText() {\r\n return (state.LAST_TELEMETRY && moment(state.LAST_TELEMETRY).format('lll')) || t('semInformacao');\r\n }\r\n\r\n function checkLastTemetry(lastTelemetry:string | null) {\r\n if (lastTelemetry) {\r\n const dateLastTelemetry = new Date(lastTelemetry);\r\n const dateCurrent = new Date();\r\n const dateMil = dateCurrent.getTime() - dateLastTelemetry.getTime();\r\n const dateDays = dateMil / (1000 * 60 * 60 * 24);\r\n\r\n if (dateDays > 7) {\r\n state.oldDate = true;\r\n } else {\r\n state.oldDate = false;\r\n }\r\n }\r\n }\r\n\r\n if (props.onlyIcon) {\r\n return (\r\n \r\n {t('status')}\r\n \r\n {formatRssiIcon(rssiText())}\r\n \r\n
\r\n );\r\n }\r\n const isDesktop = window.matchMedia('(min-width: 1039px)');\r\n const isMobile = !isDesktop.matches;\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n {t('status')}\r\n \r\n {statusText()}\r\n \r\n
\r\n
\r\n\r\n {(props.DEV_ID && props.DEV_ID.startsWith('DRI')) && (\r\n \r\n
\r\n \r\n \r\n {`${t('intensidade')}:`}\r\n \r\n
\r\n {(!state.oldDate && state.RSSI && state.RSSI !== '-') ? state.RSSI : t('semSinal')}\r\n
\r\n
\r\n
\r\n )}\r\n\r\n \r\n
\r\n {(rssiText() != null)\r\n && (\r\n \r\n {formatRssiIcon(rssiText())}\r\n \r\n )}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n \r\n {t('ultimaLeitura')}\r\n \r\n \r\n {lastTelemetryText()}\r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { colors } from 'styles/colors';\r\n\r\nexport const Card = styled.div`\r\n padding: 32px 0 32px 32px;\r\n margin-top: 24px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\nexport const Data = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-bottom: 16px;\r\n`;\r\nexport const DataText = styled.span<{ fontWeight? }>(\r\n ({ color = colors.Grey400, fontWeight = 'normal' }) => `\r\n font-size: 12px;\r\n font-weight: ${fontWeight};\r\n color: ${color};\r\n`,\r\n);\r\nexport const Title = styled.h1`\r\n font-size: 1.25em;\r\n color: #363BC4;\r\n font-weight: bold;\r\n margin-bottom: 16px;\r\n`;\r\n\r\nexport const StatusBox = styled.div<{ color?, status? }>(\r\n ({ color, status }) => `\r\n width: 80px;\r\n height: 25px;\r\n margin-left: 5px;\r\n border-radius: 5px;\r\n border: 2px solid ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n background: ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n font-weight: bold;\r\n font-size: 0.8em;\r\n line-height: 18px;\r\n color: ${colors.White};\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n text-transform: capitalize;\r\n`,\r\n);\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 21px;\r\n height: 27px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 21px;\r\n height: 27px;\r\n }\r\n`;\r\n","import { ChangeEvent, useEffect } from 'react';\r\nimport { t } from 'i18next';\r\nimport { Link } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button, Input, Loader, RadioButton, StatusBox, LayerBackgroundModal, Card, Checkbox,\r\n} from 'components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from 'helpers/cachedStorage';\r\nimport { getDayProgDesc } from 'helpers/scheduleData';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocketLazy, WSConn } from 'helpers/wsConnection';\r\nimport {\r\n TrashIcon, EditIcon, CheckboxIcon, CloseIcon, TermometerIcon,\r\n} from 'icons';\r\nimport { apiCall } from 'providers';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\nimport { colors } from 'styles/colors';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport function SchedulesList(props: {\r\n damId: string\r\n devSched: FullProg_v4,\r\n wantDelException: ((date: string) => void)|null,\r\n // wantSaveVent: ((ventInput: string) => void)|null,\r\n wantSaveVent: ((ventTime: { begin: string, end: string }) => void)|null,\r\n wantAddProg: (() => void)|null,\r\n wantEditDay: ((day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => void)|null,\r\n wantRemoveDay: ((day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => void)|null,\r\n isLoading: boolean,\r\n hideId?: boolean,\r\n readOnly?: boolean,\r\n assetLayout?: boolean,\r\n}): JSX.Element {\r\n const {\r\n damId, devSched, wantDelException, wantSaveVent, wantAddProg, wantEditDay, wantRemoveDay, isLoading, hideId,\r\n } = props;\r\n const [state, render, setState] = useStateVar({\r\n devInfo: getCachedDevInfoSync(damId),\r\n editingVentilation: false,\r\n submittingVentilation: false,\r\n ventInput: '',\r\n ventTime: {} as { begin: string, end: string },\r\n dayProgs: [] as {\r\n day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun',\r\n dayName: string,\r\n text: string,\r\n isBlank: boolean,\r\n }[],\r\n excepts: [] as { dateYMD: string, date: string, text: string }[],\r\n ecoModeCfg: null as null|string,\r\n relDutInfo: null as null|{\r\n REL_DUT_ID: string,\r\n ROOM_DESC?: string,\r\n TUSEMIN?: number,\r\n Temperature?: number,\r\n status?: string,\r\n },\r\n damRealTimeInfo: {} as null|{\r\n Temperature?: null|number,\r\n status?: null|string,\r\n },\r\n });\r\n const weekDaysList = {\r\n mon: t('diasDaSemana.seg'),\r\n tue: t('diasDaSemana.ter'),\r\n wed: t('diasDaSemana.qua'),\r\n thu: t('diasDaSemana.qui'),\r\n fri: t('diasDaSemana.sex'),\r\n sat: t('diasDaSemana.sab'),\r\n sun: t('diasDaSemana.dom'),\r\n };\r\n\r\n const ecoModeCfgs: { [k: string]: string } = {\r\n 'eco-D': t('desligar'),\r\n 'eco-V': t('ventilar'),\r\n 'eco-C1-V': t('desligarCondensadora2DepoisVentilar'),\r\n 'eco-C2-V': t('desligarCondensadora1DepoisVentilar'),\r\n };\r\n\r\n const lws = useWebSocketLazy();\r\n useEffect(() => {\r\n // if (state.relatedDutId) {\r\n // return wsConn.addListener(onWsEvent);\r\n // }\r\n (async function () {\r\n try {\r\n state.devInfo = await getCachedDevInfo(damId, {});\r\n if (!state.devInfo) return;\r\n state.ecoModeCfg = ((state.devInfo.dam?.ENABLE_ECO === 1 || state.devInfo.dam?.ENABLE_ECO === 2) && state.devInfo.dam?.ECO_CFG) || null;\r\n state.relDutInfo = null;\r\n if (state.devInfo.dam?.REL_DUT_ID) {\r\n state.relDutInfo = {\r\n REL_DUT_ID: state.devInfo.dam!.REL_DUT_ID,\r\n };\r\n const dutInfo = await apiCall('/dut/get-dut-info', { DEV_ID: state.relDutInfo.REL_DUT_ID });\r\n state.relDutInfo.TUSEMIN = dutInfo.info.TUSEMIN;\r\n state.relDutInfo.ROOM_DESC = dutInfo.info.ROOM_NAME ? `${dutInfo.info.ROOM_NAME}` : '';\r\n lws.start(onWsOpen, onWsMessage, beforeWsClose);\r\n }\r\n else if (state.devInfo.dam?.SELF_REFERENCE) {\r\n state.damRealTimeInfo = { Temperature: null, state: null };\r\n lws.start(onWsOpen, onWsMessage, beforeWsClose);\r\n }\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }());\r\n }, []);\r\n\r\n function onWsOpen(wsConn: WSConn) {\r\n if (state.relDutInfo && state.relDutInfo.REL_DUT_ID) {\r\n wsConn.send({ type: 'dutSubscribeRealTime', data: { DUT_ID: state.relDutInfo.REL_DUT_ID } });\r\n }\r\n else if (state.devInfo.dam && state.devInfo.dam.SELF_REFERENCE) {\r\n wsConn.send({ type: 'subscribeStatus', data: { dam_id: damId } });\r\n }\r\n }\r\n function onWsMessage(message: { type: string, data: any }) {\r\n if (message && message.type === 'dutTelemetry' && state.relDutInfo && message.data.dev_id === state.relDutInfo.REL_DUT_ID) {\r\n state.relDutInfo.Temperature = message.data && message.data.Temperature;\r\n state.relDutInfo.status = message.data && message.data.status;\r\n render();\r\n }\r\n if (message && message.type === 'devOnlineStatus' && state.relDutInfo && message.data.dev_id === state.relDutInfo.REL_DUT_ID) {\r\n state.relDutInfo.status = message.data && message.data.status;\r\n render();\r\n }\r\n if (message && message.type === 'damStatus' && state.damRealTimeInfo && message.data.status && message.data.dev_id === damId && state.devInfo.dam && state.devInfo.dam.SELF_REFERENCE) {\r\n state.damRealTimeInfo.Temperature = message.data.Temperature || null;\r\n state.damRealTimeInfo.status = message.data.status;\r\n render();\r\n }\r\n }\r\n function beforeWsClose(wsConn: WSConn) {\r\n wsConn.send({ type: 'dutUnsubscribeRealTime' });\r\n wsConn.send({ type: 'unsubscribeStatus' });\r\n }\r\n\r\n useEffect(() => {\r\n const ventilation = devSched.ventTime && (devSched.ventTime.end || devSched.ventTime.begin);\r\n state.ventInput = (ventilation ? String(ventilation) : '0');\r\n state.ventTime = {\r\n begin: devSched.ventTime ? String(devSched.ventTime.begin) : '0',\r\n end: devSched.ventTime ? String(((devSched.ventTime.end !== null) && (devSched.ventTime.end !== undefined)) ? devSched.ventTime.end : devSched.ventTime.begin) : '0',\r\n };\r\n const daysList: (keyof typeof weekDaysList)[] = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];\r\n if (!devSched.week) devSched.week = {};\r\n state.dayProgs = daysList.map((day) => ({\r\n day,\r\n dayName: weekDaysList[day],\r\n text: getDayProgDesc((devSched.week && devSched.week[day]) || null),\r\n isBlank: !(devSched.week && devSched.week[day]),\r\n }));\r\n state.excepts = Object.entries(devSched.exceptions || {}).map(([day, prog]) => ({\r\n dateYMD: day,\r\n date: `${day.substr(8, 2)}/${day.substr(5, 2)}/${day.substr(0, 4)}`,\r\n text: getDayProgDesc(prog),\r\n }));\r\n render();\r\n }, [devSched]);\r\n\r\n async function saveVentilation() {\r\n if (!wantSaveVent) return;\r\n try {\r\n setState({ editingVentilation: true, submittingVentilation: true });\r\n if (state.devInfo?.dam?.supportsVentEnd) {\r\n await wantSaveVent(state.ventTime);\r\n } else {\r\n await wantSaveVent({ begin: state.ventInput, end: state.ventInput });\r\n }\r\n toast.success(t('sucessoEnviar'));\r\n state.editingVentilation = false;\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n setState({ submittingVentilation: false });\r\n }\r\n\r\n const Ventilacao = (\r\n
\r\n \r\n {t('ventilacao')}\r\n \r\n {\r\n (state.submittingVentilation)\r\n ? (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n : (state.editingVentilation)\r\n ? (\r\n
\r\n {t('habilitarTempoDeVentilacao')}\r\n       \r\n { (state.devInfo?.dam?.supportsVentEnd)\r\n ? (\r\n
\r\n
\r\n {t('inicio')}\r\n
\r\n       \r\n ) => setState({ ventTime: { begin: event.target.value, end: state.ventTime.end } })} />\r\n       \r\n
\r\n {t('fim')}\r\n
\r\n       \r\n ) => setState({ ventTime: { begin: state.ventTime.begin, end: event.target.value } })} />\r\n       \r\n
\r\n )\r\n : (\r\n ) => setState({ ventInput: event.target.value })} />\r\n )}\r\n \r\n \r\n \r\n       \r\n setState({ editingVentilation: false })}>\r\n \r\n \r\n
\r\n )\r\n : (\r\n
\r\n {(devSched.ventTime && (devSched.ventTime.begin || devSched.ventTime.end)) ? (\r\n <>\r\n \r\n {(devSched.ventTime.begin)}\r\n {' '}\r\n {t('minutosAposHorarioPermitidoInicial')}\r\n {' '}\r\n {(devSched.ventTime.end)}\r\n {' '}\r\n {t('minutosAntesHorarioPermitidoFinal')}\r\n \r\n \r\n ) : (\r\n {t('desabilitado')}\r\n )}\r\n {(!props.readOnly) && (\r\n
\r\n {(devSched.ventTime && (devSched.ventTime.begin || devSched.ventTime.end)) ? (\r\n { state.ventTime = { begin: '0', end: '0' }; state.ventInput = '0'; saveVentilation(); }}>\r\n \r\n \r\n ) :
 
}\r\n { state.editingVentilation = true; render(); }}>\r\n \r\n \r\n
\r\n )}\r\n
\r\n )\r\n }\r\n
\r\n );\r\n\r\n const ModoEco = (\r\n
\r\n {t('modoEco')}\r\n
\r\n
\r\n
\r\n {(!state.ecoModeCfg)\r\n && {t('desabilitado')}}\r\n {(state.ecoModeCfg)\r\n && (\r\n \r\n {t('acao')}\r\n {': '}\r\n {ecoModeCfgs[state.ecoModeCfg] || state.ecoModeCfg}\r\n \r\n )}\r\n
\r\n {(state.relDutInfo)\r\n && (\r\n <>\r\n \r\n \r\n {t('ambienteRefrigerado')}\r\n {' '}\r\n {state.relDutInfo.ROOM_DESC || state.relDutInfo.REL_DUT_ID}\r\n {`(${state.relDutInfo.REL_DUT_ID})`}\r\n \r\n \r\n
\r\n \r\n {t('limiteDeTemperatura')}\r\n {': '}\r\n {(state.relDutInfo.TUSEMIN != null) ? `${state.relDutInfo.TUSEMIN} °C` : t('semInformacao')}\r\n \r\n
\r\n \r\n )}\r\n {state.devInfo?.dam && state.devInfo.dam?.SELF_REFERENCE && (\r\n <>\r\n {t('modoControle')}\r\n {t('utilizandoDamIdComoReferencia', { damId })}\r\n \r\n \r\n {' '}\r\n {t('temperaturaAmbiente')}\r\n \r\n
\r\n {(state.damRealTimeInfo?.Temperature == null) ? '-' : `${formatNumberWithFractionDigits(state.damRealTimeInfo.Temperature)}°C`}\r\n
\r\n
\r\n \r\n {state.damRealTimeInfo?.status || 'OFFLINE'}\r\n \r\n
\r\n
\r\n \r\n {`${t('limiteTemperatura')} ${state.devInfo.dam?.MAXIMUM_TEMPERATURE || '-'}ºC`}\r\n \r\n
\r\n \r\n )}\r\n
\r\n \r\n {(state.relDutInfo)\r\n && (\r\n <>\r\n \r\n \r\n {' '}\r\n {t('temperaturaAmbiente')}\r\n \r\n
\r\n {(state.relDutInfo.Temperature == null) ? '-' : `${formatNumberWithFractionDigits(state.relDutInfo.Temperature)}°C`}\r\n
\r\n
\r\n \r\n {state.relDutInfo.status || 'OFFLINE'}\r\n \r\n
\r\n \r\n )}\r\n
\r\n
\r\n
\r\n );\r\n\r\n const returnDamId = (damId: string) => (damId.startsWith('DAM') ? t('damId') : t('dacId'));\r\n\r\n return (\r\n <>\r\n \r\n \r\n {(!isLoading) ? (\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n {(!hideId) && (\r\n <>\r\n
\r\n { returnDamId(damId) }\r\n
\r\n \r\n {damId}\r\n \r\n \r\n )}\r\n
\r\n {(!props.readOnly) && (\r\n \r\n )}\r\n  \r\n
\r\n
\r\n
\r\n \r\n \r\n 0) ? 1 / 2 : 1]} pr={[0, 0, 0, 0, 40]}>\r\n {t('funcionamento')}\r\n {state.dayProgs.map((item) => (\r\n \r\n {item.dayName}\r\n {item.text}\r\n
\r\n {(item.isBlank || props.readOnly)\r\n ?
 
\r\n : (\r\n <>\r\n { wantRemoveDay && wantRemoveDay(item.day); }}>\r\n \r\n \r\n { wantEditDay && wantEditDay(item.day); }}>\r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n ))}\r\n
\r\n {(state.excepts.length > 0) && (\r\n \r\n {t('excecoes')}\r\n {state.excepts.map((item) => (\r\n \r\n {item.date}\r\n {item.text}\r\n
\r\n {(!props.readOnly) && (\r\n wantDelException && wantDelException(item.dateYMD)}>\r\n \r\n \r\n )}\r\n
\r\n
\r\n ))}\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n \r\n {(damId && (!damId.startsWith('DAC'))) && ( // TODO: FIXME: find a better way to check this\r\n \r\n {Ventilacao}\r\n \r\n )}\r\n \r\n {ModoEco}\r\n \r\n \r\n
\r\n
\r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport function SchedulesEdit(props: {\r\n devSched: FullProg_v4,\r\n selectedDay: null|('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n onConfirmProg: (days: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')[], prog: DayProg) => void,\r\n onConfirmExcept: (day: string, prog: DayProg) => void,\r\n onCancel: () => void,\r\n isSending: boolean,\r\n}) {\r\n const {\r\n devSched, selectedDay, onConfirmProg, onConfirmExcept, onCancel, isSending,\r\n } = props;\r\n const weekDaysList = {\r\n mon: t('diasDaSemana.seg'),\r\n tue: t('diasDaSemana.ter'),\r\n wed: t('diasDaSemana.qua'),\r\n thu: t('diasDaSemana.qui'),\r\n fri: t('diasDaSemana.sex'),\r\n sat: t('diasDaSemana.sab'),\r\n sun: t('diasDaSemana.dom'),\r\n };\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n exception_date: '',\r\n ruleException: 'rule' as 'rule'|'exception',\r\n allowForbid: 'allow' as 'allow'|'forbid',\r\n weekDays: Object.entries(weekDaysList).map(([day, name]) => ({ name, day: day as keyof typeof weekDaysList, checked: false })),\r\n start_time: '',\r\n end_time: '',\r\n formErrors: {\r\n start_time: '',\r\n end_time: '',\r\n days: '',\r\n },\r\n };\r\n\r\n const editProg = selectedDay && devSched.week && devSched.week[selectedDay];\r\n if (editProg) {\r\n for (const item of state.weekDays) {\r\n item.checked = (item.day === selectedDay);\r\n }\r\n state.start_time = editProg.start || '';\r\n state.end_time = editProg.end || '';\r\n }\r\n\r\n return state;\r\n });\r\n\r\n function handleSelectDay(day: { checked: boolean }) {\r\n day.checked = !day.checked;\r\n changeExceptionMode('rule');\r\n // render();\r\n }\r\n\r\n function changeExceptionMode(newMode: 'rule'|'exception') {\r\n if (newMode === 'rule') {\r\n state.ruleException = 'rule';\r\n state.exception_date = '';\r\n } else {\r\n state.ruleException = 'exception';\r\n for (const day of state.weekDays) {\r\n day.checked = false;\r\n }\r\n }\r\n state.formErrors.days = '';\r\n render();\r\n }\r\n\r\n function validateForm() {\r\n let start_index = null as null|number;\r\n if (!/^\\d\\d:\\d\\d$/.test(state.start_time)) {\r\n state.formErrors.start_time = t('erroTempoInicialObrigatorio');\r\n } else {\r\n const horas = Number(state.start_time.substr(0, 2));\r\n const minutos = Number(state.start_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n state.formErrors.start_time = t('erroValorInvalido');\r\n } else {\r\n state.formErrors.start_time = '';\r\n start_index = horas * 60 + minutos;\r\n }\r\n }\r\n if (!/^\\d\\d:\\d\\d$/.test(state.end_time)) {\r\n state.formErrors.end_time = t('campoTempoFinalObrigatorio');\r\n } else {\r\n const horas = Number(state.end_time.substr(0, 2));\r\n const minutos = Number(state.end_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n state.formErrors.end_time = t('erroValorInvalido');\r\n } else {\r\n const end_index = horas * 60 + minutos;\r\n if (start_index != null && !(end_index >= start_index)) {\r\n state.formErrors.end_time = t('erroValorInvalido');\r\n } else {\r\n state.formErrors.end_time = '';\r\n }\r\n }\r\n }\r\n if (state.ruleException === 'rule') {\r\n if (!state.weekDays.some((item) => item.checked)) {\r\n state.formErrors.days = t('erroNecessarioSelecionarMinimoUmDia');\r\n } else {\r\n state.formErrors.days = '';\r\n }\r\n } else if (state.ruleException === 'exception') {\r\n if (state.exception_date.length !== 10 || state.exception_date.includes('_')) {\r\n state.formErrors.days = t('erroDataExcecaoObrigatoria');\r\n } else {\r\n state.formErrors.days = '';\r\n }\r\n }\r\n render();\r\n return !(state.formErrors.start_time || state.formErrors.end_time || state.formErrors.days);\r\n }\r\n\r\n function handleSubmit() {\r\n if (!validateForm()) return;\r\n const prog = {\r\n permission: state.allowForbid,\r\n start: state.start_time,\r\n end: state.end_time,\r\n };\r\n if (state.ruleException === 'rule') {\r\n const days = state.weekDays.filter((item) => item.checked).map((item) => item.day);\r\n onConfirmProg(days, prog);\r\n } else if (state.ruleException === 'exception') {\r\n const { exception_date } = state;\r\n const day = `${exception_date.substr(6, 4)}-${exception_date.substr(3, 2)}-${exception_date.substr(0, 2)}`;\r\n onConfirmExcept(day, prog);\r\n }\r\n }\r\n\r\n return (\r\n \r\n
\r\n setState({ allowForbid: 'allow' })} />\r\n           \r\n setState({ allowForbid: 'forbid' })} />\r\n
\r\n
\r\n \r\n \r\n ) => { state.start_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n ) => { state.end_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n { state.start_time = '00:00'; state.end_time = '23:59'; render(); }}\r\n />\r\n \r\n \r\n {t('dias')}\r\n \r\n \r\n {state.weekDays.map((item) => (\r\n { handleSelectDay(item); }}\r\n >\r\n {item.name}\r\n \r\n ))}\r\n \r\n {(!selectedDay) && (\r\n \r\n { changeExceptionMode('exception'); }} />\r\n  \r\n ) => { setState({ exception_date: e.target.value }); }}\r\n disabled={state.ruleException !== 'exception'}\r\n />\r\n \r\n )}\r\n \r\n {state.formErrors.days && {state.formErrors.days}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function SchedulesRemove(props: {\r\n selectedDay: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n onConfirm: (day: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')) => void,\r\n onCancel: () => void,\r\n isRemoving: boolean,\r\n}) {\r\n const {\r\n selectedDay, onConfirm, onCancel, isRemoving,\r\n } = props;\r\n return (\r\n <>\r\n \r\n \r\n {t('desejaExcluirEstaProgramacao')}\r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
onConfirm(selectedDay)}>\r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport function DamScheduleSummary(props: { damId: string, assetLayout?: boolean, }) {\r\n const { damId, assetLayout } = props;\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n devSched: { week: {}, exceptions: {} } as FullProg_v4,\r\n };\r\n return state;\r\n });\r\n\r\n async function getData() {\r\n try {\r\n setState({ isLoading: true });\r\n if (damId) {\r\n state.devSched = await apiCall('/dam/get-programming-v3', { damId });\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n useEffect(() => {\r\n getData();\r\n }, []);\r\n\r\n return (\r\n \r\n );\r\n}\r\n\r\n// export function parseReceivedProgramming(data: ApiResps['/dam/get-programming-v2']) {\r\n\r\nconst Text = styled.p<{ isBold?: boolean }>(\r\n ({ isBold }) => `\r\n margin-bottom: ${isBold ? 0 : '1em'};\r\n margin-top: ${isBold ? '1em' : 0};\r\n color: ${isBold ? colors.Grey300 : colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n `,\r\n);\r\n\r\nconst ProgTable = styled.div`\r\n display: grid;\r\n grid-template-columns: 43px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nconst ProgTableExc = styled.div`\r\n display: grid;\r\n grid-template-columns: 90px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nconst TextProgTabDay = styled.span`\r\n color: ${colors.Grey300};\r\n font-weight: bold;\r\n`;\r\n\r\nconst TextProgTabMode = styled.div`\r\n display: grid;\r\n grid-template-columns: auto auto;\r\n`;\r\n\r\nconst ItemTitle = styled.h3`\r\n margin-bottom: 0;\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Blue300};\r\n`;\r\n\r\nconst ItemWrapper = styled.div`\r\n width: 100%;\r\n border-top: 2px solid ${colors.Grey050};\r\n`;\r\n\r\nconst IconWrapper = styled.div`\r\n cursor: pointer;\r\n`;\r\n\r\nconst StyledLink = styled(Link)`\r\n font-size: 1em;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nconst StyledText = styled.span<{ fontSize?: string }>(\r\n ({ fontSize = '12px' }) => `\r\n font-size: ${fontSize};\r\n font-weight: bold;\r\n color: ${colors.Grey400};\r\n white-space: nowrap;\r\n text-align: center;\r\n`,\r\n);\r\n\r\nconst Wrapper = styled.div`\r\n text-align: center;\r\n`;\r\n\r\nconst SelectDay = styled.div<{ isSelected: boolean, ruleException: 'rule'|'exception' }>(\r\n ({ isSelected, ruleException }) => `\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n cursor: pointer;\r\n width: 48px;\r\n height: 32px;\r\n box-sizing: border-box;\r\n border-radius: 8px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n background-color: ${ruleException === 'rule' ? (isSelected ? colors.Blue300 : colors.White) : colors.White};\r\n border: 1px solid ${ruleException === 'rule' ? colors.Blue300 : colors.Grey200};\r\n color: ${ruleException === 'rule' ? (isSelected ? colors.White : colors.Blue300) : colors.Grey200};\r\n `,\r\n);\r\n\r\nconst ErrorMessage = styled.span`\r\n color: ${colors.Red};\r\n font-size: 0.75em;\r\n`;\r\n","import { ChangeEvent, useEffect, useMemo } from 'react';\r\n\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button, Input, Loader, RadioButton, Checkbox, Select,\r\n} from 'components';\r\nimport { getDayProgDesc } from 'helpers/scheduleData';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport {\r\n TrashIcon, CloseIcon, CheckboxIcon, EditIcon,\r\n} from 'icons';\r\nimport { apiCall } from 'providers';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\nimport { colors } from 'styles/colors';\r\nimport { t } from 'i18next';\r\n\r\nconst dutControlOperation = [\r\n { label: t('desabilitado'), value: '0_NO_CONTROL' },\r\n { label: t('modoEco'), value: '1_CONTROL' },\r\n { label: t('modoSobDemanda'), value: '2_SOB_DEMANDA' },\r\n { label: t('modoBackup'), value: '3_BACKUP' },\r\n { label: t('modoBloqueio'), value: '4_BLOCKED' },\r\n { label: t('modoBackupEco'), value: '5_BACKUP_CONTROL' },\r\n { label: t('modoEco2'), value: '6_BACKUP_CONTROL_V2' },\r\n { label: t('modoForcado'), value: '7_FORCED' },\r\n] as { label: string, value: '0_NO_CONTROL'|'1_CONTROL'|'2_SOB_DEMANDA'|'3_BACKUP'|'4_BLOCKED'|'5_BACKUP_CONTROL'|'6_BACKUP_CONTROL_V2'|'7_FORCED' }[];\r\n\r\nexport function SchedulesList(props: {\r\n devSched: FullProg_v4,\r\n wantDelException: ((date: string) => void)|null,\r\n wantSaveVent: ((ventInput: string) => void)|null,\r\n wantSaveCtrl: ((mode: '0_NO_CONTROL'|'1_CONTROL'|'2_SOB_DEMANDA'|'3_BACKUP'|'4_BLOCKED'|'5_BACKUP_CONTROL'|'6_BACKUP_CONTROL_V2'|'7_FORCED', setPoint: number, LTC: number, LTI: number) => void)|null,\r\n wantAddProg: (() => void)|null,\r\n wantEditDay: ((day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => void)|null,\r\n wantRemoveDay: ((day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => void)|null,\r\n isLoading: boolean,\r\n readOnly?: boolean,\r\n temprtControl?: boolean,\r\n}): JSX.Element {\r\n const {\r\n devSched, wantDelException, wantSaveVent, wantSaveCtrl, wantAddProg, wantEditDay, wantRemoveDay, isLoading,\r\n } = props;\r\n const weekDaysList = {\r\n mon: t('diaSeg'),\r\n tue: t('diaTer'),\r\n wed: t('diaQua'),\r\n thu: t('diaQui'),\r\n fri: t('diaSex'),\r\n sat: t('diaSab'),\r\n sun: t('diaDom'),\r\n };\r\n const [state, render, setState] = useStateVar(() => ({\r\n editingTemprtControl: false,\r\n editingVentilation: false,\r\n submittingVentilation: false,\r\n ventInput: '',\r\n dayProgs: [] as {\r\n day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun',\r\n dayName: string,\r\n text: string,\r\n isBlank: boolean,\r\n }[],\r\n excepts: [] as { dateYMD: string, date: string, text: string }[],\r\n dutControlOperation,\r\n CTRLOPER_item: dutControlOperation.find((x) => x.value === (devSched.temprtControl && devSched.temprtControl.mode)),\r\n TSETPOINT: ((devSched.temprtControl && devSched.temprtControl.temperature) != null) ? devSched.temprtControl!.temperature.toString() : '24',\r\n LTCRIT: ((devSched.temprtControl && devSched.temprtControl.LTC) != null) ? devSched.temprtControl!.LTC.toString() : '30',\r\n LTINF: ((devSched.temprtControl && devSched.temprtControl.LTI) != null) ? devSched.temprtControl!.LTI.toString() : '21',\r\n }));\r\n\r\n useEffect(() => {\r\n const ventilation = devSched.ventTime && (devSched.ventTime.end || devSched.ventTime.begin);\r\n state.ventInput = (ventilation ? String(ventilation) : '0');\r\n const daysList: (keyof typeof weekDaysList)[] = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];\r\n if (!devSched.week) devSched.week = {};\r\n state.dayProgs = daysList.map((day) => ({\r\n day,\r\n dayName: weekDaysList[day],\r\n text: getDayProgDesc((devSched.week && devSched.week[day]) || null),\r\n isBlank: !(devSched.week && devSched.week[day]),\r\n }));\r\n state.excepts = Object.entries(devSched.exceptions || {}).map(([day, prog]) => ({\r\n dateYMD: day,\r\n date: `${day.substr(8, 2)}/${day.substr(5, 2)}/${day.substr(0, 4)}`,\r\n text: getDayProgDesc(prog),\r\n }));\r\n render();\r\n }, [devSched]);\r\n\r\n async function saveVentilation() {\r\n if (!wantSaveVent) return;\r\n try {\r\n setState({ editingVentilation: true, submittingVentilation: true });\r\n await wantSaveVent(state.ventInput);\r\n toast.success(t('sucessoEnviar'));\r\n state.editingVentilation = false;\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n setState({ submittingVentilation: false });\r\n }\r\n\r\n function saveTemperatureControl() {\r\n if (!wantSaveCtrl) return;\r\n if (!state.CTRLOPER_item) return toast.error(t('erroNecessarioSelecionarModoControleTemperatura'));\r\n\r\n if (['1_CONTROL', '2_SOB_DEMANDA', '3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2'].includes(state.CTRLOPER_item.value)) {\r\n if (!state.TSETPOINT) return toast.error(t('erroNecessarioSetpointTemperatura'));\r\n }\r\n const setPoint = Number(state.TSETPOINT || '24');\r\n if (!Number.isFinite(setPoint)) return toast.error(t('erroSetpointTemperatura'));\r\n\r\n if (['3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2'].includes(state.CTRLOPER_item.value)) {\r\n if (!state.LTCRIT) return toast.error(t('erroNecessarioLimiarCriticoTemperatura'));\r\n }\r\n const LTC = Number(state.LTCRIT || '30');\r\n if (!Number.isFinite(LTC)) return toast.error(t('erroLimiarCriticoTemperatura'));\r\n\r\n if (['6_BACKUP_CONTROL_V2'].includes(state.CTRLOPER_item.value)) {\r\n if (!state.LTINF) return toast.error(t('erroNecessarioLimiarTemperaturaInferior'));\r\n }\r\n const LTI = Number(state.LTINF || '21');\r\n if (!Number.isFinite(LTC)) return toast.error(t('erroLimiarTemperaturaInferior'));\r\n\r\n wantSaveCtrl(state.CTRLOPER_item.value, setPoint, LTC, LTI);\r\n setState({ editingTemprtControl: false });\r\n }\r\n\r\n const Ventilacao = (\r\n
\r\n \r\n {t('ventilacao')}\r\n \r\n {\r\n (state.submittingVentilation)\r\n ? (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n : (state.editingVentilation)\r\n ? (\r\n
\r\n {t('habilitarTempoVentilacao')}\r\n       \r\n ) => setState({ ventInput: event.target.value })} />\r\n       \r\n \r\n \r\n \r\n       \r\n setState({ editingVentilation: false })}>\r\n \r\n \r\n
\r\n )\r\n : (\r\n
\r\n {(devSched.ventTime && (devSched.ventTime.begin || devSched.ventTime.end)) ? (\r\n <>\r\n \r\n {(devSched.ventTime.begin || devSched.ventTime.end)}\r\n {' '}\r\n {t('minutosAposHorarioPermitidoInicialEAntesHorarioPermitidoFinal')}\r\n \r\n \r\n ) : (\r\n {t('desabilitado')}\r\n )}\r\n {(!props.readOnly) && (\r\n
\r\n {(devSched.ventTime && (devSched.ventTime.begin || devSched.ventTime.end)) ? (\r\n { state.ventInput = '0'; saveVentilation(); }}>\r\n \r\n \r\n ) :
 
}\r\n { state.editingVentilation = true; render(); }}>\r\n \r\n \r\n
\r\n )}\r\n
\r\n )\r\n }\r\n
\r\n );\r\n\r\n const TemperatureControl = (\r\n
\r\n
\r\n {t('controleTemperatura')}\r\n
\r\n {(!state.editingTemprtControl) && (\r\n
\r\n {(devSched.temprtControl && devSched.temprtControl.mode) ? (\r\n {(dutControlOperation.find((x) => x.value === devSched.temprtControl!.mode) || { label: devSched.temprtControl!.mode }).label}\r\n ) : (\r\n {t('modoNaoConfigurado')}\r\n )}\r\n {(devSched.temprtControl && devSched.temprtControl.mode && ['1_CONTROL', '2_SOB_DEMANDA', '3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2'].includes(devSched.temprtControl.mode)) && (\r\n \r\n    \r\n {(devSched.temprtControl.temperature == null) ? '-' : devSched.temprtControl.temperature}\r\n °C\r\n \r\n )}\r\n {(devSched.temprtControl && devSched.temprtControl.mode && ['3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2'].includes(devSched.temprtControl.mode)) && (\r\n \r\n   /  \r\n {(devSched.temprtControl.LTC == null) ? '-' : devSched.temprtControl.LTC}\r\n °C\r\n \r\n )}\r\n {(devSched.temprtControl && devSched.temprtControl.mode && ['6_BACKUP_CONTROL_V2'].includes(devSched.temprtControl.mode)) && (\r\n \r\n   /  \r\n {(devSched.temprtControl.LTI == null) ? '-' : devSched.temprtControl.LTI}\r\n °C\r\n \r\n )}\r\n {(!props.readOnly) && (wantSaveCtrl) && (\r\n <>\r\n        \r\n setState({ editingTemprtControl: true })}>\r\n \r\n \r\n \r\n )}\r\n
\r\n )}\r\n {(state.editingTemprtControl) && (\r\n
\r\n setState({ CTRLOPER_item: item })}\r\n notNull\r\n />\r\n {(state.CTRLOPER_item && ['1_CONTROL', '2_SOB_DEMANDA', '3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2'].includes(state.CTRLOPER_item.value)) && (\r\n
\r\n setState({ TSETPOINT: e.target.value })}\r\n />\r\n
\r\n )}\r\n {(state.CTRLOPER_item && ['3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2'].includes(state.CTRLOPER_item.value)) && (\r\n
\r\n setState({ LTCRIT: e.target.value })}\r\n />\r\n
\r\n )}\r\n {(state.CTRLOPER_item && ['6_BACKUP_CONTROL_V2'].includes(state.CTRLOPER_item.value)) && (\r\n
\r\n setState({ LTINF: e.target.value })}\r\n />\r\n
\r\n )}\r\n       \r\n \r\n \r\n \r\n       \r\n setState({ editingTemprtControl: false })}>\r\n \r\n \r\n
\r\n )}\r\n
\r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n {(!isLoading) ? (\r\n <>\r\n \r\n \r\n
\r\n
\r\n {(!props.readOnly) && (\r\n \r\n )}\r\n  \r\n
\r\n \r\n \r\n \r\n \r\n 0) ? 1 / 2 : 1]} pr={[0, 0, 0, 0, 40]}>\r\n {t('funcionamento')}\r\n {state.dayProgs.map((item) => (\r\n \r\n {item.dayName}\r\n {item.text}\r\n
\r\n {(item.isBlank || props.readOnly)\r\n ?
 
\r\n : (\r\n <>\r\n { wantRemoveDay && wantRemoveDay(item.day); }}>\r\n \r\n \r\n { wantEditDay && wantEditDay(item.day); }}>\r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n ))}\r\n
\r\n {(state.excepts.length > 0) && (\r\n \r\n {t('excecoes')}\r\n {state.excepts.map((item) => (\r\n \r\n {item.date}\r\n {item.text}\r\n
\r\n {(!props.readOnly) && (\r\n wantDelException && wantDelException(item.dateYMD)}>\r\n \r\n \r\n )}\r\n
\r\n
\r\n ))}\r\n
\r\n )}\r\n
\r\n
\r\n {(props.temprtControl || devSched.temprtControl) && (\r\n \r\n {TemperatureControl}\r\n \r\n )}\r\n {false && (\r\n \r\n {Ventilacao}\r\n \r\n )}\r\n \r\n ) : (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport function SchedulesEdit(props: {\r\n devSched: FullProg_v4,\r\n selectedDay: null|('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n onConfirmProg: (days: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')[], prog: DayProg) => void,\r\n onConfirmExcept: (day: string, prog: DayProg) => void,\r\n onCancel: () => void,\r\n isSending: boolean,\r\n}) {\r\n const {\r\n devSched, selectedDay, onConfirmProg, onConfirmExcept, onCancel, isSending,\r\n } = props;\r\n const weekDaysList = {\r\n mon: t('diaSeg'),\r\n tue: t('diaTer'),\r\n wed: t('diaQua'),\r\n thu: t('diaQui'),\r\n fri: t('diaSex'),\r\n sat: t('diaSab'),\r\n sun: t('diaDom'),\r\n };\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n exception_date: '',\r\n ruleException: 'rule' as 'rule'|'exception',\r\n allowForbid: 'allow' as 'allow'|'forbid',\r\n weekDays: Object.entries(weekDaysList).map(([day, name]) => ({ name, day: day as keyof typeof weekDaysList, checked: false })),\r\n start_time: '',\r\n end_time: '',\r\n formErrors: {\r\n start_time: '',\r\n end_time: '',\r\n days: '',\r\n },\r\n };\r\n\r\n const editProg = selectedDay && devSched.week && devSched.week[selectedDay];\r\n if (editProg) {\r\n for (const item of state.weekDays) {\r\n item.checked = (item.day === selectedDay);\r\n }\r\n state.start_time = editProg.start || '';\r\n state.end_time = editProg.end || '';\r\n }\r\n\r\n return state;\r\n });\r\n\r\n function handleSelectDay(day: { checked?: boolean }) {\r\n day.checked = !day.checked;\r\n changeExceptionMode('rule');\r\n // render();\r\n }\r\n\r\n function changeExceptionMode(newMode: 'rule'|'exception') {\r\n if (newMode === 'rule') {\r\n state.ruleException = 'rule';\r\n state.exception_date = '';\r\n } else {\r\n state.ruleException = 'exception';\r\n for (const day of state.weekDays) {\r\n day.checked = false;\r\n }\r\n }\r\n state.formErrors.days = '';\r\n render();\r\n }\r\n\r\n function validateForm() {\r\n let start_index = null as null|number;\r\n if (!/^\\d\\d:\\d\\d$/.test(state.start_time)) {\r\n state.formErrors.start_time = t('erroTempoInicialObrigatorio');\r\n } else {\r\n const horas = Number(state.start_time.substr(0, 2));\r\n const minutos = Number(state.start_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n state.formErrors.start_time = t('erroValorInvalido');\r\n } else {\r\n state.formErrors.start_time = '';\r\n start_index = horas * 60 + minutos;\r\n }\r\n }\r\n if (!/^\\d\\d:\\d\\d$/.test(state.end_time)) {\r\n state.formErrors.end_time = t('erroTempoFinalObrigatorio');\r\n } else {\r\n const horas = Number(state.end_time.substr(0, 2));\r\n const minutos = Number(state.end_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n state.formErrors.end_time = t('erroValorInvalido');\r\n } else {\r\n const end_index = horas * 60 + minutos;\r\n if (start_index != null && !(end_index >= start_index)) {\r\n state.formErrors.end_time = t('erroValorInvalido');\r\n } else {\r\n state.formErrors.end_time = '';\r\n }\r\n }\r\n }\r\n if (state.ruleException === 'rule') {\r\n if (!state.weekDays.some((item) => item.checked)) {\r\n state.formErrors.days = t('erroNecessarioSelecionarMinimoUmDia');\r\n } else {\r\n state.formErrors.days = '';\r\n }\r\n } else if (state.ruleException === 'exception') {\r\n if (state.exception_date.length !== 10 || state.exception_date.includes('_')) {\r\n state.formErrors.days = t('erroDataExcecaoObrigatoria');\r\n } else {\r\n state.formErrors.days = '';\r\n }\r\n }\r\n render();\r\n return !(state.formErrors.start_time || state.formErrors.end_time || state.formErrors.days);\r\n }\r\n\r\n function handleSubmit() {\r\n if (!validateForm()) return;\r\n const prog = {\r\n permission: state.allowForbid,\r\n start: state.start_time,\r\n end: state.end_time,\r\n };\r\n if (state.ruleException === 'rule') {\r\n const days = state.weekDays.filter((item) => item.checked).map((item) => item.day);\r\n onConfirmProg(days, prog);\r\n } else if (state.ruleException === 'exception') {\r\n const { exception_date } = state;\r\n const day = `${exception_date.substr(6, 4)}-${exception_date.substr(3, 2)}-${exception_date.substr(0, 2)}`;\r\n onConfirmExcept(day, prog);\r\n }\r\n }\r\n\r\n return (\r\n \r\n
\r\n setState({ allowForbid: 'allow' })} />\r\n           \r\n setState({ allowForbid: 'forbid' })} />\r\n
\r\n
\r\n \r\n \r\n ) => { state.start_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n ) => { state.end_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n { state.start_time = '00:00'; state.end_time = '23:59'; render(); }}\r\n />\r\n \r\n \r\n {t('Dias')}\r\n \r\n \r\n {state.weekDays.map((item) => (\r\n { handleSelectDay(item); }}\r\n >\r\n {item.name}\r\n \r\n ))}\r\n \r\n {(!selectedDay) && (\r\n \r\n { changeExceptionMode('exception'); }} />\r\n  \r\n ) => { setState({ exception_date: e.target.value }); }}\r\n disabled={state.ruleException !== 'exception'}\r\n />\r\n \r\n )}\r\n \r\n {state.formErrors.days && {state.formErrors.days}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function SchedulesRemove(props: {\r\n selectedDay: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n onConfirm: (day: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')) => void,\r\n onCancel: () => void,\r\n isRemoving: boolean,\r\n}) {\r\n const {\r\n selectedDay, onConfirm, onCancel, isRemoving,\r\n } = props;\r\n return (\r\n <>\r\n \r\n \r\n {t('desejaExcluirEstaProgramacao')}\r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
onConfirm(selectedDay)}>\r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport function DutScheduleSummary(props: { dutId: string }) {\r\n const { dutId } = props;\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n devSched: { week: {}, exceptions: {} } as FullProg_v4,\r\n };\r\n return state;\r\n });\r\n\r\n async function getData() {\r\n try {\r\n setState({ isLoading: true });\r\n state.devSched = await apiCall('/dut/get-programming-v3', { dutId });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n useEffect(() => {\r\n getData();\r\n }, []);\r\n\r\n return (\r\n \r\n );\r\n}\r\n\r\nconst Text = styled.p<{ isBold?: boolean }>(\r\n ({ isBold }) => `\r\n margin-bottom: ${isBold ? 0 : '1em'};\r\n margin-top: ${isBold ? '1em' : 0};\r\n color: ${isBold ? colors.Grey300 : colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n `,\r\n);\r\n\r\nconst ProgTable = styled.div`\r\n display: grid;\r\n grid-template-columns: 43px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nconst ProgTableExc = styled.div`\r\n display: grid;\r\n grid-template-columns: 90px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nconst TextProgTabDay = styled.span`\r\n color: ${colors.Grey300};\r\n font-weight: bold;\r\n`;\r\n\r\nconst TextProgTabMode = styled.div`\r\n display: grid;\r\n grid-template-columns: auto auto;\r\n`;\r\n\r\nconst ItemTitle = styled.h3`\r\n margin-bottom: 0;\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Blue300};\r\n`;\r\n\r\nconst ItemWrapper = styled.div`\r\n width: 100%;\r\n border-top: 2px solid ${colors.Grey050};\r\n`;\r\n\r\nconst IconWrapper = styled.div`\r\n cursor: pointer;\r\n`;\r\n\r\nconst SelectDay = styled.div<{ isSelected: boolean, ruleException: 'rule'|'exception' }>(\r\n ({ isSelected, ruleException }) => `\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n cursor: pointer;\r\n width: 48px;\r\n height: 32px;\r\n box-sizing: border-box;\r\n border-radius: 8px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n background-color: ${ruleException === 'rule' ? (isSelected ? colors.Blue300 : colors.White) : colors.White};\r\n border: 1px solid ${ruleException === 'rule' ? colors.Blue300 : colors.Grey200};\r\n color: ${ruleException === 'rule' ? (isSelected ? colors.White : colors.Blue300) : colors.Grey200};\r\n `,\r\n);\r\n\r\nconst ErrorMessage = styled.span`\r\n color: ${colors.Red};\r\n font-size: 0.75em;\r\n`;\r\n","import { useMemo, useRef, useState } from 'react';\r\n\r\nimport { useRouteMatch, useHistory } from 'react-router-dom';\r\n\r\nimport { Breadcrumb2 } from '~/components';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nimport { Header } from '../Header';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\ntype Props = {\r\n devInfo?: null | { UNIT_NAME: string, GROUP_NAME: string, GROUP_ID: number, UNIT_ID: number, TIMEZONE_ID?: number, TIMEZONE_AREA?: string, TIMEZONE_OFFSET?: number};\r\n clientName?: string,\r\n screenInfo?: {\r\n assetRoleSelected?: number,\r\n groupSelected: boolean,\r\n hasNonDutDeviceInAssets: boolean,\r\n dutAutomationInfo: { placement?: string, dutId?: string },\r\n devAssociated?: string\r\n assetId?: string\r\n isDuoSelected: boolean,\r\n forceHideHealthTab?: boolean,\r\n }\r\n}\r\nexport const AssetLayout = ({\r\n devInfo, clientName, screenInfo,\r\n}: Props): JSX.Element => {\r\n const { t } = useTranslation();\r\n const match = useRouteMatch<{ devId, groupId }>();\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n const { devId } = match.params;\r\n const { groupId } = match.params;\r\n const linkBase = groupId ? `/analise/maquina/${groupId}/ativos` : match.url.split(`/${devId}`)[0];\r\n const isEdit = history.location.pathname.includes('/editarAtivo');\r\n\r\n function verifyDevIdStartsWith(devInit: string) {\r\n if (devId?.startsWith(devInit)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyShowDutDuoUsage() {\r\n if (screenInfo?.dutAutomationInfo?.placement === 'DUO' && ((screenInfo.groupSelected && !screenInfo.hasNonDutDeviceInAssets))) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyShowDutDuoHealth() {\r\n return isDutPage && screenInfo?.isDuoSelected && screenInfo?.assetRoleSelected !== undefined;\r\n }\r\n\r\n function verifyShowHealthTab() {\r\n return !screenInfo?.forceHideHealthTab\r\n && (isDacPage || verifyShowDutDuoHealth());\r\n }\r\n\r\n const isDacPage = verifyDevIdStartsWith('DAC');\r\n const isDamPage = verifyDevIdStartsWith('DAM');\r\n const isDutPage = verifyDevIdStartsWith('DUT');\r\n const isDriPage = verifyDevIdStartsWith('DRI');\r\n const isAssetPage = screenInfo?.devAssociated ? screenInfo?.devAssociated : verifyDevIdStartsWith('ASSET');\r\n\r\n const showDutDuoUsage = !isDacPage && verifyShowDutDuoUsage();\r\n const bcrumbs = useMemo(() => {\r\n const path = [] as { text: string, link: string|null }[];\r\n if (devInfo?.UNIT_NAME) {\r\n path.push({ text: t('unidade'), link: '/analise/unidades' });\r\n path.push({ text: devInfo.UNIT_NAME, link: `/analise/unidades/${devInfo.UNIT_ID}` });\r\n if (devInfo.GROUP_NAME) {\r\n path.push({ text: devInfo.GROUP_NAME, link: `/analise/maquina/${devInfo.GROUP_ID}/ativos` });\r\n }\r\n } else {\r\n path.push({ text: t('maquinas'), link: '/analise/maquinas' });\r\n }\r\n\r\n devId && path.push({ text: devId, link: null }); // match.url\r\n if (profile.manageAllClients && clientName !== undefined) {\r\n (!path.some((item) => item.text === clientName)) && path.unshift({ text: clientName, link: null });\r\n }\r\n return ();\r\n }, [devInfo, devId]);\r\n\r\n const links = [\r\n {\r\n title: t('perfil'),\r\n link: devId ? `${linkBase}/${devId}/informacoes` : linkBase,\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('tempoReal'),\r\n link: `${linkBase}/${devId}/tempo-real`,\r\n visible: isAssetPage || isDacPage || isDamPage || isDutPage || isDriPage,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('indiceUso'),\r\n link: `${linkBase}/${showDutDuoUsage ? screenInfo?.dutAutomationInfo.dutId : devId}/indice-de-uso`,\r\n visible: isAssetPage || isDacPage || showDutDuoUsage && !profile.permissions.isInstaller,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('saude'),\r\n link: `${linkBase}/${devId}/saude`,\r\n visible: verifyShowHealthTab() && !profile.permissions.isInstaller,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('historico'),\r\n link: `${linkBase}/${devId}/historico`,\r\n visible: isAssetPage || isDacPage || isDutPage || isDamPage || isDriPage,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('controleRemoto'),\r\n link: `${linkBase}/${devId}/controle-remoto`,\r\n visible: isDutPage && (\r\n profile.manageAllClients\r\n || profile.permissions.isUserManut\r\n || (profile.permissions.CLIENT_MANAGE.includes(104)) // alteração temporária\r\n ),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('editar'),\r\n link: match.url,\r\n visible: !!isEdit,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n {bcrumbs}\r\n
\r\n
x.visible)} match={history} />\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\nimport { Size } from './DRI_Shedule';\r\n\r\nexport const NotyNumStyle = styled.div`\r\n position: absolute;\r\n right: 10px;\r\n top: -10px;\r\n background-color: #363BC4;\r\n font-size: 11px;\r\n color: white;\r\n display: inline;\r\n padding: 2px 8px;\r\n border-radius: 25px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const NotyIconStyle = styled.div`\r\n width: 180px;\r\n position: relative;\r\n display: inline;\r\n`;\r\n\r\nexport const ControlButtonIcon = styled.img<{ isActive?: boolean, status?: string }>`\r\n width: 13%;\r\n ${({ isActive }) => (isActive ? 'filter: brightness(10)' : '')};\r\n ${({ status }) => (status === 'ONLINE' ? '' : 'filter: contrast(0)')};\r\n`;\r\n\r\nexport const ControlButton = styled.div<{ isActive?: boolean, noBorder?: boolean }>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 10px;\r\n width: 160px;\r\n height: 40px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 10px 12px;\r\n ${({ isActive }) => (isActive ? `background-color: ${colors.BlueSecondary};` : '')}\r\n`;\r\n\r\nexport const Data = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-bottom: 16px;\r\n`;\r\nexport const DataText = styled.span<{ fontWeight? }>(\r\n ({ color = colors.Grey400, fontWeight = 'normal' }) => `\r\n font-size: 12px;\r\n font-weight: ${fontWeight};\r\n color: ${color};\r\n`,\r\n);\r\nexport const Title = styled.h1`\r\n font-size: 1.25em;\r\n color: #363BC4;\r\n font-weight: bold;\r\n margin-bottom: 16px;\r\n`;\r\n\r\nexport const NotyNumStyleMini = styled.div`\r\n position: absolute;\r\n right: 0px;\r\n top: -10px;\r\n background-color: #363BC4;\r\n font-size: 11px;\r\n color: white;\r\n display: inline;\r\n padding: 4px 8px;\r\n border-radius: 20px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const NotyIconStyleMini = styled.div`\r\n position: relative;\r\n display: inline;\r\n`;\r\n\r\nexport const ControlButtonIconMini = styled.img<{ isActive?: boolean, status?: string }>`\r\n max-width: 100%;\r\n ${({ isActive }) => (isActive ? 'filter: brightness(10)' : '')};\r\n ${({ status }) => (status === 'ONLINE' ? '' : 'filter: contrast(0)')};\r\n`;\r\n\r\nexport const ControlButtonMini = styled.div<{ isActive?: boolean, noBorder?: boolean }>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 10px;\r\n width: 70px;\r\n height: 70px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n ${({ isActive }) => (isActive ? `background-color: ${colors.BlueSecondary};` : '')}\r\n`;\r\n\r\nexport const TextLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n color: #5d5d5d;\r\n`;\r\n\r\nexport const WeekDayButton = styled.div<{ checked: boolean, status?: string, size?: Size }>`\r\n padding: 8px 10px;\r\n border-radius: 5px;\r\n margin: 5px;\r\n background-color: ${({ checked, status }) => (checked ? (status === '0' ? '#B5B5B5' : colors.BlueSecondary) : 'lightgrey')};\r\n color: ${({ checked }) => (checked ? 'white' : 'black')};\r\n ${({ size }) => size === 'small' && (`\r\n width: 34px;\r\n height: 37px;\r\n padding: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n `\r\n )}\r\n`;\r\n\r\nexport const SelectContainer = styled.div`\r\n position: fixed;\r\n background: white;\r\n border: 1px solid #d3d3d3;\r\n border-radius: 10px;\r\n`;\r\n\r\nexport const SchedCardContainer = styled.div<{size?: Size}>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n border-radius: 10px;\r\n display: flex;\r\n flex-direction: row;\r\n margin-bottom: 10px;\r\n width: auto;\r\n min-width: 300px;\r\n width: ${({ size }) => (size === 'small' ? '346px' : '100%')};\r\n ${({ size }) => (size === 'small' || size === 'fixed') && (`\r\n height: 300px;\r\n `)}\r\n ${({ size }) => size === 'fixed' && (`\r\n width: 49%;\r\n min-width: 450px;\r\n `)}\r\n`;\r\n\r\nexport const Sidebar = styled.div<{active?: string}>`\r\n border-radius: 8px 0 0 8px;\r\n background-color: ${({ active }) => (active === '1' ? '#363BC4' : colors.Grey200)};\r\n width: 15px;\r\n`;\r\n\r\nexport const DefaultModeContainer = styled.div`\r\n border: 1px solid #818181;\r\n border-radius: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n width: 200px;\r\n height: 50px;\r\n margin: 20px;\r\n span{\r\n margin-left: 15px;\r\n }\r\n\r\n`;\r\n\r\nexport const LinkButton = styled.button`\r\n padding: 0;\r\n margin: 0;\r\n border: 0;\r\n cursor: pointer;\r\n text-decoration: underline;\r\n color: ${colors.BlueSecondary};\r\n background: white;\r\n`;\r\n\r\nexport const TabButton = styled.button`\r\n margin: 0;\r\n border: 0;\r\n border-right: '1px solid lightgrey';\r\n border-left: '1px solid lightgrey';\r\n text-align: 'center';\r\n font-size: '90%';\r\n padding: '4px 1px';\r\n`;\r\n","import styled from 'styled-components';\r\nimport { LineIcon, TimeIcon, CalendarIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const VarsCardTitle = styled.div`\r\n font-weight: bold;\r\n padding-bottom: 15px;\r\n`;\r\nexport const VarName = styled.div`\r\n font-weight: bold;\r\n color: #5b5b5b;\r\n`;\r\nexport const VarValue = styled.span<{relevance?: number | string }>`\r\n font-weight: bold;\r\n font-size: ${(props) => (props.relevance === 2 || props.relevance === '2' ? '100%' : '150%')};\r\n`;\r\nexport const VarUnit = styled.span<{relevance?: number | string }>`\r\n font-size: ${(props) => (props.relevance === 2 || props.relevance === '2' ? '85%' : '130%')};\r\n color: #8c8c8c;\r\n padding-left: 0.35em;\r\n`;\r\nexport const CardContainer = styled.div`\r\n margin: 15px;\r\n`;\r\nexport const VarContainer = styled.div`\r\n margin: 10px 0 10px 15px;\r\n min-width: 230px;\r\n`;\r\n\r\nexport const CardElev = styled.div`\r\n margin-top: 24px;\r\n border-radius: 8px;\r\n border: 1px solid ${colors.Grey100};\r\n`;\r\n\r\nexport const RealTimeBox = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n`;\r\n\r\nexport const Bluebar = styled.div`\r\n border-radius: 8px 8px 0 0;\r\n background-color: #363BC4;\r\n height: 20px;\r\n width: 100%;\r\n`;\r\n\r\nexport const Sidebar = styled.div<{active?: string}>`\r\n border-radius: 8px 0 0 8px;\r\n background-color: ${({ active }) => (active === '1' ? '#363BC4' : colors.Grey200)};\r\n width: 15px;\r\n`;\r\n\r\nexport const ConteinerTitle = styled.div`\r\n margin: 5px 0 10px 15px;\r\n min-width: 230px;\r\n\r\n h1 {\r\n color: black;\r\n font-weight: bold;\r\n font-size: 1.2rem;\r\n }\r\n`;\r\n\r\nexport const ContentRealTime = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const Content = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n padding: 1rem 4rem 2rem 10rem;\r\n width: 400px;\r\n\r\n h3 {\r\n color: #8c8c8c;\r\n font-weight: bold;\r\n }\r\n\r\n span {\r\n display: flex;\r\n flex-direction: row;\r\n color: black;\r\n font-size: 1.7rem;\r\n font-weight: bold;\r\n\r\n p {\r\n color: #8c8c8c;\r\n }\r\n }\r\n`;\r\n\r\nexport const WeekDayButton = styled.div<{ checked: boolean }>`\r\n padding: 8px 10px;\r\n border-radius: 5px;\r\n margin: 5px;\r\n background-color: ${({ checked }) => (checked ? colors.BlueSecondary : 'lightgrey')};\r\n color: ${({ checked }) => (checked ? 'white' : 'black')};\r\n`;\r\n\r\nexport const ControlButtonIcon = styled.img<{ isActive?: boolean, status?: string }>`\r\n max-width: 100%;\r\n ${({ isActive }) => (isActive ? 'filter: brightness(10)' : '')};\r\n ${({ status }) => (status === 'ONLINE' ? '' : 'filter: contrast(0)')};\r\n`;\r\n\r\nexport const ControlButtonIconFancoil = styled.img<{ isActive?: boolean, status?: string }>`\r\n width: 20%;\r\n ${({ isActive }) => (isActive ? 'filter: brightness(10)' : '')};\r\n`;\r\n\r\nexport const ControlButton = styled.div<{ isActive?: boolean, noBorder?: boolean, larger?: boolean, disabled?: boolean }>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 10px;\r\n width: ${({ larger }) => (larger ? '120px' : '70px')};\r\n height: ${({ larger }) => (larger ? '45px' : '70px')};\r\n cursor: pointer;\r\n display: flex;\r\n ${({ larger }) => (larger ? 'padding: 0 11px;' : '')}\r\n align-items: center;\r\n justify-content: ${({ larger }) => (larger ? 'space-between' : 'center')};;\r\n ${({ isActive }) => (isActive ? `background-color: ${colors.BlueSecondary};` : '')}\r\n ${({ disabled }) => (disabled ? `background-color: ${colors.LightGrey_v3};` : '')}\r\n ${({ disabled }) => (disabled ? 'opacity: 0.14;' : '')}\r\n`;\r\n\r\nexport const SelectContainer = styled.div`\r\n position: fixed;\r\n background: white;\r\n border: 1px solid #d3d3d3;\r\n border-radius: 10px;\r\n`;\r\n\r\nexport const SchedCardContainer = styled.div`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n border-radius: 10px;\r\n display: flex;\r\n flex-direction: row;\r\n margin-bottom: 10px;\r\n width: auto;\r\n min-width: 450px;\r\n`;\r\n\r\nexport const NotyNumStyle = styled.div`\r\n position: absolute;\r\n right: 0;\r\n background-color: #363BC4;\r\n font-size: 11px;\r\n color: white;\r\n display: inline;\r\n padding: 4px 8px;\r\n border-radius: 20px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const NotyNumCornerStyle = styled.div`\r\n position: absolute;\r\n right: -10px;\r\n top: -10px;\r\n background-color: #363BC4;\r\n width: 22px;\r\n height: 22px;\r\n line-height: 22px;\r\n font-size: 12px;\r\n color: white;\r\n display: inline;\r\n border-radius: 10px;\r\n font-weight: bold;\r\n text-align: center;\r\n vertical-align: middle;\r\n`;\r\n\r\nexport const NotyIconStyle = styled.div`\r\n position: relative;\r\n display: inline;\r\n`;\r\n\r\nexport const Container = styled.div`\r\n display: inline-block;\r\n color: ${colors.DarkGrey};\r\n cursor: pointer;\r\n`;\r\n\r\nexport const Slider = styled.div<{ checked }>`\r\n line-height: 0;\r\n display: inline-block;\r\n width: 45px;\r\n height: 25px;\r\n border-radius: 13px;\r\n padding-top: 2px;\r\n position: relative;\r\n -webkit-transition: .4s;\r\n transition: .4s;\r\n background-color: #ccc;\r\n ${({ checked }) => (checked ? 'padding-left: 21px;' : 'padding-left: 3px;')}\r\n`;\r\n\r\nexport const Cursor = styled.div<{ onOff, checked }>`\r\n line-height: 0;\r\n display: inline-block;\r\n width: 21px;\r\n height: 21px;\r\n border: 0;\r\n border-radius: 50%;\r\n ${({ onOff, checked }) => {\r\n if (onOff) {\r\n return checked ? 'background-color: black;' : `background-color: ${colors.BlueSecondary};`;\r\n }\r\n return `background-color: ${colors.BlueSecondary};`;\r\n }}\r\n`;\r\n\r\nexport const Line = styled.div`\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n`;\r\n\r\nexport const Text = styled.span`\r\nfont-weight: normal;\r\nfont-size: 1em;\r\nline-height: 26px;\r\ncolor: ${colors.Grey400};\r\n`;\r\n\r\nexport const ColoredLine = styled(LineIcon)(\r\n ({ color }) => `\r\n margin-left: 10px;\r\n color: ${color}\r\n`,\r\n);\r\n\r\nexport const WaterTooltip = styled.div`\r\n min-width: 230px;\r\n min-height: 100px;\r\n background: #FFFFFFF7;\r\n border: 1px solid #8c8c8c;\r\n border-radius: 4px;\r\n padding: 15px;\r\n\r\n > span {\r\n font-weight: bold;\r\n color: #000000;\r\n }\r\n\r\n > p {\r\n > strong {\r\n font-size: 150%;\r\n }\r\n margin-bottom: 0;\r\n > span {\r\n font-size: 130%;\r\n color: #8c8c8c;\r\n padding-left: 0.30em;\r\n }\r\n }\r\n`;\r\n\r\nexport const Calendar = styled(CalendarIcon)`\r\n width: 1rem;\r\n height: 1rem;\r\n margin-right: 2px;\r\n`;\r\n\r\nexport const Timer = styled(TimeIcon)`\r\n width: 1rem;\r\n height: 1rem;\r\n margin-right: 2px;\r\n`;\r\n\r\nexport const ParamName = styled.div`\r\n font-weight: 700;\r\n font-size: 14px;\r\n color: #5B5B5B;\r\n`;\r\n\r\nexport const ParamTitle = styled.h3`\r\nfont-weight: 700;\r\nfont-size: 16px;\r\n`;\r\n\r\nexport const ParamValue = styled.div<{ isOk: boolean }>`\r\n font-weight: 700;\r\n font-size: 14px;\r\n padding-bottom: 10px;\r\n ${({ isOk }) => (isOk ? 'color: #5B5B5B' : 'color : #5B5B5B')};\r\n`;\r\n\r\nexport const TextLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n color: #5d5d5d;\r\n`;\r\n\r\nexport const SetpointButton = styled.div<{ up?: boolean, down?: boolean }>`\r\n flex-basis: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-right: 1px solid #D7D7D7;\r\n user-select: none;\r\n ${({ up }) => (up ? 'border-bottom: 1px solid #D7D7D7' : '')}\r\n ${({ down }) => (down ? 'border-top: 1px solid #D7D7D7' : '')}\r\n`;\r\n\r\nexport const ModalContainerLoading = styled.div<{display?: boolean }>`\r\n ${({ display }) => (display ? 'display: block' : 'display: none')}\r\n padding-top: 20%;\r\n align-items: center;\r\n justify-content: center;\r\n flex-direction: column;\r\n width: 100%;\r\n height: 100%;\r\n background-color: #fcfdfcd9;\r\n z-index: 1;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n color: #5B5B5B;\r\n font-size: 14px;\r\n text-align: center;\r\n gap: 8px;\r\n cursor: wait;\r\n pointer-events: none;\r\n h4 {\r\n margin: 0px;\r\n }\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 21px;\r\n height: 27px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 21px;\r\n height: 27px;\r\n }\r\n`;\r\n","export default __webpack_public_path__ + \"static/media/schedule.14baa6e2.svg\";","export default __webpack_public_path__ + \"static/media/mode_cool.b05cd6b8.svg\";","export default __webpack_public_path__ + \"static/media/mode_fan.2f7bbd9c.svg\";","import { CSSProperties, ReactElement } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Flex } from 'reflexbox';\r\nimport { Size } from '../DRI_Shedule';\r\n\r\ninterface ExceptionsHeaderProps {\r\n size?: Size;\r\n style?: CSSProperties;\r\n}\r\n\r\nexport function ExceptionsHeader({ size, style }: Readonly): ReactElement {\r\n const { t } = useTranslation();\r\n return (\r\n \r\n \r\n {t('titulo')}\r\n
\r\n \r\n {t('Data')}\r\n
\r\n \r\n {t('repetirTodoAno')}\r\n
\r\n \r\n {t('inicio')}\r\n
\r\n \r\n {t('fim')}\r\n
\r\n {size === 'fixed' &&
}\r\n \r\n );\r\n}\r\n","import { t } from 'i18next';\r\nimport { DriException, DriSchedule } from 'pages/Analysis/SchedulesModals/DRI_ScheduleModal';\r\nimport { apiCall, ApiParams } from 'providers';\r\nimport { toast } from 'react-toastify';\r\nimport { ScheduleInfo } from '~/pages/Analysis/SchedulesModals/DRI_Shedule';\r\n\r\nexport type SelectedDays = {\r\n mon?: boolean;\r\n tue?: boolean;\r\n wed?: boolean;\r\n thu?: boolean;\r\n fri?: boolean;\r\n sat?: boolean;\r\n sun?: boolean;\r\n}\r\n\r\ntype Interval = {\r\n startTime: string;\r\n endTime: string\r\n}\r\n\r\nexport function checkExceptionDate(\r\n exceptionToCompare: DriException,\r\n exception: Pick,\r\n): boolean {\r\n if (exceptionToCompare.EXCEPTION_REPEAT_YEARLY === '1' || exception.EXCEPTION_REPEAT_YEARLY === '1') {\r\n return exceptionToCompare.EXCEPTION_DATE.slice(0, 5) === exception.EXCEPTION_DATE.slice(0, 5);\r\n }\r\n return exceptionToCompare.EXCEPTION_DATE === exception.EXCEPTION_DATE;\r\n}\r\n\r\nexport function checkWeekDayCommon(days1: SelectedDays, days2: SelectedDays): boolean {\r\n let result = days1.mon && days2.mon;\r\n result = result || (days1.tue && days2.tue);\r\n result = result || (days1.wed && days2.wed);\r\n result = result || (days1.thu && days2.thu);\r\n result = result || (days1.fri && days2.fri);\r\n result = result || (days1.sat && days2.sat);\r\n result = result || (days1.sun && days2.sun);\r\n\r\n return !!result;\r\n}\r\n\r\nexport function checkTimeConflict(intervalToCompare: Interval, interval: Interval): boolean {\r\n return (intervalToCompare.startTime <= interval.startTime && interval.startTime <= intervalToCompare.endTime)\r\n || (interval.startTime <= intervalToCompare.startTime && intervalToCompare.startTime <= interval.endTime)\r\n || (intervalToCompare.startTime <= interval.startTime && interval.endTime <= intervalToCompare.endTime)\r\n || (interval.startTime <= intervalToCompare.startTime && intervalToCompare.endTime <= interval.endTime);\r\n}\r\n\r\nexport async function callDriSchedules(devId: string): Promise<{\r\n schedules: DriSchedule[],\r\n exceptions: DriException[],\r\n}> {\r\n try {\r\n const { list: schedulesList } = await apiCall('/dri/get-dri-scheds', { DRI_ID: devId });\r\n const schedules: DriSchedule[] = [];\r\n const exceptions: DriException[] = [];\r\n\r\n for (const schedule of schedulesList) {\r\n if (schedule.EXCEPTION_DATE) {\r\n exceptions.push(schedule);\r\n } else {\r\n schedules.push(schedule);\r\n }\r\n }\r\n\r\n return {\r\n schedules,\r\n exceptions,\r\n };\r\n } catch (error) {\r\n console.error(error);\r\n toast.error(t('naoFoiPossivelBuscarProgramacoesExcecoesDRI'));\r\n\r\n return {\r\n exceptions: [],\r\n schedules: [],\r\n };\r\n }\r\n}\r\n\r\nexport async function deleteProgramming(refetch: () => void, sched?: ApiParams['/dri/delete-dri-sched']): Promise {\r\n if (!sched) { return; }\r\n try {\r\n const { SCHED_ID, DRI_ID } = sched;\r\n await apiCall('/dri/delete-dri-sched', { SCHED_ID, DRI_ID });\r\n refetch();\r\n toast.success(t('sucessoRemoverProgramacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n}\r\n\r\nexport async function insertProgramming(refetch: () => void, sched?: ApiParams['/dri/add-dri-sched']): Promise {\r\n if (!sched) { return; }\r\n\r\n try {\r\n await apiCall('/dri/add-dri-sched', sched);\r\n refetch();\r\n\r\n toast.success(t('sucessoAdicionarProgramacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n}\r\n\r\nexport async function updateProgramming(refetch: () => void, sched?: ApiParams['/dri/update-dri-sched']): Promise {\r\n if (!sched) { return; }\r\n\r\n try {\r\n await apiCall('/dri/update-dri-sched', sched);\r\n refetch();\r\n\r\n toast.success(t('sucessoAdicionarProgramacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n}\r\n\r\nexport function generateDaysObject(days?: Record): SelectedDays {\r\n return {\r\n mon: days ? days.mon : false,\r\n tue: days ? days.tue : false,\r\n wed: days ? days.wed : false,\r\n thu: days ? days.thu : false,\r\n fri: days ? days.fri : false,\r\n sat: days ? days.sat : false,\r\n sun: days ? days.sun : false,\r\n };\r\n}\r\n\r\nexport function getSchedTimesValues(item?: ScheduleInfo): {\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n} {\r\n return {\r\n start_time: item ? item.BEGIN_TIME : '',\r\n start_time_error: '',\r\n end_time: item ? item.END_TIME : '',\r\n end_time_error: '',\r\n };\r\n}\r\n","import {\r\n apiCall, ApiResps,\r\n} from '~/providers';\r\nimport {\r\n NotyIconStyle, NotyNumStyle, ControlButton, ControlButtonIcon, Title, Data, DataText, NotyIconStyleMini, NotyNumStyleMini, ControlButtonIconMini, ControlButtonMini, TextLine, WeekDayButton, SelectContainer, Sidebar, SchedCardContainer,\r\n LinkButton,\r\n} from './styles';\r\nimport {\r\n Bluebar,\r\n} from '../Integrations/IntegrRealTime/styles';\r\nimport {\r\n ModalWindow,\r\n Button,\r\n Loader,\r\n Input,\r\n Checkbox,\r\n} from '~/components';\r\nimport {\r\n driApplicationOpts,\r\n driFancoilsApplications,\r\n driMeterApplications,\r\n driProtocolsOpts,\r\n driVAVsApplications,\r\n} from '~/helpers/driConfigOptions';\r\nimport { Flex } from 'reflexbox';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport {\r\n getCachedDevInfo, getCachedDevInfoSync,\r\n} from '~/helpers/cachedStorage';\r\n\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n ChangeEvent, ReactElement, useEffect, useState,\r\n} from 'react';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport { ToggleSwitchMini } from 'components/ToggleSwitch';\r\nimport {\r\n EditIcon,\r\n CheckboxIcon,\r\n VAVOpenedIcon,\r\n VAVClosedIcon,\r\n} from '~/icons';\r\nimport { SmallTrashIcon } from '~/icons/Trash';\r\nimport img_schedule from '~/assets/img/cool_ico/schedule.svg';\r\nimport img_mode_cool from '~/assets/img/cool_ico/mode_cool.svg';\r\nimport img_mode_fan from '~/assets/img/cool_ico/mode_fan.svg';\r\n\r\nimport { t } from 'i18next';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { checkProtocolValue } from '~/helpers/driConfig';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { ExceptionsHeader } from './components/ExceptionsHeader';\r\nimport { generateDaysObject, getSchedTimesValues } from '~/helpers/driSchedule';\r\n\r\nexport type Size = 'small' | 'fixed' | undefined;\r\n\r\nexport interface ScheduleInfo {\r\n SCHED_ID: number;\r\n DRI_ID: string;\r\n NAME: string;\r\n ACTIVE: string;\r\n OPERATION: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n MODE: string;\r\n DAYS: string;\r\n SETPOINT: number;\r\n EXCEPTION_DATE: string;\r\n EXCEPTION_REPEAT_YEARLY: string;\r\n}\r\n\r\ninterface ButtonShowScheduleProps {\r\n onClick: () => void;\r\n loading: boolean;\r\n status?: string;\r\n}\r\n\r\nexport const DriSchedModeOpts = {\r\n 0: 'COOL',\r\n 1: 'FAN',\r\n};\r\n\r\nexport const MIN_SETPOINT = 15;\r\nexport const MAX_SETPOINT = 30;\r\n\r\nfunction getKeyByValue(object, value) {\r\n return Object.keys(object).find((key) => object[key] === value);\r\n}\r\n\r\nconst ButtonShowSchedule = ({\r\n loading,\r\n onClick,\r\n status,\r\n}: ButtonShowScheduleProps): ReactElement => (\r\n \r\n {loading\r\n ? \r\n : (\r\n \r\n )}\r\n \r\n Ver Programações\r\n \r\n \r\n);\r\n\r\nexport const DRIScheduleSummary = (props: { driId: string, layout: 'asset' | 'small-btn' | 'large-btn', devInfo: ApiResps['/get-integration-info']['info'], varsCfg?: { application: string, protocol: string, worksheetName: string }|null|undefined}): JSX.Element => {\r\n const {\r\n driId, varsCfg, layout,\r\n } = props;\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n\r\n const [state, render, setState] = useStateVar({\r\n driScheds: null as null | {\r\n SCHED_ID: number;\r\n DRI_ID: string;\r\n NAME: string;\r\n ACTIVE: string;\r\n OPERATION: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n MODE: string;\r\n DAYS: string;\r\n SETPOINT: number;\r\n EXCEPTION_DATE: string;\r\n EXCEPTION_REPEAT_YEARLY: string;\r\n }[],\r\n driExceptionScheds: null as null | {\r\n SCHED_ID: number;\r\n DRI_ID: string;\r\n NAME: string;\r\n ACTIVE: string;\r\n OPERATION: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n MODE: string;\r\n DAYS: string;\r\n SETPOINT: number;\r\n EXCEPTION_DATE: string;\r\n EXCEPTION_REPEAT_YEARLY: string;\r\n }[],\r\n modalEditSchedule: null as null | {\r\n schedId: number | undefined\r\n addEdit: 'Add' | 'Edit'\r\n name: string\r\n active: boolean\r\n operation: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n selectedDays: {\r\n mon?: boolean\r\n tue?: boolean\r\n wed?: boolean\r\n thu?: boolean\r\n fri?: boolean\r\n sat?: boolean\r\n sun?: boolean\r\n }\r\n isException: boolean\r\n exceptionDate: string\r\n repeatYearly: boolean\r\n useSetpoint: boolean\r\n setpointValue: string\r\n mode: number | undefined\r\n },\r\n showScheds: false,\r\n showExceptions: false,\r\n shouldRender: true,\r\n devInfo: getCachedDevInfoSync(driId),\r\n loadingSchedule: false,\r\n loading: false,\r\n driInterval: null as null | number,\r\n totalScheds: 0,\r\n });\r\n useEffect(() => {\r\n if (state.shouldRender) {\r\n Promise.resolve().then(async () => {\r\n try {\r\n const [\r\n devInfo,\r\n { list: driScheds },\r\n ] = await Promise.all([\r\n getCachedDevInfo(driId, {}),\r\n apiCall('/dri/get-dri-scheds', { DRI_ID: driId }),\r\n ]);\r\n state.devInfo = devInfo;\r\n state.driInterval = devInfo.dri.varsCfg.driConfigs.find((cfg) => checkProtocolValue(cfg, 'interval'))?.value;\r\n state.driScheds = [];\r\n state.driExceptionScheds = [];\r\n state.totalScheds = driScheds.length;\r\n driScheds.forEach((sched) => {\r\n if (sched.EXCEPTION_DATE) {\r\n state.driExceptionScheds && state.driExceptionScheds.push(sched);\r\n } else {\r\n state.driScheds && state.driScheds.push(sched);\r\n }\r\n });\r\n render();\r\n } catch (err) {\r\n toast.error(t('erro'));\r\n console.error(err);\r\n }\r\n });\r\n }\r\n setState({ shouldRender: false });\r\n }, [state.shouldRender]);\r\n\r\n function getSchedExceptionValues(item?: ScheduleInfo) {\r\n return {\r\n isException: state.showExceptions,\r\n exceptionDate: (item && item.EXCEPTION_DATE) || '',\r\n repeatYearly: !!(item && item.EXCEPTION_REPEAT_YEARLY === '1'),\r\n };\r\n }\r\n\r\n function getSchedSetpointValues(item?: ScheduleInfo) {\r\n return {\r\n useSetpoint: item ? (item.SETPOINT != null && Number(getKeyByValue(DriSchedModeOpts, item.MODE)) !== 1) : false,\r\n setpointValue: item ? (item.SETPOINT != null) ? String(item.SETPOINT) : '24' : '24',\r\n };\r\n }\r\n\r\n function getSchedModeValues(item?: ScheduleInfo) {\r\n return {\r\n mode: item ? Number(getKeyByValue(DriSchedModeOpts, item.MODE)) : undefined,\r\n };\r\n }\r\n\r\n function editAddProgramming(item?: ScheduleInfo) {\r\n try {\r\n const days = item && JSON.parse(item.DAYS);\r\n state.modalEditSchedule = {\r\n schedId: item && item.SCHED_ID,\r\n addEdit: item ? 'Edit' : 'Add',\r\n name: (item && item.NAME) || '',\r\n active: item ? item.ACTIVE === '1' : true,\r\n operation: !!(item && item.OPERATION === '1'),\r\n ...getSchedTimesValues(item),\r\n selectedDays: !state.showExceptions ? generateDaysObject(days) : {},\r\n ...getSchedExceptionValues(item),\r\n ...getSchedSetpointValues(item),\r\n ...getSchedModeValues(item),\r\n };\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n function formatStringToDate(str?: string) {\r\n return str && `${str.substring(6, 10)}-${str.substring(3, 5)}-${str.substring(0, 2)}` || undefined;\r\n }\r\n\r\n async function saveNewProgramming() {\r\n try {\r\n if (!state.modalEditSchedule) return;\r\n if (!state.devInfo.GROUP_ID) {\r\n toast.warn(t('necessarioMaquinaAutomatizada'));\r\n return;\r\n }\r\n\r\n if (state.modalEditSchedule.name === '') return toast.error(t('erroDigiteNomeProgramacao'));\r\n if (!state.showExceptions && state.modalEditSchedule.selectedDays && Object.values(state.modalEditSchedule.selectedDays).every((item) => item === false)) {\r\n return toast.error(t('erroSelecionePeloMenosUmDia'));\r\n }\r\n if (state.showExceptions && (state.modalEditSchedule.exceptionDate.length !== 10 || state.modalEditSchedule.exceptionDate.includes('_'))) {\r\n return toast.error(t('erroDataExcecaoObrigatoria'));\r\n }\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.start_time)) return toast.error(t('erroHorarioInvalido'));\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.end_time)) return toast.error(t('erroHorarioInvalido'));\r\n\r\n setState({ loading: true });\r\n\r\n if (state.modalEditSchedule.addEdit === 'Add') {\r\n await apiCall('/dri/add-dri-sched', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n NAME: state.modalEditSchedule.name,\r\n ACTIVE: state.modalEditSchedule.active ? '1' : '0',\r\n OPERATION: state.modalEditSchedule.operation ? '1' : '0',\r\n BEGIN_TIME: state.modalEditSchedule.start_time,\r\n END_TIME: state.modalEditSchedule.end_time,\r\n MODE: (state.modalEditSchedule.mode !== undefined) && DriSchedModeOpts[state.modalEditSchedule.mode] || undefined,\r\n DAYS: JSON.stringify(state.modalEditSchedule.selectedDays),\r\n SETPOINT: (state.modalEditSchedule.useSetpoint && Number(state.modalEditSchedule.setpointValue)) || undefined,\r\n EXCEPTION_DATE: (state.modalEditSchedule.isException && formatStringToDate(state.modalEditSchedule.exceptionDate)) || undefined,\r\n EXCEPTION_REPEAT_YEARLY: (state.modalEditSchedule.isException && (state.modalEditSchedule.repeatYearly ? '1' : '0')) || undefined,\r\n });\r\n } else if (state.modalEditSchedule.addEdit === 'Edit' && state.modalEditSchedule.schedId) {\r\n await apiCall('/dri/update-dri-sched', {\r\n SCHED_ID: state.modalEditSchedule.schedId,\r\n DRI_ID: state.devInfo.DEV_ID,\r\n NAME: state.modalEditSchedule.name,\r\n ACTIVE: state.modalEditSchedule.active ? '1' : '0',\r\n OPERATION: state.modalEditSchedule.operation ? '1' : '0',\r\n BEGIN_TIME: (state.modalEditSchedule && state.modalEditSchedule.start_time) || undefined,\r\n END_TIME: (state.modalEditSchedule && state.modalEditSchedule.end_time) || undefined,\r\n MODE: (state.modalEditSchedule.mode !== undefined && DriSchedModeOpts[state.modalEditSchedule.mode]) || undefined,\r\n DAYS: JSON.stringify(state.modalEditSchedule.selectedDays) || undefined,\r\n SETPOINT: state.modalEditSchedule.useSetpoint ? Number(state.modalEditSchedule.setpointValue) : undefined,\r\n EXCEPTION_DATE: (state.modalEditSchedule.isException && formatStringToDate(state.modalEditSchedule.exceptionDate)) || undefined,\r\n EXCEPTION_REPEAT_YEARLY: (state.modalEditSchedule.isException && (state.modalEditSchedule.repeatYearly ? '1' : '0')) || undefined,\r\n });\r\n }\r\n state.modalEditSchedule = null;\r\n setState({ shouldRender: true });\r\n render();\r\n toast.success(t('sucessoAdicionarProgramacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n } finally {\r\n setState({ loading: false });\r\n }\r\n }\r\n\r\n async function deleteProgramming(sched) {\r\n try {\r\n setState({ loading: true });\r\n const { SCHED_ID, DRI_ID } = sched;\r\n await apiCall('/dri/delete-dri-sched', { SCHED_ID, DRI_ID });\r\n setState({ shouldRender: true });\r\n render();\r\n toast.success(t('sucessoRemoverProgramacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n } finally {\r\n setState({ loading: false });\r\n }\r\n }\r\n function showScheds() {\r\n try {\r\n state.showScheds = true;\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n function verifyProfileCanManageProgramming() {\r\n return !!(profile.manageAllClients || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === state.devInfo?.CLIENT_ID));\r\n }\r\n\r\n return (\r\n \r\n {layout === 'asset' && (\r\n <>\r\n \r\n Informações\r\n \r\n \r\n {t('fonteDados')}\r\n \r\n {driId || '-'}\r\n \r\n \r\n \r\n {t('aplicacao')}\r\n \r\n \r\n {varsCfg && (\r\n getKeyByValue(driApplicationOpts, varsCfg.application)\r\n || (getKeyByValue(driMeterApplications, varsCfg.application) && t('medidorEnergia'))\r\n || (getKeyByValue(driVAVsApplications, varsCfg.application) && 'VAV') || (getKeyByValue(driFancoilsApplications, varsCfg.application) && 'Fancoil')\r\n ) || '-'}\r\n\r\n \r\n \r\n {varsCfg && (\r\n getKeyByValue(driMeterApplications, varsCfg.application)\r\n || getKeyByValue(driVAVsApplications, varsCfg.application) || getKeyByValue(driFancoilsApplications, varsCfg.application)\r\n ) && (\r\n \r\n \r\n {t('modelo')}\r\n \r\n \r\n {' '}\r\n {getKeyByValue(driMeterApplications, varsCfg.application) || getKeyByValue(driVAVsApplications, varsCfg.application) || getKeyByValue(driFancoilsApplications, varsCfg.application) || '-'}\r\n \r\n \r\n )}\r\n \r\n \r\n {t('protocoloComunicacao')}\r\n \r\n \r\n {' '}\r\n {varsCfg && getKeyByValue(driProtocolsOpts, varsCfg.protocol) || '-'}\r\n \r\n \r\n \r\n \r\n {t('planilha')}\r\n \r\n {varsCfg && varsCfg.worksheetName || '-'}\r\n \r\n\r\n \r\n {varsCfg?.application?.startsWith('fancoil') && (\r\n \r\n Funcionamento\r\n \r\n {state.driScheds && state.driScheds?.length > 0 ? {state.driScheds?.length} : null}\r\n showScheds()}\r\n status={state.devInfo?.status}\r\n />\r\n \r\n \r\n )}\r\n \r\n )}\r\n\r\n {layout === 'small-btn' && (\r\n \r\n {state.driScheds && state.driScheds?.length > 0 ? {state.driScheds?.length} : null}\r\n { showScheds(); }}\r\n style={{ margin: '0 10px' }}\r\n >\r\n {state.loadingSchedule\r\n ? \r\n : }\r\n \r\n \r\n )}\r\n\r\n {layout === 'large-btn' && (\r\n \r\n {state.driScheds && state.driScheds?.length > 0 ? {state.driScheds?.length} : null}\r\n showScheds()}\r\n status={state.devInfo?.status}\r\n />\r\n \r\n )}\r\n\r\n {(state.showScheds) && (\r\n
\r\n {\r\n if (!state.modalEditSchedule && !state.loading) {\r\n setState({ showScheds: false });\r\n }\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n { state.showExceptions && setState({ showExceptions: !state.showExceptions }); }}\r\n type=\"button\"\r\n >\r\n {t('programacoes')}\r\n \r\n \r\n { (!state.showExceptions) && setState({ showExceptions: !state.showExceptions }); }}\r\n >\r\n {t('excecoes')}\r\n \r\n \r\n
\r\n
\r\n
\r\n {`Total: ${(!state.showExceptions ? state.driScheds?.length : state.driExceptionScheds?.length) || 0}`}\r\n { verifyProfileCanManageProgramming() && (\r\n editAddProgramming()}\r\n disabled={state.loading || state.loadingSchedule}\r\n >\r\n {t('botaoAdicionarProgramacaoExcecao', { value: !state.showExceptions ? t('Programação') : t('excecao') })}\r\n \r\n )}\r\n
\r\n
\r\n {!state.showExceptions && state.driScheds?.map((sched) => (\r\n editAddProgramming(sched)}\r\n onDelete={() => deleteProgramming(sched)}\r\n loading={state.loading}\r\n />\r\n ))}\r\n {state.showExceptions && state.driExceptionScheds && (\r\n <>\r\n \r\n {state.driExceptionScheds?.map((exception) => (\r\n \r\n editAddProgramming(exception)}\r\n onDelete={() => deleteProgramming(exception)}\r\n loading={state.loading}\r\n />\r\n \r\n ))}\r\n \r\n )}\r\n
\r\n \r\n
\r\n )}\r\n {(state.modalEditSchedule) && (\r\n
\r\n { !state.loading && setState({ modalEditSchedule: null }); }}\r\n >\r\n \r\n { setState({ modalEditSchedule: null }); }}\r\n loading={state.loading}\r\n />\r\n \r\n
\r\n )}\r\n \r\n\r\n );\r\n};\r\n\r\nexport function DRISchedForm(props: Readonly<{\r\n driCfg: { application: string, protocol: string },\r\n modalEditSchedule: {\r\n addEdit: 'Add' | 'Edit'\r\n name: string\r\n active: boolean\r\n operation: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n selectedDays: {\r\n mon?: boolean\r\n tue?: boolean\r\n wed?: boolean\r\n thu?: boolean\r\n fri?: boolean\r\n sat?: boolean\r\n sun?: boolean\r\n }\r\n isException: boolean\r\n exceptionDate: string\r\n repeatYearly: boolean\r\n useSetpoint: boolean\r\n setpointValue: string\r\n mode: number | undefined\r\n },\r\n onConfirm: () => void\r\n onCancel: () => void\r\n loading?: boolean\r\n hideRepeatYearly?: boolean\r\n}>): JSX.Element {\r\n const [state, render] = useStateVar({\r\n entireDay: (props.modalEditSchedule.start_time === '00:00' && props.modalEditSchedule.end_time === '23:59') as boolean,\r\n editSetpoint: true,\r\n minSetpoint: props.driCfg.protocol === 'carrier-ecosplit' ? 17 : MIN_SETPOINT,\r\n maxSetpoint: props.driCfg.protocol === 'carrier-ecosplit' ? 25 : MAX_SETPOINT,\r\n });\r\n\r\n const isEdit = props.modalEditSchedule.addEdit === 'Edit';\r\n\r\n function selectDay(day: string) {\r\n if (props.modalEditSchedule.selectedDays && props.modalEditSchedule.selectedDays[day] !== undefined) {\r\n props.modalEditSchedule.selectedDays[day] = !props.modalEditSchedule.selectedDays[day];\r\n render();\r\n }\r\n }\r\n\r\n function onClickOperationToggle(): void {\r\n props.modalEditSchedule.operation = !props.modalEditSchedule.operation;\r\n if (props.modalEditSchedule.operation) {\r\n if (props.driCfg.protocol === 'carrier-ecosplit' || props.driCfg.application.startsWith('fancoil')) {\r\n props.modalEditSchedule.mode = 0;\r\n }\r\n props.modalEditSchedule.useSetpoint = true;\r\n } else {\r\n if (props.driCfg.protocol === 'carrier-ecosplit' || props.driCfg.application.startsWith('fancoil')) {\r\n props.modalEditSchedule.mode = undefined;\r\n }\r\n props.modalEditSchedule.useSetpoint = false;\r\n }\r\n render();\r\n }\r\n\r\n const isFancoilCarrierEcosplit = (props.driCfg?.protocol === 'carrier-ecosplit' || props.driCfg?.application.startsWith('fancoil'));\r\n\r\n return (\r\n
\r\n
{t('editarAdicionarProgramacao', { value: isEdit ? t('editar') : t('botaoAdicionar') })}
\r\n
\r\n
\r\n
{t('titulo')}
\r\n { props.modalEditSchedule.name = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('Programação')}
\r\n
\r\n {props.modalEditSchedule.active ? t('habilitada') : t('desabilitada')}\r\n { props.modalEditSchedule.active = !props.modalEditSchedule.active; render(); }}\r\n />\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
{t('selecioneDias')}
\r\n {props.modalEditSchedule.isException ? (\r\n \r\n \r\n \r\n { props.modalEditSchedule.exceptionDate = e.target.value; render(); }}\r\n />\r\n \r\n {!props.hideRepeatYearly && (\r\n <>\r\n \r\n {\r\n props.modalEditSchedule.repeatYearly = !props.modalEditSchedule.repeatYearly;\r\n render();\r\n }}\r\n >\r\n \r\n {props.modalEditSchedule.repeatYearly ? : null}\r\n \r\n \r\n
\r\n \r\n {t('repetirTodoOAno')}\r\n
\r\n \r\n )}\r\n \r\n

\r\n {t('maquinaPermaneceraDesligadaIntervalosHorariosNaoDefinidos')}\r\n

\r\n \r\n ) : (\r\n
\r\n selectDay('sun')}>DOM\r\n selectDay('mon')}>SEG\r\n selectDay('tue')}>TER\r\n selectDay('wed')}>QUA\r\n selectDay('thu')}>QUI\r\n selectDay('fri')}>SEX\r\n selectDay('sat')}>SAB\r\n
\r\n )}\r\n
\r\n\r\n \r\n
\r\n
{t('horarioInicio')}
\r\n ) => { props.modalEditSchedule!.start_time = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('horarioTermino')}
\r\n ) => { props.modalEditSchedule!.end_time = e.target.value; render(); }}\r\n />\r\n
\r\n {\r\n state.entireDay = !state.entireDay;\r\n if (state.entireDay) {\r\n props.modalEditSchedule.start_time = '00:00';\r\n props.modalEditSchedule.end_time = '23:59';\r\n } else {\r\n props.modalEditSchedule.start_time = '';\r\n props.modalEditSchedule.end_time = '';\r\n }\r\n render();\r\n }}\r\n />\r\n
\r\n\r\n
\r\n {isFancoilCarrierEcosplit && (\r\n
{t('funcionamento')}
\r\n )}\r\n {props.driCfg?.application.startsWith('vav') && (\r\n
{t('atuadorVav')}
\r\n )}\r\n
\r\n {isFancoilCarrierEcosplit && (\r\n {t('ligadoMin')}\r\n )}\r\n {props.driCfg?.application.startsWith('vav') && (\r\n {t('aberto')}\r\n )}\r\n \r\n {isFancoilCarrierEcosplit && (\r\n {t('desligadoMin')}\r\n )}\r\n {props.driCfg?.application.startsWith('vav') && (\r\n {t('fechado')}\r\n )}\r\n
\r\n
\r\n\r\n {props.modalEditSchedule.operation && (\r\n
\r\n {isFancoilCarrierEcosplit && (\r\n
\r\n {t('selecioneModo')}\r\n \r\n
\r\n { props.modalEditSchedule.mode = 0; props.modalEditSchedule.useSetpoint = true; render(); }}\r\n >\r\n \r\n \r\n
\r\n
\r\n { props.modalEditSchedule.mode = 1; props.modalEditSchedule.useSetpoint = false; render(); }}\r\n >\r\n \r\n \r\n
\r\n \r\n {t('ventilar')}\r\n \r\n \r\n {t('refrigerar')}\r\n \r\n\r\n
\r\n
\r\n )}\r\n {props.modalEditSchedule.useSetpoint && (\r\n
\r\n
\r\n
Setpoint  
\r\n
\r\n
\r\n {state.editSetpoint && (\r\n
\r\n {\r\n if ((Number(props.modalEditSchedule.setpointValue) + 1) >= state.minSetpoint\r\n && (Number(props.modalEditSchedule.setpointValue) + 1) <= state.maxSetpoint) {\r\n props.modalEditSchedule.setpointValue = String(Number(props.modalEditSchedule.setpointValue) + 1);\r\n render();\r\n }\r\n }}\r\n type=\"button\"\r\n />\r\n {\r\n if ((Number(props.modalEditSchedule.setpointValue) - 1) >= state.minSetpoint\r\n && (Number(props.modalEditSchedule.setpointValue) - 1) <= state.maxSetpoint) {\r\n props.modalEditSchedule.setpointValue = String(Number(props.modalEditSchedule.setpointValue) - 1);\r\n render();\r\n }\r\n }}\r\n type=\"button\"\r\n />\r\n
\r\n )}\r\n
\r\n {props.modalEditSchedule.setpointValue}\r\n
\r\n
 °C
\r\n
\r\n
\r\n )}\r\n
\r\n )}\r\n\r\n
\r\n \r\n {isEdit ? t('botaoSalvar') : t('botaoAdicionar')}\r\n \r\n
\r\n
\r\n \r\n {t('botaoCancelar')}\r\n \r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function SchedCard(props: {\r\n sched: ScheduleInfo\r\n driCfg: { application: string, protocol: string },\r\n onEdit: () => void,\r\n onDelete: () => void,\r\n size?: Size,\r\n canManageProgramming: boolean,\r\n loading?: boolean,\r\n hide?: {\r\n add?: boolean;\r\n edit?: boolean;\r\n delete?: boolean;\r\n }\r\n}): JSX.Element {\r\n const [, render] = useStateVar({});\r\n const {\r\n sched, onEdit, onDelete, size, loading, hide,\r\n } = props;\r\n const days = JSON.parse(sched.DAYS);\r\n\r\n return (\r\n \r\n \r\n
\r\n
\r\n
\r\n {sched.NAME}\r\n {\r\n props.canManageProgramming && (\r\n
\r\n {!hide?.edit && (\r\n \r\n \r\n \r\n )}\r\n {!hide?.delete && (\r\n \r\n \r\n \r\n )}\r\n
\r\n )\r\n }\r\n
\r\n\r\n
\r\n
{t('Programação')}
\r\n
\r\n {sched.ACTIVE === '1' ? t('habilitada') : t('desabilitada')}\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n
{ props.driCfg?.application.startsWith('fancoil') ? t('statusAutomacao') : t('funcionamento')}
\r\n
\r\n {props.driCfg?.application.startsWith('vav') && (\r\n
\r\n {sched.OPERATION === '1' ? t('aberto') : t('fechado')}\r\n {sched.OPERATION === '1' && }\r\n {sched.OPERATION === '0' && }\r\n
\r\n )}\r\n {(props.driCfg?.protocol === 'carrier-ecosplit' || props.driCfg?.application.startsWith('fancoil')) && (\r\n
\r\n {(!props.driCfg?.application.startsWith('fancoil')) && (sched.OPERATION === '1' ? t('ligadoMin') : t('desligadoMin'))}\r\n {props.driCfg?.application.startsWith('fancoil') && (sched.OPERATION === '1' ? (sched.MODE === 'COOL' ? 'Refrigerar' : 'Ventilar') : t('desligadoMin'))}\r\n\r\n {sched.OPERATION === '1' && sched.MODE === 'COOL' && (\r\n \r\n )}\r\n {sched.OPERATION === '1' && sched.MODE === 'FAN' && (\r\n \r\n )}\r\n
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n {t('horarioDeInicio')}\r\n : \r\n \r\n \r\n {sched.BEGIN_TIME}\r\n \r\n
\r\n
\r\n \r\n {t('horarioDeFim')}\r\n : \r\n \r\n \r\n {sched.END_TIME}\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n {sched.OPERATION === '1' && sched.MODE !== 'FAN' && (\r\n
\r\n
Setpoint
\r\n
\r\n
{sched.SETPOINT}
\r\n
 °C
\r\n
\r\n
\r\n )}\r\n
\r\n\r\n
\r\n {days && (\r\n
\r\n DOM\r\n SEG\r\n TER\r\n QUA\r\n QUI\r\n SEX\r\n SAB\r\n
\r\n )}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport const ExceptionSchedCard = (props: {\r\n sched: ScheduleInfo,\r\n onEdit: () => void,\r\n onDelete: () => void,\r\n size?: Size,\r\n loading?: boolean,\r\n hide?: {\r\n add?: boolean;\r\n edit?: boolean;\r\n delete?: boolean;\r\n }\r\n}): JSX.Element => {\r\n const {\r\n sched, onEdit, onDelete, size, loading, hide,\r\n } = props;\r\n\r\n return (\r\n \r\n \r\n {sched.NAME}\r\n
\r\n \r\n {sched.EXCEPTION_DATE.substring(0, sched.EXCEPTION_REPEAT_YEARLY === '1' ? 5 : 10)}\r\n
\r\n \r\n {`${sched.EXCEPTION_REPEAT_YEARLY === '1' ? t('sim') : t('nao')}`}\r\n
\r\n \r\n {sched.BEGIN_TIME}\r\n
\r\n \r\n {sched.END_TIME}\r\n
\r\n
\r\n {!hide?.edit && (\r\n \r\n \r\n \r\n )}\r\n {!hide?.delete && (\r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport function LimitExceedTooltip({\r\n disabled,\r\n isException,\r\n children,\r\n}: { disabled: boolean, isException: boolean, children: ReactElement }): ReactElement {\r\n const warnMessage = t(isException ? 'limiteCadastroExcecoesAtingido' : 'limiteCadastroProgramacoesAtingido');\r\n return (\r\n <>\r\n {disabled ? (\r\n
\r\n {children}\r\n \r\n
\r\n ) : (children)}\r\n \r\n );\r\n}\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '../../styles/colors';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const Text = styled.span`\r\n font-weight: normal;\r\n font-size: 1em;\r\n color: ${colors.Grey400};\r\n\r\n strong {\r\n font-weight: bold;\r\n color: ${colors.Grey400};\r\n }\r\n`;\r\n\r\nexport const TransparentLink = styled(Link)`\r\n color: inherit;\r\n text-decoration: inherit;\r\n :hover {\r\n color: ${colors.Black};\r\n text-decoration: none;\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nexport const ViewAllContainer = styled.span`\r\n width: 200px;\r\n height: 40px;\r\n border-radius: 10px;\r\n border: 1px solid #D7D7D7;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n align-self: flex-end;\r\n gap : 8px;\r\n position: absolute;\r\n top: -60px;\r\n right: 0px;\r\n span {\r\n font-weight: 700;\r\n font-size: 12px;\r\n color: #363BC4;\r\n }\r\n box-shadow: 0px 4px 4px 0px #0000001A;\r\n\r\n`;\r\n","import { useEffect, useState } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport moment from 'moment';\r\nimport 'moment/locale/pt-br';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport {\r\n AssetTree,\r\n} from '~/components/AssetTree';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport {\r\n NoSignalIcon,\r\n BadSignalIcon,\r\n RegularSignalIcon,\r\n GoodSignalIcon,\r\n GreatSignalIcon,\r\n} from '~/icons';\r\n\r\nimport {\r\n Carousel,\r\n Loader,\r\n Button,\r\n} from 'components';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, apiCallFormData, ApiResps } from 'providers';\r\nimport { colors } from 'styles/colors';\r\nimport {\r\n Card,\r\n Data,\r\n DataText,\r\n Title,\r\n} from './styles';\r\nimport { DamScheduleSummary } from '../../SchedulesModals/DAM_Schedule';\r\nimport { DutScheduleSummary } from '../../SchedulesModals/DUT_Schedule';\r\nimport { AssetLayout } from '../AssetLayout';\r\nimport { DRIScheduleSummary } from '../../SchedulesModals/DRI_Shedule';\r\nimport { verifyInfoAdditionalParameters } from '~/helpers/additionalParameters';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { TransparentLink } from '~/pages/NewNotifications/styles';\r\nimport { ReferenceType } from '../../../../providers/types/api-upload-service';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\n\r\ntype DevInfo = null\r\n | (\r\n ((ApiResps['/clients/get-asset-info']['info'])|(ApiResps['/clients/get-group-info']))\r\n & { PLACEMENT?: string }\r\n )\r\n\r\nexport const AssetInfo = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n const match = useRouteMatch<{ devId: string, groupId: string }>();\r\n const history = useHistory();\r\n\r\n const [state, render, setState] = useStateVar(() => {\r\n moment.locale('pt-br');\r\n return {\r\n devId: match.params.devId,\r\n groupId: match.params.groupId,\r\n linkBase: match.url.split(`/${match.params.devId}`)[0],\r\n isLoading: true,\r\n devInfo: null as DevInfo,\r\n driInfo: null as null|ApiResps['/get-integration-info'],\r\n additionalMachineParameters: [] as {\r\n ID: number,\r\n COLUMN_NAME: string,\r\n COLUMN_VALUE: string,\r\n }[],\r\n assetSelected: false,\r\n selectedIndex: -1 as number,\r\n automationSelected: false as boolean,\r\n groupSelected: false as boolean,\r\n assetRoleSelected: undefined as undefined|number,\r\n placementSelected: null as null | string,\r\n DEV_AUT: null as string|null,\r\n DUT_ID: null as string|null,\r\n AUTOM_ID: null as string|null,\r\n AUTOM_DEVICE_ID: undefined as number|undefined,\r\n GROUP_INSTALLATION_DATE: null as string|null,\r\n GROUP_MODEL: null as string|null,\r\n FLUID_TYPE: null as string|null,\r\n MCHN_BRAND: null as string|null,\r\n MACHINE_COOLING_CAPACITY: null as number|null,\r\n MACHINE_COOLING_CAPACITY_UNIT: null as string|null,\r\n RSSI: null as string|null,\r\n assets: [] as {\r\n ASSET_ID: number,\r\n DAT_ID: string,\r\n AST_TYPE: string,\r\n AST_DESC: string,\r\n DEV_ID: string,\r\n DEVICE_ID: number|null,\r\n H_INDEX: number|null,\r\n AST_ROLE: number,\r\n AST_ROLE_NAME: string,\r\n INSTALLATION_DATE: string,\r\n DAT_INDEX: number,\r\n MCHN_BRAND: string,\r\n CAPACITY_PWR: number,\r\n CAPACITY_UNIT: string,\r\n FLUID_TYPE: string,\r\n MCHN_MODEL: string,\r\n PLACEMENT: string | null,\r\n AST_ROLE_INDEX: number,\r\n selected: boolean,\r\n rssiText: string,\r\n }[],\r\n selectedDevInfo: [] as {\r\n DEV_ID: string,\r\n DEVICE_ID: number,\r\n MODEL: string|null,\r\n CAPACITY_PWR: number|null,\r\n FLUID_TYPE: string|null,\r\n DAT_BEGMON: string|null,\r\n LAST_TELEMETRY: string|null,\r\n STATUS: string|null,\r\n RSSI: string|null,\r\n DEVICE_TIMESTAMP: string|null,\r\n PLACEMENT?: string|null,\r\n }[],\r\n clientName: undefined as undefined|string,\r\n dutAutomationInfo: {} as {\r\n dutId?: string,\r\n placement?: string\r\n },\r\n hasNonDutDeviceInAssets: false as boolean,\r\n };\r\n });\r\n\r\n async function checkSetDutPlacement() {\r\n let cachedDutInfo: { info: { DEV_ID: string, PLACEMENT: string } } | null = null;\r\n if (state.devInfo && state.devId && state.devId.startsWith('DUT')) {\r\n cachedDutInfo = await apiCall('/dut/get-dut-info', { DEV_ID: state.devId });\r\n setState({ devInfo: { PLACEMENT: cachedDutInfo.info.PLACEMENT, ...state.devInfo } });\r\n }\r\n if (state.AUTOM_ID?.startsWith('DUT')) {\r\n // Evitando fazer 2 requests caso dut de automação seja o mesmo do focado\r\n if (state.AUTOM_ID !== state.devId || cachedDutInfo == null) {\r\n cachedDutInfo = await apiCall('/dut/get-dut-info', { DEV_ID: state.AUTOM_ID });\r\n }\r\n setState({ dutAutomationInfo: { dutId: cachedDutInfo.info.DEV_ID, placement: cachedDutInfo.info?.PLACEMENT } });\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n setState({ isLoading: true });\r\n if (state.devId) {\r\n await verifyDevInfo();\r\n }\r\n else {\r\n await verifyGroupInfo();\r\n }\r\n\r\n await verifyAssetInfo();\r\n\r\n if (profile.manageAllClients) {\r\n // @ts-ignore\r\n const { client } = await apiCall('/clients/get-client-info', { CLIENT_ID: state.devInfo.CLIENT_ID });\r\n setState({ clientName: client.NAME });\r\n }\r\n handleUrl();\r\n await checkSetDutPlacement();\r\n } catch (err) {\r\n toast.error(t('erroDadosDispositivo'));\r\n console.log(err);\r\n }\r\n setState({ isLoading: false });\r\n }());\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (state.groupSelected || state.groupId) {\r\n getMachineAdditionalParameters();\r\n }\r\n }, [state.groupSelected]);\r\n\r\n async function verifyDevInfo() {\r\n if (!state.devId.includes('DAM') && !state.devId.includes('DUT') && !state.devId.includes('DRI')) {\r\n const { info: devInfoRes } = await apiCall('/clients/get-asset-info', { DEV_ID: state.devId, DAT_ID: state.devId, ASSET_ID: state.devId });\r\n state.devInfo = devInfoRes;\r\n }\r\n else {\r\n const devInfoRes = await apiCall('/clients/get-group-info', { GROUP_ID: Number(state.groupId) });\r\n state.MACHINE_COOLING_CAPACITY = devInfoRes.COOLING_CAPACITY;\r\n state.MACHINE_COOLING_CAPACITY_UNIT = devInfoRes.COOLING_CAPACITY_UNIT;\r\n state.devInfo = devInfoRes;\r\n state.automationSelected = true;\r\n }\r\n }\r\n\r\n async function verifyGroupInfo() {\r\n const devInfoRes = await apiCall('/clients/get-group-info', { GROUP_ID: Number(state.groupId) });\r\n state.MACHINE_COOLING_CAPACITY = devInfoRes.COOLING_CAPACITY;\r\n state.MACHINE_COOLING_CAPACITY_UNIT = devInfoRes.COOLING_CAPACITY_UNIT;\r\n state.devInfo = devInfoRes;\r\n state.groupSelected = true;\r\n }\r\n\r\n async function verifyAssetInfo() {\r\n if (state.devInfo?.GROUP_ID) {\r\n const assetsApiResponse = await apiCall('/clients/get-client-assets-by-group',\r\n {\r\n CLIENT_ID: [state.devInfo?.CLIENT_ID] || undefined,\r\n GROUP_ID: state.groupId ? Number(state.groupId) : state.devInfo?.GROUP_ID,\r\n });\r\n\r\n state.DEV_AUT = assetsApiResponse.DEV_AUT || assetsApiResponse.DAM_ID;\r\n state.DUT_ID = assetsApiResponse.DUT_ID;\r\n\r\n let condenser = 0;\r\n let evaporator = 0;\r\n let heatExchanger = 0;\r\n\r\n for (let index = 0; index < assetsApiResponse.assets.length; index++) {\r\n if (assetsApiResponse.assets[index].AST_ROLE === 1 && assetsApiResponse.assets[index].DEV_ID === '' && assetsApiResponse.DUT_ID?.length > 1) {\r\n assetsApiResponse.assets[index].DEV_ID = assetsApiResponse.DUT_ID;\r\n }\r\n\r\n if (assetsApiResponse.assets[index].DAT_INDEX === 0) {\r\n condenser += assetsApiResponse.assets[index].AST_ROLE === 2 ? 1 : 0;\r\n evaporator += assetsApiResponse.assets[index].AST_ROLE === 1 ? 1 : 0;\r\n heatExchanger += assetsApiResponse.assets[index].AST_ROLE === 4 ? 1 : 0;\r\n }\r\n\r\n let astRoleIndex = condenser;\r\n astRoleIndex = assetsApiResponse.assets[index].AST_ROLE === 1 ? evaporator : astRoleIndex;\r\n astRoleIndex = assetsApiResponse.assets[index].AST_ROLE === 4 ? heatExchanger : astRoleIndex;\r\n\r\n state.assets.push({\r\n ASSET_ID: assetsApiResponse.assets[index].ASSET_ID,\r\n DAT_ID: assetsApiResponse.assets[index].DAT_ID,\r\n AST_TYPE: assetsApiResponse.assets[index].AST_TYPE,\r\n AST_DESC: assetsApiResponse.assets[index].AST_DESC,\r\n DEV_ID: assetsApiResponse.assets[index].DEV_ID,\r\n DEVICE_ID: assetsApiResponse.assets[index].DEVICE_ID,\r\n H_INDEX: assetsApiResponse.assets[index].H_INDEX,\r\n AST_ROLE: assetsApiResponse.assets[index].AST_ROLE,\r\n AST_ROLE_NAME: assetsApiResponse.assets[index].AST_ROLE_NAME,\r\n INSTALLATION_DATE: assetsApiResponse.assets[index].INSTALLATION_DATE,\r\n DAT_INDEX: assetsApiResponse.assets[index].DAT_INDEX,\r\n MCHN_BRAND: assetsApiResponse.assets[index].MCHN_BRAND,\r\n CAPACITY_PWR: assetsApiResponse.assets[index].CAPACITY_PWR,\r\n CAPACITY_UNIT: assetsApiResponse.assets[index].CAPACITY_UNIT,\r\n FLUID_TYPE: assetsApiResponse.assets[index].FLUID_TYPE,\r\n MCHN_MODEL: assetsApiResponse.assets[index].MCHN_MODEL,\r\n AST_ROLE_INDEX: astRoleIndex,\r\n PLACEMENT: assetsApiResponse.assets[index].PLACEMENT,\r\n selected: assetsApiResponse.assets[index].DAT_ID === state.devId || assetsApiResponse.assets[index].DEV_ID === state.devId || assetsApiResponse.assets[index].ASSET_ID === Number(state.devId),\r\n rssiText: t('excelente'),\r\n });\r\n\r\n if (state.assets[state.assets.length - 1].selected) {\r\n state.assetSelected = true;\r\n state.selectedIndex = index;\r\n state.assetRoleSelected = assetsApiResponse.assets[index].AST_ROLE;\r\n }\r\n\r\n if (state.assets[index].DEV_ID && !state.assets[index].DEV_ID.startsWith('DUT')) {\r\n state.hasNonDutDeviceInAssets = true;\r\n }\r\n // Get dev info\r\n if (assetsApiResponse.assets[index].DEV_ID) {\r\n const itemDev = await apiCall('/get-dev-full-info', { DEV_ID: assetsApiResponse.assets[index].DEV_ID });\r\n state.selectedDevInfo.push({\r\n DEV_ID: assetsApiResponse.assets[index].DEV_ID,\r\n DEVICE_ID: itemDev.info.DEVICE_ID,\r\n MODEL: itemDev.dac?.DAC_MODEL || null,\r\n CAPACITY_PWR: itemDev.dac?.CAPACITY_PWR || 0,\r\n FLUID_TYPE: itemDev.dac?.FLUID_TYPE || null,\r\n LAST_TELEMETRY: '',\r\n STATUS: '',\r\n RSSI: null,\r\n DEVICE_TIMESTAMP: null,\r\n DAT_BEGMON: itemDev.info.DAT_BEGMON,\r\n });\r\n if (!assetsApiResponse.assets[index].DEVICE_ID) {\r\n assetsApiResponse.assets[index].DEVICE_ID = itemDev.info.DEVICE_ID;\r\n state.assets[index].DEVICE_ID = itemDev.info.DEVICE_ID;\r\n }\r\n }\r\n }\r\n\r\n if (state.groupId || state.devInfo.GROUP_ID) {\r\n const groupIdToRequest = state.groupId || state.devInfo.GROUP_ID;\r\n const groupInfo = await apiCall('/clients/get-group-info', { GROUP_ID: Number(groupIdToRequest) });\r\n state.MACHINE_COOLING_CAPACITY = groupInfo.COOLING_CAPACITY;\r\n state.MACHINE_COOLING_CAPACITY_UNIT = groupInfo.COOLING_CAPACITY_UNIT;\r\n state.GROUP_INSTALLATION_DATE = groupInfo.INSTALLATION_DATE;\r\n state.FLUID_TYPE = groupInfo.FLUID_TYPE;\r\n state.MCHN_BRAND = groupInfo.MCHN_BRAND;\r\n state.GROUP_MODEL = groupInfo.MODEL;\r\n state.AUTOM_ID = groupInfo.AUTOM_ID;\r\n state.AUTOM_DEVICE_ID = groupInfo.AUTOM_DEVICE_ID;\r\n if (state.AUTOM_ID && state.AUTOM_ID.startsWith('DRI')) {\r\n state.driInfo = await apiCall('/get-integration-info', { supplier: 'diel', integrId: state.AUTOM_ID });\r\n }\r\n }\r\n }\r\n else {\r\n const assetApiResponse = await apiCall('/clients/get-client-asset',\r\n {\r\n CLIENT_ID: [state.devInfo?.CLIENT_ID] || undefined,\r\n // @ts-ignore\r\n ASSET_ID: state.devInfo.ASSET_ID || undefined,\r\n });\r\n\r\n state.selectedIndex = 0;\r\n state.assets.push({\r\n ASSET_ID: assetApiResponse.asset.ASSET_ID,\r\n DAT_ID: assetApiResponse.asset.DAT_ID,\r\n AST_TYPE: assetApiResponse.asset.AST_TYPE,\r\n AST_DESC: assetApiResponse.asset.AST_DESC,\r\n DEV_ID: assetApiResponse.asset.DEV_ID,\r\n DEVICE_ID: assetApiResponse.asset.DEVICE_ID,\r\n H_INDEX: assetApiResponse.asset.H_INDEX,\r\n AST_ROLE: assetApiResponse.asset.AST_ROLE,\r\n AST_ROLE_NAME: assetApiResponse.asset.AST_ROLE_NAME,\r\n INSTALLATION_DATE: assetApiResponse.asset.INSTALLATION_DATE,\r\n DAT_INDEX: assetApiResponse.asset.DAT_INDEX,\r\n MCHN_BRAND: assetApiResponse.asset.MCHN_BRAND,\r\n CAPACITY_PWR: assetApiResponse.asset.CAPACITY_PWR,\r\n CAPACITY_UNIT: assetApiResponse.asset.CAPACITY_UNIT,\r\n FLUID_TYPE: assetApiResponse.asset.FLUID_TYPE,\r\n MCHN_MODEL: assetApiResponse.asset.MCHN_MODEL,\r\n AST_ROLE_INDEX: 0,\r\n PLACEMENT: null,\r\n selected: assetApiResponse.asset.DAT_ID === state.devId || assetApiResponse.asset.DEV_ID === state.devId || assetApiResponse.asset.ASSET_ID === Number(state.devId),\r\n rssiText: t('excelente'),\r\n });\r\n state.assetSelected = true;\r\n state.assetRoleSelected = assetApiResponse.asset.AST_ROLE;\r\n\r\n // Get dev info\r\n if (assetApiResponse.asset.DEV_ID) {\r\n const itemDev = await apiCall('/get-dev-full-info', { DEV_ID: assetApiResponse.asset.DEV_ID });\r\n state.selectedDevInfo.push({\r\n DEV_ID: assetApiResponse.asset.DEV_ID,\r\n DEVICE_ID: itemDev.info.DEVICE_ID,\r\n MODEL: itemDev.dac?.DAC_MODEL || null,\r\n CAPACITY_PWR: itemDev.dac?.CAPACITY_PWR || 0,\r\n FLUID_TYPE: itemDev.dac?.FLUID_TYPE || null,\r\n LAST_TELEMETRY: '',\r\n STATUS: '',\r\n RSSI: null,\r\n DEVICE_TIMESTAMP: null,\r\n DAT_BEGMON: itemDev.info.DAT_BEGMON,\r\n });\r\n\r\n if (!assetApiResponse.asset.DEV_ID.startsWith('DUT')) {\r\n state.hasNonDutDeviceInAssets = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n async function getMachineAdditionalParameters() {\r\n const additionalParameters = await apiCall('/get-machine-additional-parameters', { MACHINE_ID: Number(state.groupId) });\r\n state.additionalMachineParameters = additionalParameters;\r\n }\r\n\r\n function handleUrl() {\r\n if (!state.groupId && state.devInfo?.GROUP_ID) {\r\n state.groupId = state.devInfo.GROUP_ID.toString();\r\n state.linkBase = `/analise/maquina/${state.groupId}/ativos`;\r\n const devAux = state.assets[state.selectedIndex]?.ASSET_ID;\r\n const url = `${state.linkBase}/${devAux}/informacoes`;\r\n history.push(url);\r\n }\r\n else if (!state.devInfo?.GROUP_ID) {\r\n state.linkBase = '/analise/ativo';\r\n const devAux = state.assets[state.selectedIndex]?.ASSET_ID;\r\n const url = `${state.linkBase}/${devAux}/informacoes`;\r\n history.push(url);\r\n }\r\n\r\n if (state.linkBase.endsWith('/')) {\r\n state.linkBase = state.linkBase.slice(0, -1);\r\n }\r\n }\r\n\r\n function getCarouselId() {\r\n return state.assetSelected ? state.assets[state.selectedIndex].ASSET_ID : state.groupId;\r\n }\r\n\r\n async function handleGetImages() {\r\n if (state.assetSelected) {\r\n if (state.assets[state.selectedIndex].DEV_ID) {\r\n let referenceType: ReferenceType = 'DACS';\r\n if (state.assets[state.selectedIndex].DEV_ID.startsWith('DUT')) {\r\n referenceType = 'DUTS';\r\n }\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.assets[state.selectedIndex].DEVICE_ID!,\r\n referenceType,\r\n });\r\n }\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.assets[state.selectedIndex].ASSET_ID!,\r\n referenceType: 'ASSETS',\r\n });\r\n }\r\n\r\n const listAll = await Promise.all(state.assets.map((item) => {\r\n if (item.DEV_ID?.startsWith('DAC')) {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: item.DEVICE_ID!,\r\n referenceType: 'DACS',\r\n });\r\n }\r\n if (item.DEV_ID?.startsWith('DUT')) {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: item.DEVICE_ID!,\r\n referenceType: 'DUTS',\r\n });\r\n }\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: item.ASSET_ID,\r\n referenceType: 'ASSETS',\r\n });\r\n }));\r\n\r\n let list = [] as string[];\r\n\r\n const listGroup = await apiCall('/upload-service/get-images', {\r\n referenceId: Number(state.groupId),\r\n referenceType: 'MACHINES',\r\n });\r\n list = list.concat(listGroup.list);\r\n listAll.forEach((item) => list = list.concat(item.list));\r\n\r\n return { list };\r\n }\r\n\r\n async function handlePostImage(photo: Blob) {\r\n if (state.assetSelected) {\r\n if (state.assets[state.selectedIndex].DEV_ID) {\r\n let referenceType: ReferenceType = 'DACS';\r\n if (state.assets[state.selectedIndex].DEV_ID.startsWith('DUT')) {\r\n referenceType = 'DUTS';\r\n }\r\n return apiCallFormData('/upload-service/upload-image', { referenceId: state.assets[state.selectedIndex].DEVICE_ID!, referenceType }, { file: photo });\r\n }\r\n return apiCallFormData('/upload-service/upload-image', { referenceId: state.assets[state.selectedIndex].ASSET_ID, referenceType: 'ASSETS' }, { file: photo });\r\n }\r\n return apiCallFormData('/upload-service/upload-image', { referenceId: Number(state.groupId), referenceType: 'MACHINES' }, { file: photo });\r\n }\r\n\r\n async function handleDeleteImage(imageUrl: string) {\r\n if (state.assetSelected) {\r\n if (state.assets[state.selectedIndex].DEV_ID.length > 0) {\r\n if (state.assets[state.selectedIndex].DEV_ID.startsWith('DUT')) {\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.assets[state.selectedIndex].DEVICE_ID!,\r\n referenceType: 'DUTS',\r\n filename: imageUrl,\r\n });\r\n }\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.assets[state.selectedIndex].DEVICE_ID!,\r\n referenceType: 'DACS',\r\n filename: imageUrl,\r\n });\r\n }\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.assets[state.selectedIndex].ASSET_ID,\r\n referenceType: 'ASSETS',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n if (imageUrl.includes('assets_images') || imageUrl.includes('ASSETS/')) {\r\n const beginAssetIdIndex = imageUrl.includes('assets_images/') ? imageUrl.lastIndexOf('assets_images/') : imageUrl.lastIndexOf('ASSETS/');\r\n const assetId = imageUrl.substring(beginAssetIdIndex + (imageUrl.includes('assets_images/') ? 'assets_images/' : 'ASSETS/').length).split('-')[0].toUpperCase();\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: Number(assetId.slice(assetId.indexOf('_') + 1)),\r\n referenceType: 'ASSETS',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n if (imageUrl.includes('dev_groups_images') || imageUrl.includes('MACHINES')) {\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: Number(state.groupId),\r\n referenceType: 'MACHINES',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n const beginDacIdIndex = imageUrl.includes('dac_images/') ? imageUrl.lastIndexOf('dac_images/') : imageUrl.lastIndexOf('DACS/');\r\n const dacId = imageUrl.substring(beginDacIdIndex + (imageUrl.includes('dac_images/') ? 'dac_images/' : 'DACS/').length).split('-')[0];\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: Number(dacId),\r\n referenceType: 'DACS',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n function getReferenceTypeDevAut(): ReferenceType {\r\n if (state.AUTOM_ID?.startsWith('DAM')) {\r\n return 'DAMS';\r\n }\r\n if (state.AUTOM_ID?.startsWith('DRI')) {\r\n return 'DRIS';\r\n }\r\n if (state.AUTOM_ID?.startsWith('DAC')) {\r\n return 'DACS';\r\n }\r\n return 'DUTS';\r\n }\r\n\r\n const handleGetAutomationImages = async () => {\r\n const referenceType = getReferenceTypeDevAut();\r\n\r\n if (referenceType) {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.AUTOM_DEVICE_ID!,\r\n referenceType,\r\n });\r\n }\r\n return { list: [] };\r\n };\r\n\r\n const handlePostAutomationImage = async (photo: Blob) => {\r\n const referenceType = getReferenceTypeDevAut();\r\n return apiCallFormData('/upload-service/upload-image', { referenceId: state.AUTOM_DEVICE_ID!, referenceType }, { file: photo });\r\n };\r\n\r\n const handleDeleteAutomationImage = async (imageUrl: string) => {\r\n const referenceType = getReferenceTypeDevAut();\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.AUTOM_DEVICE_ID!,\r\n referenceType,\r\n filename: imageUrl,\r\n });\r\n };\r\n\r\n function showButton() {\r\n if (state.assetSelected) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n const { devInfo } = state;\r\n\r\n function groupName(group: {GROUP_NAME: string} | null) {\r\n return group?.GROUP_NAME || t('semInformacao');\r\n }\r\n\r\n async function selectedCard(position: number) {\r\n setState({ isLoading: true });\r\n state.selectedIndex = position;\r\n state.assetSelected = position > -1;\r\n state.automationSelected = position === -1;\r\n state.groupSelected = position === -2;\r\n state.assetRoleSelected = state.assetSelected ? state.assets[state.selectedIndex].AST_ROLE : undefined;\r\n state.placementSelected = state.assetSelected && state.assets[state.selectedIndex].PLACEMENT ? state.assets[state.selectedIndex].PLACEMENT : null;\r\n\r\n let urlAux = '';\r\n if (state.assetSelected) {\r\n const devAux = state.assets[state.selectedIndex].DEV_ID || state.assets[state.selectedIndex].DAT_ID || state.assets[state.selectedIndex].ASSET_ID;\r\n urlAux = `${state.linkBase}/${devAux}/informacoes`;\r\n }\r\n else if (state.automationSelected) {\r\n urlAux = state.AUTOM_ID ? `${state.linkBase}/${state.AUTOM_ID}/informacoes` : state.linkBase;\r\n }\r\n else {\r\n urlAux = state.AUTOM_ID ? `${state.linkBase}` : state.linkBase;\r\n }\r\n\r\n history.push(urlAux);\r\n setState({ isLoading: false });\r\n render();\r\n }\r\n\r\n function devSelected() {\r\n const result = (state.assetSelected ? (state.assets[state.selectedIndex].DEV_ID || state.assets[state.selectedIndex].DAT_ID) : state.AUTOM_ID);\r\n return result;\r\n }\r\n\r\n function devText() {\r\n let result = (state.assetSelected ? (state.assets[state.selectedIndex].DAT_ID) : state.AUTOM_ID) || null;\r\n result = !state.groupSelected ? result : state.groupId;\r\n if (state.assetSelected && state.assets[state.selectedIndex].DEV_ID) {\r\n result = result ? `${result}/${state.assets[state.selectedIndex].DEV_ID}` : `${state.assets[state.selectedIndex].DEV_ID}`;\r\n }\r\n return result;\r\n }\r\n\r\n function capacityPowerText() {\r\n return state.assetSelected ? formatNumberWithFractionDigits(state.assets[state.selectedIndex].CAPACITY_PWR ?? t('semInformacao')) : formatNumberWithFractionDigits(state.MACHINE_COOLING_CAPACITY ?? t('semInformacao'));\r\n }\r\n\r\n function capacityUnitText() {\r\n return (state.assetSelected ? state.assets[state.selectedIndex].CAPACITY_UNIT : state.MACHINE_COOLING_CAPACITY_UNIT) ?? '';\r\n }\r\n\r\n function fluidTypeText() {\r\n const indexAux = state.selectedIndex > -1 ? state.selectedIndex : 0;\r\n const fluidAux = state.assetSelected ? state.assets[indexAux].FLUID_TYPE : state.FLUID_TYPE;\r\n return fluidAux || t('semInformacao');\r\n }\r\n\r\n function modelText() {\r\n const modelAux = state.assetSelected ? state.assets[state.selectedIndex].MCHN_MODEL : state.GROUP_MODEL || (state.assets[0]?.MCHN_MODEL || null);\r\n return modelAux || t('semInformacao');\r\n }\r\n\r\n function brandText() {\r\n const indexAux = state.selectedIndex > -1 ? state.selectedIndex : 0;\r\n const brandAux = state.assetSelected ? state.assets[indexAux].MCHN_BRAND : state.MCHN_BRAND;\r\n return brandAux || t('semInformacao');\r\n }\r\n\r\n function instalationDateText() {\r\n const monitorationDateAux = state.assetSelected ? state.assets[state.selectedIndex].INSTALLATION_DATE : state.GROUP_INSTALLATION_DATE;\r\n return (monitorationDateAux && moment(monitorationDateAux).format('DD/MM/YYYY')) || t('semInformacao');\r\n }\r\n\r\n function formatRssiIcon(rssi: string) {\r\n switch (rssi) {\r\n case t('excelente'): return ;\r\n case t('bom'): return ;\r\n case t('regular'): return ;\r\n case t('ruim'): return ;\r\n default: return ;\r\n }\r\n }\r\n\r\n function showEditButton() {\r\n if (!state.groupSelected && (state.assetSelected || state.automationSelected)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function showTree() {\r\n if (state.groupId) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function editDevice() {\r\n if (state.assetSelected) {\r\n if (state.assets[state.selectedIndex].DEV_ID) {\r\n history.push(`${state.linkBase}/${state.assets[state.selectedIndex].DEV_ID}/editar`);\r\n }\r\n else if (!state.assets[state.selectedIndex].DAT_INDEX) {\r\n history.push(`${state.linkBase}/${state.assets[state.selectedIndex].ASSET_ID}/editarAtivo`);\r\n }\r\n else {\r\n history.push(`${state.linkBase}/${state.assets[state.selectedIndex].ASSET_ID}/editarAtivo/${state.assets[state.selectedIndex].DAT_INDEX}`);\r\n }\r\n }\r\n else if (state.automationSelected && state.AUTOM_ID) {\r\n history.push(`${state.linkBase}/${state.AUTOM_ID}/editar`);\r\n }\r\n }\r\n\r\n function showStatus() {\r\n return state.assetSelected ? state.assets[state.selectedIndex]?.DEV_ID?.length > 0 : (state.automationSelected && state.AUTOM_ID != null);\r\n }\r\n\r\n function getGroupName() {\r\n return !state.groupSelected ? t('ativo') : t('maquina');\r\n }\r\n\r\n function getIsDevice() {\r\n return (devText()?.startsWith('DUT') || devText()?.startsWith('DAM') || devText()?.startsWith('DAC'));\r\n }\r\n\r\n function getEditDevicePermissions(devInfo) {\r\n return (profile.manageAllClients || profile.permissions.CLIENT_MANAGE.includes(devInfo.CLIENT_ID)) && (showEditButton());\r\n }\r\n\r\n function buildScreenInfoParams(): Parameters<(typeof AssetLayout)>[0]['screenInfo'] {\r\n // caso onde dispositivo de automação não é o próprio DUT duo selecionado.\r\n // Queremos ocultar pois não existe falha possível se isso acontecer.\r\n // Se não houver dispositivo de automação, seguimos a lógica normal de decidir se aba aparece ou não.\r\n const shouldForceHideHealthTab = state.assetRoleSelected !== undefined\r\n && state.devInfo?.PLACEMENT === 'DUO'\r\n && ((state.dutAutomationInfo?.dutId ?? state.devId) !== state.devId);\r\n return {\r\n assetRoleSelected: state.assetRoleSelected,\r\n groupSelected: state.groupSelected,\r\n hasNonDutDeviceInAssets: state.hasNonDutDeviceInAssets,\r\n dutAutomationInfo: {\r\n placement: state.dutAutomationInfo?.placement,\r\n dutId: state.dutAutomationInfo?.dutId,\r\n },\r\n devAssociated: state?.assets[state.selectedIndex]?.DEV_ID,\r\n isDuoSelected: state.devInfo?.PLACEMENT === 'DUO' || state.dutAutomationInfo?.placement === 'DUO' || state.placementSelected === 'DUO',\r\n forceHideHealthTab: shouldForceHideHealthTab,\r\n };\r\n }\r\n\r\n function isAssetWithoutIdSelected() {\r\n return state.assetSelected\r\n && !state.assets[state.selectedIndex]?.DAT_ID\r\n && !state.assets[state.selectedIndex]?.DEV_ID;\r\n }\r\n\r\n const isDesktop = window.matchMedia('(min-width: 765px)');\r\n const isMobile = !isDesktop.matches;\r\n function selectedDecideName() {\r\n if (state.assetSelected) {\r\n return state.assets[state.selectedIndex].AST_DESC;\r\n }\r\n if (state.groupSelected) {\r\n return state.devInfo?.GROUP_NAME;\r\n }\r\n if (state.automationSelected) {\r\n return state.DEV_AUT;\r\n }\r\n return null;\r\n }\r\n function selectedDecideNameInfo() {\r\n if (state.assetSelected) {\r\n return t('ativo');\r\n }\r\n if (state.automationSelected) {\r\n return t('automacao');\r\n }\r\n return t('maquina');\r\n }\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(selectedDecideName(), selectedDecideNameInfo())}\r\n \r\n \r\n \r\n \r\n {showTree()\r\n && (\r\n \r\n {state.isLoading\r\n ? (\r\n \r\n )\r\n : (\r\n <>\r\n
\r\n \r\n {t('maquina')}\r\n \r\n
\r\n \r\n \r\n )}\r\n
\r\n )}\r\n \r\n {state.isLoading\r\n ? (\r\n \r\n )\r\n : (devInfo && (\r\n \r\n \r\n \r\n
\r\n \r\n {getGroupName()}\r\n \r\n
\r\n \r\n {state.assets[state.selectedIndex]?.AST_DESC || groupName(devInfo)}\r\n \r\n
\r\n {!isAssetWithoutIdSelected() && (\r\n \r\n \r\n {!state.groupSelected ? t('devId') : t('idMaquina')}\r\n \r\n {getIsDevice() ? (\r\n \r\n {devText()}\r\n \r\n )\r\n : (\r\n \r\n {devText()}\r\n \r\n )}\r\n \r\n )}\r\n
\r\n {showStatus()\r\n && (\r\n \r\n \r\n \r\n )}\r\n
\r\n {(!state.automationSelected || (state.automationSelected && state.AUTOM_ID?.startsWith('DRI'))) && (\r\n \r\n )}\r\n \r\n \r\n \r\n {!state.automationSelected && (\r\n <>\r\n \r\n \r\n
\r\n \r\n {t('informacoes')}\r\n \r\n {state.assetSelected\r\n && (\r\n \r\n \r\n {t('tipoAtivo')}\r\n \r\n {state.assets[state.selectedIndex].AST_ROLE_NAME}\r\n \r\n )}\r\n {!state.assetSelected && (\r\n \r\n \r\n {t('fabricante')}\r\n \r\n {brandText()}\r\n \r\n ) }\r\n \r\n \r\n {t('modelo')}\r\n \r\n {modelText()}\r\n \r\n \r\n \r\n {t('capacidadeFrigorifica')}\r\n \r\n {`${capacityPowerText()} ${capacityUnitText()}`}\r\n \r\n \r\n \r\n {t('fluidoRefrigerante')}\r\n \r\n {fluidTypeText()}\r\n \r\n \r\n \r\n {t('dataInstalacao')}\r\n \r\n {instalationDateText()}\r\n \r\n
\r\n
\r\n
\r\n {(state.groupSelected && state.additionalMachineParameters.length > 0) && (\r\n \r\n \r\n {verifyInfoAdditionalParameters(state.additionalMachineParameters)}\r\n \r\n \r\n )}\r\n \r\n {getEditDevicePermissions(devInfo) && (\r\n
\r\n editDevice()}\r\n variant=\"primary\"\r\n >\r\n {t('botaoEditar')}\r\n \r\n
\r\n )}\r\n
\r\n \r\n )}\r\n {(state.automationSelected && state.AUTOM_ID) && (\r\n \r\n \r\n
\r\n {state.AUTOM_ID.startsWith('DAM') && (\r\n \r\n )}\r\n {state.AUTOM_ID.startsWith('DUT') && (\r\n \r\n )}\r\n {state.AUTOM_ID.startsWith('DRI') && state.driInfo && (\r\n \r\n )}\r\n \r\n {getEditDevicePermissions(devInfo) && (\r\n
\r\n editDevice()}\r\n variant=\"primary\"\r\n >\r\n {t('editar')}\r\n \r\n
\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n {!state.automationSelected && (\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n )}\r\n {(state.automationSelected && state.AUTOM_ID) && (\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n )}\r\n
\r\n
\r\n ) || null)}\r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('AssetInfo', 'component')(AssetInfo);\r\n","import {\r\n useEffect,\r\n} from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\nimport {\r\n Select, Button, Loader, FormAsset,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport { colors } from 'styles/colors';\r\nimport { AssetLayout } from './AssetLayout';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { AxiosError } from 'axios';\r\n\r\ntype Asset = {\r\n index: number,\r\n name: string,\r\n installationLocation: string | null,\r\n datId: string|null,\r\n devId: string|null,\r\n roleId: number|null,\r\n role: string|null,\r\n type: string|null,\r\n brandName: string|null,\r\n model: string|null,\r\n refrigerationCapacity: string|null,\r\n ratedPower: string|null,\r\n refrigerationFluid: string|null,\r\n capacityMeasurementUnit: string|null,\r\n devClientAssetId: number|null,\r\n datIndex: number|null,\r\n devIdPersisted: string|null,\r\n assetId: number|null,\r\n};\r\n\r\nexport const EditAssetInfo = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ devId: string, indexId: string }>();\r\n const [state, render, setState] = useStateVar(() => ({\r\n devId: routeParams.devId,\r\n indexId: routeParams.indexId != null ? Number(routeParams.indexId) : undefined,\r\n isLoading: true,\r\n devInfo: null as null|(ApiResps['/clients/get-asset-info']['info']),\r\n formData: {\r\n CLIENT_ID_item: null as null|{ NAME: string, CLIENT_ID: number },\r\n UNIT_ID_item: null as null|{ UNIT_NAME: string, UNIT_ID: number },\r\n GROUP_ID_item: null as null|{ label: string, value: number, unit: number },\r\n MCHN_APPL_item: null as null|{ label: string, value: string },\r\n FLUID_TYPE_item: null as null|{ label: string, value: string },\r\n AST_TYPE_item: null as null|{ label: string, value: string, tags: string },\r\n MCHN_ENV_item: null as null|{ label: string, value: string, tags: string },\r\n MCHN_BRAND_item: null as null|{ label: string, value: string },\r\n CAPACITY_UNIT_item: null as null|{ value: string },\r\n MCHN_MODEL: '',\r\n AST_DESC: '',\r\n CAPACITY_PWR: '',\r\n MCHN_KW: '',\r\n GROUP_ID: null as number|null,\r\n UNIT_ID: null as number|null,\r\n CLIENT_ID: null as number|null,\r\n\r\n asset: {\r\n index: 0 as number,\r\n name: null as string|null,\r\n installationLocation: null as string | null,\r\n datId: null as string|null,\r\n devId: null as string|null,\r\n roleId: null as number|null,\r\n role: null as string|null,\r\n type: null as string|null,\r\n brandName: null as string|null,\r\n model: null as string|null,\r\n refrigerationCapacity: null as string|null,\r\n ratedPower: null as string|null,\r\n refrigerationFluid: null as string|null,\r\n capacityMeasurementUnit: null as string|null,\r\n devClientAssetId: null as number|null,\r\n datIndex: null as number|null,\r\n devIdPersisted: null as string|null,\r\n assetId: null as number|null,\r\n },\r\n },\r\n comboOpts: {\r\n yesNo: [\r\n {\r\n label: 'Sim', value: '1', valueN: 1, valueNinv: 0,\r\n },\r\n {\r\n label: 'Não', value: '0', valueN: 0, valueNinv: 1,\r\n },\r\n ] as { label: string, value: string, valueN: 0|1, valueNinv: 0|1 }[],\r\n capacUnits: [\r\n { label: 'TR', value: 'TR' },\r\n { label: 'BTU/hr', value: 'BTU/hr' },\r\n { label: 'kW', value: 'kW' },\r\n { label: 'HP', value: 'HP' },\r\n ],\r\n clients: [] as { NAME: string, CLIENT_ID: number }[],\r\n states: [] as { STATE_NAME: string, STATE_ID: string }[],\r\n cities: [] as { CITY_NAME: string, CITY_ID: string, STATE_ID: string }[],\r\n units: [] as { UNIT_NAME: string, UNIT_ID: number }[],\r\n groups: [] as { label: string, value: number, unit: number }[],\r\n envs: [] as { label: string, value: string }[],\r\n fluids: [] as { value: number, name: string, id: string, }[],\r\n types: [] as { value: number, name: string, id: string, }[],\r\n brands: [] as { value: number, name: string, id: string, }[],\r\n roles: [] as { value: number, name: string }[],\r\n },\r\n filtComboOpts: {\r\n groups: [] as { label: string, value: number, unit: number }[],\r\n envs: [] as { label: string, value: string }[],\r\n fluids: [] as { value: number, name: string, id: string, }[],\r\n types: [] as { value: number, name: string, id: string, }[],\r\n brands: [] as { value: number, name: string, id: string, }[],\r\n roles: [] as { value: number, name: string }[],\r\n },\r\n openModal: null as null|string,\r\n }));\r\n\r\n const { formData } = state;\r\n const { comboOpts } = state;\r\n\r\n async function getData() {\r\n try {\r\n const { info: devInfoData } = await apiCall('/clients/get-asset-info', { ASSET_ID: state.devId, DAT_ID: state.devId, DAT_INDEX: state.indexId });\r\n state.devInfo = devInfoData;\r\n\r\n await apiCall('/dev/dev-info-combo-options', {\r\n CLIENT_ID: formData.CLIENT_ID_item?.CLIENT_ID,\r\n fluids: true,\r\n types: true,\r\n brands: true,\r\n roles: true,\r\n applics: true,\r\n }).then(({\r\n types,\r\n brands,\r\n fluids,\r\n roles,\r\n }) => {\r\n state.comboOpts.brands = [];\r\n state.comboOpts.fluids = [];\r\n state.comboOpts.roles = [];\r\n state.comboOpts.types = [];\r\n types?.forEach((type, index) => { state.comboOpts.types.push({ value: index + 1, name: type.label, id: type.value }); });\r\n brands?.forEach((brand, index) => state.comboOpts.brands.push({ value: index + 1, name: brand.label, id: brand.value }));\r\n fluids?.forEach((fluid, index) => state.comboOpts.fluids.push({ value: index + 1, name: fluid.label, id: fluid.value }));\r\n roles?.forEach((role) => state.comboOpts.roles.push({ value: Number(role.value), name: role.label }));\r\n });\r\n\r\n formData.CLIENT_ID = devInfoData.CLIENT_ID || null;\r\n formData.UNIT_ID = devInfoData.UNIT_ID || null;\r\n formData.GROUP_ID = devInfoData.GROUP_ID || null;\r\n formData.asset.name = devInfoData.AST_DESC || '';\r\n formData.asset.installationLocation = devInfoData.INSTALLATION_LOCATION || '';\r\n formData.asset.datId = devInfoData.DAT_ID || '';\r\n formData.asset.devId = devInfoData.DEV_ID || '';\r\n formData.asset.roleId = devInfoData.AST_ROLE || null;\r\n formData.asset.role = devInfoData.AST_ROLE_NAME || '';\r\n formData.asset.type = devInfoData.AST_TYPE || '';\r\n formData.asset.brandName = devInfoData.MCHN_BRAND || '';\r\n formData.asset.model = devInfoData.MCHN_MODEL || '';\r\n formData.asset.refrigerationCapacity = devInfoData.CAPACITY_PWR?.toString() || '0';\r\n formData.asset.ratedPower = devInfoData.MCHN_KW?.toString() || '';\r\n formData.asset.refrigerationFluid = devInfoData.FLUID_TYPE || '';\r\n formData.asset.capacityMeasurementUnit = devInfoData.CAPACITY_UNIT || 'TR';\r\n formData.asset.devClientAssetId = devInfoData.DEV_CLIENT_ASSET_ID || null;\r\n formData.asset.datIndex = devInfoData.DAT_INDEX || null;\r\n formData.asset.devIdPersisted = devInfoData.DEV_ID || '';\r\n formData.asset.assetId = devInfoData.ASSET_ID;\r\n } catch (err) {\r\n console.log(err);\r\n alert(t('erro'));\r\n }\r\n setState({ isLoading: false });\r\n render();\r\n }\r\n useEffect(() => {\r\n getData();\r\n }, []);\r\n\r\n async function saveDevInfo() {\r\n try {\r\n if (!formData.asset.name) {\r\n alert(t('alertaNecessarioInformarNomeAtivos'));\r\n render();\r\n return;\r\n }\r\n\r\n const devIdChanged = formData.asset.devIdPersisted != null && formData.asset.devIdPersisted !== formData.asset.devId;\r\n if (devIdChanged) {\r\n // is new devId, so 'set-dac-info' old and new\r\n if (formData.asset.devIdPersisted?.startsWith('DAC')) {\r\n await apiCall('/dac/set-dac-info', { DAC_ID: formData.asset.devIdPersisted!, GROUP_ID: null });\r\n }\r\n }\r\n\r\n await apiCall('/clients/edit-asset', {\r\n ASSET_ID: formData.asset.assetId,\r\n DAT_ID: formData.asset.datId as string,\r\n AST_DESC: formData.asset.name,\r\n AST_TYPE: formData.asset.type,\r\n CAPACITY_PWR: formData.asset.refrigerationCapacity != null ? Number(formData.asset.refrigerationCapacity) : null,\r\n CAPACITY_UNIT: formData.asset.capacityMeasurementUnit,\r\n CLIENT_ID: formData.CLIENT_ID,\r\n FLUID_TYPE: formData.asset.refrigerationFluid,\r\n GROUP_ID: formData.GROUP_ID,\r\n MCHN_BRAND: formData.asset.brandName,\r\n MCHN_MODEL: formData.asset.model,\r\n UNIT_ID: formData.UNIT_ID,\r\n AST_ROLE: formData.asset.roleId,\r\n DEV_ID: formData.asset.devId,\r\n DAT_COUNT: formData.asset.index,\r\n OLD_DEV_ID: formData.asset.devIdPersisted,\r\n DEV_CLIENT_ASSET_ID: formData.asset.devClientAssetId,\r\n DAT_INDEX: formData.asset.datIndex,\r\n MCHN_KW: formData.asset.ratedPower != null ? Number(formData.asset.ratedPower) : null,\r\n INSTALLATION_LOCATION: formData.asset.installationLocation,\r\n UPDATE_MACHINE_RATED_POWER: true,\r\n UPDATE_MACHINE_COOLING_CAPACITY: true,\r\n });\r\n\r\n if (devIdChanged && formData.asset.devId && formData.asset.devId.includes('DAC')) {\r\n await apiCall('/dac/set-dac-info', { DAC_ID: formData.asset.devId, GROUP_ID: formData.GROUP_ID });\r\n }\r\n\r\n getData().catch(console.log);\r\n toast.success(t('sucessoSalvar'));\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n console.log(err);\r\n if (error.response?.status !== 500) {\r\n toast.error(error.response?.data);\r\n } else {\r\n toast.error(t('erro'));\r\n }\r\n }\r\n }\r\n\r\n async function fetchGroupsAndUnits(CLIENT_ID) {\r\n comboOpts.units = [];\r\n comboOpts.groups = [];\r\n if (!CLIENT_ID) return;\r\n\r\n const reqCombos = { CLIENT_ID, units: true, groups: true };\r\n\r\n const [\r\n combos,\r\n ] = await Promise.all([\r\n apiCall('/dev/dev-info-combo-options', reqCombos),\r\n ]);\r\n\r\n let units;\r\n if (combos.units) {\r\n units = combos.units.map((unit) => ({ UNIT_ID: unit.value, UNIT_NAME: unit.label }));\r\n }\r\n\r\n Object.assign(comboOpts, combos, { units });\r\n }\r\n\r\n function handleChangeAssets(assetsForm: Asset) {\r\n formData.asset = assetsForm;\r\n }\r\n\r\n function handleDeleteAsset(_assetIndex: number) {\r\n // do nothing\r\n }\r\n const { devInfo } = state;\r\n\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaEditar')}\r\n \r\n \r\n {state.isLoading && (\r\n
\r\n \r\n
\r\n )}\r\n {(!state.isLoading) && devInfo && (\r\n <>\r\n \r\n {t('botaoEditar')}\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nconst Text = styled.span`\r\n margin-left: 7px;\r\n`;\r\nconst TextLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n color: #5d5d5d;\r\n`;\r\nconst Title = styled.h1`\r\n font-size: 1.5em;\r\n color: ${colors.Grey400};\r\n`;\r\nconst CustomSelect = styled(Select)`\r\n margin-bottom: 20px;\r\n`;\r\nconst ContainerInfo = styled.div`\r\n display: flex;\r\n padding: 25px 0 0 0;\r\n height: auto;\r\n`;\r\nconst ContainerText = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-bottom: 30px;\r\n`;\r\nconst Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport default withTransaction('EditAssetInfo', 'component')(EditAssetInfo);\r\n","import { useHistory } from 'react-router-dom';\r\nimport { Header } from 'pages/Analysis/Header';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getUserProfile } from '../../../helpers/userProfile';\r\nimport { useState } from 'react';\r\n\r\nexport const AnalysisLayout = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n\r\n const links = [\r\n {\r\n title: t('unidades'),\r\n link: '/analise/unidades',\r\n },\r\n {\r\n title: t('maquinas'),\r\n link: '/analise/maquinas',\r\n },\r\n {\r\n title: t('ambientes'),\r\n link: '/analise/ambientes',\r\n },\r\n {\r\n title: t('energia'),\r\n link: '/analise/energia',\r\n },\r\n ];\r\n\r\n if (history.location.pathname.includes('/analise/programacao-dams')) {\r\n links.push({\r\n title: t('programacao'),\r\n link: history.location.pathname + history.location.search,\r\n });\r\n }\r\n\r\n if (!profile.permissions.isInstaller) {\r\n links.push({\r\n title: t('geolocalizacao'),\r\n link: '/analise/geolocalizacao',\r\n });\r\n }\r\n links.push({\r\n title: t('dispositivos'),\r\n link: '/analise/dispositivos',\r\n });\r\n links.push({\r\n title: t('utilitarios'),\r\n link: '/analise/utilitarios',\r\n });\r\n\r\n return (\r\n <>\r\n
\r\n \r\n );\r\n};\r\n\r\nexport const AnalysisLayoutGeneral = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const links = [\r\n {\r\n title: t('geral'),\r\n link: '/analise/geral',\r\n },\r\n {\r\n title: t('comparativo'),\r\n link: '/analise/comparativo',\r\n },\r\n {\r\n title: t('geolocalizacao'),\r\n link: '/analise/geolocalizacao',\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n
\r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { colors } from 'styles/colors';\r\n\r\nexport const Text = styled.p<{ isBold? }>(\r\n ({ isBold }) => `\r\n margin-bottom: ${isBold ? 0 : '1em'};\r\n margin-top: ${isBold ? '1em' : 0};\r\n color: ${isBold ? colors.Grey300 : colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n `,\r\n);\r\n\r\nconst getBackgroundColor = ({ disabled, isSelected }: { disabled?: boolean; isSelected?: boolean }): string => {\r\n if (disabled) return colors.White;\r\n return isSelected ? colors.Blue300 : colors.White;\r\n};\r\n\r\nconst getBorderColor = ({ disabled }: { disabled?: boolean }): string => (disabled ? colors.Grey200 : colors.Blue300);\r\n\r\nconst getTextColor = ({ disabled, isSelected }: { disabled?: boolean; isSelected?: boolean }): string => {\r\n if (disabled) return colors.Grey200;\r\n return isSelected ? colors.White : colors.Blue300;\r\n};\r\n\r\nexport const SelectDay = styled.div<{ isSelected, disabled }>(\r\n ({ isSelected, disabled }) => `\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n cursor: pointer;\r\n width: 48px;\r\n height: 32px;\r\n box-sizing: border-box;\r\n border-radius: 8px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n background-color: ${getBackgroundColor({ disabled, isSelected })};\r\n border: 1px solid ${getBorderColor({ disabled })};\r\n color: ${getTextColor({ disabled, isSelected })};\r\n `,\r\n);\r\n\r\nexport const ErrorMessage = styled.span`\r\n color: ${colors.Red};\r\n font-size: 0.75em;\r\n`;\r\n\r\nexport const ProgTable = styled.div`\r\n display: grid;\r\n grid-template-columns: 43px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nexport const ProgTableExc = styled.div`\r\n display: grid;\r\n grid-template-columns: 90px 1fr 60px;\r\n color: ${colors.Grey400};\r\n padding-top: 12px;\r\n`;\r\n\r\nexport const TextProgTabDay = styled.span`\r\n color: ${colors.Grey300};\r\n font-weight: bold;\r\n`;\r\n\r\nexport const TextProgTabMode = styled.div`\r\n display: grid;\r\n grid-template-columns: auto auto;\r\n`;\r\n\r\nexport const ItemTitle = styled.h3`\r\n margin-bottom: 0;\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Blue300};\r\n`;\r\n\r\nexport const ItemWrapper = styled.div`\r\n width: 100%;\r\n border-top: 2px solid ${colors.Grey050};\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n cursor: pointer;\r\n`;\r\n","import { ChangeEvent, useMemo } from 'react';\r\n\r\n// import { Link } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport {\r\n Button, Loader, Input, RadioButton, Checkbox,\r\n} from 'components';\r\nimport { getDayProgDesc } from 'helpers/scheduleData';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport {\r\n TrashIcon, EditIcon, CheckboxIcon, CloseIcon, AddIcon,\r\n} from 'icons';\r\nimport { apiCall } from 'providers';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\nimport {\r\n ErrorMessage, IconWrapper, ItemTitle, ProgTable, SelectDay, Text, TextProgTabDay, TextProgTabMode, ItemWrapper, ProgTableExc,\r\n} from './fullProgEditStyles';\r\n\r\nconst weekDays = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];\r\nconst dayName = {\r\n mon: 'Seg',\r\n tue: 'Ter',\r\n wed: 'Qua',\r\n thu: 'Qui',\r\n fri: 'Sex',\r\n sat: 'Sáb',\r\n sun: 'Dom',\r\n};\r\n\r\n// programmingData = {\r\n// mon: { permission: \"allow\", start: \"05:30\", end: \"20:00\" },\r\n// exceptions: {\r\n// \"2020-12-25\": { permission: \"forbid\", start: \"00:00\", end: \"23:59\" }\r\n// },\r\n// ventilation: 5,\r\n// }\r\n\r\nexport const FullProgEdit = (props: {\r\n fullProg: FullProg_v4|null\r\n onConfirm: (fullProg: FullProg_v4) => void\r\n onChange: (fullProg: FullProg_v4) => void\r\n readOnly?: boolean\r\n devType?: string\r\n devConfigOpts?: JSX.Element|null\r\n multiple?: boolean\r\n}): JSX.Element => {\r\n const { fullProg, onConfirm, onChange } = props;\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isSending: false,\r\n isLoading: false,\r\n activePage: 'List',\r\n editingVentilation: false,\r\n editingSetpointDut: false,\r\n submittingVentilation: false,\r\n ventTime: {} as { begin: string, end: string },\r\n programmingData: { week: {}, exceptions: {} } as FullProg_v4,\r\n formValues: {\r\n allowForbid: 'allow' as 'allow'|'forbid',\r\n start_time: '',\r\n end_time: '',\r\n ruleException: 'rule',\r\n selectedDays: [] as string[],\r\n exception_date: '',\r\n ventInput: '',\r\n setpointDut: 0,\r\n clearProg: false,\r\n },\r\n formErrors: {\r\n start_time: '',\r\n end_time: '',\r\n days: '',\r\n },\r\n holidaysList: [] as {\r\n DAT_FER: string\r\n DESC_FER: string\r\n dateDMY?: string\r\n checked?: boolean\r\n }[],\r\n };\r\n\r\n Promise.resolve().then(async () => {\r\n const { list } = await apiCall('/get-holidays-list', {});\r\n state.holidaysList = list || [];\r\n state.holidaysList.forEach((row) => { row.dateDMY = `${row.DAT_FER.substr(8, 2)}/${row.DAT_FER.substr(5, 2)}/${row.DAT_FER.substr(0, 4)}`; });\r\n }).catch(console.log);\r\n\r\n return state;\r\n });\r\n\r\n useMemo(() => {\r\n if (fullProg) {\r\n if (!fullProg.week) fullProg.week = {};\r\n if (!fullProg.exceptions) fullProg.exceptions = {};\r\n state.programmingData = { week: {}, exceptions: {} };\r\n const programmingData = state.programmingData;\r\n\r\n let ventilation = (fullProg.ventTime && Number(fullProg.ventTime.end || fullProg.ventTime.begin));\r\n if (ventilation) {\r\n programmingData.ventTime = { begin: ventilation, end: ventilation };\r\n } else {\r\n ventilation = 0;\r\n }\r\n state.formValues.ventInput = (ventilation && String(ventilation)) || '';\r\n\r\n if (fullProg.week.mon) state.programmingData.week.mon = { ...fullProg.week.mon };\r\n if (fullProg.week.tue) state.programmingData.week.tue = { ...fullProg.week.tue };\r\n if (fullProg.week.wed) state.programmingData.week.wed = { ...fullProg.week.wed };\r\n if (fullProg.week.thu) state.programmingData.week.thu = { ...fullProg.week.thu };\r\n if (fullProg.week.fri) state.programmingData.week.fri = { ...fullProg.week.fri };\r\n if (fullProg.week.sat) state.programmingData.week.sat = { ...fullProg.week.sat };\r\n if (fullProg.week.sun) state.programmingData.week.sun = { ...fullProg.week.sun };\r\n for (const [date, dayProg] of Object.entries(fullProg.exceptions || {})) {\r\n if (!state.programmingData.exceptions) state.programmingData.exceptions = {};\r\n state.programmingData.exceptions[date] = {\r\n ...dayProg,\r\n dateDMY: `${date.substr(8, 2)}/${date.substr(5, 2)}/${date.substr(0, 4)}`,\r\n };\r\n }\r\n }\r\n if (onChange) { onChange(state.programmingData); }\r\n }, [fullProg]);\r\n\r\n const { formValues } = state;\r\n const { formErrors } = state;\r\n const { programmingData } = state;\r\n\r\n function set_exception_date(v) { formValues.exception_date = v; formValues.clearProg = false; render(); }\r\n function set_allowForbid(v) { formValues.allowForbid = v; formValues.clearProg = false; render(); }\r\n function set_clearProg() { formValues.clearProg = true; render(); }\r\n\r\n function editDayProg(item, day) {\r\n state.editingVentilation = false;\r\n state.editingSetpointDut = false;\r\n formValues.allowForbid = (item && item.permission) || 'allow';\r\n formValues.start_time = (item && item.start) || '';\r\n formValues.end_time = (item && item.end) || '';\r\n if ((!day) || day.length === 'YYYY-MM-DD'.length) {\r\n formValues.exception_date = '';\r\n changeExceptionMode('exception');\r\n } else {\r\n formValues.selectedDays = day ? [day] : [];\r\n changeExceptionMode('rule');\r\n }\r\n state.activePage = 'Edit';\r\n render();\r\n }\r\n function removeProg(day) {\r\n if (!window.confirm('Tem certeza?')) return;\r\n if (!programmingData.exceptions) programmingData.exceptions = {};\r\n delete programmingData.exceptions[day];\r\n delete programmingData[day];\r\n delete programmingData.week[day];\r\n\r\n render();\r\n if (onChange) { onChange(programmingData); }\r\n }\r\n\r\n function handleSelectDay(day) {\r\n if (formValues.selectedDays.includes(day)) {\r\n formValues.selectedDays = formValues.selectedDays.filter((x) => x !== day);\r\n } else {\r\n formValues.selectedDays.push(day);\r\n }\r\n changeExceptionMode('rule');\r\n render();\r\n }\r\n\r\n function changeExceptionMode(newMode) {\r\n if (newMode === 'rule') {\r\n formValues.ruleException = 'rule';\r\n formValues.exception_date = '';\r\n } else {\r\n formValues.ruleException = 'exception';\r\n formValues.selectedDays = [];\r\n for (const row of state.holidaysList) {\r\n row.checked = false;\r\n }\r\n }\r\n formErrors.days = '';\r\n }\r\n\r\n function validateForm() {\r\n let start_index = null as null|number;\r\n if (!/^\\d\\d:\\d\\d$/.test(formValues.start_time) && !formValues.clearProg) {\r\n formErrors.start_time = 'O campo de tempo inicial é obrigatório';\r\n } else {\r\n const horas = Number(formValues.start_time.substr(0, 2));\r\n const minutos = Number(formValues.start_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n formErrors.start_time = 'Valor inválido';\r\n } else {\r\n formErrors.start_time = '';\r\n start_index = horas * 60 + minutos;\r\n }\r\n }\r\n if (!/^\\d\\d:\\d\\d$/.test(formValues.end_time) && !formValues.clearProg) {\r\n formErrors.end_time = 'O campo de tempo final é obrigatório';\r\n } else {\r\n const horas = Number(formValues.end_time.substr(0, 2));\r\n const minutos = Number(formValues.end_time.substr(3, 2));\r\n if (!(horas >= 0 && horas <= 23 && minutos >= 0 && minutos <= 59)) {\r\n formErrors.end_time = 'Valor inválido';\r\n } else {\r\n const end_index = horas * 60 + minutos;\r\n if (start_index != null && !(end_index >= start_index)) {\r\n formErrors.end_time = 'Valor inválido';\r\n } else {\r\n formErrors.end_time = '';\r\n }\r\n }\r\n }\r\n if (formValues.ruleException === 'rule') {\r\n if (!formValues.selectedDays.length) {\r\n formErrors.days = 'É necessário selecionar no mínimo um dia';\r\n } else {\r\n formErrors.days = '';\r\n }\r\n } else if (formValues.ruleException === 'exception') {\r\n const selectedHoliday = state.holidaysList.some((x) => x.checked);\r\n if ((formValues.exception_date) && !/^\\d\\d\\/\\d\\d\\/\\d\\d\\d\\d$/.test(formValues.exception_date)) {\r\n formErrors.days = 'Data inválida';\r\n } else if ((!selectedHoliday) && !/^\\d\\d\\/\\d\\d\\/\\d\\d\\d\\d$/.test(formValues.exception_date)) {\r\n formErrors.days = 'É necessário escolher uma data';\r\n } else {\r\n formErrors.days = '';\r\n }\r\n }\r\n render();\r\n return !(formErrors.start_time || formErrors.end_time || formErrors.days);\r\n }\r\n\r\n async function saveDayProg() {\r\n try {\r\n if (!validateForm()) return;\r\n const dayProg = {\r\n permission: formValues.allowForbid,\r\n start: formValues.start_time,\r\n end: formValues.end_time,\r\n clearProg: props.multiple ? formValues.clearProg : undefined,\r\n };\r\n if (props.multiple) {\r\n if (formValues.clearProg) {\r\n for (const day of formValues.selectedDays) {\r\n programmingData[day] = dayProg;\r\n programmingData.week[day] = dayProg;\r\n }\r\n }\r\n }\r\n if (formValues.ruleException === 'rule') {\r\n for (const day of formValues.selectedDays) {\r\n programmingData[day] = dayProg;\r\n programmingData.week[day] = dayProg;\r\n }\r\n }\r\n if (formValues.ruleException === 'exception') {\r\n const dates = state.holidaysList.filter((x) => x.checked).map((x) => x.dateDMY!);\r\n if (formValues.exception_date) dates.push(formValues.exception_date);\r\n for (const dateDMY of dates) {\r\n const date = `${dateDMY.substr(6, 4)}-${dateDMY.substr(3, 2)}-${dateDMY.substr(0, 2)}`;\r\n if (!programmingData.exceptions) programmingData.exceptions = {};\r\n programmingData.exceptions[date] = { ...dayProg, dateDMY };\r\n }\r\n }\r\n state.activePage = 'List';\r\n render();\r\n if (onChange) { onChange(programmingData); }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível adicionar a programação.');\r\n }\r\n }\r\n\r\n async function handleSubmit() {\r\n try {\r\n await onConfirm(programmingData);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível salvar a programação.');\r\n }\r\n }\r\n\r\n function saveVentilation() {\r\n const ventilation = (formValues.ventInput && Number(formValues.ventInput)) || 0;\r\n formValues.ventInput = (ventilation && String(ventilation)) || '';\r\n if (state.ventTime && props.multiple) {\r\n programmingData.ventTime = { begin: Number(state.ventTime.begin) || 0, end: Number(state.ventTime.end) || 0 };\r\n } else if (!state.ventTime && props.multiple) {\r\n delete programmingData.ventTime;\r\n state.ventTime = { begin: '0', end: '0' };\r\n } else {\r\n programmingData.ventTime = { begin: ventilation, end: ventilation };\r\n }\r\n\r\n state.editingVentilation = false;\r\n render();\r\n if (onChange) { onChange(programmingData); }\r\n }\r\n\r\n const exceptionsItems = programmingData.exceptions as { [day: string]: DayProg&{ dateDMY: string } };\r\n\r\n const Ventilacao = (\r\n
\r\n \r\n Ventilação\r\n \r\n {\r\n (state.submittingVentilation)\r\n ? (\r\n \r\n \r\n \r\n \r\n \r\n )\r\n : (state.editingVentilation)\r\n ? (\r\n
\r\n Habilitar tempo de ventilação de:\r\n       \r\n { (props.multiple)\r\n ? (\r\n
\r\n Início\r\n       \r\n ) => setState({ ventTime: { begin: event.target.value, end: state.ventTime.end } })} />\r\n       \r\n Fim\r\n       \r\n ) => setState({ ventTime: { begin: state.ventTime.begin, end: event.target.value } })} />\r\n       \r\n
\r\n )\r\n : (\r\n ) => setState({ ventTime: { begin: event.target.value, end: state.ventTime.end } })} />\r\n )}\r\n \r\n \r\n \r\n       \r\n setState({ editingVentilation: false })}>\r\n \r\n \r\n
\r\n )\r\n : (\r\n
\r\n {(programmingData.ventTime && (programmingData.ventTime.begin || programmingData.ventTime.end)) ? (\r\n <>\r\n \r\n {(programmingData.ventTime.begin)}\r\n {' '}\r\n minuto(s) após horário permitido inicial e\r\n {' '}\r\n {(programmingData.ventTime.end)}\r\n {' '}\r\n minuto(s) antes do horário permitido final\r\n \r\n \r\n ) : (\r\n desabilitado\r\n )}\r\n {(!props.readOnly) && (\r\n
\r\n {(programmingData.ventTime && (programmingData.ventTime.begin || programmingData.ventTime.end)) ? (\r\n // @ts-ignore\r\n { state.ventTime = null; saveVentilation(); }}>\r\n \r\n \r\n ) :
 
}\r\n { state.editingVentilation = true; render(); }}>\r\n \r\n \r\n
\r\n )}\r\n
\r\n )\r\n }\r\n
\r\n );\r\n\r\n const EditProg = (\r\n \r\n
\r\n set_allowForbid('allow')} />\r\n           \r\n set_allowForbid('forbid')} />\r\n           \r\n {props.multiple && (\r\n set_clearProg()} />\r\n )}\r\n {/* null} /> */}\r\n
\r\n \r\n \r\n { formValues.start_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n { formValues.end_time = e.target.value; render(); }}\r\n />\r\n \r\n \r\n { formValues.start_time = '00:00'; formValues.end_time = '23:59'; render(); }}\r\n />\r\n \r\n \r\n Dias\r\n \r\n {(formValues.ruleException === 'exception')\r\n ? (\r\n <>\r\n \r\n { set_exception_date(e.target.value); }}\r\n disabled={formValues.ruleException !== 'exception'}\r\n />\r\n \r\n {(state.holidaysList.length > 0)\r\n && (\r\n \r\n {state.holidaysList.map((row) => (\r\n \r\n { row.checked = !row.checked; render(); }} style={{ padding: '3px' }} />\r\n {row.dateDMY}\r\n {' '}\r\n -\r\n {row.DESC_FER}\r\n \r\n ))}\r\n \r\n )}\r\n \r\n )\r\n : (\r\n <>\r\n \r\n {weekDays.map((day) => (\r\n { handleSelectDay(day); }}\r\n >\r\n {dayName[day]}\r\n \r\n ))}\r\n \r\n \r\n )}\r\n \r\n {formErrors.days && {formErrors.days}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n\r\n const ProgOverview = (\r\n
\r\n \r\n \r\n Funcionamento\r\n {weekDays.map((day) => (\r\n \r\n {dayName[day]}\r\n {getDayProgDesc(programmingData[day])}\r\n
\r\n {(programmingData[day]) ? (\r\n <>\r\n { removeProg(day); }}>\r\n \r\n \r\n \r\n ) :
 
}\r\n { editDayProg(programmingData[day], day); }}>\r\n \r\n \r\n
\r\n
\r\n ))}\r\n
\r\n \r\n Exceções\r\n {Object.keys(programmingData.exceptions || {}).map((day) => (\r\n \r\n {exceptionsItems[day].dateDMY}\r\n {getDayProgDesc(programmingData.exceptions![day])}\r\n
\r\n removeProg(day)}>\r\n \r\n \r\n
\r\n
\r\n ))}\r\n { editDayProg(null, null); }}>\r\n \r\n \r\n
\r\n
\r\n { (!props.devType || (props.devType === 'DAM')) && (\r\n \r\n {Ventilacao}\r\n \r\n )}\r\n { props.devConfigOpts && (\r\n \r\n { props.devConfigOpts }\r\n \r\n )}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n  \r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n {state.isLoading ? (\r\n \r\n \r\n \r\n \r\n \r\n ) : (\r\n
\r\n {(state.activePage === 'List') && ProgOverview}\r\n {(state.activePage === 'Edit') && EditProg}\r\n
\r\n )}\r\n
\r\n
\r\n \r\n );\r\n};\r\n","import { useState, useEffect } from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n EmptyWrapper, Loader,\r\n} from 'components';\r\nimport { AnalysisLayout } from 'pages/Analysis/AnalysisLayout';\r\nimport { apiCall } from 'providers';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nfunction serializeDayProg(dayProg: DayProg|null|undefined) {\r\n if (!dayProg) return '';\r\n return `${dayProg.permission};${dayProg.start}-${dayProg.end}`;\r\n}\r\nfunction serializeFullProg2(fullProg: FullProg_v4) {\r\n const descWeekList = [] as string[];\r\n descWeekList.push(`[mon:${serializeDayProg(fullProg.week && fullProg.week.mon)}]`);\r\n descWeekList.push(`[tue:${serializeDayProg(fullProg.week && fullProg.week.tue)}]`);\r\n descWeekList.push(`[wed:${serializeDayProg(fullProg.week && fullProg.week.wed)}]`);\r\n descWeekList.push(`[thu:${serializeDayProg(fullProg.week && fullProg.week.thu)}]`);\r\n descWeekList.push(`[fri:${serializeDayProg(fullProg.week && fullProg.week.fri)}]`);\r\n descWeekList.push(`[sat:${serializeDayProg(fullProg.week && fullProg.week.sat)}]`);\r\n descWeekList.push(`[sun:${serializeDayProg(fullProg.week && fullProg.week.sun)}]`);\r\n const fullDescWeek = descWeekList.join('');\r\n\r\n let fullDescVent = `[ventilation-begin:${(fullProg.ventTime && fullProg.ventTime.begin) || ''}]`;\r\n fullDescVent += `[ventilation-end:${(fullProg.ventTime && fullProg.ventTime.end) || ''}]`;\r\n\r\n const descExceptList = [] as string[];\r\n for (const [day, prog] of Object.entries(fullProg.exceptions || {})) {\r\n descExceptList.push(`[${day}:${serializeDayProg(prog)}]`);\r\n }\r\n const fullDescExcept = descExceptList.sort().join('');\r\n return {\r\n fullDescWeek, fullDescVent, fullDescExcept, descWeekList, descExceptList,\r\n };\r\n}\r\nexport function serializeFullProg(fullProg: FullProg_v4) {\r\n let fullDesc = '';\r\n fullDesc += `[mon:${serializeDayProg(fullProg.week && fullProg.week.mon)}]`;\r\n fullDesc += `[tue:${serializeDayProg(fullProg.week && fullProg.week.tue)}]`;\r\n fullDesc += `[wed:${serializeDayProg(fullProg.week && fullProg.week.wed)}]`;\r\n fullDesc += `[thu:${serializeDayProg(fullProg.week && fullProg.week.thu)}]`;\r\n fullDesc += `[fri:${serializeDayProg(fullProg.week && fullProg.week.fri)}]`;\r\n fullDesc += `[sat:${serializeDayProg(fullProg.week && fullProg.week.sat)}]`;\r\n fullDesc += `[sun:${serializeDayProg(fullProg.week && fullProg.week.sun)}]`;\r\n fullDesc += `[ventilation-begin:${(fullProg.ventTime && fullProg.ventTime.begin) || ''}]`;\r\n fullDesc += `[ventilation-end:${(fullProg.ventTime && fullProg.ventTime.end) || ''}]`;\r\n for (const [day, prog] of Object.entries(fullProg.exceptions || {})) {\r\n fullDesc += `[${day}:${serializeDayProg(prog)}]`;\r\n }\r\n return fullDesc;\r\n}\r\n\r\nexport const ScheduleCheck = () => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const [, stateChanged] = useState({});\r\n function render() { stateChanged({}); }\r\n const [state] = useState(() => {\r\n const state = {\r\n changed() { stateChanged({}); },\r\n set(obj) { Object.assign(state, obj); stateChanged({}); },\r\n isLoading: false,\r\n damsList: [] as {\r\n damId: string\r\n currentS: { fullDescWeek: string, fullDescVent: string, fullDescExcept: string, descWeekList: string[], descExceptList: string[] }\r\n desiredS: { fullDescWeek: string, fullDescVent: string, fullDescExcept: string, descWeekList: string[], descExceptList: string[] }\r\n }[],\r\n };\r\n\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n Promise.resolve().then(() => {\r\n fetchListFromServer();\r\n });\r\n }, []);\r\n\r\n async function fetchListFromServer() {\r\n state.isLoading = true;\r\n render();\r\n try {\r\n const { list } = await apiCall('/dam/get-sched-list-v2', {});\r\n state.damsList = list.map((damInf) => ({\r\n damId: damInf.damId,\r\n currentS: serializeFullProg2(damInf.current),\r\n desiredS: serializeFullProg2(damInf.desired),\r\n }));\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n state.isLoading = false;\r\n render();\r\n }\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaAutomacao')}\r\n \r\n \r\n \r\n {state.isLoading\r\n ? (\r\n \r\n \r\n \r\n )\r\n : (\r\n <>\r\n {(state.damsList.length === 0)\r\n && (\r\n
\r\n {t('nenhumDam')}\r\n
\r\n )}\r\n
\r\n {state.damsList.map((dam) => {\r\n if ((dam.currentS.fullDescWeek + dam.currentS.fullDescWeek + dam.currentS.fullDescExcept)\r\n === (dam.desiredS.fullDescWeek + dam.desiredS.fullDescWeek + dam.desiredS.fullDescExcept)) {\r\n return null;\r\n }\r\n return (\r\n <>\r\n {dam.damId}\r\n\r\n \r\n {(dam.currentS.fullDescWeek === dam.desiredS.fullDescWeek)\r\n ? t('igual')\r\n : dam.currentS.descWeekList.map((day) =>
{day}
)}\r\n
\r\n \r\n {(dam.currentS.fullDescWeek === dam.desiredS.fullDescWeek)\r\n ? ''\r\n : dam.desiredS.descWeekList.map((day) =>
{day}
)}\r\n
\r\n\r\n \r\n {(dam.currentS.fullDescVent === dam.desiredS.fullDescVent) ? t('igual') : dam.currentS.fullDescVent}\r\n \r\n \r\n {(dam.currentS.fullDescVent === dam.desiredS.fullDescVent) ? '' : dam.desiredS.fullDescVent}\r\n \r\n\r\n \r\n {(dam.currentS.fullDescExcept === dam.desiredS.fullDescExcept)\r\n ? t('igual')\r\n : dam.currentS.descExceptList.length\r\n ? dam.currentS.descExceptList.map((day) =>
{day}
)\r\n : `(${t('nenhuma')})`}\r\n
\r\n \r\n {(dam.currentS.fullDescExcept === dam.desiredS.fullDescExcept)\r\n ? ''\r\n : dam.desiredS.descExceptList.length\r\n ? dam.desiredS.descExceptList.map((day) =>
{day}
)\r\n : `(${t('nenhuma')})`}\r\n
\r\n \r\n );\r\n })}\r\n
\r\n \r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nconst ElevatedCard = styled.div`\r\n padding: 32px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\nconst GridCell = styled.div`\r\n border: 1px solid grey;\r\n`;\r\n\r\nexport default withTransaction('ScheduleCheck', 'component')(ScheduleCheck);\r\n","import { useState } from 'react';\r\n\r\nimport queryString from 'query-string';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n EmptyWrapper, Loader,\r\n} from 'components';\r\nimport { AnalysisLayout } from 'pages/Analysis/AnalysisLayout';\r\nimport { apiCall } from 'providers';\r\nimport { FullProg_v4 } from 'providers/types';\r\n\r\nimport { FullProgEdit } from '../SchedulesModals/FullProgEdit';\r\nimport { serializeFullProg } from './ScheduleCheck';\r\nimport { useTranslation } from 'react-i18next';\r\n// TODO: Botão de atualizar\r\n\r\nexport const BatchSchedule = () => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const [, stateChanged] = useState({});\r\n function render() { stateChanged({}); }\r\n const [state] = useState(() => {\r\n const state = {\r\n changed() { stateChanged({}); },\r\n set(obj) { Object.assign(state, obj); stateChanged({}); },\r\n isLoading: false,\r\n initialProg: null as null|FullProg_v4,\r\n expectedProgS: null as null|string,\r\n damsList: [] as { damId: string; currentS: string; }[],\r\n };\r\n\r\n Promise.resolve().then(() => {\r\n fetchListFromServer();\r\n });\r\n\r\n return state;\r\n });\r\n\r\n async function fetchListFromServer() {\r\n state.isLoading = true;\r\n render();\r\n try {\r\n const { ids } = queryString.parse(history.location.search);\r\n const damIds = (ids && (ids as string).split('*')) || [];\r\n const { list } = await apiCall('/dam/get-sched-list-v2', { damIds });\r\n state.damsList = list.map((damInf) => {\r\n if ((!state.initialProg) && (damInf.desired)) {\r\n state.initialProg = damInf.desired;\r\n }\r\n return {\r\n damId: damInf.damId,\r\n currentS: serializeFullProg(damInf.current),\r\n };\r\n });\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n state.isLoading = false;\r\n render();\r\n }\r\n\r\n function sendSchedule(sched) {\r\n state.expectedProgS = serializeFullProg(sched);\r\n render();\r\n\r\n Promise.resolve().then(async () => {\r\n try {\r\n const { ids } = queryString.parse(history.location.search);\r\n const damIds = (ids && (ids as string).split('*')) || [];\r\n state.isLoading = true;\r\n render();\r\n await apiCall('/set-full-sched-batch-v2', {\r\n ...sched,\r\n damIds,\r\n });\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n await fetchListFromServer();\r\n });\r\n }\r\n\r\n function updateSchedule(sched) {\r\n state.expectedProgS = serializeFullProg(sched);\r\n render();\r\n }\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaAutomacao')}\r\n \r\n \r\n {(state.damsList.length > 0)\r\n && (\r\n
\r\n \r\n \r\n \r\n
\r\n )}\r\n \r\n {state.isLoading ? (\r\n \r\n \r\n \r\n ) : (\r\n <>\r\n

\r\n \r\n {/*

{state.expectedProgS}
*/}\r\n

\r\n {(state.damsList.length === 0)\r\n && (\r\n
\r\n {t('nenhumDam')}\r\n
\r\n )}\r\n
\r\n {state.damsList.map((dam) => (\r\n
\r\n {dam.damId}\r\n {(dam.currentS === state.expectedProgS) ? 'igual' : 'diferente'}\r\n {/* {dam.currentS.replace(/\\]\\[/g, '] [')} */}\r\n
\r\n ))}\r\n
\r\n \r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nconst ElevatedCard = styled.div`\r\n padding: 32px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n","import Checkbox from '@material-ui/core/Checkbox';\r\nimport moment, { Moment } from 'moment';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n ResponsiveContainer,\r\n CartesianGrid,\r\n XAxis,\r\n YAxis,\r\n ReferenceArea,\r\n Label,\r\n Tooltip,\r\n LineChart,\r\n Line,\r\n} from 'recharts';\r\nimport DefaultTooltipContent from 'recharts/lib/component/DefaultTooltipContent';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { SketchPicker } from 'react-color';\r\nimport '~/assets/css/ReactTags.css';\r\nimport { t } from 'i18next';\r\nimport {\r\n Loader, Card, ModalWindow,\r\n ModalLoading,\r\n} from 'components';\r\nimport * as axisCalc from 'helpers/axisCalc';\r\nimport { getDaySched } from 'helpers/scheduleData';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { ApiResps, apiCall, apiCallDownload } from 'providers';\r\nimport { colors } from 'styles/colors';\r\nimport {\r\n Text,\r\n BtnExport,\r\n ZoomOut,\r\n OptionColor,\r\n ModalContent,\r\n ColorChangeBtnWithHover,\r\n ColorChangeBtnSvg,\r\n CloseBtnIcon,\r\n} from './styles';\r\nimport { addDays_YMD } from '~/helpers/formatTime';\r\nimport { NoGraph } from '../NoGraph';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { TListFilters, UtilFilter } from '~/pages/Analysis/Utilities/UtilityFilter';\r\nimport { Trans } from 'react-i18next';\r\n\r\ninterface GroupChartData {\r\n lineId: string;\r\n data: { y: (number|null)[], L?: (number|null)[] };\r\n isL1: boolean;\r\n tempLimits?: [number, number];\r\n humLimits?: [number, number];\r\n co2Limits?: [number, number];\r\n powerLimits?: [number, number];\r\n color?: string;\r\n axisId?: string;\r\n distance?: string;\r\n name?: string;\r\n type?: string;\r\n showLine?: boolean\r\n}\r\nexport interface GroupInfo {\r\n GROUP_ID: string;\r\n GROUP_NAME: string;\r\n checked: boolean;\r\n devs?: {\r\n DAC_ID?: string;\r\n DEV_ID?: string;\r\n DRI_ID?: string;\r\n DMT_CODE?: string;\r\n DAL_CODE?: string;\r\n VARS?: string;\r\n PLACEMENT?: string;\r\n isVav?: boolean;\r\n }[];\r\n gData: GroupChartData[];\r\n type: string;\r\n color: string;\r\n unitId?: number;\r\n CD_ESTACAO?: string;\r\n displayColorPicker?: boolean;\r\n DISTANCIA_EM_KM?: string;\r\n vars?: string;\r\n ENERGY_DEVICE_ID?: string;\r\n SERIAL?: string;\r\n MANUFACTURER?: string;\r\n MODEL?: string;\r\n humidity?: boolean;\r\n temperature?: boolean;\r\n eco2?: boolean;\r\n}\r\n\r\n// https://www.colourlovers.com/palettes\r\n// https://colorbrewer2.org/\r\n// https://blog.graphiq.com/finding-the-right-color-palettes-for-data-visualizations-fcd4e707a283\r\nconst colorList = [\r\n '#e6194B',\r\n '#287833',\r\n '#f032e6',\r\n '#3259e6',\r\n '#f58231',\r\n '#847c7c',\r\n '#347069',\r\n '#0f8aa6',\r\n '#800000',\r\n '#000075',\r\n '#A16B00',\r\n '#8719a9',\r\n '#565655',\r\n '#6a9400',\r\n '#3668A3',\r\n '#554694',\r\n '#A10A00',\r\n '#693c0e',\r\n '#9d847c',\r\n '#AB00A2',\r\n];\r\n\r\nconst KeyCodes = {\r\n comma: 188,\r\n slash: 191,\r\n enter: [10, 13],\r\n};\r\n\r\nconst delimiters = [...KeyCodes.enter, KeyCodes.comma, KeyCodes.slash];\r\n\r\nexport const CustomYTick = ({\r\n x, y, payload, anchor, namedTicks, unitProps,\r\n}: any) => {\r\n let text = payload.value == null ? '' : payload.value.toString();\r\n const payloadValue = text;\r\n\r\n if (namedTicks && namedTicks[text]) {\r\n text = namedTicks[text];\r\n }\r\n\r\n let unit = '';\r\n\r\n switch (unitProps) {\r\n case 'temp':\r\n unit = ' °C';\r\n break;\r\n case 'hum':\r\n unit = ' %';\r\n break;\r\n case 'kw':\r\n unit = ' Kw';\r\n break;\r\n case 'co2':\r\n unit = ' ppm';\r\n }\r\n\r\n if (namedTicks[payloadValue]) {\r\n unit = '';\r\n }\r\n\r\n return (\r\n \r\n \r\n {text + unit}\r\n \r\n \r\n );\r\n};\r\n\r\nconst CustomPowerTick = ({\r\n x, y, payload, anchor,\r\n}: any) => {\r\n const text = payload.value < 0 ? '' : payload.value;\r\n return (\r\n \r\n \r\n {`${text}Kw`}\r\n \r\n \r\n );\r\n};\r\n\r\nexport function tickXLabelFormaterHour(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const sign = hour - 24 * numDays < 0 ? '-' : '';\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const mm = Math.floor((Math.abs(hour) * 60) % 60);\r\n return `${'\\n'} ${sign}${String(hh).padStart(2, '0')}:${String(mm).padStart(\r\n 2,\r\n '0',\r\n )}`;\r\n}\r\n\r\nexport const renderQuarterTickHour = (tickProps: any) => {\r\n const { x, y, payload } = tickProps;\r\n const { value } = payload;\r\n\r\n return (\r\n \r\n {`${tickXLabelFormaterHour(value)}`}\r\n\r\n \r\n );\r\n};\r\n\r\ninterface ComponentProps {\r\n ambientes: {\r\n DEV_ID: string;\r\n ROOM_NAME: string;\r\n lineColor?: string;\r\n temperature?: number | string;\r\n eCO2?: number | string;\r\n VARS?: string;\r\n PLACEMENT?: string;\r\n }[];\r\n conjuntos: {\r\n groupId: number;\r\n name: string;\r\n dacs: {\r\n DAC_ID: string;\r\n DAC_NAME: string;\r\n }[];\r\n dris: {\r\n DRI_ID: string;\r\n }[];\r\n lineColor?: string;\r\n }[];\r\n utilitarios?: {\r\n ID: number\r\n TYPE: string\r\n NAME: string\r\n PORT: number\r\n FEEDBACK: number\r\n DMT_CODE: string\r\n DAL_CODE: string\r\n }[];\r\n weatherStations?: {\r\n CD_ESTACAO: string;\r\n DC_NOME: string;\r\n DISTANCIA_EM_KM?: string;\r\n }[];\r\n unitId: number;\r\n unitName: string;\r\n includePower: boolean;\r\n includeEnergy?: ApiResps['/energy/get-energy-list']['list'];\r\n L1only?: boolean;\r\n splitLcmp?: boolean;\r\n height?: number;\r\n temperatureLimits: null | {\r\n workPeriods: { [day: string]: string };\r\n workPeriodExceptions: { [day: string]: string };\r\n TUSEMAX: number;\r\n TUSEMIN: number;\r\n };\r\n unitCoordinate?: {\r\n lat: string | null;\r\n lon: string | null;\r\n }\r\n}\r\n\r\ntype Truthy = T extends false | '' | 0 | null | undefined ? never : T; // from lodash\r\n\r\nfunction truthy(value: T): value is Truthy {\r\n return !!value;\r\n}\r\n\r\nexport const EnvGroupAnalysis = (props: ComponentProps): JSX.Element => {\r\n const {\r\n ambientes,\r\n conjuntos,\r\n utilitarios,\r\n unitId,\r\n unitName,\r\n includePower,\r\n includeEnergy,\r\n L1only,\r\n height,\r\n temperatureLimits,\r\n splitLcmp,\r\n unitCoordinate,\r\n } = props;\r\n\r\n const [state, render, setState] = useStateVar({\r\n date: null as Moment | null,\r\n grupos: {} as { [group: string]: GroupInfo },\r\n loadingData: false as boolean,\r\n exportLoading: false as boolean,\r\n selectedVars: [] as GroupChartData[],\r\n search: [] as { id: string; text: string }[],\r\n trooms: [] as GroupInfo[],\r\n l1s: [] as GroupInfo[],\r\n tambs: [] as GroupInfo[],\r\n powers: [] as GroupInfo[],\r\n utilities: [] as GroupInfo[],\r\n troomsOpened: true as boolean,\r\n l1sOpened: true as boolean,\r\n tambsOpened: true as boolean,\r\n powersOpened: true as boolean,\r\n utilitiesOpened: true as boolean,\r\n troomsFiltered: [] as { name: string; value: string, icon: JSX.Element }[],\r\n l1sFiltered: [] as { name: string; value: string }[],\r\n tambsFiltered: [] as { name: string; value: string }[],\r\n powersFiltered: [] as { name: string; value: string }[],\r\n tInmetFiltered: [] as { name: string; value: string }[],\r\n utilitiesFiltered: [] as { name: string; value: string }[],\r\n tInmet: [] as GroupInfo[],\r\n selectedTrooms: [] as string[],\r\n selectedTambs: [] as string[],\r\n selectedPowers: [] as string[],\r\n selectedTInmets: [] as string[],\r\n selectedL1s: [] as string[],\r\n selectedUtilities: []as string[],\r\n allCheck: false as boolean,\r\n isSelected: false as boolean,\r\n axisDataLimits: {} as {\r\n minTval?: number;\r\n maxTval?: number;\r\n minPval?: number;\r\n maxPval?: number;\r\n },\r\n axisInfo: {\r\n L1start: null,\r\n tempLimits: [-15, 40],\r\n tempTicks: [-10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40],\r\n humLimits: [0, 100],\r\n humTicks: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],\r\n powerLimits: [-15, 40],\r\n powerTicks: [0, 5, 10, 15, 20, 25, 30, 35, 40],\r\n co2Limits: [0, 3600],\r\n co2Ticks: [\r\n 0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 3600,\r\n ],\r\n } as {\r\n L1start: number | null;\r\n tempLimits: number[];\r\n tempTicks: number[];\r\n powerLimits: number[];\r\n powerTicks: number[];\r\n co2Limits: number[];\r\n co2Ticks: number[];\r\n },\r\n boolTicksNames: null as { [v: string]: string } | null,\r\n displayColorPicker: false as boolean,\r\n useMinGraphData: null as { x: number; y: number }[] | null | undefined,\r\n useMaxGraphData: null as { x: number; y: number }[] | null | undefined,\r\n refAreaLeft: null as null | number,\r\n refAreaRight: null as null | number,\r\n commonX: [] as number[],\r\n xDomain: null as null | [number, number],\r\n xTicks: [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24] as number[],\r\n numDays: 1 as number,\r\n multiDays: false,\r\n selectedTimeRange: null as string | null,\r\n startDate: null as Moment | null,\r\n endDate: null as Moment | null,\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n focusedInput: null as 'endDate' | 'startDate' | null,\r\n focused: false,\r\n isModalOpen: false,\r\n weatherStationsData: {} as {\r\n [key: string]: {\r\n date: string;\r\n temperatures: { y: number[] };\r\n tempLimits: number[];\r\n distance?: string;\r\n }\r\n },\r\n });\r\n verifyExternalProps();\r\n\r\n const listFilters: TListFilters[] = [\r\n 'periodo',\r\n 'dataNew',\r\n 'ambiente',\r\n 'maquina',\r\n 'temperaturaExterna',\r\n 'temperaturaExternaMeteorologica',\r\n 'utilitario',\r\n 'potenciaAtiva',\r\n ];\r\n\r\n function handleCommonX() {\r\n const commonX = [] as number[];\r\n let xInsert = 0;\r\n while (xInsert <= state.numDays * 24) {\r\n commonX.push(xInsert);\r\n xInsert += (0.00138888888 * (state.numDays * state.numDays));\r\n }\r\n return commonX;\r\n }\r\n\r\n function getTemperatureLimitLines(dayYMD: string | null) {\r\n if (!temperatureLimits) return;\r\n if (!temperatureLimits.workPeriods) return;\r\n if (!dayYMD) return;\r\n const pData = getDaySched(\r\n temperatureLimits.workPeriods,\r\n temperatureLimits.workPeriodExceptions,\r\n dayYMD,\r\n );\r\n if (pData.isDefault) return;\r\n if (pData.type !== 'enabled') return;\r\n\r\n const indexIni = (Number(pData.startHM.substring(0, 2)) * 60\r\n + Number(pData.startHM.substring(3, 5)) * 1)\r\n / 60;\r\n const indexEnd = (Number(pData.endHM.substring(0, 2)) * 60\r\n + Number(pData.endHM.substring(3, 5)) * 1)\r\n / 60;\r\n let useMaxGraphData: { x: number; y: number }[] | null = null;\r\n if (temperatureLimits.TUSEMAX != null) {\r\n useMaxGraphData = [\r\n { x: indexIni, y: temperatureLimits.TUSEMAX },\r\n { x: indexEnd, y: temperatureLimits.TUSEMAX },\r\n ];\r\n }\r\n let useMinGraphData: { x: number; y: number }[] | null = null;\r\n if (temperatureLimits.TUSEMIN != null) {\r\n useMinGraphData = [\r\n { x: indexIni, y: temperatureLimits.TUSEMIN },\r\n { x: indexEnd, y: temperatureLimits.TUSEMIN },\r\n ];\r\n }\r\n return { useMaxGraphData, useMinGraphData };\r\n }\r\n\r\n type ColorIndexAux = { colorIndex: number }\r\n\r\n function verifyEnvProps(aux: ColorIndexAux) {\r\n for (const dut of ambientes) {\r\n const GROUP_ID = `g${dut.DEV_ID}`;\r\n const GROUP_NAME = dut.ROOM_NAME;\r\n if (!state.grupos[GROUP_ID]) {\r\n dut.lineColor = colorList[++aux.colorIndex % colorList.length];\r\n const info = {\r\n GROUP_ID,\r\n GROUP_NAME,\r\n checked: false,\r\n devs: [dut],\r\n gData: [],\r\n type: 'room-temp',\r\n color: dut.lineColor,\r\n vars: dut.VARS,\r\n };\r\n state.grupos[GROUP_ID] = info;\r\n if (dut.PLACEMENT === 'DUO') {\r\n const INS_GROUP_ID = info.GROUP_ID.concat('-INS');\r\n state.grupos[INS_GROUP_ID] = {\r\n ...info,\r\n GROUP_ID: INS_GROUP_ID,\r\n GROUP_NAME: '(INS) '.concat(info.GROUP_NAME),\r\n color: colorList[++aux.colorIndex % colorList.length],\r\n };\r\n }\r\n }\r\n }\r\n }\r\n\r\n function addDacGroupByType(\r\n grupo: ComponentProps['conjuntos'][number],\r\n dac: ComponentProps['conjuntos'][number]['dacs'][number],\r\n aux: ColorIndexAux,\r\n type: string,\r\n ) {\r\n const GROUP_ID = `g-${type}:${grupo.groupId}\\t${dac.DAC_ID}`;\r\n let GROUP_NAME = grupo.name;\r\n if (grupo.dacs.length > 1) {\r\n if (!dac.DAC_NAME) {\r\n dac.DAC_NAME = `Condensadora ${grupo.dacs.indexOf(dac) + 1}`;\r\n }\r\n GROUP_NAME += ` (${dac.DAC_NAME})`;\r\n }\r\n if (!state.grupos[GROUP_ID]) {\r\n grupo.lineColor = colorList[++aux.colorIndex % colorList.length];\r\n state.grupos[GROUP_ID] = {\r\n GROUP_ID,\r\n GROUP_NAME,\r\n checked: false,\r\n devs: [dac],\r\n gData: [],\r\n type,\r\n color: grupo.lineColor,\r\n };\r\n }\r\n }\r\n\r\n function verifyDacsProps(grupo: ComponentProps['conjuntos'][number], aux: ColorIndexAux) {\r\n for (const dac of grupo.dacs) {\r\n addDacGroupByType(grupo, dac, aux, 'Lcmp');\r\n if (!L1only) {\r\n addDacGroupByType(grupo, dac, aux, 'Tamb');\r\n }\r\n }\r\n }\r\n\r\n function verifyDrisProps(grupo: ComponentProps['conjuntos'][number], aux: ColorIndexAux) {\r\n for (const dri of grupo.dris) {\r\n const GROUP_ID = `g-ValveOn:${grupo.groupId}\\t${dri.DRI_ID}`;\r\n const GROUP_NAME = grupo.name;\r\n if (!state.grupos[GROUP_ID]) {\r\n if (!grupo.lineColor) {\r\n grupo.lineColor = colorList[++aux.colorIndex % colorList.length];\r\n }\r\n state.grupos[GROUP_ID] = {\r\n GROUP_ID,\r\n GROUP_NAME,\r\n checked: false,\r\n devs: [dri],\r\n gData: [],\r\n type: 'ValveOn',\r\n color: grupo.lineColor,\r\n };\r\n }\r\n }\r\n }\r\n\r\n function verifyGroupsProps(aux: ColorIndexAux) {\r\n for (const grupo of conjuntos) {\r\n verifyDacsProps(grupo, aux);\r\n verifyDrisProps(grupo, aux);\r\n }\r\n }\r\n\r\n function verifyWeatherStationsProps(aux: ColorIndexAux) {\r\n for (const grupo of props.weatherStations ?? []) {\r\n const GROUP_ID = `g-Inmet:${grupo.CD_ESTACAO}`;\r\n const GROUP_NAME = grupo.DC_NOME;\r\n if (!state.grupos[GROUP_ID]) {\r\n state.grupos[GROUP_ID] = {\r\n GROUP_ID,\r\n GROUP_NAME,\r\n checked: false,\r\n unitId,\r\n DISTANCIA_EM_KM: grupo.DISTANCIA_EM_KM,\r\n CD_ESTACAO: grupo.CD_ESTACAO,\r\n gData: [],\r\n type: 'Tinmet',\r\n color: colorList[++aux.colorIndex % colorList.length],\r\n };\r\n }\r\n }\r\n }\r\n\r\n function verifyGreenAntPowerProps(aux: ColorIndexAux) {\r\n if (includeEnergy?.length) {\r\n for (const grupo of includeEnergy) {\r\n if (grupo.MANUFACTURER !== 'GreenAnt') continue;\r\n const GROUP_ID = 'greenant:meter';\r\n const GROUP_NAME = grupo.ESTABLISHMENT_NAME || unitName || t('energiaConsumida');\r\n if (!state.grupos[GROUP_ID]) {\r\n state.grupos[GROUP_ID] = {\r\n GROUP_ID,\r\n GROUP_NAME,\r\n ENERGY_DEVICE_ID: grupo.ENERGY_DEVICE_ID,\r\n checked: false,\r\n unitId,\r\n gData: [],\r\n type: 'energy',\r\n color: colorList[++aux.colorIndex % colorList.length],\r\n };\r\n }\r\n }\r\n }\r\n }\r\n function verifyDMEPowerProps(aux: ColorIndexAux) {\r\n if (includeEnergy) {\r\n for (const grupo of includeEnergy ?? []) {\r\n if (grupo.MANUFACTURER === 'GreenAnt') continue;\r\n const GROUP_ID = `dme:meter:${grupo.ENERGY_DEVICE_ID}`;\r\n const GROUP_NAME = grupo.ESTABLISHMENT_NAME || unitName || t('energiaConsumida');\r\n if (!state.grupos[GROUP_ID]) {\r\n state.grupos[GROUP_ID] = {\r\n GROUP_ID,\r\n GROUP_NAME,\r\n ENERGY_DEVICE_ID: grupo.ENERGY_DEVICE_ID,\r\n SERIAL: grupo.SERIAL,\r\n MANUFACTURER: grupo.MANUFACTURER,\r\n MODEL: grupo.MODEL,\r\n checked: false,\r\n unitId,\r\n gData: [],\r\n type: 'energy',\r\n color: colorList[++aux.colorIndex % colorList.length],\r\n };\r\n }\r\n }\r\n }\r\n }\r\n\r\n function verifyUtilityProps(aux: ColorIndexAux) {\r\n for (const util of utilitarios ?? []) {\r\n const GROUP_ID = `g-Util-${util.TYPE}:${util.ID}`;\r\n const GROUP_NAME = util.NAME;\r\n if (!state.grupos[GROUP_ID]) {\r\n state.grupos[GROUP_ID] = {\r\n GROUP_ID,\r\n GROUP_NAME,\r\n checked: false,\r\n devs: [util],\r\n gData: [],\r\n type: `utility-${util.TYPE}`,\r\n color: colorList[++aux.colorIndex % colorList.length],\r\n };\r\n }\r\n }\r\n }\r\n\r\n function verifyExternalProps() {\r\n const aux: ColorIndexAux = { colorIndex: -1 };\r\n verifyEnvProps(aux);\r\n verifyGroupsProps(aux);\r\n verifyWeatherStationsProps(aux);\r\n verifyGreenAntPowerProps(aux);\r\n verifyDMEPowerProps(aux);\r\n verifyUtilityProps(aux);\r\n }\r\n\r\n const calcNumDays = () => {\r\n const d1 = new Date(\r\n `${moment(state.startDate).format('YYYY-MM-DD')}T00:00:00Z`,\r\n ).getTime();\r\n const d2 = new Date(\r\n `${moment(state.endDate).format('YYYY-MM-DD')}T00:00:00Z`,\r\n ).getTime();\r\n\r\n const numDays = Math.round((d2 - d1) / 1000 / 60 / 60 / 24) + 1;\r\n\r\n if (numDays < 1 || numDays > 15) { return toast.error(t('periodo1a15')); }\r\n\r\n state.numDays = numDays;\r\n };\r\n\r\n async function dateChanged() {\r\n try {\r\n Object.values(state.grupos).forEach((grupo) => {\r\n grupo.gData = [];\r\n });\r\n const dayYMD = state.date && state.date.format().substring(0, 10);\r\n const { useMinGraphData, useMaxGraphData } = getTemperatureLimitLines(dayYMD) || {};\r\n state.useMinGraphData = useMinGraphData;\r\n state.useMaxGraphData = useMaxGraphData;\r\n render();\r\n await fetchMissingData();\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n calculateGraphData();\r\n setState({ loadingData: false });\r\n }\r\n\r\n function getTambGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.type === 'Tamb' && grupo.devs?.length) {\r\n grupo.devs.forEach((dac) => {\r\n const params = {\r\n dacId: dac.DAC_ID!,\r\n selectedParams: ['Tamb'],\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: verifyNumDaysAux(state.startDate, state.endDate),\r\n };\r\n const promise = apiCall('/dac/get-charts-data-common', params).then(\r\n async (websocketHistory) => {\r\n const {\r\n vars: { Tamb },\r\n commonX,\r\n limts,\r\n } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n\r\n gData.push({\r\n lineId: `${grupo.type}-${dac.DAC_ID}`,\r\n data: Tamb,\r\n isL1: false,\r\n showLine: true,\r\n axisId: 'temp',\r\n tempLimits: [\r\n limts.minTval,\r\n limts.maxTval,\r\n ] as GroupChartData['tempLimits'],\r\n type: grupo.type,\r\n });\r\n },\r\n );\r\n promises.push(promise);\r\n });\r\n }\r\n }\r\n\r\n function verifyNumDaysAux(startDate, endDate) {\r\n const today = moment().startOf('day');\r\n\r\n if (startDate && endDate && endDate.isAfter(today)) {\r\n return today.diff(startDate, 'days') + 1;\r\n }\r\n\r\n return state.numDays;\r\n }\r\n\r\n function getLcmpGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.type === 'Lcmp' && grupo.devs?.length) {\r\n grupo.devs.forEach((dac) => {\r\n if (splitLcmp) {\r\n const params = {\r\n dacId: dac.DAC_ID!,\r\n selectedParams: ['Levp', 'Lcut'],\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: verifyNumDaysAux(state.startDate, state.endDate),\r\n };\r\n const promise = apiCall('/dac/get-charts-data-common', params).then(\r\n async (websocketHistory) => {\r\n const {\r\n vars: { Levp, Lcut },\r\n commonX,\r\n } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n\r\n gData.push({\r\n lineId: `Levp-${grupo.type}-${dac.DAC_ID}`,\r\n data: Levp,\r\n isL1: true,\r\n type: grupo.type,\r\n showLine: true,\r\n });\r\n gData.push({\r\n lineId: `Lcut-${grupo.type}-${dac.DAC_ID}`,\r\n data: Lcut,\r\n isL1: true,\r\n type: grupo.type,\r\n showLine: true,\r\n });\r\n },\r\n );\r\n promises.push(promise);\r\n } else {\r\n const params = {\r\n dacId: dac.DAC_ID!,\r\n selectedParams: ['Lcmp'],\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: verifyNumDaysAux(state.startDate, state.endDate),\r\n };\r\n const promise = apiCall('/dac/get-charts-data-common', params).then(\r\n async (websocketHistory) => {\r\n const {\r\n vars: { Lcmp },\r\n commonX,\r\n } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n\r\n gData.push({\r\n lineId: `${grupo.type}-${dac.DAC_ID}`,\r\n data: Lcmp,\r\n isL1: true,\r\n showLine: true,\r\n type: grupo.type,\r\n axisId: 'temp',\r\n });\r\n },\r\n );\r\n promises.push(promise);\r\n }\r\n });\r\n }\r\n }\r\n\r\n function getValveOnGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.type === 'ValveOn' && grupo.devs?.length) {\r\n grupo.devs.forEach((dri) => {\r\n const params = {\r\n driId: dri.DRI_ID!,\r\n selectedParams: ['ValveOn'],\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: state.numDays,\r\n };\r\n const promise = apiCall('/dri/get-day-charts-data-common', params).then(\r\n async (websocketHistory) => {\r\n const {\r\n vars: { ValveOn },\r\n commonX,\r\n } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n\r\n gData.push({\r\n lineId: `${grupo.type}-${dri.DRI_ID}`,\r\n data: ValveOn,\r\n isL1: true,\r\n showLine: true,\r\n type: grupo.type,\r\n });\r\n },\r\n );\r\n promises.push(promise);\r\n });\r\n }\r\n }\r\n\r\n function getVavRoomTempGraphData(\r\n grupo: GroupInfo,\r\n dut: { DEV_ID?: string },\r\n promises: Promise[],\r\n gData: GroupChartData[],\r\n ) {\r\n const params = {\r\n driId: dut.DEV_ID!,\r\n selectedParams: ['TempAmb'],\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: state.numDays,\r\n };\r\n const promise = apiCall('/dri/get-day-charts-data-common', params)\r\n .then(async (websocketHistory) => {\r\n const {\r\n vars: { TempAmb: Temperature },\r\n commonX,\r\n limits: { minTval, maxTval },\r\n } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n const tempLimits = [minTval, maxTval] as [number, number];\r\n\r\n gData.push({\r\n lineId: dut.DEV_ID ?? '',\r\n data: Temperature,\r\n isL1: false,\r\n tempLimits,\r\n axisId: 'temp',\r\n type: grupo.type,\r\n showLine: true,\r\n });\r\n });\r\n promises.push(promise);\r\n }\r\n\r\n function identifyDutDuoInsuf(grupo: GroupInfo, params: { selectedParams: string[] }, placement?: string) {\r\n let isDutDuoInsuf = false;\r\n if (placement === 'DUO' && grupo.GROUP_ID.endsWith('-INS')) {\r\n params.selectedParams = ['Temperature_1'];\r\n isDutDuoInsuf = true;\r\n }\r\n return isDutDuoInsuf;\r\n }\r\n\r\n function getDutGraphData(\r\n grupo: GroupInfo,\r\n dut: { DEV_ID?: string, PLACEMENT?: string, VARS?: string },\r\n promises: Promise[],\r\n gData: GroupChartData[],\r\n ) {\r\n const params = {\r\n devId: dut.DEV_ID!,\r\n selectedParams: ['Temperature', 'eCO2', 'Humidity'],\r\n day: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: state.numDays,\r\n };\r\n\r\n const isDutDuoInsuf = identifyDutDuoInsuf(grupo, params, dut?.PLACEMENT);\r\n\r\n const promise = apiCall(\r\n '/dut/get-day-charts-data-commonX',\r\n params,\r\n ).then(async (websocketHistory) => {\r\n const {\r\n Temperature, Temperature_1, eCO2, axisInfo, commonX, Humidity,\r\n } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n\r\n if (dut.VARS == null || dut.VARS.includes('T')) {\r\n // assumindo que DUTs sem VARS são mais antigos e têm ao menos a temperatura\r\n const isDutDuo = ((dut.DEV_ID && isDutDuoInsuf) ? dut.DEV_ID.concat('-INS') : dut.DEV_ID);\r\n gData.push({\r\n lineId: isDutDuo ?? '',\r\n data: isDutDuoInsuf ? Temperature_1 : Temperature,\r\n isL1: false,\r\n tempLimits: axisInfo.tempLimits,\r\n axisId: 'temp',\r\n type: grupo.type,\r\n showLine: true,\r\n });\r\n }\r\n if (dut.VARS?.includes('D')) {\r\n gData.push({\r\n lineId: dut.DEV_ID ?? '',\r\n data: eCO2,\r\n isL1: false,\r\n co2Limits: axisInfo.co2Limits,\r\n axisId: 'co2',\r\n type: 'co2',\r\n showLine: true,\r\n });\r\n }\r\n\r\n if (dut.VARS?.includes('D')) {\r\n gData.push({\r\n lineId: dut.DEV_ID ?? '',\r\n data: Humidity,\r\n isL1: false,\r\n humLimits: axisInfo.humLimits,\r\n axisId: 'hum',\r\n type: 'hum',\r\n showLine: true,\r\n });\r\n }\r\n });\r\n promises.push(promise);\r\n }\r\n\r\n function getRoomTempGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.type === 'room-temp' && grupo.devs?.length) {\r\n grupo.devs.forEach((dut) => {\r\n if (dut.isVav) {\r\n getVavRoomTempGraphData(grupo, dut, promises, gData);\r\n } else {\r\n getDutGraphData(grupo, dut, promises, gData);\r\n }\r\n });\r\n }\r\n }\r\n\r\n function calculateEnergyLimits(eConsumption: { y: number[] }, commonX: number[], isDme: boolean) {\r\n let maxValue = 1;\r\n let minValue = 0;\r\n for (let i = 0; i < commonX.length; i++) {\r\n if (eConsumption.y[i] != null) {\r\n if (!isDme) eConsumption.y[i] = Math.round(eConsumption.y[i] / 100) / 10;\r\n\r\n if (eConsumption.y[i] > maxValue) {\r\n maxValue = eConsumption.y[i];\r\n }\r\n if (eConsumption.y[i] < minValue) {\r\n minValue = eConsumption.y[i];\r\n }\r\n }\r\n }\r\n\r\n return [minValue, maxValue];\r\n }\r\n\r\n function handleEnergyGraphDME(energyGraph) {\r\n let powerLast = 0 as number | undefined;\r\n let powerFirst = 0 as number | undefined;\r\n\r\n const energyGraphDME = energyGraph.map((power) => {\r\n if (powerFirst === 0 && power !== -1) powerFirst = power;\r\n if (power === null) { return 0; }\r\n if (power !== -1) { powerLast = power; return power; }\r\n if (powerFirst === 0) return -1;\r\n return powerLast;\r\n });\r\n\r\n const energyGraphAux = energyGraphDME.map((power) => {\r\n if (power === -1) return powerFirst;\r\n return power;\r\n });\r\n\r\n return energyGraphAux;\r\n }\r\n\r\n function getGreenAntGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.GROUP_ID === 'greenant:meter' && grupo.type === 'energy' && grupo.unitId) {\r\n const params = {\r\n UNIT_ID: grupo.unitId,\r\n day: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: state.numDays,\r\n };\r\n const promise = apiCall(\r\n '/get-unit-energy-consumption-commonX',\r\n params,\r\n ).then(async (energyConsumption) => {\r\n const { commonX, energyConsumption: eConsumption } = energyConsumption;\r\n\r\n state.commonX = commonX;\r\n\r\n const limits = calculateEnergyLimits(eConsumption, commonX, false);\r\n gData.push({\r\n lineId: grupo.GROUP_ID,\r\n data: eConsumption,\r\n isL1: false,\r\n powerLimits: limits as GroupChartData['powerLimits'],\r\n axisId: 'power',\r\n type: grupo.type,\r\n showLine: true,\r\n });\r\n });\r\n promises.push(promise);\r\n }\r\n }\r\n\r\n function getDMEGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.GROUP_ID.startsWith('dme:meter') && grupo.type === 'energy' && grupo.unitId) {\r\n const params = {\r\n energy_device_id: grupo.ENERGY_DEVICE_ID,\r\n serial: grupo.SERIAL,\r\n manufacturer: grupo.MANUFACTURER,\r\n model: grupo.MODEL,\r\n start_time: `${moment(state.startDate).format('YYYY-MM-DD')}T00:00:00`,\r\n end_time: `${moment(state.endDate).format('YYYY-MM-DD')}T23:59:59`,\r\n };\r\n const promise = apiCall(\r\n '/energy/get-hist',\r\n params,\r\n ).then(async (energyConsumption) => {\r\n const energyPower = energyConsumption.data.map((telemetry) => ({\r\n power: telemetry.pot_ap_tri,\r\n timestamp: telemetry.timestamp,\r\n }));\r\n\r\n const commonX = handleCommonX();\r\n state.commonX = commonX;\r\n const energyGraph = new Array(state.commonX.length).fill(-1);\r\n for (const energy of energyPower) {\r\n const momentCurrent = moment(energy.timestamp);\r\n const timestampObj = new Date(energy.timestamp);\r\n state.startDate?.startOf('day');\r\n const diffInDays = momentCurrent.diff(state.startDate, 'days');\r\n const timestampFr = (diffInDays * 86400 + timestampObj.getHours() * 3600 + timestampObj.getMinutes() * 60 + timestampObj.getSeconds()) / 3600;\r\n\r\n const pos = state.commonX.findIndex((elemento) => elemento > timestampFr) - 1;\r\n const powerCurrent = energy?.power?.toFixed(1);\r\n if (powerCurrent !== undefined) energyGraph[pos] = parseFloat(powerCurrent);\r\n }\r\n\r\n const energyGraphDME = handleEnergyGraphDME(energyGraph);\r\n const eConsumption = { y: energyGraphDME };\r\n const limits = calculateEnergyLimits(eConsumption, commonX, true);\r\n gData.push({\r\n lineId: grupo.GROUP_ID,\r\n data: eConsumption,\r\n isL1: false,\r\n powerLimits: limits as GroupChartData['powerLimits'],\r\n axisId: 'power',\r\n type: grupo.type,\r\n showLine: true,\r\n });\r\n });\r\n\r\n promises.push(promise);\r\n }\r\n }\r\n\r\n function getTinmetGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.type === 'Tinmet' && grupo.unitId && grupo.CD_ESTACAO) {\r\n let promise = Promise.resolve();\r\n promise = promise.then(async () => {\r\n const params = {\r\n unitId: grupo.unitId!,\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n stations: [grupo.GROUP_NAME],\r\n numDays: state.numDays,\r\n };\r\n const { commonX, stationsTemps } = await apiCall(\r\n '/get-weather-data-near-unit-commonX-v2',\r\n params,\r\n );\r\n\r\n state.commonX = commonX;\r\n\r\n const temperatures = stationsTemps[grupo.GROUP_NAME].temperatures;\r\n const tempLimits = stationsTemps[grupo.GROUP_NAME].tempLimits;\r\n\r\n state.weatherStationsData[grupo.GROUP_NAME] = {\r\n date: params.dayYMD,\r\n temperatures,\r\n tempLimits,\r\n distance: grupo.DISTANCIA_EM_KM,\r\n };\r\n });\r\n\r\n promise = promise.then(async () => {\r\n gData.push({\r\n lineId: grupo.GROUP_ID,\r\n data: state.weatherStationsData[grupo.GROUP_NAME].temperatures,\r\n isL1: false,\r\n tempLimits: state.weatherStationsData[grupo.GROUP_NAME].tempLimits as [number, number],\r\n type: grupo.type,\r\n axisId: 'temp',\r\n showLine: true,\r\n distance: state.weatherStationsData[grupo.GROUP_NAME].distance,\r\n });\r\n });\r\n promises.push(promise);\r\n }\r\n }\r\n\r\n function getDMTGraphData(DMT_CODE: string, type: string, grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n const params = {\r\n dmtCode: DMT_CODE,\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: state.numDays,\r\n };\r\n const promise = apiCall('/dmt/get-nobreaks-charts-data', params).then(\r\n async (websocketHistory) => {\r\n const { vars, commonX } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n const utilId = grupo.GROUP_ID.split(':')[1];\r\n const utilVar = vars[utilId];\r\n\r\n gData.push({\r\n lineId: `${type}-${grupo.GROUP_ID}-${DMT_CODE}`,\r\n data: { L: utilVar?.y || [], y: utilVar?.y || [] },\r\n axisId: 'temp',\r\n isL1: true,\r\n type,\r\n showLine: true,\r\n });\r\n },\r\n );\r\n\r\n promises.push(promise);\r\n }\r\n\r\n function getNobreakData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.type === 'utility-nobreak' && grupo.devs?.length) {\r\n grupo.devs.forEach((dev) => {\r\n if (dev.DMT_CODE) {\r\n getDMTGraphData(dev.DMT_CODE, 'nobreak', grupo, promises, gData);\r\n }\r\n });\r\n }\r\n }\r\n\r\n function getIlluminationData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n if (grupo.type === 'utility-illumination' && grupo.devs?.length) {\r\n grupo.devs.forEach((dev) => {\r\n if (dev.DAL_CODE) {\r\n const params = {\r\n dalCode: dev.DAL_CODE,\r\n dayYMD: moment(state.startDate).format('YYYY-MM-DD'),\r\n numDays: state.numDays,\r\n };\r\n const promise = apiCall('/dal/get-illuminations-charts-data', params).then(\r\n async (websocketHistory) => {\r\n const { vars: { Feedback }, commonX } = websocketHistory;\r\n\r\n state.commonX = commonX;\r\n const utilId = grupo.GROUP_ID.split(':')[1];\r\n const utilFeedbackPort = utilitarios?.find((util) => util.ID.toString() === utilId)?.FEEDBACK;\r\n const data = utilFeedbackPort && Feedback[utilFeedbackPort - 1];\r\n\r\n gData.push({\r\n lineId: `illumination-${grupo.GROUP_ID}-${dev.DMT_CODE}`,\r\n data: { L: data || [], y: data || [] },\r\n isL1: true,\r\n axisId: 'temp',\r\n type: 'illumination',\r\n showLine: true,\r\n });\r\n },\r\n );\r\n\r\n promises.push(promise);\r\n }\r\n\r\n if (dev.DMT_CODE) {\r\n getDMTGraphData(dev.DMT_CODE, 'illumination', grupo, promises, gData);\r\n }\r\n });\r\n }\r\n }\r\n\r\n function getUtilityGraphData(grupo: GroupInfo, promises: Promise[], gData: GroupChartData[]) {\r\n getNobreakData(grupo, promises, gData);\r\n getIlluminationData(grupo, promises, gData);\r\n }\r\n\r\n async function fetchGraphData(grupo: GroupInfo) {\r\n const gData: GroupChartData[] = [];\r\n const promises: Promise[] = [];\r\n getTambGraphData(grupo, promises, gData);\r\n getLcmpGraphData(grupo, promises, gData);\r\n getValveOnGraphData(grupo, promises, gData);\r\n getRoomTempGraphData(grupo, promises, gData);\r\n getGreenAntGraphData(grupo, promises, gData);\r\n getDMEGraphData(grupo, promises, gData);\r\n getTinmetGraphData(grupo, promises, gData);\r\n getUtilityGraphData(grupo, promises, gData);\r\n await Promise.all(promises);\r\n return gData;\r\n }\r\n\r\n async function fetchMissingData() {\r\n if (!state.startDate) return;\r\n\r\n try {\r\n const promises = Object.values(state.grupos).map(async (grupo) => {\r\n if (grupo.checked && !grupo.gData.length) {\r\n setState({ loadingData: true });\r\n return fetchGraphData(grupo).then((gData) => {\r\n for (const line of gData) {\r\n line.color = grupo.color || '#3a393e';\r\n }\r\n grupo.gData = gData;\r\n });\r\n }\r\n });\r\n await Promise.all(promises);\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n\r\n type BooleanLinesData = { L?: number | null; y?: number | null, }[][]\r\n\r\n function getBoolTicksNames(\r\n booleanLines: BooleanLinesData,\r\n ticksValues: [number[]],\r\n booleanTypes: string[],\r\n ) {\r\n const boolTicksNames = {};\r\n for (let i = 0; i < booleanLines.length; i++) {\r\n const [tick_0, tick_1, tick_2] = ticksValues[i];\r\n const isVav = booleanTypes[i] === 'VAV';\r\n const isNobreak = booleanTypes[i] === 'Nobreak';\r\n if (isNobreak) {\r\n boolTicksNames[String(tick_0)] = t('desligadoAbreviado');\r\n boolTicksNames[String(tick_1)] = t('bateriaAbreviado');\r\n boolTicksNames[String(tick_2)] = t('redeEletricaAbreviado');\r\n }\r\n else if (isVav) {\r\n boolTicksNames[String(tick_0)] = t('fechadoAbreviado');\r\n boolTicksNames[String(tick_1)] = t('abertoAbreviado');\r\n } else if (splitLcmp) {\r\n boolTicksNames[String(tick_0)] = i % 2 ? t('bloqueadoAbreviado') : t('desligadoAbreviado');\r\n boolTicksNames[String(tick_1)] = i % 2 ? t('liberadoAbreviado') : t('ligadoAbreviado');\r\n } else {\r\n boolTicksNames[String(tick_0)] = t('desligadoAbreviado');\r\n boolTicksNames[String(tick_1)] = t('ligadoAbreviado');\r\n }\r\n }\r\n\r\n return boolTicksNames;\r\n }\r\n\r\n function updateTempLimits(line: GroupChartData, tempLimits: { maxTval?: number, minTval?: number }) {\r\n if (line.tempLimits) {\r\n if (tempLimits.maxTval == null || line.tempLimits[1] > tempLimits.maxTval) { tempLimits.maxTval = line.tempLimits[1]; }\r\n if (tempLimits.minTval == null || line.tempLimits[0] < tempLimits.minTval) { tempLimits.minTval = line.tempLimits[0]; }\r\n }\r\n }\r\n function updatePowerLimits(line: GroupChartData, powerLimits: { maxPval?: number, minPval?: number }) {\r\n if (line.powerLimits) {\r\n if (powerLimits.maxPval == null || line.powerLimits[1] > powerLimits.maxPval) { powerLimits.maxPval = line.powerLimits[1]; }\r\n if (powerLimits.minPval == null || line.powerLimits[0] < powerLimits.minPval) { powerLimits.minPval = line.powerLimits[0]; }\r\n }\r\n }\r\n\r\n function updateCO2Limits(line: GroupChartData, co2Limits: { maxCO2val?: number, minCO2val?: number }) {\r\n if (line.co2Limits) {\r\n if (co2Limits.maxCO2val == null || line.co2Limits[1] > co2Limits.maxCO2val) { co2Limits.maxCO2val = line.co2Limits[1]; }\r\n if (co2Limits.minCO2val == null || line.co2Limits[0] < co2Limits.minCO2val) { co2Limits.minCO2val = line.co2Limits[0]; }\r\n }\r\n }\r\n\r\n function handleBooleanData(line: GroupChartData, booleanLines: BooleanLinesData, booleanTypes: string[]) {\r\n const lData: { L: (number|null) }[] = [];\r\n if (line.data.L) {\r\n line.data.L.forEach((L) => lData.push({ L }));\r\n } else {\r\n line.data.y.forEach((y) => lData.push({ L: y }));\r\n }\r\n booleanLines.push(lData);\r\n const isVav = line.type === 'ValveOn';\r\n const isNobreak = line.type === 'nobreak';\r\n if (isVav) {\r\n booleanTypes.push('VAV');\r\n } else if (isNobreak) {\r\n booleanTypes.push('Nobreak');\r\n } else {\r\n booleanTypes.push('L1');\r\n }\r\n }\r\n\r\n function getVarsData() {\r\n const selectedVars: GroupChartData[] = [];\r\n const booleanLines: BooleanLinesData = [];\r\n const booleanTypes: string[] = [];\r\n const tempLimits = {} as { maxTval?: number, minTval?: number };\r\n const powerLimits = {} as { maxPval?: number, minPval?: number };\r\n const co2Limits = {} as { maxCO2val?: number, minCO2val?: number };\r\n for (const grupo of Object.values(state.grupos)) {\r\n if (!grupo.checked) continue;\r\n\r\n for (const line of grupo.gData) {\r\n const existingLine = state.selectedVars.find((item) => item.lineId === line.lineId && item.axisId === line.axisId);\r\n\r\n if (existingLine) {\r\n selectedVars.push({ ...line, name: grupo.GROUP_NAME, showLine: existingLine.showLine });\r\n } else {\r\n selectedVars.push({ ...line, name: grupo.GROUP_NAME });\r\n }\r\n\r\n if (line.isL1) {\r\n handleBooleanData(line, booleanLines, booleanTypes);\r\n continue;\r\n }\r\n\r\n updateTempLimits(line, tempLimits);\r\n updatePowerLimits(line, powerLimits);\r\n updateCO2Limits(line, co2Limits);\r\n }\r\n }\r\n return {\r\n selectedVars, booleanLines, booleanTypes, ...tempLimits, ...powerLimits, ...co2Limits,\r\n };\r\n }\r\n\r\n function calculateGraphData() {\r\n const {\r\n selectedVars,\r\n booleanLines,\r\n booleanTypes,\r\n maxTval,\r\n minTval,\r\n maxPval,\r\n minPval,\r\n maxCO2val,\r\n minCO2val,\r\n } = getVarsData();\r\n state.selectedVars = selectedVars;\r\n const dataLimits = {\r\n maxTval,\r\n minTval,\r\n maxPval,\r\n minPval,\r\n maxCO2val,\r\n minCO2val,\r\n };\r\n const axisInfo = axisCalc.calculateAxisInfo(\r\n dataLimits,\r\n booleanLines.length,\r\n booleanTypes,\r\n );\r\n\r\n state.axisInfo = {\r\n ...state.axisInfo,\r\n ...axisInfo,\r\n powerLimits: axisInfo.presLimits,\r\n powerTicks: axisInfo.presTicks,\r\n presLimits: null,\r\n presTicks: null,\r\n };\r\n const ticksValues = axisCalc.updateBoolY(\r\n booleanLines,\r\n state.axisInfo.L1start as number,\r\n booleanTypes,\r\n );\r\n\r\n let indexBool = 0;\r\n for (const selectedVar of state.selectedVars) {\r\n if (booleanLines[indexBool] && selectedVar.isL1) {\r\n const yData: (number|null)[] = [];\r\n\r\n booleanLines[indexBool].forEach((data) => {\r\n yData.push(data.y!);\r\n });\r\n selectedVar.data.y = yData;\r\n indexBool++;\r\n }\r\n }\r\n\r\n state.boolTicksNames = getBoolTicksNames(booleanLines, ticksValues, booleanTypes);\r\n }\r\n\r\n async function requireMultiDaysCsv(params) {\r\n const days = [] as string[];\r\n for (let i = 0; i < state.numDays; i++) {\r\n const dayAux = addDays_YMD(\r\n moment(state.startDate).format('YYYY-MM-DD'),\r\n i,\r\n );\r\n days.push(dayAux);\r\n }\r\n\r\n return Promise.all(\r\n days.map(async (day) => {\r\n const paramsAux = { ...params, day };\r\n\r\n return apiCallDownload('/analise-integrada-export', paramsAux);\r\n }),\r\n );\r\n }\r\n\r\n async function requireCsvExport() {\r\n if (!state.startDate || !state.selectedVars.length) return;\r\n if (state.numDays < 1 || state.numDays > 15) {\r\n toast.error(t('periodo1a15'));\r\n return;\r\n }\r\n\r\n try {\r\n const params = prepareExportParams(state.startDate);\r\n setState({ exportLoading: true });\r\n\r\n populateParamsWithGroups(params);\r\n\r\n const responses = await requireMultiDaysCsv(params);\r\n handleCsvDownload(responses);\r\n\r\n toast.success(t('sucessoGerar'));\r\n } catch (err) {\r\n console.error(err);\r\n toast.error(t('houveErro'));\r\n }\r\n\r\n setState({ exportLoading: false });\r\n }\r\n\r\n function prepareExportParams(startDate: any) {\r\n const selectedDate = startDate.format().substring(0, 10);\r\n return {\r\n day: selectedDate,\r\n dacsTamb: [] as string[],\r\n dacsL1: [] as string[],\r\n dutsTemp: [] as string[],\r\n unitsPower: [] as number[],\r\n tempInmet: [] as { GROUP_ID: string; GROUP_NAME: string }[],\r\n };\r\n }\r\n\r\n function populateParamsWithGroups(params: any) {\r\n for (const grupo of Object.values(state.grupos)) {\r\n if (grupo.checked && grupo.gData && grupo.gData.length) {\r\n switch (grupo.type) {\r\n case 'Tamb':\r\n addDeviceIds(grupo.devs, params.dacsTamb);\r\n break;\r\n case 'Lcmp':\r\n addDeviceIds(grupo.devs, params.dacsL1);\r\n break;\r\n case 'room-temp':\r\n addDeviceIds(grupo.devs, params.dutsTemp, 'DEV_ID');\r\n break;\r\n case 'energy':\r\n addUnitId(grupo.unitId, params.unitsPower);\r\n break;\r\n case 'Tinmet':\r\n addInmetData(grupo, params.tempInmet);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n function addDeviceIds(devices: GroupInfo['devs'] = [], targetArray: string[], idKey = 'DAC_ID') {\r\n if (devices && devices.length) {\r\n targetArray.push(...devices.map((device) => device[idKey]).filter(Boolean));\r\n }\r\n }\r\n\r\n function addUnitId(unitId: number | undefined, targetArray: number[]) {\r\n if (unitId) {\r\n targetArray.push(unitId);\r\n }\r\n }\r\n\r\n function addInmetData(grupo: any, tempInmet: { GROUP_ID: string; GROUP_NAME: string }[]) {\r\n if (grupo.CD_ESTACAO && grupo.GROUP_NAME) {\r\n tempInmet.push({ GROUP_ID: grupo.CD_ESTACAO, GROUP_NAME: grupo.GROUP_NAME });\r\n }\r\n }\r\n\r\n function handleCsvDownload(responses: any[]) {\r\n const responsesData = responses.map((response) => response.data);\r\n const link = document.getElementById('downloadLink') as any;\r\n\r\n if (link.href !== '#') {\r\n window.URL.revokeObjectURL(link.href);\r\n }\r\n\r\n link.href = window.URL.createObjectURL(\r\n new Blob([...responsesData], { type: 'text/csv' }),\r\n );\r\n link.download = `Análise ${moment(state.startDate).format('DD-MM-YYYY')} - ${moment(state.endDate).format('DD-MM-YYYY')}`;\r\n link.click();\r\n }\r\n\r\n function getFilterOptions(filterOptions: GroupInfo[]) {\r\n return filterOptions.map((group) => ({\r\n name: group.GROUP_NAME,\r\n value: group.GROUP_ID,\r\n color: group.color,\r\n icon: (\r\n \r\n \r\n \r\n ),\r\n distance: group.DISTANCIA_EM_KM,\r\n }));\r\n }\r\n\r\n function buildItemsList() {\r\n Object.values(state.grupos).forEach((grupo) => {\r\n if (grupo.type === 'room-temp') {\r\n state.trooms.push(grupo);\r\n }\r\n if (grupo.type === 'Lcmp' || grupo.type === 'ValveOn') {\r\n state.l1s.push(grupo);\r\n }\r\n if (grupo.type === 'Tamb') {\r\n state.tambs.push(grupo);\r\n }\r\n if (grupo.type === 'energy') {\r\n state.powers.push(grupo);\r\n }\r\n if (grupo.type === 'Tinmet') {\r\n state.tInmet.push(grupo);\r\n }\r\n if (grupo.type.startsWith('utility')) {\r\n state.utilities.push(grupo);\r\n }\r\n });\r\n }\r\n\r\n function itemsWithoutFilter() {\r\n if (state.search.length === 0) {\r\n state.trooms = [];\r\n state.l1s = [];\r\n state.tambs = [];\r\n state.powers = [];\r\n state.tInmet = [];\r\n state.utilities = [];\r\n\r\n buildItemsList();\r\n\r\n state.troomsFiltered = getFilterOptions(state.trooms);\r\n state.l1sFiltered = getFilterOptions(state.l1s);\r\n state.tambsFiltered = getFilterOptions(state.tambs);\r\n state.powersFiltered = getFilterOptions(state.powers);\r\n state.tInmetFiltered = getFilterOptions(state.tInmet);\r\n state.utilitiesFiltered = getFilterOptions(state.utilities);\r\n }\r\n }\r\n itemsWithoutFilter();\r\n\r\n function zoom() {\r\n let { refAreaLeft, refAreaRight } = state;\r\n\r\n if (\r\n refAreaLeft === refAreaRight\r\n || refAreaRight == null\r\n || refAreaLeft == null\r\n ) {\r\n setState({\r\n refAreaLeft: null,\r\n refAreaRight: null,\r\n });\r\n return;\r\n }\r\n\r\n // xAxis domain\r\n if (refAreaLeft > refAreaRight) { [refAreaLeft, refAreaRight] = [refAreaRight, refAreaLeft]; }\r\n\r\n setState({\r\n refAreaLeft: null,\r\n refAreaRight: null,\r\n xDomain: [refAreaLeft, refAreaRight],\r\n xTicks: [],\r\n });\r\n }\r\n\r\n function zoomOut() {\r\n setState({\r\n refAreaLeft: null,\r\n refAreaRight: null,\r\n xDomain: null,\r\n xTicks: Array.from({ length: 13 }, (_, i) => i * 2 * state.numDays),\r\n });\r\n }\r\n\r\n function tickXLabelFormaterDay(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(\r\n `${moment(state.startDate)\r\n .add(numDays + 1, 'days')\r\n .format('YYYY-MM-DD')}T00:00:00Z`,\r\n );\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n\r\n return `${dd}/${mm}`;\r\n }\r\n\r\n function tooltipXLabelFormater(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(\r\n `${moment(state.startDate)\r\n .add(numDays + 1, 'days')\r\n .format('YYYY-MM-DD')}T00:00:00Z`,\r\n );\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n const dateFinal = `${dd}/${mm}`;\r\n\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n const ss = Math.floor((Math.abs(hour) * 60 * 60) % 60);\r\n\r\n return (\r\n

\r\n {dateFinal}\r\n {' '}\r\n -\r\n {' '}\r\n \r\n {`${String(hh).padStart(2, '0')}:${String(min).padStart(\r\n 2,\r\n '0',\r\n )}:${String(ss).padStart(2, '0')}`}\r\n \r\n

\r\n );\r\n }\r\n\r\n function formatLabel(value: number, label: string, isBool: boolean, isVav: boolean, isNobreak: boolean) {\r\n let formattedLabel = label;\r\n if (isBool) {\r\n formattedLabel = value % 5 > -2.5 ? t('ligado') : t('desligado');\r\n }\r\n\r\n if (isVav) {\r\n formattedLabel = value % 5 > -2.5 ? t('abertoCap') : t('fechadoCap');\r\n }\r\n\r\n if (isNobreak) {\r\n if (value % 6 < -5) formattedLabel = t('desligado');\r\n else if (value % 6 > -2) formattedLabel = t('redeEletricaCap');\r\n else formattedLabel = t('bateriaCap');\r\n }\r\n\r\n return formattedLabel;\r\n }\r\n\r\n function toolTipFormater(\r\n value: number,\r\n _accessor: string | Function,\r\n payload: {\r\n value: number;\r\n payload: number;\r\n name: string;\r\n label: string;\r\n },\r\n _index: number,\r\n ) {\r\n if (state.selectedVars && state.axisInfo.L1start !== null) {\r\n const varInfo = findVarInfo(payload.name);\r\n const type = varInfo?.type ?? '';\r\n const isBool = isBooleanType(type);\r\n\r\n const unit = determineUnit(varInfo?.axisId);\r\n const isVav = type === 'ValveOn';\r\n const isNobreak = type === 'nobreak';\r\n\r\n let label = formatNumberWithFractionDigits(value.toString());\r\n label = formatLabel(payload.value, label, isBool, isVav, isNobreak);\r\n const unitMeasure = getUnitMeasure(label, unit, isBool, varInfo);\r\n\r\n const formattedValue = formatValue(label, unitMeasure, isBool);\r\n const formattedName = formatName(payload);\r\n\r\n return [formattedValue, formattedName];\r\n }\r\n\r\n return '';\r\n }\r\n\r\n function findVarInfo(name: string) {\r\n return state.selectedVars.find(\r\n (data) => `${data.name}|${data.lineId}|${data.axisId}` === name,\r\n );\r\n }\r\n\r\n function isBooleanType(type: string) {\r\n return ['Levp', 'Lcut', 'Lcmp', 'illumination'].includes(type);\r\n }\r\n\r\n function determineUnit(axisId: string | undefined) {\r\n switch (axisId) {\r\n case 'temp': return ' °C ';\r\n case 'hum': return ' % ';\r\n case 'power': return ' Kw ';\r\n case 'co2': return ' ppm ';\r\n default: return '';\r\n }\r\n }\r\n\r\n function getUnitMeasure(label: string, unit: string, isBool: boolean, varInfo: any) {\r\n if (label.toLocaleLowerCase().includes('km')) return '';\r\n if ([t('desligado'), t('bateriaCap'), t('redeEletricaCap'), t('ligado'), t('abertoCap'), t('fechadoCap'), t('liberado'), t('bloqueado')].includes(label)) {\r\n return '';\r\n }\r\n return varInfo && varInfo.axisId !== 'power' ? unit : 'kW';\r\n }\r\n\r\n function formatValue(label: string, unitMeasure: string, isBool: boolean) {\r\n return (\r\n \r\n {`${label}${!isBool ? unitMeasure : ''}`}\r\n \r\n );\r\n }\r\n\r\n function formatName(payload: { name: string; label: string }) {\r\n const name = payload.name.split('|')[0];\r\n return payload.label || (name.length > 35 ? `${name.substring(0, 35)}...` : name);\r\n }\r\n\r\n const CustomTooltipContent = (customTooltipProps) => {\r\n if (unitCoordinate?.lat && unitCoordinate?.lon && customTooltipProps.payload && customTooltipProps.payload.length !== 0) {\r\n const newPayload = [\r\n ...customTooltipProps.payload,\r\n ];\r\n\r\n customTooltipProps.payload.forEach((e) => {\r\n const varInfo = state.selectedVars.find(\r\n (data) => `${data.name}|${data.lineId}|${data.axisId}` === e.name,\r\n );\r\n if (varInfo && varInfo.type === 'Tinmet') {\r\n const indexToInsert = newPayload.findIndex((o) => o.name === e.name) + 1;\r\n\r\n newPayload.splice(indexToInsert, 0, {\r\n name: e.name,\r\n label: t('distanciaUnidadeEstacao'),\r\n value: varInfo?.distance || t('indisponivel'),\r\n });\r\n }\r\n });\r\n\r\n return ;\r\n }\r\n\r\n return ;\r\n };\r\n\r\n function handleClick(group: GroupInfo) {\r\n if (!group) return;\r\n group.displayColorPicker = !group.displayColorPicker;\r\n render();\r\n }\r\n\r\n function handleClose(group: GroupInfo) {\r\n if (!group) return;\r\n group.displayColorPicker = false;\r\n render();\r\n }\r\n\r\n function changeGroupsColor(groupId: string, color: string) {\r\n const group = state.selectedVars.filter((g) => g.lineId === groupId);\r\n if (group) {\r\n for (const item of group) {\r\n item.color = color;\r\n }\r\n }\r\n }\r\n\r\n function handleChange(color: { hex: string }, group: GroupInfo) {\r\n if (!group) return;\r\n group.color = color.hex;\r\n for (const line of group.gData) {\r\n line.color = color.hex;\r\n changeGroupsColor(line.lineId, color.hex);\r\n }\r\n\r\n render();\r\n }\r\n\r\n function isXDomainValid() {\r\n if (state.xDomain) {\r\n const isValidArrOfNumbers = state.xDomain.every((n) => typeof n === 'number' && n.toString() !== 'NaN');\r\n const isNotDefault = state.xDomain.toString() !== [0, 24 * state.numDays].toString();\r\n\r\n return isValidArrOfNumbers && isNotDefault;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n function handleModalClose() {\r\n state.isModalOpen = false;\r\n render();\r\n }\r\n\r\n function renderModalGroups(groupData: GroupInfo[], groupName: string) {\r\n const selectedGroup = (\r\n groupData.map((group) => (\r\n group.checked && (\r\n \r\n handleClick(group)}\r\n style={{ cursor: 'pointer' }}\r\n />\r\n {group.GROUP_NAME}\r\n {group.displayColorPicker ? (\r\n \r\n handleClose(group)}\r\n />\r\n handleChange(color, group)}\r\n />\r\n
\r\n ) : null}\r\n \r\n )\r\n ))\r\n );\r\n\r\n return (\r\n <>\r\n {groupData.some((group) => group.checked) && (\r\n \r\n {groupName}\r\n \r\n )}\r\n {selectedGroup}\r\n \r\n );\r\n }\r\n\r\n const handleFilter = async () => {\r\n state.numDays = 0;\r\n if (!(state.startDate && state.endDate)) return;\r\n\r\n calcNumDays();\r\n\r\n if (state.numDays < 1 || state.numDays > 15) return;\r\n state.xDomain = [0, 24 * state.numDays];\r\n state.xTicks = Array.from({ length: 13 }, (_, i) => i * 2 * state.numDays);\r\n await dateChanged();\r\n };\r\n\r\n function handleChangePeriod() {\r\n setState({\r\n startDate: null,\r\n endDate: null,\r\n date: null,\r\n numDays: 0,\r\n selectedVars: [],\r\n });\r\n\r\n render();\r\n }\r\n\r\n return (\r\n
\r\n \r\n \r\n
\r\n \r\n

Aguarde, os dados estão

\r\n

sendo carregados.

\r\n \r\n
\r\n
\r\n {state.isModalOpen && (\r\n \r\n )}\r\n
\r\n \r\n
\r\n\r\n
\r\n {(state.startDate && state.endDate && state.selectedVars?.length > 0) && (\r\n \r\n \r\n \r\n { state.isModalOpen = true; render(); }}>\r\n \r\n \r\n {t('alterarCores')}\r\n \r\n \r\n {state.xDomain\r\n && isXDomainValid() && (\r\n \r\n \r\n \r\n Zoom Out\r\n \r\n \r\n )}\r\n {state.startDate && (\r\n \r\n {moment(state.endDate).isAfter(state.startDate)\r\n ? `${moment(state.startDate).format('DD/MM/YYYY')} - ${moment(state.endDate).format('DD/MM/YYYY')}`\r\n : moment(state.startDate).format('DD/MM/YYYY')}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n ({ index }))}\r\n onMouseDown={(e) => {\r\n setState({ refAreaLeft: e?.activeLabel });\r\n }}\r\n onMouseMove={(e) => {\r\n state.refAreaLeft != null\r\n && setState({ refAreaRight: e.activeLabel });\r\n }}\r\n onMouseUp={zoom}\r\n >\r\n \r\n 1\r\n ? tickXLabelFormaterDay\r\n : tickXLabelFormaterHour\r\n }\r\n dataKey={({ index }) => state.commonX[index]}\r\n ticks={state.xTicks}\r\n allowDecimals={false}\r\n domain={state.xDomain}\r\n />\r\n {state.numDays && state.numDays > 1 ? (\r\n state.commonX[index]}\r\n ticks={state.xTicks}\r\n domain={state.xDomain}\r\n />\r\n ) : null}\r\n }\r\n ticks={state.axisInfo.tempTicks}\r\n interval={0}\r\n domain={state.axisInfo.tempLimits}\r\n >\r\n
\r\n\r\n gData.isL1)) ? '' : t('temperaturaC')}\r\n offset={20}\r\n dx={40}\r\n angle=\"0\"\r\n position=\"top\"\r\n style={{\r\n color: '#464555', fontSize: '13px', textAnchor: 'middle', fontWeight: 'bold',\r\n }}\r\n />\r\n \r\n }\r\n dataKey=\"y\"\r\n ticks={[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]}\r\n interval={0}\r\n domain={[0, 100]}\r\n >\r\n gData.isL1)) ? '' : 'Umidade (%)'}\r\n offset={20}\r\n angle=\"0\"\r\n dx={-10}\r\n position=\"top\"\r\n style={{\r\n color: '#464555', fontSize: '13px', textAnchor: 'middle', fontWeight: 'bold',\r\n }}\r\n />\r\n \r\n {state.selectedVars.some((gData) => !!gData.co2Limits) && (\r\n }\r\n tickMargin={49}\r\n dataKey=\"y\"\r\n ticks={[0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 3600]}\r\n interval={0}\r\n domain={[0, 3600]}\r\n orientation=\"right\"\r\n >\r\n \r\n \r\n )}\r\n {(state.selectedVars.some((item) => item.axisId === 'power')) && (\r\n }\r\n orientation=\"right\"\r\n ticks={state.axisInfo.powerTicks}\r\n tickMargin={20}\r\n interval={0}\r\n domain={state.axisInfo.powerLimits}\r\n >\r\n \r\n \r\n )}\r\n }\r\n />\r\n {state.selectedVars.length > 0\r\n && state.selectedVars.map((gData) => (\r\n gData.showLine && (\r\n gData.data.y[index]}\r\n dot={false}\r\n animationDuration={300}\r\n type=\"monotone\"\r\n />\r\n )\r\n ))}\r\n {state.useMinGraphData && (\r\n \r\n )}\r\n {state.useMaxGraphData && (\r\n \r\n )}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n
\r\n
\r\n )}\r\n\r\n {(!state.startDate || !state.endDate || !state.selectedVars.length) ? : null}\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nexport const ModalColorsWindow = ({ handleModalClose, renderModalGroups, state }: {\r\n handleModalClose: () => void,\r\n renderModalGroups: (state, name) => JSX.Element,\r\n state: any,\r\n }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n

{t('alterarCores')}

\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n {renderModalGroups(state.trooms, t('ambientes'))}\r\n {renderModalGroups(state.l1s, t('maquinas'))}\r\n {renderModalGroups(state.tambs, t('temperaturaExterna'))}\r\n {renderModalGroups(state.tInmet, t('temExtEstMetereologicas'))}\r\n {renderModalGroups(state.powers, t('potenciaAtiva'))}\r\n {renderModalGroups(state.utilities, t('utilitarios'))}\r\n \r\n
\r\n
\r\n);\r\n\r\nexport const ColorsPalet = ({ state, render }: { state, render: () => void }): JSX.Element => (\r\n { state.isModalOpen = true; render(); }}>\r\n \r\n \r\n {t('alterarCores')}\r\n \r\n \r\n);\r\n","import {\r\n useMemo, useRef, useState,\r\n} from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useRouteMatch, useHistory } from 'react-router-dom';\r\n\r\nimport { Breadcrumb2 } from '~/components';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nimport { Header } from '../Header';\r\n\r\nexport const DevLayout = ({ devInfo }): JSX.Element => {\r\n const { t } = useTranslation();\r\n const match = useRouteMatch<{ devId, utilId, type }>();\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n\r\n const { devId, utilId, type } = match.params;\r\n const linkBase = '/analise/dispositivo'; // match.url.split(`/${devId}`)[0];\r\n const isEdit = history.location.pathname.endsWith('/editar');\r\n const isDmt2 = devId.startsWith('DMT2');\r\n let isDac = false;\r\n let isDam = false;\r\n let isDut = false;\r\n let isDutAut = false;\r\n let isDal = false;\r\n let isDmt = false;\r\n let isDutDuo = false;\r\n\r\n if (devInfo) {\r\n isDac = !!devInfo.dac;\r\n isDam = !!devInfo.dam;\r\n isDut = !!devInfo.dut;\r\n isDutAut = !!devInfo.dut_aut;\r\n isDal = !!devInfo.dal;\r\n isDmt = !!devInfo.dmt;\r\n isDutDuo = devInfo.dut?.PLACEMENT === 'DUO';\r\n }\r\n const permissionManageClient = (devInfo?.CLIENT_ID && profile.permissions.CLIENT_MANAGE.includes(devInfo.CLIENT_ID));\r\n const bcrumbs = useMemo(() => {\r\n const path = [] as { text: string, link: string|null }[];\r\n if (devInfo && devInfo.UNIT_NAME) {\r\n if (profile.manageAllClients) {\r\n path.push({ text: devInfo.CLIENT_NAME, link: null });\r\n }\r\n path.push({ text: t('unidades'), link: '/analise/unidades' });\r\n path.push({ text: devInfo.UNIT_NAME, link: `/analise/unidades/${devInfo.UNIT_ID}` });\r\n if (devInfo.dac && devInfo.dac.GROUP_NAME) {\r\n path.push({ text: devInfo.dac.GROUP_NAME, link: null });\r\n }\r\n if (devInfo.dut && devInfo.dut.ROOM_NAME) {\r\n path.push({ text: devInfo.dut.ROOM_NAME, link: null });\r\n }\r\n if (devInfo.dam && (!devInfo.dac) && devInfo.dam.groups && devInfo.dam.groups.length > 0) {\r\n const groupName = devInfo.dam.groups.filter((x) => x.GROUP_NAME).map((x) => x.GROUP_NAME).join(', ');\r\n if (groupName) {\r\n path.push({ text: groupName, link: null });\r\n }\r\n }\r\n } else if (isDac) {\r\n path.push({ text: t('maquinas'), link: '/analise/maquinas' });\r\n } else if (isDam) {\r\n path.push({ text: t('automacao'), link: '/analise/dams' });\r\n } else if (isDut) {\r\n path.push({ text: t('ambientes'), link: '/analise/ambientes' });\r\n }\r\n // if (isEdit) {\r\n // path.push({ text: devId, link: `${linkBase}/${devId}/informacoes` })\r\n // path.push({ text: 'Editar', link: match.url })\r\n // }\r\n path.push({ text: devId, link: null }); // match.url\r\n return ();\r\n }, [devInfo]);\r\n\r\n const links = [\r\n {\r\n title: t('perfil'),\r\n link: `${linkBase}/${devId}/informacoes`,\r\n visible: !utilId,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('perfil'),\r\n link: `/analise/utilitario/${type}/${utilId}/informacoes`,\r\n visible: !!utilId,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('tempoReal'),\r\n link: `${linkBase}/${devId}/tempo-real`,\r\n visible: !utilId && !isDmt2,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('tempoReal'),\r\n link: `${linkBase}/${type}/${utilId}/${devId}/tempo-real`,\r\n visible: !!utilId,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('indiceUso'),\r\n link: `${linkBase}/${devId}/indice-de-uso`,\r\n visible: (isDal || isDutDuo || isDmt || isDac) && (!profile.permissions.isInstaller && !isDmt2),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('saude'),\r\n link: `${linkBase}/${devId}/saude`,\r\n visible: (isDac || isDutDuo) && !profile.permissions.isInstaller,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('historico'),\r\n link: `${linkBase}/${devId}/historico`,\r\n visible: !utilId && !isDal && !isDmt && (isDac || isDut || profile.manageAllClients || permissionManageClient || profile.permissions.isInstaller),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('historico'),\r\n link: `${linkBase}/${type}/${utilId}/${devId}/historico`,\r\n visible: !!utilId && !isDal && !isDmt && (isDac || isDut || profile.manageAllClients || permissionManageClient || profile.permissions.isInstaller),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('infra-vermelho'),\r\n link: `${linkBase}/${devId}/infravermelho`,\r\n visible: isDutAut && (\r\n profile.manageAllClients\r\n || profile.permissions.isUserManut\r\n || profile.permissions.isInstaller\r\n || permissionManageClient\r\n || (profile.permissions.CLIENT_MANAGE.includes(104)) // alteração temporária\r\n ),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('editar'),\r\n link: match.url,\r\n visible: !!isEdit,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n return (\r\n <>\r\n { bcrumbs }\r\n
\r\n
x.visible)} match={history} />\r\n \r\n );\r\n};\r\n","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport { Loader, LayerBackgroundModal } from 'components';\r\nimport { EnvGroupAnalysis } from 'components/EnvGroupAnalysis';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from 'helpers/cachedStorage';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { DevLayout } from 'pages/Analysis/DEVs/DevLayout';\r\nimport {\r\n SchedulesList, SchedulesRemove, SchedulesEdit,\r\n} from 'pages/Analysis/SchedulesModals/DAM_Schedule';\r\nimport { apiCall } from 'providers';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\nimport i18n from '~/i18n';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\n\r\nconst t = i18n.t.bind(i18n);\r\n\r\nfunction handleSelectTitle(type: 'List'|'Edit'|'Remove'|'Add'): string {\r\n switch (type) {\r\n case 'List':\r\n return t('programacao');\r\n case 'Edit':\r\n return t('editarProgramacao');\r\n case 'Remove':\r\n return t('excluirProgramacao');\r\n case 'Add':\r\n return t('adicionarProgramacao');\r\n\r\n default:\r\n return '-';\r\n }\r\n}\r\n\r\nexport const DamSchedule = (): JSX.Element => {\r\n const routeParams = useParams<{ devId: string }>();\r\n const [, render] = useStateVar({});\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(routeParams.devId, t('detalhesDAM'))}\r\n \r\n \r\n
\r\n \r\n \r\n );\r\n};\r\n\r\nexport function DamScheduleContents(props: {\r\n onDevInfoUpdate?: () => void\r\n hideAnalysis?: boolean\r\n}) {\r\n const { onDevInfoUpdate, hideAnalysis } = props;\r\n const routeParams = useParams<{ devId: string }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n damId: routeParams.devId,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n isLoading: true,\r\n isSaving: false,\r\n devSched: {} as FullProg_v4,\r\n schedulesTypeActive: 'List' as ('List'|'Add'|'Edit'|'Remove'),\r\n selectedDay: null as null|('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n relDutInfo: null as null|{\r\n DEV_ID: string;\r\n ROOM_NAME: string;\r\n TUSEMAX: number;\r\n TUSEMIN: number;\r\n workPeriods: { [day: string]: string };\r\n workPeriodExceptions: { [day: string]: string };\r\n },\r\n groups: [] as {\r\n name: string\r\n groupId: number\r\n dacs: { DAC_ID: string, DAC_NAME: string }[]\r\n dris: { DRI_ID: string }[]\r\n }[],\r\n };\r\n return state;\r\n });\r\n\r\n async function fetchDamInfo(damId: string) {\r\n state.devInfo = await getCachedDevInfo(damId, {});\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n\r\n if (state.devInfo!.dam!.REL_DUT_ID) {\r\n const dutInfo = await apiCall('/dut/get-dut-info', { DEV_ID: state.devInfo!.dam!.REL_DUT_ID });\r\n state.relDutInfo = {\r\n workPeriods: dutInfo.workPeriods,\r\n workPeriodExceptions: dutInfo.workPeriodExceptions,\r\n ...dutInfo.info,\r\n };\r\n }\r\n\r\n if (!state.devInfo!.dam!.groups) return;\r\n if (state.devInfo!.dam!.groups.length === 0) return;\r\n const groupIds = state.devInfo!.dam!.groups.map((x) => x.GROUP_ID);\r\n const { list: dacsList } = await apiCall('/dac/get-dacs-list', { groupIds });\r\n const filteredByGroupName: {\r\n [k: string]: {\r\n name: string\r\n groupId: number\r\n dacs: { DAC_ID: string, DAC_NAME: string }[]\r\n dris: { DRI_ID: string }[]\r\n }\r\n } = {};\r\n for (const dac of dacsList) {\r\n if (!dac.GROUP_NAME) continue;\r\n const groupName = dac.GROUP_NAME;\r\n const groupId = String(dac.GROUP_ID);\r\n if (!filteredByGroupName[groupId]) {\r\n filteredByGroupName[groupId] = {\r\n name: groupName, groupId: dac.GROUP_ID, dacs: [], dris: [],\r\n };\r\n }\r\n const group = filteredByGroupName[groupId];\r\n group.dacs.push(dac);\r\n }\r\n state.groups = Object.values(filteredByGroupName); render();\r\n }\r\n\r\n async function handleGetDamProgramming(damId: string) {\r\n if (damId) {\r\n try {\r\n state.isLoading = true; render();\r\n state.devSched = await apiCall('/dam/get-programming-v3', { damId });\r\n } catch (err) {\r\n console.log(err);\r\n toast.warn(t('erroNaoExisteProgramacoes'));\r\n }\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n state.isLoading = true; render();\r\n await Promise.all([\r\n handleGetDamProgramming(routeParams.devId),\r\n fetchDamInfo(routeParams.devId),\r\n ]);\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n state.isLoading = false; render();\r\n }());\r\n }, []);\r\n\r\n async function onConfirmRemoveProg(day: keyof FullProg_v4['week']) {\r\n try {\r\n const newProg = cloneProg()!;\r\n if (newProg.week[day]) {\r\n delete newProg.week[day];\r\n await saveProg(newProg);\r\n toast.success(t('sucessoExcluirProgramacao'));\r\n }\r\n setState({ schedulesTypeActive: 'List', selectedDay: null });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroExcluirProgramacao'));\r\n }\r\n }\r\n\r\n async function onConfirmProg(days: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')[], prog: DayProg) {\r\n try {\r\n const newProg = cloneProg()!;\r\n for (const day of days) {\r\n newProg.week[day] = prog;\r\n }\r\n await saveProg(newProg);\r\n setState({ schedulesTypeActive: 'List', selectedDay: null });\r\n toast.success(t('sucessoProgramacaoAdicionada'));\r\n state.selectedDay = null;\r\n state.schedulesTypeActive = 'List';\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroAdicionarProgramacao'));\r\n }\r\n setState({ isSaving: false });\r\n }\r\n\r\n async function onConfirmExcept(day: string, prog: DayProg) {\r\n try {\r\n const newProg = cloneProg()!;\r\n if (!newProg.exceptions) newProg.exceptions = {};\r\n newProg.exceptions[day] = prog;\r\n await saveProg(newProg);\r\n setState({ schedulesTypeActive: 'List', selectedDay: null });\r\n toast.success(t('sucessoProgramacaoAdicionada'));\r\n state.selectedDay = null;\r\n state.schedulesTypeActive = 'List';\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroAdicionarProgramacao'));\r\n }\r\n setState({ isSaving: false });\r\n }\r\n\r\n async function onDelException(exception_date: string) {\r\n const newProg = cloneProg()!;\r\n if (!newProg.exceptions) return;\r\n if (!newProg.exceptions[exception_date]) return;\r\n if (!window.confirm(t('temCerteza'))) return;\r\n try {\r\n delete newProg.exceptions[exception_date];\r\n await saveProg(newProg);\r\n toast.success(t('sucessoExcluirProgramacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroExcluirProgramacao'));\r\n }\r\n }\r\n\r\n async function wantSaveVent(ventTime: { begin: string, end: string }) {\r\n try {\r\n const newProg = cloneProg()!;\r\n newProg.ventTime = { begin: (Number(ventTime.begin) || 0), end: (Number(ventTime.end) || 0) };\r\n await saveProg(newProg);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Erro');\r\n }\r\n }\r\n\r\n function cloneProg(): typeof state.devSched {\r\n const newprog: typeof state.devSched = JSON.parse(JSON.stringify(state.devSched));\r\n if (!newprog.week) newprog.week = {};\r\n if (!newprog.exceptions) newprog.exceptions = {};\r\n return newprog;\r\n }\r\n\r\n async function saveProg(prog: FullProg_v4) {\r\n try {\r\n setState({ isSaving: true });\r\n const devSched = await apiCall('/dam/set-programming-v3', {\r\n damId: state.damId,\r\n ...prog,\r\n });\r\n state.devSched = devSched;\r\n toast.success(t('sucessoSalvarProgramacao'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarProgramacao'));\r\n }\r\n setState({ isSaving: false });\r\n }\r\n\r\n let modalContent: null|JSX.Element = null;\r\n if (state.schedulesTypeActive === 'Edit') {\r\n modalContent = (\r\n setState({ schedulesTypeActive: 'List', selectedDay: null })}\r\n isSending={state.isSaving}\r\n />\r\n );\r\n }\r\n if (state.schedulesTypeActive === 'Remove') {\r\n modalContent = (\r\n setState({ schedulesTypeActive: 'List', selectedDay: null })}\r\n isRemoving={state.isSaving}\r\n />\r\n );\r\n }\r\n if (state.schedulesTypeActive === 'Add') {\r\n modalContent = (\r\n setState({ schedulesTypeActive: 'List', selectedDay: null })}\r\n isSending={state.isSaving}\r\n />\r\n );\r\n }\r\n\r\n const isDac = !!(state.devInfo && state.devInfo.dac);\r\n\r\n return (\r\n \r\n {state.isLoading ? (\r\n \r\n ) : (state.devInfo && (\r\n <>\r\n
\r\n \r\n setState({ schedulesTypeActive: 'Add', selectedDay: null })}\r\n wantEditDay={(day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => setState({ schedulesTypeActive: 'Edit', selectedDay: day })}\r\n wantRemoveDay={(day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') => setState({ schedulesTypeActive: 'Remove', selectedDay: day })}\r\n isLoading={state.isLoading}\r\n />\r\n \r\n
\r\n {(!hideAnalysis)\r\n && (\r\n
\r\n \r\n \r\n \r\n
\r\n )}\r\n {modalContent\r\n && (\r\n \r\n \r\n \r\n \r\n {modalContent}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n ))}\r\n
\r\n );\r\n}\r\n\r\nconst Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n background-color: white;\r\n`;\r\nconst ElevatedCard = styled.div`\r\n padding: 32px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport default withTransaction('DamSchedule', 'component')(DamSchedule);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const DesktopTable = styled.div`\r\n display: none;\r\n @media (min-width: 768px) {\r\n display: block;\r\n }\r\n`;\r\n\r\nexport const MobileTable = styled.div`\r\n display: block;\r\n @media (min-width: 768px) {\r\n display: none;\r\n }\r\n`;\r\n\r\nexport const StyledSpan = styled.span`\r\n color: ${colors.Grey400};\r\n font-size: 1em;\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey400};\r\n font-size: 1em;\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n margin-left: 16px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n align-items: center;\r\n`;\r\n\r\nexport const Label = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-top: 6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n margin-left: 10px;\r\n text-decoration: underline;\r\n font-size: 11px;\r\n`;\r\n\r\nexport const BtnInput = styled.button`\r\ndisplay: flex;\r\nalign-items: center;\r\njustify-content: center;\r\nbackground-color: white;\r\nwidth: 32px;\r\nheight: 30px;\r\nmargin-right: 10px;\r\n\r\nborder: 1px solid rgba(0, 0, 0, 0.15);\r\ncursor: pointer;\r\nborder-radius: 5px;\r\nbox-shadow: 0 0.3em 0.3em rgba(0, 0, 0, 0.09);\r\ntransition: all 0.5s ease-in;\r\n&:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n cursor: pointer;\r\n }\r\n`;\r\n","import { FoldedSheet } from '~/icons';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport const AnalysisEmpty = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n\r\n return (\r\n \r\n \r\n \r\n {t('resultadoDaAnalise')}\r\n {t('filtrarParaGerarAnalise')}\r\n \r\n {t('filtrarParaGerarAnaliseContinuacao')}\r\n {t('analisarNegrito')}\r\n \r\n
\r\n
\r\n );\r\n};\r\n","import React, { useState, useEffect, useMemo } from 'react';\r\n\r\nimport { CSVLink } from 'react-csv';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n DataTable, Button, EmptyWrapper, Loader, StatusBox, Checkbox, Select,\r\n} from '~/components';\r\nimport { ModalWindow } from '~/components/ModalWindow';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { TermometerSubIcon } from '~/icons';\r\nimport { AnalysisLayout } from '~/pages/Analysis/AnalysisLayout';\r\nimport { saveSessionStorageItem, removeSessionStorageItem, getSessionStorageItem } from '~/helpers/cachedStorage';\r\nimport { ApiResps, apiCall } from '../../../../providers';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport {\r\n DesktopTable,\r\n MobileTable,\r\n StyledSpan,\r\n StyledLink,\r\n} from './styles';\r\n\r\nimport '~/assets/css/ReactTags.css';\r\nimport { FilterItem } from '../../AnalysisFilters';\r\nimport { FullProg_v4 } from '~/providers/types';\r\nimport { OrderableHeaderCell, TableColumn } from '~/components/DataTable';\r\nimport i18n from '~/i18n';\r\nimport { UtilFilter } from '../../Utilities/UtilityFilter';\r\nimport { setValueState, verifyArrayParameters, verifyArrayParametersWithNumber } from '~/helpers/genericHelper';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { AnalysisEmpty } from '../../AnalysisEmpty';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nconst t = i18n.t.bind(i18n);\r\n\r\nconst descOper = {\r\n allow: t('liberadoMin'),\r\n forbid: t('bloqueadoMin'),\r\n onlyfan: t('ventilacao'),\r\n enabling: t('habilitando'),\r\n disabling: t('bloqueando'),\r\n eco: 'Eco-Mode',\r\n};\r\n\r\nconst CSVHeader = [\r\n { label: t('cliente'), key: 'CLIENT_NAME' },\r\n { label: t('estado'), key: 'state' },\r\n { label: t('cidade'), key: 'city' },\r\n { label: t('unidade'), key: 'unit' },\r\n { label: t('maquina'), key: 'group' },\r\n { label: t('dispositivo'), key: 'devId' },\r\n { label: t('diasDaSemana.seg'), key: 'mon' },\r\n { label: t('diasDaSemana.ter'), key: 'tue' },\r\n { label: t('diasDaSemana.qua'), key: 'wed' },\r\n { label: t('diasDaSemana.qui'), key: 'thu' },\r\n { label: t('diasDaSemana.sex'), key: 'fri' },\r\n { label: t('diasDaSemana.sab'), key: 'sat' },\r\n { label: t('diasDaSemana.dom'), key: 'sun' },\r\n { label: t('modo'), key: 'mode' },\r\n { label: 'Setpoint', key: 'setpoint' },\r\n { label: t('rele'), key: 'relay' },\r\n { label: t('temperatura'), key: 'temperature' },\r\n { label: t('conexao'), key: 'status' },\r\n { label: t('ultimoVisto'), key: 'lastCommTs' },\r\n];\r\n\r\nconst KeyCodes = {\r\n comma: 188,\r\n slash: 191,\r\n enter: [10, 13],\r\n};\r\n\r\nconst delimiters = [...KeyCodes.enter, KeyCodes.comma, KeyCodes.slash];\r\n\r\nexport const DamsList = (): JSX.Element => {\r\n const csvLinkEl = React.useRef();\r\n const [profile] = useState(getUserProfile);\r\n const [isProg, setIsProg] = useState(false); // Altera seleção do switch \"Informações Exibidas\"\r\n const [isDesktop, setIsDesktop] = useState(true); // Exibe ou não o switch de programação horária\r\n const history = useHistory();\r\n\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n firstLoading: null as boolean | null,\r\n dielClientId: null,\r\n actionOpts: [] as { label: string, value: string }[],\r\n clientsList: [] as { CLIENT_ID: number, NAME: string }[],\r\n selectedClientFilter: setValueState('filterClient'),\r\n selectedClient: null,\r\n wantSetClient: false,\r\n ownershipOpts: [\r\n { value: 'CLIENTS', label: t('deClientes') },\r\n { value: 'N-COMIS', label: t('naoComissionados') }, // aqueles com DEV_ID default de firmware\r\n { value: 'N-ASSOC', label: t('naoAssociados') }, // Aqueles que já tem DEV_ID próprio, mas não possuem cliente associado\r\n { value: 'MANUFAC', label: t('comissionadosFabrica') }, // Aqueles que já tem DEV_ID próprio, e possuem cliente SERDIA\r\n { value: 'D-TESTS', label: t('emTestes') }, // Aqueles que estão associados ao cliente DIEL ENERGIA LTDA.\r\n { value: 'ALLDEVS', label: t('todos') },\r\n ],\r\n ownershipFilter: null,\r\n isLoading: !profile.manageAllClients && !profile.manageSomeClient, // setIsLoading\r\n csvData: [], // setCsvData\r\n environments: [], // setEnvironments\r\n searchState: [] as { id: string, text: string }[],\r\n searchValue: '' as string,\r\n tablePage: 1,\r\n tablePageSize: 50,\r\n totalItems: 0,\r\n selectedState: setValueState('filterStates'),\r\n selectedCity: setValueState('filterCity'),\r\n selectedUnit: setValueState('filterUnit'),\r\n selectedControlType: [] as any | any[],\r\n selectedOperationStatus: [] as any | any[],\r\n selectedEcoMode: [] as any | any[],\r\n selectedConnection: [] as any | any[],\r\n selectedDevId: '',\r\n filters: [] as FilterItem[],\r\n orderBy: null as null | [string, 'ASC' | 'DESC'],\r\n needFilter: profile.manageAllClients || profile.manageSomeClient,\r\n selectedTemperature: [] as string[],\r\n };\r\n\r\n if (profile.viewAllClients) {\r\n // @ts-ignore\r\n state.ownershipFilter = state.ownershipOpts[0];\r\n }\r\n\r\n if (profile.permissions.isAdminSistema) {\r\n state.actionOpts = [{ label: t('definirProgramacao'), value: 'set-schedule' }, { label: t('excluir'), value: 'delete' }, { label: t('atribuirCliente'), value: 'set-client' }];\r\n } else if (profile.manageAllClients) {\r\n state.actionOpts = [{ label: t('definirProgramacao'), value: 'set-schedule' }, { label: t('atribuirCliente'), value: 'set-client' }];\r\n } else if (profile.manageSomeClient) {\r\n // @ts-ignore\r\n state.actionOpts = [{ label: t('definirProgramacao'), value: 'set-schedule' }];\r\n }\r\n\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n const screenSize = window.matchMedia('(max-width: 768px)');\r\n\r\n setIsDesktop(!screenSize.matches);\r\n }, []);\r\n\r\n async function applyActionToSelected(action, list) {\r\n try {\r\n const selectedDevs = list.filter((dev) => dev.checked);\r\n\r\n if (!selectedDevs.length) return;\r\n\r\n if (action === 'delete') {\r\n if (!window.confirm(t('desejaExcluirDams', { value: selectedDevs.length }))) {\r\n return;\r\n }\r\n for (const dev of selectedDevs) {\r\n if (dev.isDut) {\r\n await apiCall('/dut/delete-dut-info', { dutId: dev.devId }).then((data) => ({ data }));\r\n } else if (dev.isDri) {\r\n await apiCall('/dri/delete-dri-info', { driId: dev.devId }).then((data) => ({ data }));\r\n } else {\r\n await apiCall('/dam/delete-dam-info', { damId: dev.DAM_ID }).then((data) => ({ data }));\r\n }\r\n }\r\n window.location.reload();\r\n return;\r\n }\r\n if (action === 'set-client') {\r\n state.wantSetClient = true; render();\r\n return;\r\n }\r\n if (action === 'set-schedule') {\r\n const ids = selectedDevs.map((x) => x.DEV_ID);\r\n const onlyDuts = !selectedDevs.some((dev) => !dev.isDut);\r\n // TODO: programação em batelada de DUT\r\n history.push(`/analise/programacao-dams/?ids=${encodeURIComponent(ids.join('*'))}`);\r\n return;\r\n }\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n async function confirmSetClient() {\r\n try {\r\n // @ts-ignore\r\n const selectedDevs = state.environments.filter((dev) => dev.checked);\r\n if (!selectedDevs.length) {\r\n toast.error(t('erroNenhumDispositivoSelecionado'));\r\n return;\r\n }\r\n\r\n // @ts-ignore\r\n const clientId = state.selectedClient && state.selectedClient.CLIENT_ID;\r\n\r\n if (!clientId) {\r\n toast.error(t('erroClienteNaoSelecionadoInvalido'));\r\n return;\r\n }\r\n\r\n for (const dev of selectedDevs) {\r\n // @ts-ignore\r\n if (dev.isDut) {\r\n // @ts-ignore\r\n await apiCall('/dut/set-dut-info', { DEV_ID: dev.devId, CLIENT_ID: clientId });\r\n } else {\r\n // @ts-ignore\r\n await apiCall('/dam/set-dam-info', { DAM_ID: dev.DAM_ID, CLIENT_ID: clientId });\r\n }\r\n }\r\n\r\n window.location.reload();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n const outputJSXSchedule = (schedule: string) => {\r\n if (schedule === 'Sem info') {\r\n return (\r\n \r\n \r\n {t('sem')}\r\n \r\n \r\n info\r\n \r\n \r\n );\r\n }\r\n\r\n if (schedule === 'Mult. progs.') {\r\n return (\r\n \r\n \r\n {t('mult.')}\r\n \r\n \r\n {t('progs.')}\r\n \r\n \r\n );\r\n }\r\n\r\n if (schedule === '24h/dia') {\r\n return {schedule};\r\n }\r\n\r\n if (schedule === 'Desligado') {\r\n return {schedule};\r\n }\r\n\r\n const [start, end] = schedule.split(' - ');\r\n return (\r\n \r\n {start}\r\n -\r\n {end}\r\n \r\n );\r\n };\r\n\r\n const outputSchedule = (schedule: string, hasMultSchedule?: boolean) => {\r\n if (schedule === '- - -') return !hasMultSchedule ? 'Sem info' : 'Mult. progs.';\r\n\r\n if (schedule === '00:00 - 23:59') return '24h/dia';\r\n\r\n return schedule;\r\n };\r\n\r\n function orderColumn(column: TableColumn) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n async function onColumnClick(column: { accessor: string }) {\r\n if (state.orderBy && (state.orderBy[1] === 'ASC') && (state.orderBy[0] === column.accessor)) {\r\n state.orderBy = [column.accessor, 'DESC'];\r\n } else {\r\n state.orderBy = [column.accessor, 'ASC'];\r\n }\r\n render();\r\n await handleGetDAMS();\r\n }\r\n\r\n const [columns, columnsMobile] = useMemo(() => {\r\n const columnsDesktop = [] as TableColumn[];\r\n const columnsMobile = [] as TableColumn[];\r\n\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('estado'),\r\n // @ts-ignore\r\n accessor: 'col_STATE_ID',\r\n // @ts-ignore\r\n Cell: (props) => {props.state},\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('cidade'),\r\n // @ts-ignore\r\n accessor: 'col_CITY_NAME',\r\n // @ts-ignore\r\n Cell: (props) => {props.city},\r\n HeaderCell: orderColumn,\r\n });\r\n if (profile.viewMultipleClients) {\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('cliente'),\r\n // @ts-ignore\r\n accessor: 'col_CLIENT_NAME',\r\n // @ts-ignore\r\n Cell: (props) => (props.CLIENT_NAME ? {props.CLIENT_NAME} : '-'),\r\n HeaderCell: orderColumn,\r\n });\r\n }\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('unidade'),\r\n // @ts-ignore\r\n accessor: 'col_UNIT_NAME',\r\n // @ts-ignore\r\n Cell: (props) => <>{props.unit.id && props.unit.name ? {props.unit.name} : '-'},\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('maquina'),\r\n // @ts-ignore\r\n accessor: 'col_MACHINE_NAME',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n \r\n \r\n {(props.group && props.group.length > 100 ? (props.group).slice(0, 100).concat('...') : props.group || '-')}\r\n \r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('dispositivo'),\r\n // @ts-ignore\r\n accessor: 'col_DEV_ID',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.devId\r\n ? (\r\n \r\n {props.devId}\r\n \r\n )\r\n : (\r\n '-'\r\n )}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: t('dispositivo'),\r\n // @ts-ignore\r\n accessor: 'col_DEV_ID',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.devId\r\n ? (\r\n \r\n {props.devId}\r\n \r\n )\r\n : (\r\n '-'\r\n )}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n !isProg\r\n ? columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('controle'),\r\n // @ts-ignore\r\n accessor: 'col_MODE',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.mode}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n })\r\n : columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('diasDaSemana.seg'),\r\n // @ts-ignore\r\n accessor: 'mon',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {outputJSXSchedule(props.mon)}\r\n \r\n ),\r\n });\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: t('controle'),\r\n // @ts-ignore\r\n accessor: 'col_MODE',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.mode}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n !isProg\r\n ? columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('operacao'),\r\n // @ts-ignore\r\n accessor: 'col_STATE',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.relay}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n })\r\n : columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('diasDaSemana.ter'),\r\n // @ts-ignore\r\n accessor: 'tue',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {outputJSXSchedule(props.tue)}\r\n \r\n ),\r\n });\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: t('operacao'),\r\n // @ts-ignore\r\n accessor: 'col_STATE',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.relay}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n !isProg\r\n ? columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('modoEco'),\r\n // @ts-ignore\r\n accessor: 'col_ECO_MODE_ENABLED',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {(props.ecoModeEnabled === false) ? t('desabilitado') : (props.ecoModeEnabled === true) ? t('habilitado') : '-'}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n })\r\n : columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('diasDaSemana.qua'),\r\n // @ts-ignore\r\n accessor: 'wed',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {outputJSXSchedule(props.wed)}\r\n \r\n ),\r\n });\r\n !isProg\r\n ? columnsDesktop.push({\r\n // @ts-ignore\r\n Header: 'Setpoint',\r\n // @ts-ignore\r\n accessor: 'col_TEMPRT_SETPOINT',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {formatNumberWithFractionDigits(props.temprtSetpoint)}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n })\r\n : columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('diasDaSemana.qui'),\r\n // @ts-ignore\r\n accessor: 'thu',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {outputJSXSchedule(props.thu)}\r\n \r\n ),\r\n });\r\n !isProg\r\n ? columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('temperatura'),\r\n // @ts-ignore\r\n accessor: 'col_REFERENCE_TEMPERATURE',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n \r\n {formatNumberWithFractionDigits(props.referenceTemperature) || '-'}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n })\r\n : columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('diasDaSemana.sex'),\r\n // @ts-ignore\r\n accessor: 'fri',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {outputJSXSchedule(props.fri)}\r\n \r\n ),\r\n });\r\n isProg && columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('diasDaSemana.sab'),\r\n // @ts-ignore\r\n accessor: 'sat',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {outputJSXSchedule(props.sat)}\r\n \r\n ),\r\n });\r\n isProg && columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('diasDaSemana.dom'),\r\n // @ts-ignore\r\n accessor: 'sun',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {outputJSXSchedule(props.sun)}\r\n \r\n ),\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('conexao'),\r\n // @ts-ignore\r\n accessor: 'col_STATUS',\r\n // @ts-ignore\r\n Cell: (props) => {props.status},\r\n HeaderCell: orderColumn,\r\n });\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: t('conexao'),\r\n // @ts-ignore\r\n accessor: 'col_STATUS',\r\n // @ts-ignore\r\n Cell: (props) => {props.status},\r\n HeaderCell: orderColumn,\r\n });\r\n\r\n if (profile.manageAllClients) {\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('ultimaVezVisto'),\r\n // @ts-ignore\r\n accessor: 'col_LAST_SEEN',\r\n // @ts-ignore\r\n Cell: (props) => (props.lastCommTs || '-'),\r\n HeaderCell: orderColumn,\r\n });\r\n }\r\n\r\n if (state.actionOpts.length > 0) {\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: '',\r\n // @ts-ignore\r\n accessor: 'col_selection',\r\n // @ts-ignore\r\n Cell: (props) => { props.checked = !props.checked; render(); }} />,\r\n });\r\n }\r\n\r\n return [columnsDesktop, columnsMobile];\r\n }, [isProg]);\r\n\r\n const getDailySchedule = (\r\n devId: string,\r\n dutLastProg: FullProg_v4 | undefined,\r\n damLastProg: FullProg_v4 | undefined,\r\n key: string,\r\n hasMultSchedule: boolean,\r\n ) => {\r\n const isDut = devId.includes('DUT');\r\n\r\n if (isDut) {\r\n if (dutLastProg?.week[key]?.permission === 'forbid') {\r\n return outputSchedule(t('desligadoMin'));\r\n }\r\n\r\n const startDate = dutLastProg?.week[key]?.start || '-';\r\n const endDate = dutLastProg?.week[key]?.end || '-';\r\n\r\n return outputSchedule(`${startDate} - ${endDate}`, hasMultSchedule);\r\n }\r\n\r\n if (damLastProg?.week[key]?.permission === 'forbid') {\r\n return outputSchedule(t('desligadoMin'));\r\n }\r\n\r\n const startDate = damLastProg?.week[key]?.start || '-';\r\n const endDate = damLastProg?.week[key]?.end || '-';\r\n\r\n return outputSchedule(`${startDate} - ${endDate}`);\r\n };\r\n\r\n function ajustObjectOfDev(list) {\r\n for (const dev of list) {\r\n dev.State = descOper[dev.State] || dev.State;\r\n if (dev.Mode === 'Auto') dev.Mode = 'Automático';\r\n // @ts-ignore\r\n if (dev.lastCommTs) { dev.lastCommTs = dev.lastCommTs.replace('T', ' '); }\r\n\r\n Object.assign(dev, {\r\n state: dev.STATE_ID || '-',\r\n city: dev.CITY_NAME || '-',\r\n unit: { id: dev.UNIT_ID, name: dev.UNIT_NAME } || '-',\r\n group: dev.machineName || '-',\r\n devId: dev.DEV_ID || '-',\r\n mode: dev.Mode || '-',\r\n relay: dev.State || '-',\r\n status: dev.status || '-',\r\n isDut: dev.DEV_ID.includes('DUT'),\r\n isDri: dev.DEV_ID.includes('DRI'),\r\n mon: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'mon', dev.DUT_NEED_MULT_SCHEDULES),\r\n tue: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'tue', dev.DUT_NEED_MULT_SCHEDULES),\r\n wed: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'wed', dev.DUT_NEED_MULT_SCHEDULES),\r\n thu: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'thu', dev.DUT_NEED_MULT_SCHEDULES),\r\n fri: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'fri', dev.DUT_NEED_MULT_SCHEDULES),\r\n sat: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'sat', dev.DUT_NEED_MULT_SCHEDULES),\r\n sun: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'sun', dev.DUT_NEED_MULT_SCHEDULES),\r\n });\r\n }\r\n }\r\n\r\n async function handleGetDAMS() {\r\n try {\r\n setState({ isLoading: true });\r\n if (state.needFilter !== null) setState({ needFilter: false });\r\n\r\n loadSessionFilters();\r\n\r\n const [\r\n { list, totalItems },\r\n ] = await Promise.all([\r\n apiCall('/get-autom-devs-list', {\r\n INCLUDE_INSTALLATION_UNIT: !!profile.viewAllClients || !!profile.permissions.isInstaller,\r\n includeDacs: true,\r\n SKIP: (state.tablePage - 1) * state.tablePageSize,\r\n LIMIT: state.tablePageSize,\r\n // @ts-ignore\r\n searchTerms: state.selectedDevId ? [state.selectedDevId.toLowerCase()] : [],\r\n // @ts-ignore\r\n ownershipFilter: (state.ownershipFilter && state.ownershipFilter.value) || undefined,\r\n clientIds: verifyArrayParametersWithNumber(state.selectedClientFilter),\r\n stateIds: verifyArrayParameters(state.selectedState),\r\n cityIds: verifyArrayParameters(state.selectedCity),\r\n unitIds: verifyArrayParametersWithNumber(state.selectedUnit),\r\n controlMode: (state.selectedControlType.length > 0) ? state.selectedControlType : undefined,\r\n operationStatus: (state.selectedOperationStatus.length > 0) ? state.selectedOperationStatus : undefined,\r\n ecoMode: (state.selectedEcoMode.length > 0) ? state.selectedEcoMode : undefined,\r\n status: (state.selectedConnection.length > 0) ? state.selectedConnection : undefined,\r\n orderByProp: state.orderBy && state.orderBy[0]?.substring('col_'.length) || undefined,\r\n orderByDesc: (state.orderBy && state.orderBy[1] === 'DESC') || undefined,\r\n temprtAlerts: (state.selectedTemperature.length > 0) ? state.selectedTemperature : undefined,\r\n }),\r\n ]);\r\n\r\n verifyAutomationsTemperatureLimits(list);\r\n ajustObjectOfDev(list);\r\n\r\n state.totalItems = totalItems;\r\n // @ts-ignore\r\n // @ts-ignore\r\n state.environments = list;\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroCarregarDados'));\r\n }\r\n if (state.needFilter === null) setState({ needFilter: true });\r\n setState({ isLoading: false });\r\n }\r\n\r\n function verifyAutomationsTemperatureLimits(automationDevice: ApiResps['/get-autom-devs-list']['list']) {\r\n return automationDevice.map((devAutomation) => {\r\n let specialColor: string|undefined;\r\n\r\n if (devAutomation.referenceTemperature && devAutomation.temprtAlert) {\r\n if (devAutomation.temprtAlert === 'low') specialColor = colors.LightBlue;\r\n else if (devAutomation.temprtAlert === 'high') specialColor = colors.Red;\r\n }\r\n return Object.assign(devAutomation, {\r\n specialColor,\r\n });\r\n });\r\n }\r\n\r\n const getCsvData = async () => {\r\n state.isLoading = true; render();\r\n\r\n apiCall('/get-autom-devs-list', {\r\n INCLUDE_INSTALLATION_UNIT: !!profile.viewAllClients || !!profile.permissions.isInstaller,\r\n // @ts-ignore\r\n searchTerms: state.selectedDevId ? [state.selectedDevId.toLowerCase()] : [],\r\n // @ts-ignore\r\n ownershipFilter: (state.ownershipFilter && state.ownershipFilter.value) || undefined,\r\n clientIds: verifyArrayParametersWithNumber(state.selectedClientFilter),\r\n stateIds: verifyArrayParameters(state.selectedState),\r\n cityIds: verifyArrayParameters(state.selectedCity),\r\n unitIds: verifyArrayParametersWithNumber(state.selectedUnit),\r\n controlMode: (state.selectedControlType.length > 0) ? state.selectedControlType : undefined,\r\n operationStatus: (state.selectedOperationStatus.length > 0) ? state.selectedOperationStatus : undefined,\r\n ecoMode: (state.selectedEcoMode.length > 0) ? state.selectedEcoMode : undefined,\r\n status: (state.selectedConnection.length > 0) ? state.selectedConnection : undefined,\r\n orderByProp: state.orderBy && state.orderBy[0]?.substring('col_'.length) || undefined,\r\n orderByDesc: (state.orderBy && state.orderBy[1] === 'DESC') || undefined,\r\n }).then(({ list }) => {\r\n const formatterCSV = list.map((dev) => ({\r\n CLIENT_NAME: dev.CLIENT_NAME || '-',\r\n state: dev.STATE_ID || '-',\r\n city: dev.CITY_NAME || '-',\r\n unit: dev.UNIT_NAME || '-',\r\n group: dev.machineName || '-',\r\n devId: dev.DEV_ID || '-',\r\n mode: dev.Mode || '-',\r\n setpoint: dev.temprtSetpoint,\r\n relay: dev.State || '-',\r\n status: dev.status || '-',\r\n temperature: dev.referenceTemperature || '-',\r\n // @ts-ignore\r\n lastCommTs: (dev.lastCommTs && dev.lastCommTs.replace('T', ' ')) || '-',\r\n mon: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'mon', dev.DUT_NEED_MULT_SCHEDULES),\r\n tue: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'tue', dev.DUT_NEED_MULT_SCHEDULES),\r\n wed: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'wed', dev.DUT_NEED_MULT_SCHEDULES),\r\n thu: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'thu', dev.DUT_NEED_MULT_SCHEDULES),\r\n fri: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'fri', dev.DUT_NEED_MULT_SCHEDULES),\r\n sat: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'sat', dev.DUT_NEED_MULT_SCHEDULES),\r\n sun: getDailySchedule(dev.DEV_ID, dev.DUT_LASTPROG, dev.DAM_LASTPROG, 'sun', dev.DUT_NEED_MULT_SCHEDULES),\r\n }));\r\n // @ts-ignore\r\n state.csvData = formatterCSV;\r\n state.isLoading = false; render();\r\n\r\n setTimeout(() => {\r\n (csvLinkEl as any).current.link.click();\r\n }, 1000);\r\n });\r\n };\r\n\r\n const onPageChange = (page) => {\r\n state.tablePage = page;\r\n render();\r\n handleGetDAMS();\r\n };\r\n\r\n useEffect(() => {\r\n if (state.firstLoading) {\r\n handleGetDAMS();\r\n }\r\n }, [state.tablePage]);\r\n\r\n useEffect(() => {\r\n if (state.firstLoading && !profile.viewAllClients && !profile.viewMultipleClients) {\r\n state.tablePage = 1;\r\n render();\r\n handleGetDAMS();\r\n }\r\n }, [state.ownershipFilter]);\r\n\r\n useEffect(() => {\r\n if (!profile.viewAllClients && !profile.viewMultipleClients) {\r\n handleGetDAMS();\r\n }\r\n state.firstLoading = true;\r\n }, []);\r\n\r\n function loadSessionFilters() {\r\n const filters = getSessionStorageItem('automationAnalysisFilters') as null | {\r\n searchState: [],\r\n selectedState: [],\r\n selectedCity: [],\r\n selectedUnit: [],\r\n selectedClientFilter?: [],\r\n selectedControlType: [],\r\n selectedOperationStatus: [],\r\n selectedEcoMode: [],\r\n selectedConnection: [],\r\n selectedTemperature: [],\r\n };\r\n if (filters) {\r\n state.searchState = filters.searchState || [];\r\n state.selectedState = filters.selectedState || [];\r\n state.selectedCity = filters.selectedCity || [];\r\n state.selectedUnit = filters.selectedUnit || [];\r\n state.selectedClientFilter = filters.selectedClientFilter || [];\r\n state.selectedControlType = filters.selectedControlType || [];\r\n state.selectedOperationStatus = filters.selectedOperationStatus || [];\r\n state.selectedEcoMode = filters.selectedEcoMode || [];\r\n state.selectedConnection = filters.selectedConnection || [];\r\n state.selectedTemperature = filters.selectedTemperature || [];\r\n }\r\n render();\r\n removeSessionStorageItem('automationAnalysisFilters');\r\n }\r\n\r\n function saveSessionFilters() {\r\n const filters = {\r\n searchState: state.searchState,\r\n selectedState: state.selectedState,\r\n selectedCity: state.selectedCity,\r\n selectedUnit: state.selectedUnit,\r\n selectedControlType: state.selectedControlType,\r\n selectedOperationStatus: state.selectedOperationStatus,\r\n selectedEcoMode: state.selectedEcoMode,\r\n selectedConnection: state.selectedConnection,\r\n } as any;\r\n if (state.dielClientId) {\r\n filters.selectedClientFilter = state.selectedClientFilter;\r\n }\r\n saveSessionStorageItem('automationAnalysisFilters', filters);\r\n }\r\n\r\n async function clearFilters() {\r\n state.searchState = [];\r\n state.selectedCity = [];\r\n state.selectedClientFilter = [];\r\n state.selectedState = [];\r\n state.selectedConnection = [];\r\n state.selectedUnit = [];\r\n state.selectedControlType = [];\r\n state.selectedOperationStatus = [];\r\n state.selectedEcoMode = [];\r\n\r\n render();\r\n await handleGetDAMS();\r\n }\r\n // @ts-ignore\r\n const selectedDevs = state.environments.filter((dev) => dev.checked);\r\n\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaAutomacao')}\r\n \r\n \r\n { state.tablePage = 1; handleGetDAMS(); }}\r\n clearFilter={clearFilters}\r\n exportFunc={getCsvData}\r\n csvHeader={CSVHeader}\r\n listFilters={['estado', 'cidade', 'unidade', 'cliente', 'conexao', 'controle', 'modoEco', 'operacao', 'tipo', 'progDisp', 'id', 'temperatura']}\r\n isProg={isProg}\r\n setProg={(value: string) => { if (value === 'dispositivo') { setIsProg(false); } else { setIsProg(true); } }}\r\n lengthArrayResult={state.environments.length}\r\n />\r\n \r\n \r\n \r\n {(selectedDevs.length > 0) && (\r\n \r\n applyActionToSelected(opt.value, selectedDevs)}\r\n />\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {state.needFilter && (\r\n <>\r\n \r\n \r\n )}\r\n {state.isLoading\r\n ? (\r\n \r\n \r\n \r\n )\r\n : !state.needFilter && (\r\n <>\r\n \r\n {state.environments\r\n ? (\r\n \r\n )\r\n : (\r\n \r\n \r\n {t('naoFoiPossivelCarregarDados')}\r\n \r\n \r\n )}\r\n \r\n \r\n {state.environments\r\n ? (\r\n \r\n )\r\n : (\r\n \r\n \r\n {t('naoFoiPossivelCarregarDados')}\r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n {(state.wantSetClient)\r\n && (\r\n // @ts-ignore\r\n \r\n

{t('selecioneCliente')}

\r\n { state.selectedClient = item; render(); }}\r\n />\r\n
\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nconst StatusIcon = styled.div<{ color?, status?}>(\r\n ({ color, status }) => `\r\n width: 10px;\r\n height: 10px;\r\n margin-left: 5px;\r\n border-radius: 50%;\r\n border: 2px solid ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n background: ${color || (status === 'ONLINE' ? colors.Blue300 : colors.Grey200)};\r\n font-weight: bold;\r\n font-size: 0.8em;\r\n line-height: 18px;\r\n color: ${colors.White};\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n text-transform: capitalize;\r\n`,\r\n);\r\n\r\nexport default withTransaction('DamsList', 'component')(DamsList);\r\n","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport Plot from 'react-plotly.js';\r\nimport { useParams } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n Button, Datepicker, Overlay, Loader,\r\n} from '~/components';\r\nimport { processReceivedHistoryDAM } from '~/helpers';\r\nimport * as axisCalc from '~/helpers/axisCalc';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { ContinuousHistVar, DiscreteHistVar } from '~/helpers/formatArrHistory';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { CloseIcon } from '~/icons';\r\nimport { DevLayout } from '~/pages/Analysis/DEVs/DevLayout';\r\nimport { AssetLayout } from '~/pages/Analysis/Assets/AssetLayout';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { apiCall, ApiResps } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { NoGraph } from '~/components/NoGraph';\r\nimport moment from 'moment';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport const DamHistory = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ devId }>();\r\n const history = useHistory();\r\n const linkBase = history.location.pathname;\r\n let assetLayout = false;\r\n assetLayout = linkBase.includes('/ativo');\r\n const [, render] = useStateVar({});\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaHistorico')}\r\n \r\n {!assetLayout ? () : ()}\r\n \r\n \r\n );\r\n};\r\n\r\nexport function DamHistoryContents(props: { onDevInfoUpdate?: () => void }): JSX.Element {\r\n const { onDevInfoUpdate } = props;\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ devId: string }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n damId: routeParams.devId,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n isModalOpen: false,\r\n isLoading: false,\r\n date: null as null|moment.Moment,\r\n dutRoomName: '' as string,\r\n damCharts: {} as {\r\n State?: DiscreteHistVar,\r\n Mode?: DiscreteHistVar,\r\n ecoCmd?: DiscreteHistVar,\r\n humidity?: {\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n } | null\r\n Temperature?: {\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n Temperature_1?: {\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n limTmin?: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n limTmax?: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n tSetpoint?: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n },\r\n dutChart: null as null|{\r\n temprt: {\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n temprt1: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n limTmin: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n limTmax: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n tSetpoint: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n l1: null | DiscreteHistVar\r\n tLti: ContinuousHistVar | null;\r\n },\r\n dutDuoChartNotAut: null as null|{\r\n temprt: {\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n temprt1: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n limTmin: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n limTmax: null|{\r\n d: { x: number, y?: number|null }[]\r\n limits: [number, number]\r\n }\r\n },\r\n conclusionsDam: [] as string[],\r\n dacsCharts: [] as {\r\n dacId: string\r\n groupId: string\r\n potNominal: number\r\n chartData: DiscreteHistVar\r\n conclusions: string[]\r\n stateStats: {\r\n cond1_hit: number\r\n cond1_miss: number\r\n cond2_hit: number\r\n cond2_miss: number\r\n ecoFull_hit: number\r\n noEcoVent_hit: number\r\n }\r\n isCond1?: boolean\r\n isCond2?: boolean\r\n }[],\r\n asTable: [] as (number|string)[][],\r\n dacsCols: [] as string[],\r\n newCharts: [] as {\r\n x: string[],\r\n y: (number|null)[],\r\n text?: string[],\r\n type: string,\r\n mode: string,\r\n line: {\r\n color: string,\r\n width: number,\r\n dash?: string,\r\n },\r\n hovertemplate?: string,\r\n customdata?: unknown[],\r\n name?: string,\r\n visible?: boolean | 'legendonly',\r\n }[],\r\n daySched: null as null|{\r\n type: 'allow' | 'forbid';\r\n startHM: string;\r\n endHM: string;\r\n indexIni: number;\r\n indexEnd: number;\r\n },\r\n axisDataLimits: {} as { minTval?: number, maxTval?: number },\r\n axisInfo: {\r\n L1start: null as null|number,\r\n leftLimits: [-10, 5],\r\n leftTicks: [-10, 5],\r\n leftTicksLabels: ['-10', '5'],\r\n stepTicksNames: {}, // { '-1.1': 'LIGADO' }\r\n rightLimits: [0, 100],\r\n rightTicks: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],\r\n rightTickLabels: ['0%', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'],\r\n },\r\n graphEnable: {\r\n State: true,\r\n Mode: true,\r\n ecoCmd: true,\r\n dutT: true,\r\n dutL1: true,\r\n },\r\n profile: getUserProfile(),\r\n };\r\n return state;\r\n });\r\n\r\n function setFormattedDate(date) {\r\n if (!date) {\r\n state.date = null;\r\n } else {\r\n state.date = date.set({ hour: 0 });\r\n }\r\n render();\r\n }\r\n\r\n async function fetchServerData() {\r\n try {\r\n const devInfo = await getCachedDevInfo(state.damId, {});\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n state.devInfo = devInfo;\r\n if (devInfo?.dam?.REL_DUT_ID) {\r\n const dutInfo = await getCachedDevInfo(devInfo?.dam?.REL_DUT_ID, {});\r\n state.dutRoomName = dutInfo?.dut?.ROOM_NAME ?? 'DUT';\r\n }\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n const getTranslatedInstallationLocation = (str?: string|null) => {\r\n const opts = {\r\n 'casa-de-maquina': t('casaDeMaquina'),\r\n 'ambiente-refrigerado': t('ambienteRefrigeradoDam'),\r\n };\r\n\r\n return (str && opts[str]) || `Temperatura do Local de Instalação do ${state.devInfo.DEV_ID}`;\r\n };\r\n\r\n const getDamTemperatureLabel = () => ((state.devInfo.dam?.PLACEMENT === 'RETURN' || (state.devInfo.dam?.PLACEMENT === 'DUO' && state.devInfo.dam?.T0_POSITION === 'RETURN')) ? getTranslatedInstallationLocation(state.devInfo?.dam?.INSTALLATION_LOCATION) : t('temperaturaDeInsuflamento'));\r\n const getDamTemperature1Label = () => (state.devInfo.dam?.T1_POSITION === 'RETURN' ? getTranslatedInstallationLocation(state.devInfo?.dam?.INSTALLATION_LOCATION) : t('temperaturaDeInsuflamento'));\r\n\r\n const getDamTemperatureVisibility = (): boolean | 'legendonly' => (state.devInfo.dam.SELF_REFERENCE ? true : 'legendonly');\r\n\r\n const isBBOrDiel = (): boolean => (state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1);\r\n\r\n const addDamTemperatureLines = (damCharts: typeof state.damCharts) => {\r\n if (state.devInfo.dam && damCharts.Temperature && (state.devInfo.dam?.PLACEMENT === 'RETURN' || (state.devInfo.dam?.PLACEMENT === 'DUO' && state.devInfo.dam.T0_POSITION))) {\r\n if (!((state.devInfo.dam?.PLACEMENT === 'RETURN' || (state.devInfo.dam?.PLACEMENT === 'DUO' && state.devInfo.dam.T0_POSITION === 'RETURN')) && (state.dutChart?.temprt))) {\r\n state.newCharts.push({\r\n name: getDamTemperatureLabel(),\r\n x: damCharts.Temperature.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.Temperature.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n visible: getDamTemperatureVisibility(),\r\n line: { color: colors.Yellow, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: damCharts.Temperature.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n }\r\n // FEATURE DISPONIVEL APENAS PARA OS CLIENTES: BANCO DO BRASIL e DIEL ENERGIA\r\n if (state.devInfo.dam && damCharts.Temperature_1 && state.devInfo.dam?.PLACEMENT === 'DUO' && state.devInfo.dam.T1_POSITION && isBBOrDiel()) {\r\n if (!((state.devInfo.dam?.PLACEMENT === 'RETURN' || (state.devInfo.dam?.PLACEMENT === 'DUO' && state.devInfo.dam.T1_POSITION === 'RETURN')) && (state.dutChart?.temprt))) {\r\n state.newCharts.push({\r\n name: getDamTemperature1Label(),\r\n x: damCharts.Temperature_1.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.Temperature_1.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Green_v2, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: damCharts.Temperature_1.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n }\r\n };\r\n\r\n const addDamDefaultLines = (damCharts: typeof state.damCharts) => {\r\n if (damCharts.Mode) {\r\n state.newCharts.push({\r\n name: 'Mode',\r\n x: damCharts.Mode.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.Mode.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Red, width: 1 },\r\n hovertemplate: '%{y}',\r\n });\r\n }\r\n if (damCharts.State) {\r\n state.newCharts.push({\r\n name: 'State',\r\n x: damCharts.State.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.State.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: '#F032E6', width: 1 },\r\n hovertemplate: '%{y}',\r\n });\r\n }\r\n if (damCharts.ecoCmd) {\r\n state.newCharts.push({\r\n name: 'CmdEco',\r\n x: damCharts.ecoCmd.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.ecoCmd.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Blue300, width: 1 },\r\n hovertemplate: '%{y}',\r\n });\r\n }\r\n if (damCharts.humidity) {\r\n state.newCharts.push({\r\n name: 'Umidade',\r\n x: damCharts.humidity.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.humidity.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Blue400, width: 1 },\r\n hovertemplate: '%{customdata} %',\r\n customdata: damCharts.humidity.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n yaxis: 'y2',\r\n });\r\n }\r\n addDamTemperatureLines(damCharts);\r\n };\r\n\r\n const addDamSelfReferenceLines = (damCharts: typeof state.damCharts, parsedGraphData: ReturnType) => {\r\n if (damCharts.limTmax) {\r\n state.newCharts.push({\r\n name: 'max',\r\n x: damCharts.limTmax.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.limTmax.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Green, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: damCharts.limTmax.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n if (damCharts.limTmin) {\r\n state.newCharts.push({\r\n name: 'min',\r\n x: damCharts.limTmin.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.limTmin.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Green, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: damCharts.limTmin.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n if (damCharts.tSetpoint && (parsedGraphData.setpointHist == null || parsedGraphData.setpointHist.d.length === 0)) {\r\n state.newCharts.push({\r\n name: 'setpoint',\r\n x: damCharts.tSetpoint.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.tSetpoint.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { dash: 'dot', color: colors.Green, width: 2 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: damCharts.tSetpoint.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n else if (parsedGraphData.setpointHist != null && parsedGraphData.setpointHist.d.length > 0) {\r\n state.newCharts.push({\r\n name: 'setpoint',\r\n x: parsedGraphData.setpointHist.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: parsedGraphData.setpointHist.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { dash: 'dot', color: colors.Green, width: 2 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: parsedGraphData.setpointHist.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n if (state.profile.manageAllClients && state.devInfo.dam && state.devInfo.dam.CAN_SELF_REFERENCE) {\r\n if (damCharts.tSetpoint) {\r\n state.newCharts.push({\r\n name: 'histerese sup.',\r\n x: damCharts.tSetpoint.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.tSetpoint.d.map((item) => item.y! + (state.devInfo.dam.UPPER_HYSTERESIS || 0)),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: '#6AA5E0', width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: damCharts.tSetpoint.d.map((item) => formatNumberWithFractionDigits(item.y! + (state.devInfo.dam.UPPER_HYSTERESIS || 0))),\r\n });\r\n state.newCharts.push({\r\n name: 'histerese inf.',\r\n x: damCharts.tSetpoint.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: damCharts.tSetpoint.d.map((item) => item.y! - (state.devInfo.dam.LOWER_HYSTERESIS || 0)),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: '#6AA5E0', width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: damCharts.tSetpoint.d.map((item) => formatNumberWithFractionDigits(item.y! - (state.devInfo.dam.LOWER_HYSTERESIS || 0))),\r\n });\r\n }\r\n }\r\n };\r\n\r\n const addDutHistereseLines = () => {\r\n if (state.profile.manageAllClients && state.devInfo.dam?.CAN_SELF_REFERENCE) {\r\n if (state.dutChart?.tSetpoint) {\r\n state.newCharts.push({\r\n name: 'histerese sup.',\r\n x: state.dutChart.tSetpoint.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.tSetpoint.d.map((item) => item.y! + (state.devInfo.dam.UPPER_HYSTERESIS || 0)),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: '#6AA5E0', width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.tSetpoint.d.map((item) => formatNumberWithFractionDigits(item.y! + (state.devInfo.dam.UPPER_HYSTERESIS || 0))),\r\n });\r\n state.newCharts.push({\r\n name: 'histerese inf.',\r\n x: state.dutChart.tSetpoint.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.tSetpoint.d.map((item) => item.y! - (state.devInfo.dam.LOWER_HYSTERESIS || 0)),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: '#6AA5E0', width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.tSetpoint.d.map((item) => formatNumberWithFractionDigits(item.y! - (state.devInfo.dam.LOWER_HYSTERESIS || 0))),\r\n });\r\n }\r\n }\r\n };\r\n\r\n const addDutLtiLines = (): void => {\r\n if (state.dutChart?.tLti) {\r\n state.newCharts.push({\r\n name: 'LTI',\r\n x: state.dutChart.tLti.d.map((item) => state.date?.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)).filter(Boolean) as string[],\r\n y: state.dutChart.tLti.d.map((item) => item.y).filter(Boolean) as number[],\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { dash: 'dot', color: '#a4c9ec', width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.tLti.d.map((item) => formatNumberWithFractionDigits(item.y ?? 0)),\r\n });\r\n }\r\n };\r\n\r\n function isFancoil() {\r\n if (state.devInfo.dut && state.devInfo.dut.APPLICATION === 'fancoil') {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function nameTemp1() {\r\n let name;\r\n if (state.dutChart && !state.dutChart.temprt1) {\r\n name = state.dutRoomName ?? 'DUT';\r\n } else if (isFancoil()) {\r\n name = 'DUT Temp Saída de Água';\r\n } else {\r\n name = 'DUT Temp Retorno';\r\n }\r\n return name;\r\n }\r\n\r\n function nameTemp2() {\r\n let name = '';\r\n if (isFancoil()) {\r\n name = 'DUT Temp Entrada de Água';\r\n }\r\n else {\r\n name = 'DUT Temp Insuflamento';\r\n }\r\n return name;\r\n }\r\n\r\n const addDutChartLines = (parsedGraphData: ReturnType) => {\r\n if (state.dutChart?.temprt) {\r\n state.newCharts.push({\r\n name: nameTemp1(),\r\n x: state.dutChart.temprt.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.temprt.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Orange, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.temprt.d.map((item) => formatNumberWithFractionDigits(item.y ?? 0)),\r\n });\r\n }\r\n if (state.dutChart?.temprt1) {\r\n state.newCharts.push({\r\n name: nameTemp2(),\r\n x: state.dutChart.temprt1.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.temprt1.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Blue300, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.temprt1.d.map((item) => formatNumberWithFractionDigits(item.y ?? 0)),\r\n });\r\n }\r\n if (state.dutChart?.l1) {\r\n state.newCharts.push({\r\n name: 'DUT L1',\r\n x: state.dutChart.l1.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.l1.d.map((item) => item.y || null),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Black, width: 1 },\r\n hovertemplate: '%{y}',\r\n });\r\n }\r\n if (state.dutChart?.limTmax) {\r\n state.newCharts.push({\r\n name: 'max',\r\n x: state.dutChart.limTmax.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.limTmax.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Green, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.limTmax.d.map((item) => formatNumberWithFractionDigits(item.y ?? 0)),\r\n });\r\n }\r\n if (state.dutChart?.limTmin) {\r\n state.newCharts.push({\r\n name: 'min',\r\n x: state.dutChart.limTmin.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.limTmin.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Green, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.limTmin.d.map((item) => formatNumberWithFractionDigits(item.y ?? 0)),\r\n });\r\n }\r\n if (state.dutChart?.tSetpoint && (parsedGraphData.setpointHist == null || parsedGraphData.setpointHist.d.length === 0)) {\r\n state.newCharts.push({\r\n name: 'setpoint',\r\n x: state.dutChart.tSetpoint.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutChart.tSetpoint.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { dash: 'dot', color: colors.Green, width: 2 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutChart.tSetpoint.d.map((item) => formatNumberWithFractionDigits(item.y ?? 0)),\r\n });\r\n }\r\n else if (parsedGraphData.setpointHist != null && parsedGraphData.setpointHist.d.length > 0) {\r\n state.newCharts.push({\r\n name: 'setpoint',\r\n x: parsedGraphData.setpointHist.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: parsedGraphData.setpointHist.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { dash: 'dot', color: colors.Green, width: 2 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: parsedGraphData.setpointHist.d.map((item) => formatNumberWithFractionDigits(item.y ?? 0)),\r\n });\r\n }\r\n\r\n addDutHistereseLines();\r\n\r\n addDutLtiLines();\r\n };\r\n\r\n const addDutDuoNotAutLines = () => {\r\n if (state.dutDuoChartNotAut) {\r\n if (state.dutDuoChartNotAut.temprt1) {\r\n state.newCharts.push({\r\n name: t('temperaturadeInsuflamento'),\r\n x: state.dutDuoChartNotAut.temprt1.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutDuoChartNotAut.temprt1.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Yellow, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutDuoChartNotAut.temprt1.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n if (state.dutDuoChartNotAut.temprt) {\r\n state.newCharts.push({\r\n name: t('temperaturadeRetorno'),\r\n x: state.dutDuoChartNotAut.temprt.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: state.dutDuoChartNotAut.temprt.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: colors.Green_v2, width: 1 },\r\n hovertemplate: '%{customdata} °C',\r\n customdata: state.dutDuoChartNotAut.temprt.d.map((item) => formatNumberWithFractionDigits(item.y!)),\r\n });\r\n }\r\n }\r\n };\r\n\r\n const addDacLines = () => {\r\n for (const dacInfo of (state.dacsCharts || [])) {\r\n state.newCharts.push({\r\n name: dacInfo.dacId,\r\n x: dacInfo.chartData.d.map((item) => state.date!.clone().add(moment.duration(item.x * 3600 * 1000)).toISOString(true)),\r\n y: dacInfo.chartData.d.map((item) => item.y!),\r\n type: 'scatter',\r\n mode: 'lines',\r\n line: { color: '#911EB4', width: 1 },\r\n hovertemplate: '%{y}',\r\n });\r\n }\r\n };\r\n\r\n const valueOrEmptyArr = (value) => (value || []);\r\n\r\n const formatAsTable = (comprHistory: ApiResps['/get-autom-day-charts-data']) => {\r\n state.asTable = [];\r\n state.dacsCols = [];\r\n if (!comprHistory.asTable?.c.length) return;\r\n const {\r\n c, prog, Mode, State, ecoCmd, dacsRows, dacsCols, labels_State,\r\n } = comprHistory.asTable;\r\n state.dacsCols = valueOrEmptyArr(dacsCols);\r\n const labelsMode = valueOrEmptyArr(comprHistory.Mode?.labels);\r\n const labelsState = valueOrEmptyArr(labels_State || (comprHistory.State?.labels));\r\n const labelsEcoCmd = valueOrEmptyArr(comprHistory.ecoCmd?.labels);\r\n const labelsProg = valueOrEmptyArr(comprHistory.prog?.labels);\r\n for (let i = 0; i < c.length; i++) {\r\n const row = [\r\n c[i],\r\n (prog && labelsProg[prog[i]]) || '',\r\n (Mode && labelsMode[Mode[i]]) || '',\r\n (State && labelsState[State[i]]) || '',\r\n (ecoCmd && labelsEcoCmd[ecoCmd[i]]) || '',\r\n ];\r\n row.push(''); // Modo Economia\r\n for (const dac of dacsRows) {\r\n row.push(dac[i]);\r\n row.push(''); // Economia DAC\r\n }\r\n state.asTable.push(row);\r\n }\r\n };\r\n\r\n const createDacLines = (comprHistory: ApiResps['/get-autom-day-charts-data'], parsedGraphData: ReturnType) => {\r\n for (const [dacId, dacLine] of Object.entries(parsedGraphData.dacs || {})) {\r\n // if (!dacLine) continue;\r\n if (!comprHistory.asTable.dacsCols.includes(dacId)) continue;\r\n const dacInf = comprHistory.dacsInfo?.[dacId];\r\n state.dacsCharts.push({\r\n dacId,\r\n groupId: dacLine.groupId,\r\n chartData: dacLine,\r\n usePeriod: null,\r\n useFactor: null,\r\n potNominal: dacInf?.DAC_KW,\r\n conclusions: [],\r\n states: [],\r\n stateStats: {\r\n cond1_hit: 0,\r\n cond1_miss: 0,\r\n cond2_hit: 0,\r\n cond2_miss: 0,\r\n ecoFull_hit: 0,\r\n noEcoVent_hit: 0,\r\n },\r\n });\r\n }\r\n };\r\n\r\n async function updateChartData() {\r\n if (!state.devInfo) return;\r\n if (!state.date) return;\r\n\r\n try {\r\n if (!state.isLoading) {\r\n setState({ isLoading: true });\r\n }\r\n state.damCharts = {};\r\n state.dacsCharts = [];\r\n state.dutChart = null;\r\n state.dutDuoChartNotAut = null;\r\n\r\n const params = {\r\n devId: state.damId,\r\n day: state.date.format().substring(0, 10),\r\n };\r\n const comprHistory = await apiCall('/get-autom-day-charts-data', params);\r\n\r\n if (comprHistory.provision_error) { toast.error(t('erroDadosIncompletos')); }\r\n\r\n const parsedGraphData = processReceivedHistoryDAM(comprHistory, state.devInfo);\r\n\r\n const damCharts = state.damCharts = {\r\n State: parsedGraphData.State,\r\n Mode: parsedGraphData.Mode,\r\n ecoCmd: parsedGraphData.ecoCmd,\r\n Temperature: parsedGraphData.damTemperature,\r\n Temperature_1: parsedGraphData.damTemperature_1,\r\n limTmin: parsedGraphData.limTmin,\r\n limTmax: parsedGraphData.limTmax,\r\n tSetpoint: parsedGraphData.tSetpoint,\r\n humidity: parsedGraphData.humidity,\r\n };\r\n\r\n createDacLines(comprHistory, parsedGraphData);\r\n\r\n state.conclusionsDam = [];\r\n state.dutChart = (!parsedGraphData.duts[0]?.isDutDuo && parsedGraphData.duts[0]) || null;\r\n const dutsDuoNotAut = parsedGraphData.duts.filter((dut) => dut?.isDutDuo);\r\n state.dutDuoChartNotAut = dutsDuoNotAut.length > 0 ? dutsDuoNotAut[0] : null;\r\n state.daySched = comprHistory.daySched || null;\r\n\r\n updateAxis();\r\n\r\n state.newCharts = [];\r\n addDamDefaultLines(damCharts);\r\n if (state.devInfo.dam?.SELF_REFERENCE) {\r\n addDamSelfReferenceLines(damCharts, parsedGraphData);\r\n }\r\n else if (state.dutChart) {\r\n addDutChartLines(parsedGraphData);\r\n }\r\n\r\n addDutDuoNotAutLines();\r\n\r\n addDacLines();\r\n\r\n for (const chart of state.newCharts) {\r\n chart.text = chart.x.map((x) => x.substring(11, 19));\r\n }\r\n\r\n formatAsTable(comprHistory);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n\r\n setState({ isLoading: false });\r\n }\r\n\r\n const setTemprtLimits = (limits: { max: null|number, min: null|number }) => {\r\n if (!state.dutChart?.temprt?.limits) return;\r\n\r\n const [minTval, maxTval] = state.dutChart.temprt.limits;\r\n if (state.dutChart && maxTval && (maxTval > limits.max! || limits.max == null)) {\r\n limits.max = maxTval;\r\n }\r\n if (state.dutChart && minTval && (minTval < limits.min! || limits.min == null)) {\r\n limits.min = minTval;\r\n }\r\n };\r\n\r\n const setDutsLimits = (limits: { max: null|number, min: null|number }) => {\r\n if (!state.dutChart) return;\r\n\r\n if (state.dutChart.limTmax?.limits.length) {\r\n if (!limits.max || state.dutChart.limTmax.limits[1] > limits.max) {\r\n limits.max = state.dutChart.limTmax.limits[1];\r\n }\r\n }\r\n if (state.dutChart.limTmin?.limits.length) {\r\n if (!limits.min || state.dutChart.limTmin.limits[0] < limits.min) {\r\n limits.min = state.dutChart.limTmin.limits[0];\r\n }\r\n }\r\n const yTempArrayMax = state.dutChart.temprt1?.d.map((item) => item.y ?? limits.max) as number[];\r\n if (yTempArrayMax) {\r\n const maxLimit = Math.max(...yTempArrayMax);\r\n limits.max = maxLimit;\r\n }\r\n const yTempArrayMin = state.dutChart.temprt1?.d.map((item) => item.y ?? limits.min) as number[];\r\n if (yTempArrayMin) {\r\n const minLimit = Math.min(...yTempArrayMin);\r\n limits.min = minLimit;\r\n }\r\n setTemprtLimits(limits);\r\n };\r\n\r\n const setDamsTLimits = (limits: { max: null|number, min: null|number }) => {\r\n if (state.damCharts.limTmax?.limits.length) {\r\n if (!limits.max || state.damCharts.limTmax.limits[1] > limits.max) {\r\n limits.max = state.damCharts.limTmax.limits[1];\r\n }\r\n }\r\n if (state.damCharts.limTmin?.limits.length) {\r\n if (!limits.min || state.damCharts.limTmin.limits[0] < limits.min) {\r\n limits.min = state.damCharts.limTmin.limits[0];\r\n }\r\n }\r\n };\r\n\r\n const setDamsTempLimits = (limits: { max: null|number, min: null|number }) => {\r\n if (state.damCharts.Temperature && (state.devInfo.dam?.PLACEMENT === 'RETURN' || (state.devInfo.dam?.PLACEMENT === 'DUO' && state.devInfo.dam.T0_POSITION))) {\r\n const [minTval, maxTval] = state.damCharts.Temperature.limits;\r\n if (state.damCharts && maxTval && (maxTval > limits.max! || limits.max == null)) {\r\n limits.max = maxTval;\r\n }\r\n if (state.damCharts && minTval && (minTval < limits.min! || limits.min == null)) {\r\n limits.min = minTval;\r\n }\r\n }\r\n };\r\n\r\n const setDamsTemp1Limits = (limits: { max: null|number, min: null|number }) => {\r\n // FEATURE DISPONIVEL APENAS PARA OS CLIENTES: BANCO DO BRASIL e DIEL ENERGIA\r\n if (state.damCharts.Temperature_1 && state.devInfo.dam?.PLACEMENT === 'DUO' && state.devInfo.dam.T1_POSITION && (state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1)) {\r\n const [minTval, maxTval] = state.damCharts.Temperature_1.limits;\r\n if (state.damCharts && maxTval && (maxTval > limits.max! || limits.max == null)) {\r\n limits.max = maxTval;\r\n }\r\n if (state.damCharts && minTval && (minTval < limits.min! || limits.min == null)) {\r\n limits.min = minTval;\r\n }\r\n }\r\n };\r\n\r\n const setDamsLimits = (limits: { max: null|number, min: null|number }) => {\r\n setDamsTLimits(limits);\r\n setDamsTempLimits(limits);\r\n setDamsTemp1Limits(limits);\r\n };\r\n\r\n const setDutsDuoTemprtLimits = (limits: { max: null|number, min: null|number }) => {\r\n if (!state.dutDuoChartNotAut?.temprt?.limits) return;\r\n\r\n const [minTval, maxTval] = state.dutDuoChartNotAut.temprt.limits;\r\n if (maxTval && (maxTval > limits.max! || limits.max == null)) {\r\n limits.max = maxTval;\r\n }\r\n if (minTval && (minTval < limits.min! || limits.min == null)) {\r\n limits.min = minTval;\r\n }\r\n };\r\n\r\n const setDutsDuoTemprt1Limits = (limits: { max: null|number, min: null|number }) => {\r\n if (!state.dutDuoChartNotAut?.temprt1?.limits) return;\r\n\r\n const [minTval, maxTval] = state.dutDuoChartNotAut.temprt1.limits;\r\n if (maxTval && (maxTval > limits.max! || limits.max == null)) {\r\n limits.max = maxTval;\r\n }\r\n if (minTval && (minTval < limits.min! || limits.min == null)) {\r\n limits.min = minTval;\r\n }\r\n };\r\n\r\n const setDutsDuoLimits = (limits: { max: null|number, min: null|number }) => {\r\n if (!state.dutDuoChartNotAut) return;\r\n\r\n if (state.dutDuoChartNotAut.temprt?.limits) {\r\n setDutsDuoTemprtLimits(limits);\r\n }\r\n if (state.dutDuoChartNotAut.temprt1?.limits) {\r\n setDutsDuoTemprt1Limits(limits);\r\n }\r\n };\r\n\r\n function updateAxis() {\r\n const limits = { max: null as null|number, min: null as null|number };\r\n\r\n setDutsLimits(limits);\r\n\r\n setDamsLimits(limits);\r\n\r\n setDutsDuoLimits(limits);\r\n\r\n const { L1start, ticks, maxAxisVal } = axisCalc.calculateTemprtAxisInfo(limits);\r\n\r\n const steppedLines: DiscreteHistVar[] = [];\r\n if (state.damCharts.Mode) steppedLines.push(state.damCharts.Mode);\r\n if (state.damCharts.State) steppedLines.push(state.damCharts.State);\r\n if (state.damCharts.ecoCmd) steppedLines.push(state.damCharts.ecoCmd);\r\n for (const dacInfo of (state.dacsCharts || [])) {\r\n steppedLines.push(dacInfo.chartData);\r\n }\r\n if (state.dutChart?.l1) steppedLines.push(state.dutChart.l1);\r\n\r\n const { allTicks, ticksNames, endValue } = axisCalc.updateStepY(steppedLines, L1start);\r\n state.axisInfo.L1start = L1start;\r\n state.axisInfo.leftLimits = [endValue - 2, ticks.length ? maxAxisVal : (L1start + 0.5)];\r\n state.axisInfo.leftTicks = [...ticks, ...allTicks];\r\n state.axisInfo.stepTicksNames = ticksNames;\r\n\r\n state.axisInfo.leftTicksLabels = state.axisInfo.leftTicks.map((v) => { const vs = String(v); return ticksNames[vs] || vs; });\r\n }\r\n\r\n function calculateStats(comprHistory: ApiResps['/get-autom-day-charts-data']) {\r\n // groupsInfo: { [groupId: string]: { GROUP_NAME: string } }, unitInfo: { greenAntCons_kWh: number, averageTariff: number }, damInfo: { FU_NOM: number }\r\n const { groupsInfo, unitInfo, automInfo: damInfo } = comprHistory;\r\n const statsCounters = {} as {\r\n [dacId: string]: {\r\n dacId: string\r\n firstL1: number|null\r\n lastL1: number|null\r\n lastL1iRow: number\r\n fuRef: number|null\r\n inL1: {\r\n on: number\r\n off: number\r\n ignr: number\r\n }\r\n inProg: {\r\n on: number\r\n off: number\r\n ignr: number\r\n }\r\n inProg_B: {\r\n on: number\r\n off: number\r\n ena: number\r\n dis: number\r\n C1: number\r\n C2: number\r\n ignr: number\r\n }\r\n inEnabled: {\r\n on: number\r\n off: number\r\n ignr: number\r\n }\r\n inC1: {\r\n on: number\r\n off: number\r\n ignr: number\r\n }\r\n inC2: {\r\n on: number\r\n off: number\r\n ignr: number\r\n }\r\n inForbid: {\r\n on: number\r\n off: number\r\n ignr: number\r\n }\r\n stateStats: {\r\n cond1_hit: number\r\n cond1_miss: number\r\n cond2_hit: number\r\n cond2_miss: number\r\n ecoFull_hit: number\r\n noEcoVent_hit: number\r\n }\r\n }\r\n };\r\n for (let iD = 0; iD < state.dacsCols.length; iD++) {\r\n const dacId = state.dacsCols[iD];\r\n let lastL1iRow = -1;\r\n for (let iR = state.asTable.length - 1; iR >= 0; iR--) {\r\n const row = state.asTable[iR];\r\n const dacL1 = row[6 + 2 * iD];\r\n if (dacL1 === 1) {\r\n lastL1iRow = iR;\r\n break;\r\n }\r\n }\r\n statsCounters[dacId] = {\r\n dacId,\r\n firstL1: null,\r\n lastL1: null,\r\n fuRef: null,\r\n lastL1iRow,\r\n inL1: { on: 0, off: 0, ignr: 0 },\r\n inProg: { on: 0, off: 0, ignr: 0 },\r\n inProg_B: {\r\n on: 0, off: 0, ena: 0, dis: 0, C1: 0, C2: 0, ignr: 0,\r\n },\r\n inEnabled: { on: 0, off: 0, ignr: 0 },\r\n inC1: { on: 0, off: 0, ignr: 0 },\r\n inC2: { on: 0, off: 0, ignr: 0 },\r\n inForbid: { on: 0, off: 0, ignr: 0 },\r\n inProgOn: 0,\r\n inProgOff: 0,\r\n inProgIgnored: 0,\r\n stateStats: {\r\n cond1_hit: 0,\r\n cond1_miss: 0,\r\n cond2_hit: 0,\r\n cond2_miss: 0,\r\n ecoFull_hit: 0,\r\n noEcoVent_hit: 0,\r\n },\r\n };\r\n const dacInfo = state.dacsCharts.find((x) => x.dacId === dacId)!;\r\n dacInfo.stateStats = statsCounters[dacId].stateStats;\r\n }\r\n let tempoStateEnabled = 0;\r\n let tempoStateVentilation = 0;\r\n let tempoStateC1 = 0;\r\n let tempoStateC2 = 0;\r\n let accT = 0;\r\n let timeDamOffline = 0;\r\n // let damIsBlocking = null;\r\n for (let iR = 0; iR < state.asTable.length; iR++) {\r\n const row = state.asTable[iR];\r\n const rowDuration = row[0] as number;\r\n const rowProg = row[1] as string;\r\n const rowMode = row[2] as string;\r\n const rowState = row[3] as string;\r\n const rowEcoCmd = row[4] as string;\r\n\r\n if (!rowState) timeDamOffline += rowDuration;\r\n else timeDamOffline = 0;\r\n\r\n if (rowMode === 'Auto') {\r\n if (rowState === 'Enabled') { tempoStateEnabled += rowDuration; } else if (rowState === 'Ventilation') { tempoStateVentilation += rowDuration; } else if (rowState === 'Condenser 1') { tempoStateC1 += rowDuration; } else if (rowState === 'Condenser 2') { tempoStateC2 += rowDuration; }\r\n }\r\n\r\n const isEcoCmd = (rowEcoCmd && rowEcoCmd !== 'Sem eco') || ['Condenser 1', 'Enabling Condenser 1', 'Condenser 2', 'Enabling Condenser 2'].includes(rowState);\r\n let rowSavingDet = '';\r\n if (isEcoCmd) {\r\n if (!rowEcoCmd) rowSavingDet = t('ignoradoCMD');\r\n else if (rowProg && (rowProg !== 'allow')) rowSavingDet = t('ignoradoProg');\r\n else if (['Disabling', 'Starting Ventilation', 'Enabling Condenser 1', 'Enabling Condenser 2'].includes(rowState)) rowSavingDet = t('ignoradoTRN');\r\n else if (rowState && (rowState !== rowEcoCmd)) rowSavingDet = t('ignoradoState');\r\n else if (rowMode && (rowMode !== 'Auto')) rowSavingDet = t('ignoradoMode');\r\n else if (timeDamOffline >= 20 * 60) rowSavingDet = t('ignoradoOffl');\r\n else rowSavingDet = 'ECO';\r\n }\r\n if (!rowSavingDet) {\r\n if (rowState === 'Starting Ventilation') rowSavingDet = t('ignoradoTRN');\r\n else if (rowState === 'Ventilation') rowSavingDet = t('ventilacao');\r\n }\r\n row[5] = rowSavingDet;\r\n\r\n // if (!rowProg) { // no programming defined\r\n // damIsBlocking = null;\r\n // }\r\n // else if (timeDamOffline >= 20*60) { // offline\r\n // damIsBlocking = null;\r\n // }\r\n // else if (rowProg === 'allow') {\r\n // damIsBlocking = false;\r\n // } else { // if (rowProg === 'forbid')\r\n // damIsBlocking = false;\r\n // }\r\n\r\n for (let iD = 0; iD < state.dacsCols.length; iD++) {\r\n const dacId = state.dacsCols[iD];\r\n const dacStats = statsCounters[dacId];\r\n const dacL1 = row[6 + 2 * iD];\r\n if (dacL1 === 1) {\r\n if (dacStats.firstL1 == null) dacStats.firstL1 = accT;\r\n dacStats.inL1.on += rowDuration;\r\n if (iR === dacStats.lastL1iRow) {\r\n dacStats.lastL1 = accT + rowDuration - 1;\r\n }\r\n } else if (dacL1 === 0) {\r\n if ((dacStats.firstL1 != null) && (iR < dacStats.lastL1iRow)) {\r\n dacStats.inL1.off += rowDuration;\r\n }\r\n } else if ((dacStats.firstL1 != null) && (iR < dacStats.lastL1iRow)) {\r\n dacStats.inL1.ignr += rowDuration;\r\n }\r\n let disabledRow = '';\r\n if (rowProg === 'allow') {\r\n if (dacL1 === 1) {\r\n dacStats.inProg.on += rowDuration;\r\n } else if (dacL1 === 0) {\r\n dacStats.inProg.off += rowDuration;\r\n } else {\r\n dacStats.inProg.ignr += rowDuration;\r\n }\r\n if (rowMode === 'Auto') {\r\n if (dacL1 === 1) {\r\n dacStats.inProg_B.on += rowDuration;\r\n disabledRow = t('ligadoMin');\r\n } else if (dacL1 === 0) {\r\n dacStats.inProg_B.off += rowDuration;\r\n disabledRow = t('desligadoMin');\r\n } else if (rowState === 'Enabled') {\r\n dacStats.inProg_B.ena += rowDuration;\r\n disabledRow = t('ligadoMin');\r\n } else if (rowState === 'Ventilation') {\r\n dacStats.inProg_B.dis += rowDuration;\r\n disabledRow = t('desligadoMin');\r\n } else if (rowState === 'Disabled') {\r\n dacStats.inProg_B.dis += rowDuration;\r\n disabledRow = t('desligadoMin');\r\n } else if (rowState === 'Condenser 1') {\r\n dacStats.inProg_B.C1 += rowDuration;\r\n disabledRow = t('ignoradoC1');\r\n } else if (rowState === 'Condenser 2') {\r\n dacStats.inProg_B.C2 += rowDuration;\r\n disabledRow = t('ignoradoC2');\r\n } else {\r\n dacStats.inProg_B.ignr += rowDuration;\r\n disabledRow = t('ignoradoState');\r\n }\r\n } else {\r\n dacStats.inProg_B.ignr += rowDuration;\r\n disabledRow = t('ignoradoMode');\r\n }\r\n }\r\n if (rowProg === 'forbid') {\r\n if (dacL1 === 1) {\r\n dacStats.inForbid.on += rowDuration;\r\n } else if (dacL1 === 0) {\r\n dacStats.inForbid.off += rowDuration;\r\n } else {\r\n dacStats.inForbid.ignr += rowDuration;\r\n }\r\n }\r\n if (rowMode === 'Auto') {\r\n if (rowState === 'Enabled') {\r\n if (dacL1 === 1) {\r\n dacStats.inEnabled.on += rowDuration;\r\n } else if (dacL1 === 0) {\r\n dacStats.inEnabled.off += rowDuration;\r\n } else {\r\n dacStats.inEnabled.ignr += rowDuration;\r\n }\r\n } else if (rowState === 'Condenser 1') {\r\n if (dacL1 === 1) {\r\n dacStats.inC1.on += rowDuration;\r\n } else if (dacL1 === 0) {\r\n dacStats.inC1.off += rowDuration;\r\n } else {\r\n dacStats.inC1.ignr += rowDuration;\r\n }\r\n } else if (rowState === 'Condenser 2') {\r\n if (dacL1 === 1) {\r\n dacStats.inC2.on += rowDuration;\r\n } else if (dacL1 === 0) {\r\n dacStats.inC2.off += rowDuration;\r\n } else {\r\n dacStats.inC2.ignr += rowDuration;\r\n }\r\n }\r\n }\r\n\r\n // if (['Condenser 1', 'Condenser 2'].includes(rowState) || ((!rowState) && ['Condenser 1', 'Condenser 2'].includes(rowEcoCmd))) {\r\n if (rowSavingDet === 'ECO') {\r\n if (rowEcoCmd === 'Condenser 1') {\r\n if (dacL1 === 1) { dacStats.stateStats.cond1_hit += rowDuration; } else { dacStats.stateStats.cond1_miss += rowDuration; }\r\n } else if (rowEcoCmd === 'Condenser 2') {\r\n if (dacL1 === 1) { dacStats.stateStats.cond2_hit += rowDuration; } else { dacStats.stateStats.cond2_miss += rowDuration; }\r\n } else if (dacL1 === 1) { } // ignore\r\n else { dacStats.stateStats.ecoFull_hit += rowDuration; }\r\n }\r\n if ((!isEcoCmd) && (rowState === 'Ventilation')) { // (rowSavingDet === 'Ventilation')\r\n if (dacL1 === 1) { } // ignore\r\n else { dacStats.stateStats.noEcoVent_hit += rowDuration; }\r\n }\r\n\r\n // let ecoDac = '';\r\n // if (rowSavingDet) {\r\n // if (rowSavingDet.startsWith('Ignorado')) {\r\n // // Ignore\r\n // }\r\n // else {\r\n // if (dacL1 === 1) {\r\n // ecoDac = 'Ignorado [L1]';\r\n // } else {\r\n // if (rowSavingDet === 'ECO') {\r\n // if ((rowEcoCmd === 'Disabled') || (rowEcoCmd === 'Ventilation')) ecoDac = 'Saving ECO';\r\n // else if ((rowEcoCmd === 'Condenser 1') || (rowEcoCmd === 'Condenser 2')) ecoDac = 'Ignorado [COND]';\r\n // else ecoDac = 'Ignorado [E1]';\r\n // }\r\n // else if (rowSavingDet === 'Ventilation') {\r\n // ecoDac = 'Saving Vent';\r\n // }\r\n // else {\r\n // ecoDac = 'Ignorado [E2]';\r\n // }\r\n // }\r\n // }\r\n // }\r\n // row[6 + 2 * iD + 1] = ecoDac;\r\n row[6 + 2 * iD + 1] = disabledRow;\r\n }\r\n accT += rowDuration;\r\n }\r\n\r\n identifyConds();\r\n\r\n // if (state.devInfo && state.devInfo.dam) {\r\n // state.conclusionsDam.push(`Configuração do DAM: ${JSON.stringify({\r\n // REL_DUT_ID: state.devInfo.dam.REL_DUT_ID,\r\n // ENABLE_ECO: state.devInfo.dam.ENABLE_ECO,\r\n // ECO_CFG: state.devInfo.dam.ECO_CFG,\r\n // ECO_OFST_START: state.devInfo.dam.ECO_OFST_START,\r\n // ECO_OFST_END: state.devInfo.dam.ECO_OFST_END,\r\n // ECO_INT_TIME: state.devInfo.dam.ECO_INT_TIME,\r\n // FW_MODE: state.devInfo.dam.FW_MODE,\r\n // DAM_DISABLED: state.devInfo.dam.DAM_DISABLED,\r\n // dam_mode: state.devInfo.dam.dam_mode,\r\n // })}`);\r\n // state.conclusionsDam.push(`Máquinas do DAM: ${JSON.stringify(state.devInfo.dam.groups)}`);\r\n // }\r\n // state.conclusionsDam.push(`Máquinas do DAM: ${JSON.stringify(comprHistory.groupsInfo)}`);\r\n // state.conclusionsDam.push(`Programação horária: ${JSON.stringify(comprHistory.daySched)}`);\r\n // for (const dut of (comprHistory.dutsTemprt || [])) {\r\n // state.conclusionsDam.push(`Tipo de ambiente: ${JSON.stringify({\r\n // dutId: dut.dutId,\r\n // daySched: dut.daySched,\r\n // })}`);\r\n // }\r\n\r\n let progDesc = null as null|string;\r\n if (state.daySched && state.daySched.type === 'allow') {\r\n progDesc = `${state.daySched.startHM} a ${state.daySched.endHM}`;\r\n const hoursAllowed = Math.round((state.daySched.indexEnd - state.daySched.indexIni + 1) / 60 * 10) / 10;\r\n const hoursForbid = 24 - hoursAllowed;\r\n state.conclusionsDam.push(t('pelaProgramacaoHorarioFuncionamento', { progDesc, hoursForbid, hoursAllowed }));\r\n state.conclusionsDam.push(t('damEnabledVentilation', { tempoStateEnabled, tempoStateVentilation }));\r\n if (unitInfo && unitInfo.greenAntCons_kWh) {\r\n state.conclusionsDam.push(t('consumoTotalUnidadeMedidoGreenAnt', { kWh: unitInfo.greenAntCons_kWh }));\r\n }\r\n }\r\n\r\n for (const dacInfo of state.dacsCharts) {\r\n const dacStats = statsCounters[dacInfo.dacId];\r\n if (!dacStats.inProg.on) {\r\n if (dacStats.inProg.off) {\r\n dacInfo.conclusions.push(t('compressorMonitoradoNaoUtilizado'));\r\n } else {\r\n dacInfo.conclusions.push(t('naoTemInformacaoSobreEstadoCompressor'));\r\n }\r\n } else {\r\n const potNominal = dacInfo.potNominal ? t('potenciaNominalCompressor', { potNominal: dacInfo.potNominal }) : t('faltaInformacaoPotenciaNominalCompressor');\r\n const machineName = ((groupsInfo && dacInfo.groupId && groupsInfo[dacInfo.groupId]) || {}).GROUP_NAME || '';\r\n dacStats.fuRef = damInfo.FU_NOM || 0.6;\r\n if (dacInfo.isCond1) {\r\n dacInfo.conclusions.push(t('condensadora1MaquinaFuNominal', { machineName, potNominal, percent: dacStats.fuRef * 100 }));\r\n } else if (dacInfo.isCond2) {\r\n dacInfo.conclusions.push(t('condensadora2MaquinaFuNominal', { machineName, potNominal, percent: dacStats.fuRef * 100 }));\r\n } else {\r\n dacInfo.conclusions.push(potNominal);\r\n }\r\n if (progDesc) {\r\n if (dacStats.inProg.on) {\r\n const FUprog = `${Math.round(dacStats.inProg.on / (dacStats.inProg.on + dacStats.inProg.off) * 100 * 10) / 10}%`;\r\n dacInfo.conclusions.push(t('durantePeriodoPermitidoProgamacaoDacFicou', {\r\n tempOn: dacStats.inProg.on,\r\n tempOff: dacStats.inProg.off,\r\n tempOffline: dacStats.inProg.ignr,\r\n FUprog,\r\n }));\r\n }\r\n if (dacStats.inForbid.off && dacStats.inForbid.on) {\r\n dacInfo.conclusions.push(t('foraHorarioProgramacaoDacFicou', {\r\n tempOn: dacStats.inForbid.on,\r\n tempOff: dacStats.inForbid.off,\r\n tempOffline: dacStats.inForbid.ignr,\r\n }));\r\n }\r\n }\r\n if (dacStats.inEnabled.on) {\r\n // dacStats.fuRef = dacStats.inEnabled.on / (dacStats.inEnabled.on + dacStats.inEnabled.off);\r\n // const FUenab = `${Math.round(dacStats.inEnabled.on / (dacStats.inEnabled.on + dacStats.inEnabled.off) * 100 * 10) / 10}%`\r\n dacInfo.conclusions.push(t('considerandoDamEnabledDacFicou', { tempOn: dacStats.inEnabled.on, tempOff: dacStats.inEnabled.off, tempOffline: dacStats.inEnabled.ignr }));\r\n }\r\n if (dacInfo.isCond1 && tempoStateC1) {\r\n dacInfo.conclusions.push(t('considerandoDamCondenser1DacFicou', { tempOn: dacStats.inC1.on, tempOff: dacStats.inC1.off, tempOffline: dacStats.inC1.ignr }));\r\n }\r\n if (dacInfo.isCond2 && tempoStateC2) {\r\n dacInfo.conclusions.push(t('considerandoDamCondenser2DacFicou', { tempOn: dacStats.inC1.on, tempOff: dacStats.inC1.off, tempOffline: dacStats.inC1.ignr }));\r\n }\r\n if (dacStats.inL1.on) {\r\n if (dacStats.firstL1 != null) {\r\n const usePeriod = `${convertToTime(dacStats.firstL1)} a ${convertToTime(dacStats.lastL1!)}`;\r\n // dacInfo.useFactor = (dacStats.inL1.on) ? `${dacStats.inL1.on} / ${(dacStats.inL1.on + dacStats.inL1.off)} = ${Math.round(dacStats.inL1.on / (dacStats.inL1.on + dacStats.inL1.off) * 100 * 10) / 10}%` : '';\r\n const FU = `${Math.round(dacStats.inL1.on / (dacStats.inL1.on + dacStats.inL1.off) * 100 * 10) / 10}%`;\r\n dacInfo.conclusions.push(t('observandoL1DacFuncionouPeriodo', {\r\n usePeriod,\r\n tempOn: dacStats.inL1.on,\r\n tempOff: dacStats.inL1.off,\r\n tempOffline: dacStats.inL1.ignr,\r\n FU,\r\n }));\r\n }\r\n }\r\n }\r\n }\r\n\r\n for (let iD = 0; iD < state.dacsCols.length; iD++) {\r\n const dacId = state.dacsCols[iD];\r\n const dac = state.dacsCharts.find((x) => x.dacId === dacId);\r\n if (!dac) continue;\r\n for (let iR = 0; iR < state.asTable.length; iR++) {\r\n const row = state.asTable[iR];\r\n // let ecoDac = row[6 + 2 * iD + 1];\r\n // if (ecoDac === 'Ignorado [COND]') {\r\n // const rowEcoCmd = row[4];\r\n // if ((rowEcoCmd === 'Condenser 1') && (dac.isCond1 === false)) ecoDac = 'Saving ECO';\r\n // else if ((rowEcoCmd === 'Condenser 2') && (dac.isCond2 === false)) ecoDac = 'Saving ECO';\r\n // row[6 + 2 * iD + 1] = ecoDac;\r\n // }\r\n // else if (ecoDac === 'Ignorado [L1]') {\r\n // const rowEcoCmd = row[4];\r\n // if ((rowEcoCmd === 'Condenser 1') && (dac.isCond1 === true)) ecoDac = 'Ignorado [COND]';\r\n // else if ((rowEcoCmd === 'Condenser 2') && (dac.isCond2 === true)) ecoDac = 'Ignorado [COND]';\r\n // row[6 + 2 * iD + 1] = ecoDac;\r\n // }\r\n let disabledRow = row[6 + 2 * iD + 1];\r\n if ((disabledRow === t('ignoradoC1')) && (!dac.isCond1)) {\r\n disabledRow = t('desligadoMin');\r\n row[6 + 2 * iD + 1] = disabledRow;\r\n } else if ((disabledRow === t('ignoradoC2')) && (!dac.isCond2)) {\r\n disabledRow = t('desligadoMin');\r\n row[6 + 2 * iD + 1] = disabledRow;\r\n }\r\n }\r\n }\r\n\r\n for (const dacInfo of state.dacsCharts) {\r\n const dacStats = statsCounters[dacInfo.dacId];\r\n\r\n let ecoModeSavings_n = dacStats.stateStats.ecoFull_hit;\r\n if (!dacInfo.isCond1) ecoModeSavings_n += dacStats.stateStats.cond1_miss;\r\n if (!dacInfo.isCond2) ecoModeSavings_n += dacStats.stateStats.cond2_miss;\r\n const ventilSavings_n = dacStats.stateStats.noEcoVent_hit;\r\n const ecoVentSavings = ecoModeSavings_n + ventilSavings_n;\r\n let tempoDesligado = dacStats.inProg_B.off + dacStats.inProg_B.dis;\r\n if (!dacInfo.isCond1) tempoDesligado += dacStats.inProg_B.C1;\r\n if (!dacInfo.isCond2) tempoDesligado += dacStats.inProg_B.C2;\r\n const tempoLigado = dacStats.inProg_B.on + dacStats.inProg_B.ena;\r\n const FU = dacStats.fuRef || 1;\r\n const timeSavedEst = ecoVentSavings * FU / 3600;\r\n\r\n if (dacStats.inL1.on) {\r\n let consumoCompressor = `${dacStats.inL1.on}s = ${Math.round(dacStats.inL1.on / 3600 * 1000) / 1000}hs`;\r\n if (dacInfo.potNominal) {\r\n consumoCompressor += ` = ${Math.round(dacStats.inL1.on / 3600 * dacInfo.potNominal * 10) / 10} kWh`;\r\n }\r\n dacInfo.conclusions.push(t('consumoCompressorDia', { consumo: consumoCompressor }));\r\n }\r\n // if (ecoModeSavings_n) {\r\n // let ecoModeSavings_s = `${ecoModeSavings_n}s = ${Math.round(ecoModeSavings_n / 3600 * 1000) / 1000}hs`;\r\n // if (dacStats.fuRef != null) {\r\n // ecoModeSavings_s += `. Considerando o FU (${Math.round(FU * 1000) / 10}): ${Math.round(ecoModeSavings_n / 3600 * FU * 1000) / 1000} hs`;\r\n // if (dacInfo.potNominal) {\r\n // ecoModeSavings_s += ` = ${Math.round(ecoModeSavings_n / 3600 * dacInfo.potNominal* FU * 10) / 10} kWh`;\r\n // }\r\n // }\r\n // dacInfo.conclusions.push(`Economia pelo modo ECO: ${ecoModeSavings_s}`);\r\n // }\r\n // if (ventilSavings_n) {\r\n // let ventilSavings_s = `${ventilSavings_n}s = ${Math.round(ventilSavings_n / 3600 * 1000) / 1000}hs`;\r\n // if (dacStats.fuRef != null) {\r\n // ventilSavings_s += `. Considerando o FU (${Math.round(FU * 1000) / 10}): ${Math.round(ventilSavings_n / 3600 * FU * 1000) / 1000} hs`;\r\n // if (dacInfo.potNominal) {\r\n // ventilSavings_s += ` = ${Math.round(ventilSavings_n / 3600 * dacInfo.potNominal* FU * 10) / 10} kWh`;\r\n // }\r\n // }\r\n // dacInfo.conclusions.push(`Economia por ventilação fora do modo ECO: ${ventilSavings_s}`);\r\n // }\r\n if (ecoVentSavings) {\r\n let descr = t('economiaEcoVentilacaoHs', {\r\n ecoModeSavings_n,\r\n ventilSavings_n,\r\n valueHs: (Math.round(ecoVentSavings / 3600 * 1000) / 1000),\r\n });\r\n if (dacStats.fuRef != null) {\r\n descr += t('comOFuCompressorDeixouDeOperar', { FU: (Math.round(FU * 1000) / 10), valueHs: (Math.round(ecoVentSavings / 3600 * FU * 1000) / 1000) });\r\n if (dacInfo.potNominal) {\r\n descr += ` = ${Math.round(ecoVentSavings / 3600 * dacInfo.potNominal * FU * 10) / 10} kWh`;\r\n if (unitInfo.averageTariff) {\r\n descr += ` = R$ ${(timeSavedEst * dacInfo.potNominal * unitInfo.averageTariff).toFixed(2)} (tarifa ${unitInfo.averageTariff.toFixed(2)})`;\r\n }\r\n }\r\n }\r\n dacInfo.conclusions.push(descr);\r\n }\r\n\r\n if (dacStats.inL1.on) {\r\n // const timeInOperation = dacStats.inL1.on / 3600;\r\n // let savingsTotal = `${Math.round(timeSavedEst * 1000) / 1000} / (${Math.round(timeSavedEst * 1000) / 1000} + ${Math.round(timeInOperation * 1000) / 1000}) = ${Math.round(timeSavedEst / (timeSavedEst + timeInOperation) * 100 * 10) / 10}%.`;\r\n if (state.daySched && state.daySched.type === 'allow') {\r\n const hoursAllowed = (state.daySched.indexEnd - state.daySched.indexIni + 1) / 60;\r\n const expectHoursOff = hoursAllowed * (1 - FU);\r\n if (ecoVentSavings) {\r\n dacInfo.conclusions.push(t('comparandoTempoAtuacaoEstrategiaEconomiaComHorarioFuncionamento', { valueHs1: (Math.round(ecoVentSavings / 3600 * 1000) / 1000), valueHs2: (Math.round(hoursAllowed * 1000) / 1000), valueHs3: (Math.round(ecoVentSavings / 3600 / hoursAllowed * 1000) / 10) }));\r\n }\r\n dacInfo.conclusions.push(t('considerandoProgramacaoFuCompressor', { value1: (FU.toFixed(2)), value2: (Math.round(hoursAllowed * FU * 1000) / 1000), value3: (Math.round(expectHoursOff * 1000) / 1000) }));\r\n dacInfo.conclusions.push(t('consideradoDacFicou', {\r\n tempoLig: tempoLigado,\r\n tempoDes: tempoDesligado,\r\n tempoOff: dacStats.inProg_B.ignr,\r\n value1: Math.round(tempoLigado / 3600 * 1000) / 1000,\r\n value2: Math.round(tempoDesligado / 3600 * 1000) / 1000,\r\n value3: Math.round(dacStats.inProg_B.ignr / 3600 * 1000) / 1000,\r\n }));\r\n dacInfo.conclusions.push(t('foiConsideradoDacFicou', {\r\n tempoLigado,\r\n tempoDesligado,\r\n tempoOff: dacStats.inProg_B.ignr,\r\n value1: (Math.round(tempoLigado / 3600 * 1000) / 1000),\r\n value2: (Math.round(tempoDesligado / 3600 * 1000) / 1000),\r\n value3: (Math.round(dacStats.inProg_B.ignr / 3600 * 1000) / 1000),\r\n }));\r\n // A equação é a economia do modo ECO e ventilação (7.511) menos o tempo que a máquina naturalmente já ficaria com o compressor desligado.\r\n\r\n // const savingsHours_A = ((ecoVentSavings / 3600) - expectHoursOff);\r\n // dacInfo.conclusions.push(`Economia total A: ${Math.round(ecoVentSavings / 3600 * 1000) / 1000} - ${Math.round(expectHoursOff * 1000) / 1000} = ${Math.round(savingsHours_A * 1000) / 1000} hs.`);\r\n\r\n const savingsHours_B = ((tempoDesligado / 3600) - expectHoursOff);\r\n let economiaTotal = t('economiaTotalHs', { valueHs1: (Math.round(tempoDesligado / 3600 * 1000) / 1000), valueHs2: (Math.round(expectHoursOff * 1000) / 1000), valueHs3: (Math.round(savingsHours_B * 1000) / 1000) });\r\n if (dacInfo.potNominal) {\r\n economiaTotal += ` = ${Math.round(savingsHours_B * dacInfo.potNominal * 10) / 10} kWh`;\r\n if (unitInfo.averageTariff) {\r\n economiaTotal += t('economiaTotalRS', { value1: (savingsHours_B * dacInfo.potNominal * unitInfo.averageTariff).toFixed(2), value2: unitInfo.averageTariff.toFixed(2) });\r\n }\r\n }\r\n dacInfo.conclusions.push(economiaTotal);\r\n }\r\n }\r\n }\r\n\r\n // ESAVED = ESAVED_TIME + ESAVED_ECO\r\n // ESAVED_TIME: Energia economizada com a programação horária.\r\n // ESAVED_ECO: Energia economizada com o modo ECO dentro do horário permitido de funcionamento.\r\n\r\n // ESAVED_ECO = ENOMINAL - EECO\r\n // ENOMINAL = (PNOMINAL x tTOTAL_PERM) x FUNOMINAL\r\n // EECO = (ECOND1 + ECOND2 + ECOND3 + EVENT) x mode\r\n // ECOND2 = PCOND2 x (tENABLED+ tCOND2)\r\n // ECOND1 = PCOND1 x tENABLED\r\n // EVENT = PVENT x tVENT\r\n }\r\n\r\n function identifyConds() {\r\n const groups = [] as string[];\r\n for (const dacInfo of state.dacsCharts) {\r\n if (!dacInfo.groupId) continue;\r\n if (!groups.includes(dacInfo.groupId)) {\r\n groups.push(dacInfo.groupId);\r\n }\r\n }\r\n for (const groupId of groups) {\r\n const dacsInfo = state.dacsCharts.filter((x) => x.groupId === groupId);\r\n\r\n if (dacsInfo.length < 2) {\r\n dacsInfo[0].isCond1 = true;\r\n dacsInfo[0].isCond2 = false;\r\n continue;\r\n }\r\n\r\n let cond1_hits = 0;\r\n let cond2_hits = 0;\r\n for (const dac of dacsInfo) {\r\n cond1_hits += dac.stateStats.cond1_hit;\r\n cond2_hits += dac.stateStats.cond2_hit;\r\n }\r\n let cond1: null|{ stateStats: { cond1_hit: number } } = null;\r\n let cond2: null|{ stateStats: { cond2_hit: number } } = null;\r\n\r\n if (cond2_hits > cond1_hits) {\r\n for (const dac of dacsInfo) {\r\n if ((cond2 == null) || (dac.stateStats.cond2_hit > cond2.stateStats.cond2_hit)) {\r\n cond2 = dac;\r\n }\r\n }\r\n for (const dac of dacsInfo) {\r\n if (dac === cond2) continue;\r\n if ((cond1 == null) || (dac.stateStats.cond1_hit > cond1.stateStats.cond1_hit)) {\r\n cond1 = dac;\r\n }\r\n }\r\n } else {\r\n for (const dac of dacsInfo) {\r\n if ((cond1 == null) || (dac.stateStats.cond1_hit > cond1.stateStats.cond1_hit)) {\r\n cond1 = dac;\r\n }\r\n }\r\n for (const dac of dacsInfo) {\r\n if (dac === cond1) continue;\r\n if ((cond2 == null) || (dac.stateStats.cond2_hit > cond2.stateStats.cond2_hit)) {\r\n cond2 = dac;\r\n }\r\n }\r\n }\r\n\r\n for (const dac of dacsInfo) {\r\n dac.isCond1 = (dac === cond1);\r\n dac.isCond2 = (dac === cond2);\r\n }\r\n }\r\n }\r\n\r\n function fillGaps() {\r\n const conversions: { [k: string]: string } = {\r\n // 'Disabling': 'Disabled',\r\n // 'Enabling': 'Enabled',\r\n // 'Starting Ventilation': 'Ventilation',\r\n // 'Enabling Condenser 1': 'Condenser 1',\r\n // 'Enabling Condenser 2': 'Condenser 2',\r\n };\r\n\r\n let lastState = null as null|string;\r\n let lastMode = null as null|string;\r\n let accOfflineState = 0;\r\n let accOfflineMode = 0;\r\n for (let iR = 0; iR < state.asTable.length; iR++) {\r\n const row = state.asTable[iR];\r\n const rowDuration = row[0] as number;\r\n const rowMode = row[2] as string;\r\n const rowState = row[3] as string;\r\n if (!rowState) {\r\n accOfflineState += rowDuration;\r\n } else {\r\n if ((accOfflineState > 0) && (accOfflineState < 20 * 60)) {\r\n const currState = conversions[rowState] || rowState;\r\n if (currState === lastState) {\r\n let j = iR - 1;\r\n while ((j >= 0) && !state.asTable[j][3]) {\r\n state.asTable[j][3] = lastState;\r\n j--;\r\n }\r\n }\r\n }\r\n if (lastState !== rowState) {\r\n lastState = conversions[rowState] || rowState;\r\n }\r\n accOfflineState = 0;\r\n }\r\n if (!rowMode) {\r\n accOfflineMode += rowDuration;\r\n } else {\r\n if ((accOfflineMode > 0) && (accOfflineMode < 20 * 60)) {\r\n const currMode = rowMode;\r\n if (currMode === lastMode) {\r\n let j = iR - 1;\r\n while ((j >= 0) && !state.asTable[j][2]) {\r\n state.asTable[j][2] = lastMode;\r\n j--;\r\n }\r\n }\r\n }\r\n if (lastMode !== rowMode) {\r\n lastMode = rowMode;\r\n }\r\n accOfflineMode = 0;\r\n }\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n fetchServerData();\r\n }, []);\r\n\r\n useEffect(() => {\r\n updateChartData();\r\n }, [state.devInfo, JSON.stringify(state.date)]);\r\n\r\n const { axisInfo, graphEnable, damCharts } = state;\r\n\r\n const isDesktop = window.matchMedia('(min-width: 768px)');\r\n const isMobile = !isDesktop;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {t('Filtrar por')}\r\n setState({ isModalOpen: false })} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {(isMobile)\r\n && (\r\n \r\n \r\n
setState({ isModalOpen: true })}>\r\n \r\n
\r\n
\r\n
\r\n )}\r\n \r\n {(isDesktop) && (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n {(!state.date) ? : null}\r\n\r\n {state.date && (\r\n \r\n \r\n \r\n {state.isLoading && (\r\n \r\n \r\n \r\n )}\r\n state.date!.clone().add(x, 'h').toISOString(true)),\r\n tickformat: '%-H',\r\n hoverformat: '%H:%M:%S',\r\n },\r\n yaxis: {\r\n title: null,\r\n showgrid: true,\r\n zeroline: false,\r\n showline: true,\r\n range: axisInfo.leftLimits,\r\n tickvals: axisInfo.leftTicks,\r\n ticktext: axisInfo.leftTicksLabels,\r\n },\r\n yaxis2: {\r\n title: 'Umidade',\r\n showgrid: true,\r\n zeroline: false,\r\n showline: true,\r\n overlaying: 'y',\r\n range: axisInfo.rightLimits,\r\n tickvals: axisInfo.rightTicks,\r\n ticktext: axisInfo.rightTickLabels,\r\n side: 'right',\r\n },\r\n hovermode: 'x unified',\r\n hoverdistance: 1920,\r\n hoverlabel: {\r\n bgcolor: 'rgba(255, 255, 255, 0.7)',\r\n font: {\r\n color: colors.Black,\r\n },\r\n },\r\n }}\r\n config={{ responsive: true }}\r\n style={{ width: '100%' }}\r\n />\r\n \r\n \r\n \r\n )}\r\n \r\n\r\n {(state.profile.manageAllClients && state.asTable && state.asTable.length > 0)\r\n && (\r\n \r\n
\r\n

\r\n

{state.conclusionsDam.join('\\n')}
\r\n

\r\n {(state.dacsCharts || []).map((dacInfo) => (\r\n
\r\n

\r\n \r\n {dacInfo.dacId}\r\n :\r\n \r\n

\r\n
{dacInfo.conclusions.join('\\n')}
\r\n
\r\n ))}\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {state.dacsCols.map((dacId, idac) => (\r\n <>\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n \r\n {state.asTable.map((row, irow) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {state.dacsCols.map((dacId, idac) => (\r\n <>\r\n \r\n \r\n \r\n ))}\r\n \r\n ))}\r\n \r\n
{t('duracaoS')}Prog{t('modo')}{t('estadoAtual')}{t('modoEco')}{t('modoEconomia')}L1{dacId}
{formatNumberWithFractionDigits(row[0])}{row[1]}{row[2]}{row[3]}{row[4]}{row[5]}{row[6 + 2 * idac]}{row[6 + 2 * idac + 1]}
\r\n
\r\n
\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nfunction convertToTime(index: number) {\r\n if (index == null) return '';\r\n const hours = Math.floor(index / 3600).toString().padStart(2, '0');\r\n const minutes = Math.floor((index % 3600) / 60).toString().padStart(2, '0');\r\n const seconds = Math.floor(index % 60).toString().padStart(2, '0');\r\n return `${hours}:${minutes}:${seconds}`;\r\n}\r\n\r\nconst GraphWrapper = styled.div`\r\n width: 100%;\r\n position: relative;\r\n height: 100%;\r\n`;\r\n\r\nconst ModalMobile = styled.div<{ isModalOpen }>(\r\n ({ isModalOpen }) => `\r\n display:${isModalOpen ? 'block' : 'none'};\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n background-color: ${colors.White};\r\n width: 100%;\r\n height: 100vh;\r\n z-index: 1;\r\n overflow: hidden;\r\n transition: all .5s ease-in-out;\r\n\r\n @media (min-width: 768px) {\r\n display: none;\r\n }\r\n`,\r\n);\r\n\r\nconst ModalSection = styled.div`\r\n width: 100%;\r\n height: 80px;\r\n background: ${colors.Grey030};\r\n border-bottom: 2px solid ${colors.Grey100};\r\n box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);\r\n`;\r\n\r\nconst ModalTitleContainer = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n height: 100%;\r\n width: 100%;\r\n padding: 16px;\r\n svg {\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nconst ModalTitle = styled.span`\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nconst CardWrapper = styled.div`\r\n padding: 32px 24px;\r\n margin-top: 24px;\r\n background: ${colors.White};\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nconst Table = styled.table`\r\n white-space: nowrap;\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const ControlButtonIcon = styled.img<{ isActive?: boolean, status?: string }>`\r\n max-width: 100%;\r\n ${({ isActive }) => (isActive ? 'filter: brightness(10)' : '')};\r\n ${({ status }) => (status === 'ONLINE' ? '' : 'filter: contrast(0)')};\r\n`;\r\n\r\nexport const ControlButton = styled.div<{ isActive?: boolean, noBorder?: boolean }>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 10px;\r\n width: 70px;\r\n height: 70px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n ${({ isActive }) => (isActive ? `background-color: ${colors.BlueSecondary};` : '')}\r\n`;\r\n\r\nexport const HistoryContainerQA = styled.div`\r\n`;\r\n\r\nexport const SetpointButton = styled.div<{ up?: boolean, down?: boolean }>`\r\n flex-basis: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-right: 1px solid #D7D7D7;\r\n user-select: none;\r\n ${({ up }) => (up ? 'border-bottom: 1px solid #D7D7D7' : '')}\r\n ${({ down }) => (down ? 'border-top: 1px solid #D7D7D7' : '')}\r\n`;\r\n\r\nexport const SelectContainer = styled.div`\r\n position: fixed;\r\n background: white;\r\n border: 1px solid #d3d3d3;\r\n border-radius: 10px;\r\n`;\r\n","type EmptyDocumentIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const EmptyDocumentIcon = ({ color = '#818181', ...props }: EmptyDocumentIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n);\r\n","import React, { useState, useEffect, useCallback } from 'react';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport { SketchPicker } from 'react-color';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, Label, LineChart, Line, ReferenceLine, Tooltip,\r\n} from 'recharts';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\nimport {\r\n Button, Datepicker, Loader, ModalWindow,\r\n} from '~/components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { LineIcon, CloseIcon } from '~/icons';\r\nimport { DevLayout } from '~/pages/Analysis/DEVs/DevLayout';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport { t } from 'i18next';\r\nimport { NoGraph } from '~/components/NoGraph';\r\nimport { HistoryContainerQA } from './styles';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\nimport {\r\n BtnExport, CloseBtnIcon, ModalContent, OptionColor,\r\n} from '~/components/EnvGroupAnalysis/styles';\r\nimport {\r\n ColorsPalet,\r\n} from '~/components/EnvGroupAnalysis';\r\nimport moment from 'moment';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { toast } from 'react-toastify';\r\nimport { NoAnalisysSelected } from '~/pages/General/styles';\r\nimport { EmptyDocumentIcon } from '~/icons/EmptyDocumentIcon';\r\n\r\nconst ticksXgraph = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24];\r\n\r\nexport const DUTHistory = (): JSX.Element => {\r\n const routeParams = useParams<{ devId }>();\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaHistorico')}\r\n \r\n \r\n {/* @ts-ignore */}\r\n \r\n );\r\n};\r\n\r\nexport function DUTHistoryContents({ onDevInfoUpdate = undefined }): JSX.Element {\r\n const { devId } = useParams<{ devId: string }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n devInfo: getCachedDevInfoSync(devId),\r\n dutInfo: null,\r\n graphDataX: undefined as any,\r\n isLoading: false,\r\n useMaxGraphData: null as null|{},\r\n useMinGraphData: null as null|{},\r\n useCO2LimitGraphData: null as null|{},\r\n showLimits: true,\r\n showCO2Limits: false,\r\n daySched: null as null | { TUSEMIN: number, TUSEMAX: number, indexEnd: number, indexIni: number },\r\n isDutQA: true,\r\n groupGraph: false,\r\n isModalOpen: false,\r\n dateStart: null as null|moment.Moment,\r\n dateEnd: null as null|moment.Moment,\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n focused: false,\r\n focusedInput: null as 'endDate' | 'startDate' | null,\r\n multiDays: false,\r\n numDays: 1 as number,\r\n refAreaLeft: null as null | number,\r\n refAreaRight: null as null | number,\r\n xDomain: null as null | [number, number],\r\n xTicks: [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24] as number[],\r\n axisInfo: {\r\n tempLimits: [10, 40],\r\n tempTicks: [10, 15, 20, 25, 30, 35, 40],\r\n humLimits: [0, 100],\r\n humTicks: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],\r\n eCO2Ticks: [200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800],\r\n eCO2Domain: [200, 1800],\r\n L1start: 0,\r\n },\r\n humLineInfo: {\r\n lineColorObj: {\r\n lineColor: '#2D81FF',\r\n isDisplayColorVisible: false,\r\n text: 'Umidade [%]',\r\n },\r\n limitColorObj: {\r\n lineColor: '#1E5DBA',\r\n isDisplayColorVisible: false,\r\n text: 'Limite umidade [%]',\r\n },\r\n lineColor: '#2D81FF',\r\n colorLimit: '#1E5DBA',\r\n isVisible: true,\r\n isLimitVisible: true,\r\n isDisplayColorVisible: false,\r\n },\r\n tempLineInfo: {\r\n lineColorObj: {\r\n lineColor: '#E00030',\r\n isDisplayColorVisible: false,\r\n text: 'Temperatura [°C]',\r\n },\r\n limitColorObj: {\r\n lineColor: '#8C001E',\r\n isDisplayColorVisible: false,\r\n text: 'Limite de Temperatura [°C]',\r\n },\r\n lineColor: '#E00030',\r\n colorLimit: '#8C001E',\r\n isVisible: true,\r\n isLimitVisible: true,\r\n isDisplayColorVisible: false,\r\n },\r\n temp1LineInfo: {\r\n lineColor: 'rgb(255, 190, 22)',\r\n isVisible: true,\r\n },\r\n L1LineInfo: {\r\n lineColor: '#000',\r\n isVisible: true,\r\n },\r\n co2LineInfo: {\r\n lineColorObj: {\r\n lineColor: '#FFBE16',\r\n isDisplayColorVisible: false,\r\n text: 'CO₂ [ppm]',\r\n },\r\n limitColorObj: {\r\n lineColor: '#C68F00',\r\n isDisplayColorVisible: false,\r\n text: 'Limite de CO₂ [ppm]',\r\n },\r\n lineColor: '#FFBE16',\r\n colorLimit: '#C68F00',\r\n isVisible: true,\r\n isLimitVisible: true,\r\n isDisplayColorVisible: false,\r\n },\r\n hasL1: false,\r\n };\r\n return state;\r\n });\r\n const [date, setDate] = useState(null as null|moment.Moment);\r\n const [graphData, setGraphData] = useState({});\r\n const [isModalOpen, setIsModalOpen] = useState(false);\r\n const [graphEnable, setGraphEnable] = useState({\r\n Temperature: true,\r\n Temperature_1: true,\r\n Humidity: true,\r\n eCO2: true,\r\n TVOC: false,\r\n L1: true,\r\n });\r\n\r\n const [axisInfo, setAxisInfo] = useState({\r\n tempLimits: [10, 40],\r\n tempTicks: [10, 15, 20, 25, 30, 35, 40],\r\n humLimits: [0, 100],\r\n humTicks: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],\r\n eCO2Ticks: [200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800],\r\n eCO2Domain: [200, 1800],\r\n L1start: 0,\r\n });\r\n\r\n useEffect(() => {\r\n Promise.resolve().then(async () => {\r\n const devInfo = await getCachedDevInfo(devId, {});\r\n // @ts-ignore\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n // @ts-ignore\r\n const dutInfo = devInfo.dut;\r\n // @ts-ignore\r\n\r\n ({ devInfo, dutInfo });\r\n }).catch(console.log);\r\n }, []);\r\n\r\n function proximoMultiploDeCinco(num) {\r\n if (num % 5 === 0) {\r\n return num;\r\n }\r\n return Math.ceil(num / 5) * 5;\r\n }\r\n\r\n useEffect(() => {\r\n if (!state.devInfo || !date) return;\r\n Promise.resolve().then(async () => {\r\n setState({ isLoading: true });\r\n\r\n try {\r\n const params = {\r\n devId,\r\n day: date.format().substring(0, 10),\r\n selectedParams: ['Temperature', 'Temperature_1', 'Humidity', 'eCO2', 'L1'],\r\n numDays: 1,\r\n };\r\n const dutHist = await apiCall('/dut/get-day-charts-data-commonX', params);\r\n const maxValue = dutHist.daySched?.TUSEMAX ? dutHist.daySched?.TUSEMAX + 5 : 30;\r\n const minValue = dutHist.daySched?.TUSEMIN ? dutHist.daySched?.TUSEMIN - 5 : -35;\r\n state.axisInfo.tempLimits[0] = dutHist.axisInfo.tempLimits[0] > 0 ? 0 : Math.max(Math.min(...dutHist.Temperature.y, minValue), -40);\r\n state.axisInfo.tempLimits[1] = dutHist.Temperature?.y.length ? proximoMultiploDeCinco(Math.max(...dutHist.Temperature.y, maxValue)) : 40;\r\n if (dutHist.daySched) state.daySched = dutHist.daySched;\r\n state.graphDataX = dutHist;\r\n state.hasL1 = dutHist.L1?.y?.some((item) => item !== null);\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErroBuscandoGrafico')); }\r\n state.isLoading = false;\r\n render();\r\n });\r\n }, [date, state.devInfo]);\r\n\r\n useEffect(() => {\r\n const { dutInfo } = state;\r\n\r\n if (state.daySched) {\r\n const indexIni = state.daySched.indexIni / 60;\r\n const indexEnd = state.daySched.indexEnd / 60;\r\n let useMaxGraphData = null as null|{};\r\n if (state.daySched.TUSEMAX != null) {\r\n useMaxGraphData = [\r\n { x: indexIni, y: state.daySched.TUSEMAX },\r\n { x: indexEnd, y: state.daySched.TUSEMAX },\r\n ];\r\n }\r\n let useMinGraphData = null as null|{};\r\n if (state.daySched.TUSEMIN != null) {\r\n useMinGraphData = [\r\n { x: indexIni, y: state.daySched.TUSEMIN },\r\n { x: indexEnd, y: state.daySched.TUSEMIN },\r\n ];\r\n }\r\n let useCO2LimitGraphData = null as null|{};\r\n // @ts-ignore\r\n if (dutInfo && dutInfo.CO2MAX != null) {\r\n useCO2LimitGraphData = [\r\n // @ts-ignore\r\n { x: 0, y: dutInfo.CO2MAX },\r\n // @ts-ignore\r\n { x: 24, y: dutInfo.CO2MAX },\r\n ];\r\n }\r\n\r\n setState({ useMaxGraphData, useMinGraphData, useCO2LimitGraphData });\r\n }\r\n }, [state.dutInfo, state.daySched, JSON.stringify(date)]);\r\n\r\n const handleChange = (name) => {\r\n setGraphEnable({ ...graphEnable, [name]: !graphEnable[name] });\r\n };\r\n\r\n const setFormattedDate = useCallback((date) => setDate(date ? date.set({ hour: 0 }) : null), []);\r\n\r\n const DesktopFiltering = () => (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n\r\n if (state.isLoading) {\r\n return ;\r\n }\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n {t('Filtrar por')}\r\n setIsModalOpen(false)} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
setIsModalOpen(true)}>\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nfunction tooltipXLabelFormater(hour: number, day) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(\r\n `${moment(day).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`,\r\n );\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n const finalDate = `${dd}/${mm}`;\r\n\r\n const hh = String(Math.floor(Math.abs(hour)) - 24 * numDays);\r\n const min = String(Math.floor((Math.abs(hour) * 60) % 60));\r\n const ss = String(Math.floor((Math.abs(hour) * 60 * 60) % 60));\r\n\r\n return (\r\n

\r\n {finalDate}\r\n {' '}\r\n -\r\n {' '}\r\n \r\n {`${hh.padStart(2, '0')}:${min.padStart(\r\n 2,\r\n '0',\r\n )}:${ss.padStart(2, '0')}`}\r\n \r\n

\r\n );\r\n}\r\n\r\nfunction returnUnityMeasure(payload): string {\r\n if (payload.unit === 'Temperatura') return `${payload.value} °C`;\r\n if (payload.unit === 'Umidade') return `${payload.value} %`;\r\n if (payload.unit === 'CO₂') return `${payload.value} ppm`;\r\n return payload.value;\r\n}\r\n\r\nfunction tickXLabelFormaterHour(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n\r\n return `${String(hh).padStart(2, '0')}:${String(min).padStart(2, '0')}`;\r\n}\r\n\r\nconst CustomTooltip = ({\r\n payload, limitData, date, label,\r\n}) => {\r\n const { limitInfo, dut } = limitData;\r\n const { tempLineInfo, humLineInfo, co2LineInfo } = limitInfo;\r\n\r\n if (payload?.length) {\r\n const minTemp = dut?.TUSEMIN && `${formatNumberWithFractionDigits(dut.TUSEMIN)} ºC min` || '';\r\n const maxTemp = dut?.TUSEMAX && `${formatNumberWithFractionDigits(dut?.TUSEMAX)}ºC max` || '';\r\n const minHum = dut?.HUMIMIN && `${formatNumberWithFractionDigits(dut?.HUMIMIN)}% min` || '';\r\n const maxHum = dut?.HUMIMAX && `${formatNumberWithFractionDigits(dut?.HUMIMAX)}% max` || '';\r\n return (\r\n
\r\n { payload.map((payload) => (\r\n <>\r\n {tooltipXLabelFormater(label, date)}\r\n

{`${payload.unit}: ${returnUnityMeasure(payload)}`}

\r\n

\r\n {payload.unit === 'Temperatura' && tempLineInfo.isLimitVisible && (dut?.TUSEMIN || dut?.TUSEMAX) && (\r\n

\r\n {`Limites de Temperatura: ${minTemp} ${maxTemp}`}\r\n

\r\n )}\r\n

\r\n

\r\n {\r\n payload.unit === 'Umidade' && humLineInfo.isLimitVisible && (dut?.HUMIMIN || dut?.HUMIMAX) && (\r\n

\r\n {`Limites de Umidade: ${minHum} ${maxHum}`}\r\n

\r\n )\r\n }\r\n

\r\n

\r\n { payload.unit === 'CO₂' && co2LineInfo.isLimitVisible && dut?.CO2MAX && (\r\n

\r\n {`Limites de CO₂: ${dut.CO2MAX} CO₂ max`}\r\n

\r\n ) }\r\n

\r\n \r\n )) }\r\n {\r\n\r\n }\r\n
\r\n
\r\n );\r\n }\r\n\r\n return null;\r\n};\r\n\r\nconst CustomTooltipGroup = ({\r\n payload, data, limitData, label, date, isDutQA,\r\n}) => {\r\n const { limitInfo, dut } = limitData;\r\n const {\r\n tempLineInfo, humLineInfo, co2LineInfo, temp1LineInfo, L1LineInfo,\r\n } = limitInfo;\r\n if (payload?.length) {\r\n const humidity = payload.find((item) => item.unit === 'umidade');\r\n const temperature = payload.find((item) => item.unit === 'Temperatura' || item.unit === 'temperatura');\r\n const eCO2 = payload.find((item) => item.unit === 'eCO2');\r\n const l1 = payload.find((item) => item.unit === 'L1');\r\n const Temperature1 = payload.find((item) => item.unit === 'temperatura1');\r\n return (\r\n
\r\n
\r\n { label && (\r\n {tooltipXLabelFormater(label, date)}\r\n )}\r\n { temperature && data?.Temperature?.y.some((item) => item) && (\r\n

{`Temperatura: ${formatNumberWithFractionDigits(temperature.value)} ºC`}

\r\n )}\r\n { Temperature1 && data?.Temperature_1?.y.some((item) => item !== null) && (\r\n

{`Temperatura de Insuflação: ${formatNumberWithFractionDigits(Temperature1.value)} ºC`}

\r\n )}\r\n { isDutQA && humidity && data?.Humidity?.y.some((item) => item) && (\r\n

{`Umidade: ${formatNumberWithFractionDigits(humidity.value)} %`}

\r\n )}\r\n { isDutQA && eCO2 && data?.eCO2?.y.some((item) => item) && (\r\n

{`CO₂: ${formatNumberWithFractionDigits(eCO2.value)} ppm`}

\r\n )}\r\n { l1 && data?.L1?.y.some((item) => item !== null) && (\r\n

{`Status do Compressor: ${l1.value === -2 ? 'Desligado' : 'Ligado'}`}

\r\n )}\r\n { groupLimitsTip(dut, limitInfo, isDutQA) }\r\n\r\n
\r\n );\r\n }\r\n\r\n return null;\r\n};\r\n\r\nfunction groupLimitsTip(dut, limitInfo, isDutQA) {\r\n const { tempLineInfo, humLineInfo, co2LineInfo } = limitInfo;\r\n const minTemp = dut?.TUSEMIN && `${formatNumberWithFractionDigits(dut.TUSEMIN)} ºC min` || '';\r\n const maxTemp = dut?.TUSEMAX && `${formatNumberWithFractionDigits(dut?.TUSEMAX)}ºC max` || '';\r\n const minHum = dut?.HUMIMIN && `${formatNumberWithFractionDigits(dut?.HUMIMIN)}% min` || '';\r\n const maxHum = dut?.HUMIMAX && `${formatNumberWithFractionDigits(dut?.HUMIMAX)}% max` || '';\r\n return (\r\n <>\r\n {\r\n tempLineInfo.isLimitVisible && (dut?.TUSEMIN || dut?.TUSEMAX) && (\r\n

\r\n {`Limites de Temperatura: ${formatNumberWithFractionDigits(minTemp)} ${formatNumberWithFractionDigits(maxTemp)}`}\r\n

\r\n )\r\n }\r\n {\r\n isDutQA && humLineInfo.isLimitVisible && (dut?.HUMIMIN || dut?.HUMIMAX) && (\r\n

\r\n {`Limites de Umidade: ${formatNumberWithFractionDigits(minHum)} ${formatNumberWithFractionDigits(maxHum)}`}\r\n

\r\n )\r\n }\r\n {\r\n isDutQA && co2LineInfo.isLimitVisible && dut?.CO2MAX && (\r\n

\r\n {`Limites de CO₂: ${formatNumberWithFractionDigits(dut.CO2MAX)} CO₂ max`}\r\n

\r\n )\r\n }\r\n\r\n \r\n );\r\n}\r\n\r\nfunction returnTooltip(limitData, date, data, hasL1 = false, isDutQA = false) {\r\n return (\r\n (!hasL1 ? : )}\r\n />\r\n );\r\n}\r\n\r\nfunction returnTooltipGroup(date, data, limitData, isDutQA) {\r\n return (\r\n }\r\n />\r\n );\r\n}\r\n\r\nconst xaxisObject = (graphDataX) => ({\r\n id: 1,\r\n allowDataOverflow: true,\r\n type: 'number',\r\n name: 'time',\r\n dataKey: ({ index }) => graphDataX?.commonX[index],\r\n ticks: ticksXgraph,\r\n allowDecimals: false,\r\n domain: [0, 24],\r\n ticksFormater: tickXLabelFormaterHour,\r\n});\r\n\r\nfunction DutQAHistory({\r\n state, graphData, render, tickXLabelFormaterHour, date, isDutQA, labelTemp, labelTemp1, hasData,\r\n}): JSX.Element {\r\n const {\r\n axisInfo, tempLineInfo, humLineInfo, co2LineInfo, graphDataX, temp1LineInfo, hasL1, L1LineInfo,\r\n } = state;\r\n let menorNumber = 0;\r\n\r\n function generateTicks(range: [number, number], step = 5): number[] {\r\n const [min, max] = range;\r\n const start = Math.floor(min / step) * step;\r\n const end = Math.ceil(max / step) * step;\r\n const ticks = [] as number[];\r\n for (let i = start; i <= end; i += step) {\r\n ticks.push(i);\r\n }\r\n\r\n // Garantir que 0 esteja incluído\r\n if (!ticks.includes(0)) {\r\n ticks.push(0);\r\n ticks.sort((a, b) => a - b);\r\n }\r\n menorNumber = ticks[0];\r\n if (menorNumber >= 0) {\r\n menorNumber += 2;\r\n } else {\r\n menorNumber -= 2;\r\n }\r\n if (hasL1) {\r\n const firstTick = ticks[0];\r\n const additionalTicks = [firstTick - 1, firstTick - 2];\r\n\r\n ticks.unshift(...additionalTicks);\r\n ticks.sort((a, b) => a - b);\r\n }\r\n return ticks;\r\n }\r\n return (\r\n \r\n {\r\n state.groupGraph && state.graphDataX && (\r\n <>\r\n \r\n ({ index }))}\r\n margin={{\r\n top: 40,\r\n right: 30,\r\n left: 20,\r\n bottom: 5,\r\n }}\r\n >\r\n \r\n graphDataX?.commonX[index]}\r\n ticks={ticksXgraph}\r\n tickFormatter={tickXLabelFormaterHour}\r\n allowDecimals={false}\r\n domain={[0, 24]}\r\n />\r\n {graphDataX.Humidity?.y && (\r\n }\r\n dataKey=\"y\"\r\n ticks={axisInfo.humTicks}\r\n tickMargin={35}\r\n orientation=\"right\"\r\n domain={axisInfo.humLimits}\r\n >\r\n \r\n \r\n )}\r\n {humLineInfo.isVisible && graphDataX.Humidity?.y && (\r\n graphDataX.Humidity.y[index]}\r\n stroke={humLineInfo.lineColorObj.lineColor}\r\n strokeWidth={1.2}\r\n unit=\"umidade\"\r\n type=\"monotone\"\r\n dot={false}\r\n />\r\n )}\r\n {graphDataX.eCO2 && (\r\n }\r\n ticks={state.axisInfo.eCO2Ticks}\r\n tickMargin={70}\r\n orientation=\"right\"\r\n interval={0}\r\n domain={state.axisInfo.eCO2Domain}\r\n tickLine\r\n >\r\n \r\n \r\n )}\r\n {graphDataX.eCO2?.y && co2LineInfo.isVisible && (\r\n graphDataX.eCO2.y[index]}\r\n stroke={co2LineInfo.lineColorObj.lineColor}\r\n strokeWidth={1.2}\r\n unit=\"eCO2\"\r\n type=\"monotone\"\r\n dot={false}\r\n />\r\n )}\r\n
\r\n {graphDataX.Temperature && (\r\n }\r\n ticks={state.axisInfo.tempTicks}\r\n orientation=\"left\"\r\n interval={0}\r\n domain={state.axisInfo.tempLimits}\r\n >\r\n
\r\n \r\n \r\n )}\r\n {graphDataX.Temperature && tempLineInfo.isVisible && (\r\n graphDataX.Temperature.y[index]}\r\n stroke={tempLineInfo.lineColorObj.lineColor}\r\n strokeWidth={1.2}\r\n type=\"monotone\"\r\n unit=\"temperatura\"\r\n dot={false}\r\n\r\n />\r\n )}\r\n {humLineInfo.isLimitVisible && graphDataX.Humidity && (\r\n \r\n )}\r\n {humLineInfo.isLimitVisible && graphDataX.Humidity && (\r\n \r\n )}\r\n {tempLineInfo.isLimitVisible && graphDataX.Temperature && (\r\n \r\n )}\r\n {tempLineInfo.isLimitVisible && graphDataX.Temperature && (\r\n \r\n )}\r\n {co2LineInfo.isLimitVisible && graphDataX?.eCO2 && state.devInfo?.dut?.CO2MAX && (\r\n \r\n )}\r\n { returnTooltipGroup(date, graphDataX, { dut: state.devInfo.dut, limitInfo: { co2LineInfo, tempLineInfo, humLineInfo } }, isDutQA) }\r\n \r\n \r\n
\r\n { graphDataX.Temperature && (\r\n
\r\n { tempLineInfo.isVisible = !tempLineInfo.isVisible; render(); }} checked={tempLineInfo.isVisible} color={tempLineInfo.lineColorObj.lineColor} />\r\n { tempLineInfo.isLimitVisible = !tempLineInfo.isLimitVisible; render(); }} checked={tempLineInfo.isLimitVisible} color={tempLineInfo.limitColorObj.lineColor} />\r\n
\r\n ) }\r\n { graphDataX.Humidity && (\r\n
\r\n { humLineInfo.isVisible = !humLineInfo.isVisible; render(); }} checked={humLineInfo.isVisible} color={humLineInfo.lineColorObj.lineColor} />\r\n { humLineInfo.isLimitVisible = !humLineInfo.isLimitVisible; render(); }} checked={humLineInfo.isLimitVisible} color={humLineInfo.limitColorObj.lineColor} />\r\n
\r\n ) }\r\n { graphDataX.eCO2 && (\r\n
\r\n { co2LineInfo.isVisible = !co2LineInfo.isVisible; render(); }} checked={co2LineInfo.isVisible} color={co2LineInfo.lineColorObj.lineColor} />\r\n { co2LineInfo.isLimitVisible = !co2LineInfo.isLimitVisible; render(); }} checked={co2LineInfo.isLimitVisible} color={co2LineInfo.limitColorObj.lineColor} />\r\n
\r\n ) }\r\n
\r\n \r\n )\r\n }\r\n { !state.groupGraph && graphDataX?.Temperature?.y.some((item) => item !== null) && (\r\n <>\r\n {t('temperatura')}\r\n ,\r\n dataKey: 'y',\r\n ticks: generateTicks(axisInfo.tempLimits),\r\n interval: 0,\r\n domain: hasL1 && axisInfo.tempLimits ? [axisInfo.tempLimits[0] - 2, axisInfo.tempLimits[1]] : axisInfo.tempLimits,\r\n Label: {\r\n offset: -45,\r\n angle: 90,\r\n position: 'right',\r\n style: { color: '#656565', fontSize: '16px', textAnchor: 'middle' },\r\n },\r\n }]\r\n }\r\n lineProps={\r\n [{\r\n id: 3,\r\n yAxisId: 'tempId',\r\n dataKey: ({ index }) => graphDataX?.Temperature?.y[index],\r\n stroke: tempLineInfo.lineColorObj.lineColor,\r\n strokeWidth: 1.2,\r\n unit: 'Temperatura',\r\n type: 'monotone',\r\n dot: false,\r\n isVisible: tempLineInfo.isVisible,\r\n }, {\r\n id: 4,\r\n yAxisId: 'tempId',\r\n dataKey: ({ index }) => graphDataX?.Temperature_1?.y[index],\r\n stroke: temp1LineInfo.lineColor,\r\n strokeWidth: 1.2,\r\n unit: 'temperatura1',\r\n type: 'monotone',\r\n dot: false,\r\n isVisible: temp1LineInfo.isVisible,\r\n }, {\r\n id: 5,\r\n yAxisId: 'tempId',\r\n dataKey: ({ index }) => (graphDataX?.L1?.y[index] != null ? graphDataX?.L1?.y[index] - menorNumber : null),\r\n stroke: L1LineInfo.lineColor,\r\n strokeWidth: 1.2,\r\n unit: 'L1',\r\n type: 'monotone',\r\n dot: false,\r\n isVisible: L1LineInfo.isVisible,\r\n }]\r\n }\r\n referenceProps={[{\r\n id: 6,\r\n yAxisId: 'tempId',\r\n y: state.devInfo?.dut?.TUSEMAX,\r\n stroke: tempLineInfo.limitColorObj.lineColor,\r\n strokeWidth: 0.7,\r\n isVisible: tempLineInfo.isLimitVisible,\r\n segment: state.useMaxGraphData,\r\n isDutQA,\r\n },\r\n {\r\n id: 7,\r\n yAxisId: 'tempId',\r\n y: state.devInfo?.dut?.TUSEMIN,\r\n stroke: tempLineInfo.limitColorObj.lineColor,\r\n strokeWidth: 0.7,\r\n isVisible: tempLineInfo.isLimitVisible,\r\n segment: state.useMinGraphData,\r\n isDutQA,\r\n }]}\r\n hasL1={state.hasL1 || graphDataX?.Temperature_1?.y.some((item) => item !== null)}\r\n />\r\n \r\n { tempLineInfo.isVisible = !tempLineInfo.isVisible; render(); }} checked={tempLineInfo.isVisible} color={tempLineInfo.lineColorObj.lineColor} />\r\n { tempLineInfo.isLimitVisible = !tempLineInfo.isLimitVisible; render(); }} checked={tempLineInfo.isLimitVisible} color={tempLineInfo.limitColorObj.lineColor} />\r\n { (graphDataX.Temperature_1?.y?.length > 0 && graphDataX.Temperature_1?.y?.filter((item) => item !== null).length > 0) && (\r\n { temp1LineInfo.isVisible = !temp1LineInfo.isVisible; render(); }} checked={temp1LineInfo.isVisible} color={temp1LineInfo.lineColor} />\r\n )}\r\n {\r\n state.hasL1 && (\r\n { L1LineInfo.isVisible = !L1LineInfo.isVisible; render(); }} checked={L1LineInfo.isVisible} color={L1LineInfo.lineColor} />\r\n )\r\n }\r\n
\r\n \r\n )}\r\n { !state.groupGraph && isDutQA && graphDataX?.Humidity?.y.some((item) => item !== null) && (\r\n <>\r\n {t('umidade')}\r\n ,\r\n dataKey: 'y',\r\n ticks: axisInfo.humTicks,\r\n interval: 0,\r\n domain: axisInfo.humLimits,\r\n Label: {\r\n offset: -45,\r\n angle: 90,\r\n position: 'right',\r\n style: { color: '#656565', fontSize: '16px', textAnchor: 'middle' },\r\n },\r\n }]\r\n }\r\n lineProps={\r\n [{\r\n id: 3,\r\n yAxisId: 'hum',\r\n dataKey: ({ index }) => graphDataX?.Humidity?.y[index],\r\n stroke: humLineInfo.lineColorObj.lineColor,\r\n strokeWidth: 1.2,\r\n unit: 'Umidade',\r\n type: 'monotone',\r\n dot: false,\r\n isVisible: humLineInfo.isVisible,\r\n }]\r\n }\r\n referenceProps={[{\r\n id: 5,\r\n yAxisId: 'hum',\r\n y: state.devInfo?.dut?.HUMIMAX,\r\n stroke: humLineInfo.limitColorObj.lineColor,\r\n strokeWidth: 0.7,\r\n isVisible: humLineInfo.isLimitVisible,\r\n },\r\n {\r\n id: 7,\r\n yAxisId: 'hum',\r\n y: state.devInfo?.dut?.HUMIMAX,\r\n stroke: humLineInfo.limitColorObj.lineColor,\r\n strokeWidth: 0.7,\r\n isVisible: humLineInfo.isLimitVisible,\r\n },\r\n ]}\r\n />\r\n
\r\n { humLineInfo.isVisible = !humLineInfo.isVisible; render(); }} checked={humLineInfo.isVisible} color={humLineInfo.lineColorObj.lineColor} />\r\n { humLineInfo.isLimitVisible = !humLineInfo.isLimitVisible; render(); }} checked={humLineInfo.isLimitVisible} color={humLineInfo.limitColorObj.lineColor} />\r\n
\r\n \r\n )}\r\n { !state.groupGraph && isDutQA && graphDataX?.eCO2?.y.some((item) => item !== null) && (\r\n <>\r\n CO₂\r\n ,\r\n dataKey: 'y',\r\n ticks: axisInfo.eCO2Ticks,\r\n interval: 0,\r\n domain: axisInfo.eCO2Domain,\r\n Label: {\r\n offset: -45,\r\n angle: 90,\r\n position: 'right',\r\n style: { color: '#656565', fontSize: '16px', textAnchor: 'middle' },\r\n },\r\n }]\r\n }\r\n lineProps={\r\n [{\r\n id: 21,\r\n yAxisId: 'hum',\r\n data: graphData.eCO2,\r\n dataKey: ({ index }) => graphDataX?.eCO2?.y[index],\r\n unit: 'CO₂',\r\n stroke: co2LineInfo.lineColorObj.lineColor,\r\n strokeWidth: 1.2,\r\n type: 'monotone',\r\n dot: false,\r\n isVisible: co2LineInfo.isVisible,\r\n }]\r\n }\r\n referenceProps={[{\r\n id: 22,\r\n yAxisId: 'hum',\r\n y: state.devInfo?.dut?.CO2MAX,\r\n stroke: co2LineInfo.limitColorObj.lineColor,\r\n strokeWidth: 0.7,\r\n isVisible: co2LineInfo.isLimitVisible,\r\n },\r\n ]}\r\n />\r\n
\r\n { co2LineInfo.isVisible = !co2LineInfo.isVisible; render(); }} checked={co2LineInfo.isVisible} color={co2LineInfo.lineColorObj.lineColor} />\r\n { co2LineInfo.isLimitVisible = !co2LineInfo.isLimitVisible; render(); }} checked={co2LineInfo.isLimitVisible} color={co2LineInfo.limitColorObj.lineColor} />\r\n
\r\n \r\n )}\r\n {\r\n !hasData && (\r\n \r\n )\r\n }\r\n \r\n );\r\n}\r\n\r\nconst CheckBoxLines = ({\r\n text, checked, onClick, color,\r\n}) => (\r\n \r\n \r\n \r\n {text}\r\n
\r\n
\r\n \r\n \r\n);\r\n\r\nconst CustomTickGraph = (props) => {\r\n const {\r\n x, y, payload, anchor, type, ticks, hasL1,\r\n } = props;\r\n let label = payload.value;\r\n switch (type) {\r\n case 'co2':\r\n label = `${payload.value}ppm`;\r\n break;\r\n case 'hum':\r\n label = `${payload.value}%`;\r\n break;\r\n case 'temp':\r\n label = `${payload.value}°C`;\r\n break;\r\n }\r\n if (Array.isArray(ticks) && hasL1) {\r\n if (payload.value === ticks[0]) {\r\n label = 'DESLIGADO';\r\n } else if (payload.value === ticks[1]) {\r\n label = 'LIGADO';\r\n }\r\n }\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n};\r\n\r\nfunction handleClick(LineInfo) {\r\n if (!LineInfo) return;\r\n LineInfo.isDisplayColorVisible = !LineInfo.isDisplayColorVisible;\r\n}\r\n\r\nfunction handleClose(lineInfo) {\r\n if (!lineInfo) return;\r\n lineInfo.displayColorPicker = false;\r\n}\r\n\r\nfunction RenderModalLines({\r\n lineInfo, render,\r\n}): JSX.Element {\r\n return (\r\n \r\n { handleClick(lineInfo); render(); }}\r\n />\r\n {lineInfo.text}\r\n { lineInfo.isDisplayColorVisible && (\r\n \r\n handleClose(lineInfo)}\r\n />\r\n {\r\n lineInfo.lineColor = hex;\r\n lineInfo.isDisplayColorVisible = false;\r\n render(); }}\r\n />\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nfunction Card({\r\n Filtering,\r\n graphData,\r\n graphEnable,\r\n handleChange,\r\n axisInfo,\r\n state,\r\n date,\r\n render,\r\n tickXLabelFormaterHour,\r\n}: {\r\n // @ts-ignore\r\n Filtering?: React.Element,\r\n graphData?: any,\r\n graphEnable?: any,\r\n handleChange?: () => void,\r\n axisInfo: any,\r\n state: any,\r\n date: null|moment.Moment,\r\n isDutQA: boolean,\r\n render: () => void,\r\n tickXLabelFormaterHour,\r\n}) {\r\n function isFancoil() {\r\n if (state.devInfo.dut && state.devInfo.dut.APPLICATION === 'fancoil') {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function labelTemp() {\r\n if (isFancoil() && graphData?.Temperature_1) {\r\n return `${t('temperaturaSaidaAgua')} [°C]`;\r\n }\r\n if (!isFancoil() && graphData?.Temperature_1) {\r\n return `${t('temperaturaRetorno')} [°C]`;\r\n }\r\n return `${t('temperaturaAmbiente')} [°C]`;\r\n }\r\n\r\n function labelTemp1() {\r\n if (isFancoil()) {\r\n return `${t('temperaturaEntradaAgua')} [°C]`;\r\n }\r\n return `${t('temperaturaInsuflamento')}`;\r\n }\r\n const hasData = (state.graphDataX?.Temperature?.y.some((item) => item !== null) || state.graphDataX?.Temperature_1?.y.some((item) => item !== null) || state.graphDataX?.Humidity?.y.some((item) => item !== null) || state.graphDataX?.eCO2?.y.some((item) => item !== null || state.graphDataX?.L1?.y.some((item) => item !== null)));\r\n return (\r\n \r\n {state.isModalOpen && (\r\n \r\n \r\n \r\n \r\n

{t('alterarCores')}

\r\n { state.isModalOpen = false; render(); }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n { state.graphDataX.Humidity && (\r\n <>\r\n \r\n \r\n \r\n ) }\r\n { state.graphDataX.Temperature && (\r\n <>\r\n \r\n \r\n \r\n ) }\r\n { state.graphDataX.eCO2 && (\r\n <>\r\n \r\n \r\n \r\n ) }\r\n \r\n
\r\n
\r\n )}\r\n \r\n
\r\n { Filtering && }\r\n { (state.devInfo.dut.operation_mode === 5 && hasData && date) && (\r\n \r\n {t('visualizacao')}\r\n \r\n {t('desagrupar')}\r\n { state.groupGraph = !state.groupGraph; render(); }}\r\n style={{ marginLeft: '10px', marginRight: '10px' }}\r\n />\r\n {t('agrupar')}\r\n \r\n \r\n ) }\r\n
\r\n { (state.devInfo.dut.operation_mode === 5 && hasData && date) && }\r\n
\r\n {(!date) ? : null}\r\n {date && (\r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\ntype LabelType = {\r\n offset: number\r\n angle: number\r\n position: string\r\n style: object\r\n}\r\n\r\ntype XaxisType = {\r\n id: number\r\n allowDataOverflow: boolean\r\n type: string\r\n name: string\r\n dataKey: any\r\n ticks: number []\r\n allowDecimals: boolean\r\n domain: number []\r\n ticksFormater: (x: number) => string\r\n}\r\n\r\ntype YaxisType = {\r\n id: number\r\n yAxisId: string\r\n allowDataOverflow: boolean\r\n tick: JSX.Element\r\n dataKey: string\r\n ticks: number []\r\n interval: number\r\n domain: number []\r\n Label: LabelType\r\n}\r\n\r\ntype LineType = {\r\n id: number\r\n yAxisId: string\r\n unit: string\r\n dataKey: (item: any) => any\r\n stroke: string\r\n strokeWidth: number\r\n type: string\r\n dot: boolean\r\n isVisible: boolean\r\n}\r\n\r\ntype ReferenceLine = {\r\n id: number\r\n yAxisId: string\r\n y: number\r\n strokeWidth: number\r\n isVisible: boolean\r\n stroke: string\r\n segment?: { x: number, y: number }[]\r\n isDutQA?: boolean\r\n}\r\n\r\nconst GraphLineChart = ({\r\n xaxisProps, yaxisProps, lineProps, referenceProps, limitData, graphDataX, date, hasL1 = false, isDutQA = false,\r\n}: { xaxisProps?: XaxisType[], yaxisProps?: YaxisType[], lineProps?: LineType[], referenceProps?: ReferenceLine[], limitData, graphDataX, date, hasL1?: boolean, isDutQA?: boolean }): JSX.Element => (\r\n \r\n ({ index }))}\r\n margin={{\r\n top: 25,\r\n right: 30,\r\n left: 20,\r\n bottom: 5,\r\n }}\r\n >\r\n \r\n { xaxisProps && xaxisProps?.map((xaxis) => (\r\n \r\n )) }\r\n {\r\n yaxisProps && yaxisProps?.map((yaxis) => (\r\n \r\n \r\n \r\n ))\r\n }\r\n {\r\n lineProps && lineProps?.map((line) => line.isVisible && (\r\n \r\n ))\r\n }\r\n {\r\n referenceProps && referenceProps?.map((line) => {\r\n if (line.isVisible) {\r\n if (line.segment && !line.isDutQA) {\r\n return (\r\n \r\n );\r\n }\r\n return ;\r\n }\r\n return <>;\r\n })\r\n }\r\n { returnTooltip(limitData, date, graphDataX, hasL1, isDutQA) }\r\n \r\n \r\n);\r\n\r\nconst NoDataInTable = () => (\r\n \r\n \r\n

\r\n {t('graficoSemDados')}\r\n

\r\n
\r\n);\r\n\r\nconst GraphWrapper = styled.div`\r\n width: 100%;\r\n position: relative;\r\n height: 100%;\r\n`;\r\n\r\nconst ModalMobile = styled.div<{ isModalOpen }>(\r\n ({ isModalOpen }) => `\r\n display:${isModalOpen ? 'block' : 'none'};\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n background-color: ${colors.White};\r\n width: 100%;\r\n height: 100vh;\r\n z-index: 1;\r\n overflow: hidden;\r\n transition: all .5s ease-in-out;\r\n\r\n @media (min-width: 768px) {\r\n display: none;\r\n }\r\n`,\r\n);\r\n\r\nconst ModalTitle = styled.span`\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nconst ModalTitleContainer = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n height: 100%;\r\n width: 100%;\r\n padding: 16px;\r\n svg {\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nconst ModalSection = styled.div`\r\n width: 100%;\r\n height: 80px;\r\n background: ${colors.Grey030};\r\n border-bottom: 2px solid ${colors.Grey100};\r\n box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);\r\n`;\r\n\r\nconst MobileWrapper = styled.div`\r\n display: block;\r\n\r\n @media (min-width: 768px) {\r\n display: none;\r\n }\r\n`;\r\n\r\nconst DesktopWrapper = styled.div`\r\n display: none;\r\n\r\n @media (min-width: 768px) {\r\n display: block;\r\n }\r\n`;\r\n\r\nconst Text = styled.span`\r\n font-weight: normal;\r\n font-size: 0.8em;\r\n line-height: 26px;\r\n color: ${colors.Grey400};\r\n\r\n @media (min-width: 460px) {\r\n font-size: 1em;\r\n }\r\n`;\r\n\r\nconst CheckboxLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n padding-right: 0px;\r\n @media (min-width: 460px) {\r\n padding-right: 20px;\r\n }\r\n`;\r\n\r\nconst ColoredLine = styled(LineIcon)(\r\n ({ color }) => `\r\n margin-left: 10px;\r\n color: ${color};\r\n`,\r\n);\r\n\r\nconst CardWrapper = styled.div`\r\n padding: 32px 24px;\r\n margin-top: 24px;\r\n background: ${colors.White};\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport {\r\n CalendarIcon, LineIcon, ExportWorksheetIcon, DashedLineIcon,\r\n} from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n\r\n .CalendarMonth_caption {\r\n color: #000;\r\n text-transform: capitalize;\r\n }\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.BlueSecondary};\r\n color: white;\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n\r\n .CalendarDay__selected_span {\r\n background: #D0D2F1;\r\n border: 1px double #F4EBEB;\r\n color: #000;\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n display: none;\r\n }\r\n .CalendarDay__default:hover {\r\n background: #e4e7e7;\r\n border: 1px solid #e4e7e7;\r\n color: inherit;\r\n }\r\n\r\n .CalendarDay__hovered_span, .CalendarDay__hovered_span:hover {\r\n background: #E5E6F8;\r\n border: 1px double #F4EBEB;\r\n color: #000;\r\n }\r\n\r\n .CalendarDay__selected_span:hover {\r\n background: #B5B7DD;\r\n border: 1px double #B5B7DD;\r\n color: #fff;\r\n }\r\n \r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::before,\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n display: none;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n background: none;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .react-datepicker__year-text--selected, .react-datepicker__year-text--in-selecting-range, .react-datepicker__year-text--in-range {\r\n background-color: #363BC4;\r\n }\r\n .react-datepicker__year-wrapper {\r\n justify-content: center;\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 15px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 15px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.White};\r\n font-weight: bold;\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const StyledCalendarIconMonthViewBtn = styled(CalendarIcon)(\r\n () => `\r\n width: 30px;\r\n height: 24px;\r\n color: #363BC4;\r\n`,\r\n);\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-left: 16px;\r\n color: ${colors.Grey300};\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const VarContainer = styled.div`\r\n margin: 10px 0 10px 15px;\r\n min-width: 230px;\r\n`;\r\n\r\nexport const VarName = styled.div`\r\n font-size: 12px;\r\n font-weight: 700;\r\n color: #000;\r\n line-height: '13.31px'\r\n`;\r\nexport const VarValue = styled.span`\r\n font-weight: bold;\r\n font-size: 150%;\r\n`;\r\nexport const VarUnit = styled.span`\r\n font-size: 130%;\r\n color: #8c8c8c;\r\n padding-left: 0.35em;\r\n`;\r\n\r\nexport const CustomLegendUl = styled.ul`\r\n transform: rotate(270deg);\r\n position: relative;\r\n left: 50px;\r\n`;\r\n\r\nexport const CustomLegendLi = styled.li`\r\n font-family: Inter;\r\n font-style: normal;\r\n font-weight: 700;\r\n font-size: 11px;\r\n color: #000000;\r\n list-style-type: none;\r\n display: inline-flex;\r\n align-items: center;\r\n`;\r\n\r\nexport const WaterTooltip = styled.div`\r\n min-width: 210px;\r\n min-height: 140px;\r\n background: #FFFFFFF7;\r\n border: 1px solid #202370;\r\n border-radius: 4px;\r\n padding: 24px;\r\n\r\n > span {\r\n font-weight: bold;\r\n color: #000000;\r\n }\r\n\r\n > p {\r\n > strong {\r\n font-size: 150%;\r\n }\r\n\r\n > span {\r\n font-size: 130%;\r\n color: #8c8c8c;\r\n padding-left: 0.35em;\r\n }\r\n }\r\n`;\r\n\r\nexport const GraphWrapper = styled.div`\r\n width: 100%;\r\n position: relative;\r\n height: 100%;\r\n`;\r\n\r\nexport const ModalMobile = styled.div<{ isModalOpen }>(\r\n ({ isModalOpen }) => `\r\n display:${isModalOpen ? 'block' : 'none'};\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n background-color: ${colors.White};\r\n width: 100%;\r\n height: 100vh;\r\n z-index: 1;\r\n overflow: hidden;\r\n transition: all .5s ease-in-out;\r\n\r\n @media (min-width: 768px) {\r\n display: none;\r\n }\r\n`,\r\n);\r\n\r\nexport const ModalTitle = styled.span`\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n line-height: 27px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const ModalTitleContainer = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n height: 100%;\r\n width: 100%;\r\n padding: 16px;\r\n svg {\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nexport const ModalSection = styled.div`\r\n width: 100%;\r\n height: 80px;\r\n background: ${colors.Grey030};\r\n border-bottom: 2px solid ${colors.Grey100};\r\n box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);\r\n`;\r\n\r\nexport const MobileWrapper = styled.div`\r\n display: block;\r\n\r\n @media (min-width: 768px) {\r\n display: none;\r\n }\r\n`;\r\n\r\nexport const DesktopWrapper = styled.div`\r\n display: none;\r\n\r\n @media (min-width: 768px) {\r\n display: block;\r\n }\r\n`;\r\n\r\nexport const Text = styled.span`\r\n font-weight: bold;\r\n font-size: 1em;\r\n line-height: 26px;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const MonthViewBtnText = styled.span`\r\n font-size: 1rem;\r\n line-height: 20px;\r\n color: ${colors.Black};\r\n`;\r\n\r\nexport const CheckboxLine = styled.div`\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n`;\r\n\r\nexport const ColoredLine = styled(LineIcon)(\r\n ({ color }) => `\r\n margin-left: 10px;\r\n color: ${color}\r\n`,\r\n);\r\n\r\nexport const DashedColoredLine = styled(DashedLineIcon)(\r\n ({ color }) => `\r\n margin-left: 10px;\r\n color: ${color}\r\n`,\r\n);\r\n\r\nexport const CardWrapper = styled.div`\r\n padding: 32px 24px;\r\n margin-top: 24px;\r\n background: ${colors.White};\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const CustomLabel = styled.text<{ angle }>`\r\n transform: rotate(${({ angle }) => (angle || -90)}deg);\r\n`;\r\n\r\nexport const DateLabel = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const BtnExport = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n margin-left: 10px;\r\n font-weight: 400;\r\n border-radius: 12px;\r\n height: 41px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n :hover {\r\n color: ${colors.White}\r\n background-color: #363BC4\r\n ${Text} {\r\n color: ${colors.White}\r\n }\r\n })\r\n`;\r\n\r\nexport const BtnExportReduced = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n margin-left: 10px;\r\n border-radius: 12px;\r\n height: 1px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n :hover {\r\n color: ${colors.White}\r\n background-color: #363BC4\r\n })\r\n`;\r\n\r\nexport const ExportWorksheet = styled(ExportWorksheetIcon)(\r\n () => `\r\n padding-left: 10px;\r\n color: #363BC4;\r\n`,\r\n);\r\n\r\nexport const BtnMonthView = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n margin-right: 20px;\r\n font-weight: 400;\r\n border-radius: 12px;\r\n height: 41px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n :hover {\r\n color: ${colors.White}\r\n background-color: #363BC4\r\n ${MonthViewBtnText} {\r\n color: ${colors.White}\r\n }\r\n })\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\ncolor: #363BC4;\r\nfont-family: 'Inter';\r\nfont-style: normal;\r\nfont-weight: 400;\r\nfont-size: 12px;\r\nline-height: 12px;\r\ntext-decoration-line: underline;\r\ndisplay: block;\r\n`;\r\n\r\nexport const InfoText = styled.p`\r\ncolor: ${colors.Grey400};\r\nfont-family: 'Inter';\r\nfont-style: normal;\r\nfont-weight: 400;\r\nfont-size: 12px;\r\nline-height: 12px;\r\ndisplay: block;\r\n`;\r\n","import { Box, Dialog } from '@material-ui/core';\r\nimport { ColorChangeBtn } from '../../icons/ColorChange';\r\nimport { useState } from 'react';\r\nimport { SketchPicker } from 'react-color';\r\nimport { t } from 'i18next';\r\n\r\nexport type ChangeColorProps = {\r\n data: {color:string, description: string, index: number}[];\r\n setColor?: any;\r\n blueVersion?: boolean;\r\n}\r\n\r\nexport type ButtonChangeColorProps = {\r\n onClick?: any;\r\n blueVersion?: boolean;\r\n}\r\n\r\nexport type ChangeColorDialogProps = {\r\n onClose?:any;\r\n open: boolean;\r\n data: {color:string, description: string, index: number}[];\r\n setColor: any;\r\n}\r\n\r\nexport function ChangeColor({ data, setColor, blueVersion }: ChangeColorProps): JSX.Element {\r\n const [showDialog, setShowDialog] = useState(false);\r\n return (\r\n <>\r\n setShowDialog(!showDialog)} />\r\n setShowDialog(false)}\r\n open={showDialog}\r\n data={data}\r\n setColor={setColor}\r\n />\r\n \r\n );\r\n}\r\n\r\nexport function ButtonChangeColor({ onClick, blueVersion }: ButtonChangeColorProps): JSX.Element {\r\n return (\r\n \r\n \r\n \r\n {t('alterarCores')}\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function ChangeColorDialog({\r\n onClose, open, data, setColor,\r\n}: ChangeColorDialogProps): JSX.Element {\r\n const [selected, setSelected] = useState({ color: '', description: '', index: 0 });\r\n const [showPickerColor, setShowPickerColor] = useState(false);\r\n\r\n return (\r\n \r\n \r\n \r\n

Alterar Cores

\r\n
\r\n \r\n \r\n {data.map((itemData) => (\r\n \r\n { setSelected(itemData); setShowPickerColor(true); }}\r\n style={{\r\n width: '16px', height: '16px', background: itemData.color, borderRadius: '5px', marginRight: '10px', cursor: 'pointer',\r\n }}\r\n />\r\n
\r\n {itemData.description}\r\n
\r\n
\r\n ))}\r\n
\r\n \r\n {showPickerColor && (\r\n setColor(color, selected.index)}\r\n size=\"small\"\r\n />\r\n )}\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport const ChangeColorSample = (option, setColor, color) => {\r\n const [showPickerColor, setShowPickerColor] = useState(false);\r\n return (\r\n <>\r\n
setShowPickerColor(!showPickerColor)} />\r\n \r\n {showPickerColor && (\r\n setColor(color, option.index)}\r\n />\r\n )}\r\n \r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const GreenBlob = styled.div`\r\n background: #4EB73B;\r\n border-radius: 50%;\r\n box-shadow: 0 0 0 0 rgba(142, 210, 130, 1);\r\n margin-right: 5px;\r\n height: 11px;\r\n width: 11px;\r\n transform: scale(1);\r\n animation: greenPulse 2s infinite;\r\n\r\n @keyframes greenPulse {\r\n 0% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(142, 210, 130, 0.7);\r\n }\r\n 70% {\r\n transform: scale(1);\r\n box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);\r\n }\r\n 100% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\r\n }\r\n }\r\n`;\r\n\r\nexport const YellowBlob = styled.div`\r\n background: #EDA800;\r\n border-radius: 50%;\r\n box-shadow: 0 0 0 0 rgba(255, 206, 0, 1);\r\n margin-right: 5px;\r\n height: 11px;\r\n width: 11px;\r\n transform: scale(1);\r\n animation: yellowPulse 2s infinite;\r\n\r\n @keyframes yellowPulse {\r\n 0% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(255, 206, 0, 0.7);\r\n }\r\n 70% {\r\n transform: scale(1);\r\n box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);\r\n }\r\n 100% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\r\n }\r\n }\r\n`;\r\n\r\nexport const RedBlob = styled.div`\r\n background: #FF1818;\r\n border-radius: 50%;\r\n box-shadow: 0 0 0 0 rgba(255, 103, 103, 1);\r\n margin-right: 5px;\r\n height: 11px;\r\n width: 11px;\r\n transform: scale(1);\r\n animation: redPulse 2s infinite;\r\n\r\n @keyframes redPulse {\r\n 0% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(255, 103, 103, 0.7);\r\n }\r\n 70% {\r\n transform: scale(1);\r\n box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);\r\n }\r\n 100% {\r\n transform: scale(0.95);\r\n box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);\r\n }\r\n }\r\n`;\r\n\r\nexport const GreyBlob = styled.div`\r\n background: #E9E9E9;\r\n border-radius: 50%;\r\n margin: 10px;\r\n height: 11px;\r\n width: 11px;\r\n`;\r\n\r\nexport const BlackBlob = styled.div`\r\n background: #545454;\r\n border-radius: 50%;\r\n margin: 10px;\r\n height: 11px;\r\n width: 11px;\r\n`;\r\n\r\nexport const ProgressBarContainer = styled.div`\r\n background-color: #D9D9D9;\r\n height: 5px;\r\n width: 100%;\r\n border-radius: 16px;\r\n position: relative;\r\n transition: all 0.5s;\r\n will-change: transform;\r\n`;\r\n\r\nexport const ProgressBarChildren = styled.div<{progress: number}>(\r\n ({ progress }) => `\r\n border-radius:16px;\r\n width: ${progress}%;\r\n position: absolute;\r\n height: 100%;\r\n content: none;\r\n background-color: #363BC4;\r\n top:0;\r\n bottom: 0;\r\n border-radius: inherit;\r\n display: flex;\r\n justify-content: center;\r\n align-items:center;\r\n color: white;\r\n`,\r\n);\r\n\r\nexport const IconBiggerWrapper = styled.div`\r\n display: inline-block;\r\n width: 21px;\r\n height: 21px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n /* margin-left: 6px; */\r\n svg {\r\n width: 21px;\r\n height: 21px;\r\n }\r\n`;\r\n\r\nexport const TopTitle = styled.div`\r\n font-family: Inter;\r\n font-style: normal;\r\n font-weight: bold;\r\n font-size: 16px;\r\n line-height: 16px;\r\n color: ${colors.Black};\r\n`;\r\n\r\nexport const CellLabel = styled.span`\r\n color: ${colors.Black};\r\n font-weight: normal;\r\n font-size: 12px !important;\r\n`;\r\n\r\nexport const TitleColumn = styled.div`\r\njustify-content: flex-start;\r\ndisplay: flex;\r\nflex-direction: row;\r\n`;\r\n\r\nexport const OrderColumn = styled.div`\r\npadding-left: 5px;\r\npadding-right: 5px;\r\npadding-bottom: 4px\r\nborder-radius: 11px;\r\nborder: 1px solid lightgrey;\r\ncursor: pointer;\r\nborder`;\r\n\r\nexport const BtnOrderColumns = styled.div<{ disabled?: boolean }>(\r\n ({ disabled }) => `\r\n cursor: pointer;\r\n padding: 0 10px;\r\n border: 1px solid lightgrey;\r\n font-weight: 500;\r\n border-radius: 10px;\r\n box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.1);\r\n transition: color 0.3s ease;\r\n display: flex;\r\n align-items: center;\r\n height: 40px;\r\n gap: 10px;\r\n\r\n &:hover {\r\n color: ${colors.BlueSecondary};\r\n }\r\n\r\n ${disabled && `\r\n opacity: 0.5;\r\n cursor: not-allowed;\r\n `}\r\n`,\r\n);\r\n\r\nexport const NoDataComponent = styled.div<{minHeight?: string}>(\r\n ({ minHeight }) => `\r\n background-color: #F9F9F9;\r\n color: #7D7D7D;\r\n text-align: center;\r\n border-radius: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n align-items: center;\r\n min-height: ${minHeight || '200px'};\r\n border: 1px solid #E8E8E8;\r\n margin: 0 10px 20px 10px;\r\n`,\r\n);\r\n","type FilterColumnProps = {\r\n style?: React.CSSProperties;\r\n}\r\nexport const FilterColumnsIcon = ({ style }: FilterColumnProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const OrderColumnModal = styled.div`\r\n list-style-type: none;\r\n padding: 7px;\r\n border: 1px solid lightgrey;\r\n font-weight: bold;\r\n font-size: 12px;\r\n border-radius: 10px;\r\n height: 36px;\r\n width: 100%;\r\n min-width: 250px;\r\n\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n\r\n cursor: grab;\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n\r\n height: 22px;\r\n width: 22px;\r\n`;\r\n\r\nexport const ModalCancel = styled.p`\r\n font-size: 13px;\r\n color: ${colors.Blue300};\r\n text-decoration: underline;\r\n text-align: initial;\r\n margin-top: 8px;\r\n &:hover {\r\n color: ${colors.Blue400};\r\n }\r\n`;\r\n\r\nexport const ModalTitle = styled.span`\r\n text-align: right;\r\n font-size: 13px;\r\n font-weight: 700;\r\n`;\r\n\r\nexport const ModalSubTitle = styled.p`\r\n font-size: 11px;\r\n font-weight: 400;\r\n`;\r\n\r\nexport const HorizontalLine = styled.div`\r\n width: 100%;\r\n height: 2px;\r\n background: ${colors.Grey100};\r\n margin: 10px 0;\r\n`;\r\n","type eyesOpen = {\r\n color?: string\r\n style?: React.CSSProperties;\r\n}\r\n\r\nfunction OlhoAberto({ color, style }: eyesOpen) {\r\n let ColorChose = '#363BC4';\r\n if (color) {\r\n ColorChose = color;\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default OlhoAberto;\r\n","function OlhoFechado({ ...props }) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default OlhoFechado;\r\n","type ThreeDotsVerticalIconProps = {\r\n color?: string;\r\n}\r\n\r\nexport const ThreeDotsVerticalIcon = ({ color = '#C2C2C2', ...props }: ThreeDotsVerticalIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { useRef } from 'react';\r\nimport { IconWrapper, OrderColumnModal } from './styles';\r\nimport { useDrag, useDrop } from 'react-dnd';\r\nimport type { Identifier, XYCoord } from 'dnd-core';\r\nimport OlhoAberto from '~/icons/OlhoAberto';\r\nimport OlhoFechado from '~/icons/OlhoFechado';\r\nimport { ThreeDotsVerticalIcon } from '~/icons/ThreeDotsVerticalIcon';\r\n\r\ntype ColumnType = {\r\n id: string | number;\r\n visible: boolean;\r\n label: string;\r\n}\r\n\r\ninterface RowProps {\r\n index: string | number;\r\n column: ColumnType;\r\n handleChangeVisibility: (columnId) => void;\r\n handleMoveItem: (dragIndex: number | string, hoverIndex: number | string) => void\r\n}\r\n\r\nexport const Row: React.FC = ({\r\n column, handleChangeVisibility, handleMoveItem, index,\r\n}) => {\r\n const ref = useRef(null);\r\n const [, drop] = useDrop<\r\n ColumnType,\r\n void,\r\n { handlerId: Identifier | null }\r\n >({\r\n accept: 'card',\r\n collect(monitor) {\r\n return {\r\n handlerId: monitor.getHandlerId(),\r\n };\r\n },\r\n hover(item: any, monitor) {\r\n if (!ref.current) {\r\n return;\r\n }\r\n const dragIndex = item.index;\r\n const hoverIndex = index;\r\n\r\n if (dragIndex === hoverIndex) {\r\n return;\r\n }\r\n\r\n const hoverBoundingRect = ref.current?.getBoundingClientRect();\r\n\r\n const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;\r\n\r\n const clientOffset = monitor.getClientOffset();\r\n\r\n const hoverClientY = (clientOffset as XYCoord).y - hoverBoundingRect.top;\r\n\r\n if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {\r\n return;\r\n }\r\n\r\n if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {\r\n return;\r\n }\r\n\r\n handleMoveItem(dragIndex, hoverIndex);\r\n\r\n item.index = hoverIndex;\r\n },\r\n });\r\n\r\n const [{ isDragging }, drag] = useDrag({\r\n type: 'card',\r\n item: () => ({ id: column.id, index }),\r\n collect: (monitor) => ({\r\n isDragging: monitor.isDragging(),\r\n }),\r\n });\r\n\r\n drag(drop(ref));\r\n\r\n return (\r\n handleChangeVisibility(column.id)}>\r\n \r\n \r\n \r\n {column.label}\r\n \r\n {column.visible ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default Row;\r\n","import { Flex } from 'reflexbox';\r\nimport { Button, ModalWindow } from '~/components';\r\nimport {\r\n ModalCancel,\r\n ModalSubTitle,\r\n ModalTitle,\r\n HorizontalLine,\r\n} from './styles';\r\nimport { t } from 'i18next';\r\nimport { useEffect, useState } from 'react';\r\nimport { DndProvider } from 'react-dnd';\r\nimport { Row } from './Row';\r\nimport { HTML5Backend } from 'react-dnd-html5-backend';\r\n\r\nexport default function ModalOrderColumns(props: {\r\n handleSubmitModal;\r\n handleCancelModal;\r\n handleChangeColumns;\r\n columns;\r\n isDesktop;\r\n handleDragColumn;\r\n handleResetColumns;\r\n}): JSX.Element {\r\n const {\r\n handleSubmitModal,\r\n handleCancelModal,\r\n columns,\r\n handleChangeColumns,\r\n isDesktop,\r\n handleDragColumn,\r\n handleResetColumns,\r\n } = props;\r\n\r\n const [originalColumns, setOriginalColumns] = useState(columns);\r\n const [hasColumnVisible, setHasColumnVisible] = useState(\r\n columns.some((column) => column.visible === true),\r\n );\r\n const [hasError, setHasError] = useState(false);\r\n\r\n useEffect(() => {\r\n setOriginalColumns(columns);\r\n }, []);\r\n\r\n function handleSave() {\r\n if (!hasColumnVisible) {\r\n setHasError(true);\r\n return;\r\n }\r\n handleSubmitModal();\r\n }\r\n\r\n function handleVisibility(column) {\r\n const hasColumnVisibleAux = handleChangeColumns(column);\r\n setHasColumnVisible(hasColumnVisibleAux);\r\n\r\n if (hasError) {\r\n setHasError(false);\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {\r\n handleResetColumns(originalColumns);\r\n handleCancelModal();\r\n }}\r\n >\r\n \r\n {t('ordenarColunas')}\r\n \r\n {t('organizarOrdemColunasSelecioneQualVisualizar')}\r\n \r\n \r\n \r\n \r\n \r\n {columns.map((column, index) => (\r\n \r\n ))}\r\n \r\n \r\n {!hasColumnVisible && (\r\n
\r\n \r\n {t('paraSalvarNecessarioUmaColunaVisivel')}\r\n \r\n
\r\n )}\r\n \r\n \r\n {\r\n handleResetColumns(originalColumns);\r\n handleCancelModal();\r\n }}\r\n >\r\n {t('botaoCancelar')}\r\n \r\n \r\n {t('botaoSalvar')}\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","type AlarmIconProps = {\r\n style?: React.CSSProperties;\r\n}\r\nexport const AlarmIcon = ({ style }: AlarmIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n);\r\n","import { t } from 'i18next';\r\n\r\nexport const controlColumnsConfig = [\r\n { id: 'ALARM_CODE', visible: true, label: t('codigo') },\r\n { id: 'START_DATE', visible: true, label: t('dataInicio') },\r\n { id: 'END_DATE', visible: true, label: t('dataFinal') },\r\n { id: 'DESCRIPTION', visible: true, label: t('descricao') },\r\n { id: 'REASON_ALARM', visible: false, label: t('porqueAlarmeGerado') },\r\n { id: 'ACTION_TAKEN', visible: false, label: t('acaoRealizada') },\r\n { id: 'RESET_TYPE', visible: false, label: t('tipoReset') },\r\n { id: 'CAUSE', visible: false, label: t('causa') },\r\n];\r\n","export const reorderList = (list: T[], from: number, to: number): T[] => {\r\n const itemsList = [...list];\r\n const item = list[from];\r\n\r\n itemsList.splice(from, 1);\r\n\r\n itemsList.splice(to, 0, item);\r\n\r\n return itemsList;\r\n};\r\n","import i18next, { t } from 'i18next';\r\nimport { Flex } from 'reflexbox';\r\nimport {\r\n Card, Loader, ModalLoading, Table,\r\n} from '~/components';\r\nimport { BtnOrderColumns, NoDataComponent, TopTitle } from '../../../IntegrRealTime/DriChillerCarrierRealTime/components/styles';\r\nimport { HorizontalLine } from '~/components/Menu/styles';\r\nimport { useEffect, useState } from 'react';\r\nimport { FilterColumnsIcon } from '~/icons/FilterColumnsIcon';\r\nimport ModalOrderColumns from '~/components/ModalOrderColumns';\r\nimport { AlarmIcon } from '~/icons/AlarmIcon';\r\nimport { toast } from 'react-toastify';\r\nimport { apiCall } from '~/providers';\r\nimport moment, { Moment } from 'moment';\r\nimport {\r\n GenerateItemColumn,\r\n NoColumnsSelected,\r\n ReturnLabelContent,\r\n VerifyColumns,\r\n} from '~/components/Table';\r\nimport Pagination from 'rc-pagination';\r\nimport { controlColumnsConfig } from './TableConfigs';\r\nimport { reorderList } from '~/helpers/reorderList';\r\nimport { ColumnTable } from '~/metadata/ColumnTable.model';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { Trans } from 'react-i18next';\r\n\r\ntype HistAlarms = {\r\n ID: number;\r\n ALARM_CODE: string;\r\n START_DATE: string;\r\n END_DATE: string;\r\n DESCRIPTION: string;\r\n REASON_ALARM: string;\r\n ACTION_TAKEN: string;\r\n RESET_TYPE: string;\r\n CAUSE: string;\r\n}[];\r\n\r\ntype FilterColumns = {\r\n ALARM_CODE: { list: { name: string, value: string }[] },\r\n DESCRIPTION: { list: { name: string, value: string }[] },\r\n REASON_ALARM: { list: { name: string, value: string }[] },\r\n ACTION_TAKEN: { list: { name: string, value: string }[] },\r\n RESET_TYPE: { list: { name: string, value: string }[] },\r\n CAUSE: { list: { name: string, value: string }[] },\r\n}\r\n\r\ntype FilterColumnsSelected = {\r\n [key: string]: {\r\n label: string;\r\n values: {\r\n value: string;\r\n name: string\r\n }[]\r\n };\r\n}\r\n\r\nexport function AlarmsHistory(props: Readonly<{\r\n driId: string,\r\n startDate?: Moment | null,\r\n endDate?: Moment | null,\r\n setIsLoading: (loading: boolean) => void,\r\n isLoading: boolean,\r\n sortBy: { column: string; desc: boolean; },\r\n renderState: () => void,\r\n setSortBy: (value: { column: string, desc: boolean }) => void,\r\n setSelectedFilters: (value: { selectedFilterAlarms: { column: string, values: string[] }[] }) => void,\r\n selectedFilters: { column: string, values: string[] }[]\r\n setAlarmHistoryColumns: (value: { exportAlarmHistoryColumns: string[] }) => void,\r\n}>): JSX.Element {\r\n const {\r\n driId,\r\n startDate,\r\n endDate,\r\n sortBy,\r\n isLoading,\r\n setIsLoading,\r\n renderState,\r\n setSelectedFilters,\r\n setSortBy,\r\n selectedFilters,\r\n setAlarmHistoryColumns,\r\n } = props;\r\n const isDesktop = window.matchMedia('(min-width: 768px)');\r\n const [state, render, setState] = useStateVar({\r\n showModalOrderColumns: false,\r\n tablePagination: { tablePage: 1, tablePageSize: 10, totalItems: 0 },\r\n orderedHistAlarms: [] as HistAlarms,\r\n filterColumns: {\r\n ALARM_CODE: { list: [] },\r\n DESCRIPTION: { list: [] },\r\n REASON_ALARM: { list: [] },\r\n ACTION_TAKEN: { list: [] },\r\n RESET_TYPE: { list: [] },\r\n CAUSE: { list: [] },\r\n } as FilterColumns,\r\n selectedFiltersColumns: {\r\n ALARM_CODE: {\r\n label: t('codigo'),\r\n values: [],\r\n },\r\n DESCRIPTION: {\r\n label: t('descricao'),\r\n values: [],\r\n },\r\n REASON_ALARM: {\r\n label: t('porqueAlarmeGerado'),\r\n values: [],\r\n },\r\n ACTION_TAKEN: {\r\n label: t('acaoRealizada'),\r\n values: [],\r\n },\r\n RESET_TYPE: {\r\n label: t('tipoReset'),\r\n values: [],\r\n },\r\n CAUSE: {\r\n label: t('causa'),\r\n values: [],\r\n },\r\n } as FilterColumnsSelected,\r\n controlColumns: controlColumnsConfig,\r\n filterChanged: false,\r\n });\r\n\r\n const columns = [\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('codigo'), 'ALARM_CODE', handleSort, sortBy, {\r\n hasFilter: true,\r\n options: state.filterColumns.ALARM_CODE.list,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectAllFilters,\r\n filterAll: state.filterColumns.ALARM_CODE.list.length === state.selectedFiltersColumns.ALARM_CODE.values.length,\r\n value: state.selectedFiltersColumns.ALARM_CODE.values.map((alarm) => alarm.value),\r\n })\r\n ),\r\n Cell: (props) => (\r\n ReturnLabelContent(props.row.original.ALARM_CODE, { padding: true, marginBottom: true })\r\n ),\r\n accessor: 'ALARM_CODE',\r\n disableSortBy: true,\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('dataInicio'), 'START_DATE', handleSort, sortBy)\r\n ),\r\n Cell: (props) => (\r\n FormatDateColumn(props.row.original.START_DATE)\r\n ),\r\n accessor: 'START_DATE',\r\n disableSortBy: true,\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('dataFinal'), 'END_DATE', handleSort, sortBy)\r\n ),\r\n Cell: (props) => (\r\n FormatDateColumn(props.row.original.END_DATE)\r\n ),\r\n accessor: 'END_DATE',\r\n disableSortBy: true,\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('descricao'), 'DESCRIPTION', handleSort, sortBy, {\r\n hasFilter: true,\r\n options: state.filterColumns.DESCRIPTION.list,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectAllFilters,\r\n filterAll: state.filterColumns.DESCRIPTION.list.length === state.selectedFiltersColumns.DESCRIPTION.values.length,\r\n value: state.selectedFiltersColumns.DESCRIPTION.values.map((description) => description.value),\r\n })\r\n ),\r\n Cell: (props) => (\r\n VerifyColumns(controlColumns, props.row.original.DESCRIPTION, true)\r\n ),\r\n accessor: 'DESCRIPTION',\r\n disableSortBy: true,\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('porqueAlarmeGerado'), 'REASON_ALARM', handleSort, sortBy, {\r\n hasFilter: true,\r\n options: state.filterColumns.REASON_ALARM.list,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectAllFilters,\r\n filterAll: state.filterColumns.REASON_ALARM.list.length === state.selectedFiltersColumns.REASON_ALARM.values.length,\r\n value: state.selectedFiltersColumns.REASON_ALARM.values.map((reason_alarm) => reason_alarm.value),\r\n })\r\n ),\r\n Cell: (props) => (\r\n VerifyColumns(controlColumns, props.row.original.REASON_ALARM, true)\r\n ),\r\n accessor: 'REASON_ALARM',\r\n disableSortBy: true,\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('acaoRealizada'), 'ACTION_TAKEN', handleSort, sortBy, {\r\n hasFilter: true,\r\n options: state.filterColumns.ACTION_TAKEN.list,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectAllFilters,\r\n filterAll: state.filterColumns.ACTION_TAKEN.list.length === state.selectedFiltersColumns.ACTION_TAKEN.values.length,\r\n value: state.selectedFiltersColumns.ACTION_TAKEN.values.map((action_taken) => action_taken.value),\r\n })\r\n ),\r\n Cell: (props) => (\r\n VerifyColumns(controlColumns, props.row.original.ACTION_TAKEN, true)\r\n ),\r\n accessor: 'ACTION_TAKEN',\r\n disableSortBy: true,\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('tipoReset'), 'RESET_TYPE', handleSort, sortBy, {\r\n hasFilter: true,\r\n options: state.filterColumns.RESET_TYPE.list,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectAllFilters,\r\n filterAll: state.filterColumns.RESET_TYPE.list.length === state.selectedFiltersColumns.RESET_TYPE.values.length,\r\n value: state.selectedFiltersColumns.RESET_TYPE.values.map((reset_type) => reset_type.value),\r\n })\r\n ),\r\n Cell: (props) => (\r\n VerifyColumns(controlColumns, props.row.original.RESET_TYPE, true)\r\n ),\r\n accessor: 'RESET_TYPE',\r\n disableSortBy: true,\r\n },\r\n {\r\n Header: () => (\r\n GenerateItemColumn(t('causa'), 'CAUSE', handleSort, sortBy, {\r\n hasFilter: true,\r\n options: state.filterColumns.CAUSE.list,\r\n onChangeFilter: handleChangeFilters,\r\n onSelectAllOptions: handleSelectAllFilters,\r\n filterAll: state.filterColumns.CAUSE.list.length === state.selectedFiltersColumns.CAUSE.values.length,\r\n value: state.selectedFiltersColumns.CAUSE.values.map((cause) => cause.value),\r\n })\r\n ),\r\n Cell: (props) => (\r\n VerifyColumns(controlColumns, props.row.original.CAUSE, true)\r\n ),\r\n accessor: 'CAUSE',\r\n disableSortBy: true,\r\n },\r\n ];\r\n\r\n const [columnsData, setColumnsData] = useState<(boolean | ColumnTable)[]>(columns);\r\n const [controlColumns, setControlColumns] = useState(controlColumnsConfig);\r\n\r\n useEffect(() => {\r\n if ([startDate, endDate].every((x) => x != null)) {\r\n Promise.resolve().then(async () => {\r\n try {\r\n setIsLoading(true);\r\n handleChangeDate();\r\n await handleGetAllFilters(startDate, endDate, driId);\r\n await handleGetAlarmsHist();\r\n } catch (err) {\r\n toast.error(t('erro')); console.error(err);\r\n }\r\n setIsLoading(false);\r\n });\r\n }\r\n }, [startDate, endDate]);\r\n\r\n useEffect(() => {\r\n const newColumnsData = controlColumns.map((column) => {\r\n if (column.visible === true) {\r\n return columns.find((columnTable) => columnTable.accessor === column.id) ?? false;\r\n }\r\n return false;\r\n });\r\n\r\n setColumnsData(newColumnsData);\r\n }, [state.orderedHistAlarms]);\r\n\r\n useEffect(() => {\r\n handleSetColumnsData(controlColumnsConfig);\r\n setSortBy({ column: 'START_DATE', desc: true });\r\n }, []);\r\n\r\n function verifyAlarmRegistered(alarmKey) {\r\n return i18next.exists(alarmKey) ? t(alarmKey) : '-';\r\n }\r\n\r\n function handleGetExtraInfoALarm(alarms) {\r\n const alarmsWithExtraInfo = alarms.map((alarm) => ({\r\n ALARM_CODE: alarm.ALARM_CODE,\r\n START_DATE: alarm.START_DATE,\r\n END_DATE: alarm.END_DATE,\r\n DESCRIPTION: verifyAlarmRegistered(`alarm_${alarm.ALARM_CODE}_description`),\r\n REASON_ALARM: verifyAlarmRegistered(`alarm_${alarm.ALARM_CODE}_reason_alarm`),\r\n ACTION_TAKEN: verifyAlarmRegistered(`alarm_${alarm.ALARM_CODE}_action_taken`),\r\n RESET_TYPE: verifyAlarmRegistered(`alarm_${alarm.ALARM_CODE}_reset_type`),\r\n CAUSE: verifyAlarmRegistered(`alarm_${alarm.ALARM_CODE}_cause`),\r\n }));\r\n\r\n setState({ orderedHistAlarms: alarmsWithExtraInfo });\r\n render();\r\n }\r\n\r\n async function handleGetAllFilters(startDate, endDate, driId) {\r\n const allAlarmsCodes = await apiCall('/dri/get-all-chiller-alarms-codes', {\r\n DEVICE_CODE: driId,\r\n START_DATE: startDate.format('YYYY-MM-DD'),\r\n END_DATE: endDate.format('YYYY-MM-DD'),\r\n });\r\n\r\n const filterColumnsAux: FilterColumns = {\r\n ALARM_CODE: { list: [] },\r\n DESCRIPTION: { list: [] },\r\n REASON_ALARM: { list: [] },\r\n RESET_TYPE: { list: [] },\r\n ACTION_TAKEN: { list: [] },\r\n CAUSE: { list: [] },\r\n };\r\n\r\n allAlarmsCodes.list.forEach((alarms) => {\r\n filterColumnsAux.ALARM_CODE.list.push({\r\n name: alarms.ALARM_CODE,\r\n value: alarms.ALARM_CODE,\r\n });\r\n\r\n i18next.exists(`alarm_${alarms.ALARM_CODE}_description`) && filterColumnsAux.DESCRIPTION.list.push({\r\n name: t(`alarm_${alarms.ALARM_CODE}_description`),\r\n value: alarms.ALARM_CODE,\r\n });\r\n i18next.exists(`alarm_${alarms.ALARM_CODE}_reason_alarm`) && filterColumnsAux.REASON_ALARM.list.push({\r\n name: t(`alarm_${alarms.ALARM_CODE}_reason_alarm`),\r\n value: alarms.ALARM_CODE,\r\n });\r\n i18next.exists(`alarm_${alarms.ALARM_CODE}_action_taken`) && filterColumnsAux.ACTION_TAKEN.list.push({\r\n name: t(`alarm_${alarms.ALARM_CODE}_action_taken`),\r\n value: alarms.ALARM_CODE,\r\n });\r\n i18next.exists(`alarm_${alarms.ALARM_CODE}_reset_type`) && filterColumnsAux.RESET_TYPE.list.push({\r\n name: t(`alarm_${alarms.ALARM_CODE}_reset_type`),\r\n value: alarms.ALARM_CODE,\r\n });\r\n i18next.exists(`alarm_${alarms.ALARM_CODE}_cause`) && filterColumnsAux.CAUSE.list.push({\r\n name: t(`alarm_${alarms.ALARM_CODE}_cause`),\r\n value: alarms.ALARM_CODE,\r\n });\r\n });\r\n\r\n setState({ filterColumns: filterColumnsAux });\r\n render();\r\n }\r\n\r\n function handleCloseModal() {\r\n setState({ showModalOrderColumns: !state.showModalOrderColumns });\r\n render();\r\n }\r\n\r\n function handleChangeColumns(columnId) {\r\n const toggleVisibility = (column) => ({\r\n ...column,\r\n visible: column.id === columnId ? !column.visible : column.visible,\r\n });\r\n\r\n const updatedColumns = controlColumns.map(toggleVisibility);\r\n setControlColumns(updatedColumns);\r\n handleSetExportColumns(updatedColumns);\r\n\r\n const newColumnsData = updatedColumns.map((column) => {\r\n if (column.visible === true) {\r\n return columns.find((columnTable) => columnTable.accessor === column.id) ?? false;\r\n }\r\n return false;\r\n });\r\n\r\n setColumnsData(newColumnsData);\r\n\r\n return updatedColumns.some((column) => column.visible);\r\n }\r\n\r\n async function handleSort(column: string) {\r\n let sortByAux: { column: string; desc: boolean; };\r\n\r\n if (sortBy.column === column) {\r\n sortByAux = { ...sortBy, desc: !sortBy.desc };\r\n } else {\r\n sortByAux = { column, desc: true };\r\n }\r\n\r\n setSortBy(sortByAux);\r\n if ([startDate, endDate].every((x) => x != null)) {\r\n await handleGetAlarmsHist({\r\n sortByColumn: sortByAux.column, sortByDesc: sortByAux.desc, page: 1,\r\n });\r\n }\r\n }\r\n\r\n async function handleGetAlarmsHist(params?: { page?: number, sortByColumn?: string, sortByDesc?: boolean, filterParams?: { column: string, values: string[] }[] }) {\r\n const pageAux = params?.page || state.tablePagination.tablePage;\r\n const sortByAux = params?.sortByColumn ? { column: params.sortByColumn, desc: !!params.sortByDesc } : sortBy;\r\n const filters = params?.filterParams ?? selectedFilters;\r\n\r\n const alarmsHist = await apiCall('/dri/get-chiller-alarms-list-hist', {\r\n DEVICE_CODE: driId,\r\n START_DATE: startDate?.format('YYYY-MM-DD'),\r\n END_DATE: endDate?.format('YYYY-MM-DD'),\r\n LIMIT: state.tablePagination.tablePageSize,\r\n SKIP: state.filterChanged ? 0 : (pageAux - 1) * state.tablePagination.tablePageSize,\r\n ORDER_BY: {\r\n column: sortByAux.column,\r\n desc: sortByAux.desc,\r\n },\r\n filterBy: filters,\r\n });\r\n\r\n handleGetExtraInfoALarm(alarmsHist.list);\r\n setState({ tablePagination: { ...state.tablePagination, tablePage: pageAux, totalItems: alarmsHist.totalItems }, filterChanged: false });\r\n render();\r\n }\r\n\r\n async function handleChangePage(page: number) {\r\n setState({ tablePagination: { ...state.tablePagination, tablePage: page } });\r\n render();\r\n await handleGetAlarmsHist({ page });\r\n }\r\n\r\n function handleSetColumnsData(newColumns) {\r\n setControlColumns(newColumns);\r\n handleSetExportColumns(newColumns);\r\n\r\n const newColumnsData = newColumns.map((column) => {\r\n if (column.visible === true) {\r\n return columns.find((columnTable) => {\r\n if (typeof columnTable !== 'boolean') {\r\n return columnTable.accessor === column.id;\r\n }\r\n\r\n return false;\r\n }) ?? false;\r\n }\r\n return false;\r\n });\r\n\r\n setColumnsData(newColumnsData);\r\n }\r\n\r\n function handleSetExportColumns(columns) {\r\n const columnsToExport: string[] = [];\r\n for (const col of columns) {\r\n if (col?.visible) {\r\n columnsToExport.push(col.id);\r\n }\r\n }\r\n setAlarmHistoryColumns({ exportAlarmHistoryColumns: columnsToExport });\r\n }\r\n\r\n async function handleChangeFilters(name, filters) {\r\n switch (name) {\r\n case t('codigo'):\r\n state.selectedFiltersColumns.ALARM_CODE.values = filters.map((alarm) => ({ name: alarm, value: alarm }));\r\n break;\r\n case t('descricao'):\r\n state.selectedFiltersColumns.DESCRIPTION.values = filters.map((alarm) => ({ name: t(`alarm_${alarm}_description`), value: alarm }));\r\n break;\r\n case t('porqueAlarmeGerado'):\r\n state.selectedFiltersColumns.REASON_ALARM.values = filters.map((alarm) => ({ name: t(`alarm_${alarm}_reason_alarm`), value: alarm }));\r\n break;\r\n case t('acaoRealizada'):\r\n state.selectedFiltersColumns.ACTION_TAKEN.values = filters.map((alarm) => ({ name: t(`alarm_${alarm}_action_taken`), value: alarm }));\r\n break;\r\n case t('tipoReset'):\r\n state.selectedFiltersColumns.RESET_TYPE.values = filters.map((alarm) => ({ name: t(`alarm_${alarm}_reset_type`), value: alarm }));\r\n break;\r\n case t('causa'):\r\n state.selectedFiltersColumns.CAUSE.values = filters.map((alarm) => ({ name: t(`alarm_${alarm}_cause`), value: alarm }));\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n state.filterChanged = true;\r\n render();\r\n\r\n await handleUpdateFiltersAux();\r\n }\r\n\r\n function handleChangeDate() {\r\n setState({\r\n selectedFilterColumns: {\r\n ALARM_CODE: [],\r\n DESCRIPTION: [],\r\n REASON_ALARM: [],\r\n RESET_TYPE: [],\r\n ACTION_TAKEN: [],\r\n CAUSE: [],\r\n },\r\n orderedHistAlarms: [],\r\n });\r\n\r\n setSortBy({ column: 'START_DATE', desc: true });\r\n setState({ tablePagination: { ...state.tablePagination, tablePage: 1 } });\r\n render();\r\n }\r\n\r\n async function handleRemoveAllFilters() {\r\n state.selectedFiltersColumns.ALARM_CODE.values = [];\r\n state.selectedFiltersColumns.DESCRIPTION.values = [];\r\n state.selectedFiltersColumns.REASON_ALARM.values = [];\r\n state.selectedFiltersColumns.RESET_TYPE.values = [];\r\n state.selectedFiltersColumns.ACTION_TAKEN.values = [];\r\n state.selectedFiltersColumns.CAUSE.values = [];\r\n state.filterChanged = false;\r\n setSelectedFilters({ selectedFilterAlarms: [] });\r\n renderState();\r\n render();\r\n await handleGetAlarmsHist({ filterParams: [] });\r\n }\r\n\r\n const handleRemoveCategoryFilter = async (columnKey: string) => {\r\n state.selectedFiltersColumns[columnKey].values = [];\r\n state.filterChanged = true;\r\n await handleUpdateFiltersAux();\r\n render();\r\n };\r\n\r\n async function handleSelectAllFilters(name, filterAll) {\r\n const filterColumnsAux = JSON.parse(JSON.stringify(state.filterColumns));\r\n switch (name) {\r\n case t('codigo'):\r\n state.selectedFiltersColumns.ALARM_CODE.values = filterAll ? filterColumnsAux.ALARM_CODE.list : [];\r\n break;\r\n case t('descricao'):\r\n state.selectedFiltersColumns.DESCRIPTION.values = filterAll ? filterColumnsAux.DESCRIPTION.list : [];\r\n break;\r\n case t('porqueAlarmeGerado'):\r\n state.selectedFiltersColumns.REASON_ALARM.values = filterAll ? filterColumnsAux.REASON_ALARM.list : [];\r\n break;\r\n case t('acaoRealizada'):\r\n state.selectedFiltersColumns.ACTION_TAKEN.values = filterAll ? filterColumnsAux.ACTION_TAKEN.list : [];\r\n break;\r\n case t('tipoReset'):\r\n state.selectedFiltersColumns.RESET_TYPE.values = filterAll ? filterColumnsAux.RESET_TYPE.list : [];\r\n break;\r\n case t('causa'):\r\n state.selectedFiltersColumns.CAUSE.values = filterAll ? filterColumnsAux.CAUSE.list : [];\r\n break;\r\n default:\r\n break;\r\n }\r\n state.filterChanged = true;\r\n render();\r\n\r\n await handleUpdateFiltersAux();\r\n }\r\n\r\n async function handleRemoveFilter(columnKey: string, filterIndex: number) {\r\n state.selectedFiltersColumns[columnKey].values.splice(filterIndex, 1);\r\n state.filterChanged = true;\r\n await handleUpdateFiltersAux();\r\n\r\n render();\r\n }\r\n\r\n async function handleUpdateFiltersAux() {\r\n const selectedFilterAlarms = Object.entries(state.selectedFiltersColumns)\r\n .filter(([_, columnObj]) => columnObj.values.length > 0)\r\n .map(([columnName, columnObj]) => ({\r\n column: columnName,\r\n values: columnObj.values.map((valueObj) => valueObj.value),\r\n }));\r\n\r\n setSelectedFilters({ selectedFilterAlarms });\r\n\r\n if (!selectedFilterAlarms.length) {\r\n await handleGetAlarmsHist({ filterParams: selectedFilterAlarms, page: 1 });\r\n }\r\n\r\n renderState();\r\n }\r\n\r\n return (\r\n
\r\n \r\n \r\n
\r\n \r\n

Aguarde, os dados estão

\r\n

sendo carregados.

\r\n \r\n
\r\n
\r\n
\r\n \r\n <>\r\n \r\n \r\n {t('alarmes')}\r\n \r\n \r\n { setState({ showModalOrderColumns: !state.showModalOrderColumns }); render(); }}>\r\n \r\n {t('colunas')}\r\n \r\n \r\n \r\n \r\n {controlColumns.some(\r\n (column) => column.visible === true,\r\n ) ? (\r\n date == null) ? NoPeriodSelected : NoDataInTable}\r\n noBorderBottom\r\n handleRemoveAllFilters={handleRemoveAllFilters}\r\n handleRemoveFilter={handleRemoveFilter}\r\n filtersSelected={state.selectedFiltersColumns}\r\n handleSearchWithFilters={handleGetAlarmsHist}\r\n handleRemoveCategoryFilter={handleRemoveCategoryFilter}\r\n style={{\r\n padding: '0 10px',\r\n minHeight: state.orderedHistAlarms.length ? '200px' : '0px',\r\n boxShadow: 'none',\r\n overflowX: state.orderedHistAlarms.length ? 'auto' : 'hidden',\r\n overflowY: state.orderedHistAlarms.length > 7 ? 'auto' : 'hidden',\r\n }}\r\n />\r\n ) : (\r\n \r\n )}\r\n \r\n \r\n {state.tablePagination.totalItems > 0 && (\r\n \r\n handleChangePage(current)}\r\n disabled={isLoading}\r\n />\r\n \r\n )}\r\n
\r\n\r\n {state.showModalOrderColumns && (\r\n {\r\n setControlColumns((prevState) => {\r\n const dataAux = reorderList(prevState, dragIndex, hoverIndex);\r\n handleSetExportColumns(dataAux);\r\n return dataAux;\r\n });\r\n setColumnsData((prevState) => reorderList(prevState, dragIndex, hoverIndex));\r\n }}\r\n handleResetColumns={(originalColumns) => handleSetColumnsData(originalColumns)}\r\n />\r\n )}\r\n
\r\n );\r\n}\r\n\r\nfunction NoDataInTable() {\r\n return (\r\n
\r\n \r\n \r\n {t('historicoDeAlarmes')}\r\n {t('naoHouveramRegistrosAlarmesDiaSelecionado')}\r\n \r\n
\r\n\r\n );\r\n}\r\n\r\nfunction NoPeriodSelected() {\r\n return (\r\n
\r\n \r\n \r\n {t('historicoDeAlarmes')}\r\n {t('selecioneDataParaMostrarHistorico')}\r\n \r\n
\r\n );\r\n}\r\n\r\nfunction FormatDateColumn(date) {\r\n const dataMoment = moment(date);\r\n const dateFormated = dataMoment.format('DD/MM/YYYY');\r\n const hourFormated = `${dataMoment.format('HH:mm')}h`;\r\n return (\r\n
\r\n {date != null ? (\r\n <>\r\n
{dateFormated}
\r\n
{hourFormated}
\r\n \r\n ) : (\r\n
-
\r\n )}\r\n
\r\n );\r\n}\r\n","import { useEffect, useRef, useState } from 'react';\r\nimport {\r\n StyledItem,\r\n StyledList,\r\n Wrapper,\r\n Content,\r\n StyledLine,\r\n StyledLabel,\r\n MenuFixedContainer,\r\n} from './components/styles';\r\nimport { t } from 'i18next';\r\nimport { Select } from '~/components';\r\nimport { AlarmsHistory } from './components/AlarmsHistory';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport moment, { Moment } from 'moment';\r\nimport { ContentDate, Label, StyledCalendarIcon } from '../styles';\r\nimport { SingleDatePicker, DateRangePicker } from 'react-dates';\r\nimport DatePicker from 'react-datepicker';\r\nimport { BtnOrderColumns } from '../../IntegrRealTime/DriChillerCarrierRealTime/components/styles';\r\nimport { toast } from 'react-toastify';\r\nimport { apiCallDownload } from '~/providers';\r\nimport { ExportIcon } from '~/icons';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { QuickSelection } from '~/components/QuickSelection';\r\nimport { ChillerParameters } from './components/ChillerParameters';\r\n\r\nexport default function ChillerCarrierHistory(props: { driId: string, model: string, chillerModel?: string }): JSX.Element {\r\n const [focus, setFocus] = useState({\r\n focused: false,\r\n focusedInput: null,\r\n });\r\n const [sortBy, setSortBy] = useState({ column: '', desc: false });\r\n const [state, render, setState] = useStateVar({\r\n selectedFilterAlarms: [] as {column: string, values: string[]}[],\r\n startDate: null as Moment | null,\r\n endDate: null as Moment | null,\r\n selectedTimeRange: null as string|null,\r\n paramsHistorySelected: true,\r\n exportAlarmHistoryColumns: [] as string[],\r\n });\r\n const [isLoading, setIsLoading] = useState(false);\r\n const elementRef = useRef(null);\r\n\r\n function handleDateChange(date: moment.Moment, selectedTimeRangeAux?: string) {\r\n let startDate: null | string = null;\r\n let endDate: null | string = null;\r\n const timeRange = selectedTimeRangeAux || state.selectedTimeRange;\r\n switch (timeRange) {\r\n case t('dia'): {\r\n startDate = date.format('YYYY-MM-DD');\r\n endDate = date.format('YYYY-MM-DD');\r\n break;\r\n }\r\n case t('mes'): {\r\n startDate = date.startOf('month').format('YYYY-MM-DD');\r\n endDate = date.endOf('month').format('YYYY-MM-DD');\r\n break;\r\n }\r\n case t('ano'): {\r\n startDate = date.startOf('year').format('YYYY-MM-DD');\r\n endDate = date.endOf('year').format('YYYY-MM-DD');\r\n break;\r\n }\r\n default: {\r\n break;\r\n }\r\n }\r\n setState({ startDate: startDate ? moment(startDate) : null, endDate: endDate ? moment(endDate) : null });\r\n render();\r\n }\r\n\r\n async function handleExport() {\r\n if (!state.startDate || !state.endDate) {\r\n return toast.warn(t('selecioneAlgumPeriodoExportar'));\r\n }\r\n\r\n if (state.paramsHistorySelected) {\r\n toast.warn(t('erroNaoImplementado'));\r\n } else {\r\n await handleExportAlarms(state.startDate, state.endDate);\r\n }\r\n }\r\n\r\n async function handleExportAlarms(startDate: Moment, endDate: Moment) {\r\n try {\r\n setIsLoading(true);\r\n const exportResponse = await apiCallDownload('/dri/export-chiller-alarms-hist', {\r\n DEVICE_CODE: props.driId,\r\n START_DATE: startDate.format('YYYY-MM-DD'),\r\n END_DATE: endDate.format('YYYY-MM-DD'),\r\n ORDER_BY: {\r\n column: sortBy.column,\r\n desc: sortBy.desc,\r\n },\r\n filterBy: state.selectedFilterAlarms,\r\n columnsToExport: state.exportAlarmHistoryColumns,\r\n });\r\n\r\n const link: any = document.getElementById('downloadLink');\r\n if (link.href !== '#') window.URL.revokeObjectURL(link.href);\r\n link.href = window.URL.createObjectURL(exportResponse.data);\r\n link.download = exportResponse.headers.filename || `${t('nomeArquivoHistoricoAlarmesChiller')}.xlsx`;\r\n link.click();\r\n\r\n toast.success(t('sucessoExportacao'));\r\n } catch (error) {\r\n console.log(error);\r\n toast.error(t('naoFoiPossivelExportar'));\r\n } finally {\r\n setIsLoading(false);\r\n }\r\n }\r\n\r\n function handleChangeQuickDates(startDate: Moment, endDate: Moment) {\r\n if (startDate.format('YYYY-MM-DD') === endDate.format('YYYY-MM-DD')) {\r\n state.selectedTimeRange = t('dia');\r\n } else {\r\n state.selectedTimeRange = t('flexivel');\r\n }\r\n\r\n state.startDate = startDate;\r\n state.endDate = endDate;\r\n render();\r\n }\r\n\r\n function returnOptions() {\r\n if (state.paramsHistorySelected) {\r\n return [t('flexivel')];\r\n }\r\n return [t('dia'), t('mes'), t('flexivel'), t('ano')];\r\n }\r\n\r\n useEffect(() => {\r\n setState({ startDate: null, endDate: null, selectedTimeRange: null });\r\n }, [state.paramsHistorySelected]);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n { setState({ paramsHistorySelected: true }); render(); }}>{t('parametros')}\r\n \r\n \r\n {!props.model?.startsWith('chiller-carrier-30xa')\r\n && (\r\n \r\n { setState({ paramsHistorySelected: false }); render(); }}>{t('alarmes')}\r\n \r\n \r\n ) }\r\n \r\n \r\n \r\n \r\n \r\n {\r\n setState({ selectedTimeRange: period });\r\n render();\r\n handleDateChange(moment(), period);\r\n }}\r\n value={state.selectedTimeRange}\r\n placeholder={t('periodo')}\r\n hideSelected\r\n disabled={isLoading}\r\n />\r\n {!state.paramsHistorySelected && (\r\n \r\n )}\r\n \r\n \r\n {(state.selectedTimeRange === t('dia')) && (\r\n \r\n \r\n handleDateChange(moment(data))}\r\n focused={focus.focused}\r\n onFocusChange={({ focused }) => {\r\n setFocus({ ...focus, focused });\r\n }}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n isOutsideRange={(d) => !d.isBefore(moment())}\r\n />\r\n \r\n \r\n )}\r\n {state.selectedTimeRange === t('mes') && (\r\n \r\n \r\n handleDateChange(moment(d))}\r\n locale=\"pt-BR\"\r\n showMonthYearPicker\r\n dateFormat=\"P\"\r\n />\r\n \r\n \r\n )}\r\n {state.selectedTimeRange === t('flexivel') && (\r\n \r\n \r\n
\r\n {\r\n setState({\r\n startDate,\r\n endDate: startDate?.format('YYYY-MM-DD') !== state.startDate?.format('YYYY-MM-DD') ? null : endDate,\r\n });\r\n render();\r\n }}\r\n onFocusChange={(focused) => {\r\n setFocus({ ...focus, focusedInput: focused });\r\n }}\r\n focusedInput={focus.focusedInput}\r\n noBorder\r\n isOutsideRange={(d) => d.isAfter(moment(), 'day')}\r\n startDatePlaceholderText={t('dataInicial')}\r\n endDatePlaceholderText={t('dataFinal')}\r\n />\r\n \r\n
\r\n )}\r\n {state.selectedTimeRange === t('ano') && (\r\n \r\n \r\n { handleDateChange(moment(date)); }}\r\n locale=\"pt-BR\"\r\n showYearPicker\r\n dateFormat=\"yyyy\"\r\n />\r\n \r\n \r\n )}\r\n
\r\n {!state.paramsHistorySelected && (\r\n \r\n
\r\n handleExport()} disabled={isLoading}>\r\n \r\n {t('botaoExportar')}\r\n \r\n \r\n )}\r\n \r\n \r\n {state.paramsHistorySelected ? (\r\n \r\n ) : (\r\n setIsLoading(value)}\r\n isLoading={isLoading}\r\n sortBy={sortBy}\r\n setSortBy={setSortBy}\r\n renderState={render}\r\n setSelectedFilters={setState}\r\n selectedFilters={state.selectedFilterAlarms}\r\n setAlarmHistoryColumns={setState}\r\n />\r\n )}\r\n \r\n \r\n );\r\n}\r\n","type SetpointLimits = {\r\n min: number;\r\n max: number;\r\n}\r\n\r\nconst PADDING_TICKS = 4;\r\nconst TOTAL_TICKS = 26;\r\nconst LIMIT_TOTAL_TICKS = 35;\r\nexport const LIMITS_SETPOINT = [-25, 100];\r\n\r\nexport function roundedTicks(ticks: number[], { min, max }: SetpointLimits): number[] {\r\n const firstTick = ticks[0];\r\n const lastTick = ticks[ticks.length - 1];\r\n const stepperSize = ticks[1] - firstTick;\r\n\r\n const minDifference = Math.max(min - firstTick, 0);\r\n const maxDifference = Math.max(lastTick - max, 0);\r\n const totalDifference = minDifference + maxDifference;\r\n\r\n if (Math.floor(totalDifference / stepperSize) > 1\r\n && firstTick > LIMITS_SETPOINT[0]\r\n && lastTick < LIMITS_SETPOINT[1]\r\n ) {\r\n const divideDifference = Math.floor(totalDifference / 2);\r\n const remainingDifference = totalDifference % 2;\r\n\r\n const minArray = Array.from({ length: divideDifference }, (_, index) => min - (divideDifference - index * stepperSize));\r\n const maxArray = Array.from({ length: divideDifference + remainingDifference }, (_, index) => (max + ((index + 1) * stepperSize)));\r\n\r\n const minIndex = ticks.findIndex((value) => value === min);\r\n const maxIndex = ticks.findIndex((value) => value === max);\r\n\r\n if (minIndex === -1 || maxIndex === -1) {\r\n return ticks;\r\n }\r\n\r\n const newRoundedTicks = [...minArray, ...ticks.slice(minIndex, maxIndex + 1), ...maxArray];\r\n return newRoundedTicks;\r\n }\r\n\r\n return ticks;\r\n}\r\n\r\nfunction addTicks(ticks: number[], length: number): number[] {\r\n const lastTick = ticks[ticks.length - 1];\r\n const newTicks = Array.from({ length }, (_, index) => lastTick + 1 + index);\r\n return [...ticks, ...newTicks];\r\n}\r\n\r\nexport function generateTicks(min: number, stepper: number, totalTicks: number): number[] {\r\n const newTicks: number[] = [];\r\n\r\n for (let i = 0; i < totalTicks; i += 1) {\r\n newTicks.push(min + i * stepper);\r\n }\r\n\r\n return newTicks;\r\n}\r\n\r\nexport function generateTicksByStepper(\r\n { min, max } : SetpointLimits,\r\n stepper: number,\r\n totalTicks: number,\r\n): number[] {\r\n const auxMax = LIMITS_SETPOINT[1];\r\n let auxMin = LIMITS_SETPOINT[0];\r\n let ticks: number[] = [];\r\n const limitMinByStepper = auxMax - ((totalTicks - 1) * stepper);\r\n\r\n while (!(ticks.includes(min) && ticks.includes(max)) && auxMin <= limitMinByStepper) {\r\n ticks = generateTicks(auxMin, stepper, totalTicks);\r\n auxMin += stepper;\r\n }\r\n\r\n return ticks;\r\n}\r\n\r\nexport function generateTicksByRange({ min, max }: SetpointLimits): number[] {\r\n let stepper = 1;\r\n let totalTicks = TOTAL_TICKS;\r\n let ticks: number[] = [];\r\n while ((!ticks.includes(min) || !ticks.includes(max)) && stepper <= 5) {\r\n ticks = generateTicksByStepper({ min, max }, stepper, totalTicks);\r\n totalTicks++;\r\n\r\n if (totalTicks > LIMIT_TOTAL_TICKS) {\r\n totalTicks = TOTAL_TICKS;\r\n stepper = 5;\r\n }\r\n }\r\n\r\n if (ticks[0] === min || ticks[ticks.length - 1] === max) {\r\n ticks = addTicks(ticks, PADDING_TICKS);\r\n }\r\n\r\n return roundedTicks(ticks, { min, max });\r\n}\r\n","import React, {\r\n useEffect,\r\n useState,\r\n useCallback,\r\n useRef,\r\n useMemo,\r\n} from 'react';\r\n\r\nimport moment from 'moment';\r\nimport { SingleDatePicker, DateRangePicker } from 'react-dates';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport { CSVLink } from 'react-csv';\r\nimport i18n from '~/i18n';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, Label, LineChart, Tooltip, Line, ReferenceArea,\r\n} from 'recharts';\r\nimport {\r\n Loader,\r\n Card,\r\n Datepicker,\r\n Button,\r\n Overlay,\r\n Checkbox,\r\n} from 'components';\r\nimport { getEndTime } from 'helpers';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport 'react-datepicker/dist/react-datepicker.css';\r\nimport { CloseIcon } from '~/icons';\r\nimport {\r\n GraphWrapper,\r\n ModalMobile,\r\n ModalTitle,\r\n ModalTitleContainer,\r\n ModalSection,\r\n MobileWrapper,\r\n DesktopWrapper,\r\n Text,\r\n CheckboxLine,\r\n CustomLabel,\r\n ContentDate,\r\n DateLabel,\r\n StyledCalendarIcon,\r\n BtnExport,\r\n ExportWorksheet,\r\n ColoredLine,\r\n DashedColoredLine,\r\n StyledLink,\r\n InfoText,\r\n} from './styles';\r\nimport { colors } from '~/styles/colors';\r\nimport { t } from 'i18next';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\nimport { NoGraph } from '~/components/NoGraph';\r\nimport { ChangeColor } from '~/components/ChangeColor';\r\nimport ChillerCarrierHistory from './ChillerCarrierHistory/index';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { generateTicksByRange } from 'helpers/ticks';\r\nimport {\r\n CsvLabelFormatterData, renderQuarterTickHour, tickXLabelFormatterDay, tickXLabelFormatterHour,\r\n tooltipXLabelFormatter,\r\n} from 'helpers/historyGraph';\r\n\r\ntype ChartDataVar = {\r\n id: string;\r\n name: string;\r\n unit?: string;\r\n y: (null | number)[];\r\n strokeDasharray: string;\r\n type: string;\r\n color: string;\r\n axisId: string;\r\n maxY?: null | number;\r\n minY?: null | number;\r\n y_orig?: (null | number | string)[];\r\n steps?: {\r\n y_orig: (null | number | string);\r\n y_chart: (null | number);\r\n label: string;\r\n }[];\r\n checked?: boolean;\r\n};\r\n\r\ntype ChartDataDutDuo = ApiResps['/dut/get-day-charts-data-commonX'];\r\n\r\ntype ShowChartDataDutDuo = {\r\n Temperature: boolean;\r\n Temperature_1: boolean;\r\n};\r\n\r\ninterface DriHistoryState {\r\n groupGraph: boolean;\r\n associatedDacsId: {\r\n dacId: string;\r\n checked: boolean;\r\n temperatures: {\r\n TsucChecked: boolean;\r\n TliqChecked: boolean;\r\n TambChecked: boolean;\r\n };\r\n }[];\r\n selectedDacs: {\r\n dacId: string;\r\n chartData: {\r\n commonX: number[];\r\n vars: {\r\n Lcmp: any;\r\n Tsuc: any;\r\n Tliq: any;\r\n Tamb: any;\r\n };\r\n limts: {\r\n maxPval: number;\r\n maxTval: number;\r\n minPval: number;\r\n minTval: number;\r\n };\r\n faults: any;\r\n numDeparts: number[];\r\n };\r\n }[];\r\n associatedDacs: {\r\n dacId: string;\r\n chartData: {\r\n commonX: number[];\r\n vars: {\r\n Lcmp: any;\r\n Tsuc: any;\r\n Tliq: any;\r\n Tamb: any;\r\n };\r\n limts: {\r\n maxPval: number;\r\n maxTval: number;\r\n minPval: number;\r\n minTval: number;\r\n };\r\n faults: any;\r\n numDeparts: number[];\r\n };\r\n show: {\r\n Lcmp: boolean;\r\n Tsuc: boolean;\r\n Tliq: boolean;\r\n Tamb: boolean;\r\n };\r\n }[];\r\n loading: boolean;\r\n devInfo: ReturnType;\r\n driInfo: null | {\r\n varsCfg: { application: string };\r\n ecoCfg: { ECO_OFST_START: number; DUT_ID: string };\r\n };\r\n xDomain: null | [number, number];\r\n xTicks: number[];\r\n refAreaLeft: null | number;\r\n refAreaRight: null | number;\r\n multiDays: boolean;\r\n numDays: number;\r\n dateStart: null | moment.Moment;\r\n dateEnd: null | moment.Moment;\r\n tomorrow: moment.Moment;\r\n chartData: {\r\n x: number[];\r\n vars: ChartDataVar[] | null;\r\n };\r\n isModalOpen: boolean;\r\n focused: boolean;\r\n focusedInput: 'endDate' | 'startDate' | null;\r\n csvData: {}[];\r\n setpointLimits: number[];\r\n setpointTicks: number[];\r\n modeLimits: number[];\r\n modeTicks: number[];\r\n vavModeLimits: number[];\r\n vavModeTicks: number[];\r\n fancoilModeTicks: number[];\r\n fancoilModeLimits: number[];\r\n customPointLimit: number;\r\n valveOnChecked: boolean;\r\n thermOnChecked: boolean;\r\n fanStatusChecked: boolean;\r\n lockChecked: boolean;\r\n baseSetpointTicks: number[];\r\n yDomain: number[];\r\n associatedDutsDuoId: {\r\n dutDuoId: string;\r\n checked: boolean;\r\n temperatures: {\r\n Temperature: boolean;\r\n Temperature_1: boolean;\r\n };\r\n }[];\r\n associatedDutsDuo: {\r\n dutDuoId: string;\r\n chartData: ChartDataDutDuo;\r\n show: ShowChartDataDutDuo;\r\n }[];\r\n selectedDutsDuo: { dutDuoId: string; chartData: ChartDataDutDuo }[];\r\n}\r\n\r\nconst varsPropertiesFancoil = {\r\n Setpoint: {\r\n colorDefault: colors.Green,\r\n strokeDasharray: '5 5',\r\n type: 'monotone',\r\n },\r\n DutTemp: {\r\n colorDefault: colors.Orange,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n TUSEMAX: {\r\n colorDefault: colors.Green,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n TUSEMIN: {\r\n colorDefault: colors.Green,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n EcoSetpoint: {\r\n colorDefault: colors.Green,\r\n strokeDasharray: '5 5',\r\n type: 'monotone',\r\n },\r\n OperationMode: {\r\n colorDefault: '#505050',\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n TempAmb: {\r\n colorDefault: colors.Orange,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n Mode: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n ThermOn: {\r\n colorDefault: '#082948',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n ValveOn: {\r\n colorDefault: '#2D81FF',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n FanStatus: {\r\n colorDefault: '#4F6381',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Lock: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Tliq: {\r\n colorDefault: '#074FBC',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Tsuc: {\r\n colorDefault: '#87B5FA',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Temperature_1: {\r\n colorDefault: '#074FBC',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Temperature: {\r\n colorDefault: '#87B5FA',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Tamb: {\r\n colorDefault: '#C2D3ED',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n};\r\n\r\nconst CustomTick = (props) => {\r\n const {\r\n x, y, payload, anchor, application, baseSetpointMinLimit, stepperGraph,\r\n } = props;\r\n\r\n const isFancoil = !!application?.startsWith('fancoil');\r\n const isVav = !!application?.startsWith('vav');\r\n\r\n const label = generateLabel();\r\n\r\n function isBelowAdjustedMinLimit(numberBelow: number): boolean {\r\n return payload.value === baseSetpointMinLimit - (numberBelow * stepperGraph);\r\n }\r\n\r\n function getStatusMessage(condition: boolean, trueMessage: string, falseMessage: string): string {\r\n return t(condition ? trueMessage : falseMessage).toLocaleUpperCase();\r\n }\r\n\r\n function generateLabel(): string {\r\n if (isFancoil || isVav) {\r\n if (payload.value >= baseSetpointMinLimit) return '';\r\n\r\n const belowLimitFirstTick = isBelowAdjustedMinLimit(1);\r\n const belowLimitSecondTick = isBelowAdjustedMinLimit(2);\r\n const belowLimitPenultTick = isBelowAdjustedMinLimit(5);\r\n const belowLimitLastTick = isBelowAdjustedMinLimit(6);\r\n\r\n if (belowLimitFirstTick || belowLimitSecondTick) {\r\n return getStatusMessage(belowLimitFirstTick, 'aberta', 'fechada');\r\n }\r\n\r\n if (isVav && (belowLimitPenultTick || belowLimitLastTick)) {\r\n return getStatusMessage(belowLimitPenultTick, 'travado', 'liberadoMin');\r\n }\r\n\r\n return getStatusMessage(!!((baseSetpointMinLimit - payload.value) % 2), 'ligado', 'desligado');\r\n }\r\n\r\n switch (payload.value) {\r\n case 3:\r\n return t('desligado');\r\n case 4:\r\n return t('ligado');\r\n case 5:\r\n return t('desligado');\r\n case 6:\r\n return t('ligado');\r\n case 7:\r\n return t('desligado');\r\n case 8:\r\n return t('ligado');\r\n case 9:\r\n return t('desligado');\r\n case 10:\r\n return t('ligado');\r\n case 11:\r\n return t('desligado');\r\n case 12:\r\n return t('ligado');\r\n case 13:\r\n return t('desligado');\r\n case 14:\r\n return t('ligado');\r\n default:\r\n return '';\r\n }\r\n }\r\n\r\n if (payload.value >= -10 && payload.value <= 14 && !(isFancoil || isVav) || ((isFancoil || isVav) && !!label)) {\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n }\r\n\r\n if (payload.value > 1000000) {\r\n return (\r\n \r\n \r\n {new Date(payload.value).toLocaleTimeString()}\r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n {anchor === 'middle'\r\n ? Math.floor(payload.value / (60 * 60))\r\n .toString()\r\n .padStart(2, '0')\r\n : payload.value}\r\n \r\n \r\n );\r\n};\r\n\r\nfunction CustomTickMode(props) {\r\n const {\r\n x, y, payload, anchor,\r\n } = props;\r\n\r\n let label = payload.value;\r\n\r\n if (payload.value === 0) {\r\n label = t('desligado');\r\n }\r\n if (payload.value === 1) {\r\n label = t('ventilar').toLocaleUpperCase();\r\n }\r\n if (payload.value === 2) {\r\n label = t('refrigerar').toLocaleUpperCase();\r\n }\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n}\r\nfunction CustomCompressorTickMode(props) {\r\n const {\r\n x, y, payload, anchor,\r\n } = props;\r\n\r\n let label = payload.value;\r\n\r\n if (payload.value === 0) {\r\n label = t('desligadoMin');\r\n }\r\n if (payload.value === 1) {\r\n label = t('ligadoMin');\r\n }\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction CustomTickVAV(props) {\r\n const {\r\n x, y, payload, anchor, id,\r\n } = props;\r\n\r\n let label = payload.value;\r\n const modeTicks = {\r\n 0: t('resfriar'),\r\n 1: t('esquentar'),\r\n 2: t('ventilar'),\r\n };\r\n const thermOnTicks = {\r\n 0: t('desligadoMin'),\r\n 1: t('ligadoMin'),\r\n };\r\n const valveOnTicks = {\r\n 0: t('fechado'),\r\n 1: t('aberto'),\r\n };\r\n const lockTicks = {\r\n 0: t('liberadoMin'),\r\n 1: t('travado'),\r\n };\r\n if (id === 'Mode') {\r\n label = modeTicks[payload.value] || label;\r\n }\r\n if (id === 'ThermOn') {\r\n label = thermOnTicks[payload.value] || label;\r\n }\r\n if (id === 'ValveOn') {\r\n label = valveOnTicks[payload.value] || label;\r\n }\r\n if (id === 'Lock') {\r\n label = lockTicks[payload.value] || label;\r\n }\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction CustomTickFancoil(props) {\r\n const {\r\n x, y, payload, anchor, id,\r\n } = props;\r\n\r\n let label = payload.value;\r\n const modeTicks = {\r\n 0: t('desligar'),\r\n 1: t('ventilar'),\r\n 2: t('refrigerar'),\r\n };\r\n const thermOnTicks = {\r\n 0: t('desligadoMin'),\r\n 1: t('ligadoMin'),\r\n };\r\n const valveOnTicks = {\r\n 0: t('fechada'),\r\n 1: t('aberta'),\r\n };\r\n const fanTicks = {\r\n 0: t('desligadoMin'),\r\n 1: t('ligadoMin'),\r\n };\r\n\r\n if (id === 'OperationMode') {\r\n label = modeTicks[payload.value] || label;\r\n }\r\n if (id === 'ThermOn') {\r\n label = thermOnTicks[payload.value] || label;\r\n }\r\n if (id === 'ValveOn') {\r\n label = valveOnTicks[payload.value] || label;\r\n }\r\n if (id === 'FanStatus') {\r\n label = fanTicks[payload.value] || label;\r\n }\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction varsProperties(application?: string) {\r\n if (application?.startsWith('fancoil')) return varsPropertiesFancoil;\r\n const varsProperties = {\r\n Setpoint: {\r\n colorDefault: application === 'carrier-ecosplit' ? colors.Blue200 : colors.Green,\r\n strokeDasharray: application === 'carrier-ecosplit' ? '' : '5 5',\r\n type: 'monotone',\r\n },\r\n DutTemp: {\r\n colorDefault: colors.Orange,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n TUSEMAX: {\r\n colorDefault: colors.Green,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n TUSEMIN: {\r\n colorDefault: colors.Green,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n EcoSetpoint: {\r\n colorDefault: colors.Green,\r\n strokeDasharray: '5 5',\r\n type: 'monotone',\r\n },\r\n OperationMode: {\r\n colorDefault: colors.Red,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n TempAmb: {\r\n colorDefault: colors.Orange,\r\n strokeDasharray: '',\r\n type: 'monotone',\r\n },\r\n Mode: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n ThermOn: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n ValveOn: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n FanStatus: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Lock: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Tliq: {\r\n colorDefault: '#2d81ff',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Tsuc: {\r\n colorDefault: '#ffbe16',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Tamb: {\r\n colorDefault: '#e803c3',\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n Lcmp: {\r\n colorDefault: colors.BlueChart,\r\n strokeDasharray: '',\r\n type: 'stepAfter',\r\n },\r\n };\r\n return varsProperties;\r\n}\r\n\r\nfunction getDataByVars(vars?: ChartDataVar[]): Record {\r\n const defaultVars: Record = {\r\n setpoint: undefined,\r\n dutTemp: undefined,\r\n tusemax: undefined,\r\n tusemin: undefined,\r\n ecoSetpoint: undefined,\r\n operationMode: undefined,\r\n mode: undefined,\r\n tempAmb: undefined,\r\n thermOn: undefined,\r\n valveOn: undefined,\r\n fanStatus: undefined,\r\n lock: undefined,\r\n };\r\n\r\n if (!vars) return defaultVars;\r\n\r\n const mapping: Record = {\r\n Setpoint: 'setpoint',\r\n DutTemp: 'dutTemp',\r\n TUSEMAX: 'tusemax',\r\n TUSEMIN: 'tusemin',\r\n EcoSetpoint: 'ecoSetpoint',\r\n OperationMode: 'operationMode',\r\n Mode: 'mode',\r\n TempAmb: 'tempAmb',\r\n ThermOn: 'thermOn',\r\n ValveOn: 'valveOn',\r\n FanStatus: 'fanStatus',\r\n Lock: 'lock',\r\n };\r\n\r\n const result = { ...defaultVars };\r\n\r\n for (const data of vars) {\r\n if (data?.id && mapping[data.id] && !result[mapping[data.id]]) {\r\n result[mapping[data.id]] = data;\r\n }\r\n }\r\n\r\n return result;\r\n}\r\n\r\nlet CSVheader = [] as any;\r\n\r\nexport function DriHistory(props: { integrId: string, chillerModel?: string }): JSX.Element {\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const { integrId: devId } = props;\r\n const csvLinkEl = useRef();\r\n const [state, render, setState] = useStateVar({\r\n groupGraph: false,\r\n associatedDacsId: [],\r\n selectedDacs: [],\r\n associatedDacs: [],\r\n loading: false,\r\n devInfo: getCachedDevInfoSync(devId),\r\n driInfo: null,\r\n xDomain: [0, 24],\r\n xTicks: [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24],\r\n refAreaLeft: null,\r\n refAreaRight: null,\r\n multiDays: false,\r\n numDays: 1,\r\n dateStart: null,\r\n dateEnd: null,\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n chartData: {\r\n x: [],\r\n vars: null,\r\n },\r\n isModalOpen: false,\r\n focused: false,\r\n focusedInput: null,\r\n csvData: [],\r\n setpointLimits: [0, 0],\r\n setpointTicks: [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40],\r\n modeLimits: [0, 2],\r\n modeTicks: [0, 1, 2],\r\n vavModeLimits: [0, 2],\r\n vavModeTicks: [0, 1, 2],\r\n fancoilModeTicks: [0, 1, 2],\r\n fancoilModeLimits: [0, 2],\r\n customPointLimit: 11,\r\n valveOnChecked: true,\r\n thermOnChecked: true,\r\n fanStatusChecked: true,\r\n lockChecked: true,\r\n baseSetpointTicks: [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40],\r\n yDomain: [15, 40],\r\n associatedDutsDuoId: [],\r\n associatedDutsDuo: [],\r\n selectedDutsDuo: [],\r\n });\r\n const [date, setDate] = useState(getEndTime());\r\n const [isModalOpen, setIsModalOpen] = useState(false);\r\n const [graphData, setGraphData] = useState({});\r\n\r\n const isFancoil = () => !!state.driInfo?.varsCfg?.application.startsWith('fancoil');\r\n const isVav = () => !!state.driInfo?.varsCfg?.application.startsWith('vav');\r\n const isCarrierEcosplit = () => state.driInfo?.varsCfg?.application === 'carrier-ecosplit';\r\n\r\n function generateSetpointTicks(newSetpointsLimit: number[]): number[] {\r\n const lastTicks = generateTicksByRange(\r\n {\r\n min: newSetpointsLimit[0],\r\n max: newSetpointsLimit[1],\r\n },\r\n );\r\n return lastTicks;\r\n }\r\n\r\n function updateMinMaxSetpoint({ min, max }: { min: number; max: number;}) {\r\n if (!isFancoil()) return;\r\n const minY = Math.floor(min / 5) * 5;\r\n const maxY = Math.ceil(max / 5) * 5;\r\n\r\n const newSetpoints: number[] = [...state.setpointLimits];\r\n if (newSetpoints[0] > minY) newSetpoints[0] = minY;\r\n if (newSetpoints[1] < maxY) newSetpoints[1] = maxY;\r\n\r\n const setpointLimits = [minY, maxY];\r\n setState({ setpointLimits });\r\n\r\n const newSetpointsTicks = generateSetpointTicks(newSetpoints);\r\n setState({\r\n setpointTicks: newSetpointsTicks,\r\n baseSetpointTicks: newSetpointsTicks,\r\n yDomain: [newSetpointsTicks[0], newSetpointsTicks[newSetpointsTicks.length - 1]],\r\n });\r\n }\r\n\r\n function createAdditionalTicksFancoil(baseTicks: number[]): number[] {\r\n const differenceTicks = baseTicks[1] - baseTicks[0];\r\n const arrayLength = 6;\r\n\r\n const newTicks = Array.from({ length: arrayLength },\r\n (_, index) => baseTicks[0] - ((arrayLength * differenceTicks) - (index * differenceTicks)));\r\n return [...newTicks, ...baseTicks];\r\n }\r\n\r\n function checkAgroupGraphData() {\r\n let baseTicks = [...state.baseSetpointTicks];\r\n if (state.groupGraph) {\r\n if (isFancoil() || isVav()) {\r\n baseTicks = createAdditionalTicksFancoil(baseTicks);\r\n }\r\n let customPointLimit = baseTicks[0];\r\n const customPointTick: number[] = [];\r\n if (!isFancoil() && state.selectedDacs.length > 0) {\r\n customPointLimit = baseTicks[0] - state.selectedDacs.length * 2;\r\n for (let i = customPointLimit; i <= (baseTicks[0] - 1); i++) {\r\n customPointTick.push(i);\r\n }\r\n }\r\n\r\n const updatedBaseTick = customPointTick.concat(baseTicks);\r\n\r\n state.setpointTicks = updatedBaseTick;\r\n state.yDomain = [updatedBaseTick[0], updatedBaseTick[updatedBaseTick.length - 1]];\r\n state.customPointLimit = customPointLimit;\r\n render();\r\n } else {\r\n state.setpointTicks = state.baseSetpointTicks;\r\n state.yDomain = [state.baseSetpointTicks[0], state.baseSetpointTicks[state.baseSetpointTicks.length - 1]];\r\n render();\r\n }\r\n }\r\n\r\n function insertVars(vars: any) {\r\n const chartVars: (typeof state.chartData.vars) = [];\r\n const application = state.driInfo?.varsCfg?.application;\r\n const ecoCfg = state.driInfo?.ecoCfg;\r\n let i = 0;\r\n for (const key in vars) {\r\n if (vars.hasOwnProperty(key) && vars[key].y.length > 0 && vars[key].y.some((value) => value !== null)) {\r\n chartVars.push({\r\n id: key,\r\n name: vars[key].name,\r\n y: vars[key].y,\r\n color: varsProperties(application)[key]?.colorDefault,\r\n strokeDasharray: varsProperties(application)[key]?.strokeDasharray,\r\n axisId: key,\r\n checked: true,\r\n type: varsProperties(application)[key]?.type,\r\n maxY: 40,\r\n minY: 0,\r\n });\r\n if (key === 'TUSEMIN' && ecoCfg?.DUT_ID) {\r\n chartVars.push({\r\n id: 'EcoSetpoint',\r\n name: 'Eco Setpoint',\r\n y: vars[key].y.map((value) => value && value + state.driInfo?.ecoCfg.ECO_OFST_START),\r\n color: varsProperties(application).EcoSetpoint?.colorDefault,\r\n strokeDasharray: varsProperties(application).EcoSetpoint?.strokeDasharray,\r\n axisId: 'EcoSetpoint',\r\n checked: true,\r\n type: varsProperties(state.devInfo?.varsCfg?.application).EcoSetpoint?.type,\r\n maxY: 40,\r\n minY: 0,\r\n });\r\n }\r\n }\r\n i++;\r\n }\r\n\r\n state.chartData.vars = chartVars;\r\n }\r\n\r\n const getChartDacs = async (numDays: number) => {\r\n const { dri } = state.devInfo;\r\n const application = state.driInfo?.varsCfg?.application;\r\n const params: string[] = [];\r\n\r\n if (application?.startsWith('fancoil')) {\r\n params.push('Tsuc', 'Tliq', 'Tamb');\r\n } else {\r\n params.push('Lcmp');\r\n }\r\n const promiseDacs = dri.associatedDacs?.map(async (dac, i) => {\r\n const chartData = await apiCall('/dac/get-charts-data-common', {\r\n dacId: dac.DAC_ID,\r\n selectedParams: params,\r\n dayYMD: moment(state.dateStart).format('YYYY-MM-DD'),\r\n numDays,\r\n });\r\n updateMinMaxSetpoint({ min: chartData.limts.minTval, max: chartData.limts.maxTval });\r\n return { dacId: dac.DAC_ID, chartData };\r\n }) || [];\r\n const resultPromises = await Promise.all(promiseDacs);\r\n const chartVars: (typeof state.chartData.vars) = [];\r\n const labels = {\r\n Tliq: t('temperaturaEntradaAgua'),\r\n Tsuc: t('temperaturaSaidaAgua'),\r\n Tamb: t('temperaturaArEntrada'),\r\n Lcmp: t('sinalComando'),\r\n };\r\n let index = 0;\r\n\r\n for (const dac of resultPromises) {\r\n for (const param of params) {\r\n const labelDifference = application?.startsWith('fancoil') ? '' : ` - ${index}`;\r\n if (param === 'Lcmp' && dac.chartData.vars[param] && dac.chartData.vars[param].L.length > 0 && dac.chartData.vars[param].L.some((value) => value !== null)) {\r\n chartVars.push({\r\n id: param,\r\n name: `${labels[param]}${labelDifference}`,\r\n y: dac.chartData.vars[param].L,\r\n color: varsProperties(application)[param]?.colorDefault,\r\n strokeDasharray: varsProperties(application)[param]?.strokeDasharray,\r\n axisId: param,\r\n checked: true,\r\n type: varsProperties(application)[param]?.type,\r\n maxY: 40,\r\n minY: 0,\r\n });\r\n } else if (dac.chartData.vars[param] && dac.chartData.vars[param].y.length > 0 && dac.chartData.vars[param].y.some((value) => value !== null)) {\r\n chartVars.push({\r\n id: param,\r\n name: `${labels[param]}${labelDifference}`,\r\n y: dac.chartData.vars[param].y,\r\n color: varsProperties(application)[param]?.colorDefault,\r\n strokeDasharray: varsProperties(application)[param]?.strokeDasharray,\r\n axisId: param,\r\n checked: true,\r\n type: varsProperties(application)[param]?.type,\r\n maxY: 40,\r\n minY: 0,\r\n });\r\n }\r\n }\r\n index++;\r\n }\r\n state.chartData.vars = (state.chartData.vars || []).concat(chartVars);\r\n setState({ selectedDacs: resultPromises, associatedDacs: resultPromises.map((dac) => ({ ...dac, show: { Tsuc: true, Tliq: true, Tamb: true } })), associatedDacsId: resultPromises.map((dac) => ({ dacId: dac.dacId, checked: true, temperatures: { TsucChecked: true, TliqChecked: true, TambChecked: true } })) });\r\n render();\r\n };\r\n\r\n const getChartDutsDuo = async (numDays: number) => {\r\n const { dri } = state.devInfo as { dri: NonNullable};\r\n const application = state.driInfo?.varsCfg?.application;\r\n const params = ['Temperature', 'Temperature_1'];\r\n\r\n if (!isFancoil() || !dri.associatedDutsDuo?.length) return;\r\n\r\n const promisesDutsDuo = dri.associatedDutsDuo.map(async (dutDuo) => {\r\n const chartData = await apiCall('/dut/get-day-charts-data-commonX', {\r\n devId: dutDuo.DUT_DUO_ID,\r\n selectedParams: params,\r\n day: moment(state.dateStart).format('YYYY-MM-DD'),\r\n numDays,\r\n });\r\n const temperatureGraphValues = [...chartData.Temperature.y, ...chartData.Temperature_1.y].filter((value) => value !== null);\r\n const minValueTemp = Math.min(...temperatureGraphValues);\r\n const maxValueTemp = Math.max(...temperatureGraphValues);\r\n updateMinMaxSetpoint({ min: minValueTemp, max: maxValueTemp });\r\n return { dutDuoId: dutDuo.DUT_DUO_ID, chartData };\r\n });\r\n const resultPromises = await Promise.all(promisesDutsDuo);\r\n\r\n const chartVars: (typeof state.chartData.vars) = [];\r\n const labels = {\r\n Temperature_1: t('temperaturaEntradaAgua'),\r\n Temperature: t('temperaturaSaidaAgua'),\r\n };\r\n let index = 0;\r\n\r\n for (const dutDuo of resultPromises) {\r\n for (const param of params) {\r\n if (dutDuo.chartData[param] && dutDuo.chartData[param].y.length > 0 && dutDuo.chartData[param].y.some((value) => value !== null)) {\r\n chartVars.push({\r\n id: param,\r\n name: `${labels[param]}`,\r\n y: dutDuo.chartData[param].y,\r\n color: varsProperties(application)[param]?.colorDefault,\r\n strokeDasharray: varsProperties(application)[param]?.strokeDasharray,\r\n axisId: param,\r\n checked: true,\r\n type: varsProperties(application)[param]?.type,\r\n maxY: 40,\r\n minY: 0,\r\n });\r\n }\r\n }\r\n index++;\r\n }\r\n\r\n state.chartData.vars = (state.chartData.vars || []).concat(chartVars);\r\n\r\n const newState = {\r\n selectedDutsDuo: resultPromises,\r\n associatedDutsDuo: resultPromises.map((dutDuo) => ({\r\n ...dutDuo,\r\n show: { Temperature: true, Temperature_1: true },\r\n })),\r\n associatedDutsDuoId: resultPromises.map((dutDuo) => ({\r\n dutDuoId: dutDuo.dutDuoId,\r\n checked: true,\r\n temperatures: {\r\n Temperature: true,\r\n Temperature_1: true,\r\n },\r\n })),\r\n };\r\n\r\n setState(newState);\r\n };\r\n\r\n useEffect(() => {\r\n Promise.resolve().then(async () => {\r\n if (!state.loading) {\r\n setState({ loading: true });\r\n }\r\n const devInfo = await getCachedDevInfo(devId, { forceFresh: true });\r\n const driInfo = devInfo.dri;\r\n setState({ devInfo, driInfo, loading: false });\r\n render();\r\n }).catch(console.log);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!state.devInfo) return;\r\n if (!(isFancoil() || isVav() || isCarrierEcosplit())) return;\r\n if (!state.dateStart || !state.dateEnd) return;\r\n\r\n Promise.resolve().then(async () => {\r\n if (!state.loading) {\r\n setState({ loading: true });\r\n }\r\n\r\n try {\r\n const d1 = new Date(`${moment(state.dateStart).format('YYYY-MM-DD')}T00:00:00Z`).getTime();\r\n const d2 = new Date(`${moment(state.dateEnd).format('YYYY-MM-DD')}T00:00:00Z`).getTime();\r\n const numDays = Math.round((d2 - d1) / 1000 / 60 / 60 / 24) + 1;\r\n state.numDays = numDays;\r\n if ((numDays >= 1) && (numDays <= 15)) { } // OK\r\n else {\r\n toast.error(t('periodoDe1a15Dias'));\r\n state.loading = false;\r\n render();\r\n return;\r\n }\r\n\r\n try {\r\n const params = {\r\n driId: devId,\r\n selectedParams: ['Setpoint', 'Status', 'Mode', 'DutTemp', 'ThermOn', 'Lock', 'TempAmb', 'ValveOn', 'FanStatus'],\r\n dayYMD: moment(state.dateStart).format('YYYY-MM-DD'),\r\n numDays,\r\n };\r\n\r\n const chartsData = await apiCall('/dri/get-day-charts-data-common', params);\r\n setState({ setpointLimits: [chartsData.limits.minTval, chartsData.limits.maxTval] });\r\n updateMinMaxSetpoint({ min: chartsData.limits.minTval, max: chartsData.limits.maxTval });\r\n\r\n state.chartData.x = chartsData.commonX;\r\n\r\n insertVars(chartsData.vars);\r\n\r\n state.xDomain = [0, 24 * numDays];\r\n state.xTicks = Array.from({ length: 13 }, (_, i) => i * 2 * numDays);\r\n } catch (e) {\r\n state.chartData.vars = null;\r\n toast.error(t('erroAquisicaoHistoricoDRI'));\r\n console.log(e);\r\n }\r\n await Promise.all([getChartDacs(numDays), getChartDutsDuo(numDays)]);\r\n } catch (err) { console.log(err); }\r\n state.loading = false;\r\n render();\r\n });\r\n }, [state.dateStart, state.dateEnd, state.devInfo, state.driInfo]);\r\n\r\n function onMultidaysClick() {\r\n state.multiDays = !state.multiDays;\r\n if (!state.multiDays) {\r\n state.dateEnd = state.dateStart;\r\n }\r\n render();\r\n }\r\n\r\n const setFormattedDate = useCallback((date) => setDate(date.set({ hour: 0 })), []);\r\n\r\n function csvValueFormatter(value: any, id: string) {\r\n const labels = {\r\n OperationMode: {\r\n 0: t('desligado'),\r\n 1: t('ventilar').toLocaleUpperCase(),\r\n 2: t('refrigerar').toLocaleUpperCase(),\r\n },\r\n ThermOn: {\r\n 0: t('desligado'),\r\n 1: t('ligado').toLocaleUpperCase(),\r\n },\r\n ValveOn: {\r\n 0: t('fechada').toLocaleUpperCase(),\r\n 1: t('aberta').toLocaleUpperCase(),\r\n },\r\n FanStatus: {\r\n 0: t('desligado').toLocaleUpperCase(),\r\n },\r\n Mode: {\r\n 0: t('resfriar').toLocaleUpperCase(),\r\n 1: t('esquentar').toLocaleUpperCase(),\r\n 2: t('ventilar').toLocaleUpperCase(),\r\n },\r\n Lock: {\r\n 0: t('liberadoMin'),\r\n 1: t('travado'),\r\n 2: t('refrigerar').toLocaleUpperCase(),\r\n },\r\n };\r\n if (state.chartData.vars && value != null) {\r\n let label = labels[id]?.[value] || value.toString();\r\n if (id === 'FanStatus' && value !== 0) label = t('ligado').toLocaleUpperCase();\r\n return `${formatNumberWithFractionDigits(label)}`;\r\n }\r\n return '-';\r\n }\r\n\r\n const getCsvData = async () => {\r\n state.loading = true; render();\r\n const formattedCSV = [] as any;\r\n CSVheader = [];\r\n\r\n try {\r\n CSVheader.push({\r\n label: t('dataHora'),\r\n key: 'data',\r\n });\r\n\r\n if (state.chartData.vars && state.chartData.vars.length > 0) {\r\n for (const object of state.chartData.vars) {\r\n if ((isFancoil() && object.checked && ['Setpoint', 'OperationMode', 'ThermOn', 'TempAmb', 'ValveOn', 'FanStatus', 'TUSEMAX', 'TUSEMIN'].includes(object.id))\r\n || (isVav() && object.checked && ['Setpoint', 'Mode', 'ThermOn', 'TempAmb', 'ValveOn', 'Lock', 'TUSEMAX', 'TUSEMIN'].includes(object.id))\r\n || (object.checked && ['Setpoint', 'OperationMode', 'DutTemp', 'EcoSetpoint'].includes(object.id))\r\n ) {\r\n CSVheader.push({\r\n label: object.name,\r\n key: object.id,\r\n });\r\n }\r\n }\r\n\r\n for (let i = 0; i < state.chartData.x.length; i++) {\r\n if (state.chartData.vars) {\r\n if (isFancoil()) {\r\n formattedCSV.push({\r\n data: `${CsvLabelFormatterData(state.chartData.x[i], state.dateStart)}`,\r\n Setpoint: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Setpoint')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Setpoint')[0].y[i], 'Setpoint') : '-'),\r\n OperationMode: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'OperationMode')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'OperationMode')[0].y[i], 'OperationMode') : '-'),\r\n ThermOn: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'ThermOn')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'ThermOn')[0].y[i], 'ThermOn') : '-'),\r\n TempAmb: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'TempAmb')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'TempAmb')[0].y[i], 'TempAmb') : '-'),\r\n ValveOn: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'ValveOn')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'ValveOn')[0].y[i], 'ValveOn') : '-'),\r\n FanStatus: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'FanStatus')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'FanStatus')[0].y[i], 'FanStatus') : '-'),\r\n TUSEMAX: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'TUSEMAX')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'TUSEMAX')[0].y[i], 'TUSEMAX') : '-'),\r\n TUSEMIN: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'TUSEMIN')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'TUSEMIN')[0].y[i], 'TUSEMIN') : '-'),\r\n });\r\n } else if (isVav()) {\r\n formattedCSV.push({\r\n data: `${CsvLabelFormatterData(state.chartData.x[i], state.dateStart)}`,\r\n Setpoint: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Setpoint')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Setpoint')[0].y[i], 'Setpoint') : '-'),\r\n Mode: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Mode')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Mode')[0].y[i], 'Mode') : '-'),\r\n ThermOn: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'ThermOn')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'ThermOn')[0].y[i], 'ThermOn') : '-'),\r\n TempAmb: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'TempAmb')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'TempAmb')[0].y[i], 'TempAmb') : '-'),\r\n ValveOn: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'ValveOn')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'ValveOn')[0].y[i], 'ValveOn') : '-'),\r\n Lock: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Lock')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Lock')[0].y[i], 'Lock') : '-'),\r\n TUSEMAX: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'TUSEMAX')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'TUSEMAX')[0].y[i], 'TUSEMAX') : '-'),\r\n TUSEMIN: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'TUSEMIN')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'TUSEMIN')[0].y[i], 'TUSEMIN') : '-'),\r\n });\r\n } else {\r\n formattedCSV.push({\r\n data: `${CsvLabelFormatterData(state.chartData.x[i], state.dateStart)}`,\r\n Setpoint: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'Setpoint')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'Setpoint')[0].y[i], 'Setpoint') : '-'),\r\n DutTemp: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'DutTemp')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'DutTemp')[0].y[i], 'DutTemp') : '-'),\r\n EcoSetpoint: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'EcoSetpoint')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'EcoSetpoint')[0].y[i], 'EcoSetpoint') : '-'),\r\n OperationMode: (state.chartData.vars && state.chartData.vars.filter((line) => line.id === 'OperationMode')[0] ? csvValueFormatter(state.chartData.vars.filter((line) => line.id === 'OperationMode')[0].y[i], 'OperationMode') : '-'),\r\n });\r\n }\r\n }\r\n }\r\n\r\n state.csvData = formattedCSV;\r\n render();\r\n setTimeout(() => {\r\n (csvLinkEl as any).current.link.click();\r\n }, 1000);\r\n\r\n state.loading = false; render();\r\n }\r\n else {\r\n toast.info(t('semDadosGraficoExportar')); state.loading = false;\r\n }\r\n } catch (err) { console.log(err); toast.error(t('erro')); state.loading = false; }\r\n };\r\n\r\n function getDataToChangeColor() {\r\n const list = [] as {color: string, description: string, index: number}[];\r\n state.chartData.vars?.forEach((item, i) => {\r\n if ((isFancoil() && ['Setpoint', 'OperationMode', 'ThermOn', 'TempAmb', 'ValveOn', 'FanStatus', 'TUSEMAX', 'TUSEMIN', 'Tliq', 'Tsuc', 'Tamb', 'Temperature', 'Temperature_1'].includes(item.id))\r\n || (isVav() && ['Setpoint', 'Mode', 'ThermOn', 'TempAmb', 'ValveOn', 'Lock', 'TUSEMAX', 'TUSEMIN', 'Lcmp'].includes(item.id))\r\n || (!(isFancoil() || isVav()))) {\r\n list.push({\r\n color: item.color,\r\n description: `${item.name}`,\r\n index: i,\r\n });\r\n }\r\n });\r\n return list;\r\n }\r\n\r\n function setColor(color, index) {\r\n if (state.chartData.vars && state.chartData.vars.length > index) {\r\n state.chartData.vars[index].color = color.hex;\r\n render();\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {(!state.loading && state.driInfo?.varsCfg.application.startsWith('chiller-carrier')) ? (\r\n \r\n ) : (\r\n \r\n <>{state.loading && }\r\n
\r\n {(!state.loading && (isCarrierEcosplit() || isVav() || isFancoil()))\r\n && (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {t('Filtrar por')}\r\n setIsModalOpen(false)} />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('Data')}\r\n
\r\n {!state.isModalOpen && (!state.multiDays) && (\r\n { setState({ dateStart: value, dateEnd: value }); }}\r\n focused={state.focused}\r\n onFocusChange={({ focused }) => setState({ focused })}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n isOutsideRange={(d) => !d.isBefore(state.tomorrow)}\r\n />\r\n )}\r\n {!state.isModalOpen && (state.multiDays) && (\r\n { setState({ dateStart: startDate, dateEnd: startDate !== state.dateStart ? null : endDate }); }} // PropTypes.func.isRequired,\r\n onFocusChange={(focused: 'endDate' | 'startDate' | null) => setState({ focusedInput: focused })}\r\n focusedInput={state.focusedInput}\r\n noBorder\r\n isOutsideRange={(d) => !d.isBefore(state.tomorrow)}\r\n />\r\n )}\r\n \r\n
\r\n \r\n \r\n \r\n {t('multiplosDias')}\r\n \r\n \r\n
\r\n \r\n {t('visualizacao')}\r\n \r\n {t('desagrupar')}\r\n { setState({ groupGraph: !state.groupGraph }); checkAgroupGraphData(); render(); }}\r\n style={{ marginLeft: '10px', marginRight: '10px' }}\r\n />\r\n {t('agrupar')}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n {t('exportarPlanilha')}\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
setIsModalOpen(true)}>\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n )}\r\n {(!state.loading && !(state.driInfo?.varsCfg.application.startsWith('chiller-carrier') || isCarrierEcosplit() || isVav() || isFancoil())) &&
{t('naoDisponivel')}
}\r\n
\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nconst Graph = ({\r\n state,\r\n checkAgroupGraphData,\r\n}: {\r\n // @ts-ignore\r\n Filtering?: React.Element,\r\n graphData?: any,\r\n graphEnable?: any,\r\n handleChange?: () => void,\r\n state: DriHistoryState,\r\n checkAgroupGraphData: () => void,\r\n}) => {\r\n const [profile] = useState(getUserProfile);\r\n const [, render] = useStateVar({});\r\n const application = state.driInfo?.varsCfg?.application;\r\n const commonX = state.chartData.x;\r\n const stepperGraph = state.baseSetpointTicks[1] - state.baseSetpointTicks[0];\r\n\r\n const isFancoil = application?.startsWith('fancoil');\r\n const isVav = application?.startsWith('vav');\r\n const isCarrierEcosplit = application === 'carrier-ecosplit';\r\n\r\n const {\r\n setpoint,\r\n dutTemp,\r\n tusemax,\r\n tusemin,\r\n ecoSetpoint,\r\n operationMode,\r\n mode,\r\n tempAmb,\r\n thermOn,\r\n valveOn,\r\n fanStatus,\r\n lock,\r\n } = useMemo(() => getDataByVars(state.chartData.vars ?? undefined), [state.chartData.vars]);\r\n\r\n function zoom() {\r\n let { refAreaLeft, refAreaRight } = state;\r\n\r\n if (refAreaLeft === refAreaRight || refAreaRight == null || refAreaLeft == null) {\r\n state.refAreaLeft = null;\r\n state.refAreaRight = null;\r\n render();\r\n return;\r\n }\r\n\r\n // xAxis domain\r\n if (refAreaLeft > refAreaRight) [refAreaLeft, refAreaRight] = [refAreaRight, refAreaLeft];\r\n state.refAreaLeft = null;\r\n state.refAreaRight = null;\r\n state.xDomain = [refAreaLeft, refAreaRight];\r\n state.xTicks = [];\r\n render();\r\n }\r\n\r\n function zoomOut() {\r\n state.refAreaLeft = null;\r\n state.refAreaRight = null;\r\n state.xDomain = null;\r\n state.xTicks = Array.from({ length: 13 }, (_, i) => i * 2 * state.numDays);\r\n render();\r\n }\r\n\r\n function operationalModeFancoilLabel(value: number) {\r\n if (value === 0) return t('desligar');\r\n if (value === 1) return t('ventilar');\r\n if (value === 2) return t('resfriar');\r\n }\r\n\r\n function operationalModeVavLabel(value: number) {\r\n if (value === 0) return t('refrigerar');\r\n if (value === 1) return t('esquentar');\r\n if (value === 2) return t('ventilar');\r\n }\r\n\r\n function operationalModeCarrierEcoSplitLabel(value: number) {\r\n if (value === 0) return t('desligado');\r\n if (value === 1) return t('ventilar').toLocaleUpperCase();\r\n if (value === 2) return t('refrigerar').toLocaleUpperCase();\r\n }\r\n\r\n function tooltipFancoilFormater(value: number, accessor: string, baseValueLimit: number) {\r\n const label = formatNumberWithFractionDigits(value.toString());\r\n\r\n if (accessor.includes('Setpoint') || accessor.includes('Temperatura')) {\r\n return `${label}°C`;\r\n }\r\n\r\n const valueForLabel = state.groupGraph ? baseValueLimit - value : value;\r\n\r\n switch (accessor) {\r\n case 'Modo de operação': return operationalModeFancoilLabel(value);\r\n case 'Sinal de Comando para Válvula': return t(valueForLabel % 2 ? 'aberta' : 'fechada').toLocaleUpperCase();\r\n case 'Status do Ventilador':\r\n case 'Status do Termostato':\r\n default: return t(valueForLabel % 2 ? 'ligadoMin' : 'desligadoMin').toLocaleUpperCase();\r\n }\r\n }\r\n\r\n function tooltipVavFormater(value: number, accessor: string, baseValueLimit: number) {\r\n const label = formatNumberWithFractionDigits(value.toString());\r\n\r\n if (accessor.includes('Setpoint') || accessor.includes('Temperatura')) {\r\n return `${label}°C`;\r\n }\r\n\r\n const valueForLabel = state.groupGraph ? baseValueLimit - value : value;\r\n\r\n switch (accessor) {\r\n case 'Modo de operação': return operationalModeVavLabel(value);\r\n case 'Status da válvula': return t(valueForLabel % 2 ? 'aberta' : 'fechada').toLocaleUpperCase();\r\n case 'Bloqueio': return t(valueForLabel % 2 ? 'travado' : 'liberadoMin').toLocaleUpperCase();\r\n case 'Status do Termostato':\r\n default: return t(valueForLabel % 2 ? 'ligadoMin' : 'desligadoMin').toLocaleUpperCase();\r\n }\r\n }\r\n\r\n function toolTipFormater(\r\n value: number,\r\n accessor: string | Function,\r\n ) {\r\n if (typeof accessor !== 'string') return;\r\n\r\n if (isFancoil) {\r\n return tooltipFancoilFormater(value, accessor, state.baseSetpointTicks[0]);\r\n }\r\n\r\n if (isVav) {\r\n return tooltipVavFormater(value, accessor, state.baseSetpointTicks[0]);\r\n }\r\n\r\n const label = formatNumberWithFractionDigits(value.toString());\r\n\r\n if (accessor.includes('Setpoint') || accessor.includes('Temperatura')) {\r\n return `${label}°C`;\r\n }\r\n\r\n if (accessor === 'Modo de operação' && isCarrierEcosplit) {\r\n return operationalModeCarrierEcoSplitLabel(value);\r\n }\r\n\r\n if (accessor.startsWith(t('sinalComando'))) {\r\n return t(value % 2 ? 'DESLIGADO' : 'LIGADO').toLocaleUpperCase();\r\n }\r\n\r\n const statusLabelMap = {\r\n 'Status da válvula': { 0: 'Fechada', 1: 'Aberta' },\r\n 'Status do Ventilador': { 0: t('desligadoMin'), 1: t('ligadoMin') },\r\n 'Status do Termostato': { 0: t('desligadoMin'), 1: t('ligadoMin') },\r\n Bloqueio: { 0: t('liberadoMin'), 1: t('bloqueadoMin') },\r\n };\r\n\r\n if (statusLabelMap[accessor]) {\r\n return statusLabelMap[accessor][value];\r\n }\r\n\r\n if (value >= 3 && value <= 12) {\r\n return value % 2 ? 'DESLIGADO' : 'LIGADO';\r\n }\r\n\r\n return label;\r\n }\r\n\r\n function toolTipFormaterDac(\r\n value: number,\r\n ) {\r\n if (value === 0) {\r\n return 'Desligado';\r\n }\r\n\r\n if (value === 1) {\r\n return 'ligado';\r\n }\r\n }\r\n\r\n function returnSizeGraph(isNumber: boolean) {\r\n const baseSizeGraph = 450;\r\n const customSizeGraph = state.selectedDacs ? (state.selectedDacs.length > 0 ? baseSizeGraph + (state.selectedDacs.length * 50) : baseSizeGraph) : baseSizeGraph;\r\n if (isNumber) {\r\n return customSizeGraph;\r\n }\r\n return `${customSizeGraph}px`;\r\n }\r\n\r\n const getParamsColor = (name) => {\r\n const info = state.chartData.vars?.find((data) => data.name === name);\r\n\r\n return info?.color || '';\r\n };\r\n\r\n const onMouseMove = (e) => {\r\n if (state.refAreaLeft != null) {\r\n state.refAreaRight = e.activeLabel;\r\n render();\r\n }\r\n };\r\n const onMouseDown = (e) => {\r\n state.refAreaLeft = e.activeLabel;\r\n render();\r\n };\r\n\r\n function fancoilGroupGraphDataKey(\r\n chartDataInfo: { chartDataVar: ChartDataVar, isChecked: boolean },\r\n i: number,\r\n count: number,\r\n ): number | null {\r\n const { chartDataVar, isChecked } = chartDataInfo;\r\n const stepBeforeLimit = count * stepperGraph;\r\n const dacsSteps = stepBeforeLimit * 2;\r\n const chartDataIValue = chartDataVar.y[i];\r\n const valueChart = chartDataIValue !== null ? (chartDataIValue * stepperGraph) : null;\r\n\r\n return (valueChart !== null && isChecked) ? state.customPointLimit + valueChart + dacsSteps : null;\r\n }\r\n\r\n function onClickDutDuoCheckboxTemperature(\r\n dutDuo: DriHistoryState['associatedDutsDuoId'][number],\r\n key: keyof DriHistoryState['associatedDutsDuoId'][number]['temperatures'],\r\n ): void {\r\n dutDuo.temperatures[key] = !dutDuo.temperatures[key];\r\n render();\r\n\r\n state.associatedDutsDuo = state.associatedDutsDuo.map((selectedDutDuo) => {\r\n if (selectedDutDuo.dutDuoId === dutDuo.dutDuoId) {\r\n selectedDutDuo.show[key] = dutDuo.temperatures[key];\r\n }\r\n return selectedDutDuo;\r\n });\r\n checkAgroupGraphData();\r\n }\r\n\r\n useEffect(() => {\r\n if (state.groupGraph) {\r\n checkAgroupGraphData();\r\n }\r\n }, []);\r\n\r\n return (\r\n
\r\n {(!state.dateStart || !state.dateEnd) ? : null}\r\n\r\n {(state.dateStart && state.dateEnd) && (\r\n \r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n

\r\n {t('temperaturas')}\r\n

\r\n {!state.loading && commonX && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]}\r\n tickFormatter={(hour) => (state.numDays && state.numDays > 1\r\n ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))}\r\n ticks={state.xTicks}\r\n domain={state.xDomain}\r\n />\r\n {state.numDays && state.numDays > 1 ? (\r\n commonX[i]}\r\n ticks={state.xTicks}\r\n domain={state.xDomain}\r\n />\r\n ) : null}\r\n \r\n )}\r\n ticks={state.setpointTicks}\r\n interval={0}\r\n domain={state.yDomain}\r\n >\r\n (\r\n \r\n {t('temperaturaC')}\r\n \r\n )}\r\n />\r\n \r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)}\r\n formatter={toolTipFormater}\r\n />\r\n {tempAmb && tempAmb.checked && tempAmb.y[i]} dot={false} stroke={tempAmb.color} strokeWidth={1.5} animationDuration={300} strokeDasharray={tempAmb.strokeDasharray} />}\r\n {setpoint && setpoint.checked && setpoint.y[i]} dot={false} stroke={setpoint.color} strokeWidth={1.5} animationDuration={300} strokeDasharray={setpoint.strokeDasharray} />}\r\n {dutTemp && dutTemp.checked && dutTemp.y[i]} dot={false} stroke={dutTemp.color} strokeWidth={1.5} animationDuration={300} strokeDasharray={dutTemp.strokeDasharray} />}\r\n {tusemax && tusemax.checked && tusemax.y[i]} dot={false} stroke={tusemax.color} strokeWidth={1.5} animationDuration={300} strokeDasharray={tusemax.strokeDasharray} />}\r\n {ecoSetpoint && ecoSetpoint.checked && ecoSetpoint.y[i]} dot={false} stroke={ecoSetpoint.color} strokeWidth={1.5} animationDuration={300} strokeDasharray={ecoSetpoint.strokeDasharray} />}\r\n {tusemin && tusemin.checked && tusemin.y[i]} dot={false} stroke={tusemin.color} strokeWidth={1.5} animationDuration={300} strokeDasharray={tusemin.strokeDasharray} />}\r\n {isFancoil && state.associatedDutsDuo.map(({ chartData, show }) => (\r\n chartData.Temperature && show?.Temperature && (\r\n ((chartData.Temperature?.y[i] != null) ? chartData.Temperature?.y[i] : null)}\r\n dot={false}\r\n stroke={getParamsColor(t('temperaturaSaidaAgua'))}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )\r\n ))}\r\n {isFancoil && state.associatedDutsDuo.map(({ chartData, show }) => (\r\n chartData.Temperature_1 && show?.Temperature_1 && (\r\n ((chartData.Temperature_1?.y[i] != null) ? chartData.Temperature_1?.y[i] : null)}\r\n dot={false}\r\n stroke={getParamsColor(t('temperaturaEntradaAgua'))}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )\r\n ))}\r\n\r\n {isFancoil && state.associatedDacs?.map(({ chartData, show }) => (\r\n chartData.vars?.Tsuc && show?.Tsuc && (\r\n ((chartData.vars?.Tsuc.y[i] != null) ? chartData.vars?.Tsuc.y[i] : null)}\r\n dot={false}\r\n stroke={getParamsColor(t('temperaturaSaidaAgua'))}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )\r\n ))}\r\n {isFancoil && state.associatedDacs?.map(({ chartData, show }) => (\r\n chartData.vars?.Tliq && show?.Tliq && (\r\n ((chartData.vars?.Tliq.y[i] != null) ? chartData.vars?.Tliq.y[i] : null)}\r\n dot={false}\r\n stroke={getParamsColor(t('temperaturaEntradaAgua'))}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )\r\n ))}\r\n {isFancoil && state.associatedDacs?.map(({ chartData, show }) => (\r\n chartData.vars?.Tamb && show?.Tamb && (\r\n ((chartData.vars?.Tamb.y[i] != null) ? chartData.vars?.Tamb.y[i] : null)}\r\n dot={false}\r\n stroke={getParamsColor(t('temperaturaArEntrada'))}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )\r\n ))}\r\n\r\n {!isFancoil && state.groupGraph && state.selectedDacs.map(({ dacId, chartData }, index) => (\r\n chartData.vars?.Lcmp && (\r\n ((chartData.vars?.Lcmp.L[i] != null) ? state.customPointLimit + (chartData.vars?.Lcmp.L[i] + (index * 2)) : null)}\r\n dot={false}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n key={`line-${dacId}`}\r\n />\r\n )\r\n ))}\r\n {(isFancoil || isVav) && state.groupGraph && valveOn && (\r\n fancoilGroupGraphDataKey({ chartDataVar: valveOn, isChecked: state.valveOnChecked }, i, 2)}\r\n dot={false}\r\n stroke={valveOn.color}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )}\r\n {isFancoil && state.groupGraph && fanStatus && (\r\n fancoilGroupGraphDataKey({ chartDataVar: fanStatus, isChecked: state.fanStatusChecked }, i, 1)}\r\n dot={false}\r\n stroke={fanStatus.color}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )}\r\n {(isFancoil || isVav) && state.groupGraph && thermOn && (\r\n fancoilGroupGraphDataKey({ chartDataVar: thermOn, isChecked: state.thermOnChecked }, i, isFancoil ? 0 : 1)}\r\n dot={false}\r\n stroke={thermOn.color}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )}\r\n {isVav && state.groupGraph && lock && (\r\n fancoilGroupGraphDataKey({ chartDataVar: lock, isChecked: state.lockChecked }, i, 0)}\r\n dot={false}\r\n stroke={lock.color}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n
\r\n
\r\n
\r\n \r\n {tempAmb && (\r\n \r\n { tempAmb.checked = !tempAmb.checked; render(); }}\r\n />\r\n
\r\n
\r\n \r\n {t('temperaturaAmbiente')}\r\n \r\n \r\n
\r\n \r\n {t('termostatoAssociadoAoDRI')}\r\n \r\n
\r\n\r\n
\r\n )}\r\n {setpoint && (\r\n \r\n { setpoint.checked = !setpoint.checked; render(); }}\r\n />\r\n \r\n {isCarrierEcosplit && {t('setpointMaquina')}}\r\n {(isFancoil || isVav) && Setpoint}\r\n \r\n {isCarrierEcosplit && }\r\n {(isFancoil || isVav) && }\r\n \r\n )}\r\n {dutTemp && (\r\n \r\n { dutTemp.checked = !dutTemp.checked; render(); }}\r\n />\r\n \r\n {t('temperaturaVal', { value: state.driInfo?.ecoCfg?.DUT_ID })}\r\n \r\n \r\n \r\n )}\r\n {ecoSetpoint && (\r\n \r\n { ecoSetpoint.checked = !ecoSetpoint.checked; render(); }}\r\n />\r\n \r\n {t('setpointModoEco')}\r\n \r\n \r\n \r\n )}\r\n {tusemin && (\r\n \r\n {\r\n tusemin.checked = !tusemin.checked;\r\n if (tusemax) {\r\n tusemax.checked = !tusemax.checked;\r\n }\r\n render();\r\n }}\r\n />\r\n \r\n {t('limitesTemperatura')}\r\n \r\n \r\n \r\n )}\r\n {isFancoil && state.associatedDacsId?.map((dac) => (\r\n \r\n {\r\n dac.temperatures.TambChecked = !dac.temperatures.TambChecked; render();\r\n if (!dac.temperatures.TambChecked && state.associatedDacs) { state.associatedDacs = state.associatedDacs.map((selectedDac) => { if (selectedDac.dacId === dac.dacId) { selectedDac.show.Tamb = false; } return selectedDac; }); }\r\n if (dac.temperatures.TambChecked && state.associatedDacs) { state.associatedDacs = state.associatedDacs.map((selectedDac) => { if (selectedDac.dacId === dac.dacId) { selectedDac.show.Tamb = true; } return selectedDac; }); }\r\n checkAgroupGraphData();\r\n }}\r\n />\r\n
\r\n
\r\n \r\n { `${t('temperaturaArEntrada')}` }\r\n \r\n \r\n
\r\n {dac.dacId}\r\n
\r\n
\r\n ))}\r\n {isFancoil && state.associatedDacsId?.map((dac) => (\r\n \r\n {\r\n dac.temperatures.TsucChecked = !dac.temperatures.TsucChecked; render();\r\n if (!dac.temperatures.TsucChecked && state.associatedDacs) { state.associatedDacs = state.associatedDacs.map((selectedDac) => { if (selectedDac.dacId === dac.dacId) { selectedDac.show.Tsuc = false; } return selectedDac; }); }\r\n if (dac.temperatures.TsucChecked && state.associatedDacs) { state.associatedDacs = state.associatedDacs.map((selectedDac) => { if (selectedDac.dacId === dac.dacId) { selectedDac.show.Tsuc = true; } return selectedDac; }); }\r\n checkAgroupGraphData();\r\n }}\r\n />\r\n
\r\n
\r\n \r\n { `${t('temperaturaSaidaAgua')}` }\r\n \r\n \r\n
\r\n {dac.dacId}\r\n
\r\n
\r\n ))}\r\n {isFancoil && state.associatedDacsId?.map((dac) => (\r\n \r\n {\r\n dac.temperatures.TliqChecked = !dac.temperatures.TliqChecked; render();\r\n if (!dac.temperatures.TliqChecked && state.associatedDacs) { state.associatedDacs = state.associatedDacs.map((selectedDac) => { if (selectedDac.dacId === dac.dacId) { selectedDac.show.Tliq = false; } return selectedDac; }); }\r\n if (dac.temperatures.TliqChecked && state.associatedDacs) { state.associatedDacs = state.associatedDacs.map((selectedDac) => { if (selectedDac.dacId === dac.dacId) { selectedDac.show.Tliq = true; } return selectedDac; }); }\r\n checkAgroupGraphData();\r\n }}\r\n />\r\n
\r\n
\r\n \r\n { `${t('temperaturaEntradaAgua')}` }\r\n \r\n \r\n
\r\n {dac.dacId}\r\n
\r\n
\r\n ))}\r\n\r\n {isFancoil && state.associatedDutsDuoId.map((dutDuo) => (\r\n \r\n onClickDutDuoCheckboxTemperature(dutDuo, 'Temperature')}\r\n />\r\n
\r\n
\r\n \r\n { `${t('temperaturaSaidaAgua')}` }\r\n \r\n \r\n
\r\n {dutDuo.dutDuoId}\r\n
\r\n
\r\n ))}\r\n\r\n {isFancoil && state.associatedDutsDuoId.map((dutDuo) => (\r\n \r\n onClickDutDuoCheckboxTemperature(dutDuo, 'Temperature_1')}\r\n />\r\n
\r\n
\r\n \r\n { `${t('temperaturaEntradaAgua')}` }\r\n \r\n \r\n
\r\n {dutDuo.dutDuoId}\r\n
\r\n
\r\n ))}\r\n\r\n {state.groupGraph && (isFancoil || isVav) && valveOn && (\r\n \r\n {\r\n state.valveOnChecked = !state.valveOnChecked;\r\n render();\r\n }}\r\n />\r\n \r\n {valveOn.name}\r\n \r\n \r\n \r\n )}\r\n {state.groupGraph && isFancoil && fanStatus && (\r\n \r\n {\r\n state.fanStatusChecked = !state.fanStatusChecked;\r\n render();\r\n }}\r\n />\r\n \r\n {fanStatus.name}\r\n \r\n \r\n \r\n )}\r\n {state.groupGraph && (isFancoil || isVav) && thermOn && (\r\n \r\n {\r\n state.thermOnChecked = !state.thermOnChecked;\r\n render();\r\n }}\r\n />\r\n \r\n {thermOn.name}\r\n \r\n \r\n \r\n )}\r\n {state.groupGraph && isVav && lock && (\r\n \r\n {\r\n state.lockChecked = !state.lockChecked;\r\n render();\r\n }}\r\n />\r\n \r\n {lock.name}\r\n \r\n \r\n \r\n )}\r\n
0 ? `${200 + (state.selectedDacs.length * 50)}px` : '0' }}>\r\n {state.groupGraph && state.associatedDacsId.map((dac, index) => (\r\n \r\n {\r\n dac.checked = !dac.checked; render();\r\n if (!dac.checked && state.selectedDacs) state.selectedDacs = state.associatedDacs.filter((selectedDac) => selectedDac.dacId !== dac.dacId);\r\n if (dac.checked && state.selectedDacs) state.selectedDacs = state.associatedDacs;\r\n checkAgroupGraphData();\r\n }}\r\n />\r\n \r\n {isFancoil ? t('monitoramentoDaValvula') : dac.dacId}\r\n \r\n \r\n \r\n ))}\r\n
\r\n
\r\n\r\n {isCarrierEcosplit && !state.groupGraph && !!state.associatedDacs?.length && (\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n \r\n

\r\n {t('compressores')}\r\n

\r\n

{t('statusL1')}

\r\n
\r\n {!state.loading && state.associatedDacs.map(({ dacId, chartData }, index) => (\r\n \r\n
\r\n

\r\n {dacId}\r\n

\r\n
\r\n
\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]}\r\n tickFormatter={(hour) => (state.numDays && state.numDays > 1\r\n ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))}\r\n ticks={state.xTicks}\r\n domain={state.xDomain}\r\n />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={[0, 1]} interval={0} domain={[0, 1]} />\r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormaterDac} />\r\n {chartData.vars?.Lcmp && (\r\n chartData.vars?.Lcmp.L[i]}\r\n dot={false}\r\n strokeWidth={1.5}\r\n animationDuration={300}\r\n strokeDasharray=\"\"\r\n />\r\n )}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n )}\r\n\r\n {isCarrierEcosplit && (\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n

{t('modoOperacao')}

\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={state.modeTicks} interval={0} domain={state.modeLimits} />\r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {operationMode && operationMode.y[i]} dot={false} stroke={operationMode.color} strokeWidth={1.5} animationDuration={300} strokeDasharray={operationMode.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n
\r\n
\r\n )}\r\n {isVav && profile.manageAllClients && (\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n

{t('modoOperacao')}

\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={state.vavModeTicks} interval={0} domain={state.vavModeLimits} />\r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {mode && mode.y[i]} dot={false} stroke={mode.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={mode.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n
\r\n
\r\n )}\r\n {isVav && !state.groupGraph && (\r\n <>\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n

{t('termostato')}

\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={[0, 1]} interval={0} domain={[0, 1]} />\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {thermOn && thermOn.y[i]} dot={false} stroke={thermOn.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={thermOn.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n

{t('atuadorVav')}

\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={[0, 1]} interval={0} domain={[0, 1]} />\r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {valveOn && valveOn.y[i]} dot={false} stroke={valveOn.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={valveOn.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n

\r\n {t('Bloqueio')}\r\n (Termostato)\r\n

\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={[0, 1]} interval={0} domain={[0, 1]} />\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {lock && lock.y[i]} dot={false} stroke={lock.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={lock.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n )}\r\n\r\n {isFancoil && (\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n \r\n {t('modoOperacao')}\r\n \r\n \r\n\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n }\r\n ticks={state.fancoilModeTicks}\r\n interval={0}\r\n domain={state.fancoilModeLimits}\r\n />\r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {operationMode && operationMode.y[i]} dot={false} stroke={operationMode.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={operationMode.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n {isFancoil && !state.groupGraph && (\r\n <>\r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n \r\n {t('valvulaDeAgua')}\r\n \r\n \r\n\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={[0, 1]} interval={0} domain={[0, 1]} />\r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {valveOn && valveOn.y[i]} dot={false} stroke={valveOn.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={valveOn.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n \r\n {t('ventilador')}\r\n \r\n \r\n\r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]} tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))} ticks={state.xTicks} domain={state.xDomain} />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={[0, 1]} interval={0} domain={[0, 1]} />\r\n\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {fanStatus && fanStatus.y[i]} dot={false} stroke={fanStatus.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={fanStatus.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {state.loading && (\r\n \r\n \r\n \r\n )}\r\n \r\n {t('termostato')}\r\n \r\n \r\n {!state.loading && (\r\n \r\n i)}\r\n onMouseDown={onMouseDown}\r\n onMouseMove={onMouseMove}\r\n onMouseUp={zoom}\r\n >\r\n \r\n commonX[i]}\r\n tickFormatter={(hour) => (state.numDays && state.numDays > 1 ? tickXLabelFormatterDay(hour, state.dateStart) : tickXLabelFormatterHour(hour))}\r\n ticks={state.xTicks}\r\n domain={state.xDomain}\r\n />\r\n {state.numDays && state.numDays > 1 ? ( commonX[i]} ticks={state.xTicks} domain={state.xDomain} />) : null}\r\n } ticks={[0, 1]} interval={0} domain={[0, 1]} />\r\n tooltipXLabelFormatter(hour, state.dateStart)} formatter={toolTipFormater} />\r\n {thermOn && thermOn.y[i]} dot={false} stroke={thermOn.color} strokeWidth={2.5} animationDuration={300} strokeDasharray={thermOn.strokeDasharray} />}\r\n {state.refAreaLeft && state.refAreaRight ? (\r\n \r\n ) : null}\r\n \r\n \r\n )}\r\n \r\n \r\n \r\n )}\r\n \r\n )}\r\n
\r\n );\r\n};\r\n","import styled from 'styled-components';\r\n\r\nexport const ContainerCardWater = styled.div`\r\n width: 100%;\r\n height: 324px;\r\n margin-top: 35px;\r\n margin-bottom: 49px;\r\n .tooltip .tooltiptext::after {\r\n content: \" \";\r\n position: absolute;\r\n top: 100%; /* At the bottom of the tooltip */\r\n left: 50%;\r\n margin-left: -5px;\r\n border-width: 5px;\r\n border-style: solid;\r\n border-color: black transparent transparent transparent;\r\n }\r\n`;\r\n\r\nexport const TableContainer = styled.div`\r\n::-webkit-scrollbar-track {\r\n background-color: #F4F4F4;\r\n}\r\nscrollbar-width: thin;\r\n::-webkit-scrollbar-thumb {\r\n background: #dad7d7;\r\n}\r\ndisplay: flex;\r\nflex-direction: column;\r\nalign-items: center;\r\ngap: 10px;\r\nmargin-left: 10px;\r\n`;\r\n\r\nexport const NoAnalisysSelected = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n justify-content: center;\r\n align-items: center;\r\n height: 250px;\r\n margin-left: 10px;\r\n width: 96%;\r\n border: 1px solid #0000000F;\r\n border-radius: 10px;\r\n\r\n background: #F9F9F9;\r\n\r\n color: #7D7D7D;\r\n\r\n span {\r\n margin: 0;\r\n\r\n font-family: Inter;\r\n font-size: 13px;\r\n font-weight: 700;\r\n text-align: center;\r\n }\r\n\r\n p {\r\n margin: 0;\r\n\r\n font-family: Inter;\r\n font-size: 10px;\r\n font-weight: 500;\r\n text-align: center;\r\n }\r\n`;\r\n\r\nexport const BackgroundCardItem = styled.div`\r\n display: grid;\r\n grid-template-columns: 150px 6px 150px auto;\r\n height: 5px;\r\n span {\r\n border-top: 1px solid lightgrey;\r\n border-right: 1px solid lightgrey;\r\n border-radius: 6px 6px 0px 0px;\r\n }\r\n`;\r\n\r\nexport const NameCardItem = styled.span`\r\n border-right: 1px solid lightgrey;\r\n text-align: center;\r\n font-size: 90%;\r\n border: 1px solid lightgrey;\r\n border-radius: 5px 5px 0px 0px;\r\n padding: 2px;\r\n margin-right: 3px;\r\n display: flex;\r\n justify-content: center;\r\n`;\r\n\r\nexport const BorderSpan = styled.span`\r\n border-bottom: 1px solid lightgrey;\r\n position: absolute;\r\n width: 100%;\r\n bottom: 0px;\r\n`;\r\n\r\nexport const ContainerCalendar = styled.div`\r\n font-size: 12px;\r\n display: flex;\r\n position: relative;\r\n`;\r\n\r\nexport const ContainerInfoCalendar = styled.div`\r\n font-size: 12px;\r\n display: flex;\r\n align-items: center;\r\n gap: 24px;\r\n span {\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 600;\r\n line-height: normal;\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nexport const ContainerDatesCalendar = styled.div`\r\n position: absolute;\r\n display: grid;\r\n justify-items: center;\r\n grid-template-columns: 1fr 1fr 1fr;\r\n z-index: 12;\r\n bottom: -540%;\r\n right: -50px;\r\n width: 200px;\r\n height: 90px;\r\n border: 1px solid #E3E3E3;\r\n border-radius: 5px;\r\n background: #FFFFFF;\r\n padding: 16px;\r\n overflow: scroll;\r\n overflow-x: hidden;\r\n`;\r\n\r\nfunction isSelected(selected) {\r\n if (selected) {\r\n return 'rgba(54, 59, 196, 1)';\r\n }\r\n return '#FFFFFF';\r\n}\r\n\r\nexport const ContainerItemDateCalendar = styled.div<{haveData, selected}>(({ haveData, selected }) => `\r\n background-color: ${haveData ? isSelected(selected) : 'rgba(142, 142, 142, 0.2)'};\r\n border-radius: 5px;\r\n color: ${selected ? 'white' : 'black'}\r\n padding: 2px 5px 0px 5px;\r\n text-align: center;\r\n margin-bottom: 8px;\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 400;\r\n line-height: 14.52px;\r\n cursor: ${haveData ? 'pointer' : 'not-allowed'};\r\n`);\r\n","import moment from 'moment';\r\n\r\nexport const handleGetDatesParams = (\r\n date: string | Date,\r\n format: string,\r\n chartMode: string | 'yearMode' | 'monthMode',\r\n isComparing: boolean,\r\n cardYear?: string | number,\r\n): { startDate: moment.Moment; endDate: moment.Moment } => {\r\n let dateParams = {\r\n startDate: moment(date, format).startOf('month').utcOffset(0, true),\r\n endDate: moment(date, format).endOf('month').utcOffset(0, true),\r\n };\r\n\r\n if (chartMode === 'yearMode') {\r\n dateParams = {\r\n startDate: moment(date, format).startOf('year').utcOffset(0, true),\r\n endDate: moment(date, format).endOf('year').add(1, 'month').endOf('month')\r\n .utcOffset(0, true),\r\n };\r\n }\r\n\r\n if (chartMode === 'yearMode' && isComparing) {\r\n dateParams = {\r\n startDate: moment(date, format).startOf('year').utcOffset(0, true),\r\n endDate: moment(date, format).endOf('year').endOf('month').utcOffset(0, true),\r\n };\r\n }\r\n\r\n if (chartMode === 'yearMode' && moment(date, format).year() === moment().year() && !isComparing) {\r\n dateParams = {\r\n startDate: moment().subtract(1, 'years').startOf('month').utcOffset(0, true),\r\n endDate: moment().endOf('month').utcOffset(0, true),\r\n };\r\n }\r\n\r\n if (chartMode === 'yearMode' && Number(cardYear) === moment().year() && !isComparing) {\r\n dateParams = {\r\n startDate: moment(date, format).subtract(1, 'years').startOf('month').utcOffset(0, true),\r\n endDate: moment(date, format).endOf('month').utcOffset(0, true),\r\n };\r\n }\r\n\r\n return dateParams;\r\n};\r\n","import moment from 'moment';\r\nimport {\r\n ReactNode, createContext, useContext, useState,\r\n} from 'react';\r\n\r\ninterface EnergyCardContextData {\r\n cardDate: { isApiDate: boolean; verifyDate: boolean; month: string; year: string, isCurrentMonth: boolean };\r\n isLoadingFilters: boolean;\r\n handleSetIsLoadingFilters: (value: boolean) => void;\r\n cardControlTab: string;\r\n handleChangeTab: (newTab: string) => void;\r\n tabIsLoading: {\r\n insights: boolean;\r\n history: boolean;\r\n trends: boolean;\r\n };\r\n handleSetTabIsLoading: (value: boolean, tab: string) => void;\r\n handleSetCardDate: (date) => void;\r\n}\r\n\r\nconst EnergyCardContext = createContext({} as EnergyCardContextData);\r\n\r\ninterface EnergyCardProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const EnergyCardProvider: React.FC = ({\r\n children,\r\n}) => {\r\n const [isLoadingFilters, setIsLoadingFilters] = useState(true);\r\n const [cardControlTab, setCardControlTab] = useState('insights');\r\n const currentMonth = moment().format('MMMM');\r\n const currentYear = moment().format('YYYY');\r\n\r\n const [cardDate, setCardDate] = useState<{\r\n isApiDate: boolean;\r\n verifyDate: boolean;\r\n month: string;\r\n year: string;\r\n isCurrentMonth: boolean;\r\n }>({\r\n isApiDate: false,\r\n verifyDate: false,\r\n month: currentMonth,\r\n year: currentYear,\r\n isCurrentMonth: true,\r\n });\r\n\r\n const [tabIsLoading, setTabIsLoading] = useState<{\r\n insights: boolean;\r\n history: boolean;\r\n trends: boolean;\r\n }>({\r\n insights: true,\r\n history: false,\r\n trends: false,\r\n });\r\n\r\n const handleSetCardDate = (date) => {\r\n setCardDate((prevState) => ({ ...prevState, ...date, isCurrentMonth: verifyIsCurrentMonth(date) }));\r\n };\r\n\r\n const handleSetIsLoadingFilters = (value: boolean) => setIsLoadingFilters(value);\r\n\r\n const handleChangeTab = (newTab: string) => setCardControlTab(newTab);\r\n\r\n const handleSetTabIsLoading = (value: boolean, tab: string) => {\r\n setTabIsLoading((prevState) => ({\r\n ...prevState,\r\n [tab]: value,\r\n }));\r\n };\r\n\r\n function verifyIsCurrentMonth(date) {\r\n const currentMonth = moment().format('MMMM');\r\n const currentYear = moment().format('YYYY');\r\n return date?.month === currentMonth && date?.year === currentYear;\r\n }\r\n\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nexport const useEnergyCard = () => useContext(EnergyCardContext);\r\n","import styled, { css } from 'styled-components';\r\n\r\nexport const SelectOptionDropdownWrapper = styled.div`\r\n position: relative;\r\n`;\r\n\r\nexport const Dropdown = styled.div`\r\n position: absolute;\r\n top: 115%;\r\n right: 0%;\r\n width: 190px;\r\n border: 1px solid #E3E3E3;\r\n border-radius: 5px;\r\n background: #FFFFFF;\r\n padding: 16px;\r\n z-index: 9999;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 12px;\r\n`;\r\n\r\nexport const DropdownHeader = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n gap: 24px;\r\n`;\r\n\r\nexport const DropdownContent = styled.div`\r\n display: grid;\r\n grid-template-columns: 1fr 1fr 1fr;\r\n justify-items: center;\r\n`;\r\n\r\nexport const DropdownOption = styled.span<{ selected?: boolean; disabled?: boolean }>`\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n width: 44px;\r\n font-family: Inter;\r\n border-radius: 5px;\r\n margin-bottom: 8px;\r\n font-family: Inter;\r\n font-size: 12px;\r\n font-weight: 500;\r\n color: black;\r\n\r\n cursor: pointer;\r\n\r\n ${({ disabled = false }) => disabled && css`\r\n background-color: rgba(142, 142, 142, 0.2);\r\n\r\n cursor: not-allowed;\r\n `}\r\n\r\n ${({ selected = false }) => selected && css`\r\n color: #FFFFFF;\r\n background-color: #363BC4;\r\n\r\n cursor: pointer;\r\n `}\r\n`;\r\n\r\nexport const DropdownYearButtons = styled.div<{ disabled?: boolean }>`\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n\r\n border: 1px solid #E0E0E0;\r\n border-radius: 10px;\r\n width: 26px;\r\n height: 26px;\r\n\r\n path{\r\n fill: black;\r\n }\r\n\r\n cursor: pointer;\r\n\r\n ${({ disabled = false }) => disabled && css`\r\n cursor: not-allowed;\r\n\r\n path{\r\n fill: #B7B7B7\r\n }\r\n `}\r\n`;\r\n","export const capitalizeFirstLetter = (text: string) => text.charAt(0).toUpperCase() + text.slice(1);\r\n","import moment from 'moment';\r\nimport {\r\n Dropdown,\r\n DropdownContent,\r\n DropdownHeader,\r\n DropdownOption,\r\n DropdownYearButtons,\r\n SelectOptionDropdownWrapper,\r\n} from './styles';\r\nimport { ClickAwayListener } from '@material-ui/core';\r\nimport { ArrowLeftIcon, ArrowRightIcon } from '~/icons';\r\nimport { capitalizeFirstLetter } from '~/helpers/capitalizeFirstLetter';\r\n\r\nconst YEAR_MODE = 'yearMode';\r\nconst MONTH_MODE = 'monthMode';\r\n\r\ninterface SelectOptionDropdownProps {\r\n open: boolean;\r\n handleClickOutside: () => void;\r\n yearSelected: string;\r\n monthSelected: string;\r\n yearOptions: {\r\n label: string;\r\n value: string | number;\r\n hasData: boolean;\r\n }[];\r\n monthOptions: {\r\n label: string;\r\n value: string | number;\r\n hasData: boolean;\r\n }[];\r\n mode: string;\r\n isLoading: boolean;\r\n handleChangeDate: (value: string) => void;\r\n children: React.ReactNode;\r\n}\r\n\r\nexport const SelectOptionDropdown: React.FC = ({\r\n open,\r\n yearSelected,\r\n monthSelected,\r\n yearOptions,\r\n monthOptions,\r\n mode,\r\n handleClickOutside,\r\n handleChangeDate,\r\n isLoading,\r\n children,\r\n}) => {\r\n const handleGetYearIndex = (label) => yearOptions.findIndex((year) => moment.utc(year.value).isSame(moment(label, 'YYYY'), 'year'));\r\n\r\n const handleGetMonthIndex = (monthLabel, yearLabel) => monthOptions.findIndex((month) => moment\r\n .utc(month.value)\r\n .isSame(moment(`${monthLabel} ${yearLabel}`, 'MMMM YYYY'), 'month'));\r\n\r\n const handleMonthHasData = (monthLabel, yearLabel) => {\r\n const month = monthOptions.find((month) => moment\r\n .utc(month.value)\r\n .isSame(moment(`${monthLabel} ${yearLabel}`, 'MMMM YYYY'), 'month'));\r\n\r\n return month?.hasData;\r\n };\r\n\r\n const checkCanClick = (direction) => {\r\n const currentYearIndex = handleGetYearIndex(yearSelected);\r\n\r\n if (direction > 0) {\r\n return yearOptions.some(\r\n (year, index) => currentYearIndex < index && year.hasData,\r\n );\r\n }\r\n return yearOptions\r\n .slice()\r\n .reverse()\r\n .some(\r\n (year, index) => yearOptions.length - (currentYearIndex + 1) < index && year.hasData,\r\n );\r\n };\r\n\r\n const handleSelect = (direction) => {\r\n if (!checkCanClick(direction)) return;\r\n const currentYearIndex = handleGetYearIndex(yearSelected);\r\n\r\n let yearLabel = yearSelected;\r\n let monthLabel = monthSelected;\r\n\r\n let breakLoop = false;\r\n\r\n if (direction > 0) {\r\n yearOptions.forEach((year, index) => {\r\n if (currentYearIndex < index && year.hasData && !breakLoop) {\r\n yearLabel = year.label;\r\n breakLoop = true;\r\n }\r\n });\r\n\r\n if (!handleMonthHasData(monthLabel, yearLabel)) {\r\n const currentMonthIndex = handleGetMonthIndex(monthLabel, yearLabel);\r\n\r\n let breakLoopMonth = false;\r\n\r\n monthOptions.forEach((month, index) => {\r\n if (currentMonthIndex < index && month.hasData && !breakLoopMonth) {\r\n monthLabel = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n\r\n monthOptions\r\n .slice()\r\n .reverse()\r\n .forEach((month, index) => {\r\n if (\r\n monthOptions.length - (currentMonthIndex + 1) < index\r\n && month.hasData\r\n && !breakLoopMonth\r\n ) {\r\n monthLabel = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n }\r\n } else {\r\n yearOptions\r\n .slice()\r\n .reverse()\r\n .forEach((year, index) => {\r\n if (\r\n yearOptions.length - (currentYearIndex + 1) < index\r\n && year.hasData\r\n && !breakLoop\r\n ) {\r\n yearLabel = year.label;\r\n breakLoop = true;\r\n }\r\n });\r\n\r\n if (!handleMonthHasData(monthLabel, yearLabel)) {\r\n const currentMonthIndex = handleGetMonthIndex(monthLabel, yearLabel);\r\n\r\n let breakLoopMonth = false;\r\n\r\n monthOptions\r\n .slice()\r\n .reverse()\r\n .forEach((month, index) => {\r\n if (\r\n monthOptions.length - (currentMonthIndex + 1) < index\r\n && month.hasData\r\n && !breakLoopMonth\r\n ) {\r\n monthLabel = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n\r\n monthOptions.forEach((month, index) => {\r\n if (currentMonthIndex < index && month.hasData && !breakLoopMonth) {\r\n monthLabel = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n }\r\n }\r\n\r\n handleChangeDate(`${monthLabel} ${yearLabel}`);\r\n };\r\n\r\n return (\r\n \r\n {children}\r\n {open && (\r\n \r\n \r\n {mode === MONTH_MODE && (\r\n \r\n !isLoading && handleSelect(-1)}\r\n >\r\n \r\n \r\n \r\n {moment(yearSelected).format('YYYY')}\r\n \r\n !isLoading && handleSelect(1)}\r\n >\r\n \r\n \r\n \r\n )}\r\n \r\n {mode === YEAR_MODE\r\n && yearOptions.map((year) => (\r\n !isLoading\r\n && year.hasData\r\n && handleChangeDate(`${monthSelected} ${year.label}`)}\r\n >\r\n {year.label}\r\n \r\n ))}\r\n {mode === MONTH_MODE\r\n && monthOptions.map((month) => {\r\n if (yearSelected === moment(month.value).format('YYYY')) {\r\n return (\r\n !isLoading\r\n && month.hasData\r\n && handleChangeDate(`${month.label} ${yearSelected}`)}\r\n >\r\n {capitalizeFirstLetter(\r\n moment(month.label, 'MMMM').format('MMM'),\r\n )}\r\n \r\n );\r\n }\r\n })}\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n","export const getArrayDaysOfMonth = (mes: number, ano: number): number[] => {\r\n const data = new Date(ano, mes, 0);\r\n\r\n const numDias: number = data.getDate();\r\n\r\n const dias: number[] = Array.from({ length: numDias }, (_, i) => i + 1);\r\n\r\n return dias;\r\n};\r\n","import styled from 'styled-components';\r\n\r\nexport const CheckboxLine = styled.div`\r\n position: relative;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n gap: 8px;\r\n border: 1px solid #C5C5C58F;\r\n border-radius: 8px;\r\n padding: 8px;\r\n\r\n height: 40px;\r\n width: 140px;\r\n\r\n span {\r\n color: #000;\r\n font-family: Inter;\r\n font-size: 10px;\r\n font-style: normal;\r\n font-weight: bold;\r\n line-height: normal;\r\n }\r\n`;\r\n\r\nexport const CheckboxContent = styled.div`\r\n position: relative;\r\n display: flex;\r\n justify-content: flex-start;\r\n align-items: center;\r\n gap: 8px;\r\n border-radius: 8px;\r\n padding: 8px;\r\n\r\n height: 40px;\r\n width: 200px;\r\n margin-left: 60px;\r\n\r\n span {\r\n color: #000;\r\n font-family: Inter;\r\n font-size: 10px;\r\n font-style: normal;\r\n font-weight: 500;\r\n line-height: normal;\r\n }\r\n`;\r\n\r\nexport const SelectedDate = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n gap: 4px;\r\n cursor: pointer;\r\n\r\n span {\r\n color: #000;\r\n font-family: Inter;\r\n font-size: 9px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: normal;\r\n }\r\n`;\r\n\r\nexport const BarchartWrapper = styled.div`\r\n width: 100%;\r\n height: 335px;\r\n`;\r\n","import { SelectOptionDropdown } from '~/components/SelectOptionDropdown';\r\nimport { Checkbox } from '~/components';\r\nimport {\r\n forwardRef, useContext, useEffect, useImperativeHandle,\r\n} from 'react';\r\nimport { getArrayMonthsOfYear } from '~/helpers/getArrayMonthsOfYear';\r\nimport { getArrayDaysOfMonth } from '~/helpers/getArrayDaysOfMonth';\r\nimport { t } from 'i18next';\r\n\r\nimport * as echarts from 'echarts/core';\r\nimport { TooltipComponent, GridComponent } from 'echarts/components';\r\nimport { BarChart } from 'echarts/charts';\r\nimport { CanvasRenderer } from 'echarts/renderers';\r\nimport { useCard } from '~/contexts/CardContext';\r\nimport { ApiResps } from '~/providers';\r\nimport moment from 'moment';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { capitalizeFirstLetter } from '~/helpers/capitalizeFirstLetter';\r\nimport { convertEnergy } from '~/helpers';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport MenuContext from '~/contexts/menuContext';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { ArrowDownIconV2 } from '~/icons';\r\nimport {\r\n BarchartWrapper, CheckboxContent, CheckboxLine, SelectedDate,\r\n} from './style';\r\n\r\necharts.use([TooltipComponent, GridComponent, BarChart, CanvasRenderer]);\r\n\r\nconst daysOfWeek = {\r\n 0: t('diasDaSemana.domingo'),\r\n 1: t('diasDaSemana.segunda'),\r\n 2: t('diasDaSemana.terca'),\r\n 3: t('diasDaSemana.quarta'),\r\n 4: t('diasDaSemana.quinta'),\r\n 5: t('diasDaSemana.sexta'),\r\n 6: t('diasDaSemana.sabado'),\r\n};\r\n\r\nexport const INCOERENT_ICON = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTMiIHZpZXdCb3g9IjAgMCAxMyAxM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uNDQzQzEzLjU0ODYgMTEuMjQ1NiAxMy40MDkzIDExLjAwNTEgMTMuMTMwOSAxMC41MjQxTDguMTEwMjQgMS44NTIwNkM3LjgzMjc2IDEuMzcyNzggNy42OTQwMiAxLjEzMzE0IDcuNTEzMDEgMS4wNTI2NUM3LjM1NTEyIDAuOTgyNDQ4IDcuMTc0ODggMC45ODI0NDggNy4wMTY5OSAxLjA1MjY1QzYuODM1OTggMS4xMzMxNCA2LjY5NzI0IDEuMzcyNzggNi40MTk3NiAxLjg1MjA2WiIgc3Ryb2tlPSIjRjNCMTA3IiBzdHJva2Utd2lkdGg9IjEuMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=';\r\n\r\ninterface ConsumptionChartProps {\r\n chartData: ApiResps['/energy/get-energy-analysis-hist'];\r\n cardYear: string;\r\n cardMonth: string;\r\n chartMode: string;\r\n filterDatesChart: FilterDatesChart;\r\n isLoading: boolean;\r\n handleClickBarChart: (name) => void;\r\n handleChangeComparingChart: (\r\n isComparing: boolean,\r\n yearSelected: string,\r\n monthSelected: string\r\n ) => void;\r\n consumptionChartStyle?: React.CSSProperties;\r\n chartWrapperStyle?: React.CSSProperties;\r\n canCompare?: boolean,\r\n ref?: React.Ref<{ handleUpdateChartDates: (date, format) => void }>;\r\n}\r\n\r\ninterface FilterDatesChart {\r\n yearOptions: {\r\n label: string;\r\n value: string | number;\r\n hasData: boolean;\r\n }[];\r\n monthOptions: {\r\n label: string;\r\n value: string | number;\r\n hasData: boolean;\r\n }[];\r\n}\r\n\r\nexport const ConsumptionChart: React.FC = forwardRef(({\r\n chartData,\r\n cardYear,\r\n cardMonth,\r\n chartMode,\r\n isLoading,\r\n filterDatesChart,\r\n handleClickBarChart,\r\n handleChangeComparingChart,\r\n chartWrapperStyle,\r\n consumptionChartStyle,\r\n canCompare = true,\r\n}, ref) => {\r\n const isDesktop = window.matchMedia('(min-width: 426px)');\r\n const isMobile = !isDesktop.matches;\r\n const profile = getUserProfile();\r\n const isAdmin = profile.permissions?.isAdminSistema;\r\n\r\n const { menuToogle } = useContext(MenuContext);\r\n const { cards } = useCard();\r\n const energyCard = cards.find((card) => card.title === 'Energia');\r\n\r\n const [state, render] = useStateVar({\r\n isComparingChart: false,\r\n isOpenComparingDropdown: false,\r\n monthSelected: cardMonth,\r\n yearSelected: moment().format('YYYY'),\r\n viewTratedData: isAdmin && profile.prefsObj.viewTratedData,\r\n });\r\n\r\n const handleGetYearIndex = (label) => filterDatesChart.yearOptions.findIndex((year) => moment.utc(year.value).isSame(moment(label, 'YYYY'), 'year'));\r\n\r\n const handleGetMonthIndex = (monthLabel, yearLabel) => filterDatesChart.monthOptions.findIndex((month) => moment\r\n .utc(month.value)\r\n .isSame(moment(`${monthLabel} ${yearLabel}`, 'MMMM YYYY'), 'month'));\r\n\r\n const handleMonthHasData = (monthLabel, yearLabel) => {\r\n const month = filterDatesChart.monthOptions.find((month) => moment\r\n .utc(month.value)\r\n .isSame(moment(`${monthLabel} ${yearLabel}`, 'MMMM YYYY'), 'month'));\r\n\r\n return month?.hasData;\r\n };\r\n\r\n const calculateDelta = (firstNumber, secondNumber) => {\r\n if (Number(secondNumber) === 0) {\r\n return Number(firstNumber);\r\n }\r\n const difference = firstNumber - secondNumber;\r\n\r\n return (difference / secondNumber) * 100;\r\n };\r\n\r\n const handleGetDataChart = (data, date, format) => data.find((item) => moment.utc(item.time).format(format) === moment(date, format).format(format));\r\n\r\n const checkProblemDataIsInvalid = (chartData, date, format) => {\r\n const chartValue = handleGetDataChart(chartData, date, format);\r\n const hasProblemData = chartValue?.dataIsInvalid;\r\n return chartValue && hasProblemData;\r\n };\r\n\r\n const checkProblemDataIsProcessed = (chartData, date, format) => {\r\n const chartValue = handleGetDataChart(chartData, date, format);\r\n const hasProblemData = chartValue?.dataIsProcessed;\r\n return chartValue && hasProblemData;\r\n };\r\n\r\n const createDeltaElement = (deltaValue, color) => {\r\n const signal = deltaValue < 0 ? '-' : '+';\r\n const rotation = signal === '+' ? '180deg' : '0';\r\n const formattedValue = formatNumberWithFractionDigits(Math.abs(deltaValue));\r\n\r\n return `\r\n
\r\n \r\n \r\n \r\n ${signal}${formattedValue}%\r\n
\r\n `;\r\n };\r\n\r\n const createIsProblemTooltipHTML = (tooltipTitle) => `\r\n
\r\n ${tooltipTitle}\r\n
\r\n \r\n \r\n \r\n
\r\n ${t('naoFoiPossivelColetar')}\r\n ${t('paraMaisDetalhesHTML')}\r\n
\r\n
\r\n
\r\n `;\r\n\r\n const createIsUnMonitoredTooltipHTML = (tooltipTitle) => `\r\n
\r\n ${tooltipTitle}\r\n
\r\n \r\n \r\n \r\n
\r\n ${t('semMonitoramento')}\r\n ${t('paraMaisDetalhesHTML')}\r\n
\r\n
\r\n
\r\n `;\r\n\r\n const createTratedDataElement = (Icon, title) => `\r\n
\r\n ${Icon}\r\n ${title}\r\n
\r\n `;\r\n\r\n const createTooltipHTML = (\r\n tooltipTitle,\r\n consumptionValue,\r\n consumptionMeasurement,\r\n totalChargedData,\r\n totalUnits,\r\n color,\r\n deltaValue,\r\n flags,\r\n ) => {\r\n let deltaElement = '';\r\n\r\n if (Number(deltaValue)) {\r\n const deltaColor = deltaValue < 0 ? '#5AB365' : '#E00030';\r\n deltaElement = createDeltaElement(deltaValue, deltaColor);\r\n }\r\n\r\n const infoIcon = `\r\n \r\n \r\n \r\n `;\r\n\r\n const warnIcon = `\r\n \r\n \r\n \r\n `;\r\n\r\n let tratedData = '';\r\n\r\n if (state.viewTratedData) {\r\n if (flags.dataIsProcessed) {\r\n tratedData = isAdmin ? createTratedDataElement(infoIcon, t('dadoTratado')) : '';\r\n }\r\n\r\n if (flags.dataIsInvalid) {\r\n tratedData = isAdmin ? createTratedDataElement(warnIcon, t('dadoIncoerente')) : createTratedDataElement(infoIcon, t('dadoTratado'));\r\n }\r\n }\r\n\r\n return `\r\n
\r\n ${tooltipTitle}\r\n
\r\n
\r\n
\r\n Consumo:\r\n
\r\n ${consumptionValue} ${consumptionMeasurement} | R$${totalChargedData}\r\n ${deltaElement}\r\n
\r\n
\r\n
\r\n ${t('ucsContabilizadas')}: ${totalUnits}\r\n ${tratedData}\r\n
\r\n `;\r\n };\r\n\r\n const createTooltipElement = (value, title, color, delta?) => {\r\n const consumption = value?.consumption ?? 0;\r\n const totalCharged = value?.totalCharged ?? 0;\r\n const totalUnits = value?.totalUnits ?? 0;\r\n\r\n const [consumptionValue, consumptionMeasurement] = convertEnergy(consumption);\r\n\r\n const tooltipElement = createTooltipHTML(\r\n title,\r\n formatNumberWithFractionDigits(consumptionValue),\r\n `${consumptionMeasurement}h`,\r\n formatNumberWithFractionDigits(totalCharged),\r\n totalUnits,\r\n color,\r\n delta,\r\n {\r\n dataIsInvalid: value?.dataIsInvalid,\r\n dataIsProcessed: value?.dataIsProcessed,\r\n },\r\n );\r\n\r\n if (!value || value?.consumption === null) {\r\n return createIsUnMonitoredTooltipHTML(title);\r\n }\r\n\r\n if (!isAdmin && value?.dataIsInvalid) {\r\n return createIsProblemTooltipHTML(title);\r\n }\r\n\r\n return tooltipElement;\r\n };\r\n\r\n const tooltipFactory = {\r\n isComparing: {\r\n yearMode: (values) => {\r\n const tooltipDate = moment(values[0].name, 'MMM YYYY');\r\n const monthName = tooltipDate.format('MMMM');\r\n const year = tooltipDate.format('YYYY');\r\n let compareYear = '';\r\n let delta = 0;\r\n\r\n if (year === cardYear) {\r\n compareYear = state.yearSelected;\r\n } else if (Number(cardYear) === moment().year()) {\r\n compareYear = `${Number(state.yearSelected) - 1}`;\r\n }\r\n\r\n const chartValueCompare = handleGetDataChart(\r\n chartData.compare,\r\n `${monthName} ${compareYear}`,\r\n 'MMMM YYYY',\r\n );\r\n\r\n const compareElement = createTooltipElement(chartValueCompare, `${capitalizeFirstLetter(monthName)} ${compareYear}`, '#ACACAC');\r\n\r\n const chartValueCurrent = handleGetDataChart(\r\n chartData.current,\r\n `${monthName} ${year}`,\r\n 'MMMM YYYY',\r\n );\r\n\r\n if (chartValueCurrent?.consumption !== null && chartValueCompare?.consumption !== null) {\r\n delta = Number(calculateDelta(chartValueCurrent?.consumption || 0, chartValueCompare?.consumption || 0).toFixed());\r\n }\r\n\r\n const currentElement = createTooltipElement(chartValueCurrent, `${capitalizeFirstLetter(monthName)} ${year}`, '#92CC9A', delta);\r\n\r\n const divElement = '
';\r\n\r\n return `\r\n
\r\n ${compareElement}\r\n ${divElement}\r\n ${currentElement}\r\n
\r\n `;\r\n },\r\n monthMode: (values) => {\r\n const day = values[0].name;\r\n const monthName = moment(cardMonth, 'MMMM').format('MM');\r\n let delta = 0;\r\n\r\n const compareMonthName = moment(state.monthSelected, 'MMMM').format('MM');\r\n\r\n const chartValueCompare = handleGetDataChart(\r\n chartData.compare,\r\n `${day}/${compareMonthName}/${state.yearSelected}`,\r\n 'DD/MM/YYYY',\r\n );\r\n\r\n const compareElement = createTooltipElement(chartValueCompare, `${day}/${compareMonthName}/${state.yearSelected}`, '#ACACAC');\r\n\r\n const chartValueCurrent = handleGetDataChart(\r\n chartData.current,\r\n `${day}/${monthName}/${cardYear}`,\r\n 'DD/MM/YYYY',\r\n );\r\n\r\n if (chartValueCurrent?.consumption !== null && chartValueCompare?.consumption !== null) {\r\n delta = Number(calculateDelta(chartValueCurrent?.consumption || 0, chartValueCompare?.consumption || 0).toFixed());\r\n }\r\n\r\n const currentElement = createTooltipElement(chartValueCurrent, `${day}/${monthName}/${cardYear}`, '#92CC9A', delta);\r\n\r\n const divElement = '
';\r\n\r\n return `\r\n
\r\n ${compareElement}\r\n ${divElement}\r\n ${currentElement}\r\n
\r\n `;\r\n },\r\n },\r\n isNotComparing: {\r\n yearMode: (values) => {\r\n const tooltipDate = moment(values[0].name, 'MMM YYYY');\r\n const monthName = tooltipDate.format('MMMM');\r\n const year = tooltipDate.format('YYYY');\r\n\r\n const chartValueCurrent = handleGetDataChart(\r\n chartData.current,\r\n `${monthName} ${year}`,\r\n 'MMMM YYYY',\r\n );\r\n\r\n const element = createTooltipElement(chartValueCurrent, `${capitalizeFirstLetter(monthName)} ${year}`, '#92CC9A');\r\n\r\n return `\r\n
\r\n ${element}\r\n
\r\n `;\r\n },\r\n monthMode: (values) => {\r\n const day = values[0].name;\r\n const monthName = moment(cardMonth, 'MMMM').format('MM');\r\n\r\n const chartValueCurrent = handleGetDataChart(\r\n chartData.current,\r\n `${day}/${monthName}/${cardYear}`,\r\n 'DD/MM/YYYY',\r\n );\r\n\r\n const element = createTooltipElement(chartValueCurrent, `${day}/${monthName}/${cardYear}`, '#92CC9A');\r\n\r\n return `\r\n
\r\n ${element}\r\n
`;\r\n },\r\n },\r\n };\r\n\r\n const handleGetXAxisYearMode = () => {\r\n const monthsOfYear = getArrayMonthsOfYear();\r\n\r\n const monthsOfYearFormatted = monthsOfYear.map(\r\n (prevYear) => `${prevYear} ${cardYear}`,\r\n );\r\n\r\n if (Number(cardYear) === moment().year() && !state.isComparingChart) {\r\n const currentMonth = moment().month();\r\n\r\n const prevYearMonths = monthsOfYear.slice(-(12 - currentMonth));\r\n const currentYearMonths = monthsOfYear.slice(0, currentMonth + 1);\r\n\r\n const prevYearMonthsFormatted = prevYearMonths.map(\r\n (prevYear) => `${prevYear} ${isMobile ? (Number(cardYear) - 1).toString().slice(-2) : Number(cardYear) - 1}`,\r\n );\r\n const currentYearMonthsFormatted = currentYearMonths.map(\r\n (prevYear) => `${prevYear} ${isMobile ? (Number(cardYear)).toString().slice(-2) : Number(cardYear)}`,\r\n );\r\n\r\n return [...prevYearMonthsFormatted, ...currentYearMonthsFormatted];\r\n }\r\n\r\n if (state.isComparingChart) {\r\n return monthsOfYearFormatted;\r\n }\r\n\r\n return [\r\n ...monthsOfYearFormatted,\r\n `${monthsOfYear[0]} ${Number(cardYear) + 1}`,\r\n ];\r\n };\r\n\r\n const xAxisFactory = {\r\n yearMode: handleGetXAxisYearMode(),\r\n monthMode: getArrayDaysOfMonth(\r\n Number(moment().month(cardMonth).format('M')),\r\n Number(cardYear),\r\n ),\r\n };\r\n\r\n const xAxisFormatterFactory = {\r\n yearMode: (value) => {\r\n const [month, year] = value.split(' ');\r\n const date = `${month} ${year}`;\r\n const dateChart = `${month} ${state.yearSelected}`;\r\n const hasProblemDataIsProcessed = checkProblemDataIsProcessed(chartData.current, date, 'MMM YYYY') || checkProblemDataIsProcessed(chartData.compare, dateChart, 'MMMM YYYY');\r\n\r\n const hasProblemDataIsInvalid = checkProblemDataIsInvalid(chartData.current, date, 'MMM YYYY') || checkProblemDataIsInvalid(chartData.compare, dateChart, 'MMMM YYYY');\r\n\r\n let problemDataIndicator = '';\r\n\r\n if (state.viewTratedData) {\r\n if (hasProblemDataIsProcessed) {\r\n problemDataIndicator = isAdmin ? '\\n{incoerentIcon| }' : '';\r\n }\r\n\r\n if (hasProblemDataIsInvalid) {\r\n problemDataIndicator = isAdmin ? '\\n{warnIcon| }' : '\\n{incoerentIcon| }';\r\n }\r\n }\r\n\r\n return state.isComparingChart ? `${month}${problemDataIndicator}` : `${month}\\n{bold|${year}}${problemDataIndicator}`;\r\n },\r\n monthMode: (value) => {\r\n const date = `${cardMonth} ${cardYear} ${value}`;\r\n const dateChart = `${state.monthSelected} ${state.yearSelected} ${value}`;\r\n const monthDay = moment(date, 'MMMM YYYY DD').format('DD');\r\n const weekDayIndex = moment(date, 'MMMM YYYY DD').day();\r\n\r\n let result = `${monthDay}\\n`;\r\n\r\n let problemDataIndicator = '';\r\n\r\n if (weekDayIndex === 0 && !state.isComparingChart) {\r\n result = `{bold|${result}${daysOfWeek[weekDayIndex][0]}}`;\r\n } else if (!state.isComparingChart) {\r\n result += daysOfWeek[weekDayIndex][0];\r\n }\r\n\r\n const hasProblemDataIsProcessed = checkProblemDataIsProcessed(chartData.current, date, 'MMMM YYYY DD') || checkProblemDataIsProcessed(chartData.compare, dateChart, 'MMMM YYYY DD');\r\n\r\n const hasProblemDataIsInvalid = checkProblemDataIsInvalid(chartData.current, date, 'MMMM YYYY DD') || checkProblemDataIsInvalid(chartData.compare, dateChart, 'MMMM YYYY DD');\r\n\r\n if (state.viewTratedData) {\r\n if (hasProblemDataIsProcessed) {\r\n problemDataIndicator = isAdmin ? '\\n{incoerentIcon| }' : '';\r\n }\r\n\r\n if (hasProblemDataIsInvalid) {\r\n problemDataIndicator = isAdmin ? '\\n{warnIcon| }' : '\\n{incoerentIcon| }';\r\n }\r\n }\r\n\r\n return result + problemDataIndicator;\r\n },\r\n };\r\n\r\n const yAxisFormatter = (value) => {\r\n const [valueDemandConverted, valueDemandUnitMeasurement] = convertEnergy(value);\r\n\r\n return `${formatNumberWithFractionDigits(\r\n valueDemandConverted,\r\n )} ${valueDemandUnitMeasurement}h`;\r\n };\r\n\r\n const barWidthFactory = {\r\n isComparing: {\r\n yearMode: {\r\n isExpanded: '15px',\r\n isNotExpanded: '7px',\r\n },\r\n monthMode: {\r\n isExpanded: '9',\r\n isNotExpanded: '4px',\r\n },\r\n },\r\n isNotComparing: {\r\n yearMode: {\r\n isExpanded: '30px',\r\n isNotExpanded: '18px',\r\n },\r\n monthMode: {\r\n isExpanded: '15px',\r\n isNotExpanded: '7px',\r\n },\r\n },\r\n };\r\n\r\n const formatSeriesChart = (data, isAdmin) => {\r\n if (isAdmin) {\r\n if (data?.dataIsInvalid) {\r\n return {\r\n value: data.consumption,\r\n itemStyle: {\r\n ...(data.consumption < 0 && { borderRadius: [0, 0, 5, 5] }),\r\n },\r\n };\r\n }\r\n\r\n return data?.consumption;\r\n }\r\n\r\n if (data?.dataIsInvalid) {\r\n return 0;\r\n }\r\n\r\n return data?.consumption;\r\n };\r\n\r\n const seriesFactory = (chartData) => {\r\n const currentFormattedData = chartData.current.map((data) => formatSeriesChart(data, isAdmin));\r\n const compareFormattedData = chartData.compare.map((data) => formatSeriesChart(data, isAdmin));\r\n\r\n return {\r\n isComparing: [\r\n {\r\n name: 'Consumo Compare',\r\n type: 'bar',\r\n barWidth:\r\n barWidthFactory.isComparing[chartMode][\r\n energyCard?.isExpanded ? 'isExpanded' : 'isNotExpanded'\r\n ],\r\n color: '#ACACAC',\r\n data: compareFormattedData,\r\n itemStyle: {\r\n borderRadius: [5, 5, 0, 0],\r\n padding: [0, 20, 0, 0],\r\n },\r\n },\r\n {\r\n name: 'Consumo',\r\n type: 'bar',\r\n barWidth:\r\n barWidthFactory.isComparing[chartMode][\r\n energyCard?.isExpanded ? 'isExpanded' : 'isNotExpanded'\r\n ],\r\n color: '#92CC9A',\r\n data: currentFormattedData,\r\n itemStyle: {\r\n borderRadius: [5, 5, 0, 0],\r\n padding: [0, 20, 0, 0],\r\n },\r\n },\r\n ],\r\n isNotComparing: [\r\n {\r\n name: 'Consumo',\r\n type: 'bar',\r\n barWidth: isMobile ? '12px' : barWidthFactory.isNotComparing[chartMode][\r\n energyCard?.isExpanded ? 'isExpanded' : 'isNotExpanded'\r\n ],\r\n color: '#92CC9A',\r\n data: currentFormattedData,\r\n itemStyle: {\r\n borderRadius: [5, 5, 0, 0],\r\n padding: [0, 20, 0, 0],\r\n },\r\n },\r\n ],\r\n };\r\n };\r\n\r\n const handleRenderBarchart = (chartData) => {\r\n const barchartDom = document.getElementById('barchart-demanda');\r\n\r\n if (!barchartDom) return;\r\n\r\n echarts.dispose(barchartDom);\r\n const barChart = echarts.init(barchartDom);\r\n\r\n window.addEventListener('resize', () => {\r\n barChart.resize();\r\n });\r\n\r\n barChart.on('click', 'series', (options) => {\r\n const barClicked = moment(options.name, 'MMM YYYY');\r\n\r\n state.monthSelected = barClicked.format('MMMM');\r\n handleClickBarChart(options);\r\n });\r\n\r\n const barchartOptions = {\r\n tooltip: {\r\n trigger: 'axis',\r\n formatter:\r\n tooltipFactory[state.isComparingChart ? 'isComparing' : 'isNotComparing'][\r\n chartMode\r\n ],\r\n axisPointer: {\r\n type: 'none',\r\n },\r\n shadowStyle: {\r\n shadowBlur: 2,\r\n shadowOffsetY: 0,\r\n shadowOffsetX: 1,\r\n },\r\n lineStyle: {\r\n width: '40px',\r\n },\r\n },\r\n grid: {\r\n left: '3%',\r\n right: '5%',\r\n bottom: '2%',\r\n top: '14px',\r\n width: '92%',\r\n containLabel: true,\r\n },\r\n xAxis: [\r\n {\r\n type: 'category',\r\n data: xAxisFactory[chartMode],\r\n boundaryGap: false,\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n axisLabel: {\r\n show: true,\r\n align: 'center',\r\n margin: 8,\r\n showMaxLabel: true,\r\n interval: 0,\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n fontSize: '10',\r\n lineHeight: 12,\r\n rich: {\r\n bold: {\r\n fontWeight: 'bold',\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n fontSize: '10',\r\n },\r\n warnIcon: {\r\n backgroundColor: {\r\n image: WARNING_ICON,\r\n },\r\n },\r\n incoerentIcon: {\r\n backgroundColor: {\r\n image: INCOERENT_ICON,\r\n },\r\n },\r\n },\r\n formatter: xAxisFormatterFactory[chartMode],\r\n },\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n },\r\n ],\r\n yAxis: [\r\n {\r\n type: 'value',\r\n position: 'left',\r\n splitNumber: 5,\r\n axisLabel: {\r\n align: 'right',\r\n fontSize: 9,\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n formatter: yAxisFormatter,\r\n },\r\n offset: 18,\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n splitLine: {\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n },\r\n ],\r\n series:\r\n seriesFactory(chartData)[\r\n state.isComparingChart ? 'isComparing' : 'isNotComparing'\r\n ],\r\n };\r\n\r\n barchartOptions && barChart.setOption(barchartOptions);\r\n\r\n window.removeEventListener('resize', () => {\r\n barChart.resize();\r\n });\r\n };\r\n\r\n const handleUpdateChartDates = (date, format) => {\r\n const newDate = moment(date, format);\r\n\r\n state.yearSelected = newDate.format('YYYY');\r\n state.monthSelected = newDate.format('MMMM');\r\n render();\r\n };\r\n\r\n useImperativeHandle(ref, () => ({\r\n handleUpdateChartDates,\r\n }), []);\r\n\r\n useEffect(() => {\r\n chartData.current && chartData.compare && handleRenderBarchart(chartData);\r\n }, [chartData, chartMode, state.isComparingChart, energyCard?.isExpanded, menuToogle, state.viewTratedData]);\r\n\r\n function onClickComparePeriod() {\r\n state.isComparingChart = !state.isComparingChart;\r\n\r\n state.yearSelected = cardYear;\r\n state.monthSelected = cardMonth;\r\n\r\n const currentYearIndex = handleGetYearIndex(state.yearSelected);\r\n let breakLoop = false;\r\n\r\n filterDatesChart.yearOptions\r\n .slice()\r\n .reverse()\r\n .forEach((year, index) => {\r\n if (filterDatesChart.yearOptions.length - (currentYearIndex + 1) < index && year.hasData && !breakLoop) {\r\n state.yearSelected = year.label;\r\n breakLoop = true;\r\n }\r\n });\r\n\r\n if (!handleMonthHasData(state.monthSelected, state.yearSelected)) {\r\n const currentMonthIndex = handleGetMonthIndex(\r\n state.monthSelected,\r\n state.yearSelected,\r\n );\r\n\r\n let breakLoopMonth = false;\r\n\r\n filterDatesChart.monthOptions\r\n .slice()\r\n .reverse()\r\n .forEach((month, index) => {\r\n if (filterDatesChart.monthOptions.length - (currentMonthIndex + 1) < index && month.hasData && !breakLoopMonth) {\r\n state.monthSelected = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n\r\n filterDatesChart.monthOptions.forEach((month, index) => {\r\n if (currentMonthIndex < index && month.hasData && !breakLoopMonth) {\r\n state.monthSelected = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n }\r\n\r\n handleChangeComparingChart(\r\n state.isComparingChart,\r\n state.yearSelected,\r\n state.monthSelected,\r\n );\r\n render();\r\n }\r\n\r\n return (\r\n
\r\n
\r\n {canCompare && (\r\n {\r\n state.isOpenComparingDropdown = false;\r\n render();\r\n }}\r\n yearOptions={filterDatesChart.yearOptions}\r\n monthOptions={filterDatesChart.monthOptions}\r\n yearSelected={state.yearSelected}\r\n monthSelected={state.monthSelected}\r\n isLoading={isLoading}\r\n handleChangeDate={(value) => {\r\n const newDate = moment(value, 'MMMM YYYY');\r\n\r\n state.yearSelected = newDate.format('YYYY');\r\n state.monthSelected = newDate.format('MMMM');\r\n render();\r\n handleChangeComparingChart(state.isComparingChart, newDate.format('YYYY'), newDate.format('MMMM'));\r\n }}\r\n >\r\n \r\n { onClickComparePeriod(); }}\r\n size={15}\r\n color=\"primary\"\r\n />\r\n
\r\n {t('compararPeriodo')}\r\n {state.isComparingChart && (\r\n {\r\n if (!isLoading) {\r\n state.isOpenComparingDropdown = !state.isOpenComparingDropdown;\r\n render();\r\n }\r\n }}\r\n >\r\n \r\n {chartMode === 'monthMode'\r\n && capitalizeFirstLetter(state.monthSelected)}\r\n {' '}\r\n {state.yearSelected}\r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n )}\r\n
\r\n \r\n
\r\n \r\n
\r\n );\r\n});\r\n","import { t } from 'i18next';\r\n\r\nexport const getArrayMonthsOfYear = (): string[] => {\r\n const months: string[] = [t('mesesDoAno.jan'), t('mesesDoAno.fev'), t('mesesDoAno.mar'), t('mesesDoAno.abr'), t('mesesDoAno.mai'), t('mesesDoAno.jun'), t('mesesDoAno.jul'), t('mesesDoAno.ago'), t('mesesDoAno.set'), t('mesesDoAno.out'), t('mesesDoAno.nov'), t('mesesDoAno.dez')];\r\n\r\n return months;\r\n};\r\n","import * as echarts from 'echarts/core';\r\nimport { TooltipComponent, GridComponent } from 'echarts/components';\r\nimport { BarChart } from 'echarts/charts';\r\nimport { CanvasRenderer } from 'echarts/renderers';\r\nimport { ApiResps, apiCall } from '~/providers';\r\nimport { handleGetDatesParams } from '~/helpers/getRangeParamsChart';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport moment from 'moment';\r\nimport { toast } from 'react-toastify';\r\nimport { t } from 'i18next';\r\nimport {\r\n forwardRef, useEffect, useImperativeHandle, useRef,\r\n} from 'react';\r\nimport { useEnergyCard } from '../EnergyCardContext';\r\nimport { ConsumptionChart } from '../ConsumptionChart';\r\n\r\necharts.use([TooltipComponent, GridComponent, BarChart, CanvasRenderer]);\r\n\r\nexport const INCOERENT_ICON = \"data:image/svg+xml;charset=utf8,%3Csvg%20width%3D'13'%20height%3D'13'%20viewBox%3D'0%200%2013%2013'%20fill%3D'none'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M6.585%208.819V6.585M6.585%204.351H6.59059M12.17%206.585C12.17%209.66951%209.66951%2012.17%206.585%2012.17C3.50049%2012.17%201%209.66951%201%206.585C1%203.50049%203.50049%201%206.585%201C9.66951%201%2012.17%203.50049%2012.17%206.585Z'%20stroke%3D'%23A9A9A9'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E\";\r\nexport const WARNING_ICON = \"data:image/svg+xml;charset=utf8,%3Csvg%20width%3D'15'%20height%3D'13'%20viewBox%3D'0%200%2015%2013'%20fill%3D'none'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M7.265%204.97025V7.41193M7.265%209.85361H7.2711M6.41976%201.85206L1.39913%2010.5241C1.12065%2011.0051%200.981414%2011.2456%201.00199%2011.443C1.01994%2011.6151%201.11014%2011.7716%201.25015%2011.8734C1.41066%2011.9901%201.68856%2011.9901%202.24437%2011.9901H12.2856C12.8414%2011.9901%2013.1193%2011.9901%2013.2798%2011.8734C13.4199%2011.7716%2013.5101%2011.6151%2013.528%2011.443C13.5486%2011.2456%2013.4093%2011.0051%2013.1309%2010.5241L8.11024%201.85206C7.83276%201.37278%207.69402%201.13314%207.51301%201.05265C7.35512%200.982448%207.17488%200.982448%207.01699%201.05265C6.83598%201.13314%206.69724%201.37278%206.41976%201.85206Z'%20stroke%3D'%23F3B107'%20stroke-width%3D'1.3'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E\";\r\n\r\ninterface EnergyHistoryProps {\r\n chartMode: string;\r\n filterDatesChart: FilterDatesChart;\r\n isLoading: boolean;\r\n handleClickBarChart: (name) => void;\r\n energyCardFilters: any;\r\n insideFilters: any;\r\n handleIsComparing: (value) => void;\r\n handleResetDates: () => void;\r\n ref: React.Ref<{ handleGetChartData: (options) => void }>;\r\n}\r\n\r\ninterface FilterDatesChart {\r\n yearOptions: {\r\n label: string;\r\n value: string | number;\r\n hasData: boolean;\r\n }[];\r\n monthOptions: {\r\n label: string;\r\n value: string | number;\r\n hasData: boolean;\r\n }[];\r\n}\r\n\r\nexport const EnergyHistory: React.FC = forwardRef(({\r\n chartMode,\r\n isLoading,\r\n filterDatesChart,\r\n handleClickBarChart,\r\n energyCardFilters,\r\n insideFilters,\r\n handleIsComparing,\r\n handleResetDates,\r\n}, ref) => {\r\n const { cardDate, handleSetTabIsLoading } = useEnergyCard();\r\n\r\n const [state, render] = useStateVar({\r\n historyChartData: {} as ApiResps['/energy/get-energy-analysis-hist'],\r\n isLoadingChart: true,\r\n isOpenFilterHeader: false,\r\n isComparingChart: false,\r\n monthChartSelected: cardDate.month,\r\n yearChartSelected: cardDate.year,\r\n });\r\n\r\n const chartRef = useRef({} as { handleUpdateChartDates: (date, format) => void});\r\n\r\n const handleGetMonthIndex = (monthLabel, yearLabel) => filterDatesChart.monthOptions.findIndex((month) => moment\r\n .utc(month.value)\r\n .isSame(moment(`${monthLabel} ${yearLabel}`, 'MMMM YYYY'), 'month'));\r\n\r\n const handleMonthHasData = (monthLabel, yearLabel) => {\r\n const month = filterDatesChart.monthOptions.find((month) => moment\r\n .utc(month.value)\r\n .isSame(moment(`${monthLabel} ${yearLabel}`, 'MMMM YYYY'), 'month'));\r\n\r\n return month?.hasData;\r\n };\r\n\r\n const handleChangeComparingChart = (\r\n isComparing,\r\n yearSelectedComparing,\r\n monthSelectedComparing,\r\n ) => {\r\n state.monthChartSelected = monthSelectedComparing;\r\n state.yearChartSelected = yearSelectedComparing;\r\n state.isComparingChart = isComparing;\r\n\r\n handleIsComparing(state.isComparingChart);\r\n handleGetChartData({});\r\n\r\n render();\r\n };\r\n\r\n const handleClickBarChartHistory = (options) => {\r\n const barClicked = moment(options.name, 'MMM YYYY');\r\n\r\n const monthClicked = barClicked.format('MMMM');\r\n\r\n if (!handleMonthHasData(monthClicked, state.yearChartSelected)) {\r\n const currentMonthIndex = handleGetMonthIndex(monthClicked, state.yearChartSelected);\r\n\r\n let breakLoopMonth = false;\r\n\r\n filterDatesChart.monthOptions\r\n .slice()\r\n .reverse()\r\n .forEach((month, index) => {\r\n if (filterDatesChart.monthOptions.length - (currentMonthIndex + 1) < index && month.hasData && !breakLoopMonth) {\r\n state.monthChartSelected = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n\r\n filterDatesChart.monthOptions.forEach((month, index) => {\r\n if (currentMonthIndex < index && month.hasData && !breakLoopMonth) {\r\n state.monthChartSelected = month.label;\r\n breakLoopMonth = true;\r\n }\r\n });\r\n } else {\r\n state.monthChartSelected = monthClicked;\r\n }\r\n\r\n chartRef.current.handleUpdateChartDates(`${state.monthChartSelected} ${state.yearChartSelected}`, 'MMMM YYYY');\r\n\r\n render();\r\n\r\n handleClickBarChart(options);\r\n };\r\n\r\n const handleGetChartData = async (energyHistParams) => {\r\n try {\r\n handleSetTabIsLoading(true, 'history');\r\n\r\n const chartModeParam = chartMode === 'monthMode' ? 'month' : 'year';\r\n\r\n const datesParams = handleGetDatesParams(\r\n `${cardDate.month} ${cardDate.year}`,\r\n 'MMMM YYYY',\r\n chartMode,\r\n state.isComparingChart,\r\n );\r\n\r\n const { startDate: startDateToCompare, endDate: endDateToCompare } = handleGetDatesParams(\r\n `${state.monthChartSelected} ${state.yearChartSelected}`,\r\n 'MMMM YYYY',\r\n chartMode,\r\n state.isComparingChart,\r\n cardDate.year,\r\n );\r\n\r\n const data = await apiCall('/energy/get-energy-analysis-hist', {\r\n ...datesParams,\r\n ...(state.isComparingChart && { startDateToCompare, endDateToCompare }),\r\n filterType: chartModeParam,\r\n ...energyHistParams,\r\n ...energyCardFilters,\r\n insideFilters: { ...insideFilters },\r\n });\r\n state.historyChartData = data;\r\n } catch (e) {\r\n toast.error(t('naoFoiPossivelBuscarInformacoesGrafico'));\r\n } finally {\r\n handleSetTabIsLoading(false, 'history');\r\n render();\r\n }\r\n };\r\n\r\n useImperativeHandle(\r\n ref,\r\n () => ({\r\n handleGetChartData,\r\n }),\r\n [],\r\n );\r\n\r\n useEffect(() => {\r\n if (energyCardFilters.startObject || !cardDate.verifyDate) return;\r\n if (!cardDate.isApiDate) {\r\n handleResetDates();\r\n } else {\r\n handleGetChartData({});\r\n }\r\n }, [cardDate]);\r\n\r\n return (\r\n \r\n );\r\n});\r\n","import { ContainerCardWater } from '../style';\r\nimport {\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n} from 'echarts/components';\r\nimport { BarChart } from 'echarts/charts';\r\nimport { UniversalTransition } from 'echarts/features';\r\nimport { CanvasRenderer } from 'echarts/renderers';\r\nimport * as echarts from 'echarts/core';\r\nimport { useContext, useEffect, useRef } from 'react';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { t } from 'i18next';\r\nimport { ApiResps } from '~/providers';\r\nimport { ICard } from '~/contexts/CardContext';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { INCOERENT_ICON, WARNING_ICON } from '~/components/EnergyCard/EnergyHistory';\r\nimport MenuContext from '~/contexts/menuContext';\r\nimport i18n from '~/i18n';\r\n\r\necharts.use([\r\n TooltipComponent,\r\n GridComponent,\r\n VisualMapComponent,\r\n CanvasRenderer,\r\n UniversalTransition,\r\n BarChart,\r\n]);\r\n\r\ninterface TooltipParams {\r\n name: string; // Nome da categoria\r\n value: number; // Valor do ponto de dados\r\n seriesName: string; // Nome da série\r\n seriesType: string; // Tipo da série\r\n dataIndex: number; // Índice do ponto de dados\r\n color: string; // Cor da série\r\n}\r\nconst namesMonths = [t('Jan'), t('Fev'), t('Mar'), t('Abr'), t('Mai'), t('Jun'), t('Jul'), t('Ago'), t('Set'), t('Out'), t('Nov'), t('Dez')];\r\nconst completeNameMonths = [t('mesesDoAno.janeiro'), t('mesesDoAno.fevereiro'), t('mesesDoAno.marco'), t('mesesDoAno.abril'), t('mesesDoAno.maio'), t('mesesDoAno.junho'), t('mesesDoAno.julho'), t('mesesDoAno.agosto'), t('mesesDoAno.setembro'), t('mesesDoAno.outubro'), t('mesesDoAno.novembro'), t('mesesDoAno.dezembro')];\r\nconst completeNumberMonths = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];\r\n\r\nexport function GenerateGraphWater({\r\n arrayData, waterCard, isExpanded, unitMeasuere, period, isHistory, last12Months, showForecast, handleClickBar, litersSelected,\r\n} : Readonly<{\r\n arrayData: ApiResps['/dma/get-consumption-history']['history'],\r\n waterCard: ICard | undefined,\r\n isExpanded: boolean | undefined,\r\n isHistory: boolean,\r\n unitMeasuere: string,\r\n period?: string\r\n last12Months?: boolean\r\n showForecast?: boolean\r\n handleClickBar?: (value) => void\r\n litersSelected?: boolean\r\n}>) {\r\n const idioma = i18n.language;\r\n const chartRef = useRef(null);\r\n const { menuToogle } = useContext(MenuContext);\r\n let arrayDataFiltered;\r\n let xAxisNames;\r\n const profile = getUserProfile();\r\n const isAdmin = profile.permissions?.isAdminSistema;\r\n const isDesktop = window.matchMedia('(min-width: 426px)');\r\n const isMobile = !isDesktop.matches;\r\n\r\n const fontOverview = isExpanded ? '12px' : '10px';\r\n const barOverview = isExpanded ? '30px' : '20px';\r\n\r\n const fontSize = isHistory ? '11px' : fontOverview;\r\n const barWidth = isMobile ? '12px' : barOverview;\r\n const barWidthHistory = period === t('semana') ? '30px' : '12px';\r\n\r\n const getConsumptionWater = (consumption: number) => {\r\n if (!unitMeasuere || unitMeasuere === 'cubic') { return `${formatNumberWithFractionDigits((consumption / 1000).toFixed(2), { minimum: 0, maximum: 2 })}`; }\r\n if (unitMeasuere === 'liters') { return `${formatNumberWithFractionDigits(consumption, { minimum: 0, maximum: 2 })}`; }\r\n return '';\r\n };\r\n\r\n function getDateTooltip(value: TooltipParams[]) {\r\n if (period) {\r\n if (period === t('dia')) return `${arrayData[value[0].dataIndex].day?.dayDate}/${completeNumberMonths[arrayData[value[0].dataIndex].month]}/${arrayData[value[0].dataIndex].year} às ${arrayData[value[0].dataIndex].hour}:00h`;\r\n if (period === t('semana') || period === t('mes') || period === t('flexivel')) return `${arrayData[value[0].dataIndex].day?.dayDate}/${completeNumberMonths[arrayData[value[0].dataIndex].month]}/${arrayData[value[0].dataIndex].year}`;\r\n if (period === t('ano') && !last12Months) return `${completeNameMonths[arrayData[value[0].dataIndex].month]} ${arrayData[value[0].dataIndex].year}`;\r\n }\r\n return `${completeNameMonths[arrayData[value[0].dataIndex].month]} ${arrayData[value[0].dataIndex].year}`;\r\n }\r\n\r\n function formatterTooltip(value: TooltipParams[]) {\r\n if (!arrayData[value[0].dataIndex]?.usage && !arrayData[value[0].dataIndex]?.number_devices) {\r\n return `\r\n
\r\n
\r\n ${getDateTooltip(value)}\r\n
\r\n \r\n \r\n \r\n
\r\n ${t('semMonitoramento')}\r\n ${t('paraMaisDetalhesHTML')}\r\n
\r\n
\r\n
\r\n
\r\n `;\r\n }\r\n\r\n const consumo = `\r\n
\r\n
\r\n ${getDateTooltip(value)}\r\n
\r\n
\r\n
\r\n ${arrayData[value[0].dataIndex]?.isEstimated ? t('previsaoConsumo') : t('consumo')}: \r\n ${getConsumptionWater(arrayData[value[0].dataIndex]?.usage || 0)}${unitMeasuere === 'liters' ? 'L' : 'm³'}\r\n
\r\n
\r\n ${arrayData[value[0].dataIndex]?.number_devices ? `${t('dispositivosContabilizados')}: ${arrayData[value[0].dataIndex]?.number_devices}` : ''}\r\n
\r\n
\r\n `;\r\n const tooltipContentFactory = [consumo];\r\n return tooltipContentFactory.join('
');\r\n }\r\n function formatNumber(number: number): string {\r\n const numberString = number.toFixed(2);\r\n const formattedNumber = formatNumberWithFractionDigits(numberString, { minimum: 2, maximum: 2 });\r\n return formattedNumber;\r\n }\r\n function handleWeekDay(value?: {\r\n dayDate: string;\r\n dayWeek: string;\r\n dayWeekName: string;\r\n}) {\r\n if (idioma === 'pt') return value?.dayWeek;\r\n return value?.dayWeekName.charAt(0).toUpperCase();\r\n }\r\n\r\n function formatArrayDataFiltered() {\r\n if (arrayData) {\r\n if (unitMeasuere === 'liters') {\r\n arrayDataFiltered = arrayData.map((item) => ({\r\n value: showForecast || !item.isEstimated\r\n ? Number(item.usage).toFixed(2)\r\n : 0,\r\n isEstimated: item?.isEstimated,\r\n month: item.month,\r\n }));\r\n } else {\r\n arrayDataFiltered = arrayData.map((item) => ({\r\n value: showForecast || !item.isEstimated\r\n ? (Number(item.usage) / 1000)?.toFixed(2)\r\n : 0,\r\n isEstimated: item?.isEstimated,\r\n month: item.month,\r\n }));\r\n }\r\n xAxisNames = arrayData.map((item) => {\r\n let isProblemData = '';\r\n if (item.usage < 0) isProblemData = '\\n{image| }';\r\n if (period) {\r\n switch (period) {\r\n case t('dia'): return { value: `${item?.hour}:00${isProblemData}` };\r\n case t('semana'): return { value: `${item.day?.dayWeek === 'D' ? `{bold|${item.day?.dayDate}}` : item.day?.dayDate}\\n${handleWeekDay(item.day)}${isProblemData}` };\r\n case t('mes'): return { value: `${item.day?.dayWeek === 'D' ? `{bold|${item.day?.dayDate}}` : item.day?.dayDate}\\n${handleWeekDay(item.day)}${isProblemData}` };\r\n case t('ano'): return { value: `${namesMonths[item.month]}\\n{bold|${isMobile ? item.year?.toString().slice(-2) : item.year}}${isProblemData}` };\r\n case t('flexivel'): return { value: `${item.day?.dayWeek === 'D' ? `{bold|${item.day?.dayDate}}` : item.day?.dayDate}\\n${handleWeekDay(item.day)}${isProblemData}` };\r\n }\r\n }\r\n return {\r\n value: `${namesMonths[item.month]}\\n{bold|${isMobile ? item.year?.toString().slice(-2) : item.year}}${isProblemData}`,\r\n };\r\n });\r\n } else {\r\n arrayDataFiltered = [];\r\n }\r\n }\r\n\r\n const formatSeriesChart = (item) => {\r\n const currentMonth = new Date().getMonth();\r\n if (!item || (!isAdmin && item.value < 0)) {\r\n return 0;\r\n }\r\n\r\n if (isAdmin && item.value < 0) {\r\n return {\r\n value: item.value,\r\n itemStyle: {\r\n color: '#F3B107',\r\n borderRadius: [0, 0, 5, 5],\r\n },\r\n };\r\n }\r\n\r\n if (item.isEstimated) {\r\n return {\r\n value: item.value,\r\n itemStyle: {\r\n color: '#E6E6E6',\r\n borderRadius: [5, 5, 0, 0],\r\n },\r\n };\r\n }\r\n\r\n return item;\r\n };\r\n\r\n const handleRenderWater = () => {\r\n formatArrayDataFiltered();\r\n arrayDataFiltered = arrayDataFiltered.map((item) => formatSeriesChart(item));\r\n if (chartRef.current) {\r\n echarts.dispose(chartRef.current);\r\n const chartInstance = echarts.init(chartRef.current);\r\n window.addEventListener('resize', () => {\r\n chartInstance.resize();\r\n });\r\n chartInstance.setOption({\r\n grid: {\r\n left: '5%',\r\n right: '5%',\r\n bottom: '2%',\r\n width: '90%',\r\n top: '10%',\r\n containLabel: true,\r\n },\r\n tooltip: {\r\n trigger: 'axis',\r\n formatter: (value) => formatterTooltip(value),\r\n axisPointer: {\r\n type: 'shadow',\r\n },\r\n shadowStyle: {\r\n shadowBlur: 2,\r\n shadowOffsetY: 0,\r\n shadowOffsetX: 1,\r\n },\r\n lineStyle: {\r\n width: '40px',\r\n },\r\n },\r\n xAxis: [{\r\n type: 'category',\r\n data: xAxisNames,\r\n boundaryGap: false,\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n axisLabel: {\r\n show: true,\r\n align: 'center',\r\n margin: 8,\r\n showMaxLabel: true,\r\n interval: 0,\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n fontSize,\r\n rich: {\r\n bold: {\r\n fontWeight: 'bold',\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n fontSize,\r\n },\r\n image: {\r\n backgroundColor: {\r\n image: isAdmin ? WARNING_ICON : INCOERENT_ICON,\r\n },\r\n },\r\n },\r\n },\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n }],\r\n yAxis: [\r\n {\r\n type: 'value',\r\n ...(litersSelected !== null && {\r\n name: `${t('consumo')} ${litersSelected ? '(L)' : '(m³)'}`,\r\n nameLocation: 'end',\r\n nameTextStyle: {\r\n fontSize: 9,\r\n fontFamily: 'Inter',\r\n fontWeight: 'bold',\r\n color: '#000',\r\n padding: [0, litersSelected ? 60 : 40, 0, 0],\r\n },\r\n }),\r\n splitNumber: 5,\r\n position: 'left',\r\n axisLabel: {\r\n formatter: (value) => (`${formatNumber(value)} ${unitMeasuere === 'liters' ? 'L' : 'm³'}`),\r\n align: 'right',\r\n fontSize: 9,\r\n color: '#000',\r\n fontFamily: 'Inter',\r\n },\r\n offset: 18,\r\n axisLine: { show: false },\r\n axisTick: { show: false },\r\n splitLine: {\r\n lineStyle: {\r\n type: 'dashed',\r\n },\r\n },\r\n },\r\n ],\r\n series: period === t('ano') ? [\r\n {\r\n type: 'bar',\r\n cursor: handleClickBar ? 'pointer' : 'default',\r\n barWidth: isHistory ? barWidthHistory : barWidth,\r\n data: arrayDataFiltered,\r\n color: '#2D81FF',\r\n stack: 'group',\r\n barCategoryGap: '10%',\r\n itemStyle: {\r\n borderRadius: [5, 5, 0, 0],\r\n padding: [0, 20, 0, 0], // Definindo o raio de borda para o canto superior esquerdo e superior direito\r\n },\r\n },\r\n ] : [\r\n {\r\n type: 'bar',\r\n cursor: handleClickBar && period !== t('dia') ? 'pointer' : 'default',\r\n barWidth: isHistory ? barWidthHistory : barWidth,\r\n data: arrayDataFiltered,\r\n color: '#2D81FF',\r\n stack: 'group',\r\n barCategoryGap: '10%',\r\n itemStyle: {\r\n borderRadius: [5, 5, 0, 0],\r\n padding: [0, 20, 0, 0], // Definindo o raio de borda para o canto superior esquerdo e superior direito\r\n },\r\n },\r\n ]\r\n ,\r\n });\r\n chartInstance.on('click', (value) => {\r\n handleClickBar && handleClickBar(arrayData[value.dataIndex]);\r\n });\r\n\r\n window.addEventListener('resize', () => {\r\n chartInstance.resize();\r\n });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n handleRenderWater();\r\n }, [waterCard?.isExpanded, arrayData, isExpanded, menuToogle, unitMeasuere, showForecast]);\r\n\r\n return (\r\n \r\n
\r\n \r\n );\r\n}\r\n","import { Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nexport const HoverConsumptionInfo = styled.div`\r\n display: flex;\r\n width: 200px;\r\n gap: 8px;\r\n /* border-radius: 5px; */\r\n color: white;\r\n font-family: 'Inter';\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 11px;\r\n line-height: 13px;\r\n`;\r\n\r\nexport const HoverMeterInfo = styled.div`\r\n display: flex;\r\n position: 'relative';\r\n flex-direction: column;\r\n width: 175;\r\n gap: 8px;\r\n /* border-radius: 5px; */\r\n color: black;\r\n font-family: 'Inter';\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 11px;\r\n line-height: 13px;\r\n background-color: \"#fff\";\r\n`;\r\n\r\nexport const ContainerCaption = styled.div`\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n justify-content: center;\r\n margin-top: 3px;\r\n gap: 30px;\r\n`;\r\n\r\nexport const ContainerArrowLeft = styled.div`\r\n display: flex;\r\n width: 35px;\r\n align-items: center;\r\n justify-content: center;\r\n border-right: 1px solid #EDEDED;\r\n cursor: pointer;\r\n`;\r\nexport const ContainerArrowRight = styled.div<{disabled: boolean }>(\r\n ({\r\n disabled,\r\n }) => `\r\n display: flex;\r\n width: 35px;\r\n align-items: center;\r\n justify-content: center;\r\n border-left: 1px solid #EDEDED;\r\n cursor: pointer;\r\n pointer-events: ${disabled ? 'none' : 'all'}\r\n`,\r\n);\r\n\r\nexport const LabelData = styled.div`\r\n position: relative;\r\n top: 3px;\r\n margin-left: 13px;\r\n font-size: 11px;\r\n font-weight: 700;\r\n line-height: 15px;\r\n`;\r\n\r\nexport const ContainerUsageDiff = styled.div`\r\n display: flex;\r\n align-items: center;\r\n gap: 3px;\r\n color: #92CC9A;\r\n font-size: 12px;\r\n font-weight: 700;\r\n line-height: 15px;\r\n`;\r\n\r\nexport const ButtonReturnPeriod = styled.div`\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n width: 74px;\r\n height: 22px;\r\n border-radius: 5px;\r\n border: 1px solid #363BC4;\r\n color: #363BC4;\r\n font-size: 10px;\r\n font-weight: 700;\r\n line-height: 11px;\r\n margin-right: 20px;\r\n cursor: pointer;\r\n`;\r\n\r\nexport const ContainerIcon = styled(Box)<{ period_usage_up: boolean }>(\r\n ({ period_usage_up }) => `\r\n display:flex;\r\n align-items: center;\r\n justify-content: center;\r\n transform: rotate(${period_usage_up ? '180' : '360'}deg);\r\n transition: all 0.2s;\r\n`,\r\n);\r\n","/* eslint-disable import/no-duplicates */\r\nimport { useEffect, useState } from 'react';\r\nimport { format, parseISO } from 'date-fns';\r\nimport pt from 'date-fns/locale/pt';\r\nimport moment, { isMoment } from 'moment';\r\nimport DatePicker from 'react-datepicker';\r\nimport i18n from '~/i18n';\r\nimport { SingleDatePicker, DateRangePicker } from 'react-dates';\r\nimport { toast } from 'react-toastify';\r\nimport { t } from 'i18next';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport {\r\n Select, Card, Loader, Checkbox,\r\n} from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { apiCall, ApiResps } from '~/providers';\r\n\r\nimport {\r\n ContentDate,\r\n VarContainer,\r\n VarName,\r\n VarUnit,\r\n VarValue,\r\n} from '../styles';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { GenerateGraphWater } from '~/components/WaterCard/GraphCardWater';\r\nimport {\r\n ArrowDownIcon,\r\n ArrowLeftIcon, ArrowRightIcon, InfoIcon, InfoLinkIcon,\r\n} from '~/icons';\r\nimport {\r\n ButtonReturnPeriod,\r\n ContainerArrowLeft,\r\n ContainerArrowRight,\r\n ContainerCaption, ContainerIcon, ContainerUsageDiff, HoverConsumptionInfo, HoverMeterInfo, LabelData,\r\n} from './styles';\r\nimport { QuickSelection } from '~/components/QuickSelection';\r\nimport { TransparentLink } from '~/components/EnvGroupAnalysis/styles';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\ninterface IGraphData {\r\n devId: string;\r\n name: string;\r\n usage: string;\r\n date: string;\r\n estimatedUsage?: boolean;\r\n dailyReadings?: {\r\n devId?: string;\r\n name: string;\r\n usage: string;\r\n date: string;\r\n dayUsage: number | string;\r\n readTime: string;\r\n estimatedUsage?: boolean;\r\n }[];\r\n}\r\n\r\nexport function WaterHistory(props: {\r\n device_code: string;\r\n status: string | undefined;\r\n installationDate: string | undefined | null;\r\n unitId?: number|null;\r\n}): JSX.Element {\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const { device_code, status, unitId } = props;\r\n const [shouldNotDisplayLiters, setShouldNotDisplayLiters] = useState(\r\n profile.prefsObj?.water === 'cubic',\r\n );\r\n const [state, render, setState] = useStateVar({\r\n loading: true,\r\n loadingNewData: true,\r\n focused: false,\r\n focusedInput: null,\r\n startDate: moment().startOf('month').format('YYYY-MM-DD'),\r\n endDate: moment().endOf('month').format('YYYY-MM-DD'),\r\n lastStartDate: moment().subtract(1, 'months').startOf('month').format('YYYY-MM-DD'),\r\n lastEndDate: moment().subtract(1, 'months').endOf('month').format('YYYY-MM-DD'),\r\n graphData: [] as IGraphData[],\r\n graphDataForecast: [] as IGraphData[],\r\n cubicMetersGraphData: [] as IGraphData[],\r\n cubicMetersGraphDataForecast: [] as IGraphData[],\r\n graphLegend: [] as string[],\r\n showForecast: true,\r\n period: t('mes'),\r\n last12Months: false as boolean,\r\n periodIsMonthOrFlexible: true,\r\n maxUsage: 0,\r\n lastReadingDate: '',\r\n daily_average: '0',\r\n period_usage: '0',\r\n period_usage_last: null as string | null,\r\n period_usage_up: false as boolean,\r\n predicted: '0',\r\n predictedLastMonth: undefined as string | undefined,\r\n installationDate: props.installationDate as string | undefined | null,\r\n devInfo: null as null | ApiResps['/get-integration-info']['info'],\r\n forecastUsage: null as null | ApiResps['/dma/get-forecast-usage'],\r\n isCurrentMonth: false as boolean,\r\n consumptionByDayOfWeek: [\r\n { label: t('diasDaSemana.domingo'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.segunda'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.terca'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.quarta'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.quinta'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.sexta'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.sabado'), days: 0, consumption: 0 },\r\n ] as any[],\r\n yearGraphic: false as boolean,\r\n arrayData: [] as ApiResps['/dma/get-consumption-history']['history'],\r\n arrowDisabled: true as boolean,\r\n periodHist: '' as string,\r\n startDateHist: moment().startOf('month').format('YYYY-MM-DD'),\r\n endDateHist: moment().endOf('month').format('YYYY-MM-DD'),\r\n lastStartDateHist: moment().subtract(1, 'months').startOf('month').format('YYYY-MM-DD'),\r\n lastEndDateHist: moment().subtract(1, 'months').endOf('month').format('YYYY-MM-DD'),\r\n });\r\n\r\n useEffect(() => {\r\n const weekdaysMin: string[] = t('weekdaysMin', { returnObjects: true });\r\n const language = i18n.language === 'pt' ? 'pt-br' : i18n.language;\r\n moment.updateLocale(language, {\r\n weekdaysMin,\r\n });\r\n }, [i18n.language, t]);\r\n\r\n const maxValue = (graphData) => {\r\n let numberArr = [];\r\n if (state.period === t('dia')) {\r\n const currentDay = moment(state.startDate).format('DD/MM/YYYY');\r\n\r\n const currentDayData = graphData.filter((e) => e.date === currentDay)[0];\r\n\r\n numberArr = currentDayData?.dailyReadings?.map(({ dayUsage }) => Number(dayUsage));\r\n } else {\r\n numberArr = graphData.map(({ usage }) => Number(usage));\r\n }\r\n\r\n const maxNumber = !numberArr ? 0 : Math.max(...numberArr);\r\n\r\n return maxNumber;\r\n };\r\n\r\n const setForecastStates = () => {\r\n const currDate = new Date(Date.now() - 3 * 60 * 60 * 1000);\r\n const dataDate = new Date(state.endDate);\r\n state.isCurrentMonth = currDate.getMonth() === dataDate.getMonth()\r\n && dataDate.getDate() >= currDate.getDate();\r\n state.showForecast = true;\r\n };\r\n\r\n const getDailyData = async () => {\r\n let responseUsage;\r\n if (device_code.startsWith('DMA')) {\r\n if (state.devInfo?.hydrometerModel) {\r\n responseUsage = await apiCall('/dma/get-consumption-history', {\r\n DEVICE_CODE: device_code,\r\n START_DATE: state.startDate,\r\n END_DATE: state.endDate,\r\n LAST_START_DATE: state.lastStartDate,\r\n LAST_END_DATE: state.lastEndDate,\r\n YEAR_GRAPHIC: state.yearGraphic,\r\n });\r\n setState({ arrayData: responseUsage.history });\r\n } else if (state.devInfo && !state.devInfo.hydrometerModel) {\r\n toast.error(t('erroHistoricoHidrometro'));\r\n setState({ loadingNewData: false });\r\n return;\r\n } else {\r\n setState({ loadingNewData: false });\r\n return;\r\n }\r\n } else {\r\n responseUsage = await apiCall('/laager/get-consumption-history', {\r\n LAAGER_CODE: device_code,\r\n START_DATE: state.startDate,\r\n END_DATE: state.endDate,\r\n LAST_START_DATE: state.lastStartDate,\r\n LAST_END_DATE: state.lastEndDate,\r\n YEAR_GRAPHIC: state.yearGraphic,\r\n });\r\n\r\n setState({ arrayData: responseUsage.history });\r\n }\r\n\r\n const name = format(parseISO(state.startDate), 'dd-eeeee', {\r\n locale: pt,\r\n }).toUpperCase();\r\n\r\n const date = format(parseISO(state.startDate), 'dd/MM/yyyy', {\r\n locale: pt,\r\n });\r\n\r\n const usage = responseUsage.period_usage;\r\n\r\n const dailyReading = responseUsage?.history?.length > 0\r\n ? responseUsage.history.map((readings) => ({\r\n name,\r\n usage,\r\n date,\r\n dayUsage: readings.usage,\r\n readTime: moment(readings.information_date).format('HH:mm'),\r\n estimatedUsage: readings.estimatedUsage,\r\n devId: device_code,\r\n }))\r\n : [];\r\n\r\n const graphDataDaily = {\r\n name,\r\n usage,\r\n date,\r\n dailyReadings: dailyReading,\r\n devId: device_code,\r\n };\r\n\r\n const maxUsage = maxValue([graphDataDaily]);\r\n setState({\r\n graphData: [graphDataDaily],\r\n maxUsage,\r\n daily_average: `${responseUsage.daily_average || '0'}`,\r\n period_usage: `${responseUsage.period_usage || '0'}`,\r\n period_usage_last: handlePeriodUsageDiff(responseUsage.period_usage, responseUsage.period_usage_last),\r\n });\r\n };\r\n\r\n const getResponseUsage = async () => {\r\n let responseUsage;\r\n if (device_code.startsWith('DMA')) {\r\n if (state.devInfo?.hydrometerModel) {\r\n responseUsage = await apiCall('/dma/get-consumption-history', {\r\n DEVICE_CODE: device_code,\r\n START_DATE: state.startDate,\r\n END_DATE: state.endDate,\r\n LAST_START_DATE: state.lastStartDate,\r\n LAST_END_DATE: state.lastEndDate,\r\n YEAR_GRAPHIC: state.yearGraphic,\r\n });\r\n setState({ arrayData: responseUsage.history });\r\n } else if (state.devInfo && !state.devInfo.hydrometerModel) {\r\n toast.error(t('erroHistoricoHidrometro'));\r\n setState({ loadingNewData: false });\r\n return null;\r\n } else {\r\n setState({ loadingNewData: false });\r\n return null;\r\n }\r\n } else {\r\n responseUsage = await apiCall('/laager/get-consumption-history', {\r\n LAAGER_CODE: device_code,\r\n START_DATE: state.startDate,\r\n END_DATE: state.endDate,\r\n LAST_START_DATE: state.lastStartDate,\r\n LAST_END_DATE: state.lastEndDate,\r\n YEAR_GRAPHIC: state.yearGraphic,\r\n });\r\n }\r\n return responseUsage;\r\n };\r\n\r\n const getForecast = async () => {\r\n try {\r\n if (device_code.startsWith('DMA')) {\r\n const forecast = await apiCall('/dma/get-forecast-usage', {\r\n DEVICE_CODE: device_code,\r\n });\r\n state.forecastUsage = forecast;\r\n } else {\r\n const forecast = await apiCall('/laager/get-forecast-usage', {\r\n LAAGER_CODE: device_code,\r\n });\r\n state.forecastUsage = forecast;\r\n }\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n };\r\n\r\n const getValueOrZero = (value: any) => `${value || '0'}`;\r\n\r\n const getGraphDataAndForecast = async () => {\r\n const responseUsage = await getResponseUsage();\r\n if (responseUsage === null) return null;\r\n const arrayData = responseUsage.history;\r\n\r\n const graphData = responseUsage.history.map((h) => ({\r\n name: format(parseISO(h.information_date), 'dd-eeeee', {\r\n locale: pt,\r\n }).toUpperCase(),\r\n usage: `${h.usage}`,\r\n date: format(parseISO(h.information_date), 'dd/MM/yyyy', {\r\n locale: pt,\r\n }),\r\n devId: h.device_code,\r\n estimatedUsage: h.estimatedUsage,\r\n }));\r\n\r\n setState({\r\n arrayData,\r\n graphData,\r\n daily_average: getValueOrZero(responseUsage.daily_average),\r\n period_usage: getValueOrZero(responseUsage.period_usage),\r\n period_usage_last: handlePeriodUsageDiff(responseUsage.period_usage, responseUsage.period_usage_last),\r\n });\r\n\r\n let maxUsageForecast = 0;\r\n let predictedConsumption = 0;\r\n if (state.periodIsMonthOrFlexible && state.isCurrentMonth) {\r\n await getForecast();\r\n\r\n if (state.forecastUsage) {\r\n let graphDataForecast = JSON.parse(JSON.stringify(arrayData));\r\n graphDataForecast = graphDataForecast.map((e) => {\r\n const currDate = new Date();\r\n currDate.setHours(0, 0, 0, 0);\r\n const dataDate = new Date(e.information_date);\r\n dataDate.setHours(0, 0, 0, 0);\r\n if (dataDate > currDate && state.forecastUsage) {\r\n e.usage = state.forecastUsage[e.day.dayWeekName];\r\n e.isEstimated = true;\r\n } else {\r\n e.isEstimated = false;\r\n }\r\n return e;\r\n });\r\n\r\n setState({ arrayData: graphDataForecast });\r\n\r\n state.arrayData.forEach(\r\n (e) => { if (e.isEstimated) predictedConsumption += Number(e.usage); },\r\n );\r\n maxUsageForecast = maxValue(graphDataForecast);\r\n }\r\n }\r\n\r\n const maxUsage = Math.max(maxValue(arrayData), maxUsageForecast);\r\n setState({\r\n predicted:\r\n state.periodIsMonthOrFlexible && state.isCurrentMonth\r\n ? `${predictedConsumption || '0'}`\r\n : `${responseUsage.predicted || '0'}`,\r\n maxUsage,\r\n });\r\n if (state.predictedLastMonth === undefined) setState({ predictedLastMonth: state.predicted });\r\n };\r\n\r\n const getOthersPeriodData = async () => {\r\n await getGraphDataAndForecast();\r\n\r\n if (state.periodIsMonthOrFlexible) {\r\n const consumptionByDayOfWeek = [\r\n { label: t('diasDaSemana.domingo'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.segunda'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.terca'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.quarta'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.quinta'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.sexta'), days: 0, consumption: 0 },\r\n { label: t('diasDaSemana.sabado'), days: 0, consumption: 0 },\r\n ];\r\n state.graphData.forEach((e) => {\r\n const dateArray = e.date.split('/');\r\n const strDate = [dateArray[1], dateArray[0], dateArray[2]].join('/');\r\n const date = moment(strDate).startOf('day');\r\n const currDate = moment().startOf('day');\r\n if (date <= currDate) {\r\n consumptionByDayOfWeek[date.day()].consumption += Number(e.usage);\r\n consumptionByDayOfWeek[date.day()].days += 1;\r\n }\r\n });\r\n setState({ consumptionByDayOfWeek });\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n if (!state.endDate) return;\r\n setState({ loadingNewData: true });\r\n\r\n setForecastStates();\r\n\r\n if (state.period === t('dia')) {\r\n await getDailyData();\r\n } else {\r\n await getOthersPeriodData();\r\n }\r\n\r\n if (shouldNotDisplayLiters) {\r\n verifyConsumptionInMeterCubic();\r\n }\r\n } catch (err) {\r\n toast.error(t('erroHistorico'));\r\n console.error(err);\r\n console.log(err);\r\n }\r\n setState({ loadingNewData: false });\r\n })();\r\n }, [device_code, state.startDate, state.devInfo, state.endDate]);\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n setState({ loading: true });\r\n\r\n let lastReadingDate = t('erroNaoFoiRealizadaNenhumaLeitura');\r\n if (device_code.startsWith('DMA')) {\r\n const { info } = await apiCall('/get-integration-info', {\r\n supplier: 'diel-dma',\r\n integrId: device_code,\r\n });\r\n setState({ devInfo: info });\r\n setState({\r\n installationDate:\r\n moment(info.installationDate?.substring(0, 10)).format('ll')\r\n === t('dataInvalida')\r\n ? '-'\r\n : moment(info.installationDate?.substring(0, 10)).toISOString(),\r\n });\r\n const response = await apiCall('/dma/get-last-reading-date', {\r\n dmaId: device_code,\r\n });\r\n if (response?.date != null) {\r\n lastReadingDate = moment(response.date).format('lll');\r\n }\r\n } else {\r\n const response = await apiCall('/laager/get-informations', {\r\n unit_id: device_code,\r\n });\r\n if (response?.last_reading_date) {\r\n lastReadingDate = moment(response.last_reading_date).format('lll');\r\n }\r\n }\r\n\r\n setState({\r\n lastReadingDate,\r\n });\r\n } catch (err) {\r\n toast.error(t('erroCarregarInformacoes'));\r\n console.error(err);\r\n }\r\n setState({ loading: false });\r\n })();\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (shouldNotDisplayLiters) {\r\n verifyConsumptionInMeterCubic();\r\n } else {\r\n const maxUsage = maxValue(state.graphData);\r\n setState({ maxUsage });\r\n }\r\n render();\r\n }, [shouldNotDisplayLiters]);\r\n\r\n function verifyConsumptionInMeterCubic() {\r\n const cubicMetersHistGraphData = state.graphData.map(\r\n ({\r\n name, usage, date, dailyReadings, devId, estimatedUsage,\r\n }) => {\r\n const dailyHistReadings = dailyReadings && dailyReadings.length > 0\r\n ? dailyReadings.map((readings) => ({\r\n name,\r\n usage: (Number(usage) / 1000).toFixed(2),\r\n date,\r\n dayUsage: (Number(readings.dayUsage) / 1000).toFixed(2),\r\n readTime: readings.readTime,\r\n estimatedUsage: readings.estimatedUsage,\r\n }))\r\n : [];\r\n return {\r\n name,\r\n usage: (Number(usage) / 1000).toFixed(2),\r\n date,\r\n dailyReadings: dailyHistReadings,\r\n estimatedUsage,\r\n devId,\r\n };\r\n },\r\n );\r\n state.cubicMetersGraphData = cubicMetersHistGraphData;\r\n\r\n let maxUsageForecast = 0;\r\n if (state.periodIsMonthOrFlexible) {\r\n const cubicMetersHistGraphDataForecast = state.graphDataForecast.map(\r\n ({\r\n name, usage, date, dailyReadings, devId, estimatedUsage,\r\n }) => {\r\n const dailyHistReadings = dailyReadings && dailyReadings.length > 0\r\n ? dailyReadings.map((readings) => ({\r\n name,\r\n usage: (Number(usage) / 1000).toFixed(2),\r\n date,\r\n dayUsage: (Number(readings.dayUsage) / 1000).toFixed(2),\r\n readTime: readings.readTime,\r\n estimatedUsage: readings.estimatedUsage,\r\n }))\r\n : [];\r\n\r\n return {\r\n name,\r\n usage: (Number(usage) / 1000).toFixed(2),\r\n date,\r\n dailyReadings: dailyHistReadings,\r\n devId,\r\n estimatedUsage,\r\n };\r\n },\r\n );\r\n state.cubicMetersGraphDataForecast = cubicMetersHistGraphDataForecast;\r\n maxUsageForecast = maxValue(state.cubicMetersGraphData);\r\n }\r\n\r\n const maxUsage = Math.max(\r\n maxValue(state.cubicMetersGraphData),\r\n maxUsageForecast,\r\n );\r\n setState({ maxUsage });\r\n }\r\n\r\n function handleDateChange(date: moment.Moment | string): void {\r\n setState({\r\n startDateHist: state.startDate, endDateHist: state.endDate, lastStartDateHist: state.lastStartDate, lastEndDateHist: state.lastEndDate,\r\n });\r\n if (state.period === t('dia') && isMoment(date)) {\r\n setState({ yearGraphic: false });\r\n const formattedDate = date.format('YYYY-MM-DD');\r\n const formattedLastDate = date.subtract(1, 'days').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDate, endDate: formattedDate, lastStartDate: formattedLastDate, lastEndDate: formattedLastDate,\r\n });\r\n } else if (state.period === t('semana') && isMoment(date)) {\r\n setState({ yearGraphic: false });\r\n const startDate = date.startOf('week').format('YYYY-MM-DD');\r\n const endDate = date.endOf('week').format('YYYY-MM-DD');\r\n const lastStartDate = moment(startDate).subtract(1, 'weeks').startOf('week').format('YYYY-MM-DD');\r\n const lastEndDate = moment(endDate).subtract(1, 'weeks').endOf('week').format('YYYY-MM-DD');\r\n setState({\r\n startDate, endDate, lastStartDate, lastEndDate,\r\n });\r\n } else if (state.period === t('mes') && isMoment(date)) {\r\n setState({ yearGraphic: false });\r\n const startDate = date.startOf('month').format('YYYY-MM-DD');\r\n const endDate = date.endOf('month').format('YYYY-MM-DD');\r\n const lastStartDate = moment(startDate).subtract(1, 'months').startOf('month').format('YYYY-MM-DD');\r\n const lastEndDate = moment(endDate).subtract(1, 'months').endOf('month').format('YYYY-MM-DD');\r\n setState({\r\n startDate, endDate, lastStartDate, lastEndDate,\r\n });\r\n } else if (state.period === t('flexivel') && isMoment(date)) {\r\n setState({ yearGraphic: false });\r\n const startDate = date.startOf('month').format('YYYY-MM-DD');\r\n const endDate = date.endOf('month').format('YYYY-MM-DD');\r\n const lastStartDate = moment(startDate).subtract(1, 'months').startOf('month').format('YYYY-MM-DD');\r\n const lastEndDate = moment(endDate).subtract(1, 'months').endOf('month').format('YYYY-MM-DD');\r\n setState({\r\n startDate, endDate, lastStartDate, lastEndDate,\r\n });\r\n } else if (state.period === t('ano') && isMoment(date)) {\r\n setState({ yearGraphic: true });\r\n const startDate = date.startOf('year').format('YYYY-MM-DD');\r\n const endDate = date.endOf('year').format('YYYY-MM-DD');\r\n const lastStartDate = moment(startDate).subtract(1, 'years').startOf('year').format('YYYY-MM-DD');\r\n const lastEndDate = moment(endDate).subtract(1, 'years').endOf('year').format('YYYY-MM-DD');\r\n setState({\r\n startDate, endDate, lastStartDate, lastEndDate,\r\n });\r\n }\r\n getDisabledButton();\r\n }\r\n\r\n function getDisabledButton(): void {\r\n const endDate = moment(state.endDate);\r\n const currentDate = moment();\r\n const currentDay = currentDate.day();\r\n const currentWeek = currentDate.week();\r\n const currentMonth = currentDate.month();\r\n const currentYear = currentDate.year();\r\n if (state.period === t('dia') && endDate.day() === currentDay) {\r\n setState({ arrowDisabled: true });\r\n }\r\n if (state.period === t('semana') && endDate.week() === currentWeek) {\r\n setState({ arrowDisabled: true });\r\n }\r\n else if (state.period === t('mes') && endDate.month() === currentMonth) {\r\n setState({ arrowDisabled: true });\r\n }\r\n else if (state.period === t('ano') && endDate.year() === currentYear) {\r\n setState({ arrowDisabled: true });\r\n }\r\n else if (state.period === t('flexivel')) {\r\n const differenceInDays = endDate.diff(moment(state.startDate), 'days');\r\n const newEndDate = endDate.add(differenceInDays, 'days');\r\n const isNextMonth = newEndDate.month() > currentDate.month() || newEndDate.year() > currentDate.year();\r\n\r\n setState({ arrowDisabled: isNextMonth });\r\n }\r\n else {\r\n setState({ arrowDisabled: false });\r\n }\r\n }\r\n\r\n function handlePeriodUsageDiff(usage: number, usageLast: number): string | null {\r\n // calcular o percentual de diferença de uso: ()\r\n const diffPercent = (((usage - usageLast) / usageLast) * 100) || 0;\r\n if (diffPercent >= 0) setState({ period_usage_up: true });\r\n else setState({ period_usage_up: false });\r\n if (diffPercent === Infinity || diffPercent === 0 || diffPercent == null) return null;\r\n return diffPercent.toFixed(2);\r\n }\r\n\r\n const getMeasureUnit = () => (shouldNotDisplayLiters ? 'm³' : t('litros'));\r\n\r\n const formatConsumption = (num: string) => (shouldNotDisplayLiters\r\n ? formatNumberWithFractionDigits(Number(num) / 1000, { minimum: 2, maximum: 2 })\r\n : formatNumberWithFractionDigits(Number(num), { minimum: 0, maximum: 0 }));\r\n\r\n function quickChangeData(startDate, endDate, timeSelected) {\r\n const timeSelectedForDay = ['Hoje', 'Ontem'];\r\n const timeSelectedForWeek = ['Semana Atual', 'Semana Passada', 'Últimos 7 dias'];\r\n const timeSelectedForMonth = ['Últimos 30 dias', 'Últimos 60 dias', 'Últimos 90 dias'];\r\n const timeSelectedForYear = ['Últimos 12 meses'];\r\n\r\n setState({ periodHist: state.period });\r\n if (timeSelectedForDay.includes(timeSelected)) setState({ yearGraphic: false, period: t('dia'), last12Months: false });\r\n else if (timeSelectedForWeek.includes(timeSelected)) setState({ yearGraphic: false, period: t('semana'), last12Months: false });\r\n else if (timeSelectedForMonth.includes(timeSelected)) setState({ yearGraphic: false, period: t('flexivel'), last12Months: false });\r\n else if (timeSelectedForYear.includes(timeSelected)) { setState({ yearGraphic: true, period: t('ano'), last12Months: true });\r\n }\r\n\r\n setState({\r\n startDateHist: state.startDate, endDateHist: state.endDate, lastStartDateHist: state.lastStartDate, lastEndDateHist: state.lastEndDate,\r\n });\r\n\r\n const endDateFormat = endDate.format('YYYY-MM-DD');\r\n const startDateFormat = startDate.format('YYYY-MM-DD');\r\n setState({ startDate: startDateFormat, endDate: endDateFormat });\r\n\r\n render();\r\n }\r\n\r\n function handleDateChangeLeft(): void {\r\n const dateInit = moment(state.startDate);\r\n const dateEnd = moment(state.endDate);\r\n if (state.period === t('dia')) {\r\n const formattedDateInit = dateInit.subtract(1, 'days').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.subtract(1, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'days').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('semana')) {\r\n const formattedDateInit = dateInit.subtract(1, 'weeks').startOf('week').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.subtract(1, 'weeks').endOf('week').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'weeks').startOf('week').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'weeks').endOf('week').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('mes')) {\r\n const formattedDateInit = dateInit.subtract(1, 'months').startOf('month').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.subtract(1, 'months').endOf('month').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'months').startOf('month').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'months').endOf('month').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('flexivel')) {\r\n const differenceInDays: number = dateEnd.diff(dateInit, 'days');\r\n const formattedDateInit = dateInit.subtract(differenceInDays, 'days').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.subtract(differenceInDays, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(differenceInDays, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(differenceInDays, 'days').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('ano')) {\r\n const formattedDateInit = dateInit.subtract(1, 'years').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.subtract(1, 'years').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'years').startOf('year').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'years').endOf('year').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n }\r\n getDisabledButton();\r\n }\r\n\r\n function handleDateChangeRight(): void {\r\n const dateInit = moment(state.startDate);\r\n const dateEnd = moment(state.endDate);\r\n if (state.period === t('dia')) {\r\n const formattedDateInit = dateInit.add(1, 'days').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.add(1, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'days').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('semana')) {\r\n const formattedDateInit = dateInit.add(1, 'weeks').startOf('week').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.add(1, 'weeks').endOf('week').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'weeks').startOf('week').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'weeks').endOf('week').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('mes')) {\r\n const formattedDateInit = dateInit.add(1, 'months').startOf('month').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.add(1, 'months').endOf('month').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'months').startOf('month').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'months').endOf('month').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('flexivel')) {\r\n const differenceInDays: number = dateEnd.diff(dateInit, 'days');\r\n const formattedDateInit = dateInit.add(differenceInDays, 'days').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.add(differenceInDays, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(differenceInDays, 'days').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(differenceInDays, 'days').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n } else if (state.period === t('ano')) {\r\n const formattedDateInit = dateInit.add(1, 'years').startOf('year').format('YYYY-MM-DD');\r\n const formattedDateEnd = dateEnd.add(1, 'years').endOf('year').format('YYYY-MM-DD');\r\n const formattedLastDateInit = moment(formattedDateInit).subtract(1, 'years').startOf('year').format('YYYY-MM-DD');\r\n const formattedLastDateEnd = moment(formattedDateEnd).subtract(1, 'years').endOf('year').format('YYYY-MM-DD');\r\n setState({\r\n startDate: formattedDateInit, endDate: formattedDateEnd, lastStartDate: formattedLastDateInit, lastEndDate: formattedLastDateEnd,\r\n });\r\n }\r\n getDisabledButton();\r\n }\r\n\r\n function handleClickBar(value): void {\r\n if (state.period === t('dia')) return;\r\n\r\n if (state.period === t('ano')) {\r\n setState({\r\n periodHist: state.period,\r\n period: t('mes'),\r\n });\r\n }\r\n else {\r\n setState({\r\n periodHist: state.period,\r\n period: t('dia'),\r\n });\r\n }\r\n handleDateChange(moment(value.information_date));\r\n }\r\n\r\n function returnPeriod(): void {\r\n setState({\r\n startDate: state.startDateHist,\r\n endDate: state.endDateHist,\r\n period: state.periodHist,\r\n lastStartDate: state.lastStartDateHist,\r\n lastEndDate: state.lastEndDateHist,\r\n startDateHist: undefined,\r\n endDateHist: undefined,\r\n periodHist: '',\r\n lastStartDateHist: undefined,\r\n lastEndDateHist: undefined,\r\n });\r\n setState({ yearGraphic: false });\r\n if (state.period === t('ano')) setState({ yearGraphic: true });\r\n else setState({ yearGraphic: false });\r\n getDisabledButton();\r\n }\r\n\r\n function verifyLink() {\r\n if (device_code?.startsWith('DMA')) {\r\n return `/integracoes/info/diel/${device_code}/perfil`;\r\n }\r\n\r\n return `/analise/unidades/integracao-agua/${unitId}?supplier=laager`;\r\n }\r\n\r\n function verifyIsOutsideRange(date: moment.Moment) {\r\n const startDate = moment(state.startDate, 'YYYY-MM-DD').startOf('day');\r\n const maxEndDate = startDate.isValid() ? startDate.clone().add(1, 'month').endOf('day') : null;\r\n\r\n const isAfterMaxEndDate = maxEndDate ? date.isAfter(maxEndDate) : false;\r\n const isOutsideCurrentMonth = !date.isBefore(moment().endOf('month'));\r\n\r\n return isAfterMaxEndDate || isOutsideCurrentMonth;\r\n }\r\n\r\n return (\r\n
\r\n {(state.loading || state.loadingNewData) && }\r\n {!state.loading && !state.loadingNewData && (\r\n \r\n \r\n \r\n {\r\n setState({\r\n periodHist: state.period,\r\n period,\r\n periodIsMonthOrFlexible: [\r\n t('ano'),\r\n t('mes'),\r\n t('flexivel'),\r\n t('semana'),\r\n ].includes(period),\r\n });\r\n handleDateChange(moment());\r\n }}\r\n value={state.period}\r\n placeholder={t('periodo')}\r\n hideSelected\r\n small\r\n // @ts-ignore\r\n disabled={state.isLoading}\r\n />\r\n \r\n \r\n \r\n \r\n handleDateChangeLeft()}>\r\n \r\n \r\n \r\n {t('data')}\r\n {(state.period === t('dia') || state.period === t('semana')) && (\r\n handleDateChange(data)}\r\n focused={state.focused}\r\n onFocusChange={({ focused }) => {\r\n state.focused = focused;\r\n render();\r\n }}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n displayFormat=\"DD/MM/YYYY\"\r\n isOutsideRange={(d) => !d.isBefore(moment())}\r\n />\r\n )}\r\n {state.period === t('mes') && (\r\n handleDateChange(moment(d))}\r\n locale=\"pt-BR\"\r\n showMonthYearPicker\r\n dateFormat=\"MMMM Y\"\r\n />\r\n )}\r\n {state.period === t('ano') && (\r\n handleDateChange(moment(d))}\r\n locale=\"pt-BR\"\r\n showYearPicker\r\n dateFormat=\"yyyy\"\r\n />\r\n )}\r\n {state.period === t('flexivel') && (\r\n {\r\n setState({\r\n startDate: startDate.format('YYYY-MM-DD'),\r\n endDate:\r\n startDate.format('YYYY-MM-DD') !== state.startDate\r\n ? null\r\n : endDate.format('YYYY-MM-DD'),\r\n });\r\n getDisabledButton();\r\n }}\r\n onFocusChange={(focused) => {\r\n state.focusedInput = focused;\r\n render();\r\n }}\r\n focusedInput={state.focusedInput}\r\n noBorder\r\n isOutsideRange={verifyIsOutsideRange}\r\n startDatePlaceholderText={t('dataInicial')}\r\n endDatePlaceholderText={t('dataFinal')}\r\n displayFormat=\"DD/MM/YYYY\"\r\n />\r\n )}\r\n\r\n \r\n handleDateChangeRight()}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n {t('consumo')}\r\n \r\n { profile.manageAllClients && (\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n {t('medidor')}\r\n \r\n
\r\n \r\n \r\n {device_code}\r\n \r\n \r\n\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n )}\r\n
\r\n \r\n \r\n {t('unidadeDeMedida')}\r\n \r\n
\r\n {t('litros')}\r\n setShouldNotDisplayLiters(!shouldNotDisplayLiters)}\r\n style={{ marginLeft: '10px', marginRight: '10px' }}\r\n />\r\n \r\n {t('metrosCubicos')}\r\n \r\n
\r\n
\r\n {props.installationDate && state.isCurrentMonth ? (\r\n \r\n {\r\n state.showForecast = !state.showForecast;\r\n render();\r\n }}\r\n />\r\n {t('previsaoConsumo')}\r\n
\r\n ) : null}\r\n
\r\n \r\n {state.periodHist !== '' && returnPeriod()}>{t('voltar').toUpperCase()}}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n {state.periodIsMonthOrFlexible\r\n && props.installationDate\r\n && state.isCurrentMonth && (\r\n \r\n )}\r\n \r\n\r\n \r\n \r\n {t('consumoPeriodo')}\r\n
\r\n \r\n {shouldNotDisplayLiters\r\n ? formatNumberWithFractionDigits(Number(state.period_usage) / 1000, { minimum: 2, maximum: 2 })\r\n : formatNumberWithFractionDigits(Number(state.period_usage), { minimum: 0, maximum: 0 })}\r\n \r\n {getMeasureUnit()}\r\n
\r\n {state.period_usage_last\r\n && (\r\n \r\n \r\n \r\n \r\n {state.period_usage_last}\r\n %\r\n \r\n )}\r\n\r\n
\r\n {state.period !== t('dia') && (\r\n <>\r\n \r\n
\r\n {t('mediaConsumoDiario')}\r\n \r\n
\r\n
\r\n \r\n {formatConsumption(state.daily_average)}\r\n \r\n {getMeasureUnit()}\r\n
\r\n
\r\n {state.isCurrentMonth && (\r\n \r\n {t('previsao')}\r\n
\r\n \r\n {formatConsumption(state.predicted)}\r\n \r\n {getMeasureUnit()}\r\n
\r\n
\r\n )}\r\n \r\n )}\r\n
\r\n\r\n \r\n
\r\n {state.periodIsMonthOrFlexible && (\r\n \r\n \r\n \r\n {t('mediasDeConsumo')}\r\n \r\n {state.consumptionByDayOfWeek.map((e) => (\r\n \r\n \r\n {`${e.label}:`}\r\n    \r\n \r\n
\r\n \r\n {`${\r\n shouldNotDisplayLiters\r\n ? (\r\n ((Number(e.consumption)\r\n / (e.days || 1)) as number) / 1000\r\n ).toLocaleString('pt-br', {\r\n minimumFractionDigits: 2,\r\n maximumFractionDigits: 2,\r\n })\r\n : (\r\n Number(e.consumption) / (e.days || 1)\r\n ).toFixed(0)\r\n }`}\r\n \r\n {getMeasureUnit()}\r\n
\r\n \r\n ))}\r\n
\r\n \r\n )}\r\n
\r\n
\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n}\r\n\r\nexport function ConsumptionInfoCaption(props: {\r\n label: string;\r\n color: string;\r\n legendHover: string;\r\n dataId: string;\r\n widthIcon: string;\r\n}): JSX.Element {\r\n return (\r\n \r\n \r\n \r\n {props.label}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {props.label}\r\n \r\n {props.legendHover}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport function DateCaption(props: {\r\n startDate: string;\r\n endDate: string;\r\n period: string\r\n}): JSX.Element {\r\n moment.updateLocale('pt', {\r\n months: [\r\n 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho',\r\n 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro',\r\n ],\r\n });\r\n\r\n if (props.period === t('dia')) {\r\n return (\r\n \r\n {moment(props.startDate, 'YYYY-MM-DD').format('DD/MM/YYYY')}\r\n \r\n );\r\n }\r\n\r\n if (props.period === t('semana') || props.period === t('flexivel')) { return (\r\n \r\n {props.startDate ? moment(props.startDate, 'YYYY-MM-DD').format('DD/MM/YYYY') : t('selecioneDataInicial')}\r\n -\r\n {props.endDate ? moment(props.endDate, 'YYYY-MM-DD').format('DD/MM/YYYY') : t('selecionaDataFinal')}\r\n \r\n ); }\r\n\r\n if (props.period === t('mes')) {\r\n return (\r\n \r\n {moment(props.startDate, 'YYYY-MM-DD').format('MMMM YYYY')}\r\n \r\n );\r\n }\r\n\r\n if (props.period === t('ano')) {\r\n return (\r\n \r\n {moment(props.startDate, 'YYYY-MM-DD').format('YYYY')}\r\n \r\n );\r\n }\r\n\r\n return <>;\r\n}\r\n","import { useEffect, useRef, useState } from 'react';\r\nimport i18n from '~/i18n';\r\nimport moment from 'moment';\r\nimport queryString from 'query-string';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory, useParams } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Loader, Card } from '~/components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { DevLayout } from '~/pages/Analysis/DEVs/DevLayout';\r\nimport { AssetLayout } from '~/pages/Analysis/Assets/AssetLayout';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { DACHistoricContents } from '../DACs/DACHistoric';\r\nimport { DamHistoryContents } from '../DAMs/DamHistory';\r\nimport { DUTHistoryContents } from '../DUTs/DUTHistory';\r\nimport { DriHistory } from '../Integrations/IntegrHistory/DriHistory';\r\nimport { Headers2 } from '../Header';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { TimezoneWarn } from '~/components/TimezoneWarn';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\nimport { WaterHistory } from '../Integrations/IntegrHistory/WaterHistory/WaterHistory';\r\n\r\nfunction localeTranslate() {\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n}\r\n\r\nexport const DevHistory = (): JSX.Element => {\r\n localeTranslate();\r\n const [profile] = useState(getUserProfile);\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const routeParams = useParams<{ devId }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n assetLayout: false as boolean,\r\n };\r\n state.isLoading = !state.devInfo;\r\n return state;\r\n });\r\n\r\n async function getDevInfo() {\r\n if (!state.devInfo) {\r\n try {\r\n state.devInfo = await getCachedDevInfo(routeParams.devId, {});\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n setState({ isLoading: false });\r\n }\r\n const { devInfo } = state;\r\n const isDac = !!(devInfo && devInfo.dac);\r\n let isDam = !!(devInfo && devInfo.dam);\r\n const isDut = !!(devInfo && devInfo.dut);\r\n let isDutAut = !!(devInfo && devInfo.dut_aut);\r\n const isDri = !!(devInfo && devInfo.dri);\r\n const isDma = !!(devInfo && devInfo.dma);\r\n // @ts-ignore\r\n if (isDam && devInfo.dac && devInfo.dam.DAM_DISABLED === 1) isDam = false;\r\n // @ts-ignore\r\n if (isDutAut && (devInfo.dut_aut.DUTAUT_DISABLED === 1)) isDutAut = false;\r\n const isAutomationOnly = isDam && (!isDac) && (!isDut);\r\n\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n state.assetLayout = linkBase.includes('/ativo');\r\n\r\n function visibilityAutomation() {\r\n if ((!isAutomationOnly) && (isDam || isDutAut) && !profile.permissions.isInstaller) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n const allTabs = [\r\n {\r\n title: t('equipamento'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'equipamento' })}`,\r\n isActive: (queryPars.aba === 'equipamento') || (!queryPars.aba),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('automacao'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'automacao' })}`,\r\n isActive: (queryPars.aba === 'automacao'),\r\n visible: visibilityAutomation(),\r\n ref: useRef(null),\r\n },\r\n ];\r\n const tabs = allTabs.filter((x) => x.visible);\r\n\r\n useEffect(() => {\r\n getDevInfo();\r\n }, []);\r\n\r\n function getScreen() {\r\n if (allTabs[1].isActive && isDutAut) {\r\n return ;\r\n }\r\n if (isAutomationOnly || (allTabs[1].isActive && state.devInfo.dam)) {\r\n return ;\r\n }\r\n if (isDri) {\r\n return ;\r\n }\r\n if (isDma) {\r\n return ;\r\n }\r\n if (allTabs[0].isActive && state.devInfo.dut) {\r\n return ;\r\n }\r\n return '(vazio)';\r\n }\r\n\r\n function getNewScreens() {\r\n // adicionar dispositivos conforme telas forem refatoradas\r\n if (allTabs[0].isActive && state.devInfo.dac) {\r\n return ;\r\n }\r\n }\r\n\r\n function isNewScreen() {\r\n if (allTabs[0].isActive && state.devInfo.dac) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }\r\n\r\n const dutSelected = () => state.devInfo?.dut?.PLACEMENT === 'DUO';\r\n\r\n function buildScreenInfoParams(): Parameters<(typeof AssetLayout)>[0]['screenInfo'] {\r\n return {\r\n forceHideHealthTab: false,\r\n groupSelected: true,\r\n hasNonDutDeviceInAssets: false,\r\n dutAutomationInfo: {},\r\n isDuoSelected: dutSelected(),\r\n assetRoleSelected: 0,\r\n };\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.devInfo?.DEV_ID, t('historico'))}\r\n \r\n {!state.assetLayout ? () : ()}\r\n {(state.isLoading)\r\n && (\r\n
\r\n {' '}\r\n \r\n {' '}\r\n
\r\n )}\r\n {(state.devInfo && !state.isLoading)\r\n && (\r\n
\r\n {getNewScreens()}\r\n { !isNewScreen() && (\r\n \r\n {(tabs.length > 1) && state.devInfo.dut?.operation_mode !== 5\r\n ? (\r\n
\r\n \r\n
\r\n ) : <> }\r\n
\r\n {getScreen()}\r\n
\r\n
\r\n )}\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('DevHistory', 'component')(DevHistory);\r\n","import styled from 'styled-components';\r\nimport {\r\n Select,\r\n} from 'components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const ItemTitle = styled.h3`\r\n margin-bottom: 0;\r\n font-weight: bold;\r\n font-size: 15px;\r\n line-height: 27px;\r\n color: #4B2FDB;\r\n`;\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\nexport const Data = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-bottom: 16px;\r\n`;\r\nexport const DataText = styled.span<{ fontWeight? }>(\r\n ({ color = colors.Grey400, fontWeight = 'normal' }) => `\r\n font-size: 1em;\r\n font-weight: ${fontWeight};\r\n color: ${color};\r\n`,\r\n);\r\nexport const Title = styled.h1`\r\n font-size: 1.5em;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const Text = styled.span`\r\n margin-left: 7px;\r\n`;\r\nexport const TextLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n color: #5d5d5d;\r\n`;\r\n\r\nexport const CustomSelect = styled(Select)`\r\n margin-bottom: 20px;\r\n`;\r\nexport const ContainerInfo = styled.div`\r\n display: flex;\r\n padding: 25px 0 0 0;\r\n height: auto;\r\n`;\r\nexport const ContainerText = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-bottom: 30px;\r\n`;\r\n\r\nexport const OverLay = styled.div`\r\n position: absolute;\r\n display: flex;\r\n background-color: #eceaea;\r\n width: 100%;\r\n height: 100%;\r\n z-index: 10000000;\r\n opacity: 0.4;\r\n filter: alpha(opacity=40);\r\n top: 0;\r\n left: 0;\r\n`;\r\n\r\nexport const Wrapper = styled.div`\r\n div {\r\n -ms-overflow-style: none;\r\n\r\n &::-webkit-scrollbar {\r\n display: none;\r\n }\r\n }\r\n`;\r\n\r\nexport const SpanType1 = styled.span<{ showExceptions }>(\r\n ({ showExceptions }) => `\r\n border-right: 1px solid lightgrey;\r\n border-left: 1px solid lightgrey;\r\n text-align: center;\r\n font-size: 90%;\r\n border-bottom: ${showExceptions ? '1px solid lightgrey' : 'none'};\r\n background-color: ${showExceptions ? '#f4f4f4' : 'transparent'};\r\n cursor: ${showExceptions ? 'pointer' : undefined};\r\n font-weight: ${showExceptions ? 'normal' : 'bold'};\r\n`,\r\n);\r\n\r\nexport const SpanType2 = styled.span<{ showExceptions }>(\r\n ({ showExceptions }) => `\r\n border-left: 1px solid lightgrey;\r\n border-right: 1px solid lightgrey;\r\n text-align: center;\r\n font-size: 90%;\r\n border-bottom: ${showExceptions ? 'none' : '1px solid lightgrey'},\r\n background-color: ${showExceptions ? 'transparent' : '#f4f4f4'},\r\n cursor: ${!showExceptions ? 'pointer' : undefined},\r\n font-weight: ${!showExceptions ? 'normal' : 'bold'},\r\n`,\r\n);\r\n\r\nexport const ContainerEcoMode = styled.div`\r\n display: flex;\r\n align-items: center;\r\n`;\r\n\r\nexport const HoverEcoLocal = styled.span`\r\n display: flex;\r\n flex-direction: column;\r\n max-width: 247px;\r\n padding-inline: 20px;\r\n padding-block: 15px;\r\n color: white;\r\n span{\r\n font-family: 'Inter';\r\n font-style: normal;\r\n font-weight: 400;\r\n font-size: 11px;\r\n line-height: 13px;\r\n }\r\n`;\r\n","import { Flex } from 'reflexbox';\r\nimport '~/assets/css/ReactTags.css';\r\nimport {\r\n ScheduleViewCard,\r\n ExceptionViewCard,\r\n} from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { ScheduleDut, ExceptionDut } from '../../../providers/types/api-private';\r\n\r\nexport const DutSchedulesList = (props: {\r\n schedules: ScheduleDut[]\r\n exceptions: ExceptionDut[]\r\n}): JSX.Element => {\r\n const history = useHistory();\r\n const [state, render, setState] = useStateVar({\r\n submitting: false,\r\n editingExtras: false,\r\n isLoading: false as boolean,\r\n key: 1 as number,\r\n showExceptions: false as boolean,\r\n });\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n { state.showExceptions && setState({ showExceptions: !state.showExceptions, showList: false }); }}\r\n >\r\n Programações\r\n \r\n \r\n { (!state.showExceptions) && setState({ showExceptions: !state.showExceptions }); }}\r\n >\r\n Exceções\r\n \r\n \r\n
\r\n
\r\n {`Total: ${!state.showExceptions ? props.schedules.length : props.exceptions.length}`}\r\n
\r\n {!state.showExceptions && (\r\n <>\r\n {props.schedules.map((schedule, index) => (index % 2 === 0\r\n ? (\r\n \r\n \r\n {index + 1 < props.schedules.length ? : <>}\r\n \r\n )\r\n : (\r\n <>\r\n )))}\r\n \r\n )}\r\n {state.showExceptions && props.exceptions.length > 0 && (\r\n <>\r\n \r\n \r\n Título\r\n
\r\n \r\n Data\r\n
\r\n \r\n Repetir todo ano\r\n
\r\n \r\n Início\r\n
\r\n \r\n Fim\r\n
\r\n \r\n {props.exceptions.map((exception, index) => (\r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { CalendarIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const InfoItem = styled.div`\r\nwidth: 150px;\r\nmargin-right: 20px;\r\nmargin-bottom: 30px;\r\n\r\n@media (max-width: 767px) {\r\n margin-bottom: 0;\r\n}\r\n`;\r\n\r\nexport const TableNew2 = styled.table`\r\nwidth: 100%;\r\nwhite-space: nowrap;\r\nborder-collapse: collapse;\r\n& tbody {\r\n & tr {\r\n height: 35px;\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n }\r\n & td {\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n padding: 0 10px;\r\n }\r\n}\r\n& thead {\r\n & tr {\r\n height: 40px;\r\n display: table-row;\r\n border-bottom: solid 1px ${colors.Grey};\r\n }\r\n & th {\r\n flex: 1;\r\n text-align: left;\r\n align-items: center;\r\n padding: 0 10px;\r\n word-break: normal;\r\n }\r\n}\r\n`;\r\n\r\nexport const Title = styled.h1`\r\n font-size: 1.25em;\r\n color: #363BC4;\r\n font-weight: bold;\r\n margin-bottom: 16px;\r\n`;\r\n\r\nexport const NotyIconStyle = styled.div`\r\n width: 180px;\r\n position: relative;\r\n display: inline;\r\n`;\r\n\r\nexport const NotyNumStyle = styled.div`\r\n position: absolute;\r\n right: 0px;\r\n top: -10px;\r\n background-color: #363BC4;\r\n font-size: 11px;\r\n color: white;\r\n display: inline;\r\n padding: 2px 8px;\r\n border-radius: 25px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const ControlButton = styled.div<{ isActive?: boolean, noBorder?: boolean }>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 10px;\r\n width: 160px;\r\n height: 40px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n padding: 10px 12px;\r\n ${({ isActive }) => (isActive ? `background-color: ${colors.BlueSecondary};` : '')}\r\n`;\r\n\r\nexport const ControlButtonIcon = styled.img<{ isActive?: boolean, status?: string }>`\r\n width: 13%;\r\n ${({ isActive }) => (isActive ? 'filter: brightness(10)' : '')};\r\n ${({ status }) => (status === 'ONLINE' ? '' : 'filter: contrast(0)')};\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n text-decoration: underline;\r\n font-size: 11px;\r\n`;\r\n\r\nexport const CustomInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 0.7px solid ${colors.GreyInputBorder};\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const IconWrapper = styled.div<{ width?, height? }>(\r\n ({ width, height }) => `\r\n display: inline-block;\r\n width: ${width || '19'}px;\r\n height: ${height || '25'}px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: ${width}px;\r\n height: ${height}px;\r\n }\r\n`,\r\n);\r\n\r\nexport const ExportBtn = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n border-radius: 10px;\r\n padding: 8px 10px;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n background-color: ${colors.BlueSecondary};\r\n color: white;\r\n svg path {\r\n fill: white !important;\r\n }\r\n }\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.BlueSecondary};\r\n color: white;\r\n }\r\n .react-datepicker__month-wrapper {\r\n display: flex;\r\n text-align: center;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .react-datepicker__month .react-datepicker__month-text, .react-datepicker__month .react-datepicker__quarter-text {\r\n padding: 5px;\r\n }\r\n\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n`;\r\n\r\nexport const InfoGraphCont = styled.div`\r\n @media only screen and (max-width: 1050px) {\r\n width: 100%;\r\n margin-left: 0px;\r\n }\r\n width: 60%;\r\n margin-left: 40px;\r\n`;\r\n\r\nexport const ButtonAddAssociationsDal = styled.div`\r\n display: flex;\r\n align-items: center;\r\n flex-direction: column;\r\n width: 200px;\r\n @media (max-width: 767px) {\r\n width: 100%;\r\n margin-bottom: 40px;\r\n }\r\n`;\r\n\r\nexport const ContainerInfoIlumItem = styled.div`\r\n width: 100%;\r\n display: flex;\r\n gap: 10px;\r\n flex-wrap: wrap;\r\n justify-content: space-between;\r\n padding-right: 10px;\r\n @media (max-width: 767px) {\r\n flex-direction: column;\r\n }\r\n`;\r\n\r\nexport const ContainerUseIndex = styled.div`\r\n margin: 30px;\r\n @media (max-width: 767px) {\r\n margin: 10px;\r\n }\r\n`;\r\n\r\nexport const TextPNoMargin = styled.p`\r\n font-weight: bold;\r\n font-size: medium;\r\n @media (max-width: 767px) {\r\n font-size: small;\r\n }\r\n`;\r\n\r\nexport const TextPMargin = styled.p`\r\n font-weight: bold;\r\n font-size: medium;\r\n margin: 30px;\r\n @media (max-width: 767px) {\r\n font-size: small;\r\n margin: 0px;\r\n }\r\n`;\r\n\r\nexport const ContainerInfoIndexUse = styled.div`\r\n display: flex;\r\n margin-bottom: 15px;\r\n margin-left: 28px;\r\n flex-wrap: wrap;\r\n`;\r\n\r\nexport const ContainerWithBorderInfo = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n flex-wrap: wrap;\r\n @media (max-width: 767px) {\r\n border-bottom: 1px solid #D1D1D1;\r\n width: 100%;\r\n margin: 20px 0px;\r\n padding: 0px 20px;\r\n }\r\n`;\r\n\r\nexport const ContainerGraphicIndexUsage = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n border-left: 7px solid ${colors.BlueSecondary};\r\n border: 1px solid #d7d7d7;\r\n padding: 30px;\r\n margin: 10px 0px;\r\n @media (max-width: 767px) {\r\n padding: 15px;\r\n }\r\n`;\r\n\r\nexport const ContainerDalTree = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n align-items: left;\r\n border-right: 1px solid lightgray;\r\n width: 30%;\r\n @media (max-width: 1270px) {\r\n width: 100%;\r\n }\r\n`;\r\n\r\nexport const ContainerInfoDalProfoile = styled.div`\r\n display: flex;\r\n width: 70%;\r\n @media (max-width: 1270px) {\r\n width: 100%;\r\n }\r\n`;\r\n\r\nexport const FlexRowColumn = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n flex-direction: row;\r\n @media (max-width: 767px) {\r\n flex-direction: column;\r\n }\r\n`;\r\n\r\nexport const FlexRowColumn1250 = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n flex-direction: row;\r\n @media (max-width: 1250px) {\r\n flex-direction: column;\r\n }\r\n`;\r\n","import styled from 'styled-components';\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 20px;\r\n height: 20px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 17px;\r\n height: 17px;\r\n }\r\n`;\r\n\r\nexport const IconBiggerWrapper = styled.div`\r\n display: inline-block;\r\n width: 20px;\r\n height: 20px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 16px;\r\n height: 16px;\r\n }\r\n`;\r\n","import { useState } from 'react';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { Flex } from 'reflexbox';\r\nimport { IconWrapper, IconBiggerWrapper } from './styles';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { AssetConnection } from 'components/AssetConnection';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport {\r\n ChipIcon,\r\n UtilityIcon,\r\n LightOnIcon,\r\n BatteryIcon,\r\n EletricNetworkIcon,\r\n NobreakOffIcon,\r\n InfoIcon,\r\n LightOffIcon,\r\n} from '../../icons';\r\nimport { colors } from '../../styles/colors';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\ninterface ComponentProps {\r\n utils: {\r\n ID: number,\r\n ILLUMINATION_ID?: number\r\n NOBREAK_ID?: number\r\n NAME: string,\r\n UNIT_ID: number,\r\n DAL_ID?: number,\r\n DMT_CODE?: string,\r\n DAL_CODE?: string,\r\n DAT_CODE?: string\r\n GRID_VOLTAGE?: number,\r\n GRID_CURRENT?: number,\r\n PORT?: number\r\n FEEDBACK?: number\r\n selected: boolean\r\n CIRCUIT_ID?: number\r\n APPLICATION: string\r\n STATUS: string\r\n }[]\r\n DEV_ID: string\r\n isDevSelected: boolean,\r\n isUtilSelected: boolean,\r\n onHandleSelectCard,\r\n lastTelemetry?: null | { Feedback: boolean[] },\r\n}\r\n\r\nexport const UtilityTree = (props: ComponentProps): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n const [state, render, setState] = useStateVar(() => ({\r\n utils: props.utils,\r\n deviceSelected: props.isDevSelected,\r\n utilSelected: props.isUtilSelected,\r\n larguraPage: window.innerWidth,\r\n }));\r\n document.body.onresize = function () {\r\n setState({ larguraPage: document.body.clientWidth });\r\n };\r\n\r\n const utilityStatus = {\r\n Nobreak: {\r\n 'Rede Elétrica': {\r\n icon: ,\r\n label: t('redeEletrica'),\r\n },\r\n Bateria: {\r\n icon: ,\r\n label: t('bateria'),\r\n },\r\n Desligado: {\r\n icon: ,\r\n label: t('desligadoMin'),\r\n },\r\n Indisponível: {\r\n icon: ,\r\n label: t('semInformacao'),\r\n },\r\n },\r\n Illumination: {\r\n Ligado: {\r\n icon: ,\r\n label: t('ligadoMinusculo'),\r\n },\r\n Desligado: {\r\n icon: ,\r\n label: t('desligadoMin'),\r\n },\r\n Indisponível: {\r\n icon: ,\r\n label: t('semInformacao'),\r\n },\r\n },\r\n };\r\n const feedbacks = props.lastTelemetry?.Feedback;\r\n\r\n // position -2 means selected device\r\n function selectCard(position: number) {\r\n state.utils.forEach((util, index) => util.selected = position === index);\r\n state.deviceSelected = position === -2;\r\n props.onHandleSelectCard(position);\r\n render();\r\n }\r\n\r\n function borderCard(isSelected: boolean) {\r\n return !isSelected ? '1px solid lightgrey' : '2px solid #363BC4';\r\n }\r\n\r\n function borderLeftCard(isSelected: boolean) {\r\n return !isSelected ? '1px solid lightgrey' : '4px solid #363BC4';\r\n }\r\n\r\n function cardRootDescription(name: string|null, maxSize: number, extraInfo?: string) {\r\n if (!name) return null;\r\n const overExtended = name.length > maxSize;\r\n const nameDisplay = !overExtended ? name : `${name.substring(0, maxSize)}...`;\r\n return (\r\n <>\r\n
\r\n {nameDisplay}\r\n {extraInfo && {extraInfo}}\r\n
\r\n {overExtended && (\r\n \r\n \r\n {name}\r\n \r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n function formatItemIcon(type: string) {\r\n switch (type) {\r\n case 'Device': return ;\r\n case 'Utility': return ;\r\n default: return null;\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n 767 ? '400px' : 'auto'}\r\n style={{\r\n backgroundColor: '#F5F5F5',\r\n overflow: 'auto',\r\n marginLeft: '2px',\r\n width: '100%',\r\n padding: '20px',\r\n }}\r\n >\r\n \r\n selectCard(-2)}\r\n maxWidth={355}\r\n >\r\n \r\n \r\n ▼\r\n \r\n \r\n \r\n \r\n {formatItemIcon('Device')}\r\n \r\n \r\n \r\n {cardRootDescription(props.DEV_ID, 36)}\r\n \r\n \r\n \r\n {state.utils.map((util, index) => (\r\n !util.CIRCUIT_ID\r\n && (\r\n \r\n
\r\n
\r\n selectCard(index)}\r\n >\r\n \r\n \r\n {formatItemIcon('Utility')}\r\n \r\n \r\n \r\n \r\n {cardRootDescription(`${util.NAME}`, 33, util.NOBREAK_ID ? `${util.DAT_CODE ?? '-'} / ${util.DMT_CODE ?? '-'}` : undefined)}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {util.DMT_CODE\r\n && (\r\n \r\n {utilityStatus[util.APPLICATION] && utilityStatus[util.APPLICATION][util.STATUS] ? utilityStatus[util.APPLICATION][util.STATUS].icon : utilityStatus[util.APPLICATION]['Indisponível'].icon}\r\n \r\n )}\r\n {util.DAL_CODE\r\n && (\r\n \r\n {util.FEEDBACK && (\r\n <>\r\n {feedbacks && feedbacks[util.FEEDBACK - 1] ? (\r\n \r\n ) : }\r\n \r\n )}\r\n \r\n )}\r\n \r\n \r\n \r\n {(!(utilityStatus[util.APPLICATION] && utilityStatus[util.APPLICATION][util.STATUS]) || util.STATUS === 'Indisponível')\r\n && (\r\n \r\n
\r\n {util.APPLICATION === 'Nobreak' && {t('semInfoNobreakDmt')}}\r\n {util.APPLICATION === 'Illumination' && {t('semInfoIluminacaoDmt')}}\r\n
\r\n \r\n )}\r\n
\r\n
\r\n \r\n \r\n )\r\n ))}\r\n \r\n \r\n );\r\n};\r\n","import styled from 'styled-components';\r\n\r\nimport { CalendarIcon, ExportWorksheetIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\nimport { Select } from 'components';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.Pink200};\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.Pink200};\r\n border: 1px double ${colors.Pink200};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.Pink400};\r\n border: 1px double ${colors.Pink400};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.Pink200};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.Pink400};\r\n }\r\n`;\r\n\r\nexport const ContainerSimcardsProfileInfo = styled.div`\r\n display: flex;\r\n justify-content: space-between;\r\n flex-wrap: wrap;\r\n margin-bottom: 20px;\r\n @media (max-width: 476px) {\r\n width: 100%;\r\n }\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 12px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const PageTitle = styled.div`\r\n font-family: Inter;\r\n font-style: normal;\r\n font-weight: 600;\r\n font-size: 18px;\r\n color: ${colors.Black};\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n`;\r\n\r\nexport const BtnFilter = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.BlueSecondary};\r\n margin-left: 10px;\r\n font-weight: 600;\r\n border-radius: 5px;\r\n height: 51px;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n margin-left: 10px;\r\n text-decoration: underline;\r\n font-size: 11px;\r\n`;\r\n\r\nexport const Text = styled.text`\r\ncolor: ${colors.Black};\r\n`;\r\n\r\nexport const BtnExport = styled.div`\r\n cursor: pointer;\r\n color: #363BC4;\r\n padding: 14px 20px;\r\n border: 1px solid ${colors.GreyLight};\r\n font-weight: 400;\r\n border-radius: 12px;\r\n height: 41px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n width: fit-content;\r\n :hover {\r\n color: ${colors.White};\r\n background-color: #363BC4;\r\n ${Text} {\r\n color: ${colors.White}\r\n }\r\n }\r\n`;\r\n\r\nexport const ExportWorksheet = styled(ExportWorksheetIcon)(\r\n () => `\r\n color: #363BC4\r\n`,\r\n);\r\n\r\nexport const CustomSelectDutsReference = styled(Select)`\r\n margin-top: 5px;\r\n`;\r\n\r\nexport const ElevatedCard = styled.div`\r\n padding: 32px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const TableBasic = styled.table`\r\n white-space: nowrap;\r\n thead {\r\n z-index: 0 !important;\r\n }\r\n & td,th {\r\n padding: 3px 10px;\r\n border: 1px solid grey;\r\n }\r\n`;\r\n\r\nexport const CustomSelect = styled(Select)`\r\n margin-bottom: 20px;\r\n`;\r\n\r\nexport const TextLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n color: #5d5d5d;\r\n`;\r\n\r\nexport const OverLay = styled.div`\r\n position: absolute;\r\n display: flex;\r\n background-color: #eceaea;\r\n width: 100%;\r\n height: 100%;\r\n z-index: 10000000;\r\n opacity: 0.4;\r\n filter: alpha(opacity=40);\r\n top: 0;\r\n left: 0;\r\n`;\r\n\r\nexport const IconWrapper = styled.div<{ width?, height? }>(\r\n ({ width, height }) => `\r\n display: inline-block;\r\n width: ${width || '19'}px;\r\n height: ${height || '25'}px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: ${width}px;\r\n height: ${height}px;\r\n }\r\n`,\r\n);\r\n\r\nexport const IconWrapperSearch = styled.div`\r\n display: inline-block;\r\n width: 18px;\r\n height: 18px;\r\n margin-top: 15px;\r\n margin-right: 15px;\r\n svg {\r\n width: 18px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const ContainerDuts = styled.div`\r\n max-width: 80%;\r\n height: auto;\r\n padding: 10px;\r\n margin: 5px;\r\n border: 1px solid #DADADA;\r\n border-radius: 5px;\r\n display: flex;\r\n flex-direction: column;\r\n position: relative;\r\n`;\r\n\r\nexport const DutItemStyle = styled.div`\r\n display: flex;\r\n width: 100%;\r\n gap: 20px;\r\n justify-content: space-between;\r\n align-items: center;\r\n svg {\r\n height: 20px;\r\n }\r\n div {\r\n display: flex;\r\n width: 100%;\r\n justify-content: space-between;\r\n gap: 10px;\r\n p {\r\n max-width: 50ch;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n h6 {\r\n font-size: 11px;\r\n font-weight: bold;\r\n min-width: 86px;\r\n }\r\n }\r\n @media (max-width: 926px) {\r\n div {\r\n width: 90%;\r\n }\r\n }\r\n @media (max-width: 700px) {\r\n div {\r\n width: 80%;\r\n }\r\n }\r\n`;\r\n\r\nexport const HeaderVisibility = styled.div`\r\n display: flex;\r\n padding-left: 45px;\r\n padding-right: 60px;\r\n width: 100%;\r\n justify-content: space-between;\r\n font-style: normal;\r\n font-weight: 700;\r\n font-size: 11px;\r\n line-height: 13px;\r\n color: #5B5B5B;\r\n p{\r\n margin-right: 29px;\r\n margin-bottom: 10px;\r\n }\r\n position: absolute;\r\n top: -21px;\r\n`;\r\n\r\nexport const UnderlineBtn = styled.button`\r\n text-decoration: underline;\r\n color: ${colors.BlueSecondary};\r\n line-height: 12px;\r\n font-size: 12px;\r\n border: 0;\r\n padding: 0;\r\n background: transparent;\r\n :hover{\r\n color: ${colors.Blue500};\r\n }\r\n`;\r\n\r\nexport const Title = styled.h1`\r\n font-size: 1.5em;\r\n color: ${colors.Grey400};\r\n`;\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const Data = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-bottom: 16px;\r\n align-items: start;\r\n`;\r\nexport const DataText = styled.span<{ fontWeight? }>(\r\n ({ color = colors.Grey400, fontWeight = 'normal' }) => `\r\n font-size: 1em;\r\n font-weight: ${fontWeight};\r\n color: ${color};\r\n`,\r\n);\r\n\r\nexport const Separator = styled.div`\r\n width: 1px;\r\n background-color: #C4C4C4;\r\n display: flex;\r\n margin-left: 20px;\r\n margin-right: 20px;\r\n\r\n @media (max-width: 775px) {\r\n height: 1px;\r\n width: 100%;\r\n align-items: center;\r\n justify-content: center;\r\n margin-left: 0px;\r\n margin-right: 0px;\r\n margin-bottom: 20px;\r\n }\r\n`;\r\n\r\nexport const DocumentationContainer = styled.div`\r\n box-sizing: border-box;\r\n width: 100%;\r\n height: 218px;\r\n margin-bottom: 5px;\r\n overflow-x: hidden;\r\n overflow-y: scroll;\r\n border-radius: 5px;\r\n padding: 4px;\r\n border: 1px solid rgba(32, 35, 112, 0.20);\r\n background: #F8F8F8;\r\n div {\r\n display: flex;\r\n align-items: center;\r\n\r\n p {\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n margin: 0px;\r\n }\r\n }\r\n ::-webkit-scrollbar-track {\r\n background: #F8F8F8;\r\n }\r\n section {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n height: 100%;\r\n border-radius: 5px;\r\n background: #F8F8F8;\r\n margin-left: 8px;\r\n text-align: center;\r\n h4 {\r\n color: #AEAEAE;\r\n font-family: Inter;\r\n font-size: 11px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: normal\r\n }\r\n h3 {\r\n color: #000;\r\n font-family: Inter;\r\n font-size: 13px;\r\n font-style: normal;\r\n font-weight: 500;\r\n line-height: normal;\r\n }\r\n svg {\r\n margin-bottom: 5px;\r\n }\r\n }\r\n`;\r\n\r\nexport const ExibInvisibleFile = styled.p`\r\n width: 100%;\r\n display: flex;\r\n justify-content: flex-end;\r\n svg {\r\n width: 10px;\r\n height: 10px;\r\n }\r\n`;\r\n\r\nexport const DocumentationContainerArea = styled.div`\r\n width: 100%;\r\n h4 {\r\n color: #363BC4;\r\n }\r\n button {\r\n max-width: 100px;\r\n }\r\n`;\r\n\r\nexport const SelectAndDownloadArea = styled.div`\r\n display: flex;\r\n width: 100%;\r\n justify-content: space-between;\r\n align-items: center;\r\n div {\r\n display: flex;\r\n align-items: center;\r\n p {\r\n margin: 0px;\r\n }\r\n }\r\n`;\r\n\r\nexport const ItemDoc = styled.div`\r\n gap: 10px;\r\n padding: 10px;\r\n color: #464555;\r\n font-family: Inter;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: normal;\r\n svg {\r\n width: 24px;\r\n height: 24px;\r\n }\r\n div {\r\n gap: 16px;\r\n div {\r\n svg {\r\n width: 14px;\r\n height: 14px;\r\n }\r\n }\r\n }\r\n`;\r\n\r\nexport const ItemDocDelete = styled.div`\r\n gap: 10px;\r\n padding: 10px;\r\n color: gray;\r\n font-family: Inter;\r\n font-size: 14px;\r\n font-style: normal;\r\n font-weight: 400;\r\n line-height: normal;\r\n svg {\r\n width: 24px;\r\n height: 24px;\r\n color: gray;\r\n }\r\n div {\r\n gap: 16px;\r\n div {\r\n svg {\r\n width: 14px;\r\n height: 14px;\r\n }\r\n }\r\n }\r\n`;\r\n\r\nexport const InibVisibilityAddDoc = styled.div`\r\n display: flex;\r\n margin: 0px 22px 22px;\r\n font-size: 12px;\r\n flex-direction: column;\r\n div {\r\n display: flex;\r\n align-items: center;\r\n width: 100%;\r\n gap: 5px;\r\n p {\r\n margin: 0;\r\n }\r\n span {\r\n span {\r\n padding: 0;\r\n width: 10px;\r\n height: 10px;\r\n margin-left: 6px;\r\n }\r\n svg {\r\n width: 15px;\r\n height: 15px;\r\n margin-left: 6px;\r\n }\r\n }\r\n button {\r\n width: 200px;\r\n }\r\n h6 {\r\n color: blue;\r\n font-size: 10px;\r\n text-decoration: underline;\r\n }\r\n }\r\n section {\r\n display: flex;\r\n align-items: end;\r\n justify-content: space-between;\r\n margin-top: 10px;\r\n text-align: center;\r\n h3 {\r\n text-align: center;\r\n }\r\n button {\r\n width: 200px;\r\n padding: 5px;\r\n }\r\n h6 {\r\n color: blue;\r\n font-size: 11px;\r\n text-decoration: underline;\r\n margin: 0;\r\n }\r\n svg {\r\n width: 20px;\r\n height: 20px;\r\n }\r\n }\r\n`;\r\n\r\nexport const BoxResponsive = styled.div`\r\n width: 100%;\r\n display: flex;\r\n\r\n @media (max-width: 775px) {\r\n flex-direction: column;\r\n }\r\n`;\r\n\r\nexport const EditAreaDocs = styled.div`\r\n height: 150px;\r\n border: 2px dashed #BFBFBF;\r\n margin: 22px 22px 22px 22px;\r\n align-items: center;\r\n justify-content: center;\r\n display: flex;\r\n gap: 5px;\r\n padding: 10px;\r\n textarea {\r\n width: 100%;\r\n height: 131px;\r\n border-radius: 3px;\r\n resize: none;\r\n }\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${(props) => props.color ?? colors.Grey400};\r\n margin: 0 8px 0 8px;\r\n &:hover {\r\n text-decoration: underline;\r\n color: ${colors.Blue300};\r\n }\r\n`;\r\n\r\nexport const ObservationAreaContainer = styled.div`\r\n h4 {\r\n color: #363BC4;\r\n }\r\n && div:first-child {\r\n display: flex;\r\n justify-content: space-between;\r\n margin-bottom: 15px;\r\n }\r\n`;\r\n\r\nexport const TitleInfoObservation = styled.div`\r\n display: grid;\r\n grid-template: repeat(1, 1fr) / 3fr repeat(2, 1fr);\r\n padding-bottom: 10px;\r\n width: 100%;\r\n border-bottom: 1px solid #C4C4C4;\r\n span {\r\n color: #77818B;\r\n font-size: 10px;\r\n font-family: Inter;\r\n font-weight: 700;\r\n }\r\n`;\r\n\r\nexport const ContainerObservationsItems = styled.div`\r\n display: grid;\r\n grid-template: repeat(1, 1fr) / 3fr repeat(2, 1fr);\r\n margin: 5px 0px;\r\n align-items: start;\r\n width: 100%;\r\n div {\r\n span {\r\n width: 95%;\r\n }\r\n }\r\n @media (max-width: 768px) {\r\n grid-template: repeat(1, 1fr) / repeat(2, 1fr);\r\n border-bottom: 1px solid lightgray;\r\n }\r\n`;\r\n\r\nexport const ContainerEditDeleteObs = styled.div`\r\n display: flex;\r\n gap: 20px;\r\n .edit {\r\n width: 20px;\r\n height: 18px;\r\n }\r\n`;\r\n\r\nexport const ContainerObservation = styled.div`\r\n display: flex;\r\n align-items: start;\r\n gap: 10px;\r\n justify-content: flex-start;\r\n width: 95%;\r\n`;\r\n\r\nexport const TextObsUnit = styled.span`\r\ndisplay: -webkit-box;\r\noverflow: hidden;\r\n-webkit-box-orient: vertical;\r\n`;\r\n\r\nexport const TextObsUnitExpand = styled.span`\r\ndisplay: -webkit-box;\r\noverflow: hidden;\r\n-webkit-box-orient: vertical;\r\n`;\r\n\r\nexport const IconsContainerObs = styled.div`\r\n display: flex;\r\n gap: 20px;\r\n @media (max-width: 768px) {\r\n flex-direction: column;\r\n gap: 0px;\r\n\r\n }\r\n`;\r\n\r\nexport const CustomInput = styled.div`\r\n span:first-of-type {\r\n top: calc(50% - 30px) !important;\r\n }\r\n\r\n span:nth-child(3) {\r\n top: 20% !important;\r\n }\r\n`;\r\n\r\nexport const ContainerHtmlObs = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n ul {\r\n margin: 0px;\r\n padding-inline-start: 20px;\r\n }\r\n p {\r\n margin: 0px;\r\n }\r\n`;\r\n\r\nexport const TextProgressBar = styled.span`\r\n flex-shrink: 0;\r\n vertical-align: middle;\r\n line-height: 42px;\r\n color: ${colors.Grey400};\r\n`;\r\n","type WarningIconProps = {\r\n size?: string;\r\n}\r\n\r\nexport const SmallWarningIcon = ({\r\n size = '20px', ...props\r\n}: WarningIconProps): JSX.Element => (\r\n \r\n \r\n \r\n);\r\n","import { set } from 'date-fns';\r\nimport { TFunction } from 'i18next';\r\nimport { toast } from 'react-toastify';\r\n\r\nexport function validateStringTimeInterval(\r\n interval: {startTime?: string, endTime?: string},\r\n t: TFunction<'translation', undefined, 'translation'>,\r\n): boolean {\r\n const { endTime, startTime } = interval;\r\n\r\n if (!startTime || !/^[0-2]\\d:[0-5]\\d$/.test(startTime)) {\r\n toast.error(t('erroHorarioInvalido'));\r\n return false;\r\n }\r\n if (!endTime || !/^[0-2]\\d:[0-5]\\d$/.test(endTime)) {\r\n toast.error(t('erroHorarioInvalido'));\r\n return false;\r\n }\r\n\r\n const startDate = set(new Date(), {\r\n hours: Number(startTime.split(':')[0]),\r\n minutes: Number(startTime.split(':')[1]),\r\n seconds: 0,\r\n milliseconds: 0,\r\n });\r\n\r\n const endDate = set(new Date(), {\r\n hours: Number(endTime.split(':')[0]),\r\n minutes: Number(endTime.split(':')[1]),\r\n seconds: 0,\r\n milliseconds: 0,\r\n });\r\n\r\n if (startDate >= endDate) {\r\n toast.error(t('erroHorarioInicioMenorHorarioFim'));\r\n return false;\r\n }\r\n\r\n return true;\r\n}\r\n","import {\r\n apiCall,\r\n} from '~/providers';\r\nimport {\r\n NotyIconStyle, NotyNumStyle, ControlButton, ControlButtonIcon, WeekDayButton, Sidebar, SchedCardContainer, TextLine, DefaultModeContainer,\r\n} from './styles';\r\nimport {\r\n ModalWindow,\r\n Button,\r\n Loader,\r\n Input,\r\n Checkbox,\r\n RadioButton,\r\n} from '~/components';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { toast } from 'react-toastify';\r\nimport { ChangeEvent, useEffect } from 'react';\r\nimport { colors } from '~/styles/colors';\r\nimport { ToggleSwitchMini } from 'components/ToggleSwitch';\r\nimport {\r\n EditIcon,\r\n CheckboxIcon,\r\n ProgIcon,\r\n} from '~/icons';\r\nimport { SmallTrashIcon } from '~/icons/Trash';\r\nimport img_schedule from '~/assets/img/cool_ico/schedule.svg';\r\n\r\nimport { t } from 'i18next';\r\nimport { Select } from '~/components/NewSelect';\r\nimport { Label } from '../styles';\r\nimport { AxiosError } from 'axios';\r\nimport { FullProg_v4 } from '~/providers/types';\r\nimport { UnderlineBtn } from '../Units/UnitProfile/styles';\r\nimport { SmallWarningIcon } from '~/icons/WarningIcon';\r\nimport { useHistory, useRouteMatch } from 'react-router-dom';\r\nimport { BtnClean } from '../DALs/styles';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { validateStringTimeInterval } from '~/helpers/validateTime';\r\n\r\nexport interface ScheduleInfo {\r\n ID?: number;\r\n DAL_ID?: number;\r\n ILLUMINATION_ID: number;\r\n TITLE: string;\r\n ACTIVE: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n DAYS: string;\r\n STATUS: string;\r\n DEFAULT_MODE?: string;\r\n DELETE?: boolean;\r\n INSERT?: boolean;\r\n EDIT?: boolean;\r\n}\r\n\r\nexport interface ExceptionInfo {\r\n ID?: number;\r\n DAL_ID?: number;\r\n ILLUMINATION_ID: number;\r\n TITLE: string;\r\n ACTIVE: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n EXCEPTION_DATE: string;\r\n REPEAT_YEARLY: string;\r\n STATUS: string;\r\n DELETE?: boolean;\r\n INSERT?: boolean;\r\n EDIT?: boolean;\r\n}\r\n\r\nexport const parseDamProgToDalProg = (damProg: FullProg_v4) => {\r\n const uniqueProgs = {};\r\n for (const day of Object.keys(damProg.week)) {\r\n if (uniqueProgs[JSON.stringify(damProg.week[day])]) {\r\n uniqueProgs[JSON.stringify(damProg.week[day])].days.push(day);\r\n } else {\r\n uniqueProgs[JSON.stringify(damProg.week[day])] = {\r\n days: [day],\r\n permission: damProg.week[day].permission,\r\n start: damProg.week[day].start,\r\n end: damProg.week[day].end,\r\n };\r\n }\r\n }\r\n const scheds = [] as {\r\n ID: number;\r\n DAL_ID: number;\r\n ILLUMINATION_ID: number;\r\n TITLE: string;\r\n ACTIVE: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n DAYS: string;\r\n STATUS: string;\r\n DEFAULT_MODE?: string;\r\n }[];\r\n let index = 0;\r\n for (const sched of Object.keys(uniqueProgs)) {\r\n const schedBase = {\r\n ID: null as any,\r\n DAL_ID: null as any,\r\n ILLUMINATION_ID: null as any,\r\n TITLE: `Programação ${index}`,\r\n ACTIVE: '1',\r\n BEGIN_TIME: '',\r\n END_TIME: '',\r\n DAYS: '',\r\n STATUS: '1',\r\n };\r\n schedBase.BEGIN_TIME = uniqueProgs[sched].start;\r\n schedBase.END_TIME = uniqueProgs[sched].end;\r\n schedBase.STATUS = uniqueProgs[sched].permission === 'allow' ? '1' : '0';\r\n\r\n const days = {\r\n mon: false,\r\n tue: false,\r\n wed: false,\r\n thu: false,\r\n fri: false,\r\n sat: false,\r\n sun: false,\r\n };\r\n for (const day of uniqueProgs[sched].days) {\r\n days[day] = true;\r\n }\r\n schedBase.DAYS = JSON.stringify(days);\r\n\r\n index++;\r\n scheds.push(schedBase);\r\n }\r\n\r\n const excepts = [] as {\r\n ID: number;\r\n DAL_ID: number;\r\n ILLUMINATION_ID: number;\r\n TITLE: string;\r\n ACTIVE: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n EXCEPTION_DATE: string;\r\n REPEAT_YEARLY: string;\r\n STATUS: string;\r\n DEFAULT_MODE?: string;\r\n }[];\r\n index = 0;\r\n if (damProg.exceptions) {\r\n for (const date of Object.keys(damProg.exceptions)) {\r\n const [_, month, day] = date.split('-');\r\n const exceptBase = {\r\n ID: null as any,\r\n DAL_ID: null as any,\r\n ILLUMINATION_ID: null as any,\r\n TITLE: `Exceção ${index} `,\r\n ACTIVE: '1',\r\n BEGIN_TIME: damProg.exceptions[date].start,\r\n END_TIME: damProg.exceptions[date].end,\r\n EXCEPTION_DATE: `${day.padStart(2, '0')}/${month.padStart(2, '0')}`,\r\n REPEAT_YEARLY: '1',\r\n STATUS: damProg.exceptions[date].permission === 'allow' ? '1' : '0',\r\n };\r\n index++;\r\n excepts.push(exceptBase);\r\n }\r\n }\r\n\r\n return { scheds, excepts };\r\n};\r\n\r\nexport const DALSchedule = (props: {\r\n deviceCode: string,\r\n illumId: number,\r\n illumName: string,\r\n canEdit: boolean,\r\n isModal: boolean,\r\n styledIcon?: boolean,\r\n getScheds?: (scheds, exceptions) => void,\r\n onlyIcon?: boolean,\r\n editDefaultMode?: (defaultMode: string, illuminationId: number) => void,\r\n defaultMode?: string,\r\n isEditDAL?: boolean,\r\n isEditUtility?: boolean,\r\n handleHasEdited?: () => void,\r\n exceededExceptionLimit?: boolean\r\n setExceededExceptionLimit?: (value: boolean) => void,\r\n}): JSX.Element => {\r\n const {\r\n deviceCode, illumId, illumName,\r\n } = props;\r\n const { t } = useTranslation();\r\n const match = useRouteMatch();\r\n const history = useHistory();\r\n const [state, render, setState] = useStateVar({\r\n dalScheds: null as null | ScheduleInfo[],\r\n larguraPage: window.innerWidth,\r\n openModal: null as null | string,\r\n linkBase: match.url.split('/analise')[0],\r\n modalEditSchedule: null as null | {\r\n schedId: number | undefined\r\n addEdit: 'Add' | 'Edit'\r\n title: string\r\n active: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n selectedDays: {\r\n mon?: boolean\r\n tue?: boolean\r\n wed?: boolean\r\n thu?: boolean\r\n fri?: boolean\r\n sat?: boolean\r\n sun?: boolean\r\n }\r\n status: boolean\r\n index: number\r\n },\r\n dalExceptions: null as null | ExceptionInfo[],\r\n modalEditException: null as null | {\r\n exceptionId: number | undefined\r\n addEdit: 'Add' | 'Edit'\r\n title: string\r\n active: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n status: boolean\r\n exceptionDate: string\r\n repeatYearly: boolean\r\n index: number\r\n },\r\n showScheds: false,\r\n showExceptions: false,\r\n loadingSchedule: false,\r\n loading: true,\r\n loadingSet: false,\r\n totalScheds: 0,\r\n dalSchedsToEdit: { } as {[key: string]: {[key: string]: {schedId: number, delete: boolean, days: string}[]}},\r\n dalExceptsToDelete: { } as {[key: string]: {[key: string]: number[]}},\r\n illumWithConflict: false,\r\n });\r\n\r\n document.body.onresize = function () {\r\n setState({ larguraPage: document.body.clientWidth });\r\n };\r\n\r\n async function getScheds() {\r\n try {\r\n if (deviceCode.startsWith('DAL')) {\r\n const { scheds, exceptions } = await apiCall('/dal/get-dal-scheds', { DAL_CODE: deviceCode, ILLUMINATION_ID: illumId });\r\n state.dalScheds = scheds.filter((sched) => sched.ILLUMINATION_ID === illumId);\r\n state.dalExceptions = exceptions.filter((exception) => exception.ILLUMINATION_ID === illumId);\r\n if (props.getScheds && (state.dalScheds.length || state.dalExceptions.length)) props.getScheds(state.dalScheds, state.dalExceptions);\r\n render();\r\n } else if (deviceCode.startsWith('DAM')) {\r\n const { current } = await apiCall('/dam/get-sched', { damId: deviceCode });\r\n const damSched = current;\r\n\r\n const { scheds, excepts } = parseDamProgToDalProg(damSched);\r\n state.dalScheds = scheds;\r\n state.dalExceptions = excepts;\r\n render();\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n getScheds();\r\n }, [illumId]);\r\n\r\n function editAddProgramming(index: number) {\r\n if (state.showExceptions) editAddException(index);\r\n else editAddSched(index);\r\n }\r\n\r\n function generateDaysObject(days) {\r\n return {\r\n mon: days ? days.mon : false,\r\n tue: days ? days.tue : false,\r\n wed: days ? days.wed : false,\r\n thu: days ? days.thu : false,\r\n fri: days ? days.fri : false,\r\n sat: days ? days.sat : false,\r\n sun: days ? days.sun : false,\r\n };\r\n }\r\n\r\n function editAddSched(index: number, item?: ScheduleInfo) {\r\n try {\r\n const days = item?.DAYS && JSON.parse(item.DAYS);\r\n state.modalEditSchedule = {\r\n schedId: item?.ID,\r\n addEdit: item ? 'Edit' : 'Add',\r\n title: (item?.TITLE) ?? '',\r\n active: item ? (item.ACTIVE === '1') : true,\r\n start_time: item ? item.BEGIN_TIME : '',\r\n start_time_error: '',\r\n end_time: item ? item.END_TIME : '',\r\n end_time_error: '',\r\n selectedDays: !state.showExceptions ? generateDaysObject(days) : {},\r\n status: item ? !!(item && item.STATUS === '1') : true,\r\n index,\r\n };\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n function editAddException(index: number, item?: ExceptionInfo) {\r\n try {\r\n state.modalEditException = {\r\n exceptionId: item?.ID,\r\n addEdit: item ? 'Edit' : 'Add',\r\n title: (item?.TITLE) ?? '',\r\n active: item ? !!(item && item.ACTIVE === '1') : true,\r\n start_time: item ? item.BEGIN_TIME : '',\r\n start_time_error: '',\r\n end_time: item ? item.END_TIME : '',\r\n end_time_error: '',\r\n exceptionDate: (item && item.EXCEPTION_DATE) || '',\r\n repeatYearly: !!(item && item.REPEAT_YEARLY === '1'),\r\n status: item ? !!(item && item.STATUS === '1') : true,\r\n index,\r\n };\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n function formatStringToDate(str: string) {\r\n return `${str.substring(6, 10)}-${str.substring(3, 5)}-${str.substring(0, 2)}`;\r\n }\r\n\r\n async function addNewSched() {\r\n if (!state.modalEditSchedule) return;\r\n if (props.getScheds) {\r\n state.dalScheds?.push({\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditSchedule.title,\r\n ACTIVE: state.modalEditSchedule.active ? '1' : '0',\r\n BEGIN_TIME: state.modalEditSchedule.start_time,\r\n END_TIME: state.modalEditSchedule.end_time,\r\n DAYS: JSON.stringify(state.modalEditSchedule.selectedDays),\r\n STATUS: state.modalEditSchedule.status ? '1' : '0',\r\n INSERT: true,\r\n });\r\n props.getScheds(state.dalScheds, state.dalExceptions);\r\n return;\r\n }\r\n if (props.canEdit && !props.getScheds) {\r\n state.dalScheds?.push({\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditSchedule.title,\r\n ACTIVE: state.modalEditSchedule.active ? '1' : '0',\r\n BEGIN_TIME: state.modalEditSchedule.start_time,\r\n END_TIME: state.modalEditSchedule.end_time,\r\n DAYS: JSON.stringify(state.modalEditSchedule.selectedDays),\r\n STATUS: state.modalEditSchedule.status ? '1' : '0',\r\n INSERT: true,\r\n });\r\n render();\r\n }\r\n }\r\n\r\n async function editSched(index) {\r\n if (!state.modalEditSchedule) return;\r\n if (props.getScheds) {\r\n const sched = state.dalScheds?.[index];\r\n state.dalScheds?.splice(index, 1, {\r\n ...sched,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditSchedule.title,\r\n ACTIVE: (state.modalEditSchedule?.active ? '1' : '0'),\r\n BEGIN_TIME: (state.modalEditSchedule?.start_time),\r\n END_TIME: (state.modalEditSchedule?.end_time),\r\n DAYS: JSON.stringify(state.modalEditSchedule.selectedDays),\r\n STATUS: (state.modalEditSchedule?.status ? '1' : '0'),\r\n EDIT: true,\r\n });\r\n props.getScheds(state.dalScheds, state.dalExceptions);\r\n return;\r\n }\r\n\r\n if (props.canEdit && !props.getScheds) {\r\n const sched = state.dalScheds?.[index];\r\n state.dalScheds?.splice(index, 1, {\r\n ...sched,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditSchedule.title,\r\n ACTIVE: (state.modalEditSchedule?.active ? '1' : '0'),\r\n BEGIN_TIME: (state.modalEditSchedule?.start_time),\r\n END_TIME: (state.modalEditSchedule?.end_time),\r\n DAYS: JSON.stringify(state.modalEditSchedule.selectedDays),\r\n STATUS: (state.modalEditSchedule?.status ? '1' : '0'),\r\n EDIT: true,\r\n });\r\n render();\r\n }\r\n }\r\n\r\n async function saveEditNewSched(index) {\r\n try {\r\n // setState({ loadingSet: true });\r\n if (!state.modalEditSchedule) return;\r\n if (state.modalEditSchedule.title === '') return toast.error(t('erroDigiteNomeProgramacao'));\r\n if (!state.showExceptions && state.modalEditSchedule.selectedDays && Object.values(state.modalEditSchedule.selectedDays).every((item) => item === false)) {\r\n return toast.error(t('erroSelecionePeloMenosUmDia'));\r\n }\r\n\r\n if (!validateStringTimeInterval({\r\n startTime: state.modalEditSchedule.start_time,\r\n endTime: state.modalEditSchedule.end_time,\r\n }, t)) {\r\n return;\r\n }\r\n\r\n if (state.modalEditSchedule.addEdit === 'Add') {\r\n await addNewSched();\r\n } else if (state.modalEditSchedule.addEdit === 'Edit') {\r\n await editSched(index);\r\n }\r\n state.modalEditSchedule = null;\r\n // setState({ loadingSet: false });\r\n render();\r\n toast.success(t('sucessoAdicionarProgramacao'));\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n toast.error(error?.response?.data);\r\n // setState({ loadingSet: false });\r\n }\r\n }\r\n\r\n async function addNewException() {\r\n if (!state.modalEditException) return;\r\n if (props.getScheds) {\r\n state.dalExceptions?.push({\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditException.title,\r\n ACTIVE: state.modalEditException.active ? '1' : '0',\r\n BEGIN_TIME: state.modalEditException.start_time,\r\n END_TIME: state.modalEditException.end_time,\r\n EXCEPTION_DATE: state.modalEditException.exceptionDate,\r\n REPEAT_YEARLY: state.modalEditException.repeatYearly ? '1' : '0',\r\n STATUS: state.modalEditException.status ? '1' : '0',\r\n INSERT: true,\r\n });\r\n props.getScheds(state.dalScheds, state.dalExceptions);\r\n return;\r\n }\r\n\r\n if (props.canEdit && !props.getScheds) {\r\n state.dalExceptions?.push({\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditException.title,\r\n ACTIVE: state.modalEditException.active ? '1' : '0',\r\n BEGIN_TIME: state.modalEditException.start_time,\r\n END_TIME: state.modalEditException.end_time,\r\n EXCEPTION_DATE: state.modalEditException.exceptionDate,\r\n REPEAT_YEARLY: state.modalEditException.repeatYearly ? '1' : '0',\r\n STATUS: state.modalEditException.status ? '1' : '0',\r\n INSERT: true,\r\n });\r\n render();\r\n }\r\n }\r\n\r\n async function editException(index) {\r\n if (!state.modalEditException) return;\r\n if (props.getScheds) {\r\n const exception = state.dalExceptions?.[index];\r\n state.dalExceptions?.splice(index, 1, {\r\n ...exception,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditException.title,\r\n ACTIVE: state.modalEditException.active ? '1' : '0',\r\n BEGIN_TIME: state.modalEditException?.start_time,\r\n END_TIME: state.modalEditException?.end_time,\r\n EXCEPTION_DATE: state.modalEditException.exceptionDate,\r\n REPEAT_YEARLY: state.modalEditException.repeatYearly ? '1' : '0',\r\n STATUS: state.modalEditException.status ? '1' : '0',\r\n EDIT: true,\r\n });\r\n props.getScheds(state.dalScheds, state.dalExceptions);\r\n return;\r\n }\r\n\r\n if (props.canEdit && !props.getScheds) {\r\n const exception = state.dalExceptions?.[index];\r\n state.dalExceptions?.splice(index, 1, {\r\n ...exception,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: illumId,\r\n TITLE: state.modalEditException.title,\r\n ACTIVE: state.modalEditException.active ? '1' : '0',\r\n BEGIN_TIME: state.modalEditException?.start_time,\r\n END_TIME: state.modalEditException?.end_time,\r\n EXCEPTION_DATE: state.modalEditException.exceptionDate,\r\n REPEAT_YEARLY: state.modalEditException.repeatYearly ? '1' : '0',\r\n STATUS: state.modalEditException.status ? '1' : '0',\r\n EDIT: true,\r\n });\r\n render();\r\n }\r\n }\r\n\r\n async function saveEditNewException(index) {\r\n try {\r\n if (!state.modalEditException) return;\r\n if (state.modalEditException.title === '') return toast.error(t('erroDigiteNomeProgramacao'));\r\n if ((state.modalEditException.exceptionDate.length !== 10 || state.modalEditException.exceptionDate.includes('_'))) {\r\n return toast.error(t('erroDataExcecaoObrigatoria'));\r\n }\r\n\r\n if (!validateStringTimeInterval({\r\n startTime: state.modalEditException.start_time,\r\n endTime: state.modalEditException.end_time,\r\n }, t)) {\r\n return;\r\n }\r\n\r\n if (state.modalEditException.addEdit === 'Add') {\r\n await addNewException();\r\n } else if (state.modalEditException.addEdit === 'Edit') {\r\n await editException(index);\r\n }\r\n state.modalEditException = null;\r\n render();\r\n toast.success(t('sucessoAdicionarProgramacao'));\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n async function deleteSchedule(sched: ScheduleInfo, index: number) {\r\n try {\r\n const { ID, ILLUMINATION_ID } = sched;\r\n if (props.getScheds) {\r\n const sched = state.dalScheds?.[index];\r\n // @ts-ignore\r\n state.dalScheds?.splice(index, 1, {\r\n ...sched,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID,\r\n DELETE: true,\r\n });\r\n render();\r\n props.getScheds(state.dalScheds, state.dalExceptions);\r\n return;\r\n }\r\n if (props.canEdit && !props.getScheds) {\r\n const sched = state.dalScheds?.[index];\r\n // @ts-ignore\r\n state.dalScheds?.splice(index, 1, {\r\n ...sched,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID,\r\n DELETE: true,\r\n });\r\n render();\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n async function deleteException(sched: ExceptionInfo, index: number) {\r\n try {\r\n const { ID, ILLUMINATION_ID } = sched;\r\n if (props.getScheds) {\r\n const except = state.dalExceptions?.[index];\r\n // @ts-ignore\r\n state.dalExceptions?.splice(index, 1, {\r\n ...except,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID,\r\n DELETE: true,\r\n });\r\n render();\r\n props.getScheds(state.dalScheds, state.dalExceptions);\r\n return;\r\n }\r\n\r\n if (props.canEdit && !props.getScheds) {\r\n const except = state.dalExceptions?.[index];\r\n // @ts-ignore\r\n state.dalExceptions?.splice(index, 1, {\r\n ...except,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID,\r\n DELETE: true,\r\n });\r\n render();\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n function showScheds() {\r\n try {\r\n state.showScheds = true;\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n function changeShowExceptions(value: boolean) {\r\n setState({ showExceptions: value });\r\n }\r\n\r\n function changeDefaultMode(defaultMode: string, illuminationId:number) {\r\n props.editDefaultMode && props.editDefaultMode(defaultMode, illuminationId);\r\n }\r\n\r\n function changeHasEdited() {\r\n props.handleHasEdited && props.handleHasEdited();\r\n }\r\n\r\n interface DaySched {\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n DAYS: string;\r\n ID?: number;\r\n }\r\n\r\n const getNewSchedDays = (convergence: DaySched,\r\n newSched: DaySched) => {\r\n let newDays;\r\n if (newSched?.ID) {\r\n newDays = JSON.parse(newSched.DAYS);\r\n const convergenceDays = JSON.parse(convergence.DAYS);\r\n for (const day of Object.keys(convergenceDays)) {\r\n if (convergenceDays[day]) newDays[day] = false;\r\n }\r\n } else if (convergence?.ID) {\r\n newDays = JSON.parse(convergence.DAYS);\r\n const convergenceDays = JSON.parse(newSched.DAYS);\r\n for (const day of Object.keys(convergenceDays)) {\r\n if (convergenceDays[day]) newDays[day] = false;\r\n }\r\n }\r\n\r\n return newDays;\r\n };\r\n\r\n function checkConvergence(\r\n currentScheds: DaySched[],\r\n newSched: DaySched,\r\n ) {\r\n const convergence = currentScheds.find((x) => (\r\n compareTimes(newSched, x)\r\n ));\r\n\r\n if (convergence) {\r\n const newDays = getNewSchedDays(convergence, newSched);\r\n let deleteSched = true;\r\n if (newDays !== undefined) {\r\n for (const day of Object.keys(newDays)) {\r\n if (newDays[day]) deleteSched = false;\r\n }\r\n }\r\n\r\n return {\r\n foundConvergence: true, schedId: newSched?.ID ?? convergence?.ID, days: JSON.stringify(newDays), deleteSched,\r\n };\r\n }\r\n return {\r\n foundConvergence: false, schedId: undefined, days: undefined, deleteSched: false,\r\n };\r\n }\r\n\r\n const checkDalSchedsCardsConflicts = (newScheds: ScheduleInfo[], persisted?: ScheduleInfo[]) => {\r\n const daysProgs = {\r\n sun: [],\r\n mon: [],\r\n tue: [],\r\n wed: [],\r\n thu: [],\r\n fri: [],\r\n sat: [],\r\n } as {[day: string]:DaySched[]};\r\n const ans = {\r\n hasConflict: false,\r\n schedsIdToEdit: [] as {schedId: number, delete: boolean, days: string}[],\r\n };\r\n\r\n const deleted = newScheds.filter((sched) => sched.ID && sched.DELETE);\r\n const deletedIds = deleted.map((sched) => sched.ID);\r\n\r\n const inserted = newScheds.filter((sched) => sched.INSERT && !sched.DELETE);\r\n\r\n const edited = newScheds.filter((sched) => sched.EDIT && !sched.DELETE);\r\n const editedIds = edited.map((sched) => sched.ID);\r\n\r\n let schedsToValidate: ScheduleInfo[] = [];\r\n if (persisted?.length === 0 || (persisted?.length && persisted?.length >= 0)) {\r\n const persistedWithoutEditeds = persisted.filter((sched) => (!deletedIds.includes(sched.ID) && !editedIds.includes(sched.ID)));\r\n schedsToValidate = inserted.concat(edited).concat(persistedWithoutEditeds);\r\n } else {\r\n schedsToValidate = newScheds;\r\n }\r\n for (const sched of schedsToValidate) {\r\n const days = JSON.parse(sched.DAYS) || {};\r\n for (const [day, selected] of Object.entries(days)) {\r\n if (!selected) continue;\r\n const dayScheds = daysProgs[day];\r\n const checkConvAns = checkConvergence(dayScheds, sched);\r\n if (checkConvAns.foundConvergence) {\r\n ans.hasConflict = true;\r\n if (checkConvAns.schedId && !ans.schedsIdToEdit.find((s) => s.schedId === checkConvAns.schedId)) {\r\n ans.schedsIdToEdit.push({\r\n schedId: checkConvAns.schedId, delete: checkConvAns.deleteSched, days: checkConvAns.days,\r\n });\r\n }\r\n }\r\n dayScheds.unshift(sched);\r\n }\r\n }\r\n return ans;\r\n };\r\n\r\n interface DayExcept {\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n ID?: number;\r\n }\r\n\r\n const compareTimes = (time_1: DayExcept, time_2: DayExcept) => ((time_1.BEGIN_TIME <= time_2.BEGIN_TIME && time_2.BEGIN_TIME <= time_1.END_TIME)\r\n || (time_2.BEGIN_TIME <= time_1.BEGIN_TIME && time_1.BEGIN_TIME <= time_2.END_TIME)\r\n || (time_1.BEGIN_TIME <= time_2.BEGIN_TIME && time_2.END_TIME <= time_1.END_TIME)\r\n || (time_2.BEGIN_TIME <= time_1.BEGIN_TIME && time_1.END_TIME <= time_2.END_TIME));\r\n\r\n const hasHoursConflicts = (excepts: DayExcept[]) => {\r\n const ans = {\r\n foundConvergence: false,\r\n exceptsIds: [] as number[],\r\n };\r\n for (let i = 0; i < excepts.length; i++) {\r\n for (let j = i + 1; j < excepts.length; j++) {\r\n if (compareTimes(excepts[i], excepts[j])) {\r\n ans.foundConvergence = true;\r\n if (excepts[i]?.ID) {\r\n ans.exceptsIds.push(excepts[i].ID as number);\r\n }\r\n if (excepts[j]?.ID) {\r\n ans.exceptsIds.push(excepts[j].ID as number);\r\n }\r\n }\r\n }\r\n }\r\n return ans;\r\n };\r\n\r\n const handleDayExceptsInsertion = (dayExcepts: {[date: string]: {[year: string]: DayExcept[]}}, dateDM: string, except: ExceptionInfo) => {\r\n if (except.REPEAT_YEARLY === '1') {\r\n if (!dayExcepts[dateDM]?.YEARLY) {\r\n dayExcepts[dateDM].YEARLY = [{ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID }];\r\n } else {\r\n dayExcepts[dateDM].YEARLY.push({ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID });\r\n }\r\n } else {\r\n const dateY = except.EXCEPTION_DATE.slice(6, 10);\r\n if (!dayExcepts[dateDM]?.[dateY]) {\r\n dayExcepts[dateDM][dateY] = [{ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID }];\r\n } else {\r\n dayExcepts[dateDM][dateY].push({ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID });\r\n }\r\n }\r\n };\r\n\r\n const getDayExcepts = (excepts: ExceptionInfo[]) => {\r\n const dayExcepts = {} as {[date: string]: {[year: string]: DayExcept[]}};\r\n for (const except of excepts) {\r\n if (except.ACTIVE === '0') continue;\r\n const dateDM = except.EXCEPTION_DATE.slice(0, 5);\r\n if (!dayExcepts[dateDM]) dayExcepts[dateDM] = {};\r\n\r\n handleDayExceptsInsertion(dayExcepts, dateDM, except);\r\n }\r\n\r\n return dayExcepts;\r\n };\r\n\r\n const checkNotYearlyExcept = (dayExcepts: {[date: string]: {[year: string]: DayExcept[]}}, date: string, yearlyExcepts: DayExcept[], ans: { hasConflict: boolean, exceptsIdToDelete: number[] }) => {\r\n for (const year of Object.keys(dayExcepts[date])) {\r\n if (year === 'YEARLY') continue;\r\n const excepts = dayExcepts[date][year].concat(yearlyExcepts);\r\n const checkExceptsConvergence = hasHoursConflicts(excepts);\r\n if (checkExceptsConvergence.foundConvergence) {\r\n ans.hasConflict = true;\r\n if (checkExceptsConvergence.exceptsIds.length) {\r\n ans.exceptsIdToDelete = ans.exceptsIdToDelete.concat(checkExceptsConvergence.exceptsIds);\r\n }\r\n }\r\n }\r\n };\r\n\r\n const checkDalCardsExceptsConflicts = (newExceptions: ExceptionInfo[], persisted: ExceptionInfo[]) => {\r\n const ans = {\r\n hasConflict: false,\r\n exceptsIdToDelete: [] as number[],\r\n };\r\n\r\n const deleted = newExceptions.filter((except) => except.ID && except.DELETE);\r\n const deletedIds = deleted.map((sched) => sched.ID);\r\n\r\n const inserted = newExceptions.filter((except) => except.INSERT && !except.DELETE);\r\n\r\n const edited = newExceptions.filter((except) => except.EDIT && !except.DELETE);\r\n const editedIds = edited.map((except) => except.ID);\r\n\r\n let exceptsToValidate: ExceptionInfo[] = [];\r\n if (persisted?.length === 0 || (persisted?.length && persisted?.length >= 0)) {\r\n const persistedWithoutEditeds = persisted.filter((except) => (!deletedIds.includes(except.ID) && !editedIds.includes(except.ID)));\r\n exceptsToValidate = inserted.concat(edited).concat(persistedWithoutEditeds);\r\n } else {\r\n exceptsToValidate = newExceptions;\r\n }\r\n\r\n const dayExcepts = getDayExcepts(exceptsToValidate);\r\n\r\n for (const date of Object.keys(dayExcepts)) {\r\n const yearlyExcepts = dayExcepts[date]?.YEARLY || [];\r\n const checkExceptsConvergence = hasHoursConflicts(yearlyExcepts);\r\n if (checkExceptsConvergence.foundConvergence) {\r\n ans.hasConflict = true;\r\n if (checkExceptsConvergence.exceptsIds.length) {\r\n ans.exceptsIdToDelete = ans.exceptsIdToDelete.concat(checkExceptsConvergence.exceptsIds);\r\n }\r\n }\r\n checkNotYearlyExcept(dayExcepts, date, yearlyExcepts, ans);\r\n }\r\n ans.exceptsIdToDelete = ans.exceptsIdToDelete.filter((e) => e !== undefined);\r\n return ans;\r\n };\r\n\r\n const validateDalScheds = async (DEVICE_CODE: string, ILLUMINATION_ID: number, newScheds: ScheduleInfo[], newExceptions: ExceptionInfo[]) => {\r\n try {\r\n const { scheds, exceptions } = await apiCall('/dal/get-dal-scheds', { DAL_CODE: DEVICE_CODE, ILLUMINATION_ID });\r\n\r\n // validar novos + persisitidos\r\n const dalSchedValidation = checkDalSchedsCardsConflicts(newScheds, scheds);\r\n if (dalSchedValidation.hasConflict) {\r\n if (dalSchedValidation.schedsIdToEdit.length) {\r\n if (!state.dalSchedsToEdit[DEVICE_CODE]) state.dalSchedsToEdit[DEVICE_CODE] = {};\r\n state.dalSchedsToEdit[DEVICE_CODE][ILLUMINATION_ID] = dalSchedValidation.schedsIdToEdit;\r\n }\r\n render();\r\n }\r\n\r\n // validar novos + persisitidos\r\n const dalExceptsValidation = checkDalCardsExceptsConflicts(newExceptions, exceptions);\r\n if (dalExceptsValidation.hasConflict) {\r\n if (dalExceptsValidation.exceptsIdToDelete.length) {\r\n if (!state.dalExceptsToDelete[DEVICE_CODE]) state.dalExceptsToDelete[DEVICE_CODE] = {};\r\n state.dalExceptsToDelete[DEVICE_CODE][ILLUMINATION_ID] = [...new Set(dalExceptsValidation.exceptsIdToDelete)];\r\n render();\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n };\r\n\r\n const validateScheds = async () => {\r\n setState({\r\n isLoading: true,\r\n dalExceptsToDelete: {},\r\n dalSchedsToEdit: {},\r\n illumsWithConflict: [],\r\n illumWithConflict: false,\r\n });\r\n render();\r\n\r\n let foundConflict = false;\r\n const scheds = state.dalScheds;\r\n const exceptions = state.dalExceptions;\r\n\r\n try {\r\n // validar só persistidos/editados\r\n // @ts-ignore\r\n const checkJustPersistedAndEditedCards = checkDalSchedsCardsConflicts(scheds.filter((sched) => !sched.DELETE && !sched.INSERT));\r\n if (checkJustPersistedAndEditedCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumWithConflict) {\r\n state.illumWithConflict = true;\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as programações ${illumName}. Alguns conflitos foram encontrados entre as programações já existentes e as programações já existentes que foram editadas.`);\r\n }\r\n\r\n try {\r\n // validar só novos\r\n // @ts-ignore\r\n const checkJustNewCards = checkDalSchedsCardsConflicts(scheds.filter((sched) => sched.INSERT && !sched.DELETE));\r\n if (checkJustNewCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumWithConflict) {\r\n state.illumWithConflict = true;\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as programações ${illumName}. Alguns conflitos foram encontrados entre as programações novas inseridas.`);\r\n }\r\n\r\n try {\r\n // validar só persistidos/editados\r\n // @ts-ignore\r\n const checkJustPersistedAndEditedCards = checkDalCardsExceptsConflicts(exceptions.filter((except) => !except.DELETE && !except.INSERT));\r\n if (checkJustPersistedAndEditedCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumWithConflict) {\r\n state.illumWithConflict = true;\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as exceções ${illumName}. Alguns conflitos foram encontrados entre as exceções já existentes e as exceções já existentes que foram editadas.`);\r\n }\r\n\r\n try {\r\n // validar só novos\r\n // @ts-ignore\r\n const checkJustNewCards = checkDalCardsExceptsConflicts(exceptions.filter((except) => except.INSERT && !except.DELETE));\r\n if (checkJustNewCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumWithConflict) {\r\n state.illumWithConflict = true;\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as exceções ${illumName}. Alguns conflitos foram encontrados entre as exceções novas inseridas.`);\r\n }\r\n\r\n // verificar o retorno\r\n\r\n // validate and save\r\n if (!state.illumWithConflict) {\r\n try {\r\n await validateDalScheds(deviceCode, Number(illumId), scheds || [], exceptions || []);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(`Não será possível salvar programações/exceções ${illumName || ''}.`);\r\n }\r\n render();\r\n }\r\n\r\n if (foundConflict && state.illumWithConflict) {\r\n setState({\r\n loading: false,\r\n });\r\n render();\r\n return false;\r\n }\r\n // setState({\r\n // isLoading: false,\r\n // });\r\n return true;\r\n };\r\n\r\n const saveUtilitySched = async () => {\r\n const valid = await validateScheds();\r\n\r\n if (valid) {\r\n state.openModal = 'saving-confirmation';\r\n render();\r\n }\r\n };\r\n\r\n const sendToServer = async () => {\r\n let success = true;\r\n state.openModal = null;\r\n render();\r\n try {\r\n // Atualiza as programações necessárias\r\n if (state.illumWithConflict) {\r\n toast.error(`Como avisado previamente, não será possível salvar as programações/exceções do ${illumName}. O utilitário foi ignorado, atenção aos conflitos de programação/exceção.`);\r\n return;\r\n }\r\n\r\n const schedsToEdit = state.dalSchedsToEdit?.[deviceCode]?.[illumId];\r\n const schedsToSend = [] as {\r\n DAL_CODE: string;\r\n ILLUMINATION_ID: number;\r\n SCHED_ID?: number;\r\n TITLE?: string;\r\n ACTIVE?: string;\r\n BEGIN_TIME?: string;\r\n END_TIME?: string;\r\n DAYS?: string;\r\n STATUS?: string;\r\n INSERT?: boolean;\r\n EDIT?: boolean;\r\n DELETE?: boolean\r\n }[];\r\n for (const sched of state?.dalScheds || []) {\r\n const editInfo = schedsToEdit?.find((s) => s.schedId === sched.ID);\r\n if ((editInfo?.delete || sched.DELETE) && !sched.ID) continue;\r\n\r\n schedsToSend.push({\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: Number(illumId),\r\n SCHED_ID: sched.ID,\r\n TITLE: sched.TITLE,\r\n ACTIVE: sched.ACTIVE,\r\n BEGIN_TIME: sched.BEGIN_TIME,\r\n END_TIME: sched.END_TIME,\r\n DAYS: editInfo?.days || sched.DAYS,\r\n STATUS: sched.STATUS,\r\n INSERT: (editInfo?.delete || sched.DELETE) ? false : sched.INSERT,\r\n EDIT: (editInfo?.delete || sched.DELETE || sched.INSERT) ? false : (!!editInfo || sched.EDIT),\r\n DELETE: editInfo?.delete ? true : sched.DELETE, // ajustar\r\n });\r\n }\r\n\r\n const exceptsToDelete = state.dalExceptsToDelete?.[deviceCode]?.[illumId];\r\n const exceptsToSend = [] as {\r\n EXCEPTION_ID?: number;\r\n DAL_CODE: string;\r\n ILLUMINATION_ID: number;\r\n TITLE?: string;\r\n ACTIVE?: string;\r\n BEGIN_TIME?: string;\r\n END_TIME?: string;\r\n EXCEPTION_DATE?: string;\r\n REPEAT_YEARLY?: string;\r\n STATUS?: string;\r\n INSERT?: boolean;\r\n DELETE?: boolean\r\n EDIT?: boolean;\r\n }[];\r\n\r\n for (const except of state?.dalExceptions || []) {\r\n const hasToDelete = !!exceptsToDelete?.find((e) => e === except.ID);\r\n exceptsToSend.push({\r\n EXCEPTION_ID: except.ID,\r\n DAL_CODE: deviceCode,\r\n ILLUMINATION_ID: Number(illumId),\r\n TITLE: except.TITLE,\r\n ACTIVE: except.ACTIVE,\r\n BEGIN_TIME: except.BEGIN_TIME,\r\n END_TIME: except.END_TIME,\r\n EXCEPTION_DATE: formatStringToDate(except.EXCEPTION_DATE),\r\n REPEAT_YEARLY: except.REPEAT_YEARLY,\r\n STATUS: except.STATUS,\r\n INSERT: (hasToDelete || except.DELETE) ? false : except.INSERT,\r\n DELETE: hasToDelete ? true : except.DELETE,\r\n EDIT: (hasToDelete || except.DELETE || except.INSERT) ? false : except.EDIT,\r\n });\r\n }\r\n\r\n try {\r\n await apiCall('/dal/handle-multiple-illumination-sched', {\r\n ILLUMINATION_ID: illumId, DAL_CODE: deviceCode, SCHEDS: schedsToSend, EXCEPTIONS: exceptsToSend,\r\n });\r\n } catch (err) {\r\n success = false;\r\n console.log(err);\r\n toast.error(`Não foi possível salvar programações ${illumName || ''}`);\r\n }\r\n\r\n if (success) {\r\n history.push(`${state.linkBase}/analise/utilitario/iluminacao/${illumId}/informacoes`);\r\n toast.success(t('sucessoSalvar'));\r\n }\r\n setState({ loading: false, illumWithConflict: false });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarInfo'));\r\n setState({ loading: false, illumWithConflict: false });\r\n }\r\n\r\n setState({ loading: false, illumWithConflict: false });\r\n };\r\n\r\n function styledIcon() {\r\n if (props.styledIcon && props.onlyIcon) {\r\n return (\r\n { showScheds(); }}\r\n >\r\n {state.dalScheds?.filter((sched) => !sched.DELETE) && state.dalScheds?.filter((sched) => !sched.DELETE).length > 0 ? {state.dalScheds?.filter((sched) => !sched.DELETE).length} : null}\r\n {state.loadingSchedule\r\n ? \r\n : }\r\n
\r\n );\r\n }\r\n return (\r\n
{ showScheds(); }}>\r\n {state.dalScheds?.filter((sched) => !sched.DELETE) && state.dalScheds?.filter((sched) => !sched.DELETE).length > 0 ? {state.dalScheds?.filter((sched) => !sched.DELETE).length} : null}\r\n {state.loadingSchedule\r\n ? \r\n : !sched.DELETE) && state.dalScheds?.filter((sched) => !sched.DELETE).length > 0) || (state.dalExceptions?.filter((sched) => !sched.DELETE) && state.dalExceptions?.filter((sched) => !sched.DELETE).length > 0) ? '#363BC4' : '#F0F0F0'} />}\r\n
\r\n );\r\n }\r\n\r\n return (\r\n \r\n {props.isModal ? (\r\n <>\r\n {props.onlyIcon ? (styledIcon()\r\n ) : (\r\n \r\n {state.dalScheds?.filter((sched) => !sched.DELETE) && state.dalScheds?.filter((sched) => !sched.DELETE).length > 0 ? {state.dalScheds?.filter((sched) => !sched.DELETE).length} : null}\r\n\r\n { showScheds(); }}\r\n >\r\n {state.loadingSchedule\r\n ? \r\n : }\r\n \r\n {`${t('ver')} ${t('programacoes')}`}\r\n \r\n \r\n \r\n )}\r\n\r\n {(state.showScheds) && (\r\n
\r\n {\r\n if (!state.modalEditSchedule && !state.modalEditException) {\r\n setState({ showScheds: false });\r\n }\r\n }}\r\n >\r\n \r\n \r\n
\r\n )}\r\n \r\n ) : (\r\n \r\n )}\r\n {(state.openModal === 'saving-confirmation') && (\r\n setState({ openModal: null, isLoading: false })}>\r\n {state.openModal === 'saving-confirmation'\r\n && (\r\n \r\n \r\n \r\n \r\n

{t('desejaSalvar')}

\r\n
\r\n
    \r\n {Object.keys(state.dalSchedsToEdit).length !== 0 &&
  • {t('alertaSubstituicaoSchedDal')}
  • }\r\n {Object.keys(state.dalExceptsToDelete).length !== 0 &&
  • {t('alertaSubstituicaoExceptDal')}
  • }\r\n
\r\n \r\n \r\n {t('prosseguir')}\r\n \r\n setState({ openModal: null, isLoading: false })}>\r\n {t('cancelar')}\r\n \r\n \r\n
\r\n
\r\n )}\r\n
\r\n )}\r\n {(state.modalEditSchedule) && (\r\n
\r\n { setState({ modalEditSchedule: null }); }}>\r\n { setState({ modalEditSchedule: null }); }}\r\n larguraPage={state.larguraPage}\r\n />\r\n \r\n
\r\n )}\r\n {(state.modalEditException) && (\r\n
\r\n { setState({ modalEditException: null }); }}>\r\n { setState({ modalEditException: null }); }}\r\n />\r\n \r\n
\r\n )}\r\n
\r\n\r\n );\r\n};\r\n\r\nexport function DALScheduleContent(props: {\r\n showExceptions: boolean,\r\n changeShowExceptions: (value: boolean) => void,\r\n dalScheds: null | ScheduleInfo[],\r\n dalExceptions: null | ExceptionInfo[],\r\n canEdit: boolean,\r\n editAddProgramming: (index: number) => void,\r\n editAddSched: (index: number, item?: ScheduleInfo) => void,\r\n deleteSchedule: (sched: ScheduleInfo, index: number) => void,\r\n editAddException: (index: number, item?: ExceptionInfo) => void,\r\n deleteException: (sched: ExceptionInfo, index: number) => void,\r\n editDefaultMode: (defaultMode: string, illuminationId: number) => void,\r\n defaultMode?: string,\r\n isEditDAL?: boolean,\r\n isEditUtility?: boolean,\r\n handleHasEdited: () => void,\r\n saveUtilitySched: () => void,\r\n getScheds?: (scheds, exceptions) => void,\r\n illuminationId: number,\r\n larguraPage: number,\r\n deviceCode: string,\r\n exceededExceptionLimit?: boolean\r\n setExceededExceptionLimit?: (value) => void,\r\n}): JSX.Element {\r\n const match = useRouteMatch();\r\n const history = useHistory();\r\n const [state, render, setState] = useStateVar({\r\n defaultModeOpts: [\r\n { name: t('ligadoMinusculo'), value: '1' },\r\n { name: t('desligadoMinusculo'), value: '0' },\r\n ],\r\n linkBase: match.url.split('/analise')[0],\r\n });\r\n\r\n function handleDefaultMode(defaultMode:string, illuminationId: number) {\r\n props.editDefaultMode(defaultMode, illuminationId);\r\n render();\r\n }\r\n function hasEdited() {\r\n props.handleHasEdited();\r\n render();\r\n }\r\n\r\n function verifyExceptionLimit(exceptionList: null | ExceptionInfo[]) {\r\n if (exceptionList?.filter((sched) => !sched.DELETE).length === 8 && !props.exceededExceptionLimit && props.setExceededExceptionLimit) {\r\n props.setExceededExceptionLimit(true);\r\n }\r\n\r\n return !!props.exceededExceptionLimit;\r\n }\r\n\r\n return (\r\n
\r\n \r\n {props.isEditDAL && (\r\n \r\n opt.value === props.defaultMode)}\r\n onSelect={(item) => {\r\n handleDefaultMode(item.value, props.illuminationId);\r\n hasEdited();\r\n render();\r\n }}\r\n hideSelected\r\n />\r\n \r\n {t('selecioneStatusDefault')}\r\n \r\n \r\n )}\r\n\r\n {!props.isEditDAL && !props.isEditUtility && props.dalScheds && (\r\n \r\n \r\n {props.dalScheds[0]?.DEFAULT_MODE === '1' ? t('ligadoMinusculo') : t('desligadoMinusculo')}\r\n \r\n\r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n {\r\n if (props.showExceptions) {\r\n props.changeShowExceptions(!props.showExceptions);\r\n }\r\n }}\r\n >\r\n {t('programacoes')}\r\n \r\n \r\n {\r\n if (!props.showExceptions) {\r\n props.changeShowExceptions(!props.showExceptions);\r\n }\r\n }}\r\n >\r\n {t('excecoes')}\r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n {`Total: ${(!props.showExceptions ? props.dalScheds?.filter((sched) => !sched.DELETE).length : props.dalExceptions?.filter((sched) => !sched.DELETE).length) || 0}`}\r\n {props.canEdit && (\r\n props.editAddProgramming(0)}\r\n >\r\n {AddToltipIfDisabled(!!props.exceededExceptionLimit, props.showExceptions, t('botaoAdicionarProgramacaoExcecao', { value: !props.showExceptions ? t('Programação') : t('excecao') }))}\r\n \r\n )}\r\n
\r\n
\r\n {!props.showExceptions && props.dalScheds?.map((sched, index) => (\r\n sched.DELETE ? null : props.editAddSched(index, sched)} onDelete={() => props.deleteSchedule(sched, index)} larguraPage={props.larguraPage} />\r\n ))}\r\n {props.showExceptions && props.dalExceptions && (\r\n <>\r\n \r\n \r\n {t('titulo')}\r\n
\r\n \r\n {t('Data')}\r\n
\r\n \r\n {t('repetirTodoAno')}\r\n
\r\n \r\n {t('inicio')}\r\n
\r\n \r\n {t('fim')}\r\n
\r\n \r\n {props.dalExceptions?.map((exception, index) => (\r\n exception.DELETE ? null : (\r\n \r\n props.editAddException(index, exception)} onDelete={() => props.deleteException(exception, index)} />\r\n \r\n )\r\n ))}\r\n \r\n )}\r\n
\r\n
\r\n {props.canEdit && !props.getScheds && (\r\n <>\r\n \r\n Salvar\r\n \r\n history.push(`${state.linkBase}/analise/utilitario/iluminacao/${props.illuminationId}/informacoes`)}>{t('cancelar')}\r\n \r\n )}\r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport function DalSchedForm(props: {\r\n modalEditSchedule: {\r\n addEdit: 'Add' | 'Edit'\r\n title: string\r\n active: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n selectedDays: {\r\n mon?: boolean\r\n tue?: boolean\r\n wed?: boolean\r\n thu?: boolean\r\n fri?: boolean\r\n sat?: boolean\r\n sun?: boolean\r\n }\r\n status: boolean\r\n index: number\r\n },\r\n loadingSet: boolean,\r\n onConfirm: (index) => void\r\n onCancel: () => void\r\n larguraPage: number\r\n}): JSX.Element {\r\n const [state, render] = useStateVar({\r\n entireDay: (props.modalEditSchedule.start_time === '00:00' && props.modalEditSchedule.end_time === '23:59'),\r\n });\r\n\r\n const isEdit = props.modalEditSchedule.addEdit === 'Edit';\r\n\r\n function selectDay(day: string) {\r\n if (props.modalEditSchedule.selectedDays?.[day] !== undefined) {\r\n props.modalEditSchedule.selectedDays[day] = !props.modalEditSchedule.selectedDays[day];\r\n render();\r\n }\r\n }\r\n\r\n function renderButtons() {\r\n return (\r\n <>\r\n
\r\n \r\n
\r\n
\r\n {t('botaoCancelar')}\r\n
\r\n \r\n );\r\n }\r\n\r\n function getName() {\r\n return t('editarAdicionarProgramacao', { value: isEdit ? t('editar') : t('botaoAdicionar') });\r\n }\r\n\r\n return (\r\n
\r\n
{getName()}
\r\n
\r\n
\r\n
{t('titulo')}
\r\n { props.modalEditSchedule.title = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('Programação')}
\r\n
\r\n {props.modalEditSchedule.active ? t('habilitada') : t('desabilitada')}\r\n { props.modalEditSchedule.active = !props.modalEditSchedule.active; render(); }}\r\n />\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
{t('selecioneDias')}
\r\n
\r\n selectDay('sun')}>DOM\r\n selectDay('mon')}>SEG\r\n selectDay('tue')}>TER\r\n selectDay('wed')}>QUA\r\n selectDay('thu')}>QUI\r\n selectDay('fri')}>SEX\r\n selectDay('sat')}>SAB\r\n
\r\n
\r\n\r\n \r\n
\r\n
{t('horarioInicio')}
\r\n ) => { props.modalEditSchedule!.start_time = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('horarioTermino')}
\r\n ) => { props.modalEditSchedule!.end_time = e.target.value; render(); }}\r\n />\r\n
\r\n {\r\n state.entireDay = !state.entireDay;\r\n if (state.entireDay) {\r\n props.modalEditSchedule.start_time = '00:00';\r\n props.modalEditSchedule.end_time = '23:59';\r\n } else {\r\n props.modalEditSchedule.start_time = '';\r\n props.modalEditSchedule.end_time = '';\r\n }\r\n render();\r\n }}\r\n />\r\n
\r\n\r\n
\r\n
{t('status')}
\r\n \r\n { props.modalEditSchedule.status = true; render(); }} checkedColor=\"blue\" />\r\n { props.modalEditSchedule.status = false; render(); }} checkedColor=\"blue\" />\r\n \r\n
\r\n\r\n {renderButtons()}\r\n
\r\n );\r\n}\r\n\r\nexport function DalExceptionForm(props: Readonly<{\r\n modalEditException: {\r\n addEdit: 'Add' | 'Edit'\r\n title: string\r\n active: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n exceptionDate: string;\r\n repeatYearly: boolean;\r\n status: boolean\r\n index: number\r\n },\r\n isException: boolean\r\n onConfirm: (index) => void\r\n onCancel: () => void,\r\n hideRepeatYearly?: boolean\r\n}>): JSX.Element {\r\n const [state, render] = useStateVar({\r\n entireDay: (props.modalEditException.start_time === '00:00' && props.modalEditException.end_time === '23:59'),\r\n isLoading: false,\r\n });\r\n\r\n const isEdit = props.modalEditException.addEdit === 'Edit';\r\n\r\n function renderButtons() {\r\n return (\r\n <>\r\n
\r\n \r\n
\r\n
\r\n {t('botaoCancelar')}\r\n
\r\n \r\n );\r\n }\r\n\r\n function getName() {\r\n return t('editarAdicionarExcecao', { value: isEdit ? t('editar') : t('botaoAdicionar') });\r\n }\r\n\r\n return (\r\n
\r\n
{getName()}
\r\n
\r\n
\r\n
{t('titulo')}
\r\n { props.modalEditException.title = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('Programação')}
\r\n
\r\n {props.modalEditException.active ? t('habilitada') : t('desabilitada')}\r\n { props.modalEditException.active = !props.modalEditException.active; render(); }} />\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
{t('selecioneDias')}
\r\n \r\n \r\n \r\n { props.modalEditException.exceptionDate = e.target.value; render(); }}\r\n />\r\n \r\n {!props.hideRepeatYearly && (\r\n \r\n {\r\n props.modalEditException.repeatYearly = !props.modalEditException.repeatYearly;\r\n render();\r\n }}\r\n >\r\n \r\n {props.modalEditException.repeatYearly ? : null}\r\n \r\n \r\n \r\n {t('repetirTodoOAno')}\r\n
\r\n
\r\n )}\r\n \r\n

\r\n {t('iluminacaoPermaneceraDesligadaIntervalosHorariosNaoDefinidos')}\r\n

\r\n \r\n
\r\n\r\n \r\n
\r\n
{t('horarioInicio')}
\r\n ) => { props.modalEditException!.start_time = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('horarioTermino')}
\r\n ) => { props.modalEditException!.end_time = e.target.value; render(); }}\r\n />\r\n
\r\n {\r\n state.entireDay = !state.entireDay;\r\n if (state.entireDay) {\r\n props.modalEditException.start_time = '00:00';\r\n props.modalEditException.end_time = '23:59';\r\n } else {\r\n props.modalEditException.start_time = '';\r\n props.modalEditException.end_time = '';\r\n }\r\n render();\r\n }}\r\n />\r\n
\r\n\r\n
\r\n
{t('status')}
\r\n \r\n { props.modalEditException.status = true; render(); }} checkedColor=\"blue\" />\r\n { props.modalEditException.status = false; render(); }} checkedColor=\"blue\" />\r\n \r\n
\r\n\r\n {renderButtons()}\r\n
\r\n );\r\n}\r\n\r\nexport function SchedCard(props: {\r\n sched: ScheduleInfo\r\n canEdit: boolean\r\n onEdit: () => void\r\n onDelete: () => void\r\n larguraPage: number\r\n}): JSX.Element {\r\n const {\r\n sched, canEdit, onEdit, onDelete,\r\n } = props;\r\n const days = JSON.parse(sched.DAYS);\r\n\r\n function renderDivisionBorder() {\r\n return (\r\n
\r\n );\r\n }\r\n\r\n function formatDays(day) {\r\n if (props.larguraPage > 490) {\r\n return day;\r\n }\r\n return day[0];\r\n }\r\n\r\n function renderWeekDaysButtons(days) {\r\n return (\r\n
\r\n {formatDays('DOM')}\r\n {formatDays('SEG')}\r\n {formatDays('TER')}\r\n {formatDays('QUA')}\r\n {formatDays('QUI')}\r\n {formatDays('SEX')}\r\n {formatDays('SAB')}\r\n
\r\n );\r\n }\r\n\r\n function renderSchedStatus() {\r\n return (\r\n
\r\n
{t('programacao')}
\r\n {sched.STATUS === '1' ? t('iluminacaoLigada') : t('iluminacaoDesligada')}\r\n
\r\n );\r\n }\r\n\r\n function renderSchedTimes() {\r\n return (\r\n
\r\n
\r\n
\r\n \r\n {t('inicio')}\r\n : \r\n \r\n \r\n {sched.BEGIN_TIME}\r\n \r\n
\r\n
\r\n \r\n {t('fim')}\r\n : \r\n \r\n \r\n {sched.END_TIME}\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n
\r\n
\r\n \r\n {sched.TITLE}\r\n {canEdit && renderEditButtons(onEdit, onDelete)}\r\n
\r\n\r\n
\r\n
{t('Programação')}
\r\n
\r\n {sched.ACTIVE === '1' ? t('habilitada') : t('desabilitada')}\r\n
\r\n
\r\n
\r\n\r\n {renderDivisionBorder()}\r\n\r\n
\r\n {t('status')}\r\n
\r\n {renderSchedStatus()}\r\n {renderSchedTimes()}\r\n
\r\n
\r\n
\r\n {days && renderWeekDaysButtons(days)}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport const ExceptionSchedCard = (props: {\r\n sched: ExceptionInfo\r\n canEdit: boolean\r\n onEdit: () => void\r\n onDelete: () => void\r\n deviceCode?: string\r\n}): JSX.Element => {\r\n const {\r\n sched, canEdit, onEdit, onDelete, deviceCode,\r\n } = props;\r\n\r\n return (\r\n \r\n \r\n {sched.TITLE}\r\n
\r\n \r\n {sched.EXCEPTION_DATE.substring(0, sched.REPEAT_YEARLY === '1' ? 5 : 10)}\r\n
\r\n \r\n {`${sched.REPEAT_YEARLY === '1' && (!deviceCode || deviceCode.startsWith('DAL')) ? t('sim') : t('nao')}`}\r\n
\r\n \r\n {sched.BEGIN_TIME}\r\n
\r\n \r\n {sched.END_TIME}\r\n
\r\n {canEdit && renderEditButtons(onEdit, onDelete)}\r\n \r\n );\r\n};\r\n\r\nfunction renderEditButtons(onEdit: () => void, onDelete: () => void) {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n );\r\n}\r\n\r\nexport function AddToltipIfDisabled(disabled: boolean, isException: boolean, text): JSX.Element {\r\n const warnMessage = t('limiteCadastroExcecoesAtingido');\r\n return (\r\n <>\r\n { disabled && isException ? (\r\n
\r\n {text}\r\n \r\n
\r\n\r\n ) : (\r\n text\r\n )}\r\n \r\n );\r\n}\r\n","import { useState } from 'react';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport {\r\n Carousel, Button,\r\n} from '~/components';\r\nimport {\r\n Title, InfoItem, IconWrapper, ContainerInfoDalProfoile, ContainerDalTree, FlexRowColumn, FlexRowColumn1250,\r\n} from './styles';\r\nimport { LightOnIcon, LightOffIcon } from 'icons';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { apiCall, apiSpecial } from '~/providers';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { UtilityTree } from 'components/UtilityTree';\r\nimport { DALSchedule } from '../SchedulesModals/DAL_Schedule';\r\nimport { useWebSocket } from '~/helpers/wsConnection';\r\n\r\nexport const DalInfo = ({ dalInfo }): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n const match = useRouteMatch<{ devId: string }>();\r\n const history = useHistory();\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n devId: dalInfo.DEV_ID,\r\n linkBase: match.url.split(`/${match.params.devId}`)[0],\r\n utils: dalInfo.dal?.illuminationList || [],\r\n utilSelected: false,\r\n selectedIndex: -1 as number,\r\n deviceSelected: true as boolean,\r\n isLoading: false,\r\n lastTelemetry: null as null | { Feedback: boolean[] },\r\n RSSI: null as null|number,\r\n });\r\n\r\n async function handleGetImages() {\r\n if (state.utilSelected) {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.utils[state.selectedIndex].ILLUMINATION_ID,\r\n referenceType: 'ILLUMINATIONS',\r\n });\r\n }\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: dalInfo.DEVICE_ID,\r\n referenceType: 'DALS',\r\n });\r\n }\r\n\r\n async function handlePostImage(photo: Blob) {\r\n if (state.utilSelected) {\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: state.utils[state.selectedIndex].ILLUMINATION_ID,\r\n referenceType: 'ILLUMINATIONS',\r\n file: photo,\r\n },\r\n );\r\n }\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: dalInfo.DEVICE_ID,\r\n referenceType: 'DALS',\r\n file: photo,\r\n },\r\n );\r\n }\r\n\r\n async function handleDeleteImage(imageUrl: string) {\r\n if (state.utilSelected) {\r\n return apiCall('/upload-service/delete-image',\r\n {\r\n referenceId: state.utils[state.selectedIndex].ILLUMINATION_ID,\r\n referenceType: 'ILLUMINATIONS',\r\n filename: imageUrl,\r\n });\r\n }\r\n return apiCall('/upload-service/delete-image',\r\n {\r\n referenceId: dalInfo.DEVICE_ID,\r\n referenceType: 'DALS',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'dalSubscribeRealTime', data: { DAL_CODE: state.devId } });\r\n }\r\n function onWsMessage(response) {\r\n if (response && response.type === 'dalTelemetry') {\r\n state.lastTelemetry = response.data;\r\n state.RSSI = response.RSSI;\r\n render();\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'dalUnsubscribeRealTime' });\r\n }\r\n\r\n async function selectedCard(position: number) {\r\n state.selectedIndex = position;\r\n state.utilSelected = position > -1;\r\n state.deviceSelected = position === -2;\r\n render();\r\n }\r\n\r\n function renderImages() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n\r\n function renderDeviceInfo() {\r\n return (\r\n \r\n \r\n \r\n \r\n {t('dispositivo')}\r\n {dalInfo.DEV_ID}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n {t('informacoes')}\r\n \r\n {t('estado')}\r\n
\r\n {dalInfo.STATE_ID || '-'}\r\n
\r\n\r\n \r\n {t('cidade')}\r\n
\r\n {dalInfo.CITY_NAME || '-'}\r\n
\r\n\r\n \r\n {t('cliente')}\r\n
\r\n {dalInfo.CLIENT_NAME || '-'}\r\n
\r\n\r\n \r\n {t('unidade')}\r\n
\r\n {dalInfo.UNIT_NAME || '-'}\r\n
\r\n\r\n {t('associacoes')}\r\n \r\n {t('portasEmUso')}\r\n
\r\n {dalInfo.dal.illuminationList.filter((x) => x.PORT).reduce((acc, illum) => {\r\n acc.push(illum.PORT);\r\n return acc;\r\n }, []).join(', ').replace(/,([^,]*)$/, ` ${t('e')}$1`) || '-'}\r\n
\r\n\r\n {(profile.manageAllClients || profile.permissions.isInstaller || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === dalInfo.CLIENT_ID)) && (\r\n
\r\n history.push(`${state.linkBase}/${state.devId}/editar`)}\r\n variant=\"primary\"\r\n >\r\n {`${t('editar')}`}\r\n \r\n
\r\n )}\r\n
\r\n
\r\n\r\n {renderImages()}\r\n
\r\n \r\n \r\n );\r\n }\r\n\r\n if (profile.manageAllClients || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === dalInfo.CLIENT_ID)) {\r\n return (\r\n
\r\n \r\n \r\n <>\r\n
\r\n \r\n {t('dispositivo')}\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n {state.deviceSelected && renderDeviceInfo()}\r\n {state.utilSelected && (\r\n \r\n \r\n \r\n {t('utilitario')}\r\n {state.utils[state.selectedIndex].NAME}\r\n {state.utils[state.selectedIndex].DAL_CODE}\r\n \r\n {state.utils[state.selectedIndex].DAL_CODE && (\r\n \r\n )}\r\n \r\n\r\n
\r\n\r\n \r\n \r\n \r\n {t('informacoes')}\r\n \r\n {t('tensaoDaRede')}\r\n
\r\n {state.utils[state.selectedIndex].GRID_VOLTAGE ? `${state.utils[state.selectedIndex].GRID_VOLTAGE}VAC` : '-'}\r\n
\r\n\r\n \r\n {t('correnteDaRedeEletrica')}\r\n
\r\n {state.utils[state.selectedIndex].GRID_CURRENT ? `${state.utils[state.selectedIndex].GRID_CURRENT}A` : '-'}\r\n
\r\n\r\n {state.utils[state.selectedIndex].FEEDBACK && (\r\n <>\r\n {t('tempoReal')}\r\n \r\n {t('status')}\r\n
\r\n \r\n {state.lastTelemetry?.Feedback\r\n && state.lastTelemetry?.Feedback[state.utils[state.selectedIndex].FEEDBACK - 1] ? (\r\n <>\r\n \r\n \r\n \r\n {t('iluminacaoLigada')}\r\n \r\n ) : (\r\n <>\r\n \r\n \r\n \r\n {t('iluminacaoDesligada')}\r\n \r\n )}\r\n\r\n
\r\n \r\n \r\n )}\r\n\r\n {t('associacao')}\r\n \r\n {t('portaDoDal')}\r\n
\r\n {state.utils[state.selectedIndex].PORT ?? '-'}\r\n
\r\n \r\n {t('feedbackDoDal')}\r\n
\r\n {state.utils[state.selectedIndex].FEEDBACK ?? '-'}\r\n
\r\n\r\n {(profile.manageAllClients || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === dalInfo.CLIENT_ID)) && (\r\n
\r\n history.push(`/analise/utilitario/iluminacao/${state.utils[state.selectedIndex].ILLUMINATION_ID}/editar`)}\r\n variant=\"primary\"\r\n >\r\n {`${t('editar')}`}\r\n \r\n
\r\n )}\r\n
\r\n \r\n\r\n {state.utils[state.selectedIndex].DAL_CODE && state.utils[state.selectedIndex].PORT && (\r\n \r\n {t('funcionamento')}\r\n \r\n \r\n )}\r\n\r\n {renderImages()}\r\n
\r\n \r\n )}\r\n \r\n \r\n
\r\n );\r\n }\r\n\r\n return renderDeviceInfo();\r\n};\r\n","import { colors } from '~/styles/colors';\r\nimport styled from 'styled-components';\r\nimport { CalendarIcon } from '~/icons';\r\nimport { Link } from 'react-router-dom';\r\n\r\nexport const ExportBtn = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n border-radius: 10px;\r\n padding: 8px 10px;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n background-color: ${colors.BlueSecondary};\r\n color: white;\r\n svg path {\r\n fill: white !important;\r\n }\r\n }\r\n`;\r\n\r\nexport const Label = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-top: 6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.BlueSecondary};\r\n color: white;\r\n }\r\n .react-datepicker__month-wrapper {\r\n display: flex;\r\n text-align: center;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .react-datepicker__month .react-datepicker__month-text, .react-datepicker__month .react-datepicker__quarter-text {\r\n padding: 5px;\r\n }\r\n\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n`;\r\n\r\nexport const StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nexport const InfoItem = styled.div`\r\nwidth: 150px;\r\nmargin-right: 10px;\r\nmargin-bottom: 30px;\r\n`;\r\n\r\nexport const Title = styled.h1`\r\n font-size: 1.25em;\r\n color: #363BC4;\r\n font-weight: bold;\r\n margin-bottom: 16px;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n text-decoration: underline;\r\n width: fit-content;\r\n font-size: 11px;\r\n`;\r\n\r\nexport const CustomInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 0.7px solid ${colors.GreyInputBorder};\r\n .select-search__options {\r\n max-height: 150px;\r\n overflow-y: auto;\r\n}\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey400};\r\n &:hover {\r\n color: ${colors.Grey300};\r\n }\r\n`;\r\n\r\nexport const ContainerInfoUsageIndex = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n flex-wrap: wrap;\r\n width: 100%;\r\n gap: 10px;\r\n`;\r\n\r\nexport const ContainerCardDmtUsage = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: wrap;\r\n font-size: 14px;\r\n justify-content: space-between;\r\n gap: 10px;\r\n margin: 0px 73px;\r\n margin-bottom: 20px;\r\n @media (max-width: 767px) {\r\n margin: 0;\r\n margin-bottom: 20px;\r\n border-bottom: 1px solid lightgray;\r\n padding-bottom: 10px;\r\n }\r\n`;\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const Title = styled.h1`\r\n font-size: 1.25em;\r\n color: #363BC4;\r\n font-weight: bold;\r\n margin-bottom: 16px;\r\n`;\r\n\r\nexport const InfoItem = styled.div`\r\n width: 150px;\r\n margin-right: 20px;\r\n margin-bottom: 20px;\r\n`;\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const CustomInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 0.7px solid ${colors.GreyInputBorder};\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n text-decoration: underline;\r\n font-size: 14px;\r\n`;\r\n\r\nexport const IconWrapper = styled.div<{ width?, height? }>(\r\n ({ width, height }) => `\r\n display: inline-block;\r\n width: ${width || '19'}px;\r\n height: ${height || '25'}px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: ${width}px;\r\n height: ${height}px;\r\n }\r\n`,\r\n);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey300};\r\n &:hover {\r\n color: ${colors.Grey400};\r\n }\r\n`;\r\n\r\nexport const InfoItemShort = styled.div`\r\n width: 150px;\r\n margin-right: 10px;\r\n margin-bottom: 20px;\r\n`;\r\n\r\nexport const Title = styled.h1`\r\n font-weight: bold;\r\n font-size: 1.25em;\r\n margin-bottom: 16px;\r\n color: #363BC4;\r\n`;\r\n\r\nexport const InfoItem = styled.div`\r\n width: 150px;\r\n margin-right: 20px;\r\n margin-bottom: 30px;\r\n`;\r\n\r\nexport const Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const CustomInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n border: 0.7px solid ${colors.GreyInputBorder};\r\n`;\r\n\r\nexport const Label = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n text-decoration: underline;\r\n font-size: 14px;\r\n\r\n &:hover {\r\n color: ${colors.Blue400};\r\n }\r\n`;\r\n","import { useState } from 'react';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { useTranslation } from 'react-i18next';\r\nimport 'moment/locale/pt-br';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { apiCall, apiSpecial } from 'providers';\r\nimport {\r\n Title,\r\n InfoItem,\r\n IconWrapper,\r\n} from './styles';\r\nimport { InfoIcon, LightOffIcon, LightOnIcon } from 'icons';\r\nimport { Button, Carousel } from 'components';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport { DALSchedule } from '../../SchedulesModals/DAL_Schedule';\r\nimport { colors } from '~/styles/colors';\r\nimport { StyledLink } from '../Utilities/styles';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { useWebSocket } from '~/helpers/wsConnection';\r\n\r\nexport const IlluminationInfo = ({ util, screen }): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n const [feedbackStatus, setFeedbackStatus] = useState(null as null | boolean);\r\n const match = useRouteMatch<{ utilId: string }>();\r\n const history = useHistory();\r\n const illuminationStatus = {\r\n Ligado: {\r\n icon: ,\r\n label: t('ligadoMinusculo'),\r\n },\r\n Desligado: {\r\n icon: ,\r\n label: t('desligadoMin'),\r\n },\r\n Indisponível: {\r\n icon: ,\r\n label: t('semInformacao'),\r\n },\r\n };\r\n\r\n let { utilId } = match.params;\r\n utilId = utilId || util.ILLUMINATION_ID;\r\n const noOpStatus = !util.STATUS || util.STATUS === 'Indisponível';\r\n const utilIllumination = (util?.DMT_CODE || util?.DAL_CODE || util?.DAM_ILLUMINATION_CODE);\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n function onWsOpen(wsConn) {\r\n if (util?.DAL_CODE) {\r\n wsConn.send({ type: 'dalSubscribeRealTime', data: { DAL_CODE: util?.DAL_CODE } });\r\n }\r\n }\r\n function onWsMessage(response) {\r\n if (response && response.type === 'dalTelemetry' && util?.FEEDBACK) {\r\n setFeedbackStatus(response.data.Feedback[util.FEEDBACK - 1] || null);\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'dalUnsubscribeRealTime' });\r\n }\r\n\r\n async function handleGetIlluminationImages() {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: Number(utilId),\r\n referenceType: 'ILLUMINATIONS',\r\n });\r\n }\r\n async function handlePostIlluminationImage(photo: Blob) {\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: Number(utilId),\r\n referenceType: 'ILLUMINATIONS',\r\n file: photo,\r\n },\r\n );\r\n }\r\n async function handleDeleteIlluminationImage(imageUrl: string) {\r\n return apiCall('/upload-service/delete-image',\r\n {\r\n referenceId: Number(utilId),\r\n referenceType: 'ILLUMINATIONS',\r\n filename: imageUrl,\r\n });\r\n }\r\n const isDMT2 = util?.DMT_CODE?.startsWith('DMT2');\r\n return (\r\n \r\n \r\n \r\n {t('utilitario')}\r\n {util?.NAME}\r\n \r\n {utilIllumination\r\n && (\r\n \r\n {utilIllumination || '-'}\r\n \r\n )}\r\n {!utilIllumination\r\n && (\r\n <>\r\n -\r\n \r\n )}\r\n \r\n \r\n {utilIllumination && (\r\n \r\n )}\r\n \r\n\r\n
\r\n\r\n \r\n \r\n \r\n {t('informacoes')}\r\n \r\n {t('tensaoDaRede')}\r\n
\r\n {util?.GRID_VOLTAGE ? `${util.GRID_VOLTAGE} VAC` : '-'}\r\n
\r\n\r\n \r\n {t('correnteDaRedeEletrica')}\r\n
\r\n {util?.GRID_CURRENT ? `${util.GRID_CURRENT} A` : '-'}\r\n
\r\n {(util.DAL_CODE && util?.FEEDBACK) && (\r\n <>\r\n {t('tempoReal')}\r\n \r\n {t('status')}\r\n
\r\n \r\n {feedbackStatus ? (\r\n <>\r\n \r\n \r\n \r\n \r\n {t('iluminacaoLigada')}\r\n \r\n \r\n ) : (\r\n <>\r\n \r\n \r\n \r\n \r\n {t('iluminacaoDesligada')}\r\n \r\n \r\n )}\r\n
\r\n \r\n \r\n )}\r\n\r\n {(util.DMT_CODE)\r\n && (\r\n <>\r\n {t('tempoReal')}\r\n \r\n {t('status')}\r\n
\r\n {noOpStatus\r\n && (\r\n \r\n \r\n {t('semInformacao')}\r\n \r\n )}\r\n {!noOpStatus\r\n && (\r\n \r\n {illuminationStatus[util.STATUS]?.icon}\r\n \r\n {illuminationStatus[util.STATUS]?.label}\r\n \r\n
\r\n )}\r\n {noOpStatus\r\n && (\r\n \r\n
\r\n {t('semInfoIluminacaoDmt')}\r\n
\r\n \r\n )}\r\n \r\n \r\n )}\r\n\r\n {(util.DAL_CODE || util.DMT_CODE) && {t('associacao')}}\r\n {(util.DAL_CODE)\r\n && (\r\n <>\r\n \r\n {t('portaDoDal')}\r\n
\r\n {util?.PORT ?? '-'}\r\n
\r\n \r\n {t('feedbackDoDal')}\r\n
\r\n {util?.FEEDBACK ?? '-'}\r\n
\r\n \r\n )}\r\n {util.DMT_CODE\r\n && (\r\n \r\n {isDMT2 ? t('transformadorDeCorrente') : t('feedbackDoDmt')}\r\n
\r\n {util?.PORT ? `${isDMT2 ? 'P' : 'F'}${util?.PORT}` : '-'}\r\n
\r\n )}\r\n\r\n {(profile.manageAllClients || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === util?.CLIENT_ID)) && (\r\n
\r\n history.push(`/analise/utilitario/iluminacao/${utilId}/editar`, { from: screen })}\r\n variant=\"primary\"\r\n >\r\n {`${t('editar')}`}\r\n \r\n
\r\n )}\r\n
\r\n \r\n\r\n {util?.DAL_CODE && (\r\n \r\n {t('funcionamento')}\r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import { useContext, useState, useEffect } from 'react';\r\nimport { Flex } from 'reflexbox';\r\nimport { useHistory } from 'react-router';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport {\r\n Button,\r\n} from '~/components';\r\nimport {\r\n Title, InfoItemShort, StyledLink,\r\n} from './styles';\r\nimport {\r\n BatteryIcon, EletricNetworkIcon, InfoIcon, NobreakOffIcon,\r\n} from 'icons';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { colors } from '~/styles/colors';\r\nimport { RenderImagesDmtUtility } from '../../DMTs/DmtInfo';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport MenuContext from '~/contexts/menuContext';\r\nimport { apiCall } from '~/providers';\r\nimport { toast } from 'react-toastify';\r\nimport { verifyInfoAdditionalParameters } from '~/helpers/additionalParameters';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport const UtilityTypesInfo = ({ util, screen, type }): JSX.Element => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n const [additionalParameters, setAdditionalParameters] = useState<{ COLUMN_NAME: string; COLUMN_VALUE: string; }[]>([]);\r\n const nobreakStatus = {\r\n 'Rede Elétrica': {\r\n icon: ,\r\n label: t('redeEletrica'),\r\n },\r\n Bateria: {\r\n icon: ,\r\n label: t('bateria'),\r\n },\r\n Desligado: {\r\n icon: ,\r\n label: t('desligadoMin'),\r\n },\r\n Indisponível: {\r\n icon: ,\r\n label: t('semInformacao'),\r\n },\r\n };\r\n const { menuToogle } = useContext(MenuContext);// true = open, false = not Open\r\n const sizeColumn = menuToogle ? '160px' : '240px';\r\n const columnItemWidth = screen === 'utilityInfo' ? 'auto' : sizeColumn;\r\n const deviceLabel = `${util.UTILITY_CODE || '-'} / ${util.DAT_CODE || '-'}`;\r\n const noOpStatus = !util.STATUS || util.STATUS === 'Indisponível';\r\n\r\n async function getNobreakAdditionalParameters() {\r\n try {\r\n setAdditionalParameters([]);\r\n const parameters = await apiCall('/dmt/get-nobreak-additional-parameters', { NOBREAK_ID: screen === 'dmtInfo' ? Number(util.UTILITY_ID) : Number(util.ID) });\r\n setAdditionalParameters(parameters);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n useEffect(() => {\r\n getNobreakAdditionalParameters();\r\n }, [util]);\r\n const isDMT2 = util.UTILITY_CODE?.startsWith('DMT2') || util.DMT_CODE?.startsWith('DMT2');\r\n return (\r\n \r\n \r\n \r\n \r\n {t('utilitario')}\r\n {util.NAME}\r\n \r\n {(util.UTILITY_CODE || util.DMT_CODE)\r\n && (\r\n \r\n {deviceLabel}\r\n \r\n )}\r\n {(!util.UTILITY_CODE && !util.DMT_CODE)\r\n && (\r\n <>\r\n {deviceLabel}\r\n \r\n )}\r\n \r\n \r\n {(util.UTILITY_CODE || util.DMT_CODE) && (\r\n \r\n )}\r\n \r\n\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n {t('informacoes')}\r\n \r\n {t('fabricante')}\r\n
\r\n {util.MANUFACTURER || '-'}\r\n
\r\n\r\n \r\n {t('modelo')}\r\n
\r\n {util.MODEL || '-'}\r\n
\r\n \r\n {t('potenciaNominal')}\r\n
\r\n {util.NOMINAL_POTENTIAL ? `${formatNumberWithFractionDigits(util.NOMINAL_POTENTIAL)} VA` : '-'}\r\n
\r\n {!isDMT2 && (\r\n <>\r\n \r\n {t('autonomiaNominalDaBateriaInterna')}\r\n
\r\n {util.NOMINAL_BATTERY_LIFE ? `${formatNumberWithFractionDigits(util.NOMINAL_BATTERY_LIFE)} min` : '-'}\r\n
\r\n \r\n {t('capacidadeNominalDaBateria')}\r\n
\r\n {util.NOMINAL_BATTERY_CAPACITY ? `${formatNumberWithFractionDigits(util.NOMINAL_BATTERY_CAPACITY)} Ah` : '-'}\r\n
\r\n \r\n {t('tensaoDeSaida')}\r\n
\r\n {util.OUTPUT_VOLTAGE ? `${formatNumberWithFractionDigits(util.OUTPUT_VOLTAGE)} VAC` : '-'}\r\n
\r\n \r\n )}\r\n \r\n {t('tensaoDeEntrada')}\r\n
\r\n {util.INPUT_VOLTAGE ? `${formatNumberWithFractionDigits(util.INPUT_VOLTAGE)} VAC` : '-'}\r\n
\r\n
\r\n \r\n {!isDMT2 && (\r\n <>\r\n {t('tempoReal')}\r\n \r\n {t('statusDeOperacao')}\r\n
\r\n\r\n {noOpStatus\r\n && (\r\n \r\n \r\n {t('semInformacao')}\r\n \r\n )}\r\n\r\n {!noOpStatus\r\n && (\r\n \r\n {(nobreakStatus[util.STATUS]?.icon)}\r\n {(nobreakStatus[util.STATUS]?.label)}\r\n
\r\n )}\r\n \r\n {noOpStatus\r\n && (\r\n \r\n
\r\n {t('semInfoNobreakDmt')}\r\n
\r\n \r\n )}\r\n \r\n {t('duracaoMedia')}\r\n
\r\n \r\n \r\n {t('semInformacao')}\r\n \r\n
\r\n \r\n {t('autonomia')}\r\n
\r\n \r\n \r\n {t('semInformacao')}\r\n \r\n
\r\n \r\n )}\r\n {t('associacao')}\r\n \r\n {isDMT2 ? t('transformadorDeCorrente') : t('feedbackDoDmt')}\r\n
\r\n {util.PORT ? `${isDMT2 ? 'P' : 'F'}${util.PORT}` : '-'}\r\n
\r\n {\r\n isDMT2 && (\r\n \r\n {t('sensorCorrente')}\r\n
\r\n {util.SENSOR ? util.SENSOR : '-'}\r\n
\r\n )\r\n }\r\n
\r\n
\r\n \r\n \r\n {additionalParameters.length > 0 && verifyInfoAdditionalParameters(additionalParameters)}\r\n \r\n \r\n {profile.manageAllClients && (\r\n
\r\n history.push(`/analise/utilitario/${type}/${util.UTILITY_ID}/editar`, { from: screen })}\r\n variant=\"primary\"\r\n >\r\n {`${t('editar')}`}\r\n \r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n","import { useState } from 'react';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport {\r\n Carousel, Button,\r\n} from '~/components';\r\nimport {\r\n Title, InfoItem,\r\n} from './styles';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { apiCall, apiSpecial } from '~/providers';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { UtilityTree } from 'components/UtilityTree';\r\nimport { IlluminationInfo } from '../Utilities/Illumination/IlluminationInfo';\r\nimport { UtilityTypesInfo } from '../Utilities/Utilities/UtilityTypesInfo';\r\n\r\nexport const RenderImagesDmtUtility = (props: { devCode: string, utilSelected?: boolean, utilityId?: number, deviceId: number }) : JSX.Element => {\r\n const {\r\n utilSelected,\r\n utilityId,\r\n deviceId,\r\n } = props;\r\n\r\n async function handleGetImages() {\r\n if (utilSelected && utilityId) {\r\n return apiCall('/upload-service/get-images',\r\n {\r\n referenceId: utilityId,\r\n referenceType: 'UTILITIES',\r\n });\r\n }\r\n return apiCall('/upload-service/get-images',\r\n {\r\n referenceId: deviceId,\r\n referenceType: 'UTILITY_DEVICE',\r\n });\r\n }\r\n\r\n async function handlePostImage(photo: Blob) {\r\n if (utilSelected && utilityId) {\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: utilityId,\r\n referenceType: 'UTILITIES',\r\n file: photo,\r\n },\r\n );\r\n }\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: deviceId,\r\n referenceType: 'UTILITY_DEVICE',\r\n file: photo,\r\n },\r\n );\r\n }\r\n\r\n async function handleDeleteImage(imageUrl: string) {\r\n if (utilSelected && utilityId) {\r\n return apiCall('/upload-service/delete-image',\r\n {\r\n referenceId: utilityId,\r\n referenceType: 'UTILITIES',\r\n filename: imageUrl,\r\n });\r\n }\r\n return apiCall('/upload-service/delete-image',\r\n {\r\n referenceId: deviceId,\r\n referenceType: 'UTILITY_DEVICE',\r\n filename: imageUrl,\r\n });\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport const DmtInfo = ({ dmtInfo }): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n const match = useRouteMatch<{ devId: string }>();\r\n const history = useHistory();\r\n const { t } = useTranslation();\r\n const [state, render] = useStateVar({\r\n devId: dmtInfo.DEV_ID,\r\n linkBase: match.url.split(`/${match.params.devId}`)[0],\r\n utils: dmtInfo.dmt?.utilitiesList || [],\r\n utilSelected: false,\r\n selectedIndex: -1 as number,\r\n deviceSelected: true as boolean,\r\n isLoading: false,\r\n });\r\n\r\n async function selectedCard(position: number) {\r\n state.selectedIndex = position;\r\n state.utilSelected = position > -1;\r\n state.deviceSelected = position === -2;\r\n render();\r\n }\r\n\r\n function renderDeviceInfo() {\r\n return (\r\n \r\n \r\n \r\n \r\n {t('dispositivo')}\r\n {dmtInfo.DEV_ID}\r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n {t('informacoes')}\r\n \r\n {t('estado')}\r\n
\r\n {dmtInfo.STATE_ID || '-'}\r\n
\r\n\r\n \r\n {t('cidade')}\r\n
\r\n {dmtInfo.CITY_NAME || '-'}\r\n
\r\n\r\n \r\n {t('cliente')}\r\n
\r\n {dmtInfo.CLIENT_NAME || '-'}\r\n
\r\n\r\n \r\n {t('unidade')}\r\n
\r\n {dmtInfo.UNIT_NAME || '-'}\r\n
\r\n\r\n {t('associacoes')}\r\n {\r\n dmtInfo.DEV_ID.startsWith('DMT2') ? (\r\n \r\n {t('transformadoresEmUso')}\r\n
\r\n {dmtInfo.dmt.utilitiesList.filter((x) => x.PORT).reduce((portList, util) => {\r\n portList.push(`P${util.PORT}`);\r\n return portList;\r\n }, []).join(', ').replace(/,([^,]*)$/, ` ${t('e')}$1`) || '-'}\r\n
\r\n ) : (\r\n \r\n {t('feedbacksEmUso')}\r\n
\r\n {dmtInfo.dmt.utilitiesList.filter((x) => x.PORT).reduce((portList, util) => {\r\n portList.push(`F${util.PORT}`);\r\n return portList;\r\n }, []).join(', ').replace(/,([^,]*)$/, ` ${t('e')}$1`) || '-'}\r\n
\r\n )\r\n }\r\n {(profile.manageAllClients || profile.permissions.isInstaller) && (\r\n
\r\n history.push(`${state.linkBase}/${state.devId}/editar`)}\r\n >\r\n {t('editar')}\r\n \r\n
\r\n )}\r\n
\r\n
\r\n\r\n \r\n
\r\n \r\n \r\n );\r\n }\r\n\r\n if (profile.manageAllClients) {\r\n return (\r\n
\r\n \r\n \r\n
\r\n \r\n {t('dispositivo')}\r\n \r\n
\r\n \r\n\r\n
\r\n \r\n {state.deviceSelected && renderDeviceInfo()}\r\n {state.utilSelected && state.utils[state.selectedIndex].UTILITY_ID && (\r\n \r\n )}\r\n {state.utilSelected && state.utils[state.selectedIndex].ILLUMINATION_ID && (\r\n \r\n )}\r\n \r\n
\r\n
\r\n );\r\n }\r\n\r\n return renderDeviceInfo();\r\n};\r\n","import { useEffect, useState } from 'react';\r\nimport { t } from 'i18next';\r\nimport moment from 'moment';\r\nimport 'moment/locale/pt-br';\r\nimport 'moment/locale/en-ca';\r\nimport { Helmet } from 'react-helmet';\r\nimport {\r\n useHistory, useRouteMatch, useParams,\r\n} from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport {\r\n ItemTitle,\r\n Card,\r\n Data,\r\n DataText,\r\n Title,\r\n} from './styles';\r\nimport {\r\n Card as NewCard,\r\n Carousel,\r\n Loader,\r\n Button,\r\n StatusBox,\r\n ScheduleButton,\r\n ScheduleViewCard,\r\n ModalWindow,\r\n} from 'components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from 'helpers/cachedStorage';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocketLazy } from 'helpers/wsConnection';\r\nimport { DevLayout } from 'pages/Analysis/DEVs/DevLayout';\r\nimport { apiCall, apiCallFormData } from 'providers';\r\nimport { DevFullInfo } from 'store';\r\nimport { colors } from 'styles/colors';\r\nimport { DutSchedulesList } from '../SchedulesModals/DUT_SchedulesList';\r\nimport { DamScheduleSummary } from '../SchedulesModals/DAM_Schedule';\r\nimport { ScheduleDut, ExceptionDut } from '../../../providers/types/api-private';\r\nimport { DalInfo } from '../DALs/DalInfo';\r\nimport { DmtInfo } from '../DMTs/DmtInfo';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\n\r\nfunction rssiDesc(RSSI: number, status: string) {\r\n if (RSSI < 0 && status === 'ONLINE') {\r\n if (RSSI > -50) return t('excelente');\r\n if (RSSI > -60) return t('bom');\r\n if (RSSI > -70) return t('regular');\r\n return t('ruim');\r\n }\r\n return '-';\r\n}\r\n\r\nexport const DevInfo = (): JSX.Element => {\r\n const [profile] = useState(getUserProfile);\r\n const match = useRouteMatch<{ devId: string }>();\r\n const { devId } = useParams<{ devId: string }>();\r\n const history = useHistory();\r\n const verifyTranslation = t('unidade');\r\n const [state, render, setState] = useStateVar(() => {\r\n moment.locale(verifyTranslation === 'unidade' ? 'pt-br' : 'en-ca');\r\n const state = {\r\n devId: match.params.devId,\r\n linkBase: match.url.split(`/${match.params.devId}`)[0],\r\n isLoading: true,\r\n devInfo: getCachedDevInfoSync(devId) as DevFullInfo|null,\r\n temperatureControlState: null as null|{ automation: boolean, mode: string, temperature: number, LTC: number },\r\n online: 'OFFLINE',\r\n RSSI: null as null|string,\r\n lastTelemetryTS: null as null|string,\r\n deviceTimestamp: null,\r\n DUTS_SCHEDULES: [] as ScheduleDut[],\r\n SCHEDULES_ACTIVE_QUANTITY: 0 as number,\r\n DUTS_EXCEPTIONS: [] as ExceptionDut[],\r\n openModal: false,\r\n };\r\n return state;\r\n });\r\n\r\n function redirectToIntegrations() {\r\n if (match.params.devId.startsWith('DRI') || match.params.devId.startsWith('DMA')) {\r\n const url = `/integracoes/info/diel/${state.devId}/perfil`;\r\n history.push(url);\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n redirectToIntegrations();\r\n }, []);\r\n\r\n const isDal = state.devId.startsWith('DAL');\r\n const isDmt = state.devId.startsWith('DMT');\r\n\r\n const wsl = useWebSocketLazy();\r\n function onWsOpen(wsConn) {\r\n if (!state.devInfo) return;\r\n if (state.devInfo.dac) wsConn.send({ type: 'subscribeTelemetry', data: { dac_id: state.devId } });\r\n else if (state.devInfo.dam) wsConn.send({ type: 'subscribeStatus', data: { dam_id: state.devId } });\r\n else if (state.devInfo.dut) wsConn.send({ type: 'dutSubscribeRealTime', data: { DUT_ID: state.devId } });\r\n }\r\n function handleDamMessages(payload) {\r\n if (payload.type === 'damStatus' && payload.data.dev_id === state.devId) {\r\n if (payload.data.status) state.online = payload.data.status;\r\n if (payload.data.timestamp) state.lastTelemetryTS = payload.data.timestamp;\r\n if (payload.data.deviceTimestamp) {\r\n const data = moment(payload.data.deviceTimestamp);\r\n payload.data.deviceTimestamp = data;\r\n state.deviceTimestamp = payload.data.deviceTimestamp;\r\n }\r\n if (payload.data.RSSI != null) state.RSSI = rssiDesc(payload.data.RSSI, payload.data.status);\r\n render();\r\n }\r\n }\r\n function handleDacMessages(payload) {\r\n if (payload.type === 'dacTelemetry' && payload.data.dac_id === state.devId) {\r\n if (payload.data.status) state.online = payload.data.status;\r\n if (payload.data.timestamp) state.lastTelemetryTS = payload.data.timestamp;\r\n if (payload.data.RSSI != null) state.RSSI = rssiDesc(payload.data.RSSI, payload.data.status);\r\n render();\r\n }\r\n if (payload.type === 'dacOnlineStatus' && payload.data.dac_id === state.devId) {\r\n if (payload.data.status) state.online = payload.data.status;\r\n if (payload.data.timestamp) state.lastTelemetryTS = payload.data.timestamp;\r\n render();\r\n }\r\n }\r\n function handleDutMessages(payload) {\r\n if (payload.type === 'dutTelemetry' && payload.data.dev_id === state.devId) {\r\n if (payload.data.status) state.online = payload.data.status;\r\n if (payload.data.timestamp) state.lastTelemetryTS = payload.data.timestamp;\r\n if (payload.data.RSSI != null) state.RSSI = rssiDesc(payload.data.RSSI, payload.data.status);\r\n render();\r\n }\r\n }\r\n function onWsMessage(payload) {\r\n if (!payload) return;\r\n if (payload.data.timestamp) {\r\n const data = moment(payload.data.timestamp);\r\n payload.data.timestamp = data;\r\n }\r\n\r\n handleDamMessages(payload);\r\n handleDacMessages(payload);\r\n handleDutMessages(payload);\r\n }\r\n function beforeWsClose(wsConn) {\r\n if (!state.devInfo) return;\r\n if (state.devInfo.dac) wsConn.send({ type: 'subscribeTelemetry', data: {} });\r\n else if (state.devInfo.dam) wsConn.send({ type: 'unsubscribeStatus' });\r\n else if (state.devInfo.dut) wsConn.send({ type: 'dutUnsubscribeRealTime' });\r\n }\r\n\r\n async function getDutAutExtraInfo(devInfo: DevFullInfo) {\r\n if (state.devInfo?.status === 'ONLINE') {\r\n apiCall('/request-dut-aut-config', { devId: devInfo.DEV_ID })\r\n .then((response) => {\r\n state.temperatureControlState = {\r\n automation: response.enabled,\r\n mode: response.ctrl_mode,\r\n temperature: response.setpoint,\r\n LTC: response.LTC,\r\n };\r\n render();\r\n })\r\n .catch(console.log);\r\n }\r\n\r\n apiCall('/dut/get-dut-schedules', { DUT_ID: devInfo.DEV_ID, CLIENT_ID: devInfo.CLIENT_ID, UNIT_ID: devInfo.UNIT_ID })\r\n .then((response) => {\r\n state.DUTS_SCHEDULES = response.schedules;\r\n state.SCHEDULES_ACTIVE_QUANTITY = state.DUTS_SCHEDULES.filter((schedule) => schedule.SCHEDULE_STATUS).length;\r\n render();\r\n })\r\n .catch(console.log);\r\n\r\n apiCall('/dut/get-dut-exceptions', { DUT_ID: devInfo.DEV_ID, CLIENT_ID: devInfo.CLIENT_ID, UNIT_ID: devInfo.UNIT_ID })\r\n .then((response) => {\r\n state.DUTS_EXCEPTIONS = response.exceptions;\r\n render();\r\n })\r\n .catch(console.log);\r\n }\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n setState({ isLoading: true });\r\n\r\n if (state.devId.includes('DAT')) {\r\n const url = `/analise/ativo/${state.devId}/informacoes`;\r\n history.push(url);\r\n return;\r\n }\r\n\r\n const devInfo = (await getCachedDevInfo(state.devId, { forceFresh: true }))!;\r\n state.devInfo = devInfo;\r\n if (devInfo.status) state.online = devInfo.status;\r\n if (devInfo.lastMessageTS) state.lastTelemetryTS = devInfo.lastMessageTS;\r\n wsl.start(onWsOpen, onWsMessage, beforeWsClose);\r\n\r\n const isDutAut = !!(devInfo && devInfo.dut_aut);\r\n const isDutQA = state.devInfo?.dut?.operation_mode === 5 || false;\r\n if (isDutAut && !isDutQA) {\r\n await getDutAutExtraInfo(devInfo);\r\n }\r\n } catch (err) {\r\n toast.error(t('erroDadosDispositivo'));\r\n console.log(err);\r\n }\r\n setState({ isLoading: false });\r\n }());\r\n }, []);\r\n\r\n async function handleGetDACImages() {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DACS',\r\n });\r\n }\r\n async function handlePostDACImage(photo: Blob) {\r\n return apiCallFormData('/upload-service/upload-image',\r\n {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DACS',\r\n },\r\n { file: photo });\r\n }\r\n async function handleDeleteDACImage(imageUrl: string) {\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DACS',\r\n filename: imageUrl,\r\n });\r\n }\r\n async function handleGetDUTImages() {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DUTS',\r\n });\r\n }\r\n async function handlePostDUTImage(photo: Blob) {\r\n return apiCallFormData('/upload-service/upload-image',\r\n {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DUTS',\r\n },\r\n { file: photo });\r\n }\r\n async function handleDeleteDUTImage(imageUrl: string) {\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DUTS',\r\n filename: imageUrl,\r\n });\r\n }\r\n async function handleGetDAMImages() {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DAMS',\r\n });\r\n }\r\n async function handlePostDAMImage(photo: Blob) {\r\n return apiCallFormData('/upload-service/upload-image',\r\n {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DAMS',\r\n },\r\n { file: photo });\r\n }\r\n async function handleDeleteDAMImage(imageUrl: string) {\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DAMS',\r\n filename: imageUrl,\r\n });\r\n }\r\n async function handleGetDRIImages() {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DRIS',\r\n });\r\n }\r\n async function handlePostDRIImage(photo: Blob) {\r\n return apiCallFormData('/upload-service/upload-image',\r\n {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DRIS',\r\n },\r\n { file: photo });\r\n }\r\n async function handleDeleteDRIImage(imageUrl: string) {\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: state.devInfo!.DEVICE_ID,\r\n referenceType: 'DRIS',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n function openModalDutSchedulesList() {\r\n setState({ openModal: true });\r\n render();\r\n }\r\n\r\n const { devInfo } = state;\r\n\r\n function renderCustomPages(type: string) {\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.devId, t('perfil'))}\r\n \r\n {state.devInfo && }\r\n
\r\n \r\n \r\n {state.isLoading && (\r\n \r\n )}\r\n {(!state.isLoading && devInfo && type === 'dal')\r\n && (\r\n \r\n )}\r\n {(!state.isLoading && devInfo && type === 'dmt')\r\n && (\r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n }\r\n if (isDal || isDmt) {\r\n return renderCustomPages(isDmt ? 'dmt' : 'dal');\r\n }\r\n\r\n function showDevWifiConn() {\r\n return ((profile.viewAllClients || profile.manageSomeClient) && (state.RSSI != null)) && (\r\n \r\n {/* eslint-disable */}\r\n   {`${t('intensidadeDoWifi')}:`}\r\n {/* eslint-enable */}\r\n {state.RSSI}\r\n \r\n );\r\n }\r\n\r\n function renderScheds(devInfo) {\r\n return (\r\n \r\n {(devInfo.dam) && ((!devInfo.dac) || (devInfo.dam.DAM_DISABLED !== 1)) && (\r\n
\r\n \r\n
\r\n )}\r\n {(devInfo.dut_aut) && (devInfo.dut_aut.DUTAUT_DISABLED !== 1) && (\r\n
\r\n {/* */}\r\n {(state.DUTS_SCHEDULES.length > 2 || state.DUTS_EXCEPTIONS.length > 0) && (\r\n \r\n {t('funcionamento')}\r\n \r\n \r\n )}\r\n {state.DUTS_SCHEDULES.length < 3 && state.DUTS_SCHEDULES.map((schedule, index) => (\r\n \r\n \r\n \r\n ))}\r\n
\r\n )}\r\n
\r\n );\r\n }\r\n\r\n const getTranslatedInstallationLocation = (str?: string|null) => {\r\n const opts = {\r\n 'casa-de-maquina': t('casaDeMaquina'),\r\n 'ambiente-refrigerado': t('ambienteRefrigeradoDam'),\r\n outros: t('outros'),\r\n };\r\n\r\n return (str && opts[str]) || null;\r\n };\r\n\r\n function renderDevInfo() {\r\n return (devInfo && (\r\n <>\r\n \r\n {t('status')}\r\n \r\n {state.online || 'OFFLINE'}\r\n {showDevWifiConn()}\r\n \r\n\r\n \r\n \r\n DEV ID\r\n \r\n {devInfo.DEV_ID || t('semInformacao')}\r\n \r\n\r\n \r\n \r\n BT ID\r\n \r\n {devInfo.BT_ID || t('semInformacao')}\r\n \r\n\r\n \r\n \r\n {t('ultimaMensagemRecebida')}\r\n \r\n \r\n {(state.lastTelemetryTS && moment(state.lastTelemetryTS).format('lll')) || t('semInformacao')}\r\n \r\n {(profile.manageAllClients && state.deviceTimestamp && (state.deviceTimestamp !== state.lastTelemetryTS))\r\n && (\r\n \r\n {t('horarioDispositivo')}\r\n {moment(state.deviceTimestamp).format('lll')}\r\n \r\n )}\r\n \r\n\r\n {(devInfo.dam && !devInfo.dac)\r\n && (\r\n \r\n \r\n {t('modoOperacao')}\r\n \r\n {devInfo.dam.dam_mode || t('semInformacao')}\r\n \r\n )}\r\n\r\n {t('informacoes')}\r\n\r\n \r\n \r\n {t('estado')}\r\n \r\n {devInfo.STATE_ID || t('semInformacao')}\r\n \r\n\r\n \r\n \r\n {t('cidade')}\r\n \r\n {devInfo.CITY_NAME || t('semInformacao')}\r\n \r\n\r\n \r\n \r\n {t('unidade')}\r\n \r\n {devInfo.UNIT_NAME || t('semInformacao')}\r\n \r\n {(devInfo.dac)\r\n && (\r\n <>\r\n \r\n \r\n {t('conjunto')}\r\n \r\n {devInfo.dac.GROUP_NAME || t('semInformacao')}\r\n \r\n \r\n \r\n {t('condensadora')}\r\n \r\n {devInfo.dac.DAC_NAME || t('semInformacao')}\r\n \r\n \r\n \r\n {t('descricao')}\r\n \r\n {\r\n (devInfo.dac.DAC_DESC?.startsWith('https://') || devInfo.dac.DAC_DESC?.startsWith('http://'))\r\n ?
{devInfo.dac.DAC_DESC}\r\n : {devInfo.dac.DAC_DESC || t('semInformacao')}\r\n }\r\n \r\n \r\n \r\n {t('modelo')}\r\n \r\n {devInfo.dac.DAC_MODEL || t('semInformacao')}\r\n \r\n \r\n \r\n {t('capacidadeFrigorifica')}\r\n \r\n {verifyCapacityPower(devInfo)}\r\n \r\n \r\n \r\n {t('fluidoRefrigerante')}\r\n \r\n {(devInfo.optsDescs || {})[devInfo.dac.FLUID_TYPE] || t('semInformacao')}\r\n \r\n \r\n )}\r\n {(devInfo.dam)\r\n && (\r\n \r\n \r\n {t('localDeInstalacao')}\r\n \r\n {getTranslatedInstallationLocation(devInfo.dam?.INSTALLATION_LOCATION) ?? '-'}\r\n \r\n )}\r\n {(devInfo.dam && !devInfo.dac)\r\n && (\r\n \r\n \r\n {t('conjunto')}\r\n \r\n {(devInfo.dam.groups && devInfo.dam.groups.map((group) => group.GROUP_NAME).join(', ')) || t('semInformacao')}\r\n \r\n )}\r\n {(devInfo.dam)\r\n && (\r\n \r\n \r\n {t('modoEco')}\r\n \r\n {habilitadoDesabilitado(devInfo)}\r\n \r\n )}\r\n {(devInfo.dut_aut && state.temperatureControlState && profile.manageAllClients)\r\n && (\r\n \r\n \r\n {t('modoEco')}\r\n \r\n {JSON.stringify(state.temperatureControlState)}\r\n \r\n )}\r\n {(devInfo.dut)\r\n && (\r\n <>\r\n \r\n \r\n {t('ambiente')}\r\n \r\n {devInfo.dut.ROOM_NAME || t('semInformacao')}\r\n \r\n \r\n )}\r\n\r\n \r\n \r\n {t('inicioMonitoramento')}\r\n \r\n \r\n {(devInfo.DAT_BEGMON && moment(devInfo.DAT_BEGMON).format('lll')) || t('semInformacao')}\r\n \r\n \r\n\r\n {/* Informação ocultada para futuras melhorias */}\r\n {/* \r\n \r\n Data da primeira automação\r\n \r\n \r\n {(devInfo.DAT_BEGAUT && moment(devInfo.DAT_BEGAUT).format('lll')) || 'Sem informação'}\r\n \r\n */}\r\n \r\n {renderScheds(devInfo)}\r\n \r\n \r\n \r\n {(devInfo.dac)\r\n && (\r\n \r\n )}\r\n {(devInfo.dut)\r\n && (\r\n \r\n )}\r\n {(devInfo.dam && !devInfo.dac)\r\n && (\r\n \r\n )}\r\n {(devInfo.dri)\r\n && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {isEditEnable(devInfo)}\r\n \r\n \r\n ) || null);\r\n }\r\n\r\n function habilitadoDesabilitado(devInfo: DevFullInfo) {\r\n if (devInfo.dam?.ENABLE_ECO === 1 || devInfo.dam?.ENABLE_ECO === 2) {\r\n return t('habilitado');\r\n }\r\n return t('desabilitado');\r\n }\r\n\r\n let permissionProfile = (state.devInfo && state.devInfo.CLIENT_ID\r\n ? profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === state.devInfo?.CLIENT_ID)\r\n : false) || profile.manageAllClients;\r\n\r\n if (permissionProfile === false || permissionProfile === undefined) {\r\n permissionProfile = !!profile.adminClientProg?.UNIT_MANAGE.some((item) => item === state.devInfo?.UNIT_ID);\r\n }\r\n\r\n function isEditEnable(devInfo: DevFullInfo) {\r\n if (permissionProfile || profile.permissions.CLIENT_MANAGE.includes(devInfo.CLIENT_ID) || profile.permissions.isInstaller) {\r\n return (\r\n
\r\n history.push(`${state.linkBase}/${state.devId}/editar`)}\r\n variant=\"primary\"\r\n >\r\n {t('editar')}\r\n \r\n
\r\n );\r\n }\r\n return <>;\r\n }\r\n\r\n function verifyCapacityPower(devInfo: DevFullInfo) {\r\n if (devInfo.dac?.CAPACITY_PWR) {\r\n return `${formatNumberWithFractionDigits(devInfo.dac?.CAPACITY_PWR)} ${devInfo.dac?.CAPACITY_UNIT || ''}`;\r\n }\r\n return t('semInformacao');\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.devId, t('perfil'))}\r\n \r\n {state.devInfo && }\r\n \r\n \r\n {state.isLoading\r\n ? (\r\n \r\n )\r\n : renderDevInfo() }\r\n \r\n {state.openModal && (\r\n { setState({ openModal: false }); }}>\r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('DevInfo', 'component')(DevInfo);\r\n","import styled from 'styled-components';\r\n\r\nimport { StatusBox } from '~/components';\r\nimport { DottedLineIcon, LineIcon } from '~/icons';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const StatusL1 = styled(StatusBox)`\r\nmargin-left: 12px;\r\nmin-width: 100px;\r\n`;\r\n\r\nexport const ColoredDottedLine = styled(DottedLineIcon)(\r\n ({ color }) => `\r\nmargin-left: 10px;\r\ncolor: ${color}\r\n`,\r\n);\r\n\r\nexport const ColoredLine = styled(LineIcon)(\r\n ({ color }) => `\r\nmargin-left: 10px;\r\ncolor: ${color}\r\n`,\r\n);\r\n\r\nexport const CheckboxLine = styled.div`\r\ndisplay: flex;\r\njustify-content: flex-start;\r\nalign-items: center;\r\n`;\r\n\r\nexport const Text = styled.span`\r\nfont-weight: normal;\r\nfont-size: 1em;\r\nline-height: 26px;\r\ncolor: ${colors.Grey400};\r\n`;\r\n\r\nexport const Container = styled.div`\r\nmin-height: 410px;\r\nwidth: 100%;\r\nborder-radius: 8px;\r\nbackground-color: ${colors.White};\r\npadding: 32px 24px;\r\nbox-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const CardWrapper = styled.div`\r\npadding: 32px 16px;\r\nborder-radius: 8px;\r\nmin-height: 118px;\r\nbackground-color: ${colors.White};\r\nbox-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n@media (min-width: 992px) {\r\n padding: 32px;\r\n}\r\n`;\r\n\r\nexport const CardTitle = styled.div`\r\nfont-style: normal;\r\nfont-weight: 500;\r\nfont-size: 1.5em;\r\ncolor: ${colors.Grey400};\r\n`;\r\n\r\nexport const DivisionLine = styled.div`\r\nposition: absolute;\r\nleft: 50%;\r\ntop: 0;\r\nbottom: 0;\r\nheight: 100%;\r\nwidth: 2px;\r\nbackground: ${colors.Grey100};\r\n`;\r\n","import { useEffect, useState } from 'react';\r\nimport { t } from 'i18next';\r\nimport Checkbox from '@material-ui/core/Checkbox';\r\nimport moment from 'moment';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, Scatter, ScatterChart,\r\n} from 'recharts';\r\nimport { Flex, Box } from 'reflexbox';\r\n\r\nimport * as axisCalc from '~/helpers/axisCalc';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { useWebSocketLazy } from '~/helpers/wsConnection';\r\nimport { DevLayout } from '~/pages/Analysis/DEVs/DevLayout';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport {\r\n StatusL1,\r\n ColoredDottedLine,\r\n ColoredLine,\r\n CheckboxLine,\r\n Text,\r\n Container,\r\n CardWrapper,\r\n CardTitle,\r\n DivisionLine,\r\n} from './styles';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nconst TSPAN = 5 * 60 * 1000;\r\nconst ONLINE_TIMEOUT = 10 * 1000;\r\n\r\nfunction invBool(v) {\r\n return v === 1 ? 0 : v === 0 ? 1 : v;\r\n}\r\n\r\nfunction formatTimeToTimeAxios(date: moment.Moment, seconds = 0, format = 'HH:mm:ss') {\r\n return moment(date)\r\n .add(seconds, 'seconds')\r\n .format(format);\r\n}\r\n\r\nexport const RealTime = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ devId }>();\r\n const [, render] = useStateVar({});\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n {t('dielEnergiaTempoReal')}\r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nfunction CustomTickTime(props) {\r\n const {\r\n x, y, payload, anchor, initialTimeRef,\r\n } = props;\r\n return (\r\n \r\n \r\n {(payload.value > 1000000)\r\n ? new Date(payload.value).toLocaleTimeString()\r\n : formatTimeToTimeAxios(moment(initialTimeRef), payload.value)}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction CustomTickTemp(props) {\r\n const {\r\n x, y, payload, anchor, axisInfo,\r\n } = props;\r\n\r\n let label = payload.value;\r\n if (payload.value < (axisInfo.L1start - 5)) {\r\n label = ((payload.value % 5) > -2.5) ? t('liberadoAbreviado') : t('bloqueadoAbreviado');\r\n } else if (payload.value < axisInfo.L1start) {\r\n label = ((payload.value % 5) > -2.5) ? t('ligadoAbreviado') : t('desligadoAbreviado');\r\n }\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction CustomTickPress(props) {\r\n const {\r\n x, y, payload, anchor,\r\n } = props;\r\n\r\n return (\r\n \r\n \r\n {payload.value}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction ChartRealTime(props) {\r\n const {\r\n state,\r\n graphEnable,\r\n isDesktop,\r\n profile,\r\n } = props;\r\n\r\n let styleLabelTemperature = {};\r\n let styleLabelPressure = {};\r\n const hasCurr = !!state?.hwCfg?.hasCurr;\r\n\r\n if (isDesktop) {\r\n styleLabelTemperature = { value: hasCurr ? `${t('temperatura')} / ${t('corrente')}` : `${t('temperatura')}`, angle: -90, color: '#656565' };\r\n styleLabelPressure = { value: `${t('pressao')}`, angle: -90, color: '#656565' };\r\n } else {\r\n styleLabelTemperature = {\r\n value: hasCurr ? `${t('temperatura').slice(0, 4)}. (°C) / ${t('corrente').slice(0, 4)}. (A)` : `${t('temperaturaC')}`,\r\n position: 'top',\r\n dx: 54,\r\n dy: -10,\r\n style: {\r\n fontSize: '11px',\r\n fontWeight: '500',\r\n },\r\n };\r\n styleLabelPressure = {\r\n value: `${t('pressaoBar')}`,\r\n position: 'top',\r\n dx: -40,\r\n dy: -10,\r\n style: {\r\n fontSize: '11px',\r\n fontWeight: '500',\r\n },\r\n };\r\n }\r\n\r\n return (\r\n \r\n {!isDesktop && profile?.manageAllClients && state.devInfo?.dac?.FLUID_TYPE && (\r\n \r\n )}\r\n \r\n \r\n \r\n }\r\n tickCount={isDesktop ? 6 : 3}\r\n domain={['dataMin', 'dataMax']}\r\n />\r\n }\r\n ticks={state.axisInfo.tempTicks}\r\n domain={state.axisInfo.tempLimits}\r\n interval={0}\r\n label={styleLabelTemperature}\r\n />\r\n }\r\n ticks={state.axisInfo.presTicks}\r\n domain={state.axisInfo.presLimits}\r\n orientation=\"right\"\r\n label={styleLabelPressure}\r\n />\r\n\r\n {graphEnable.Tamb && (\r\n null} data={state.graphData.Tamb} fill={colors.Green} isAnimationActive={false} />\r\n )}\r\n {graphEnable.Tsuc && (\r\n null} data={state.graphData.Tsuc} fill={colors.Blue300} isAnimationActive={false} />\r\n )}\r\n {graphEnable.Tliq && (\r\n null} data={state.graphData.Tliq} fill={colors.Red} isAnimationActive={false} />\r\n )}\r\n {graphEnable.deltaT && (\r\n null} data={state.graphData.deltaT} fill=\"#181842\" isAnimationActive={false} strokeDasharray=\"5 5\" />\r\n )}\r\n {graphEnable.Curr && (\r\n null} data={state.graphData.Curr} fill={colors.Green_v2} isAnimationActive={false} />\r\n )}\r\n {graphEnable.Psuc && (\r\n null} data={state.graphData.Psuc} fill={colors.Blue400} isAnimationActive={false} strokeDasharray=\"5 5\" />\r\n )}\r\n {graphEnable.Pliq && (\r\n null} data={state.graphData.Pliq} fill={colors.Red} isAnimationActive={false} strokeDasharray=\"5 5\" />\r\n )}\r\n {graphEnable.Tsc && (\r\n null} data={state.graphData.Tsc} fill={colors.Blue500} isAnimationActive={false} />\r\n )}\r\n {graphEnable.Tsh && (\r\n null} data={state.graphData.Tsh} fill={colors.Pink400} isAnimationActive={false} />\r\n )}\r\n {graphEnable.Lcmp && (\r\n null} data={state.graphData.Lcmp} fill={colors.Grey400} isAnimationActive={false} />\r\n )}\r\n {graphEnable.Levp && (\r\n null} data={state.graphData.Levp} fill={colors.Grey400} isAnimationActive={false} />\r\n )}\r\n {graphEnable.Lcut && (\r\n null} data={state.graphData.Lcut} fill={colors.Orange600} isAnimationActive={false} />\r\n )}\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nfunction CommandStatus(props) {\r\n const {\r\n status,\r\n isDesktop,\r\n labelGreen,\r\n labelRed,\r\n context,\r\n } = props;\r\n\r\n if (status !== 'undefined') {\r\n let statusText = '';\r\n\r\n switch (context) {\r\n case 'signal':\r\n statusText = status === 1 ? labelGreen : labelRed;\r\n break;\r\n case 'block':\r\n statusText = status === 0 ? labelGreen : labelRed;\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n const statusColor = statusText === labelGreen ? colors.Green : colors.Red;\r\n\r\n const additionalStyles = isDesktop ? {} : { marginLeft: 0, minWidth: '20px' };\r\n\r\n return (\r\n \r\n {statusText}\r\n \r\n );\r\n }\r\n\r\n return ;\r\n}\r\n\r\nfunction DacFluid(props) {\r\n const { state, isDesktop } = props;\r\n\r\n let styleText: React.CSSProperties = {};\r\n let styleFluidType: React.CSSProperties = {};\r\n\r\n if (isDesktop) {\r\n styleText = { paddingLeft: '42px' };\r\n styleFluidType = {};\r\n } else {\r\n styleText = { fontSize: '12px', float: 'right', marginRight: '24px' };\r\n styleFluidType = { fontWeight: 'bold' };\r\n }\r\n\r\n return (\r\n \r\n {`${t('fluido')}: `}\r\n \r\n {state.devInfo?.dac?.FLUID_TYPE}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction RealTimeDesktop(props) {\r\n const {\r\n state,\r\n hwCfg,\r\n graphEnable,\r\n profile,\r\n render,\r\n } = props;\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n { graphEnable.Tamb = !graphEnable.Tamb; render(); }}\r\n value={graphEnable.Tamb}\r\n color=\"primary\"\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {state.devInfo?.dac?.DAC_TYPE === 'self' ? t('retorno') : t('externa')}\r\n {' '}\r\n {formatNumberWithFractionDigits(state.lastData?.Tamb ?? '-')}\r\n {' '}\r\n [°C]\r\n \r\n \r\n \r\n {\r\n verifyIsHeatExchanger(hwCfg, state)\r\n ? (\r\n <>\r\n \r\n { graphEnable.Tliq = !graphEnable.Tliq; render(); }}\r\n value={graphEnable.Tliq}\r\n color=\"primary\"\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) ? t('deRetornoAgua') : t('deLiquido')}\r\n {' '}\r\n {state.lastData?.Tliq ? formatNumberWithFractionDigits(state.lastData?.Tliq) : '-'}\r\n {' '}\r\n [°C]\r\n \r\n \r\n\r\n \r\n \r\n { graphEnable.Tsuc = !graphEnable.Tsuc; render(); }}\r\n value={graphEnable.Tsuc}\r\n color=\"primary\"\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) ? t('saidaDeAgua') : t('deSuccao')}\r\n {' '}\r\n {state.lastData?.Tsuc ? formatNumberWithFractionDigits(state.lastData?.Tsuc) : '-'}\r\n {' '}\r\n [°C]\r\n \r\n \r\n \r\n \r\n ) : (\r\n <>\r\n \r\n { graphEnable.Tsuc = !graphEnable.Tsuc; render(); }}\r\n value={graphEnable.Tsuc}\r\n color=\"primary\"\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) ? t('saidaDeAgua') : t('deSuccao')}\r\n {' '}\r\n {state.lastData?.Tsuc ? formatNumberWithFractionDigits(state.lastData?.Tsuc) : '-'}\r\n {' '}\r\n [°C]\r\n \r\n \r\n \r\n\r\n \r\n { graphEnable.Tliq = !graphEnable.Tliq; render(); }}\r\n value={graphEnable.Tliq}\r\n color=\"primary\"\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) ? t('deRetornoAgua') : t('deLiquido')}\r\n {' '}\r\n {state.lastData?.Tliq ? formatNumberWithFractionDigits(state.lastData?.Tliq) : '-'}\r\n {' '}\r\n [°C]\r\n \r\n \r\n\r\n \r\n \r\n )\r\n }\r\n\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) && (\r\n \r\n { graphEnable.deltaT = !graphEnable.deltaT; render(); }}\r\n value={graphEnable.deltaT}\r\n color=\"primary\"\r\n />\r\n \r\n ΔT =\r\n {' '}\r\n {state.lastData?.deltaT ? formatNumberWithFractionDigits(state.lastData?.deltaT) : '-'}\r\n {' '}\r\n [°C]\r\n \r\n \r\n \r\n )}\r\n {hwCfg.hasCurr && (\r\n \r\n { graphEnable.Curr = !graphEnable.Curr; render(); }}\r\n value={graphEnable.Curr}\r\n color=\"primary\"\r\n />\r\n \r\n {t('corrente')}\r\n {' '}\r\n {state.lastData?.Curr != null ? formatNumberWithFractionDigits(state.lastData?.Curr) : '-'}\r\n {' '}\r\n [A]\r\n \r\n \r\n \r\n )}\r\n {hwCfg.hasPsuc && (\r\n \r\n { graphEnable.Psuc = !graphEnable.Psuc; render(); }}\r\n value={graphEnable.Psuc}\r\n color=\"primary\"\r\n />\r\n \r\n {t('pressaoSuccao')}\r\n {' '}\r\n {state.lastData?.Psuc ? formatNumberWithFractionDigits(state.lastData?.Psuc) : '-'}\r\n {' '}\r\n [\r\n {state.usePsi ? 'PSI' : 'Bar'}\r\n ]\r\n \r\n \r\n \r\n )}\r\n {hwCfg.hasPliq && (\r\n \r\n { graphEnable.Pliq = !graphEnable.Pliq; render(); }}\r\n value={graphEnable.Pliq}\r\n color=\"primary\"\r\n />\r\n \r\n {t('pressaoLiquido')}\r\n {' '}\r\n {state.lastData?.Pliq ? formatNumberWithFractionDigits(state.lastData?.Pliq) : '-'}\r\n {' '}\r\n {' '}\r\n [\r\n {state.usePsi ? 'PSI' : 'Bar'}\r\n ]\r\n \r\n \r\n \r\n )}\r\n {hwCfg.hasTsc && (\r\n \r\n { graphEnable.Tsc = !graphEnable.Tsc; render(); }}\r\n value={graphEnable.Tsc}\r\n color=\"primary\"\r\n />\r\n \r\n {t('subresfriamento')}\r\n {' '}\r\n {state.lastData?.Tsc ? formatNumberWithFractionDigits(state.lastData?.Tsc) : '-'}\r\n {' '}\r\n [ΔTºC]\r\n \r\n \r\n \r\n )}\r\n {hwCfg.hasTsh && (\r\n \r\n { graphEnable.Tsh = !graphEnable.Tsh; render(); }}\r\n value={graphEnable.Tsh}\r\n color=\"primary\"\r\n />\r\n \r\n {t('superaquecimento')}\r\n {' '}\r\n {state.lastData?.Tsh ? formatNumberWithFractionDigits(state.lastData?.Tsh) : '-'}\r\n {' '}\r\n [ΔTºC]\r\n \r\n \r\n \r\n )}\r\n {(!hwCfg.hasAutomation) && (\r\n \r\n { graphEnable.Lcmp = !graphEnable.Lcmp; render(); }}\r\n value={graphEnable.Lcmp}\r\n color=\"primary\"\r\n />\r\n {t('sinalComando')}\r\n \r\n \r\n \r\n )}\r\n {hwCfg.hasAutomation && (\r\n \r\n { graphEnable.Levp = !graphEnable.Levp; render(); }}\r\n value={graphEnable.Levp}\r\n color=\"primary\"\r\n />\r\n {t('sinalComando')}\r\n \r\n \r\n \r\n )}\r\n {hwCfg.hasAutomation && (\r\n \r\n { graphEnable.Lcut = !graphEnable.Lcut; render(); }}\r\n value={graphEnable.Lcut}\r\n color=\"primary\"\r\n />\r\n {t('bloqueioComando')}\r\n \r\n \r\n \r\n )}\r\n {profile.manageAllClients && state.devInfo?.dac?.FLUID_TYPE && (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {(profile.manageAllClients) && (\r\n \r\n {t('deteccaoFalhas')}\r\n {state.debugFaults.map((fault) => (\r\n
\r\n {' '}\r\n  \r\n {' '}\r\n {fault.desc}\r\n
\r\n ))}\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nfunction verifyIsFancoilOrHeatExchanger(hwCfg, state) {\r\n const result = !!(hwCfg.isFanCoil || state.devInfo?.dac?.DAC_APPL === 'trocador-de-calor');\r\n return result;\r\n}\r\n\r\nfunction verifyIsHeatExchanger(hwCfg, state) {\r\n const result = !!(state.devInfo?.dac?.DAC_APPL === 'trocador-de-calor');\r\n return result;\r\n}\r\n\r\nfunction RealTimeMobile(props) {\r\n const {\r\n state,\r\n hwCfg,\r\n graphEnable,\r\n profile,\r\n render,\r\n } = props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n { graphEnable.Tsuc = !graphEnable.Tsuc; render(); }}\r\n value={graphEnable.Tsuc}\r\n style={{\r\n color: colors.Blue300,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) ? t('saidaDeAgua') : t('deSuccao')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Tsuc ? formatNumberWithFractionDigits(state.lastData?.Tsuc) : '-'} °C`}\r\n

\r\n
\r\n
\r\n \r\n { graphEnable.Tamb = !graphEnable.Tamb; render(); }}\r\n value={graphEnable.Tamb}\r\n style={{\r\n color: colors.Green,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {state.devInfo?.dac?.DAC_TYPE === 'self' ? t('retorno') : t('externa')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Tamb ? formatNumberWithFractionDigits(state.lastData?.Tamb) : '-'} °C`}\r\n

\r\n
\r\n
\r\n {hwCfg.hasPsuc && (\r\n \r\n { graphEnable.Psuc = !graphEnable.Psuc; render(); }}\r\n value={graphEnable.Psuc}\r\n style={{\r\n color: colors.Blue400,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('pressaoSuccao')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Psuc ? formatNumberWithFractionDigits(state.lastData?.Psuc) : '-'} ${state.usePsi ? 'PSI' : 'Bar'}`}\r\n

\r\n
\r\n
\r\n )}\r\n \r\n { graphEnable.Tliq = !graphEnable.Tliq; render(); }}\r\n value={graphEnable.Tliq}\r\n style={{\r\n color: colors.Red,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('temperatura')}\r\n {' '}\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) ? t('deRetornoAgua') : t('deLiquido')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Tliq ? formatNumberWithFractionDigits(state.lastData?.Tliq) : '-'} °C`}\r\n

\r\n
\r\n
\r\n {hwCfg.hasTsh && (\r\n \r\n { graphEnable.Tsh = !graphEnable.Tsh; render(); }}\r\n value={graphEnable.Tsh}\r\n style={{\r\n color: colors.Pink400,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('superaquecimento')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Tsh ? formatNumberWithFractionDigits(state.lastData?.Tsh) : '-'} °C`}\r\n

\r\n
\r\n
\r\n )}\r\n {hwCfg.hasCurr && (\r\n \r\n { graphEnable.Curr = !graphEnable.Curr; render(); }}\r\n value={graphEnable.Curr}\r\n style={{\r\n color: colors.Green_v2,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('corrente')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Curr != null ? formatNumberWithFractionDigits(state.lastData?.Curr) : '-'} A`}\r\n

\r\n
\r\n
\r\n )}\r\n {hwCfg.hasPliq && (\r\n \r\n { graphEnable.Pliq = !graphEnable.Pliq; render(); }}\r\n value={graphEnable.Pliq}\r\n style={{\r\n color: colors.Red,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('pressaoLiquido')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Pliq ? formatNumberWithFractionDigits(state.lastData?.Pliq) : '-'} ${state.usePsi ? 'PSI' : 'Bar'}`}\r\n

\r\n
\r\n
\r\n )}\r\n {verifyIsFancoilOrHeatExchanger(hwCfg, state) && (\r\n \r\n { graphEnable.deltaT = !graphEnable.deltaT; render(); }}\r\n value={graphEnable.deltaT}\r\n style={{\r\n color: colors.Blue500,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n ΔT\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.deltaT ? formatNumberWithFractionDigits(state.lastData?.deltaT) : '-'} °C`}\r\n

\r\n
\r\n
\r\n )}\r\n {hwCfg.hasTsc && (\r\n \r\n { graphEnable.Tsc = !graphEnable.Tsc; render(); }}\r\n value={graphEnable.Tsc}\r\n style={{\r\n color: colors.Blue500,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('subresfriamento')}\r\n {'\\n'}\r\n

\r\n {`${state.lastData?.Tsc ? formatNumberWithFractionDigits(state.lastData?.Tsc) : '-'} °C`}\r\n

\r\n
\r\n
\r\n )}\r\n {hwCfg.hasAutomation ? (\r\n <>\r\n \r\n { graphEnable.Levp = !graphEnable.Levp; render(); }}\r\n value={graphEnable.Levp}\r\n style={{\r\n color: colors.Grey400,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('sinalComando')}\r\n \r\n \r\n \r\n \r\n { graphEnable.Lcut = !graphEnable.Lcut; render(); }}\r\n value={graphEnable.Lcut}\r\n style={{\r\n color: colors.Orange600,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('bloqueioComando')}\r\n \r\n \r\n \r\n \r\n ) : (\r\n \r\n { graphEnable.Lcmp = !graphEnable.Lcmp; render(); }}\r\n value={graphEnable.Lcmp}\r\n style={{\r\n color: colors.Grey400,\r\n padding: '0 5px 0 10px',\r\n }}\r\n />\r\n \r\n {t('sinalComando')}\r\n \r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n \r\n );\r\n}\r\n\r\nexport function RealTimeContents({ onDevInfoUpdate = undefined as undefined | (() => void) }) {\r\n const { t } = useTranslation();\r\n const { devId: dacId } = useParams<{ devId: string }>();\r\n const [profile] = useState(getUserProfile);\r\n const [state, render] = useStateVar(() => {\r\n const state = {\r\n dacId,\r\n devInfo: getCachedDevInfoSync(dacId),\r\n graphData: {\r\n Lcmp: [] as { x: number, y?: number, L?: number }[],\r\n Levp: [] as { x: number, y?: number, L?: number }[],\r\n Lcut: [] as { x: number, y?: number, L?: number }[],\r\n Tamb: [] as { x: number, y: number }[],\r\n Tsuc: [] as { x: number, y: number }[],\r\n Tliq: [] as { x: number, y: number }[],\r\n Curr: [] as { x: number, y: number }[],\r\n Psuc: [] as { x: number, y: number }[],\r\n Pliq: [] as { x: number, y: number }[],\r\n Tsc: [] as { x: number, y: number }[],\r\n Tsh: [] as { x: number, y: number }[],\r\n deltaT: [] as { x: number, y: number }[],\r\n },\r\n axisDataLimits: {\r\n minTval: undefined as undefined|number,\r\n maxTval: undefined as undefined|number,\r\n minPval: undefined as undefined|number,\r\n maxPval: undefined as undefined|number,\r\n },\r\n hasNewTelm: false,\r\n axisInfo: {\r\n L1start: null as null|number,\r\n tempLimits: [0, 40],\r\n tempTicks: [0, 5, 10, 15, 20, 25, 30, 35, 40],\r\n presLimits: [0, 35],\r\n presTicks: [0, 5, 10, 15, 20, 25, 30, 35],\r\n },\r\n lastData: null as null|{\r\n Lcmp: number,\r\n Levp: number,\r\n Lcut: number,\r\n Tsuc: number,\r\n Tliq: number,\r\n Tamb: number,\r\n Psuc: number,\r\n Curr: number,\r\n Pliq: number,\r\n Tsc: number,\r\n Tsh: number,\r\n deltaT: number,\r\n },\r\n debugFaults: [] as { desc: string }[],\r\n usePsi: (profile.prefsObj.pressureUnit === 'psi'),\r\n graphEnable: {\r\n Tamb: true,\r\n Tsuc: true,\r\n Tliq: true,\r\n Psuc: true,\r\n Pliq: true,\r\n Curr: true,\r\n Tsc: true,\r\n Tsh: true,\r\n Lcmp: true,\r\n Levp: true,\r\n Lcut: true,\r\n deltaT: true,\r\n },\r\n hwCfg: {\r\n hasPliq: true, hasPsuc: true, hasTsc: true, hasTsh: true, hasCurr: false, hasAutomation: false, isFanCoil: false, calculate_L1_fancoil: false,\r\n },\r\n initialTimeRef: new Date().toISOString().substr(0, 19),\r\n onTelmTimer: undefined as undefined|NodeJS.Timeout,\r\n timezoneOffset: 0,\r\n };\r\n return state;\r\n });\r\n\r\n const { graphEnable } = state;\r\n const { hwCfg } = state;\r\n state.hasNewTelm = false;\r\n const isDesktop = window.matchMedia('(min-width: 768px)');\r\n\r\n const lws = useWebSocketLazy();\r\n\r\n useEffect(() => {\r\n (async function () {\r\n const historyPromise = apiCall('/dac/get-recent-history-v2', {\r\n dacId: state.dacId,\r\n intervalLength_s: 5 * 60, // 5 min\r\n intervalLength: 5 * 60 * 1000, // 5 min\r\n }).catch(console.log);\r\n\r\n const devInfo = await getCachedDevInfo(dacId, {});\r\n const tzOffset = await apiCall('/get-timezone-offset-by-devId', { devId: dacId }).catch((err) => {\r\n toast.error(t('erroObterFusoHorario'));\r\n console.log(err);\r\n });\r\n if (tzOffset != null) {\r\n state.timezoneOffset = tzOffset;\r\n const data = moment();\r\n const dateWithOffset = data.utcOffset(state.timezoneOffset);\r\n state.initialTimeRef = dateWithOffset.format('YYYY-MM-DDTHH:mm:ss');\r\n }\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n state.devInfo = devInfo;\r\n const dacInfo = devInfo.dac;\r\n state.hwCfg.hasPsuc = (dacInfo.P0Psuc || dacInfo.P1Psuc);\r\n state.hwCfg.hasPliq = (dacInfo.P0Pliq || dacInfo.P1Pliq);\r\n state.hwCfg.hasCurr = (dacInfo.P0Curr || dacInfo.P1Curr);\r\n state.hwCfg.hasTsh = state.hwCfg.hasPsuc;\r\n state.hwCfg.hasTsc = state.hwCfg.hasPliq;\r\n state.hwCfg.hasAutomation = dacInfo.hasAutomation;\r\n state.hwCfg.isFanCoil = (dacInfo.DAC_APPL === 'fancoil');\r\n state.hwCfg.calculate_L1_fancoil = (dacInfo.SELECTED_L1_SIM === 'fancoil');\r\n if (!state.hwCfg.hasPsuc) state.graphEnable.Psuc = false;\r\n if (!state.hwCfg.hasPliq) state.graphEnable.Pliq = false;\r\n if (!state.hwCfg.hasCurr) state.graphEnable.Curr = false;\r\n if (!state.hwCfg.hasAutomation) state.graphEnable.Levp = false;\r\n if (!state.hwCfg.hasAutomation) state.graphEnable.Lcut = false;\r\n if (state.hwCfg.hasAutomation) state.graphEnable.Lcmp = false;\r\n render();\r\n lws.start(onWsOpen, onWsMessage, beforeWsClose);\r\n\r\n const histResp = await historyPromise;\r\n if (histResp && histResp.data) {\r\n if ((state.hwCfg.isFanCoil || state.devInfo.dac!.DAC_APPL === 'trocador-de-calor') && histResp.data.Tliq && histResp.data.Tsuc) {\r\n const histData = Object.assign(histResp.data, { deltaT: [] as number[] });\r\n histData.deltaT = [...histResp.data.Tliq];\r\n for (let i = 0; i < histResp.data.Tliq.length; i++) {\r\n if (histResp.data.Tliq[i] && histResp.data.Tsuc[i]) histData.deltaT[i] = Number((histResp.data.Tliq[i] - histResp.data.Tsuc[i]).toFixed(2));\r\n }\r\n }\r\n processReceivedHistory(histResp.data, state.usePsi, state.graphData);\r\n render();\r\n }\r\n }()).catch(console.log);\r\n }, []);\r\n\r\n function onWsOpen(wsConn) {\r\n wsConn.send(JSON.stringify({ type: 'subscribeTelemetry', data: { dac_id: state.dacId } }));\r\n }\r\n\r\n function onWsMessage(payload) {\r\n if (payload && payload.type === 'dacTelemetry') {\r\n const data = moment(new Date(payload.data.timestamp));\r\n payload.data.timestamp = data.format('YYYY-MM-DDTHH:mm:ss');\r\n processReceivedTelemetry(payload.data, state.usePsi, state.graphData);\r\n state.lastData = payload.data;\r\n\r\n if (state.hwCfg.calculate_L1_fancoil && state.lastData) {\r\n state.lastData.Lcmp = ((state.lastData.Tsuc - state.lastData.Tliq) >= 1.5) ? 1 : 0;\r\n }\r\n if ((hwCfg.isFanCoil || state.devInfo.dac!.DAC_APPL === 'trocador-de-calor') && state.lastData && state.lastData.Tliq && state.lastData.Tsuc) {\r\n state.lastData.deltaT = Number((state.lastData.Tliq - state.lastData.Tsuc).toFixed(2));\r\n }\r\n if (payload.data.debugFaults instanceof Array) {\r\n payload.data.debugFaults.forEach((item) => {\r\n item.desc = `${item.faultName}: ${Math.round(Math.min(100, (item.t / item.time) * 100))}% ${item.condDesc}`;\r\n });\r\n if (payload.data.debugFaults.length === 0) payload.data.debugFaults = [{ desc: '(nenhuma)' }];\r\n } else payload.data.debugFaults = [];\r\n state.debugFaults = payload.data.debugFaults;\r\n clearTimeout(state.onTelmTimer);\r\n state.hasNewTelm = true;\r\n state.onTelmTimer = setTimeout(() => state.hasNewTelm && render(), 100);\r\n // render();\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send(JSON.stringify({ type: 'subscribeTelemetry', data: {} }));\r\n }\r\n\r\n function processReceivedHistory(devHist, convertToPsi, currentData) {\r\n const newData: typeof state.graphData = {\r\n Lcmp: [],\r\n Levp: [],\r\n Lcut: [],\r\n Tamb: [],\r\n Tsuc: [],\r\n Tliq: [],\r\n Psuc: [],\r\n Pliq: [],\r\n Curr: [],\r\n Tsc: [],\r\n Tsh: [],\r\n deltaT: [],\r\n };\r\n\r\n let maxTval = 10;\r\n let minTval = 10;\r\n let maxPval = 10;\r\n let minPval = 10;\r\n\r\n let x = 0;\r\n if (devHist && devHist.initialTimestamp && devHist.timeAxis) {\r\n const datIni = new Date(devHist.initialTimestamp).getTime();\r\n const { timeAxis } = devHist;\r\n const LcmpHist = devHist.Lcmp;\r\n const LevpHist = devHist.Levp;\r\n const LcutHist = devHist.Lcut;\r\n const TambHist = devHist.Tamb;\r\n const TsucHist = devHist.Tsuc;\r\n const TliqHist = devHist.Tliq;\r\n const PsucHist = devHist.Psuc;\r\n const PliqHist = devHist.Pliq;\r\n const CurrHist = devHist.Curr;\r\n const TscHist = devHist.Tsc;\r\n const TshHist = devHist.Tsh;\r\n const deltaTHist = devHist.deltaT;\r\n\r\n x = datIni;\r\n for (let i = 0; i < timeAxis.length; i++) {\r\n x = datIni + timeAxis[i] * 1000;\r\n if (convertToPsi) {\r\n if (PsucHist) PsucHist[i] *= 14.50377;\r\n if (PliqHist) PliqHist[i] *= 14.50377;\r\n }\r\n if (i > 0 && timeAxis[i] - timeAxis[i - 1] > 10) {\r\n newData.Lcmp.push({ x: x - 1000, y: NaN });\r\n newData.Levp.push({ x: x - 1000, y: NaN });\r\n newData.Lcut.push({ x: x - 1000, y: NaN });\r\n newData.Tamb.push({ x: x - 1000, y: NaN });\r\n newData.Tsuc.push({ x: x - 1000, y: NaN });\r\n newData.Tliq.push({ x: x - 1000, y: NaN });\r\n newData.Psuc.push({ x: x - 1000, y: NaN });\r\n newData.Pliq.push({ x: x - 1000, y: NaN });\r\n newData.Curr.push({ x: x - 1000, y: NaN });\r\n newData.Tsc.push({ x: x - 1000, y: NaN });\r\n newData.Tsh.push({ x: x - 1000, y: NaN });\r\n newData.deltaT.push({ x: x - 1000, y: NaN });\r\n }\r\n newData.Lcmp.push(LcmpHist ? { x, L: LcmpHist[i] } : { x, L: NaN });\r\n newData.Levp.push(LevpHist ? { x, L: LevpHist[i] } : { x, L: NaN });\r\n newData.Lcut.push(LcutHist ? { x, L: invBool(LcutHist[i]) } : { x, L: NaN });\r\n newData.Tamb.push(TambHist ? { x, y: TambHist[i] } : { x, y: NaN });\r\n newData.Tsuc.push(TsucHist ? { x, y: TsucHist[i] } : { x, y: NaN });\r\n newData.Tliq.push(TliqHist ? { x, y: TliqHist[i] } : { x, y: NaN });\r\n newData.Psuc.push(PsucHist ? { x, y: PsucHist[i] } : { x, y: NaN });\r\n newData.Pliq.push(PliqHist ? { x, y: PliqHist[i] } : { x, y: NaN });\r\n newData.Curr.push(CurrHist ? { x, y: CurrHist[i] } : { x, y: NaN });\r\n newData.Tsc.push(TscHist ? { x, y: TscHist[i] } : { x, y: NaN });\r\n newData.Tsh.push(TshHist ? { x, y: TshHist[i] } : { x, y: NaN });\r\n newData.deltaT.push(deltaTHist ? { x, y: deltaTHist[i] } : { x, y: NaN });\r\n\r\n if (TambHist && TambHist[i] != null && TambHist[i] > maxTval) maxTval = TambHist[i];\r\n if (TsucHist && TsucHist[i] != null && TsucHist[i] > maxTval) maxTval = TsucHist[i];\r\n if (TliqHist && TliqHist[i] != null && TliqHist[i] > maxTval) maxTval = TliqHist[i];\r\n if (TscHist && TscHist[i] != null && TscHist[i] > maxTval) maxTval = TscHist[i];\r\n if (TshHist && TshHist[i] != null && TshHist[i] > maxTval) maxTval = TshHist[i];\r\n if (deltaTHist && deltaTHist[i] != null && deltaTHist[i] > maxTval) maxTval = deltaTHist[i];\r\n if (CurrHist && CurrHist[i] != null && CurrHist[i] > maxTval) maxTval = CurrHist[i];\r\n\r\n if (TambHist && TambHist[i] != null && TambHist[i] < minTval) minTval = TambHist[i];\r\n if (TsucHist && TsucHist[i] != null && TsucHist[i] < minTval) minTval = TsucHist[i];\r\n if (TliqHist && TliqHist[i] != null && TliqHist[i] < minTval) minTval = TliqHist[i];\r\n if (TscHist && TscHist[i] != null && TscHist[i] < minTval) minTval = TscHist[i];\r\n if (TshHist && TshHist[i] != null && TshHist[i] < minTval) minTval = TshHist[i];\r\n if (deltaTHist && deltaTHist[i] != null && deltaTHist[i] < minTval) minTval = deltaTHist[i];\r\n if (CurrHist && CurrHist[i] != null && CurrHist[i] < minTval) minTval = CurrHist[i];\r\n\r\n if (PsucHist && PsucHist[i] != null && PsucHist[i] > maxPval) maxPval = PsucHist[i];\r\n if (PliqHist && PliqHist[i] != null && PliqHist[i] > maxPval) maxPval = PliqHist[i];\r\n\r\n if (PsucHist && PsucHist[i] != null && PsucHist[i] < minPval) minPval = PsucHist[i];\r\n if (PliqHist && PliqHist[i] != null && PliqHist[i] < minPval) minPval = PliqHist[i];\r\n }\r\n }\r\n\r\n if (currentData) {\r\n for (let i = 0; i < currentData.Lcmp.length; i++) {\r\n if (currentData.Lcmp[i].x > x) {\r\n newData.Lcmp.push(currentData.Lcmp[i]);\r\n newData.Levp.push(currentData.Levp[i]);\r\n newData.Lcut.push(currentData.Lcut[i]);\r\n newData.Tamb.push(currentData.Tamb[i]);\r\n newData.Tsuc.push(currentData.Tsuc[i]);\r\n newData.Tliq.push(currentData.Tliq[i]);\r\n newData.Psuc.push(currentData.Psuc[i]);\r\n newData.Pliq.push(currentData.Pliq[i]);\r\n newData.Curr.push(currentData.Curr[i]);\r\n newData.Tsc.push(currentData.Tsc[i]);\r\n newData.Tsh.push(currentData.Tsh[i]);\r\n newData.deltaT.push(currentData.deltaT[i]);\r\n }\r\n }\r\n }\r\n addTelemetryPoint(newData.Lcmp);\r\n addTelemetryPoint(newData.Levp);\r\n addTelemetryPoint(newData.Lcut);\r\n addTelemetryPoint(newData.Tamb);\r\n addTelemetryPoint(newData.Tsuc);\r\n addTelemetryPoint(newData.Tliq);\r\n addTelemetryPoint(newData.Psuc);\r\n addTelemetryPoint(newData.Pliq);\r\n addTelemetryPoint(newData.Curr);\r\n addTelemetryPoint(newData.Tsc);\r\n addTelemetryPoint(newData.Tsh);\r\n addTelemetryPoint(newData.deltaT);\r\n state.graphData = newData;\r\n\r\n state.axisInfo.L1start = null; // force check of L1 values\r\n updateAxis(minTval, maxTval, minPval, maxPval);\r\n\r\n return newData;\r\n }\r\n\r\n const extractValidValues = (arr) => {\r\n if (!Array.isArray(arr)) return [];\r\n return arr.map((item) => item.y).filter((y) => typeof y === 'number' && !Number.isNaN(y));\r\n };\r\n\r\n function processReceivedTelemetry(telemetry, convertToPsi, currentData) {\r\n if (convertToPsi) {\r\n telemetry.Psuc = Math.round(telemetry.Psuc * 14.50377);\r\n telemetry.Pliq = Math.round(telemetry.Pliq * 14.50377);\r\n }\r\n\r\n if ((hwCfg.isFanCoil || state.devInfo.dac!.DAC_APPL === 'trocador-de-calor') && telemetry.Tliq && telemetry.Tsuc) {\r\n telemetry.deltaT = telemetry.Tsuc - telemetry.Tliq;\r\n }\r\n\r\n const allValues = [\r\n ...extractValidValues(currentData.Tamb),\r\n ...extractValidValues(currentData.Tsuc),\r\n ...extractValidValues(currentData.Tliq),\r\n ...extractValidValues(currentData.Tsc),\r\n ...extractValidValues(currentData.Tsh),\r\n ...extractValidValues(currentData.deltaT),\r\n ...extractValidValues(currentData.Curr),\r\n ];\r\n\r\n const minTval = allValues.length > 0 ? Math.min(...allValues) : 0;\r\n const maxTval = allValues.length > 0 ? Math.max(...allValues) : 0;\r\n const minPval = Math.min(currentData.Psuc || 0, currentData.Pliq || 0);\r\n const maxPval = Math.max(currentData.Psuc || 0, currentData.Pliq || 0);\r\n // TODO: check if have to update L1start\r\n updateAxis(minTval, maxTval, minPval, maxPval);\r\n\r\n const { L1start } = state.axisInfo;\r\n\r\n let Lcmp = telemetry.Lcmp;\r\n\r\n if (state.hwCfg.calculate_L1_fancoil) {\r\n Lcmp = ((telemetry.Tsuc - telemetry.Tliq) >= 1.5) ? 1 : 0;\r\n }\r\n\r\n const yLcmp = axisCalc.convertBoolValue(Lcmp, L1start!, 0);\r\n const yLevp = axisCalc.convertBoolValue(telemetry.Levp, L1start!, 0);\r\n const yLcut = axisCalc.convertBoolValue(invBool(telemetry.Lcut), L1start!, 1);\r\n\r\n telemetry.time = new Date(telemetry.timestamp);\r\n const time = telemetry.time.getTime();\r\n addTelemetryPoint(currentData.Lcmp, { x: time, L: Lcmp, y: yLcmp });\r\n addTelemetryPoint(currentData.Levp, { x: time, L: telemetry.Levp, y: yLevp });\r\n addTelemetryPoint(currentData.Lcut, { x: time, L: telemetry.Lcut, y: yLcut });\r\n addTelemetryPoint(currentData.Tamb, { x: time, y: telemetry.Tamb });\r\n addTelemetryPoint(currentData.Tsuc, { x: time, y: telemetry.Tsuc });\r\n addTelemetryPoint(currentData.Tliq, { x: time, y: telemetry.Tliq });\r\n addTelemetryPoint(currentData.deltaT, { x: time, y: telemetry.deltaT });\r\n addTelemetryPoint(currentData.Psuc, { x: time, y: telemetry.Psuc });\r\n addTelemetryPoint(currentData.Pliq, { x: time, y: telemetry.Pliq });\r\n addTelemetryPoint(currentData.Curr, { x: time, y: telemetry.Curr });\r\n addTelemetryPoint(currentData.Tsc, { x: time, y: telemetry.Tsc });\r\n addTelemetryPoint(currentData.Tsh, { x: time, y: telemetry.Tsh });\r\n\r\n return currentData;\r\n }\r\n\r\n function updateAxis(minTval, maxTval, minPval, maxPval) {\r\n const prevL1start = state.axisInfo.L1start;\r\n const newDataLimits = {\r\n minTval, maxTval, minPval, maxPval,\r\n };\r\n const booleanLines = state.hwCfg.hasAutomation ? 2 : 1;\r\n axisCalc.updateDataLimits(newDataLimits, state.axisDataLimits);\r\n state.axisInfo = axisCalc.calculateAxisInfo(state.axisDataLimits, booleanLines);\r\n\r\n if (prevL1start !== state.axisInfo.L1start) {\r\n const { graphData } = state;\r\n const varsList = state.hwCfg.hasAutomation ? [graphData.Levp, graphData.Lcut] : [graphData.Lcmp];\r\n axisCalc.updateBoolY(varsList, state.axisInfo.L1start!);\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n {isDesktop.matches ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nfunction addTelemetryPoint(chartPoints, newPoint?) {\r\n if (chartPoints.length === 0) {\r\n if (newPoint) {\r\n const chartTimeIni = new Date(newPoint.x - TSPAN).getTime();\r\n chartPoints.push({ x: chartTimeIni, y: NaN });\r\n chartPoints.push(newPoint);\r\n }\r\n return;\r\n }\r\n\r\n let lastPoint = chartPoints[chartPoints.length - 1];\r\n\r\n if (newPoint && (newPoint.x > lastPoint.x)) {\r\n const timeEndThreshold = new Date(newPoint.x - ONLINE_TIMEOUT).getTime();\r\n if (!(lastPoint.x >= timeEndThreshold)) {\r\n chartPoints.push({ x: timeEndThreshold, y: NaN });\r\n }\r\n chartPoints.push(newPoint);\r\n lastPoint = newPoint;\r\n }\r\n\r\n const chartTimeIni = new Date(lastPoint.x - TSPAN).getTime();\r\n\r\n // Remove old points\r\n while (chartPoints.length > 0 && !(chartPoints[0].x >= chartTimeIni)) {\r\n chartPoints.shift();\r\n }\r\n\r\n if (chartPoints[0].x > chartTimeIni) {\r\n chartPoints.unshift({ x: chartTimeIni, y: NaN });\r\n }\r\n}\r\n","export default __webpack_public_path__ + \"static/media/eco.7941b8d6.svg\";","import styled from 'styled-components';\r\n\r\nimport { colors } from '../../styles/colors';\r\n\r\nexport const Row = styled.div`\r\n align-items: center;\r\n display: flex;\r\n flex-direction: row;\r\n`;\r\n\r\nexport const Text = styled.p<{ isBold }>(\r\n ({ isBold }) => `\r\n margin-top: 1em;\r\n margin-bottom: 1em;\r\n color: ${colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n`,\r\n);\r\n","import { useState } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { RadioButton } from '../index';\r\nimport { apiCall } from '../../providers';\r\nimport { colors } from '../../styles/colors';\r\n\r\nimport { Row, Text } from './styles';\r\n\r\nfunction updateDamStatus(message, dev) {\r\n dev.status = message.status;\r\n dev.Mode = message.Mode;\r\n dev.State = message.State;\r\n}\r\n\r\nexport const DamControl = ({ dam, onStateChanged }): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [, stateChanged] = useState({});\r\n const [state] = useState({\r\n changed() { stateChanged({}); if (onStateChanged) { onStateChanged(); } },\r\n });\r\n\r\n async function sendDamMode(dev, newMode) {\r\n if (dev.safeWaitMode) return;\r\n dev.safeWaitMode = true;\r\n setTimeout(() => {\r\n delete dev.safeWaitMode;\r\n }, 2500);\r\n try {\r\n dev.loading = true; state.changed();\r\n const telemetry = await apiCall('/dam/set-dam-operation', {\r\n dev_id: dev.DAM_ID,\r\n mode: newMode, // 'manual', 'auto'\r\n });\r\n updateDamStatus(telemetry, dev);\r\n state.changed();\r\n // toast.success('Enviado')\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n dev.loading = false; state.changed();\r\n }\r\n\r\n async function sendDamRelay(dev, newMode) {\r\n if (dev.safeWaitRelay) return;\r\n dev.safeWaitRelay = true;\r\n setTimeout(() => {\r\n delete dev.safeWaitRelay;\r\n }, 2500);\r\n try {\r\n dev.loading = true; state.changed();\r\n const telemetry = await apiCall('/dam/set-dam-operation', {\r\n dev_id: dev.DAM_ID,\r\n relay: newMode, // 'allow', 'forbid', 'onlyfan'\r\n });\r\n updateDamStatus(telemetry, dev);\r\n state.changed();\r\n // toast.success('Enviado')\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n dev.loading = false; state.changed();\r\n }\r\n\r\n const manualCommandsEnabled = (dam.Mode === 'Manual') && (!['enabling', 'disabling'].includes(dam.State));\r\n const damStateIsEco = (dam.State === 'eco') ? t('refrigerarEco') : t('refrigerar');\r\n\r\n return (\r\n
\r\n \r\n {t('automacao')}\r\n \r\n \r\n sendDamMode(dam, 'auto')}\r\n style={{ width: '170px' }}\r\n />\r\n sendDamMode(dam, 'manual')}\r\n style={{ width: '170px' }}\r\n />\r\n {(dam.Mode === 'Local') && (\r\n \r\n )}\r\n \r\n \r\n {t('statusAutomacao')}\r\n \r\n \r\n {(dam.DAM_ID && !(dam.DAM_ID.startsWith('DAC3') || dam.DAM_ID.startsWith('DAC4'))) // TODO: FIXME: find a better way to check this\r\n && (\r\n
\r\n sendDamRelay(dam, 'onlyfan')) : null}\r\n />\r\n {/*     \r\n */}\r\n
\r\n )}\r\n\r\n
\r\n sendDamRelay(dam, 'allow')) : null}\r\n />\r\n {/*     \r\n */}\r\n
\r\n\r\n
\r\n sendDamRelay(dam, 'forbid')) : null}\r\n />\r\n {/*     \r\n */}\r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import styled from 'styled-components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const ControlButton = styled.div<{ isActive?: boolean, noBorder?: boolean }>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 10px;\r\n width: 70px;\r\n height: 70px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n ${({ isActive }) => (isActive ? `background-color: ${colors.BlueSecondary};` : '')}\r\n`;\r\n\r\nexport const SetpointButton = styled.div<{ up?: boolean, down?: boolean, disabled?: boolean }>`\r\n flex-basis: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-right: 1px solid #D7D7D7;\r\n user-select: none;\r\n ${({ up }) => (up ? 'border-bottom: 1px solid #D7D7D7' : '')}\r\n ${({ down }) => (down ? 'border-top: 1px solid #D7D7D7' : '')}\r\n ${({ disabled }) => (disabled ? 'cursor: default' : 'cursor: pointer')}\r\n`;\r\n\r\nexport const SetpointButtonMobile = styled.div<{ up?: boolean, down?: boolean, disabled?: boolean }>`\r\n display: flex;\r\n align-items: center;\r\n width: 48px;\r\n height: 48px;\r\n justify-content: center;\r\n border: 1px solid #D7D7D7;\r\n border-radius: 10px;\r\n user-select: none;\r\n ${({ disabled }) => (disabled ? 'cursor: default' : 'cursor: pointer')}\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n display: inline-block;\r\n width: 9px;\r\n height: 15px;\r\n display: flex;\r\n text-align: center;\r\n align-items: center;\r\n justify-content: center;\r\n border-radius: 3px;\r\n svg {\r\n width: 9px;\r\n height: 15px;\r\n }\r\n`;\r\n\r\nexport const DesktopWrapper = styled.div`\r\ndisplay: none;\r\n@media (min-width: 768px) {\r\n display: block;\r\n}\r\n`;\r\n\r\nexport const MobileWrapper = styled.div`\r\ndisplay: block;\r\n@media (min-width: 768px) {\r\n display: none;\r\n}\r\n`;\r\n","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport { DevLayout } from 'pages/Analysis/DEVs/DevLayout';\r\nimport EcoModeIcon from '~/assets/img/icons/eco.svg';\r\nimport {\r\n Loader, StatusBox, DamEcoCard, OptionsWithIcon,\r\n} from '~/components';\r\nimport { DamControl } from '~/components/DamControl';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { useWebSocketLazy } from '~/helpers/wsConnection';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport {\r\n TermometerIcon,\r\n RemoteAutoIcon,\r\n RemoteManualIcon,\r\n LocalOperationIcon,\r\n CoolIcon,\r\n FanIcon,\r\n BlockIcon,\r\n ArrowUpIconV2,\r\n ArrowDownIconV2,\r\n ThermostatIcon,\r\n EvapInsufIcon,\r\n} from '~/icons';\r\n\r\nimport {\r\n ControlButton,\r\n SetpointButton,\r\n IconWrapper,\r\n DesktopWrapper,\r\n MobileWrapper,\r\n SetpointButtonMobile,\r\n} from './styles';\r\nimport { t } from 'i18next';\r\nimport { formatNumberWithFractionDigits } from '../../../helpers/thousandFormatNumber';\r\n\r\nexport const DamRealTime = (): JSX.Element => {\r\n const routeParams = useParams<{ devId }>();\r\n const [, render] = useStateVar({});\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaDetalhesDam')}\r\n \r\n \r\n {/* @ts-ignore */ }\r\n \r\n \r\n );\r\n};\r\n\r\nexport function DamRealTimeContents({ onDevInfoUpdate = undefined }) {\r\n const routeParams = useParams<{ devId }>();\r\n // @ts-ignore\r\n const [state, render, setState] = useStateVar({\r\n isLoading: false,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n temperature: 23 as number|null,\r\n ecoModeCfg: null,\r\n telemetry: {\r\n DAM_ID: routeParams.devId,\r\n State: null,\r\n Mode: null,\r\n ecoModeActing: null,\r\n status: 'OFFLINE',\r\n loading: false,\r\n safeWaitMode: false,\r\n safeWaitRelay: false,\r\n Temperature: null,\r\n Temperature_1: null,\r\n lastTelemetry: null,\r\n timestamp: null,\r\n RSSI: null,\r\n } as {\r\n DAM_ID: string|null,\r\n State: string|null,\r\n Mode: string|null,\r\n ecoModeActing: string|null,\r\n status: string|null,\r\n loading: boolean,\r\n safeWaitMode: boolean,\r\n safeWaitRelay: boolean,\r\n Temperature: string|null,\r\n Temperature_1: string|null,\r\n lastTelemetry: string|null,\r\n timestamp: string|null,\r\n RSSI: string|null,\r\n },\r\n // @ts-ignore\r\n relDutInfo: null as {\r\n REL_DUT_ID: string,\r\n ROOM_DESC?: string,\r\n TUSEMIN?: number,\r\n TUSEMAX?: number,\r\n Temperature?: number,\r\n status?: string,\r\n },\r\n optionsControlMode: [\r\n {\r\n icon: ,\r\n iconSelected: ,\r\n label: t('remotoAutomatico'),\r\n selected: true,\r\n tag: 'Auto',\r\n mode: 'auto',\r\n },\r\n {\r\n icon: ,\r\n iconSelected: ,\r\n label: t('remotoManual'),\r\n selected: false,\r\n tag: 'Manual',\r\n mode: 'manual',\r\n },\r\n ],\r\n optionsOperationMode: [\r\n {\r\n icon: ,\r\n iconSelected: ,\r\n label: t('refrigerar'),\r\n selected: true,\r\n tag: ['allow', 'enabling', 'eco'],\r\n mode: 'allow',\r\n },\r\n {\r\n icon: ,\r\n iconSelected: ,\r\n label: t('ventilar'),\r\n selected: false,\r\n tag: ['onlyfan'],\r\n mode: 'onlyfan',\r\n },\r\n {\r\n icon: ,\r\n iconSelected: ,\r\n label: t('bloqueadoMin'),\r\n selected: false,\r\n tag: ['forbid', 'disabling'],\r\n mode: 'forbid',\r\n },\r\n ],\r\n disableOperationMode: true as boolean,\r\n disableSetpoint: true as boolean,\r\n dutIrCommands: null as null | { IR_ID: string, cmdName: string, CMD_TYPE: string}[],\r\n });\r\n\r\n const ecoModeCfgs = {\r\n 'eco-D': t('desligar').toLocaleLowerCase(),\r\n 'eco-V': t('ventilar').toLocaleLowerCase(),\r\n 'eco-C1-V': t('desligarCondensadora2DepoisVentilar'),\r\n 'eco-C2-V': t('desligarCondensadora1DepoisVentilar'),\r\n };\r\n const lws = useWebSocketLazy();\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n state.isLoading = true; render();\r\n state.devInfo = await getCachedDevInfo(routeParams.devId, {});\r\n state.temperature = state.devInfo.dam?.SETPOINT_ECO_REAL_TIME != null ? state.devInfo.dam?.SETPOINT_ECO_REAL_TIME : (state.devInfo.dam?.SETPOINT || 23);\r\n // @ts-ignore\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n // @ts-ignore\r\n state.ecoModeCfg = (state.devInfo.dam.ENABLE_ECO && state.devInfo.dam.ECO_CFG) || null;\r\n if (state.devInfo?.DEV_ID?.startsWith('DAM3') && state.devInfo?.dam?.supportsExtTherm) {\r\n if (!state.optionsOperationMode.find((x) => x.mode === 'thermostat')) {\r\n state.optionsOperationMode.push({\r\n icon: ,\r\n iconSelected: ,\r\n label: t('termostatoExterno'),\r\n selected: false,\r\n tag: ['THERMOSTAT', 'thermostat', 'STARTING_THERMOSTAT'],\r\n mode: 'thermostat',\r\n });\r\n }\r\n }\r\n // @ts-ignore\r\n if (state.devInfo.dam.REL_DUT_ID) {\r\n state.relDutInfo = {\r\n // @ts-ignore\r\n REL_DUT_ID: state.devInfo.dam.REL_DUT_ID,\r\n };\r\n const dutInfo = await apiCall('/dut/get-dut-info', { DEV_ID: state.relDutInfo.REL_DUT_ID });\r\n state.relDutInfo.TUSEMIN = dutInfo.info.TUSEMIN;\r\n state.relDutInfo.TUSEMAX = dutInfo.info.TUSEMAX;\r\n state.relDutInfo.ROOM_DESC = dutInfo.info.ROOM_NAME ? `${dutInfo.info.ROOM_NAME} (${dutInfo.info.DEV_ID})` : dutInfo.info.DEV_ID;\r\n }\r\n lws.start(onWsOpen, onWsMessage, beforeWsClose);\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n state.isLoading = false; render();\r\n }());\r\n }, []);\r\n\r\n // useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'subscribeStatus', data: { dam_id: routeParams.devId } });\r\n if (state.relDutInfo && !state.devInfo.dam.SELF_REFERENCE) {\r\n wsConn.send({ type: 'dutSubscribeRealTime', data: { DUT_ID: state.relDutInfo.REL_DUT_ID } });\r\n }\r\n }\r\n function onWsMessage(message) {\r\n if (message && message.type === 'damStatus' && message.data.status && message.data.dev_id === state.telemetry.DAM_ID) {\r\n state.telemetry.status = message.data.status;\r\n state.telemetry.Mode = message.data.Mode;\r\n state.telemetry.State = message.data.State;\r\n state.telemetry.ecoModeActing = message.data.ecoModeActing;\r\n state.telemetry.Temperature = message.data.Temperature || null;\r\n state.telemetry.Temperature_1 = message.data.Temperature_1 || null;\r\n if (message.data.timestamp) state.telemetry.lastTelemetry = message.data.timestamp;\r\n if (message.data.deviceTimestamp) state.telemetry.timestamp = message.data.deviceTimestamp;\r\n if (message.data.RSSI != null) state.telemetry.RSSI = rssiDesc(message.data.RSSI, message.data.status);\r\n defineSelectedOptions();\r\n render();\r\n }\r\n if (message && message.type === 'dutTelemetry' && state.relDutInfo && message.data.dev_id === state.relDutInfo.REL_DUT_ID) {\r\n state.relDutInfo.Temperature = message.data?.Temperature;\r\n state.relDutInfo.status = message.data?.status;\r\n render();\r\n }\r\n if (message && message.type === 'devOnlineStatus' && state.relDutInfo && message.data.dev_id === state.relDutInfo.REL_DUT_ID) {\r\n state.relDutInfo.status = message.data?.status;\r\n render();\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'unsubscribeStatus' });\r\n wsConn.send({ type: 'dutUnsubscribeRealTime' });\r\n }\r\n\r\n function rssiDesc(RSSI: number, status: string) {\r\n if (RSSI < 0 && status === 'ONLINE') {\r\n if (RSSI > -50) return 'Excelente';\r\n if (RSSI > -60) return 'Bom';\r\n if (RSSI > -70) return 'Regular';\r\n return 'Ruim';\r\n }\r\n return '-';\r\n }\r\n\r\n function defineSelectedOptions() {\r\n const controlModeCurrent = state.optionsControlMode.find((item) => item.selected);\r\n if (controlModeCurrent && controlModeCurrent.tag !== state.telemetry.Mode) {\r\n controlModeCurrent.selected = false;\r\n\r\n if (state.telemetry.Mode === 'Local') {\r\n state.optionsControlMode.push(\r\n {\r\n icon: ,\r\n iconSelected: ,\r\n label: t('emOperacaoLocal'),\r\n selected: true,\r\n tag: 'Local',\r\n mode: 'local',\r\n },\r\n );\r\n }\r\n else {\r\n const controlModeNew = state.optionsControlMode.find((item) => item.tag === state.telemetry.Mode);\r\n if (controlModeNew) {\r\n controlModeNew.selected = true;\r\n }\r\n else {\r\n state.optionsControlMode[0].selected = true;\r\n }\r\n\r\n if (state.optionsControlMode[state.optionsControlMode.length - 1].tag === 'Local') {\r\n state.optionsControlMode.splice(state.optionsControlMode.length - 1, 1);\r\n }\r\n }\r\n }\r\n\r\n const operationModeCurrent = state.optionsOperationMode.find((item) => item.selected);\r\n if (operationModeCurrent && state.telemetry.State && !operationModeCurrent.tag.includes(state.telemetry.State)) {\r\n operationModeCurrent.selected = false;\r\n const controlModeNew = state.optionsOperationMode.find((item) => item.tag.includes(state.telemetry.State!));\r\n if (controlModeNew) {\r\n controlModeNew.selected = true;\r\n }\r\n else {\r\n state.optionsOperationMode[0].selected = true;\r\n }\r\n }\r\n\r\n const optionControlModeSelected = state.optionsControlMode.find((item) => item.selected);\r\n state.disableOperationMode = !optionControlModeSelected || optionControlModeSelected.label !== 'Remoto Manual';\r\n\r\n const optionOperationModeSelected = state.optionsOperationMode.find((item) => item.selected);\r\n }\r\n function getDialColor({ temp }) {\r\n if ((state.relDutInfo && state.relDutInfo.status !== 'ONLINE') || (state.devInfo.status !== 'ONLINE')) return colors.LightGrey_v3;\r\n if (temp != null && Number.isFinite(Number(temp))) {\r\n return (\r\n (state.relDutInfo && ((state.relDutInfo.TUSEMAX != null && temp > state.relDutInfo.TUSEMAX && colors.Red)\r\n || (state.relDutInfo.TUSEMIN != null && temp < state.relDutInfo.TUSEMIN && colors.BlueSecondary_v3)))\r\n || state.devInfo.dam.MAXIMUM_TEMPERATURE != null && temp > state.devInfo.dam.MAXIMUM_TEMPERATURE && colors.Red\r\n || state.devInfo.dam.MINIMUM_TEMPERATURE != null && temp < state.devInfo.dam.MINIMUM_TEMPERATURE && colors.BlueSecondary_v3\r\n || colors.GreenLight\r\n );\r\n }\r\n return colors.GreenLight;\r\n }\r\n\r\n async function changeSetpoint(newSetpoint: number) {\r\n try {\r\n render();\r\n const telemetry = await apiCall('/dam/set-local-setpoint', {\r\n DAM_ID: state.telemetry.DAM_ID!,\r\n SETPOINT: newSetpoint,\r\n });\r\n\r\n state.temperature = newSetpoint;\r\n }\r\n catch (err) {\r\n toast.error(t('erroEnviarSetpoint'));\r\n }\r\n\r\n render();\r\n }\r\n\r\n function updateDamStatus(message) {\r\n state.telemetry.status = message.status;\r\n state.telemetry.Mode = message.Mode;\r\n state.telemetry.State = message.State;\r\n }\r\n\r\n async function selectControleMode(options: {\r\n icon: JSX.Element,\r\n iconSelected: JSX.Element,\r\n label: string,\r\n selected: boolean,\r\n tag: string,\r\n mode: string,\r\n }[]) {\r\n state.optionsControlMode = options;\r\n\r\n const optionControlModeSelected = state.optionsControlMode.find((item) => item.selected);\r\n state.disableOperationMode = !optionControlModeSelected || optionControlModeSelected.label !== 'Remoto Manual';\r\n\r\n await sendDamMode(optionControlModeSelected!.mode);\r\n render();\r\n }\r\n\r\n async function sendDamMode(newMode) {\r\n if (state.telemetry.safeWaitMode) return;\r\n state.telemetry.safeWaitMode = true;\r\n setTimeout(() => {\r\n state.telemetry.safeWaitMode = false;\r\n }, 2500);\r\n try {\r\n state.telemetry.loading = true;\r\n render();\r\n const telemetry = await apiCall('/dam/set-dam-operation', {\r\n dev_id: state.telemetry.DAM_ID!,\r\n mode: newMode, // 'manual', 'auto'\r\n });\r\n if (telemetry) {\r\n updateDamStatus(telemetry);\r\n }\r\n toast.success(`Enviado!${newMode === 'manual' ? t('sucessoOperacaoManualPermaneceraFuncionamento') : ''}`);\r\n } catch (err) { console.log(err); toast.error(t('erro')); defineSelectedOptions(); }\r\n state.telemetry.loading = false;\r\n }\r\n\r\n async function selectOperationMode(options: {\r\n icon: JSX.Element,\r\n iconSelected: JSX.Element,\r\n label: string,\r\n selected: boolean,\r\n tag: string[],\r\n mode: string,\r\n }[]) {\r\n state.optionsOperationMode = options;\r\n\r\n const optionOperationModeSelected = state.optionsOperationMode.find((item) => item.selected);\r\n\r\n await sendDamRelay(optionOperationModeSelected?.mode);\r\n render();\r\n }\r\n\r\n async function sendDamRelay(newMode) {\r\n if (state.telemetry.safeWaitRelay) return;\r\n state.telemetry.safeWaitRelay = true;\r\n setTimeout(() => {\r\n state.telemetry.safeWaitRelay = false;\r\n }, 2500);\r\n try {\r\n state.telemetry.loading = true;\r\n render();\r\n const telemetry = await apiCall('/dam/set-dam-operation', {\r\n dev_id: state.telemetry.DAM_ID!,\r\n relay: newMode, // 'allow', 'forbid', 'onlyfan', 'thermostat'\r\n });\r\n updateDamStatus(telemetry);\r\n } catch (err) { console.log(err); toast.error(t('erro')); defineSelectedOptions(); }\r\n state.telemetry.loading = false;\r\n }\r\n\r\n function getDutTemperature() {\r\n return state.relDutInfo.status !== 'ONLINE' ? null : state.relDutInfo.Temperature || null;\r\n }\r\n\r\n function getTemperature() {\r\n return state.relDutInfo ? getDutTemperature() : Number(getReturnTemperature()) || null;\r\n }\r\n\r\n const getReturnTemperature = () => {\r\n if (state.devInfo.dam.PLACEMENT !== 'DUO') return state.telemetry.Temperature;\r\n\r\n if (state.devInfo.dam.T0_POSITION === 'RETURN' || (!state.devInfo.dam.T0_POSITION && state.devInfo.dam.T1_POSITION !== 'RETURN')) {\r\n return state.telemetry.Temperature;\r\n }\r\n return state.telemetry.Temperature_1;\r\n };\r\n\r\n const getInsufflationTemperature = () => {\r\n if (state.devInfo.dam.PLACEMENT !== 'DUO') return null;\r\n\r\n if (state.devInfo.dam.T1_POSITION === 'INSUFFLATION' || (!state.devInfo.dam.T1_POSITION && state.devInfo.dam.T0_POSITION !== 'INSUFFLATION')) {\r\n return state.telemetry.Temperature_1;\r\n }\r\n return state.telemetry.Temperature;\r\n };\r\n\r\n const showInsufTemp = () => (\r\n getInsufflationTemperature() && (\r\n
\r\n
\r\n
\r\n \r\n {t('insuflamento')}\r\n
\r\n
\r\n {formatNumberWithFractionDigits(getInsufflationTemperature() ?? '-')}\r\n \r\n  °C\r\n \r\n
\r\n
\r\n
\r\n )\r\n );\r\n\r\n return (\r\n <>\r\n \r\n \r\n {state.isLoading ? (\r\n \r\n ) : (\r\n (!state.devInfo.DEV_ID.startsWith('DAM3') || !state.devInfo.dam?.CAN_SELF_REFERENCE) && (\r\n <>\r\n {state.telemetry.status}\r\n
\r\n render()} />\r\n {state.telemetry.loading && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n {t('modoEco')}\r\n :  \r\n \r\n {/* @ts-ignore */}\r\n {state.ecoModeCfg ? (ecoModeCfgs[state.ecoModeCfg] || state.ecoModeCfg || `(${t('nenhuma')})`) : t('desabilitado')}\r\n \r\n {(state.telemetry && state.telemetry.ecoModeActing)\r\n && (\r\n \r\n )}\r\n
\r\n \r\n ) || (state.devInfo.DEV_ID.startsWith('DAM3') && state.devInfo.dam?.CAN_SELF_REFERENCE && (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n {state !== undefined && (\r\n
\r\n
\r\n
\r\n \r\n {t('agora')}\r\n
\r\n
\r\n {(state == null) ? '-' : formatNumberWithFractionDigits(getTemperature() ?? '-')}\r\n \r\n  °C\r\n \r\n
\r\n
\r\n
\r\n )}\r\n {showInsufTemp()}\r\n
\r\n
\r\n
\r\n
{t('limitesTemperatura')}
\r\n \r\n mín.\r\n {` ${state.relDutInfo ? (state.relDutInfo.TUSEMIN != null ? formatNumberWithFractionDigits(state.relDutInfo.TUSEMIN) : '-') : (formatNumberWithFractionDigits(state.devInfo.dam.MINIMUM_TEMPERATURE ?? '-'))}`}\r\n °C\r\n      \r\n máx.\r\n {` ${state.relDutInfo ? (state.relDutInfo.TUSEMAX != null ? formatNumberWithFractionDigits(state.relDutInfo.TUSEMAX) : '-') : (formatNumberWithFractionDigits(state.devInfo.dam.MAXIMUM_TEMPERATURE ?? '-'))}`}\r\n °C\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n {t('modoControle')}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n {t('modoOperacao')}\r\n
\r\n
\r\n render()} />\r\n
\r\n \r\n \r\n
\r\n Setpoint\r\n
\r\n
\r\n \r\n
\r\n !state.disableSetpoint && !state.telemetry.loading && state.temperature != null && state.devInfo.status === 'ONLINE' && changeSetpoint(state.temperature + 1)}>\r\n \r\n \r\n \r\n \r\n !state.disableSetpoint && !state.telemetry.loading && state.temperature != null && state.devInfo.status === 'ONLINE' && changeSetpoint(state.temperature - 1)}>\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
{`${state.temperature ? formatNumberWithFractionDigits(state.temperature) : '-'} °C`}
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n {state !== undefined && (\r\n
\r\n
\r\n
\r\n \r\n {t('agora')}\r\n
\r\n
\r\n {(state == null) ? '-' : formatNumberWithFractionDigits(getTemperature() ?? '-')}\r\n \r\n  °C\r\n \r\n
\r\n
\r\n
\r\n )}\r\n {showInsufTemp()}\r\n
\r\n
\r\n
\r\n
{t('limitesTemperatura')}
\r\n \r\n mín.\r\n {` ${state.relDutInfo ? (state.relDutInfo.TUSEMIN || '-') : (state.devInfo.dam.MINIMUM_TEMPERATURE || '-')}`}\r\n °C\r\n      \r\n máx.\r\n {` ${state.relDutInfo ? state.relDutInfo.TUSEMAX || '-' : (state.devInfo.dam.MAXIMUM_TEMPERATURE || '-')}`}\r\n °C\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n {t('modoControle')}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n {t('modoOperacao')}\r\n
\r\n
\r\n render()} />\r\n
\r\n \r\n \r\n \r\n
\r\n Setpoint\r\n
\r\n
\r\n \r\n
\r\n !state.disableSetpoint && !state.telemetry.loading && state.temperature != null && state.devInfo.status === 'ONLINE' && changeSetpoint(state.temperature + 1)}>\r\n \r\n \r\n \r\n \r\n !state.disableSetpoint && !state.telemetry.loading && state.temperature != null && state.devInfo.status === 'ONLINE' && changeSetpoint(state.temperature - 1)}>\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
{`${state.temperature ? formatNumberWithFractionDigits(state.temperature) : '-'} °C`}
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n \r\n ))\r\n )}\r\n \r\n \r\n {(state.relDutInfo && (!state.devInfo.DEV_ID.startsWith('DAM3') || !state.devInfo.dam?.CAN_SELF_REFERENCE))\r\n && (\r\n \r\n \r\n {state.isLoading ? (\r\n \r\n ) : (\r\n
\r\n
\r\n {state.relDutInfo.status || 'OFFLINE'}\r\n \r\n {t('ambienteRefrigerado')}\r\n {' '}\r\n {state.relDutInfo.ROOM_DESC || state.relDutInfo.REL_DUT_ID}\r\n \r\n
\r\n \r\n {t('limiteTemperatura')}\r\n {' '}\r\n {(state.relDutInfo.TUSEMIN != null) ? `${formatNumberWithFractionDigits(state.relDutInfo.TUSEMIN)} °C` : t('semInformacaoTemperatura')}\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n {' '}\r\n {t('temperaturaAmbiente')}\r\n \r\n
\r\n {(state.relDutInfo.Temperature != null) ? `${formatNumberWithFractionDigits(state.relDutInfo.Temperature)}°C` : '-'}\r\n
\r\n
\r\n
 
\r\n
\r\n )}\r\n
\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nfunction Dial(props: { temperature: number | null, color: string | null, showIndicator: boolean, mobile?: boolean }) {\r\n function onSvgClick(event) {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'svg') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n console.log('DBG013', rect, event);\r\n }\r\n\r\n const max = 32;\r\n const min = 16;\r\n\r\n let percentage = (props.temperature == null) ? NaN : ((props.temperature - min) / (max - min));\r\n\r\n if (percentage > 1) percentage = 1;\r\n if (percentage < 0) percentage = 0;\r\n\r\n if (!Number.isFinite(percentage)) percentage = NaN;\r\n\r\n return (\r\n \r\n \r\n {props.showIndicator && (\r\n \r\n )}\r\n {(!Number.isNaN(percentage)) && props.showIndicator && (\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n {props.showIndicator && (\r\n <>\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nconst Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nconst StyledText = styled.span<{ fontSize? }>(\r\n ({ fontSize = '16px' }) => `\r\n font-size: ${fontSize};\r\n font-weight: bold;\r\n color: ${colors.Grey400};\r\n white-space: nowrap;\r\n text-align: center;\r\n`,\r\n);\r\n\r\nconst Wrapper = styled.div`\r\n text-align: center;\r\n`;\r\n\r\nconst Text = styled.p<{ isBold? }>(\r\n ({ isBold }) => `\r\n margin-bottom: ${isBold ? 0 : '1em'};\r\n margin-top: ${isBold ? '1em' : 0};\r\n color: ${isBold ? colors.Grey300 : colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n `,\r\n);\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const Row = styled.div`\r\n align-items: center;\r\n display: flex;\r\n flex-direction: row;\r\n`;\r\n\r\nexport const Text = styled.p<{ isBold? }>(\r\n ({ isBold }) => `\r\n margin-top: 1em;\r\n margin-bottom: 1em;\r\n color: ${colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n`,\r\n);\r\n","import { toast } from 'react-toastify';\r\n\r\nimport EcoModeIcon from 'assets/img/icons/eco.svg';\r\nimport { Loader, RadioButton } from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from 'providers';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport {\r\n Row,\r\n Text,\r\n} from './styles';\r\nimport i18n from '~/i18n';\r\n\r\nconst t = i18n.t.bind(i18n);\r\n\r\nconst ecoModeCfgs: { [k: string]: string } = {\r\n '0_NO_CONTROL': t('desabilitado'),\r\n '1_CONTROL': t('modoEco'),\r\n '2_SOB_DEMANDA': t('modoSobDemanda'),\r\n '3_BACKUP': t('modoBackup'),\r\n '4_BLOCKED': t('modoBloqueio'),\r\n '5_BACKUP_CONTROL': t('modoBackupEco'),\r\n '6_BACKUP_CONTROL_V2': t('modoEco2'),\r\n '7_FORCED': t('modoForcado'),\r\n};\r\n\r\nexport const DutAutControl = (props: {\r\n DUT_ID: string,\r\n telemetry: {\r\n State: null|string,\r\n Mode: null|string,\r\n ecoModeActing: null|boolean,\r\n // progState: string,\r\n // Temperature: number,\r\n // status: string,\r\n },\r\n ecoModeCfg: '0_NO_CONTROL'|'1_CONTROL'|'2_SOB_DEMANDA'|'3_BACKUP'|'4_BLOCKED'|'5_BACKUP_CONTROL'|'6_BACKUP_CONTROL_V2'|'7_FORCED'|'8_ECO_2'|null,\r\n}): JSX.Element => {\r\n const { DUT_ID, telemetry, ecoModeCfg } = props;\r\n const [state, render, setState] = useStateVar({\r\n transmittingCommand: false,\r\n safeWaitMode: false,\r\n safeWaitRelay: false,\r\n });\r\n\r\n async function sendDutMode(newMode: 'manual'|'auto') {\r\n if (state.safeWaitMode) return;\r\n state.safeWaitMode = true;\r\n setTimeout(() => {\r\n // @ts-ignore\r\n delete state.safeWaitMode;\r\n }, 2500);\r\n try {\r\n const data = {\r\n dut_id: DUT_ID,\r\n mode: newMode, // 'manual', 'auto'\r\n };\r\n setState({ transmittingCommand: true });\r\n const newState = await apiCall('/dut/set-dut-aut-operation', data);\r\n // onStateUpdate(newState);\r\n toast.success(t('sucessoEnviar'));\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n setState({ transmittingCommand: false });\r\n }\r\n\r\n async function emmitDutCommand(CMD_TYPE: 'AC_OFF'|'AC_COOL'|'AC_FAN') {\r\n if (state.safeWaitRelay) return;\r\n state.safeWaitRelay = true;\r\n setTimeout(() => {\r\n // @ts-ignore\r\n delete state.safeWaitRelay;\r\n }, 2500);\r\n try {\r\n setState({ transmittingCommand: true });\r\n const result = await apiCall('/send-dut-aut-command', {\r\n devId: DUT_ID,\r\n CMD_TYPE,\r\n });\r\n toast.success(t('sucessoTransmitido'));\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n setState({ transmittingCommand: false });\r\n }\r\n\r\n const manualCommandsEnabled = (telemetry.Mode === 'Manual');\r\n\r\n return (\r\n
\r\n \r\n {t('automacao')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('statusAutomacao')}\r\n \r\n \r\n
\r\n emmitDutCommand('AC_FAN')) : null}\r\n />\r\n {/*     \r\n */}\r\n
\r\n\r\n
\r\n emmitDutCommand('AC_COOL')) : null}\r\n />\r\n {/*     \r\n */}\r\n
\r\n\r\n
\r\n emmitDutCommand('AC_OFF')) : null}\r\n />\r\n {/*     \r\n */}\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n {`${t('modoEco')}:`}\r\n  \r\n \r\n {ecoModeCfg ? (ecoModeCfgs[ecoModeCfg] || ecoModeCfg || `(${t('nenhuma')})`) : t('desabilitado')}\r\n \r\n {(telemetry.ecoModeActing)\r\n && (\r\n \r\n )}\r\n
\r\n\r\n {state.transmittingCommand && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n );\r\n};\r\n","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport { Loader, StatusBox } from 'components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from 'helpers/cachedStorage';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocket, WSConn } from 'helpers/wsConnection';\r\nimport { TermometerIcon } from 'icons';\r\nimport { DevLayout } from 'pages/Analysis/DEVs/DevLayout';\r\nimport { DevFullInfo } from 'store';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport { DutAutControl } from './DutAutControl';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport const DutAutRealTime = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ devId: string }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n };\r\n state.isLoading = !state.devInfo;\r\n return state;\r\n });\r\n\r\n async function getDevInfo() {\r\n if (!state.devInfo) {\r\n try {\r\n state.devInfo = await getCachedDevInfo(routeParams.devId, {});\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n useEffect(() => {\r\n getDevInfo();\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaTempoReal')}\r\n \r\n \r\n {(state.isLoading)\r\n && (\r\n
\r\n {' '}\r\n \r\n {' '}\r\n
\r\n )}\r\n {(state.devInfo && !state.isLoading)\r\n && }\r\n \r\n );\r\n};\r\n\r\nexport function DutAutRealTimeContents(props: { devInfo: DevFullInfo }): JSX.Element {\r\n const { t } = useTranslation();\r\n const { devInfo } = props;\r\n const [state, render, setState] = useStateVar({\r\n TUSEMIN: null as null|number,\r\n ecoModeCfg: null as null|'0_NO_CONTROL'|'1_CONTROL'|'2_SOB_DEMANDA'|'3_BACKUP'|'4_BLOCKED'|'5_BACKUP_CONTROL'|'6_BACKUP_CONTROL_V2'|'7_FORCED'|'8_ECO_2',\r\n status: 'OFFLINE',\r\n telemetryDutAut: {\r\n State: null as null|string,\r\n Mode: null as null|string,\r\n status: 'OFFLINE',\r\n progState: null as null|string,\r\n ecoModeActing: null as null|boolean,\r\n },\r\n telemetryDut: {\r\n Temperature: null as null|number,\r\n status: 'OFFLINE',\r\n },\r\n });\r\n\r\n useEffect(() => {\r\n state.TUSEMIN = (devInfo.dut || null) && devInfo.dut!.TUSEMIN;\r\n state.ecoModeCfg = (devInfo.dut_aut && devInfo.dut_aut.CTRLOPER) || null;\r\n render();\r\n }, [devInfo]);\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n function onWsOpen(wsConn: WSConn) {\r\n wsConn.send({ type: 'dutSubscribeRealTime', data: { DUT_ID: devInfo.DEV_ID } });\r\n }\r\n function onWsMessage(response: { type: string, data: any }) {\r\n if (response && response.type === 'dutTelemetry' && response.data.status && response.data.dev_id === devInfo.DEV_ID) {\r\n state.status = state.telemetryDut.status = response.data.status;\r\n state.telemetryDut.Temperature = response.data.Temperature;\r\n render();\r\n }\r\n if (response && response.type === 'dutAutTelemetry' && response.data.status && response.data.dev_id === devInfo.DEV_ID) {\r\n state.status = state.telemetryDutAut.status = response.data.status;\r\n state.telemetryDutAut.Mode = response.data.Mode;\r\n state.telemetryDutAut.State = response.data.State;\r\n state.telemetryDutAut.progState = response.data.progState;\r\n state.telemetryDutAut.ecoModeActing = response.data.ecoModeActing;\r\n render();\r\n }\r\n }\r\n function beforeWsClose(wsConn: WSConn) {\r\n wsConn.send({ type: 'dutUnsubscribeRealTime' });\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n {state.status}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {t('limiteTemperatura')}\r\n {' '}\r\n {(state.TUSEMIN != null) ? `${formatNumberWithFractionDigits(state.TUSEMIN)} °C` : t('semInformacaoTemperatura')}\r\n \r\n
\r\n \r\n \r\n \r\n {' '}\r\n {t('temperaturaAmbiente')}\r\n \r\n
\r\n {(state.telemetryDut.Temperature != null) ? `${formatNumberWithFractionDigits(state.telemetryDut.Temperature)}°C` : '-'}\r\n
\r\n
\r\n
 
\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\nconst Text = styled.p<{ isBold?: boolean }>(\r\n ({ isBold }) => `\r\n margin-top: 1em;\r\n margin-bottom: 1em;\r\n color: ${colors.Grey400};\r\n font-weight: ${isBold ? 'bold' : 'normal'};\r\n`,\r\n);\r\nconst StyledText = styled.span<{ fontSize?: string }>(\r\n ({ fontSize = '16px' }) => `\r\n font-size: ${fontSize};\r\n font-weight: bold;\r\n color: ${colors.Grey400};\r\n white-space: nowrap;\r\n text-align: center;\r\n`,\r\n);\r\n\r\nconst Wrapper = styled.div`\r\n text-align: center;\r\n`;\r\n\r\n/*\r\n todayEvents: [] as {\r\n start: number\r\n end: number\r\n state: \"allow\" | \"forbid\" | \"onlyfan\"\r\n }[],\r\n\r\n async function getDutProg () {\r\n try {\r\n // setState({ isLoading: true });\r\n const { dayEvents: todayEvents, indexNow } = await api['/dut/get-programming-as-events']({ dutId: routeParams.devId, todayEvents: true });\r\n // const now = Date.now();\r\n state.todayEvents = todayEvents.map((item) => {\r\n return {\r\n // start: (item.start_m - indexNow) * 60 * 1000 + now,\r\n // end: (item.start_m - indexNow + item.duration_m) * 60 * 1000 + now,\r\n start: item.start_m,\r\n end: (item.start_m + item.duration_m),\r\n state: item.state,\r\n };\r\n });\r\n } catch (err) {\r\n console.log(err);\r\n // toast.warn('Não existem programações ativas')\r\n toast.error('Houve erro')\r\n }\r\n // setState({ isLoading: false });\r\n }\r\n\r\n function getProgState (devTimestamp: string): \"allow\" | \"forbid\" | \"onlyfan\" {\r\n if (!devTimestamp) return null;\r\n // const nowShifted = new Date(Date.now() - 3 * 60 * 60 * 1000);\r\n const nowShifted = new Date(devTimestamp + 'Z');\r\n const index = nowShifted.getUTCHours() * 60 + nowShifted.getUTCMinutes();\r\n for (const item of state.todayEvents) {\r\n if ((index >= item.start) && (index < item.end)) {\r\n return item.state;\r\n }\r\n }\r\n return null;\r\n }\r\n*/\r\n","export default __webpack_public_path__ + \"static/media/power_grey.44dab01c.svg\";","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport { Loader } from '~/components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { useWebSocket } from '~/helpers/wsConnection';\r\nimport {\r\n HumidityIcon,\r\n TermometerIcon,\r\n CO2IconV2,\r\n EvapReturnIcon,\r\n EvapInsufIcon,\r\n} from '~/icons';\r\nimport { DevLayout } from '~/pages/Analysis/DEVs/DevLayout';\r\nimport {\r\n ControlButton,\r\n ControlButtonIcon,\r\n SelectContainer,\r\n} from './styles';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport img_mode_cool from '~/assets/img/cool_ico/mode_cool.svg';\r\nimport img_mode_fan from '~/assets/img/cool_ico/mode_fan.svg';\r\nimport img_power from '~/assets/img/cool_ico/power.svg';\r\nimport img_power_grey from '~/assets/img/cool_ico/power_grey.svg';\r\nimport { t } from 'i18next';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport const EnvironmentRealTime = (): JSX.Element => {\r\n const routeParams = useParams<{ devId }>();\r\n const [, render] = useStateVar({});\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaTempoReal')}\r\n \r\n \r\n {/* @ts-ignore */}\r\n \r\n \r\n );\r\n};\r\n\r\nexport function identifyDutIrCommands(dutIrCmds) {\r\n return dutIrCmds.map((item) => {\r\n const desc = (item.CMD_DESC || '').toUpperCase();\r\n const t1 = (item.TEMPER == null) ? null : String(item.TEMPER);\r\n const t2 = (desc.match(/(\\d+)/g) || []).join(';') || null;\r\n const T = (t1 === t2) ? t1 : [t1, t2].filter((x) => x).join(';');\r\n const ehDesl = !!((item.CMD_TYPE === 'AC_OFF') || desc.includes('DESL') || desc.includes('OFF'));\r\n const ehVent = !!((item.CMD_TYPE === 'AC_FAN') || desc.includes('VENT') || desc.includes('FAN'));\r\n const ehRefr_pre = !!((item.CMD_TYPE === 'AC_COOL') || desc.includes('COOL') || desc.includes('REFR') || desc.includes('SET') || desc.match(/\\bLIG/) || desc.match(/\\bON/)) || (item.CMD_DESC && item.CMD_DESC === t2);\r\n const ehRefr = ehRefr_pre || !!(T && (!ehDesl) && (!ehVent));\r\n const M = (desc.startsWith('FAKE') ? 'FAKE' : [ehDesl && 'AC_OFF', ehVent && 'AC_FAN', ehRefr && 'AC_COOL'].filter((x) => x).join(';')) || '?';\r\n let avaliacao = '';\r\n if ((M === 'AC_OFF') || (M === 'AC_FAN')) { avaliacao = 'OK'; }\r\n else if ((M === 'AC_COOL') && T && (T.length === 2)) { avaliacao = 'OK'; }\r\n const identificado = ((avaliacao === 'OK') && `${M}${(M === 'AC_COOL') ? (`:${T}`) : ''}`) || null;\r\n // identificado = 'AC_OFF' ou 'AC_FAN' ou 'AC_COOL:21' ...\r\n return { ...item, cmdName: identificado };\r\n }) || null;\r\n}\r\n\r\nexport function EnvironmentRealTimeContents({ onDevInfoUpdate = undefined }) {\r\n const { devId: dutId } = useParams<{ devId: string }>();\r\n const [state, render, setState] = useStateVar({\r\n data: null as null | {\r\n operation_mode: number; status: string, Temperature: string | number, Temperature_1: null | number, Humidity?: null | number, eCO2?: null | number\r\n}, // { status, Temperature, Humidity, eCO2, TVOC}\r\n dutStats: null, // { max, med, min, dayIni, dayEnd }\r\n devInfo: getCachedDevInfoSync(dutId),\r\n dutIrCommands: null as null | { IR_ID: string, cmdName: string, CMD_TYPE: string }[],\r\n dutType: null as null | 'monitoring' | 'automation',\r\n timerChangeSetpoint: null as null | NodeJS.Timeout,\r\n setpoint: 23 as number,\r\n activeOperationMode: 0,\r\n activeOperationStatus: 1,\r\n floatingControlMode: null as null | {\r\n x: number\r\n y: number\r\n },\r\n floatingControlFan: null as null | {\r\n x: number\r\n y: number\r\n },\r\n floatingControlSwing: null as null | {\r\n x: number\r\n y: number\r\n },\r\n });\r\n\r\n function getDutType() {\r\n const dutInfo = state.devInfo;\r\n if (!dutInfo.dut_aut) {\r\n setState({ dutType: 'monitoring' });\r\n }\r\n if (dutInfo.dut_aut && dutInfo.dut_aut.DUTAUT_DISABLED !== 1) {\r\n const tempDefault = dutInfo.dut_aut.TSETPOINT || state.dutIrCommands?.filter((command) => {\r\n const cmdSetpoint = Number(command?.cmdName?.split(':')[1]) || null;\r\n if (cmdSetpoint != null) return command;\r\n })\r\n .map((command) => (\r\n {\r\n IR_ID: command.IR_ID,\r\n CMD_NAME: command?.cmdName,\r\n CMD_TYPE: command?.CMD_TYPE,\r\n TEMPER: Number(command?.cmdName?.split(':')[1]),\r\n }\r\n ))\r\n .find((item) => item.CMD_TYPE === 'AC_COOL')?.TEMPER;\r\n setState({ dutType: 'automation', setpoint: tempDefault || 23 });\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n Promise.resolve().then(async () => {\r\n try {\r\n const dayIni = new Date(Date.now() - (6 + new Date().getDay()) * 24 * 60 * 60 * 1000 - 3 * 60 * 60 * 1000).toISOString().substr(0, 10);\r\n const dayEnd = new Date(Date.now() - (2 + new Date().getDay()) * 24 * 60 * 60 * 1000 - 3 * 60 * 60 * 1000).toISOString().substr(0, 10);\r\n\r\n const [\r\n devInfo,\r\n dutStats,\r\n ] = await Promise.all([\r\n getCachedDevInfo(dutId, {}),\r\n apiCall('/dut/get-day-stats', {\r\n devId: dutId,\r\n dayIni,\r\n numDays: 5,\r\n }),\r\n ]);\r\n\r\n if (state.dutType !== 'monitoring') {\r\n const { list: dutIrCodes } = await apiCall('/get-dut-ircodes-list', { devId: dutId });\r\n state.dutIrCommands = identifyDutIrCommands(dutIrCodes);\r\n }\r\n getDutType();\r\n // @ts-ignore\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n\r\n state.devInfo = devInfo;\r\n // @ts-ignore\r\n state.dutStats = dutStats || {};\r\n // @ts-ignore\r\n state.dutStats.dayIni = dayIni;\r\n // @ts-ignore\r\n state.dutStats.dayEnd = dayEnd;\r\n render();\r\n } catch (err) { toast.error(t('erro')); console.error(err); getDutType(); }\r\n });\r\n }, []);\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'dutSubscribeRealTime', data: { DUT_ID: dutId } });\r\n }\r\n function onWsMessage(response) {\r\n if (response && response.type === 'dutTelemetry') {\r\n if (response.data.status !== 'ONLINE') {\r\n response.data.Temperature = '-';\r\n response.data.Temperature_1 = null;\r\n response.data.Humidity = null;\r\n response.data.eCO2 = null;\r\n response.data.TVOC = null;\r\n setState({ data: response.data });\r\n }\r\n if (response.data.status === 'ONLINE' && response.data.timestamp) {\r\n setState({ data: response.data });\r\n }\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'dutUnsubscribeRealTime' });\r\n }\r\n\r\n function getClosestSetpointCommand(setpoint) {\r\n return state.dutIrCommands?.reduce((cmd, value) => {\r\n if (value.cmdName?.includes('COOL')) {\r\n const cmdSetpoint = Number(cmd?.cmdName?.split(':')[1]) || 0;\r\n const valueSetpoint = Number(value.cmdName?.split(':')[1]) || 0;\r\n if (\r\n (setpoint >= state.setpoint && valueSetpoint >= (setpoint - 1))\r\n || (setpoint <= state.setpoint && valueSetpoint <= (setpoint + 1))) {\r\n if (Math.abs(setpoint - valueSetpoint) < Math.abs(setpoint - cmdSetpoint)) return value;\r\n return cmd;\r\n }\r\n }\r\n return cmd;\r\n }, undefined as undefined | { IR_ID: string, cmdName: string });\r\n }\r\n\r\n function changeSetpoint(newSetpoint: number) {\r\n if (state.timerChangeSetpoint) clearTimeout(state.timerChangeSetpoint);\r\n if (state.setpoint) {\r\n const newSetpointCommand = getClosestSetpointCommand(newSetpoint);\r\n if (newSetpointCommand) {\r\n state.setpoint = Number(newSetpointCommand.cmdName.split(':')[1]);\r\n state.timerChangeSetpoint = setTimeout(() => sendSetpoint(newSetpointCommand), 1500);\r\n render();\r\n } else {\r\n state.timerChangeSetpoint = setTimeout(() => toast.info(t('comandoNaoEncontrado')), 1500);\r\n }\r\n }\r\n }\r\n\r\n async function sendSetpoint(command) {\r\n try {\r\n await apiCall('/send-dut-aut-command', { devId: dutId, IR_ID: command.IR_ID });\r\n toast.success(t('sucessoTemperaturaEnviada'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroEstabelecerSetpoint'));\r\n }\r\n }\r\n\r\n const onClickMode = (event) => {\r\n if (state.floatingControlMode) {\r\n state.floatingControlMode = null;\r\n } else {\r\n let element = event.target;\r\n while (element.tagName.toLowerCase() !== 'div') {\r\n if (!(element.parentElement && element.parentElement.tagName)) return;\r\n\r\n element = element.parentElement;\r\n }\r\n const rect = element.getBoundingClientRect();\r\n state.floatingControlMode = {\r\n y: rect.y + 1 * 71, // event.target.offsetTop, // event.clientY\r\n x: rect.x, // event.target.offsetLeft, // event.clientX\r\n };\r\n state.floatingControlSwing = null;\r\n state.floatingControlFan = null;\r\n }\r\n render();\r\n };\r\n\r\n async function setOperationMode(operationMode: number) {\r\n try {\r\n if (operationMode === 1) {\r\n const command = state.dutIrCommands?.find((cmd) => cmd.cmdName === 'AC_FAN');\r\n if (command) {\r\n await apiCall('/send-dut-aut-command', { devId: dutId, IR_ID: command.IR_ID });\r\n state.activeOperationMode = operationMode;\r\n toast.success(t('sucessoModoOperacaoEnviado'));\r\n } else {\r\n toast.info(t('comandoNaoEncontrado'));\r\n }\r\n }\r\n if (operationMode === 0) {\r\n const command = getClosestSetpointCommand(state.setpoint);\r\n if (command) {\r\n await apiCall('/send-dut-aut-command', { devId: dutId, IR_ID: command.IR_ID });\r\n state.setpoint = Number(command.cmdName?.split(':')[1]);\r\n state.activeOperationMode = operationMode;\r\n toast.success(t('sucessoModoOperacaoEnviado'));\r\n } else {\r\n toast.info(t('comandoNaoEncontrado'));\r\n }\r\n }\r\n setState({ floatingControlMode: null, floatingControlFan: null, floatingControlSwing: null });\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n async function setOperationStatus(operationStatus: number) {\r\n try {\r\n if (operationStatus === 0) {\r\n const command = state.dutIrCommands?.find((cmd) => cmd.cmdName === 'AC_OFF');\r\n if (command) {\r\n await apiCall('/send-dut-aut-command', { devId: dutId, IR_ID: command.IR_ID });\r\n state.activeOperationStatus = operationStatus;\r\n toast.success(t('sucessoComandoEnviadoDesligar'));\r\n } else {\r\n toast.info(t('comandoNaoEncontrado'));\r\n }\r\n }\r\n if (operationStatus === 1) {\r\n const command = getClosestSetpointCommand(state.setpoint);\r\n if (command) {\r\n await apiCall('/send-dut-aut-command', { devId: dutId, IR_ID: command.IR_ID });\r\n state.setpoint = Number(command.cmdName?.split(':')[1]);\r\n state.activeOperationStatus = operationStatus;\r\n toast.success(t('sucessoComandoEnviadoLigar'));\r\n } else {\r\n toast.info(t('comandoNaoEncontrado'));\r\n }\r\n }\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n function getOperationModeIcon(operationMode: number) {\r\n // operationModes: {\"0\":\"COOL\",\"1\":\"FAN\"},\r\n switch (operationMode) {\r\n case 0: return img_mode_cool;\r\n case 1: return img_mode_fan;\r\n }\r\n }\r\n\r\n function onOffBackgroundColor(operationStatus: number) {\r\n // operationStatuses: {\"1\":\"on\",\"2\":\"off\"},\r\n if (state.devInfo.status !== 'ONLINE') return '#bbbbbb'; // OFF\r\n switch (operationStatus) {\r\n case 1: return '#363bc4'; // ON\r\n case 2: return '#bbbbbb'; // OFF\r\n default: return '#bbbbbb';\r\n }\r\n }\r\n\r\n function getOperationStatusIcon(operationStatus: number) {\r\n // operationStatuses: {\"1\":\"on\",\"2\":\"off\"},\r\n if (state.devInfo.status !== 'ONLINE') return img_power_grey;\r\n switch (operationStatus) {\r\n case 1: return img_power;\r\n case 0: return img_power_grey;\r\n default: return img_power_grey;\r\n }\r\n }\r\n\r\n function getDialColor({ temp, co2, hum }: { temp?: any, co2?: any, hum?: any }) {\r\n if (state.devInfo.status !== 'ONLINE') return colors.LightGrey_v3;\r\n if (temp != null && Number.isFinite(Number(temp))) {\r\n return (\r\n state.devInfo.dut.TUSEMAX && temp > state.devInfo.dut.TUSEMAX && colors.Red\r\n || state.devInfo.dut.TUSEMIN && temp < state.devInfo.dut.TUSEMIN && colors.BlueSecondary_v3\r\n || colors.GreenLight\r\n );\r\n }\r\n if (co2 != null && Number.isFinite(Number(co2)) && state.devInfo.dut.CO2MAX && co2 > state.devInfo.dut.CO2MAX) return colors.LightOrange;\r\n if (hum != null && Number.isFinite(Number(hum))) {\r\n const humidityMin = state.devInfo?.dut?.HUMIMIN ?? 30;\r\n const humidityMax = state.devInfo?.dut?.HUMIMAX ?? 70;\r\n const humAux = Number(hum);\r\n\r\n if (humAux > humidityMax) {\r\n return colors.Red;\r\n }\r\n\r\n if (humAux < humidityMin) {\r\n return '#2D81FF';\r\n }\r\n }\r\n return colors.GreenLight;\r\n }\r\n\r\n function labelTempRetorno() {\r\n if (state.devInfo?.dut.APPLICATION === 'fancoil') {\r\n return t('saidaAgua');\r\n }\r\n return t('retorno');\r\n }\r\n\r\n function labelTempInsuf() {\r\n if (state.devInfo?.dut.APPLICATION === 'fancoil') {\r\n return t('entradaAgua');\r\n }\r\n return t('insuflamento');\r\n }\r\n\r\n const tempOrDutDuo = state.data?.Temperature_1 || state.devInfo?.isDutDuo;\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n {(!state.data)\r\n ? \r\n : (\r\n <>\r\n {state.data && state.data.operation_mode !== 5 && (\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n {state.data.Temperature !== undefined && (\r\n
\r\n
\r\n {(!state.data.Temperature_1 && !state.devInfo?.isDutDuo) && (\r\n
\r\n \r\n {t('agora')}\r\n
\r\n ) }\r\n {tempOrDutDuo && (\r\n
\r\n {\r\n labelTempRetorno() === t('retorno') && \r\n }\r\n {labelTempRetorno()}\r\n
\r\n )}\r\n
\r\n \r\n {state.data.Temperature !== undefined && state.data.Temperature !== null\r\n ? formatNumberWithFractionDigits(state.data.Temperature)\r\n : '-'}\r\n \r\n \r\n  °C\r\n \r\n
\r\n
\r\n
\r\n )}\r\n {tempOrDutDuo && (\r\n
\r\n
\r\n
\r\n {\r\n labelTempInsuf() === t('insuflamento') && \r\n }\r\n {labelTempInsuf()}\r\n
\r\n
\r\n \r\n {state.data.Temperature_1 !== undefined && state.data.Temperature_1 !== null ? formatNumberWithFractionDigits(state.data.Temperature_1) : '-'}\r\n \r\n \r\n  °C\r\n \r\n
\r\n
\r\n
\r\n )}\r\n\r\n {state.data.eCO2 && (\r\n
\r\n
\r\n
\r\n \r\n {t('nivelCo')}\r\n 2\r\n
\r\n
\r\n {formatNumberWithFractionDigits(state.data.eCO2)}\r\n \r\n  ppm\r\n \r\n
\r\n
\r\n
\r\n )}\r\n\r\n {state.data.Humidity && (\r\n
\r\n
\r\n \r\n {t('umidade')}\r\n
\r\n
\r\n {formatNumberWithFractionDigits(state.data.Humidity)}\r\n %\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n\r\n
\r\n {state.devInfo.dut && state.data.Temperature && (\r\n
\r\n
{t('limitesTemperatura')}
\r\n \r\n {t('minMinimo')}\r\n {` ${state.devInfo.dut.TUSEMIN ? formatNumberWithFractionDigits(state.devInfo.dut.TUSEMIN) : '-'}`}\r\n °C\r\n      \r\n {t('maxMaximo')}\r\n {` ${state.devInfo.dut.TUSEMAX ? formatNumberWithFractionDigits(state.devInfo.dut.TUSEMAX) : '-'}`}\r\n °C\r\n \r\n
\r\n )}\r\n {state.devInfo.dut && state.dutType === 'automation' && (\r\n
\r\n
\r\n {t('setpoint')}\r\n
\r\n \r\n {`${formatNumberWithFractionDigits(state.setpoint)}`}\r\n °C\r\n \r\n
\r\n )}\r\n {state.devInfo.dut && state.data.eCO2 && (\r\n
\r\n
\r\n {t('limitesDeCo')}\r\n 2\r\n
\r\n \r\n {t('maxMaximo')}\r\n {` ${state.devInfo.dut.CO2MAX ? formatNumberWithFractionDigits(state.devInfo.dut.CO2MAX) : '-'}`}\r\n ppm\r\n \r\n
\r\n )}\r\n {state.devInfo.dut && state.data.Humidity && (\r\n
\r\n
{t('limitesUmidade')}
\r\n \r\n {t('minMinimo')}\r\n {` ${state.devInfo?.dut?.HUMIMIN ?? 60}`}\r\n %\r\n      \r\n {t('maxMaximo')}\r\n {` ${state.devInfo?.dut?.HUMIMAX ?? 100}`}\r\n %\r\n \r\n
\r\n )}\r\n
\r\n\r\n {state.devInfo.status === 'ONLINE' && state.data.Temperature === null && (\r\n {t('funcoesDispositivoNaoDisponiveis')}\r\n )}\r\n\r\n {state.dutType === 'automation' && (\r\n
\r\n {state.devInfo.status === 'ONLINE'\r\n ? (\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {state.floatingControlMode && state.devInfo.status === 'ONLINE' && (\r\n \r\n
\r\n setOperationMode(0)}>\r\n \r\n \r\n
\r\n
\r\n setOperationMode(1)}>\r\n \r\n \r\n
\r\n
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n state.devInfo.status === 'ONLINE' && setOperationStatus((state.activeOperationStatus === 1) ? 0 : 1)}\r\n >\r\n \"on_off\"\r\n \r\n
\r\n\r\n {/*
\r\n \r\n
\r\n state.setpoint && state.devInfo.status === 'ONLINE' && changeSetpoint(state.setpoint + 1)}>\r\n \r\n \r\n state.setpoint && state.devInfo.status === 'ONLINE' && changeSetpoint(state.setpoint - 1)}>\r\n \r\n \r\n
\r\n
\r\n
{t('temperatura')}
\r\n
{`${state.setpoint?.toString().replace('.', ',') || '-'} °C`}
\r\n
\r\n \r\n
*/}\r\n
\r\n ) : (\r\n {t('funcoesNaoDisponiveisStatusDispositivo')}\r\n )}\r\n
\r\n )}\r\n
\r\n \r\n \r\n \r\n )}\r\n { state.data.operation_mode === 5 && (\r\n <>\r\n { state.data.Temperature && (\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n {state.data.Temperature !== undefined && (\r\n
\r\n
\r\n {state.data.Temperature_1 ? (\r\n
\r\n \r\n {t('retorno')}\r\n
\r\n ) : (\r\n
\r\n \r\n {t('temperatura')}\r\n
\r\n )}\r\n
\r\n {formatNumberWithFractionDigits(state.data.Temperature)}\r\n \r\n  °C\r\n \r\n
\r\n
\r\n
\r\n )}\r\n {state.data.Temperature_1 && (\r\n
\r\n
\r\n
\r\n \r\n {t('insuflamento')}\r\n
\r\n
\r\n {formatNumberWithFractionDigits(state.data.Temperature_1)}\r\n \r\n  °C\r\n \r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n\r\n
\r\n {state.devInfo.dut && state.data.Temperature && (\r\n
\r\n
{t('limitesTemperatura')}
\r\n \r\n {t('minMinimo')}\r\n {` ${state.devInfo.dut.TUSEMIN ? formatNumberWithFractionDigits(state.devInfo.dut.TUSEMIN) : '-'}`}\r\n °C\r\n      \r\n {t('maxMaximo')}\r\n {` ${state.devInfo.dut.TUSEMAX ? formatNumberWithFractionDigits(state.devInfo.dut.TUSEMAX) : '-'}`}\r\n °C\r\n \r\n
\r\n )}\r\n
\r\n\r\n {state.devInfo.status === 'ONLINE' && state.data.Temperature === null && (\r\n {t('funcoesDispositivoNaoDisponiveis')}\r\n )}\r\n
\r\n \r\n \r\n \r\n ) }\r\n {\r\n state.data.Humidity && (\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n {state.data.Humidity && (\r\n
\r\n
\r\n \r\n {t('umidade')}\r\n
\r\n
\r\n {formatNumberWithFractionDigits(state.data.Humidity)}\r\n %\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n\r\n
\r\n {state.devInfo.dut && state.data.Humidity && (\r\n
\r\n
{t('limitesUmidade')}
\r\n \r\n {t('minMinimo')}\r\n {` ${state.devInfo?.dut?.HUMIMIN ?? 30}`}\r\n %\r\n      \r\n {t('maxMaximo')}\r\n {` ${state.devInfo?.dut?.HUMIMAX ?? 70}`}\r\n %\r\n \r\n
\r\n )}\r\n
\r\n\r\n {state.devInfo.status === 'ONLINE' && state.data.Temperature === null && (\r\n {t('funcoesDispositivoNaoDisponiveis')}\r\n )}\r\n
\r\n \r\n \r\n \r\n )\r\n }\r\n { state.data.eCO2 && (\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n {state.data.eCO2 && (\r\n
\r\n
\r\n
\r\n \r\n {t('nivelCo')}\r\n 2\r\n
\r\n
\r\n {formatNumberWithFractionDigits(state.data.eCO2)}\r\n \r\n  ppm\r\n \r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n\r\n
\r\n {state.devInfo.dut && state.data.eCO2 && (\r\n
\r\n
\r\n {t('limitesDeCo')}\r\n 2\r\n
\r\n \r\n {t('maxMaximo')}\r\n {` ${state.devInfo.dut.CO2MAX ? formatNumberWithFractionDigits(state.devInfo.dut.CO2MAX) : '-'}`}\r\n ppm\r\n \r\n
\r\n )}\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n ) }\r\n \r\n ) }\r\n {/* @ts-ignore */}\r\n {/* {(!state.data.eCO2 || (state.data.eCO2 && state.data.Temperature)) */}\r\n {false\r\n && (\r\n \r\n \r\n {/* \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
Setpoint
\r\n
\r\n
\r\n state.setpoint && state.devInfo.status === 'ONLINE' && changeSetpoint(state.setpoint + 1)}\r\n />\r\n state.setpoint && state.devInfo.status === 'ONLINE' && changeSetpoint(state.setpoint - 1)}\r\n />\r\n
\r\n {state.setpoint}\r\n  °C\r\n
\r\n
Agora
\r\n
\r\n {(state.data.Temperature == null) ? '-' : state.data.Temperature.toString().replace('.', ',')}\r\n °C\r\n
\r\n
\r\n
\r\n
\r\n\r\n {state.devInfo.status === 'ONLINE'\r\n ? (\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {state.floatingControlMode && state.devInfo.status === 'ONLINE' && (\r\n \r\n
\r\n setOperationMode(0)}>\r\n \r\n \r\n
\r\n
\r\n setOperationMode(1)}>\r\n \r\n \r\n
\r\n
\r\n )}\r\n
\r\n
\r\n\r\n
\r\n state.devInfo.status === 'ONLINE' && setOperationStatus((state.activeOperationStatus === 1) ? 0 : 1)}\r\n >\r\n \"on_off\"\r\n \r\n
\r\n
\r\n ) : (\r\n Funções não disponíveis devido ao status atual do dispositivo\r\n )}\r\n
\r\n */}\r\n \r\n \r\n )}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nfunction Dial(props: { temperature: number | null, color: string | null, showIndicator: boolean }) {\r\n const min = 16;\r\n const max = 32;\r\n let percentage = (props.temperature == null) ? NaN : ((props.temperature - min) / (max - min));\r\n if (percentage > 1) percentage = 1;\r\n if (percentage < 0) percentage = 0;\r\n if (!Number.isFinite(percentage)) percentage = NaN;\r\n\r\n function onSvgClick(event) {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'svg') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n console.log('DBG013', rect, event);\r\n }\r\n\r\n return (\r\n \r\n \r\n {props.showIndicator && (\r\n \r\n )}\r\n {(!Number.isNaN(percentage)) && props.showIndicator && (\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n {props.showIndicator && (\r\n <>\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nconst BoxWrapper = styled.div`\r\n display: flex;\r\n`;\r\n\r\nconst Wrapper = styled.div`\r\n width: 100%;\r\n text-align: center;\r\n`;\r\n\r\nconst Card = styled.div`\r\n border-radius: 16px;\r\n padding: 32px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n","import { useEffect, useState } from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport { apiCall } from '~/providers';\r\nimport { Card } from '~/components';\r\nimport { ToggleSwitchMini } from '~/components/ToggleSwitch';\r\nimport { LabelData, LabelInfo, LabelSwitch } from '~/components/ModalWindow/styles';\r\nimport { useWebSocket } from '~/helpers/wsConnection';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, Line, LineChart, Tooltip,\r\n} from 'recharts';\r\nimport { colors } from '~/styles/colors';\r\nimport {\r\n Text, Line as LineLegend, ColoredLine, WaterTooltip, Timer, Calendar,\r\n} from './styles';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nexport const DmaRealTime = (props: {dmaId: string}): JSX.Element => {\r\n const { dmaId } = props;\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaTempoReal')}\r\n \r\n {/* @ts-ignore */}\r\n \r\n \r\n );\r\n};\r\n\r\nconst getCurrDate = () => {\r\n const today = new Date();\r\n const yyyy = today.getFullYear();\r\n const mm = today.getMonth() + 1; // Months start at 0!\r\n const dd = today.getDate();\r\n\r\n return `${dd < 10 ? `0${dd}` : dd}/${mm < 10 ? `0${mm}` : mm}/${yyyy}`;\r\n};\r\n\r\nexport function DmaRealTimeContents({ dmaId }) {\r\n const { t } = useTranslation();\r\n const [shouldNotDisplayLiters, setShouldNotDisplayLiters] = useState(false);\r\n const [state, render, setState] = useStateVar({\r\n telemetries: [] as {pulses: number| null, status: string}[], // { status }[]\r\n graphData: [] as {x: string, value: number | null }[],\r\n graphDataCubic: [] as {x: string, value: number | null }[],\r\n lastConsumption: 0 as number,\r\n lastConsumptionCube: 0 as number,\r\n devInfo: {} as any,\r\n });\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n const data = await apiCall('/dma/get-dma-info', { dmaId });\r\n setState({ devInfo: data });\r\n if (!state.devInfo.HYDROMETER_MODEL) {\r\n toast.error(t('erroHidrometroCadastrado'));\r\n }\r\n } catch (err) {\r\n toast.error(t('erroInformacoesDispositivos'));\r\n }\r\n })();\r\n }, []);\r\n\r\n const changeSamplingPeriod = async (interval: number) => {\r\n try {\r\n await apiCall('/dma/set-sampling-period', { dmaId, samplingPeriod: interval });\r\n } catch (err) {\r\n toast.error(t('erroTelemetrias'));\r\n }\r\n };\r\n\r\n const reformatDate = (dateStr) => {\r\n const dArr = dateStr.split('-');\r\n return `${dArr[2]}/${dArr[1]}/${dArr[0].substring(2)}`;\r\n };\r\n\r\n const getLitersPerPulse = () => {\r\n if (!state.devInfo.HYDROMETER_MODEL) {\r\n toast.error(t('erroHidrometroCadastrado'));\r\n return null;\r\n }\r\n\r\n return Number(state.devInfo.HYDROMETER_MODEL.substring(\r\n state.devInfo.HYDROMETER_MODEL.indexOf('(') + 1,\r\n state.devInfo.HYDROMETER_MODEL.lastIndexOf(')'),\r\n ).split(' ')[0]);\r\n };\r\n\r\n const updateGraphData = (response, date, litersPerPulse) => {\r\n if (response.data.status !== 'ONLINE') {\r\n state.graphData.push({ x: response.data.timestamp, date, value: null });\r\n state.graphDataCubic.push({ x: response.data.timestamp, date, value: 0.0000 });\r\n } else if (state.telemetries.length === 0) {\r\n state.graphData.push({ x: response.data.timestamp, date, value: 0 });\r\n state.graphDataCubic.push({ x: response.data.timestamp, date, value: 0.0000 });\r\n } else if (!response.data.pulses || !state.telemetries[state.telemetries.length - 1].pulses) {\r\n state.graphData.push({ x: response.data.timestamp, date, value: 0 });\r\n state.graphDataCubic.push({ x: response.data.timestamp, date, value: 0.0000 });\r\n } else {\r\n const currValue = state.lastConsumption + litersPerPulse * (Number(response.data.pulses) - Number(state.telemetries[state.telemetries.length - 1].pulses));\r\n\r\n if (currValue < 0) {\r\n state.lastConsumption = 0;\r\n state.lastConsumptionCube = 0;\r\n state.graphData.push({ x: response.data.timestamp, date, value: 0 });\r\n state.graphDataCubic.push({ x: response.data.timestamp, date, value: 0 });\r\n } else {\r\n state.graphData.push({ x: response.data.timestamp, date, value: currValue });\r\n state.graphDataCubic.push({ x: response.data.timestamp, date, value: Number((currValue / 1000).toFixed(4)) });\r\n state.lastConsumption = currValue;\r\n state.lastConsumptionCube = Number((currValue / 1000).toFixed(4));\r\n }\r\n }\r\n\r\n const dataCopy = state.graphData;\r\n setState({ graphData: [] });\r\n setState({ graphData: dataCopy });\r\n const dataCopyCubic = state.graphDataCubic;\r\n setState({ graphDataCubic: [] });\r\n setState({ graphDataCubic: dataCopyCubic });\r\n\r\n state.telemetries.push(response.data);\r\n };\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'dmaSubscribeRealTime', data: { DMA_ID: dmaId } });\r\n changeSamplingPeriod(10);\r\n }\r\n\r\n function onWsMessage(response) {\r\n if (response && response.type === 'dmaTelemetry') {\r\n if (!response.data.pulses || response.data.saved_data) return;\r\n\r\n const date = reformatDate(response.data.timestamp.split('T')[0]);\r\n response.data.timestamp = response.data.timestamp.split('T')[1];\r\n\r\n response.data.pulses = Number(String(response.data.pulses));\r\n\r\n const litersPerPulse = getLitersPerPulse();\r\n if (litersPerPulse === null) return;\r\n\r\n updateGraphData(response, date, litersPerPulse);\r\n render();\r\n }\r\n }\r\n\r\n function beforeWsClose(wsConn) {\r\n changeSamplingPeriod(900);\r\n wsConn.send({ type: 'dmaUnsubscribeRealTime' });\r\n }\r\n\r\n const CustomizedToolTip = ({ payload }: any) => {\r\n if (payload != null) {\r\n return (\r\n \r\n {t('leitura')}\r\n

\r\n \r\n {payload && payload?.length > 0 ? formatNumberWithFractionDigits(payload[0].payload.value) : '-'}\r\n \r\n {shouldNotDisplayLiters ? 'm³' : 'litros'}\r\n

\r\n \r\n \r\n \r\n {payload && payload?.length > 0 ? payload[0].payload.date : '-'}\r\n \r\n  \r\n \r\n \r\n {payload && payload?.length > 0 ? payload[0].payload.x : '-'}\r\n \r\n \r\n\r\n
\r\n );\r\n }\r\n return
;\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n

{t('consumoAgua')}

\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n {t('idDoDispositivo')}\r\n \r\n {dmaId}\r\n
\r\n
\r\n \r\n {t('unidadeDeMedida')}\r\n \r\n
\r\n {t('litros')}\r\n setShouldNotDisplayLiters(!shouldNotDisplayLiters)}\r\n style={{ marginLeft: '8px', marginRight: '8px' }}\r\n />\r\n {t('metrosCubicos')}\r\n
\r\n
\r\n
\r\n
\r\n \r\n {getCurrDate()}\r\n \r\n\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n } />\r\n \r\n formatNumberWithFractionDigits(value, { minimum: 0, maximum: 2 })}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {`${t('consumoAgua')}:`}\r\n  \r\n \r\n \r\n {`${formatNumberWithFractionDigits((state.graphData.length !== 0 ? shouldNotDisplayLiters ? state.graphDataCubic[state.graphDataCubic.length - 1]?.value : state.graphData[state.graphData.length - 1]?.value : '-') || 0)} ${shouldNotDisplayLiters ? '(m³)' : '(L)'}` }\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","export default __webpack_public_path__ + \"static/media/power_1_color.fdc0efc1.svg\";","type FanIconProps = {\r\n color?: string;\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const FanOnIcon = ({\r\n color, width, height, ...props\r\n}: FanIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n\r\nexport const FanOffIcon = ({\r\n color, width, height, ...props\r\n}: FanIconProps): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n);\r\n","type ValveIconProps = {\r\n color?: string;\r\n width?: string;\r\n height?: string;\r\n}\r\n\r\nexport const ValveOpenedIcon = ({\r\n color, width, height, ...props\r\n}: ValveIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n\r\nexport const ValveClosedIcon = ({\r\n color, width, height, ...props\r\n}: ValveIconProps): JSX.Element => (\r\n \r\n \r\n \r\n\r\n);\r\n","import { CSSProperties, ReactElement, useState } from 'react';\r\nimport { DriException, DriSchedule } from './DRI_ScheduleModal';\r\nimport { Flex } from 'reflexbox';\r\nimport { Button } from 'components';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport {\r\n ExceptionSchedCard, LimitExceedTooltip, SchedCard, Size,\r\n} from './DRI_Shedule';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { TabButton } from './styles';\r\nimport { ExceptionsHeader } from './components/ExceptionsHeader';\r\n\r\nconst LIMIT_EXCEPTIONS = 6;\r\nconst LIMIT_SCHEDULES = 6;\r\n\r\ninterface DriScheduleListProps {\r\n driCfg: { application: string, protocol: string };\r\n schedules: DriSchedule[];\r\n exceptions: DriException[];\r\n onAddEdit: (sched?: DriSchedule | DriException) => void;\r\n onDelete: (sched: DriSchedule | DriException) => void;\r\n onChangeShowException: (value: boolean) => void;\r\n size?: Size;\r\n clientId?: number;\r\n loading?: boolean;\r\n hide?: {\r\n add?: boolean;\r\n edit?: boolean;\r\n delete?: boolean;\r\n }\r\n}\r\n\r\nexport const DriScheduleList = ({\r\n exceptions,\r\n schedules,\r\n driCfg,\r\n onDelete,\r\n onAddEdit,\r\n size,\r\n onChangeShowException,\r\n hide,\r\n clientId,\r\n loading,\r\n}: DriScheduleListProps): ReactElement => {\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n\r\n const [state, , setState] = useStateVar({\r\n showExceptions: false,\r\n });\r\n\r\n function verifyProfileCanManageProgramming() {\r\n return !!(profile.manageAllClients || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === clientId));\r\n }\r\n\r\n const limitExceeded = state.showExceptions ? exceptions.length >= LIMIT_EXCEPTIONS : schedules.length >= LIMIT_SCHEDULES;\r\n const hasSize = size === 'small' || size === 'fixed';\r\n\r\n const stylesTabButtonExceptions = (isActive: boolean): Partial => (\r\n isActive ? {\r\n borderBottom: 'none',\r\n backgroundColor: 'transparent',\r\n cursor: undefined,\r\n fontWeight: 'bold',\r\n } : {\r\n borderBottom: '1px solid lightgrey',\r\n backgroundColor: '#F4F4F4',\r\n cursor: 'pointer',\r\n fontWeight: 'normal',\r\n }\r\n );\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n {\r\n if (state.showExceptions) {\r\n onChangeShowException(false);\r\n setState({ showExceptions: false });\r\n }\r\n }}\r\n >\r\n {t('programacoes')}\r\n \r\n \r\n {\r\n if (!state.showExceptions) {\r\n onChangeShowException(true);\r\n setState({ showExceptions: true });\r\n }\r\n }}\r\n >\r\n {t('excecoes')}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n {`${t('total')}: ${state.showExceptions ? exceptions.length : schedules.length}`}\r\n \r\n {(!hide?.add && verifyProfileCanManageProgramming()) && (\r\n \r\n onAddEdit()}\r\n disabled={limitExceeded || loading}\r\n >\r\n {t('botaoAdicionarProgramacaoExcecao', {\r\n value: state.showExceptions\r\n ? t('excecao')\r\n : t('Programacao'),\r\n })}\r\n \r\n \r\n )}\r\n
\r\n \r\n {!state.showExceptions && schedules.map((sched) => (\r\n onAddEdit(sched)}\r\n onDelete={() => onDelete(sched)}\r\n size={size}\r\n canManageProgramming={verifyProfileCanManageProgramming()}\r\n loading={loading}\r\n hide={hide}\r\n />\r\n ))}\r\n {state.showExceptions && exceptions.length > 0 && (\r\n <>\r\n \r\n {exceptions.map((exception) => (\r\n \r\n onAddEdit(exception)}\r\n onDelete={() => onDelete(exception)}\r\n size={size}\r\n loading={loading}\r\n hide={hide}\r\n />\r\n \r\n ))}\r\n \r\n )}\r\n
\r\n \r\n );\r\n};\r\n","import { ReactElement, useState } from 'react';\r\nimport { ModalWindow } from 'components';\r\nimport { Bluebar } from '../Integrations/IntegrRealTime/styles';\r\nimport {\r\n DRISchedForm,\r\n DriSchedModeOpts,\r\n ScheduleInfo,\r\n} from './DRI_Shedule';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { getKeyByValue } from '../Integrations/IntegrRealTime/DriContents';\r\nimport { toast } from 'react-toastify';\r\nimport { ApiParams } from 'providers';\r\nimport moment from 'moment';\r\nimport { DevFullInfo } from 'store';\r\nimport { DriScheduleList } from './DRI_ScheduleList';\r\nimport {\r\n checkExceptionDate,\r\n checkTimeConflict,\r\n checkWeekDayCommon,\r\n deleteProgramming, generateDaysObject, getSchedTimesValues, insertProgramming, SelectedDays, updateProgramming,\r\n} from '~/helpers/driSchedule';\r\nimport { AxiosError } from 'axios';\r\n\r\nexport interface DriSchedule {\r\n SCHED_ID: number;\r\n DRI_ID: string;\r\n NAME: string;\r\n ACTIVE: string;\r\n OPERATION: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n MODE: string;\r\n DAYS: string;\r\n SETPOINT: number;\r\n EXCEPTION_DATE: string;\r\n EXCEPTION_REPEAT_YEARLY: string;\r\n}\r\n\r\nexport interface DriException {\r\n SCHED_ID: number;\r\n DRI_ID: string;\r\n NAME: string;\r\n ACTIVE: string;\r\n OPERATION: string;\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n MODE: string;\r\n DAYS: string;\r\n SETPOINT: number;\r\n EXCEPTION_DATE: string;\r\n EXCEPTION_REPEAT_YEARLY: string;\r\n}\r\n\r\nexport interface ModalEditSchedule {\r\n schedId: number | undefined;\r\n addEdit: 'Add' | 'Edit';\r\n name: string;\r\n active: boolean;\r\n operation: boolean;\r\n start_time: string;\r\n start_time_error: string;\r\n end_time: string;\r\n end_time_error: string;\r\n selectedDays: SelectedDays;\r\n isException: boolean;\r\n exceptionDate: string;\r\n repeatYearly: boolean;\r\n useSetpoint: boolean;\r\n setpointValue: string;\r\n mode: number | undefined;\r\n}\r\n\r\ninterface DriScheduleEditModalProps {\r\n onClose: () => void;\r\n open: boolean;\r\n isException: boolean;\r\n devInfo: DevFullInfo;\r\n validateSchedule: () => boolean;\r\n onAddSchedule: (input?: ApiParams['/dri/add-dri-sched']) => Promise;\r\n onUpdateSchedule: (input?: ApiParams['/dri/update-dri-sched']) => Promise;\r\n modalEditSchedule?: ModalEditSchedule;\r\n hideRepeatYearly?: boolean;\r\n}\r\n\r\ninterface DriScheduleContentProps {\r\n schedules: DriSchedule[];\r\n exceptions: DriException[];\r\n devInfo: DevFullInfo;\r\n fixedContent?: boolean;\r\n actions: {\r\n onDeleteProgramming: (input?: ApiParams['/dri/delete-dri-sched']) => Promise;\r\n onEditProgramming: (input?: ApiParams['/dri/update-dri-sched']) => Promise;\r\n onAddProgramming: (input?: ApiParams['/dri/add-dri-sched']) => Promise;\r\n };\r\n hide?: {\r\n add?: boolean;\r\n edit?: boolean;\r\n delete?: boolean;\r\n repeatYearly?: boolean;\r\n }\r\n}\r\n\r\nexport const EditScheduleModal = ({\r\n onClose,\r\n open,\r\n isException,\r\n modalEditSchedule,\r\n validateSchedule,\r\n devInfo,\r\n onAddSchedule,\r\n onUpdateSchedule,\r\n hideRepeatYearly,\r\n}: DriScheduleEditModalProps): ReactElement | null => {\r\n const { t } = useTranslation();\r\n const [loading, setLoading] = useState(false);\r\n\r\n function generateAddDriScheduleInput(): ApiParams['/dri/add-dri-sched'] | undefined {\r\n if (!modalEditSchedule) return;\r\n\r\n return {\r\n DRI_ID: devInfo.DEV_ID,\r\n NAME: modalEditSchedule.name,\r\n ACTIVE: modalEditSchedule.active ? '1' : '0',\r\n OPERATION: modalEditSchedule.operation ? '1' : '0',\r\n BEGIN_TIME: modalEditSchedule.start_time,\r\n END_TIME: modalEditSchedule.end_time,\r\n MODE: (modalEditSchedule.mode !== undefined) && DriSchedModeOpts[modalEditSchedule.mode] || undefined,\r\n DAYS: JSON.stringify(modalEditSchedule.selectedDays),\r\n SETPOINT: (modalEditSchedule.useSetpoint && Number(modalEditSchedule.setpointValue)) || undefined,\r\n EXCEPTION_DATE: (modalEditSchedule.isException && moment(modalEditSchedule.exceptionDate, 'DD/MM/YYYY').format('YYYY-MM-DD')) || undefined,\r\n EXCEPTION_REPEAT_YEARLY: (modalEditSchedule.isException && (modalEditSchedule.repeatYearly ? '1' : '0')) || undefined,\r\n AUTOMATION_INTERVAL: devInfo.dri?.automationCfg.AUTOMATION_INTERVAL,\r\n };\r\n }\r\n\r\n function generateUpdateDriScheduleInput(): ApiParams['/dri/update-dri-sched'] | undefined {\r\n if (!modalEditSchedule?.schedId) return;\r\n\r\n return {\r\n SCHED_ID: modalEditSchedule.schedId,\r\n DRI_ID: devInfo.DEV_ID,\r\n NAME: modalEditSchedule.name,\r\n ACTIVE: modalEditSchedule.active ? '1' : '0',\r\n OPERATION: modalEditSchedule.operation ? '1' : '0',\r\n BEGIN_TIME: modalEditSchedule.start_time,\r\n END_TIME: modalEditSchedule.end_time,\r\n MODE: (modalEditSchedule.mode !== undefined && DriSchedModeOpts[modalEditSchedule.mode]) || undefined,\r\n DAYS: JSON.stringify(modalEditSchedule.selectedDays) || undefined,\r\n SETPOINT: modalEditSchedule.useSetpoint ? Number(modalEditSchedule.setpointValue) : undefined,\r\n EXCEPTION_DATE: (modalEditSchedule.isException && moment(modalEditSchedule.exceptionDate, 'DD/MM/YYYY').format('YYYY-MM-DD')) || undefined,\r\n EXCEPTION_REPEAT_YEARLY: (modalEditSchedule.isException && (modalEditSchedule.repeatYearly ? '1' : '0')) || undefined,\r\n AUTOMATION_INTERVAL: devInfo.dri?.automationCfg.AUTOMATION_INTERVAL,\r\n };\r\n }\r\n\r\n async function callProgrammingRequest(): Promise {\r\n if (modalEditSchedule?.addEdit === 'Add') {\r\n await onAddSchedule(generateAddDriScheduleInput());\r\n } else if (modalEditSchedule?.addEdit === 'Edit' && modalEditSchedule?.schedId !== undefined) {\r\n await onUpdateSchedule(generateUpdateDriScheduleInput());\r\n }\r\n }\r\n\r\n async function saveNewProgramming() {\r\n try {\r\n if (!modalEditSchedule) return;\r\n if (!devInfo?.GROUP_ID) {\r\n toast.warn(t('necessarioMaquinaAutomatizada'));\r\n return;\r\n }\r\n\r\n if (modalEditSchedule.name === '') return toast.error(t('erroDigiteNomeProgramacao'));\r\n if (!isException && modalEditSchedule.selectedDays && Object.values(modalEditSchedule.selectedDays).every((item) => item === false)) {\r\n return toast.error(t('erroSelecionePeloMenosUmDia'));\r\n }\r\n if (isException && (modalEditSchedule.exceptionDate.length !== 10 || modalEditSchedule.exceptionDate.includes('_'))) {\r\n return toast.error(t('erroDataExcecaoObrigatoria'));\r\n }\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(modalEditSchedule.start_time)) return toast.error(t('erroHorarioInvalido'));\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(modalEditSchedule.end_time)) return toast.error(t('erroHorarioInvalido'));\r\n\r\n if (!validateSchedule()) { return; }\r\n\r\n await callProgrammingRequest();\r\n\r\n onClose();\r\n } catch (err) {\r\n console.log(err);\r\n if ((err as AxiosError).response?.data === t('erroProgramacoesSobrepostas')) {\r\n toast.error(t('erroProgramacoesSobrepostas'));\r\n } else {\r\n toast.error(t('erro'));\r\n }\r\n }\r\n }\r\n\r\n async function onConfirm(): Promise {\r\n setLoading(true);\r\n await saveNewProgramming();\r\n setLoading(false);\r\n }\r\n\r\n function onCancel(): void {\r\n if (loading) return;\r\n onClose();\r\n }\r\n\r\n return open && devInfo.dri ? (\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n ) : null;\r\n};\r\n\r\nexport const DriScheduleContent = ({\r\n devInfo,\r\n exceptions,\r\n schedules,\r\n actions,\r\n fixedContent = false,\r\n hide,\r\n}: DriScheduleContentProps): ReactElement => {\r\n const { t } = useTranslation();\r\n\r\n const [state, render, setState] = useStateVar({\r\n showExceptions: false,\r\n modalEditSchedule: null as ModalEditSchedule | null,\r\n loading: false,\r\n });\r\n\r\n function getSchedExceptionValues(item?: ScheduleInfo) {\r\n return {\r\n isException: state.showExceptions,\r\n exceptionDate: (item && item.EXCEPTION_DATE) || '',\r\n repeatYearly: !!(item && item.EXCEPTION_REPEAT_YEARLY === '1'),\r\n };\r\n }\r\n\r\n function getSchedSetpointValues(item?: ScheduleInfo) {\r\n return {\r\n useSetpoint: !!item && item.SETPOINT != null && Number(getKeyByValue(DriSchedModeOpts, item.MODE)) !== 1,\r\n setpointValue: item && item.SETPOINT != null\r\n ? String(item.SETPOINT)\r\n : '24',\r\n };\r\n }\r\n\r\n function getSchedModeValues(item?: ScheduleInfo) {\r\n return {\r\n mode: item\r\n ? Number(getKeyByValue(DriSchedModeOpts, item.MODE))\r\n : undefined,\r\n };\r\n }\r\n\r\n function editAddProgramming(item?: ScheduleInfo) {\r\n try {\r\n const days = item && JSON.parse(item.DAYS);\r\n state.modalEditSchedule = {\r\n schedId: item && item.SCHED_ID,\r\n addEdit: item ? 'Edit' : 'Add',\r\n name: (item && item.NAME) || '',\r\n active: (item ? item.ACTIVE === '1' : true),\r\n operation: !!(item && item.OPERATION === '1'),\r\n ...getSchedTimesValues(item),\r\n selectedDays: !state.showExceptions ? generateDaysObject(days) : {},\r\n ...getSchedExceptionValues(item),\r\n ...getSchedSetpointValues(item),\r\n ...getSchedModeValues(item),\r\n };\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n\r\n function validateException(): boolean {\r\n if (!state.modalEditSchedule) {\r\n return false;\r\n }\r\n\r\n for (const exception of exceptions) {\r\n if (exception.ACTIVE === '0') { continue; }\r\n if (state.modalEditSchedule.schedId && state.modalEditSchedule.schedId === exception.SCHED_ID) { continue; }\r\n if (!checkExceptionDate(exception, {\r\n EXCEPTION_DATE: state.modalEditSchedule.exceptionDate,\r\n EXCEPTION_REPEAT_YEARLY: state.modalEditSchedule.repeatYearly ? '1' : '0',\r\n })) { continue; }\r\n if (checkTimeConflict({\r\n startTime: exception.BEGIN_TIME,\r\n endTime: exception.END_TIME,\r\n }, {\r\n startTime: state.modalEditSchedule.start_time,\r\n endTime: state.modalEditSchedule.end_time,\r\n })) {\r\n const msgError = t('erroSalvarExcecoes', {\r\n value1: exception.NAME,\r\n value2: state.modalEditSchedule.name,\r\n });\r\n toast.error(msgError);\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function validateSchedule(): boolean {\r\n if (!state.modalEditSchedule) {\r\n return false;\r\n }\r\n\r\n const {\r\n selectedDays, start_time, end_time, name,\r\n } = state.modalEditSchedule;\r\n for (const schedule of schedules) {\r\n if (!schedule.ACTIVE) { continue; }\r\n if (state.modalEditSchedule.schedId && state.modalEditSchedule.schedId === schedule.SCHED_ID) { continue; }\r\n if (!checkWeekDayCommon(JSON.parse(schedule.DAYS), selectedDays)) { continue; }\r\n if (checkTimeConflict(\r\n { startTime: schedule.BEGIN_TIME, endTime: schedule.END_TIME },\r\n { startTime: start_time, endTime: end_time },\r\n )\r\n ) {\r\n const msgError = t('erroSalvarProgramacoesHorarias', {\r\n value1: name,\r\n value2: schedule.NAME,\r\n });\r\n toast.error(msgError);\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n function validateSchedules(): boolean {\r\n if (!state.modalEditSchedule) {\r\n return false;\r\n }\r\n\r\n if (!state.modalEditSchedule.active) {\r\n return true;\r\n }\r\n\r\n return state.showExceptions ? validateException() : validateSchedule();\r\n }\r\n\r\n return (\r\n <>\r\n setState({ modalEditSchedule: undefined })}\r\n open={!!state.modalEditSchedule}\r\n validateSchedule={validateSchedules}\r\n onAddSchedule={actions.onAddProgramming}\r\n onUpdateSchedule={actions.onEditProgramming}\r\n hideRepeatYearly={!!hide?.repeatYearly}\r\n />\r\n {\r\n setState({ showExceptions: value });\r\n }}\r\n hide={hide}\r\n loading={state.loading}\r\n />\r\n \r\n );\r\n};\r\n\r\nexport const DriScheduleModal = (props: {\r\n devInfo: DevFullInfo;\r\n schedules: DriSchedule[];\r\n exceptions: DriException[];\r\n open: boolean;\r\n refetch: () => void;\r\n onClose: () => void;\r\n hide?: {\r\n add?: boolean;\r\n delete?: boolean;\r\n edit?: boolean;\r\n repeatYearly?: boolean;\r\n };\r\n}): ReactElement | null => {\r\n const {\r\n open, schedules, exceptions, onClose, devInfo, refetch, hide,\r\n } = props;\r\n\r\n return open ? (\r\n \r\n \r\n insertProgramming(refetch, sched),\r\n onDeleteProgramming: (sched) => deleteProgramming(refetch, sched),\r\n onEditProgramming: (sched) => updateProgramming(refetch, sched),\r\n }}\r\n hide={hide}\r\n />\r\n \r\n ) : null;\r\n};\r\n","import { CSSProperties, ReactElement } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Flex } from 'reflexbox';\r\nimport {\r\n BadSignalIcon, GoodSignalIcon, GreatSignalIcon, NoSignalIcon, RegularSignalIcon,\r\n} from 'icons';\r\nimport { colors } from 'styles/colors';\r\nimport { IconWrapper } from '../styles';\r\n\r\ninterface RssiProperties {\r\n showLabel?: boolean;\r\n rssi?: string;\r\n style?: CSSProperties;\r\n}\r\n\r\nexport const RssiComponent = ({\r\n rssi,\r\n style,\r\n showLabel = false,\r\n}: RssiProperties): ReactElement => {\r\n const { t } = useTranslation();\r\n\r\n function rssiText() {\r\n return rssi || '-';\r\n }\r\n\r\n function formatRssiIcon(rssi: string) {\r\n switch (rssi) {\r\n case t('excelente'): return ;\r\n case t('bom'): return ;\r\n case t('regular'): return ;\r\n case t('ruim'): return ;\r\n default: return ;\r\n }\r\n }\r\n\r\n return (\r\n \r\n \r\n {t('status')}\r\n \r\n \r\n \r\n {formatRssiIcon(rssiText())}\r\n \r\n {showLabel && {rssi}}\r\n \r\n \r\n );\r\n};\r\n","export function rssiDescriptionParser(RSSI: number, status: string): string {\r\n if (RSSI < 0 && status === 'ONLINE') {\r\n if (RSSI > -50) return 'excelente';\r\n if (RSSI > -60) return 'bom';\r\n if (RSSI > -70) return 'regular';\r\n return 'ruim';\r\n }\r\n return '-';\r\n}\r\n\r\nexport function verifyAndUpdateRSSI(payload: { data: { RSSI: number | null, status: string }}): string | undefined {\r\n if (payload.data.RSSI != null) {\r\n return rssiDescriptionParser(payload.data.RSSI, payload.data.status);\r\n }\r\n}\r\n","import { useEffect, useState } from 'react';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport moment from 'moment';\r\n\r\nimport {\r\n Loader,\r\n Select,\r\n} from 'components';\r\nimport CheckboxMaterial from '@material-ui/core/Checkbox';\r\nimport { ToggleSwitchMini } from 'components/ToggleSwitch';\r\nimport {\r\n TermometerIcon,\r\n VAVOpenedIcon,\r\n VAVClosedIcon,\r\n LockOpenedIcon,\r\n LockClosedIcon,\r\n ArrowUpIconV2,\r\n ArrowDownIconV2,\r\n InfoIcon,\r\n} from '~/icons';\r\nimport { DevInfo, getCachedDevInfo, getCachedDevInfoSync } from 'helpers/cachedStorage';\r\nimport { useDebouncedRender, useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocket } from 'helpers/wsConnection';\r\nimport { colors } from 'styles/colors';\r\nimport { checkProtocolValue } from 'helpers/driConfig';\r\n\r\nimport img_mode_cool from 'assets/img/cool_ico/mode_cool.svg';\r\nimport img_mode_fan from 'assets/img/cool_ico/mode_fan.svg';\r\nimport img_mode_off from 'assets/img/cool_ico/power_1_color.svg';\r\nimport { apiCall } from 'providers';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, Scatter, ScatterChart,\r\n} from 'recharts';\r\nimport { t } from 'i18next';\r\nimport { Trans } from 'react-i18next';\r\nimport img_schedule from 'assets/img/cool_ico/schedule.svg';\r\n\r\nimport {\r\n Bluebar,\r\n ControlButtonIcon,\r\n ControlButton,\r\n SelectContainer,\r\n CardElev, ConteinerTitle, Content, ContentRealTime, RealTimeBox,\r\n Container,\r\n Slider,\r\n Cursor,\r\n ParamName,\r\n ParamValue,\r\n ParamTitle,\r\n SetpointButton,\r\n ModalContainerLoading,\r\n ControlButtonIconFancoil,\r\n NotyIconStyle,\r\n NotyNumCornerStyle,\r\n} from './styles';\r\nimport {\r\n driMeterApplications, driApplicationOpts, driVAVsApplications, driFancoilsApplications,\r\n} from '~/helpers/driConfigOptions';\r\nimport { DriSchedModeOpts, DRIScheduleSummary } from '../../SchedulesModals/DRI_Shedule';\r\nimport { FanOffIcon, FanOnIcon } from '~/icons/FanOnOff';\r\nimport { ValveClosedIcon, ValveOpenedIcon } from '~/icons/ValveOpenedClosed';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { DriException, DriSchedule, DriScheduleModal } from '../../SchedulesModals/DRI_ScheduleModal';\r\nimport { RssiComponent } from './components/RssiComponent';\r\nimport { verifyAndUpdateRSSI } from '~/helpers/rssi';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nconst ikron03availableErrors = {\r\n 0: t('sequenciaDeFasesIncorretaOuFaltaDeFase'),\r\n 1: t('configuracaoIncorretadeTcTpTl'),\r\n 3: t('tensaoOuCorrenteAcimaDoLimitePermitido'),\r\n 4: t('reinicializeCorretamenteSistema'),\r\n};\r\n\r\nconst multkAvailableErrors = {\r\n 0: t('TensaoMedidaSequenciaAntiHoraria'),\r\n 1: t('ErroMatematico'),\r\n 2: t('OverFlowGeracaoPulsosEnergia'),\r\n 3: t('ExcedidoLimitePermitidoTensaoCorrente'),\r\n};\r\n\r\nexport function getKeyByValue(object, value) {\r\n return Object.keys(object).find((key) => object[key] === value);\r\n}\r\n\r\nexport function convertSchedTime(value: number | null | undefined) {\r\n if (value == null) return '';\r\n return `${String(Math.floor(value / 60)).padStart(2, '0')}:${String(value % 60).padStart(2, '0')}`;\r\n}\r\n\r\nfunction formatTimeToTimeAxios(date: moment.Moment, seconds = 0, format = 'HH:mm:ss') {\r\n return moment(date)\r\n .add(seconds, 'seconds')\r\n .format(format);\r\n}\r\n\r\nfunction getMagnitudeOrder(n: number) {\r\n if (n === Infinity || n === -Infinity) {\r\n return 0;\r\n }\r\n const order = Math.floor(Math.log(Math.abs(n)) / Math.LN10 + 0.000000001);\r\n return 10 ** order;\r\n}\r\n\r\nfunction getTime(timestamp) {\r\n return new Date(timestamp).getTime() + 3 * 60 * 60 * 1000;\r\n}\r\n\r\nexport function DriRealTimeContents(props: { devId: string }): JSX.Element {\r\n // const { devId } = useParams<{ devId: string }>();\r\n let CONT_WS_REQUEST = 0;\r\n const CONT_WS_REQUEST_RENDER = 3; // quantidades de request para renderizar o grafico;\r\n const { devId } = props;\r\n const [state, render, setState] = useStateVar({\r\n isTelemetryNull: false,\r\n installationError: null as null|string,\r\n loading: true,\r\n shouldRender: true,\r\n desktopWidth: window.matchMedia('(min-width: 768px)'),\r\n telemetries: [] as {\r\n fp?: number;\r\n fp_a?: number,\r\n fp_b?: number,\r\n fp_c?: number,\r\n timestamp: string,\r\n v_avg?: number,\r\n v_a?: number,\r\n v_b?: number,\r\n v_c?: number,\r\n i_total?: number,\r\n i_a?: number,\r\n i_b?: number,\r\n i_c?: number,\r\n en_at_tri?: number,\r\n pot_at_total: number,\r\n pot_at_tri: number,\r\n pot_at_a?: number,\r\n pot_at_b?: number,\r\n pot_at_c?: number,\r\n }[], // { status }[]\r\n driInterval: null as null | number,\r\n isSendingSetpoint: 0,\r\n timerChangeSetpoint: null as null | NodeJS.Timeout,\r\n devInfo: getCachedDevInfoSync(devId),\r\n setpoint: null as null | number,\r\n vavSetpoint: null as null | number,\r\n vavTempAmb: null as null | number,\r\n vavValve: null as null | number,\r\n vavLock: null as null | number,\r\n fancoilSetpoint: null as null | number,\r\n fancoilTempAmb: null as null | number,\r\n fancoilValve: null as null | number,\r\n fancoilFan: null as null | number,\r\n activeOperationMode: 0,\r\n activeFancoilOperationMode: null as null | number,\r\n driApplication: '',\r\n activeMachineStatus: 0,\r\n floatingControlMode: null as null | {\r\n x: number\r\n y: number\r\n },\r\n floatingControlFan: null as null | {\r\n x: number\r\n y: number\r\n },\r\n floatingControlSwing: null as null | {\r\n x: number\r\n y: number\r\n },\r\n showCurves: {\r\n totalOrMedium: true,\r\n phaseA: true,\r\n phaseB: true,\r\n phaseC: true,\r\n },\r\n sendingNewFancoilMode: false,\r\n RSSI: '',\r\n timezoneOffset: 0,\r\n oldDate: false as boolean,\r\n });\r\n\r\n const [driState, , setDriState] = useStateVar({\r\n schedules: [] as DriSchedule[],\r\n exceptions: [] as DriException[],\r\n totalSchedules: 0,\r\n showScheduleModal: false,\r\n });\r\n\r\n const [energyState, , setEnergyState] = useStateVar({\r\n initialTimeRef: new Date().toISOString().substr(0, 19),\r\n tab: { label: t('tensao'), value: 'voltage' },\r\n });\r\n\r\n const [windowSize, setWindowSize] = useState([\r\n window.innerWidth,\r\n window.innerHeight,\r\n ]);\r\n\r\n const debouncedRender = useDebouncedRender(render);\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'driSubscribeRealTime', data: { DRI_ID: devId } });\r\n }\r\n function onWsMessage(response) {\r\n if (response && response.type === 'driTelemetry') {\r\n verifyDriTypeToFormatPower(response, state.driApplication);\r\n addEnergyParams(response);\r\n if (response.data.timestamp) {\r\n const data = moment(response.data.timestamp);\r\n checkLastTimeStamp(response.data.timestamp);\r\n response.data.timestamp = data.format('YYYY-MM-DDTHH:mm:ss');\r\n state.telemetries.push(response.data);\r\n }\r\n if (state.telemetries.length > 6) state.telemetries.shift();\r\n if (!state.isSendingSetpoint) state.setpoint = (response.data.Temp != null) ? response.data.Temp : 24;\r\n if (state.devInfo?.dri && getKeyByValue(driFancoilsApplications, state.devInfo?.dri.varsCfg?.application)) {\r\n if (response.data.ThermOn === 0) {\r\n state.activeFancoilOperationMode = 2;\r\n } else {\r\n state.activeFancoilOperationMode = response.data.Mode === 0 ? 0 : 1;\r\n }\r\n }\r\n state.activeOperationMode = Number(getKeyByValue(DriSchedModeOpts, response.data.Mode)) || 0;\r\n state.activeMachineStatus = response.data.MachineStatus || 0;\r\n state.installationError = convertErrorTelemetry(response.data.erro, state.driApplication);\r\n state.isTelemetryNull = response.data.timestamp && response.data.erro === 256;\r\n render();\r\n\r\n state.vavTempAmb = response.data.TempAmb;\r\n state.vavValve = response.data.ValveOn;\r\n state.vavLock = response.data.Lock;\r\n\r\n state.fancoilTempAmb = response.data.TempAmb;\r\n state.fancoilValve = response.data.ValveOn;\r\n state.fancoilFan = response.data.FanStatus;\r\n updateRssi(response);\r\n if (!state.isSendingSetpoint) state.fancoilSetpoint = response.data.Setpoint;\r\n if (!state.isSendingSetpoint) state.vavSetpoint = response.data.Setpoint;\r\n\r\n if (CONT_WS_REQUEST < CONT_WS_REQUEST_RENDER) { CONT_WS_REQUEST++; }\r\n if (CONT_WS_REQUEST === CONT_WS_REQUEST_RENDER) { setState({ loading: false }); }\r\n debouncedRender();\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'driUnsubscribeRealTime' });\r\n if (state.driInterval) updateTimeReceiveTelemetries(devId, state.driInterval);\r\n }\r\n\r\n function verifyMeterIsSchneiderPm210() {\r\n return state.driApplication === 'schneider-electric-pm210';\r\n }\r\n\r\n function verifyMeterIsSchneiderPm9c() {\r\n return state.driApplication === 'schneider-electric-pm9c';\r\n }\r\n\r\n function addEnergyParams(response) {\r\n response.data.v_avg = ([response.data.v_a, response.data.v_b, response.data.v_c].reduce((acc, value) => acc += (value || 0), 0) / 3) || 0;\r\n response.data.i_total = [response.data.i_a, response.data.i_b, response.data.i_c].reduce((acc, value) => acc += (value || 0), 0) || 0;\r\n if (verifyMeterIsSchneiderPm210()) {\r\n response.data.pot_at_total = response.data.pot_at_tri;\r\n } else {\r\n response.data.pot_at_total = [response.data.pot_at_a, response.data.pot_at_b, response.data.pot_at_c].reduce((acc, value) => acc += (value || 0), 0) || 0;\r\n }\r\n }\r\n\r\n function verifyDriTypeToFormatPower(response, applicationDri) {\r\n if (applicationDri === 'kron-ikron-03') {\r\n response.data.pot_at_a = formatPowerAux(response.data.pot_at_a);\r\n response.data.pot_at_b = formatPowerAux(response.data.pot_at_b);\r\n response.data.pot_at_c = formatPowerAux(response.data.pot_at_c);\r\n }\r\n }\r\n\r\n function formatPowerAux(power) {\r\n return power > 0 ? power / 1000 : 0;\r\n }\r\n\r\n async function getTimezoneOffset() {\r\n try {\r\n await apiCall('/get-timezone-offset-by-devId', { devId }).then((tzOffset) => {\r\n if (tzOffset != null) state.timezoneOffset = tzOffset;\r\n });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroObterFusoHorario'));\r\n }\r\n }\r\n\r\n async function sendDriSetpoint(newSetpoint) {\r\n try {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'setpoint',\r\n VALUE: newSetpoint,\r\n });\r\n setTimeout(() => {\r\n state.isSendingSetpoint = 0;\r\n toast.success(t('sucessoEnviarSetpoint'));\r\n }, 5000);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroEstabelecerSetpoint'));\r\n }\r\n }\r\n\r\n async function updateTimeReceiveTelemetries(DRI_ID: string, interval: number) {\r\n try {\r\n await apiCall('/dri/update-time-send-config', {\r\n DRI_ID,\r\n VALUE: interval,\r\n });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroAtualizarTempoReceberTelemetrias'));\r\n }\r\n }\r\n\r\n async function sendOnOffCommand(command) {\r\n try {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'on/off',\r\n VALUE: command,\r\n });\r\n toast.success(\r\n
\r\n {command === 'ON' ? t('ligar') : t('desligar')}\r\n {t('sucessoComandoEnviado')}\r\n
,\r\n );\r\n return true;\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroComandoLigarDesligar'));\r\n return false;\r\n }\r\n }\r\n\r\n function changeVAVSetpoint(newSetpoint: number) {\r\n if (state.timerChangeSetpoint) clearTimeout(state.timerChangeSetpoint);\r\n if (state.vavSetpoint && newSetpoint >= 15 && newSetpoint <= 30) {\r\n if (!state.isSendingSetpoint) state.isSendingSetpoint = 1;\r\n state.vavSetpoint = newSetpoint;\r\n state.timerChangeSetpoint = setTimeout(() => sendDriSetpoint(newSetpoint), 1500);\r\n render();\r\n } else {\r\n state.timerChangeSetpoint = setTimeout(() => sendDriSetpoint(state.vavSetpoint), 1500);\r\n }\r\n }\r\n\r\n function checkLastTimeStamp(lastTelemetry:string | null) {\r\n if (lastTelemetry) {\r\n const dateLastTelemetry = new Date(lastTelemetry);\r\n const dateCurrent = new Date();\r\n const dateMil = dateCurrent.getTime() - dateLastTelemetry.getTime();\r\n const dateDays = dateMil / (1000 * 60 * 60 * 24);\r\n\r\n if (dateDays > 7) {\r\n state.oldDate = true;\r\n } else {\r\n state.oldDate = false;\r\n }\r\n }\r\n }\r\n\r\n async function changeVAVLock(command) {\r\n try {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'lock',\r\n VALUE: command,\r\n });\r\n toast.success(\r\n
\r\n {command === 0 ? t('liberadoMin') : t('travado')}\r\n {t('sucessoComandoEnviado')}\r\n
,\r\n );\r\n return true;\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroComandoLiberarTravar'));\r\n return false;\r\n }\r\n }\r\n\r\n function changeFancoilSetpoint(newSetpoint: number) {\r\n if (state.timerChangeSetpoint) clearTimeout(state.timerChangeSetpoint);\r\n if (state.fancoilSetpoint && newSetpoint >= 15 && newSetpoint <= 30) {\r\n if (!state.isSendingSetpoint) state.isSendingSetpoint = 1;\r\n state.fancoilSetpoint = newSetpoint;\r\n state.timerChangeSetpoint = setTimeout(() => sendDriSetpoint(newSetpoint), 1500);\r\n render();\r\n } else {\r\n state.timerChangeSetpoint = setTimeout(() => sendDriSetpoint(state.fancoilSetpoint), 1500);\r\n }\r\n }\r\n\r\n function changeSetpoint(newSetpoint: number) {\r\n if (state.timerChangeSetpoint) clearTimeout(state.timerChangeSetpoint);\r\n if (state.setpoint) {\r\n if (newSetpoint >= 17 && newSetpoint <= 25) {\r\n if (!state.isSendingSetpoint) state.isSendingSetpoint = 1;\r\n state.setpoint = newSetpoint;\r\n render();\r\n state.timerChangeSetpoint = setTimeout(() => sendDriSetpoint(newSetpoint), 1500);\r\n }\r\n if (newSetpoint > 25 && newSetpoint < state.setpoint) {\r\n if (!state.isSendingSetpoint) state.isSendingSetpoint = 1;\r\n state.setpoint = 25;\r\n render();\r\n state.timerChangeSetpoint = setTimeout(() => sendDriSetpoint(25), 1500);\r\n }\r\n if (newSetpoint < 17 && newSetpoint > state.setpoint) {\r\n if (!state.isSendingSetpoint) state.isSendingSetpoint = 1;\r\n state.setpoint = 17;\r\n render();\r\n state.timerChangeSetpoint = setTimeout(() => sendDriSetpoint(17), 1500);\r\n }\r\n }\r\n }\r\n\r\n function getOperationModeIcon(operationMode: number) {\r\n // operationModes: {\"0\":\"COOL\",\"1\":\"FAN\"},\r\n switch (operationMode) {\r\n case 0: return img_mode_cool;\r\n case 1: return img_mode_fan;\r\n }\r\n }\r\n\r\n function getFancoilOperationModeIcon(operationMode: number | null) {\r\n if (operationMode === null) return undefined;\r\n switch (operationMode) {\r\n case 0: return img_mode_cool;\r\n case 1: return img_mode_fan;\r\n case 2: return img_mode_off;\r\n }\r\n }\r\n\r\n function getFancoilOperationModeLabel(operationMode: number | null) {\r\n if (operationMode === null) return '';\r\n switch (operationMode) {\r\n case 0: return t('refrigerar');\r\n case 1: return t('ventilar');\r\n case 2: return t('desligar');\r\n }\r\n }\r\n\r\n function onClickMode(event) {\r\n if (state.sendingNewFancoilMode) return;\r\n if (state.devInfo.dri && getKeyByValue(driFancoilsApplications, state.devInfo.dri.varsCfg?.application)) {\r\n window.scrollBy(0, 200);\r\n render();\r\n }\r\n if (state.floatingControlMode) {\r\n state.floatingControlMode = null;\r\n } else {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'div') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n state.floatingControlMode = null;\r\n state.floatingControlFan = null;\r\n state.floatingControlSwing = null;\r\n state.floatingControlMode = {\r\n x: rect.x, // event.target.offsetLeft, // event.clientX\r\n y: state.devInfo.dri && getKeyByValue(driFancoilsApplications, state.devInfo.dri.varsCfg?.application) ? rect.y + 1 * 43 : rect.y + 1 * 71, // event.target.offsetTop, // event.clientY\r\n };\r\n }\r\n render();\r\n }\r\n\r\n async function setOperationMode(operationMode: number) {\r\n try {\r\n state.activeOperationMode = operationMode;\r\n const command = DriSchedModeOpts[operationMode];\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'mode',\r\n VALUE: command,\r\n });\r\n toast.success(t('sucessoModoOperacaoEnviado'));\r\n setState({ floatingControlMode: null, floatingControlFan: null, floatingControlSwing: null });\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }\r\n\r\n async function setFancoilOperationMode(operationMode: number) {\r\n try {\r\n state.activeFancoilOperationMode = operationMode;\r\n setState({\r\n floatingControlMode: null, floatingControlFan: null, floatingControlSwing: null,\r\n });\r\n render();\r\n toast.success(t('iniciandoTrocaDeModoDeOperacao'));\r\n\r\n if (operationMode === 0) {\r\n setTimeout(async () => {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'therm',\r\n VALUE: '1',\r\n });\r\n setTimeout(async () => {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'mode',\r\n VALUE: '0',\r\n });\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'fanspeed',\r\n VALUE: '1',\r\n });\r\n if (state.fancoilSetpoint) {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'setpoint',\r\n VALUE: state.fancoilSetpoint.toString(),\r\n });\r\n }\r\n toast.success(t('sucessoModoOperacaoEnviado'));\r\n state.sendingNewFancoilMode = false;\r\n }, 8000);\r\n }, 5000);\r\n } else if (operationMode === 1) {\r\n setTimeout(async () => {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'therm',\r\n VALUE: '1',\r\n });\r\n setTimeout(async () => {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'mode',\r\n VALUE: '2',\r\n });\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'fanspeed',\r\n VALUE: '1',\r\n });\r\n state.sendingNewFancoilMode = false;\r\n toast.success(t('sucessoModoOperacaoEnviado'));\r\n }, 8000);\r\n }, 5000);\r\n } else {\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'therm',\r\n VALUE: '0',\r\n });\r\n await apiCall('/dri/send-dri-command', {\r\n DRI_ID: state.devInfo.DEV_ID,\r\n TYPE: 'mode',\r\n VALUE: '2',\r\n });\r\n setTimeout(() => { state.sendingNewFancoilMode = false; }, 2000);\r\n toast.success(t('sucessoModoOperacaoEnviado'));\r\n }\r\n render();\r\n } catch (err) { console.log(err); state.sendingNewFancoilMode = false; toast.error(t('erro')); }\r\n }\r\n\r\n function CustomTickTime(props) {\r\n const {\r\n x, y, payload, anchor,\r\n } = props;\r\n const shiftedTime = payload.value - 3 * 60 * 60 * 1000;\r\n return (\r\n \r\n \r\n {(shiftedTime > 1000000)\r\n ? new Date(shiftedTime).toLocaleTimeString()\r\n : formatTimeToTimeAxios(moment(energyState.initialTimeRef), shiftedTime)}\r\n \r\n \r\n );\r\n }\r\n\r\n function getDialColor({ temp }) {\r\n if (state.devInfo.status !== 'ONLINE') return colors.LightGrey_v3;\r\n if (temp != null && Number.isFinite(Number(temp))) {\r\n return (\r\n state.devInfo.dri?.vavCfg?.TUSEMAX && temp > state.devInfo.dri?.vavCfg?.TUSEMAX && colors.Red\r\n || state.devInfo.dri?.vavCfg?.TUSEMIN && temp < state.devInfo.dri?.vavCfg?.TUSEMIN && colors.BlueSecondary_v3\r\n || colors.GreenLight\r\n );\r\n }\r\n return colors.GreenLight;\r\n }\r\n\r\n const updateRssi = (payload) => {\r\n const rssi = verifyAndUpdateRSSI(payload);\r\n if (rssi) {\r\n state.RSSI = t(rssi, { defaultValue: '-' });\r\n render();\r\n }\r\n };\r\n\r\n function isDRIFancoil(devInfo: DevInfo): boolean {\r\n return !!(devInfo.dri && getKeyByValue(driFancoilsApplications, devInfo.dri.varsCfg?.application));\r\n }\r\n\r\n function isDRIVav(devInfo: DevInfo): boolean {\r\n return !!(devInfo.dri && getKeyByValue(driVAVsApplications, devInfo.dri.varsCfg?.application));\r\n }\r\n\r\n async function callDriSchedules(devId: string): Promise {\r\n try {\r\n const { list: schedulesList } = await apiCall('/dri/get-dri-scheds', { DRI_ID: devId });\r\n const schedules: DriSchedule[] = [];\r\n const exceptions: DriException[] = [];\r\n\r\n for (const sched of schedulesList) {\r\n if (sched.EXCEPTION_DATE) {\r\n exceptions.push(sched);\r\n } else {\r\n schedules.push(sched);\r\n }\r\n }\r\n\r\n setDriState({\r\n exceptions,\r\n schedules,\r\n totalSchedules: schedules.length,\r\n });\r\n } catch (error) {\r\n console.error(error);\r\n toast.error(t('naoFoiPossivelBuscarProgramacoesExcecoesDRI'));\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (state.shouldRender) {\r\n Promise.resolve().then(async () => {\r\n try {\r\n setState({ loading: true });\r\n // @ts-ignore\r\n const devInfo = await getCachedDevInfo(devId, {});\r\n\r\n if (isDRIFancoil(devInfo) || isDRIVav(devInfo)) {\r\n await callDriSchedules(devId);\r\n }\r\n // if (onDevInfoUpdate) onDevInfoUpdate();\r\n\r\n await getTimezoneOffset();\r\n setState({ driApplication: devInfo.dri.varsCfg?.application, devInfo });\r\n render();\r\n state.driInterval = devInfo.dri.varsCfg?.driConfigs.find((cfg) => checkProtocolValue(cfg, 'interval'))?.value;\r\n if (state.driInterval) updateTimeReceiveTelemetries(devId, 2);\r\n } catch (err) { toast.error(t('erro')); console.error(err);\r\n setState({ loading: false }); }\r\n });\r\n }\r\n setState({ shouldRender: false });\r\n }, [state.shouldRender]);\r\n\r\n useEffect(() => {\r\n const handleWindowResize = () => {\r\n setWindowSize([window.innerWidth, window.innerHeight]);\r\n };\r\n\r\n window.addEventListener('resize', handleWindowResize);\r\n\r\n return () => {\r\n window.removeEventListener('resize', handleWindowResize);\r\n };\r\n }, []);\r\n\r\n if (!state.devInfo) return (
);\r\n\r\n return (\r\n <>\r\n {\r\n setDriState({\r\n showScheduleModal: false,\r\n });\r\n }}\r\n refetch={() => callDriSchedules(devId)}\r\n />\r\n \r\n {!state.oldDate && state.devInfo.status === 'ONLINE' ? (\r\n <>\r\n {state.driApplication !== 'carrier-ecosplit' && state.isTelemetryNull ? (\r\n \r\n
\r\n \r\n { state.installationError }\r\n \r\n
\r\n
\r\n ) : (\r\n \r\n \r\n \r\n

Aguarde, os dados estão

\r\n

sendo carregados.

\r\n
\r\n
\r\n )}\r\n\r\n {(state.devInfo.dri && state.devInfo.dri.varsCfg?.application === 'carrier-ecosplit') && (\r\n \r\n {(state.loading) ? \r\n : (\r\n <>\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
Setpoint
\r\n
\r\n
\r\n { if (state.devInfo.status === 'ONLINE' && state.setpoint) changeSetpoint(state.setpoint + 1); }}\r\n />\r\n { if (state.devInfo.status === 'ONLINE' && state.setpoint) changeSetpoint(state.setpoint - 1); }}\r\n />\r\n
\r\n {state.setpoint || '--'}\r\n  °C\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n {state.floatingControlMode && state.devInfo.status === 'ONLINE' && (\r\n \r\n
\r\n setOperationMode(0)}>\r\n \r\n \r\n
\r\n
\r\n setOperationMode(1)}>\r\n \r\n \r\n
\r\n
\r\n )}\r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
{t('funcionamento')}
\r\n {state.devInfo.status === 'ONLINE'\r\n ? (\r\n
\r\n {t('ligadoMin')}\r\n {\r\n if (state.activeMachineStatus === 0) {\r\n const success = await sendOnOffCommand('ON');\r\n if (success) state.activeMachineStatus = 1;\r\n } else {\r\n const success = await sendOnOffCommand('OFF');\r\n if (success) state.activeMachineStatus = 0;\r\n }\r\n render();\r\n }}\r\n />\r\n {t('desligadoMin')}\r\n
\r\n )\r\n : (\r\n {t('funcoesNaoDisponiveisStatusDispositivo')}\r\n )}\r\n
\r\n\r\n
\r\n \r\n )}\r\n \r\n )}\r\n {state.devInfo.dri && getKeyByValue(driVAVsApplications, state.devInfo.dri.varsCfg?.application) && (\r\n \r\n {(state.loading) ? \r\n : (\r\n <>\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n {t('agora')}\r\n
\r\n
\r\n {formatNumberWithFractionDigits(state.vavTempAmb ?? '-')}\r\n  °C\r\n
\r\n
\r\n
\r\n\r\n
\r\n {state.devInfo.status === 'ONLINE' && (\r\n
\r\n
{t('limitesTemperatura')}
\r\n \r\n mín.\r\n {` ${formatNumberWithFractionDigits(state.devInfo.dri?.vavCfg?.TUSEMIN ?? '-')}`}\r\n °C\r\n      \r\n máx.\r\n {` ${formatNumberWithFractionDigits(state.devInfo.dri?.vavCfg?.TUSEMAX ?? '-')}`}\r\n °C\r\n \r\n
\r\n )}\r\n
\r\n\r\n \r\n {state.devInfo.status === 'ONLINE'\r\n ? (\r\n \r\n
\r\n
{t('atuadorVav')}
\r\n
\r\n \r\n {t('aberto')}\r\n \r\n \r\n \r\n \r\n {t('fechado')}\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
{t('termostato')}
\r\n
\r\n \r\n {t('liberadoMin')}\r\n \r\n \r\n {\r\n if (state.vavLock === 0) {\r\n const success = await changeVAVLock(1);\r\n if (success) state.vavLock = 1;\r\n } else {\r\n const success = await changeVAVLock(0);\r\n if (success) state.vavLock = 0;\r\n }\r\n render();\r\n }}\r\n />\r\n \r\n {t('travado')}\r\n \r\n \r\n
\r\n
\r\n
\r\n )\r\n : (\r\n {t('funcoesNaoDisponiveisStatusDispositivo')}\r\n )}\r\n\r\n {state.devInfo.status === 'ONLINE' && (\r\n
\r\n \r\n
\r\n state.vavSetpoint && state.devInfo.status === 'ONLINE' && changeVAVSetpoint(state.vavSetpoint + 0.5)}>\r\n \r\n \r\n state.vavSetpoint && state.devInfo.status === 'ONLINE' && changeVAVSetpoint(state.vavSetpoint - 0.5)}>\r\n \r\n \r\n
\r\n
\r\n
Setpoint
\r\n
{`${formatNumberWithFractionDigits(state.vavSetpoint?.toFixed(1) ?? '-')} °C`}
\r\n
\r\n \r\n
\r\n )}\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n )}\r\n \r\n )}\r\n {isDRIFancoil(state.devInfo) && (\r\n \r\n {(state.loading) ? \r\n : (\r\n
825 ? 'absolute' : undefined, justifyContent: windowSize[0] < 825 ? 'center' : undefined, marginBottom: '20px',\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n DEV ID\r\n \r\n {state.devInfo.DEV_ID}\r\n \r\n \r\n \r\n \r\n {t('ambienteRefrigerado')}\r\n \r\n \r\n \r\n {state.devInfo.dri?.fancoilCfg?.FANCOIL_ID}\r\n \r\n \r\n
\r\n )}\r\n {(state.loading) ? \r\n : (\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n {t('agora')}\r\n
\r\n
\r\n {formatNumberWithFractionDigits(state.fancoilTempAmb ?? '-')}\r\n  °C\r\n
\r\n
\r\n
\r\n\r\n
\r\n {state.devInfo.status !== '' && (\r\n
\r\n
{t('limitesTemperatura')}
\r\n \r\n mín.\r\n {` ${state.devInfo.dri?.fancoilCfg?.THERM_T_MIN || state.devInfo.dri?.fancoilCfg?.TUSEMIN || '-'}`}\r\n °C\r\n      \r\n máx.\r\n {` ${state.devInfo.dri?.fancoilCfg?.THERM_T_MAX || state.devInfo.dri?.fancoilCfg?.TUSEMAX || '-'}`}\r\n °C\r\n \r\n
\r\n )}\r\n
\r\n\r\n \r\n \r\n
{t('modoDeOperacao')}
\r\n\r\n \r\n {state.activeFancoilOperationMode !== null && }\r\n \r\n {getFancoilOperationModeLabel(state.activeFancoilOperationMode)}\r\n \r\n \r\n {state.floatingControlMode && state.devInfo.status === 'ONLINE' && (\r\n \r\n
\r\n { state.sendingNewFancoilMode = true; render(); setFancoilOperationMode(0); }}>\r\n \r\n \r\n {t('refrigerar')}\r\n \r\n \r\n
\r\n
\r\n { state.sendingNewFancoilMode = true; render(); setFancoilOperationMode(1); }}>\r\n \r\n \r\n {t('ventilar')}\r\n \r\n \r\n
\r\n
\r\n { state.sendingNewFancoilMode = true; render(); setFancoilOperationMode(2); }}>\r\n \r\n \r\n {t('desligar')}\r\n \r\n \r\n
\r\n
\r\n )}\r\n \r\n {state.devInfo.status === 'ONLINE' && (\r\n <>\r\n
\r\n \r\n
{t('setpoint')}
\r\n\r\n \r\n
\r\n state.activeFancoilOperationMode === 0 && state.fancoilSetpoint && state.devInfo.status === 'ONLINE' && changeFancoilSetpoint(state.fancoilSetpoint + 1)}>\r\n \r\n \r\n state.activeFancoilOperationMode === 0 && state.fancoilSetpoint && state.devInfo.status === 'ONLINE' && changeFancoilSetpoint(state.fancoilSetpoint - 1)}>\r\n \r\n \r\n
\r\n
\r\n
{`${state.fancoilSetpoint?.toFixed(0) || '-'} °C`}
\r\n
\r\n \r\n \r\n\r\n
\r\n
\r\n \r\n
{t('ventilador')}
\r\n\r\n \r\n \r\n \r\n {t('ligadoMin')}\r\n \r\n \r\n \r\n {t('desligadoMinusculo')}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
{t('comandoValvula')}
\r\n \r\n \r\n \r\n {t('aberta')}\r\n \r\n \r\n \r\n {t('fechada')}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
{t('programacoes')}
\r\n \r\n \r\n {driState.totalSchedules > 0 && (\r\n {driState.totalSchedules}\r\n )}\r\n {\r\n setDriState({\r\n showScheduleModal: true,\r\n });\r\n }}\r\n >\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n )}\r\n \r\n
\r\n )}\r\n \r\n )}\r\n {state.devInfo.dri && getKeyByValue(driMeterApplications, state.devInfo.dri.varsCfg?.application) && (\r\n \r\n {!state.desktopWidth.matches && (\r\n \r\n setEnergyState({ tab: e })}\r\n options={[{ label: t('tensao'), value: 'voltage' }, { label: t('corrente'), value: 'current' }, { label: t('potenciaAtiva'), value: 'active-power' }]}\r\n hideSelected\r\n value={energyState.tab}\r\n />\r\n \r\n )}\r\n {state.desktopWidth.matches\r\n && (\r\n <>\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n setEnergyState({ tab: { label: 'Tensão', value: 'voltage' } })}\r\n >\r\n {t('tensao')}\r\n \r\n \r\n setEnergyState({ tab: { label: 'Corrente', value: 'current' } })}\r\n >\r\n {t('corrente')}\r\n \r\n \r\n setEnergyState({ tab: { label: 'Potência Ativa', value: 'active-power' } })}\r\n >\r\n {t('potenciaAtiva')}\r\n \r\n \r\n
\r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n }\r\n interval={0}\r\n tickCount={7}\r\n minTickGap={-2}\r\n domain={['dataMin', 'dataMax']}\r\n />\r\n {energyState.tab.value === 'voltage' && Math.round(dataMin) - 3, (dataMax) => Math.round(dataMax) + 3]} tickCount={6} />}\r\n {energyState.tab.value === 'voltage' && state.showCurves.totalOrMedium && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.v_avg }))} fill=\"#13006A\" />}\r\n {energyState.tab.value === 'voltage' && state.showCurves.phaseA && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.v_a }))} fill=\"#4B2FDB\" />}\r\n {energyState.tab.value === 'voltage' && state.showCurves.phaseB && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.v_b }))} fill=\"#9480F9\" />}\r\n {energyState.tab.value === 'voltage' && state.showCurves.phaseC && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.v_c }))} fill=\"#D2CAF8\" />}\r\n\r\n {energyState.tab.value === 'current' && Math.round(dataMin) - 3, (dataMax) => Math.round(dataMax) + 3]} tickCount={6} />}\r\n {energyState.tab.value === 'current' && state.showCurves.totalOrMedium && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.i_total }))} fill=\"#13006A\" />}\r\n {energyState.tab.value === 'current' && state.showCurves.phaseA && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.i_a }))} fill=\"#4B2FDB\" />}\r\n {energyState.tab.value === 'current' && state.showCurves.phaseB && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.i_b }))} fill=\"#9480F9\" />}\r\n {energyState.tab.value === 'current' && state.showCurves.phaseC && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.i_c }))} fill=\"#D2CAF8\" />}\r\n\r\n {energyState.tab.value === 'active-power' && (dataMin - getMagnitudeOrder(dataMin)).toFixed(1), (dataMax) => (dataMax + getMagnitudeOrder(dataMax)).toFixed(1)]} tickCount={6} />}\r\n {energyState.tab.value === 'active-power' && state.showCurves.totalOrMedium && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.pot_at_total }))} fill=\"#13006A\" />}\r\n {energyState.tab.value === 'active-power' && !verifyMeterIsSchneiderPm210() && state.showCurves.phaseA && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.pot_at_a }))} fill=\"#4B2FDB\" />}\r\n {energyState.tab.value === 'active-power' && !verifyMeterIsSchneiderPm210() && state.showCurves.phaseB && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.pot_at_b }))} fill=\"#9480F9\" />}\r\n {energyState.tab.value === 'active-power' && !verifyMeterIsSchneiderPm210() && state.showCurves.phaseC && null} data={state.telemetries.map((tel) => ({ x: getTime(tel.timestamp), y: tel.pot_at_c }))} fill=\"#D2CAF8\" />}\r\n \r\n \r\n {!(verifyMeterIsSchneiderPm210() && energyState.tab.value === 'active-power') && (\r\n \r\n \r\n \r\n \r\n \r\n setState({\r\n showCurves: {\r\n ...state.showCurves,\r\n totalOrMedium: !state.showCurves.totalOrMedium,\r\n },\r\n })}\r\n />\r\n {energyState.tab.value === 'voltage' ? ({t('Média')}) : ({t('total')})}\r\n \r\n \r\n {energyState.tab.value === 'voltage' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].v_avg?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n V\r\n
\r\n )}\r\n {energyState.tab.value === 'current' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].i_total?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n A\r\n
\r\n )}\r\n {energyState.tab.value === 'active-power' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_total?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n
\r\n )}\r\n
\r\n
\r\n\r\n \r\n \r\n \r\n setState({\r\n showCurves: {\r\n ...state.showCurves,\r\n phaseA: !state.showCurves.phaseA,\r\n },\r\n })}\r\n />\r\n {t('faseA')}\r\n \r\n \r\n {energyState.tab.value === 'voltage' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].v_a?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n V\r\n
\r\n )}\r\n {energyState.tab.value === 'current' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].i_a?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n A\r\n
\r\n )}\r\n {energyState.tab.value === 'active-power' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_a?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n setState({\r\n showCurves: {\r\n ...state.showCurves,\r\n phaseB: !state.showCurves.phaseB,\r\n },\r\n })}\r\n />\r\n {t('faseB')}\r\n \r\n \r\n {energyState.tab.value === 'voltage' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].v_b?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n V\r\n
\r\n )}\r\n {energyState.tab.value === 'current' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].i_b?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n A\r\n
\r\n )}\r\n {energyState.tab.value === 'active-power' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_b?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n
\r\n )}\r\n
\r\n
\r\n \r\n \r\n setState({\r\n showCurves: {\r\n ...state.showCurves,\r\n phaseC: !state.showCurves.phaseC,\r\n },\r\n })}\r\n />\r\n {t('faseC')}\r\n \r\n \r\n {energyState.tab.value === 'voltage' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].v_c?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n V\r\n
\r\n )}\r\n {energyState.tab.value === 'current' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].i_c?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n A\r\n
\r\n )}\r\n {energyState.tab.value === 'active-power' && (\r\n
\r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_c?.toFixed(2).replace('.', ',') ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n {state.desktopWidth.matches ? (\r\n
\r\n ) : (\r\n
\r\n )}\r\n\r\n \r\n {t('parametros')}\r\n \r\n \r\n \r\n {t('tensao')}\r\n \r\n {t('faseA')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].v_a?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n V\r\n \r\n \r\n\r\n \r\n {t('faseB')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].v_b?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n V\r\n \r\n \r\n\r\n \r\n {t('faseC')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].v_c?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n V\r\n \r\n \r\n \r\n \r\n {t('corrente')}\r\n\r\n \r\n {t('faseA')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].i_a?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n A\r\n \r\n \r\n\r\n \r\n {t('faseB')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].i_b?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n A\r\n \r\n \r\n\r\n \r\n {t('faseC')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].i_c?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n A\r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('potenciaAtiva')}\r\n {verifyMeterIsSchneiderPm210() ? (\r\n \r\n {t('total')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_tri?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n \r\n \r\n ) : (\r\n <>\r\n \r\n {t('faseA')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_a?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n \r\n \r\n\r\n \r\n {t('faseB')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_b?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n \r\n \r\n\r\n \r\n {t('faseC')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].pot_at_c?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n kW\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {t('fatorPotencia')}\r\n {(verifyMeterIsSchneiderPm210() || verifyMeterIsSchneiderPm9c()) ? (\r\n \r\n {t('total')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].fp?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n \r\n \r\n ) : (\r\n <>\r\n \r\n {t('faseA')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].fp_a?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n \r\n \r\n\r\n \r\n {t('faseB')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].fp_b?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n \r\n \r\n\r\n \r\n {t('faseC')}\r\n \r\n {(state.telemetries.length > 0 ? formatNumberWithFractionDigits(state.telemetries[state.telemetries.length - 1].fp_c?.toFixed(2) ?? '-', { minimum: 0, maximum: 2 }) : '-')}\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {state.installationError && state.installationError !== t('semErro') && (\r\n \r\n {t('alertas')}\r\n \r\n {t('possivelErroNaInstalacao', {\r\n value: state.installationError,\r\n })}\r\n \r\n \r\n )}\r\n \r\n )}\r\n {state.devInfo.dri && !getKeyByValue(driMeterApplications, state.devInfo.dri.varsCfg?.application) && !getKeyByValue(driApplicationOpts, state.devInfo.dri.varsCfg?.application) && !getKeyByValue(driVAVsApplications, state.devInfo.dri.varsCfg?.application) && !isDRIFancoil(state.devInfo) && (\r\n \r\n \r\n {(state.loading) && }\r\n \r\n \r\n

Informações

\r\n
\r\n \r\n \r\n \r\n

Operation Mode

\r\n 1\r\n
\r\n \r\n

Filter Sign

\r\n 0\r\n
\r\n \r\n

Local Wall Controller

\r\n 2\r\n
\r\n
\r\n \r\n \r\n

Fan Speed

\r\n 1\r\n
\r\n \r\n

Swing

\r\n Off\r\n
\r\n
\r\n \r\n \r\n

ON/OFF

\r\n Off\r\n
\r\n \r\n

Malfunction Code

\r\n n/d\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n

Temperatura

\r\n
\r\n \r\n \r\n \r\n

Room Temperature

\r\n \r\n 35\r\n

°C

\r\n
\r\n
\r\n \r\n

Set Temperature

\r\n \r\n 5\r\n

°C

\r\n
\r\n
\r\n \r\n

Set Temp.Limites

\r\n \r\n 20 - 35\r\n

°C

\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n )}\r\n \r\n ) : (\r\n \r\n {t('dispositivoOffline')}\r\n \r\n )}\r\n\r\n \r\n \r\n );\r\n}\r\n\r\nfunction Dial(props: { temperature: number | null, color?: string | null, status: string, withCommands: boolean }) {\r\n const min = 17;\r\n const max = 25;\r\n let percentage = (props.temperature == null) ? NaN : ((props.temperature - min) / (max - min));\r\n if (percentage > 1) percentage = 1;\r\n if (percentage < 0) percentage = 0;\r\n if (!Number.isFinite(percentage)) percentage = NaN;\r\n\r\n function onSvgClick(event) {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'svg') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n }\r\n\r\n return (\r\n \r\n \r\n {props.withCommands && (\r\n \r\n )}\r\n {(!Number.isNaN(percentage)) && props.withCommands && (\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n {props.withCommands && (\r\n <>\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nconst ToggleSwitch = ({\r\n label = undefined, checked, onOff = false, ...props\r\n}): JSX.Element => (\r\n \r\n
\r\n \r\n \r\n \r\n {label && {label}}\r\n
\r\n
\r\n);\r\n\r\nfunction convertKronErrorTelemetry(availableErrors, erro) {\r\n if (erro === 0) return t('semErro');\r\n const erroBin = erro.toString(2);\r\n const msg = [] as string[];\r\n erroBin.split('').forEach((bit, i) => {\r\n if (bit === '1') {\r\n const position = erroBin.length - i - 1;\r\n availableErrors[position] && msg.push(availableErrors[position]);\r\n }\r\n });\r\n return msg.join('; ');\r\n}\r\n\r\nconst convertErrorTelemetry = (erro: number, driApplication: string) => {\r\n if (!driApplication) return null;\r\n\r\n if (driApplication === 'kron-ikron-03') {\r\n return convertKronErrorTelemetry(ikron03availableErrors, erro);\r\n }\r\n\r\n if (driApplication === 'kron-mult-k' && erro === 16) {\r\n return t('semErro');\r\n }\r\n\r\n if (driApplication === 'kron-mult-k') {\r\n return convertKronErrorTelemetry(multkAvailableErrors, erro);\r\n }\r\n\r\n switch (erro) {\r\n case 0: return t('semErro');\r\n case 1: return t('sequenciaFaseIncorreta');\r\n case 2: return t('orientacaoTcFase1Invertida');\r\n case 4: return t('orientacaoTcFase2Invertida');\r\n case 8: return t('orientacaoTcFase3Invertida');\r\n case 16: return t('posicaoTcsFase1e2Trocadas');\r\n case 32: return t('posicaoTcsFase1e3Trocadas');\r\n case 64: return t('posicaoTcsFase2e3Trocadas');\r\n case 128: return t('nenhumaAssociacaoTcsFasesCorreta');\r\n case 256: return t('medidorEnergiaDesconectadoOuFalhaLigacoesEletricas');\r\n default: return t('semErro');\r\n }\r\n};\r\n","import styled from 'styled-components';\r\n\r\nexport const GraphContainer = styled.div`\r\n @media only screen and (max-width: 600px) {\r\n padding-left: 0px\r\n }\r\n padding-left: 100px\r\n`;\r\n\r\nexport const TitleFieldNobreak = styled.div`\r\n display: flex;\r\n flex-direction: row;\r\n padding-bottom: 33px;\r\n`;\r\n\r\nexport const TitleColumn = styled.div`\r\n display: flex;\r\n flex-direction: column;\r\n margin-left: 10px;\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport { ApiResps, apiCall } from '~/providers';\r\nimport { useWebSocketLazy } from '~/helpers/wsConnection';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, Line, LineChart,\r\n} from 'recharts';\r\nimport { colors } from '~/styles/colors';\r\nimport {\r\n GraphContainer, TitleFieldNobreak, TitleColumn,\r\n} from './styles';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { NobreakIcon } from '~/icons';\r\nimport moment from 'moment';\r\nimport { StyledLink } from '../styles';\r\n\r\nexport const DmtRealTime = (props: {dmtId: string}): JSX.Element => {\r\n const { dmtId } = props;\r\n const { t } = useTranslation();\r\n\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaTempoReal')}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport function DmtRealTimeContent({ dmtId }: { dmtId: string }): JSX.Element {\r\n const { t } = useTranslation();\r\n const [state, render] = useStateVar({\r\n telemetries: [] as {pulses: number| null, status: string}[], // { status }[]\r\n graphData: [] as {x: string, value: number | null }[],\r\n lastConsumption: 0 as number,\r\n lastConsumptionCube: 0 as number,\r\n timezoneOffset: 0,\r\n electricalNetwork: {} as { port: string, id: number },\r\n nobreakList: [] as { port: string, id: number, name?: string, datId?: string}[],\r\n illuminationList: [] as { port: string, id: number, name? : string }[],\r\n F1: [] as { x: string, value: number }[],\r\n F2: [] as { x: string, value: number }[],\r\n F3: [] as { x: string, value: number }[],\r\n F4: [] as { x: string, value: number }[],\r\n portsInfo: {} as ApiResps['/dmt/get-dmt-ports-info'],\r\n initialTimeRef: new Date().toISOString().substring(0, 19),\r\n onTelmTimer: undefined as undefined|NodeJS.Timeout,\r\n hasNewTelm: false,\r\n });\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n if (dmtId) {\r\n await apiCall('/get-timezone-offset-by-devId', { devId: dmtId }).then((tzOffset) => {\r\n if (tzOffset != null) state.timezoneOffset = tzOffset;\r\n });\r\n await apiCall('/dmt/get-dmt-ports-info', { DMT_CODE: dmtId }).then((portInfo) => state.portsInfo = portInfo);\r\n if (state.portsInfo) {\r\n getPortsInfoGraph();\r\n }\r\n wsl.start(onWsOpen, onWsMessage, beforeWsClose);\r\n render();\r\n }\r\n } catch (err) {\r\n toast.error(t('erroDadosDispositivo'));\r\n console.log(err);\r\n }\r\n })();\r\n }, []);\r\n\r\n function getPortsInfoGraph() {\r\n const listNobreaks: { port: string, id: number, name?: string, datId?: string }[] = [];\r\n const listIllumination: { port: string, id: number, name?: string }[] = [];\r\n\r\n for (const port of state.portsInfo.ports) {\r\n if (port.associated && port.NobreakId) {\r\n listNobreaks.push({\r\n port: `F${port.port}`,\r\n id: port.NobreakId,\r\n name: port.name,\r\n datId: port.datId,\r\n });\r\n }\r\n if (port.associated && port.illuminationId) {\r\n listIllumination.push({\r\n port: `F${port.port}`,\r\n id: port.illuminationId,\r\n name: port.name,\r\n });\r\n }\r\n if (port.associated && port.eletricCircuitId) {\r\n state.electricalNetwork = {\r\n port: `F${port.port}`,\r\n id: port.eletricCircuitId,\r\n };\r\n }\r\n }\r\n\r\n state.nobreakList = listNobreaks;\r\n state.illuminationList = listIllumination;\r\n }\r\n\r\n const labelFormater = (value: number, isNobreak: boolean) => {\r\n if (value === 0) return t('desligado').toUpperCase();\r\n if (value === 1 && isNobreak) {\r\n return t('bateria').toUpperCase();\r\n }\r\n if (value && !isNobreak) {\r\n return t('ligado').toUpperCase();\r\n }\r\n if (value === 2 && isNobreak) return t('redeEletrica').toUpperCase();\r\n\r\n return value.toString();\r\n };\r\n\r\n const NobreakCustomTick = (props) => {\r\n const {\r\n x, y, payload, anchor, isNobreak,\r\n } = props;\r\n\r\n const label = labelFormater(payload.value, isNobreak);\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n };\r\n\r\n function getTelemetryIllumination(port: string, telemetry) {\r\n const illuminationPorts = state.illuminationList.map((x) => x.port);\r\n\r\n if (illuminationPorts.includes(port) && telemetry) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function getTelemetryValue(port: string, telemetry) {\r\n if (getTelemetryIllumination(port, telemetry[port])) return 1;\r\n if (telemetry[state.electricalNetwork.port]) return 2;\r\n if (telemetry[port]) return 1;\r\n return 0;\r\n }\r\n\r\n function processReceivedTelemetry(telemetry) {\r\n state.F1.push({ x: telemetry.timestamp, value: getTelemetryValue('F1', telemetry) });\r\n state.F2.push({ x: telemetry.timestamp, value: getTelemetryValue('F2', telemetry) });\r\n state.F3.push({ x: telemetry.timestamp, value: getTelemetryValue('F3', telemetry) });\r\n state.F4.push({ x: telemetry.timestamp, value: getTelemetryValue('F4', telemetry) });\r\n state.F1.length > 6 && state.F1.shift();\r\n state.F2.length > 6 && state.F2.shift();\r\n state.F3.length > 6 && state.F3.shift();\r\n state.F4.length > 6 && state.F4.shift();\r\n }\r\n\r\n const wsl = useWebSocketLazy();\r\n\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'dmtSubscribeRealTime', data: { DMT_CODE: dmtId } });\r\n }\r\n\r\n function onWsMessage(response) {\r\n if (response && response.type === 'dmtTelemetry') {\r\n const data = moment(new Date(response.data.timestamp || response.data.deviceTimestamp));\r\n response.data.timestamp = data.format('YYYY-MM-DDTHH:mm:ss').split('T')[1];\r\n processReceivedTelemetry(response.data);\r\n render();\r\n }\r\n }\r\n\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'dmtUnsubscribeRealTime' });\r\n }\r\n\r\n if (state[state.electricalNetwork.port]) {\r\n state[state.electricalNetwork.port].forEach((data) => {\r\n if (data.value > 1) data.value = 1;\r\n });\r\n }\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n {\r\n state[state.electricalNetwork.port] && (\r\n \r\n \r\n \r\n

\r\n Monitoramento Rede Elétrica\r\n

\r\n

\r\n Status da Rede Elétrica\r\n

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n }\r\n ticks={[0, 1]}\r\n interval={0}\r\n domain={[0, 1]}\r\n />\r\n \r\n \r\n \r\n
\r\n )\r\n }\r\n \r\n \r\n

\r\n Portas do DMT\r\n

\r\n

\r\n Status de portas associadas\r\n

\r\n
\r\n
\r\n { state.nobreakList.length > 0 && state.nobreakList.map(((nobreak, key) => (\r\n \r\n ))) }\r\n { state.illuminationList.length > 0 && state.illuminationList.map((illumination, key) => (\r\n \r\n )) }\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nfunction IlluminationGraph({ name, data, t }: { name?: string, data, t}) {\r\n return (\r\n \r\n \r\n \r\n \r\n

\r\n { name }\r\n

\r\n
\r\n
\r\n

\r\n Feedback\r\n

\r\n \r\n
\r\n );\r\n}\r\n\r\nconst labelFormater = (value: number, isNobreak: boolean, t) => {\r\n if (value === 0) return t('desligado').toUpperCase();\r\n if (value === 1 && isNobreak) {\r\n return t('bateria').toUpperCase();\r\n }\r\n if (value && !isNobreak) {\r\n return t('ligado').toUpperCase();\r\n }\r\n\r\n if (value === 2 && isNobreak) return t('redeEletrica').toUpperCase();\r\n\r\n return value.toString();\r\n};\r\n\r\nconst NobreakCustomTick = (props) => {\r\n const {\r\n x, y, payload, anchor, isNobreak, t,\r\n } = props;\r\n\r\n const label = labelFormater(payload.value, isNobreak, t);\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n};\r\n\r\nfunction NobreakGraph({\r\n name, datId, data, t,\r\n}: { name?: string, datId?: string, data, t }) {\r\n return (\r\n \r\n \r\n \r\n \r\n

\r\n { name || '-' }\r\n

\r\n

\r\n {datId || ''}\r\n

\r\n
\r\n
\r\n \r\n
\r\n );\r\n}\r\n\r\nfunction GraphContainerAll({\r\n data, isNobreak, domain, ticks, t,\r\n}) {\r\n return (\r\n \r\n { data.length && (\r\n \r\n \r\n \r\n \r\n \r\n }\r\n ticks={ticks}\r\n interval={0}\r\n domain={domain}\r\n />\r\n \r\n \r\n ) }\r\n\r\n \r\n );\r\n}\r\n","import { useEffect } from 'react';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport moment from 'moment';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useParams, Link } from 'react-router-dom';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { UtilityIcon } from '~/icons';\r\nimport {\r\n ResponsiveContainer, CartesianGrid, XAxis, YAxis, Scatter, ScatterChart,\r\n} from 'recharts';\r\nimport { useWebSocketLazy } from '~/helpers/wsConnection';\r\nimport { toast } from 'react-toastify';\r\nimport { apiCall } from '~/providers';\r\nimport { InfoGraphCont } from './styles';\r\n\r\nconst TSPAN = 5 * 60 * 1000;\r\nconst ONLINE_TIMEOUT = 50 * 1000;\r\n\r\nfunction CustomTickFeedback(props) {\r\n const {\r\n x, y, payload, anchor,\r\n } = props;\r\n\r\n let label = payload.value;\r\n if (payload.value) {\r\n label = 'LIGADO';\r\n } else {\r\n label = 'DESLIGADO';\r\n }\r\n\r\n return (\r\n \r\n \r\n {label}\r\n \r\n \r\n );\r\n}\r\n\r\nfunction formatTimeToTimeAxios(date: moment.Moment, seconds = 0, format = 'HH:mm:ss') {\r\n return moment(date)\r\n .add(seconds, 'seconds')\r\n .format(format);\r\n}\r\n\r\nexport const DalRealTimeContent = ({ dalInfo }): JSX.Element => {\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ devId }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n graphData: {\r\n Control: [[] as { x: number, L?: number }[]],\r\n Feedback: [[] as { x: number, L?: number }[]],\r\n },\r\n illuminationList: dalInfo?.dal?.illuminationList || [],\r\n initialTimeRef: new Date().toISOString().substring(0, 19),\r\n onTelmTimer: undefined as undefined|NodeJS.Timeout,\r\n hasNewTelm: false,\r\n timezoneOffset: 0,\r\n };\r\n return state;\r\n });\r\n\r\n const { devId } = routeParams;\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n if (dalInfo.DEV_ID) {\r\n await apiCall('/get-timezone-offset-by-devId', { devId: dalInfo.DEV_ID }).then((tzOffset) => {\r\n if (tzOffset != null) state.timezoneOffset = tzOffset;\r\n });\r\n wsl.start(onWsOpen, onWsMessage, beforeWsClose);\r\n render();\r\n }\r\n } catch (err) {\r\n toast.error(t('erroDadosDispositivo'));\r\n console.log(err);\r\n }\r\n }());\r\n }, []);\r\n\r\n const wsl = useWebSocketLazy();\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'dalSubscribeRealTime', data: { DAL_CODE: devId } });\r\n }\r\n function onWsMessage(response) {\r\n if (response && response.type === 'dalTelemetry') {\r\n if (response.data.timestamp || (response.data.status === 'ONLINE' && response.data.deviceTimestamp)) {\r\n const data = moment(new Date(response.data.timestamp));\r\n response.data.timestamp = data.format('YYYY-MM-DDTHH:mm:ss');\r\n processReceivedTelemetry(response.data, state.graphData);\r\n clearTimeout(state.onTelmTimer);\r\n state.hasNewTelm = true;\r\n state.onTelmTimer = setTimeout(() => state.hasNewTelm && render(), 100);\r\n render();\r\n }\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'dalUnsubscribeRealTime' });\r\n }\r\n\r\n function processReceivedTelemetry(telemetry, currentData) {\r\n telemetry.time = new Date(telemetry.timestamp);\r\n const time = telemetry.time.getTime();\r\n telemetry.Relays.forEach((relay, index) => {\r\n if (!currentData.Control[index]) currentData.Control[index] = [];\r\n addTelemetryPoint(currentData.Control[index], { x: time, L: relay });\r\n });\r\n telemetry.Feedback.forEach((feedback, index) => {\r\n if (!currentData.Feedback[index]) currentData.Feedback[index] = [];\r\n addTelemetryPoint(currentData.Feedback[index], { x: time, L: feedback });\r\n });\r\n return currentData;\r\n }\r\n\r\n function addTelemetryPoint(chartPoints, newPoint?) {\r\n if (chartPoints.length === 0) {\r\n if (newPoint) {\r\n const chartTimeIni = new Date(newPoint.x - TSPAN).getTime();\r\n chartPoints.push({ x: chartTimeIni, L: NaN });\r\n chartPoints.push({ x: new Date(newPoint.x - 30 * 1000).getTime(), L: newPoint.L });\r\n chartPoints.push(newPoint);\r\n }\r\n return;\r\n }\r\n\r\n let lastPoint = chartPoints[chartPoints.length - 1];\r\n\r\n if (newPoint && (newPoint.x > lastPoint.x)) {\r\n const timeEndThreshold = new Date(newPoint.x - ONLINE_TIMEOUT).getTime();\r\n if (lastPoint.x < timeEndThreshold) {\r\n chartPoints.push({ x: timeEndThreshold, L: NaN });\r\n }\r\n chartPoints.push(newPoint);\r\n lastPoint = newPoint;\r\n }\r\n const chartTimeIni = new Date(lastPoint.x - TSPAN).getTime();\r\n // Remove old points\r\n while (chartPoints.length > 0 && (chartPoints[0].x < chartTimeIni)) {\r\n chartPoints.shift();\r\n }\r\n if (chartPoints[0].x > chartTimeIni) {\r\n chartPoints.unshift({ x: chartTimeIni, L: NaN });\r\n }\r\n }\r\n\r\n function CustomTickTime(props) {\r\n const {\r\n x, y, payload, anchor,\r\n } = props;\r\n return (\r\n \r\n \r\n {(payload.value > 1000000)\r\n ? new Date(payload.value).toLocaleTimeString()\r\n : formatTimeToTimeAxios(moment(state.initialTimeRef), payload.value)}\r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n {t('portasDoDal')}\r\n {t('statusPortasAssociadas')}\r\n\r\n {state.illuminationList.map((illum, index) => (\r\n \r\n \r\n \r\n \r\n {illum.NAME}\r\n \r\n \r\n\r\n \r\n {illum.PORT && (\r\n \r\n {t('controle')}\r\n
\r\n \r\n null}\r\n data={state.graphData.Control[illum.PORT - 1]}\r\n isAnimationActive={false}\r\n />\r\n \r\n
\r\n
\r\n )}\r\n {illum.FEEDBACK && (\r\n \r\n {t('feedback')}\r\n
\r\n \r\n null} data={state.graphData.Feedback[illum.FEEDBACK - 1]} isAnimationActive={false} />\r\n \r\n
\r\n
\r\n )}\r\n
\r\n \r\n \r\n ))}\r\n \r\n );\r\n};\r\n\r\nconst GraphContainer = ({ children, CustomTickTime }): JSX.Element => (\r\n \r\n \r\n \r\n \r\n \r\n }\r\n tickCount={6}\r\n domain={['dataMin', 'dataMax']}\r\n />\r\n }\r\n ticks={[0, 1]}\r\n domain={[0, 1]}\r\n interval={0}\r\n width={90}\r\n />\r\n { children }\r\n \r\n \r\n \r\n \r\n);\r\n","import { useEffect, useRef, useState } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport queryString from 'query-string';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory, useParams } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Loader, Card } from '~/components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { DevLayout } from '~/pages/Analysis/DEVs/DevLayout';\r\nimport { AssetLayout } from '~/pages/Analysis/Assets/AssetLayout';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { RealTimeContents } from '../DACs/RealTime';\r\nimport { DamRealTimeContents } from '../DAMs/DamRealTime';\r\nimport { DutAutRealTimeContents } from '../DUTs/DutAutRealTime';\r\nimport { EnvironmentRealTimeContents } from '../DUTs/EnvironmentRealTime';\r\nimport { Headers2 } from '../Header';\r\nimport { DmaRealTimeContents } from '../Integrations/IntegrRealTime/DmaRealTime';\r\nimport { DriRealTimeContents } from '../Integrations/IntegrRealTime/DriContents';\r\nimport { DmtRealTime } from '../DMTs/DmtRealTime/DmtRealTime';\r\nimport { DalRealTimeContent } from '../DALs/DalRealTime';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { TimezoneWarn } from '~/components/TimezoneWarn';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\n\r\nexport const DevRealTime = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [profile] = useState(getUserProfile);\r\n const history = useHistory();\r\n const routeParams = useParams<{ devId }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n assetLayout: false,\r\n };\r\n state.isLoading = !state.devInfo;\r\n return state;\r\n });\r\n\r\n async function getDevInfo() {\r\n if (!state.devInfo) {\r\n try {\r\n state.devInfo = await getCachedDevInfo(routeParams.devId, {});\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n const { devInfo } = state;\r\n const {\r\n isDam,\r\n isDutAut,\r\n isDri,\r\n isAutomationOnly,\r\n isDma,\r\n isDmt,\r\n isDal,\r\n } = setDevice();\r\n\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n\r\n state.assetLayout = linkBase.includes('/ativo');\r\n const allTabs = [\r\n {\r\n title: t('equipamento'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'equipamento' })}`,\r\n isActive: (queryPars.aba === 'equipamento') || (!queryPars.aba),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('automacao'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'automacao' })}`,\r\n isActive: (queryPars.aba === 'automacao'),\r\n visible: (!isAutomationOnly) && (isDam) && !profile.permissions.isInstaller,\r\n ref: useRef(null),\r\n },\r\n ];\r\n const tabs = allTabs.filter((x) => x.visible);\r\n\r\n useEffect(() => {\r\n getDevInfo();\r\n }, []);\r\n\r\n function setDevice() {\r\n const { devInfo } = state;\r\n const isDac = !!(devInfo && devInfo.dac);\r\n let isDam = !!(devInfo && devInfo.dam);\r\n const isDut = !!(devInfo && devInfo.dut);\r\n const isDmt = !!(devInfo && devInfo.dmt);\r\n let isDutAut = !!(devInfo && devInfo.dut_aut);\r\n const isDri = !!(devInfo && devInfo.dri);\r\n const isDal = !!(devInfo?.dal);\r\n // @ts-ignore\r\n if (isDam && devInfo.dac && devInfo.dam.DAM_DISABLED === 1) isDam = false;\r\n // @ts-ignore\r\n if (isDutAut && devInfo.dut_aut.DUTAUT_DISABLED === 1) isDutAut = false;\r\n const isAutomationOnly = isDam && (!isDac) && (!isDut);\r\n const isDma = !!(devInfo && devInfo.dma);\r\n return {\r\n isDac,\r\n isDam,\r\n isDut,\r\n isDutAut,\r\n isDri,\r\n isAutomationOnly,\r\n isDma,\r\n isDmt,\r\n isDal,\r\n };\r\n }\r\n\r\n function setScreenDevice(devInfo?) {\r\n if (allTabs[1].isActive && isDutAut) {\r\n return ;\r\n }\r\n if (isAutomationOnly || (allTabs[1].isActive && state.devInfo.dam)) {\r\n return ;\r\n }\r\n if (isDri) {\r\n return ;\r\n }\r\n if (allTabs[0].isActive && state.devInfo.dac) {\r\n return ;\r\n }\r\n if (allTabs[0].isActive && state.devInfo.dut) {\r\n return ;\r\n }\r\n if (isDmt) {\r\n return ;\r\n }\r\n if (isDal) {\r\n return ;\r\n }\r\n return t('vazio');\r\n }\r\n\r\n const dutSelected = () => state.devInfo?.dut?.PLACEMENT === 'DUO';\r\n\r\n function buildScreenInfoParams(): Parameters<(typeof AssetLayout)>[0]['screenInfo'] {\r\n return {\r\n forceHideHealthTab: false,\r\n groupSelected: true,\r\n hasNonDutDeviceInAssets: false,\r\n dutAutomationInfo: {},\r\n isDuoSelected: dutSelected(),\r\n assetRoleSelected: 0,\r\n };\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.devInfo?.DEV_ID, t('tempoRealMaiusculo'))}\r\n \r\n {!state.assetLayout ? () : ()}\r\n {(state.isLoading)\r\n && (\r\n
\r\n {' '}\r\n \r\n {' '}\r\n
\r\n )}\r\n {(state.devInfo && !state.isLoading)\r\n && (\r\n
\r\n {isDma ? : (\r\n \r\n {(tabs.length > 1)\r\n ? (\r\n
\r\n \r\n
\r\n ) : <> }\r\n
\r\n {setScreenDevice(devInfo)}\r\n
\r\n
\r\n )}\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('DevRealTime', 'component')(DevRealTime);\r\n","import { useEffect } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport { Loader, LayerBackgroundModal } from 'components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from 'helpers/cachedStorage';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { DevLayout } from 'pages/Analysis/DEVs/DevLayout';\r\nimport { SchedulesList, SchedulesRemove, SchedulesEdit } from 'pages/Analysis/SchedulesModals/DUT_Schedule';\r\nimport { apiCall } from 'providers';\r\nimport { DayProg, FullProg_v4 } from 'providers/types';\r\n\r\nconst handleSelectTitle = {\r\n List: 'Programação',\r\n Edit: 'Editar programação',\r\n Remove: 'Excluir programação',\r\n Add: 'Adicionar programação',\r\n};\r\n\r\nexport const DutSchedule = (): JSX.Element => {\r\n const routeParams = useParams<{ devId: string }>();\r\n const [, render] = useStateVar({});\r\n const devInfo = getCachedDevInfoSync(routeParams.devId);\r\n return (\r\n <>\r\n \r\n Diel Energia - Programação DUT\r\n \r\n \r\n
\r\n \r\n \r\n );\r\n};\r\n\r\nexport function DutScheduleContents(props: { onDevInfoUpdate?: () => void }) {\r\n const { onDevInfoUpdate } = props;\r\n const routeParams = useParams<{ devId: string }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n isSaving: false,\r\n devId: routeParams.devId,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n devSched: { week: {}, exceptions: {} } as FullProg_v4,\r\n schedulesTypeActive: null as null|('Edit'|'Remove'|'Add'),\r\n editedDay: null as null|('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun'),\r\n };\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n getData();\r\n }, []);\r\n\r\n async function getData() {\r\n try {\r\n setState({ isLoading: true });\r\n const schedProm = apiCall('/dut/get-programming-v3', { dutId: state.devId });\r\n schedProm.catch((err) => { console.log(err); });\r\n const devInfo = await getCachedDevInfo(state.devId, {});\r\n state.devInfo = devInfo;\r\n if (onDevInfoUpdate) onDevInfoUpdate();\r\n const devSched = await schedProm;\r\n if (!devSched) throw Error('Could not get device schedule');\r\n if (!devSched.week) devSched.week = {};\r\n if (!devSched.exceptions) devSched.exceptions = {};\r\n state.devSched = devSched;\r\n } catch (err) {\r\n console.log(err);\r\n // toast.warn('Não existem programações ativas')\r\n toast.error('Houve erro');\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n function cloneProg(): typeof state.devSched {\r\n const newProg: typeof state.devSched = JSON.parse(JSON.stringify(state.devSched));\r\n if (!newProg.week) newProg.week = {};\r\n if (!newProg.exceptions) newProg.exceptions = {};\r\n return newProg;\r\n }\r\n\r\n async function saveProg(prog: FullProg_v4) {\r\n try {\r\n setState({ isSaving: true });\r\n const devSched = await apiCall('/dut/set-programming-v3', {\r\n dutId: state.devId,\r\n ...prog,\r\n });\r\n state.devSched = devSched;\r\n toast.success('Programação salva com sucesso!');\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível salvar a programação');\r\n }\r\n setState({ isSaving: false });\r\n }\r\n\r\n async function wantSaveVent(ventInput: string) {\r\n const newProg = cloneProg();\r\n const ventilation = (ventInput && Number(ventInput)) || 0;\r\n newProg.ventTime = { begin: ventilation, end: ventilation };\r\n await saveProg(newProg);\r\n }\r\n\r\n // async function wantSaveCtrl(mode: '0_NO_CONTROL'|'1_CONTROL'|'2_SOB_DEMANDA'|'3_BACKUP', temperature: number) {\r\n // const newProg = cloneProg();\r\n // newProg.temprtControl = { mode, temperature };\r\n // await saveProg(newProg);\r\n // }\r\n\r\n async function wantDelException(day: string) {\r\n const newProg = cloneProg();\r\n if (!newProg.exceptions) return;\r\n if (!newProg.exceptions[day]) return;\r\n if (!window.confirm('Tem certeza?')) return;\r\n delete newProg.exceptions[day];\r\n await saveProg(newProg);\r\n }\r\n\r\n async function onConfirmProg(days: ('mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun')[], prog: DayProg) {\r\n try {\r\n const newProg = cloneProg();\r\n for (const day of days) {\r\n newProg.week[day] = prog;\r\n }\r\n await saveProg(newProg);\r\n toast.success('Programação adicionada com sucesso!');\r\n state.editedDay = null;\r\n state.schedulesTypeActive = null;\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível adicionar a programação.');\r\n }\r\n setState({ isSaving: false });\r\n }\r\n\r\n async function onConfirmExcept(day: string, prog: DayProg) {\r\n try {\r\n const newProg = cloneProg();\r\n if (!newProg.exceptions) newProg.exceptions = {};\r\n newProg.exceptions[day] = prog;\r\n await saveProg(newProg);\r\n toast.success('Programação adicionada com sucesso!');\r\n state.editedDay = null;\r\n state.schedulesTypeActive = null;\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Não foi possível adicionar a programação.');\r\n }\r\n setState({ isSaving: false });\r\n }\r\n\r\n async function onConfirmRemoveProg(day: 'mon'|'tue'|'wed'|'thu'|'fri'|'sat'|'sun') {\r\n const newProg = cloneProg();\r\n if (newProg.week[day]) {\r\n delete newProg.week[day];\r\n await saveProg(newProg);\r\n }\r\n setState({ schedulesTypeActive: null, editedDay: null });\r\n }\r\n\r\n return (\r\n \r\n {state.isLoading ? (\r\n \r\n ) : (state.devSched && (\r\n <>\r\n
\r\n \r\n setState({ schedulesTypeActive: 'Add', editedDay: null })}\r\n wantEditDay={(day) => setState({ schedulesTypeActive: 'Edit', editedDay: day })}\r\n wantRemoveDay={(day) => setState({ schedulesTypeActive: 'Remove', editedDay: day })}\r\n isLoading={state.isSaving}\r\n />\r\n \r\n
\r\n {(state.schedulesTypeActive)\r\n && (\r\n \r\n \r\n \r\n \r\n {(state.schedulesTypeActive === 'Edit') && (\r\n setState({ schedulesTypeActive: null, editedDay: null })}\r\n isSending={state.isSaving}\r\n />\r\n )}\r\n {(state.schedulesTypeActive === 'Remove') && (\r\n setState({ schedulesTypeActive: null, editedDay: null })}\r\n isRemoving={state.isSaving}\r\n />\r\n )}\r\n {(state.schedulesTypeActive === 'Add') && (\r\n setState({ schedulesTypeActive: null, editedDay: null })}\r\n isSending={state.isSaving}\r\n />\r\n )}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n ))}\r\n
\r\n );\r\n}\r\n\r\nconst Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n background-color: white;\r\n`;\r\nconst ElevatedCard = styled.div`\r\n padding: 32px;\r\n border-radius: 10px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n","import { useEffect } from 'react';\r\nimport { t } from 'i18next';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Loader } from '~/components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from '~/helpers/cachedStorage';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { DevLayout } from '~/pages/Analysis/DEVs/DevLayout';\r\n\r\nimport { DamSchedule } from '../DAMs/DamSchedule';\r\nimport { DutSchedule } from '../DUTs/DutSchedule';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport const DevSchedule = (): JSX.Element => {\r\n const routeParams = useParams<{ devId }>();\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n isLoading: true,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n };\r\n state.isLoading = !state.devInfo;\r\n return state;\r\n });\r\n\r\n useEffect(() => {\r\n if (!state.devInfo) {\r\n (async function () {\r\n try {\r\n state.devInfo = await getCachedDevInfo(routeParams.devId, {});\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n setState({ isLoading: false });\r\n }());\r\n }\r\n }, []);\r\n\r\n return (\r\n (state.isLoading)\r\n ? (\r\n <>\r\n \r\n {t('dielEnergiaProgramacao')}\r\n \r\n \r\n
\r\n \r\n \r\n )\r\n : (state.devInfo && state.devInfo.dut_aut)\r\n ? \r\n : \r\n );\r\n};\r\n\r\nexport default withTransaction('DevSchedule', 'component')(DevSchedule);\r\n","export default __webpack_public_path__ + \"static/media/BackupEcoV2DamDac.85540572.png\";","import styled from 'styled-components';\r\n\r\nimport {\r\n Button,\r\n} from '~/components';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const InfoItem = styled.div`\r\n width: 150px;\r\n margin-right: 20px;\r\n margin-bottom: 30px;\r\n`;\r\n\r\nexport const CardIntem = styled(Button)`\r\n width: auto;\r\n padding: 0 8px;\r\n margin-left: 5px;\r\n`;\r\n\r\nexport const TableNew2 = styled.table`\r\n white-space: nowrap;\r\n box-shadow: rgba(62, 71, 86, 0.2) 0px 2px 8px;\r\n border-collapse: collapse;\r\n & tbody {\r\n border: 1px solid ${colors.Grey};\r\n & tr {\r\n height: 35px;\r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${colors.Grey};\r\n }\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n }\r\n & td {\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n }\r\n }\r\n & thead {\r\n & tr {\r\n height: 40px;\r\n display: table-row;\r\n }\r\n & th {\r\n flex: 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 0 10px;\r\n word-break: normal;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n background-color: ${colors.Blue300};\r\n color: ${colors.White};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n }\r\n }\r\n`;\r\n\r\nexport const FileInput = styled.label`\r\n border-radius: 5px;\r\n border-style: solid;\r\n border-width: 1px;\r\n cursor: pointer;\r\n font-size: 1em;\r\n font-family: 'Open Sans', sans-serif;\r\n font-weight: bold;\r\n outline: none;\r\n padding: 8px 0px;\r\n text-decoration: none;\r\n text-transform: uppercase;\r\n transition: all 0.2s ease-in-out;\r\n width: 100%;\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.12), 0px 11px 15px rgba(85, 97, 115, 0.1);\r\n background-color: ${colors.Pink200};\r\n border-color: ${colors.Pink200};\r\n color: ${colors.White};\r\n transition: all 0.3s ease-in-out;\r\n &:hover {\r\n background-color: ${colors.Pink300};\r\n border-color: ${colors.Pink300};\r\n box-shadow: 0px 7px 12px rgba(83, 104, 111, 0.35), 0px 11px 15px rgba(85, 97, 115, 0.25);\r\n }\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-left: 20px;\r\n text-decoration: underline;\r\n font-size: 12px;\r\n`;\r\n\r\nexport const ControlTemperatureButton = styled.div<{ isActive?: boolean, noBorder?: boolean }>`\r\n border: 0.7px solid ${colors.GreyInputBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 5px;\r\n width: 70px;\r\n height: 70px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n ${({ isActive }) => (isActive ? `background-color: ${colors.BlueSecondary};` : '')}\r\n`;\r\n\r\nexport const SetpointButton = styled.div<{ up?: boolean, down?: boolean }>`\r\n flex-basis: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n border-left: 0.7px solid ${colors.GreyInputBorder};\r\n user-select: none;\r\n ${({ up }) => (up ? `border-bottom: 0.7px solid ${colors.GreyInputBorder}` : '')}\r\n ${({ down }) => (down ? `border-top: 0.7px solid ${colors.GreyInputBorder}` : '')}\r\n`;\r\n\r\nexport const SelectSearchStyled = styled.div`\r\n .select-search__option {\r\n min-height: 36px;\r\n height: fit-content;\r\n }\r\n`;\r\n","import { ReactElement } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Select } from 'components/NewSelect';\r\nimport {\r\n currentCapacityOpts,\r\n driLayerOpts, driParityOpts, driProtocolsOpts, driStopBitsOpts, installationTypeOpts, modbusBaudRateOpts,\r\n} from '~/helpers/driConfigOptions';\r\nimport { Input } from '~/components';\r\nimport { CustomInput } from '~/components/FormMachine/styles';\r\nimport { Label, SearchInput } from '../../../styles';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { DriConfigState } from '../types';\r\nimport { isAutomation } from '~/helpers/driConfig';\r\n\r\ninterface ParametersProps {\r\n state: DriConfigState;\r\n setState: (newState: Partial) => void;\r\n render: () => void;\r\n}\r\n\r\nconst allowedMeterModelsDriSlaveId = ['Nexus II', 'EM210', 'MULT-K', 'MULT-K 05', 'MULT-K 120', 'iKRON 03', 'ET330', 'Schneider PM2100', 'Schneider PM210', 'ETE-30', 'ETE-50', 'Schneider PM9C'];\r\n\r\nexport function DriConfigParameters({ state, setState, render }: ParametersProps): ReactElement | null {\r\n const { t } = useTranslation();\r\n\r\n function verifyDisabled() {\r\n return !(state.driProtocol && ['Modbus RTU', 'Carrier ECOSPLIT'].includes(state.driProtocol))\r\n || state.driApplication === 'Carrier ECOSPLIT'\r\n || state.driApplication === 'VAV'\r\n || state.driApplication === 'Fancoil'\r\n || (state.driApplication === 'Medidor de Energia'\r\n && !['Nexus II', 'EM210', 'MULT-K', 'MULT-K 05', 'MULT-K 120', 'iKRON 03', 'ET330', 'ETE-30', 'ETE-50', 'Schneider PM2100', 'Schneider PM210', 'Schneider PM9C'].includes(state.driMeterModel?.NAME ?? ''));\r\n }\r\n\r\n function disableDriLayer() {\r\n return state.driApplication === 'Carrier ECOSPLIT'\r\n || state.driApplication === 'VAV'\r\n || state.driApplication === 'Fancoil'\r\n || (state.driApplication === 'Medidor de Energia'\r\n && !['Nexus II', 'iKRON 03', 'ET330', 'Schneider PM2100'].includes(state.driMeterModel?.NAME || ''));\r\n }\r\n\r\n function disabledDriProtocol() {\r\n return state.driApplication === 'Carrier ECOSPLIT'\r\n || state.driApplication === 'VAV'\r\n || state.driApplication === 'Fancoil'\r\n || (state.driApplication === 'Medidor de Energia'\r\n && !['Nexus II', 'MULT-K', 'MULT-K 05', 'MULT-K 120', 'ET330', 'Schneider PM2100'].includes(state.driMeterModel?.NAME || ''));\r\n }\r\n\r\n if (!state.application || (isAutomation(state) && !state.automation)) {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n
{t('parametros')}
\r\n
\r\n { state.driProtocol = item; render(); }}\r\n />\r\n { state.modbusBaudRate = item; render(); }}\r\n />\r\n { state.driParity = item; render(); }}\r\n />\r\n { state.driLayer = item; render(); }}\r\n />\r\n { state.driStopBits = item; render(); }}\r\n />\r\n setState({ driSendInterval: event.target.value })}\r\n />\r\n {state.driMeterModel?.NAME && ['ET330', 'EM210', 'MULT-K', 'MULT-K 05', 'MULT-K 120'].includes(state.driMeterModel.NAME) && (\r\n <>\r\n setState({ selectedInstallationType: value })}\r\n />\r\n {!['MULT-K 120'].includes(state.driMeterModel.NAME) && (\r\n \r\n
\r\n \r\n {\r\n setState({ selectedCurrentCapacity: { name: `${value}A`, value: value.toString() } });\r\n }}\r\n closeOnSelect={false}\r\n />\r\n
\r\n \r\n )}\r\n \r\n )}\r\n {((state.driMeterModel?.NAME && allowedMeterModelsDriSlaveId.includes(state.driMeterModel?.NAME || ''))\r\n || state.driApplication === 'Chiller Carrier') && (\r\n {\r\n if (Number(event.target.value) || event.target.value === '') {\r\n state.driSlaveId = event.target.value;\r\n render();\r\n }\r\n }}\r\n />\r\n )}\r\n
\r\n
\r\n );\r\n}\r\n","import { ReactElement } from 'react';\r\nimport { Input } from 'components';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Select } from 'components/NewSelect';\r\nimport { DriConfigState } from '../types';\r\nimport { isFancoil, isFancoilVavAutomation, isVAV } from '~/helpers/driConfig';\r\n\r\ninterface ManufacturerProps {\r\n state: DriConfigState;\r\n setState: (newState: Partial) => void;\r\n}\r\n\r\nexport function Manufacturer({\r\n state,\r\n setState,\r\n}: ManufacturerProps): ReactElement | null {\r\n const { t } = useTranslation();\r\n const vav = isVAV(state);\r\n const fancoil = isFancoil(state);\r\n\r\n if (!isFancoilVavAutomation(state)) {\r\n return null;\r\n }\r\n\r\n return (\r\n <>\r\n setState({ valveManuf: item })}\r\n />\r\n {state.valveManuf === t('outroDigitar') && (\r\n setState({ otherValveManuf: event.target.value })}\r\n />\r\n )}\r\n setState({ valveModel: event.target.value })}\r\n />\r\n {vav && (\r\n <>\r\n setState({ vavBoxManuf: item })}\r\n />\r\n setState({ vavBoxModel: event.target.value })}\r\n />\r\n \r\n )}\r\n {fancoil && (\r\n <>\r\n setState({ fancoilManuf: item })}\r\n />\r\n {state.fancoilManuf === t('outroDigitar') && (\r\n setState({ otherFancoilManuf: event.target.value })}\r\n />\r\n\r\n )}\r\n setState({ fancoilModel: event.target.value })}\r\n />\r\n \r\n )}\r\n\r\n \r\n );\r\n}\r\n","import { ReactElement } from 'react';\r\nimport { Option, Select } from '~/components/NewSelect';\r\nimport { DriConfigState } from '../types';\r\nimport { useTranslation } from 'react-i18next';\r\nimport {\r\n driApplicationCfgs, driApplicationOpts, driLayerOpts, driParityOpts, driProtocolsOpts, driStopBitsOpts, driVAVApplicationsOptions,\r\n vavFancoilValveTypes,\r\n} from '~/helpers/driConfigOptions';\r\nimport { getKeyByValue } from '../../IntegrRealTime/DriContents';\r\nimport { Manufacturer } from './DriConfigManufacturer';\r\nimport {\r\n isAutomation, isFancoilVavAutomation, isVAV,\r\n} from '~/helpers/driConfig';\r\nimport { Input } from '~/components';\r\n\r\ninterface AutomationProps {\r\n state: DriConfigState;\r\n setState: (newState: Partial) => void;\r\n render: () => void;\r\n resetCfgFields: () => void;\r\n}\r\n\r\nexport function DriConfigAutomation({\r\n render, setState, state, resetCfgFields,\r\n}: AutomationProps): ReactElement | null {\r\n const { t } = useTranslation();\r\n const vav = isVAV(state);\r\n\r\n const setDriApplication = (item?: {name: string, value: string}) => {\r\n state.driApplication = getKeyByValue(driApplicationOpts, item?.value) ?? null;\r\n resetCfgFields();\r\n if (item?.value === 'carrier-ecosplit') {\r\n state.driProtocol = getKeyByValue(driProtocolsOpts, 'carrier-ecosplit') ?? null;\r\n state.modbusBaudRate = '9600';\r\n state.driParity = 'Desabilitado';\r\n state.driLayer = 'RS-485';\r\n state.driStopBits = '1 Stop Bit';\r\n state.driSendInterval = '60';\r\n }\r\n };\r\n\r\n if (!isAutomation(state)) {\r\n return null;\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n {\r\n state.automation = (item !== '') ? item : '';\r\n setDriApplication(item);\r\n render();\r\n }}\r\n propLabel=\"name\"\r\n />\r\n {vav && (\r\n setState({ roomName: event.target.value })}\r\n />\r\n )}\r\n {isFancoilVavAutomation(state) && (\r\n {\r\n setState({ selectedValveModel: item });\r\n }}\r\n propLabel=\"name\"\r\n />\r\n )}\r\n
\r\n {isFancoilVavAutomation(state) && (\r\n
\r\n setState({ thermManuf: item })}\r\n />\r\n {\r\n if (item) {\r\n const value = (item as Option).value;\r\n state.driVavFancoilModel = value;\r\n const defaultConfig = driApplicationCfgs[value];\r\n if (state.driApplication === 'Fancoil' && defaultConfig.application) {\r\n const application = defaultConfig.application.split('-');\r\n application[0] = 'fancoil';\r\n defaultConfig.application = application.join('-');\r\n }\r\n if (defaultConfig) {\r\n state.driProtocol = getKeyByValue(driProtocolsOpts, defaultConfig.protocol) || null;\r\n state.modbusBaudRate = defaultConfig.modbusBaudRate;\r\n state.driParity = getKeyByValue(driParityOpts, defaultConfig.parity) || null;\r\n state.driLayer = getKeyByValue(driLayerOpts, defaultConfig.serialMode) || null;\r\n state.driStopBits = getKeyByValue(driStopBitsOpts, defaultConfig.stopBits) || null;\r\n } else { resetCfgFields(); }\r\n } else {\r\n state.driVavFancoilModel = item;\r\n }\r\n render();\r\n }}\r\n />\r\n \r\n
\r\n )}\r\n \r\n );\r\n}\r\n","import { ReactElement } from 'react';\r\nimport { DriConfigState } from '../types';\r\nimport { Flex } from 'reflexbox';\r\nimport { Label, SearchInput } from '../../../styles';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { ClearSelect } from '~/components';\r\nimport { Select } from '~/components/NewSelect';\r\nimport { SelectSearchStyled } from '../styles';\r\n\r\ninterface DriConfigChillerCarrierProps {\r\n state: DriConfigState;\r\n render: () => void;\r\n updateAssets: () => Promise;\r\n setVariablesChiller: (name: string) => void;\r\n}\r\n\r\nexport function DriConfigChillerCarrier({\r\n state,\r\n render,\r\n updateAssets,\r\n setVariablesChiller,\r\n}: DriConfigChillerCarrierProps): ReactElement | null {\r\n const { t } = useTranslation();\r\n\r\n if (state.driApplication !== 'Chiller Carrier') {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n ({\r\n value: item.value,\r\n name: item.label,\r\n unit: item.unit,\r\n }))}\r\n value={state.formData.GROUP_ID_item?.value.toString()}\r\n placeholder={t('conjunto')}\r\n search\r\n filterOptions={fuzzySearch}\r\n onChange={(value, name) => {\r\n // @ts-ignore\r\n state.formData.GROUP_ID_item = name;\r\n render();\r\n updateAssets();\r\n }}\r\n disabled={!state.formData.UNIT_ID_item?.UNIT_ID}\r\n />\r\n \r\n \r\n {state.formData.GROUP_ID_item?.value && (\r\n
\r\n {\r\n state.formData.GROUP_ID_item = null;\r\n state.formData.ASSET_ID_item = null;\r\n render();\r\n }}\r\n value={state.formData.GROUP_ID_item.name || state.formData.GROUP_ID_item.label}\r\n />\r\n
\r\n )}\r\n
\r\n \r\n \r\n
\r\n \r\n {\r\n // @ts-ignore\r\n state.formData.ASSET_ID_item = name;\r\n render();\r\n }}\r\n disabled={!state.formData.GROUP_ID_item?.value}\r\n />\r\n
\r\n \r\n {state.formData.ASSET_ID_item?.value && (\r\n
\r\n {\r\n state.formData.ASSET_ID_item = null;\r\n render();\r\n }}\r\n value={state.formData.ASSET_ID_item?.label}\r\n />\r\n
\r\n )}\r\n
\r\n {\r\n state.driChillerCarrierLine = item;\r\n setVariablesChiller(item.name);\r\n state.driChillerCarrierModel = null;\r\n render();\r\n }}\r\n />\r\n {\r\n if (state.driChillerCarrierLine?.name) {\r\n return item.name.startsWith(state.driChillerCarrierLine?.name);\r\n }\r\n return true;\r\n })}\r\n propLabel=\"name\"\r\n value={state.driChillerCarrierModel}\r\n disabled={!state.driChillerCarrierLine}\r\n onSelect={(item) => {\r\n state.driChillerCarrierModel = item;\r\n render();\r\n }}\r\n />\r\n {\r\n state.driChillerCarrierGateway = item;\r\n render();\r\n }}\r\n />\r\n
\r\n );\r\n}\r\n","import { ReactElement } from 'react';\r\nimport { DriConfigState } from '../types';\r\nimport { Select } from '~/components/NewSelect';\r\nimport { Input } from '~/components';\r\nimport { getKeyByValue } from '../../IntegrRealTime/DriContents';\r\nimport {\r\n driLayerOpts, driMetersCfgs, driParityOpts, driProtocolsOpts, driStopBitsOpts,\r\n} from '~/helpers/driConfigOptions';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\ninterface DriConfigEnergyMeterProps {\r\n state: DriConfigState;\r\n render: () => void;\r\n resetCfgFields: () => void;\r\n}\r\n\r\nexport function DriConfigEnergyMeter({\r\n render,\r\n resetCfgFields,\r\n state,\r\n}: DriConfigEnergyMeterProps): ReactElement | null {\r\n const { t } = useTranslation();\r\n\r\n if (state.driApplication !== 'Medidor de Energia') {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n {\r\n state.driMeterModel = item;\r\n state.selectedCurrentCapacity = null;\r\n state.selectedInstallationType = null;\r\n state.driSlaveId = '1';\r\n const defaultConfig = driMetersCfgs[item.NAME];\r\n\r\n if (defaultConfig) {\r\n state.driProtocol = getKeyByValue(driProtocolsOpts, defaultConfig.protocol) || null;\r\n state.modbusBaudRate = defaultConfig.modbusBaudRate;\r\n state.driParity = getKeyByValue(driParityOpts, defaultConfig.parity) || null;\r\n state.driLayer = getKeyByValue(driLayerOpts, defaultConfig.serialMode) || null;\r\n state.driStopBits = getKeyByValue(driStopBitsOpts, defaultConfig.stopBits) || null;\r\n state.driSendInterval = defaultConfig.telemetryInterval;\r\n state.driSlaveId = defaultConfig.driSlaveId ?? state.driSlaveId;\r\n } else { resetCfgFields(); }\r\n render();\r\n }}\r\n />\r\n { state.formData.establishmentName = event.target.value; render(); }}\r\n />\r\n
\r\n );\r\n}\r\n","import { ReactElement, useEffect, useRef } from 'react';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { DevFullInfo } from 'store';\r\nimport { DriException, DriSchedule, DriScheduleContent } from 'pages/Analysis/SchedulesModals/DRI_ScheduleModal';\r\nimport { apiCall } from 'providers';\r\nimport { toast } from 'react-toastify';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { deleteProgramming, insertProgramming, updateProgramming } from '~/helpers/driSchedule';\r\n\r\ninterface DriConfigSchedulesAutomationProps {\r\n devInfo: DevFullInfo | null;\r\n}\r\n\r\nexport function DriConfigSchedulesAutomation({\r\n devInfo,\r\n}: DriConfigSchedulesAutomationProps): ReactElement | null {\r\n const isFirstRender = useRef(true);\r\n const { t } = useTranslation();\r\n\r\n const [driState, , setDriState] = useStateVar({\r\n schedules: [] as DriSchedule[],\r\n exceptions: [] as DriException[],\r\n });\r\n\r\n async function callDriSchedules(devId: string): Promise {\r\n try {\r\n const { list: schedulesList } = await apiCall('/dri/get-dri-scheds', { DRI_ID: devId });\r\n const schedules: DriSchedule[] = [];\r\n const exceptions: DriException[] = [];\r\n\r\n for (const sched of schedulesList) {\r\n if (sched.EXCEPTION_DATE) {\r\n exceptions.push(sched);\r\n } else {\r\n schedules.push(sched);\r\n }\r\n }\r\n\r\n setDriState({\r\n exceptions,\r\n schedules,\r\n });\r\n } catch (error) {\r\n console.error(error);\r\n toast.error(t('naoFoiPossivelBuscarProgramacoesExcecoesDRI'));\r\n }\r\n }\r\n\r\n function refetch(): void {\r\n if (devInfo) {\r\n callDriSchedules(devInfo.DEV_ID);\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n if (devInfo && isFirstRender.current) {\r\n isFirstRender.current = false;\r\n callDriSchedules(devInfo.DEV_ID);\r\n }\r\n }, [devInfo]);\r\n\r\n if (!devInfo) {\r\n return null;\r\n }\r\n\r\n return (\r\n
\r\n insertProgramming(refetch, sched),\r\n onDeleteProgramming: (sched) => deleteProgramming(refetch, sched),\r\n onEditProgramming: (sched) => updateProgramming(refetch, sched),\r\n }}\r\n />\r\n
\r\n );\r\n}\r\n","import { useEffect, useState, useRef } from 'react';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { colors } from '~/styles/colors';\r\nimport queryString from 'query-string';\r\nimport { toast } from 'react-toastify';\r\nimport { AxiosError } from 'axios';\r\nimport { Flex } from 'reflexbox';\r\nimport {\r\n Button,\r\n ClearSelect,\r\n Input,\r\n Loader,\r\n} from '~/components';\r\nimport { Select } from '~/components/NewSelect';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport parseDecimalNumber from 'helpers/parseDecimalNumber';\r\nimport { useDebouncedRender, useStateVar } from '~/helpers/useStateVar';\r\nimport { apiCall, apiCallFormData, ApiResps } from '~/providers';\r\nimport { Headers2 } from '../../../Header';\r\nimport { SearchInput } from '../../../styles';\r\nimport { BtnClean } from '../styles';\r\n\r\nimport {\r\n driApplicationOpts,\r\n driMeterApplications,\r\n driProtocolsOpts,\r\n driParityOpts,\r\n driStopBitsOpts,\r\n driLayerOpts,\r\n currentCapacityOpts,\r\n installationTypeOpts,\r\n driVAVsApplications,\r\n driApplicationCfgs,\r\n driFancoilsApplications,\r\n vavFancoilValveTypes,\r\n getDriChillerCarrierApplications,\r\n} from '~/helpers/driConfigOptions';\r\nimport { checkProtocolValue } from '~/helpers/driConfig';\r\nimport { useTranslation } from 'react-i18next';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { Label } from '~/components/FormMachine/styles';\r\nimport { OverLay } from '~/components/EnergyEfficiencyCard/styles';\r\nimport { getCachedDevInfo } from '~/helpers/cachedStorage';\r\nimport { DevFullInfo } from '~/store';\r\nimport { RssiComponent } from '../../IntegrRealTime/components/RssiComponent';\r\nimport { useWebSocket } from '~/helpers/wsConnection';\r\nimport { verifyAndUpdateRSSI } from '~/helpers/rssi';\r\nimport { DriConfigParameters } from './DriConfigParameters';\r\nimport { DriConfigState } from '../types';\r\nimport { DriConfigAutomation } from './DriConfigAutomation';\r\nimport { DriConfigChillerCarrier } from './DriConfigChillerCarrier';\r\nimport { DriConfigEnergyMeter } from './DriConfigEnergyMeter';\r\nimport { DriConfigSchedulesAutomation } from './DriConfigSchedulesAutomation';\r\n\r\nfunction getKeyByValue(object, value) {\r\n return Object.keys(object).find((key) => object[key] === value);\r\n}\r\nfunction valueOrNull(value) {\r\n return value ?? null;\r\n}\r\n\r\nconst MANUFACTURER = 'Diel Energia';\r\n\r\nexport const DriConfig = (props: {\r\n devInfoResp: ApiResps['/get-integration-info'],\r\n varsList: {\r\n varId: string\r\n name: string\r\n currVal?: string\r\n valUnit?: string\r\n card?: string\r\n subcard?: string\r\n relevance?: string | number\r\n }[],\r\n cards: string[],\r\n subcards: string[],\r\n relevances: string[],\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n\r\n const [state, render, setState] = useStateVar({\r\n isLoading: false,\r\n devInfo: null as null|DevFullInfo,\r\n modbusBaudRate: '',\r\n listModelsChiller: {} as { ID: number, MODEL_NAME: string }[],\r\n listGatewaysChiller: {} as { ID: number, GATEWAY_NAME: string }[],\r\n driApplication: null as null | string,\r\n driMeterModel: null as null | { MODEL_ID: number, MANUFACTURER_ID: number, NAME: string },\r\n driChillerCarrierModel: null as null | { id: string, name: string },\r\n driChillerCarrierLine: null as null | { id: string, name: string },\r\n driChillerCarrierGateway: null as null | { id: string, name: string },\r\n driVavFancoilModel: null as null | string,\r\n thermManuf: null as null | string,\r\n valveManuf: null as null | string,\r\n otherValveManuf: '',\r\n valveModel: '',\r\n selectedValveModel: vavFancoilValveTypes[0],\r\n vavBoxManuf: null as null | string,\r\n vavBoxModel: '',\r\n fancoilManuf: null as null | string,\r\n fancoilModel: '',\r\n otherFancoilManuf: '',\r\n roomName: '',\r\n vavLoaded: false,\r\n fancoilLoaded: false,\r\n driProtocol: null as null | string,\r\n driParity: null as null | string,\r\n driLayer: null as null | string,\r\n driStopBits: null as null | string,\r\n driSendInterval: '',\r\n selectedCurrentCapacity: null as null | { name: string, value: string },\r\n selectedInstallationType: null as null | { name: string, value: string },\r\n driSlaveId: '',\r\n driCfgFile: null as null | (Blob & { name: string }),\r\n comboOpts: {\r\n clients: [] as { NAME: string, CLIENT_ID: number }[],\r\n states: [] as { STATE_NAME: string, STATE_ID: string }[],\r\n cities: [] as { CITY_NAME: string, CITY_ID: string, STATE_ID: string }[],\r\n units: [] as { UNIT_NAME: string, UNIT_ID: number }[],\r\n duts: [] as { comboLabel: string, DUT_ID: string }[],\r\n enableEco: [{ name: t('sim'), value: 1 }, { name: t('nao'), value: 0 }],\r\n ecoModeCfg: [{ name: t('desligar'), value: 'eco-D' }, { name: t('ventilar'), value: 'eco-V' }],\r\n meterModels: [] as { MODEL_ID: number, MANUFACTURER_ID: number, NAME: string }[],\r\n thermManuf: [] as string[],\r\n valveManuf: [] as string[],\r\n boxManuf: [] as string[],\r\n fancoilManuf: [] as string[],\r\n fancoilValveManuf: [] as string[],\r\n groups: [] as { label: string, value: number, withDacAut?: boolean, checked?: boolean, unit: number}[],\r\n assets: [] as { value: number, label: string, name: string, UNIT_ID: number, CLIENT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, DAT_ID: string|null, DAT_INDEX: number|null, MCHN_APPL: string|null, MCHN_BRAND: string|null }[],\r\n chillerLines: [] as { name: string, id: string }[],\r\n chillerModels: [] as { name: string, id: string }[],\r\n chillerGateways: [] as { name: string, id: string }[],\r\n applications: [\r\n { name: t('Automação'), value: 'automation' },\r\n { name: 'Chiller', value: 'chiller-carrier' },\r\n { name: t('MedicaodeEnergia'), value: 'medidor-energia' },\r\n ],\r\n automation: [\r\n { name: 'Carrier Ecosplit', value: 'carrier-ecosplit' },\r\n { name: 'Fancoil', value: 'fancoil' },\r\n { name: 'VAV', value: 'vav' },\r\n ],\r\n },\r\n formData: {\r\n CLIENT_ID_item: null as null | { NAME: string, CLIENT_ID: number },\r\n UNIT_ID_item: null as null | { UNIT_NAME: string, UNIT_ID: number },\r\n GROUP_ID_item: null as null|{ label: string, value: number, unit: number, name?: string },\r\n ASSET_ID_item: null as null|{ value: number, label: string, UNIT_ID: number, CLIENT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, DAT_ID: string|null, DAT_INDEX: number|null },\r\n establishmentName: '',\r\n REL_DUT_ID_item: null as null | { comboLabel: string, DUT_ID: string },\r\n ENABLE_ECO_item: null as null | { name: string, value: number },\r\n ECO_MODE_CFG_item: null as null | { name: string, value: string },\r\n ECO_INTERVAL_TIME: '',\r\n ECO_OFST_START: '',\r\n ECO_OFST_END: '',\r\n AUTOMATION_INTERVAL_TIME: '5',\r\n },\r\n persistedAssetDevice: null as null|{ value: number, label: string, UNIT_ID: number, CLIENT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, DAT_ID: string|null, DAT_INDEX: number|null },\r\n varsCfg: props.devInfoResp.dri,\r\n openModal: null as null | 'add-unit',\r\n rooms: [] as { RTYPE_ID: number, RTYPE_NAME: string }[],\r\n roomDutInfo: null as null | undefined | { DEV_ID?: string, RTYPE_NAME?: string, ROOM_NAME?: string, TUSEMIN?: number, TUSEMAX?: number},\r\n rssi: '',\r\n application: null,\r\n automation: null,\r\n });\r\n const debouncedRender = useDebouncedRender(render);\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'driSubscribeRealTime', data: { DRI_ID: props.devInfoResp.info.integrId } });\r\n }\r\n\r\n function onWsMessage(response) {\r\n if (response && response.type === 'driTelemetry') {\r\n updateRssi(response);\r\n debouncedRender();\r\n }\r\n }\r\n\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'driUnsubscribeRealTime' });\r\n }\r\n\r\n const updateRssi = (payload) => {\r\n const rssi = verifyAndUpdateRSSI(payload);\r\n if (rssi) {\r\n state.rssi = t(rssi, { defaultValue: '-' });\r\n render();\r\n }\r\n };\r\n\r\n const setDriApplication = (driCfg: ApiResps['/get-integration-info']['dri']) => {\r\n if (driCfg?.application && getKeyByValue(driMeterApplications, driCfg.application)) setDriApplicationEnergy(driCfg);\r\n else if (driCfg?.application && getKeyByValue(driVAVsApplications, driCfg.application)) setDriApplicationVAV(driCfg);\r\n else if (driCfg?.application && getKeyByValue(driFancoilsApplications, driCfg.application)) setDriApplicationFancoil(driCfg);\r\n else if (driCfg?.application && getKeyByValue(getDriChillerCarrierApplications(state.driChillerCarrierGateway?.name === 'HVARC CONTROL'), driCfg.application)) setDriApplicationChillerCarrier(driCfg);\r\n else if (driCfg?.application === 'carrier-ecosplit') setDriApplicationCarrierEcosplit();\r\n else if (driCfg?.chillerName) setDriApplicationChillerName(driCfg);\r\n else {\r\n state.driApplication = getKeyByValue(driApplicationOpts, driCfg?.application) ?? null;\r\n }\r\n };\r\n\r\n function getOptionByValue(options: T, value: string) {\r\n return Array.isArray(options) ? (options.find((item) => item.value === value) ?? null) : null;\r\n }\r\n\r\n const setDriApplicationEnergy = (driCfg) => {\r\n state.application = getOptionByValue(state.comboOpts.applications, 'medidor-energia');\r\n state.driApplication = 'Medidor de Energia';\r\n state.driMeterModel = valueOrNull(state.comboOpts.meterModels.find((opt) => opt.NAME === getKeyByValue(driMeterApplications, driCfg.application)));\r\n };\r\n const setDriApplicationVAV = (driCfg) => {\r\n state.application = getOptionByValue(state.comboOpts.applications, 'automation');\r\n state.automation = getOptionByValue(state.comboOpts.automation, 'vav');\r\n state.driApplication = 'VAV';\r\n state.driVavFancoilModel = valueOrNull(getKeyByValue(driVAVsApplications, driCfg.application));\r\n };\r\n const setDriApplicationFancoil = (driCfg) => {\r\n state.application = getOptionByValue(state.comboOpts.applications, 'automation');\r\n state.automation = getOptionByValue(state.comboOpts.automation, 'fancoil');\r\n state.driApplication = 'Fancoil';\r\n state.driVavFancoilModel = valueOrNull(getKeyByValue(driFancoilsApplications, driCfg.application));\r\n };\r\n const setDriApplicationChillerCarrier = (driCfg) => {\r\n state.application = getOptionByValue(state.comboOpts.applications, 'chiller-carrier');\r\n state.driApplication = 'Chiller Carrier';\r\n const model = getKeyByValue(getDriChillerCarrierApplications(state.driChillerCarrierGateway?.name === 'HVARC CONTROL'), driCfg.application);\r\n const gateway = driCfg?.chillerGateway;\r\n state.driChillerCarrierLine = model ? { name: model, id: model } : null;\r\n state.driChillerCarrierGateway = gateway ? { name: gateway, id: gateway } : null;\r\n };\r\n const setDriApplicationChillerName = (driCfg) => {\r\n state.application = getOptionByValue(state.comboOpts.applications, 'chiller-carrier');\r\n state.driApplication = 'Chiller Carrier';\r\n const model = driCfg?.chillerName;\r\n const gateway = driCfg?.chillerGateway;\r\n state.driChillerCarrierLine = model ? { name: model, id: model } : null;\r\n state.driChillerCarrierGateway = gateway ? { name: gateway, id: gateway } : null;\r\n };\r\n const setDriApplicationCarrierEcosplit = () => {\r\n state.application = getOptionByValue(state.comboOpts.applications, 'automation');\r\n state.automation = getOptionByValue(state.comboOpts.automation, 'carrier-ecosplit');\r\n state.driApplication = 'Carrier ECOSPLIT';\r\n };\r\n\r\n const setDriCfg = (driCfg: ApiResps['/get-integration-info']['dri']) => {\r\n setDriApplication(driCfg);\r\n state.driProtocol = valueOrNull(getKeyByValue(driProtocolsOpts, driCfg?.protocol));\r\n const parity = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'mdb_parity'))?.value;\r\n state.driParity = (parity !== undefined) ? Object.keys(driParityOpts)[parity] : null;\r\n const serialMode = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'serial_mode'))?.value;\r\n state.driLayer = (serialMode !== undefined) ? Object.keys(driLayerOpts)[Number(serialMode) - 1] : null;\r\n const stopBits = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'mdb_stopbits'))?.value;\r\n state.driStopBits = (stopBits !== undefined) ? Object.keys(driStopBitsOpts)[stopBits] : null;\r\n state.driSendInterval = ['Medidor de energia', 'Carrier ECOSPLIT'].includes(String(state.driApplication)) ? '900' : (driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'interval'))?.value?.toString() ?? '');\r\n state.modbusBaudRate = driCfg?.driConfigs?.find((cfg) => checkProtocolValue(cfg, 'mdb_baud'))?.value?.toString() ?? '';\r\n const findCapacity = driCfg?.varsList?.find((v) => v.name === 'Capacidade TC');\r\n const capacityTc = findCapacity?.address?.value ?? findCapacity?.value;\r\n state.selectedCurrentCapacity = capacityTc && currentCapacityOpts.find((opt) => opt.value === (Number(capacityTc) / 2).toString()) || null;\r\n const findInstallationType = driCfg?.varsList?.find((v) => v.name === 'Tipo Instalação');\r\n const installationType = findInstallationType?.address?.value ?? findInstallationType?.value;\r\n state.selectedInstallationType = installationType && state.driMeterModel && installationTypeOpts[state.driMeterModel.NAME]?.find((opt) => opt.value === installationType) || null;\r\n state.driSlaveId = (['Nexus II', 'EM210', 'iKRON 03', 'ET330', 'ETE-30', 'ETE-50', 'Schneider PM2100', 'Schneider PM210', 'Schneider PM9C', '30HXE', '30XAB', '30GXE', '30HXF', '30XAB', 'MULT-K', 'MULT-K 05', 'MULT-K 120'].includes(state.driMeterModel?.NAME ?? state.driChillerCarrierLine?.name ?? '') && driCfg?.varsList?.find((item) => item.address)?.address?.id?.toString()) || '';\r\n };\r\n\r\n async function loadPlaceConfig() {\r\n const { devInfoResp } = props;\r\n setState({ isLoading: true });\r\n fetchUnits(devInfoResp.info.CLIENT_ID);\r\n const { info: driInfo, dri: driCfg } = devInfoResp;\r\n state.devInfo = await getCachedDevInfo(driInfo.integrId, { forceFresh: true });\r\n\r\n state.formData.CLIENT_ID_item = (driInfo.CLIENT_ID) ? { NAME: driInfo.CLIENT_NAME, CLIENT_ID: driInfo.CLIENT_ID } : null;\r\n state.formData.UNIT_ID_item = (driInfo.CLIENT_ID && driInfo.UNIT_ID) ? { UNIT_NAME: driInfo.UNIT_NAME, UNIT_ID: driInfo.UNIT_ID } : null;\r\n render();\r\n\r\n await updateGroups();\r\n render();\r\n const group = state.comboOpts.groups.find((group) => (group.unit === state.formData.UNIT_ID_item?.UNIT_ID && group.value === state.devInfo?.GROUP_ID));\r\n if (group) {\r\n // @ts-ignore\r\n state.formData.GROUP_ID_item = {\r\n value: group.value,\r\n name: group.label,\r\n unit: group.unit,\r\n };\r\n }\r\n render();\r\n\r\n await updateAssets();\r\n render();\r\n for (const asset of state.comboOpts.assets) {\r\n if (asset.value === state.devInfo?.ASSET_ID) {\r\n state.formData.ASSET_ID_item = asset;\r\n }\r\n }\r\n render();\r\n\r\n const asset = await apiCall('/clients/get-asset-info', { DEV_ID: state.devInfo?.DEV_ID });\r\n if (asset?.info) {\r\n state.persistedAssetDevice = {\r\n value: asset.info.ASSET_ID,\r\n label: asset.info.AST_DESC,\r\n UNIT_ID: asset.info.UNIT_ID,\r\n GROUP_ID: asset.info.GROUP_ID,\r\n DEV_ID: asset.info.DEV_ID,\r\n ASSET_ROLE: asset.info.AST_ROLE || 0,\r\n CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID as number,\r\n DAT_INDEX: asset.info.DAT_INDEX,\r\n DAT_ID: asset.info.DAT_ID,\r\n };\r\n } else {\r\n state.persistedAssetDevice = null;\r\n }\r\n\r\n setDriCfg(driCfg);\r\n if (state.driApplication === 'Chiller Carrier') {\r\n setVariablesChiller(driCfg?.chillerName ?? state.driChillerCarrierLine?.name);\r\n }\r\n setState({ isLoading: false });\r\n render();\r\n }\r\n\r\n const loadVavConfig = (VAV_ID: string) => {\r\n apiCall('/dri/get-dri-vav-info', { VAV_ID })\r\n .then((value) => {\r\n state.thermManuf = value.THERM_MANUF ?? null;\r\n state.valveManuf = value.VALVE_MANUF ?? null;\r\n state.valveModel = value.VALVE_MODEL ?? '';\r\n state.selectedValveModel = vavFancoilValveTypes.find((item) => item.value === value.VALVE_TYPE) ?? vavFancoilValveTypes[0];\r\n state.vavBoxManuf = value.BOX_MANUF ?? null;\r\n state.vavBoxModel = value.BOX_MODEL ?? '';\r\n state.roomName = value.ROOM_NAME ?? '';\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n toast.error(t('erroBuscarInformacoesVavDri'));\r\n });\r\n state.vavLoaded = true;\r\n };\r\n\r\n const loadFancoilConfig = (FANCOIL_ID: string) => {\r\n apiCall('/dri/get-dri-fancoil-info', { FANCOIL_ID })\r\n .then((value) => {\r\n if (value) {\r\n state.thermManuf = value.THERM_MANUF ?? null;\r\n state.driVavFancoilModel = value.THERM_MODEL ?? null;\r\n state.valveManuf = value.VALVE_MANUF ?? null;\r\n state.valveModel = value.VALVE_MODEL ?? '';\r\n state.selectedValveModel = vavFancoilValveTypes.find((item) => item.value === value.VALVE_TYPE) ?? vavFancoilValveTypes[0];\r\n state.fancoilManuf = value.FANCOIL_MANUF ?? null;\r\n state.fancoilModel = value.FANCOIL_MODEL ?? '';\r\n render();\r\n }\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n toast.error(t('erroBuscarInformacoesFancoilDri'));\r\n });\r\n state.fancoilLoaded = true;\r\n };\r\n\r\n const loadEcoConfig = (driInfo: ApiResps['/get-integration-info']['info'], driCfg: ApiResps['/get-integration-info']['dri']) => {\r\n state.formData.REL_DUT_ID_item = (driCfg?.ecoCfg.DUT_ID) ? { DUT_ID: driCfg.ecoCfg.DUT_ID, comboLabel: driInfo.roomName } : null;\r\n state.formData.ENABLE_ECO_item = state.comboOpts.enableEco.find((opt) => opt.value === driCfg?.ecoCfg.ENABLE_ECO) ?? null;\r\n state.formData.ECO_MODE_CFG_item = state.comboOpts.ecoModeCfg.find((opt) => opt.value === driCfg?.ecoCfg.ECO_CFG) ?? null;\r\n state.formData.ECO_INTERVAL_TIME = driCfg?.ecoCfg.ECO_INT_TIME?.toString() ?? '';\r\n state.formData.ECO_OFST_START = driCfg?.ecoCfg.ECO_OFST_START?.toString() ?? '';\r\n state.formData.ECO_OFST_END = driCfg?.ecoCfg.ECO_OFST_END?.toString() ?? '';\r\n };\r\n\r\n const loadAutomationConfig = (): void => {\r\n const { devInfoResp } = props;\r\n state.formData.AUTOMATION_INTERVAL_TIME = devInfoResp.dri?.automationCfg.AUTOMATION_INTERVAL ? String(devInfoResp.dri.automationCfg.AUTOMATION_INTERVAL) : '5';\r\n };\r\n\r\n function loadConfig() {\r\n const { devInfoResp } = props;\r\n const { info: driInfo, dri: driCfg } = devInfoResp;\r\n\r\n if (driCfg?.application?.startsWith('vav') && !state.vavLoaded) {\r\n loadVavConfig(devInfoResp.info.integrId);\r\n }\r\n\r\n if (driCfg?.application?.startsWith('fancoil') && !state.fancoilLoaded) {\r\n loadFancoilConfig(devInfoResp.info.integrId);\r\n }\r\n\r\n state.formData.establishmentName = driInfo.establishmentName ?? driInfo.machineName ?? '';\r\n state.driChillerCarrierModel = devInfoResp.dri?.chillerModel ? { id: devInfoResp.dri?.chillerModel, name: devInfoResp.dri?.chillerModel } : null;\r\n render();\r\n setDriApplication(driCfg);\r\n render();\r\n loadEcoConfig(driInfo, driCfg);\r\n loadAutomationConfig();\r\n\r\n render();\r\n }\r\n\r\n function fancoilForEach(opt, thermManuf, fancoilValveManuf, fancoilManuf) {\r\n if (opt.type === 'THERM_MANUF') thermManuf.push(opt.label);\r\n if (opt.type === 'VALVE_MANUF') {\r\n if (opt.label === 'Outro (digitar)') {\r\n fancoilValveManuf.push(t('outroDigitar'));\r\n } else {\r\n fancoilValveManuf.push(opt.label);\r\n }\r\n }\r\n if (opt.type === 'FANCOIL_MANUF') {\r\n if (opt.label === 'Outro (digitar)') {\r\n fancoilManuf.push(t('outroDigitar'));\r\n } else {\r\n fancoilManuf.push(opt.label);\r\n }\r\n }\r\n }\r\n\r\n function vavsForEach(opt, thermManuf, valveManuf, boxManuf) {\r\n if (opt.type === 'THERM_MANUF') thermManuf.push(opt.label);\r\n if (opt.type === 'VALVE_MANUF') valveManuf.push(opt.label);\r\n if (opt.type === 'BOX_MANUF') boxManuf.push(opt.label);\r\n }\r\n\r\n function verifyComboOptsVav() {\r\n if (state.comboOpts.thermManuf.length > 0 && state.comboOpts.valveManuf.length > 0 && state.comboOpts.boxManuf.length > 0) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyComboOptsFancoil() {\r\n if (state.comboOpts.thermManuf.length > 0 && state.comboOpts.fancoilValveManuf.length > 0 && state.comboOpts.fancoilManuf.length > 0) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyPermissions() {\r\n if (!profile.manageAllClients && !profile.permissions.isInstaller && !verifyAutomPermission()) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyOpenModalAndStates() {\r\n let isReturn = false;\r\n if (state.openModal !== 'add-unit') isReturn = true;\r\n if (state.comboOpts.states.length > 0) isReturn = true;\r\n return isReturn;\r\n }\r\n\r\n function verifyOpenModalAndCities() {\r\n let isReturn = false;\r\n if (state.openModal !== 'add-unit') isReturn = true;\r\n if (state.comboOpts.cities.length > 0) isReturn = true;\r\n return isReturn;\r\n }\r\n\r\n function verifyOpenPermissionAndClients() {\r\n let isReturn = false;\r\n if (verifyPermissions()) isReturn = true;\r\n if (state.comboOpts.clients.length > 0) isReturn = true;\r\n return isReturn;\r\n }\r\n\r\n function verifyComboLabel(item) {\r\n if (item.ROOM_NAME) {\r\n return item.ROOM_NAME;\r\n }\r\n return item.DEV_ID;\r\n }\r\n\r\n function verifyAutomPermission() {\r\n return profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === props.devInfoResp?.info?.CLIENT_ID);\r\n }\r\n\r\n const verifyMeterModelsSort = (a, b) => {\r\n if (a.NAME.toLowerCase() < b.NAME.toLowerCase()) {\r\n return -1;\r\n }\r\n if (a.NAME.toLowerCase() > b.NAME.toLowerCase()) {\r\n return 1;\r\n }\r\n return 0;\r\n };\r\n\r\n useEffect(() => {\r\n if (verifyPermissions()) return;\r\n (async function () {\r\n try {\r\n await Promise.all([\r\n getClientsList(),\r\n getStatesList(),\r\n getCitiesList(),\r\n getDutsList(),\r\n getEnergyComboOpts(),\r\n getChillerComboOpts(),\r\n getVavComboOpts(),\r\n getFancoilComboOpts(),\r\n ]);\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n }());\r\n }, [state.openModal]);\r\n\r\n const getClientsList = async () => {\r\n if (verifyOpenPermissionAndClients()) return;\r\n const { list } = await apiCall('/clients/get-clients-list', {});\r\n const formattedList = list.map((item) => ({ CLIENT_ID: item.CLIENT_ID, NAME: item.NAME }));\r\n setState({ comboOpts: { ...state.comboOpts, clients: formattedList } });\r\n };\r\n\r\n const getStatesList = async () => {\r\n if (verifyOpenModalAndStates()) return;\r\n const { list } = await apiCall('/dac/get-states-list', { full: true });\r\n const formattedList = list.map((item) => ({ STATE_NAME: item.name, STATE_ID: item.id }));\r\n setState({ comboOpts: { ...state.comboOpts, states: formattedList } });\r\n };\r\n\r\n const getCitiesList = async () => {\r\n if (verifyOpenModalAndCities()) return;\r\n const { list } = await apiCall('/dac/get-cities-list', {});\r\n const formattedList = list.map((item) => ({ CITY_NAME: item.name, CITY_ID: item.id, STATE_ID: item.state }));\r\n setState({ comboOpts: { ...state.comboOpts, cities: formattedList } });\r\n };\r\n\r\n const getDutsList = async () => {\r\n if (state.comboOpts.duts.length > 0) return;\r\n const { list } = await apiCall('/dut/get-duts-list', { unitId: props.devInfoResp.info.UNIT_ID });\r\n const notAutomatedList = list.filter((item) => !item.automationEnabled);\r\n const formattedList = notAutomatedList.map((item) => ({ comboLabel: verifyComboLabel(item), DUT_ID: item.DEV_ID }));\r\n setState({ comboOpts: { ...state.comboOpts, duts: formattedList } });\r\n };\r\n\r\n const getEnergyComboOpts = async () => {\r\n if (state.comboOpts.meterModels.length > 0) return;\r\n const { manufacturersList, modelsList } = await apiCall('/energy/get-energy-combo-opts', {});\r\n const dielManuf = manufacturersList.find((manuf) => manuf.NAME === 'Diel Energia');\r\n const driMeterModels = modelsList.filter((model) => model.MANUFACTURER_ID === dielManuf?.MANUFACTURER_ID);\r\n const driMeterModelsSort = driMeterModels.slice().sort(verifyMeterModelsSort);\r\n setState({ comboOpts: { ...state.comboOpts, meterModels: driMeterModelsSort } });\r\n };\r\n\r\n const getChillerComboOpts = async () => {\r\n if (state.comboOpts.chillerLines.length > 0) return;\r\n const { chillerLines, chillerModels, chillerGateways } = await apiCall('/dri/get-chiller-combo-opts', {});\r\n const formattedList = chillerLines.filter((item) => item.LINE_NAME !== '30GXE').map((item) => ({ name: item.LINE_NAME, id: item.LINE_NAME }));\r\n const formattedListModels = chillerModels.map((item) => ({ name: item.MODEL_NAME, id: item.MODEL_NAME }));\r\n const formattedListGateways = chillerGateways.map((item) => ({ name: item.GATEWAY_NAME, id: item.GATEWAY_NAME }));\r\n\r\n setState({\r\n comboOpts: {\r\n ...state.comboOpts, chillerLines: formattedList, chillerModels: formattedListModels, chillerGateways: formattedListGateways,\r\n },\r\n listModelsChiller: chillerModels,\r\n listGatewaysChiller: chillerGateways,\r\n });\r\n };\r\n\r\n const getVavComboOpts = async () => {\r\n if (verifyComboOptsVav()) return;\r\n const { vavs } = await apiCall('/dev/dev-info-combo-options', { vavs: true });\r\n const thermManuf = [] as string[];\r\n const valveManuf = [] as string[];\r\n const boxManuf = [] as string[];\r\n vavs?.forEach((opt) => {\r\n vavsForEach(opt, thermManuf, valveManuf, boxManuf);\r\n });\r\n setState({\r\n comboOpts: {\r\n ...state.comboOpts, thermManuf, valveManuf, boxManuf,\r\n },\r\n });\r\n };\r\n\r\n const getFancoilComboOpts = async () => {\r\n if (verifyComboOptsFancoil()) return;\r\n const { fancoils } = await apiCall('/dev/dev-info-combo-options', { fancoils: true });\r\n const thermManuf = [] as string[];\r\n const fancoilValveManuf = [] as string[];\r\n const fancoilManuf = [] as string[];\r\n fancoils?.forEach((opt) => {\r\n fancoilForEach(opt, thermManuf, fancoilValveManuf, fancoilManuf);\r\n });\r\n\r\n setState({\r\n comboOpts: {\r\n ...state.comboOpts, thermManuf, fancoilValveManuf, fancoilManuf,\r\n },\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (!profile.manageAllClients && !profile.permissions.isInstaller && !verifyAutomPermission()) return;\r\n\r\n if (state.formData.UNIT_ID_item?.UNIT_ID) {\r\n loadConfig();\r\n }\r\n }, [profile.manageAllClients, profile.permissions.isInstaller, state.formData.UNIT_ID_item?.UNIT_ID]);\r\n\r\n useEffect(() => {\r\n if (!profile.manageAllClients && !profile.permissions.isInstaller && !verifyAutomPermission()) return;\r\n loadPlaceConfig();\r\n }, []);\r\n\r\n const updateUnits = async () => {\r\n const clientId = state.formData.CLIENT_ID_item?.CLIENT_ID ?? null;\r\n await fetchUnits(clientId);\r\n };\r\n\r\n const updateGroups = async () => {\r\n const { groups } = await apiCall('/dev/dev-info-combo-options', { CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID, UNIT_ID: state.formData.UNIT_ID_item?.UNIT_ID, groups: true });\r\n const groupFiltered = groups?.filter((group) => (group.unit === state.formData.UNIT_ID_item?.UNIT_ID));\r\n setState({ comboOpts: { ...state.comboOpts, groups: groupFiltered || [] } });\r\n };\r\n\r\n const updateAssets = async () => {\r\n const machinesAssetsList = state.formData.UNIT_ID_item?.UNIT_ID ? await apiCall('/clients/get-machines-list', { unitIds: [state.formData.UNIT_ID_item.UNIT_ID] }) : [];\r\n const assets = [] as { value: number, label: string, name: string, UNIT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, CLIENT_ID: number, DAT_INDEX: number|null, DAT_ID: string|null, MCHN_APPL: string|null, MCHN_BRAND: string|null }[];\r\n for (const item of machinesAssetsList) {\r\n item.assets.forEach((asset) => {\r\n if (item.GROUP_ID === state.formData.GROUP_ID_item?.value && asset.AST_ROLE === 5 && asset.MCHN_APPL === 'chiller') {\r\n assets.push({\r\n value: asset.ASSET_ID,\r\n label: asset.AST_DESC,\r\n name: asset.AST_DESC,\r\n UNIT_ID: asset.UNIT_ID,\r\n GROUP_ID: item.GROUP_ID,\r\n DEV_ID: asset.DEV_ID,\r\n ASSET_ROLE: asset.AST_ROLE || 0,\r\n CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID as number,\r\n DAT_INDEX: asset.DAT_INDEX,\r\n DAT_ID: asset.DAT_ID,\r\n MCHN_APPL: asset.MCHN_APPL,\r\n MCHN_BRAND: asset.MCHN_BRAND,\r\n });\r\n }\r\n });\r\n }\r\n setState({ comboOpts: { ...state.comboOpts, assets } });\r\n };\r\n\r\n function getDriApplication() {\r\n let driApplication;\r\n if (state.driApplication === 'Medidor de Energia' && state.driMeterModel) {\r\n driApplication = driMeterApplications[state.driMeterModel.NAME];\r\n } else if (state.driApplication === 'VAV' && state.driVavFancoilModel) {\r\n driApplication = driVAVsApplications[state.driVavFancoilModel];\r\n } else if (state.driApplication === 'Fancoil' && state.driVavFancoilModel) {\r\n driApplication = driFancoilsApplications[state.driVavFancoilModel];\r\n } else if (state.driApplication === 'Chiller Carrier' && state.driChillerCarrierLine) {\r\n driApplication = getDriChillerCarrierApplications(state.driChillerCarrierGateway?.name === 'HVARC CONTROL')[state.driChillerCarrierLine.name];\r\n } else {\r\n driApplication = state.driApplication && driApplicationOpts[state.driApplication];\r\n }\r\n return driApplication;\r\n }\r\n\r\n function verifyDriProtocol(driProtocol, modbusBaudRate, parity, stopBits, sendInterval) {\r\n if (driProtocol && (['modbus-rtu', 'carrier-ecosplit', 'Carrier ECOSPLIT'].includes(driProtocol)) && !modbusBaudRate) {\r\n alert(t('alertaInformeBaudRate'));\r\n return true;\r\n }\r\n if (driProtocol && (['modbus-rtu', 'carrier-ecosplit', 'Carrier ECOSPLIT'].includes(driProtocol)) && !parity) {\r\n alert(t('alertaInformeParidade'));\r\n return true;\r\n }\r\n if (driProtocol && (['modbus-rtu', 'carrier-ecosplit', 'Carrier ECOSPLIT'].includes(driProtocol)) && !stopBits) {\r\n alert(t('alertaInformeStopBits'));\r\n return true;\r\n }\r\n if (driProtocol && (['modbus-rtu', 'carrier-ecosplit', 'Carrier ECOSPLIT'].includes(driProtocol)) && !sendInterval) {\r\n alert(t('alertaInformeIntervaloEnvio'));\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyDriProtocolAndModel(driProtocol, slaveId, capacityTc, installationType, driLayer) {\r\n if (driProtocol && ['EM210', 'MULT-K', 'MULT-K 05', 'MULT-K 120', 'Nexus II', 'Schneider PM2100'].includes(state.driMeterModel?.NAME || '') && slaveId == null) {\r\n alert(t('alertaInformeEnderecoId'));\r\n return true;\r\n }\r\n if (driProtocol && ['EM210', 'MULT-K', 'MULT-K 05'].includes(state.driMeterModel?.NAME || '') && !capacityTc) {\r\n alert(t('alertaInformeCapacidadeCorrente'));\r\n return true;\r\n }\r\n if (driProtocol && ['EM210'].includes(state.driMeterModel?.NAME || '') && !installationType) {\r\n alert(t('alertaInformeTipoInstalacaoEletrica'));\r\n return true;\r\n }\r\n if (driProtocol && ['Nexus II', 'Schneider PM2100'].includes(state.driMeterModel?.NAME || '') && !driLayer) {\r\n alert(t('alertaInfomeCamadaFisica'));\r\n return true;\r\n }\r\n if (['Nexus II'].includes(state.driMeterModel?.NAME || '') && !driProtocol) {\r\n alert(t('alertaInformeProtocoloComunicacao'));\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n async function fancoilUpdate(lastApplication, driApplication) {\r\n if (lastApplication && (lastApplication?.startsWith('fancoil') && !driApplication?.startsWith('fancoil'))) {\r\n await apiCall('/dri/update-dri-fancoil', { FANCOIL_ID: props.devInfoResp.info.integrId, remove: true });\r\n } else if (driApplication?.startsWith('fancoil')) {\r\n await apiCall('/dri/update-dri-fancoil', {\r\n FANCOIL_ID: props.devInfoResp.info.integrId,\r\n THERM_MANUF: state.thermManuf,\r\n THERM_MODEL: state.driVavFancoilModel,\r\n VALVE_MANUF: state.valveManuf === t('outroDigitar') ? state.otherValveManuf : state.valveManuf,\r\n VALVE_MODEL: state.valveModel,\r\n VALVE_TYPE: state.selectedValveModel.value,\r\n FANCOIL_MANUF: state.fancoilManuf === t('outroDigitar') ? state.otherFancoilManuf : state.fancoilManuf,\r\n FANCOIL_MODEL: state.fancoilModel,\r\n THERM_T_MAX: 24,\r\n THERM_T_MIN: 21,\r\n });\r\n }\r\n }\r\n\r\n async function vavUpdate(lastApplication, driApplication) {\r\n if (lastApplication && (lastApplication?.startsWith('vav') && !driApplication?.startsWith('vav'))) {\r\n await apiCall('/dri/update-dri-vav', { VAV_ID: props.devInfoResp.info.integrId, remove: true });\r\n } else if (driApplication?.startsWith('vav')) {\r\n await apiCall('/dri/update-dri-vav', {\r\n VAV_ID: props.devInfoResp.info.integrId,\r\n THERM_MANUF: state.thermManuf,\r\n THERM_MODEL: state.driVavFancoilModel,\r\n VALVE_MANUF: state.valveManuf,\r\n VALVE_MODEL: state.valveModel,\r\n VALVE_TYPE: state.selectedValveModel.value,\r\n BOX_MANUF: state.vavBoxManuf,\r\n BOX_MODEL: state.vavBoxModel,\r\n ROOM_NAME: state.roomName,\r\n });\r\n }\r\n }\r\n\r\n async function energyMeterSetAndDelete(lastApplication) {\r\n if (state.driApplication === 'Medidor de Energia' && state.driMeterModel && state.formData.UNIT_ID_item && state.formData.CLIENT_ID_item) {\r\n await apiCall('/energy/set-energy-list-info', {\r\n UNIT_ID: state.formData.UNIT_ID_item.UNIT_ID,\r\n CLIENT_ID: state.formData.CLIENT_ID_item.CLIENT_ID,\r\n meters: [{\r\n MANUFACTURER, MODEL: state.driMeterModel.NAME, DRI_ID: props.devInfoResp.info.integrId, ESTABLISHMENT_NAME: state.formData.establishmentName,\r\n }],\r\n });\r\n }\r\n\r\n if (lastApplication && ['cg-et330', 'abb-nexus-ii', 'abb-ete-30', 'abb-ete-50', 'cg-em210', 'kron-mult-k', 'kron-mult-k-05', 'kron-mult-k-120', 'kron-ikron-03'].includes(lastApplication) && state.driApplication !== 'Medidor de Energia') {\r\n await apiCall('/energy/delete-energy-info', {\r\n MANUFACTURER, DRI_ID: props.devInfoResp.info.integrId, UNIT_ID: state.formData.UNIT_ID_item?.UNIT_ID, CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID,\r\n });\r\n }\r\n }\r\n\r\n function createVariables() {\r\n const driProtocol = state.driProtocol && driProtocolsOpts[state.driProtocol];\r\n const driLayer = state.driLayer ? driLayerOpts[state.driLayer] : undefined;\r\n const modbusBaudRate = state.modbusBaudRate || undefined;\r\n const parity = state.driParity ? driParityOpts[state.driParity] : undefined;\r\n const stopBits = state.driStopBits ? driStopBitsOpts[state.driStopBits] : undefined;\r\n let intervalTmp = state.driApplication === 'Medidor de Energia' ? '900' : undefined;\r\n intervalTmp = !intervalTmp && state.driApplication === 'Chiller Carrier' ? '60' : intervalTmp;\r\n const sendInterval = state.driSendInterval ? state.driSendInterval : intervalTmp;\r\n const capacityTc = state.selectedCurrentCapacity?.value || undefined;\r\n const installationType = state.selectedInstallationType?.value || undefined;\r\n const slaveId = (Number(state.driSlaveId) && state.driSlaveId) || undefined;\r\n\r\n return {\r\n driProtocol,\r\n driLayer,\r\n modbusBaudRate,\r\n parity,\r\n stopBits,\r\n sendInterval,\r\n capacityTc,\r\n installationType,\r\n slaveId,\r\n };\r\n }\r\n\r\n const handleEditAsset = async (driApplication: string) => {\r\n if (!driApplication || driApplication === 'chiller-carrier-30hxe' || driApplication === 'chiller-carrier-30hxe-gxe-hvar' || driApplication === 'chiller-carrier-30gxe' || driApplication === 'chiller-carrier-30hxf' || driApplication === 'chiller-carrier-30xab' || driApplication === 'chiller-carrier-30xab-hvar') {\r\n if ((!state.formData.ASSET_ID_item && state.persistedAssetDevice) || (!state.devInfo?.GROUP_ID && state.persistedAssetDevice) || (state.persistedAssetDevice && state.formData.ASSET_ID_item && state.persistedAssetDevice.value !== state.formData.ASSET_ID_item.value)) {\r\n await apiCall('/clients/edit-asset', {\r\n ASSET_ID: state.persistedAssetDevice.value,\r\n DAT_ID: state.persistedAssetDevice.DAT_ID as string || undefined,\r\n AST_DESC: state.persistedAssetDevice.label,\r\n CLIENT_ID: state.persistedAssetDevice.CLIENT_ID,\r\n GROUP_ID: state.persistedAssetDevice.GROUP_ID,\r\n UNIT_ID: state.persistedAssetDevice.UNIT_ID,\r\n AST_ROLE: state.persistedAssetDevice.ASSET_ROLE,\r\n MCHN_MODEL: state.driChillerCarrierModel?.name,\r\n DEV_ID: null,\r\n OLD_DEV_ID: state.persistedAssetDevice.DEV_ID,\r\n DAT_INDEX: state.persistedAssetDevice.DAT_INDEX,\r\n CHILLER_CARRIER_MODEL_ID: state.listModelsChiller.find((item) => item.MODEL_NAME === state.driChillerCarrierModel?.name)?.ID ?? null,\r\n CHILLER_CARRIER_GATEWAY_ID: state.listGatewaysChiller.find((item) => item.GATEWAY_NAME === state.driChillerCarrierGateway?.name)?.ID ?? null,\r\n });\r\n }\r\n\r\n if (state.formData.ASSET_ID_item && state.formData.GROUP_ID_item) {\r\n await apiCall('/clients/edit-asset', {\r\n ASSET_ID: state.formData.ASSET_ID_item.value,\r\n DAT_ID: state.formData.ASSET_ID_item.DAT_ID as string || undefined,\r\n AST_DESC: state.formData.ASSET_ID_item.label,\r\n CLIENT_ID: state.formData.ASSET_ID_item.CLIENT_ID,\r\n GROUP_ID: state.formData.ASSET_ID_item.GROUP_ID,\r\n UNIT_ID: state.formData.ASSET_ID_item.UNIT_ID,\r\n AST_ROLE: state.formData.ASSET_ID_item.ASSET_ROLE,\r\n MCHN_MODEL: state.driChillerCarrierModel?.name,\r\n DEV_ID: state.devInfo?.DEV_ID,\r\n OLD_DEV_ID: state.formData.ASSET_ID_item.DEV_ID,\r\n DAT_INDEX: state.formData.ASSET_ID_item.DAT_INDEX,\r\n CHILLER_CARRIER_MODEL_ID: state.listModelsChiller.find((item) => item.MODEL_NAME === state.driChillerCarrierModel?.name)?.ID ?? null,\r\n CHILLER_CARRIER_GATEWAY_ID: state.listGatewaysChiller.find((item) => item.GATEWAY_NAME === state.driChillerCarrierGateway?.name)?.ID ?? null,\r\n });\r\n }\r\n }\r\n };\r\n\r\n function validateShipping() {\r\n if (state.driApplication === 'Chiller Carrier' && (!state.driChillerCarrierLine || !state.driChillerCarrierModel || !state.driChillerCarrierGateway)) {\r\n toast.error(t('preencherModeloChiller'));\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyValveType() {\r\n if (state.driApplication === 'Fancoil' || state.driApplication === 'VAV') {\r\n if (state.driVavFancoilModel?.toLowerCase().includes('bac-6000 amln')\r\n && (!state.selectedValveModel || !state.selectedValveModel.value)) {\r\n toast.error(t('preencherTipoAtuador'));\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n async function uploadSelectedDriConfigFile() {\r\n try {\r\n if (validateShipping()) {\r\n return;\r\n }\r\n\r\n const { dri: driCfg } = props.devInfoResp;\r\n const lastApplication = driCfg?.application;\r\n const driApplication = getDriApplication();\r\n\r\n const {\r\n driProtocol,\r\n driLayer,\r\n modbusBaudRate,\r\n parity,\r\n stopBits,\r\n sendInterval,\r\n capacityTc,\r\n installationType,\r\n slaveId,\r\n } = createVariables();\r\n\r\n if (verifyDriProtocol(driProtocol, modbusBaudRate, parity, stopBits, sendInterval)) {\r\n return;\r\n }\r\n\r\n if (verifyDriProtocolAndModel(driProtocol, slaveId, capacityTc, installationType, driLayer)) {\r\n return;\r\n }\r\n\r\n if (verifyValveType()) {\r\n return;\r\n }\r\n\r\n await vavUpdate(lastApplication, driApplication);\r\n\r\n await fancoilUpdate(lastApplication, driApplication);\r\n\r\n await Promise.all([\r\n (async () => {\r\n if (verifyPermissions()) return;\r\n const systemName = state.driApplication === 'Chiller Carrier' ? state.persistedAssetDevice?.label : state.formData.establishmentName;\r\n await apiCall('/dri/set-dri-info', {\r\n DRI_ID: props.devInfoResp.info.integrId,\r\n SYSTEM_NAME: systemName,\r\n UNIT_ID: state.formData.UNIT_ID_item?.UNIT_ID ?? null,\r\n CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID ?? null,\r\n });\r\n })(),\r\n (async () => {\r\n await handleEditAsset(driApplication);\r\n })(),\r\n\r\n apiCallFormData('/upload-dri-varscfg', {\r\n driId: props.devInfoResp.info.integrId,\r\n application: driApplication,\r\n protocol: driProtocol,\r\n serialMode: driLayer,\r\n modbusBaudRate,\r\n parity,\r\n stopBits,\r\n telemetryInterval: sendInterval,\r\n capacityTc,\r\n installationType,\r\n slaveId,\r\n worksheetName: state.driCfgFile?.name,\r\n }, {\r\n file: state.driCfgFile,\r\n }),\r\n ]);\r\n\r\n await energyMeterSetAndDelete(lastApplication);\r\n\r\n toast.success(t('sucessoSalvarConfiguracoes'));\r\n toast.success(t('sucessoReiniciarDispositivo'));\r\n history.push(history.location.pathname.replace('editar', history.location.pathname.includes('ativos') ? 'informacoes' : 'perfil'));\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n console.log(err);\r\n if (error.response?.status !== 500) {\r\n toast.error(`${error.response?.data}`);\r\n } else {\r\n toast.error(t('erro'));\r\n }\r\n }\r\n }\r\n\r\n async function saveAutomationInfo() {\r\n try {\r\n if (profile.manageAllClients || verifyAutomPermission()) {\r\n await apiCall('/dri/set-dri-info', {\r\n DRI_ID: props.devInfoResp.info.integrId,\r\n DUT_ID: state.formData.REL_DUT_ID_item && state.formData.REL_DUT_ID_item.DUT_ID,\r\n ENABLE_ECO: state.formData.ENABLE_ECO_item && state.formData.ENABLE_ECO_item.value,\r\n ECO_CFG: state.formData.ECO_MODE_CFG_item && state.formData.ECO_MODE_CFG_item.value,\r\n ECO_INT_TIME: parseDecimalNumber(state.formData.ECO_INTERVAL_TIME) || 5,\r\n ECO_OFST_START: parseDecimalNumber(state.formData.ECO_OFST_START || '0') || null,\r\n ECO_OFST_END: parseDecimalNumber(state.formData.ECO_OFST_END || '0') || null,\r\n AUTOMATION_INTERVAL: parseDecimalNumber(state.formData.AUTOMATION_INTERVAL_TIME) ?? 5,\r\n });\r\n\r\n toast.success(t('sucessoSalvarConfiguracoes'));\r\n history.push(history.location.pathname.replace('editar', 'perfil'));\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n\r\n async function fetchUnits(CLIENT_ID: number | null) {\r\n state.comboOpts.units = [];\r\n if (!CLIENT_ID) { render(); return; }\r\n\r\n const { units } = await apiCall('/dev/dev-info-combo-options', { CLIENT_ID, units: true });\r\n\r\n if (units) {\r\n state.comboOpts.units = units.map((unit) => ({ UNIT_ID: unit.value, UNIT_NAME: unit.label }));\r\n }\r\n render();\r\n }\r\n\r\n async function onSelectClient(item) {\r\n try {\r\n setState({ isLoading: true });\r\n state.formData.CLIENT_ID_item = { NAME: item.name, CLIENT_ID: item.value };\r\n state.formData.UNIT_ID_item = null;\r\n await fetchUnits(item.value);\r\n setState({ isLoading: false });\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n\r\n function setVariablesChiller(name) {\r\n state.driSlaveId = state.driSlaveId?.length ? state.driSlaveId : '10';\r\n const defaultConfig = driApplicationCfgs[name];\r\n\r\n if (defaultConfig) {\r\n state.driProtocol = getKeyByValue(driProtocolsOpts, defaultConfig.protocol) ?? null;\r\n state.modbusBaudRate = defaultConfig.modbusBaudRate;\r\n state.driParity = getKeyByValue(driParityOpts, defaultConfig.parity) ?? null;\r\n state.driLayer = getKeyByValue(driLayerOpts, defaultConfig.serialMode) ?? null;\r\n state.driStopBits = getKeyByValue(driStopBitsOpts, defaultConfig.stopBits) ?? null;\r\n state.driSendInterval = '60';\r\n } else { resetCfgFields(); }\r\n }\r\n\r\n function getDefaultSendInterval() {\r\n if (state.driSendInterval.length > 0) {\r\n return '';\r\n }\r\n switch (state.driApplication) {\r\n case 'Medidor de energia': return '900';\r\n case 'Chiller Carrier':\r\n case 'Carrier ECOSPLIT':\r\n case 'Fancoil':\r\n case 'VAV': return '60';\r\n default: return '';\r\n }\r\n }\r\n\r\n function resetCfgFields() {\r\n if (state.driApplication !== 'Chiller Carrier') {\r\n state.formData.GROUP_ID_item = null;\r\n state.formData.ASSET_ID_item = null;\r\n }\r\n state.driProtocol = null;\r\n state.driMeterModel = null;\r\n state.driVavFancoilModel = null;\r\n state.driChillerCarrierModel = null;\r\n state.driChillerCarrierLine = null;\r\n state.driChillerCarrierGateway = null;\r\n state.modbusBaudRate = '';\r\n state.driParity = null;\r\n state.driStopBits = null;\r\n state.driLayer = null;\r\n state.driCfgFile = null;\r\n state.selectedCurrentCapacity = null;\r\n state.selectedInstallationType = null;\r\n state.driSlaveId = '';\r\n state.driSendInterval = getDefaultSendInterval();\r\n render();\r\n }\r\n\r\n function resetAutomationField() {\r\n if (state.automation) {\r\n state.automation = null;\r\n }\r\n }\r\n\r\n function resetApplicationFields() {\r\n state.driApplication = null;\r\n state.application = null;\r\n resetAutomationField();\r\n }\r\n\r\n function returnExistOrValue1(item, item2) {\r\n if (item !== null) return item;\r\n return item2;\r\n }\r\n\r\n const isFancoilVavApplication = props.devInfoResp.dri?.application?.includes('fancoil')\r\n || props.devInfoResp.dri?.application?.includes('vav');\r\n\r\n const isAutomationApplication = state.driApplication === 'Fancoil' || state.driApplication === 'VAV' || state.driApplication === 'Carrier ECOSPLIT';\r\n\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n const allTabs = [\r\n {\r\n title: t('equipamento'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'equipamento' })}`,\r\n isActive: (queryPars.aba === 'equipamento') || (!queryPars.aba),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('Automação'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'automacao' })}`,\r\n isActive: (queryPars.aba === 'automacao'),\r\n visible: isAutomationApplication,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n function onSelectUnit(item) {\r\n state.formData.UNIT_ID_item = { UNIT_NAME: item.name, UNIT_ID: item.value };\r\n }\r\n\r\n const tabs = allTabs.filter((x) => x.visible);\r\n\r\n const getUnitsOptions = () => (\r\n state.comboOpts.units.length > 0 ? state.comboOpts.units.map((item) => ({ value: item.UNIT_ID, name: item.UNIT_NAME })) : [{ value: state.formData.UNIT_ID_item ? state.formData.UNIT_ID_item.UNIT_ID : '', name: state.formData.UNIT_ID_item ? state.formData.UNIT_ID_item.UNIT_NAME : '' }]\r\n );\r\n\r\n return (\r\n
\r\n {(tabs.length > 0) && }\r\n
\r\n
\r\n\r\n
\r\n
\r\n
{t('editarDispositivo')}
\r\n
{props.devInfoResp.info.integrId}
\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n {allTabs[0].isActive && (\r\n
\r\n
\r\n {state.isLoading && (\r\n \r\n \r\n \r\n )}\r\n
\r\n
{t('geral')}
\r\n
\r\n \r\n \r\n
\r\n \r\n ({ value: item.CLIENT_ID, name: item.NAME }))}\r\n value={state.formData.CLIENT_ID_item?.CLIENT_ID.toString()}\r\n onChange={(item, value) => { onSelectClient(value); updateUnits(); }}\r\n />\r\n
\r\n \r\n {state.formData.CLIENT_ID_item?.CLIENT_ID && (\r\n
\r\n {\r\n state.formData.CLIENT_ID_item = null;\r\n state.formData.UNIT_ID_item = null;\r\n state.formData.GROUP_ID_item = null;\r\n state.formData.ASSET_ID_item = null;\r\n render();\r\n }}\r\n value={state.formData.CLIENT_ID_item?.NAME}\r\n />\r\n
\r\n )}\r\n
\r\n\r\n \r\n \r\n
\r\n \r\n { onSelectUnit(name); updateGroups(); render(); }}\r\n disabled={!state.formData.CLIENT_ID_item?.CLIENT_ID}\r\n />\r\n
\r\n \r\n {state.formData.UNIT_ID_item?.UNIT_ID && (\r\n
\r\n {\r\n state.formData.UNIT_ID_item = null;\r\n state.formData.GROUP_ID_item = null;\r\n state.formData.ASSET_ID_item = null;\r\n render();\r\n }}\r\n value={state.formData.UNIT_ID_item?.UNIT_NAME}\r\n />\r\n
\r\n )}\r\n
\r\n\r\n \r\n {\r\n if (item !== '') {\r\n state.application = item;\r\n if (item.value !== 'automation') {\r\n state.driApplication = getKeyByValue(driApplicationOpts, item.value) ?? null;\r\n resetAutomationField();\r\n resetCfgFields();\r\n } else {\r\n state.driApplication = null;\r\n }\r\n } else {\r\n resetApplicationFields();\r\n resetCfgFields();\r\n }\r\n render();\r\n }}\r\n propLabel=\"name\"\r\n />\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n history.push(history.location.pathname.replace('/editar', history.location.pathname.includes('ativos') ? '/informacoes' : '/perfil'))}>{t('botaoCancelar')}\r\n
\r\n
\r\n )}\r\n\r\n {allTabs[1].isActive && (\r\n
\r\n
\r\n { state.formData.REL_DUT_ID_item = (item !== '') ? item : null; render(); }}\r\n disabled={!state.formData.UNIT_ID_item || isFancoilVavApplication}\r\n propLabel=\"comboLabel\"\r\n />\r\n\r\n
\r\n { state.formData.ENABLE_ECO_item = (item !== '') ? item : null; render(); }}\r\n disabled={!state.formData.REL_DUT_ID_item || isFancoilVavApplication}\r\n propLabel=\"name\"\r\n />\r\n { state.formData.ECO_MODE_CFG_item = (item !== '') ? item : null; render(); }}\r\n disabled={!state.formData.REL_DUT_ID_item || isFancoilVavApplication}\r\n propLabel=\"name\"\r\n />\r\n
\r\n {isAutomationApplication ? (\r\n {\r\n const numberValue = parseInt(e.target.value, 10);\r\n if ((numberValue >= 1 && numberValue <= 15) || (e.target.value === '')) {\r\n state.formData.AUTOMATION_INTERVAL_TIME = e.target.value;\r\n if (state.devInfo?.dri) {\r\n state.devInfo.dri.automationCfg.AUTOMATION_INTERVAL = numberValue;\r\n }\r\n render();\r\n }\r\n }}\r\n />\r\n ) : (\r\n {\r\n if (\r\n (parseInt(e.target.value, 10) >= 1 && parseInt(e.target.value, 10) <= 15)\r\n || (e.target.value === '')\r\n ) {\r\n state.formData.ECO_INTERVAL_TIME = e.target.value;\r\n render();\r\n }\r\n }}\r\n disabled={!state.formData.REL_DUT_ID_item || isFancoilVavApplication}\r\n />\r\n )}\r\n

{t('limites1-15min')}

\r\n
\r\n
\r\n {!isFancoilVavApplication && (\r\n
\r\n
\r\n { state.formData.ECO_OFST_START = e.target.value; render(); }}\r\n disabled={!state.formData.REL_DUT_ID_item}\r\n />\r\n

{t('seTemperaturaMinimaAmbienteOffset', { value1: (returnExistOrValue1(state.formData.ECO_OFST_START, 1)), value2: (20 + parseFloat(returnExistOrValue1(state.formData.ECO_OFST_START, '1'))) })}

\r\n
\r\n\r\n
\r\n { state.formData.ECO_OFST_END = e.target.value; render(); }}\r\n disabled={!state.formData.REL_DUT_ID_item}\r\n />\r\n

{t('seTemperaturaAtivacaoModoEcoOffset', { value1: (returnExistOrValue1(state.formData.ECO_OFST_END, 1)), value2: (7 + (parseFloat(returnExistOrValue1(state.formData.ECO_OFST_END, 1)))) })}

\r\n
\r\n
\r\n )}\r\n\r\n {isFancoilVavApplication && }\r\n\r\n
\r\n \r\n history.push(history.location.pathname.replace('/editar', '/perfil'))}>{t('botaoCancelar')}\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport const EditDevInfoDRI = (props: {\r\n formData: { varsConfigInput: string }\r\n onDataUpdate: (data: { varsConfigInput: string }) => void\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const { formData, onDataUpdate } = props;\r\n return (\r\n
\r\n { onDataUpdate({ varsConfigInput: event.target.value }); }}\r\n >\r\n {formData.varsConfigInput}\r\n\r\n \r\n
\r\n {t('umItemPorLinha')}\r\n
\r\n {'{\"name\":\"Psuc máquina 1\",\"address\":{\"protocol\":\"read-modbus-tcp\",\"machine\":0,\"ip\":\"192.168.137.1\",\"id\":1,\"function\":4,\"address\":21}}'}\r\n
\r\n
\r\n );\r\n};\r\n","import { useCallback, useEffect, useState } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useHistory } from 'react-router';\r\nimport { Flex } from 'reflexbox';\r\nimport { Button, Loader, ModalWindow } from '~/components';\r\nimport { AlertSignalIcon } from '~/icons';\r\n\r\ninterface Props {\r\n when?: boolean,\r\n onQuit?: any,\r\n onSave?: any,\r\n children?: JSX.Element | (JSX.Element[]) | null | string,\r\n}\r\n\r\nexport function RouterEditDal(props: Props) {\r\n const {\r\n when, onQuit, onSave,\r\n } = props;\r\n const history = useHistory();\r\n const [showModal, setShowModal] = useState(false);\r\n const [currentPath, setCurrentPath] = useState('');\r\n const [loading, setLoading] = useState(false);\r\n const { t } = useTranslation();\r\n\r\n useEffect(() => {\r\n const unblock = history.block((location, action): any => {\r\n const bool = true;\r\n if (when) {\r\n setCurrentPath(location.pathname);\r\n setShowModal(true);\r\n return '';\r\n }\r\n return bool;\r\n });\r\n\r\n return () => {\r\n unblock();\r\n };\r\n }, [when, history]);\r\n\r\n const handleSairSemSalvar = useCallback(async (e) => {\r\n e.preventDefault();\r\n if (onQuit) {\r\n const canRoute = await Promise.resolve(onQuit());\r\n setShowModal(false);\r\n if (canRoute) {\r\n history.push(currentPath);\r\n }\r\n }\r\n }, [currentPath, history, onQuit]);\r\n\r\n const handleSalvarSair = useCallback(async (e) => {\r\n e.preventDefault();\r\n setLoading(true);\r\n const response = await Promise.resolve(onSave());\r\n setShowModal(false);\r\n if (response) {\r\n history.push(currentPath);\r\n }\r\n setLoading(false);\r\n }, [currentPath, history, onSave]);\r\n\r\n return showModal ? (\r\n\r\n { setShowModal(false); }}\r\n borderTop\r\n style={{\r\n zIndex: 3, width: '420px', padding: '40px', fontFamily: 'Inter',\r\n }}\r\n >\r\n \r\n
\r\n \r\n {t('sairSemSalvar')}\r\n
\r\n\r\n \r\n \r\n {t('saindoDestaTela')}\r\n \r\n {t('perderaTodasAsNovas')}\r\n \r\n {t('queVoceConfigurou')}\r\n \r\n \r\n\r\n O que deseja fazer?\r\n\r\n
\r\n handleSalvarSair(e)}\r\n variant=\"primary\"\r\n >\r\n\r\n {loading\r\n ? (\r\n \r\n )\r\n : (\r\n <>\r\n {t('salvarSair')}\r\n \r\n )}\r\n\r\n \r\n handleSairSemSalvar(e)}\r\n variant=\"primary\"\r\n >\r\n {`${t('sairSemSalvar')}`}\r\n \r\n
\r\n
\r\n \r\n\r\n ) : null;\r\n}\r\n","import { useEffect } from 'react';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { Link } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport {\r\n Button, Loader, ModalWindow,\r\n} from '~/components';\r\nimport {\r\n Title,\r\n InfoItem,\r\n BtnClean,\r\n CustomInput,\r\n Label,\r\n ButtonAddAssociationsDal,\r\n} from './styles';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { useTranslation, Trans } from 'react-i18next';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from '~/providers';\r\nimport {\r\n UtilityIcon,\r\n} from 'icons';\r\nimport { SelectDMTport } from 'components/SelectDmtPort';\r\nimport { SmallTrashIcon } from '~/icons/Trash';\r\nimport { DALSchedule, ExceptionInfo, ScheduleInfo } from '../SchedulesModals/DAL_Schedule';\r\nimport { RouterEditDal } from './RouterEditDal';\r\nimport { SmallWarningIcon } from '~/icons/WarningIcon';\r\nimport { UnderlineBtn } from '../Units/UnitProfile/styles';\r\n\r\nexport const EditDalInfo = ({ dalInfo }): JSX.Element => {\r\n const match = useRouteMatch<{ devId: string }>();\r\n const history = useHistory();\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n devId: dalInfo.DEV_ID,\r\n larguraPage: window.innerWidth,\r\n dalInfo,\r\n linkBase: match.url.split(`/${match.params.devId}`)[0],\r\n illuminationList: dalInfo.dal.illuminationList,\r\n ports: [] as {\r\n label: string,\r\n associated: boolean,\r\n port: number,\r\n illuminationId?: number,\r\n }[],\r\n feedbacks: [] as {\r\n label: string,\r\n associated: boolean,\r\n port: number,\r\n illuminationId?: number,\r\n }[],\r\n openModal: null as null | string,\r\n clientsOpts: [] as { name: string, value: number|string }[],\r\n selectedClient: dalInfo.CLIENT_ID || null as any,\r\n unitsOpts: [] as { name: string, value: number|string }[],\r\n selectedUnit: dalInfo.UNIT_ID || null as any,\r\n utilitiesOpts: [] as { name: string, value: number|string }[],\r\n selectedUtility: null as any,\r\n selectedPort: null as null|{ port: number, associated: boolean, illuminationId?: number },\r\n selectedFeedback: null as null|{ port: number, associated: boolean, illuminationId?: number },\r\n replaceIllum: null as any,\r\n clientChanged: false,\r\n unitChanged: false,\r\n isLoading: false,\r\n deletionList: [] as { ILLUMINATION_ID: number, NAME: string, UNIT_ID: number }[],\r\n illuminationScheds: {} as {[illumId: number]: { scheds: ScheduleInfo[], exceptions: ExceptionInfo[] }},\r\n hasEdited: false as boolean,\r\n dalSchedsToEdit: { } as {[key: string]: {[key: string]: {schedId: number, delete: boolean, days: string}[]}},\r\n dalExceptsToDelete: { } as {[key: string]: {[key: string]: number[]}},\r\n illumsWithConflict: [] as string[],\r\n });\r\n\r\n const fetchClientData = async () => {\r\n try {\r\n setState({ isLoading: true });\r\n if (!state.clientsOpts.length) {\r\n const { list: clients } = await apiCall('/clients/get-clients-list', {});\r\n state.clientsOpts = clients.map((client) => ({ name: client.NAME, value: client.CLIENT_ID }));\r\n }\r\n if ((state.selectedClient && !state.unitsOpts.length) || state.clientChanged) {\r\n const { list: units } = await apiCall('/clients/get-units-list-basic', { CLIENT_ID: state.selectedClient });\r\n state.unitsOpts = units.map((units) => ({ name: units.UNIT_NAME, value: units.UNIT_ID }));\r\n state.clientChanged = false;\r\n }\r\n if ((state.selectedUnit && !state.utilitiesOpts.length) || state.unitChanged) {\r\n const illuminations = await apiCall('/dal/get-dal-illumination-list', { clientIds: [state.selectedClient] });\r\n const nonAssociatedIllums = illuminations.filter((illum) => illum.UNIT_ID === state.selectedUnit && !illum.DAL_CODE);\r\n state.utilitiesOpts = nonAssociatedIllums.map((item) => ({ ...item, name: item.NAME, value: item.ID }));\r\n state.unitChanged = false;\r\n }\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n setState({ isLoading: false });\r\n };\r\n\r\n function isOverLimit() {\r\n return state.illuminationList.length > 3;\r\n }\r\n\r\n async function getDalPortsInfo() {\r\n const clientId = dalInfo.CLIENT_ID || state.selectedClient;\r\n if (clientId) {\r\n const portsInfo = await apiCall('/dal/get-dal-ports-info', { DAL_CODE: state.devId, CLIENT_ID: dalInfo.CLIENT_ID || state.selectedClient });\r\n const feedbackPorts = portsInfo.feedbacks.map((x) => ({ ...x, label: 'F'.concat(x.label) }));\r\n const illuminationList = state.illuminationList.map((illum) => ({\r\n ...illum,\r\n PORT: portsInfo.ports.find((x) => x.port === illum.PORT),\r\n FEEDBACK: feedbackPorts.find((x) => x.port === illum.FEEDBACK),\r\n }));\r\n setState({\r\n ...state,\r\n ports: portsInfo.ports,\r\n feedbacks: feedbackPorts,\r\n illuminationList,\r\n });\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n fetchClientData();\r\n }, [state.selectedClient, state.selectedUnit]);\r\n\r\n document.body.onresize = function () {\r\n setState({ larguraPage: document.body.clientWidth });\r\n };\r\n\r\n useEffect(() => {\r\n getDalPortsInfo();\r\n }, [state.selectedClient]);\r\n\r\n interface DaySched {\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n DAYS: string;\r\n ID?: number;\r\n }\r\n\r\n const getNewSchedDays = (convergence: DaySched,\r\n newSched: DaySched) => {\r\n let newDays;\r\n if (newSched?.ID) {\r\n newDays = JSON.parse(newSched.DAYS);\r\n const convergenceDays = JSON.parse(convergence.DAYS);\r\n for (const day of Object.keys(convergenceDays)) {\r\n if (convergenceDays[day]) newDays[day] = false;\r\n }\r\n } else if (convergence?.ID) {\r\n newDays = JSON.parse(convergence.DAYS);\r\n const convergenceDays = JSON.parse(newSched.DAYS);\r\n for (const day of Object.keys(convergenceDays)) {\r\n if (convergenceDays[day]) newDays[day] = false;\r\n }\r\n }\r\n\r\n return newDays;\r\n };\r\n\r\n function checkConvergence(\r\n currentScheds: DaySched[],\r\n newSched: DaySched,\r\n ) {\r\n const convergence = currentScheds.find((x) => (\r\n compareTimes(newSched, x)\r\n ));\r\n\r\n if (convergence) {\r\n const newDays = getNewSchedDays(convergence, newSched);\r\n let deleteSched = true;\r\n if (newDays !== undefined) {\r\n for (const day of Object.keys(newDays)) {\r\n if (newDays[day]) deleteSched = false;\r\n }\r\n }\r\n\r\n return {\r\n foundConvergence: true, schedId: newSched?.ID ?? convergence?.ID, days: JSON.stringify(newDays), deleteSched,\r\n };\r\n }\r\n return {\r\n foundConvergence: false, schedId: undefined, days: undefined, deleteSched: false,\r\n };\r\n }\r\n\r\n const checkDalSchedsCardsConflicts = (newScheds: ScheduleInfo[], persisted?: ScheduleInfo[]) => {\r\n const daysProgs = {\r\n sun: [],\r\n mon: [],\r\n tue: [],\r\n wed: [],\r\n thu: [],\r\n fri: [],\r\n sat: [],\r\n } as {[day: string]:DaySched[]};\r\n const ans = {\r\n hasConflict: false,\r\n schedsIdToEdit: [] as {schedId: number, delete: boolean, days: string}[],\r\n };\r\n\r\n const deleted = newScheds.filter((sched) => sched.ID && sched.DELETE);\r\n const deletedIds = deleted.map((sched) => sched.ID);\r\n\r\n const inserted = newScheds.filter((sched) => sched.INSERT && !sched.DELETE);\r\n\r\n const edited = newScheds.filter((sched) => sched.EDIT && !sched.DELETE);\r\n const editedIds = edited.map((sched) => sched.ID);\r\n\r\n let schedsToValidate: ScheduleInfo[] = [];\r\n if (persisted?.length === 0 || (persisted?.length && persisted?.length >= 0)) {\r\n const persistedWithoutEditeds = persisted.filter((sched) => (!deletedIds.includes(sched.ID) && !editedIds.includes(sched.ID)));\r\n schedsToValidate = inserted.concat(edited).concat(persistedWithoutEditeds);\r\n } else {\r\n schedsToValidate = newScheds;\r\n }\r\n for (const sched of schedsToValidate) {\r\n const days = JSON.parse(sched.DAYS) || {};\r\n for (const [day, selected] of Object.entries(days)) {\r\n if (!selected) continue;\r\n const dayScheds = daysProgs[day];\r\n const checkConvAns = checkConvergence(dayScheds, sched);\r\n if (checkConvAns.foundConvergence) {\r\n ans.hasConflict = true;\r\n if (checkConvAns.schedId && !ans.schedsIdToEdit.find((s) => s.schedId === checkConvAns.schedId)) {\r\n ans.schedsIdToEdit.push({\r\n schedId: checkConvAns.schedId, delete: checkConvAns.deleteSched, days: checkConvAns.days,\r\n });\r\n }\r\n }\r\n dayScheds.unshift(sched);\r\n }\r\n }\r\n return ans;\r\n };\r\n\r\n interface DayExcept {\r\n BEGIN_TIME: string;\r\n END_TIME: string;\r\n ID?: number;\r\n }\r\n\r\n const compareTimes = (time_1: DayExcept, time_2: DayExcept) => ((time_1.BEGIN_TIME <= time_2.BEGIN_TIME && time_2.BEGIN_TIME <= time_1.END_TIME)\r\n || (time_2.BEGIN_TIME <= time_1.BEGIN_TIME && time_1.BEGIN_TIME <= time_2.END_TIME)\r\n || (time_1.BEGIN_TIME <= time_2.BEGIN_TIME && time_2.END_TIME <= time_1.END_TIME)\r\n || (time_2.BEGIN_TIME <= time_1.BEGIN_TIME && time_1.END_TIME <= time_2.END_TIME));\r\n\r\n const hasHoursConflicts = (excepts: DayExcept[]) => {\r\n const ans = {\r\n foundConvergence: false,\r\n exceptsIds: [] as number[],\r\n };\r\n for (let i = 0; i < excepts.length; i++) {\r\n for (let j = i + 1; j < excepts.length; j++) {\r\n if (compareTimes(excepts[i], excepts[j])) {\r\n ans.foundConvergence = true;\r\n if (excepts[i]?.ID) {\r\n ans.exceptsIds.push(excepts[i].ID as number);\r\n }\r\n if (excepts[j]?.ID) {\r\n ans.exceptsIds.push(excepts[j].ID as number);\r\n }\r\n }\r\n }\r\n }\r\n return ans;\r\n };\r\n\r\n const handleDayExceptsInsertion = (dayExcepts: {[date: string]: {[year: string]: DayExcept[]}}, dateDM: string, except: ExceptionInfo) => {\r\n if (except.REPEAT_YEARLY === '1') {\r\n if (!dayExcepts[dateDM]?.YEARLY) {\r\n dayExcepts[dateDM].YEARLY = [{ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID }];\r\n } else {\r\n dayExcepts[dateDM].YEARLY.push({ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID });\r\n }\r\n } else {\r\n const dateY = except.EXCEPTION_DATE.slice(6, 10);\r\n if (!dayExcepts[dateDM]?.[dateY]) {\r\n dayExcepts[dateDM][dateY] = [{ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID }];\r\n } else {\r\n dayExcepts[dateDM][dateY].push({ BEGIN_TIME: except.BEGIN_TIME, END_TIME: except.END_TIME, ID: except.ID });\r\n }\r\n }\r\n };\r\n\r\n const getDayExcepts = (excepts: ExceptionInfo[]) => {\r\n const dayExcepts = {} as {[date: string]: {[year: string]: DayExcept[]}};\r\n for (const except of excepts) {\r\n if (except.ACTIVE === '0') continue;\r\n const dateDM = except.EXCEPTION_DATE.slice(0, 5);\r\n if (!dayExcepts[dateDM]) dayExcepts[dateDM] = {};\r\n\r\n handleDayExceptsInsertion(dayExcepts, dateDM, except);\r\n }\r\n\r\n return dayExcepts;\r\n };\r\n\r\n const checkNotYearlyExcept = (dayExcepts: {[date: string]: {[year: string]: DayExcept[]}}, date: string, yearlyExcepts: DayExcept[], ans: { hasConflict: boolean, exceptsIdToDelete: number[] }) => {\r\n for (const year of Object.keys(dayExcepts[date])) {\r\n if (year === 'YEARLY') continue;\r\n const excepts = dayExcepts[date][year].concat(yearlyExcepts);\r\n const checkExceptsConvergence = hasHoursConflicts(excepts);\r\n if (checkExceptsConvergence.foundConvergence) {\r\n ans.hasConflict = true;\r\n if (checkExceptsConvergence.exceptsIds.length) {\r\n ans.exceptsIdToDelete = ans.exceptsIdToDelete.concat(checkExceptsConvergence.exceptsIds);\r\n }\r\n }\r\n }\r\n };\r\n\r\n const checkDalCardsExceptsConflicts = (newExceptions: ExceptionInfo[], persisted: ExceptionInfo[]) => {\r\n const ans = {\r\n hasConflict: false,\r\n exceptsIdToDelete: [] as number[],\r\n };\r\n\r\n const deleted = newExceptions.filter((except) => except.ID && except.DELETE);\r\n const deletedIds = deleted.map((sched) => sched.ID);\r\n\r\n const inserted = newExceptions.filter((except) => except.INSERT && !except.DELETE);\r\n\r\n const edited = newExceptions.filter((except) => except.EDIT && !except.DELETE);\r\n const editedIds = edited.map((except) => except.ID);\r\n\r\n let exceptsToValidate: ExceptionInfo[] = [];\r\n if (persisted?.length === 0 || (persisted?.length && persisted?.length >= 0)) {\r\n const persistedWithoutEditeds = persisted.filter((except) => (!deletedIds.includes(except.ID) && !editedIds.includes(except.ID)));\r\n exceptsToValidate = inserted.concat(edited).concat(persistedWithoutEditeds);\r\n } else {\r\n exceptsToValidate = newExceptions;\r\n }\r\n\r\n const dayExcepts = getDayExcepts(exceptsToValidate);\r\n\r\n for (const date of Object.keys(dayExcepts)) {\r\n const yearlyExcepts = dayExcepts[date]?.YEARLY || [];\r\n const checkExceptsConvergence = hasHoursConflicts(yearlyExcepts);\r\n if (checkExceptsConvergence.foundConvergence) {\r\n ans.hasConflict = true;\r\n if (checkExceptsConvergence.exceptsIds.length) {\r\n ans.exceptsIdToDelete = ans.exceptsIdToDelete.concat(checkExceptsConvergence.exceptsIds);\r\n }\r\n }\r\n checkNotYearlyExcept(dayExcepts, date, yearlyExcepts, ans);\r\n }\r\n ans.exceptsIdToDelete = ans.exceptsIdToDelete.filter((e) => e !== undefined);\r\n return ans;\r\n };\r\n\r\n const validateDalScheds = async (DEVICE_CODE: string, ILLUMINATION_ID: number, newScheds: ScheduleInfo[], newExceptions: ExceptionInfo[]) => {\r\n try {\r\n const { scheds, exceptions } = await apiCall('/dal/get-dal-scheds', { DAL_CODE: DEVICE_CODE, ILLUMINATION_ID });\r\n\r\n // validar novos + persisitidos\r\n const dalSchedValidation = checkDalSchedsCardsConflicts(newScheds, scheds);\r\n if (dalSchedValidation.hasConflict) {\r\n if (dalSchedValidation.schedsIdToEdit.length) {\r\n if (!state.dalSchedsToEdit[DEVICE_CODE]) state.dalSchedsToEdit[DEVICE_CODE] = {};\r\n state.dalSchedsToEdit[DEVICE_CODE][ILLUMINATION_ID] = dalSchedValidation.schedsIdToEdit;\r\n }\r\n render();\r\n }\r\n\r\n // validar novos + persisitidos\r\n const dalExceptsValidation = checkDalCardsExceptsConflicts(newExceptions, exceptions);\r\n if (dalExceptsValidation.hasConflict) {\r\n if (dalExceptsValidation.exceptsIdToDelete.length) {\r\n if (!state.dalExceptsToDelete[DEVICE_CODE]) state.dalExceptsToDelete[DEVICE_CODE] = {};\r\n state.dalExceptsToDelete[DEVICE_CODE][ILLUMINATION_ID] = [...new Set(dalExceptsValidation.exceptsIdToDelete)];\r\n render();\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n }\r\n };\r\n\r\n const validateScheds = async () => {\r\n setState({\r\n isLoading: true,\r\n dalExceptsToDelete: {},\r\n dalSchedsToEdit: {},\r\n illumsWithConflict: [],\r\n });\r\n render();\r\n\r\n let foundConflict = false;\r\n\r\n for (const [illumId, { scheds, exceptions }] of Object.entries(state.illuminationScheds)) {\r\n const illum = state.illuminationList.find((illum) => illum.ILLUMINATION_ID === Number(illumId));\r\n try {\r\n // validar só persistidos/editados\r\n // @ts-ignore\r\n const checkJustPersistedAndEditedCards = checkDalSchedsCardsConflicts(scheds.filter((sched) => !sched.DELETE && !sched.INSERT));\r\n if (checkJustPersistedAndEditedCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumsWithConflict.includes(illumId)) {\r\n state.illumsWithConflict.push(illumId);\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as programações ${illum.NAME}. Alguns conflitos foram encontrados entre as programações já existentes e as programações já existentes que foram editadas.`);\r\n }\r\n\r\n try {\r\n // validar só novos\r\n // @ts-ignore\r\n const checkJustNewCards = checkDalSchedsCardsConflicts(scheds.filter((sched) => sched.INSERT && !sched.DELETE));\r\n if (checkJustNewCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumsWithConflict.includes(illumId)) {\r\n state.illumsWithConflict.push(illumId);\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as programações ${illum.NAME}. Alguns conflitos foram encontrados entre as programações novas inseridas.`);\r\n }\r\n\r\n try {\r\n // validar só persistidos/editados\r\n // @ts-ignore\r\n const checkJustPersistedAndEditedCards = checkDalCardsExceptsConflicts(exceptions.filter((except) => !except.DELETE && !except.INSERT));\r\n if (checkJustPersistedAndEditedCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumsWithConflict.includes(illumId)) {\r\n state.illumsWithConflict.push(illumId);\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as exceções ${illum.NAME}. Alguns conflitos foram encontrados entre as exceções já existentes e as exceções já existentes que foram editadas.`);\r\n }\r\n\r\n try {\r\n // validar só novos\r\n // @ts-ignore\r\n const checkJustNewCards = checkDalCardsExceptsConflicts(exceptions.filter((except) => except.INSERT && !except.DELETE));\r\n if (checkJustNewCards.hasConflict) throw new Error('');\r\n } catch (err) {\r\n foundConflict = true;\r\n if (!state.illumsWithConflict.includes(illumId)) {\r\n state.illumsWithConflict.push(illumId);\r\n render();\r\n }\r\n console.log(err);\r\n toast.error(`Não será possível salvar as exceções ${illum.NAME}. Alguns conflitos foram encontrados entre as exceções novas inseridas.`);\r\n }\r\n }\r\n\r\n // verificar o retorno\r\n\r\n // validate and save\r\n for (const [illumId, { scheds, exceptions }] of Object.entries(state.illuminationScheds)) {\r\n const illum = state.illuminationList.find((illum) => illum.ILLUMINATION_ID === Number(illumId));\r\n if (state.illumsWithConflict.includes(illumId)) continue;\r\n try {\r\n await validateDalScheds(state.devId, Number(illumId), scheds, exceptions);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(`Não será possível salvar programações/exceções ${illum.NAME || ''}.`);\r\n }\r\n }\r\n render();\r\n\r\n if (foundConflict && state.illuminationList.length === state.illumsWithConflict.length) {\r\n setState({\r\n isLoading: false,\r\n });\r\n render();\r\n return false;\r\n }\r\n // setState({\r\n // isLoading: false,\r\n // });\r\n return true;\r\n };\r\n\r\n const formatStringToDate = (str: string) => (`${str.substring(6, 10)}-${str.substring(3, 5)}-${str.substring(0, 2)}`);\r\n\r\n async function saveDalInfo() {\r\n let success = true;\r\n state.openModal = null;\r\n render();\r\n const illumErrors: number[] = [];\r\n try {\r\n // Desassocia iluminações que já estavam associadas\r\n for (const removed of state.deletionList) {\r\n try {\r\n await apiCall('/dal/set-dal-illumination', {\r\n ID: removed.ILLUMINATION_ID,\r\n NAME: removed.NAME,\r\n PORT: null,\r\n FEEDBACK: null,\r\n UNIT_ID: removed.UNIT_ID,\r\n });\r\n } catch (err) {\r\n success = false;\r\n console.log(err);\r\n toast.error(t('naoFoiPossivelDesassociarDevice', { device: removed.NAME }));\r\n }\r\n }\r\n\r\n // Edita associações de iluminações ou adiciona\r\n for (const ilumn of state.illuminationList) {\r\n try {\r\n const currIllumInfo = await apiCall('/dal/get-illumination-info', { ILLUMINATION_ID: ilumn.ILLUMINATION_ID });\r\n if (currIllumInfo.NAME !== ilumn.NAME\r\n || currIllumInfo.UNIT_ID !== ilumn.UNIT_ID\r\n || currIllumInfo.PORT !== ilumn.PORT?.port\r\n || currIllumInfo.FEEDBACK !== ilumn.FEEDBACK?.port\r\n || currIllumInfo.DEFAULT_MODE !== ilumn.DEFAULT_MODE\r\n || currIllumInfo.DAL_CODE !== state.devId\r\n ) {\r\n await apiCall('/dal/set-dal-illumination', {\r\n ID: ilumn.ILLUMINATION_ID,\r\n DAL_CODE: state.devId,\r\n NAME: ilumn.NAME,\r\n UNIT_ID: ilumn.UNIT_ID,\r\n PORT: ilumn.PORT?.port || null,\r\n FEEDBACK: ilumn.FEEDBACK?.port || null,\r\n DEFAULT_MODE: ilumn.DEFAULT_MODE || null,\r\n });\r\n }\r\n } catch (err) {\r\n illumErrors.push(ilumn.ILLUMINATION_ID);\r\n success = false;\r\n console.log(err);\r\n toast.error(t('naoFoiPossivelSalvarInfoDevice', { device: ilumn.NAME }));\r\n }\r\n }\r\n\r\n // Atualiza as programações necessárias\r\n for (const [illumId, { scheds, exceptions }] of Object.entries(state.illuminationScheds)) {\r\n if (illumErrors.includes(Number(illumId))) {\r\n continue;\r\n }\r\n\r\n const illum = state.illuminationList.find((illum) => illum.ILLUMINATION_ID === Number(illumId));\r\n const defaultIllum = dalInfo.dal.illuminationList.find((illumination) => illumination.ILLUMINATION_ID === Number(illumId));\r\n\r\n if (state.illumsWithConflict.includes(illumId)) {\r\n toast.error(`Como avisado previamente, não será possível salvar as programações/exceções do ${illum.NAME}. O utilitário foi ignorado, atenção aos conflitos de programação/exceção.`);\r\n continue;\r\n }\r\n\r\n const schedsToEdit = state.dalSchedsToEdit?.[state.devId]?.[illumId];\r\n const schedsToSend = [] as {\r\n DAL_CODE: string;\r\n ILLUMINATION_ID: number;\r\n SCHED_ID?: number;\r\n TITLE?: string;\r\n ACTIVE?: string;\r\n BEGIN_TIME?: string;\r\n END_TIME?: string;\r\n DAYS?: string;\r\n STATUS?: string;\r\n INSERT?: boolean;\r\n EDIT?: boolean;\r\n DELETE?: boolean\r\n }[];\r\n for (const sched of scheds) {\r\n const editInfo = schedsToEdit?.find((s) => s.schedId === sched.ID);\r\n if ((editInfo?.delete || sched.DELETE) && !sched.ID) continue;\r\n\r\n schedsToSend.push({\r\n DAL_CODE: state.devId,\r\n ILLUMINATION_ID: Number(illumId),\r\n SCHED_ID: sched.ID,\r\n TITLE: sched.TITLE,\r\n ACTIVE: sched.ACTIVE,\r\n BEGIN_TIME: sched.BEGIN_TIME,\r\n END_TIME: sched.END_TIME,\r\n DAYS: editInfo?.days || sched.DAYS,\r\n STATUS: sched.STATUS,\r\n INSERT: (editInfo?.delete || sched.DELETE) ? false : sched.INSERT,\r\n EDIT: (editInfo?.delete || sched.DELETE || sched.INSERT) ? false : (!!editInfo || sched.EDIT || illum.DEFAULT_MODE !== defaultIllum?.DEFAULT_MODE),\r\n DELETE: editInfo?.delete ? true : sched.DELETE, // ajustar\r\n });\r\n }\r\n\r\n const exceptsToDelete = state.dalExceptsToDelete?.[state.devId]?.[illumId];\r\n const exceptsToSend = [] as {\r\n EXCEPTION_ID?: number;\r\n DAL_CODE: string;\r\n ILLUMINATION_ID: number;\r\n TITLE?: string;\r\n ACTIVE?: string;\r\n BEGIN_TIME?: string;\r\n END_TIME?: string;\r\n EXCEPTION_DATE?: string;\r\n REPEAT_YEARLY?: string;\r\n STATUS?: string;\r\n INSERT?: boolean;\r\n DELETE?: boolean\r\n EDIT?: boolean;\r\n }[];\r\n\r\n for (const except of exceptions) {\r\n const hasToDelete = !!exceptsToDelete?.find((e) => e === except.ID);\r\n exceptsToSend.push({\r\n EXCEPTION_ID: except.ID,\r\n DAL_CODE: state.devId,\r\n ILLUMINATION_ID: Number(illumId),\r\n TITLE: except.TITLE,\r\n ACTIVE: except.ACTIVE,\r\n BEGIN_TIME: except.BEGIN_TIME,\r\n END_TIME: except.END_TIME,\r\n EXCEPTION_DATE: formatStringToDate(except.EXCEPTION_DATE),\r\n REPEAT_YEARLY: except.REPEAT_YEARLY,\r\n STATUS: except.STATUS,\r\n INSERT: (hasToDelete || except.DELETE) ? false : except.INSERT,\r\n DELETE: hasToDelete ? true : except.DELETE,\r\n EDIT: (hasToDelete || except.DELETE || except.INSERT) ? false : (except.EDIT || illum.DEFAULT_MODE !== defaultIllum?.DEFAULT_MODE),\r\n });\r\n }\r\n\r\n try {\r\n await apiCall('/dal/handle-multiple-illumination-sched', {\r\n ILLUMINATION_ID: illum.ILLUMINATION_ID, DAL_CODE: illum.DAL_CODE, SCHEDS: schedsToSend, EXCEPTIONS: exceptsToSend,\r\n });\r\n } catch (err) {\r\n success = false;\r\n console.log(err);\r\n toast.error(`Não foi possível salvar programações ${illum.NAME || ''}`);\r\n }\r\n }\r\n\r\n if (success) {\r\n history.push(`${state.linkBase}/${state.devId}/informacoes`);\r\n toast.success(t('sucessoSalvar'));\r\n }\r\n setState({ isLoading: false, illumsWithConflict: [] });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarInfo'));\r\n setState({ isLoading: false, illumsWithConflict: [] });\r\n }\r\n state.hasEdited = false;\r\n setState({ isLoading: false, illumsWithConflict: [] });\r\n }\r\n\r\n function clearForm() {\r\n state.selectedUtility = null;\r\n state.selectedPort = null;\r\n state.selectedFeedback = null;\r\n // handleHasEdited();\r\n }\r\n\r\n async function associateNewIllumination() {\r\n if (state.replaceIllum) handleRemoveIllum(state.replaceIllum.ILLUMINATION_ID);\r\n const utilIndex = state.utilitiesOpts.findIndex((opt) => opt.value === state.selectedUtility);\r\n const selectedUtility = utilIndex > -1 ? state.utilitiesOpts.splice(utilIndex, 1)[0] : null;\r\n if (selectedUtility) {\r\n state.illuminationList.push({\r\n ...selectedUtility,\r\n ILLUMINATION_ID: selectedUtility.value,\r\n DAL_CODE: state.devId,\r\n PORT: state.selectedPort ?? null,\r\n FEEDBACK: state.selectedFeedback ?? null,\r\n UNIT_ID: state.selectedUnit,\r\n isNew: true,\r\n });\r\n if (state.selectedPort) {\r\n state.selectedPort.associated = true;\r\n state.selectedPort.illuminationId = Number(selectedUtility.value);\r\n }\r\n if (state.selectedFeedback) {\r\n state.selectedFeedback.associated = true;\r\n state.selectedFeedback.illuminationId = Number(selectedUtility.value);\r\n }\r\n state.deletionList = state.deletionList.filter((x) => x.ILLUMINATION_ID !== selectedUtility.value);\r\n }\r\n openModal(null);\r\n handleHasEdited();\r\n }\r\n\r\n function openModal(shouldOpen: string | null, illum?) {\r\n if (illum) {\r\n state.replaceIllum = illum;\r\n state.selectedUtility = illum.ILLUMINATION_ID;\r\n state.selectedPort = illum.PORT;\r\n state.selectedFeedback = illum.FEEDBACK;\r\n } else {\r\n state.replaceIllum = null;\r\n clearForm();\r\n }\r\n state.openModal = shouldOpen ? 'edit-utilities' : null;\r\n render();\r\n }\r\n function handlePortChange(illumId, type, oldPort, selectedPort) {\r\n const old = state[type]?.find((port) => port.port === oldPort);\r\n if (old) {\r\n old.associated = false;\r\n old.illuminationId = undefined;\r\n }\r\n const selected = state[type]?.find((port) => port.port === selectedPort);\r\n if (selected) {\r\n selected.associated = true;\r\n selected.illuminationId = illumId;\r\n }\r\n handleHasEdited();\r\n render();\r\n }\r\n\r\n function handleRemoveIllum(illumId) {\r\n const illumIndex = state.illuminationList.findIndex((x) => x.ILLUMINATION_ID === illumId);\r\n const removedIllum = illumIndex > -1 ? state.illuminationList.splice(illumIndex, 1)[0] : null;\r\n if (removedIllum) {\r\n delete state.illuminationScheds[removedIllum.ILLUMINATION_ID];\r\n state.utilitiesOpts.push({ ...removedIllum, name: removedIllum.NAME, value: removedIllum.ILLUMINATION_ID });\r\n if (dalInfo.dal.illuminationList.find((illum) => illum.ILLUMINATION_ID === removedIllum.ILLUMINATION_ID)) {\r\n state.deletionList.push(removedIllum);\r\n }\r\n }\r\n handleHasEdited();\r\n render();\r\n }\r\n\r\n function handleSchedChanges(illumId, scheds, exceptions) {\r\n state.illuminationScheds[illumId] = {\r\n scheds,\r\n exceptions,\r\n };\r\n render();\r\n }\r\n\r\n function editDefaultMode(defaultMode, illuminationId) {\r\n state.illuminationList.map((illum) => {\r\n if (illum.ILLUMINATION_ID === illuminationId) {\r\n illum.DEFAULT_MODE = defaultMode;\r\n }\r\n });\r\n render();\r\n }\r\n\r\n function handleHasEdited() {\r\n state.hasEdited = true;\r\n render();\r\n }\r\n\r\n const handleSaveSched = async () => {\r\n try {\r\n const valid = await validateScheds();\r\n render();\r\n if (valid) {\r\n state.openModal = 'saving-confirmation';\r\n render();\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n setState({ isLoading: false });\r\n }\r\n };\r\n\r\n return (\r\n <>\r\n \r\n {(state.openModal === 'saving-confirmation') && (\r\n\r\n setState({ openModal: null, isLoading: false })}>\r\n {state.openModal === 'saving-confirmation'\r\n && (\r\n \r\n \r\n \r\n \r\n

{t('desejaSalvar')}

\r\n
\r\n
    \r\n {Object.keys(state.dalSchedsToEdit).length !== 0 &&
  • {t('alertaSubstituicaoSchedDal')}
  • }\r\n {Object.keys(state.dalExceptsToDelete).length !== 0 &&
  • {t('alertaSubstituicaoExceptDal')}
  • }\r\n
\r\n \r\n \r\n {t('prosseguir')}\r\n \r\n setState({ openModal: null, isLoading: false })}>\r\n {t('cancelar')}\r\n \r\n \r\n
\r\n
\r\n )}\r\n
\r\n )}\r\n {state.openModal === 'edit-utilities' && (\r\n openModal(null)} style={{ width: '600px', padding: 20 }}>\r\n \r\n {`${state.replaceIllum ? t('substituir') : t('adicionar')} ${t('utilitario')}`}\r\n \r\n
\r\n \r\n { state.selectedClient = item; state.clientChanged = true; render(); }}\r\n search\r\n filterOptions={fuzzySearch}\r\n placeholder={t('selecioneCliente')}\r\n closeOnSelect\r\n disabled={!!state.selectedClient && state.illuminationList.length}\r\n />\r\n
\r\n
\r\n \r\n
\r\n \r\n { state.selectedUnit = item; state.unitChanged = true; render(); }}\r\n search\r\n filterOptions={fuzzySearch}\r\n placeholder={t('selecioneUnidade')}\r\n closeOnSelect\r\n disabled={!!state.selectedUnit && state.illuminationList.length}\r\n />\r\n
\r\n
\r\n\r\n \r\n \r\n
\r\n \r\n { state.selectedUtility = item; render(); }}\r\n search\r\n filterOptions={fuzzySearch}\r\n placeholder={t('selecionar')}\r\n closeOnSelect\r\n />\r\n
\r\n
\r\n\r\n
\r\n {\r\n state.selectedPort = item;\r\n render();\r\n }}\r\n style={{\r\n width: '100%',\r\n }}\r\n />\r\n
\r\n\r\n
\r\n {\r\n state.selectedFeedback = item;\r\n render();\r\n }}\r\n />\r\n
\r\n
\r\n\r\n \r\n openModal(null)}>{t('botaoFechar')}\r\n\r\n \r\n {`${t('adicionar')}`}\r\n \r\n \r\n
\r\n
\r\n )}\r\n {state.isLoading && }\r\n {!state.isLoading && (\r\n\r\n \r\n \r\n \r\n {t('dispositivo')}\r\n {state.devId}\r\n \r\n \r\n \r\n\r\n \r\n \r\n {t('informacoes')}\r\n \r\n \r\n {t('estado')}\r\n
\r\n {state.dalInfo.STATE_ID || '-'}\r\n
\r\n\r\n \r\n {t('cidade')}\r\n
\r\n {state.dalInfo.CITY_NAME || '-'}\r\n
\r\n\r\n \r\n {t('cliente')}\r\n
\r\n {state.dalInfo.CLIENT_NAME || '-'}\r\n
\r\n\r\n \r\n {t('unidade')}\r\n
\r\n {state.dalInfo.UNIT_NAME || '-'}\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n \r\n {t('associacoes')}\r\n \r\n \r\n {t('utilitariosAssociados')}\r\n
\r\n {state.illuminationList.length === 1 && `${state.illuminationList.length} ${t('utilitario')}`}\r\n {state.illuminationList.length > 1 && `${state.illuminationList.length} ${t('utilitarios')}`}\r\n {!state.illuminationList.length && t('nenhumUtilitarioAssociado')}\r\n
\r\n
\r\n
\r\n\r\n \r\n openModal('edit-utilities')}\r\n variant={isOverLimit() ? 'disabled' : 'primary'}\r\n disabled={isOverLimit()}\r\n >\r\n {`${t('adicionar')}`}\r\n \r\n\r\n {isOverLimit() && (\r\n \r\n \r\n Limite máximo\r\n de 4 utilitários por DAL já atingido\r\n \r\n \r\n )}\r\n \r\n
\r\n\r\n {!state.illuminationList.length && (\r\n \r\n
{t('nenhumUtilitarioAssociadoDal')}
\r\n \r\n )}\r\n\r\n {state.illuminationList?.map((illum) => (\r\n \r\n ))}\r\n\r\n \r\n \r\n {`${t('salvar')}`}\r\n \r\n\r\n history.push(`${state.linkBase}/${state.devId}/informacoes`)}>{t('cancelar')}\r\n \r\n \r\n )}\r\n { await saveDalInfo(); state.hasEdited = false; return true; }}\r\n onQuit={() => { state.hasEdited = false; render(); return true; }}\r\n />\r\n \r\n \r\n );\r\n};\r\n\r\nconst IllumItem = ({\r\n dalCode, illumInfo, portsList, handlePortChange, feedbacksList, handleRemoveIllum, schedChanges, replace, handleDefaultMode, handleHasEdited, larguraPage,\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n loading: false,\r\n portsList,\r\n feedbacksList,\r\n exceededExceptionLimit: false,\r\n });\r\n\r\n function filterIllumPortOpts(illumId) {\r\n const opts = state.portsList.map((port) => ({\r\n ...port,\r\n associated: port.illuminationId === illumId ? false : port.associated,\r\n }));\r\n return opts;\r\n }\r\n\r\n function filterIllumFeedbackOpts(illumId) {\r\n const opts = state.feedbacksList.map((port) => ({\r\n ...port,\r\n associated: port.illuminationId === illumId ? false : port.associated,\r\n }));\r\n return opts;\r\n }\r\n\r\n async function clearPort() {\r\n handlePortChange(illumInfo.ILLUMINATION_ID, 'ports', illumInfo.PORT?.port);\r\n handlePortChange(illumInfo.ILLUMINATION_ID, 'feedbacks', illumInfo.FEEDBACK?.port);\r\n illumInfo.PORT = null;\r\n illumInfo.FEEDBACK = null;\r\n }\r\n\r\n async function removeIllumAssociation() {\r\n clearPort();\r\n handleRemoveIllum(illumInfo.ILLUMINATION_ID);\r\n }\r\n\r\n function handleSchedChanges(scheds, exceptions) {\r\n schedChanges(illumInfo.ILLUMINATION_ID, scheds, exceptions);\r\n }\r\n\r\n function editDefaultMode(defaultMode, illuminationId) {\r\n handleDefaultMode(defaultMode, illuminationId);\r\n }\r\n\r\n function changeHasEdited() {\r\n handleHasEdited();\r\n }\r\n\r\n return (\r\n \r\n 767 ? 'row' : 'column'}>\r\n 767 ? '70%' : '100%'} style={{ position: 'relative' }}>\r\n \r\n \r\n \r\n {illumInfo.NAME}\r\n \r\n replace(true, illumInfo)}>{t('substituir')}\r\n \r\n {\r\n larguraPage <= 767 && (\r\n \r\n \r\n
\r\n )\r\n }\r\n
\r\n 767 ? 'flex-end' : 'space-between'} style={{ gap: 20, paddingRight: 10, marginRight: 20 }} flexWrap=\"wrap\">\r\n \r\n {illumInfo.PORT && (\r\n { setState({ exceededExceptionLimit: value }); render(); }} />\r\n )}\r\n \r\n 437 ? 'auto' : '100%' }}>\r\n 437 ? '150px' : '100%' }}>\r\n 437 ? t('portaDoDal') : t('porta')}\r\n placeholder={t('selecionar')}\r\n options={filterIllumPortOpts(illumInfo.ILLUMINATION_ID)}\r\n propLabel=\"label\"\r\n value={illumInfo.PORT || ''}\r\n hideSelected\r\n onSelect={(item) => {\r\n handlePortChange(illumInfo.ILLUMINATION_ID, 'ports', illumInfo.PORT?.port, item.port);\r\n illumInfo.PORT = item;\r\n render();\r\n }}\r\n disabled={state.loading}\r\n />\r\n {t('limpar')}\r\n \r\n\r\n
437 ? '150px' : '100%' }}>\r\n 437 ? t('feedbackDoDal') : t('feedback')}\r\n placeholder={t('selecionar')}\r\n options={filterIllumFeedbackOpts(illumInfo.ILLUMINATION_ID)}\r\n propLabel=\"label\"\r\n value={illumInfo.FEEDBACK || ''}\r\n hideSelected\r\n onSelect={(item) => {\r\n handlePortChange(illumInfo.ILLUMINATION_ID, 'feedbacks', illumInfo.FEEDBACK?.port, item.port);\r\n illumInfo.FEEDBACK = item;\r\n render();\r\n }}\r\n disabled={state.loading}\r\n />\r\n
\r\n
\r\n
\r\n {\r\n larguraPage > 767 && (\r\n \r\n )\r\n }\r\n
\r\n
\r\n \r\n );\r\n};\r\n","import { useEffect } from 'react';\r\nimport { Flex } from 'reflexbox';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport {\r\n Button, ModalWindow,\r\n} from '~/components';\r\nimport {\r\n Title,\r\n InfoItem,\r\n BtnClean,\r\n CustomInput,\r\n Label,\r\n StyledLink,\r\n} from './styles';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { useTranslation, Trans } from 'react-i18next';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { apiCall } from '~/providers';\r\nimport {\r\n EletricNetworkIcon,\r\n UtilityIcon,\r\n} from 'icons';\r\nimport { SelectDMTport } from 'components/SelectDmtPort';\r\nimport { SmallTrashIcon } from '~/icons/Trash';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const EditDmtInfo = ({ dmtInfo }): JSX.Element => {\r\n const match = useRouteMatch<{ devId: string }>();\r\n const history = useHistory();\r\n const { t } = useTranslation();\r\n const handleProp = (prop) => (prop || '-');\r\n const [state, render, setState] = useStateVar({\r\n devId: dmtInfo.DEV_ID,\r\n dmtInfo,\r\n linkBase: match.url.split(`/${match.params.devId}`)[0],\r\n utilitiesList: [] as any[],\r\n ports: [] as {\r\n label: string,\r\n associated: boolean,\r\n port: number,\r\n name?: string,\r\n illuminationId?: number,\r\n nobreakId?: number,\r\n eletricCircuitId?: number,\r\n utilityId?: number,\r\n }[],\r\n portsToEdit: [] as {\r\n label: string,\r\n associated: boolean,\r\n port: number,\r\n illuminationId?: number,\r\n nobreakId?: number,\r\n eletricCircuitId?: number,\r\n }[],\r\n application: null as any,\r\n openModal: false,\r\n openDeleteModal: false,\r\n clientsOpts: [] as { name: string, value: number|string }[],\r\n selectedClient: dmtInfo.CLIENT_ID || null as any,\r\n unitsOpts: [] as { name: string, value: number|string, STATE_ID?: string, CITY_NAME?: string, UNIT_NAME?: string, CLIENT_NAME?: string }[],\r\n selectedUnit: dmtInfo.UNIT_ID || null as any,\r\n utilitiesOpts: [] as { name: string, value: number|string, datCode?: string, utilityId?: number }[],\r\n selectedUtility: null as any,\r\n selectedPort: null as null|number,\r\n selectedElectricNetwork: null as null|number,\r\n replaceUtility: null as any,\r\n replaceUtilityIdx: null as number|null,\r\n clientChanged: false,\r\n unitChanged: false,\r\n deleteUtility: null as any,\r\n deleteUtilityIdx: null as number|null,\r\n width: window.innerWidth,\r\n mobile: window.innerWidth < 650,\r\n stateId: handleProp(dmtInfo.STATE_ID),\r\n cityName: handleProp(dmtInfo.CITY_NAME),\r\n unitName: handleProp(dmtInfo.UNIT_NAME),\r\n clientName: handleProp(dmtInfo.CLIENT_NAME),\r\n sensors: [] as {\r\n name: string;\r\n value: string;\r\n }[],\r\n selectedSensor: null as any|null,\r\n });\r\n\r\n const updateDimensions = () => {\r\n state.width = window.innerWidth;\r\n if (window.innerWidth < 650) {\r\n state.mobile = true;\r\n } else {\r\n state.mobile = false;\r\n }\r\n render();\r\n };\r\n\r\n useEffect(() => {\r\n window.addEventListener('resize', updateDimensions);\r\n return () => window.removeEventListener('resize', updateDimensions);\r\n }, []);\r\n\r\n const getUtilitiesOpts = async () => {\r\n const utilites = await apiCall('/dmt/get-dmt-utilities-list', { CLIENT_ID: state.selectedClient });\r\n const utilitiesFromUnit = utilites.filter((util) => util.UNIT_ID === state.selectedUnit);\r\n if (state.application === 'Nobreak') {\r\n const associateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Nobreak' && (!util.DISSOCIATE || util.INSERT)).map((util) => util.UTILITY_ID);\r\n const dissociateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Nobreak' && util.DISSOCIATE).map((util) => util.UTILITY_ID);\r\n state.utilitiesOpts = utilitiesFromUnit.filter((util) => util.APPLICATION === 'Nobreak' && (((!associateds.includes(util.ID) && !util.DMT_CODE)) || dissociateds.includes(util.ID) || (state.replaceUtility && state.replaceUtility.APPLICATION === 'Nobreak' && state.replaceUtility.UTILITY_ID === util.ID))).map((item) => ({ name: item.NAME, value: item.ID, datCode: item.DAT_CODE }));\r\n } else if (state.application === 'Illumination') {\r\n const associateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Illumination' && (!util.DISSOCIATE || util.INSERT)).map((util) => util.ILLUMINATION_ID);\r\n const dissociateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Illumination' && util.DISSOCIATE).map((util) => util.ILLUMINATION_ID);\r\n state.utilitiesOpts = utilitiesFromUnit.filter((util) => util.APPLICATION === 'Illumination' && (((!associateds.includes(util.ID) && !util.DMT_CODE)) || dissociateds.includes(util.ID) || (state.replaceUtility && state.replaceUtility.APPLICATION === 'Illumination' && state.replaceUtility.ILLUMINATION_ID === util.ID))).map((item) => ({ name: item.NAME, value: item.ID, utilityId: item.UTILITY_ID }));\r\n } else if (state.application === 'Elevator') {\r\n const associateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Elevator' && (!util.DISSOCIATE || util.INSERT)).map((util) => util.UTILITY_ID);\r\n const dissociateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Elevator' && util.DISSOCIATE).map((util) => util.UTILITY_ID);\r\n state.utilitiesOpts = utilitiesFromUnit.filter((util) => util.APPLICATION === 'Elevator' && (((!associateds.includes(util.ID) && !util.DMT_CODE)) || dissociateds.includes(util.ID) || (state.replaceUtility && state.replaceUtility.APPLICATION === 'Elevator' && state.replaceUtility.UTILITY_ID === util.ID))).map((item) => ({ name: item.NAME, value: item.ID }));\r\n } else if (state.application === 'Escalator') {\r\n const associateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Escalator' && (!util.DISSOCIATE || util.INSERT)).map((util) => util.UTILITY_ID);\r\n const dissociateds = state.utilitiesList.filter((util) => util.APPLICATION === 'Escalator' && util.DISSOCIATE).map((util) => util.UTILITY_ID);\r\n state.utilitiesOpts = utilitiesFromUnit.filter((util) => util.APPLICATION === 'Escalator' && (((!associateds.includes(util.ID) && !util.DMT_CODE)) || dissociateds.includes(util.ID) || (state.replaceUtility && state.replaceUtility.APPLICATION === 'Escalator' && state.replaceUtility.UTILITY_ID === util.ID))).map((item) => ({ name: item.NAME, value: item.ID }));\r\n }\r\n };\r\n\r\n const getUnitOpts = async () => {\r\n const units = await apiCall('/clients/get-units-list', { CLIENT_ID: state.selectedClient });\r\n if (state.clientChanged) {\r\n state.selectedUnit = null;\r\n }\r\n state.unitsOpts = units.map((units) => ({\r\n name: units.UNIT_NAME, value: units.UNIT_ID, STATE_ID: units.STATE_ID, CLIENT_NAME: units.CLIENT_NAME, UNIT_NAME: units.UNIT_NAME, CITY_NAME: units.CITY_NAME,\r\n }));\r\n };\r\n\r\n const setUnitInfo = () => {\r\n const unitInfo = state.unitsOpts.find((unit) => (unit.value === state.selectedUnit));\r\n if (unitInfo) {\r\n state.stateId = unitInfo.STATE_ID;\r\n state.clientName = unitInfo.CLIENT_NAME;\r\n state.unitName = unitInfo.UNIT_NAME;\r\n state.cityName = unitInfo.CITY_NAME;\r\n }\r\n };\r\n\r\n const setDefaultElectricNetworkPort = () => {\r\n const numberOfNobreaks = state.utilitiesList.filter((util) => !util.DISSOCIATE && util.APPLICATION === 'Nobreak').length - (state.replaceUtility && state.replaceUtility.APPLICATION === 'Nobreak' ? 1 : 0);\r\n if (state.application === t('nobreak') && numberOfNobreaks === 0 && !isDMT2) {\r\n const defaultPort = !state.portsToEdit[3].associated ? 4 : null;\r\n if (defaultPort && !state.selectedElectricNetwork) {\r\n state.selectedElectricNetwork = defaultPort;\r\n state.portsToEdit[3].associated = true;\r\n state.portsToEdit[3].eletricCircuitId = -1;\r\n }\r\n } else {\r\n state.selectedElectricNetwork = null;\r\n }\r\n };\r\n\r\n const setElectricNetwork = () => {\r\n const electricNetworkIdx = state.utilitiesList.findIndex((util) => (util.APPLICATION === 'Electric Network' && !util.DISSOCIATE));\r\n if (electricNetworkIdx >= 0) {\r\n state.selectedElectricNetwork = state.utilitiesList[electricNetworkIdx].PORT;\r\n } else {\r\n setDefaultElectricNetworkPort();\r\n }\r\n };\r\n\r\n const setSelectedValues = () => {\r\n if (!state.replaceUtility) {\r\n state.selectedUtility = null;\r\n state.selectedPort = null;\r\n } else {\r\n const application = state.application === t('nobreak') ? 'Nobreak' : 'Illumination';\r\n if (state.replaceUtility.APPLICATION !== application) {\r\n state.selectedUtility = null;\r\n }\r\n state.selectedPort = state.replaceUtility.PORT;\r\n }\r\n };\r\n\r\n const fetchClientData = async () => {\r\n try {\r\n if (!state.clientsOpts.length) {\r\n const { list: clients } = await apiCall('/clients/get-clients-list', {});\r\n state.clientsOpts = clients.map((client) => ({ name: client.NAME, value: client.CLIENT_ID }));\r\n }\r\n if ((state.selectedClient && !state.unitsOpts.length) || state.clientChanged) {\r\n await getUnitOpts();\r\n if (state.selectedClient) {\r\n await getDmtPortsInfo();\r\n }\r\n state.clientChanged = false;\r\n }\r\n if ((state.selectedUnit && !state.utilitiesOpts.length) || state.unitChanged || state.application) {\r\n await getUtilitiesOpts();\r\n setUnitInfo();\r\n setSelectedValues();\r\n state.portsToEdit = JSON.parse(JSON.stringify(state.ports));\r\n setElectricNetwork();\r\n state.unitChanged = false;\r\n }\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n }\r\n };\r\n\r\n function isOverLimit() {\r\n let hasNobreak = false;\r\n const isDMT2 = state.devId.startsWith('DMT2');\r\n state.utilitiesList.forEach((util) => { if (util.APPLICATION === 'Nobreak' && !util.DISSOCIATE) { hasNobreak = true; } });\r\n if (isDMT2) {\r\n return state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length >= 2;\r\n }\r\n if (hasNobreak) {\r\n return state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length >= 3;\r\n }\r\n return state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length >= 4;\r\n }\r\n\r\n async function getDmtPortsInfo() {\r\n const portsInfo = await apiCall('/dmt/get-dmt-ports-info', { DMT_CODE: state.devId, CLIENT_ID: state.selectedClient, NEW_UTILITY_TYPE: undefined });\r\n setState({\r\n ...state,\r\n ports: portsInfo.ports.map((port) => { if (state.selectedUtility && port.NobreakId === state.selectedUtility) { port.associated = false; } return port; }),\r\n });\r\n }\r\n\r\n async function getSensorsInfo() {\r\n try {\r\n const { list } = await apiCall('/config/get-pressure-sensors');\r\n setState({\r\n ...state,\r\n sensors: list.map((item) => ({ name: item.SENSOR_ID, value: item.SENSOR_ID })),\r\n });\r\n } catch (err) {\r\n toast.error(t('naoFoiPossivelBuscarSensores'));\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n fetchClientData();\r\n }, [state.selectedClient, state.selectedUnit, state.application]);\r\n\r\n useEffect(() => {\r\n const numberOfUtilityWithoutIllumination = state.utilitiesList.filter((util) => (!util.DISSOCIATE && (util.APPLICATION !== 'Illumination'))).length;\r\n const hasElectricNetwork = !!state.utilitiesList.filter((util) => (util.APPLICATION === 'Electric Network')).length;\r\n if ((numberOfUtilityWithoutIllumination > 0 && !hasElectricNetwork) || isDMT2) {\r\n state.utilitiesList = [{\r\n APPLICATION: 'Electric Network',\r\n DMT_CODE: state.devId,\r\n UNIT_ID: state.selectedUnit,\r\n PORT: state.selectedElectricNetwork,\r\n INSERT: true,\r\n }].concat(dmtInfo.dmt.utilitiesList);\r\n } else {\r\n state.utilitiesList = dmtInfo.dmt.utilitiesList;\r\n }\r\n getDmtPortsInfo();\r\n getSensorsInfo();\r\n }, []);\r\n\r\n async function saveDmtInfo() {\r\n try {\r\n await apiCall('/dmt/set-dmt-utilities', {\r\n DMT_CODE: state.devId,\r\n UNIT_ID: state.selectedUnit || dmtInfo.UNIT_ID,\r\n utilities: !isDMT2 ? state.utilitiesList : state.utilitiesList.filter((item) => item.APPLICATION !== 'Electric Network'),\r\n });\r\n toast.success(t('sucessoSalvar'));\r\n history.push(`${state.linkBase}/${state.devId}/informacoes`);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarInfo'));\r\n }\r\n }\r\n\r\n function clearForm() {\r\n if (!state.dmtInfo.CLIENT_ID && !state.utilitiesList.length) state.selectedClient = null;\r\n if (!state.dmtInfo.UNIT_ID && !state.utilitiesList.length) state.selectedUnit = null;\r\n state.selectedUtility = null;\r\n state.selectedPort = null;\r\n state.application = null;\r\n state.selectedSensor = null;\r\n state.selectedElectricNetwork = null;\r\n }\r\n\r\n const getNumberOfUtilitiesHasEletricNetwork = () => state.utilitiesList.filter((util) => !util.DISSOCIATE && util.APPLICATION !== 'Illumination').length - (state.replaceUtility && state.replaceUtility.APPLICATION !== 'Illumination' ? 1 : 0);\r\n const validateParams = () => {\r\n if (!state.selectedClient) {\r\n toast.error(t('necessarioSelecCliente'));\r\n return false;\r\n }\r\n if (!state.selectedUnit) {\r\n toast.error(t('necessarioSelecUnidade'));\r\n return false;\r\n }\r\n if (!state.application) {\r\n toast.error(t('necessarioSelecAplicacao'));\r\n return false;\r\n }\r\n if (!state.selectedUtility) {\r\n toast.error(t('necessarioSelecUtilitario'));\r\n return false;\r\n }\r\n const numberUtilitiesHaveEletricNetwork = getNumberOfUtilitiesHasEletricNetwork();\r\n if (numberUtilitiesHaveEletricNetwork > 3) {\r\n toast.error(t('impossivelAssociarMaisUtilitariosNobreak'));\r\n return false;\r\n }\r\n const numberOfIlluminations = state.utilitiesList.filter((util) => !util.DISSOCIATE && util.APPLICATION === 'Illumination').length - (state.replaceUtility && state.replaceUtility.APPLICATION === 'Illumination' ? 1 : 0);\r\n if (numberUtilitiesHaveEletricNetwork + numberOfIlluminations >= (state.application === t('nobreak') && numberUtilitiesHaveEletricNetwork === 0 ? 3 : 4)) {\r\n toast.error(t('impossivelAssociarMaisUtilitarios'));\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n const handleNewElectricNetwork = () => {\r\n const numberOfUtilitiesHasEletricNetwork = getNumberOfUtilitiesHasEletricNetwork();\r\n if (numberOfUtilitiesHasEletricNetwork === 0) {\r\n if (state.utilitiesList.findIndex((util) => (util.APPLICATION === 'Electric Network')) >= 0) {\r\n state.utilitiesList.forEach((util) => { if (util.APPLICATION === 'Electric Network') { util.DISSOCIATE = false; util.PORT = state.selectedElectricNetwork; } });\r\n } else {\r\n state.utilitiesList = [{\r\n APPLICATION: 'Electric Network',\r\n DMT_CODE: state.devId,\r\n UNIT_ID: state.selectedUnit,\r\n PORT: state.selectedElectricNetwork,\r\n INSERT: true,\r\n }].concat(state.utilitiesList);\r\n }\r\n } else {\r\n state.utilitiesList.forEach((util) => { if (util.APPLICATION === 'Electric Network') util.PORT = state.selectedElectricNetwork; });\r\n }\r\n if (state.selectedElectricNetwork) {\r\n state.ports[state.selectedElectricNetwork - 1].associated = true;\r\n state.ports[state.selectedElectricNetwork - 1].eletricCircuitId = -1;\r\n state.ports[state.selectedElectricNetwork - 1].illuminationId = undefined;\r\n state.ports[state.selectedElectricNetwork - 1].nobreakId = undefined;\r\n }\r\n };\r\n\r\n const getNonAssociatedUtilities = async () => {\r\n const utilites = await apiCall('/dmt/get-dmt-utilities-list', { CLIENT_ID: state.selectedClient });\r\n const application = state.application;\r\n return utilites.filter((util) => util.UNIT_ID === state.selectedUnit && util.APPLICATION === application && !util.DMT_CODE).map((util) => util.ID);\r\n };\r\n\r\n const handleNewUtility = async () => {\r\n const selectedUtility = state.utilitiesOpts.find((opt) => opt.value === state.selectedUtility);\r\n if (!selectedUtility) return;\r\n\r\n const application = state.application;\r\n const nonAssociatedUtilities = await getNonAssociatedUtilities();\r\n if (nonAssociatedUtilities.includes(Number(selectedUtility.value))) {\r\n state.utilitiesList.push({\r\n UTILITY_ID: state.application === t('iluminacao') ? Number(selectedUtility.utilityId) : Number(selectedUtility.value),\r\n ILLUMINATION_ID: state.application === t('iluminacao') ? Number(selectedUtility.value) : undefined,\r\n NAME: selectedUtility.name,\r\n DMT_CODE: state.devId,\r\n PORT: state.selectedPort,\r\n UNIT_ID: state.selectedUnit,\r\n SENSOR: state.selectedSensor,\r\n DAT_CODE: selectedUtility.datCode,\r\n INSERT: true,\r\n APPLICATION: application,\r\n });\r\n } else {\r\n state.utilitiesList.forEach((util) => {\r\n if ((util.APPLICATION === application && util.UTILITY_ID === Number(selectedUtility.value))\r\n || (util.APPLICATION === application && util.ILLUMINATION_ID === Number(selectedUtility.value))) { util.DISSOCIATE = false; util.PORT = state.selectedPort; }\r\n });\r\n }\r\n\r\n setNewUtilityPort();\r\n };\r\n const setNewUtilityPort = () => {\r\n const selectedUtility = state.utilitiesOpts.find((opt) => opt.value === state.selectedUtility);\r\n if (state.selectedPort && selectedUtility) {\r\n state.ports[state.selectedPort - 1].eletricCircuitId = undefined;\r\n state.ports[state.selectedPort - 1].associated = true;\r\n if (state.application === t('nobreak')) {\r\n state.ports[state.selectedPort - 1].illuminationId = undefined;\r\n state.ports[state.selectedPort - 1].nobreakId = Number(selectedUtility.value);\r\n } else if (state.application === t('iluminacao')) {\r\n state.ports[state.selectedPort - 1].illuminationId = Number(selectedUtility.value);\r\n state.ports[state.selectedPort - 1].nobreakId = undefined;\r\n }\r\n }\r\n };\r\n async function associateNewUtility() {\r\n try {\r\n if (!validateParams()) return;\r\n state.ports = JSON.parse(JSON.stringify(state.portsToEdit));\r\n state.portsToEdit = [];\r\n\r\n if (state.replaceUtility) {\r\n deleteUtility(state.replaceUtility, state.replaceUtilityIdx);\r\n }\r\n const selectedUtility = state.utilitiesOpts.find((opt) => opt.value === state.selectedUtility);\r\n if (selectedUtility) {\r\n if (state.application === t('nobreak') || isDMT2) {\r\n handleNewElectricNetwork();\r\n render();\r\n }\r\n await handleNewUtility();\r\n render();\r\n }\r\n openModal(false, false);\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('naoFoiPossivelAssociarUtilitario'));\r\n }\r\n }\r\n\r\n function openModal(shouldOpen: boolean, cancel?: boolean, utility?, utilityIdx?) {\r\n if (utility) {\r\n state.replaceUtility = utility;\r\n state.replaceUtilityIdx = utilityIdx;\r\n if (utility.APPLICATION === 'Nobreak' || utility.APPLICATION === 'Elevator' || utility.APPLICATION === 'Escalator') {\r\n state.application = utility.APPLICATION;\r\n state.selectedUtility = utility.UTILITY_ID;\r\n state.selectedPort = utility.PORT;\r\n } else if (utility.APPLICATION === 'Illumination') {\r\n state.application = t('iluminacao');\r\n state.selectedUtility = utility.ILLUMINATION_ID;\r\n state.selectedPort = utility.PORT;\r\n }\r\n render();\r\n } else {\r\n state.replaceUtility = null;\r\n state.replaceUtilityIdx = null;\r\n clearForm();\r\n }\r\n const electricNetworkIdx = state.utilitiesList.findIndex((util) => (util.APPLICATION === 'Electric Network' && !util.DISSOCIATE));\r\n if (electricNetworkIdx >= 0) {\r\n state.selectedElectricNetwork = state.utilitiesList[electricNetworkIdx].PORT;\r\n }\r\n if (shouldOpen) {\r\n state.portsToEdit = JSON.parse(JSON.stringify(state.ports));\r\n } else if (cancel) {\r\n state.portsToEdit = [];\r\n if (!state.utilitiesList.length) {\r\n state.unitsOpts = [];\r\n state.stateId = null;\r\n state.cityName = null;\r\n state.unitName = null;\r\n state.clientName = null;\r\n state.selectedClient = dmtInfo.CLIENT_ID || null;\r\n state.selectedUnit = dmtInfo.UNIT_ID || null;\r\n }\r\n }\r\n state.openModal = shouldOpen;\r\n render();\r\n }\r\n\r\n function openDeleteModal(shouldOpen: boolean, utilityInfo?, utilityListIdx?) {\r\n if (shouldOpen) {\r\n state.deleteUtility = utilityInfo;\r\n state.deleteUtilityIdx = utilityListIdx;\r\n } else {\r\n state.deleteUtility = null;\r\n state.deleteUtilityIdx = null;\r\n }\r\n state.openDeleteModal = shouldOpen;\r\n render();\r\n }\r\n\r\n const clearUnitInfo = () => {\r\n if (!state.utilitiesList.filter((util) => (!util.DISSOCIATE && dmtInfo.UNIT_ID && dmtInfo.UNIT_ID === util.UNIT_ID || util.INSERT)).length) {\r\n state.stateId = null;\r\n state.cityName = null;\r\n state.unitName = null;\r\n state.clientName = null;\r\n }\r\n };\r\n\r\n const removeElectricNetwork = () => {\r\n const electricCircuitIdx = state.utilitiesList.findIndex((util) => (util.APPLICATION === 'Electric Network' && !util.DISSOCIATE && util.INSERT === true));\r\n if (electricCircuitIdx >= 0) {\r\n state.utilitiesList.splice(electricCircuitIdx, 1);\r\n }\r\n };\r\n\r\n const dissociateElectricNetwork = () => {\r\n state.utilitiesList.forEach((util) => {\r\n if (util.APPLICATION === 'Electric Network' && util.CIRCUIT_ID) { util.DISSOCIATE = true; util.PORT = null; }\r\n });\r\n state.ports.forEach((port) => {\r\n if (port.eletricCircuitId) { port.associated = false; port.eletricCircuitId = undefined; }\r\n return port;\r\n });\r\n };\r\n\r\n function deleteUtility(utilityInfo, utilityListIdx) {\r\n utilityInfo.DISSOCIATE = true;\r\n utilityInfo.PORT = null;\r\n state.ports.forEach((port) => {\r\n if ((utilityInfo.APPLICATION === 'Nobreak' && port.nobreakId === utilityInfo.UTILITY_ID)\r\n || (utilityInfo.APPLICATION === 'Illumination' && port.illuminationId === utilityInfo.ILLUMINATION_ID)\r\n || ((utilityInfo.APPLICATION === 'Elevator' || utilityInfo.APPLICATION === 'Escalator') && port.utilityId === utilityInfo.UTILITY_ID)\r\n ) { port.associated = false; port.nobreakId = undefined; port.illuminationId = undefined; port.utilityId = undefined; port.name = undefined; }\r\n\r\n return port;\r\n });\r\n\r\n let hasEletricNetwork = false;\r\n state.utilitiesList.forEach((util) => {\r\n if (util.APPLICATION !== 'Illumination' && !util.DISSOCIATE) hasEletricNetwork = true;\r\n });\r\n if (!hasEletricNetwork) {\r\n dissociateElectricNetwork();\r\n }\r\n\r\n if (utilityInfo.INSERT) {\r\n state.utilitiesList.splice(utilityListIdx, 1);\r\n }\r\n render();\r\n if (!hasEletricNetwork) {\r\n removeElectricNetwork();\r\n }\r\n\r\n clearUnitInfo();\r\n render();\r\n }\r\n\r\n function selectsDecide() {\r\n if (!state.dmtInfo.DEV_ID?.startsWith('DMT2')) {\r\n return (\r\n \r\n\r\n
\r\n {\r\n if (state.selectedPort) {\r\n state.portsToEdit[state.selectedPort - 1].associated = false;\r\n state.portsToEdit[state.selectedPort - 1].nobreakId = undefined;\r\n state.portsToEdit[state.selectedPort - 1].illuminationId = undefined;\r\n }\r\n state.selectedPort = item.port;\r\n state.portsToEdit[Number(item.port) - 1].associated = true;\r\n if (state.application === t('iluminacao')) {\r\n state.portsToEdit[Number(item.port) - 1].illuminationId = state.selectedUtility;\r\n } else if (state.application === t('nobreak')) {\r\n state.portsToEdit[Number(item.port) - 1].nobreakId = state.selectedUtility;\r\n }\r\n render();\r\n }}\r\n />\r\n {\r\n if (state.selectedPort) {\r\n state.portsToEdit[Number(state.selectedPort) - 1].associated = false;\r\n state.portsToEdit[Number(state.selectedPort) - 1].illuminationId = undefined;\r\n state.portsToEdit[Number(state.selectedPort) - 1].nobreakId = undefined;\r\n }\r\n state.selectedPort = null;\r\n render();\r\n }}\r\n >\r\n {t('limpar')}\r\n \r\n\r\n
\r\n\r\n
\r\n {\r\n if (state.selectedElectricNetwork) {\r\n state.portsToEdit[state.selectedElectricNetwork - 1].associated = false;\r\n state.portsToEdit[state.selectedElectricNetwork - 1].eletricCircuitId = undefined;\r\n }\r\n state.selectedElectricNetwork = item.port;\r\n state.portsToEdit[Number(item.port) - 1].associated = true;\r\n state.portsToEdit[Number(item.port) - 1].eletricCircuitId = -1;\r\n render();\r\n }}\r\n disabled={state.application === t('iluminacao')}\r\n />\r\n {state.application === t('nobreak')\r\n && (\r\n {\r\n if (state.selectedElectricNetwork) {\r\n state.portsToEdit[Number(state.selectedElectricNetwork) - 1].associated = false;\r\n state.portsToEdit[Number(state.selectedElectricNetwork) - 1].eletricCircuitId = undefined;\r\n }\r\n state.selectedElectricNetwork = null;\r\n render();\r\n }}\r\n >\r\n {t('limpar')}\r\n \r\n )}\r\n
\r\n
\r\n );\r\n }\r\n return (\r\n \r\n
\r\n {\r\n if (state.selectedPort) {\r\n state.portsToEdit[state.selectedPort - 1].associated = false;\r\n state.portsToEdit[state.selectedPort - 1].nobreakId = undefined;\r\n state.portsToEdit[state.selectedPort - 1].illuminationId = undefined;\r\n }\r\n state.selectedPort = item.port;\r\n state.portsToEdit[Number(item.port) - 1].associated = true;\r\n if (state.application === t('iluminacao')) {\r\n state.portsToEdit[Number(item.port) - 1].illuminationId = state.selectedUtility;\r\n } else if (state.application === t('nobreak')) {\r\n state.portsToEdit[Number(item.port) - 1].nobreakId = state.selectedUtility;\r\n }\r\n render();\r\n }}\r\n />\r\n {\r\n if (state.selectedPort) {\r\n state.portsToEdit[Number(state.selectedPort) - 1].associated = false;\r\n state.portsToEdit[Number(state.selectedPort) - 1].illuminationId = undefined;\r\n state.portsToEdit[Number(state.selectedPort) - 1].nobreakId = undefined;\r\n }\r\n state.selectedPort = null;\r\n render();\r\n }}\r\n >\r\n {t('limpar')}\r\n \r\n\r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n { state.selectedSensor = item; render(); }}\r\n disabled={!state.selectedPort}\r\n search\r\n />\r\n
\r\n
\r\n {\r\n state.selectedSensor = null;\r\n render();\r\n }}\r\n >\r\n {t('limpar')}\r\n \r\n
\r\n
\r\n );\r\n }\r\n\r\n const isDMT2 = state.devId.startsWith('DMT2');\r\n return (\r\n \r\n \r\n \r\n \r\n {t('dispositivo')}\r\n {state.devId}\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n {t('informacoes')}\r\n \r\n\r\n \r\n {t('estado')}\r\n
\r\n {state.stateId || '-'}\r\n
\r\n\r\n \r\n {t('cidade')}\r\n
\r\n {state.cityName || '-'}\r\n
\r\n\r\n \r\n {t('cliente')}\r\n
\r\n {state.clientName || '-'}\r\n
\r\n\r\n \r\n {t('unidade')}\r\n
\r\n {state.unitName || '-'}\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n \r\n {t('associacoes')}\r\n \r\n \r\n {t('utilitariosAssociados')}\r\n
\r\n {state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length === 1 && `${state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length} ${t('utilitario')}`}\r\n {state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length > 1 && `${state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length} ${t('utilitarios')}`}\r\n {!state.utilitiesList.filter((util) => util.APPLICATION !== 'Electric Network' && !util.DISSOCIATE).length && t('nenhumUtilitarioAssociado')}\r\n
\r\n
\r\n
\r\n\r\n \r\n openModal(true, false)}\r\n variant={isOverLimit() ? 'disabled' : 'primary'}\r\n disabled={isOverLimit()}\r\n >\r\n {`${t('adicionar')}`}\r\n \r\n\r\n {isOverLimit() && (\r\n \r\n \r\n Limite máximo\r\n de utilitários por DMT já atingido\r\n \r\n \r\n )}\r\n \r\n
\r\n\r\n {!state.utilitiesList.filter((util) => !util.DISSOCIATE).length && (\r\n \r\n
{t('nenhumUtilitarioAssociadoDmt')}
\r\n \r\n )}\r\n {state.utilitiesList?.filter((util) => !util.DISSOCIATE).map((util, index) => (\r\n \r\n ))}\r\n\r\n \r\n \r\n {`${t('salvar')}`}\r\n \r\n\r\n history.push(`${state.linkBase}/${state.devId}/informacoes`)}>{t('cancelar')}\r\n \r\n \r\n {state.openModal && (\r\n openModal(false, true)} style={{ width: '510px' }}>\r\n \r\n {`${state.replaceUtility ? t('substituir') : t('adicionar')} ${t('utilitario')}`}\r\n \r\n
\r\n\r\n \r\n { state.selectedClient = item; state.clientChanged = true; render(); }}\r\n disabled={(state.selectedClient && state.utilitiesList.filter((util) => (!util.DISSOCIATE && dmtInfo.UNIT_ID && dmtInfo.UNIT_ID === util.UNIT_ID || util.INSERT)).length)}\r\n search\r\n />\r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n { state.selectedUnit = item; state.unitChanged = true; render(); }}\r\n disabled={(state.selectedUnit && state.utilitiesList.filter((util) => (!util.DISSOCIATE && dmtInfo.UNIT_ID && dmtInfo.UNIT_ID === util.UNIT_ID || util.INSERT)).length)}\r\n search\r\n />\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n { state.application = item; render(); }}\r\n search\r\n filterOptions={fuzzySearch}\r\n placeholder={t('selecionar')}\r\n disabled={!state.selectedClient || !state.selectedUnit}\r\n closeOnSelect\r\n />\r\n
\r\n
\r\n \r\n
\r\n \r\n { state.selectedUtility = item; render(); }}\r\n disabled={!state.application}\r\n search\r\n />\r\n
\r\n
\r\n
\r\n {\r\n (state.application && state.selectedUtility) && (\r\n selectsDecide()\r\n )\r\n }\r\n \r\n { openModal(false, false); state.application = null; render(); }}>{t('botaoFechar')}\r\n\r\n \r\n {`${state.replaceUtility ? t('confirmar') : t('adicionar')}`}\r\n \r\n \r\n
\r\n
\r\n )}\r\n\r\n {state.openDeleteModal && (\r\n openDeleteModal(false)} style={{ width: '360px' }}>\r\n \r\n Remover Utilitário\r\n

\r\n {t('voceGostariaDeRemoverUtilitario')}\r\n {state.deleteUtility.NAME || '-'}\r\n {t('aEsteDmt')}\r\n

\r\n \r\n { deleteUtility(state.deleteUtility, state.deleteUtilityIdx); openDeleteModal(false); }}\r\n variant=\"primary\"\r\n >\r\n {t('remover')}\r\n \r\n { openDeleteModal(false); }}>{t('cancelar')}\r\n\r\n \r\n
\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nconst UtilityItem = ({\r\n dmtCode, utilityInfo, portsList, replace, renderList, utilityListIdx, openDeleteModal, mobile, sensorOptions,\r\n}): JSX.Element => {\r\n const [state, render, setState] = useStateVar({\r\n loading: false,\r\n });\r\n const { t } = useTranslation();\r\n const isDMT2 = dmtCode.startsWith('DMT2');\r\n async function clearPort() {\r\n setState({ loading: true });\r\n utilityInfo.PORT = null;\r\n portsList.forEach((port) => {\r\n if ((utilityInfo.APPLICATION === 'Nobreak' && port.nobreakId === utilityInfo.UTILITY_ID)\r\n || (utilityInfo.APPLICATION === 'Electric Network' && port.eletricCircuitId)\r\n || (utilityInfo.APPLICATION === 'Illumination' && port.illuminationId === utilityInfo.ILLUMINATION_ID)\r\n ) { port.associated = false; port.nobreakId = undefined; port.eletricCircuitId = undefined; port.illuminationId = undefined; }\r\n\r\n return port;\r\n });\r\n render();\r\n setState({ loading: false });\r\n renderList();\r\n }\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {utilityInfo.APPLICATION === 'Electric Network' ? : }\r\n \r\n {utilityInfo.APPLICATION === 'Electric Network' && t('redeEletrica')}\r\n {utilityInfo.APPLICATION !== 'Electric Network' && {utilityInfo.NAME}}\r\n\r\n {utilityInfo.APPLICATION === 'Nobreak' && {utilityInfo.DAT_CODE || '-'}}\r\n \r\n \r\n \r\n {utilityInfo.APPLICATION !== 'Electric Network' && replace(true, false, utilityInfo, utilityListIdx)}>{t('substituir')} }\r\n \r\n \r\n {mobile && { openDeleteModal(true, utilityInfo, utilityListIdx); }} color=\"red\" disabled={state.loading} />}\r\n \r\n { ((utilityInfo.APPLICATION !== 'Electric Network' && isDMT2) || !isDMT2) && (\r\n \r\n { isDMT2 && (\r\n \r\n \r\n
\r\n \r\n {\r\n utilityInfo.SENSOR = item;\r\n render();\r\n renderList();\r\n }}\r\n disabled={state.loading}\r\n />\r\n
\r\n
\r\n utilityInfo.SENSOR = null}>{t('limpar')}\r\n
\r\n )}\r\n \r\n {\r\n if (utilityInfo.PORT) {\r\n portsList[utilityInfo.PORT - 1].associated = false;\r\n portsList[utilityInfo.PORT - 1].nobreakId = undefined;\r\n portsList[utilityInfo.PORT - 1].illuminationId = undefined;\r\n portsList[utilityInfo.PORT - 1].eletricCircuitId = undefined;\r\n portsList[utilityInfo.PORT - 1].utilityId = undefined;\r\n }\r\n utilityInfo.PORT = item.port;\r\n\r\n portsList[Number(item.port) - 1].associated = true;\r\n if (utilityInfo.APPLICATION === 'Illumination') {\r\n portsList[Number(item.port) - 1].illuminationId = utilityInfo.ILLUMINATION_ID;\r\n } else if (utilityInfo.APPLICATION === 'Nobreak') {\r\n portsList[Number(item.port) - 1].nobreakId = utilityInfo.UTILITY_ID;\r\n } else if (utilityInfo.APPLICATION === 'Electric Network') {\r\n portsList[Number(item.port) - 1].eletricCircuitId = -1;\r\n } else if (isDMT2) {\r\n portsList[Number(item.port) - 1].utilityId = utilityInfo.UTILITY_ID;\r\n }\r\n\r\n render();\r\n renderList();\r\n }}\r\n disabled={state.loading}\r\n />\r\n {t('limpar')}\r\n \r\n {!mobile && { openDeleteModal(true, utilityInfo, utilityListIdx); renderList(); }} color=\"red\" disabled={state.loading} />}\r\n
\r\n )}\r\n
\r\n\r\n
\r\n \r\n );\r\n};\r\n","import {\r\n ChangeEvent, useEffect, useRef, useState,\r\n} from 'react';\r\nimport queryString from 'query-string';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useHistory, useParams, useRouteMatch } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport BackupEcoV2DamDac from '~/assets/img/BackupEcoV2DamDac.png';\r\nimport { Image } from 'antd';\r\nimport {\r\n Input,\r\n Checkbox,\r\n Loader,\r\n ModalWindow,\r\n ScheduleViewCard,\r\n ScheduleEditCard,\r\n ExceptionViewCard,\r\n ExceptionEditCard,\r\n Button,\r\n InputCalculator,\r\n ModalLoading,\r\n Card as NewCard,\r\n ClearSelect,\r\n} from 'components';\r\nimport { ToggleSwitchMini } from 'components/ToggleSwitch';\r\nimport { Select } from 'components/NewSelect';\r\nimport { getCachedDevInfo } from 'helpers/cachedStorage';\r\nimport parseDecimalNumber from 'helpers/parseDecimalNumber';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocketLazy } from 'helpers/wsConnection';\r\nimport { PaperIcon, CheckboxIcon } from 'icons';\r\nimport { DevLayout } from 'pages/Analysis/DEVs/DevLayout';\r\nimport { AssetLayout } from 'pages/Analysis/Assets/AssetLayout';\r\nimport { FormEditGroup } from 'pages/ClientPanel/FormEditGroup';\r\nimport { FormEditUnit } from 'pages/ClientPanel/FormEditUnit';\r\nimport { apiCall, ApiParams, ApiResps } from 'providers';\r\nimport { DevFullInfo } from 'store';\r\n\r\nimport { DamScheduleContents } from '../DAMs/DamSchedule';\r\nimport { Headers2 } from '../Header';\r\nimport { EditDevInfoDRI, DriConfig } from '../Integrations/IntegrEdit/DriConfig';\r\nimport jsonTryParse from '~/helpers/jsonTryParse';\r\nimport { CardsCfg } from '../Integrations/IntegrEdit';\r\nimport {\r\n Card,\r\n TextLine,\r\n Title,\r\n Text,\r\n CustomSelect,\r\n ContainerInfo,\r\n ContainerText,\r\n OverLay,\r\n HoverEcoLocal,\r\n ContainerEcoMode,\r\n} from './styles';\r\nimport { colors } from '~/styles/colors';\r\nimport { ScheduleDut, ExceptionDut } from '../../../providers/types/api-private';\r\nimport { identifyDutIrCommands } from '../DUTs/EnvironmentRealTime';\r\nimport { useTranslation, Trans } from 'react-i18next';\r\nimport { EditDalInfo } from '../DALs/EditDalInfo';\r\nimport { EditDmtInfo } from '../DMTs/DmtEdit';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport {\r\n SearchInput,\r\n Label,\r\n} from '../styles';\r\nimport { CustomInput } from '../DMTs/styles';\r\nimport { BtnClean } from '../DALs/styles';\r\nimport ReactTooltip from 'react-tooltip';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\nimport { AxiosError } from 'axios';\r\n\r\nexport const EditDevInfo = () => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const match = useRouteMatch<{ devId: string }>();\r\n const routeParams = useParams<{ devId: string }>();\r\n const [profile] = useState(getUserProfile);\r\n const [resendTimeError, setResendTimeError] = useState('');\r\n const [sendAndDisableAut, setSendAndDisableAut] = useState(false);\r\n const [state, render, setState] = useStateVar(() => {\r\n const state = {\r\n devId: routeParams.devId,\r\n devType: {} as {\r\n isDac: boolean,\r\n isDam: boolean,\r\n isDut: boolean,\r\n isDutAut: boolean,\r\n isOnlyDutRef: boolean,\r\n isDri: boolean,\r\n isDal: boolean,\r\n isDmt: boolean,\r\n dutAutEnabled: boolean| null,\r\n isDutQA: boolean,\r\n },\r\n isLoading: true,\r\n isSaving: false,\r\n devInfo: null as null|DevFullInfo,\r\n damFuNomCalc: null as null | number,\r\n selectedL1Sim: undefined as undefined|boolean,\r\n assetLayout: false as boolean,\r\n temperatureControlState: null as null|{ automation: boolean, mode: string, temperature: number, LTC: number },\r\n persistedAssetDevice: null as null|{ value: number, label: string, UNIT_ID: number, CLIENT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, DAT_ID: string|null, DAT_INDEX: number|null, MCHN_KW: number },\r\n formData: {\r\n DAT_BEGMON: '',\r\n DAT_BEGAUT: '',\r\n CLIENT_ID_item: null as null|{ NAME: string, CLIENT_ID: number },\r\n UNIT_ID_item: null as null|{ UNIT_NAME: string, UNIT_ID: number },\r\n ENVIRONMENT_ID_item: null as null|{ ENVIRONMENT_NAME: string, ENVIRONMENT_ID: number, DUT_CODE: string },\r\n ROOM_NAME: '',\r\n CTRLOPER_item: null as null|{ label: string, value: '0_NO_CONTROL'|'1_CONTROL'|'2_SOB_DEMANDA'|'3_BACKUP'|'4_BLOCKED'|'5_BACKUP_CONTROL'|'6_BACKUP_CONTROL_V2'|'7_FORCED' },\r\n DUTAUTCFG_item: null as null|{ label: string, value: 'IR'|'RELAY'|'DISABLED' },\r\n ENABLE_ECO_item: null as null|{ label: string, value: string, valueN: 0|1|2 },\r\n ENABLE_ECO_local: null as null|{ label: string, value: 0|1},\r\n ECO_CFG_item: null as null|{ label: string, value: string },\r\n GROUP_ID_item: null as null|{ label: string, value: number, unit: number, name?: string },\r\n REL_DUT_ID_item: null as null|{ DEV_ID: string, UNIT_ID: number, RTYPE_NAME: string, TUSEMAX?: number, TUSEMIN?: number },\r\n DAC_APPL_item: null as null|{ label: string, value: { DAC_APPL: string, hasPliq: boolean, hasPsuc: boolean, hasCurr: boolean } },\r\n FLUID_TYPE_item: null as null|{ label: string, value: string },\r\n DAC_TYPE_item: null as null|{ label: string, value: string, tags: string },\r\n DAC_ENV_item: null as null|{ label: string, value: string, tags: string },\r\n DAC_BRAND_item: null as null|{ label: string, value: string },\r\n ASSET_ID_item: null as null|{ value: number, label: string, UNIT_ID: number, CLIENT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, DAT_ID: string|null, DAT_INDEX: number|null },\r\n DAC_MODEL: '',\r\n DAC_DESC: '',\r\n DAC_NAME: '',\r\n DAC_MODIF_item: null as null|{ label: string, value: string },\r\n DAC_COMIS_item: null as null|{ label: string, value: string },\r\n DAC_HEAT_EXCHANGER_item: null as null|{ID: number, NAME: string, BRAND?: string, MODEL?: string},\r\n P0_POSITION: null as null|{ label: string, value: string },\r\n P0_SENSOR: null as null|{ label: string, value: string },\r\n P1_POSITION: null as null|{ label: string, value: string },\r\n P1_SENSOR: null as null|{ label: string, value: string },\r\n T0_POSITION: null as null|{ label: string, value: string },\r\n T1_POSITION: null as null|{ label: string, value: string },\r\n T2_POSITION: null as null|{ label: string, value: string },\r\n USE_RELAY_item: null as null|{ label: string, value: string, valueN: 0|1 },\r\n MCHN_BRAND_item: null as null|{ label: string, value: string },\r\n PLACEMENT_item: null as null|undefined|{ label: string, value: 'AMB'|'INS'|'DUO' },\r\n DAM_PLACEMENT_item: null as null|undefined|{ label: string, value: 'RETURN'|'DUO' },\r\n MEASUREMENT_SELECTED_P0: null as null|{ label: string, value: string },\r\n MEASUREMENT_SELECTED_P1: null as null|{ label: string, value: string },\r\n SENSOR_AUTOM: null as null|0|1,\r\n MCHN_MODEL: '',\r\n ECO_OFST_START: '',\r\n ECO_OFST_END: '',\r\n TSETPOINT: '',\r\n RESENDPER: '',\r\n LTCRIT: '',\r\n LTINF: '',\r\n varsConfigInput: '',\r\n DAC_COP: '',\r\n FU_NOM: '',\r\n configTsensors: false,\r\n ECO_INTERVAL_TIME: '',\r\n TEMPERATURE_OFFSET: '',\r\n ECO_SETPOINT: '',\r\n ECO_LTC: '',\r\n ECO_LTI: '',\r\n ECO_UPPER_HYSTERESIS: '',\r\n ECO_LOWER_HYSTERESIS: '',\r\n ECO_SCHEDULE_START_BEHAVIOR_item: null as null|{ label: string, value: string },\r\n MINIMUM_TEMPERATURE: '',\r\n MAXIMUM_TEMPERATURE: '',\r\n EXT_THERM_CFG: null as null | { label: string, value: 'D'|'S'|'P' },\r\n COMPRESSOR_NOMINAL_CURRENT: '',\r\n EQUIPMENT_POWER_item: null as null|{ label: string, value: string },\r\n DAM_INSTALLATION_LOCATION_item: null as null|{ label: string, value: string },\r\n T0_POSITION_DAM: null as null|{ label: string, value: 'RETURN'|'INSUFFLATION'|null },\r\n T1_POSITION_DAM: null as null|{ label: string, value: 'RETURN'|'INSUFFLATION'|null },\r\n EVAPORATOR_MODEL_item: null as null|{ label: string, value: string },\r\n INSUFFLATION_SPEED: '',\r\n APPLICATION: '',\r\n },\r\n automationTabHasBeenSelected: false,\r\n comboOpts: {\r\n yesNo: [\r\n {\r\n label: t('sim'), value: '1', valueN: 1, valueNinv: 0,\r\n },\r\n {\r\n label: t('nao'), value: '0', valueN: 0, valueNinv: 1,\r\n },\r\n ] as { label: string, value: string, valueN: 0|1, valueNinv: 0|1 }[],\r\n optionsEco: [\r\n {\r\n label: t('sim'), value: '1', valueN: 1, valueNinv: 0,\r\n },\r\n {\r\n label: t('simEco2'), value: '2', valueN: 2, valueNinv: 2,\r\n },\r\n {\r\n label: t('nao'), value: '0', valueN: 0, valueNinv: 1,\r\n },\r\n ] as { label: string, value: string, valueN: 0|1|2, valueNinv: 0|1|2 }[],\r\n optionsEcoLocal: [\r\n {\r\n label: t('sim'), value: 1,\r\n },\r\n {\r\n label: t('nao'), value: 0,\r\n },\r\n ] as { label: string, value: 0|1 }[],\r\n pPositions: [\r\n { label: 'Psuc', value: 'Psuc' },\r\n { label: 'Pliq', value: 'Pliq' },\r\n ],\r\n tPositions: [\r\n { label: 'Tamb', value: 'Tamb' },\r\n { label: 'Tsuc', value: 'Tsuc' },\r\n { label: 'Tliq', value: 'Tliq' },\r\n ],\r\n applicsNew: [\r\n generateDacApplicationOption({\r\n label: t('1acComPliq'), applicationName: 'ar-condicionado', hasPliq: true, hasPsuc: false, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('2acComPsuc'), applicationName: 'ar-condicionado', hasPliq: false, hasPsuc: true, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('4acSemPliqPsuc'), applicationName: 'ar-condicionado', hasPliq: false, hasPsuc: false, hasCurr: false,\r\n }),\r\n ],\r\n capacUnits: [\r\n { label: 'TR', value: 'TR' },\r\n { label: 'BTU/hr', value: 'BTU/hr' },\r\n ],\r\n placement: [\r\n { label: t('ambientePadrao'), value: 'AMB' },\r\n { label: t('insuflamento'), value: 'INS' },\r\n { label: t('duo'), value: 'DUO' },\r\n ] as { label: string, value: 'INS'|'AMB' }[],\r\n damPlacement: [\r\n { label: t('retorno'), value: 'RETURN' },\r\n { label: t('duo'), value: 'DUO' },\r\n ] as { label: string, value: 'DUO'|'RETURN' }[],\r\n sensorAutom: [t('retorno'), t('insuflamento')],\r\n sensorDamDuo: [{ label: t('retorno'), value: 'RETURN' }, { label: t('insuflamento'), value: 'INSUFFLATION' }] as { label: string, value: 'RETURN'|'INSUFFLATION' }[],\r\n dutAutCfg: [\r\n { label: t('infraVermelhoPadrao'), value: 'IR' },\r\n { label: t('rele'), value: 'RELAY' },\r\n { label: t('nao'), value: 'DISABLED' },\r\n ] as { label: string, value: 'IR'|'RELAY'|'DISABLED' }[],\r\n dutControlOperation: [\r\n { label: t('modoEco'), value: '1_CONTROL' },\r\n { label: t('modoSobDemanda'), value: '2_SOB_DEMANDA' },\r\n { label: t('modoBackup'), value: '3_BACKUP' },\r\n { label: t('modoBloqueio'), value: '4_BLOCKED' },\r\n { label: t('modoBackupEco'), value: '5_BACKUP_CONTROL' },\r\n { label: t('modoEco2'), value: '6_BACKUP_CONTROL_V2' },\r\n { label: t('modoForcado'), value: '7_FORCED' },\r\n ] as { label: string, value: '0_NO_CONTROL'|'1_CONTROL'|'2_SOB_DEMANDA'|'3_BACKUP'|'4_BLOCKED'|'5_BACKUP_CONTROL'|'6_BACKUP_CONTROL_V2'|'7_FORCED' }[],\r\n clients: [] as { NAME: string, CLIENT_ID: number }[],\r\n timezones: [] as { label: string, value: number }[],\r\n states: [] as { STATE_NAME: string, STATE_ID: string, COUNTRY_ID: number }[],\r\n cities: [] as { CITY_NAME: string, CITY_ID: string, STATE_ID: string }[],\r\n countries: [] as { COUNTRY_NAME: string, COUNTRY_ID: number}[],\r\n units: [] as { UNIT_NAME: string, UNIT_ID: number }[],\r\n environments: [] as {ENVIRONMENT_ID: number, ENVIRONMENT_NAME: string, DUT_CODE: string, ENVIRONMENT_LABEL: string}[],\r\n ecoModeCfg: [] as { label: string, value: string }[],\r\n groups: [] as { label: string, value: number, withDacAut?: boolean, checked?: boolean, unit: number, dev_aut: string }[],\r\n assets: [] as { value: number, label: string, UNIT_ID: number, CLIENT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, DAT_ID: string|null, DAT_INDEX: number|null }[],\r\n duts: [] as { DEV_ID: string, UNIT_ID: number, RTYPE_NAME: string, TUSEMAX?: number, TUSEMIN?: number }[],\r\n psens: [] as { label: string, value: string }[],\r\n fluids: [] as { label: string, value: string }[],\r\n applics: [] as { label: string, value: string }[],\r\n types: [] as { label: string, value: string, tags: string }[],\r\n envs: [] as { label: string, value: string, tags: string }[],\r\n brands: [] as { label: string, value: string }[],\r\n scheduleStartBehavior: [] as { label: string, value: string}[],\r\n heatExchangerTypes: [] as {ID: number, NAME: string, BRAND?: string, MODEL?: string, label: string, value: string}[],\r\n dutScheduleStartBehavior: [] as { label: string, value: string}[],\r\n dutScheduleEndBehavior: [] as { label: string, value: string}[],\r\n dutForcedBehavior: [] as { label: string, value: string}[],\r\n damInstallationLocation: [] as { label: string, value: string}[],\r\n evaporatorModels: [] as { label: string, value: string}[],\r\n extThermCfg: [\r\n { label: t('desabilitado'), value: 'D' },\r\n { label: t('emSerie'), value: 'S' },\r\n { label: t('emParalelo'), value: 'P' },\r\n ] as { label: string, value: 'D'|'S'|'P' }[],\r\n equipmentPower: [\r\n { label: '380V / 3F / 60Hz', value: '380V / 3F / 60Hz' },\r\n { label: '220V / 3F / 60Hz', value: '220V / 3F / 60Hz' },\r\n { label: '220V / 1F / 60Hz', value: '220V / 1F / 60Hz' },\r\n ],\r\n },\r\n filtComboOpts: {\r\n groups: [] as { label: string, value: number, withDacAut?: boolean, checked?: boolean, unit: number, dev_aut: string }[],\r\n duts: [] as { DEV_ID: string, UNIT_ID: number }[],\r\n types: [] as { label: string, value: string }[],\r\n envs: [] as { label: string, value: string }[],\r\n },\r\n telemetry: {\r\n P0raw: null,\r\n P1raw: null,\r\n },\r\n measurementOpts: [\r\n {\r\n label: t('corrente'), value: 'current',\r\n },\r\n {\r\n label: t('pressao'), value: 'pressure',\r\n },\r\n ],\r\n openModal: null as null|string,\r\n offsetChecked: false as boolean,\r\n hysteresisChecked: false as boolean,\r\n dutCompatibilityHysteresisEco2: false as boolean,\r\n driInfo: null as null|ApiResps['/get-integration-info'],\r\n machinesAssetsList: null as null|ApiResps['/clients/get-machines-list'],\r\n cards: [] as string[],\r\n subcards: [] as string[],\r\n relevances: [] as string[],\r\n DUTS_SCHEDULES: [] as ScheduleDut[],\r\n DUTS_SCHEDULES_FILTERED: [] as ScheduleDut[],\r\n DUTS_SCHEDULES_DELETED: [] as number[],\r\n DUTS_EXCEPTIONS: [] as ExceptionDut[],\r\n DUTS_EXCEPTIONS_FILTERED: [] as ExceptionDut[],\r\n DUTS_EXCEPTIONS_DELETED: [] as number[],\r\n selectedSchedule: null as ScheduleDut|null,\r\n selectedIndexSchedule: null as number|null,\r\n selectedException: null as ExceptionDut|null,\r\n selectedIndexException: null as number|null,\r\n NEED_MULT_SCHEDULES: false as boolean,\r\n CHANGE_EXCEPTION_PARAMETERS: false as boolean,\r\n showExceptions: false as boolean,\r\n irCommands: [] as {\r\n IR_ID: string,\r\n CMD_NAME: string,\r\n CMD_TYPE: string|null,\r\n TEMPER: number\r\n }[],\r\n persisted_USE_RELAY_item: null as null|{ label: string, value: string, valueN: 0|1 },\r\n isLoadingUnitInfo: false as boolean,\r\n };\r\n\r\n return state;\r\n });\r\n\r\n function generateDacApplicationOption(params: { label: string, applicationName: string, hasPliq: boolean, hasPsuc: boolean, hasCurr: boolean }) {\r\n return {\r\n label: params.label,\r\n value: {\r\n DAC_APPL: params.applicationName,\r\n hasPliq: params.hasPliq,\r\n hasPsuc: params.hasPsuc,\r\n hasCurr: params.hasCurr,\r\n },\r\n };\r\n }\r\n\r\n function verifyDacApplicationOptions() {\r\n if (state.devType.isDac) {\r\n state.comboOpts.applicsNew.push(\r\n generateDacApplicationOption({\r\n label: t('3acComPliqPsuc'), applicationName: 'ar-condicionado', hasPliq: true, hasPsuc: true, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('5cfComPliq'), applicationName: 'camara-fria', hasPliq: true, hasPsuc: false, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('6cfComPsuc'), applicationName: 'camara-fria', hasPliq: false, hasPsuc: true, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('7cfComPliqPsuc'), applicationName: 'camara-fria', hasPliq: true, hasPsuc: true, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('8cfSemPlicPsuc'), applicationName: 'camara-fria', hasPliq: false, hasPsuc: false, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('9fancoil'), applicationName: 'fancoil', hasPliq: false, hasPsuc: false, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('10chillerComPliq'), applicationName: 'chiller', hasPliq: true, hasPsuc: false, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('11chillerComPsuc'), applicationName: 'chiller', hasPliq: false, hasPsuc: true, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('12chillerComPliqPsuc'), applicationName: 'chiller', hasPliq: true, hasPsuc: true, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('13chillerSemPliqPsuc'), applicationName: 'chiller', hasPliq: false, hasPsuc: false, hasCurr: false,\r\n }),\r\n generateDacApplicationOption({\r\n label: t('14trocadorCalor'), applicationName: 'trocador-de-calor', hasPliq: false, hasPsuc: false, hasCurr: false,\r\n }),\r\n );\r\n\r\n verifyDacApplicationsWithFirmwareValidate();\r\n }\r\n }\r\n\r\n function verifyDacApplicationsWithFirmwareValidate() {\r\n const firmwareVersion = state.devInfo?.dac?.V_MAJOR;\r\n if (firmwareVersion && firmwareVersion >= 5) {\r\n const actualPosition = state.comboOpts.applicsNew.length + 1;\r\n state.comboOpts.applicsNew.push(\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 1}. ${t('aplicacaoAcComPliqCurr')}`, applicationName: 'ar-condicionado', hasPliq: true, hasPsuc: false, hasCurr: true,\r\n }),\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 2}. ${t('aplicacaoAcComPsucCurr')}`, applicationName: 'ar-condicionado', hasPliq: false, hasPsuc: true, hasCurr: true,\r\n }),\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 3}. ${t('aplicacaoCfComPliqCurr')}`, applicationName: 'camara-fria', hasPliq: true, hasPsuc: false, hasCurr: true,\r\n }),\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 4}. ${t('aplicacaoCfComPsucCurr')}`, applicationName: 'camara-fria', hasPliq: false, hasPsuc: true, hasCurr: true,\r\n }),\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 5}. ${t('aplicacaoFcComCurr')}`, applicationName: 'fancoil', hasPliq: false, hasPsuc: false, hasCurr: true,\r\n }),\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 6}. ${t('aplicacaoChComPliqCurr')}`, applicationName: 'chiller', hasPliq: true, hasPsuc: false, hasCurr: true,\r\n }),\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 7}. ${t('aplicacaoChComPsucCurr')}`, applicationName: 'chiller', hasPliq: false, hasPsuc: true, hasCurr: true,\r\n }),\r\n generateDacApplicationOption({\r\n label: `${actualPosition + 8}. ${t('aplicacaoTcComPsucCurr')}`, applicationName: 'trocador-de-calor', hasPliq: false, hasPsuc: true, hasCurr: true,\r\n }),\r\n );\r\n }\r\n }\r\n\r\n function redirectToIntegrations() {\r\n if (match.params.devId.startsWith('DRI') || match.params.devId.startsWith('DMA')) {\r\n const url = `/integracoes/info/diel/${state.devId}/editar`;\r\n history.push(url);\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n redirectToIntegrations();\r\n }, []);\r\n\r\n const temprtControlModeDetails = {\r\n '1_CONTROL': t('detalhesModoControle1'),\r\n '2_SOB_DEMANDA': t('detalhesModoControle2'),\r\n '4_BLOCKED': t('detalhesModoControle4'),\r\n '5_BACKUP_CONTROL': t('detalhesModoControle5'),\r\n '6_BACKUP_CONTROL_V2': t('detalhesModoControle6'),\r\n '7_FORCED': t('detalhesModoControle7'),\r\n };\r\n\r\n const dacDamEcoDetails = t('damEcoDetalhes');\r\n\r\n const ecoModeDetails = {\r\n 'eco-C1-V': t('detalheModoEcoC1-V', {\r\n value1: state.formData.ECO_INTERVAL_TIME,\r\n value2: state.formData.ECO_INTERVAL_TIME,\r\n }),\r\n 'eco-C2-V': t('detalheModoEcoC2-V', {\r\n value1: state.formData.ECO_INTERVAL_TIME,\r\n value2: state.formData.ECO_INTERVAL_TIME,\r\n }),\r\n };\r\n\r\n const wsl = useWebSocketLazy();\r\n function onWsOpen(wsConn) {\r\n wsConn.send({ type: 'subscribeTelemetry', data: { dac_id: state.devId } });\r\n }\r\n function onWsMessage(message) {\r\n if (message && message.type === 'dacTelemetry') {\r\n setState({ telemetry: message.data });\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'subscribeTelemetry', data: {} });\r\n }\r\n\r\n function checkDamFields(damData: ApiParams['/dam/set-dam-info']) {\r\n let returnCheck = true;\r\n\r\n if (damData.ENABLE_ECO && damData.SELF_REFERENCE && damData.MAXIMUM_TEMPERATURE != null && damData.MINIMUM_TEMPERATURE != null) {\r\n if (damData.MAXIMUM_TEMPERATURE < damData.MINIMUM_TEMPERATURE) {\r\n toast.warn(t('avisoTemperaturaMaximaDeveSerMaiorMinima'));\r\n returnCheck = false;\r\n }\r\n }\r\n\r\n if (damData.ENABLE_ECO && !damData.ECO_CFG) {\r\n toast.warn(t('avisoNecessarioSelecionarConfiguracaoModoEco'));\r\n returnCheck = false;\r\n }\r\n\r\n if ((damData.UPPER_HYSTERESIS != null && damData.UPPER_HYSTERESIS < 0) || (damData.LOWER_HYSTERESIS != null && damData.LOWER_HYSTERESIS < 0)) {\r\n toast.warn(t('avisoNaoPodeHaverHistereseNegativa'));\r\n returnCheck = false;\r\n }\r\n\r\n if (damData.REL_DUT_ID && (damData.groups == null || damData.groups.length === 0)) {\r\n toast.warn(t('necessarioSelecionarGrupoReliacionarDamDut'));\r\n returnCheck = false;\r\n }\r\n\r\n returnCheck = checkGroupAutomated(damData.groups);\r\n\r\n return returnCheck;\r\n }\r\n\r\n function checkGroupAutomated(groupsDevice) {\r\n let returnCheck = true;\r\n if (groupsDevice) {\r\n groupsDevice.forEach((group) => {\r\n const groupInfo = state.filtComboOpts.groups.find((groupInfo) => groupInfo.value.toString() === group);\r\n if (groupInfo?.dev_aut != null && groupInfo.dev_aut !== state.devId) {\r\n toast.warn(t('avisoGrupoEstaAutomatizadoDispositivo', {\r\n value1: groupInfo.label,\r\n value2: groupInfo.dev_aut,\r\n }));\r\n returnCheck = false;\r\n }\r\n });\r\n }\r\n return returnCheck;\r\n }\r\n function checkIsDutRef(groupsDevice) {\r\n let returnCheck = false;\r\n if (groupsDevice) {\r\n groupsDevice.forEach((group) => {\r\n const groupInfo = state.filtComboOpts.groups.find((groupInfo) => groupInfo.value === group.GROUP_ID);\r\n if (groupInfo?.dev_aut != null && groupInfo.dev_aut !== state.devId) {\r\n returnCheck = true;\r\n }\r\n });\r\n }\r\n return returnCheck;\r\n }\r\n async function deleteAutAndDisassociate() {\r\n setState({ isSaving: true });\r\n try {\r\n const dutData: ApiParams['/dut/set-dut-info'] = {\r\n DEV_ID: state.devId,\r\n ROOM_NAME: state.formData.ROOM_NAME ?? null,\r\n PLACEMENT: state.formData.PLACEMENT_item?.value ?? null,\r\n CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID ?? null,\r\n UNIT_ID: state.formData.UNIT_ID_item?.UNIT_ID ?? null,\r\n TEMPERATURE_OFFSET: state.formData.TEMPERATURE_OFFSET && state.offsetChecked ? parseDecimalNumber(state.formData.TEMPERATURE_OFFSET) : null,\r\n ENVIRONMENT_ID: state.formData.ENVIRONMENT_ID_item?.ENVIRONMENT_ID ?? null,\r\n };\r\n\r\n const deleteDayProg = {\r\n permission: 'allow' as 'allow' | 'forbid',\r\n start: '',\r\n end: '',\r\n clearProg: true,\r\n };\r\n const dutProgramming: ApiParams['/dut/set-programming-v3'] = {\r\n dutId: state.devId,\r\n week: {\r\n mon: deleteDayProg,\r\n tue: deleteDayProg,\r\n wed: deleteDayProg,\r\n thu: deleteDayProg,\r\n fri: deleteDayProg,\r\n sat: deleteDayProg,\r\n sun: deleteDayProg,\r\n },\r\n exceptions: {},\r\n };\r\n state.DUTS_EXCEPTIONS.forEach((exception) => {\r\n const day = `${exception.EXCEPTION_DATE.substring(6, 10)}-${exception.EXCEPTION_DATE.substring(3, 5)}-${exception.EXCEPTION_DATE.substring(0, 2)}`;\r\n if (!dutProgramming.exceptions) dutProgramming.exceptions = {};\r\n dutProgramming.exceptions[day] = {\r\n permission: exception.PERMISSION,\r\n start: exception.BEGIN_TIME,\r\n end: exception.END_TIME,\r\n clearProg: true,\r\n };\r\n });\r\n await apiCall('/dut/set-programming-v3', dutProgramming);\r\n await apiCall('/dut/set-dut-info', dutData);\r\n toast.success(t('sucessoAoSalvar'));\r\n } catch (error) {\r\n toast.error(t('houveErro'));\r\n }\r\n setState({ isSaving: false });\r\n setSendAndDisableAut(false);\r\n }\r\n\r\n const formatDacData = () => {\r\n const currentUseRelayValue = state.formData.USE_RELAY_item ? state.formData.USE_RELAY_item.valueN : 0;\r\n const considerDutRef = state.persisted_USE_RELAY_item?.valueN ? 1 : currentUseRelayValue;\r\n let l1SimMode: string | null = null;\r\n if (state.selectedL1Sim) {\r\n if (state.devInfo?.dac?.DAC_APPL === 'fancoil') {\r\n l1SimMode = 'fancoil';\r\n }\r\n else {\r\n l1SimMode = 'virtual';\r\n }\r\n }\r\n const dacData: ApiParams['/dac/set-dac-info'] = {\r\n DAC_ID: state.devId,\r\n DAC_DESC: valueOrNull(state.formData.DAC_DESC),\r\n DAC_NAME: valueOrNull(state.formData.DAC_NAME),\r\n DAC_MODEL: valueOrNull(state.formData.DAC_MODEL),\r\n CLIENT_ID: valueOrNull(state.formData.CLIENT_ID_item?.CLIENT_ID),\r\n UNIT_ID: valueOrNull(state.formData.UNIT_ID_item?.UNIT_ID),\r\n GROUP_ID: valueOrNull(state.formData.GROUP_ID_item?.value),\r\n FLUID_TYPE: valueOrNull(state.formData.FLUID_TYPE_item?.value),\r\n DAC_TYPE: valueOrNull(state.formData.DAC_TYPE_item?.value),\r\n COMPRESSOR_NOMINAL_CURRENT: valueOrNull(parseDecimalNumber(state.formData.COMPRESSOR_NOMINAL_CURRENT)),\r\n EQUIPMENT_POWER: valueOrNull(state.formData.EQUIPMENT_POWER_item?.value),\r\n EVAPORATOR_MODEL_ID: valueOrNull(state.formData.EVAPORATOR_MODEL_item && Number(state.formData.EVAPORATOR_MODEL_item.value)),\r\n DAC_COP: valueOrNull(parseDecimalNumber(state.formData.DAC_COP)),\r\n DAC_ENV: valueOrNull(state.formData.DAC_ENV_item?.value),\r\n DAC_BRAND: valueOrNull(state.formData.DAC_BRAND_item?.value),\r\n DAC_MODIF: valueOrNull(state.formData.DAC_MODIF_item?.value),\r\n DAC_COMIS: valueOrNull(state.formData.DAC_COMIS_item?.value),\r\n DAC_HEAT_EXCHANGER_ID: valueOrNull(state.formData.DAC_HEAT_EXCHANGER_item?.ID),\r\n DAC_APPL: null,\r\n P0_POSITN: null,\r\n P0_SENSOR: null,\r\n P1_POSITN: null,\r\n P1_SENSOR: null,\r\n T0_T1_T2: null,\r\n REL_DUT_ID: considerDutRef ? (valueOrNull(state.formData.REL_DUT_ID_item?.DEV_ID)) : undefined,\r\n SELECTED_L1_SIM: l1SimMode,\r\n INSUFFLATION_SPEED: valueOrNull(parseDecimalNumber(state.formData.INSUFFLATION_SPEED)),\r\n USE_RELAY: 0,\r\n };\r\n return dacData;\r\n };\r\n\r\n const getPsucAndPliqAndCurr = () => {\r\n const applicationConfig = valueOrNull(state.formData.DAC_APPL_item?.value);\r\n let isValidationOk = true;\r\n\r\n const { Psuc, Pliq } = verifyPressurePositions();\r\n const { Curr } = verifyCurrentPosition();\r\n\r\n if (applicationConfig.hasPsuc && !Psuc) { alert(t('alertaNecessarioPreencherFormulaConversaoPsuc')); isValidationOk = false; return {\r\n Psuc, Pliq, Curr, isValidationOk,\r\n }; }\r\n if (applicationConfig.hasPliq && !Pliq) { alert(t('alertaNecessarioPreencherFormulaConversaoPliq')); isValidationOk = false; return {\r\n Psuc, Pliq, Curr, isValidationOk,\r\n }; }\r\n if (applicationConfig.hasCurr && !Curr) { alert(t('alertaNecessarioPreencherFormulaConversaoCurr')); isValidationOk = false; return {\r\n Psuc, Pliq, Curr, isValidationOk,\r\n }; }\r\n return {\r\n Psuc, Pliq, Curr, isValidationOk,\r\n };\r\n };\r\n\r\n function verifyPressurePositions() {\r\n let Psuc = null as null|string;\r\n let Pliq = null as null|string;\r\n\r\n if (state.formData.P0_POSITION && state.formData.P0_POSITION.value === 'Psuc') Psuc = 'P0';\r\n if (state.formData.P0_POSITION && state.formData.P0_POSITION.value === 'Pliq') Pliq = 'P0';\r\n if (state.formData.P1_POSITION && state.formData.P1_POSITION.value === 'Psuc') Psuc = 'P1';\r\n if (state.formData.P1_POSITION && state.formData.P1_POSITION.value === 'Pliq') Pliq = 'P1';\r\n\r\n return { Psuc, Pliq };\r\n }\r\n\r\n function verifyCurrentPosition() {\r\n let currPosition = null as null|string;\r\n\r\n if (state.formData.MEASUREMENT_SELECTED_P0?.value === 'current') currPosition = 'P0';\r\n if (state.formData.MEASUREMENT_SELECTED_P1?.value === 'current') currPosition = 'P1';\r\n return { Curr: currPosition };\r\n }\r\n\r\n const validateDacApp = (dacData: ApiParams['/dac/set-dac-info']) => {\r\n if (dacData.DAC_APPL === 'trocador-de-calor' && dacData.DAC_TYPE === 'tipo-trocador-de-calor' && state.comboOpts.heatExchangerTypes.length === 0) {\r\n toast.error(t('erroClienteNaoTemTipoTrocadorDeCalorParaSerSelecionado'));\r\n return false;\r\n }\r\n\r\n if (dacData.DAC_APPL === 'trocador-de-calor' && dacData.DAC_TYPE === 'tipo-trocador-de-calor' && !dacData.DAC_HEAT_EXCHANGER_ID) {\r\n toast.error(t('erroParaCompletarOperacaoNecessarioSelecionarTipoTrocadorCalor'));\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n const validatePsucAndPliqAndCurr = (Psuc: string|null, Pliq: string|null, Curr: string|null, dacData: ApiParams['/dac/set-dac-info']) => {\r\n const applicationConfig = valueOrNull(state.formData.DAC_APPL_item?.value);\r\n if (Psuc === 'P0' || Pliq === 'P0') {\r\n if (!state.formData.P0_SENSOR) { alert(t('alertaNecessarioSelecionarSensorP0')); return false; }\r\n dacData.P0_POSITN = state.formData.P0_POSITION!.value;\r\n dacData.P0_SENSOR = state.formData.P0_SENSOR.value;\r\n }\r\n if (Psuc === 'P1' || Pliq === 'P1') {\r\n if (!state.formData.P1_SENSOR) { alert(t('alertaNecessarioSelecionarSensorP1')); return false; }\r\n dacData.P1_POSITN = state.formData.P1_POSITION!.value;\r\n dacData.P1_SENSOR = state.formData.P1_SENSOR.value;\r\n }\r\n if (Curr === 'P0') {\r\n if (!state.formData.P0_SENSOR) { alert(t('alertaNecessarioSelecionarSensorP0')); return false; }\r\n dacData.P0_POSITN = 'Curr';\r\n dacData.P0_SENSOR = state.formData.P0_SENSOR.value;\r\n }\r\n\r\n if (Curr === 'P1') {\r\n if (!state.formData.P1_SENSOR) { alert(t('alertaNecessarioSelecionarSensorP1')); return false; }\r\n dacData.P1_POSITN = 'Curr';\r\n dacData.P1_SENSOR = state.formData.P1_SENSOR.value;\r\n }\r\n\r\n dacData.DAC_APPL = applicationConfig.DAC_APPL;\r\n\r\n return true;\r\n };\r\n\r\n const validateDacAppConfig = (dacData: ApiParams['/dac/set-dac-info']) => {\r\n const applicationConfig = valueOrNull(state.formData.DAC_APPL_item?.value);\r\n if (applicationConfig) {\r\n const {\r\n Psuc, Pliq, Curr, isValidationOk,\r\n } = getPsucAndPliqAndCurr();\r\n if (!isValidationOk) return false;\r\n\r\n if (!validatePsucAndPliqAndCurr(Psuc, Pliq, Curr, dacData)) return false;\r\n\r\n if (!validateDacApp(dacData)) return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n const validateDacData = (dacData: ApiParams['/dac/set-dac-info']) => {\r\n if (dacData.GROUP_ID && !state.formData.ASSET_ID_item) {\r\n toast.warn(t('ativoObrigatorio'));\r\n return false;\r\n }\r\n if (state.formData.ASSET_ID_item?.DEV_ID && state.formData.ASSET_ID_item?.DEV_ID !== state.devId) {\r\n toast.warn(t('ativoRelacionadoOutroDispositivo'));\r\n return false;\r\n }\r\n\r\n if (!validateDacAppConfig(dacData)) return false;\r\n\r\n return true;\r\n };\r\n\r\n const sendDacData = async (dacData: ApiParams['/dac/set-dac-info']) => {\r\n if ((!dacData.GROUP_ID && state.persistedAssetDevice) || (state.persistedAssetDevice && state.formData.ASSET_ID_item && state.persistedAssetDevice.value !== state.formData.ASSET_ID_item.value)) {\r\n // decouple device from asset (ONLY, does not edit asset other than the decoupling)\r\n await apiCall('/clients/edit-asset', {\r\n GROUP_ID: state.persistedAssetDevice.GROUP_ID,\r\n DAT_ID: state.persistedAssetDevice.DAT_ID as string || undefined,\r\n AST_DESC: state.persistedAssetDevice.label,\r\n UNIT_ID: state.persistedAssetDevice.UNIT_ID,\r\n AST_ROLE: state.persistedAssetDevice.ASSET_ROLE,\r\n DAT_INDEX: state.persistedAssetDevice.DAT_INDEX,\r\n ASSET_ID: state.persistedAssetDevice.value,\r\n DEV_ID: null,\r\n OLD_DEV_ID: state.persistedAssetDevice.DEV_ID,\r\n CLIENT_ID: state.persistedAssetDevice.CLIENT_ID,\r\n });\r\n }\r\n\r\n if (state.formData.ASSET_ID_item) {\r\n // edit asset itself\r\n await apiCall('/clients/edit-asset', {\r\n DAT_INDEX: state.formData.ASSET_ID_item.DAT_INDEX,\r\n AST_ROLE: state.formData.ASSET_ID_item.ASSET_ROLE,\r\n ASSET_ID: state.formData.ASSET_ID_item.value,\r\n GROUP_ID: state.formData.ASSET_ID_item.GROUP_ID,\r\n UNIT_ID: state.formData.ASSET_ID_item.UNIT_ID,\r\n OLD_DEV_ID: state.formData.ASSET_ID_item.DEV_ID,\r\n DEV_ID: state.devId,\r\n DAT_ID: state.formData.ASSET_ID_item.DAT_ID as string || undefined,\r\n AST_DESC: state.formData.ASSET_ID_item.label,\r\n CLIENT_ID: state.formData.ASSET_ID_item.CLIENT_ID,\r\n });\r\n }\r\n await apiCall('/dac/set-dac-info', dacData);\r\n };\r\n\r\n const valueOrNumber = (value, number) => (value || number);\r\n\r\n const setDacWithDamInfo = (dacData: ApiParams['/dac/set-dac-info']) => {\r\n dacData.ECO_OFST_START = valueOrNumber(parseDecimalNumber(state.formData.ECO_OFST_START || '0'), 0);\r\n dacData.ECO_OFST_END = valueOrNumber(parseDecimalNumber(state.formData.ECO_OFST_END || '0'), 0);\r\n dacData.FU_NOM = state.formData?.FU_NOM?.length ? valueOrNull(state.formData.FU_NOM && parseDecimalNumber(state.formData.FU_NOM)) : null;\r\n dacData.ECO_INT_TIME = valueOrNumber(parseDecimalNumber(state.formData.ECO_INTERVAL_TIME), 5);\r\n\r\n if (state.devInfo?.dam?.CAN_SELF_REFERENCE) {\r\n dacData.UPPER_HYSTERESIS = valueOrNumber(parseDecimalNumber(state.formData.ECO_UPPER_HYSTERESIS || '0'), 0);\r\n dacData.LOWER_HYSTERESIS = valueOrNumber(parseDecimalNumber(state.formData.ECO_LOWER_HYSTERESIS || '0'), 0);\r\n dacData.SETPOINT = valueOrNumber(parseDecimalNumber(state.formData.ECO_SETPOINT || '21'), 21);\r\n }\r\n\r\n if (dacData.ENABLE_ECO === 2) {\r\n dacData.SCHEDULE_START_BEHAVIOR = valueOrNull(state.formData.ECO_SCHEDULE_START_BEHAVIOR_item?.value);\r\n dacData.ECO_INT_TIME = valueOrNumber(parseDecimalNumber(state.formData.ECO_INTERVAL_TIME || '0'), 0);\r\n dacData.SETPOINT = valueOrNumber(parseDecimalNumber(state.formData.ECO_SETPOINT || '21'), 21);\r\n dacData.LTC = valueOrNumber(parseDecimalNumber(state.formData.ECO_LTC || '0'), 0);\r\n dacData.LTI = valueOrNumber(parseDecimalNumber(state.formData.ECO_LTI || '0'), 0);\r\n dacData.UPPER_HYSTERESIS = valueOrNumber(parseDecimalNumber(state.formData.ECO_UPPER_HYSTERESIS || '0'), 0);\r\n dacData.LOWER_HYSTERESIS = valueOrNumber(parseDecimalNumber(state.formData.ECO_LOWER_HYSTERESIS || '0'), 0);\r\n }\r\n };\r\n\r\n const handleDacWithDam = (dacData: ApiParams['/dac/set-dac-info']) => {\r\n if (!checkGroupAutomated([dacData.GROUP_ID])) {\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n dacData.USE_RELAY = valueOrNull(state.formData.USE_RELAY_item?.valueN);\r\n if (dacData.USE_RELAY === 1) {\r\n dacData.ENABLE_ECO = valueOrNull(state.formData.ENABLE_ECO_item?.valueN);\r\n } else {\r\n dacData.ENABLE_ECO = 0;\r\n }\r\n if (dacData.ENABLE_ECO !== 0) {\r\n dacData.ECO_CFG = valueOrNull(state.formData.ECO_CFG_item?.value);\r\n } else {\r\n dacData.ECO_CFG = null;\r\n }\r\n\r\n if (dacData.ENABLE_ECO && (!dacData.CLIENT_ID || !dacData.UNIT_ID) && (state.devInfo?.CLIENT_ID || state.devInfo?.UNIT_ID)) {\r\n toast.warn(t(t('precisaDesabilitarAutomacao')));\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n\r\n if (dacData.ENABLE_ECO && !dacData.GROUP_ID) {\r\n toast.warn(t('precisaMaquinaAutomatizada'));\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n\r\n setDacWithDamInfo(dacData);\r\n return true;\r\n };\r\n\r\n const saveDacInfo = async () => {\r\n const dacData = formatDacData();\r\n\r\n if (!validateDacData(dacData)) return;\r\n\r\n if (state.formData.configTsensors) {\r\n dacData.T0_T1_T2 = [\r\n valueOrNull(state.formData.T0_POSITION?.value),\r\n valueOrNull(state.formData.T1_POSITION?.value),\r\n valueOrNull(state.formData.T2_POSITION?.value),\r\n ];\r\n }\r\n if (state.devType.isDam) {\r\n if (!handleDacWithDam(dacData)) return;\r\n }\r\n\r\n await sendDacData(dacData);\r\n };\r\n\r\n const showDamWarnings = (damData: ApiParams['/dam/set-dam-info']) => {\r\n if ((damData.ECO_CFG === 'eco-C1-V' || damData.ECO_CFG === 'eco-C2-V') && (damData.ECO_INT_TIME! < 5)) {\r\n damData.ECO_INT_TIME = 5;\r\n toast.warn(t('ecoIntTimeParaEcoC-V'));\r\n }\r\n\r\n if (damData.REL_DUT_ID && damData.groups?.length === 0) {\r\n toast.warn(t('avisoAmbienteMonitorado'));\r\n }\r\n };\r\n\r\n const validateDamParams = (damData: ApiParams['/dam/set-dam-info']) => {\r\n if (damData.PLACEMENT === 'DUO') {\r\n if (damData.T0_POSITION === damData.T1_POSITION && damData.T0_POSITION != null) {\r\n toast.error('Não é permitido selecionar o mesmo posicionamento para os sensores T0 e T1');\r\n return false;\r\n }\r\n }\r\n\r\n showDamWarnings(damData);\r\n\r\n if (!checkGroupAutomated(damData.groups)) {\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n\r\n if (!damData.ENABLE_ECO) {\r\n damData.ECO_CFG = null;\r\n }\r\n else {\r\n if ((!damData.CLIENT_ID || !damData.UNIT_ID) && (state.devInfo?.CLIENT_ID || state.devInfo?.UNIT_ID)) {\r\n toast.warn(t(t('precisaDesabilitarAutomacao')));\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n if (!damData.groups || damData.groups.length === 0) {\r\n toast.warn(t('precisaMaquinaAutomatizada'));\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n const formatDamData = () => {\r\n const damData: ApiParams['/dam/set-dam-info'] = {\r\n DAM_ID: state.devId,\r\n CLIENT_ID: valueOrNull(state.formData.CLIENT_ID_item?.CLIENT_ID),\r\n UNIT_ID: valueOrNull(state.formData.UNIT_ID_item?.UNIT_ID),\r\n ENABLE_ECO: valueOrNull(state.formData.ENABLE_ECO_item?.valueN),\r\n ENABLE_ECO_LOCAL: state.formData.ENABLE_ECO_local ? state.formData.ENABLE_ECO_local.value : null,\r\n ECO_CFG: valueOrNull(state.formData.ECO_CFG_item?.value),\r\n REL_DUT_ID: valueOrNull(state.formData.REL_DUT_ID_item?.DEV_ID?.startsWith('DUT') ? state.formData.REL_DUT_ID_item?.DEV_ID : null),\r\n groups: state.filtComboOpts.groups.filter((group) => group.checked).map((group) => group.value.toString()),\r\n ECO_OFST_START: parseDecimalNumber(state.formData.ECO_OFST_START ?? '0') ?? 0,\r\n ECO_OFST_END: parseDecimalNumber(state.formData.ECO_OFST_END ?? '0') ?? 0,\r\n FU_NOM: state.formData.FU_NOM ? parseDecimalNumber(state.formData.FU_NOM) : null,\r\n ECO_INT_TIME: parseDecimalNumber(state.formData.ECO_INTERVAL_TIME) ?? 5,\r\n HAD_AUTOMATION_SETTING_CHANGED: state.automationTabHasBeenSelected,\r\n EXT_THERM_CFG: (state.devInfo?.dam?.supportsExtTherm && state.formData.EXT_THERM_CFG?.value) || undefined,\r\n INSTALLATION_LOCATION: valueOrNull(state.formData.DAM_INSTALLATION_LOCATION_item?.value),\r\n PLACEMENT: (state.formData.DAM_PLACEMENT_item?.value) ?? 'RETURN',\r\n T0_POSITION: valueOrNull(state.formData.DAM_PLACEMENT_item?.value === 'DUO' ? state.formData.T0_POSITION_DAM?.value : null),\r\n T1_POSITION: valueOrNull(state.formData.DAM_PLACEMENT_item?.value === 'DUO' ? state.formData.T1_POSITION_DAM?.value : null),\r\n };\r\n return damData;\r\n };\r\n\r\n const setDamDataWithCanSelfReference = (damData: ApiParams['/dam/set-dam-info']) => {\r\n if (state.devInfo?.dam?.CAN_SELF_REFERENCE) {\r\n damData.SELF_REFERENCE = state.formData.REL_DUT_ID_item?.DEV_ID?.startsWith('DAM');\r\n if (damData.SELF_REFERENCE) {\r\n damData.MINIMUM_TEMPERATURE = parseDecimalNumber(state.formData.MINIMUM_TEMPERATURE ?? '20') ?? 20;\r\n damData.MAXIMUM_TEMPERATURE = parseDecimalNumber(state.formData.MAXIMUM_TEMPERATURE ?? '28') ?? 28;\r\n }\r\n damData.UPPER_HYSTERESIS = parseDecimalNumber(state.formData.ECO_UPPER_HYSTERESIS ?? '0') ?? 0;\r\n damData.LOWER_HYSTERESIS = parseDecimalNumber(state.formData.ECO_LOWER_HYSTERESIS ?? '0') ?? 0;\r\n damData.SETPOINT = parseDecimalNumber(state.formData.ECO_SETPOINT ?? '21') ?? 21;\r\n }\r\n\r\n if (state.devInfo?.dam?.CAN_SELF_REFERENCE && !checkDamFields(damData)) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n const saveDamInfo = async () => {\r\n const damData = formatDamData();\r\n\r\n if (!validateDamParams(damData)) return;\r\n\r\n if (!setDamDataWithCanSelfReference(damData)) return;\r\n\r\n if (damData.ENABLE_ECO === 2) {\r\n damData.SCHEDULE_START_BEHAVIOR = valueOrNull(state.formData.ECO_SCHEDULE_START_BEHAVIOR_item?.value);\r\n damData.ECO_INT_TIME = parseDecimalNumber(state.formData.ECO_INTERVAL_TIME ?? '0') ?? 0;\r\n damData.LTC = parseDecimalNumber(state.formData.ECO_LTC ?? '0') ?? 0;\r\n damData.LTI = parseDecimalNumber(state.formData.ECO_LTI ?? '0') ?? 0;\r\n damData.UPPER_HYSTERESIS = parseDecimalNumber(state.formData.ECO_UPPER_HYSTERESIS ?? '0') ?? 0;\r\n damData.LOWER_HYSTERESIS = parseDecimalNumber(state.formData.ECO_LOWER_HYSTERESIS ?? '0') ?? 0;\r\n }\r\n\r\n await apiCall('/dam/set-dam-info', damData);\r\n redirectToProfile();\r\n };\r\n\r\n const dutBeginValidations = () => {\r\n const environmentToCheck = state.comboOpts.environments.find((item) => item.ENVIRONMENT_ID === state.formData.ENVIRONMENT_ID_item?.ENVIRONMENT_ID);\r\n if (state.formData.ENVIRONMENT_ID_item && environmentToCheck?.DUT_CODE && environmentToCheck?.DUT_CODE !== state.devId) {\r\n toast.warn(t('outroDutRelacionadoAmbiente'));\r\n return false;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n const formatDutData = () => {\r\n const dutData: ApiParams['/dut/set-dut-info'] = {\r\n DEV_ID: state.devId,\r\n ROOM_NAME: valueOrNull(state.formData.ROOM_NAME),\r\n PLACEMENT: valueOrNull(state.formData.PLACEMENT_item?.value),\r\n CLIENT_ID: valueOrNull(state.formData.CLIENT_ID_item?.CLIENT_ID),\r\n UNIT_ID: valueOrNull(state.formData.UNIT_ID_item?.UNIT_ID),\r\n TEMPERATURE_OFFSET: state.formData.TEMPERATURE_OFFSET && state.offsetChecked ? parseDecimalNumber(state.formData.TEMPERATURE_OFFSET) : null,\r\n ENVIRONMENT_ID: valueOrNull(state.formData.ENVIRONMENT_ID_item?.ENVIRONMENT_ID),\r\n groups: state.devType.isDutAut ? state.filtComboOpts.groups.filter((group) => group.checked).map((group) => group.value.toString()) : undefined,\r\n };\r\n return dutData;\r\n };\r\n\r\n const handleDutAsset = async () => {\r\n if ((!devInfo?.GROUP_ID && state.persistedAssetDevice) || (state.persistedAssetDevice && state.formData.ASSET_ID_item && state.persistedAssetDevice.value !== state.formData.ASSET_ID_item.value) || (state.persistedAssetDevice && !state.formData.ASSET_ID_item)) {\r\n // decouple device from asset (ONLY, does not edit asset other than the decoupling)\r\n await apiCall('/clients/edit-asset', {\r\n ASSET_ID: state.persistedAssetDevice.value,\r\n DAT_ID: state.persistedAssetDevice.DAT_ID as string || undefined,\r\n AST_DESC: state.persistedAssetDevice.label,\r\n CLIENT_ID: state.persistedAssetDevice.CLIENT_ID,\r\n GROUP_ID: state.persistedAssetDevice.GROUP_ID,\r\n UNIT_ID: state.persistedAssetDevice.UNIT_ID,\r\n AST_ROLE: state.persistedAssetDevice.ASSET_ROLE,\r\n DEV_ID: null,\r\n OLD_DEV_ID: state.persistedAssetDevice.DEV_ID,\r\n DAT_INDEX: state.persistedAssetDevice.DAT_INDEX,\r\n });\r\n }\r\n\r\n if (state.formData.ASSET_ID_item) {\r\n // edit asset itself\r\n await apiCall('/clients/edit-asset', {\r\n ASSET_ID: state.formData.ASSET_ID_item.value,\r\n DAT_ID: state.formData.ASSET_ID_item.DAT_ID as string || undefined,\r\n AST_DESC: state.formData.ASSET_ID_item.label,\r\n CLIENT_ID: state.formData.ASSET_ID_item.CLIENT_ID,\r\n GROUP_ID: state.formData.ASSET_ID_item.GROUP_ID,\r\n UNIT_ID: state.formData.ASSET_ID_item.UNIT_ID,\r\n AST_ROLE: state.formData.ASSET_ID_item.ASSET_ROLE,\r\n DEV_ID: state.devId,\r\n OLD_DEV_ID: state.formData.ASSET_ID_item.DEV_ID,\r\n DAT_INDEX: state.formData.ASSET_ID_item.DAT_INDEX,\r\n });\r\n }\r\n };\r\n\r\n const beginDutAutValidations = (dutData: ApiParams['/dut/set-dut-info']) => {\r\n dutData.groups = state.filtComboOpts.groups.filter((group) => group.checked).map((group) => group.value.toString());\r\n if (!checkGroupAutomated(dutData.groups)) {\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n\r\n if (state.formData.DUTAUTCFG_item?.value === 'IR' && (!dutData.CLIENT_ID || !dutData.UNIT_ID) && (state.devInfo?.CLIENT_ID || state.devInfo?.UNIT_ID)) {\r\n if (profile.permissions.isInstaller) {\r\n setSendAndDisableAut(true);\r\n } else {\r\n toast.warn(t(t('precisaDesabilitarAutomacao')));\r\n setState({ isSaving: false });\r\n }\r\n return false;\r\n }\r\n if (state.formData.DUTAUTCFG_item?.value === 'IR' && (!dutData.groups || dutData.groups.length === 0)) {\r\n toast.warn(t('precisaMaquinaAutomatizada'));\r\n setState({ isSaving: false });\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n const handleDutSched = (dutSchedules: ApiParams['/dut/set-dut-schedules']) => {\r\n // #region Dut Schedules\r\n dutSchedules.NEED_MULT_SCHEDULES = state.NEED_MULT_SCHEDULES;\r\n\r\n // Adiciona programações editadas/incluídas\r\n if (state.DUTS_SCHEDULES_FILTERED.length > 0 && state.formData.DUTAUTCFG_item?.value === 'IR') {\r\n dutSchedules.schedules = state.DUTS_SCHEDULES_FILTERED.map((schedule) => {\r\n const hasIrCode = schedule.CTRLOPER === '7_FORCED' && schedule.FORCED_BEHAVIOR === 'dut-forced-cool' && schedule.SETPOINT != null;\r\n return ({\r\n DUT_SCHEDULE_ID: schedule.DUT_SCHEDULE_ID,\r\n DELETE: false,\r\n SCHEDULE_TITLE: schedule.SCHEDULE_TITLE,\r\n SCHEDULE_STATUS: schedule.SCHEDULE_STATUS,\r\n PERMISSION: schedule.PERMISSION,\r\n BEGIN_TIME: schedule.BEGIN_TIME,\r\n END_TIME: schedule.END_TIME,\r\n CTRLOPER: schedule.CTRLOPER,\r\n DAYS: schedule.DAYS,\r\n SETPOINT: schedule.SETPOINT,\r\n LTC: schedule.LTC,\r\n LTI: schedule.LTI,\r\n UPPER_HYSTERESIS: schedule.UPPER_HYSTERESIS,\r\n LOWER_HYSTERESIS: schedule.LOWER_HYSTERESIS,\r\n SCHEDULE_START_BEHAVIOR: schedule.SCHEDULE_START_BEHAVIOR,\r\n SCHEDULE_END_BEHAVIOR: schedule.SCHEDULE_END_BEHAVIOR,\r\n FORCED_BEHAVIOR: schedule.FORCED_BEHAVIOR,\r\n IR_ID_COOL: hasIrCode ? state.irCommands.find((item) => item.TEMPER === schedule.SETPOINT)?.IR_ID ?? null : null,\r\n ACTION_MODE: schedule.ACTION_MODE,\r\n ACTION_TIME: schedule.ACTION_TIME,\r\n ACTION_POST_BEHAVIOR: schedule.ACTION_POST_BEHAVIOR,\r\n });\r\n });\r\n }\r\n\r\n // Adiciona programações deletadas\r\n if (state.formData.DUTAUTCFG_item?.value === 'IR') {\r\n state.DUTS_SCHEDULES_DELETED.forEach((deletedId) => {\r\n const schedule = state.DUTS_SCHEDULES.find((deleted) => deleted.DUT_SCHEDULE_ID === deletedId);\r\n if (schedule) {\r\n dutSchedules.schedules.push({\r\n DUT_SCHEDULE_ID: schedule.DUT_SCHEDULE_ID,\r\n DELETE: true,\r\n SCHEDULE_TITLE: schedule.SCHEDULE_TITLE,\r\n SCHEDULE_STATUS: schedule.SCHEDULE_STATUS,\r\n PERMISSION: schedule.PERMISSION,\r\n BEGIN_TIME: schedule.BEGIN_TIME,\r\n END_TIME: schedule.END_TIME,\r\n CTRLOPER: schedule.CTRLOPER,\r\n DAYS: schedule.DAYS,\r\n SETPOINT: schedule.SETPOINT,\r\n LTC: schedule.LTC,\r\n LTI: schedule.LTI,\r\n UPPER_HYSTERESIS: schedule.UPPER_HYSTERESIS,\r\n LOWER_HYSTERESIS: schedule.LOWER_HYSTERESIS,\r\n SCHEDULE_START_BEHAVIOR: schedule.SCHEDULE_START_BEHAVIOR,\r\n SCHEDULE_END_BEHAVIOR: schedule.SCHEDULE_END_BEHAVIOR,\r\n FORCED_BEHAVIOR: schedule.FORCED_BEHAVIOR,\r\n ACTION_MODE: schedule.ACTION_MODE,\r\n ACTION_TIME: schedule.ACTION_TIME,\r\n ACTION_POST_BEHAVIOR: schedule.ACTION_POST_BEHAVIOR,\r\n });\r\n }\r\n });\r\n }\r\n else {\r\n state.DUTS_SCHEDULES.forEach((schedule) => {\r\n dutSchedules.schedules.push({\r\n DUT_SCHEDULE_ID: schedule.DUT_SCHEDULE_ID,\r\n DELETE: true,\r\n SCHEDULE_TITLE: schedule.SCHEDULE_TITLE,\r\n SCHEDULE_STATUS: schedule.SCHEDULE_STATUS,\r\n PERMISSION: schedule.PERMISSION,\r\n BEGIN_TIME: schedule.BEGIN_TIME,\r\n END_TIME: schedule.END_TIME,\r\n CTRLOPER: schedule.CTRLOPER,\r\n DAYS: schedule.DAYS,\r\n SETPOINT: schedule.SETPOINT,\r\n LTC: schedule.LTC,\r\n LTI: schedule.LTI,\r\n UPPER_HYSTERESIS: schedule.UPPER_HYSTERESIS,\r\n LOWER_HYSTERESIS: schedule.LOWER_HYSTERESIS,\r\n SCHEDULE_START_BEHAVIOR: schedule.SCHEDULE_START_BEHAVIOR,\r\n SCHEDULE_END_BEHAVIOR: schedule.SCHEDULE_END_BEHAVIOR,\r\n FORCED_BEHAVIOR: schedule.FORCED_BEHAVIOR,\r\n ACTION_MODE: schedule.ACTION_MODE,\r\n ACTION_TIME: schedule.ACTION_TIME,\r\n ACTION_POST_BEHAVIOR: schedule.ACTION_POST_BEHAVIOR,\r\n });\r\n });\r\n }\r\n // #endregion Dut Schedules\r\n };\r\n\r\n const handleDutSchedWithoutMultProg = (dutData: ApiParams['/dut/set-dut-info']) => {\r\n dutData.CTRLOPER = '0_NO_CONTROL';\r\n dutData.TSETPOINT = null;\r\n dutData.LTCRIT = null;\r\n dutData.LTINF = null;\r\n dutData.UPPER_HYSTERESIS = null;\r\n dutData.LOWER_HYSTERESIS = null;\r\n dutData.SCHEDULE_START_BEHAVIOR = null;\r\n dutData.SCHEDULE_END_BEHAVIOR = null;\r\n dutData.FORCED_BEHAVIOR = null;\r\n dutData.IR_ID_COOL = null;\r\n dutData.ACTION_MODE = null;\r\n dutData.ACTION_TIME = null;\r\n dutData.ACTION_POST_BEHAVIOR = null;\r\n\r\n const scheduleAux = state.DUTS_SCHEDULES_FILTERED.filter((schedule) => schedule.PERMISSION === 'allow' && schedule.SCHEDULE_STATUS);\r\n\r\n if (scheduleAux != null && scheduleAux.length > 0) {\r\n const hasIrCode = scheduleAux[0].CTRLOPER === '7_FORCED' && scheduleAux[0].FORCED_BEHAVIOR === 'dut-forced-cool' && scheduleAux[0].SETPOINT != null;\r\n dutData.IR_ID_COOL = hasIrCode ? state.irCommands.find((item) => item.TEMPER === scheduleAux[0].SETPOINT)?.IR_ID ?? null : null;\r\n dutData.ACTION_MODE = scheduleAux[0].ACTION_MODE;\r\n dutData.LOWER_HYSTERESIS = scheduleAux[0].LOWER_HYSTERESIS;\r\n dutData.SCHEDULE_START_BEHAVIOR = scheduleAux[0].SCHEDULE_START_BEHAVIOR;\r\n dutData.SCHEDULE_END_BEHAVIOR = scheduleAux[0].SCHEDULE_END_BEHAVIOR;\r\n dutData.FORCED_BEHAVIOR = scheduleAux[0].FORCED_BEHAVIOR;\r\n dutData.ACTION_TIME = scheduleAux[0].ACTION_TIME;\r\n dutData.ACTION_POST_BEHAVIOR = scheduleAux[0].ACTION_POST_BEHAVIOR;\r\n dutData.CTRLOPER = scheduleAux[0].CTRLOPER ? scheduleAux[0].CTRLOPER : state.comboOpts.dutControlOperation[0].value;\r\n dutData.UPPER_HYSTERESIS = scheduleAux[0].UPPER_HYSTERESIS;\r\n dutData.TSETPOINT = scheduleAux[0].SETPOINT;\r\n dutData.LTCRIT = scheduleAux[0].LTC;\r\n dutData.LTINF = scheduleAux[0].LTI;\r\n }\r\n };\r\n\r\n const handleDutsExcepts = (dutData: ApiParams['/dut/set-dut-info'], dutExceptions: ApiParams['/dut/set-dut-exceptions']) => {\r\n // #region Dut Exceptions\r\n if (state.DUTS_EXCEPTIONS_FILTERED.length > 0 && dutData.USE_IR === 1) {\r\n dutExceptions.exceptions = state.DUTS_EXCEPTIONS_FILTERED.map((exception) => {\r\n const day = `${exception.EXCEPTION_DATE.substring(6, 10)}-${exception.EXCEPTION_DATE.substring(3, 5)}-${exception.EXCEPTION_DATE.substring(0, 2)}`;\r\n const hasIrCode = exception.CTRLOPER === '7_FORCED' && exception.FORCED_BEHAVIOR === 'dut-forced-cool' && exception.SETPOINT != null;\r\n return {\r\n DUT_EXCEPTION_ID: exception.DUT_EXCEPTION_ID,\r\n DELETE: false,\r\n EXCEPTION_TITLE: exception.EXCEPTION_TITLE,\r\n EXCEPTION_DATE: day,\r\n REPEAT_YEARLY: exception.REPEAT_YEARLY,\r\n BEGIN_TIME: exception.BEGIN_TIME,\r\n END_TIME: exception.END_TIME,\r\n PERMISSION: exception.PERMISSION,\r\n EXCEPTION_STATUS_ID: 1,\r\n CTRLOPER: exception.CTRLOPER,\r\n SETPOINT: exception.SETPOINT,\r\n LTC: exception.LTC,\r\n LTI: exception.LTI,\r\n UPPER_HYSTERESIS: exception.UPPER_HYSTERESIS,\r\n LOWER_HYSTERESIS: exception.LOWER_HYSTERESIS,\r\n SCHEDULE_START_BEHAVIOR: exception.SCHEDULE_END_BEHAVIOR,\r\n SCHEDULE_END_BEHAVIOR: exception.SCHEDULE_END_BEHAVIOR,\r\n FORCED_BEHAVIOR: exception.FORCED_BEHAVIOR,\r\n IR_ID_COOL: hasIrCode ? state.irCommands.find((item) => item.TEMPER === exception.SETPOINT)?.IR_ID ?? null : null,\r\n ACTION_MODE: exception.ACTION_MODE,\r\n ACTION_TIME: exception.ACTION_TIME,\r\n ACTION_POST_BEHAVIOR: exception.ACTION_POST_BEHAVIOR,\r\n };\r\n });\r\n }\r\n\r\n if (dutData.USE_IR === 1) {\r\n state.DUTS_EXCEPTIONS_DELETED.forEach((deletedId) => {\r\n const exception = state.DUTS_EXCEPTIONS.find((deleted) => deleted.DUT_EXCEPTION_ID === deletedId);\r\n if (exception) {\r\n const day = `${exception.EXCEPTION_DATE.substring(6, 10)}-${exception.EXCEPTION_DATE.substring(3, 5)}-${exception.EXCEPTION_DATE.substring(0, 2)}`;\r\n dutExceptions.exceptions.push({\r\n EXCEPTION_TITLE: exception.EXCEPTION_TITLE,\r\n DUT_EXCEPTION_ID: exception.DUT_EXCEPTION_ID,\r\n REPEAT_YEARLY: exception.REPEAT_YEARLY,\r\n BEGIN_TIME: exception.BEGIN_TIME,\r\n END_TIME: exception.END_TIME,\r\n LOWER_HYSTERESIS: exception.LOWER_HYSTERESIS,\r\n SCHEDULE_START_BEHAVIOR: exception.SCHEDULE_END_BEHAVIOR,\r\n SCHEDULE_END_BEHAVIOR: exception.SCHEDULE_END_BEHAVIOR,\r\n FORCED_BEHAVIOR: exception.FORCED_BEHAVIOR,\r\n ACTION_MODE: exception.ACTION_MODE,\r\n PERMISSION: exception.PERMISSION,\r\n EXCEPTION_STATUS_ID: 1,\r\n CTRLOPER: exception.CTRLOPER,\r\n SETPOINT: exception.SETPOINT,\r\n LTC: exception.LTC,\r\n LTI: exception.LTI,\r\n EXCEPTION_DATE: day,\r\n UPPER_HYSTERESIS: exception.UPPER_HYSTERESIS,\r\n ACTION_TIME: exception.ACTION_TIME,\r\n ACTION_POST_BEHAVIOR: exception.ACTION_POST_BEHAVIOR,\r\n DELETE: true,\r\n });\r\n }\r\n });\r\n }\r\n else {\r\n state.DUTS_EXCEPTIONS.forEach((exception) => {\r\n const day = `${exception.EXCEPTION_DATE.substring(6, 10)}-${exception.EXCEPTION_DATE.substring(3, 5)}-${exception.EXCEPTION_DATE.substring(0, 2)}`;\r\n dutExceptions.exceptions.push({\r\n DELETE: true,\r\n DUT_EXCEPTION_ID: exception.DUT_EXCEPTION_ID,\r\n EXCEPTION_TITLE: exception.EXCEPTION_TITLE,\r\n BEGIN_TIME: exception.BEGIN_TIME,\r\n END_TIME: exception.END_TIME,\r\n PERMISSION: exception.PERMISSION,\r\n UPPER_HYSTERESIS: exception.UPPER_HYSTERESIS,\r\n LOWER_HYSTERESIS: exception.LOWER_HYSTERESIS,\r\n SCHEDULE_START_BEHAVIOR: exception.SCHEDULE_END_BEHAVIOR,\r\n EXCEPTION_STATUS_ID: 1,\r\n CTRLOPER: exception.CTRLOPER,\r\n FORCED_BEHAVIOR: exception.FORCED_BEHAVIOR,\r\n ACTION_MODE: exception.ACTION_MODE,\r\n ACTION_TIME: exception.ACTION_TIME,\r\n ACTION_POST_BEHAVIOR: exception.ACTION_POST_BEHAVIOR,\r\n SETPOINT: exception.SETPOINT,\r\n EXCEPTION_DATE: day,\r\n REPEAT_YEARLY: exception.REPEAT_YEARLY,\r\n LTC: exception.LTC,\r\n LTI: exception.LTI,\r\n SCHEDULE_END_BEHAVIOR: exception.SCHEDULE_END_BEHAVIOR,\r\n });\r\n });\r\n }\r\n // #endregion Dut Exceptions\r\n };\r\n\r\n const handleDutsCommandsWithoutMultSchedsPart1 = (dutProgramming: ApiParams['/dut/set-programming-v3']) => {\r\n const deleteDayProg = {\r\n permission: 'allow' as 'allow' | 'forbid',\r\n start: '',\r\n end: '',\r\n clearProg: true,\r\n };\r\n let scheduleAux = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.DAYS.mon && schedule.SCHEDULE_STATUS);\r\n if (scheduleAux) {\r\n dutProgramming.week.mon = {\r\n permission: scheduleAux.PERMISSION,\r\n start: scheduleAux.BEGIN_TIME,\r\n end: scheduleAux.END_TIME,\r\n };\r\n }\r\n else {\r\n dutProgramming.week.mon = deleteDayProg;\r\n }\r\n\r\n scheduleAux = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.DAYS.tue && schedule.SCHEDULE_STATUS);\r\n if (scheduleAux) {\r\n dutProgramming.week.tue = {\r\n permission: scheduleAux.PERMISSION,\r\n start: scheduleAux.BEGIN_TIME,\r\n end: scheduleAux.END_TIME,\r\n };\r\n }\r\n else {\r\n dutProgramming.week.tue = deleteDayProg;\r\n }\r\n\r\n scheduleAux = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.DAYS.wed && schedule.SCHEDULE_STATUS);\r\n if (scheduleAux) {\r\n dutProgramming.week.wed = {\r\n permission: scheduleAux.PERMISSION,\r\n start: scheduleAux.BEGIN_TIME,\r\n end: scheduleAux.END_TIME,\r\n };\r\n }\r\n else {\r\n dutProgramming.week.wed = deleteDayProg;\r\n }\r\n\r\n scheduleAux = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.DAYS.thu && schedule.SCHEDULE_STATUS);\r\n if (scheduleAux) {\r\n dutProgramming.week.thu = {\r\n permission: scheduleAux.PERMISSION,\r\n start: scheduleAux.BEGIN_TIME,\r\n end: scheduleAux.END_TIME,\r\n };\r\n }\r\n else {\r\n dutProgramming.week.thu = deleteDayProg;\r\n }\r\n };\r\n\r\n const handleDutsCommandsWithoutMultSchedsPart2 = (dutProgramming: ApiParams['/dut/set-programming-v3']) => {\r\n const deleteDayProg = {\r\n permission: 'allow' as 'allow' | 'forbid',\r\n start: '',\r\n end: '',\r\n clearProg: true,\r\n };\r\n let scheduleAux = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.DAYS.fri && schedule.SCHEDULE_STATUS);\r\n if (scheduleAux) {\r\n dutProgramming.week.fri = {\r\n permission: scheduleAux.PERMISSION,\r\n start: scheduleAux.BEGIN_TIME,\r\n end: scheduleAux.END_TIME,\r\n };\r\n }\r\n else {\r\n dutProgramming.week.fri = deleteDayProg;\r\n }\r\n\r\n scheduleAux = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.DAYS.sat && schedule.SCHEDULE_STATUS);\r\n if (scheduleAux) {\r\n dutProgramming.week.sat = {\r\n permission: scheduleAux.PERMISSION,\r\n start: scheduleAux.BEGIN_TIME,\r\n end: scheduleAux.END_TIME,\r\n };\r\n }\r\n else {\r\n dutProgramming.week.sat = deleteDayProg;\r\n }\r\n\r\n scheduleAux = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.DAYS.sun && schedule.SCHEDULE_STATUS);\r\n if (scheduleAux) {\r\n dutProgramming.week.sun = {\r\n permission: scheduleAux.PERMISSION,\r\n start: scheduleAux.BEGIN_TIME,\r\n end: scheduleAux.END_TIME,\r\n };\r\n }\r\n else {\r\n dutProgramming.week.sun = deleteDayProg;\r\n }\r\n };\r\n\r\n const handleDutsCommandsWithoutMultScheds = (dutProgramming: ApiParams['/dut/set-programming-v3']) => {\r\n handleDutsCommandsWithoutMultSchedsPart1(dutProgramming);\r\n handleDutsCommandsWithoutMultSchedsPart2(dutProgramming);\r\n\r\n state.DUTS_EXCEPTIONS_FILTERED.forEach((exception) => {\r\n const day = `${exception.EXCEPTION_DATE.substring(6, 10)}-${exception.EXCEPTION_DATE.substring(3, 5)}-${exception.EXCEPTION_DATE.substring(0, 2)}`;\r\n if (!dutProgramming.exceptions) dutProgramming.exceptions = {};\r\n dutProgramming.exceptions[day] = {\r\n permission: exception.PERMISSION,\r\n start: exception.BEGIN_TIME,\r\n end: exception.END_TIME,\r\n };\r\n });\r\n };\r\n\r\n const handleDutsCommands = (dutProgramming: ApiParams['/dut/set-programming-v3']) => {\r\n // #region Dut Commands\r\n if (!state.NEED_MULT_SCHEDULES && state.formData.DUTAUTCFG_item?.value === 'IR') {\r\n handleDutsCommandsWithoutMultScheds(dutProgramming);\r\n }\r\n // Desativou automação e havia cards cadastrados; necessário limpar programação do dispositivo\r\n else if (state.formData.DUTAUTCFG_item?.value !== 'IR' && state.DUTS_SCHEDULES.length > 0) {\r\n const deleteDayProg = {\r\n permission: 'allow' as 'allow' | 'forbid',\r\n start: '',\r\n end: '',\r\n clearProg: true,\r\n };\r\n dutProgramming.week.mon = deleteDayProg;\r\n dutProgramming.week.tue = deleteDayProg;\r\n dutProgramming.week.wed = deleteDayProg;\r\n dutProgramming.week.thu = deleteDayProg;\r\n dutProgramming.week.fri = deleteDayProg;\r\n dutProgramming.week.sat = deleteDayProg;\r\n dutProgramming.week.sun = deleteDayProg;\r\n\r\n state.DUTS_EXCEPTIONS.forEach((exception) => {\r\n const day = `${exception.EXCEPTION_DATE.substring(6, 10)}-${exception.EXCEPTION_DATE.substring(3, 5)}-${exception.EXCEPTION_DATE.substring(0, 2)}`;\r\n if (!dutProgramming.exceptions) dutProgramming.exceptions = {};\r\n dutProgramming.exceptions[day] = {\r\n permission: exception.PERMISSION,\r\n start: exception.BEGIN_TIME,\r\n end: exception.END_TIME,\r\n clearProg: true,\r\n };\r\n });\r\n }\r\n state.DUTS_EXCEPTIONS_DELETED.forEach((exceptionId) => {\r\n const exception = state.DUTS_EXCEPTIONS.find((item) => item.DUT_EXCEPTION_ID === exceptionId);\r\n if (exception) {\r\n const day = `${exception.EXCEPTION_DATE.substring(6, 10)}-${exception.EXCEPTION_DATE.substring(3, 5)}-${exception.EXCEPTION_DATE.substring(0, 2)}`;\r\n if (!dutProgramming.exceptions) dutProgramming.exceptions = {};\r\n dutProgramming.exceptions[day] = {\r\n permission: exception.PERMISSION,\r\n start: exception.BEGIN_TIME,\r\n end: exception.END_TIME,\r\n clearProg: true,\r\n };\r\n }\r\n });\r\n // #endregion Dut Commands\r\n };\r\n\r\n const setDutExcepts = (scheduleReference: ScheduleDut) => {\r\n for (const dut of state.DUTS_EXCEPTIONS) {\r\n if (dut.PERMISSION === 'allow') {\r\n dut.CTRLOPER = scheduleReference.CTRLOPER;\r\n dut.SCHEDULE_END_BEHAVIOR = scheduleReference.SCHEDULE_END_BEHAVIOR;\r\n dut.SCHEDULE_START_BEHAVIOR = scheduleReference.SCHEDULE_START_BEHAVIOR;\r\n dut.ACTION_MODE = scheduleReference.ACTION_MODE;\r\n dut.ACTION_TIME = scheduleReference.ACTION_TIME;\r\n dut.ACTION_POST_BEHAVIOR = scheduleReference.ACTION_POST_BEHAVIOR;\r\n dut.LOWER_HYSTERESIS = scheduleReference.LOWER_HYSTERESIS;\r\n dut.FORCED_BEHAVIOR = scheduleReference.FORCED_BEHAVIOR;\r\n dut.LTC = scheduleReference.LTC;\r\n dut.LTI = scheduleReference.LTI;\r\n dut.SETPOINT = scheduleReference.SETPOINT;\r\n dut.UPPER_HYSTERESIS = scheduleReference.UPPER_HYSTERESIS;\r\n }\r\n }\r\n };\r\n\r\n const setDutExceptsFiltered = (scheduleReference: ScheduleDut) => {\r\n for (const dut of state.DUTS_EXCEPTIONS_FILTERED) {\r\n if (dut.PERMISSION === 'allow') {\r\n dut.SETPOINT = scheduleReference.SETPOINT;\r\n dut.SCHEDULE_END_BEHAVIOR = scheduleReference.SCHEDULE_END_BEHAVIOR;\r\n dut.CTRLOPER = scheduleReference.CTRLOPER;\r\n dut.FORCED_BEHAVIOR = scheduleReference.FORCED_BEHAVIOR;\r\n dut.SCHEDULE_START_BEHAVIOR = scheduleReference.SCHEDULE_START_BEHAVIOR;\r\n dut.ACTION_MODE = scheduleReference.ACTION_MODE;\r\n dut.ACTION_TIME = scheduleReference.ACTION_TIME;\r\n dut.ACTION_POST_BEHAVIOR = scheduleReference.ACTION_POST_BEHAVIOR;\r\n dut.LTC = scheduleReference.LTC;\r\n dut.LTI = scheduleReference.LTI;\r\n dut.LOWER_HYSTERESIS = scheduleReference.LOWER_HYSTERESIS;\r\n dut.UPPER_HYSTERESIS = scheduleReference.UPPER_HYSTERESIS;\r\n }\r\n }\r\n };\r\n\r\n const handleEqualsExcepts = () => {\r\n // Altera configuração de exceções quando todas forem iguais e não precisar de programação múltipla\r\n if (!state.NEED_MULT_SCHEDULES && state.CHANGE_EXCEPTION_PARAMETERS) {\r\n const scheduleReference = state.DUTS_SCHEDULES_FILTERED.find((schedule) => schedule.PERMISSION === 'allow' && schedule.SCHEDULE_STATUS);\r\n if (scheduleReference) {\r\n setDutExcepts(scheduleReference);\r\n setDutExceptsFiltered(scheduleReference);\r\n }\r\n }\r\n };\r\n\r\n const setDutAutTimeAndConf = (dutData: ApiParams['/dut/set-dut-info']) => {\r\n if (state.formData.RESENDPER) {\r\n const resendPER: number = parseDecimalNumber(state.formData.RESENDPER)!;\r\n if (resendPER % 5 !== 0 || resendPER < 5) {\r\n toast.error(t('erroTempoReenvioDeveSerMultiplo5Minimo5'));\r\n return false;\r\n }\r\n dutData.RESENDPER = parseDecimalNumber(state.formData.RESENDPER)! * 60;\r\n } else {\r\n dutData.RESENDPER = null;\r\n }\r\n\r\n if (state.formData.DUTAUTCFG_item) {\r\n if (state.formData.DUTAUTCFG_item.value === 'IR') {\r\n dutData.PORTCFG = 'IR';\r\n dutData.USE_IR = 1;\r\n } else if (state.formData.DUTAUTCFG_item.value === 'RELAY') {\r\n dutData.PORTCFG = 'RELAY';\r\n dutData.USE_IR = 0;\r\n } else if (state.formData.DUTAUTCFG_item.value === 'DISABLED') {\r\n dutData.PORTCFG = 'IR';\r\n dutData.USE_IR = 0;\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n const isDevicesConnecteds = () => {\r\n if (state.devInfo?.status !== 'ONLINE' && tabs.find((tab) => tab.title === t('automacao') && tab.isActive)) {\r\n toast.warn(t('erroRealizarAlteracaoParametrosDispositivoSemConexao'));\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n const setDutAutEquipInfo = async (dutData: ApiParams['/dut/set-dut-info']) => {\r\n if (state.devInfo?.status !== 'ONLINE' && tabs.find((tab) => tab.title === t('equipamento') && tab.isActive)) {\r\n dutData.UPDATE_AUTOM_INFO = false;\r\n await apiCall('/dut/set-dut-info', dutData);\r\n\r\n try {\r\n if (dutData.PLACEMENT === 'DUO' && state.formData.SENSOR_AUTOM == null) throw new Error(t('erroT0eT1naoDefinidos'));\r\n if (dutData.PLACEMENT !== state.devInfo?.dut?.PLACEMENT || (dutData.PLACEMENT === 'DUO' && (state.formData.SENSOR_AUTOM ?? 0) !== state.devInfo?.dut?.SENSOR_AUTOM)) {\r\n await apiCall('/dut/set-temperature-sensors', { devId: state.devId, value: state.formData.SENSOR_AUTOM ?? 0, placement: dutData.PLACEMENT ?? 'AMB' });\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarConfiguracaoSensores'));\r\n }\r\n toast.success(t('sucessoSalvar'));\r\n setState({ isSaving: false });\r\n return true;\r\n }\r\n return false;\r\n };\r\n\r\n const handleDutAut = async (dutData: ApiParams['/dut/set-dut-info'], dutSchedules: ApiParams['/dut/set-dut-schedules'], dutExceptions: ApiParams['/dut/set-dut-exceptions'], dutProgramming: ApiParams['/dut/set-programming-v3']) => {\r\n if (!beginDutAutValidations(dutData)) return false;\r\n\r\n const ans = await setDutAutEquipInfo(dutData);\r\n if (ans) return false;\r\n\r\n if (!isDevicesConnecteds()) return false;\r\n\r\n const conflits = await checkCardsNoConflicts();\r\n if (!conflits) {\r\n return false;\r\n }\r\n await checkNeedMultipleSchedule();\r\n\r\n handleDutSched(dutSchedules);\r\n\r\n dutData.UPDATE_AUTOM_INFO = !state.NEED_MULT_SCHEDULES || (!!state.devInfo?.dut_aut?.DUTAUT_DISABLED && state.formData.DUTAUTCFG_item?.value === 'IR');\r\n dutData.MCHN_BRAND = state.formData.MCHN_BRAND_item?.value;\r\n dutData.MCHN_MODEL = state.formData.MCHN_MODEL || null;\r\n\r\n // Não precisa entrar no script de Programação Múltipla, pode enviar programação normalmente\r\n if (!state.NEED_MULT_SCHEDULES) {\r\n handleDutSchedWithoutMultProg(dutData);\r\n }\r\n\r\n if (!setDutAutTimeAndConf(dutData)) return false;\r\n\r\n handleEqualsExcepts();\r\n\r\n handleDutsExcepts(dutData, dutExceptions);\r\n\r\n handleDutsCommands(dutProgramming);\r\n return true;\r\n };\r\n\r\n const sendDutAutData = async (dutData: ApiParams['/dut/set-dut-info'], dutSchedules: ApiParams['/dut/set-dut-schedules'], dutExceptions: ApiParams['/dut/set-dut-exceptions'], dutProgramming: ApiParams['/dut/set-programming-v3']) => {\r\n if (!state.NEED_MULT_SCHEDULES) {\r\n try {\r\n await apiCall('/resend-dut-ir-codes', { devId: state.devId });\r\n }\r\n catch (err) {\r\n toast.error('Não foi possível reenviar comandos de IR do dispositivo.');\r\n }\r\n\r\n try {\r\n await apiCall('/dut/set-programming-v3', dutProgramming);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroEnviarProgramacao'));\r\n setState({ isSaving: false });\r\n return;\r\n }\r\n try {\r\n await apiCall('/dut/set-dut-schedules', dutSchedules);\r\n await apiCall('/dut/set-dut-exceptions', dutExceptions);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarCardsProgramacao'));\r\n setState({ isSaving: false });\r\n return;\r\n }\r\n }\r\n else {\r\n if (state.DUTS_EXCEPTIONS_DELETED && state.DUTS_EXCEPTIONS_DELETED.length > 0) {\r\n try {\r\n await apiCall('/dut/update-programming', dutProgramming);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroApagarExcecao'));\r\n setState({ isSaving: false });\r\n return;\r\n }\r\n }\r\n try {\r\n await apiCall('/dut/set-dut-schedules', dutSchedules);\r\n await apiCall('/dut/set-dut-exceptions', dutExceptions);\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarCardsProgramacao'));\r\n setState({ isSaving: false });\r\n return;\r\n }\r\n }\r\n if (!state.NEED_MULT_SCHEDULES) {\r\n toast.success(t('sucessoSalvarProgramacao'));\r\n }\r\n else {\r\n toast.success(t('sucessoSalvarProgramacaoEnviadaMultiplaProgramacao'));\r\n setState({ isSaving: false });\r\n redirectToProfile();\r\n }\r\n clearArraysSchedulesExceptions();\r\n };\r\n\r\n const sendDutData = async (dutData: ApiParams['/dut/set-dut-info'], dutSchedules: ApiParams['/dut/set-dut-schedules'], dutExceptions: ApiParams['/dut/set-dut-exceptions'], dutProgramming: ApiParams['/dut/set-programming-v3']) => {\r\n await apiCall('/dut/set-dut-info', dutData);\r\n\r\n try {\r\n if (dutData.PLACEMENT === 'DUO' && state.formData.SENSOR_AUTOM == null) throw new Error(t('erroT0eT1naoDefinidos'));\r\n if (dutData.PLACEMENT !== state.devInfo?.dut?.PLACEMENT || (dutData.PLACEMENT === 'DUO' && (state.formData.SENSOR_AUTOM ?? 0) !== state.devInfo?.dut?.SENSOR_AUTOM)) {\r\n await apiCall('/dut/set-temperature-sensors', { devId: state.devId, value: state.formData.SENSOR_AUTOM ?? 0, placement: dutData.PLACEMENT ?? 'AMB' });\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroSalvarConfiguracaoSensores'));\r\n }\r\n\r\n if (state.devType.isDutAut && !state.devType.isDutQA) {\r\n await sendDutAutData(dutData, dutSchedules, dutExceptions, dutProgramming);\r\n }\r\n };\r\n\r\n const saveDutInfo = async () => {\r\n if (!dutBeginValidations()) return;\r\n\r\n const dutData = formatDutData();\r\n\r\n await handleDutAsset();\r\n\r\n const dutSchedules: ApiParams['/dut/set-dut-schedules'] = {\r\n CLIENT_ID: valueOrNull(state.formData.CLIENT_ID_item?.CLIENT_ID),\r\n UNIT_ID: valueOrNull(state.formData.UNIT_ID_item?.UNIT_ID),\r\n DUT_ID: state.devId,\r\n NEED_MULT_SCHEDULES: state.NEED_MULT_SCHEDULES,\r\n schedules: [],\r\n };\r\n\r\n const dutExceptions: ApiParams['/dut/set-dut-exceptions'] = {\r\n CLIENT_ID: valueOrNull(state.formData.CLIENT_ID_item?.CLIENT_ID),\r\n UNIT_ID: valueOrNull(state.formData.UNIT_ID_item?.UNIT_ID),\r\n DUT_ID: state.devId,\r\n exceptions: [],\r\n };\r\n\r\n const dutProgramming: ApiParams['/dut/set-programming-v3'] = {\r\n dutId: state.devId,\r\n week: {},\r\n exceptions: {},\r\n };\r\n\r\n if (state.devType.isDutAut && !state.devType.isDutQA && state.filtComboOpts.groups.filter((group) => group.checked).map((group) => group.value.toString()).length) {\r\n const ans = await handleDutAut(dutData, dutSchedules, dutExceptions, dutProgramming);\r\n if (!(ans)) return;\r\n }\r\n\r\n await sendDutData(dutData, dutSchedules, dutExceptions, dutProgramming);\r\n };\r\n\r\n const handleDriConfig = (driData: ApiParams['/dri/set-dri-info']) => {\r\n const cfgsList = state.formData.varsConfigInput.replace(/\\r/g, '\\n').split('\\n').map((x) => x.trim()).filter((x) => !!x);\r\n\r\n if (cfgsList.length > 0) {\r\n driData.varsList = [];\r\n try {\r\n for (let item of cfgsList) {\r\n if (item.endsWith(',')) item = item.substr(0, item.length - 1);\r\n const itemJ = JSON.parse(item);\r\n if (itemJ?.address?.protocol) {\r\n driData.varsList.push(itemJ);\r\n } else {\r\n console.log(item);\r\n toast.error(t('erroInterpretarConfiguracaoDri'));\r\n return false;\r\n }\r\n }\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroInterpretarConfiguracaoDri'));\r\n return false;\r\n }\r\n }\r\n return true;\r\n };\r\n\r\n const saveDriInfo = async () => {\r\n const driData: ApiParams['/dri/set-dri-info'] = {\r\n DRI_ID: state.devId,\r\n CLIENT_ID: valueOrNull(state.formData.CLIENT_ID_item?.CLIENT_ID),\r\n UNIT_ID: valueOrNull(state.formData.UNIT_ID_item?.UNIT_ID),\r\n };\r\n if (profile.manageAllClients) {\r\n if (!handleDriConfig(driData)) return;\r\n }\r\n await apiCall('/dri/set-dri-info', driData);\r\n };\r\n\r\n async function saveDevInfo(tabs) {\r\n try {\r\n setState({ isSaving: true });\r\n const {\r\n isDac, isDam, isDut, isDutAut, isDri, isDutQA,\r\n } = getDevType();\r\n\r\n if (isDac) {\r\n await saveDacInfo();\r\n } else if (isDam) {\r\n await saveDamInfo();\r\n } else if (isDut) {\r\n await saveDutInfo();\r\n } else if (isDri) {\r\n await saveDriInfo();\r\n } else {\r\n toast.error(t('houveErro'));\r\n setState({ isSaving: false });\r\n return;\r\n }\r\n\r\n // TODO: se não tiver UNIT selecionada, não é para mostrar nenhum group na lista.\r\n\r\n getData().catch(console.log);\r\n if (isDutAut && !isDutQA) {\r\n if (!state.NEED_MULT_SCHEDULES) {\r\n await apiCall('/resend-dut-aut-config', { devId: state.devId })\r\n .then(() => {\r\n toast.success(t('sucessoSalvar'));\r\n setState({ isSaving: false });\r\n redirectToProfile();\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n toast.error(t('erroEnviarNovaAutomacaoDut'));\r\n });\r\n }\r\n } else {\r\n redirectToProfile();\r\n toast.success(t('sucessoSalvar'));\r\n }\r\n } catch (err) {\r\n const error = err as AxiosError;\r\n console.log(err);\r\n if (error.response?.status !== 500) {\r\n toast.error(`${error.response?.data}`);\r\n } else {\r\n toast.error(t('erroSalvarAlteracoes'));\r\n }\r\n }\r\n setState({ isSaving: false });\r\n }\r\n\r\n function redirectToProfile() {\r\n const urlBase = history.location.pathname.replace('editar', 'informacoes');\r\n history.push(urlBase);\r\n }\r\n\r\n function clearArraysSchedulesExceptions() {\r\n state.DUTS_SCHEDULES = [];\r\n state.DUTS_SCHEDULES_FILTERED = [];\r\n state.DUTS_SCHEDULES_DELETED = [];\r\n state.DUTS_EXCEPTIONS = [];\r\n state.DUTS_EXCEPTIONS_FILTERED = [];\r\n state.DUTS_EXCEPTIONS_DELETED = [];\r\n }\r\n\r\n function dateDiffInDays(a, b) {\r\n const utc1 = Date.UTC(a.getFullYear(), a.getMonth(), a.getDate());\r\n const utc2 = Date.UTC(b.getFullYear(), b.getMonth(), b.getDate());\r\n\r\n return Math.floor((utc2 - utc1) / (24 * 60 * 60 * 1000));\r\n }\r\n\r\n async function getDAMFUnom() {\r\n if (!(state.devInfo?.DAT_BEGAUT)) return null;\r\n const groupIds = state.devInfo?.dam?.groups.map((r) => r.GROUP_ID);\r\n if (groupIds && groupIds.length > 0) {\r\n // OK\r\n }\r\n else return null;\r\n const { list: dacsList } = await apiCall('/dac/get-dacs-list', { groupIds });\r\n if (dacsList.length === 0) {\r\n toast.warn(t('avisoNaoHaDacAssociadoMaquinaAutomatizadaDAM'));\r\n return null;\r\n }\r\n const dacId = dacsList[0].DAC_ID;\r\n const begMonDate = new Date(state.devInfo.DAT_BEGMON);\r\n const begAutDate = new Date(state.devInfo.DAT_BEGAUT);\r\n const day = begMonDate.getDate().toString().padStart(2, '0');\r\n const month = (begMonDate.getMonth() + 1).toString().padStart(2, '0');\r\n const year = begMonDate.getFullYear().toString();\r\n const datIni = [year, month, day].join('-');\r\n const numDays = dateDiffInDays(begMonDate, begAutDate);\r\n const { list: usageList } = await apiCall('/dac/get-usage-per-day', { dacId, datIni, numDays });\r\n if (usageList) {\r\n const usageListFiltered = usageList.filter((r) => r.hoursOn > 0);\r\n const totalHoursOn = usageListFiltered.reduce((acc, value) => acc + value.hoursOn, 0);\r\n const averageHoursOn = totalHoursOn / usageListFiltered.length;\r\n const fu = averageHoursOn / 24;\r\n if (fu < 0.1) return null;\r\n return Number(fu.toFixed(2));\r\n }\r\n return null;\r\n }\r\n\r\n const getDutAutConfig = (devInfo: DevFullInfo) => {\r\n if (devInfo.status === 'ONLINE') {\r\n apiCall('/request-dut-aut-config', { devId: devInfo.DEV_ID })\r\n .then((response) => {\r\n state.temperatureControlState = {\r\n automation: response.enabled,\r\n mode: response.ctrl_mode,\r\n temperature: response.setpoint,\r\n LTC: response.LTC,\r\n };\r\n render();\r\n })\r\n .catch(console.log);\r\n }\r\n\r\n apiCall('/get-dut-ircodes-list', { devId: devInfo.DEV_ID })\r\n .then((response) => {\r\n const dutIrCodes = response.list;\r\n state.irCommands = identifyDutIrCommands(dutIrCodes)\r\n .filter((command) => {\r\n const cmdSetpoint = Number(command?.cmdName?.split(':')[1]) || null;\r\n if (cmdSetpoint != null) return command;\r\n })\r\n .map((command) => (\r\n {\r\n IR_ID: command.IR_ID,\r\n CMD_NAME: command?.cmdName,\r\n CMD_TYPE: command?.CMD_TYPE,\r\n TEMPER: Number(command?.cmdName?.split(':')[1]),\r\n }\r\n ))\r\n .sort((a, _b) => {\r\n if (a.TYPE === 'AC_COOL') {\r\n return 1;\r\n }\r\n return -1;\r\n })\r\n .sort((a, b) => {\r\n if (a.TEMPER > b.TEMPER) {\r\n return 1;\r\n }\r\n return -1;\r\n })\r\n .filter((value, index, self) => index === self.findIndex((t) => (\r\n t.CMD_NAME === value.CMD_NAME\r\n )));\r\n });\r\n };\r\n\r\n const getTranslatedInstallationLocation = (str?: string|null) => {\r\n const opts = {\r\n 'casa-de-maquina': t('casaDeMaquina'),\r\n 'ambiente-refrigerado': t('ambienteRefrigeradoDam'),\r\n outros: t('outros'),\r\n };\r\n\r\n return (str && opts[str]) || null;\r\n };\r\n\r\n const fetchEndpoints = async (devInfo: DevFullInfo) => {\r\n const reqCombos = {\r\n DEVICE_CODE: devInfo.DEV_ID,\r\n fluids: true,\r\n applics: true,\r\n types: true,\r\n envs: true,\r\n brands: true,\r\n psens: true,\r\n ecoModeCfg: true,\r\n scheduleStartBehavior: true,\r\n dutScheduleStartBehavior: true,\r\n dutScheduleEndBehavior: true,\r\n dutForcedBehavior: true,\r\n damInstallationLocation: true,\r\n evaporatorModels: true,\r\n };\r\n await Promise.all([\r\n apiCall('/clients/get-clients-list', {}).then(({ list }) => {\r\n state.comboOpts.clients = list;\r\n }),\r\n apiCall('/get-timezones-list-with-offset', {}).then(({ list }) => {\r\n state.comboOpts.timezones = list.map((item) => ({ label: `${item.area} (${item.offset})`, value: item.id }));\r\n }),\r\n apiCall('/dac/get-states-list', { full: true }).then(({ list }) => {\r\n state.comboOpts.states = list.map((item) => ({ STATE_NAME: item.fullName, STATE_ID: item.fullName, COUNTRY_ID: item.countryId }));\r\n }),\r\n apiCall('/dac/get-cities-list', {}).then(({ list }) => {\r\n state.comboOpts.cities = list.map((item) => ({ CITY_NAME: item.name, CITY_ID: item.id, STATE_ID: item.stateFullName }));\r\n }),\r\n apiCall('/dac/get-countries-list', { full: true }).then(({ list }) => {\r\n state.comboOpts.countries = list.map((item) => ({ COUNTRY_NAME: item.name, COUNTRY_ID: item.id }));\r\n }),\r\n apiCall('/dev/dev-info-combo-options', reqCombos).then((response) => {\r\n response.damInstallationLocation = response.damInstallationLocation?.map((item) => ({ ...item, label: getTranslatedInstallationLocation(item.value) }));\r\n Object.assign(state.comboOpts, response);\r\n }),\r\n fetchUnits(devInfo.CLIENT_ID),\r\n fetchEnvironments(devInfo.CLIENT_ID, devInfo.UNIT_ID, devInfo),\r\n fetchGroups(devInfo.CLIENT_ID, devInfo.UNIT_ID),\r\n ]);\r\n render();\r\n };\r\n\r\n const setDutAutFormData = (devInfo: DevFullInfo) => {\r\n state.comboOpts.ecoModeCfg = state.comboOpts.ecoModeCfg.filter((x) => ['eco-V', 'eco-D'].includes(x.value));\r\n\r\n for (let i = state.comboOpts.dutControlOperation.length - 1; i >= 0; i--) {\r\n if (!devInfo.dut_aut?.COMPATIBLE_MODES.includes(state.comboOpts.dutControlOperation[i].value)) {\r\n state.comboOpts.dutControlOperation.splice(i, 1);\r\n }\r\n }\r\n\r\n for (let i = state.comboOpts.dutForcedBehavior.length - 1; i >= 0; i--) {\r\n if (!devInfo.dut_aut?.COMPATIBLE_MODES.includes(state.comboOpts.dutForcedBehavior[i].value)) {\r\n state.comboOpts.dutForcedBehavior.splice(i, 1);\r\n }\r\n }\r\n\r\n state.dutCompatibilityHysteresisEco2 = devInfo.dut_aut?.COMPATIBLE_MODES.includes('8_ECO_2') || false;\r\n };\r\n\r\n const valueOrEmptyString = (value) => ((value || '').toString());\r\n\r\n const setDamFormData = async (devInfo: DevFullInfo) => {\r\n state.formData.ENABLE_ECO_item = valueOrNull(state.comboOpts.optionsEco.find((item) => item.valueN === devInfo.dam!.ENABLE_ECO));\r\n if (devInfo.dam?.ENABLE_ECO == null) state.formData.ENABLE_ECO_item = valueOrNull(state.comboOpts.optionsEco.find((item) => item.valueN === 0));\r\n state.formData.ECO_CFG_item = valueOrNull(state.comboOpts.ecoModeCfg.find((item) => item.value === devInfo.dam!.ECO_CFG));\r\n if (state.formData.ENABLE_ECO_item?.valueN === 0) {\r\n state.formData.ECO_CFG_item = null;\r\n }\r\n state.formData.REL_DUT_ID_item = !devInfo.dam!.SELF_REFERENCE ? valueOrNull(state.comboOpts.duts.find((item) => item.DEV_ID === devInfo.dam!.REL_DUT_ID)) : {\r\n DEV_ID: devInfo.DEV_ID, UNIT_ID: devInfo.UNIT_ID, ROOM_NAME: 'Sensor Interno do DAM', RTYPE_NAME: '',\r\n };\r\n state.formData.ENABLE_ECO_local = state.comboOpts.optionsEcoLocal.find((item) => item.value === devInfo.dam!.ENABLE_ECO_LOCAL) || null;\r\n\r\n state.formData.DAM_PLACEMENT_item = state.comboOpts.damPlacement.find((item) => item.value === devInfo.dam!.PLACEMENT) || state.comboOpts.damPlacement.find((item) => item.value === 'RETURN');\r\n state.formData.T0_POSITION_DAM = valueOrNull(state.comboOpts.sensorDamDuo.find((item) => item.value === devInfo.dam!.T0_POSITION));\r\n state.formData.T1_POSITION_DAM = valueOrNull(state.comboOpts.sensorDamDuo.find((item) => item.value === devInfo.dam!.T1_POSITION));\r\n\r\n state.formData.EXT_THERM_CFG = valueOrNull(state.comboOpts.extThermCfg.find((item) => item.value === devInfo.dam?.EXT_THERM_CFG));\r\n state.formData.ECO_OFST_START = valueOrEmptyString(devInfo.dam?.ECO_OFST_START);\r\n state.formData.ECO_OFST_END = valueOrEmptyString(devInfo.dam?.ECO_OFST_END);\r\n state.formData.ECO_INTERVAL_TIME = valueOrEmptyString(devInfo.dam?.ECO_INT_TIME);\r\n state.formData.FU_NOM = (devInfo.dam?.FU_NOM == null) ? '' : String(devInfo.dam?.FU_NOM);\r\n\r\n state.formData.ECO_SCHEDULE_START_BEHAVIOR_item = valueOrNull(state.comboOpts.scheduleStartBehavior.find((item) => item.value === devInfo.dam!.SCHEDULE_START_BEHAVIOR));\r\n state.formData.ECO_INTERVAL_TIME = valueOrEmptyString(devInfo.dam?.ECO_INT_TIME);\r\n state.formData.ECO_SETPOINT = (devInfo.dam?.SETPOINT == null ? '21' : devInfo.dam.SETPOINT).toString();\r\n state.formData.ECO_LTC = valueOrEmptyString(devInfo.dam?.LTC);\r\n state.formData.ECO_LTI = valueOrEmptyString(devInfo.dam?.LTI);\r\n state.formData.ECO_UPPER_HYSTERESIS = (devInfo.dam?.UPPER_HYSTERESIS == null ? '1' : devInfo.dam.UPPER_HYSTERESIS).toString();\r\n state.formData.ECO_LOWER_HYSTERESIS = (devInfo.dam?.LOWER_HYSTERESIS == null ? '1' : devInfo.dam.LOWER_HYSTERESIS).toString();\r\n state.formData.MINIMUM_TEMPERATURE = (devInfo.dam?.MINIMUM_TEMPERATURE == null ? '20' : devInfo.dam.MINIMUM_TEMPERATURE).toString();\r\n state.formData.MAXIMUM_TEMPERATURE = (devInfo.dam?.MAXIMUM_TEMPERATURE == null ? '28' : devInfo.dam.MAXIMUM_TEMPERATURE).toString();\r\n state.formData.DAM_INSTALLATION_LOCATION_item = devInfo.dam?.INSTALLATION_LOCATION ? { label: getTranslatedInstallationLocation(devInfo.dam.INSTALLATION_LOCATION), value: devInfo.dam.INSTALLATION_LOCATION } : null; // adicionar traducao no label\r\n state.damFuNomCalc = await getDAMFUnom();\r\n\r\n const devGroups = (devInfo.dam?.groups ?? []).map((x) => x.GROUP_ID);\r\n for (const group of state.comboOpts.groups) {\r\n group.checked = devGroups.includes(group.value);\r\n }\r\n };\r\n\r\n const setDacL1 = (devInfo: DevFullInfo) => {\r\n if (devInfo.dac?.DAC_APPL === 'fancoil') {\r\n state.selectedL1Sim = devInfo.dac.SELECTED_L1_SIM === 'fancoil';\r\n }\r\n else {\r\n state.selectedL1Sim = devInfo.dac?.SELECTED_L1_SIM === 'virtual';\r\n }\r\n };\r\n\r\n const setDacApplication = (devInfo: DevFullInfo) => {\r\n const hasPsuc = !!(devInfo.dac?.P0Psuc || devInfo.dac?.P1Psuc);\r\n const hasPliq = !!(devInfo.dac?.P0Pliq || devInfo.dac?.P1Pliq);\r\n const hasCurr = !!(devInfo.dac?.P0Curr || devInfo.dac?.P1Curr);\r\n\r\n state.formData.DAC_APPL_item = state.comboOpts.applicsNew.find((item) => {\r\n if (item.value.DAC_APPL !== devInfo.dac!.DAC_APPL) return false;\r\n if (!!item.value.hasPsuc !== hasPsuc) return false;\r\n if (!!item.value.hasPliq !== hasPliq) return false;\r\n if (!!item.value.hasCurr !== hasCurr) return false;\r\n return true;\r\n }) || null;\r\n\r\n if (devInfo.dac!.DAC_APPL === 'trocador-de-calor') {\r\n state.formData.DAC_APPL_item = {\r\n label: t('14trocadorCalor'),\r\n value: {\r\n DAC_APPL: 'trocador-de-calor',\r\n hasPliq: false,\r\n hasPsuc: false,\r\n hasCurr: false,\r\n },\r\n };\r\n }\r\n };\r\n\r\n const setDacSensors = (devInfo: DevFullInfo) => {\r\n state.formData.P0_POSITION = valueOrNull(state.comboOpts.pPositions.find((item) => item.value === devInfo.dac!.P0_POSITN));\r\n state.formData.P1_POSITION = valueOrNull(state.comboOpts.pPositions.find((item) => item.value === devInfo.dac!.P1_POSITN));\r\n state.formData.P0_SENSOR = valueOrNull(state.comboOpts.psens.find((item) => item.value === devInfo.dac!.P0_SENSOR));\r\n state.formData.P1_SENSOR = valueOrNull(state.comboOpts.psens.find((item) => item.value === devInfo.dac!.P1_SENSOR));\r\n\r\n setCurrentDacSensors(devInfo);\r\n\r\n state.formData.configTsensors = devInfo.dac?.T0_T1_T2 !== '[\"\"]';\r\n if (devInfo.dac?.T0_T1_T2) {\r\n const arr = JSON.parse(devInfo.dac.T0_T1_T2);\r\n state.formData.T0_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[0]));\r\n state.formData.T1_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[1]));\r\n state.formData.T2_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[2]));\r\n }\r\n\r\n isFancoil();\r\n };\r\n\r\n function getMeasurementType(hasPosition: boolean, isCurrent: boolean) {\r\n return !hasPosition && isCurrent ? { label: t('corrente'), value: 'current' } : { label: t('pressao'), value: 'pressure' };\r\n }\r\n\r\n function setCurrentDacSensors(devInfo: DevFullInfo) {\r\n const { P0Curr, P1Curr } = devInfo.dac || {};\r\n\r\n if (P0Curr || P1Curr) {\r\n state.formData.MEASUREMENT_SELECTED_P0 = getMeasurementType(!!state.formData.P0_POSITION, !!P0Curr);\r\n state.formData.MEASUREMENT_SELECTED_P1 = getMeasurementType(!!state.formData.P1_POSITION, !!P1Curr);\r\n }\r\n }\r\n\r\n const setDacFormData = async (devInfo: DevFullInfo) => {\r\n setDacL1(devInfo);\r\n\r\n state.formData.DAC_DESC = valueOrEmptyString(devInfo.dac?.DAC_DESC);\r\n state.formData.DAC_NAME = valueOrEmptyString(devInfo.dac?.DAC_NAME);\r\n state.formData.DAC_MODEL = valueOrEmptyString(devInfo.dac?.DAC_MODEL);\r\n state.formData.DAC_COP = valueOrEmptyString(devInfo.dac?.DAC_COP);\r\n state.formData.GROUP_ID_item = valueOrNull(state.comboOpts.groups.find((item) => item.value === devInfo.dac!.GROUP_ID));\r\n state.formData.ASSET_ID_item = valueOrNull(state.comboOpts.assets.find((item) => item.DEV_ID === devInfo.DEV_ID && item.GROUP_ID === devInfo.dac!.GROUP_ID));\r\n state.formData.FLUID_TYPE_item = valueOrNull(state.comboOpts.fluids.find((item) => item.value === devInfo.dac!.FLUID_TYPE));\r\n state.formData.DAC_TYPE_item = valueOrNull(state.comboOpts.types.find((item) => item.value === devInfo.dac!.DAC_TYPE));\r\n state.formData.DAC_ENV_item = valueOrNull(state.comboOpts.envs.find((item) => item.value === devInfo.dac!.DAC_ENV));\r\n state.formData.DAC_BRAND_item = valueOrNull(state.comboOpts.brands.find((item) => item.value === devInfo.dac!.DAC_BRAND));\r\n state.formData.DAC_MODIF_item = valueOrNull(state.comboOpts.yesNo.find((item) => item.value === devInfo.dac!.DAC_MODIF));\r\n state.formData.DAC_COMIS_item = valueOrNull(state.comboOpts.yesNo.find((item) => item.value === devInfo.dac!.DAC_COMIS));\r\n state.formData.REL_DUT_ID_item = valueOrNull(state.comboOpts.duts.find((item) => item.DEV_ID === devInfo.dac!.REL_DUT_ID));\r\n state.formData.DAC_HEAT_EXCHANGER_item = valueOrNull(state.comboOpts.heatExchangerTypes.find((item) => item.ID === devInfo.dac!.HEAT_EXCHANGER_ID));\r\n state.formData.COMPRESSOR_NOMINAL_CURRENT = valueOrEmptyString(devInfo.dac?.COMPRESSOR_NOMINAL_CURRENT);\r\n state.formData.EQUIPMENT_POWER_item = devInfo.dac?.EQUIPMENT_POWER ? { label: devInfo.dac.EQUIPMENT_POWER, value: devInfo.dac.EQUIPMENT_POWER } : null;\r\n state.formData.EVAPORATOR_MODEL_item = devInfo.dac?.EVAPORATOR_MODEL_ID ? { label: devInfo.dac.EQUIPMENT_POWER, value: String(devInfo.dac.EVAPORATOR_MODEL_ID) } : null;\r\n state.formData.INSUFFLATION_SPEED = valueOrEmptyString(devInfo.dac?.INSUFFLATION_SPEED);\r\n\r\n if (devInfo.dac?.DAC_COMIS == null) state.formData.DAC_COMIS_item = valueOrNull(state.comboOpts.yesNo.find((item) => item.valueN === 0));\r\n\r\n setDacApplication(devInfo);\r\n\r\n setDacSensors(devInfo);\r\n\r\n if (devInfo.dam) {\r\n state.formData.USE_RELAY_item = valueOrNull(state.comboOpts.yesNo.find((x) => x.valueNinv === devInfo.dam!.DAM_DISABLED));\r\n if (devInfo.dam.DAM_DISABLED == null) state.formData.USE_RELAY_item = valueOrNull(state.comboOpts.yesNo.find((item) => item.valueN === 0));\r\n state.persisted_USE_RELAY_item = state.formData.USE_RELAY_item;\r\n }\r\n await getOriginalInfoAssets();\r\n };\r\n\r\n const setDutAutConfig = (devInfo: DevFullInfo) => {\r\n let portCfg = devInfo.dut_aut?.PORTCFG;\r\n if (portCfg === null) portCfg = 'IR';\r\n let autCfg = null as null|string;\r\n if ((devInfo.dut_aut?.DUTAUT_DISABLED === 0) && (portCfg === 'IR')) autCfg = 'IR';\r\n if ((devInfo.dut_aut?.DUTAUT_DISABLED === 1) && (portCfg === 'RELAY')) autCfg = 'RELAY';\r\n if ((devInfo.dut_aut?.DUTAUT_DISABLED === 1) && (portCfg === 'IR')) autCfg = 'DISABLED';\r\n state.formData.DUTAUTCFG_item = valueOrNull(state.comboOpts.dutAutCfg.find((item) => item.value === autCfg));\r\n };\r\n\r\n const setDutFormData = async (devInfo: DevFullInfo) => {\r\n state.formData.PLACEMENT_item = valueOrNull(state.comboOpts.placement.find((item) => item.value === devInfo.dut!.PLACEMENT));\r\n state.formData.SENSOR_AUTOM = valueOrNull(devInfo.dut?.SENSOR_AUTOM) as null|0|1;\r\n state.formData.TEMPERATURE_OFFSET = (devInfo.dut?.TEMPERATURE_OFFSET ?? '0').toString();\r\n state.formData.GROUP_ID_item = valueOrNull(state.comboOpts.groups.find((item) => item.value === devInfo.GROUP_ID));\r\n state.formData.ASSET_ID_item = valueOrNull(state.comboOpts.assets.find((item) => item.DEV_ID === devInfo.DEV_ID && item?.GROUP_ID === devInfo?.GROUP_ID));\r\n if (devInfo.dut_aut) {\r\n state.formData.CTRLOPER_item = state.comboOpts.dutControlOperation.find((item) => item.value === devInfo.dut_aut!.CTRLOPER) || state.comboOpts.dutControlOperation[0];\r\n setDutAutConfig(devInfo);\r\n }\r\n if (state.formData.TEMPERATURE_OFFSET != null) {\r\n state.offsetChecked = true;\r\n }\r\n await getOriginalInfoAssets();\r\n };\r\n\r\n const getDutsSchedAndExcepts = (devInfo: DevFullInfo) => {\r\n if (state.DUTS_SCHEDULES.length === 0) {\r\n apiCall('/dut/get-dut-schedules', { DUT_ID: devInfo.DEV_ID, CLIENT_ID: devInfo.CLIENT_ID, UNIT_ID: devInfo.UNIT_ID })\r\n .then((response) => {\r\n state.DUTS_SCHEDULES = response.schedules;\r\n state.DUTS_SCHEDULES_FILTERED = state.DUTS_SCHEDULES.filter((schedule) => schedule.DUT_SCHEDULE_ID == null || !state.DUTS_SCHEDULES_DELETED.includes(schedule.DUT_SCHEDULE_ID));\r\n render();\r\n })\r\n .catch(console.log);\r\n }\r\n\r\n if (state.DUTS_EXCEPTIONS.length === 0) {\r\n apiCall('/dut/get-dut-exceptions', { DUT_ID: devInfo.DEV_ID, CLIENT_ID: devInfo.CLIENT_ID, UNIT_ID: devInfo.UNIT_ID })\r\n .then((response) => {\r\n state.DUTS_EXCEPTIONS = response.exceptions;\r\n state.DUTS_EXCEPTIONS_FILTERED = state.DUTS_EXCEPTIONS.filter((exception) => exception.DUT_EXCEPTION_ID == null || !state.DUTS_EXCEPTIONS_DELETED.includes(exception.DUT_EXCEPTION_ID));\r\n render();\r\n })\r\n .catch(console.log);\r\n }\r\n };\r\n\r\n const setDutAutMachine = (devInfo: DevFullInfo) => {\r\n state.formData.MCHN_MODEL = devInfo.dut_aut?.MCHN_MODEL ?? '';\r\n state.formData.MCHN_BRAND_item = state.comboOpts.brands.find((item) => item.value === devInfo.dut_aut!.MCHN_BRAND) ?? null;\r\n state.formData.TSETPOINT = (devInfo.dut_aut?.TSETPOINT ?? '').toString();\r\n state.formData.RESENDPER = (devInfo.dut_aut?.RESENDPER && (devInfo.dut_aut?.RESENDPER / 60) >= 5) ? (devInfo.dut_aut.RESENDPER / 60).toString() : '5';\r\n state.formData.LTCRIT = (devInfo.dut_aut?.LTCRIT ?? '').toString();\r\n state.formData.LTINF = (devInfo.dut_aut?.LTINF ?? '').toString();\r\n const devGroups = (devInfo.dut_aut?.groups ?? []).map((x) => x.GROUP_ID);\r\n for (const group of state.comboOpts.groups) {\r\n group.checked = devGroups.includes(group.value);\r\n }\r\n state.formData.TEMPERATURE_OFFSET = (devInfo.dut_aut?.TEMPERATURE_OFFSET ?? '0').toString();\r\n if (state.formData.TEMPERATURE_OFFSET.length > 0) {\r\n state.offsetChecked = true;\r\n }\r\n };\r\n\r\n const setFormDataDates = (devInfo: DevFullInfo) => {\r\n if (devInfo.DAT_BEGMON) {\r\n state.formData.DAT_BEGMON = new Date(devInfo.DAT_BEGMON).toLocaleString().split('T')[0].split('-').reverse().join('/');\r\n } else {\r\n state.formData.DAT_BEGMON = '';\r\n }\r\n if (devInfo.DAT_BEGAUT) {\r\n state.formData.DAT_BEGAUT = new Date(devInfo.DAT_BEGAUT).toLocaleString().split('T')[0].split('-').reverse().join('/');\r\n } else {\r\n state.formData.DAT_BEGAUT = '';\r\n }\r\n };\r\n\r\n const setFormDataValues = async (devInfo: DevFullInfo) => {\r\n if (state.devType.isDutAut) {\r\n setDutAutFormData(devInfo);\r\n }\r\n if (state.devType.isDam && state.comboOpts.ecoModeCfg.some((x) => x.value === 'eco-D')) {\r\n if (state.devType.isDac) {\r\n state.comboOpts.ecoModeCfg = state.comboOpts.ecoModeCfg.filter((x) => x.value === 'eco-D');\r\n }\r\n else {\r\n state.comboOpts.ecoModeCfg = state.comboOpts.ecoModeCfg.filter((x) => x.value !== 'eco-D');\r\n }\r\n }\r\n state.formData.CLIENT_ID_item = state.comboOpts.clients.find((item) => item.CLIENT_ID === devInfo.CLIENT_ID) ?? null;\r\n state.formData.UNIT_ID_item = state.comboOpts.units.find((item) => item.UNIT_ID === devInfo.UNIT_ID) ?? null;\r\n\r\n setFormDataDates(devInfo);\r\n\r\n if (devInfo.dam) {\r\n await setDamFormData(devInfo);\r\n }\r\n\r\n if (devInfo.dac) {\r\n await setDacFormData(devInfo);\r\n }\r\n\r\n if (devInfo.dut) {\r\n await setDutFormData(devInfo);\r\n }\r\n\r\n if (devInfo.dut_aut && !state.devType.isDutQA) {\r\n setDutAutMachine(devInfo);\r\n\r\n getDutsSchedAndExcepts(devInfo);\r\n }\r\n };\r\n\r\n async function getData() {\r\n try {\r\n state.devInfo = await getCachedDevInfo(state.devId, { forceFresh: true });\r\n const devInfo = state.devInfo!;\r\n\r\n state.devType = getDevType();\r\n\r\n verifyDacApplicationOptions();\r\n if (state.devType.isDri) {\r\n await getDriInfo(devInfo.DEV_ID);\r\n }\r\n if (devInfo.dac) {\r\n wsl.start(onWsOpen, onWsMessage, beforeWsClose);\r\n }\r\n\r\n state.formData.varsConfigInput = '';\r\n if (devInfo.dri) {\r\n state.formData.varsConfigInput = devInfo.dri?.varsCfg?.varsList?.map((x) => JSON.stringify(x)).join('\\n');\r\n }\r\n if (state.devType.isDutAut && state.devInfo?.dut?.operation_mode !== 5) {\r\n getDutAutConfig(devInfo);\r\n }\r\n\r\n if (devInfo.dac) {\r\n const heatExchangers = await apiCall('/heat-exchanger/get-list-v2', { CLIENT_ID: devInfo.CLIENT_ID });\r\n state.comboOpts.heatExchangerTypes = heatExchangers.map((e) => ({ ...e, label: e.NAME, value: e.NAME }));\r\n render();\r\n }\r\n\r\n // Temporario: será permitido que o novo modo seja configurável apenas para os seguintes DAMs:\r\n // DAM303221310, DAM303221303, DAM209211441, DAM210211471 e DAM210211473\r\n if (!['DAM303221310', 'DAM303221303', 'DAM209211441', 'DAM210211471', 'DAM210211473'].includes(devInfo.DEV_ID)) {\r\n // Remove segunda opção: 'Sim, Eco 2\r\n if (state.comboOpts.optionsEco.length === 3) {\r\n state.comboOpts.optionsEco.splice(1, 1);\r\n }\r\n }\r\n\r\n await fetchEndpoints(devInfo);\r\n\r\n await setFormDataValues(devInfo);\r\n\r\n await onSelectUnit(state.formData.UNIT_ID_item);\r\n onSelectApplication(state.formData.DAC_APPL_item);\r\n } catch (err) {\r\n console.log(err);\r\n alert(t('houveErro'));\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n useEffect(() => {\r\n getData();\r\n setState({ offsetChecked: false });\r\n render();\r\n }, []);\r\n\r\n const formatGroups = (dutsList: ApiResps['/dut/get-duts-list']['list'], dacsAutoList: ApiResps['/dacs-with-automation-enabled']['list']) => {\r\n const isDam = !!(state.devInfo?.dam);\r\n const isOnlyDutRef = !!(state.devType.isDut && state.devInfo?.dut_aut && checkIsDutRef(state.devInfo.dut_aut.groups));\r\n const isDutAut = !!(!isOnlyDutRef && state.devInfo?.dut_aut);\r\n\r\n if (isDam) {\r\n for (const dut of dutsList) {\r\n if (!dut.ROOM_NAME) { dut.ROOM_NAME = dut.DEV_ID; }\r\n }\r\n // DUTS QA não podem ser selecionados para serem referências de temperatura.\r\n // Atualmente, o único critério confiável que eu descobri é se o DUT tiver variáveis de umidade e CO2.\r\n // Isso implica que o DUT QA ainda aparecerá na lista antes de começar a publicar.\r\n state.comboOpts.duts = dutsList.filter((x) => !x.automationEnabled && (!x?.VARS?.includes('HD')));\r\n const devGroups = (state.devInfo!.dam!.groups || []).map((x) => x.GROUP_ID);\r\n for (const group of state.comboOpts.groups) {\r\n group.checked = devGroups.includes(group.value);\r\n group.withDacAut = dacsAutoList.some((x) => (x.GROUP_ID === group.value));\r\n }\r\n }\r\n if (isDutAut) {\r\n const devGroups = (state.devInfo!.dut_aut!.groups || []).map((x) => x.GROUP_ID);\r\n for (const group of state.comboOpts.groups) {\r\n group.checked = devGroups.includes(group.value);\r\n }\r\n }\r\n };\r\n\r\n async function getOriginalInfoAssets() {\r\n const { devInfo } = state;\r\n const asset = await apiCall('/clients/get-asset-info', { DEV_ID: devInfo?.DEV_ID });\r\n if (asset?.info) {\r\n state.persistedAssetDevice = {\r\n value: asset.info.ASSET_ID,\r\n label: asset.info.AST_DESC,\r\n UNIT_ID: asset.info.UNIT_ID,\r\n GROUP_ID: asset.info.GROUP_ID,\r\n DEV_ID: asset.info.DEV_ID,\r\n ASSET_ROLE: asset.info.AST_ROLE || 0,\r\n CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID as number,\r\n DAT_INDEX: asset.info.DAT_INDEX,\r\n DAT_ID: asset.info.DAT_ID,\r\n MCHN_KW: asset.info.MCHN_KW,\r\n };\r\n } else {\r\n state.persistedAssetDevice = null;\r\n }\r\n render();\r\n }\r\n\r\n async function fetchUnits(CLIENT_ID) {\r\n state.comboOpts.units = [];\r\n state.comboOpts.groups = [];\r\n state.comboOpts.duts = [];\r\n state.comboOpts.environments = [];\r\n if (!CLIENT_ID) return;\r\n\r\n const { devInfo } = state;\r\n const isDac = !!(devInfo?.dac);\r\n const isDam = !!(devInfo?.dam);\r\n const isOnlyDutRef = !!(state.devType.isDut && state.devInfo?.dut_aut && checkIsDutRef(state.devInfo.dut_aut.groups));\r\n const isDutAut = !!(!isOnlyDutRef && state.devInfo?.dut_aut);\r\n\r\n const reqCombos = { CLIENT_ID, units: true, groups: (isDac || isDam || isDutAut || state.devType.isDut) };\r\n try {\r\n const combos = await apiCall('/dev/dev-info-combo-options', reqCombos);\r\n let units;\r\n if (combos.units) {\r\n units = combos.units.map((unit) => ({ UNIT_ID: unit.value, UNIT_NAME: unit.label }));\r\n }\r\n Object.assign(state.comboOpts, combos, { units });\r\n state.comboOpts = {\r\n ...state.comboOpts,\r\n ...state.comboOpts,\r\n };\r\n state.isLoadingUnitInfo = false;\r\n render();\r\n }\r\n catch {\r\n toast.error(t('houveErro'));\r\n state.isLoadingUnitInfo = false;\r\n }\r\n }\r\n\r\n async function fetchGroups(CLIENT_ID: number, UNIT_ID: number) {\r\n if (!CLIENT_ID && !UNIT_ID) return;\r\n\r\n const isDam = !!(devInfo?.dam);\r\n\r\n const [\r\n { list: dutsList },\r\n { list: dacsAutoList },\r\n ] = await Promise.all([\r\n Promise.resolve().then(async () => (isDam ? apiCall('/dut/get-duts-list', { clientId: CLIENT_ID, unitId: UNIT_ID }) : ({ list: [] }))),\r\n Promise.resolve().then(async () => (isDam ? apiCall('/dacs-with-automation-enabled', { clientId: CLIENT_ID, unitId: UNIT_ID }) : ({ list: [] }))),\r\n ]);\r\n\r\n formatGroups(dutsList, dacsAutoList);\r\n state.filtComboOpts.groups = state.comboOpts.groups.filter((group) => group.unit === UNIT_ID);\r\n state.filtComboOpts.duts = state.comboOpts.duts.filter((dut) => dut.UNIT_ID === UNIT_ID);\r\n\r\n state.isLoadingUnitInfo = false;\r\n render();\r\n }\r\n\r\n async function fetchEnvironments(CLIENT_ID, UNIT_ID, devInfo) {\r\n state.comboOpts.environments = [];\r\n const isDut = !!(devInfo && devInfo.dut);\r\n setFormData({ ENVIRONMENT_ID_item: null });\r\n setFormData({ ROOM_NAME: '' });\r\n if (!isDut || !CLIENT_ID || !UNIT_ID) return;\r\n\r\n let environments;\r\n await apiCall('/environments/get-environment-list', { CLIENT_ID, UNIT_ID }).then((result) => {\r\n environments = result.environments.map((environment) => Object.assign(environment, {\r\n ENVIRONMENT_LABEL: `${environment.ENVIRONMENT_NAME}${environment.DUT_CODE ? ` - ${environment.DUT_CODE}` : ''}`,\r\n }));\r\n });\r\n\r\n setState({ comboOpts: { ...state.comboOpts, environments } });\r\n setFormData({ ENVIRONMENT_ID_item: environments.find((item) => item.ENVIRONMENT_ID === state.devInfo?.dut?.ENVIRONMENT_ID) || null });\r\n setFormData({ ROOM_NAME: state.formData.ENVIRONMENT_ID_item?.ENVIRONMENT_NAME ?? null });\r\n render();\r\n }\r\n\r\n const fancoilLabel = (position) => {\r\n if (position && position.label) {\r\n if (position.label === 'Tamb') {\r\n position.label = t('temperaturaExterna');\r\n } else if (position.label === 'Tliq') {\r\n position.label = t('temperaturaEntradaAgua');\r\n } else if (position.label === 'Tsuc') {\r\n position.label = t('temperaturaSaidaAgua');\r\n }\r\n }\r\n return position;\r\n };\r\n\r\n function isFancoil() {\r\n if (state.formData.DAC_APPL_item?.value?.DAC_APPL === 'fancoil') {\r\n state.comboOpts.tPositions = [\r\n { label: t('temperaturaExterna'), value: 'Tamb' },\r\n { label: t('temperaturaSaidaAgua'), value: 'Tsuc' },\r\n { label: t('temperaturaEntradaAgua'), value: 'Tliq' },\r\n ];\r\n\r\n fancoilLabel(state.formData.T0_POSITION);\r\n fancoilLabel(state.formData.T1_POSITION);\r\n fancoilLabel(state.formData.T2_POSITION);\r\n } else {\r\n state.comboOpts.tPositions = [\r\n { label: 'Tamb', value: 'Tamb' },\r\n { label: 'Tsuc', value: 'Tsuc' },\r\n { label: 'Tliq', value: 'Tliq' },\r\n ];\r\n\r\n if (state.devInfo?.dac?.T0_T1_T2 && state.devInfo?.dac?.T0_T1_T2 !== '[\"\"]') {\r\n const arr = JSON.parse(state.devInfo?.dac?.T0_T1_T2);\r\n state.formData.T0_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[0]));\r\n state.formData.T1_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[1]));\r\n state.formData.T2_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[2]));\r\n } else if (state.formData?.DAC_APPL_item?.value?.hasCurr) {\r\n state.formData.configTsensors = true;\r\n state.formData.T0_POSITION = state.comboOpts.tPositions[2];\r\n state.formData.T1_POSITION = state.comboOpts.tPositions[1];\r\n state.formData.T2_POSITION = state.comboOpts.tPositions[0];\r\n } else if (state.devInfo?.dac?.T0_T1_T2) {\r\n const arr = JSON.parse(state.devInfo?.dac?.T0_T1_T2);\r\n state.formData.T0_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[0]));\r\n state.formData.T1_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[1]));\r\n state.formData.T2_POSITION = valueOrNull(state.comboOpts.tPositions.find((x) => x.value === arr[2]));\r\n } else {\r\n state.formData.T0_POSITION = state.comboOpts.tPositions[0];\r\n state.formData.T1_POSITION = state.comboOpts.tPositions[1];\r\n state.formData.T2_POSITION = state.comboOpts.tPositions[2];\r\n }\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n isFancoil();\r\n render();\r\n }, [state.formData.DAC_APPL_item]);\r\n\r\n function dacApplicationTag(dacApplic: string|null): string|null {\r\n if (dacApplic === 'ar-condicionado') return '(ac)';\r\n if (dacApplic === 'camara-fria') return '(cf)';\r\n if (dacApplic === 'fancoil') return '(fc)';\r\n if (dacApplic === 'chiller') return '(ch)';\r\n if (dacApplic === 'trocador-de-calor') return '(he)';\r\n return null;\r\n }\r\n\r\n function onSelectApplication(item) {\r\n if (state.formData.DAC_APPL_item?.label !== item?.label) {\r\n setFormData({\r\n P0_POSITION: null,\r\n P0_SENSOR: null,\r\n P1_POSITION: null,\r\n P1_SENSOR: null,\r\n MEASUREMENT_SELECTED_P0: null,\r\n MEASUREMENT_SELECTED_P1: null,\r\n });\r\n }\r\n\r\n state.formData.DAC_APPL_item = item;\r\n const dacApplic = (state.formData?.DAC_APPL_item?.value?.DAC_APPL) ?? null;\r\n const tag = dacApplicationTag(dacApplic);\r\n if (tag === '(he)') {\r\n state.formData.DAC_TYPE_item = {\r\n value: 'tipo-trocador-de-calor',\r\n label: t('trocadorCalor'),\r\n tags: '(he)',\r\n };\r\n state.formData.configTsensors = true;\r\n if ((!state.formData.T0_POSITION) && (!state.formData.T1_POSITION) && (!state.formData.T2_POSITION)) {\r\n state.formData.T0_POSITION = state.comboOpts.tPositions[0];\r\n state.formData.T1_POSITION = state.comboOpts.tPositions[1];\r\n state.formData.T2_POSITION = state.comboOpts.tPositions[2];\r\n }\r\n if (state.comboOpts.heatExchangerTypes.length !== 0 && !state.formData.DAC_HEAT_EXCHANGER_item) {\r\n state.formData.DAC_HEAT_EXCHANGER_item = state.comboOpts.heatExchangerTypes[0];\r\n }\r\n } else if (state.formData?.DAC_APPL_item?.value?.hasCurr) {\r\n state.formData.configTsensors = true;\r\n }\r\n if (tag) {\r\n state.filtComboOpts.types = state.comboOpts.types.filter((type) => type.tags === tag);\r\n state.filtComboOpts.envs = state.comboOpts.envs.filter((env) => env.tags === tag);\r\n if (state.formData.DAC_TYPE_item && state.formData.DAC_TYPE_item.tags !== tag) {\r\n state.formData.DAC_TYPE_item = null;\r\n }\r\n if (state.formData?.DAC_ENV_item?.tags !== tag) {\r\n state.formData.DAC_ENV_item = null;\r\n }\r\n } else {\r\n state.filtComboOpts.types = state.comboOpts.types.filter((type) => true);\r\n state.filtComboOpts.envs = state.comboOpts.envs.filter((env) => true);\r\n }\r\n isFancoil();\r\n render();\r\n }\r\n\r\n const changeDacPropertiesByMachine = () => {\r\n const selectedMachine = state.machinesAssetsList?.find((item) => item.GROUP_ID === state.formData.GROUP_ID_item?.value);\r\n\r\n const hasPsuc = !!(state.devInfo?.dac?.P0Psuc || state.devInfo?.dac?.P1Psuc);\r\n const hasPliq = !!(state.devInfo!.dac!.P0Pliq || state.devInfo?.dac?.P1Pliq);\r\n state.formData.DAC_APPL_item = state.comboOpts.applicsNew.find((item) => {\r\n if (item.value.DAC_APPL !== selectedMachine!.MCHN_APPL) return false;\r\n if (!!item.value.hasPsuc !== hasPsuc) return false;\r\n if (!!item.value.hasPliq !== hasPliq) return false;\r\n return true;\r\n }) || null;\r\n state.formData.FLUID_TYPE_item = state.comboOpts.fluids.find((item) => item.value === selectedMachine!.FLUID_TYPE) || null;\r\n state.formData.DAC_TYPE_item = state.comboOpts.types.find((item) => item.value === selectedMachine!.GROUP_TYPE) || null;\r\n state.formData.DAC_BRAND_item = state.comboOpts.brands.find((item) => item.value === selectedMachine!.BRAND) || null;\r\n };\r\n\r\n function changePropertiesByMachine() {\r\n if (!state.formData.GROUP_ID_item || !state.machinesAssetsList || !state.devInfo) return;\r\n\r\n if (state.formData.GROUP_ID_item.value !== state.formData.ASSET_ID_item?.GROUP_ID) {\r\n state.formData.ASSET_ID_item = null;\r\n }\r\n const selectedMachine = state.machinesAssetsList.find((item) => item.GROUP_ID === state.formData.GROUP_ID_item?.value);\r\n\r\n if (!selectedMachine) return;\r\n\r\n if (state.devType.isDac) {\r\n changeDacPropertiesByMachine();\r\n }\r\n }\r\n\r\n function changePropertiesByAsset() {\r\n if (!state.formData.ASSET_ID_item || !state.machinesAssetsList || !state.devInfo) return;\r\n const selectedAsset = state.machinesAssetsList.find((item) => item.GROUP_ID === state.formData.GROUP_ID_item?.value)?.assets.find((item) => item.ASSET_ID === state.formData.ASSET_ID_item?.value);\r\n\r\n if (!selectedAsset) return;\r\n if (state.devType.isDac) {\r\n state.formData.DAC_MODEL = selectedAsset.MCHN_MODEL ?? '';\r\n state.formData.DAC_NAME = selectedAsset.AST_DESC ?? '';\r\n }\r\n }\r\n\r\n const setAsset = () => {\r\n if (state.devType.isDac) {\r\n state.formData.ASSET_ID_item = state.comboOpts.assets.find((item) => item.DEV_ID === state.devInfo?.DEV_ID && item?.GROUP_ID === state.devInfo?.dac?.GROUP_ID) || null;\r\n }\r\n if (state.devType.isDut) {\r\n state.formData.ASSET_ID_item = state.comboOpts.assets.find((item) => item.DEV_ID === state.devInfo?.DEV_ID && item?.GROUP_ID === state.devInfo?.GROUP_ID) || null;\r\n }\r\n };\r\n\r\n const filterByUnitId = async (unitId: number, item) => {\r\n state.filtComboOpts.groups = state.comboOpts.groups.filter((group) => group.unit === unitId);\r\n state.filtComboOpts.duts = state.comboOpts.duts.filter((dut) => dut.UNIT_ID === unitId);\r\n if (!state.formData.ASSET_ID_item || unitId !== state.formData.ASSET_ID_item.UNIT_ID) {\r\n state.formData.ASSET_ID_item = null;\r\n state.isLoadingUnitInfo = true;\r\n render();\r\n const machinesAssetsList = await (state.devType.isDam || state.devType.isDac || state.devType.isDut ? apiCall('/clients/get-machines-list', { unitIds: [item.value || item.UNIT_ID] }) : []);\r\n const assets = [] as { value: number, label: string, UNIT_ID: number, GROUP_ID: number, DEV_ID: string|null, ASSET_ROLE: number, CLIENT_ID: number, DAT_INDEX: number|null, DAT_ID: string|null }[];\r\n for (const item of machinesAssetsList) {\r\n item.assets.forEach((asset) => {\r\n assets.push({\r\n value: asset.ASSET_ID,\r\n label: asset.AST_DESC,\r\n UNIT_ID: asset.UNIT_ID,\r\n GROUP_ID: item.GROUP_ID,\r\n DEV_ID: asset.DEV_ID,\r\n ASSET_ROLE: asset.AST_ROLE || 0,\r\n CLIENT_ID: state.formData.CLIENT_ID_item?.CLIENT_ID as number,\r\n DAT_INDEX: asset.DAT_INDEX,\r\n DAT_ID: asset.DAT_ID,\r\n });\r\n });\r\n }\r\n setState({\r\n comboOpts: {\r\n ...state.comboOpts,\r\n assets,\r\n },\r\n });\r\n setAsset();\r\n state.machinesAssetsList = machinesAssetsList;\r\n state.isLoadingUnitInfo = false;\r\n render();\r\n }\r\n };\r\n\r\n const valueOrNull = (value) => (value ?? null);\r\n\r\n async function fetchGroupByUnit(clientId: number, unitId: number) {\r\n const { devInfo } = state;\r\n if (unitId !== devInfo?.UNIT_ID) {\r\n await fetchGroups(clientId, unitId);\r\n }\r\n }\r\n\r\n async function onSelectUnit(item) {\r\n const { devInfo } = state;\r\n const isDac = !!(devInfo?.dac);\r\n state.formData.UNIT_ID_item = item && state.comboOpts.units.find((x) => (x.UNIT_ID === item.value || x.UNIT_ID === item.UNIT_ID)) || null;\r\n const unitId = valueOrNull(state.formData.UNIT_ID_item?.UNIT_ID);\r\n const clientId = valueOrNull(state.formData.CLIENT_ID_item?.CLIENT_ID);\r\n if (unitId) {\r\n await fetchGroupByUnit(clientId, unitId);\r\n await filterByUnitId(unitId, item);\r\n } else {\r\n if (isDac || state.devType.isDut) {\r\n state.filtComboOpts.groups = state.comboOpts.groups.filter((group) => true);\r\n } else {\r\n state.filtComboOpts.groups = [];\r\n }\r\n state.filtComboOpts.duts = [];\r\n }\r\n if (devInfo?.DEV_ID.startsWith('DAM3') && devInfo.dam?.CAN_SELF_REFERENCE) {\r\n state.filtComboOpts.duts.push({ DEV_ID: devInfo.DEV_ID, UNIT_ID: devInfo.UNIT_ID, ROOM_NAME: 'Sensor Interno do DAM' });\r\n }\r\n if (state.formData.GROUP_ID_item && state.formData.GROUP_ID_item.unit !== unitId) {\r\n state.formData.GROUP_ID_item = null;\r\n state.formData.ASSET_ID_item = null;\r\n }\r\n if (state.formData.REL_DUT_ID_item && state.formData.REL_DUT_ID_item.UNIT_ID !== unitId) {\r\n state.formData.REL_DUT_ID_item = null;\r\n }\r\n await fetchEnvironments(state.formData.CLIENT_ID_item?.CLIENT_ID, state.formData.UNIT_ID_item?.UNIT_ID, devInfo);\r\n render();\r\n }\r\n\r\n async function onSelectClient(item) {\r\n try {\r\n state.formData.CLIENT_ID_item = item ? { NAME: item.name, CLIENT_ID: item.value } : null;\r\n render();\r\n await fetchUnits(item?.value);\r\n onSelectUnit(state.formData.UNIT_ID_item);\r\n fetchEnvironments(item?.value, state.formData.UNIT_ID_item?.UNIT_ID, devInfo);\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n\r\n async function afterCreateUnit({ item: response }) {\r\n try {\r\n const clientId = (state.formData?.CLIENT_ID_item?.CLIENT_ID) ?? null;\r\n await fetchUnits(clientId);\r\n state.formData.UNIT_ID_item = state.comboOpts.units.find((item) => item.UNIT_ID === response.UNIT_ID) ?? null;\r\n onSelectUnit(state.formData.UNIT_ID_item);\r\n fetchEnvironments(clientId, state.formData.UNIT_ID_item?.UNIT_ID, state.devInfo);\r\n toast.success(t('sucessoUnidadeAdicionada'));\r\n setState({ openModal: null });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n async function afterCreateGroup({ item: response }) {\r\n try {\r\n const { devInfo } = state;\r\n const isDac = !!(devInfo && devInfo.dac);\r\n const isDam = !!(devInfo && devInfo.dam);\r\n\r\n const clientId = (state.formData?.CLIENT_ID_item?.CLIENT_ID) ?? null;\r\n await fetchUnits(clientId);\r\n const groupItem = state.comboOpts.groups.find((item) => item.value === response.GROUP_ID) ?? null;\r\n if (isDac || state.devType.isDut) {\r\n state.formData.GROUP_ID_item = groupItem;\r\n }\r\n if (isDam) {\r\n if (groupItem) groupItem.checked = true;\r\n }\r\n if (groupItem) {\r\n state.formData.UNIT_ID_item = state.comboOpts.units.find((item) => item.UNIT_ID === groupItem.unit) || null;\r\n }\r\n onSelectUnit(state.formData.UNIT_ID_item);\r\n fetchEnvironments(clientId, state.formData.UNIT_ID_item?.UNIT_ID, devInfo);\r\n toast.success(t('sucessoAdicionarGrupo'));\r\n setState({ openModal: null });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n\r\n function onTconfigClick() {\r\n state.formData.configTsensors = !state.formData.configTsensors;\r\n if (state.formData.configTsensors) {\r\n if ((!state.formData.T0_POSITION) && (!state.formData.T1_POSITION) && (!state.formData.T2_POSITION)) {\r\n state.formData.T0_POSITION = state.comboOpts.tPositions[0];\r\n state.formData.T1_POSITION = state.comboOpts.tPositions[1];\r\n state.formData.T2_POSITION = state.comboOpts.tPositions[2];\r\n }\r\n }\r\n isFancoil();\r\n render();\r\n }\r\n\r\n function changeSelectedL1Sim() {\r\n setState({ selectedL1Sim: !state.selectedL1Sim });\r\n }\r\n\r\n async function getDriInfo(driId: string) {\r\n const response = await apiCall('/get-integration-info', { supplier: 'diel', integrId: driId });\r\n state.driInfo = response;\r\n const cardsCfg = (response.cardsCfg && jsonTryParse(response.cardsCfg)) || null;\r\n state.cards = (cardsCfg && cardsCfg.cards) || [];\r\n state.subcards = (cardsCfg && cardsCfg.subcards) || [];\r\n state.relevances = (cardsCfg && cardsCfg.relevances) || [];\r\n render();\r\n }\r\n\r\n function getMinimumInterval(ecoCfg: string) {\r\n return ['eco-C1-V', 'eco-C2-V'].includes(ecoCfg) ? 5 : 0;\r\n }\r\n\r\n let { devInfo } = state;\r\n function getDevType() {\r\n const isOnlyDutRef = !!(state.devType.isDut && state.devInfo?.dut_aut && checkIsDutRef(state.devInfo.dut_aut.groups));\r\n const isDutAut = !!(!isOnlyDutRef && state.devInfo?.dut_aut);\r\n return {\r\n isDac: !!(state.devInfo?.dac),\r\n isDam: !!(state.devInfo?.dam),\r\n isDut: !!(state.devInfo?.dut),\r\n isDutAut,\r\n isOnlyDutRef,\r\n isDri: !!(state.devInfo?.dri),\r\n isDal: !!(state.devInfo?.dal),\r\n isDmt: !!(state.devInfo?.dmt),\r\n dutAutEnabled: (isDutAut && state.formData.DUTAUTCFG_item && (state.formData.DUTAUTCFG_item.value === 'IR')),\r\n isDutQA: (state.devType.isDut && state.devInfo?.dut?.operation_mode === 5) || false,\r\n };\r\n }\r\n\r\n function setFormData(obj) {\r\n state.automationTabHasBeenSelected = queryPars.aba === 'automacao';\r\n if (obj.hasOwnProperty('RESENDPER')) {\r\n if (obj.RESENDPER && (obj.RESENDPER % 5 !== 0 || obj.RESENDPER < 5)) {\r\n setResendTimeError(t('insiraValorMultiplo5Minimo5'));\r\n } else {\r\n setResendTimeError('');\r\n }\r\n }\r\n // Regra temporária caso seja configurado DAM em tela que não tem o SETPOINT ainda (ex programação múltipla da unidade)\r\n else if (obj.hasOwnProperty('REL_DUT_ID_item') && state.devInfo && state.devInfo.DEV_ID.startsWith('DAM3') && state.devInfo.dam?.CAN_SELF_REFERENCE && obj.REL_DUT_ID_item.length > 0) {\r\n const needCalculateSetpoint = !obj.REL_DUT_ID_item.DEV_ID?.startsWith('DAM3') && state.formData.ECO_SETPOINT.length === 0 && obj.REL_DUT_ID_item.TUSEMIN;\r\n if (needCalculateSetpoint) {\r\n setSetpointByRoom(obj.REL_DUT_ID_item.TUSEMIN);\r\n }\r\n }\r\n else if (obj.hasOwnProperty('SENSOR_AUTOM')) {\r\n toast.warn(t('mudancaSensorDutDuo'));\r\n }\r\n Object.assign(state.formData, obj);\r\n\r\n devInfo = state.devInfo;\r\n setState({ devType: getDevType() });\r\n render();\r\n }\r\n\r\n function setSetpointByRoom(tusemin: number) {\r\n state.formData.ECO_SETPOINT = (state.devInfo!.dam!.ECO_OFST_START + tusemin).toString();\r\n }\r\n\r\n function editSchedule(cardPosition: number) {\r\n state.selectedSchedule = state.DUTS_SCHEDULES_FILTERED[cardPosition];\r\n state.selectedIndexSchedule = cardPosition;\r\n state.openModal = 'add-edit-schedule';\r\n\r\n render();\r\n }\r\n\r\n function saveSchedule(schedule: ScheduleDut, cardPosition: number|null) {\r\n if (cardPosition != null) {\r\n state.DUTS_SCHEDULES_FILTERED[cardPosition] = schedule;\r\n }\r\n else {\r\n state.DUTS_SCHEDULES_FILTERED.push(schedule);\r\n }\r\n render();\r\n }\r\n\r\n function deleteSchedule(scheduleId: number|null, cardPosition: number) {\r\n if (scheduleId != null) {\r\n state.DUTS_SCHEDULES_DELETED.push(scheduleId);\r\n state.DUTS_SCHEDULES_FILTERED = state.DUTS_SCHEDULES_FILTERED.filter((schedule) => schedule.DUT_SCHEDULE_ID == null || !state.DUTS_SCHEDULES_DELETED.includes(schedule.DUT_SCHEDULE_ID));\r\n }\r\n else {\r\n state.DUTS_SCHEDULES_FILTERED = state.DUTS_SCHEDULES_FILTERED.filter((_schedule, index) => index !== cardPosition);\r\n }\r\n\r\n render();\r\n }\r\n\r\n function editException(cardPosition: number) {\r\n state.selectedException = state.DUTS_EXCEPTIONS_FILTERED[cardPosition];\r\n state.selectedIndexException = cardPosition;\r\n state.openModal = 'add-edit-exception';\r\n\r\n render();\r\n }\r\n\r\n function saveException(exception: ExceptionDut, cardPosition: number|null) {\r\n if (cardPosition != null) {\r\n state.DUTS_EXCEPTIONS_FILTERED[cardPosition] = exception;\r\n }\r\n else {\r\n state.DUTS_EXCEPTIONS_FILTERED.push(exception);\r\n }\r\n render();\r\n }\r\n\r\n function deleteException(exceptionId: number|null, cardPosition: number) {\r\n if (exceptionId != null) {\r\n state.DUTS_EXCEPTIONS_DELETED.push(exceptionId);\r\n state.DUTS_EXCEPTIONS_FILTERED = state.DUTS_EXCEPTIONS_FILTERED.filter((exception) => exception.DUT_EXCEPTION_ID == null || !state.DUTS_EXCEPTIONS_DELETED.includes(exception.DUT_EXCEPTION_ID));\r\n }\r\n else {\r\n state.DUTS_EXCEPTIONS_FILTERED = state.DUTS_EXCEPTIONS_FILTERED.filter((_schedule, index) => index !== cardPosition);\r\n }\r\n\r\n render();\r\n }\r\n\r\n async function checkCardsNoConflicts() {\r\n let index = 0;\r\n for (const schedule of state.DUTS_SCHEDULES_FILTERED) {\r\n for (let i = index + 1; i < state.DUTS_SCHEDULES_FILTERED.length; i++) {\r\n const scheduleCompare = state.DUTS_SCHEDULES_FILTERED[i];\r\n const bothSchedulesActives = schedule.SCHEDULE_STATUS && scheduleCompare.SCHEDULE_STATUS;\r\n if (checkWeekDayCommun(schedule, scheduleCompare) && bothSchedulesActives) {\r\n let conflict = schedule.BEGIN_TIME >= scheduleCompare.BEGIN_TIME && schedule.BEGIN_TIME < state.DUTS_SCHEDULES_FILTERED[i].END_TIME;\r\n conflict = conflict || (schedule.END_TIME >= scheduleCompare.BEGIN_TIME && schedule.END_TIME < scheduleCompare.END_TIME);\r\n conflict = conflict || (scheduleCompare.BEGIN_TIME >= schedule.BEGIN_TIME && scheduleCompare.BEGIN_TIME < schedule.END_TIME);\r\n conflict = conflict || (scheduleCompare.END_TIME >= schedule.BEGIN_TIME && scheduleCompare.END_TIME < schedule.END_TIME);\r\n if (conflict) {\r\n const msgError = t('erroSalvarProgramacoesHorarias', {\r\n value1: schedule.SCHEDULE_TITLE,\r\n value2: scheduleCompare.SCHEDULE_TITLE,\r\n });\r\n toast.error(msgError);\r\n return false;\r\n }\r\n }\r\n }\r\n index++;\r\n }\r\n return true;\r\n }\r\n\r\n async function checkNeedMultipleSchedule() {\r\n let index = 0;\r\n checkExceptionsHasSameProperties();\r\n if (state.formData.DUTAUTCFG_item?.value !== 'IR') {\r\n state.NEED_MULT_SCHEDULES = false;\r\n return;\r\n }\r\n\r\n for (const schedule of state.DUTS_SCHEDULES_FILTERED) {\r\n if (schedule.SCHEDULE_STATUS) {\r\n compareWithAllOthersSchedules(index, schedule);\r\n if (state.NEED_MULT_SCHEDULES) {\r\n return;\r\n }\r\n\r\n if (schedule.SCHEDULE_STATUS && !state.CHANGE_EXCEPTION_PARAMETERS && checkScheduleAndExceptions(schedule)) {\r\n state.NEED_MULT_SCHEDULES = true;\r\n return;\r\n }\r\n }\r\n index++;\r\n }\r\n state.NEED_MULT_SCHEDULES = false;\r\n }\r\n\r\n function compareWithAllOthersSchedules(index: number, schedule: ScheduleDut) {\r\n for (let i = index + 1; i < state.DUTS_SCHEDULES_FILTERED.length; i++) {\r\n const scheduleCompare = state.DUTS_SCHEDULES_FILTERED[i];\r\n if (!scheduleCompare.SCHEDULE_STATUS) continue;\r\n const bothSchedulesAllow = schedule.PERMISSION === 'allow' && scheduleCompare.PERMISSION === 'allow';\r\n if (checkWeekDayCommun(schedule, scheduleCompare)) {\r\n state.NEED_MULT_SCHEDULES = true;\r\n return;\r\n }\r\n if (!checkWeekDayCommun(schedule, scheduleCompare) && bothSchedulesAllow && checkSchedulesConfigurationDifferent(schedule, scheduleCompare)) {\r\n state.NEED_MULT_SCHEDULES = true;\r\n return;\r\n }\r\n }\r\n }\r\n\r\n function checkExceptionsHasSameProperties() {\r\n // Encontra uma exceção que não seja desligar\r\n const exceptionToCompare = state.DUTS_EXCEPTIONS_FILTERED.find((exception) => exception.PERMISSION === 'allow');\r\n if (exceptionToCompare) {\r\n for (const exception of state.DUTS_EXCEPTIONS_FILTERED) {\r\n if (exception.PERMISSION === 'allow') {\r\n if (checkSchedulesConfigurationDifferent(exceptionToCompare, exception)) {\r\n return false;\r\n }\r\n }\r\n }\r\n state.CHANGE_EXCEPTION_PARAMETERS = true;\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function checkScheduleAndExceptions(schedule: ScheduleDut) {\r\n for (const exception of state.DUTS_EXCEPTIONS_FILTERED) {\r\n const bothSchedulesAllow = schedule.PERMISSION === 'allow' && exception.PERMISSION === 'allow';\r\n const exceptionAsScheduleConfig = {\r\n SCHEDULE_TITLE: exception.EXCEPTION_TITLE,\r\n SCHEDULE_STATUS: true,\r\n BEGIN_TIME: exception.BEGIN_TIME,\r\n END_TIME: exception.END_TIME,\r\n CTRLOPER: exception.CTRLOPER,\r\n PERMISSION: exception.PERMISSION,\r\n DAYS: {\r\n mon: true,\r\n tue: true,\r\n wed: true,\r\n thu: true,\r\n fri: true,\r\n sat: true,\r\n sun: true,\r\n },\r\n SETPOINT: exception.SETPOINT,\r\n LTC: exception.LTC,\r\n LTI: exception.LTI,\r\n UPPER_HYSTERESIS: exception.UPPER_HYSTERESIS,\r\n LOWER_HYSTERESIS: exception.LOWER_HYSTERESIS,\r\n SCHEDULE_START_BEHAVIOR: exception.SCHEDULE_START_BEHAVIOR,\r\n SCHEDULE_END_BEHAVIOR: exception.SCHEDULE_END_BEHAVIOR,\r\n FORCED_BEHAVIOR: exception.FORCED_BEHAVIOR,\r\n } as ScheduleDut;\r\n if (bothSchedulesAllow && checkSchedulesConfigurationDifferent(schedule, exceptionAsScheduleConfig)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n function checkWeekDayCommun(schedule1: ScheduleDut, schedule2: ScheduleDut) {\r\n let result = schedule1.DAYS.mon && schedule2.DAYS.mon;\r\n result = result || (schedule1.DAYS.tue && schedule2.DAYS.tue);\r\n result = result || (schedule1.DAYS.wed && schedule2.DAYS.wed);\r\n result = result || (schedule1.DAYS.thu && schedule2.DAYS.thu);\r\n result = result || (schedule1.DAYS.fri && schedule2.DAYS.fri);\r\n result = result || (schedule1.DAYS.sat && schedule2.DAYS.sat);\r\n result = result || (schedule1.DAYS.sun && schedule2.DAYS.sun);\r\n\r\n return result;\r\n }\r\n\r\n function getModificationsSobDemanda(schedule1: ScheduleDut|ExceptionDut, schedule2: ScheduleDut|ExceptionDut) {\r\n const hasActionMode = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && ['2_SOB_DEMANDA'].includes(schedule1.CTRLOPER) : false;\r\n const hasActionTime = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && ['2_SOB_DEMANDA'].includes(schedule1.CTRLOPER) : false;\r\n const hasActionPostBehavior = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && ['2_SOB_DEMANDA'].includes(schedule1.CTRLOPER) : false;\r\n return {\r\n hasActionMode,\r\n hasActionTime,\r\n hasActionPostBehavior,\r\n };\r\n }\r\n\r\n function getModifications(schedule1: ScheduleDut|ExceptionDut, schedule2: ScheduleDut|ExceptionDut) {\r\n const hasSetPoint = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && (['1_CONTROL', '2_SOB_DEMANDA', '3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2', '8_ECO_2'].includes(schedule1.CTRLOPER) || schedule1.CTRLOPER === '7_FORCED' && schedule1.FORCED_BEHAVIOR === 'dut-forced-cool') : false;\r\n const hasLtc = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && ['3_BACKUP', '5_BACKUP_CONTROL', '6_BACKUP_CONTROL_V2', '8_ECO_2'].includes(schedule1.CTRLOPER) : false;\r\n const hasLti = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && ['6_BACKUP_CONTROL_V2', '8_ECO_2'].includes(schedule1.CTRLOPER) : false;\r\n const hasForcedOptions = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && ['7_FORCED'].includes(schedule1.CTRLOPER) : false;\r\n const hasEco2Options = schedule1.CTRLOPER ? schedule1.PERMISSION === 'allow' && ['8_ECO_2'].includes(schedule1.CTRLOPER) : false;\r\n return {\r\n hasSetPoint,\r\n hasLtc,\r\n hasLti,\r\n hasForcedOptions,\r\n hasEco2Options,\r\n };\r\n }\r\n\r\n function configResultSobDemanda(resultInitial: boolean, schedule1: ScheduleDut|ExceptionDut, schedule2: ScheduleDut|ExceptionDut, hasActionMode: boolean, hasActionTime: boolean, hasActionPostBehavior: boolean, hasForcedOptions: boolean) {\r\n let result = resultInitial;\r\n result = result || (hasForcedOptions && schedule1.FORCED_BEHAVIOR !== schedule2.FORCED_BEHAVIOR);\r\n result = result || (hasActionMode && schedule1.ACTION_MODE !== schedule2.ACTION_MODE);\r\n result = result || (hasActionTime && schedule1.ACTION_TIME !== schedule2.ACTION_TIME);\r\n result = result || (hasActionPostBehavior && schedule1.ACTION_POST_BEHAVIOR !== schedule2.ACTION_POST_BEHAVIOR);\r\n return result;\r\n }\r\n\r\n function checkSchedulesConfigurationDifferent(schedule1: ScheduleDut|ExceptionDut, schedule2: ScheduleDut|ExceptionDut) {\r\n const {\r\n hasSetPoint,\r\n hasLtc,\r\n hasLti,\r\n hasEco2Options,\r\n hasForcedOptions,\r\n } = getModifications(schedule1, schedule2);\r\n const {\r\n hasActionMode,\r\n hasActionPostBehavior,\r\n hasActionTime,\r\n } = getModificationsSobDemanda(schedule1, schedule2);\r\n\r\n let result = schedule1.CTRLOPER !== schedule2.CTRLOPER;\r\n\r\n result = result || (hasSetPoint && schedule1.SETPOINT !== schedule2.SETPOINT);\r\n result = result || (hasLtc && schedule1.LTC !== schedule2.LTC);\r\n result = result || (hasLti && schedule1.LTI !== schedule2.LTI);\r\n result = result || (hasEco2Options && schedule1.UPPER_HYSTERESIS !== schedule2.UPPER_HYSTERESIS);\r\n result = result || (hasEco2Options && schedule1.LOWER_HYSTERESIS !== schedule2.LOWER_HYSTERESIS);\r\n result = result || (hasEco2Options && schedule1.SCHEDULE_START_BEHAVIOR !== schedule2.SCHEDULE_START_BEHAVIOR);\r\n result = result || (hasEco2Options && schedule1.SCHEDULE_END_BEHAVIOR !== schedule2.SCHEDULE_END_BEHAVIOR);\r\n result = configResultSobDemanda(result, schedule1, schedule2, hasActionMode, hasActionTime, hasActionPostBehavior, hasForcedOptions);\r\n\r\n return result;\r\n }\r\n\r\n let permissionProfile = (state.devInfo && state.devInfo.CLIENT_ID\r\n ? profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === state.devInfo?.CLIENT_ID)\r\n : false) || profile.manageAllClients;\r\n\r\n if (permissionProfile === false || permissionProfile === undefined) {\r\n permissionProfile = !!profile.adminClientProg?.UNIT_MANAGE.some((item) => item === state.devInfo?.UNIT_ID);\r\n }\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n state.assetLayout = linkBase.includes('/ativo');\r\n const allTabs = [\r\n {\r\n title: t('equipamento'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'equipamento' })}`,\r\n isActive: (queryPars.aba === 'equipamento') || (!queryPars.aba),\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('automacao'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'automacao' })}`,\r\n isActive: (queryPars.aba === 'automacao'),\r\n visible: (permissionProfile && (state.devType.isDam || state.devType.isDutAut)),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: 'DRI',\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'dri' })}`,\r\n isActive: (queryPars.aba === 'dri'),\r\n visible: (profile.manageAllClients && state.devType.isDri),\r\n ref: useRef(null),\r\n },\r\n ];\r\n const tabs = allTabs;\r\n\r\n function increaseDecreaseIntervalTime(value: string) {\r\n setFormData({ ECO_INTERVAL_TIME: value });\r\n }\r\n\r\n function increaseDecreaseSetpoint(value: string) {\r\n setFormData({ ECO_SETPOINT: value });\r\n }\r\n\r\n function increaseDecreaseUpperHysterese(value: string) {\r\n setFormData({ ECO_UPPER_HYSTERESIS: value });\r\n }\r\n\r\n function increaseDecreaseLowerHysterese(value: string) {\r\n setFormData({ ECO_LOWER_HYSTERESIS: value });\r\n }\r\n\r\n function increaseDecreaseMinimumTemperature(value: string) {\r\n setFormData({ MINIMUM_TEMPERATURE: value });\r\n }\r\n\r\n function increaseDecreaseMaximumTemperature(value: string) {\r\n setFormData({ MAXIMUM_TEMPERATURE: value });\r\n }\r\n\r\n function renderModal(devInfo) {\r\n return (state.openModal != null) && (\r\n setState({ openModal: null })}\r\n id=\"schedule-modal\"\r\n >\r\n {state.openModal === 'add-unit'\r\n && (\r\n setState({ openModal: null })}\r\n onSuccess={afterCreateUnit}\r\n />\r\n )}\r\n {state.openModal === 'add-group'\r\n && (\r\n setState({ openModal: null })}\r\n onSuccess={afterCreateGroup}\r\n />\r\n )}\r\n {state.openModal === 'add-edit-schedule'\r\n && (\r\n { setState({ openModal: null }); }}\r\n />\r\n )}\r\n {state.openModal === 'add-edit-exception'\r\n && (\r\n { setState({ openModal: null }); }}\r\n />\r\n )}\r\n \r\n );\r\n }\r\n\r\n if (state.devType.isDal || state.devType.isDmt) {\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.devId, t('editar'))}\r\n \r\n \r\n {state.isLoading && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n {(!state.isLoading) && devInfo && (\r\n \r\n <>\r\n {state.devType.isDal && }\r\n {state.devType.isDmt && }\r\n \r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n const dutDuoFancoil = () => {\r\n if (devInfo?.dut?.APPLICATION === 'fancoil') {\r\n state.comboOpts.sensorAutom = [t('temperaturaSaidaAgua'), t('temperaturaEntradaAgua')];\r\n }\r\n };\r\n\r\n function renderDutDuoEquipFields() {\r\n dutDuoFancoil();\r\n const t1_index = state.formData.SENSOR_AUTOM === 0 ? 1 : 0;\r\n const t1 = state.formData.SENSOR_AUTOM != null ? state.comboOpts.sensorAutom[t1_index] : null;\r\n return (state.formData.PLACEMENT_item?.value === 'DUO' && (\r\n \r\n setFormData({ SENSOR_AUTOM: item === t('retorno') ? 0 : 1 })}\r\n notNull\r\n />\r\n setFormData({ SENSOR_AUTOM: item === t('retorno') ? 1 : 0 })}\r\n notNull\r\n />\r\n \r\n ));\r\n }\r\n\r\n function renderDutEquipFields() {\r\n return (\r\n <>\r\n {(state.devType.isDut && state.devInfo?.dut?.APPLICATION !== 'fancoil') && (\r\n <>\r\n
\r\n env.ENVIRONMENT_NAME !== null)}\r\n value={state.formData.ENVIRONMENT_ID_item}\r\n propLabel=\"ENVIRONMENT_LABEL\"\r\n placeholder={t('ambiente')}\r\n onSelect={(item) => { setFormData({ ENVIRONMENT_ID_item: item }); setFormData({ ROOM_NAME: item.ENVIRONMENT_NAME }); }}\r\n disabled={!state.formData.UNIT_ID_item}\r\n />\r\n
\r\n
\r\n setFormData({ ROOM_NAME: event.target.value })}\r\n disabled={!profile.manageAllClients}\r\n />\r\n
\r\n \r\n )}\r\n\r\n {(state.devType.isDut) && (\r\n <>\r\n setFormData({ PLACEMENT_item: item, SENSOR_AUTOM: item.value === 'DUO' ? 0 : null })}\r\n notNull\r\n />\r\n {renderDutDuoEquipFields()}\r\n \r\n )}\r\n\r\n {(state.devType.isDut) && (\r\n <>\r\n
\r\n {\r\n state.offsetChecked = !state.offsetChecked;\r\n if (state.offsetChecked) {\r\n alert(t('cadastroOffsetAlerta'));\r\n }\r\n state.formData.TEMPERATURE_OFFSET = state.formData.TEMPERATURE_OFFSET ? state.formData.TEMPERATURE_OFFSET : '0';\r\n render();\r\n }}\r\n style={{\r\n display: 'flex',\r\n marginTop: '5px',\r\n }}\r\n >\r\n \r\n {state.offsetChecked ? : null}\r\n \r\n \r\n {t('offsetTemperatura')}\r\n \r\n \r\n
\r\n {state.offsetChecked && (\r\n <>\r\n
\r\n (e.target as HTMLInputElement).blur()}\r\n onChange={(event) => setFormData({ TEMPERATURE_OFFSET: event.target.value })}\r\n />\r\n
\r\n
\r\n {t('detalhesOffset', {\r\n value1: (state.formData.TEMPERATURE_OFFSET ?? '0'),\r\n value2: (state.formData.TEMPERATURE_OFFSET ? (23.0 + (parseDecimalNumber(state.formData.TEMPERATURE_OFFSET) ?? 0)).toString() : '23'),\r\n })}\r\n
\r\n \r\n )}\r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n function renderAssetsFields() {\r\n return (\r\n <>\r\n
\r\n \r\n
\r\n \r\n ({\r\n value: item.value,\r\n name: item.label,\r\n unit: item.unit,\r\n }))}\r\n value={state.formData.GROUP_ID_item?.value.toString()}\r\n placeholder={t('conjunto')}\r\n search\r\n filterOptions={fuzzySearch}\r\n onChange={(value, name) => {\r\n setFormData({ GROUP_ID_item: name });\r\n changePropertiesByMachine();\r\n }}\r\n disabled={!state.formData.UNIT_ID_item}\r\n />\r\n
\r\n \r\n
\r\n
\r\n {state.formData.GROUP_ID_item?.value && (\r\n
\r\n {\r\n setFormData({ GROUP_ID_item: null });\r\n setFormData({ ASSET_ID_item: null });\r\n }}\r\n value={state.formData.GROUP_ID_item.name ?? state.formData.GROUP_ID_item.label}\r\n />\r\n
\r\n )}\r\n
\r\n asset.GROUP_ID === state.formData.GROUP_ID_item?.value)}\r\n value={state.formData.ASSET_ID_item?.label}\r\n placeholder={t('ativo')}\r\n onSelect={(item) => {\r\n setFormData({ ASSET_ID_item: item || null });\r\n changePropertiesByAsset();\r\n render();\r\n }}\r\n disabled={!state.formData.GROUP_ID_item}\r\n />\r\n \r\n );\r\n }\r\n\r\n function renderEquipmentTypeDac() {\r\n return (\r\n setFormData({ DAC_TYPE_item: item })}\r\n />\r\n );\r\n }\r\n\r\n function renderModelMachineDac() {\r\n return (\r\n \r\n ) => setFormData({ DAC_MODEL: event.target.value })}\r\n />\r\n \r\n );\r\n }\r\n\r\n function renderDacEquipFields() {\r\n return (\r\n <>\r\n {(state.devType.isDac)\r\n && (\r\n <>\r\n \r\n setFormData({ FLUID_TYPE_item: item })}\r\n />\r\n
\r\n
\r\n P0: [\r\n {state.telemetry.P0raw}\r\n ]\r\n
\r\n {\r\n state.formData.DAC_APPL_item?.value?.hasCurr && (\r\n { setFormData({ MEASUREMENT_SELECTED_P0: item }); if (item.value === 'current') { setFormData({ P0_POSITION: null }); } }}\r\n removeMarginSelected\r\n removeExtraWidth\r\n />\r\n )\r\n }\r\n {\r\n (!state.formData.DAC_APPL_item?.value?.DAC_APPL || (state.formData.MEASUREMENT_SELECTED_P0 && state.formData.MEASUREMENT_SELECTED_P0.value !== 'current') || (state.formData.DAC_APPL_item?.value?.hasCurr === false)) && (\r\n setFormData({ P0_POSITION: item })}\r\n removeMarginSelected\r\n removeExtraWidth\r\n disabled={!state.formData.DAC_APPL_item?.value?.DAC_APPL}\r\n />\r\n )\r\n }\r\n setFormData({ P0_SENSOR: item })}\r\n removeMarginSelected\r\n removeExtraWidth\r\n disabled={!state.formData.DAC_APPL_item?.value?.DAC_APPL}\r\n />\r\n
\r\n
\r\n
\r\n P1: [\r\n {state.telemetry.P1raw}\r\n ]\r\n
\r\n {\r\n state.formData.DAC_APPL_item?.value?.hasCurr && (\r\n { setFormData({ MEASUREMENT_SELECTED_P1: item }); if (item.value === 'current') { setFormData({ P1_POSITION: null }); } }}\r\n removeMarginSelected\r\n removeExtraWidth\r\n />\r\n )\r\n }\r\n {\r\n (!state.formData.DAC_APPL_item?.value?.DAC_APPL || (state.formData.MEASUREMENT_SELECTED_P1 && state.formData.MEASUREMENT_SELECTED_P1.value !== 'current') || (state.formData.DAC_APPL_item?.value?.hasCurr === false)) && (\r\n setFormData({ P1_POSITION: item })}\r\n removeMarginSelected\r\n removeExtraWidth\r\n disabled={!state.formData.DAC_APPL_item?.value?.DAC_APPL}\r\n />\r\n )\r\n }\r\n setFormData({ P1_SENSOR: item })}\r\n removeMarginSelected\r\n removeExtraWidth\r\n disabled={!state.formData.DAC_APPL_item?.value?.DAC_APPL}\r\n />\r\n
\r\n
\r\n onTconfigClick()}\r\n />\r\n {(state.formData.configTsensors) && (\r\n
\r\n setFormData({ T0_POSITION: item })}\r\n removeMarginSelected\r\n />\r\n setFormData({ T1_POSITION: item })}\r\n removeMarginSelected\r\n />\r\n setFormData({ T2_POSITION: item })}\r\n removeMarginSelected\r\n />\r\n
\r\n )}\r\n
\r\n {renderEquipmentTypeDac()}\r\n {renderHeatExchangerFields()}\r\n {\r\n !profile.permissions.isInstaller && (\r\n <>\r\n\r\n \r\n ) => setFormData({ DAC_COP: event.target.value })}\r\n />\r\n \r\n setFormData({ DAC_ENV_item: item })}\r\n />\r\n\r\n setFormData({ DAC_BRAND_item: item })}\r\n />\r\n {renderModelMachineDac()}\r\n setFormData({ DAC_MODIF_item: item })}\r\n />\r\n setFormData({ DAC_COMIS_item: item })}\r\n notNull\r\n />\r\n \r\n ) => setFormData({ DAC_DESC: event.target.value })}\r\n />\r\n \r\n \r\n ) => setFormData({ DAC_NAME: event.target.value })}\r\n />\r\n \r\n \r\n )\r\n }\r\n {/* FEATURE DISPONIVEL APENAS PARA OS CLIENTES: BANCO DO BRASIL e DIEL ENERGIA */}\r\n {(state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && (state.persistedAssetDevice?.ASSET_ROLE === 1 || state.persistedAssetDevice?.ASSET_ROLE === 2) && (\r\n <>\r\n \r\n
\r\n \r\n ({ name: item.label, value: item.value }))}\r\n value={state.formData.EVAPORATOR_MODEL_item?.value}\r\n printOptions=\"on-focus\"\r\n search\r\n filterOptions={fuzzySearch}\r\n placeholder={t('selecioneOModeloDaEvaporadora')}\r\n onChange={(id) => { setFormData({ EVAPORATOR_MODEL_item: state.comboOpts.evaporatorModels.find((item) => String(item.value) === String(id)) }); }}\r\n closeOnSelect={false}\r\n />\r\n
\r\n
\r\n setFormData({ EVAPORATOR_MODEL_item: null })} style={{ marginBottom: '10px' }}>{t('limparCampo')}\r\n \r\n ) => setFormData({ INSUFFLATION_SPEED: event.target.value })}\r\n />\r\n \r\n \r\n )}\r\n {((state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && (state.persistedAssetDevice?.ASSET_ROLE === 1 || state.persistedAssetDevice?.ASSET_ROLE === 2)) && (\r\n <>\r\n \r\n ) => setFormData({ COMPRESSOR_NOMINAL_CURRENT: event.target.value })}\r\n />\r\n \r\n setFormData({ EQUIPMENT_POWER_item: item })}\r\n notNull\r\n />\r\n \r\n )}\r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n function renderDamDuoEquipFields() {\r\n return (state.formData.DAM_PLACEMENT_item?.value === 'DUO' && (\r\n \r\n {\r\n const other = item.value === 'RETURN' ? state.comboOpts.sensorDamDuo[1] : state.comboOpts.sensorDamDuo[0];\r\n setFormData({ T0_POSITION_DAM: item, T1_POSITION_DAM: other });\r\n }}\r\n />\r\n {\r\n const other = item.value === 'RETURN' ? state.comboOpts.sensorDamDuo[1] : state.comboOpts.sensorDamDuo[0];\r\n setFormData({ T1_POSITION_DAM: item, T0_POSITION_DAM: other });\r\n }}\r\n />\r\n \r\n ));\r\n }\r\n\r\n function renderEquipmentInfo() {\r\n return (\r\n
\r\n \r\n \r\n \r\n DEV ID: \r\n {state.devId}\r\n \r\n \r\n\r\n \r\n \r\n {`${t('inicioMonitoramento')}: `}\r\n {state.formData.DAT_BEGMON || t('semInformacoes')}\r\n \r\n \r\n\r\n {(state.devType.isDac) && (\r\n
\r\n {t('l1Real')}\r\n \r\n {t('l1Simulado')}\r\n
\r\n )}\r\n\r\n {state.isLoadingUnitInfo && (\r\n \r\n \r\n \r\n )}\r\n\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n ({ value: item.CLIENT_ID, name: item.NAME }))}\r\n value={state.formData.CLIENT_ID_item?.CLIENT_ID.toString()}\r\n propLabel=\"NAME\"\r\n placeholder={t('cliente')}\r\n search\r\n filterOptions={fuzzySearch}\r\n onChange={(value, name) => { onSelectClient(name); }}\r\n />\r\n
\r\n \r\n {state.formData.CLIENT_ID_item?.CLIENT_ID && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n
\r\n \r\n ({ value: item.UNIT_ID, name: item.UNIT_NAME }))}\r\n value={state.formData.UNIT_ID_item?.UNIT_ID.toString()}\r\n propLabel=\"NAME\"\r\n placeholder={t('unidade')}\r\n search\r\n filterOptions={fuzzySearch}\r\n notNull={false}\r\n onChange={(value, name) => { onSelectUnit(name); }}\r\n disabled={!state.formData.CLIENT_ID_item}\r\n />\r\n
\r\n \r\n {state.formData.UNIT_ID_item?.UNIT_ID && (\r\n
\r\n \r\n
\r\n )}\r\n {(state.devId.startsWith('DAM')) && (\r\n <>\r\n setFormData({ DAM_INSTALLATION_LOCATION_item: item })}\r\n />\r\n {/* FEATURE DISPONIVEL APENAS PARA OS CLIENTES: BANCO DO BRASIL e DIEL ENERGIA */}\r\n {(state.devInfo?.CLIENT_ID === 145 || state.devInfo?.CLIENT_ID === 1) && state.formData.DAM_INSTALLATION_LOCATION_item?.value === 'casa-de-maquina' && (\r\n <>\r\n setFormData({ DAM_PLACEMENT_item: item, ...(item.value === 'RETURN' && { T0_POSITION_DAM: null, T1_POSITION_DAM: null }) })}\r\n />\r\n {renderDamDuoEquipFields()}\r\n \r\n )}\r\n \r\n )}\r\n {(state.devType.isDut)\r\n && (\r\n renderAssetsFields()\r\n )}\r\n {renderDutEquipFields()}\r\n\r\n {((!state.devType.isDac) && state.filtComboOpts.groups.length > 0) && (\r\n <>\r\n
\r\n {`${t('maquinas')}:`}\r\n
\r\n
\r\n
\r\n {state.filtComboOpts.groups.map((group) => (\r\n \r\n ))}\r\n
\r\n
\r\n
\r\n \r\n )}\r\n {(state.devType.isDac)\r\n && (\r\n renderAssetsFields()\r\n )}\r\n {renderDacEquipFields()}\r\n \r\n \r\n \r\n \r\n
\r\n );\r\n }\r\n\r\n function renderDutAutSchedTabs() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n { state.showExceptions && setState({ showExceptions: !state.showExceptions, showList: false }); }}\r\n >\r\n {t('programacoes')}\r\n \r\n \r\n { (!state.showExceptions) && setState({ showExceptions: !state.showExceptions }); }}\r\n >\r\n {t('excecoes')}\r\n \r\n \r\n
\r\n \r\n );\r\n }\r\n\r\n function renderDutAutSchedCards() {\r\n return (\r\n <>\r\n {!state.showExceptions && (\r\n \r\n {state.DUTS_SCHEDULES_FILTERED.map((schedule, index) => (index % 2 === 0\r\n ? (\r\n \r\n {state.isSaving && (\r\n \r\n \r\n \r\n )}\r\n \r\n {index + 1 < state.DUTS_SCHEDULES_FILTERED.length ? (\r\n \r\n ) : (\r\n <>\r\n \r\n )}\r\n \r\n )\r\n : (\r\n <>\r\n )))}\r\n \r\n )}\r\n {state.showExceptions && state.DUTS_EXCEPTIONS_FILTERED.length > 0 && (\r\n <>\r\n \r\n \r\n {t('titulo')}\r\n
\r\n \r\n {t('data')}\r\n
\r\n \r\n {t('repetirTodoAno')}\r\n
\r\n \r\n {t('inicio')}\r\n
\r\n \r\n {t('fim')}\r\n
\r\n \r\n {state.DUTS_EXCEPTIONS_FILTERED.map((exception, index) => (\r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n function renderDutAutSchedule(devInfo) {\r\n return (devInfo.dut_aut) && state.devType.dutAutEnabled && (\r\n <>\r\n {renderDutAutSchedTabs()}\r\n \r\n \r\n \r\n {`Total: ${!state.showExceptions ? state.DUTS_SCHEDULES_FILTERED.length : state.DUTS_EXCEPTIONS_FILTERED.length}`}\r\n
\r\n \r\n {\r\n if (state.showExceptions && state.DUTS_EXCEPTIONS_FILTERED.length === 30) {\r\n toast.error('Limite de 30 exceções alcançado!');\r\n }\r\n else {\r\n setState({\r\n selectedSchedule: null,\r\n selectedIndexSchedule: null,\r\n selectedException: null,\r\n selectedIndexException: null,\r\n openModal: !state.showExceptions ? 'add-edit-schedule' : 'add-edit-exception',\r\n });\r\n }\r\n }}\r\n variant=\"primary\"\r\n >\r\n {`${!state.showExceptions ? t('adicionarProgramacao') : t('adicionarExcecao')}`}\r\n \r\n
\r\n
\r\n {renderDutAutSchedCards()}\r\n
\r\n \r\n );\r\n }\r\n\r\n function renderHeatExchangerFields() {\r\n return (state.formData.DAC_APPL_item?.label === t('14trocadorCalor') && state.formData.DAC_TYPE_item?.label === t('trocadorCalor')) ? (\r\n
\r\n setFormData({ DAC_HEAT_EXCHANGER_item: item })}\r\n />\r\n {(state.formData?.DAC_HEAT_EXCHANGER_item?.BRAND && state.formData?.DAC_HEAT_EXCHANGER_item?.MODEL)\r\n ? (\r\n
\r\n {t('informacoesTipoTrocadorCalor')}\r\n {`\r\n ${state.formData.DAC_HEAT_EXCHANGER_item?.BRAND ? t('marcaTrocadorCalor', { value1: state.formData.DAC_HEAT_EXCHANGER_item?.BRAND }) : ''}\r\n ${state.formData.DAC_HEAT_EXCHANGER_item?.BRAND && state.formData.DAC_HEAT_EXCHANGER_item?.MODEL ? ' | ' : ''}\r\n ${state.formData.DAC_HEAT_EXCHANGER_item?.MODEL ? t('modeloTrocadorCalor', { value1: state.formData.DAC_HEAT_EXCHANGER_item?.MODEL }) : ''}\r\n `}\r\n
\r\n )\r\n\r\n : null}\r\n
\r\n\r\n ) : null;\r\n }\r\n\r\n function renderDriConfig() {\r\n return (!state.isLoading) && devInfo && state.devType.isDri && state.driInfo?.dri?.varsList && (\r\n \r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n function renderDamEcoFields() {\r\n return state.formData.ECO_CFG_item && (ecoModeDetails[state.formData.ECO_CFG_item.value] || state.devInfo?.dam?.CAN_SELF_REFERENCE) && (\r\n
\r\n {!state.devInfo?.dam?.CAN_SELF_REFERENCE\r\n ? (\r\n {\r\n if (\r\n (parseInt(e.target.value, 10) >= 1 && parseInt(e.target.value, 10) <= 15)\r\n || (e.target.value === '')\r\n ) {\r\n setFormData({ ECO_INTERVAL_TIME: e.target.value });\r\n }\r\n }}\r\n />\r\n )\r\n : (\r\n {\r\n if (\r\n (parseInt(e.target.value, 10) >= 1 && parseInt(e.target.value, 10) <= 15)\r\n || (e.target.value === '')\r\n ) {\r\n setFormData({ ECO_INTERVAL_TIME: e.target.value });\r\n }\r\n }}\r\n />\r\n )}\r\n

{t('limitesMin', { inicio: 1, final: 15 })}

\r\n \r\n {ecoModeDetails[state.formData.ECO_CFG_item.value]}\r\n
\r\n
\r\n );\r\n }\r\n\r\n function renderEco1Fields() {\r\n return (\r\n <>\r\n {renderDamEcoFields()}\r\n {!state.devInfo?.dam?.CAN_SELF_REFERENCE && (\r\n <>\r\n
\r\n setFormData({ ECO_OFST_START: e.target.value })}\r\n />\r\n
\r\n
\r\n {t('seTemperaturaMinimaAmbiente20graus', {\r\n value1: state.formData.ECO_OFST_START,\r\n value2: (20 + parseFloat(state.formData.ECO_OFST_START)),\r\n })}\r\n
\r\n
\r\n setFormData({ ECO_OFST_END: e.target.value })}\r\n />\r\n
\r\n
\r\n {t('seTemperaturaAtivacaoModoEcoCamaraFria7graus', {\r\n value1: (state.formData.ECO_OFST_END || 1),\r\n value2: (7 + (parseFloat(state.formData.ECO_OFST_END) || 1)),\r\n })}\r\n
\r\n \r\n )}\r\n {state.devInfo?.dam?.CAN_SELF_REFERENCE && (\r\n <>\r\n
\r\n setFormData({ ECO_SETPOINT: e.target.value })}\r\n />\r\n
\r\n
\r\n setFormData({ ECO_UPPER_HYSTERESIS: e.target.value })}\r\n />\r\n
\r\n
\r\n {t('refrigerarAcionandoQuando', {\r\n value1: ((Number(state.formData.ECO_SETPOINT) || 0) + (Number(state.formData.ECO_UPPER_HYSTERESIS) || 0)),\r\n value2: (state.formData.ECO_SETPOINT || '0'),\r\n value3: (state.formData.ECO_UPPER_HYSTERESIS || '0'),\r\n })}\r\n
\r\n
\r\n setFormData({ ECO_LOWER_HYSTERESIS: e.target.value })}\r\n />\r\n
\r\n
\r\n {t('modoEcoAcionandoQuando', {\r\n value1: ((Number(state.formData.ECO_SETPOINT) || 0) - (Number(state.formData.ECO_LOWER_HYSTERESIS) || 0)),\r\n value2: (state.formData.ECO_SETPOINT || '0'),\r\n value3: (state.formData.ECO_LOWER_HYSTERESIS || '0'),\r\n })}\r\n
\r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n function renderEco2Fields() {\r\n return (\r\n <>\r\n {!state.devType.isDac && (\r\n
\r\n setFormData({ ECO_SCHEDULE_START_BEHAVIOR_item: item })}\r\n notNull\r\n />\r\n
\r\n )}\r\n
\r\n setFormData({ ECO_INTERVAL_TIME: e.target.value })}\r\n />\r\n
\r\n
\r\n {t('histereseSoSeraConsideradaAlterarEstadoDispositivoIntervaloTempo')}\r\n
\r\n
\r\n setFormData({ ECO_SETPOINT: e.target.value })}\r\n />\r\n
\r\n
\r\n setFormData({ ECO_LTC: e.target.value })}\r\n />\r\n
\r\n
\r\n setFormData({ ECO_LTI: e.target.value })}\r\n />\r\n
\r\n
\r\n setFormData({ ECO_UPPER_HYSTERESIS: e.target.value })}\r\n />\r\n
\r\n
\r\n setFormData({ ECO_LOWER_HYSTERESIS: e.target.value })}\r\n />\r\n
\r\n \r\n );\r\n }\r\n\r\n function decideAssetLayout() {\r\n if (!state.assetLayout) {\r\n return ;\r\n }\r\n return ;\r\n }\r\n\r\n function formDataPlacemantitem() {\r\n if (state.formData.PLACEMENT_item && state.formData.PLACEMENT_item.value === 'DUO') {\r\n return

{t('msgInfoDutDuo')}

;\r\n }\r\n return null;\r\n }\r\n\r\n function verifyDamAndRelDutId(devInfo) {\r\n if (devInfo.dam && ((!devInfo.dac) || (devInfo.dam.DAM_DISABLED !== 1)) && state.formData.REL_DUT_ID_item) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyDamAndDamDisabled(devInfo) {\r\n if ((devInfo.dam) && ((!devInfo.dac) || (devInfo.dam.DAM_DISABLED !== 1))) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n function verifyDamFuNomCal() {\r\n if (state.damFuNomCalc) {\r\n return state.damFuNomCalc;\r\n }\r\n return t('semDados');\r\n }\r\n\r\n function verifyVariableExistence(variable, exeption) {\r\n if (variable) {\r\n return variable;\r\n }\r\n return exeption;\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.devId, t('editar'))}\r\n \r\n {decideAssetLayout()}\r\n {state.isLoading && (\r\n
\r\n \r\n
\r\n )}\r\n {renderDriConfig()}\r\n\r\n \r\n \r\n
\r\n \r\n

Aguarde, os dados estão

\r\n

sendo salvos.

\r\n \r\n {formDataPlacemantitem()}\r\n
\r\n
\r\n\r\n {(!state.isLoading) && devInfo && !state.devType.isDri && (\r\n <>\r\n \r\n {t('botaoEditar')}\r\n {(tabs.length > 1) && }\r\n
\r\n
\r\n {(allTabs[0].isActive)\r\n && renderEquipmentInfo()}\r\n {(allTabs[1].isActive)\r\n && (\r\n
\r\n {/* Informação ocultada para futuras melhorias */}\r\n {/* \r\n \r\n Data da primeira automação: \r\n {state.formData.DAT_BEGAUT || 'Sem informações'}\r\n \r\n */}\r\n \r\n \r\n \r\n \r\n {(state.devType.isDac && state.devType.isDam) && (\r\n setFormData({ USE_RELAY_item: item })}\r\n notNull\r\n />\r\n )}\r\n {(state.devType.isDutAut) && (\r\n setFormData({ DUTAUTCFG_item: item })}\r\n notNull\r\n disabled={state.devType.isDut && state.devInfo?.dut?.operation_mode === 5}\r\n />\r\n )}\r\n\r\n {(devInfo.dut_aut) && state.devType.dutAutEnabled && (\r\n <>\r\n setFormData({ MCHN_BRAND_item: item })}\r\n />\r\n \r\n setFormData({ MCHN_MODEL: event.target.value })}\r\n />\r\n \r\n {(state.temperatureControlState && profile.manageAllClients) && (\r\n
{JSON.stringify(state.temperatureControlState)}
\r\n )}\r\n {(state.formData.DUTAUTCFG_item && (state.formData.DUTAUTCFG_item.value === 'IR')) && (\r\n \r\n setFormData({ RESENDPER: event.target.value })}\r\n placeholder={t('valorMultiplo5')}\r\n error={resendTimeError}\r\n />\r\n \r\n )}\r\n \r\n )}\r\n\r\n {(!state.devType.isDut) && (\r\n setFormData({ REL_DUT_ID_item: item })}\r\n disabled={!state.formData.UNIT_ID_item}\r\n propLabel=\"ROOM_NAME\"\r\n />\r\n )}\r\n\r\n {(state.devType.isDam && devInfo.DEV_ID.startsWith('DAM3')) && devInfo.dam?.supportsExtTherm && (\r\n setFormData({ EXT_THERM_CFG: item })}\r\n propLabel=\"label\"\r\n />\r\n )}\r\n\r\n {(verifyDamAndRelDutId(devInfo)) && (\r\n <>\r\n {!state.formData.REL_DUT_ID_item!.DEV_ID.startsWith('DAM3') && state.devInfo?.dam?.CAN_SELF_REFERENCE && (\r\n <>\r\n \r\n {t('tipoAmbiente')}\r\n
\r\n

{verifyVariableExistence(state.formData.REL_DUT_ID_item!.RTYPE_NAME, '-')}

\r\n \r\n {t('limitesTemperatura')}\r\n
\r\n
\r\n <>min.\r\n \r\n {` ${verifyVariableExistence(state.formData.REL_DUT_ID_item!.TUSEMIN, '-')} `}\r\n
\r\n °C\r\n \r\n max.\r\n
\r\n \r\n

{state.formData.REL_DUT_ID_item!.TUSEMAX ?? '-'}

\r\n
\r\n °C\r\n
\r\n \r\n )}\r\n {state.formData.REL_DUT_ID_item!.DEV_ID.startsWith('DAM3') && state.devInfo?.dam?.CAN_SELF_REFERENCE && (\r\n
\r\n
\r\n setFormData({ MINIMUM_TEMPERATURE: e.target.value })}\r\n />\r\n
\r\n
\r\n setFormData({ MAXIMUM_TEMPERATURE: e.target.value })}\r\n />\r\n
\r\n
\r\n )}\r\n \r\n

{t('limitesTemperaturaConsideradosApenasNotificacoesExibicaoLinhas')}

\r\n
\r\n\r\n \r\n setFormData({ ENABLE_ECO_item: item })}\r\n notNull\r\n />\r\n {state.formData.ENABLE_ECO_item && (state.formData.ENABLE_ECO_item.valueN !== 0) && (\r\n <>\r\n setFormData({ ENABLE_ECO_local: item })}\r\n notNull\r\n data-tip\r\n data-for=\"ecoLocal\"\r\n />\r\n \r\n \r\n \r\n {t('quandoHabilitadoODamExecutara')}\r\n \r\n \r\n\r\n \r\n \r\n )}\r\n \r\n\r\n {state.formData.ENABLE_ECO_item && (state.formData.ENABLE_ECO_item.valueN === 2) && (\r\n <>\r\n
\r\n {dacDamEcoDetails}\r\n
\r\n {profile.manageAllClients && (\r\n
\r\n \r\n
\r\n )}\r\n \r\n )}\r\n {state.formData.ENABLE_ECO_item && (state.formData.ENABLE_ECO_item.valueN !== 0) && (\r\n <>\r\n setFormData({ ECO_CFG_item: item })}\r\n notNull\r\n />\r\n {state.formData.ENABLE_ECO_item.valueN === 1 && renderEco1Fields()}\r\n {state.formData.ENABLE_ECO_item.valueN === 2 && renderEco2Fields()}\r\n {!state.devInfo?.dam?.CAN_SELF_REFERENCE && (\r\n <>\r\n \r\n setFormData({ FU_NOM: event.target.value })}\r\n />\r\n \r\n

(1-0)

\r\n \r\n )}\r\n {state.devInfo?.dam?.CAN_SELF_REFERENCE && (\r\n <>\r\n \r\n setFormData({ FU_NOM: e.target.value })}\r\n />\r\n \r\n

(1-0)

\r\n \r\n )}\r\n
\r\n {t('fatorUtilizacaoNominalSugerido', {\r\n value1: (verifyDamFuNomCal()),\r\n })}\r\n
\r\n \r\n )}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {(verifyDamAndDamDisabled(devInfo)) && (\r\n
\r\n \r\n
\r\n )}\r\n {/* {(devInfo.dut_aut) && dutAutEnabled && (\r\n
\r\n \r\n
\r\n )} */}\r\n {renderDutAutSchedule(devInfo)}\r\n
\r\n )}\r\n {(allTabs[2].isActive)\r\n && (\r\n state.formData.varsConfigInput = data.varsConfigInput}\r\n />\r\n )}\r\n
\r\n \r\n
\r\n \r\n {renderModal(devInfo)}\r\n {sendAndDisableAut && (\r\n setSendAndDisableAut(false)}>\r\n
Essa desassociação irá desabilitar a automação do dispositivo, deseja continuar?
\r\n \r\n \r\n
\r\n )}\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('EditDevInfo', 'component')(EditDevInfo);\r\n","export default __webpack_public_path__ + \"static/media/IR_symbol_paths.98d34e58.svg\";","export default __webpack_public_path__ + \"static/media/IR_symbol_paths_faint.ce7d94df.svg\";","export default __webpack_public_path__ + \"static/media/wifi_icon.e368e180.svg\";","import styled from 'styled-components';\r\nimport {\r\n Select,\r\n} from 'components';\r\n\r\nexport const Card = styled.div`\r\n border-radius: 16px;\r\n padding: 32px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\nexport const IrTable = styled.div`\r\n display: grid;\r\n border-left: 1px solid grey;\r\n border-bottom: 1px solid grey;\r\n`;\r\n\r\nexport const IrTableCell = styled.div`\r\n border-top: 1px solid grey;\r\n border-right: 1px solid grey;\r\n padding: 5px;\r\n display: flex;\r\n align-items: center;\r\n`;\r\n\r\nexport const IrTableCell2 = styled(IrTableCell)`\r\n justify-content: space-between;\r\n`;\r\n\r\nexport const SelectContainer = styled.div`\r\n font-weight: bold;\r\n position: fixed;\r\n background: white;\r\n border: 2px solid #d3d3d3;\r\n border-radius: 10px;\r\n box-shadow: 5px 6px 11px rgba(0,0,0,0.24), 0px 14px 15px rgba(0,0,0,0.12);\r\n`;\r\n\r\nexport const CustomSelect = styled(Select)`\r\n margin-bottom: 20px;\r\n background-color: white;\r\n margin-bottom: 0;\r\n`;\r\n\r\nexport const TextLine = styled.div`\r\n display: flex;\r\n align-items: center;\r\n color: #5d5d5d;\r\n margin-top: 10px;\r\n`;\r\n","import { useEffect, useState } from 'react';\r\n\r\nimport * as levenshtein from 'fast-levenshtein';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams, useHistory } from 'react-router-dom';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\n\r\nimport IrReadIcon from 'assets/img/icons/IR_symbol_paths.svg';\r\nimport IrReadFaintIcon from 'assets/img/icons/IR_symbol_paths_faint.svg';\r\nimport TransmitIcon from 'assets/img/icons/wifi_icon.svg';\r\nimport {\r\n Loader, ModalWindow, Select, Button, ActionButton, Input, Checkbox, RouterPrompt,\r\n} from 'components';\r\nimport { getCachedDevInfo, getCachedDevInfoSync } from 'helpers/cachedStorage';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { useWebSocket } from 'helpers/wsConnection';\r\nimport {\r\n DeleteOutlineIcon,\r\n EditIcon,\r\n} from 'icons';\r\nimport { DevLayout } from 'pages/Analysis/DEVs/DevLayout';\r\nimport { apiCall } from 'providers';\r\nimport { colors } from 'styles/colors';\r\nimport { AssetLayout } from 'pages/Analysis/Assets/AssetLayout';\r\n\r\nimport {\r\n Card,\r\n IrTable,\r\n IrTableCell,\r\n IrTableCell2,\r\n SelectContainer,\r\n CustomSelect,\r\n TextLine,\r\n} from './styles';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { MdArrowDropDown, MdArrowRight } from 'react-icons/md';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\n\r\nfunction getDutDefaultTemps() {\r\n const temps = [] as { name: string, value: number }[];\r\n for (let index = 16; index <= 30; index += 1) {\r\n temps.push({ name: `${index}°C`, value: index });\r\n }\r\n return temps;\r\n}\r\n\r\nexport const DutIrManagement = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const routeParams = useParams<{ devId: string }>();\r\n const [profile] = useState(getUserProfile);\r\n const [state, render, setState] = useStateVar(() => ({\r\n modify: false,\r\n haveError: false,\r\n devId: routeParams.devId,\r\n loading: true,\r\n savingCmdType: false,\r\n savingCmdsTable: false,\r\n savingFakeCmds: false,\r\n deletingSelectedCmds: false,\r\n transmittingCommand: false,\r\n selectedDutCommands: 0,\r\n selectPositionY: 0,\r\n assetLayout: false,\r\n selectPositionX: 0,\r\n devInfo: getCachedDevInfoSync(routeParams.devId),\r\n defaultIrList: [] as { IR_ID: string, CMD_TYPE: string, CMD_DESC: string, TEMPER: number }[],\r\n irList: [] as { IR_ID: string, CMD_TYPE: string, CMD_DESC: string, TEMPER: number }[],\r\n loadedIrList: [] as {\r\n IR_ID: string;\r\n CMD_TYPE: string;\r\n CMD_DESC: string;\r\n TEMPER: number;\r\n }[],\r\n dutCommandTypes: [{ name: t('refrigerar'), value: 'COOL' }, { name: t('desligar'), value: 'OFF' }, { name: t('ventilar'), value: 'FAN' }, { name: t('outro'), value: 'OTHER' }],\r\n dutDefaultTemps: getDutDefaultTemps(),\r\n dutCommandActions: [] as string[],\r\n probableIrCommands: null as null | {\r\n ircodes: {\r\n DUT_ID: string;\r\n IR_ID: string;\r\n CMD_TYPE: string;\r\n CMD_DESC: string;\r\n TEMPER: number;\r\n }[];\r\n dutCommandTypes: string[];\r\n model: string;\r\n DUT_ID: string;\r\n distance: number;\r\n }[],\r\n loadedIrModel: '',\r\n checkedAllCodes: false,\r\n lastIr: {\r\n id: null,\r\n ts: null,\r\n isOld: null,\r\n timer: null,\r\n },\r\n showModal: null,\r\n modalCmdType: {\r\n IR_ID: null,\r\n CMD_TYPE: null as null | { name: string, value: string },\r\n CMD_DESC: null as null | string,\r\n CMD_ACTION: null,\r\n TEMPER: null as null | { name: string, value: number },\r\n },\r\n wsConn: null,\r\n learnActive: false,\r\n rends: 0,\r\n comboOpts: {} as {\r\n units?: { label: string, value: number }[],\r\n groups?: { label: string, value: number, unit: number }[],\r\n fluids?: { label: string, value: string }[],\r\n applics?: { label: string, value: string }[],\r\n types?: { label: string, value: string }[],\r\n envs?: { label: string, value: string }[],\r\n brands?: { label: string, value: string }[],\r\n roles?: { label: string, value: string }[],\r\n psens?: { label: string, value: string }[],\r\n vavs?: { label: string, value: string }[],\r\n rtypes?: { RTYPE_NAME: string, RTYPE_ID: number }[],\r\n dutPlacement?: { label: string, value: string }[],\r\n },\r\n MCHN_BRAND_item: null as null|{ label: string, value: string },\r\n MCHN_MODEL: '',\r\n openEdit: false,\r\n savingModel: false,\r\n permissionGeral: false,\r\n }));\r\n\r\n useEffect(() => {\r\n verifyPermissions();\r\n }, [profile]);\r\n\r\n useEffect(() => {\r\n Promise.resolve().then(async () => {\r\n try {\r\n const [\r\n devInfo,\r\n { list, dutCommandTypes },\r\n ] = await Promise.all([\r\n getCachedDevInfo(state.devId, {}),\r\n apiCall('/get-dut-ircodes-list', { devId: state.devId }),\r\n ]);\r\n state.devInfo = devInfo;\r\n // @ts-ignore\r\n state.irList = list || [];\r\n state.defaultIrList = state.irList;\r\n state.loadedIrList = state.irList;\r\n // @ts-ignore\r\n if (!sessionStorage.getItem('savingOnDut')) {\r\n sessionStorage.setItem('savingOnDut', JSON.stringify(state.loadedIrList));\r\n }\r\n state.dutCommandActions = dutCommandTypes || [];\r\n if (state.permissionGeral) {\r\n const probableCommands = await fetchIRCommandSets(state.devId);\r\n setState({ probableIrCommands: probableCommands });\r\n }\r\n } catch (err) { toast.error(t('erro')); console.error(err); }\r\n state.loading = false;\r\n render();\r\n });\r\n if (profile.permissions.isInstaller) {\r\n const reqCombos = {\r\n fluids: true,\r\n applics: true,\r\n types: true,\r\n envs: true,\r\n brands: true,\r\n psens: true,\r\n ecoModeCfg: true,\r\n scheduleStartBehavior: true,\r\n dutScheduleStartBehavior: true,\r\n dutScheduleEndBehavior: true,\r\n dutForcedBehavior: true,\r\n };\r\n apiCall('/dev/dev-info-combo-options', reqCombos).then((response) => {\r\n state.comboOpts = response;\r\n });\r\n }\r\n }, [state.savingModel]);\r\n\r\n useEffect(() => {\r\n if (!state.wsConn) return;\r\n if (state.learnActive) {\r\n // @ts-ignore\r\n state.wsConn.send({\r\n type: 'dutSubscribeIrRead', data: { DUT_ID: state.devId },\r\n });\r\n } else {\r\n // @ts-ignore\r\n state.wsConn.send({\r\n type: 'dutUnsubscribeIrRead',\r\n });\r\n }\r\n }, [state.learnActive]);\r\n\r\n const linkBase = history.location.pathname;\r\n\r\n state.assetLayout = linkBase.includes('/ativo');\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n function onWsOpen(wsConn) {\r\n state.wsConn = wsConn;\r\n if (state.learnActive) {\r\n wsConn.send({ type: 'dutSubscribeIrRead', data: { DUT_ID: state.devId } });\r\n }\r\n }\r\n function onWsMessage(payload) {\r\n const { type: msgType, data: msgData } = (payload || {});\r\n if (msgType === 'dutIrRead') {\r\n if (msgData.devId !== state.devId) return;\r\n if (!msgData.IR_ID) return;\r\n state.lastIr.id = msgData.IR_ID;\r\n // @ts-ignore\r\n state.lastIr.ts = Date.now();\r\n // @ts-ignore\r\n state.lastIr.isOld = false;\r\n // @ts-ignore\r\n clearTimeout(state.lastIr.timer);\r\n // @ts-ignore\r\n state.lastIr.timer = setTimeout(() => {\r\n // @ts-ignore\r\n state.lastIr.isOld = ((state.lastIr.ts + 1000) < Date.now());\r\n // @ts-ignore\r\n if (state.lastIr.isOld) render();\r\n }, 1500);\r\n // @ts-ignore\r\n if (!state.irList.some((x) => x.IR_ID === msgData.IR_ID)) {\r\n // @ts-ignore\r\n state.irList.push({\r\n // @ts-ignore\r\n IR_ID: msgData.IR_ID,\r\n // @ts-ignore\r\n CMD_TYPE: (msgData.CMD_TYPE || null),\r\n // @ts-ignore\r\n CMD_DESC: (msgData.CMD_DESC || null),\r\n // @ts-ignore\r\n TEMPER: (msgData.TEMPER == null) ? null : msgData.TEMPER,\r\n });\r\n }\r\n render();\r\n }\r\n }\r\n function beforeWsClose(wsConn) {\r\n wsConn.send({ type: 'dutUnsubscribeIrRead' });\r\n }\r\n\r\n const confirmSetCmdType = async () => {\r\n try {\r\n const { IR_ID } = state.modalCmdType;\r\n const CMD_TYPE = state.modalCmdType.CMD_ACTION || null;\r\n const CMD_DESC = state.modalCmdType.CMD_TYPE\r\n && state.modalCmdType.CMD_TYPE.value === 'COOL'\r\n ? (state.modalCmdType.TEMPER && `ON_${state.modalCmdType.TEMPER.value}`)\r\n : (state.modalCmdType.CMD_TYPE?.value === 'OTHER' ? state.modalCmdType.CMD_DESC : (state.modalCmdType.CMD_TYPE?.value));\r\n const TEMPER = ((CMD_TYPE === 'AC_COOL') && state.modalCmdType.TEMPER) ? state.modalCmdType.TEMPER.value : null;\r\n setState({ savingCmdType: true });\r\n await apiCall('/define-ircode-action', {\r\n devId: state.devId,\r\n // @ts-ignore\r\n IR_ID,\r\n // @ts-ignore\r\n CMD_TYPE,\r\n // @ts-ignore\r\n CMD_DESC,\r\n // @ts-ignore\r\n TEMPER,\r\n });\r\n for (const row of state.irList) {\r\n // @ts-ignore\r\n if (row.CMD_TYPE === CMD_TYPE) { row.CMD_TYPE = null; }\r\n // @ts-ignore\r\n if (row.IR_ID === IR_ID) {\r\n // @ts-ignore\r\n row.CMD_TYPE = CMD_TYPE;\r\n // @ts-ignore\r\n row.CMD_DESC = CMD_DESC;\r\n // @ts-ignore\r\n row.TEMPER = TEMPER;\r\n }\r\n }\r\n state.showModal = null;\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n setState({ savingCmdType: false });\r\n };\r\n\r\n const emmitDutCommand = async (item) => {\r\n try {\r\n setState({ transmittingCommand: true });\r\n await apiCall('/send-dut-aut-command', {\r\n devId: state.devId,\r\n IR_ID: item.IR_ID,\r\n });\r\n toast.success(t('sucessoTransmitido'));\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n setState({ transmittingCommand: false });\r\n };\r\n\r\n const sendCommandsTableToDut = async () => {\r\n try {\r\n setState({ savingCmdsTable: true });\r\n await apiCall('/resend-dut-ir-codes', {\r\n devId: state.devId,\r\n });\r\n sessionStorage.clear();\r\n sessionStorage.setItem('savingOnDut', JSON.stringify(state.defaultIrList));\r\n setState({ haveError: false });\r\n toast.success(t('sucessoTransmitido'));\r\n } catch (err) { console.log(err); toast.error(t('erro')); setState({ haveError: true }); }\r\n setState({ savingCmdsTable: false });\r\n };\r\n const deleteIrCode = async (item) => {\r\n if (!window.confirm(t('desejaExcluirCodigo'))) {\r\n return;\r\n }\r\n try {\r\n await apiCall('/delete-dut-ircode', {\r\n devId: state.devId,\r\n IR_ID: item.IR_ID,\r\n });\r\n setState({ modify: true });\r\n toast.success(t('sucessoExcluir'));\r\n // @ts-ignore\r\n state.irList = state.irList.filter((x) => x.IR_ID !== item.IR_ID);\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n };\r\n\r\n async function fetchIRCommandSets(dutId: string) {\r\n if (!state.devInfo) return null;\r\n if (!state.devInfo.dut_aut) return null;\r\n const probableCommands = (await apiCall('/get-dut-ircodes-by-model', { devId: dutId }).then((x) => x.list))\r\n .filter((x) => x.ircodes?.length > 0 && x.ircodes[0].DUT_ID !== state.devId && x.model)\r\n .map((command) => Object.assign(command, {\r\n distance: levenshtein.get(state.devInfo!.dut_aut!.MCHN_MODEL || '', command.model),\r\n dropdown_text: `${command.model} - ${command.ircodes[0].DUT_ID}`,\r\n }));\r\n\r\n probableCommands.sort((a, b) => a.distance - b.distance);\r\n return probableCommands;\r\n }\r\n\r\n async function saveTableCmds() {\r\n setState({ savingCmdsTable: true });\r\n setState({ modify: true });\r\n const commands = {\r\n configs: state.loadedIrList.map((x) => ({ IR_ID: x.IR_ID, CMD_TYPE: x.CMD_TYPE })),\r\n targetDutId: state.devId,\r\n };\r\n const response = await apiCall('/write-dut-command-by-ircode', commands);\r\n if (!response.success || response.success !== true) {\r\n toast.error(t('erro'));\r\n setState({ savingCmdsTable: false });\r\n return;\r\n }\r\n\r\n for (const config of state.loadedIrList) {\r\n const idx = state.irList.findIndex((x) => x.IR_ID === config.IR_ID);\r\n if (idx !== -1) {\r\n state.irList[idx] = config;\r\n }\r\n else {\r\n state.irList.push(config);\r\n }\r\n }\r\n\r\n for (const config of state.loadedIrList) {\r\n const idx = state.irList.findIndex((x) => x.IR_ID === config.IR_ID);\r\n if (idx !== -1) {\r\n state.irList[idx] = config;\r\n }\r\n else {\r\n state.irList.push(config);\r\n }\r\n\r\n for (const ir of state.irList) {\r\n if (config.CMD_TYPE === ir.CMD_TYPE && config.IR_ID !== ir.IR_ID) {\r\n // @ts-ignore\r\n ir.CMD_TYPE = null;\r\n }\r\n }\r\n }\r\n // let {list, dutCommandTypes} = await apiCall('/get-dut-ircodes-list', { devId: state.devId })\r\n // state.irList = list || state.irList\r\n // state.dutCommandTypes = dutCommandTypes || state.dutCommandTypes\r\n setState({ savingCmdsTable: false });\r\n }\r\n\r\n function getCommandType(cmdDesc) {\r\n if (cmdDesc?.includes('ON')) {\r\n return { name: t('refrigerar'), value: 'COOL' };\r\n }\r\n if (cmdDesc === 'FAN') return { name: t('ventilar'), value: 'FAN' };\r\n if (cmdDesc === 'OFF') return { name: t('desligar'), value: 'OFF' };\r\n if (cmdDesc) return { name: t('outro'), value: 'OTHER' };\r\n return null;\r\n }\r\n\r\n function getCommandTemp(temp, cmdDesc) {\r\n if (temp) return temp;\r\n if (cmdDesc?.includes('ON')) {\r\n const cmdDescTemp = Number(cmdDesc.split('_')[1]) || null;\r\n return (cmdDescTemp && { name: `${cmdDescTemp}°C`, value: cmdDescTemp });\r\n }\r\n return null;\r\n }\r\n\r\n function clearEditItemValues(item) {\r\n if (item.IR_ID) state.modalCmdType.IR_ID = item.IR_ID;\r\n state.modalCmdType.CMD_TYPE = getCommandType(item.CMD_DESC || '');\r\n if (item.CMD_DESC) state.modalCmdType.CMD_DESC = item.CMD_DESC;\r\n state.modalCmdType.CMD_ACTION = item.CMD_TYPE || '';\r\n state.modalCmdType.TEMPER = getCommandTemp(item.TEMPER, item.CMD_DESC);\r\n }\r\n\r\n function wantEditItem(item) {\r\n setState({ modify: true });\r\n clearEditItemValues(item);\r\n // @ts-ignore\r\n state.showModal = 'set-cmd-type';\r\n render();\r\n }\r\n\r\n function verifyParams() {\r\n if (!state.devInfo?.dut_aut || !state.devInfo?.CLIENT_ID || !state.devInfo?.UNIT_ID) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n async function saveModel() {\r\n try {\r\n setState({ savingModel: true });\r\n if (verifyParams()) {\r\n toast.error(t('houveErro'));\r\n return;\r\n }\r\n await apiCall('/dut/set-dut-info', {\r\n DEV_ID: state.devId,\r\n MCHN_BRAND: state.MCHN_BRAND_item?.value,\r\n MCHN_MODEL: state.MCHN_MODEL,\r\n CLIENT_ID: state.devInfo?.CLIENT_ID,\r\n UNIT_ID: state.devInfo?.UNIT_ID,\r\n groups: state.devInfo?.dut_aut?.groups?.map((item) => item.GROUP_ID.toString()),\r\n });\r\n toast.success(t('salvoSucesso'));\r\n render();\r\n } catch (err) {\r\n toast.error(t('houveErro'));\r\n }\r\n setState({ savingModel: false });\r\n render();\r\n }\r\n\r\n const deleteAllSelectedCommands = async () => {\r\n try {\r\n setState({ deletingSelectedCmds: true });\r\n state.irList.forEach(async (ir) => {\r\n // @ts-ignore\r\n if (ir.checked) {\r\n await apiCall('/delete-dut-ircode', {\r\n // @ts-ignore\r\n devId: state.devId,\r\n // @ts-ignore\r\n IR_ID: ir.IR_ID,\r\n });\r\n }\r\n });\r\n // @ts-ignore\r\n setState({ irList: state.irList.filter((ir) => !ir.checked) });\r\n setState({ modify: true });\r\n render();\r\n toast.success(t('sucessoTransmitido'));\r\n } catch (err) { console.log(err); toast.error(t('erro')); }\r\n // @ts-ignore\r\n setState({ selectedDutCommands: state.irList.filter((x) => x.checked).length });\r\n setState({ deletingSelectedCmds: false });\r\n };\r\n\r\n function verifyPermissions() {\r\n if (profile.manageAllClients || profile.isUserManut || profile.permissions.isInstaller || (state.devInfo?.CLIENT_ID && profile.permissions.CLIENT_MANAGE.includes(state.devInfo.CLIENT_ID))) {\r\n setState({ permissionGeral: true });\r\n }\r\n }\r\n\r\n function buildScreenInfoParams(): Parameters<(typeof AssetLayout)>[0]['screenInfo'] {\r\n return {\r\n forceHideHealthTab: false,\r\n groupSelected: true,\r\n hasNonDutDeviceInAssets: false,\r\n dutAutomationInfo: {},\r\n isDuoSelected: state.devInfo?.dut?.PLACEMENT === 'DUO',\r\n assetRoleSelected: 0,\r\n };\r\n }\r\n\r\n return (\r\n <>\r\n { setState({ modify: false }); return true; }}\r\n onCancel={async () => { await sendCommandsTableToDut(); if (!state.haveError) { setState({ modify: false }); return true; } return false; }}\r\n >\r\n

{t('comandosNaoForamSalvosDutDesejaContinuar')}

\r\n \r\n \r\n {generateNameFormatted(state.devInfo?.DEV_ID, t('controleRemoto'))}\r\n \r\n {!state.assetLayout ? () : ()}\r\n {(state.loading) ? \r\n : (\r\n <>\r\n \r\n
\r\n
 
\r\n
{(state.transmittingCommand) && }
\r\n
\r\n {(state.permissionGeral) && (\r\n \r\n )}\r\n
\r\n
\r\n {(state.permissionGeral) && (\r\n
\r\n setState({ learnActive: !state.learnActive })}\r\n color=\"primary\"\r\n />\r\n {t('habilitarAprendizagem')}\r\n
\r\n )}\r\n {(state.permissionGeral) && (\r\n
\r\n \r\n {\r\n profile.permissions.isInstaller && (\r\n <>\r\n
\r\n

setState({ openEdit: !state.openEdit })}>\r\n \r\n { state.openEdit ? : }\r\n {' '}\r\n {t('editarAcrescentarModelo')}\r\n \r\n

\r\n {\r\n state.openEdit && (\r\n <>\r\n { setState({ MCHN_BRAND_item: item }); render(); }}\r\n />\r\n \r\n { setState({ MCHN_MODEL: event.target.value }); }}\r\n />\r\n \r\n \r\n \r\n )\r\n }\r\n
\r\n \r\n )\r\n }\r\n \r\n {profile.permissions.isInstaller && (\r\n \r\n )}\r\n a.distance - b.distance)}\r\n placeholder={t('modelos')}\r\n propLabel=\"dropdown_text\"\r\n value={state.loadedIrModel}\r\n onSelect={(ir_command) => {\r\n // let command = state.probableIrCommands.find((x) => x.model === ir_command);\r\n if (ir_command === '') {\r\n setState({ loadedIrList: state.defaultIrList, loadedIrModel: '' });\r\n render();\r\n return;\r\n }\r\n\r\n const clonedIrCodes = JSON.parse(JSON.stringify(ir_command.ircodes));\r\n\r\n setState({ loadedIrList: clonedIrCodes, dutCommandTypes: ir_command.dutCommandTypes, loadedIrModel: ir_command.dropdown_text });\r\n render();\r\n // setState({irList : ir_command.ircodes, dutCommandTypes : ir_command.dutCommandTypes, loadedIrModel: ir_command.model})\r\n }}\r\n />\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n )}\r\n
\r\n \r\n {(state.permissionGeral) && (\r\n {t('codigo')}\r\n )}\r\n {t('comentario')}\r\n \r\n {t('acaoAutomocao')}\r\n \r\n {(state.permissionGeral) && (\r\n \r\n !!item.checked) && state.irList.length > 0}\r\n onClick={(event) => {\r\n // @ts-ignore\r\n state.checkedAllCodes = !state.checkedAllCodes;\r\n // @ts-ignore\r\n state.irList.forEach((item) => { item.checked = state.checkedAllCodes; });\r\n state.selectPositionX = event.clientX - 300;\r\n state.selectPositionY = event.clientY;\r\n // @ts-ignore\r\n setState({ selectedDutCommands: state.irList.filter((x) => x.checked).length });\r\n render();\r\n }}\r\n />\r\n \r\n )}\r\n {(!state.savingCmdsTable) && state.irList.map((item) => (\r\n // @ts-ignore\r\n <>\r\n {(state.permissionGeral) && (\r\n <>\r\n {/* @ts-ignore */}\r\n \r\n {/* @ts-ignore */}\r\n {item.IR_ID}\r\n {/* @ts-ignore */}\r\n {(item.IR_ID === state.lastIr.id) ? : ''}\r\n \r\n \r\n )}\r\n {/* @ts-ignore */}\r\n \r\n {/* @ts-ignore */}\r\n {(item.TEMPER != null) && `[${item.TEMPER}] `}\r\n {/* @ts-ignore */}\r\n {item.CMD_DESC}\r\n \r\n {/* @ts-ignore */}\r\n \r\n {/* @ts-ignore */}\r\n {item.CMD_TYPE}\r\n
\r\n {(state.permissionGeral) && (\r\n wantEditItem(item)} variant=\"blue-inv\">\r\n \r\n \r\n )}\r\n\r\n emmitDutCommand(item)} variant=\"blue-inv\">\r\n \r\n \r\n\r\n {(state.permissionGeral) && (\r\n deleteIrCode(item)} variant=\"red-inv\">\r\n \r\n \r\n )}\r\n
\r\n
\r\n {(state.permissionGeral) && (\r\n <>\r\n {/* @ts-ignore */}\r\n \r\n {\r\n // @ts-ignore\r\n item.checked = !item.checked;\r\n state.selectPositionX = event.clientX - 300;\r\n state.selectPositionY = event.clientY;\r\n // @ts-ignore\r\n setState({ selectedDutCommands: state.irList.filter((x) => x.checked).length });\r\n render();\r\n }}\r\n />\r\n \r\n \r\n )}\r\n {(state.selectedDutCommands > 0) && (\r\n \r\n {\r\n if (opt.value === 'erase') {\r\n await deleteAllSelectedCommands();\r\n }\r\n }}\r\n />\r\n \r\n )}\r\n \r\n ))}\r\n
\r\n
\r\n
\r\n \r\n )}\r\n {\r\n (state.showModal === 'set-cmd-type')\r\n && (\r\n null}>\r\n
\r\n null}\r\n disabled\r\n />\r\n
\r\n
\r\n { clearEditItemValues({}); state.modalCmdType.CMD_TYPE = item; render(); }}\r\n />\r\n
\r\n {state.modalCmdType.CMD_TYPE?.value === 'COOL' && (\r\n
\r\n { state.modalCmdType.TEMPER = item; render(); }}\r\n />\r\n
\r\n )}\r\n {state.modalCmdType.CMD_TYPE?.value === 'OTHER' && (\r\n
\r\n { state.modalCmdType.CMD_DESC = event.target.value; render(); }}\r\n />\r\n
\r\n )}\r\n
\r\n { state.modalCmdType.CMD_ACTION = item; render(); }}\r\n />\r\n
\r\n {/* {(state.modalCmdType.CMD_TYPE === 'AC_COOL')\r\n && (\r\n
\r\n { state.modalCmdType.TEMPER = event.target.value; render(); }}\r\n />\r\n
\r\n )} */}\r\n
\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n )\r\n }\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('DutIrManagement', 'component')(DutIrManagement);\r\n","import { Link } from 'react-router-dom';\r\nimport styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const DesktopTable = styled.div`\r\n display: none;\r\n @media (min-width: 768px) {\r\n display: block;\r\n }\r\n`;\r\n\r\nexport const MobileTable = styled.div`\r\n display: block;\r\n @media (min-width: 768px) {\r\n display: none;\r\n }\r\n`;\r\n\r\nexport const StyledSpan = styled.span`\r\n color: ${colors.Grey400};\r\n font-size: 1em;\r\n`;\r\n\r\nexport const StyledLink = styled(Link)`\r\n color: ${colors.Grey400};\r\n font-size: 1em;\r\n`;\r\n\r\nexport const SearchInput = styled.div`\r\n min-height: 48px;\r\n margin: 0;\r\n font-size: 12px;\r\n margin-left: 16px;\r\n color: #000;\r\n width: 100%;\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n box-sizing: border-box !important;\r\n display: inline-flex;\r\n align-items: center;\r\n`;\r\n\r\nexport const Label = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-top: 6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const BtnClean = styled.div`\r\n cursor: pointer;\r\n color: ${colors.BlueSecondary};\r\n margin-top: 7px;\r\n margin-left: 10px;\r\n text-decoration: underline;\r\n font-size: 11px;\r\n`;\r\n\r\nexport const BtnInput = styled.button`\r\ndisplay: flex;\r\nalign-items: center;\r\njustify-content: center;\r\nbackground-color: white;\r\nwidth: 32px;\r\nheight: 30px;\r\nmargin-right: 10px;\r\n\r\nborder: 1px solid rgba(0, 0, 0, 0.15);\r\ncursor: pointer;\r\nborder-radius: 5px;\r\nbox-shadow: 0 0.3em 0.3em rgba(0, 0, 0, 0.09);\r\ntransition: all 0.5s ease-in;\r\n&:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n cursor: pointer;\r\n }\r\n`;\r\n\r\nexport const ClickableSpan = styled.span`\r\ncursor: pointer;\r\n`;\r\n","import React, { useState, useEffect, useMemo } from 'react';\r\n\r\nimport queryString from 'query-string';\r\nimport { CSVLink } from 'react-csv';\r\nimport { Helmet } from 'react-helmet';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex, Box } from 'reflexbox';\r\n\r\nimport {\r\n DataTable, Button, EmptyWrapper, Loader, StatusBox, Checkbox, Select,\r\n} from '~/components';\r\nimport { FilterItem } from '../../AnalysisFilters';\r\nimport { ModalWindow } from '~/components/ModalWindow';\r\nimport checkDutsLimits from '~/helpers/checkDutsLimits';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { TermometerSubIcon, HumidityIcon } from '~/icons';\r\nimport { AnalysisLayout } from '~/pages/Analysis/AnalysisLayout';\r\nimport { saveSessionStorageItem, removeSessionStorageItem, getSessionStorageItem } from '~/helpers/cachedStorage';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport {\r\n DesktopTable,\r\n MobileTable,\r\n StyledSpan,\r\n StyledLink,\r\n} from './styles';\r\nimport { t } from 'i18next';\r\nimport '~/assets/css/ReactTags.css';\r\nimport { TableColumn, OrderableHeaderCell } from '~/components/DataTable';\r\nimport { UtilFilter } from '../../Utilities/UtilityFilter';\r\nimport { ajustParams, setValueState } from '~/helpers/genericHelper';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { AnalysisEmpty } from '../../AnalysisEmpty';\r\nimport { formatNumberWithFractionDigits } from '~/helpers/thousandFormatNumber';\r\n\r\nconst KeyCodes = {\r\n comma: 188,\r\n slash: 191,\r\n enter: [10, 13],\r\n};\r\n\r\nconst tempCodes = {\r\n 'Temperatura acima': 'high',\r\n 'Temperatura correta': 'good',\r\n 'Temperatura abaixo': 'low',\r\n 'Sem info': 'no data',\r\n};\r\n\r\nconst delimiters = [...KeyCodes.enter, KeyCodes.comma, KeyCodes.slash];\r\n\r\nexport const Environments = ({ history }): JSX.Element => {\r\n const csvLinkEl = React.useRef();\r\n const [profile] = useState(getUserProfile);\r\n\r\n const [state, render, setState] = useStateVar(() => {\r\n const {\r\n preFiltered,\r\n unitIds,\r\n stateIds,\r\n cityIds,\r\n } = queryString.parse(history.location.search, { arrayFormat: 'comma' });\r\n const formattedPreFilter = (typeof preFiltered === 'string')\r\n ? preFiltered\r\n ? [preFiltered]\r\n : [...preFiltered]\r\n : [];\r\n\r\n const state = {\r\n actionOpts: [] as { label: string, value: string }[],\r\n clientsList: [] as { CLIENT_ID: number, NAME: string }[],\r\n selectedClientFilter: setValueState('filterClient') as any[],\r\n manufacturers: [],\r\n selectedClient: null,\r\n wantSetClient: false,\r\n ownershipFilter: null,\r\n permissions: profile.permissions,\r\n isLoading: !profile.manageAllClients && !profile.manageSomeClient, // setIsLoading\r\n csvData: [], // setCsvData\r\n environments: [], // setEnvironments\r\n invisibleDuts: [] as {}[] | undefined,\r\n searchState: '' as string, // setSearchState\r\n searchValue: '' as string,\r\n tablePage: 1,\r\n tablePageSize: 50,\r\n totalItems: 0,\r\n\r\n statesList: [] as { value: string, name: string }[],\r\n selectedState: stateIds?.length ? stateIds : setValueState('filterStates'),\r\n citiesList: [] as { value: string, name: string }[],\r\n selectedCity: cityIds?.length ? cityIds : setValueState('filterCity'),\r\n unitsList: [] as { value: string, name: string }[],\r\n selectedUnit: unitIds?.length ? unitIds : setValueState('filterUnit'),\r\n selectedTemperature: formattedPreFilter.map((value) => tempCodes[value]),\r\n selectedConnection: [],\r\n selectedDevId: '',\r\n filters: [] as FilterItem[],\r\n orderBy: null as null | [string, 'ASC' | 'DESC'],\r\n needFilter: profile.manageAllClients || profile.manageSomeClient,\r\n };\r\n\r\n if (profile.permissions.isAdminSistema) {\r\n state.actionOpts = [{ label: t('excluir'), value: 'delete' }, { label: t('atribuirCliente'), value: 'set-client' }];\r\n } else if (profile.manageAllClients) {\r\n state.actionOpts = [{ label: t('excluir'), value: 'delete' }, { label: t('atribuirCliente'), value: 'set-client' }];\r\n }\r\n\r\n return state;\r\n });\r\n\r\n function loadSessionFilters() {\r\n const filters = getSessionStorageItem('environmentsAnalysisFilters') as null | {\r\n searchState: '',\r\n selectedState: [],\r\n selectedCity: [],\r\n selectedUnit: [],\r\n selectedClientFilter?: [],\r\n selectedTemperature: [],\r\n selectedConnection: [],\r\n };\r\n if (filters) {\r\n state.searchState = filters.searchState || '';\r\n state.selectedState = filters.selectedState || [];\r\n state.selectedCity = filters.selectedCity || [];\r\n state.selectedUnit = filters.selectedUnit || [];\r\n state.selectedClientFilter = filters.selectedClientFilter || [];\r\n state.selectedTemperature = filters.selectedTemperature || [];\r\n state.selectedConnection = filters.selectedConnection || [];\r\n }\r\n render();\r\n removeSessionStorageItem('environmentsAnalysisFilters');\r\n }\r\n\r\n function saveSessionFilters() {\r\n const filters = {\r\n searchState: state.searchState,\r\n selectedState: state.selectedState,\r\n selectedCity: state.selectedCity,\r\n selectedUnit: state.selectedUnit,\r\n selectedTemperature: state.selectedTemperature,\r\n selectedConnection: state.selectedConnection,\r\n } as any;\r\n if (profile.manageAllClients) {\r\n filters.selectedClientFilter = state.selectedClientFilter;\r\n }\r\n saveSessionStorageItem('environmentsAnalysisFilters', filters);\r\n }\r\n\r\n async function clearFilters() {\r\n state.searchState = '';\r\n state.selectedCity = [];\r\n state.selectedClientFilter = [];\r\n state.selectedState = [];\r\n state.selectedConnection = [];\r\n state.selectedTemperature = [];\r\n state.selectedUnit = [];\r\n\r\n state.isLoading = true;\r\n render();\r\n await handleGetDUTS();\r\n }\r\n\r\n async function applyActionToSelected(action, list) {\r\n try {\r\n const selectedDevs = list.filter((dev) => dev.checked);\r\n\r\n if (!selectedDevs.length) return;\r\n\r\n if (action === 'delete') {\r\n if (!window.confirm(`Deseja excluir ${selectedDevs.length} DUT(s)?`)) {\r\n return;\r\n }\r\n for (const dev of selectedDevs) {\r\n await apiCall('/dut/delete-dut-info', { dutId: dev.DEV_ID });\r\n }\r\n window.location.reload();\r\n return;\r\n }\r\n if (action === 'set-client') {\r\n state.wantSetClient = true; render();\r\n return;\r\n }\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n async function confirmSetClient() {\r\n try {\r\n // @ts-ignore\r\n const selectedDevs = state.environments.filter((dev) => dev.checked);\r\n if (!selectedDevs.length) {\r\n toast.error(t('erroNenhumSelecionado'));\r\n return;\r\n }\r\n\r\n // @ts-ignore\r\n const clientId = state.selectedClient && state.selectedClient.CLIENT_ID;\r\n\r\n if (!clientId) {\r\n toast.error(t('erroNaoSelecionadoOuInvalido'));\r\n return;\r\n }\r\n\r\n for (const dev of selectedDevs) {\r\n // @ts-ignore\r\n await apiCall('/dut/set-dut-info', { DEV_ID: dev.DEV_ID, CLIENT_ID: clientId });\r\n }\r\n\r\n window.location.reload();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n function orderColumn(column: TableColumn) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n const [columns, columnsMobile] = useMemo(() => {\r\n const columnsDesktop = [] as TableColumn[];\r\n const columnsMobile = [] as TableColumn[];\r\n\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('estado'),\r\n // @ts-ignore\r\n accessor: 'col_STATE_ID',\r\n // @ts-ignore\r\n Cell: (props) => {props.state},\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('cidade'),\r\n // @ts-ignore\r\n accessor: 'col_CITY_NAME',\r\n // @ts-ignore\r\n Cell: (props) => {props.city},\r\n HeaderCell: orderColumn,\r\n });\r\n if (profile.viewMultipleClients) {\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('cliente'),\r\n // @ts-ignore\r\n accessor: 'col_CLIENT_NAME',\r\n // @ts-ignore\r\n Cell: (props) => (props.CLIENT_NAME ? {props.CLIENT_NAME} : '-'),\r\n HeaderCell: orderColumn,\r\n });\r\n }\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('unidade'),\r\n // @ts-ignore\r\n accessor: 'col_UNIT_NAME',\r\n // @ts-ignore\r\n Cell: (props) => <>{props.unit && props.unit.id && props.unit.name ? {props.unit.name} : '-'},\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('ambiente'),\r\n // @ts-ignore\r\n accessor: 'col_ROOM_NAME',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.measuring_point.length > 1\r\n ? (\r\n \r\n {(props.environment && props.environment.length > 100 ? (props.environment).slice(0, 100).concat('...') : props.environment || '-')}\r\n \r\n )\r\n : (\r\n {(props.environment && props.environment.length > 100 ? (props.environment).slice(0, 100).concat('...') : props.environment || '-')}\r\n )}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('dispositivo'),\r\n // @ts-ignore\r\n accessor: 'col_DEV_ID',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.unit.id && props.measuring_point\r\n ? (\r\n \r\n {props.measuring_point}\r\n \r\n )\r\n : ((!props.unit.id && props.measuring_point)\r\n ? (\r\n \r\n {props.measuring_point}\r\n \r\n )\r\n : (\r\n '-'\r\n ))}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('temperatura'),\r\n // @ts-ignore\r\n accessor: 'col_Temperature',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n \r\n {props.temperature}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('umidade'),\r\n // @ts-ignore\r\n accessor: 'col_Humidity',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.VARS?.includes('H') ? (\r\n <>\r\n \r\n {props.Humidity ? ` ${props.Humidity}%` : ' -'}\r\n \r\n ) : (\r\n -\r\n )}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: 'CO2',\r\n // @ts-ignore\r\n accessor: 'col_eCO2',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.eCO2}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('conexao'),\r\n // @ts-ignore\r\n accessor: 'col_status',\r\n // @ts-ignore\r\n Cell: (props) => {props.status},\r\n HeaderCell: orderColumn,\r\n });\r\n\r\n if (profile.manageAllClients) {\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: t('ultimaVezVisto'),\r\n // @ts-ignore\r\n accessor: 'col_lastCommTs',\r\n // @ts-ignore\r\n Cell: (props) => (props.lastCommTs || '-'),\r\n HeaderCell: orderColumn,\r\n });\r\n }\r\n\r\n if (profile.manageAllClients) {\r\n columnsDesktop.push({\r\n // @ts-ignore\r\n Header: '',\r\n // @ts-ignore\r\n accessor: 'col_selection',\r\n // @ts-ignore\r\n Cell: (props) => { props.checked = !props.checked; render(); }} />,\r\n });\r\n }\r\n\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: t('dispositivo'),\r\n // @ts-ignore\r\n accessor: 'measuring_point',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n {props.unit.id && props.measuring_point\r\n ? (\r\n \r\n {props.measuring_point}\r\n \r\n )\r\n : ((!props.unit.id && props.measuring_point)\r\n ? (\r\n \r\n {props.measuring_point}\r\n \r\n )\r\n : (\r\n '-'\r\n ))}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: 'Temp',\r\n // @ts-ignore\r\n accessor: 'col_Temperature',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n \r\n {props.temperature}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: 'Umid',\r\n // @ts-ignore\r\n accessor: 'col_Humidity',\r\n // @ts-ignore\r\n Cell: (props) => (\r\n <>\r\n \r\n {props.humidity}\r\n \r\n ),\r\n HeaderCell: orderColumn,\r\n });\r\n columnsMobile.push({\r\n // @ts-ignore\r\n Header: t('conexao'),\r\n // @ts-ignore\r\n accessor: 'col_status',\r\n // @ts-ignore\r\n Cell: (props) => {props.status},\r\n HeaderCell: orderColumn,\r\n });\r\n\r\n return [columnsDesktop, columnsMobile];\r\n }, []);\r\n\r\n function verifyExist(item) {\r\n if (item) return item;\r\n return '-';\r\n }\r\n\r\n function formatDut(list) {\r\n for (const dut of list) {\r\n // @ts-ignore\r\n if (dut.lastCommTs) { dut.lastCommTs = dut.lastCommTs.replace('T', ' '); }\r\n Object.assign(dut, {\r\n Humidity: dut.Humidity ? dut.Humidity.toString() : '-',\r\n state: verifyExist(dut.STATE_ID),\r\n city: verifyExist(dut.CITY_NAME),\r\n unit: { id: dut.UNIT_ID, name: dut.UNIT_NAME } || '-',\r\n environment: dut.ROOM_NAME,\r\n measuring_point: verifyExist(dut.DEV_ID),\r\n temperature: (dut.Temperature != null) ? `${formatNumberWithFractionDigits(dut.Temperature)}°C` : ' -',\r\n humidity: dut.Humidity ? `${formatNumberWithFractionDigits(dut.Humidity)}%` : ' -',\r\n eCO2: dut.eCO2 ? `${formatNumberWithFractionDigits(dut.eCO2, { minimum: 0, maximum: 0 })} ppm` : '-',\r\n status: verifyExist(dut.status),\r\n });\r\n }\r\n }\r\n\r\n const CSVHeader = [\r\n { label: t('cliente'), key: 'CLIENT_NAME' },\r\n { label: t('estado'), key: 'state' },\r\n { label: t('cidade'), key: 'city' },\r\n { label: t('unidade'), key: 'unit' },\r\n { label: t('ambiente'), key: 'environment' },\r\n { label: t('dispositivo'), key: 'measuring' },\r\n { label: t('temperatura'), key: 'temperature' },\r\n { label: t('umidade'), key: 'humidity' },\r\n { label: t('conexao'), key: 'status' },\r\n { label: t('ultimoVisto'), key: 'lastCommTs' },\r\n ];\r\n\r\n function onColumnClick(column: { accessor: string }) {\r\n if (state.orderBy && (state.orderBy[1] === 'ASC') && (state.orderBy[0] === column.accessor)) {\r\n state.orderBy = [column.accessor, 'DESC'];\r\n } else {\r\n state.orderBy = [column.accessor, 'ASC'];\r\n }\r\n render();\r\n handleGetDUTS();\r\n }\r\n\r\n function getParamsToCallEnvironmentsListPage() {\r\n const params = {\r\n INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients || !!profile.permissions.isInstaller,\r\n SKIP: (state.tablePage - 1) * state.tablePageSize,\r\n LIMIT: state.tablePageSize,\r\n // @ts-ignore\r\n searchTerms: state.selectedDevId ? [state.selectedDevId] : [],\r\n // @ts-ignore\r\n ownershipFilter: (state.ownershipFilter?.value) || undefined,\r\n stateIds: (state.selectedState.length > 0) ? ajustParams(state.selectedState) : undefined,\r\n cityIds: (state.selectedCity.length > 0) ? ajustParams(state.selectedCity) : undefined,\r\n unitIds: (state.selectedUnit.length > 0) ? ajustParams(state.selectedUnit) : undefined,\r\n clientIds: (state.selectedClientFilter.length > 0) ? ajustParams(state.selectedClientFilter) : undefined,\r\n temprtAlerts: (state.selectedTemperature.length > 0) ? state.selectedTemperature : undefined,\r\n status: (state.selectedConnection.length > 0) ? state.selectedConnection : undefined,\r\n searchEnvironment: state.searchState || undefined,\r\n orderByProp: state.orderBy && state.orderBy[0]?.substring('col_'.length) || undefined,\r\n orderByDesc: (state.orderBy && state.orderBy[1] === 'DESC') || undefined,\r\n };\r\n\r\n return params;\r\n }\r\n const handleGetDUTS = async () => {\r\n try {\r\n setState({ isLoading: true });\r\n if (state.needFilter !== null) setState({ needFilter: false });\r\n loadSessionFilters();\r\n const [\r\n { list, totalItems },\r\n ] = await Promise.all([\r\n apiCall('/get-environments-list-page', getParamsToCallEnvironmentsListPage()),\r\n ]);\r\n await checkDutsLimits(list);\r\n formatDut(list);\r\n setState({ invisibleDuts: list.filter((item) => item.ISVISIBLE !== 1) });\r\n const invisibleDutsCount = state.invisibleDuts ? state.invisibleDuts.length : 0;\r\n state.totalItems = totalItems - invisibleDutsCount;\r\n // @ts-ignore\r\n setState({ environments: list.filter((item) => item.ISVISIBLE === 1) });\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroDados'));\r\n } finally {\r\n if (state.needFilter === null) setState({ needFilter: true });\r\n setState({ isLoading: false });\r\n }\r\n };\r\n\r\n const getCsvData = async () => {\r\n state.isLoading = true; render();\r\n\r\n apiCall('/dut/get-duts-list', {\r\n INCLUDE_INSTALLATION_UNIT: !!profile.manageAllClients || !!profile.permissions.isInstaller,\r\n }).then(({ list }) => {\r\n const formatterCSV = list.map((dut) => ({\r\n CLIENT_NAME: dut.CLIENT_NAME || '-',\r\n state: dut.STATE_ID || '-',\r\n city: dut.CITY_NAME || '-',\r\n unit: dut.UNIT_NAME || '-',\r\n environment: dut.ROOM_NAME || '-',\r\n measuring: dut.DEV_ID || '-',\r\n temperature: (dut.Temperature != null) ? `${formatNumberWithFractionDigits(dut.Temperature)}` : '-',\r\n humidity: dut.Humidity || '-',\r\n status: dut.status || '-',\r\n // @ts-ignore\r\n lastCommTs: (dut.lastCommTs && dut.lastCommTs.replace('T', ' ')) || '-',\r\n }));\r\n\r\n // @ts-ignore\r\n state.csvData = formatterCSV;\r\n state.isLoading = false; render();\r\n\r\n setTimeout(() => {\r\n (csvLinkEl as any).current.link.click();\r\n }, 1000);\r\n });\r\n };\r\n\r\n const onPageChange = (page) => {\r\n state.tablePage = page;\r\n render();\r\n handleGetDUTS();\r\n };\r\n\r\n const awaitData = async () => {\r\n try {\r\n const { list: clientlist } = await apiCall('/clients/get-clients-list', {});\r\n state.clientsList = clientlist;\r\n handleGetDUTS();\r\n } catch (error) {\r\n console.log(error); toast.error(t('houveErro'));\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n state.tablePage = 1;\r\n render();\r\n if (!profile.manageAllClients && !profile.manageSomeClient) {\r\n awaitData();\r\n }\r\n }, [state.ownershipFilter]);\r\n\r\n return (\r\n <>\r\n \r\n {t('dielEnergiaAmbientes')}\r\n \r\n \r\n { state.tablePage = 1; handleGetDUTS(); }}\r\n setState={setState}\r\n clearFilter={clearFilters}\r\n exportFunc={getCsvData}\r\n csvHeader={CSVHeader}\r\n listFilters={['tipo', 'estado', 'cidade', 'unidade', 'cliente', 'conexao', 'temperatura', 'id', 'search']}\r\n searchLabel={t('ambientes')}\r\n lengthArrayResult={state.environments.length}\r\n />\r\n \r\n
\r\n \r\n
\r\n
\r\n {state.needFilter && (\r\n <>\r\n \r\n \r\n )}\r\n {state.isLoading\r\n ? (\r\n \r\n \r\n \r\n )\r\n : !state.needFilter && (\r\n <>\r\n \r\n {state.environments\r\n ? (\r\n \r\n )\r\n : (\r\n \r\n \r\n {t('erroDados')}\r\n \r\n \r\n )}\r\n \r\n \r\n {state.environments\r\n ? (\r\n \r\n )\r\n : (\r\n \r\n \r\n {t('erroDados')}\r\n \r\n \r\n )}\r\n \r\n \r\n )}\r\n {(state.wantSetClient)\r\n && (\r\n // @ts-ignore\r\n \r\n

{t('selecioneOCliente')}

\r\n { state.selectedClient = item; render(); }}\r\n />\r\n
\r\n \r\n {/* @ts-ignore */}\r\n \r\n
\r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('Environments', 'component')(Environments);\r\n","import { parseProgrammingString } from '~/helpers/scheduleData';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport default async function checkDutsLimits(duts: S) {\r\n const { rtypes } = await apiCall('/clients/get-roomtypes-list', {});\r\n return duts.map((dut) => {\r\n const rtype = rtypes.find((x) => x.RTYPE_ID === dut.RTYPE_ID);\r\n const workPeriods = rtype && { ...rtype.workPeriods, ...rtype.workPeriodExceptions };\r\n\r\n let USEPERIOD_INDEX_INI: number|undefined;\r\n let USEPERIOD_INDEX_END: number|undefined;\r\n let specialColor: string|undefined;\r\n\r\n if (rtype && workPeriods && dut.Temperature != null) {\r\n const nowShifted = new Date(Date.now() - 3 * 60 * 60 * 1000);\r\n const todayWeek = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'][nowShifted.getUTCDay()];\r\n const todayDate = nowShifted.toISOString().substr(0, 10);\r\n const todaySchedule = workPeriods[todayDate] || workPeriods[todayWeek];\r\n if (todaySchedule) {\r\n const pData = parseProgrammingString(todaySchedule);\r\n if ((!pData.isDefault) && pData.type === 'enabled') {\r\n const indexIni = Number(pData.startHM.substr(0, 2)) * 60 + Number(pData.startHM.substr(3, 2)) * 1;\r\n const indexEnd = Number(pData.endHM.substr(0, 2)) * 60 + Number(pData.endHM.substr(3, 2)) * 1;\r\n USEPERIOD_INDEX_INI = indexIni;\r\n USEPERIOD_INDEX_END = indexEnd;\r\n const nowIndex = nowShifted.getUTCHours() * 60 + nowShifted.getUTCMinutes() * 1;\r\n if (nowIndex >= indexIni && nowIndex <= indexEnd) {\r\n if (rtype.TUSEMIN != null && dut.Temperature < rtype.TUSEMIN) {\r\n specialColor = colors.LightBlue;\r\n }\r\n if (rtype.TUSEMAX != null && dut.Temperature > rtype.TUSEMAX) {\r\n specialColor = colors.Red;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return Object.assign(dut, {\r\n rtype,\r\n TUSEMIN: rtype && rtype.TUSEMIN,\r\n TUSEMAX: rtype && rtype.TUSEMAX,\r\n RTYPE_NAME: rtype && rtype.RTYPE_NAME,\r\n workPeriods,\r\n USEPERIOD_INDEX_INI,\r\n USEPERIOD_INDEX_END,\r\n specialColor,\r\n });\r\n });\r\n}\r\n","import { useEffect } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { apiCall, ApiResps } from '~/providers';\r\n\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nconst profile = getUserProfile();\r\n\r\nexport const useFilter = () => {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n isLoading: true,\r\n dacs_all: [] as ApiResps['/dac/get-dacs-list']['list'],\r\n duts_all: [] as ApiResps['/dut/get-duts-list']['list'],\r\n dams_all: [] as ApiResps['/dam/get-dams-list']['list'],\r\n dacs_filt: [] as ApiResps['/dac/get-dacs-list']['list'],\r\n duts_filt: [] as ApiResps['/dut/get-duts-list']['list'],\r\n dams_filt: [] as ApiResps['/dam/get-dams-list']['list'],\r\n countriesPositions: [] as ApiResps['/dac/get-countries-list']['list'],\r\n statesPositions: [] as ApiResps['/dac/get-states-list']['list'],\r\n citiesPositions: [] as ApiResps['/dac/get-cities-list']['list'],\r\n optionsCountry: [] as string[],\r\n optionsState: [] as string[],\r\n optionsCity: [] as string[],\r\n optionsUnits: [] as string[],\r\n filters: {\r\n country: null as null|string,\r\n state: null as null|string,\r\n city: null as null|string,\r\n unit: null as null|string,\r\n },\r\n });\r\n\r\n async function handleGetDacs() {\r\n const permissionsIncludeInstallationUnit = !!profile.manageAllClients || !!profile.permissions.isInstaller;\r\n try {\r\n const [\r\n responseDacs,\r\n responseDuts,\r\n responseCountries,\r\n responseStates,\r\n responseCities,\r\n ] = await Promise.all([\r\n apiCall('/dac/get-dacs-list', {\r\n includeHealthDesc: true,\r\n includeCapacityKW: true,\r\n INCLUDE_INSTALLATION_UNIT: permissionsIncludeInstallationUnit,\r\n }),\r\n apiCall('/dut/get-duts-list', {\r\n INCLUDE_INSTALLATION_UNIT: permissionsIncludeInstallationUnit,\r\n }),\r\n apiCall('/dac/get-countries-list', {}),\r\n apiCall('/dac/get-states-list', {}),\r\n apiCall('/dac/get-cities-list', {}),\r\n ]);\r\n\r\n state.dacs_all = (responseDacs && responseDacs.list.filter((item) => item.STATE_NAME && item.CITY_NAME && item.UNIT_NAME)) || [];\r\n state.duts_all = (responseDuts && responseDuts.list.filter((item) => item.STATE_NAME && item.CITY_NAME && item.UNIT_NAME)) || [];\r\n state.countriesPositions = (responseCountries?.list) || [];\r\n state.statesPositions = (responseStates?.list) || [];\r\n state.citiesPositions = (responseCities?.list) || [];\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erroCarregarDadosMaquinasAmbientesMonitorados'));\r\n }\r\n handleSelect();\r\n setState({ isLoading: false });\r\n }\r\n\r\n function handleSelect(filter?: { type, value }) {\r\n if (filter?.type === 'country') {\r\n state.filters.state = '';\r\n state.filters.city = '';\r\n state.filters.unit = '';\r\n state.filters.country = filter.value || '';\r\n }\r\n\r\n else if (filter?.type === 'state') {\r\n state.filters.city = '';\r\n state.filters.unit = '';\r\n state.filters.state = filter?.value || '';\r\n }\r\n\r\n else if (filter?.type === 'city') {\r\n state.filters.unit = '';\r\n state.filters.city = filter?.value || '';\r\n }\r\n\r\n else if (filter?.type === 'unit') {\r\n state.filters.unit = filter?.value || '';\r\n }\r\n\r\n state.dacs_filt = handleFilterChanged(state.dacs_all.filter((item) => item.DAC_ID));\r\n state.duts_filt = handleFilterChanged(state.duts_all.filter((item) => item.DEV_ID));\r\n state.dams_filt = state.dams_all;\r\n\r\n const options = [...state.dacs_filt, ...state.duts_filt];\r\n state.optionsCountry = Array.from(new Set(handleFilterCountry(options)));\r\n if (!filter?.type || filter?.type === 'country') state.optionsState = Array.from(new Set(handleFilterState(options)));\r\n if (!filter?.type || filter?.type === 'country' || filter?.type === 'state') state.optionsCity = Array.from(new Set(handleFilterCity(options)));\r\n if (!filter?.type || filter?.type === 'country' || filter?.type === 'state' || filter?.type === 'city') state.optionsUnits = Array.from(new Set(handleFilterUnit(options)));\r\n\r\n render();\r\n }\r\n\r\n function handleFilterChanged(array: T[]) {\r\n return array.filter((item) => {\r\n if (state.filters.country && state.filters.country !== item.COUNTRY_NAME) {\r\n return false;\r\n }\r\n if (state.filters.state && state.filters.state !== item.STATE_NAME) {\r\n return false;\r\n }\r\n if (state.filters.city && state.filters.city !== item.CITY_NAME) {\r\n return false;\r\n }\r\n if (state.filters.unit && state.filters.unit !== item.UNIT_NAME) {\r\n return false;\r\n }\r\n return true;\r\n });\r\n }\r\n\r\n function handleFilterCountry(array: { UNIT_NAME: string, CITY_NAME: string, STATE_NAME: string, COUNTRY_NAME: string }[]): string[] {\r\n return array.filter((item) => {\r\n if (state.filters.state && state.filters.state !== item.STATE_NAME) {\r\n return false;\r\n }\r\n if (state.filters.city && state.filters.city !== item.CITY_NAME) {\r\n return false;\r\n }\r\n if (state.filters.unit && state.filters.unit !== item.UNIT_NAME) {\r\n return false;\r\n }\r\n\r\n return true;\r\n })\r\n .map((item) => item.COUNTRY_NAME).sort();\r\n }\r\n\r\n function handleFilterState(array: { UNIT_NAME: string, CITY_NAME: string, STATE_NAME: string, COUNTRY_NAME: string }[]): string[] {\r\n return array.filter((item) => {\r\n if (state.filters.country && state.filters.country !== item.COUNTRY_NAME) {\r\n return false;\r\n }\r\n if (state.filters.city && state.filters.city !== item.CITY_NAME) {\r\n return false;\r\n }\r\n if (state.filters.unit && state.filters.unit !== item.UNIT_NAME) {\r\n return false;\r\n }\r\n\r\n return true;\r\n })\r\n .map((item) => item.STATE_NAME).sort();\r\n }\r\n\r\n function handleFilterCity(array: { UNIT_NAME: string, CITY_NAME: string, STATE_NAME: string, COUNTRY_NAME: string }[]): string[] {\r\n return array.filter((item) => {\r\n if (state.filters.country && state.filters.country !== item.COUNTRY_NAME) {\r\n return false;\r\n }\r\n if (state.filters.state && state.filters.state !== item.STATE_NAME) {\r\n return false;\r\n }\r\n if (state.filters.unit && state.filters.unit !== item.UNIT_NAME) {\r\n return false;\r\n }\r\n\r\n return true;\r\n })\r\n .map((item) => item.CITY_NAME).sort();\r\n }\r\n\r\n function handleFilterUnit(array: { UNIT_NAME: string, CITY_NAME: string, STATE_NAME: string, COUNTRY_NAME: string }[]): string[] {\r\n return array.filter((item) => {\r\n if (state.filters.country && state.filters.country !== item.COUNTRY_NAME) {\r\n return false;\r\n }\r\n if (state.filters.state && state.filters.state !== item.STATE_NAME) {\r\n return false;\r\n }\r\n if (state.filters.city && state.filters.city !== item.CITY_NAME) {\r\n return false;\r\n }\r\n\r\n return true;\r\n })\r\n .map((item) => item.UNIT_NAME).sort();\r\n }\r\n\r\n useEffect(() => {\r\n handleGetDacs();\r\n }, []);\r\n\r\n return { ...state, handleSelect };\r\n};\r\n","import { useState, useEffect } from 'react';\r\n\r\nexport const useDebounce = (value: Value, delay: number): Value => {\r\n const [debouncedValue, setDebouncedValue] = useState(value);\r\n\r\n useEffect(() => {\r\n const handler = setTimeout(() => {\r\n setDebouncedValue(value);\r\n }, delay);\r\n\r\n return () => {\r\n clearTimeout(handler);\r\n };\r\n }, [value, delay]);\r\n\r\n return debouncedValue;\r\n};\r\n","export default __webpack_public_path__ + \"static/media/marker.f8b8ad39.svg\";","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const StyledSpan = styled.span`\r\ndisplay: flex;\r\nflex-direction: column;\r\ntext-align: center;\r\nmargin-top: 5px;\r\n`;\r\n\r\nexport const MapCard = styled.div`\r\nborder-radius: 16px;\r\noverflow: hidden;\r\n`;\r\n\r\nexport const PopupContainer = styled.div`\r\ndisplay: flex;\r\nflex-direction: column;\r\n`;\r\n\r\nexport const Title = styled.span`\r\nfont-weight: bold;\r\n`;\r\n\r\nexport const DesktopWrapper = styled.div`\r\ndisplay: none;\r\n@media (min-width: 768px) {\r\n display: block;\r\n}\r\n`;\r\n\r\nexport const MobileWrapper = styled.div`\r\ndisplay: block;\r\n@media (min-width: 768px) {\r\n display: none;\r\n}\r\n`;\r\n\r\nexport const ModalMobile = styled.div<{ isModalOpen }>(\r\n ({ isModalOpen }) => `\r\ndisplay:${isModalOpen ? 'block' : 'none'};\r\nposition: fixed;\r\ntop: 0;\r\nleft: 0;\r\nbackground-color: ${colors.White};\r\nwidth: 100%;\r\nheight: 100vh;\r\nz-index: 1;\r\noverflow: hidden;\r\ntransition: all .5s ease-in-out;\r\n`,\r\n);\r\n\r\nexport const ModalTitle = styled.span`\r\nfont-weight: bold;\r\nfont-size: 1.25em;\r\nline-height: 27px;\r\ncolor: ${colors.Grey400};\r\n`;\r\n\r\nexport const ModalTitleContainer = styled.div`\r\ndisplay: flex;\r\njustify-content: space-between;\r\nalign-items: center;\r\nheight: 100%;\r\nwidth: 100%;\r\npadding: 16px;\r\nsvg {\r\n cursor: pointer;\r\n}\r\n`;\r\n\r\nexport const ModalSection = styled.div`\r\nwidth: 100%;\r\nheight: 80px;\r\nbackground: ${colors.Grey030};\r\nborder-bottom: 2px solid ${colors.Grey100};\r\nbox-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);\r\n`;\r\n\r\nexport const ControlFilter = styled.div`\r\n border: 1px solid #E9E9E9;\r\n border-radius: 5px;\r\n background-color: #ffffff;\r\n padding: 6px 10px;\r\n user-select: none;\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n flex-wrap: nowrap;\r\n z-index: 1;\r\n &:hover {\r\n cursor: pointer;\r\n background-color: ${colors.BlueSecondary};\r\n color: white;\r\n svg path {\r\n fill: white !important;\r\n }\r\n }\r\n`;\r\n\r\nexport const Label = styled.label`\r\n position: relative;\r\n display: inline-block;\r\n width: 100%;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: #202370;\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n\r\nexport const ContainerSearch = styled.div`\r\n width: 100%;\r\n padding-top: 3;\r\n padding-bottom: 3;\r\n min-width: 80px;\r\n border: 1px solid #E9E9E9;\r\n max-width: 200px;\r\n border-radius: 3px;\r\n background-color: #ffff;\r\n margin-left: 10px;\r\n margin-bottom: 10px;\r\n width: 220px;\r\n padding: 3px;\r\n\r\n @media (max-width: 770px) {\r\n min-width: 100%;\r\n justify-content: space-between;\r\n margin: 0;\r\n margin-bottom: 10px;\r\n }\r\n`;\r\n","import { useState } from 'react';\r\n\r\nimport LeafletIcon from 'leaflet';\r\nimport 'leaflet/dist/leaflet.css';\r\nimport { Helmet } from 'react-helmet';\r\nimport {\r\n Map, TileLayer, Marker, Popup,\r\n} from 'react-leaflet';\r\nimport { Link } from 'react-router-dom';\r\nimport { Flex, Box } from 'reflexbox';\r\nimport 'react-leaflet-markercluster/dist/styles.min.css';\r\n\r\nimport { useFilter } from 'hooks';\r\nimport MarkerIcon from '~/assets/img/marker.svg';\r\nimport {\r\n Button, EmptyWrapper, Loader,\r\n} from '~/components';\r\nimport {\r\n CloseIcon,\r\n FilterIcon,\r\n ArrowDownIconV2,\r\n ArrowUpIconV2,\r\n} from '~/icons';\r\nimport { AnalysisLayout } from '~/pages/Analysis/AnalysisLayout';\r\nimport { useTranslation } from 'react-i18next';\r\nimport {\r\n StyledSpan,\r\n MapCard,\r\n PopupContainer,\r\n Title,\r\n DesktopWrapper,\r\n MobileWrapper,\r\n ModalMobile,\r\n ModalTitle,\r\n ModalTitleContainer,\r\n ModalSection,\r\n ControlFilter,\r\n Label,\r\n ContainerSearch,\r\n} from './styles';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { colors } from '~/styles/colors';\r\nimport SelectSearch from 'react-select-search';\r\nimport { CleanBtn, FiltersContainer } from '../Utilities/UtilityFilter/styles';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { AnalysisEmpty } from '../AnalysisEmpty';\r\n\r\nexport const Geolocation = (): JSX.Element => {\r\n const [center, setCenter] = useState([-15.533773, -55.62529]);\r\n const [zoom, setZoom] = useState(4);\r\n const { t } = useTranslation();\r\n const [isModalOpen, setIsModalOpen] = useState(false);\r\n const profile = getUserProfile();\r\n const [state, render] = useStateVar(() => {\r\n const state = {\r\n showFilter: true as boolean,\r\n isDisabledButton: true as boolean,\r\n selectedUnit: '',\r\n selectedCountry: '',\r\n selectedState: '',\r\n selectedCity: '',\r\n needFilter: profile.manageAllClients || profile.manageSomeClient,\r\n };\r\n return state;\r\n });\r\n const {\r\n filters,\r\n citiesPositions,\r\n statesPositions,\r\n countriesPositions,\r\n isLoading,\r\n handleSelect,\r\n optionsCountry,\r\n optionsState,\r\n optionsCity,\r\n optionsUnits,\r\n duts_filt: duts,\r\n dacs_filt: machines,\r\n } = useFilter();\r\n\r\n const dutsAndMachines = [...duts, ...machines];\r\n\r\n delete LeafletIcon.Icon.Default.prototype._getIconUrl;\r\n\r\n const fac = (4 / 20) * 0.7 + 0.3;\r\n LeafletIcon.Icon.Default.mergeOptions({\r\n iconUrl: MarkerIcon,\r\n iconRetinaUrl: MarkerIcon,\r\n iconSize: [55 * fac, 60 * fac],\r\n iconAnchor: [(55 * fac) / 2, 60 * fac],\r\n shadowSize: [0, 0],\r\n });\r\n\r\n const trocouZoom = (e) => {\r\n // console.log('c', e)\r\n const map = e.target;\r\n const layers = map._layers;\r\n const fac = (map._zoom / 20) * 0.7 + 0.3;\r\n const i2 = new LeafletIcon.Icon.Default({\r\n iconSize: [55 * fac, 60 * fac],\r\n iconAnchor: [(55 * fac) / 2, 60 * fac],\r\n });\r\n for (const layerId in layers) {\r\n const layer = layers[layerId];\r\n // console.log(layer.setIcon, layer._setIcon, layer)\r\n if (!layer._icon) continue;\r\n const icon = layer._icon;\r\n if (!icon.className) continue;\r\n if (!icon.className.includes('leaflet-marker-icon')) continue;\r\n // icon.style.width = '30px'\r\n // icon.style.height = '30px'\r\n layer.setIcon(i2);\r\n }\r\n };\r\n\r\n const setToInitialStateMap = () => {\r\n setCenter([-14.235004, -51.92528]);\r\n return setZoom(4);\r\n };\r\n\r\n const handleMapGeolocation = () => {\r\n state.needFilter = false;\r\n state.showFilter = false;\r\n render();\r\n };\r\n\r\n const handleSelectGeolocation = ({ type, value }) => {\r\n state.isDisabledButton = false;\r\n handleSelect({ type, value });\r\n switch (type) {\r\n case 'country': return handleSelectCountry(value);\r\n case 'state': return handleSelectState(value);\r\n case 'city': return handleSelectCity(value);\r\n case 'unit': return handleSelectUnit(value);\r\n }\r\n };\r\n\r\n const handleSelectCountry = (value) => {\r\n const selectedCountry = value && countriesPositions.find((item) => item.name === value);\r\n if (selectedCountry) {\r\n setZoom(4);\r\n return setCenter([Number(selectedCountry.lat), Number(selectedCountry.lon)]);\r\n }\r\n return setToInitialStateMap();\r\n };\r\n\r\n const handleSelectState = (value) => {\r\n const selectedState = value && statesPositions.find((item) => item.fullName === value);\r\n if (selectedState) {\r\n setZoom(6);\r\n return setCenter([Number(selectedState.lat), Number(selectedState.lon)]);\r\n }\r\n\r\n const selectedCountry = filters.country && countriesPositions.find((item) => item.name === filters.country);\r\n if (selectedCountry) {\r\n setZoom(4);\r\n return setCenter([Number(selectedCountry.lat), Number(selectedCountry.lon)]);\r\n }\r\n\r\n return setToInitialStateMap();\r\n };\r\n\r\n const handleSelectCity = (value) => {\r\n const selectedCity = value && citiesPositions.find((item) => item.name === value);\r\n if (selectedCity) {\r\n setZoom(11);\r\n return setCenter([Number(selectedCity.lat), Number(selectedCity.lon)]);\r\n }\r\n\r\n const selectedState = filters.state && statesPositions.find((item) => item.fullName === filters.state);\r\n if (selectedState) {\r\n setZoom(6);\r\n return setCenter([Number(selectedState.lat), Number(selectedState.lon)]);\r\n }\r\n\r\n const selectedCountry = filters.country && countriesPositions.find((item) => item.name === filters.country);\r\n if (selectedCountry) {\r\n setZoom(4);\r\n return setCenter([Number(selectedCountry.lat), Number(selectedCountry.lon)]);\r\n }\r\n\r\n return setToInitialStateMap();\r\n };\r\n\r\n const handleSelectUnit = (value) => {\r\n const selectedUnit = value && dutsAndMachines.find((item) => item.UNIT_NAME === value);\r\n if (selectedUnit) {\r\n setCenter([Number(selectedUnit.LAT), Number(selectedUnit.LON)]);\r\n return setZoom(16);\r\n }\r\n\r\n const selectedCity = filters.city && citiesPositions.find((item) => item.name === filters.city);\r\n if (selectedCity) {\r\n setCenter([Number(selectedCity.lat), Number(selectedCity.lon)]);\r\n return setZoom(11);\r\n }\r\n\r\n const selectedState = filters.state && statesPositions.find((item) => item.fullName === filters.state);\r\n if (selectedState) {\r\n setCenter([Number(selectedState.lat), Number(selectedState.lon)]);\r\n return setZoom(6);\r\n }\r\n\r\n const selectedCountry = filters.country && countriesPositions.find((item) => item.name === filters.country);\r\n if (selectedCountry) {\r\n setZoom(4);\r\n return setCenter([Number(selectedCountry.lat), Number(selectedCountry.lon)]);\r\n }\r\n\r\n return setToInitialStateMap();\r\n };\r\n\r\n function clearFilters() {\r\n state.selectedCountry = '';\r\n state.selectedCity = '';\r\n state.selectedState = '';\r\n state.selectedUnit = '';\r\n state.needFilter = true;\r\n state.isDisabledButton = true;\r\n render();\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {t('dielEnergiaGeolocalizacao')}\r\n \r\n \r\n {isLoading\r\n ? (\r\n \r\n \r\n \r\n )\r\n : (\r\n <>\r\n \r\n \r\n\r\n {state.needFilter\r\n ? \r\n : (\r\n \r\n \r\n \r\n {dutsAndMachines.map(\r\n (machine) => machine.LAT\r\n && machine.LON && (\r\n \r\n \r\n \r\n \r\n {`${t('unidade')}: `}\r\n \r\n {machine.UNIT_NAME}\r\n \r\n \r\n \r\n {`${t('estado')}: `}\r\n {' '}\r\n {machine.STATE_ID}\r\n \r\n \r\n {`${t('cidade')}: `}\r\n {' '}\r\n {machine.CITY_NAME}\r\n \r\n \r\n \r\n \r\n ),\r\n )}\r\n \r\n \r\n )}\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nfunction FilterGeo({\r\n handleMapGeolocation,\r\n handleSelectGeolocation,\r\n t,\r\n optionsCountry,\r\n filters,\r\n optionsState,\r\n optionsUnits,\r\n optionsCity,\r\n state,\r\n clearFilters,\r\n}) {\r\n return (\r\n <>\r\n
\r\n \r\n { handleMapGeolocation(); }}\r\n >\r\n {t('botaoAnalisar')}\r\n \r\n
\r\n
\r\n { clearFilters(); }}>\r\n {t('limparFiltrosCap')}\r\n \r\n
\r\n \r\n );\r\n}\r\n\r\nfunction SearchsGeoloc({\r\n handleSelectGeolocation,\r\n t,\r\n optionsCountry,\r\n filters,\r\n optionsState,\r\n optionsUnits,\r\n optionsCity,\r\n state,\r\n}) {\r\n const profile = getUserProfile();\r\n return (\r\n <>\r\n \r\n \r\n { handleSelectGeolocation({ type: 'country', value: e }); state.selectedCountry = e; }}\r\n options={optionsCountry.map((item) => ({ value: item, name: item }))}\r\n value={state.selectedCountry}\r\n placeholder={t('pais')}\r\n />\r\n \r\n \r\n \r\n { handleSelectGeolocation({ type: 'state', value: e }); state.selectedState = e; }}\r\n options={optionsState.map((item) => ({ value: item, name: item }))}\r\n value={state.selectedState}\r\n disabled={profile.manageAllClients ? !filters.country : false}\r\n placeholder={t('estado')}\r\n />\r\n \r\n \r\n \r\n { handleSelectGeolocation({ type: 'city', value: e }); state.selectedCity = e; }}\r\n options={optionsCity.map((item) => ({ value: item, name: item }))}\r\n value={state.selectedCity}\r\n disabled={profile.manageAllClients ? !filters.state : false}\r\n placeholder={t('cidade')}\r\n />\r\n \r\n \r\n \r\n { handleSelectGeolocation({ type: 'unit', value: e }); state.selectedUnit = e; }}\r\n options={optionsUnits.map((item) => ({ value: item, name: item }))}\r\n value={state.selectedUnit}\r\n disabled={profile.manageAllClients ? !filters.city : false}\r\n placeholder={t('unidade')}\r\n />\r\n \r\n \r\n );\r\n}\r\n\r\nfunction DesktopGeoFilter({\r\n handleMapGeolocation,\r\n clearFilters,\r\n handleSelectGeolocation,\r\n t,\r\n optionsCountry,\r\n filters,\r\n optionsState,\r\n optionsUnits,\r\n optionsCity,\r\n state,\r\n render,\r\n}) {\r\n return (\r\n \r\n \r\n {\r\n state.showFilter && (\r\n \r\n \r\n
\r\n )\r\n }\r\n \r\n { state.showFilter = !state.showFilter; render(); }}>\r\n \r\n {t('filtros')}\r\n {state.showFilter ? : }\r\n \r\n \r\n );\r\n}\r\n\r\nfunction MobileGeoFilter({\r\n setIsModalOpen,\r\n isModalOpen,\r\n clearFilters,\r\n handleSelectGeolocation,\r\n t,\r\n optionsCountry,\r\n filters,\r\n optionsState,\r\n optionsUnits,\r\n optionsCity,\r\n state,\r\n}) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('filtrarPor')}\r\n setIsModalOpen(false)} />\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n { clearFilters(); }}\r\n style={{\r\n marginBottom: 10,\r\n marginTop: 10,\r\n }}\r\n >\r\n {t('limparFiltrosCap')}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport default withTransaction('Geolocation', 'component')(Geolocation);\r\n","export default __webpack_public_path__ + \"static/media/fan_0_off.b890d219.svg\";","export default __webpack_public_path__ + \"static/media/fan_1_low.e1047f6b.svg\";","export default __webpack_public_path__ + \"static/media/fan_2.ed75be48.svg\";","export default __webpack_public_path__ + \"static/media/fan_3.2986a186.svg\";","export default __webpack_public_path__ + \"static/media/fan_4_high.47df88e7.svg\";","export default __webpack_public_path__ + \"static/media/fan_auto.7355aadc.svg\";","export default __webpack_public_path__ + \"static/media/mode_auto.3584c6e4.svg\";","export default __webpack_public_path__ + \"static/media/mode_cool_off.4bb14ac2.svg\";","export default __webpack_public_path__ + \"static/media/mode_dry.d3f65ed3.svg\";","export default __webpack_public_path__ + \"static/media/mode_heat.bc6e7d9a.svg\";","export default __webpack_public_path__ + \"static/media/swing_1_low.f713b8a5.svg\";","export default __webpack_public_path__ + \"static/media/swing_2.8f3db404.svg\";","export default __webpack_public_path__ + \"static/media/swing_3.58e00a26.svg\";","export default __webpack_public_path__ + \"static/media/swing_4.fe03d207.svg\";","export default __webpack_public_path__ + \"static/media/swing_5_high.449d9f85.svg\";","export default __webpack_public_path__ + \"static/media/swing_auto.72e8392f.svg\";","export default __webpack_public_path__ + \"static/media/swing_off.3a7cf974.svg\";","import { ChangeEvent, useEffect, useState } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { toast } from 'react-toastify';\r\nimport { Flex } from 'reflexbox';\r\nimport styled from 'styled-components';\r\n\r\nimport img_fan_0_off from '~/assets/img/cool_ico/fan_0_off.svg';\r\nimport img_fan_1_low from '~/assets/img/cool_ico/fan_1_low.svg';\r\nimport img_fan_2 from '~/assets/img/cool_ico/fan_2.svg';\r\nimport img_fan_3 from '~/assets/img/cool_ico/fan_3.svg';\r\nimport img_fan_4_high from '~/assets/img/cool_ico/fan_4_high.svg';\r\nimport img_fan_auto from '~/assets/img/cool_ico/fan_auto.svg';\r\nimport img_mode_auto from '~/assets/img/cool_ico/mode_auto.svg';\r\nimport img_mode_cool from '~/assets/img/cool_ico/mode_cool.svg';\r\nimport img_mode_cool_off from '~/assets/img/cool_ico/mode_cool_off.svg';\r\nimport img_mode_dry from '~/assets/img/cool_ico/mode_dry.svg';\r\nimport img_mode_fan from '~/assets/img/cool_ico/mode_fan.svg';\r\nimport img_mode_heat from '~/assets/img/cool_ico/mode_heat.svg';\r\nimport img_power from '~/assets/img/cool_ico/power.svg';\r\nimport img_power_grey from '~/assets/img/cool_ico/power_grey.svg';\r\nimport img_schedule from '~/assets/img/cool_ico/schedule.svg';\r\nimport img_swing_1_low from '~/assets/img/cool_ico/swing_1_low.svg';\r\nimport img_swing_2 from '~/assets/img/cool_ico/swing_2.svg';\r\nimport img_swing_3 from '~/assets/img/cool_ico/swing_3.svg';\r\nimport img_swing_4 from '~/assets/img/cool_ico/swing_4.svg';\r\nimport img_swing_5_high from '~/assets/img/cool_ico/swing_5_high.svg';\r\nimport img_swing_auto from '~/assets/img/cool_ico/swing_auto.svg';\r\nimport img_swing_off from '~/assets/img/cool_ico/swing_off.svg';\r\nimport {\r\n Button,\r\n Input,\r\n Loader,\r\n ModalWindow,\r\n ToggleSwitch,\r\n} from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { EditIcon } from '~/icons';\r\nimport { SmallTrashIcon } from '~/icons/Trash';\r\nimport { apiCall, ApiResps } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport {\r\n Bluebar, NotyIconStyle, NotyNumStyle, SchedCardContainer, Sidebar,\r\n} from './styles';\r\n\r\ninterface UnitInfo {\r\n id: string\r\n name: string\r\n system: string\r\n site: string\r\n type: number\r\n activeOperationMode: number\r\n activeSetpoint: number\r\n ambientTemperature: number\r\n activeOperationStatus: number\r\n activeFanMode: number\r\n activeSwingMode: number\r\n}\r\n\r\nexport interface ScheduleInfo {\r\n id: string\r\n name: string\r\n isDisabled: boolean\r\n powerOnTime: number\r\n powerOffTime?: number\r\n setpoint: number\r\n days: ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[],\r\n units?: string[]\r\n}\r\n\r\nexport function convertCoolAutomationSchedTime(value: number|null|undefined) {\r\n if (value == null) return '';\r\n return `${String(Math.floor(value / 60)).padStart(2, '0')}:${String(value % 60).padStart(2, '0')}`;\r\n}\r\n\r\nfunction formatSchedules(scheds: ScheduleInfo[]|undefined) {\r\n const devsSched = {} as {\r\n [unitId: string]: ScheduleInfo[],\r\n };\r\n if (scheds) {\r\n for (const sched of scheds) {\r\n if (sched.units) {\r\n for (const unitId of sched.units) {\r\n if (!devsSched[unitId]) devsSched[unitId] = [sched];\r\n else devsSched[unitId].push(sched);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return devsSched;\r\n}\r\n\r\nexport function CoolAutomationRealTime(props: { devInfo: ApiResps['/get-integration-info']['info'], coolAutomation: ApiResps['/get-integration-info']['coolautomation'] }) : JSX.Element {\r\n // const {} = props;\r\n const { t } = useTranslation();\r\n const [width, setWidth] = useState(window.innerWidth);\r\n const [state, render, setState] = useStateVar({\r\n loading: true,\r\n loadingTelemetry: false,\r\n loadingSchedule: false,\r\n lastRefresh: 0,\r\n timerChangeSetpoint: null as null|NodeJS.Timeout,\r\n allUnits: [] as (UnitInfo & { schedules?: ScheduleInfo[] })[],\r\n indoorUnits: [] as (UnitInfo & { schedules?: ScheduleInfo[] })[],\r\n outdoorUnits: [] as (UnitInfo & { schedules?: ScheduleInfo[] })[],\r\n schedules: formatSchedules(props.coolAutomation?.schedules),\r\n showScheds: false as boolean,\r\n selectedScheds: props.coolAutomation?.schedules,\r\n selectedUnitId: null as null|string,\r\n unitLastTelemetry: null as null|({\r\n name: string;\r\n y: number;\r\n unit?: string;\r\n }[]),\r\n siteTemprt: null as number|null,\r\n floatingControlMode: null as null|{\r\n x: number\r\n y: number\r\n },\r\n floatingControlFan: null as null|{\r\n x: number\r\n y: number\r\n },\r\n floatingControlSwing: null as null|{\r\n x: number\r\n y: number\r\n },\r\n modalSchedulesList: null as null|{\r\n list: ScheduleInfo[]\r\n },\r\n modalEditSchedule: null as null|{\r\n addEdit: 'Add'|'Edit'\r\n scheduleId: string\r\n name: string\r\n active: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n selectedDays: {\r\n mon: boolean\r\n tue: boolean\r\n wed: boolean\r\n thu: boolean\r\n fri: boolean\r\n sat: boolean\r\n sun: boolean\r\n }\r\n useSetpoint: boolean\r\n setpointValue: string\r\n },\r\n });\r\n\r\n useEffect(() => {\r\n (async () => {\r\n try {\r\n setState({ loading: true });\r\n await atualizarUnits();\r\n } catch (err) { toast.error(t('houveErro')); console.error(err); }\r\n setState({ loading: false });\r\n })();\r\n const refreshUnitsTimer = setInterval(() => {\r\n if (state.lastRefresh > (Date.now() - 15000)) return;\r\n state.lastRefresh = Date.now();\r\n // console.log('DBG R1', Date.now());\r\n atualizarUnits().catch(console.log);\r\n render();\r\n }, 1000);\r\n return () => {\r\n clearInterval(refreshUnitsTimer);\r\n if (state.timerChangeSetpoint) clearTimeout(state.timerChangeSetpoint);\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n // console.log('DBG P1', Date.now());\r\n (async () => {\r\n try {\r\n state.unitLastTelemetry = null;\r\n state.siteTemprt = null;\r\n const selectedUnit = state.allUnits.find((unit) => unit.id === state.selectedUnitId);\r\n if (!selectedUnit) return;\r\n // console.log('DBG P2', Date.now());\r\n setState({ loadingTelemetry: true });\r\n const [\r\n { telemetry },\r\n ] = await Promise.all([\r\n apiCall('/coolautomation/get-unit-last-telemetry', { coolAutUnitId: selectedUnit.id }),\r\n ]);\r\n state.unitLastTelemetry = Object.values(telemetry);\r\n for (const val of state.unitLastTelemetry) {\r\n const { name, unit } = parseCoolAutVarName(val.name);\r\n val.name = name;\r\n val.unit = unit;\r\n if (val.name === 'Site temperature') state.siteTemprt = val.y;\r\n }\r\n state.unitLastTelemetry = state.unitLastTelemetry.sort((a, b) => {\r\n if (a.name > b.name) return 1;\r\n if (a.name < b.name) return -1;\r\n return 0;\r\n });\r\n } catch (err) { toast.error(t('houveErro')); console.error(err); }\r\n setState({ loadingTelemetry: false });\r\n // console.log('DBG P3', Date.now());\r\n })();\r\n }, [state.selectedUnitId]);\r\n\r\n async function atualizarUnits() {\r\n state.lastRefresh = Date.now();\r\n const [\r\n { list, valsTransl },\r\n ] = await Promise.all([\r\n apiCall('/coolautomation/get-device-units', { coolAutDeviceId: props.devInfo.integrId }),\r\n ]);\r\n state.allUnits = list.sort((a, b) => {\r\n if (a.name > b.name) return 1;\r\n if (a.name < b.name) return -1;\r\n return 0;\r\n });\r\n state.indoorUnits = state.allUnits.filter((unit) => unit.type === 1).map((unit) => {\r\n const schedules = state.schedules[unit.id];\r\n return { ...unit, schedules };\r\n });\r\n state.outdoorUnits = state.allUnits.filter((unit) => unit.type === 2).map((unit) => {\r\n const schedules = state.schedules[unit.id];\r\n return { ...unit, schedules };\r\n });\r\n\r\n // console.log('DBG P0', Date.now());\r\n for (const item of state.allUnits) {\r\n if (item.activeSetpoint != null) item.activeSetpoint = Math.round(item.activeSetpoint);\r\n }\r\n }\r\n\r\n function onClickMode(event) {\r\n if (state.floatingControlMode) {\r\n state.floatingControlMode = null;\r\n } else {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'div') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n state.floatingControlMode = null;\r\n state.floatingControlFan = null;\r\n state.floatingControlSwing = null;\r\n state.floatingControlMode = {\r\n x: rect.x, // event.target.offsetLeft, // event.clientX\r\n y: rect.y - 5 * 71, // event.target.offsetTop, // event.clientY\r\n };\r\n }\r\n render();\r\n }\r\n function onClickFan(event) {\r\n if (state.floatingControlFan) {\r\n state.floatingControlFan = null;\r\n } else {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'div') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n state.floatingControlMode = null;\r\n state.floatingControlFan = null;\r\n state.floatingControlSwing = null;\r\n state.floatingControlFan = {\r\n x: rect.x,\r\n y: rect.y - 5 * 71,\r\n };\r\n }\r\n render();\r\n }\r\n function onClickSwing(event) {\r\n if (state.floatingControlSwing) {\r\n state.floatingControlSwing = null;\r\n } else {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'div') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n state.floatingControlMode = null;\r\n state.floatingControlFan = null;\r\n state.floatingControlSwing = null;\r\n state.floatingControlSwing = {\r\n x: rect.x,\r\n y: rect.y - 5 * 71,\r\n };\r\n }\r\n render();\r\n }\r\n\r\n function onOffBackgroundColor(operationStatuse: number) {\r\n // operationStatuses: {\"1\":\"on\",\"2\":\"off\"},\r\n switch (operationStatuse) {\r\n case 1: return '#363bc4'; // ON\r\n case 2: return '#bbbbbb'; // OFF\r\n default: return '#bbbbbb';\r\n }\r\n }\r\n function getOperationStatusIcon(operationStatus: number) {\r\n // operationStatuses: {\"1\":\"on\",\"2\":\"off\"},\r\n switch (operationStatus) {\r\n case 1: return img_power;\r\n case 2: return img_power_grey;\r\n default: return img_power_grey;\r\n }\r\n }\r\n function getOperationModeIcon(operationMode: number) {\r\n // operationModes: {\"0\":\"COOL\",\"1\":\"HEAT\",\"2\":\"AUTO\",\"3\":\"DRY\",\"5\":\"FAN\"},\r\n switch (operationMode) {\r\n case 0: return img_mode_cool;\r\n case 1: return img_mode_heat;\r\n case 2: return img_mode_auto;\r\n case 3: return img_mode_dry;\r\n case 5: return img_mode_fan;\r\n default: return img_mode_cool_off;\r\n }\r\n }\r\n function getFanModeIcon(fanMode: number) {\r\n // fanModes: {\"0\":\"LOW\",\"1\":\"MEDIUM\",\"2\":\"HIGH\",\"3\":\"AUTO\",\"4\":\"TOP\",\"5\":\"VERYLOW\"},\r\n switch (fanMode) {\r\n case 0: return img_fan_1_low;\r\n case 1: return img_fan_2;\r\n case 2: return img_fan_3;\r\n case 3: return img_fan_auto;\r\n case 4: return img_fan_4_high;\r\n default: return img_fan_0_off;\r\n }\r\n }\r\n function getSwingModeIcon(swingMode: number) {\r\n // swingModes: {\"0\":\"vertical\",\"1\":\"30\",\"2\":\"45\",\"3\":\"60\",\"4\":\"horizontal\",\"5\":\"auto\",\"6\":\"off\",\"7\":\"on\"},\r\n switch (swingMode) {\r\n case 0: return img_swing_1_low;\r\n case 1: return img_swing_4;\r\n case 2: return img_swing_3;\r\n case 3: return img_swing_2;\r\n case 4: return img_swing_5_high;\r\n case 5: return img_swing_auto;\r\n case 7: return img_swing_auto;\r\n default: return img_swing_off;\r\n }\r\n }\r\n\r\n async function setOperationStatus(unit: { id: string, activeOperationStatus: number }, operationStatus: number) {\r\n try {\r\n if (!unit) return;\r\n await apiCall('/coolautomation/control-unit-operation', {\r\n unitId: unit.id,\r\n operationStatus,\r\n });\r\n unit.activeOperationStatus = operationStatus;\r\n toast.info(t('comandoEnviado'));\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n async function setOperationMode(operationMode: number) {\r\n try {\r\n const selectedUnit = state.allUnits.find((unit) => unit.id === state.selectedUnitId);\r\n if (!selectedUnit) return;\r\n await apiCall('/coolautomation/control-unit-operation', {\r\n unitId: selectedUnit.id,\r\n operationMode,\r\n });\r\n selectedUnit.activeOperationMode = operationMode;\r\n toast.info(t('comandoEnviado'));\r\n setState({ floatingControlMode: null, floatingControlFan: null, floatingControlSwing: null });\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n async function setFanMode(fanMode: number) {\r\n try {\r\n const selectedUnit = state.allUnits.find((unit) => unit.id === state.selectedUnitId);\r\n if (!selectedUnit) return;\r\n await apiCall('/coolautomation/control-unit-operation', {\r\n unitId: selectedUnit.id,\r\n fanMode,\r\n });\r\n selectedUnit.activeFanMode = fanMode;\r\n toast.info(t('comandoEnviado'));\r\n setState({ floatingControlMode: null, floatingControlFan: null, floatingControlSwing: null });\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n async function setSwingMode(swingMode: number) {\r\n try {\r\n const selectedUnit = state.allUnits.find((unit) => unit.id === state.selectedUnitId);\r\n if (!selectedUnit) return;\r\n await apiCall('/coolautomation/control-unit-operation', {\r\n unitId: selectedUnit.id,\r\n swingMode,\r\n });\r\n selectedUnit.activeSwingMode = swingMode;\r\n toast.info(t('comandoEnviado'));\r\n setState({ floatingControlMode: null, floatingControlFan: null, floatingControlSwing: null });\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n async function sendSSetpoint(setpoint: number) {\r\n try {\r\n const selectedUnit = state.allUnits.find((unit) => unit.id === state.selectedUnitId);\r\n if (!selectedUnit) return;\r\n await apiCall('/coolautomation/control-unit-operation', {\r\n unitId: selectedUnit.id,\r\n setpoint,\r\n });\r\n toast.info(t('setpointEnviado'));\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n function changeSetpoint(newSetpoint: number) {\r\n const selectedUnit = state.allUnits.find((unit) => unit.id === state.selectedUnitId);\r\n if (state.timerChangeSetpoint) clearTimeout(state.timerChangeSetpoint);\r\n if (selectedUnit) {\r\n selectedUnit.activeSetpoint = newSetpoint;\r\n state.timerChangeSetpoint = setTimeout(() => sendSSetpoint(newSetpoint), 1500);\r\n render();\r\n }\r\n }\r\n\r\n async function showProgramming() {\r\n try {\r\n if (!state.selectedUnitId) return;\r\n state.modalSchedulesList = null;\r\n state.modalEditSchedule = null;\r\n setState({ loadingSchedule: true });\r\n const unitSched = await apiCall('/coolautomation/get-unit-programming', { coolAutUnitId: state.selectedUnitId });\r\n for (const item of (unitSched.list as any[])) {\r\n for (const prop of Object.keys(item)) {\r\n if (prop.includes('nable')) delete item[prop];\r\n if ((item[prop] instanceof Array) && (item[prop].length === 0)) delete item[prop];\r\n if (['system', 'unit', 'eWrcDisable'].includes(prop)) delete item[prop];\r\n }\r\n }\r\n if (unitSched.list.length > 0) {\r\n state.modalSchedulesList = unitSched;\r\n } else {\r\n toast.info(t('nenhumaProgramacao'));\r\n }\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n setState({ loadingSchedule: false });\r\n }\r\n\r\n function showScheds() {\r\n try {\r\n state.showScheds = true;\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n function selectedSchedules(name:string) {\r\n state.selectedScheds = props.coolAutomation?.schedules.filter((sched) => sched.unitName?.includes(name));\r\n }\r\n\r\n async function onDeleteClick(item: ScheduleInfo) {\r\n try {\r\n if (!window.confirm(t('temCertezaQueDesejaExcluir'))) return;\r\n // setState({ savingSched: true });\r\n await apiCall('/coolautomation/delete-unit-schedule', {\r\n scheduleId: item.id,\r\n });\r\n toast.success(t('sucessoExcluirProgramacao'));\r\n window.location.reload();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n function editAddProgramming(item?: ScheduleInfo) {\r\n try {\r\n state.modalEditSchedule = {\r\n addEdit: item ? 'Edit' : 'Add',\r\n scheduleId: (item && item.id) || '',\r\n name: (item && item.name) || '',\r\n active: !(item && item.isDisabled),\r\n start_time: item ? convertCoolAutomationSchedTime(item.powerOnTime) : '',\r\n start_time_error: '',\r\n end_time: (item && item.powerOffTime != null) ? convertCoolAutomationSchedTime(item.powerOffTime) : '',\r\n end_time_error: '',\r\n selectedDays: {\r\n mon: item ? item.days.includes('Monday') : false,\r\n tue: item ? item.days.includes('Tuesday') : false,\r\n wed: item ? item.days.includes('Wednesday') : false,\r\n thu: item ? item.days.includes('Thursday') : false,\r\n fri: item ? item.days.includes('Friday') : false,\r\n sat: item ? item.days.includes('Saturday') : false,\r\n sun: item ? item.days.includes('Sunday') : false,\r\n },\r\n useSetpoint: item ? (item.setpoint != null) : false,\r\n setpointValue: item ? (item.setpoint != null) ? String(item.setpoint) : '24' : '24',\r\n };\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n async function saveNewProgramming() {\r\n try {\r\n // setState({ savingSched: true });\r\n if (!state.modalEditSchedule) return;\r\n if (!state.selectedUnitId) return;\r\n\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.start_time)) return toast.error(t('erroHorarioInvalido'));\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.end_time)) return toast.error(t('erroHorarioInvalido'));\r\n const days = [] as ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[];\r\n if (state.modalEditSchedule.selectedDays.mon) days.push('Monday');\r\n if (state.modalEditSchedule.selectedDays.tue) days.push('Tuesday');\r\n if (state.modalEditSchedule.selectedDays.wed) days.push('Wednesday');\r\n if (state.modalEditSchedule.selectedDays.thu) days.push('Thursday');\r\n if (state.modalEditSchedule.selectedDays.fri) days.push('Friday');\r\n if (state.modalEditSchedule.selectedDays.sat) days.push('Saturday');\r\n if (state.modalEditSchedule.selectedDays.sun) days.push('Sunday');\r\n\r\n const { info: newScnhedule } = await apiCall('/coolautomation/add-unit-schedule', {\r\n unitId: state.selectedUnitId,\r\n isDisabled: !state.modalEditSchedule.active,\r\n name: state.modalEditSchedule.name,\r\n powerOnTime: state.modalEditSchedule.start_time, // \"23:59\"\r\n powerOffTime: state.modalEditSchedule.end_time, // \"23:59\"\r\n setpoint: state.modalEditSchedule.useSetpoint ? Number(state.modalEditSchedule.setpointValue) : null,\r\n days, // ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[]\r\n });\r\n state.modalEditSchedule = null;\r\n render();\r\n toast.success(t('sucessoProgramacaoAdicionada'));\r\n window.location.reload();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n // setState({ savingSched: false });\r\n }\r\n\r\n async function onSaveEditClick() {\r\n try {\r\n // setState({ savingSched: true });\r\n if (!state.modalEditSchedule) return;\r\n\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.start_time)) return toast.error(t('erroHorarioInvalido'));\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.end_time)) return toast.error(t('erroHorarioInvalido'));\r\n const days = [] as ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[];\r\n if (state.modalEditSchedule.selectedDays.mon) days.push('Monday');\r\n if (state.modalEditSchedule.selectedDays.tue) days.push('Tuesday');\r\n if (state.modalEditSchedule.selectedDays.wed) days.push('Wednesday');\r\n if (state.modalEditSchedule.selectedDays.thu) days.push('Thursday');\r\n if (state.modalEditSchedule.selectedDays.fri) days.push('Friday');\r\n if (state.modalEditSchedule.selectedDays.sat) days.push('Saturday');\r\n if (state.modalEditSchedule.selectedDays.sun) days.push('Sunday');\r\n\r\n const { info: newSchedule } = await apiCall('/coolautomation/alter-unit-schedule', {\r\n scheduleId: state.modalEditSchedule.scheduleId,\r\n isDisabled: !state.modalEditSchedule.active,\r\n name: state.modalEditSchedule.name,\r\n powerOnTime: state.modalEditSchedule.start_time, // \"23:59\"\r\n powerOffTime: state.modalEditSchedule.end_time, // \"23:59\"\r\n setpoint: state.modalEditSchedule.useSetpoint ? Number(state.modalEditSchedule.setpointValue) : null,\r\n days, // ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[]\r\n });\r\n state.modalEditSchedule = null;\r\n toast.success(t('sucessoProgramacaoAlterada'));\r\n window.location.reload();\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n // setState({ savingSched: false });\r\n }\r\n\r\n useEffect(() => {\r\n const handleResize = () => {\r\n setWidth(window.innerWidth);\r\n };\r\n\r\n window.addEventListener('resize', handleResize);\r\n\r\n return () => {\r\n window.removeEventListener('resize', handleResize);\r\n };\r\n }, []);\r\n\r\n const selectedUnit = state.allUnits.find((unit) => unit.id === state.selectedUnitId);\r\n const mobileWitdh = width < 1650;\r\n return (\r\n <>\r\n {state.loading && }\r\n {!state.loading && (\r\n
\r\n {(state.showScheds) && (\r\n
\r\n {\r\n if (!state.modalEditSchedule) {\r\n setState({ showScheds: false });\r\n }\r\n }}\r\n >\r\n \r\n \r\n
\r\n {`Total: ${(state.selectedScheds?.length) || 0}`}\r\n {\r\n state.showScheds = false;\r\n editAddProgramming();\r\n }}\r\n >\r\n {t('adicionarProgramacao')}\r\n \r\n
\r\n
\r\n {state.selectedScheds?.map((sched) => (\r\n {\r\n state.showScheds = false;\r\n editAddProgramming(sched);\r\n }}\r\n onDelete={() => onDeleteClick(sched)}\r\n />\r\n ))}\r\n
\r\n \r\n
\r\n )}\r\n
\r\n
\r\n
\r\n \r\n
{t('ambientes')}
\r\n
\r\n {`${t('total')} `}\r\n {state.indoorUnits.length}\r\n {` ${t('ambientes')}`}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n {t('nome')}\r\n {t('modo')}\r\n Set\r\n {t('agora')}\r\n \r\n {t('status')}\r\n \r\n \r\n \r\n {state.indoorUnits.map((unit) => (\r\n {\r\n setState({ selectedUnitId: unit.id });\r\n selectedSchedules(unit.name);\r\n }}\r\n >\r\n \r\n
{unit.name}
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n {`${unit.activeSetpoint}`}\r\n °C\r\n
\r\n \r\n \r\n
\r\n {`${unit.ambientTemperature}`}\r\n °C\r\n
\r\n \r\n \r\n {unit.schedules && (\r\n \r\n )}\r\n \r\n \r\n
\r\n setOperationStatus(unit, (unit.activeOperationStatus === 2) ? 1 : 2)}\r\n />\r\n
\r\n \r\n \r\n ))}\r\n \r\n
\r\n
\r\n
\r\n \r\n
{t('condensadoras')}
\r\n
\r\n {`${t('total')} `}\r\n {state.outdoorUnits.length}\r\n {` ${t('condensadoras')}`}\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n {t('nome')}\r\n \r\n \r\n \r\n \r\n {state.outdoorUnits.map((unit) => (\r\n { setState({ selectedUnitId: unit.id }); selectedSchedules(unit.name); }}>\r\n \r\n
{unit.name}
\r\n \r\n \r\n {unit.schedules && (\r\n \r\n )}\r\n \r\n
\r\n ))}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n {(selectedUnit && (selectedUnit.type === 1)) && (\r\n
\r\n
\r\n
\r\n
{t('unidade')}
\r\n
{props.devInfo.UNIT_NAME}
\r\n
\r\n
\r\n
{t('maquina')}
\r\n
{selectedUnit.name}
\r\n
\r\n setOperationStatus(selectedUnit!, (selectedUnit!.activeOperationStatus === 2) ? 1 : 2)}\r\n >\r\n \r\n \r\n
\r\n
\r\n
{t('externo')}
\r\n
\r\n \r\n {(state.siteTemprt != null) ? state.siteTemprt : '-'}\r\n \r\n {(state.siteTemprt != null) && (\r\n °C\r\n )}\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
Setpoint
\r\n
\r\n
\r\n changeSetpoint(selectedUnit!.activeSetpoint + 1)}\r\n />\r\n changeSetpoint(selectedUnit!.activeSetpoint - 1)}\r\n />\r\n
\r\n {selectedUnit.activeSetpoint}\r\n  °C\r\n
\r\n
{t('agora')}
\r\n
\r\n {selectedUnit.ambientTemperature}\r\n °C\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {state.floatingControlMode && (\r\n \r\n
\r\n setOperationMode(0)}>\r\n \r\n \r\n
\r\n
\r\n setOperationMode(1)}>\r\n \r\n \r\n
\r\n
\r\n setOperationMode(2)}>\r\n \r\n \r\n
\r\n
\r\n setOperationMode(3)}>\r\n \r\n \r\n
\r\n
\r\n setOperationMode(5)}>\r\n \r\n \r\n
\r\n
\r\n )}\r\n\r\n \r\n \r\n \r\n {state.floatingControlFan && (\r\n \r\n
\r\n setFanMode(4)}>\r\n \r\n \r\n
\r\n
\r\n setFanMode(2)}>\r\n \r\n \r\n
\r\n
\r\n setFanMode(1)}>\r\n \r\n \r\n
\r\n
\r\n setFanMode(0)}>\r\n \r\n \r\n
\r\n
\r\n setFanMode(3)}>\r\n \r\n \r\n
\r\n
\r\n )}\r\n\r\n \r\n \r\n \r\n {state.floatingControlSwing && (\r\n \r\n
\r\n setSwingMode(4)}>\r\n \r\n \r\n
\r\n
\r\n setSwingMode(1)}>\r\n \r\n \r\n
\r\n
\r\n setSwingMode(2)}>\r\n \r\n \r\n
\r\n
\r\n setSwingMode(3)}>\r\n \r\n \r\n
\r\n
\r\n setSwingMode(0)}>\r\n \r\n \r\n
\r\n
\r\n )}\r\n\r\n \r\n {state.selectedScheds?.length ? {state.selectedScheds.length} : null}\r\n showScheds()}\r\n style={{ margin: '0 10px' }}\r\n >\r\n {state.loadingSchedule\r\n ? \r\n : }\r\n \r\n \r\n
\r\n
\r\n \r\n )}\r\n\r\n {(selectedUnit && (selectedUnit.type === 2)) && (\r\n
\r\n\r\n
\r\n \r\n {state.selectedScheds?.length ? {state.selectedScheds.length} : null}\r\n showScheds()}\r\n style={{ margin: '0 10px' }}\r\n >\r\n {state.loadingSchedule\r\n ? \r\n : }\r\n \r\n \r\n
\r\n
\r\n )}\r\n \r\n\r\n {state.loadingTelemetry && }\r\n {(selectedUnit && state.unitLastTelemetry) && (\r\n
\r\n
\r\n

{t('informacoesGerais')}

\r\n \r\n

{selectedUnit.name}

\r\n
\r\n {state.unitLastTelemetry.map((varItem) => (\r\n \r\n {varItem.name}\r\n \r\n {varItem.y}\r\n \r\n  \r\n {varItem.unit}\r\n \r\n \r\n \r\n ))}\r\n
\r\n
\r\n
\r\n )}\r\n {(state.modalEditSchedule) && (\r\n { setState({ modalEditSchedule: null }); }}>\r\n { setState({ modalEditSchedule: null }); }}\r\n />\r\n \r\n )}\r\n {(state.modalSchedulesList && !state.modalEditSchedule) && (\r\n { setState({ modalSchedulesList: null }); }}>\r\n
\r\n {state.modalSchedulesList.list.map((item) => (\r\n
editAddProgramming(item)}>\r\n {item.name}\r\n
\r\n ))}\r\n
editAddProgramming()}>\r\n {`+ ${t('botaoAdicionar')}`}\r\n
\r\n
\r\n
\r\n )}\r\n \r\n )}\r\n \r\n );\r\n}\r\n\r\nexport function parseCoolAutVarName(name: string) {\r\n const matched = name && name.match(/^(\\*)?([^[]+)( \\[([^\\]]+)\\])?$/);\r\n let unit = undefined as undefined|string;\r\n if (matched) {\r\n const [, ast, namePart, , unitPart] = matched;\r\n name = namePart + (ast || '');\r\n unit = unitPart;\r\n if (unit === '-') unit = undefined;\r\n }\r\n return { name, unit };\r\n}\r\n\r\nexport function CoolAutomationSchedForm(props: {\r\n modalEditSchedule: {\r\n addEdit: 'Add'|'Edit'\r\n name: string\r\n active: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n selectedDays: {\r\n mon: boolean\r\n tue: boolean\r\n wed: boolean\r\n thu: boolean\r\n fri: boolean\r\n sat: boolean\r\n sun: boolean\r\n }\r\n useSetpoint: boolean\r\n setpointValue: string\r\n },\r\n onNewConfirm?: () => void\r\n onEditConfirm?: () => void\r\n onCancel: () => void\r\n}) {\r\n const [, render] = useStateVar({});\r\n const { t } = useTranslation();\r\n\r\n const isEdit = props.modalEditSchedule.addEdit === 'Edit';\r\n\r\n return (\r\n
\r\n
{`${isEdit ? t('editar') : t('adicionar')} Programação`}
\r\n
\r\n
{t('nome')}
\r\n { props.modalEditSchedule.name = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('status')}
\r\n
\r\n {props.modalEditSchedule.active ? t('ativo') : t('desativado')}\r\n { props.modalEditSchedule.active = !props.modalEditSchedule.active; render(); }}\r\n />\r\n
\r\n
\r\n \r\n
\r\n
{t('horarioInicio')}
\r\n ) => { props.modalEditSchedule!.start_time = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
{t('horarioTermino')}
\r\n ) => { props.modalEditSchedule!.end_time = e.target.value; render(); }}\r\n />\r\n
\r\n
\r\n
\r\n
{t('selecioneOsDias')}
\r\n
\r\n { props.modalEditSchedule.selectedDays.sun = !props.modalEditSchedule.selectedDays.sun; render(); }}>DOM\r\n { props.modalEditSchedule.selectedDays.mon = !props.modalEditSchedule.selectedDays.mon; render(); }}>SEG\r\n { props.modalEditSchedule.selectedDays.tue = !props.modalEditSchedule.selectedDays.tue; render(); }}>TER\r\n { props.modalEditSchedule.selectedDays.wed = !props.modalEditSchedule.selectedDays.wed; render(); }}>QUA\r\n { props.modalEditSchedule.selectedDays.thu = !props.modalEditSchedule.selectedDays.thu; render(); }}>QUI\r\n { props.modalEditSchedule.selectedDays.fri = !props.modalEditSchedule.selectedDays.fri; render(); }}>SEX\r\n { props.modalEditSchedule.selectedDays.sat = !props.modalEditSchedule.selectedDays.sat; render(); }}>SAB\r\n
\r\n
\r\n
\r\n
\r\n
Setpoint  
\r\n { props.modalEditSchedule.useSetpoint = !props.modalEditSchedule.useSetpoint; render(); }}\r\n />\r\n
\r\n {(props.modalEditSchedule.useSetpoint) && (\r\n
\r\n
\r\n { props.modalEditSchedule.setpointValue = String(Number(props.modalEditSchedule.setpointValue) + 1); render(); }}\r\n />\r\n { props.modalEditSchedule.setpointValue = String(Number(props.modalEditSchedule.setpointValue) - 1); render(); }}\r\n />\r\n
\r\n
{props.modalEditSchedule.setpointValue}
\r\n
 °C
\r\n
\r\n )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n {t('cancelar')}\r\n
\r\n \r\n );\r\n}\r\n\r\nfunction Dial(props: { temperature: number }) {\r\n const min = 10;\r\n const max = 30;\r\n let percentage = (props.temperature == null) ? NaN : ((props.temperature - min) / (max - min));\r\n if (percentage > 1) percentage = 1;\r\n if (percentage < 0) percentage = 0;\r\n if (!Number.isFinite(percentage)) percentage = NaN;\r\n\r\n function onSvgClick(event) {\r\n let el = event.target;\r\n while (el.tagName.toLowerCase() !== 'svg') {\r\n if (!el.parentElement) return;\r\n if (!el.parentElement.tagName) return;\r\n el = el.parentElement;\r\n }\r\n const rect = el.getBoundingClientRect();\r\n console.log('DBG013', rect, event);\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n {(!Number.isNaN(percentage)) && (\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport function SchedCard(props: {\r\n sched: any,\r\n onEdit: () => void\r\n onDelete: () => void\r\n}): JSX.Element {\r\n const [, render] = useStateVar({});\r\n const { t } = useTranslation();\r\n\r\n const { sched, onEdit, onDelete } = props;\r\n const days = sched.days;\r\n\r\n return (\r\n \r\n \r\n
\r\n
\r\n
\r\n {sched.name}\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
{t('status')}
\r\n
\r\n {sched.isDisabled ? t('inativo') : t('ativo')}\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n {t('horarioDeInicio')}\r\n {sched.powerOnTime ? formatHours(sched.powerOnTime) : '-'}\r\n
\r\n
\r\n {t('horarioDeFim')}\r\n {sched.powerOffTime ? formatHours(sched.powerOffTime) : '-'}\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
Setpoint
\r\n
\r\n
{sched.setpoint}
\r\n
 °C
\r\n
\r\n
\r\n\r\n
\r\n
\r\n {days && (\r\n
\r\n e === 'Sunday')}>{t('diaDom').toLocaleUpperCase()}\r\n e === 'Monday')}>{t('diaSeg').toLocaleUpperCase()}\r\n e === 'Tuesday')}>{t('diaTer').toLocaleUpperCase()}\r\n e === 'Wednesday')}>{t('diaQua').toLocaleUpperCase()}\r\n e === 'Thursday')}>{t('diaQui').toLocaleUpperCase()}\r\n e === 'Friday')}>{t('diaSex').toLocaleUpperCase()}\r\n e === 'Saturday')}>{t('diaSab').toLocaleUpperCase()}\r\n
\r\n )}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst formatHours = (minutes) => {\r\n const hours = Math.floor(minutes / 60);\r\n const min = minutes % 60;\r\n const textHours = (`00${hours}`).slice(-2);\r\n const textMinutes = (`00${min}`).slice(-2);\r\n\r\n return `${textHours}:${textMinutes}`;\r\n};\r\n\r\nconst InfoCellWrapper = styled.div`\r\n padding: 20px 40px;\r\n width: 300px;\r\n`;\r\n\r\nconst InfoCellValueWrapper = styled.div`\r\n line-height: initial;\r\n`;\r\n\r\nconst InfoCellValue = styled.span`\r\n font-size: 170%;\r\n font-weight: bold;\r\n`;\r\n\r\nconst InfoCellUnit = styled.span`\r\n color: ${colors.Grey200};\r\n font-size: 120%;\r\n`;\r\n\r\nconst InfoCellTitle = styled.div`\r\n font-weight: bold;\r\n white-space: wrap;\r\n`;\r\n\r\nconst UnitsTable = styled.table`\r\n width: 100%;\r\n & thead th {\r\n position: sticky;\r\n top: 0;\r\n background-color: white;\r\n z-index: 1;\r\n }\r\n`;\r\n\r\nconst WeekDayButton = styled.div<{ checked: boolean }>`\r\n padding: 8px 10px;\r\n border-radius: 5px;\r\n margin: 5px;\r\n background-color: ${({ checked }) => (checked ? 'blue' : 'lightgrey')};\r\n color: ${({ checked }) => (checked ? 'white' : 'black')};\r\n`;\r\n\r\nconst ControlButtonIcon = styled.img`\r\n max-width: 100%;\r\n`;\r\n\r\nconst ControlButton = styled.div<{ isActive?: boolean, noBorder?: boolean }>`\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n ${({ noBorder }) => (noBorder ? 'border: 0;' : '')}\r\n border-radius: 10px;\r\n width: 70px;\r\n height: 70px;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n ${({ isActive }) => (isActive ? 'border: 2px solid blue;' : '')}\r\n`;\r\n\r\nconst SelectContainer = styled.div`\r\n position: fixed;\r\n background: white;\r\n border: 1px solid #d3d3d3;\r\n border-radius: 10px;\r\n`;\r\n\r\nconst UnitRow = styled.tr<{ checked?: boolean }>`\r\n ${({ checked }) => (checked ? 'border: 2px solid blue;' : '')}\r\n height: 40px;\r\n`;\r\n\r\nconst UnitRowA = styled.tr<{ checked?: boolean }>`\r\n td {\r\n padding: 8px;\r\n &:first-child {\r\n border-left: 1px solid ${colors.GreyDefaultCardBorder};\r\n }\r\n &:last-child {\r\n border-right: 1px solid ${colors.GreyDefaultCardBorder};\r\n }\r\n }\r\n &:first-child td {\r\n border-top: 1px solid ${colors.GreyDefaultCardBorder};\r\n &:first-child {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-top-right-radius: 10px;\r\n }\r\n }\r\n &:last-child td {\r\n border-bottom: 1px solid ${colors.GreyDefaultCardBorder};\r\n &:first-child {\r\n border-bottom-left-radius: 10px;\r\n }\r\n &:last-child {\r\n border-bottom-right-radius: 10px;\r\n }\r\n }\r\n ${({ checked }) => (checked ? 'border: 2px solid blue;' : '')}\r\n`;\r\n\r\nconst UnitRowB = styled.tr`\r\n td {\r\n & div {\r\n padding: 15px;\r\n }\r\n &:first-child div {\r\n border-left: 1px solid ${colors.GreyDefaultCardBorder};\r\n }\r\n &:last-child div {\r\n border-right: 1px solid ${colors.GreyDefaultCardBorder};\r\n }\r\n }\r\n &:first-child td {\r\n & div {\r\n border-top: 1px solid ${colors.GreyDefaultCardBorder};\r\n }\r\n &:first-child div {\r\n border-top-left-radius: 10px;\r\n }\r\n &:last-child div {\r\n border-top-right-radius: 10px;\r\n }\r\n }\r\n &:last-child td {\r\n & div {\r\n border-bottom: 1px solid ${colors.GreyDefaultCardBorder};\r\n }\r\n &:first-child div {\r\n border-bottom-left-radius: 10px;\r\n }\r\n &:last-child div {\r\n border-bottom-right-radius: 10px;\r\n }\r\n }\r\n`;\r\n\r\nconst Card = styled.div`\r\n margin-top: 15px;\r\n border-radius: 8px;\r\n padding: 12px 24px 32px;\r\n border: 1px solid ${colors.GreyDefaultCardBorder};\r\n border-top: 10px solid ${colors.BlueSecondary};\r\n`;\r\n","import { useEffect } from 'react';\r\nimport moment from 'moment';\r\nimport { SingleDatePicker, DateRangePicker } from 'react-dates';\r\nimport { useParams } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\nimport i18n from '~/i18n';\r\nimport {\r\n Checkbox,\r\n Loader, Select,\r\n} from 'components';\r\nimport {\r\n AxisInfo,\r\n ChartLineNumber,\r\n ChartLineSteps,\r\n fillDynamicValues,\r\n fillMaxMin,\r\n fillSteps,\r\n} from 'helpers/axisCalc';\r\nimport { useStateVar } from 'helpers/useStateVar';\r\nimport { CalendarIcon } from 'icons';\r\nimport { apiCall } from 'providers';\r\nimport { colors } from 'styles/colors';\r\n\r\nimport 'react-datepicker/dist/react-datepicker.css';\r\nimport { ChartLine, colorPalete } from '~/components/ChartRecharts';\r\nimport { LegendaGroup } from '~/components/ChartRecharts/Legenda';\r\nimport { parseCoolAutVarName } from '../IntegrRealTime/CoolAutomationRealTime';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport function CoolAutomationHist(props: { deviceId: string }): JSX.Element {\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ coolAutUnitId: string }>();\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const [state, render, setState] = useStateVar({\r\n loadingChart: true,\r\n loadingUnitsList: true,\r\n chartData: {\r\n x: [] as number[],\r\n vars: null as null|{\r\n id: string;\r\n name: string;\r\n unit?: string;\r\n y: (null|number)[];\r\n color: string;\r\n axisId: string;\r\n maxY?: null|number;\r\n minY?: null|number;\r\n y_orig?: (null|number|string)[];\r\n steps?: {\r\n y_orig: (null|number|string);\r\n y_chart: (null|number);\r\n label: string;\r\n }[];\r\n checked?: boolean;\r\n }[],\r\n axisInfo: {\r\n x: { domain: [0, 24] as [number, number] },\r\n y: {\r\n left: {\r\n domain: [-1, 50] as [number, number],\r\n ticks: [-1, 0, 50],\r\n ticksLabels: ['-1', '0', '50'],\r\n },\r\n },\r\n },\r\n },\r\n multiDays: false,\r\n numDays: 1 as number,\r\n focused: false,\r\n focusedInput: null as 'endDate'|'startDate'|null,\r\n dateStart: moment().subtract(1, 'days'),\r\n dateEnd: moment().subtract(1, 'days'),\r\n tomorrow: moment(moment().add(1, 'days').format('YYYY-MM-DD')),\r\n deviceUnits: null as null|({ id: string, name: string }[]),\r\n selectedUnit: null as null|{ id: string, name: string },\r\n });\r\n\r\n const coolAutUnitId = (state.selectedUnit && state.selectedUnit.id) || routeParams.coolAutUnitId;\r\n\r\n useEffect(() => {\r\n Promise.resolve().then(async () => {\r\n try {\r\n if (props.deviceId) {\r\n setState({ loadingUnitsList: true });\r\n const { list } = await apiCall('/coolautomation/get-device-units', { coolAutDeviceId: props.deviceId });\r\n state.deviceUnits = list;\r\n }\r\n } catch (err) { toast.error(t('houveErro')); console.error(err); }\r\n setState({ loadingUnitsList: false });\r\n });\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (state.multiDays && state.focusedInput) return;\r\n const chartVars: (typeof state.chartData.vars) = [];\r\n const checkedBefore = (state.chartData.vars && state.chartData.vars.filter((line) => line.checked).map((line) => line.name)) || [];\r\n state.chartData.vars = null;\r\n Promise.resolve().then(async () => {\r\n try {\r\n if (state.dateStart && state.dateEnd && coolAutUnitId) {\r\n const d1 = new Date(`${moment(state.dateStart).format('YYYY-MM-DD')}T00:00:00Z`).getTime();\r\n const d2 = new Date(`${moment(state.dateEnd).format('YYYY-MM-DD')}T00:00:00Z`).getTime();\r\n const numDays = Math.round((d2 - d1) / 1000 / 60 / 60 / 24) + 1;\r\n if ((numDays >= 1) && (numDays <= 8)) { } // OK\r\n else {\r\n toast.error(t('erroPeriodo1a8'));\r\n return;\r\n }\r\n\r\n state.numDays = numDays;\r\n\r\n setState({ loadingChart: true });\r\n const { vars, commonX } = await apiCall('/coolautomation/get-unit-history', {\r\n coolAutUnitId,\r\n dayYMD: moment(state.dateStart).format('YYYY-MM-DD'),\r\n numDays,\r\n });\r\n const varsList = Object.values(vars);\r\n varsList.sort((a, b) => {\r\n if (a.name > b.name) return 1;\r\n if (a.name < b.name) return -1;\r\n return 0;\r\n });\r\n const linesCont = [] as ChartLineNumber[];\r\n const linesDisc = [] as ChartLineSteps[];\r\n for (const row of varsList) {\r\n if (row.name.includes('Horímetro')) continue;\r\n if (row.name.includes('Partidas')) continue;\r\n if (row.name.includes('Umidade')) continue;\r\n if (row.name.includes('Status')) {\r\n const line: ChartLineSteps = {\r\n name: row.name,\r\n x: [], // not used\r\n y_orig: row.y.map((v) => ((v === 0) ? t('desligadoMinusculo') : (v === 2) ? t('ligadoMinusculo') : (v && String(v)))),\r\n y: row.y,\r\n steps: [],\r\n };\r\n fillSteps(line);\r\n linesDisc.push(line);\r\n } else {\r\n const line: ChartLineNumber = {\r\n name: row.name,\r\n x: [], // not used\r\n y: row.y,\r\n maxY: null,\r\n minY: null,\r\n };\r\n fillMaxMin(line);\r\n linesCont.push(line);\r\n }\r\n }\r\n const axisInfo: AxisInfo = { left: null };\r\n fillDynamicValues(axisInfo, linesCont, linesDisc);\r\n let nColor = 0;\r\n for (const line of [...linesCont, ...linesDisc]) {\r\n const { name, unit } = parseCoolAutVarName(line.name);\r\n chartVars.push({\r\n ...line,\r\n name,\r\n unit,\r\n color: colorPalete[nColor++ % colorPalete.length],\r\n axisId: 'left',\r\n id: line.name,\r\n checked: checkedBefore.includes(name),\r\n });\r\n }\r\n state.chartData.vars = chartVars;\r\n state.chartData.x = commonX;\r\n state.chartData.axisInfo.x.domain = [0, 24 * numDays];\r\n if (axisInfo.left) {\r\n // state.chartData.axisInfo.y.left.domain = axisInfo.left.range;\r\n state.chartData.axisInfo.y.left.domain = axisInfo.left.range;\r\n state.chartData.axisInfo.y.left.ticks = axisInfo.left.tickvals;\r\n state.chartData.axisInfo.y.left.ticksLabels = axisInfo.left.ticktext;\r\n }\r\n }\r\n } catch (err) { toast.error(t('houveErro')); console.error(err); }\r\n setState({ loadingChart: false });\r\n });\r\n }, [coolAutUnitId, state.dateStart, state.dateEnd, state.focusedInput]);\r\n\r\n function onMultidaysClick() {\r\n state.multiDays = !state.multiDays;\r\n if (!state.multiDays) {\r\n state.dateEnd = state.dateStart;\r\n }\r\n render();\r\n }\r\n\r\n function tooltipXLabelFormater(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(state.dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n const dateFinal = `${dd}/${mm}`;\r\n\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const min = Math.floor((Math.abs(hour) * 60) % 60);\r\n const ss = Math.floor((Math.abs(hour) * 60 * 60) % 60);\r\n\r\n return `${dateFinal} - ${String(hh).padStart(2, '0')}:${String(min).padStart(2, '0')}:${String(ss).padStart(2, '0')}`;\r\n }\r\n\r\n function tickXLabelFormaterDay(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const date = new Date(`${moment(state.dateStart).add(numDays + 1, 'days').format('YYYY-MM-DD')}T00:00:00Z`);\r\n const dd = String(date.getDate()).padStart(2, '0');\r\n const mm = String(date.getMonth() + 1).padStart(2, '0');\r\n\r\n const dateFinal = `${dd}/${mm}`;\r\n return `${dateFinal}`;\r\n }\r\n\r\n function tickXLabelFormaterHour(hour: number) {\r\n const numDays = Math.floor(hour / 24);\r\n const sign = hour - 24 * numDays < 0 ? '-' : '';\r\n const hh = Math.floor(Math.abs(hour)) - 24 * numDays;\r\n const mm = Math.floor((Math.abs(hour) * 60) % 60);\r\n return `${'\\n'} ${sign}${String(hh).padStart(2, '0')}:${String(mm).padStart(2, '0')}`;\r\n }\r\n\r\n const renderQuarterTickHour = (tickProps: any) => {\r\n const { x, y, payload } = tickProps;\r\n const { value, offset } = payload;\r\n const date = new Date(value);\r\n const month = date.getMonth();\r\n const quarterNo = Math.floor(month / 3) + 1;\r\n\r\n return {`${tickXLabelFormaterHour(value)}`};\r\n };\r\n\r\n const loading = state.loadingChart || state.loadingUnitsList;\r\n\r\n return (\r\n <>\r\n {(loading) && }\r\n {(!loading)\r\n && (\r\n
\r\n
\r\n {(state.deviceUnits) && (\r\n
\r\n setState({ selectedUnit: opt })}\r\n notNull\r\n style={{ minWidth: '200px', marginRight: '20px' }}\r\n />\r\n
\r\n )}\r\n \r\n {t('data')}\r\n
\r\n {(!state.multiDays) && (\r\n setState({ dateStart: value, dateEnd: value })}\r\n focused={state.focused}\r\n onFocusChange={({ focused }) => setState({ focused })}\r\n id=\"datepicker\"\r\n numberOfMonths={1}\r\n isOutsideRange={(d) => !d.isBefore(state.tomorrow)}\r\n />\r\n )}\r\n {(state.multiDays) && (\r\n { setState({ dateStart: startDate, dateEnd: startDate !== state.dateStart ? null : endDate }); }} // PropTypes.func.isRequired,\r\n onFocusChange={(focused: 'endDate'|'startDate'|null) => setState({ focusedInput: focused })}\r\n focusedInput={state.focusedInput}\r\n noBorder\r\n isOutsideRange={(d) => !d.isBefore(state.tomorrow)}\r\n />\r\n )}\r\n \r\n
\r\n \r\n
\r\n {(state.chartData.vars) && (\r\n
\r\n { render(); }}\r\n onColorChanging={(color, line) => { line.color = color.hex; render(); }}\r\n />\r\n line.checked)}\r\n axisInfo={state.chartData.axisInfo}\r\n tooltipXLabelFormater={tooltipXLabelFormater}\r\n formaterXTick={state.numDays && state.numDays > 1 ? tickXLabelFormaterDay : tickXLabelFormaterHour}\r\n tickSecondX={renderQuarterTickHour}\r\n numDays={state.numDays}\r\n />\r\n
\r\n )}\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nconst ContentDate = styled.div`\r\n position: relative;\r\n border: 1px solid ${colors.GreyLight};\r\n border-radius: 5px;\r\n min-height: 50px;\r\n .react-datepicker__month-text--keyboard-selected {\r\n background-color: ${colors.BlueSecondary};\r\n }\r\n .react-datepicker__triangle {\r\n left: -130px !important;\r\n }\r\n .react-datepicker__header {\r\n background-color: white;\r\n border-bottom: none;\r\n }\r\n .react-datepicker-popper[data-placement^=\"bottom\"] .react-datepicker__triangle::after {\r\n border-bottom-color: white;\r\n }\r\n .react-datepicker-wrapper {\r\n display: block;\r\n .react-datepicker__input-container {\r\n input[type=\"text\"] {\r\n border: none;\r\n font-size: 12px;\r\n outline: none;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: #464555;\r\n }\r\n }\r\n }\r\n .SingleDatePicker {\r\n display: block;\r\n position: initial;\r\n }\r\n .SingleDatePickerInput {\r\n display: block;\r\n position: relative;\r\n border: none;\r\n .DateInput {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n width: 100%;\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateRangePickerInput {\r\n .DateRangePickerInput_arrow {\r\n width: 60px;\r\n }\r\n .DateInput {\r\n .DateInput_input {\r\n outline: none;\r\n font-size: 12px;\r\n line-height: 19px;\r\n padding: 0px 40px 0px 14px;\r\n color: ${colors.Grey400};\r\n }\r\n .DateInput_input__focused {\r\n border: none;\r\n }\r\n }\r\n }\r\n .DateInput_fang {\r\n z-index: 1;\r\n }\r\n .SingleDatePicker_picker {\r\n width: 100%;\r\n }\r\n .CalendarDay__selected,\r\n .CalendarDay__selected:active {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n color: ${colors.White};\r\n }\r\n .CalendarDay__selected:hover {\r\n background: ${colors.BlueSecondary};\r\n border: 1px double ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n .DayPickerKeyboardShortcuts_show__bottomRight:hover::before {\r\n border-right: 33px solid ${colors.BlueSecondary};\r\n }\r\n`;\r\n\r\nconst StyledCalendarIcon = styled(CalendarIcon)`\r\n position: absolute;\r\n top: 17px;\r\n right: 16px;\r\n`;\r\n\r\nconst DateLabel = styled.span`\r\n transition: all 0.2s;\r\n margin-top: -6px;\r\n margin-left: 16px;\r\n margin-right: 16px;\r\n color: ${colors.Blue700};\r\n font-size: 11px;\r\n font-weight: bold;\r\n`;\r\n// margin-left: 16px;\r\n// color: ${colors.Grey300};\r\n\r\nexport default withTransaction('CoolAutomationHist', 'component')(CoolAutomationHist);\r\n","import { useMemo, useRef } from 'react';\r\nimport queryString from 'query-string';\r\nimport { useHistory } from 'react-router-dom';\r\n\r\nimport { Breadcrumb2 } from '~/components';\r\n\r\nimport { Header, Headers2 } from '../Header';\r\n\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport default function IntegrLayout(props: {\r\n integrType: string,\r\n integrId: string,\r\n varsCfg?: any,\r\n}): JSX.Element {\r\n const history = useHistory();\r\n const { t } = useTranslation();\r\n\r\n const { integrType, integrId, varsCfg } = props;\r\n const isEdit = history.location.pathname.endsWith('/editar');\r\n\r\n const links = [\r\n {\r\n title: t('perfil'),\r\n link: `/integracoes/info/${integrType}/${integrId}/perfil`,\r\n visible: true,\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('tempoReal'),\r\n link: `/integracoes/info/${integrType}/${integrId}/tempo-real`,\r\n visible: ((integrType === 'diel' && varsCfg) || ['ness', 'water', 'coolautomation'].includes(integrType) || (integrType === 'diel' && integrId.startsWith('DMA'))),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('historico'),\r\n link: `/integracoes/info/${integrType}/${integrId}/historico`,\r\n visible: ((integrType === 'diel' && varsCfg?.application && !['cg-et330', 'abb-nexus-ii', 'abb-ete-30', 'abb-ete-50', 'cg-em210', 'kron-mult-k', 'kron-mult-k-05', 'kron-mult-k-120', 'kron-ikron-03', 'schneider-eletric-pm2100', 'schneider-electric-pm210', 'schneider-electric-pm9c'].includes(varsCfg.application)) || ['ness', 'water', 'coolautomation'].includes(integrType) || (integrType === 'diel' && integrId.startsWith('DMA'))),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('editar'),\r\n link: `/integracoes/info/${integrType}/${integrId}/editar`,\r\n visible: !!isEdit,\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n return (\r\n
x.visible)} match={history} />\r\n );\r\n}\r\n\r\nexport function buildTabLink(aba: string, history: ReturnType) {\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n\r\n return `${linkBase}?${queryString.stringify({ ...queryPars, aba })}`;\r\n}\r\n\r\nexport function IntegrInlineTabs(props: {\r\n integrType: string,\r\n}): JSX.Element {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const { integrType } = props;\r\n\r\n const queryPars = queryString.parse(history.location.search);\r\n const linkBase = history.location.pathname;\r\n\r\n const allTabs = [\r\n {\r\n title: t('perfil'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'perfil' })}`,\r\n visible: true,\r\n isActive: (queryPars.aba === 'perfil') || (!queryPars.aba && integrType !== 'coolautomation'),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('tempoReal'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'tempo-real' })}`,\r\n visible: (['diel', 'ness', 'coolautomation'].includes(integrType) || (integrType === 'water' && queryPars.supplier === 'diel')),\r\n isActive: (queryPars.aba === 'tempo-real') || (!queryPars.aba && integrType === 'coolautomation'),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('historico'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'historico' })}`,\r\n visible: (['diel', 'water', 'coolautomation'].includes(integrType)),\r\n isActive: (queryPars.aba === 'historico'),\r\n ref: useRef(null),\r\n },\r\n {\r\n title: t('editar'),\r\n link: `${linkBase}?${queryString.stringify({ ...queryPars, aba: 'editar' })}`,\r\n visible: (queryPars.aba === 'editar'),\r\n isActive: (queryPars.aba === 'editar'),\r\n ref: useRef(null),\r\n },\r\n ];\r\n\r\n return (\r\n x.visible)} />\r\n );\r\n}\r\n\r\nexport function IntegrBreadCrumbs(props: {\r\n integrId: string,\r\n integrType: string,\r\n devInfo: null | {\r\n CLIENT_ID: number,\r\n CLIENT_NAME: string,\r\n UNIT_NAME: string,\r\n UNIT_ID: number,\r\n machineName: string,\r\n dataSource: string,\r\n automatedMachine?: string,\r\n TIMEZONE_ID?: number\r\n TIMEZONE_AREA?: string\r\n TIMEZONE_OFFSET?: number\r\n },\r\n}) {\r\n const { t } = useTranslation();\r\n const { integrId, devInfo } = props;\r\n const integrType = props.integrType === 'water' ? t('agua') : props.integrType;\r\n\r\n const bcrumbs = useMemo(() => {\r\n const path = [] as {}[];\r\n // if (devInfo && devInfo.UNIT_NAME) {\r\n // path.push({ text: 'Unidades', link: '/analise/unidades' });\r\n // path.push({ text: devInfo.UNIT_NAME, link: `/analise/unidades/${devInfo.UNIT_ID}` });\r\n // if (devInfo.machineName) {\r\n // path.push({ text: devInfo.machineName, link: null });\r\n // }\r\n // }\r\n // path.push({ text: `Integração ${integrType}`, link: `/integracoes?fornecedor=${integrType}` });\r\n if (integrType === 'diel' && devInfo && devInfo.CLIENT_ID && devInfo.UNIT_ID) {\r\n path.push({ text: devInfo.CLIENT_NAME, link: '/visao-geral' });\r\n path.push({ text: devInfo.UNIT_NAME, link: `/analise/unidades/${devInfo.UNIT_ID}` });\r\n if (devInfo.machineName) {\r\n path.push({ text: devInfo.machineName, link: `/integracoes/info/diel/${devInfo.dataSource}/perfil` });\r\n }\r\n else if (devInfo.automatedMachine) {\r\n path.push({ text: devInfo.automatedMachine, link: null });\r\n }\r\n path.push({ text: devInfo.dataSource, link: null });\r\n } else if (devInfo) {\r\n path.push({ text: t('integracoes'), link: '/integracoes' });\r\n path.push({ text: integrType.toUpperCase(), link: `/integracoes?fornecedor=${integrType}` });\r\n path.push({ text: (devInfo && devInfo.dataSource) || integrId, link: null }); // match.url\r\n }\r\n return ();\r\n }, [devInfo]);\r\n return (\r\n <>\r\n {bcrumbs}\r\n
\r\n \r\n );\r\n}\r\n","import { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\nimport {\r\n ActionButton,\r\n ModalWindow,\r\n ToggleSwitch,\r\n} from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { apiCall, ApiResps } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport { DeleteOutlineIcon, EditIcon } from '~/icons';\r\n\r\nimport { convertCoolAutomationSchedTime, CoolAutomationSchedForm, ScheduleInfo } from '../IntegrRealTime/CoolAutomationRealTime';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nexport const CoolAutomationEdit = (props: {\r\n schedInfo: ApiResps['/get-integration-info']['coolautomation']\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n modalEditSchedule: null as null|{\r\n addEdit: 'Add'|'Edit'\r\n scheduleId: string\r\n name: string\r\n active: boolean\r\n start_time: string\r\n start_time_error: string\r\n end_time: string\r\n end_time_error: string\r\n selectedDays: {\r\n mon: boolean\r\n tue: boolean\r\n wed: boolean\r\n thu: boolean\r\n fri: boolean\r\n sat: boolean\r\n sun: boolean\r\n }\r\n useSetpoint: boolean\r\n setpointValue: string\r\n },\r\n });\r\n\r\n async function onDeleteClick(item: ScheduleInfo) {\r\n try {\r\n if (!window.confirm(t('temCertezaQueDesejaExcluir'))) return;\r\n // setState({ savingSched: true });\r\n await apiCall('/coolautomation/delete-unit-schedule', {\r\n scheduleId: item.id,\r\n });\r\n toast.success(t('sucessoProgramacaoExcluida'));\r\n window.location.reload();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n // setState({ savingSched: false });\r\n }\r\n\r\n async function onSaveEditClick() {\r\n try {\r\n // setState({ savingSched: true });\r\n if (!state.modalEditSchedule) return;\r\n\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.start_time)) return toast.error(t('erroHorarioInvalido'));\r\n if (!/^[0-2][0-9]:[0-5][0-9]$/.test(state.modalEditSchedule.end_time)) return toast.error(t('erroHorarioInvalido'));\r\n const days = [] as ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[];\r\n if (state.modalEditSchedule.selectedDays.mon) days.push('Monday');\r\n if (state.modalEditSchedule.selectedDays.tue) days.push('Tuesday');\r\n if (state.modalEditSchedule.selectedDays.wed) days.push('Wednesday');\r\n if (state.modalEditSchedule.selectedDays.thu) days.push('Thursday');\r\n if (state.modalEditSchedule.selectedDays.fri) days.push('Friday');\r\n if (state.modalEditSchedule.selectedDays.sat) days.push('Saturday');\r\n if (state.modalEditSchedule.selectedDays.sun) days.push('Sunday');\r\n\r\n const { info: newSchedule } = await apiCall('/coolautomation/alter-unit-schedule', {\r\n scheduleId: state.modalEditSchedule.scheduleId,\r\n isDisabled: !state.modalEditSchedule.active,\r\n name: state.modalEditSchedule.name,\r\n powerOnTime: state.modalEditSchedule.start_time, // \"23:59\"\r\n powerOffTime: state.modalEditSchedule.end_time, // \"23:59\"\r\n setpoint: state.modalEditSchedule.useSetpoint ? Number(state.modalEditSchedule.setpointValue) : null,\r\n days, // ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[]\r\n });\r\n state.modalEditSchedule = null;\r\n toast.success(t('sucessoProgramacaoAlterada'));\r\n window.location.reload();\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n // setState({ savingSched: false });\r\n }\r\n\r\n function editAddProgramming(item: ScheduleInfo) {\r\n try {\r\n state.modalEditSchedule = {\r\n addEdit: item ? 'Edit' : 'Add',\r\n scheduleId: item && item.id,\r\n name: (item && item.name) || '',\r\n active: !(item && item.isDisabled),\r\n start_time: item ? convertCoolAutomationSchedTime(item.powerOnTime) : '',\r\n start_time_error: '',\r\n end_time: (item && item.powerOffTime != null) ? convertCoolAutomationSchedTime(item.powerOffTime) : '',\r\n end_time_error: '',\r\n selectedDays: {\r\n mon: item ? item.days.includes('Monday') : false,\r\n tue: item ? item.days.includes('Tuesday') : false,\r\n wed: item ? item.days.includes('Wednesday') : false,\r\n thu: item ? item.days.includes('Thursday') : false,\r\n fri: item ? item.days.includes('Friday') : false,\r\n sat: item ? item.days.includes('Saturday') : false,\r\n sun: item ? item.days.includes('Sunday') : false,\r\n },\r\n useSetpoint: item ? (item.setpoint != null) : false,\r\n setpointValue: item ? (item.setpoint != null) ? String(item.setpoint) : '24' : '24',\r\n };\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n async function switchScheduleEnabled(item: ScheduleInfo) {\r\n try {\r\n const newState = !item.isDisabled;\r\n const { info: newSchedule } = await apiCall('/coolautomation/alter-unit-schedule', {\r\n scheduleId: item.id,\r\n isDisabled: newState,\r\n });\r\n item.isDisabled = newSchedule.isDisabled;\r\n render();\r\n } catch (err) { console.log(err); toast.error(t('houveErro')); }\r\n }\r\n\r\n return (\r\n
\r\n
{t('programacoesAdicionadas')}
\r\n {(props.schedInfo && (props.schedInfo.schedules.length === 0)) && (\r\n
(nenhuma)
\r\n )}\r\n {(props.schedInfo && (props.schedInfo.schedules.length > 0)) && (\r\n \r\n )}\r\n {(state.modalEditSchedule) && (\r\n { setState({ modalEditSchedule: null }); }}>\r\n { setState({ modalEditSchedule: null }); }}\r\n />\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport const CoolAutomationSchedTable = (props: {\r\n schedInfo: ApiResps['/get-integration-info']['coolautomation']\r\n onDeleteClick?: (item: ScheduleInfo) => void\r\n onEditClick?: (item: ScheduleInfo) => void\r\n onSwitchClick?: (item: ScheduleInfo) => void\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const hasActions = !!(props.onDeleteClick || props.onEditClick);\r\n const daysTransl: { [k: string]: string } = {\r\n Monday: t('diaSeg').toLocaleUpperCase(),\r\n Tuesday: t('diaTer').toLocaleUpperCase(),\r\n Wednesday: t('diaQua').toLocaleUpperCase(),\r\n Thursday: t('diaQui').toLocaleUpperCase(),\r\n Friday: t('diaSex').toLocaleUpperCase(),\r\n Saturday: t('diaSab').toLocaleUpperCase(),\r\n Sunday: t('diaDom').toLocaleUpperCase(),\r\n };\r\n return (\r\n
\r\n {(props.schedInfo) && (\r\n \r\n \r\n \r\n {t('nome')}\r\n {t('ambiente')}\r\n {t('status')}\r\n {t('horarioDeInicio')}\r\n {t('horarioTermino')}\r\n {t('temperatura')}\r\n {t('programacao')}\r\n {hasActions && {t('acoes')}}\r\n \r\n \r\n \r\n {props.schedInfo.schedules.map((rowVar) => (\r\n \r\n {rowVar.name || '-'}\r\n {rowVar.unitName || rowVar.unit || '-'}\r\n \r\n {props.onSwitchClick && (\r\n { props.onSwitchClick!(rowVar); }}\r\n style={{ marginRight: '10px' }}\r\n />\r\n )}\r\n {(rowVar.isDisabled === false) ? t('ativo') : (rowVar.isDisabled === true) ? t('inativo') : '-'}\r\n \r\n {convertCoolAutomationSchedTime(rowVar.powerOnTime) || '-'}\r\n {convertCoolAutomationSchedTime(rowVar.powerOffTime) || '-'}\r\n {(rowVar.setpoint == null) ? '-' : `${rowVar.setpoint}°C`}\r\n {(rowVar.days && rowVar.days.map((x) => daysTransl[x] || x).join('-')) || '-'}\r\n {hasActions && (\r\n \r\n {props.onEditClick && (\r\n props.onEditClick!(rowVar)} variant=\"blue-inv\">\r\n \r\n \r\n )}\r\n {props.onDeleteClick && (\r\n props.onDeleteClick!(rowVar)} variant=\"red-inv\">\r\n \r\n \r\n )}\r\n \r\n )}\r\n \r\n ))}\r\n \r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport const TableScheds = styled.table`\r\n white-space: nowrap;\r\n border-collapse: collapse;\r\n & tbody {\r\n & tr {\r\n height: 35px;\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n }\r\n & td {\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n padding: 0 10px;\r\n font-size: 0.71rem\r\n }\r\n }\r\n & thead {\r\n & tr {\r\n height: 40px;\r\n display: table-row;\r\n }\r\n & th {\r\n flex: 1;\r\n justify-content: space-between;\r\n align-items: center;\r\n text-align: left;\r\n padding: 0 10px;\r\n word-break: normal;\r\n border-bottom: solid 1px ${colors.Grey};\r\n font-size: 0.75rem;\r\n }\r\n }\r\n`;\r\n","import styled from 'styled-components';\r\n\r\nimport { colors } from '~/styles/colors';\r\n\r\nexport const InfoItem = styled.div`\r\nwidth: 150px;\r\nmargin-right: 20px;\r\nmargin-bottom: 30px;\r\n`;\r\n\r\nexport const TableNew2 = styled.table`\r\nwidth: 100%;\r\nwhite-space: nowrap;\r\nborder-collapse: collapse;\r\n& tbody {\r\n & tr {\r\n height: 35px;\r\n &:hover {\r\n background-color: rgba(0, 0, 0, 0.05);\r\n }\r\n }\r\n & td {\r\n text-align: left;\r\n color: ${colors.DarkGrey};\r\n padding: 0 10px;\r\n }\r\n}\r\n& thead {\r\n & tr {\r\n height: 40px;\r\n display: table-row;\r\n border-bottom: solid 1px ${colors.Grey};\r\n }\r\n & th {\r\n flex: 1;\r\n text-align: left;\r\n align-items: center;\r\n padding: 0 10px;\r\n word-break: normal;\r\n }\r\n}\r\n`;\r\n\r\nexport const Title = styled.h1`\r\n font-size: 1.25em;\r\n color: #363BC4;\r\n font-weight: bold;\r\n margin-bottom: 16px;\r\n`;\r\n\r\nexport const IconWrapper = styled.div`\r\n width: 100%;\r\n height: 27px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n svg {\r\n width: 25px;\r\n height: 19px;\r\n }\r\n`;\r\n\r\nexport const StatusDevice = styled.div`\r\n border: 1px solid #D7D7D7;\r\n border-radius: 8px;\r\n padding: 10px 20px;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n align-items: center;\r\n min-width: 260px;\r\n font-size: 12px;\r\n`;\r\n","import { apiCall, ApiResps, apiSpecial } from '~/providers';\r\nimport {\r\n InfoItem, Title,\r\n} from './styles';\r\nimport {\r\n Carousel,\r\n} from '~/components';\r\nimport {\r\n driApplicationOpts,\r\n driFancoilsApplications,\r\n driMeterApplications,\r\n driProtocolsOpts,\r\n driVAVsApplications,\r\n getDriChillerCarrierApplications,\r\n} from '~/helpers/driConfigOptions';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { AssetStatus } from '~/components/AssetStatus';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { DRIScheduleSummary } from '../../SchedulesModals/DRI_Shedule';\r\nimport { useEffect, useState } from 'react';\r\n\r\nfunction getKeyByValue(object, value) {\r\n return Object.keys(object).find((key) => object[key] === value);\r\n}\r\n\r\nexport const DRIPRofile = (props: { devInfo: ApiResps['/get-integration-info']['info'], varsCfg?: { application: string, protocol: string, worksheetName: string, chillerGateway?: string }|null|undefined }): JSX.Element => {\r\n const { devInfo, varsCfg } = props;\r\n const { t } = useTranslation();\r\n\r\n async function handleGetAssetImages() {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'DRIS',\r\n });\r\n }\r\n async function handlePostAssetImage(photo: Blob) {\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'DRIS',\r\n file: photo,\r\n },\r\n );\r\n }\r\n async function handleDeleteAssetImage(imageUrl: string) {\r\n return apiCall('/upload-service/delete-image',\r\n {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'DRIS',\r\n filename: imageUrl,\r\n });\r\n }\r\n const [windowSize, setWindowSize] = useState([\r\n window.innerWidth,\r\n window.innerHeight,\r\n ]);\r\n\r\n useEffect(() => {\r\n const handleWindowResize = () => {\r\n setWindowSize([window.innerWidth, window.innerHeight]);\r\n };\r\n\r\n window.addEventListener('resize', handleWindowResize);\r\n\r\n return () => {\r\n window.removeEventListener('resize', handleWindowResize);\r\n };\r\n });\r\n\r\n const getDriModel = (varsCfg) => (\r\n getKeyByValue(driMeterApplications, varsCfg.application)\r\n ?? getKeyByValue(driVAVsApplications, varsCfg.application)\r\n ?? getKeyByValue(driFancoilsApplications, varsCfg.application)\r\n ?? varsCfg?.chillerModel\r\n ?? '-'\r\n );\r\n\r\n const getDriApplication = (varsCfg) => (\r\n varsCfg && (\r\n getKeyByValue(driApplicationOpts, varsCfg.application)\r\n || (getKeyByValue(driMeterApplications, varsCfg.application) && t('medidorEnergia'))\r\n || (getKeyByValue(driVAVsApplications, varsCfg.application) && 'VAV')\r\n || (getKeyByValue(driFancoilsApplications, varsCfg.application) && 'Fancoil')\r\n || (getKeyByValue(getDriChillerCarrierApplications(varsCfg?.chillerGateway === 'HVARC CONTROL'), varsCfg?.application) && 'Chiller Carrier')\r\n ) || '-'\r\n );\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {t('informacoes')}\r\n \r\n {t('fonteDados')}\r\n
\r\n {devInfo.dataSource || '-'}\r\n
\r\n \r\n \r\n {`${t('aplicacao')}:`}\r\n
\r\n {getDriApplication(varsCfg)}\r\n
\r\n {varsCfg && (\r\n getKeyByValue(driMeterApplications, varsCfg.application)\r\n || getKeyByValue(driVAVsApplications, varsCfg.application)\r\n || getKeyByValue(driFancoilsApplications, varsCfg.application)\r\n || getKeyByValue(getDriChillerCarrierApplications(varsCfg?.chillerGateway === 'HVARC CONTROL'), varsCfg?.application)\r\n ) && (\r\n \r\n {`${t('modelo')}:`}\r\n
\r\n {getDriModel(varsCfg)}\r\n
\r\n )}\r\n
\r\n\r\n \r\n \r\n {`${t('protocoloComunicacao')}:`}\r\n
\r\n {varsCfg && getKeyByValue(driProtocolsOpts, varsCfg.protocol) || '-'}\r\n
\r\n \r\n {`${t('planilha')}:`}\r\n
\r\n {varsCfg?.worksheetName ?? '-'}\r\n
\r\n
\r\n\r\n
\r\n\r\n {(['fancoil', 'carrier-ecosplit'].includes(varsCfg?.application ?? '')) && (\r\n \r\n Funcionamento\r\n \r\n \r\n )}\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n\r\n );\r\n};\r\n","import { useTranslation } from 'react-i18next';\r\nimport { ApiResps } from '~/providers';\r\nimport { InfoItem } from './styles';\r\nimport { t } from 'i18next';\r\n\r\nexport const IntegrDevInfo = (props: { devInfo: ApiResps['/get-integration-info']['info'] }): JSX.Element => {\r\n const { devInfo } = props;\r\n const { t } = useTranslation();\r\n\r\n return (\r\n
\r\n \r\n {`${t('estado')}:`}\r\n
\r\n {devInfo.STATE_ID || '-'}\r\n
\r\n \r\n {`${t('cidade')}:`}\r\n
\r\n {devInfo.CITY_NAME || '-'}\r\n
\r\n \r\n {`${t('unidade')}:`}\r\n
\r\n {devInfo.UNIT_NAME || '-'}\r\n
\r\n \r\n {`${t('cliente')}:`}\r\n
\r\n {devInfo.CLIENT_NAME || '-'}\r\n
\r\n \r\n {`${t('vertical')}:`}\r\n
\r\n {devInfo.vertical || '-'}\r\n
\r\n \r\n {t('fonteDados')}\r\n
\r\n {devInfo.dataSource || '-'}\r\n
\r\n \r\n {`${t('metodo')}:`}\r\n
\r\n {devInfo.method || '-'}\r\n
\r\n \r\n {`${t('maquina')}:`}\r\n
\r\n {devInfo.machineName || '-'}\r\n
\r\n \r\n {`${t('ambiente')}:`}\r\n
\r\n {devInfo.roomName || '-'}\r\n
\r\n \r\n {`${t('fornecedor')}:`}\r\n
\r\n {devInfo.supplier || '-'}\r\n
\r\n \r\n {`${t('tipo')}:`}\r\n
\r\n {devInfo.equipType || '-'}\r\n
\r\n \r\n {`${t('status')}:`}\r\n
\r\n {devInfo.status || '-'}\r\n
\r\n
\r\n );\r\n};\r\n","import moment from 'moment';\r\nimport { useEffect, useState } from 'react';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport { Carousel } from '~/components';\r\nimport { apiCall, ApiResps, apiSpecial } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport { Data, DataText } from '../../Assets/AssetInfo/styles';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { thousandPointFormat } from '~/helpers/thousandFormatNumber';\r\nimport { toast } from 'react-toastify';\r\nimport i18n from '~/i18n';\r\nimport { useWebSocket } from '~/helpers/wsConnection';\r\nimport {\r\n RegularSignalIcon,\r\n NoSignalIcon,\r\n BadSignalIcon,\r\n GoodSignalIcon,\r\n GreatSignalIcon,\r\n} from '~/icons';\r\nimport { IconWrapper, StatusDevice } from './styles';\r\n\r\nexport const IntegrWaterInfo = (props: {\r\n devInfo: ApiResps['/get-integration-info']['info'],\r\n integrId: string,\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const { devInfo, integrId } = props;\r\n const [bateryState, setBateryState] = useState('');\r\n const [rfModule, setRfModule] = useState('');\r\n const [lastReadingDate, setLastReadingDate] = useState(null);\r\n const [lastRSSI, setLastRSSI] = useState(0);\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n\r\n useEffect(() => {\r\n (async () => {\r\n if (!integrId.startsWith('DMA')) {\r\n const laagerUsage = await apiCall('/laager/get-informations', {\r\n unit_id: integrId,\r\n });\r\n\r\n setBateryState(laagerUsage.batery_state);\r\n setRfModule(laagerUsage.module_rf.toString());\r\n await verifyLastReadingDateLaager(integrId);\r\n }\r\n })();\r\n }, []);\r\n\r\n useWebSocket(onWsOpen, onWsMessage, beforeWsClose);\r\n\r\n function getRssiIcon(RSSI: number, status: string) {\r\n if (RSSI < 0 && status === 'ONLINE') {\r\n if (RSSI > -50) return ;\r\n if (RSSI > -60) return ;\r\n if (RSSI > -70) return ;\r\n return ;\r\n }\r\n return ;\r\n }\r\n\r\n async function verifyLastReadingDateLaager(device_code: string) {\r\n try {\r\n const response = await apiCall('/laager/get-informations', {\r\n unit_id: device_code,\r\n });\r\n if (response?.last_reading_date) {\r\n setLastReadingDate(moment(response.last_reading_date).format('lll'));\r\n setLastRSSI(-1);\r\n } else {\r\n setLastReadingDate(t('erroNaoFoiRealizadaNenhumaLeitura'));\r\n }\r\n } catch (error) {\r\n toast.error(t('erroCarregarInformacoes'));\r\n console.error(error);\r\n }\r\n }\r\n\r\n const changeSamplingPeriod = async (interval: number) => {\r\n try {\r\n await apiCall('/dma/set-sampling-period', { dmaId: integrId, samplingPeriod: interval });\r\n } catch (err) {\r\n toast.error(t('erroTelemetrias'));\r\n }\r\n };\r\n\r\n function onWsOpen(wsConn) {\r\n if (integrId?.startsWith('DMA')) {\r\n wsConn.send({ type: 'dmaSubscribeRealTime', data: { DMA_ID: integrId } });\r\n changeSamplingPeriod(10);\r\n }\r\n }\r\n\r\n function onWsMessage(response) {\r\n if (response && response.type === 'dmaTelemetry') {\r\n if (!response.data?.saved_data) {\r\n setLastReadingDate(moment(response.data?.timestamp).format('lll'));\r\n setLastRSSI(response.data?.RSSI ?? 0);\r\n }\r\n }\r\n }\r\n\r\n function beforeWsClose(wsConn) {\r\n changeSamplingPeriod(900);\r\n wsConn.send({ type: 'dmaUnsubscribeRealTime' });\r\n }\r\n\r\n async function handleGetAssetImages() {\r\n if (integrId.startsWith('DMA')) {\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'DMAS',\r\n });\r\n }\r\n return apiCall('/upload-service/get-images', {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'LAAGER',\r\n });\r\n }\r\n async function handlePostAssetImage(photo: Blob) {\r\n if (integrId.startsWith('DMA')) {\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'DMAS',\r\n file: photo,\r\n },\r\n );\r\n }\r\n\r\n return apiSpecial['/upload-service/upload-image'](\r\n {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'LAAGER',\r\n file: photo,\r\n },\r\n );\r\n }\r\n async function handleDeleteAssetImage(imageUrl: string) {\r\n if (integrId.startsWith('DMA')) {\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'DMAS',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n return apiCall('/upload-service/delete-image', {\r\n referenceId: devInfo.DEVICE_ID!,\r\n referenceType: 'LAAGER',\r\n filename: imageUrl,\r\n });\r\n }\r\n\r\n const handleDate = () => (\r\n devInfo.installationDate ? moment(devInfo.installationDate?.substring(0, 10)).format('ll') === t('dataInvalida') ? '-' : moment(devInfo.installationDate?.substring(0, 10)).format('ll') : '-'\r\n );\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n {integrId === '' ? 'Ambiente virtual sem Dispositivo' : integrId.startsWith('DMA') ? 'DMA ID' : t('idDaUnidadeLaager')}\r\n \r\n {devInfo.integrId || '-'}\r\n \r\n\r\n \r\n \r\n {t('fabricante')}\r\n \r\n {devInfo.supplier || '-'}\r\n \r\n\r\n {!integrId.startsWith('DMA') && (\r\n \r\n \r\n {t('moduloRf')}\r\n \r\n {rfModule || '-'}\r\n \r\n )}\r\n\r\n {!integrId.startsWith('DMA') && (\r\n \r\n \r\n {t('statusBateria')}\r\n \r\n {bateryState || '-'}\r\n \r\n )}\r\n\r\n \r\n \r\n {t('hidrometro')}\r\n \r\n {devInfo.hydrometerModel || '-'}\r\n \r\n\r\n \r\n \r\n {t('localDeInstalacao')}\r\n \r\n {devInfo.installationLocation || '-'}\r\n \r\n\r\n \r\n \r\n {t('dataInstalacao')}\r\n \r\n {handleDate()}\r\n \r\n\r\n \r\n \r\n {t('capacidadeTotalReservatorios')}\r\n \r\n {thousandPointFormat(devInfo.totalCapacity, true) || '-'}\r\n \r\n\r\n \r\n \r\n {t('totalDeReservatorios')}\r\n \r\n {devInfo.quantityOfReservoirs || '-'}\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n {t('status')}\r\n \r\n \r\n {getRssiIcon(lastRSSI, devInfo.status)}\r\n \r\n
\r\n \r\n \r\n {t('ultimaLeitura')}\r\n \r\n {lastReadingDate ?? '-'}\r\n
\r\n \r\n \r\n \r\n\r\n \r\n \r\n {integrId !== '' && (\r\n \r\n \r\n \r\n )}\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n","import { useEffect, useState } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport styled from 'styled-components';\r\nimport {\r\n Button,\r\n Card,\r\n Loader,\r\n} from '~/components';\r\nimport jsonTryParse from '~/helpers/jsonTryParse';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport IntegrLayout, { IntegrBreadCrumbs } from '~/pages/Analysis/Integrations/IntegrLayout';\r\nimport { apiCall, ApiResps } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport { CardsCfg } from '../IntegrEdit';\r\nimport { CoolAutomationSchedTable } from '../IntegrEdit/CoolAutomationEdit';\r\nimport { DRIPRofile } from './DRIProfile';\r\nimport { IntegrDevInfo } from './IntegrDevInfo';\r\nimport { IntegrWaterInfo } from './IntegrWaterInfo';\r\nimport { TableNew2 } from './styles';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\n\r\nexport const IntegrPerfil = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const match = useRouteMatch<{ integrType: 'diel'|'ness'|'greenant'|'coolautomation'|'water', integrId: string }>();\r\n const { integrType, integrId } = match.params;\r\n\r\n const [state, render, setState] = useStateVar(() => ({\r\n isLoading: true,\r\n devInfoResp: null as (null|ApiResps['/get-integration-info']),\r\n }));\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n setState({ isLoading: true });\r\n let response;\r\n\r\n if (integrId.startsWith('DMA')) {\r\n response = await apiCall('/get-integration-info', { supplier: 'diel-dma', integrId });\r\n } else if (integrType === 'water') {\r\n response = await apiCall('/get-integration-info', { supplier: 'laager', integrId });\r\n } else {\r\n response = await apiCall('/get-integration-info', { supplier: integrType, integrId });\r\n }\r\n state.devInfoResp = response;\r\n } catch (err) {\r\n toast.error(t('houveErro'));\r\n console.log(err);\r\n }\r\n setState({ isLoading: false });\r\n }());\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.devInfoResp?.info?.DEVICE_ID, t('perfil'))}\r\n \r\n \r\n \r\n
\r\n {state.isLoading && (\r\n \r\n )}\r\n {(!state.isLoading) && state.devInfoResp\r\n && (\r\n \r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nexport function IntegrPerfilContents(props: {\r\n integrType: string\r\n integrId: string\r\n devInfoResp: ApiResps['/get-integration-info'],\r\n editLink: null|string\r\n}): JSX.Element {\r\n const { t } = useTranslation();\r\n const history = useHistory();\r\n const { integrType, integrId, devInfoResp } = props;\r\n const [profile] = useState(getUserProfile);\r\n\r\n const [state, render, setState] = useStateVar(() => ({\r\n isLoading: true,\r\n varsCfg: null as (null|ApiResps['/get-integration-info']['dri']),\r\n varsList: [] as {\r\n varId: string\r\n name: string\r\n currVal?: string|null\r\n valUnit?: string\r\n card?: string\r\n subcard?: string\r\n timestamp?: string\r\n relevance?: string | number\r\n }[],\r\n coolautomation: null as null|{\r\n schedules: {\r\n days: ('Monday'|'Tuesday'|'Wednesday'|'Thursday'|'Friday'|'Saturday'|'Sunday')[],\r\n isDisabled: boolean\r\n endActionType: number\r\n scheduleCategory: number\r\n dates: unknown[]\r\n name: string\r\n powerOnTime: number\r\n powerOffTime?: number\r\n operationMode?: number\r\n setpoint: number\r\n system?: string\r\n unit?: string\r\n id: string\r\n }[]\r\n },\r\n }));\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n setState({ isLoading: true });\r\n const response = props.devInfoResp;\r\n state.varsCfg = (response.dri);\r\n state.varsList = (response.dri && response.dri.varsList) || [];\r\n state.coolautomation = response.coolautomation || null;\r\n const cardsCfg = (response.cardsCfg && jsonTryParse(response.cardsCfg)) || null;\r\n if (cardsCfg && cardsCfg.varscards) {\r\n for (const rowVar of state.varsList) {\r\n if (cardsCfg.varscards[rowVar.varId]) {\r\n rowVar.card = cardsCfg.varscards[rowVar.varId].card;\r\n rowVar.subcard = cardsCfg.varscards[rowVar.varId].subcard;\r\n rowVar.relevance = cardsCfg.varscards[rowVar.varId].relevance;\r\n rowVar.valUnit = cardsCfg.varscards[rowVar.varId].valUnit;\r\n }\r\n }\r\n }\r\n } catch (err) {\r\n toast.error(t('houveErro'));\r\n console.log(err);\r\n }\r\n setState({ isLoading: false });\r\n }());\r\n }, []);\r\n\r\n return (\r\n <>\r\n
\r\n {state.isLoading && (\r\n \r\n )}\r\n {(devInfoResp.info && !state.isLoading) && (\r\n <>\r\n {(integrType === 'diel' && integrId.startsWith('DRI')) ? (\r\n \r\n <>\r\n \r\n {((profile.manageAllClients && (['diel'].includes(integrType))) || profile.permissions.isInstaller || profile.adminClientProg?.CLIENT_MANAGE.some((item) => item === devInfoResp.info?.CLIENT_ID)) && props.editLink && (\r\n
\r\n history.push(props.editLink!)}\r\n variant=\"primary\"\r\n >\r\n {`${t('editar')}`}\r\n \r\n
\r\n )}\r\n \r\n
\r\n\r\n )\r\n : (\r\n \r\n {((integrType === 'water') || (integrId.startsWith('DMA') && integrType === 'diel')) && (\r\n <>\r\n {t('informacoes')}\r\n \r\n \r\n )}\r\n\r\n {(integrType !== 'water' && integrType !== 'diel') && (\r\n <>\r\n
{t('informacoes')}
\r\n \r\n \r\n )}\r\n\r\n {(profile.manageAllClients && (['water', 'coolautomation'].includes(integrType) || integrId.startsWith('DMA')) || profile.permissions.isInstaller) && props.editLink && (\r\n
\r\n history.push(props.editLink!)}\r\n variant=\"primary\"\r\n >\r\n {t('editar')}\r\n \r\n
\r\n )}\r\n\r\n
\r\n )}\r\n \r\n )}\r\n
\r\n\r\n {(state.coolautomation) && (\r\n
\r\n \r\n
\r\n
{t('programacoesAdicionadas')}
\r\n {(state.coolautomation.schedules.length === 0) && (\r\n
{t('nenhuma')}
\r\n )}\r\n {(state.coolautomation.schedules.length > 0) && (\r\n \r\n )}\r\n
\r\n
\r\n
\r\n )}\r\n \r\n );\r\n}\r\n\r\nexport const Title = styled.h1`\r\n font-size: 1.5em;\r\n color: ${colors.Grey400};\r\n font-weight: bold;\r\n`;\r\n\r\nexport const CardElement = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n`;\r\n\r\n//
Protocolo de Comunicação
\r\n//
Planilha
\r\n//
Dados Recebidos
\r\n//
Tabela com ID, Descrição (nome da variável), Valor Atual, Un. Medida, Card, Subcard
\r\n\r\nexport default withTransaction('IntegrPerfil', 'component')(IntegrPerfil);\r\n","import { useState, useEffect, SetStateAction } from 'react';\r\nimport { t } from 'i18next';\r\nimport { Box, Flex } from 'reflexbox';\r\nimport styled from 'styled-components';\r\nimport {\r\n Button, Input, Select, Loader, ClearSelect,\r\n} from '~/components';\r\nimport { ContentDate, Label, StyledCalendarIcon } from '~/pages/Overview/Default/styles';\r\nimport { Title } from '../../Integrations/IntegrPerfil';\r\nimport moment from 'moment';\r\nimport { SingleDatePicker } from 'react-dates';\r\nimport i18n from '~/i18n';\r\nimport 'react-datepicker/dist/react-datepicker.css';\r\nimport { toast } from 'react-toastify';\r\nimport { apiCall } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\nimport { Data, DataText } from '../../Assets/AssetInfo/styles';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { AxiosError } from 'axios';\r\nimport { useHistory } from 'react-router';\r\nimport SelectSearch, { fuzzySearch } from 'react-select-search';\r\nimport { SearchInput } from '../../styles';\r\n\r\nconst comboOptions: string[] = [\r\n t('emSerieHidrometroUnidade'),\r\n t('proximoCaixaDagua'),\r\n t('somenteSensorHidrometroUnidade'),\r\n t('outro'),\r\n];\r\n\r\nconst comboHydrometerOptions: string[] = ['Elster S120 (1 L/pulso)', 'ZENNER ETKD-P-N (10 L/pulso)', 'ZENNER MTKD-AM-I (10 L/pulso)',\r\n 'Saga Unijato US-1.5 (1 L/pulso)', 'Saga Unijato US-3.0 (1 L/pulso)', 'Saga Unijato US-5.0 (1 L/pulso)'];\r\n\r\ntype WaterData = {\r\n installationLocation?: string | null,\r\n installationDate?: string | null,\r\n totalCapacity?: number | null,\r\n quantityOfReservoirs?: number | null,\r\n hydrometerModel?: string | null,\r\n clientId?: number | null,\r\n unitId?: number | null,\r\n}\r\n\r\nexport default function WaterProfileEdit(props: {\r\n integrType: string,\r\n integrId: string,\r\n prevQuantityOfReservoirs?: number | null,\r\n prevTotalCapacity?: number | null,\r\n prevInstallationDate?: string | null,\r\n prevInstallationLocation?: string | null,\r\n prevHydrometerModel?: string | null,\r\n supplier?: string | null,\r\n clientInfo: { NAME: string, ID: number},\r\n unitInfo: { NAME: string, ID: number},\r\n handleUpdateIntegrPerfil: (installationLocation?: string | null, installationDate?: string | null, totalCapacity?: number | null, quantityOfReservoirs?: number | null, hydrometerModel?: string | null,) => void,\r\n}): JSX.Element {\r\n moment.locale(i18n.language === 'pt' ? 'pt-BR' : 'en');\r\n const {\r\n integrType, integrId, prevQuantityOfReservoirs, supplier, prevHydrometerModel, prevTotalCapacity, prevInstallationDate, prevInstallationLocation, handleUpdateIntegrPerfil, clientInfo, unitInfo,\r\n } = props;\r\n const [state, render, setState] = useStateVar({\r\n comboClients: [] as { label: string, value: number }[],\r\n comboUnits: [] as { label: string, value: number }[],\r\n client: clientInfo.NAME || '',\r\n clientId: clientInfo.ID || null,\r\n unit: unitInfo.NAME || '',\r\n unitId: unitInfo.ID || null,\r\n });\r\n\r\n const getInstallationLocation = () => {\r\n if (!prevInstallationLocation) return '';\r\n if (comboOptions.includes(prevInstallationLocation)) return prevInstallationLocation;\r\n return t('outro');\r\n };\r\n const getHydrometerModel = () => {\r\n if (!prevHydrometerModel) return '';\r\n if (comboHydrometerOptions.includes(prevHydrometerModel)) return prevHydrometerModel;\r\n return '';\r\n };\r\n\r\n const getOtherInstallationLocation = () => {\r\n if (!prevInstallationLocation) return '';\r\n if (!comboOptions.includes(prevInstallationLocation)) return prevInstallationLocation;\r\n return '';\r\n };\r\n\r\n const [installationLocation, setInstallationLocation] = useState(getInstallationLocation());\r\n const [hydrometerModel, setHydrometerModel] = useState(getHydrometerModel());\r\n const [installationDate, setInstallationDate] = useState(prevInstallationDate ? moment(prevInstallationDate) : '');\r\n const [totalCapacity, setTotalCapacity] = useState(prevTotalCapacity ? String(prevTotalCapacity) : '');\r\n const [quantityOfReservoirs, setQuantityOfReservoirs] = useState(prevQuantityOfReservoirs ? String(prevQuantityOfReservoirs) : '');\r\n const [calendarFocused, setCalendarFocused] = useState(false);\r\n const [otherLocation, setOtherLocation] = useState(getOtherInstallationLocation());\r\n const [isOtherSelected, setIsOtherSelected] = useState(false);\r\n const [isLoading, setIsLoading] = useState(false);\r\n const history = useHistory();\r\n\r\n useEffect(() => {\r\n if (state.comboClients.length === 0) {\r\n apiCall('/clients/get-clients-list', {}).then((response) => {\r\n state.comboClients = response.list.map((row) => ({ label: row.NAME, value: row.CLIENT_ID }));\r\n render();\r\n });\r\n }\r\n if (state.clientId) {\r\n loadUnitsClient(state.clientId);\r\n }\r\n }, [false]);\r\n\r\n useEffect(() => {\r\n if (installationLocation === t('outro')) {\r\n setIsOtherSelected(true);\r\n } else {\r\n setIsOtherSelected(false);\r\n }\r\n }, [installationLocation]);\r\n\r\n const loadUnitsClient = (clientId) => {\r\n const reqCombos = { CLIENT_ID: clientId, units: true };\r\n apiCall('/dev/dev-info-combo-options', reqCombos)\r\n .then((response) => {\r\n state.comboUnits = response.units!.map((row) => ({ label: row.label, value: row.value }));\r\n render();\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n toast.error('Houve erro');\r\n });\r\n };\r\n\r\n const onSelectClient = (item) => {\r\n state.client = item.name;\r\n state.clientId = item.value;\r\n state.unit = '';\r\n state.unitId = null;\r\n state.comboUnits = [];\r\n render();\r\n\r\n if (item?.value != null) {\r\n loadUnitsClient(item.value);\r\n }\r\n };\r\n\r\n const onSelectUnit = (item) => {\r\n state.unitId = item.value;\r\n state.unit = item.name;\r\n render();\r\n };\r\n\r\n const onSelectHydrometer = (item) => {\r\n setHydrometerModel(item);\r\n };\r\n\r\n const onSelectInstallationLocation = (item) => {\r\n setInstallationLocation(item);\r\n };\r\n\r\n const handleSaveBtn = async () => {\r\n const data: WaterData = {};\r\n const defaultInstallationLocation = !isOtherSelected && installationLocation !== '' ? installationLocation : null;\r\n data.installationLocation = isOtherSelected && otherLocation !== '' ? otherLocation : defaultInstallationLocation;\r\n data.installationDate = installationDate !== '' && installationDate !== null ? moment(installationDate).format('YYYY-MM-DD') : moment().format('YYYY-MM-DD');\r\n data.totalCapacity = totalCapacity !== '' ? Number(totalCapacity) : null;\r\n data.hydrometerModel = hydrometerModel !== '' ? hydrometerModel : null;\r\n data.quantityOfReservoirs = quantityOfReservoirs !== '' ? Number(quantityOfReservoirs) : null;\r\n data.unitId = state.unitId || null;\r\n data.clientId = state.clientId || null;\r\n\r\n try {\r\n setIsLoading(true);\r\n await apiCall(\r\n '/save-integration-info',\r\n {\r\n supplier: (integrId.startsWith('DMA') ? 'diel-dma' : 'laager'),\r\n integrId,\r\n ...data,\r\n },\r\n );\r\n\r\n handleUpdateIntegrPerfil(data.installationLocation, data.installationDate,\r\n data.totalCapacity, data.quantityOfReservoirs, data.hydrometerModel);\r\n\r\n if (!data.installationLocation) {\r\n setIsOtherSelected(false);\r\n setInstallationLocation('');\r\n }\r\n toast.success(t('sucessoSalvar'));\r\n // eslint-disable-next-line no-restricted-globals\r\n if (integrId.startsWith('DMA')) {\r\n history.push(`/integracoes/info/diel/${integrId}/perfil`);\r\n } else {\r\n history.push('/integracoes/');\r\n }\r\n\r\n render();\r\n } catch (error) {\r\n const err = error as AxiosError;\r\n toast.error(err?.response?.data || t('erroDados'));\r\n } finally {\r\n setIsLoading(false);\r\n }\r\n };\r\n\r\n return (\r\n \r\n \r\n {t('editar')}\r\n \r\n\r\n \r\n \r\n \r\n \r\n {integrId.startsWith('DMA') ? 'DMA ID' : t('idDaUnidadeLaager')}\r\n \r\n {integrId || '-'}\r\n \r\n \r\n \r\n \r\n \r\n {t('fabricante')}\r\n \r\n {supplier || '-'}\r\n \r\n \r\n \r\n \r\n
\r\n \r\n ({ value: item.value, name: item.label }))}\r\n value={state.clientId?.toString()}\r\n placeholder={t('cliente')}\r\n search\r\n filterOptions={fuzzySearch}\r\n onChange={(item, name) => onSelectClient(name)}\r\n />\r\n
\r\n
\r\n {state.clientId && (\r\n \r\n )}\r\n
\r\n \r\n \r\n
\r\n \r\n ({ value: item.value, name: item.label }))}\r\n value={state.unitId?.toString()}\r\n placeholder={t('unidade')}\r\n onChange={(item, name) => {\r\n onSelectUnit(name);\r\n }}\r\n disabled={!state.client}\r\n filterOptions={fuzzySearch}\r\n search\r\n />\r\n
\r\n
\r\n {state.unitId && (\r\n \r\n )}\r\n
\r\n \r\n \r\n
\r\n \r\n ({ value: item, name: item }))}\r\n value={hydrometerModel}\r\n placeholder={t('hidrometro')}\r\n onChange={(item) => {\r\n onSelectHydrometer(item);\r\n }}\r\n filterOptions={fuzzySearch}\r\n search\r\n disabled={!state.unit}\r\n />\r\n
\r\n
\r\n {hydrometerModel && (\r\n \r\n )}\r\n
\r\n \r\n \r\n
\r\n \r\n ({ value: item, name: item }))}\r\n value={installationLocation}\r\n placeholder={t('localDeInstalacao')}\r\n onChange={(item) => {\r\n onSelectInstallationLocation(item);\r\n }}\r\n filterOptions={fuzzySearch}\r\n search\r\n />\r\n
\r\n
\r\n {installationLocation && (\r\n \r\n )}\r\n
\r\n {isOtherSelected && (\r\n \r\n }; }) => setOtherLocation(e.target.value)}\r\n />\r\n \r\n )}\r\n \r\n \r\n \r\n setCalendarFocused(focused)}\r\n isOutsideRange={() => false}\r\n />\r\n \r\n \r\n \r\n \r\n }; }) => setTotalCapacity(e.target.value)}\r\n />\r\n \r\n \r\n }; }) => setQuantityOfReservoirs(e.target.value)}\r\n />\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n\r\nconst Card = styled.div`\r\n padding: 32px;\r\n margin-top: 24px;\r\n border-radius: 16px;\r\n box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.24), 0px 3px 12px rgba(0, 0, 0, 0.12);\r\n height: 100%;\r\n`;\r\n","import { useEffect } from 'react';\r\nimport moment from 'moment';\r\n\r\nimport { Loader } from '~/components';\r\nimport jsonTryParse from '~/helpers/jsonTryParse';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { apiCall, ApiResps } from '~/providers';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport { CardsCfg } from '../IntegrEdit';\r\nimport { InfoItem, TableNew2 } from './styles';\r\nimport { useTranslation } from 'react-i18next';\r\nimport i18n from '~/i18n';\r\n\r\nconst t = i18n.t.bind(i18n);\r\n\r\nexport const waterVars = [\r\n {\r\n varId: 'module_rf',\r\n name: t('moduloRf'),\r\n },\r\n {\r\n varId: 'batery_state',\r\n name: t('bateriaStatus'),\r\n },\r\n {\r\n varId: 'meter_type',\r\n name: t('tipoDeMedidor'),\r\n },\r\n {\r\n varId: 'last_reading_date',\r\n name: t('ultimaLeitura'),\r\n },\r\n {\r\n varId: 'current_usage',\r\n name: t('consumoAtual'),\r\n unity: true,\r\n },\r\n {\r\n varId: 'day_usage',\r\n name: t('consumoDia'),\r\n unity: true,\r\n },\r\n];\r\n\r\nexport function WaterProfile({ devInfoResp, integrId }: {\r\n devInfoResp: ApiResps['/get-integration-info'],\r\n integrId: string\r\n}): JSX.Element {\r\n const { t } = useTranslation();\r\n const [state, _, setState] = useStateVar(() => ({\r\n loading: true,\r\n laagerUsage: {} as ApiResps['/laager/get-informations'] | null,\r\n varsList: waterVars as {\r\n name: string\r\n varId: string,\r\n currVal?: string|null\r\n valUnit?: string\r\n card?: string,\r\n subcard?: string,\r\n relevance?: number | string\r\n }[],\r\n }));\r\n\r\n useEffect(() => {\r\n (async function () {\r\n setState({ loading: true });\r\n const laagerUsage = await apiCall('/laager/get-informations', {\r\n unit_id: integrId,\r\n });\r\n\r\n setState({ laagerUsage, loading: false });\r\n }());\r\n\r\n const cardsCfg = (devInfoResp.cardsCfg && jsonTryParse(devInfoResp.cardsCfg)) || null;\r\n if (cardsCfg && cardsCfg.varscards) {\r\n for (const rowVar of state.varsList) {\r\n if (cardsCfg.varscards[rowVar.varId]) {\r\n rowVar.card = cardsCfg.varscards[rowVar.varId].card;\r\n rowVar.subcard = cardsCfg.varscards[rowVar.varId].subcard;\r\n rowVar.relevance = cardsCfg.varscards[rowVar.varId].relevance;\r\n rowVar.valUnit = cardsCfg.varscards[rowVar.varId].valUnit;\r\n }\r\n }\r\n }\r\n }, [integrId]);\r\n\r\n function getVarValue(id: string, unity?: string) {\r\n if (id === 'last_reading_date') {\r\n return moment(state?.laagerUsage?.[id]).format('lll');\r\n } if (['current_usage', 'day_usage'].includes(id) && unity === 'm³') {\r\n return state?.laagerUsage?.[id] / 1000;\r\n }\r\n\r\n return state?.laagerUsage?.[id];\r\n }\r\n\r\n return (\r\n <>\r\n {state.loading && }\r\n {!state.loading && (\r\n <>\r\n <>\r\n
{t('consumo')}
\r\n
\r\n \r\n {t('consumoAtual')}\r\n
\r\n {state.laagerUsage?.current_usage}\r\n m³\r\n
\r\n \r\n {t('consumoDia')}\r\n
\r\n {state.laagerUsage?.day_usage}\r\n m³\r\n
\r\n \r\n {t('ultimaLeitura')}\r\n
\r\n {moment(state.laagerUsage?.last_reading_date).format('lll') || '-'}\r\n
\r\n
\r\n \r\n
\r\n
{t('dadosRecebidos')}
\r\n \r\n \r\n \r\n ID\r\n {t('descricao')}\r\n {t('valorAtual')}\r\n {t('unMedida')}\r\n Card\r\n Subcard\r\n {t('relevancia')}\r\n \r\n \r\n \r\n {waterVars.map((rowVar, index) => {\r\n const varValues = state.varsList.find((x) => x.varId === rowVar.varId);\r\n return (\r\n \r\n {devInfoResp.info.dataSource || '-'}\r\n {rowVar.name || '-'}\r\n \r\n {getVarValue(rowVar.varId, varValues?.valUnit)}\r\n \r\n \r\n {rowVar.unity\r\n ? (varValues?.valUnit !== 'm³' ? t('litros') : t('metrosCubicos'))\r\n : t('nenhum')}\r\n \r\n {varValues?.card || '-'}\r\n {varValues?.subcard || '-'}\r\n {varValues?.relevance || '1'}\r\n \r\n );\r\n })}\r\n \r\n \r\n
\r\n \r\n )}\r\n \r\n );\r\n}\r\n","import { useTranslation } from 'react-i18next';\r\nimport {\r\n Button,\r\n Input,\r\n Select,\r\n} from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { colors } from '~/styles/colors';\r\n\r\nimport {\r\n CardIntem, TableNew2,\r\n} from './styles';\r\n\r\nexport const CardsConfig = (props: {\r\n integrType: string\r\n varsList: {\r\n varId: string\r\n name: string\r\n currVal?: string\r\n valUnit?: string\r\n card?: string\r\n subcard?: string\r\n relevance?: string | number\r\n }[]\r\n cards: string[]\r\n subcards: string[]\r\n relevances: string[]\r\n}): JSX.Element => {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n newCardName: '',\r\n newSubcardName: '',\r\n newRelevance: '',\r\n });\r\n\r\n function addNewRelevance() {\r\n const name = state.newRelevance.trim();\r\n if (!props.relevances.includes(name)) props.relevances.push(name);\r\n state.newRelevance = '';\r\n render();\r\n }\r\n function addNewCard() {\r\n const name = state.newCardName.trim();\r\n if (!props.cards.includes(name)) props.cards.push(name);\r\n state.newCardName = '';\r\n render();\r\n }\r\n function addNewSubcard() {\r\n const name = state.newSubcardName.trim();\r\n if (!props.subcards.includes(name)) props.subcards.push(name);\r\n state.newSubcardName = '';\r\n render();\r\n }\r\n function removeCard(itemName: string) {\r\n for (const rowVar of props.varsList) {\r\n if (rowVar.card === itemName) {\r\n alert(t('alertaCardEstaSendoUtilizado'));\r\n return;\r\n }\r\n }\r\n for (let i = props.cards.length - 1; i >= 0; i--) {\r\n if (props.cards[i] === itemName) {\r\n props.cards.splice(i, 1);\r\n }\r\n }\r\n render();\r\n }\r\n function removeSubcard(itemName: string) {\r\n for (const rowVar of props.varsList) {\r\n if (rowVar.subcard === itemName) {\r\n alert(t('alertaSubcardEstaSendoUtilizado'));\r\n return;\r\n }\r\n }\r\n for (let i = props.subcards.length - 1; i >= 0; i--) {\r\n if (props.subcards[i] === itemName) {\r\n props.subcards.splice(i, 1);\r\n }\r\n }\r\n render();\r\n }\r\n function removeRelevance(itemName: string) {\r\n for (const rowVar of props.varsList) {\r\n if (rowVar.relevance === itemName) {\r\n alert(t('alertaRelevanceEstaSendoUtilizado'));\r\n return;\r\n }\r\n }\r\n for (let i = props.relevances.length - 1; i >= 0; i--) {\r\n if (props.relevances[i] === itemName) {\r\n props.relevances.splice(i, 1);\r\n }\r\n }\r\n render();\r\n }\r\n\r\n return (\r\n
\r\n
\r\n\r\n
\r\n
{t('cards')}
\r\n
\r\n setState({ newCardName: event.target.value })}\r\n />\r\n
\r\n \r\n
\r\n
\r\n
\r\n {props.cards.map((itemName) => (\r\n removeCard(itemName)} variant=\"blue\">{`${itemName} X`}\r\n ))}\r\n
\r\n
\r\n\r\n
\r\n
{t('subcards')}
\r\n
\r\n setState({ newSubcardName: event.target.value })}\r\n />\r\n
\r\n \r\n
\r\n
\r\n
\r\n {props.subcards.map((itemName) => (\r\n removeSubcard(itemName)} variant=\"blue\">{`${itemName} X`}\r\n ))}\r\n
\r\n
\r\n\r\n
\r\n
{t('relevancia')}
\r\n
\r\n setState({ newRelevance: event.target.value })}\r\n />\r\n
\r\n \r\n
\r\n
\r\n
\r\n {props.relevances.map((itemName) => (\r\n removeRelevance(itemName)} variant=\"blue\">{`${itemName} X`}\r\n ))}\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n {t('Nome')}\r\n {t('valorAtual')}\r\n {t('unidadeMedida')}\r\n {t('card')}\r\n {t('subcard')}\r\n {t('relevancia')}\r\n \r\n \r\n \r\n {props.varsList.map((rowVar, index) => (\r\n \r\n {rowVar.name}\r\n {rowVar.currVal || '-'}\r\n \r\n {['current_usage', 'day_usage'].includes(rowVar.varId) ? (\r\n { rowVar.valUnit = item; render(); }}\r\n />\r\n ) : ''}\r\n \r\n \r\n { rowVar.card = item; render(); }}\r\n />\r\n \r\n \r\n { rowVar.subcard = item; render(); }}\r\n />\r\n \r\n {props.integrType === 'water' ? (\r\n \r\n { rowVar.relevance = item; render(); }}\r\n />\r\n \r\n ) : (\r\n {rowVar.relevance || '-'}\r\n )}\r\n \r\n ))}\r\n \r\n \r\n
\r\n\r\n
\r\n );\r\n};\r\n","import { useEffect } from 'react';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useHistory, useRouteMatch } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\nimport {\r\n Button,\r\n Card,\r\n Loader,\r\n} from '~/components';\r\nimport jsonTryParse from '~/helpers/jsonTryParse';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport IntegrLayout, { IntegrBreadCrumbs } from '~/pages/Analysis/Integrations/IntegrLayout';\r\nimport { apiCall, ApiResps } from '~/providers';\r\nimport WaterProfileEdit from '../../Units/UnitWater/WaterProfileEdit';\r\nimport { IntegrDevInfo } from '../IntegrPerfil/IntegrDevInfo';\r\nimport { waterVars } from '../IntegrPerfil/WaterProfile';\r\nimport { CardsConfig } from './CardsConfig';\r\nimport { CoolAutomationEdit } from './CoolAutomationEdit';\r\nimport { DriConfig } from './DriConfig';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\n\r\nexport interface CardsCfg {\r\n cards: string[]\r\n subcards: string[]\r\n relevances: string[]\r\n varscards: {\r\n [varId: string]: { card?: string, subcard?: string, relevance?: string | number, valUnit?: string }\r\n }\r\n}\r\n\r\nexport const IntegrEdit = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const match = useRouteMatch<{ integrType: 'diel'|'ness'|'greenant'|'coolautomation'|'laager', integrId: string }>();\r\n const history = useHistory();\r\n const { integrType, integrId } = match.params;\r\n\r\n const [state, render, setState] = useStateVar(() => ({\r\n isLoading: true,\r\n devInfoResp: null as (null|ApiResps['/get-integration-info']),\r\n varsCfg: null as (null|ApiResps['/get-integration-info']['dri']),\r\n varsList: [] as {\r\n varId: string\r\n name: string\r\n currVal?: string\r\n valUnit?: string\r\n card?: string\r\n subcard?: string\r\n relevance?: string | number\r\n }[],\r\n cards: [] as string[],\r\n subcards: [] as string[],\r\n relevances: [] as string[],\r\n }));\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n setState({ isLoading: true });\r\n let response;\r\n if (integrId.startsWith('DMA')) {\r\n response = await apiCall('/get-integration-info', { supplier: 'diel-dma', integrId });\r\n } else {\r\n response = await apiCall('/get-integration-info', { supplier: integrType, integrId });\r\n }\r\n state.devInfoResp = response;\r\n state.varsCfg = (response.dri);\r\n state.varsList = (response.dri && response.dri.varsList)\r\n || (response.info.supplier === 'Laager' && waterVars) || [];\r\n const cardsCfg = (response.cardsCfg && jsonTryParse(response.cardsCfg)) || null;\r\n state.cards = (cardsCfg && cardsCfg.cards) || [];\r\n state.subcards = (cardsCfg && cardsCfg.subcards) || [];\r\n state.relevances = (cardsCfg && cardsCfg.relevances) || [];\r\n if (cardsCfg && cardsCfg.varscards) {\r\n for (const rowVar of state.varsList) {\r\n if (cardsCfg.varscards[rowVar.varId]) {\r\n rowVar.card = cardsCfg.varscards[rowVar.varId].card;\r\n rowVar.subcard = cardsCfg.varscards[rowVar.varId].subcard;\r\n rowVar.relevance = cardsCfg.varscards[rowVar.varId].relevance;\r\n rowVar.valUnit = cardsCfg.varscards[rowVar.varId].valUnit;\r\n }\r\n }\r\n }\r\n } catch (err) {\r\n toast.error(t('erro'));\r\n console.log(err);\r\n }\r\n setState({ isLoading: false });\r\n }());\r\n }, []);\r\n\r\n async function save() {\r\n try {\r\n const cardsCfg: CardsCfg = {\r\n cards: state.cards,\r\n subcards: state.subcards,\r\n relevances: state.relevances,\r\n varscards: {},\r\n };\r\n for (const rowVar of state.varsList) {\r\n cardsCfg.varscards[rowVar.varId] = {\r\n card: rowVar.card,\r\n subcard: rowVar.subcard,\r\n relevance: rowVar.relevance || 1,\r\n valUnit: rowVar.valUnit ?? undefined,\r\n };\r\n }\r\n await apiCall('/save-integration-info', { supplier: integrType, integrId, cardsCfg: JSON.stringify(cardsCfg) });\r\n history.push(history.location.pathname.replace('/editar', '/perfil'));\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('erro'));\r\n }\r\n }\r\n const handleUpdateIntegrPerfil = (installationLocation?: string | null, installationDate?: string | null, totalCapacity?: number | null, quantityOfReservoirs?: number | null, hydrometerModel?: string | null) => {\r\n state.devInfoResp!.info.installationLocation = installationLocation;\r\n state.devInfoResp!.info.installationDate = installationDate;\r\n state.devInfoResp!.info.totalCapacity = totalCapacity;\r\n state.devInfoResp!.info.quantityOfReservoirs = quantityOfReservoirs;\r\n state.devInfoResp!.info.hydrometerModel = hydrometerModel;\r\n render();\r\n };\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaIntegracoes')}\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n {state.isLoading && (\r\n \r\n )}\r\n {(state.devInfoResp && !state.isLoading) && (\r\n <>\r\n {(integrType === 'diel' && integrId.startsWith('DRI')) ? (\r\n <>\r\n {/* */}\r\n
\r\n \r\n \r\n ) : (integrType === 'diel' && integrId.startsWith('DMA') ? (\r\n \r\n ) : (\r\n
\r\n
{t('editar')}
\r\n
{t('informacoes')}
\r\n \r\n
\r\n ))}\r\n\r\n {(integrType === 'coolautomation') && state.devInfoResp.coolautomation && (\r\n <>\r\n
\r\n
\r\n \r\n \r\n )}\r\n\r\n {(!['coolautomation', 'diel'].includes(integrType)) && (\r\n <>\r\n
\r\n
\r\n \r\n\r\n
\r\n
\r\n
\r\n save()}\r\n variant=\"primary\"\r\n >\r\n {t('botaoSalvar')}\r\n \r\n history.push(history.location.pathname.replace('/editar', '/perfil'))}\r\n variant=\"secondary\"\r\n >\r\n {t('botaoCancelar')}\r\n \r\n
\r\n \r\n )}\r\n \r\n )}\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nexport default withTransaction('IntegrEdit', 'component')(IntegrEdit);\r\n","import { useEffect, useState } from 'react';\r\n\r\nimport { Helmet } from 'react-helmet';\r\nimport { useRouteMatch } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { apiCall, ApiResps } from 'providers';\r\nimport {\r\n Loader,\r\n} from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport IntegrLayout, { IntegrBreadCrumbs } from '~/pages/Analysis/Integrations/IntegrLayout';\r\n\r\nimport { DriHistory } from './DriHistory';\r\nimport { WaterHistory } from './WaterHistory/WaterHistory';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport 'react-datepicker/dist/react-datepicker.css';\r\nimport { TimezoneWarn } from '~/components/TimezoneWarn';\r\nimport { getUserProfile } from '~/helpers/userProfile';\r\n\r\nexport default function IntegrHistory(): JSX.Element {\r\n const { t } = useTranslation();\r\n const match = useRouteMatch<{ integrType: string, integrId: string }>();\r\n const { integrType, integrId } = match.params;\r\n const [profile] = useState(getUserProfile);\r\n const [state, render, setState] = useStateVar(() => ({\r\n isLoading: true,\r\n devInfo: null as (null|ApiResps['/get-integration-info']),\r\n }));\r\n\r\n useEffect(() => {\r\n (async function () {\r\n try {\r\n setState({ isLoading: true });\r\n let response;\r\n if (integrId.startsWith('DMA')) {\r\n response = await apiCall('/get-integration-info', {\r\n supplier: 'diel-dma',\r\n integrId,\r\n });\r\n } else {\r\n response = await apiCall('/get-integration-info', {\r\n supplier: integrType as 'diel' | 'ness' | 'greenant' | 'coolautomation' | 'laager',\r\n integrId,\r\n });\r\n }\r\n state.devInfo = response;\r\n } catch (err) {\r\n toast.error(t('erro'));\r\n console.log(err);\r\n }\r\n setState({ isLoading: false });\r\n }());\r\n }, []);\r\n function returnHistory() {\r\n if (match.params.integrType === 'diel' && integrId.startsWith('DRI')) {\r\n return ;\r\n }\r\n return
{t('naoDisponivel')}
;\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {t('tituloPagDielEnergiaHistorico')}\r\n \r\n \r\n \r\n
\r\n {((match.params.integrType === 'water' || (match.params.integrType === 'diel' && integrId.startsWith('DMA'))) ? (\r\n <>\r\n \r\n \r\n ) : (\r\n
\r\n {state.isLoading && (\r\n \r\n )}\r\n {(!state.isLoading) && (\r\n <>\r\n {returnHistory()}\r\n \r\n )}\r\n
\r\n ))}\r\n \r\n );\r\n}\r\n","import { useEffect, useMemo, useState } from 'react';\r\nimport { t } from 'i18next';\r\nimport { useParams, useHistory } from 'react-router-dom';\r\n\r\nimport { Breadcrumb3 } from 'components/Breadcrumb';\r\nimport { getUserProfile } from 'helpers/userProfile';\r\nimport { Header } from 'pages/Analysis/Header';\r\n\r\nexport type TUnitInfo = {\r\n CLIENT_NAME: string\r\n CLIENT_ID: number\r\n UNIT_ID: number\r\n UNIT_NAME: string\r\n UNIT_CODE_CELSIUS: string\r\n UNIT_CODE_API: string\r\n LAT: string\r\n LON: string\r\n CITY_ID: string\r\n CITY_NAME: string\r\n STATE_ID: string\r\n ADDRESS: string\r\n PRODUCTION: boolean\r\n hasEnergyInfo: boolean\r\n TARIFA_KWH: number\r\n EXTRA_DATA: string\r\n GA_METER: number\r\n TARIFA_DIEL: 0|1\r\n hasNess: boolean\r\n hasWater: boolean\r\n hasOxyn: boolean\r\n hasLaager: boolean\r\n hasChiller: boolean\r\n hasChillerAndOtherMachines: boolean\r\n hasVrf: boolean\r\n dmaId: string\r\n BASELINE_ID: number\r\n TIMEZONE_AREA: string\r\n TIMEZONE_ID: number\r\n TIMEZONE_OFFSET: number\r\n CONSTRUCTED_AREA: number\r\n AMOUNT_PEOPLE: number\r\n arrayChiller: { VARSCFG: string; DEVICE_CODE: string; }[]\r\n}\r\n\r\nexport const UnitLayout = (props: {\r\n unitInfo: null | TUnitInfo\r\n}): JSX.Element => {\r\n const routeParams = useParams<{ unitId }>();\r\n const history = useHistory();\r\n const [profile] = useState(getUserProfile);\r\n const { unitInfo } = props;\r\n const isInstaller = profile.permissions.isInstaller;\r\n const links = [] as { title: string, link: string }[];\r\n\r\n links.push({\r\n title: t('perfil'),\r\n link: `/analise/unidades/perfil/${routeParams.unitId}`,\r\n });\r\n if (props.unitInfo && (!props.unitInfo.hasChiller || props.unitInfo.hasChillerAndOtherMachines)) {\r\n links.push({\r\n title: t('tempoReal'),\r\n link: `/analise/unidades/${routeParams.unitId}`,\r\n });\r\n\r\n if (!isInstaller) {\r\n links.push({\r\n title: t('analiseIntegrada'),\r\n link: `/analise/unidades/integrated/${routeParams.unitId}`,\r\n });\r\n }\r\n links.push({\r\n title: t('energia'),\r\n link: `/analise/unidades/energyEfficiency/${routeParams.unitId}`,\r\n });\r\n }\r\n if (props.unitInfo && props.unitInfo.hasNess && !isInstaller) {\r\n links.push({\r\n title: 'NESS',\r\n link: `/analise/unidades/integracao-ness/${routeParams.unitId}`,\r\n });\r\n }\r\n if (props.unitInfo && props.unitInfo.hasLaager) {\r\n links.push({\r\n title: t('agua'),\r\n link: `/analise/unidades/integracao-agua/${routeParams.unitId}?aba=historico&supplier=laager`,\r\n });\r\n }\r\n if (props.unitInfo && props.unitInfo.dmaId) {\r\n links.push({\r\n title: t('agua'),\r\n link: `/analise/unidades/integracao-agua/${routeParams.unitId}?aba=historico&supplier=diel`,\r\n });\r\n }\r\n if (props.unitInfo && props.unitInfo.hasVrf && !isInstaller) {\r\n links.push({\r\n title: t('sistemasVrf'),\r\n link: `/analise/unidades/integracao-vrf/${routeParams.unitId}`,\r\n });\r\n }\r\n if (history.location.pathname.startsWith('/analise/unidades/revezamento-programacao/')) {\r\n links.push({\r\n link: history.location.pathname,\r\n title: t('revezamentoDeProgramacao'),\r\n });\r\n }\r\n if (history.location.pathname.startsWith(`/analise/unidades/perfil/${routeParams.unitId}/editar`)) {\r\n links.push({\r\n link: history.location.pathname,\r\n title: t('editarUnidade'),\r\n });\r\n }\r\n if (props.unitInfo && props.unitInfo.hasChiller) {\r\n links.push({\r\n link: `/analise/unidades/cag/${routeParams.unitId}`,\r\n title: t('CAG'),\r\n });\r\n }\r\n const bcrumbItems = useMemo(() => {\r\n const path = [] as { text: string, link: string|null }[];\r\n if (unitInfo && unitInfo.UNIT_NAME) {\r\n if (profile.manageAllClients) {\r\n path.push({ text: unitInfo.CLIENT_NAME, link: null });\r\n }\r\n path.push({ text: t('analise'), link: '/analise' });\r\n path.push({ text: t('unidades'), link: '/analise/unidades' });\r\n if (unitInfo.hasChiller) {\r\n path.push({ text: unitInfo.UNIT_NAME, link: `/analise/unidades/cag/${unitInfo.UNIT_ID}` });\r\n } else {\r\n path.push({ text: unitInfo.UNIT_NAME, link: `/analise/unidades/${unitInfo.UNIT_ID}` });\r\n }\r\n }\r\n return path;\r\n }, [unitInfo]);\r\n\r\n useEffect(() => {\r\n if (unitInfo && unitInfo?.hasChiller && !unitInfo.hasChillerAndOtherMachines) {\r\n const linkBase = `/analise/unidades/cag/${unitInfo.UNIT_ID}?aba=tempo-real&driId=${unitInfo.arrayChiller?.[0].DEVICE_CODE}`;\r\n history.push(`${linkBase}`);\r\n }\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n
\r\n
\r\n \r\n );\r\n};\r\n","import { useEffect } from 'react';\r\nimport { t } from 'i18next';\r\nimport { Helmet } from 'react-helmet';\r\nimport { useParams } from 'react-router';\r\nimport { toast } from 'react-toastify';\r\n\r\nimport { Loader } from '~/components';\r\nimport { useStateVar } from '~/helpers/useStateVar';\r\nimport { TUnitInfo, UnitLayout } from '~/pages/Analysis/Units/UnitLayout';\r\nimport { apiCall } from '~/providers';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { withTransaction } from '@elastic/apm-rum-react';\r\nimport { generateNameFormatted } from '~/helpers/titleHelper';\r\n\r\nexport const UnitNess = (): JSX.Element => {\r\n const { t } = useTranslation();\r\n const routeParams = useParams<{ unitId: string }>();\r\n const [state, render, setState] = useStateVar({\r\n unitId: Number(routeParams.unitId),\r\n unitInfo: null as null| TUnitInfo,\r\n });\r\n\r\n async function fetchUnitInfo() {\r\n try {\r\n const unitInfo = await apiCall('/clients/get-unit-info', { unitId: state.unitId });\r\n state.unitInfo = unitInfo;\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n fetchUnitInfo();\r\n }, []);\r\n\r\n return (\r\n <>\r\n \r\n {generateNameFormatted(state.unitInfo?.UNIT_NAME, t('sistemasNess'))}\r\n \r\n \r\n
\r\n \r\n \r\n );\r\n};\r\n\r\nexport function UnitNessContent(props: { unitId: number }): JSX.Element {\r\n const { t } = useTranslation();\r\n const [state, render, setState] = useStateVar({\r\n isLoading: true,\r\n iframeLoading: false,\r\n // @ts-ignore\r\n url: null as string,\r\n });\r\n\r\n async function handleGetUnitInfo() {\r\n try {\r\n setState({ isLoading: true });\r\n const { url } = await apiCall('/get-ness-dashboard-url-for-unit', { unitId: props.unitId });\r\n state.url = url;\r\n state.iframeLoading = !!url;\r\n\r\n render();\r\n } catch (err) {\r\n console.log(err);\r\n toast.error(t('houveErro'));\r\n }\r\n setState({ isLoading: false });\r\n }\r\n\r\n useEffect(() => {\r\n handleGetUnitInfo();\r\n }, []);\r\n\r\n return (\r\n <>\r\n {(state.isLoading) && }\r\n {(!state.isLoading) && (\r\n (state.url)\r\n ? (\r\n <>\r\n {state.iframeLoading &&
{t('carregando')}
}\r\n