1"use strict";(self.webpackChunkmy_geotab=self.webpackChunkmy_geotab||[]).push([[1122],{12802(e,t){t.Ei=t.y2=t.aQ=t._=t.wL=t.IM=t.cg=t.E=t.hx=void 0,t.gg=t._Y=t.dp=t.ZK=t.QF=t.rR=t.$$=t.ry=t.GX=void 0,t.kq=t.c6=t.bA=t.fF=void 0,t.hx={AppDeny:"AppDeny",AppView:"AppView",AppEdit:"AppEdit",AppFull:"AppFull",FeatureDeny:"FeatureDeny",FeatureView:"FeatureView",FeatureEdit:"FeatureEdit",FeatureAddOrDelete:"FeatureAddOrDelete"},t.E={Users:"Users",DeviceAndAssets:"DeviceAndAssets",Groups:"Groups",Reporting:"Reporting",RulesAndEvents:"RulesAndEvents",MapAndTripHistory:"MapAndTripHistory",Database:"Database",Ai:"Ai",AppsAndIntegrations:"AppsAndIntegrations",InstalledApps:"InstalledApps",CustomAddins:"CustomAddins",UserPreference:"UserPreference",DeviceAndUserManagement:"DeviceAndUserManagement"},t.cg={Pending:"Pending",Confirmed:"Confirmed",Active:"Active",Completed:"Completed",Cancelled:"Cancelled"},t.IM={Offline:"Offline",Online:"Online",Standby:"Standby"},t.wL={Surfsight:"Surfsight",Lytx:"Lytx",Sensata:"Sensata",Smarterai:"Smarterai",Gofocus:"Gofocus",Netradyne:"Netradyne",Mock:"Mock"},t._={Device:"Device",User:"User"},t.aQ={All:"All",Device:"Device",Trailer:"Trailer"},t.y2={Active:"Active",Inactive:"Inactive",Requested:"Requested",Rejected:"Rejected"},t.Ei={Driving:"Driving",Rest:"Rest",Duty:"Duty",Workday:"Workday",Cycle:"Cycle",DailyDriving:"DailyDriving",DailyRest:"DailyRest",DailyDuty:"DailyDuty",DailyOff:"DailyOff",CycleRest:"CycleRest",DutySinceCycleRest:"DutySinceCycleRest",EwdRest:"EwdRest",EwdWork:"EwdWork",EwdWorkExemption:"EwdWorkExemption",CycleDriving:"CycleDriving",CycleEnd:"CycleEnd"},t.GX={None:"None",Optional:"Optional",Required:"Required"},t.ry={Unknown:"Unknown",Archive:"Archive",Restore:"Restore",Delete:"Delete"},t.$$={Collision:"Collision",CustomerComplaint:"CustomerComplaint",Theft:"Theft",UnauthorizedUse:"UnauthorizedUse",Other:"Other"},t.rR={AceUserAccessStateEntityUploadRequestId:"AceUserAccessStateEntityUploadRequestId",ActiveEngineFaultsDefaultDashboardReportScheduleId:"ActiveEngineFaultsDefaultDashboardReportScheduleId",AddonInventureZone1ReturnTemp:"AddonInventureZone1ReturnTemp",AddonInventureZone2ReturnTemp:"AddonInventureZone2ReturnTemp",AddonInventureZone3ReturnTemp:"AddonInventureZone3ReturnTemp",AddressZoneEntityUploadRequestId:"AddressZoneEntityUploadRequestId",AggressiveDrivingDefaultDashboardReportScheduleId:"AggressiveDrivingDefaultDashboardReportScheduleId",AllDevicesIncludeArchivedReprocessRequest:"AllDevicesIncludeArchivedReprocessRequest",AllDevicesReprocessRequest:"AllDevicesReprocessRequest",AllRulesIdReprocessRequest:"AllRulesIdReprocessRequest",AuditBigQueryUploadRequestId:"AuditBigQueryUploadRequestId",AverageFuelEconomyDefaultDashboardReportScheduleId:"AverageFuelEconomyDefaultDashboardReportScheduleId",BinaryDataBigQueryUploadRequestId:"BinaryDataBigQueryUploadRequestId",BuildBatteryChargeEventTypeChargeId:"BuildBatteryChargeEventTypeChargeId",BuildBatteryChargeEventTypeUnknownId:"BuildBatteryChargeEventTypeUnknownId",BuildProductivityEventTypeDriveTimeId:"BuildProductivityEventTypeDriveTimeId",BuildProductivityEventTypeIdleTimeId:"BuildProductivityEventTypeIdleTimeId",BuildProductivityEventTypeLiftingTimeId:"BuildProductivityEventTypeLiftingTimeId",BuildProductivityEventTypePowertrainTimeId:"BuildProductivityEventTypePowertrainTimeId",BuildProductivityEventTypeProductiveTimeId:"BuildProductivityEventTypeProductiveTimeId",BuildProductivityEventTypeUnknownId:"BuildProductivityEventTypeUnknownId",BuildProductivityEventTypeWorkAtHeightTimeId:"BuildProductivityEventTypeWorkAtHeightTimeId",BuildSafetyEventTypeOverloadId:"BuildSafetyEventTypeOverloadId",BuildSafetyEventTypeSequenceErrorId:"BuildSafetyEventTypeSequenceErrorId",BuildSafetyEventTypeTiltId:"BuildSafetyEventTypeTiltId",BuildSafetyEventTypeUnknownId:"BuildSafetyEventTypeUnknownId",CameraBigQueryUploadRequestId:"CameraBigQueryUploadRequestId",CameraHealthBigQueryUploadRequestId:"CameraHealthBigQueryUploadRequestId",CameraStatusBigQueryUploadRequestId:"CameraStatusBigQueryUploadRequestId",ChargeEventBigQueryUploadRequestId:"ChargeEventBigQueryUploadRequestId",CoachingSessionStateActiveId:"CoachingSessionStateActiveId",CoachingSessionStateCompletedId:"CoachingSessionStateCompletedId",CoachingSessionStateNewId:"CoachingSessionStateNewId",CommandActionColdChainClearFaultsId:"CommandActionColdChainClearFaultsId",CommandActionColdChainRemoteOffId:"CommandActionColdChainRemoteOffId",CommandActionColdChainRemoteOnId:"CommandActionColdChainRemoteOnId",CommandActionColdChainSetpointId:"CommandActionColdChainSetpointId",CommandCategoryColdChainId:"CommandCategoryColdChainId",CommandCategoryKeylessId:"CommandCategoryKeylessId",CommandIntegratorIoxId:"CommandIntegratorIoxId",CommandIntegratorOemId:"
1CommandIntegratorOemId",CommandStatusCompletedId:"CommandStatusCompletedId",CommandStatusFailedId:"CommandStatusFailedId",CommandStatusPendingId:"CommandStatusPendingId",CommandStatusSentId:"CommandStatusSentId",CommandStatusTimedOutId:"CommandStatusTimedOutId",ComplianceReportTagId:"ComplianceReportTagId",ControllerAerodynamicControlId:"ControllerAerodynamicControlId",ControllerAerodynamicControlUnitId:"ControllerAerodynamicControlUnitId",ControllerAftertreatmentSystemGasIntakeId:"ControllerAftertreatmentSystemGasIntakeId",ControllerAftertreatmentSystemGasOutletId:"ControllerAftertreatmentSystemGasOutletId",ControllerAlternatorElectricalChargingSystemId:"ControllerAlternatorElectricalChargingSystemId",ControllerAnyId:"ControllerAnyId",ControllerAuxiliaryHeaterNo1Id:"ControllerAuxiliaryHeaterNo1Id",ControllerAuxiliaryHeaterNo2Id:"ControllerAuxiliaryHeaterNo2Id",ControllerAuxiliaryValveControlId:"ControllerAuxiliaryValveControlId",ControllerAxleDriveNo1Id:"ControllerAxleDriveNo1Id",ControllerAxleDriveNo2Id:"ControllerAxleDriveNo2Id",ControllerAxlePowerUnitId:"ControllerAxlePowerUnitId",ControllerAxleSteeringId:"ControllerAxleSteeringId",ControllerAxleTrailerId:"ControllerAxleTrailerId",ControllerBigQueryUploadRequestId:"ControllerBigQueryUploadRequestId",ControllerBodyControllerId:"ControllerBodyControllerId",ControllerBrakesDriveAxleNo1Id:"ControllerBrakesDriveAxleNo1Id",ControllerBrakesDriveAxleNo2Id:"ControllerBrakesDriveAxleNo2Id",ControllerBrakesPowerUnitId:"ControllerBrakesPowerUnitId",ControllerBrakesSteerAxleId:"ControllerBrakesSteerAxleId",ControllerBrakesSystemControllerId:"ControllerBrakesSystemControllerId",ControllerBrakesTrailerNo1Id:"ControllerBrakesTrailerNo1Id",ControllerBrakesTrailerNo2Id:"ControllerBrakesTrailerNo2Id",ControllerBrakesTrailerNo3Id:"ControllerBrakesTrailerNo3Id",ControllerBrpFaultId:"ControllerBrpFaultId",ControllerCabClimateControlId:"ControllerCabClimateControlId",ControllerCabControllerPrimaryId:"ControllerCabControllerPrimaryId",ControllerCabControllerSecondaryId:"ControllerCabControllerSecondaryId",ControllerCabDisplayNo1Id:"ControllerCabDisplayNo1Id",ControllerCabDisplayNo2Id:"ControllerCabDisplayNo2Id",ControllerCargoRefrigerationHeatingTrailerId:"ControllerCargoRefrigerationHeatingTrailerId",ControllerChassisControllerNo1Id:"ControllerChassisControllerNo1Id",ControllerChassisControllerNo2Id:"ControllerChassisControllerNo2Id",ControllerClutchConverterUnitId:"ControllerClutchConverterUnitId",ControllerCommunicationUnitGroundId:"ControllerCommunicationUnitGroundId",ControllerCommunicationUnitSatelliteId:"ControllerCommunicationUnitSatelliteId",ControllerCommunicationsUnitCellularId:"ControllerCommunicationsUnitCellularId",ControllerCommunicationsUnitRadioId:"ControllerCommunicationsUnitRadioId",ControllerCommunicationsUnitSatelliteId:"ControllerCommunicationsUnitSatelliteId",ControllerCrankingStartingSystemId:"ControllerCrankingStartingSystemId",ControllerDataLoggingComputerId:"ControllerDataLoggingComputerId",ControllerDefaultGeotabAiModelId:"ControllerDefaultGeotabAiModelId",ControllerDiagnosticSystemsPowerUnitId:"ControllerDiagnosticSystemsPowerUnitId",ControllerDiagnosticSystemsTrailerId:"ControllerDiagnosticSystemsTrailerId",ControllerDriverInformationCenterNo1Id:"ControllerDriverInformationCenterNo1Id",ControllerElectricalChargingSystemId:"ControllerElectricalChargingSystemId",ControllerElectricalId:"ControllerElectricalId",ControllerElectricalSystemId:"ControllerElectricalSystemId",ControllerEnduranceBrakingSystemId:"ControllerEnduranceBrakingSystemId",ControllerEngineNo2Id:"ControllerEngineNo2Id",ControllerEngineNo3Id:"ControllerEngineNo3Id",ControllerEngineRetarderId:"ControllerEngineRetarderId",ControllerEngineValveControllerId:"ControllerEngineValveControllerId",ControllerExhaustEmissionControllerId:"ControllerExhaustEmissionControllerId",ControllerFanDriveControllerId:"ControllerFanDriveControllerId",ControllerGeotabAiModelFaultId:"ControllerGeotabAiModelFaultId",ControllerGmcccFaultId:"ControllerGmcccFaultId",ControllerGoDeviceId:"ControllerGoDeviceId",ControllerHeadwayControllerId:"ControllerHeadwayControllerId",ControllerHitchControlId:"ControllerHitchControlId",ControllerHydraulicPumpControllerId:"ControllerHydraulicPumpControllerId",ControllerIgnitionControlModuleNo1Id:"ControllerIgnitionControlModuleNo1Id",ControllerIgnitionControlModuleNo2Id:"ControllerIgnitionControlModuleNo2Id",ControllerInformationSystemControllerNo1Id:"ControllerInformationSystemControllerNo1Id",ControllerInstrumentClusterId:"ControllerInstrumentClusterId",ControllerInstrumentClusterNo1Id:"ControllerInstrumentClusterNo1Id",ControllerJ1708CruiseControlId:"ControllerJ1708CruiseControlId",ControllerJ1708EngineId:"ControllerJ1708EngineId",ControllerJ1708FuelSystemId:"ControllerJ1708FuelSystemId",ControllerJ1708PneumaticSystemControllerId:"ControllerJ1708PneumaticSystemControllerId",ControllerJ1708PowerTakeoffId:"ControllerJ1708PowerTakeoffId",ControllerJ1708TripRecorderId:"ControllerJ1708TripRecorderId",ControllerJ1708TurbochargerId:"ControllerJ1708TurbochargerId",ControllerJ1708VehicleSecurityId:"ControllerJ1708VehicleSecurityId",ControllerJ1939CruiseControlId:"ControllerJ1939CruiseControlId",ControllerJ1939EngineNo1Id:"ControllerJ1939EngineNo1Id",ControllerJ1939EngineNo2Id:"ControllerJ1939EngineNo2Id",ControllerJ1939FuelSystemId:"ControllerJ1939FuelSystemId",ControllerJ1939PneumaticSystemControllerId:"ControllerJ1939PneumaticSystemControllerId",ControllerJ1939PowerTakeOffMainRearId:"ControllerJ1939PowerTakeOffMainRearId",ControllerJ1939TripRecorderId:"ControllerJ1939TripRecorderId",ControllerJ1939TurbochargerId:"ControllerJ1939TurbochargerId",ControllerJ1939VehicleSecurityId:"ControllerJ1939VehicleSecurityId",ControllerLegacyFaultId:"ControllerLegacyFaultId",ControllerLightingOperatorControlsId:"ControllerLightingOperatorControlsId",ControllerManagementComputerNo1Id:"ControllerManagementComputerNo1Id",ControllerMultiplexId:"ControllerMultiplexId",ControllerNoneId:"ControllerNoneId",ControllerObdBodyId:"ControllerObdBodyId",ControllerObdChassisId:"ControllerObdChassisId",ControllerObdNetworkingId:"ControllerObdNetworkingId",ControllerObdPowertrainId:"ControllerObdPowertrainId",ControllerObdWwhBodyId:"ControllerObdWwhBodyId",ControllerObdWwhChassisId:"ControllerObdWwhChassisId",ControllerObdWwhNetworkingId:"ControllerObdWwhNetworkingId",ControllerObdWwhPowertrainId:"ControllerObdWwhPowertrainId",ControllerOffVehicleGatewayId:"ControllerOffVehicleGatewayId",ControllerOffboardDiagnosticsNo1Id:"ControllerOffboardDiagnosticsNo1Id",ControllerOffboardDiagnosticsNo2Id:"ControllerOffboardDiagnosticsNo2Id",ControllerOffboardProgrammingStationId:"ControllerOffboardProgrammingStationId",ControllerOilSensorId:"
1ControllerOilSensorId",ControllerOnBoardDiagnosticUnitId:"ControllerOnBoardDiagnosticUnitId",ControllerParkingBrakeControllerId:"ControllerParkingBrakeControllerId",ControllerParticulateTrapSystemId:"ControllerParticulateTrapSystemId",ControllerPassengerOperatorClimateControl1Id:"ControllerPassengerOperatorClimateControl1Id",ControllerPassengerOperatorClimateControlNo2Id:"ControllerPassengerOperatorClimateControlNo2Id",ControllerPowerTakeOffFrontSecondaryId:"ControllerPowerTakeOffFrontSecondaryId",ControllerProprietaryFaultId:"ControllerProprietaryFaultId",ControllerPropulsionBatteryChargerId:"ControllerPropulsionBatteryChargerId",ControllerProximityDetectorFrontId:"ControllerProximityDetectorFrontId",ControllerProximityDetectorRearId:"ControllerProximityDetectorRearId",ControllerRampControlId:"ControllerRampControlId",ControllerRearAxleSteeringControllerId:"ControllerRearAxleSteeringControllerId",ControllerRearAxleSteeringControllerNo1Id:"ControllerRearAxleSteeringControllerNo1Id",ControllerRetarderDrivelineId:"ControllerRetarderDrivelineId",ControllerRetarderEngineId:"ControllerRetarderEngineId",ControllerRetarderExhaustEngineNo1Id:"ControllerRetarderExhaustEngineNo1Id",ControllerRetarderExhaustEngineNo2Id:"ControllerRetarderExhaustEngineNo2Id",ControllerRoadSpeedIndicatorId:"ControllerRoadSpeedIndicatorId",ControllerSafetyRestraintSystemId:"ControllerSafetyRestraintSystemId",ControllerSeatControlNo1Id:"ControllerSeatControlNo1Id",ControllerSeatControlNo2Id:"ControllerSeatControlNo2Id",ControllerShiftConsolePrimaryId:"ControllerShiftConsolePrimaryId",ControllerShiftConsoleSecondaryId:"ControllerShiftConsoleSecondaryId",ControllerSource14AnyId:"ControllerSource14AnyId",ControllerStarterSystemId:"ControllerStarterSystemId",ControllerSteeringColumnUnitId:"ControllerSteeringColumnUnitId",ControllerSteeringControllerId:"ControllerSteeringControllerId",ControllerSuspensionDriveAxleNo1Id:"ControllerSuspensionDriveAxleNo1Id",ControllerSuspensionDriveAxleNo2Id:"ControllerSuspensionDriveAxleNo2Id",ControllerSuspensionPowerUnitId:"ControllerSuspensionPowerUnitId",ControllerSuspensionSteerAxleId:"ControllerSuspensionSteerAxleId",ControllerSuspensionSystemControllerNo1Id:"ControllerSuspensionSystemControllerNo1Id",ControllerSuspensionSystemControllerNo2Id:"ControllerSuspensionSystemControllerNo2Id",ControllerSuspensionTrailerId:"ControllerSuspensionTrailerId",ControllerTirePressureControllerId:"ControllerTirePressureControllerId",ControllerTiresControlUnitId:"ControllerTiresControlUnitId",ControllerTiresPowerUnitId:"ControllerTiresPowerUnitId",ControllerTiresTrailerId:"ControllerTiresTrailerId",ControllerTiresTrailerNo2Id:"ControllerTiresTrailerNo2Id",ControllerTiresTrailerNo3Id:"ControllerTiresTrailerNo3Id",ControllerTractorTrailerBridgeNo1Id:"ControllerTractorTrailerBridgeNo1Id",ControllerTransmissionAdditionalHybridControlModuleId:"ControllerTransmissionAdditionalHybridControlModuleId",ControllerTransmissionDisplayPrimaryId:"ControllerTransmissionDisplayPrimaryId",ControllerTransmissionDisplaySecondaryId:"ControllerTransmissionDisplaySecondaryId",ControllerTransmissionId:"ControllerTransmissionId",ControllerTransmissionNo1Id:"ControllerTransmissionNo1Id",ControllerTransmissionNo2Id:"ControllerTransmissionNo2Id",ControllerVehicleDynamicStabilityControllerId:"ControllerVehicleDynamicStabilityControllerId",ControllerVehicleManagementSystemId:"ControllerVehicleManagementSystemId",ControllerVehicleManagementSystemNo2Id:"ControllerVehicleManagementSystemNo2Id",ControllerVehicleManagementSystemNo3Id:"ControllerVehicleManagementSystemNo3Id",ControllerVehicleNavigationId:"ControllerVehicleNavigationId",ControllerVehicleNavigationUnitId:"ControllerVehicleNavigationUnitId",ControllerVehicleSensorsToDataConverterId:"ControllerVehicleSensorsToDataConverterId",ControllerVirtualTerminalId:"ControllerVirtualTerminalId",ControllerWaterPumpControllerId:"ControllerWaterPumpControllerId",CustomDataUploaderStateId:"
1CustomDataUploaderStateId",CustomReportScheduleBigQueryUploadRequestId:"CustomReportScheduleBigQueryUploadRequestId",DVIRLogBigQueryUploadRequestId:"DVIRLogBigQueryUploadRequestId",DVIRLogLegacyBigQueryUploadRequestId:"DVIRLogLegacyBigQueryUploadRequestId",DataShareAutoAcceptUserId:"DataShareAutoAcceptUserId",DebugDataBigQueryUploadRequestId:"DebugDataBigQueryUploadRequestId",DeviceAndInstallationReportTagId:"DeviceAndInstallationReportTagId",DeviceBigQueryUploadRequestId:"DeviceBigQueryUploadRequestId",DeviceReplacementStatusCompletedId:"DeviceReplacementStatusCompletedId",DeviceReplacementStatusEligibleId:"DeviceReplacementStatusEligibleId",DeviceReplacementStatusRequestedId:"DeviceReplacementStatusRequestedId",DeviceSourceAddressInfoBigQueryUploadRequestId:"DeviceSourceAddressInfoBigQueryUploadRequestId",DeviceStatusInfoBigQueryUploadRequestId:"DeviceStatusInfoBigQueryUploadRequestId",DiagnosticACControlUnitStatusId:"DiagnosticACControlUnitStatusId",DiagnosticAbsSystemActiveId:"DiagnosticAbsSystemActiveId",DiagnosticAbsWarningLightId:"DiagnosticAbsWarningLightId",DiagnosticAccelerationEventbeforeCalibrationId:"DiagnosticAccelerationEventbeforeCalibrationId",DiagnosticAccelerationForwardBrakingId:"DiagnosticAccelerationForwardBrakingId",DiagnosticAccelerationSideToSideId:"DiagnosticAccelerationSideToSideId",DiagnosticAccelerationUpDownId:"DiagnosticAccelerationUpDownId",DiagnosticAccelerometerCalibratedId:"DiagnosticAccelerometerCalibratedId",DiagnosticAccelerometerFailedToInitializeId:"DiagnosticAccelerometerFailedToInitializeId",DiagnosticAccelerometerInterruptFailureId:"DiagnosticAccelerometerInterruptFailureId",DiagnosticAccidentDataUploadEventId:"DiagnosticAccidentDataUploadEventId",DiagnosticAccidentLevelAccelerationEventId:"DiagnosticAccidentLevelAccelerationEventId",DiagnosticA
1irConditionerRefrigerantPressureId:"DiagnosticAirConditionerRefrigerantPressureId",DiagnosticAirbagDeployedId:"DiagnosticAirbagDeployedId",DiagnosticAirbagNearlyDeployedId:"DiagnosticAirbagNearlyDeployedId",DiagnosticAirbagWarningLightId:"DiagnosticAirbagWarningLightId",DiagnosticAnalogAux1Id:"DiagnosticAnalogAux1Id",DiagnosticAnalogAux2Id:"DiagnosticAnalogAux2Id",DiagnosticAnalogAux3Id:"DiagnosticAnalogAux3Id",DiagnosticAnalogAux4Id:"DiagnosticAnalogAux4Id",DiagnosticAnalogAux5Id:"DiagnosticAnalogAux5Id",DiagnosticAnalogAux6Id:"DiagnosticAnalogAux6Id",DiagnosticAnalogAux7Id:"DiagnosticAnalogAux7Id",DiagnosticAnalogAux8Id:"DiagnosticAnalogAux8Id",DiagnosticAnalogInputPressure1Id:"DiagnosticAnalogInputPressure1Id",DiagnosticAnalogInputPressure2Id:"DiagnosticAnalogInputPressure2Id",DiagnosticAnalogInputTemp1Id:"DiagnosticAnalogInputTemp1Id",DiagnosticAnalogInputTemp2Id:"DiagnosticAnalogInputTemp2Id",DiagnosticAnalogInputTemp3Id:"DiagnosticAnalogInputTemp3Id",DiagnosticApnReScanStartedDueToConnectionFailureId:"DiagnosticApnReScanStartedDueToConnectionFailureId",DiagnosticAux1Id:"DiagnosticAux1Id",DiagnosticAux2Id:"DiagnosticAux2Id",DiagnosticAux3Id:"DiagnosticAux3Id",DiagnosticAux4Id:"DiagnosticAux4Id",DiagnosticAux5Id:"DiagnosticAux5Id",DiagnosticAux6Id:"DiagnosticAux6Id",DiagnosticAux7Id:"DiagnosticAux7Id",DiagnosticAux8Id:"DiagnosticAux8Id",DiagnosticAuxiliaryModuleFailureId:"DiagnosticAuxiliaryModuleFailureId",DiagnosticAverageFuelEconomyId:"DiagnosticAverageFuelEconomyId",DiagnosticAverageFuelEconomynaturalGasId:"DiagnosticAverageFuelEconomynaturalGasId",DiagnosticBatteryCurrentId:"DiagnosticBatteryCurrentId",DiagnosticBatteryLevelId:"DiagnosticBatteryLevelId",DiagnosticBatteryTemperatureId:"DiagnosticBatteryTemperatureId",DiagnosticBatteryVoltageId:"DiagnosticBatteryVoltageId",DiagnosticBigQueryUploadRequestId:"DiagnosticBigQueryUploadRequestId",DiagnosticBluetoothAmmoniaConcentrationId:"DiagnosticBluetoothAmmoniaConcentrationId",DiagnosticBluetoothBeaconBatteryLevelId:"DiagnosticBluetoothBeaconBatteryLevelId",DiagnosticBluetoothBeaconCategory:"DiagnosticBluetoothBeaconCategory",DiagnosticBluetoothBeaconCounterId:"DiagnosticBluetoothBeaconCounterId",DiagnosticBluetoothBeaconInRangeId:"DiagnosticBluetoothBeaconInRangeId",DiagnosticBluetoothBeaconLiveAltitudeId:"DiagnosticBluetoothBeaconLiveAltitudeId",DiagnosticBluetoothBeaconLiveBarometricPressureId:"DiagnosticBluetoothBeaconLiveBarometricPressureId",DiagnosticBluetoothBeaconLiveImpactId:"DiagnosticBluetoothBeaconLiveImpactId",DiagnosticBluetoothBeaconLiveLightId:"DiagnosticBluetoothBeaconLiveLightId",DiagnosticBluetoothBeaconLiveRelativeHumidityId:"DiagnosticBluetoothBeaconLiveRelativeHumidityId",DiagnosticBluetoothBeaconLiveTemperature:"DiagnosticBluetoothBeaconLiveTemperature",DiagnosticBluetoothBeaconParticulateMatter10MicronId:"DiagnosticBluetoothBeaconParticulateMatter10MicronId",DiagnosticBluetoothBeaconParticulateMatter1MicronId:"DiagnosticBluetoothBeaconParticulateMatter1MicronId",DiagnosticBluetoothBeaconParticulateMatter2P5MicronId:"DiagnosticBluetoothBeaconParticulateMatter2P5MicronId",DiagnosticBluetoothBeaconStateId:"DiagnosticBluetoothBeaconStateId",DiagnosticBluetoothCarbonDioxideConcentrationId:"DiagnosticBluetoothCarbonDioxideConcentrationId",DiagnosticBluetoothCarbonMonoxideConcentrationId:"DiagnosticBluetoothCarbonMonoxideConcentrationId",DiagnosticBluetoothCustomData255Id:"DiagnosticBluetoothCustomData255Id",DiagnosticBluetoothEthanolConcentrationId:"DiagnosticBluetoothEthanolConcentrationId",DiagnosticBluetoothFuelLevelId:"DiagnosticBluetoothFuelLevelId",DiagnosticBluetoothGenericByte230Id:"DiagnosticBluetoothGenericByte230Id",DiagnosticBluetoothGenericByte231Id:"DiagnosticBluetoothGenericByte231Id",DiagnosticBluetoothGenericByte232Id:"DiagnosticBluetoothGenericByte232Id",DiagnosticBluetoothGenericByte233Id:"DiagnosticBluetoothGenericByte233Id",DiagnosticBluetoothGenericByte234Id:"DiagnosticBluetoothGenericByte234Id",DiagnosticBluetoothGenericByte235Id:"DiagnosticBluetoothGenericByte235Id",DiagnosticBluetoothGenericByte236Id:"DiagnosticBluetoothGenericByte236Id",DiagnosticBluetoothGenericByte237Id:"DiagnosticBluetoothGenericByte237Id",DiagnosticBluetoothGenericByte238Id:"DiagnosticBluetoothGenericByte238Id",DiagnosticBluetoothGenericByte239Id:"DiagnosticBluetoothGenericByte239Id",DiagnosticBluetoothGenericTimer240Id:"DiagnosticBluetoothGenericTimer240Id",DiagnosticBluetoothGenericTimer241Id:"DiagnosticBluetoothGenericTimer241Id",DiagnosticBluetoothGenericTimer242Id:"DiagnosticBluetoothGenericTimer242Id",DiagnosticBluetoothGenericTimer243Id:"DiagnosticBluetoothGenericTimer243Id",DiagnosticBluetoothGenericTimer244Id:"DiagnosticBluetoothGenericTimer244Id",DiagnosticBluetoothGenericTimer245Id:"DiagnosticBluetoothGenericTimer245Id",DiagnosticBluetoothGenericTimer246I
1d:"DiagnosticBluetoothGenericTimer246Id",DiagnosticBluetoothGenericTimer247Id:"DiagnosticBluetoothGenericTimer247Id",DiagnosticBluetoothGenericTimer248Id:"DiagnosticBluetoothGenericTimer248Id",DiagnosticBluetoothGenericTimer249Id:"DiagnosticBluetoothGenericTimer249Id",DiagnosticBluetoothHydrogenConcentrationId:"DiagnosticBluetoothHydrogenConcentrationId",DiagnosticBluetoothMethaneConcentrationId:"DiagnosticBluetoothMethaneConcentrationId",DiagnosticBluetoothNitricOxideConcentrationId:"DiagnosticBluetoothNitricOxideConcentrationId",DiagnosticBluetoothNitrogenDioxideConcentrationId:"DiagnosticBluetoothNitrogenDioxideConcentrationId",DiagnosticBluetoothRssiId:"DiagnosticBluetoothRssiId",DiagnosticBoomAngleId:"DiagnosticBoomAngleId",DiagnosticBootloaderUpdateHasFailedId:"DiagnosticBootloaderUpdateHasFailedId",DiagnosticBrakePedalOnId:"DiagnosticBrakePedalOnId",DiagnosticBrakeTemperatureId:"DiagnosticBrakeTemperatureId",DiagnosticBusAccessDoorId:"DiagnosticBusAccessDoorId",DiagnosticCabInteriorTemperatureId:"DiagnosticCabInteriorTemperatureId",DiagnosticCameraDeviceStatusId:"DiagnosticCameraDeviceStatusId",DiagnosticCameraHealthStatusId:"DiagnosticCameraHealthStatusId",DiagnosticCanBusDisabledId:"DiagnosticCanBusDisabledId",DiagnosticCanBusExcessiveListenId:"DiagnosticCanBusExcessiveListenId",DiagnosticCanBusFailedToInitializeId:"DiagnosticCanBusFailedToInitializeId",DiagnosticCanBusOscillatingActivePassiveId:"DiagnosticCanBusOscillatingActivePassiveId",DiagnosticCanBusShortId:"DiagnosticCanBusShortId",DiagnosticCanModeInitializationFailureId:"DiagnosticCanModeInitializationFailureId",DiagnosticCanTransmitErrorCountExceededId:"DiagnosticCanTransmitErrorCountExceededId",DiagnosticCargoTemperatureZone1Id:"DiagnosticCargoTemperatureZone1Id",DiagnosticCargoTemperatureZone2Id:"DiagnosticCargoTemperatureZone2Id",DiagnosticCargoTemperatureZone3Id:"DiagnosticCargoTemperatureZone3Id",DiagnosticCellularIridiumCoverageId:"DiagnosticCellularIridiumCoverageId",DiagnosticCellularRssiId:"DiagnosticCellularRssiId",DiagnosticChangeCleanExhaustFilterWarningLightId:"DiagnosticChangeCleanExhaustFilterWarningLightId",DiagnosticChangeFuelFilterWarningLightId:"DiagnosticChangeFuelFilterWarningLightId",DiagnosticChargeStateId:"DiagnosticChargeStateId",DiagnosticCheckBrakePadsId:"DiagnosticCheckBrakePadsId",DiagnosticControllerAlarmCodeId:"DiagnosticControllerAlarmCodeId",DiagnosticControllerStatusId:"DiagnosticControllerStatusId",DiagnosticCoolantLevelId:"DiagnosticCoolantLevelId",DiagnosticCrankingVoltageId:"DiagnosticCrankingVoltageId",DiagnosticCruiseControlActiveId:"DiagnosticCruiseControlActiveId",DiagnosticCruiseControlEnabledId:"DiagnosticCruiseControlEnabledId",DiagnosticDashWarningLightAmberLampId:"DiagnosticDashWarningLightAmberLampId",DiagnosticDashWarningLightProtectLampId:"DiagnosticDashWarningLightProtectLampId",DiagnosticDashWarningLightRedLampId:"DiagnosticDashWarningLightRedLampId",DiagnosticDeviceBatteryVoltageId:"DiagnosticDeviceBatteryVoltageId",DiagnosticDeviceDisabledId:"DiagnosticDeviceDisabledId",DiagnosticDeviceHasBeenUnpluggedId:"DiagnosticDeviceHasBeenUnpluggedId",DiagnosticDeviceLoggingDisabledId:"DiagnosticDeviceLoggingDisabledId",DiagnosticDeviceOscillatorIssueId:"DiagnosticDeviceOscillatorIssueId",DiagnosticDeviceParameterId:"DiagnosticDeviceParameterId",DiagnosticDevicePowerChangeId:"DiagnosticDevicePowerChangeId",DiagnosticDevicePowerFromInternalBatteryId:"DiagnosticDevicePowerFromInternalBatteryId",DiagnosticDeviceRestartedBecauseAllPowerWasRemovedId:"DiagnosticDeviceRestartedBecauseAllPowerWasRemovedId",DiagnosticDeviceRestartedBecauseOfFirmwareUpdateId:"DiagnosticDeviceRestartedBecauseOfFirmwareUpdateId",DiagnosticDeviceRestartedBecauseOfLowVoltageInPowerSupplyId:"DiagnosticDeviceRestartedBecauseOfLowVoltageInPowerSupplyId",DiagnosticDeviceRestartedDueToInternalResetConditionId:"DiagnosticDeviceRestartedDueToInternalResetConditionId",DiagnosticDeviceRestartedDueToInternalWatchdogConditionId:"DiagnosticDeviceRestartedDueToInternalWatchdogConditionId",DiagnosticDeviceSolarPanelCurrentId:"DiagnosticDeviceSolarPanelCurrentId",DiagnosticDeviceTotalFuelId:"DiagnosticDeviceTotalFuelId",DiagnosticDeviceTotalIdleFuelId:"DiagnosticDeviceTotalIdleFuelId",DiagnosticDieselExhaustFluidId:"DiagnosticDieselExhaustFluidId",DiagnosticDieselParticulateFilterLampId:"DiagnosticDieselParticulateFilterLampId",DiagnosticDisabledExcessiveAccelerometerDataId:"DiagnosticDisabledExcessiveAccelerometerDataId",DiagnosticDoor1StatusId:"DiagnosticDoor1StatusId",DiagnosticDoor2StatusId:"DiagnosticDoor2StatusId",DiagnosticDriverAirbagDeployedId:"DiagnosticDriverAirbagDeployedId",DiagnosticDriverAudibleAlertForIdleShutdownTimerId:"DiagnosticDriverAudibleAlertForIdleShutdownTimerId",DiagnosticDriverSeatbeltId:"DiagnosticDriverSeatbeltId",DiagnosticElectricEnergyInId:"DiagnosticElectricEnergyInId",DiagnosticElectricEnergyOutId:"DiagnosticElectricEnergyOutId",DiagnosticElectricVehicleBatteryPowerId:"DiagnosticElectricVehicleBatteryPowerId",DiagnosticElectricVehicleChargingStateId:"DiagnosticElectricVehicleChargingStateId",DiagnosticElectricVehicleIsChargingId:"DiagnosticElectricVehicleIsChargingId",DiagnosticElectricalSystemRatingId:"DiagnosticElectricalSystemRatingId",DiagnosticEngineCheckFuelFillerCapWarningLightId:"DiagnosticEngineCheckFuelFillerCapWarningLightId",DiagnosticEngineCoolantTemperatureId:"DiagnosticEngineCoolantTemperatureId",DiagnosticEngineCoolingFanSpeedId:"DiagnosticEngineCoolingFanSpeedId",DiagnosticEngineDataActiveId:"DiagnosticEngineDataActiveId",DiagnosticEngineHotWarningLightId:"DiagnosticEngineHotWarningLightId",DiagnosticEngineHoursAdjustmentId:"DiagnosticEngineHoursAdjustmentId",DiagnosticEngineHoursId:"DiagnosticEngineHoursId",DiagnosticEngineOilLevelId:"DiagnosticEngineOilLevelId",DiagnosticEngineOilLifeRemainingId:"DiagnosticEngineOilLifeRemainingId",DiagnosticEngineOilStarvationIndicatorOnId:"DiagnosticEngineOilStarvationIndicatorOnId",DiagnosticEngineOilTemperatureID:"DiagnosticEngineOilTemperatureID",DiagnosticEngineOnTimeId:"DiagnosticEngineOnTimeId",DiagnosticEngineOperatingInReducedPowerModeWarningLightId:"DiagnosticEngineOperatingInReducedPowerModeWarningLightId",DiagnosticEngineRoadSpeedId:"DiagnosticEngineRoadSpeedId",DiagnosticEngineRunningDueToVehicleRemoteStarterId:"DiagnosticEngineRunningDueToVehicleRemoteStarterId",DiagnosticEngineShutdownByIdleTimerId:"DiagnosticEngineShutdownByIdleTimerId",DiagnosticEngineSpeedId:"DiagnosticEngineSpeedId",DiagnosticEngineStartingDisabledWarningLightId:"DiagnosticEngineStartingDisabledWarningLightId",DiagnosticEngineTransmissionOilTemperatureId:"DiagnosticEngineTransmissionOilTemperatureId",DiagnosticEngineWarningLightId:"DiagnosticEngineWarningLightId",DiagnosticEnhancedMinorCollisionId:"DiagnosticEnhancedMinorCollisionId",DiagnosticEvPowertrainTypeId:"DiagnosticEvPowertrainTypeId",DiagnosticExcessiveAccelerometerEventsId:"DiagnosticExcessiveAccelerometerEventsId",DiagnosticExcessiveAccelerometerEventsOverAccidentThresholdId:"DiagnosticExcessiveAccelerometerEventsOverAccidentThresholdId",DiagnosticExcessiveAccelerometerLogsInASingleEventId:"DiagnosticExcessiveAccelerometerLogsInASingleEventId",DiagnosticExcessiveLoggingDetectedId:"DiagnosticExcessiveLoggingDetectedId",DiagnosticExhaustDifferentialPressureId:"DiagnosticExhaustDifferentialPressureId",DiagnosticExternalDeviceIOXColdChainId:"DiagnosticExternalDeviceIOXColdChainId",DiagnosticExternalDeviceIntendiaId:"DiagnosticExternalDeviceIntendiaId",DiagnosticFirstRowMiddleSeatbeltId:"DiagnosticFirstRowMiddleSeatbeltId",DiagnosticFlashErrorCountId:"DiagnosticFlashErrorCountId",DiagnosticFlashMemoryFailureId:"DiagnosticFlashMemoryFailureId",DiagnosticFlashingAmberLightId:"DiagnosticFlashingAmberLightId",DiagnosticFlashingRedLightId:"DiagnosticFlashingRedLightId",DiagnosticFordIsoProtocolDetectedId:"DiagnosticFordIsoProtocolDetectedId",DiagnosticFrontalImpactPretensionerSeverityAchievedId:"DiagnosticFrontalImpactPretensionerSeverityAchievedId",DiagnosticFrontalImpactStage1SeverityAchievedId:"DiagnosticFrontalImpactStage1SeverityAchievedId",DiagnosticFrontalImpactStage2SeverityAchievedId:"DiagnosticFrontalImpactStage2SeverityAchievedId",DiagnosticFuelAlcoholCompositionId:"DiagnosticFuelAlcoholCompositionId",DiagnosticFuelFilterLifeRemainingId:"DiagnosticFuelFilterLifeRemainingId",DiagnosticFuelLevelId:"DiagnosticFuelLevelId",DiagnosticFuelTankCapacityId:"DiagnosticFuelTankCapacityId",DiagnosticFuelTypeCompressedNaturalGasId:"DiagnosticFuelTypeCompressedNaturalGasId",DiagnosticFuelTypeDieselId:"DiagnosticFuelTypeDieselId",DiagnosticFuelTypeElectricId:"DiagnosticFuelTypeElectricId",DiagnosticFuelTypeEthanolId:"DiagnosticFuelTypeEthanolId",DiagnosticFuelTypeGasId:"DiagnosticFuelTypeGasId",DiagnosticFuelTypeLiquifiedPetroleumGasId:"DiagnosticFuelTypeLiquifiedPetroleumGasId",DiagnosticFuelTypeMethanolId:"DiagnosticFuelTypeMethanolId",DiagnosticFuelTypePropaneId:"DiagnosticFuelTypePropaneId",DiagnosticFuelUnitsId:"DiagnosticFuelUnitsId",DiagnosticGearPositionId:"DiagnosticGearPositionId",DiagnosticGeneralVehicleWarningLightId:"DiagnosticGeneralVehicleWarningLightId",DiagnosticGenericAdblueTankLevelId:"DiagnosticGenericAdblueTankLevelId","DiagnosticGenericIncrementalDistanceId)":"DiagnosticGenericIncrementalDistanceId)",DiagnosticGeotabDriverKeyReadErrorId:"DiagnosticGeotabDriverKeyReadErrorId",DiagnosticGmSwcLowSpeedProtocolDetectedId:"DiagnosticGmSwcLowSpeedProtocolDetectedId",DiagnosticGmlanHighspeedEngineProtocolDetectedId:"DiagnosticGmlanHighspeedEngineProtocolDetectedId",DiagnosticGmlanLowspeedEngineProtocolDetectedId:"DiagnosticGmlanLowspeedEngineProtocolDetectedId",DiagnosticGoDeviceVoltageId:"DiagnosticGoDeviceVoltageId",DiagnosticGpsAntennaShortCircuitId:"DiagnosticGpsAntennaShortCircuitId",DiagnosticGpsAntennaUnpluggedId:"DiagnosticGpsAntennaUnpluggedId",DiagnosticGpsConfigurationRetryId:"DiagnosticGpsConfigurationRetryId",DiagnosticGpsLogReasonId:"DiagnosticGpsLogReasonId",DiagnosticGpsNotRespondingId:"DiagnosticGpsNotRespondingId",DiagnosticHardCornerId:"DiagnosticHardCornerId",DiagnosticHarnessDetected6PinId:"DiagnosticHarnessDetected6PinId",DiagnosticHarnessDetected9PinId:"DiagnosticHarnessDetected9PinId",DiagnosticHarshAccelerationId:"DiagnosticHarshAccelerationId",DiagnosticHarshBrakeId:"DiagnosticHarshBrakeId",DiagnosticHighVoltageWhileIgnitionOffId:"DiagnosticHighVoltageWhileIgnitionOffId",DiagnosticHondaIsoEngineProtocolDetectedId:"DiagnosticHondaIsoEngineProtocolDetectedId",DiagnosticHorizontalDopId:"DiagnosticHorizontalDopId",DiagnosticHybri
1dEngineStatusId:"DiagnosticHybridEngineStatusId",DiagnosticHybridVehicleDetectedId:"DiagnosticHybridVehicleDetectedId",DiagnosticHydraulicPressureId:"DiagnosticHydraulicPressureId",DiagnosticIOXColdConnectionStatusId:"DiagnosticIOXColdConnectionStatusId",DiagnosticIOXColdRuggedConnectionStatusId:"DiagnosticIOXColdRuggedConnectionStatusId",DiagnosticIdleShutdownTimerActiveId:"DiagnosticIdleShutdownTimerActiveId",DiagnosticIdleShutdownTimerEnabledId:"DiagnosticIdleShutdownTimerEnabledId",DiagnosticIdleShutdownTimerOverrideId:"DiagnosticIdleShutdownTimerOverrideId",DiagnosticIgnitionId:"DiagnosticIgnitionId",DiagnosticInstantaneousFuelEconomyId:"DiagnosticInstantaneousFuelEconomyId",DiagnosticInstantaneousFuelRateId:"DiagnosticInstantaneousFuelRateId",DiagnosticIntermittentConnectionCommunicationsId:"DiagnosticIntermittentConnectionCommunicationsId",DiagnosticInternalClockStoppedId:"DiagnosticInternalClockStoppedId",DiagnosticInvalidDeviceTypeDetectedId:"DiagnosticInvalidDeviceTypeDetectedId",DiagnosticInvalidDriverIdId:"DiagnosticInvalidDriverIdId",DiagnosticInvalidGpsMessagesReceivedId:"DiagnosticInvalidGpsMessagesReceivedId",DiagnosticInvalidOpcodeResetId:"DiagnosticInvalidOpcodeResetId",DiagnosticIridiumAccelerometerEventId:"DiagnosticIridiumAccelerometerEventId",DiagnosticIridiumLowVoltageId:"DiagnosticIridiumLowVoltageId",DiagnosticIso14230LegacyEngineProtocolDetectedId:"DiagnosticIso14230LegacyEngineProtocolDetectedId",DiagnosticIso9141LegacyEngineProtocolDetectedId:"DiagnosticIso9141LegacyEngineProtocolDetectedId",DiagnosticJ1708AldlHarnessDetectedId:"DiagnosticJ1708AldlHarnessDetectedId",DiagnosticJ1708EngineHoursId:"DiagnosticJ1708EngineHoursId",DiagnosticJ1708EngineProtocolDetectedId:"DiagnosticJ1708EngineProtocolDetectedId",DiagnosticJ1708TotalVehicleDistanceId:"DiagnosticJ1708TotalVehicleDistanceId",DiagnosticJ1850PwmLegacyEngineProtocolDetectedId:"DiagnosticJ1850PwmLegacyEngineProtocolDetectedId",DiagnosticJ1850VpwLegacyEngineProtocolDetectedId:"DiagnosticJ1850VpwLegacyEngineProtocolDetectedId",DiagnosticJ1939CanEngineProtocolDetectedId:"DiagnosticJ1939CanEngineProtocolDetectedId",DiagnosticJ1939EngineHoursId:"DiagnosticJ1939EngineHoursId",DiagnosticJ1939TotalVehicleDistanceId:"DiagnosticJ1939TotalVehicleDistanceId",DiagnosticLeftRearDoorOpenId:"DiagnosticLeftRearDoorOpenId",DiagnosticLeftSideAirbagDeployedId:"DiagnosticLeftSideAirbagDeployedId",DiagnosticLeftSideSeverityAchievedId:"DiagnosticLeftSideSeverityAchievedId",DiagnosticLeftTurnSignalId:"DiagnosticLeftTurnSignalId",DiagnosticLiquidMaterialRateId:"DiagnosticLiquidMaterialRateId",DiagnosticLiquidMaterialTypeId:"DiagnosticLiquidMaterialTypeId",DiagnosticLowPriorityWarningLightId:"DiagnosticLowPriorityWarningLightId",DiagnosticMachineInterlockCodeId:"DiagnosticMachineInterlockCodeId",DiagnosticMachineModeId:"DiagnosticMachineModeId",DiagnosticMemoryAllocationErrorId:"DiagnosticMemoryAllocationErrorId",DiagnosticMemoryPointerErrorId:"DiagnosticMemoryPointerErrorId",DiagnosticOBDCAN11Bit250KEngineProtocolDetectedId:"DiagnosticOBDCAN11Bit250KEngineProtocolDetectedId",DiagnosticOBDCAN11Bit500KEngineProtocolDetectedId:"DiagnosticOBDCAN11Bit500KEngineProtocolDetectedId",DiagnosticOBDCAN29Bit250KEngineProtocolDetectedId:"DiagnosticOBDCAN29Bit250KEngineProtocolDetectedId",DiagnosticOBDCAN29Bit500KEngineProtocolDetectedId:"DiagnosticOBDCAN29Bit500KEngineProtocolDetectedId",DiagnosticOBDOdometerReaderId:"DiagnosticOBDOdometerReaderId",DiagnosticObdPortAlertStatusId:"DiagnosticObdPortAlertStatusId",DiagnosticOdometerAdjustmentId:"DiagnosticOdometerAdjustmentId",DiagnosticOdometerId:"DiagnosticOdometerId",DiagnosticOemHarshAlertAcceleration:"DiagnosticOemHarshAlertAcceleration",DiagnosticOemHarshAlertBraking:"DiagnosticOemHarshAlertBraking",DiagnosticOemHarshAlertCornering:"DiagnosticOemHarshAlertCornering",DiagnosticOilChangeDueWarningLightId:"DiagnosticOilChangeDueWarningLightId",DiagnosticOilChangeLowerBoundDistancePredictionId:"DiagnosticOilChangeLowerBoundDistancePredictionId",DiagnosticOilChangeLowerBoundTimePredictionId:"DiagnosticOilChangeLowerBoundTimePredictionId",DiagnosticOilLevelLowWarningLightId:"DiagnosticOilLevelLowWarningLightId",DiagnosticOilLightOnId:"DiagnosticOilLightOnId",DiagnosticOilPressureId:"DiagnosticOilPressureId",DiagnosticOnBoardChargerACInputPowerId:"DiagnosticOnBoardChargerACInputPowerId",DiagnosticOnBoardChargerAcInputVoltageId:"DiagnosticOnBoardChargerAcInputVoltageId",DiagnosticOnBoardChargerPowerDCOutId:"DiagnosticOnBoardChargerPowerDCOutId",DiagnosticOutsideTemperatureId:"DiagnosticOutsideTemperatureId",DiagnosticPTOEnabledId:"DiagnosticPTOEnabledId",DiagnosticPanicId:"DiagnosticPanicId",DiagnosticParkingBrakeId:"DiagnosticParkingBrakeId",DiagnosticPassengerAirbagDeployedId:"DiagnosticPassengerAirbagDeployedId",DiagnosticPassengerOccupancyId:"DiagnosticPassengerOccupancyId",DiagnosticPassengerSeatbeltViolationId:"DiagnosticPassengerSeatbeltViolationId",DiagnosticPlatformHeightId:"DiagnosticPlatformHeightId",DiagnosticPlatformHeightPercentageId:"DiagnosticPlatformHeightPercentageId",DiagnosticPositionValidAtDeviceId:"DiagnosticPositionValidAtDeviceId",DiagnosticPositionValidId:"DiagnosticPositionValidId",DiagnosticPossibleCollisionDetectedId:"DiagnosticPossibleCollisionDetectedId",DiagnosticPotentialBadInstallId:"DiagnosticPotentialBadInstallId",DiagnosticPowerTakeoffEngagedId:"DiagnosticPowerTakeoffEngagedId",DiagnosticPowerTakeoffTotalFuelUsedId:"DiagnosticPowerTakeoffTotalFuelUsedId",DiagnosticPreWetMaterialRateId:"DiagnosticPreWetMaterialRateId",DiagnosticPreWetMaterialTypeId:"DiagnosticPreWetMaterialTypeId",DiagnosticPredictedRiskOfBreakdownId:"DiagnosticPredictedRiskOfBreakdownId",DiagnosticRamFailureId:"DiagnosticRamFailureId",DiagnosticRawEngineHoursId:"DiagnosticRawEngineHoursId",DiagnosticRawOdometerId:"DiagnosticRawOdometerId",DiagnosticRearImpactSeverityAchievedId:"DiagnosticRearImpactSeverityAchievedId",DiagnosticReeferTemperatureZone1Id:"DiagnosticReeferTemperatureZone1Id",DiagnosticReeferTemperatureZone2Id:"DiagnosticReeferTemperatureZone2Id",DiagnosticReeferTemperatureZone3Id:"DiagnosticReeferTemperatureZone3Id",DiagnosticReeferTemperatureZone4Id:"DiagnosticReeferTemperatureZone4Id",DiagnosticRestartedTheModemManagerStateMachineId:"DiagnosticRestartedTheModemManagerStateMachineId",DiagnosticRestartedTheModemStateMachineId:"DiagnosticRestartedTheModemStateMachineId",DiagnosticRestartedTheRadioManagerStateMachineId:"DiagnosticRestartedTheRadioManagerStateMachineId",DiagnosticRestartedTheRadioStateMachineId:"DiagnosticRestartedTheRadioStateMachineId",DiagnosticRestartedTheWifiManagerStateMachineId:"DiagnosticRestartedTheWifiManagerStateMachineId",DiagnosticRestartedTheWifiStateMachineId:"DiagnosticRestartedTheWifiStateMachineId",DiagnosticRfModuleFailureId:"DiagnosticRfModuleFailureId",DiagnosticRfModuleMacAddressErrorId:"DiagnosticRfModuleMacAddressErrorId",DiagnosticRightRearDoorOpenId:"DiagnosticRightRearDoorOpenId",DiagnosticRightSideAirbagDeployedId:"DiagnosticRightSideAirbagDeployedId",DiagnosticRightSideSeverityAchievedId:"DiagnosticRightSideSeverityAchievedId",DiagnosticRightTur
1nSignalId:"DiagnosticRightTurnSignalId",DiagnosticRolloverSeverityAchievedId:"DiagnosticRolloverSeverityAchievedId",DiagnosticSecondRowLeftSeatbeltId:"DiagnosticSecondRowLeftSeatbeltId",DiagnosticSecondRowMiddleSeatbeltId:"DiagnosticSecondRowMiddleSeatbeltId",DiagnosticSecondRowRightSeatbeltId:"DiagnosticSecondRowRightSeatbeltId",DiagnosticSecondaryCanBusFailedToInitializeId:"DiagnosticSecondaryCanBusFailedToInitializeId",DiagnosticSlaveProcessorFailureId:"DiagnosticSlaveProcessorFailureId",DiagnosticSolidMaterialActiveId:"DiagnosticSolidMaterialActiveId",DiagnosticSolidMaterialRateId:"DiagnosticSolidMaterialRateId",DiagnosticSolidMaterialTypeId:"DiagnosticSolidMaterialTypeId",DiagnosticStandardHarnessDetectedId:"DiagnosticStandardHarnessDetectedId",DiagnosticStateOfChargeId:"DiagnosticStateOfChargeId",DiagnosticStreetSweeperHopperTotalMaterialWeightId:"DiagnosticStreetSweeperHopperTotalMaterialWeightId",DiagnosticStreetSweeperLeftBroomStatusId:"DiagnosticStreetSweeperLeftBroomStatusId",DiagnosticStreetSweeperOperatingModeId:"DiagnosticStreetSweeperOperatingModeId",DiagnosticStreetSweeperRightBroomStatusId:"DiagnosticStreetSweeperRightBroomStatusId",DiagnosticStreetSweeperTankWaterLevelId:"DiagnosticStreetSweeperTankWaterLevelId",DiagnosticStreetSweeperTotalWaterUsedId:"DiagnosticStreetSweeperTotalWaterUsedId",DiagnosticSystemAlertId:"DiagnosticSystemAlertId",DiagnosticThirdPartyAux1Id:"DiagnosticThirdPartyAux1Id",DiagnosticThirdPartyAux2Id:"DiagnosticThirdPartyAux2Id",DiagnosticThirdPartyAux3Id:"DiagnosticThirdPartyAux3Id",DiagnosticThirdPartyAux4Id:"DiagnosticThirdPartyAux4Id",DiagnosticThirdPartyAux5Id:"DiagnosticThirdPartyAux5Id",DiagnosticThirdPartyAux6Id:"DiagnosticThirdPartyAux6Id",DiagnosticThirdPartyAux7Id:"DiagnosticThirdPartyAux7Id",DiagnosticThirdPartyAux8Id:"DiagnosticThirdPartyAux8Id",DiagnosticThirdPartyBufferOverrunId:"DiagnosticThirdPartyBufferOverrunId",DiagnosticThirdPartyDevicePowerChangeId:"DiagnosticThirdPartyDevicePowerChangeId",DiagnosticThirdPartyEngineDataActiveId:"DiagnosticThirdPartyEngineDataActiveId",DiagnosticThirdPartyEngineRoadSpeedId:"DiagnosticThirdPartyEngineRoadSpeedId",DiagnosticThirdPartyEngineRunTimeId:"DiagnosticThirdPartyEngineRunTimeId",DiagnosticThirdPartyLogDataBufferOverrunId:"DiagnosticThirdPartyLogDataBufferOverrunId",DiagnosticThirdPartyOdometerId:"DiagnosticThirdPartyOdometerId",DiagnosticThirdRowLeftSeatbeltId:"DiagnosticThirdRowLeftSeatbeltId",DiagnosticThirdRowMiddleSeatbeltId:"DiagnosticThirdRowMiddleSeatbeltId",DiagnosticThirdRowRightSeatbeltId:"DiagnosticThirdRowRightSeatbeltId",DiagnosticTirePressureFrontLeftId:"DiagnosticTirePressureFrontLeftId",DiagnosticTirePressureFrontRightId:"DiagnosticTirePressureFrontRightId",DiagnosticTirePressureRearLeftId:"DiagnosticTirePressureRearLeftId",DiagnosticTirePressureRearRightId:"DiagnosticTirePressureRearRightId",DiagnosticTirePressureSpareId:"DiagnosticTirePressureSpareId",DiagnosticTireWarningLightId:"DiagnosticTireWarningLightId",DiagnosticTooManyEngineRecordsId:"DiagnosticTooManyEngineRecordsId",DiagnosticTooManyLogsInMultilogId:"DiagnosticTooManyLogsInMultilogId",DiagnosticTotalAirUsedId:"DiagnosticTotalAirUsedId",DiagnosticTotalFuelUsedId:"DiagnosticTotalFuelUsedId",DiagnosticTotalIdleAirUsedId:"DiagnosticTotalIdleAirUsedId",DiagnosticTotalIdleFuelUsedId:"DiagnosticTotalIdleFuelUsedId",DiagnosticTotalIdleHoursId:"DiagnosticTotalIdleHoursId",DiagnosticTotalLifetimeBatteryEnergyInDuringACChargingId:"DiagnosticTotalLifetimeBatteryEnergyInDuringACChargingId",DiagnosticTotalLifetimeBatteryEnergyInDuringDCChargingId:"DiagnosticTotalLifetimeBatteryEnergyInDuringDCChargingId",DiagnosticTotalLifetimeBatteryEnergyOutDuringACChargingId:"DiagnosticTotalLifetimeBatteryEnergyOutDuringACChargingId",DiagnosticTotalLifetimeBatteryEnergyOutDuringDCChargingId:"DiagnosticTotalLifetimeBatteryEnergyOutDuringDCChargingId",DiagnosticTotalLifetimeEnergyInWhileIdlingId:"DiagnosticTotalLifetimeEnergyInWhileIdlingId",DiagnosticTotalLifetimeEnergyOutWhileIdlingId:"DiagnosticTotalLifetimeEnergyOutWhileIdlingId",DiagnosticTotalLifetimeOnBoardChargerEnergyInDuringACChargingInId:"DiagnosticTotalLifetimeOnBoardChargerEnergyInDuringACChargingInId",DiagnosticTotalLifetimeOnBoardChargerEnergyOutDuringACChargingId:"DiagnosticTotalLifetimeOnBoardChargerEnergyOutDuringACChargingId",DiagnosticTotalMachineHoursId:"DiagnosticTotalMachineHoursId",DiagnosticTotalPTOHoursId:"DiagnosticTotalPTOHoursId",DiagnosticTotalTripFuelUsedId:"DiagnosticTotalTripFuelUsedId",DiagnosticTotalTripIdleFuelUsedId:"DiagnosticTotalTripIdleFuelUsedId",DiagnosticTowPlowLiquidMaterialActiveId:"DiagnosticTowPlowLiquidMaterialActiveId",DiagnosticTowPlowLiquidMaterialRateId:"DiagnosticTowPlowLiquidMaterialRateId",DiagnosticTowPlowLiquidMaterialTotalId:"DiagnosticTowPlowLiquidMaterialTotalId",DiagnosticTowPlowLiquidMaterialTypeId:"DiagnosticTowPlowLiquidMaterialTypeId",DiagnosticTowPlowPreWetMaterialActiveId:"DiagnosticTowPlowPreWetMaterialActiveId",DiagnosticTowPlowPreWetMaterialRateId:"DiagnosticTowPlowPreWetMaterialRateId",DiagnosticTowPlowPreWetMaterialTotalId:"DiagnosticTowPlowPreWetMaterialTotalId",DiagnosticTowPlowPreWetMaterialTypeId:"DiagnosticTowPlowPreWetMaterialTypeId",DiagnosticTowPlowSolidMaterialActiveId:"DiagnosticTowPlowSolidMaterialActiveId",DiagnosticTowPlowSolidMaterialRateId:"DiagnosticTowPlowSolidMaterialRateId",DiagnosticTowPlowSolidMaterialTotalId:"DiagnosticTowPlowSolidMaterialTotalId",DiagnosticTowPlowSolidMaterialTypeId:"DiagnosticTowPlowSolidMaterialTypeId",DiagnosticToyotaIsoEngineProtocolDetectedId:"DiagnosticToyotaIsoEngineProtocolDetectedId",DiagnosticTractionControlSystemActiveId:"DiagnosticTractionControlSystemActiveId",DiagnosticTractionControlSystemEnabledId:"DiagnosticTractionControlSystemEnabledId",DiagnosticTransmissionOilChangeWarningLightId:"DiagnosticTransmissionOilChangeWarningLightId",DiagnosticTransmissionOilLevelId:"DiagnosticTransmissionOilLevelId",DiagnosticTripDistanceId:"DiagnosticTripDistanceId",DiagnosticTruckLiquidMaterialTotalId:"DiagnosticTruckLiquidMaterialTotalId",DiagnosticTruckPreWetMaterialTotalId:"DiagnosticTruckPreWetMaterialTotalId",DiagnosticTruckSolidMaterialTotalId:"DiagnosticTruckSolidMaterialTotalId",DiagnosticUndefinedEngineProtocolDetectedId:"DiagnosticUndefinedEngineProtocolDetectedId",DiagnosticVehicleAbsSystemFailedId:"DiagnosticVehicleAbsSystemFailedId",DiagnosticVehicleActiveId:"DiagnosticVehicleActiveId",DiagnosticVehicleAwdSystemFailedId:"DiagnosticVehicleAwdSystemFailedId",DiagnosticVehicleBatteryLowVoltageId:"DiagnosticVehicleBatteryLowVoltageId",DiagnosticVehicleClassId:"DiagnosticVehicleClassId",DiagnosticVehicleProgrammedCruiseHighSpeedLimitId:"DiagnosticVehicleProgrammedCruiseHighSpeedLimitId",DiagnosticVehicleProgrammedMaximumRoadspeedLimitEnabledId:"DiagnosticVehicleProgrammedMaximumRoadspeedLimitEnabledId",DiagnosticVehicleProgrammedMaximumRoadspeedLimitId:"DiagnosticVehicleProgrammedMaximumRoadspeedLimitId",DiagnosticVehicleWarningLightStatusId:"DiagnosticVehicleWarningLightStatusId",DiagnosticVinRequestFailureId:"DiagnosticVinRequestFailureId",DiagnosticWasherFluidLevelId:"DiagnosticWasherFluidLevelId",DiagnosticWaterDetectedInFuelWarningLightId:"DiagnosticWaterDetectedInFuelWarningLightId",DiagnosticWiFiHotspotDataUsageId:"DiagnosticWiFiHotspotDataUsageId",DiagnosticWorkingLoadId:"DiagnosticWorkingLoadId",DiagnosticWorkingLoadPercentageId:"DiagnosticWorkingLoadPercentageId",DiscreteAvailabilitySnapshotBigQueryUploadRequestId:"DiscreteAvailabilitySnapshotBigQueryUploadRequestId",Dis
1playMeasurementMexicoId:"DisplayMeasurementMexicoId",DisplayMeasurementProfileAfricaId:"DisplayMeasurementProfileAfricaId",DisplayMeasurementProfileAsiaId:"DisplayMeasurementProfileAsiaId",DisplayMeasurementProfileAustraliaNewZealandId:"DisplayMeasurementProfileAustraliaNewZealandId",DisplayMeasurementProfileCanadaId:"DisplayMeasurementProfileCanadaId",DisplayMeasurementProfileCentralSouthAmericaId:"DisplayMeasurementProfileCentralSouthAmericaId",DisplayMeasurementProfileDefaultId:"DisplayMeasurementProfileDefaultId",DisplayMeasurementProfileEuropeId:"DisplayMeasurementProfileEuropeId",DisplayMeasurementProfileUKId:"DisplayMeasurementProfileUKId",DisplayMeasurementProfileUnitedStatesId:"DisplayMeasurementProfileUnitedStatesId",DisplayPictureSolutionId:"DisplayPictureSolutionId",DisplayUnitOfMeasureIdentity:"DisplayUnitOfMeasureIdentity",DistributionListImportExportId:"DistributionListImportExportId",DistributionListNewsId:"DistributionListNewsId",DriverChangeEntityUploadRequestId:"DriverChangeEntityUploadRequestId",DriverSafetyScorecardDefaultDashboardReportScheduleId:"DriverSafetyScorecardDefaultDashboardReportScheduleId",DutyStatusLogBigQueryUploadRequestId:"DutyStatusLogBigQueryUploadRequestId",DutyStatusLogLegacyBigQueryUploadRequestId:"DutyStatusLogLegacyBigQueryUploadRequestId",DutyStatusViolationBigQueryUploadRequestId:"DutyStatusViolationBigQueryUploadRequestId",EmailTemplateDefaultApplicationExceptionId:"EmailTemplateDefaultApplicationExceptionId",EmailTemplateDefaultCollisionNotificationId:"EmailTemplateDefaultCollisionNotificationId",EmailTemplateDefaultCriticalLowTirePressureId:"EmailTemplateDefaultCriticalLowTirePressureId",EmailTemplateDefaultExceptionRuleId:"EmailTemplateDefaultExceptionRuleId",EmailTemplateDefaultMaintenanceReminderId:"EmailTemplateDefaultMaintenanceReminderId",EmissionComplianceEventBigQueryUploadRequestId:"EmissionComplianceEventBigQueryUploadRequestId",EmissionVehicleEnrollmentBigQueryUploadRequestId:"EmissionVehicleEnrollmentBigQueryUploadRequestId",EnergySnapshotBigQueryUploadRequestId:"EnergySnapshotBigQueryUploadRequestId",EngineTypeGenericId:"EngineTypeGenericId",EngineTypeNoneId:"EngineTypeNoneId",EstimatedBatteryLifeForGoAnywhere:"EstimatedBatteryLifeForGoAnywhere",EventRuleElectricalSystemMaintenanceId:"EventRuleElectricalSystemMaintenanceId",EventRuleOilChangeId:"EventRuleOilChangeId",EventTypeBigQueryUploadRequestId:"EventTypeBigQueryUploadRequestId",EventTypeElectricalSystemMaintenanceId:"EventTypeElectricalSystemMaintenanceId",EventTypeLeaseExpiryId:"EventTypeLeaseExpiryId",EventTypeLicensePlateExpiryId:"EventTypeLicensePlateExpiryId",EventTypeOilChangeId:"EventTypeOilChangeId",EventTypeTireRotationId:"EventTypeTireRotationId",ExceptionEventBigQueryUploadRequestId:"ExceptionEventBigQueryUploadRequestId",ExceptionEventMediaLinkBigQueryUploadRequestId:"ExceptionEventMediaLinkBigQueryUploadRequestId",ExceptionEventSoftDeleteBigQueryUploadRequestId:"ExceptionEventSoftDeleteBigQueryUploadRequestId",ExceptionEventStateCoachingCompletedId:"ExceptionEventStateCoachingCompletedId",ExceptionEventStateDismissedId:"ExceptionEventStateDismissedId",ExceptionEventStateInvalidId:"ExceptionEventStateInvalidId",ExceptionEventStateMarkedForCoachingId:"ExceptionEventStateMarkedForCoachingId",ExceptionEventStatePositiveRecognitionId:"ExceptionEventStatePositiveRecognitionId",ExceptionEventStateSavedForLaterId:"ExceptionEventStateSavedForLaterId",ExceptionEventStateValidId:"ExceptionEventStateValidId",ExceptionRuleReasonLongProcessingTimeId:"ExceptionRuleReasonLongProcessingTimeId",ExceptionRuleReasonManualArchivedId:"ExceptionRuleReasonManualArchivedId",ExceptionRuleReasonNoneId:"ExceptionRuleReasonNoneId",ExceptionRuleReasonSafelyDeletedId:"ExceptionRuleReasonSafelyDeletedId",ExceptionRuleReasonTooLongOfExceptionEventsId:"ExceptionRuleReasonTooLongOfExceptionEventsId",ExceptionRuleReasonTooManyExceptionEventsId:"ExceptionRuleReasonTooManyExceptionEventsId",ExceptionRuleStateActiveId:"ExceptionRuleStateActiveId",ExceptionRuleStateArchivedId:"ExceptionRuleStateArchivedId",ExceptionRuleStateSuspendedId:"ExceptionRuleStateSuspendedId",ExceptionRuleStateWarningId:"ExceptionRuleStateWarningId",FailureModeBigQueryUploadRequestId:"FailureModeBigQueryUploadRequestId",FaultDataEntityUploadRequestId:"FaultDataEntityUploadRequestId",FaultRichDataBigQueryUploadRequestId:"FaultRichDataBigQueryUploadRequestId",FaultStatusActiveId:"Fault
1StatusActiveId",FaultStatusClearedId:"FaultStatusClearedId",FaultStatusInactiveId:"FaultStatusInactiveId",FaultStatusNoneId:"FaultStatusNoneId",FaultStatusPendingId:"FaultStatusPendingId",FillUpBigQueryUploadRequestId:"FillUpBigQueryUploadRequestId",FleetUtilizationDefaultDashboardReportScheduleId:"FleetUtilizationDefaultDashboardReportScheduleId",FuelAndEnergyUsedBigQueryUploadRequestId:"FuelAndEnergyUsedBigQueryUploadRequestId",FuelTransactionBigQueryUploadRequestId:"FuelTransactionBigQueryUploadRequestId",FuelUsedBigQueryUploadRequestId:"FuelUsedBigQueryUploadRequestId",GpsEntityUploadRequestId:"GpsEntityUploadRequestId",GroupAssetInformationId:"GroupAssetInformationId",GroupAssetPurposeId:"GroupAssetPurposeId",GroupAssetTypeId:"GroupAssetTypeId",GroupBatteryElectricVehicleId:"GroupBatteryElectricVehicleId",GroupBigQueryUploadRequestId:"GroupBigQueryUploadRequestId",GroupBiodieselId:"GroupBiodieselId",GroupBusinessGroupId:"GroupBusinessGroupId",GroupColdChainId:"GroupColdChainId",GroupCompanyId:"GroupCompanyId",GroupCompressedNaturalGasId:"GroupCompressedNaturalGasId",GroupContainerId:"GroupContainerId",GroupDefectsId:"GroupDefectsId",GroupDieselId:"GroupDieselId",GroupDriveUserSecurityId:"GroupDriveUserSecurityId",GroupDriverActivityGroupId:"GroupDriverActivityGroupId",GroupElectricHybridPluginId:"GroupElectricHybridPluginId",GroupEquipmentId:"GroupEquipmentId",GroupEthanolId:"GroupEthanolId",GroupEverythingSecurityId:"GroupEverythingSecurityId",GroupFuelCellElectricVehicleId:"GroupFuelCellElectricVehicleId",GroupGasolinePetrolId:"GroupGasolinePetrolId",GroupInternalCombustionEngineId:"GroupInternalCombustionEngineId",GroupManuallyClassifiedPowertrainId:"GroupManuallyClassifiedPowertrainId",GroupNothingSecurityId:"GroupNothingSecurityId",GroupOtherFuelId:"GroupOtherFuelId",GroupPersonalGroupId:"GroupPersonalGroupId",GroupPluginHybridElectricVehicleId:"GroupPluginHybridElectricVehicleId",GroupPowertrainAndFuelTypeId:"GroupPowertrainAndFuelTypeId",GroupPrivateScheduledReportId:"GroupPrivateScheduledReportId",GroupPrivateUserId:"GroupPrivateUserId",GroupPropaneLiquifiedPetroleumGasId:"GroupPropaneLiquifiedPetroleumGasId",GroupRootId:"GroupRootId",GroupSecurityBigQueryUploadRequestId:"GroupSecurityBigQueryUploadRequestId",GroupSecurityId:"GroupSecurityId",GroupShareableLinkGroupId:"GroupShareableLinkGroupId",GroupSupervisorSecurityId:"GroupSupervisorSecurityId",GroupTrailerDefectsId:"GroupTrailerDefectsId",GroupTrailerId:"GroupTrailerId",GroupUserBigQueryUploadRequestId:"GroupUserBigQueryUploadRequestId",GroupUserSecurityId:"GroupUserSecurityId",GroupVehicleDefectsId:"GroupVehicleDefectsId",GroupVehicleId:"GroupVehicleId",GroupViewMapOnlySecurityId:"GroupViewMapOnlySecurityId",GroupViewOnlySecurityId:"GroupViewOnlySecurityId",HOSViolationBreakdownDefaultDashboardReportScheduleId:"HOSViolationBreakdownDefaultDashboardReportScheduleId",HosRuleSetAlaskaPassenger7Day:"HosRuleSetAlaskaPassenger7Day",HosRuleSetAlaskaPassenger8Day:"HosRuleSetAlaskaPassenger8Day",HosRuleSetAlaskaProperty7Day:"HosRuleSetAlaskaProperty7Day",HosRuleSetAlaskaProperty7DaySleeper:"HosRuleSetAlaskaProperty7DaySleeper",HosRuleSetAlaskaProperty8Day:"HosRuleSetAlaskaProperty8Day",HosRuleSetAlaskaProperty8DaySleeper:"HosRuleSetAlaskaProperty8DaySleeper",HosRuleSetAlberta:"HosRuleSetAlberta",HosRuleSetAmerica7Day:"HosRuleSetAmerica7Day",HosRuleSetAmerica7DayBig:"HosRuleSetAmerica7DayBig",HosRuleSetAmerica7DayBigSleeper:"HosRuleSetAmerica7DayBigSleeper",HosRuleSetAmerica7DayNo34h:"HosRuleSetAmerica7DayNo34h",HosRuleSetAmerica7DayNo34hSleeper:"HosRuleSetAmerica7DayNo34hSleeper",HosRuleSetAmerica7DayPassenger:"HosRuleSetAmerica7DayPassenger",HosRuleSetAmerica7DayRailroad:"HosRuleSetAmerica7DayRailroad",HosRuleSetAmerica7DaySleeper:"HosRuleSetAmerica7DaySleeper",HosRuleSetAmerica8Day:"HosRuleSetAmerica8Day",HosRuleSetAmerica8DayBig:"HosRuleSetAmerica8DayBig",HosRuleSetAmerica8DayBigSleeper:"HosRuleSetAmerica8DayBigSleeper",HosRuleSetAmerica8DayNo34h:"HosRuleSetAmerica8DayNo34h",HosRuleSetAmerica8DayNo34hSleeper:"HosRuleSetAmerica8DayNo34hSleeper",HosRuleSetAmerica8DayPassenger:"HosRuleSetAmerica8DayPassenger",HosRuleSetAmerica8DayRailroad:"HosRuleSetAmerica8DayRailroad",HosRuleSetAmerica8DaySleeper:"HosRuleSetAmerica8DaySleeper",HosRuleSetAmericaNoRestRequirement7Day:"HosRuleSetAmericaNoRestRequirement7Day",HosRuleSetAmericaNoRestRequirement7DayBig:"HosRuleSetAmericaNoRestRequirement7DayBig",HosRuleSetAmericaNoRestRequirement7DayBigSleeper:"HosRuleSetAmericaNoRestRequirement7DayBigSleeper",HosRuleSetAmericaNoRestRequirement7DaySleeper:"HosRuleSetAmericaNoRestRequirement7DaySleeper",HosRuleSetAmericaNoRestRequirement8Day:"HosRuleSetAmericaNoRestRequirement8Day",HosRuleSetAmericaNoRestRequirement8DayBig:"HosRuleSetAmericaNoRestRequirement8DayBig",HosRuleSetAmericaNoRestRequirement8DayBigSleeper:"HosRuleSetAmericaNoRestRequirement8DayBigSleeper",HosRuleSetAmericaNoRestRequirement8DaySleeper:"HosRuleSetAmericaNoRestRequirement8DaySleeper",HosRuleSetAmericaNonCdlShortHaul7Day:"HosRuleSetAmericaNonCdlShortHaul7Day",HosRuleSetAmericaNonCdlShortHaul8Day:"HosRuleSetAmericaNonCdlShortHaul8Day",HosRuleSetAmericaSalesperson:"HosRuleSetAmericaSalesperson",HosRuleSetAmericaSalespersonNonCdlShortHaul:"HosRuleSetAmericaSalespersonNonCdlShortHaul",HosRuleSetAmericaShortHaul:"HosRuleSetAmericaShortHaul",HosRuleSetAmericaShortHaul14hrWorkday:"HosRuleSetAmericaShortHaul14hrWorkday",HosRuleSetAmericaShortHaul8Day:"HosRuleSetAmericaShortHaul8Day",HosRuleSetAmericaShortHaul8Day14hrWorkday:"HosRuleSetAmericaShortHaul8Day14hrWorkday",HosRuleSetAmericaShortHaul8DayBig:"HosRuleSetAmericaShortHaul8DayBig",HosRuleSetAmericaShortHaul8DayNo34h:"HosRuleSetAmericaShortHaul8DayNo34h",HosRuleSetAmericaShortHaul8DayNo34hBig:"HosRuleSetAmericaShortHaul8DayNo34hBig",HosRuleSetAmericaShortHaulBig:"HosRuleSetAmericaShortHaulBig",HosRuleSetAmericaShortHaulNo34h:"HosRuleSetAmericaShortHaulNo34h",HosRuleSetAmericaShortHaulNo34hBig:"HosRuleSetAmericaShortHaulNo34hBig",HosRuleSetAmericaShortHaulPassenger:"HosRuleSetAmericaShortHaulPassenger",HosRuleSetAmericaShortHaulPassenger8Day:"HosRuleSetAmericaShortHaulPassenger8Day",HosRuleSetAmericaTexas:"HosRuleSetAmericaTexas",HosRuleSetAmericaTexasS
1hortHaul:"HosRuleSetAmericaTexasShortHaul",HosRuleSetAmericaTexasShortHaul8Day:"HosRuleSetAmericaTexasShortHaul8Day",HosRuleSetAustraliaStandardHoursSoloExemptionHours:"HosRuleSetAustraliaStandardHoursSoloExemptionHours",HosRuleSetBrazilShortHaul:"HosRuleSetBrazilShortHaul",HosRuleSetCalifornia8day:"HosRuleSetCalifornia8day",HosRuleSetCaliforniaFarmProduct:"HosRuleSetCaliforniaFarmProduct",HosRuleSetCaliforniaFarmProductWithRestRequirement:"HosRuleSetCaliforniaFarmProductWithRestRequirement",HosRuleSetCaliforniaFlammableLiquid:"HosRuleSetCaliforniaFlammableLiquid",HosRuleSetCaliforniaFlammableLiquidWithRestRequirement:"HosRuleSetCaliforniaFlammableLiquidWithRestRequirement",HosRuleSetCaliforniaPassenger:"HosRuleSetCaliforniaPassenger",HosRuleSetCaliforniaProperty:"HosRuleSetCaliforniaProperty",HosRuleSetCaliforniaPropertyShortHaul:"HosRuleSetCaliforniaPropertyShortHaul",HosRuleSetCaliforniaPropertyShortHaulWithRest:"HosRuleSetCaliforniaPropertyShortHaulWithRest",HosRuleSetCaliforniaSchoolPupil:"HosRuleSetCaliforniaSchoolPupil",HosRuleSetCaliforniaSchoolPupilWithRestRequirement:"HosRuleSetCaliforniaSchoolPupilWithRestRequirement",HosRuleSetCanadaBCLoggingTruck:"HosRuleSetCanadaBCLoggingTruck",HosRuleSetCanadaCycleOne:"HosRuleSetCanadaCycleOne",HosRuleSetCanadaCycleOneTeam:"HosRuleSetCanadaCycleOneTeam",HosRuleSetCanadaCycleTwo:"HosRuleSetCanadaCycleTwo",HosRuleSetCanadaCycleTwoTeam:"HosRuleSetCanadaCycleTwoTeam",HosRuleSetCanadaNorthOf60CycleOne:"HosRuleSetCanadaNorthOf60CycleOne",HosRuleSetCanadaNorthOf60CycleOneTeam:"HosRuleSetCanadaNorthOf60CycleOneTeam",HosRuleSetCanadaNorthOf60CycleTwo:"HosRuleSetCanadaNorthOf60CycleTwo",HosRuleSetCanadaNorthOf60CycleTwoTeam:"HosRuleSetCanadaNorthOf60CycleTwoTeam",HosRuleSetCanadaNorthOf60Oil:"HosRuleSetCanadaNorthOf60Oil",HosRuleSetCanadaNorthOf60OilTeam:"HosRuleSetCanadaNorthOf60OilTeam",HosRuleSetCanadaOil:"HosRuleSetCanadaOil",HosRuleSetCanadaOilTeam:"HosRuleSetCanadaOilTeam",HosRuleSetCarrierExemption:"HosRuleSetCarrierExemption",HosRuleSetFlorida7Day:"HosRuleSetFlorida7Day",HosRuleSetFlorida8Day:"HosRuleSetFlorida8Day",HosRuleSetFloridaShortHaul7Day:"HosRuleSetFloridaShortHaul7Day",HosRuleSetFloridaShortHaul8Day:"HosRuleSetFloridaShortHaul8Day",HosRuleSetMalaysiaDrivingHours:"HosRuleSetMalaysiaDrivingHours",HosRuleSetMarylandShortHaul7Day:"HosRuleSetMarylandShortHaul7Day",HosRuleSetMarylandShortHaul8Day:"HosRuleSetMarylandShortHaul8Day",HosRuleSetNebraska7day:"HosRuleSetNebraska7day",HosRuleSetNebraska8day:"HosRuleSetNebraska8day",HosRuleSetNone:"HosRuleSetNone",HosRuleSetNone8Day:"HosRuleSetNone8Day",HosRuleSetNoneCanada:"HosRuleSetNoneCanada",HosRuleSetNoneCanadaNorthOf60:"HosRuleSetNoneCanadaNorthOf60",HosRuleSetNorthDakota7Day:"HosRuleSetNorthDakota7Day",HosRuleSetNorthDakotaShortHaul7Day:"HosRuleSetNorthDakotaShortHaul7Day",HosRuleSetOilTransport7Day:"HosRuleSetOilTransport7Day",HosRuleSetOilTransport7DayBig:"HosRuleSetOilTransport7DayBig",HosRuleSetOilTransport7DayBigSleeper:"HosRuleSetOilTransport7DayBigSleeper",HosRuleSetOilTransport7DaySleeper:"HosRuleSetOilTransport7DaySleeper",HosRuleSetOilTransport8Day:"HosRuleSetOilTransport8Day",HosRuleSetOilTransport8DayBig:"HosRuleSetOilTransport8DayBig",HosRuleSetOilTransport8DayBigSleeper:"HosRuleSetOilTransport8DayBigSleeper",HosRuleSetOilTransport8DaySleeper:"HosRuleSetOilTransport8DaySleeper",HosRuleSetOilTransportCalifornia8day:"HosRuleSetOilTransportCalifornia8day",HosRuleSetOilTransportCaliforniaProperty:"HosRuleSetOilTransportCaliforniaProperty",HosRuleSetOilTransportNoRestRequirement7Day:"HosRuleSetOilTransportNoRestRequirement7Day",HosRuleSetOilTransportNoRestRequirement7DayBig:"HosRuleSetOilTransportNoRestRequirement7DayBig",HosRuleSetOilTransportNoRestRequirement7DayBigSleeper:"HosRuleSetOilTransportNoRestRequirement7DayBigSleeper",HosRuleSetOilTransportNoRestRequirement7DaySleeper:"HosRuleSetOilTransportNoRestRequirement7DaySleeper",HosRuleSetOilTransportNoRestRequirement8Day:"HosRuleSetOilTransportNoRestRequirement8Day",HosRuleSetOilTransportNoRestRequirement8DayBig:"HosRuleSetOilTransportNoRestRequirement8DayBig",HosRuleSetOilTransportNoRestRequirement8DayBigSleeper:"HosRuleSetOilTransportNoRestRequirement8DayBigSleeper",HosRuleSetOilTransportNoRestRequirement8DaySleeper:"HosRuleSetOilTransportNoRestRequirement8DaySleeper",HosRuleSetOilTransportShortHaul:"HosRuleSetOilTransportShortHaul",HosRuleSetOilTransportShortHaul14hrWorkday:"HosRuleSetOilTransportShortHaul14hrWorkday",HosRuleSetOilTransportShortHaul8Day:"HosRuleSetOilTransportShortHaul8Day",HosRuleSetOilTransportShortHaul8Day14hrWorkday:"HosRuleSetOilTransportShortHaul8Day14hrWorkday",HosRuleSetOilTransportShortHaul8DayBig:"HosRuleSetOilTransportShortHaul8DayBig",HosRuleSetOilTransportShortHaulBig:"HosRuleSetOilTransportShortHaulBig",HosRuleSetOilTransportTexas:"HosRuleSetOilTransportTexas",HosRuleSetOilWell7Day:"HosRuleSetOilWell7Day",HosRuleSetOilWell7DayBig:"HosRuleSetOilWell7DayBig",HosRuleSetOilWell7DayBigSleeper:"HosRuleSetOilWell7DayBigSleeper",HosRuleSetOilWell7DaySleeper:"HosRuleSetOilWell7DaySleeper",HosRuleSetOilWell8Day:"HosRuleSetOilWell8Day",HosRuleSetOilWell8DayBig:"HosRuleSetOilWell8DayBig",HosRuleSetOilWell8DayBigSleeper:"HosRuleSetOilWell8DayBigSleeper",HosRuleSetOilWell8DaySleeper:"HosRuleSetOilWell8DaySleeper",HosRuleSetOilWellCalifornia8day:"HosRuleSetOilWellCalifornia8day",HosRuleSetOilWellCaliforniaProperty:"HosRuleSetOilWellCaliforniaProperty",HosRuleSetOilWellNoRestRequirement7Day:"HosRuleSetOilWellNoRestRequirement7Day",HosRuleSetOilWellNoRestRequirement7DayBig:"HosRuleSetOilWellNoRestRequirement7DayBig",HosRuleSetOilWellNoRestRequirement7DayBigSleeper:"HosRuleSetOilWellNoRestRequirement7DayBigSleeper",HosRuleSetOilWellNoRestRequirement7DaySleeper:"HosRuleSetOilWellNoRestRequirement7DaySleeper",HosRuleSetOilWellNoRestRequirement8Day:"HosRuleSetOilWellNoRestRequirement8Day",HosRuleSetOilWellNoRestRequirement8DayBig:"HosRuleSetOilWellNoRestRequirement8DayBig",HosRuleSetOilWellNoRestRequirement8DayBigSleeper:"HosRuleSetOilWellNoRestRequirement8DayBigSleeper",HosRuleSetOilWellNoRestRequirement8DaySleeper:"HosRuleSetOilWellNoRestRequirement8DaySleeper",HosRuleSetOilWellTexas:"HosRuleSetOilWellTexas",HosRuleSetOregon7day:"HosRuleSetOregon7day",HosRuleSetOregon8day:"HosRuleSetOregon8day",HosRuleSetSouthCarolina7Day:"HosRuleSetSouthCarolina7Day",HosRuleSetSouthCarolina8Day:"HosRuleSetSouthCarolina8Day",HosRuleSetWashingtonIntrastate7Day:"HosRuleSetWashingtonIntrastate7Day",HosRuleSetWashingtonIntrastate8Day:"HosRuleSetWashingtonIntrastate8Day",IdlingViolationDefaultDashboardReportScheduleId:"IdlingViolationDefaultDashboardReportScheduleId",InspectionTypeMidTripId:"InspectionTypeMidTripId",InspectionTypeOtherId:"InspectionTypeOtherId",InspectionTypePostTripId:"InspectionTypePostTripId",InspectionTypePreTripId:"InspectionTypePreTripId",InstallAutoAcceptUserId:"InstallAutoAcceptUserId",IoxWrksAirTemperature:"IoxWrksAirTemperature",IoxWrksControllerMode:"IoxWrksControllerMode",IoxWrksControllerModel:"IoxWrksControllerModel",IoxWrksControllerType:"IoxWrksControllerType",IoxWrksExternalDeviceSerialNumber:"IoxWrksExternalDeviceSerialNumber",IoxWrksFirmwareVersion:"IoxWrksFirmwareVersion",IoxWrksFrostPointTemperature:"IoxWrksFrostPointTemperature",IoxWrksIceLayerThickness:"IoxWrksIceLayerThickness",IoxWrksLiquidMaterialActive:"IoxWrksLiquidMaterialActive",IoxWrksMacAutomaticVolumeSubstance1:"IoxWrksMacAutomaticVolumeSubstance1",IoxWrksMacAutomaticVolumeSubstance2:"IoxWrksMacAutomaticVolumeSubstance2",IoxWrksMacAutomaticVolumeSubstance3:"IoxWrksMacAutomaticVolumeSubstance3",IoxWrksMacDosageSettingLiquid1:"IoxWrksMacDosageSettingLiquid1",IoxWrksMacDosageSettingSolid1:"IoxWrksMacDosageSettingSolid1",IoxWrksMacMainPlow:"IoxWrksMacMainPlow",IoxWrksPrewetMaterialActive:"IoxWrksPrewetMaterialActive",IoxWrksRelativeHumidity:"IoxWrksRelativeHumidity",IoxWrksRoadConditionVaisala:"IoxWrksRoadConditionVaisala",IoxWrksRoadTemperature:"IoxWrksRoadTemperature",IoxWrksSecondarySpreaderConfigFile:"IoxWrksSecondarySpreaderConfigFile",IoxWrksSnowLayerThickness:"IoxWrksSnowLayerThickness",IoxWrksSpinnerRate:"IoxWrksSpinnerRate",IoxWrksSpinnerState:"IoxWrksSpinnerState",IoxWrksSpreadWidth:"IoxWrksSpreadWidth",IoxWrksSpreaderControllerConfigFile:"IoxWrksSpreaderControllerConfigFile",IoxWrksSubstanceSpreaderBoom1:"IoxWrksSubstanceSpreaderBoom1",IoxWrksSubstanceSpreaderBoom2:"IoxWrksSubstanceSpreaderBoom2",IoxWrksSubstanceSpreaderBoom3:"IoxWrksSubstanceSpreaderBoom3",IoxWrksSubstanceSpreaderBoom4:"IoxWrksSubstanceSpreaderBoom4",IoxWrksSubstanceSpreaderBoom5:"IoxWrksSubstanceSpreaderBoom5",IoxWrksSubstanceSpreaderBoom6:"IoxWrksSubstanceSpreaderBoom6",IoxWrksSubstanceSpreaderBoom7:"IoxWrksSubstanceSpreaderBoom7",IoxWrksSubstanceSpreaderBoom8:"IoxWrksSubstanceSpreaderBoom8",IoxWrksSubstanceSpreaderDeicerDensityMeaning:"IoxWrksSubstanceSpreaderDeicerDensityMeaning",IoxWrksSubstanceSpreaderDeicerDensityValue:"IoxWrksSubstanceSpreaderDeicerDensityValue",IoxWrksSubstanceSpreaderDewPointTemperature:"IoxWrksSubstanceSpreaderDewPointTemperature",IoxWrksSubstanceSpreaderFreezingTemperature:"IoxWrksSubstanceSpreaderFreezingTemperature",IoxWrksSubstanceSpreaderFriction:"IoxWrksSubstanceSpreaderFriction",IoxWrksSubstanceSpreaderIcePercentage:"IoxWrksSubstanceSpreaderIcePercentage",IoxWrksSubstanceSpreaderJoystickDown:"IoxWrksSubstanceSpreaderJoystickDown",IoxWrksSubstanceSpreaderJoystickEmergencyButton:"IoxWrksSubstanceSpreaderJoystickEmergencyButton",IoxWrksSubstanceSpreaderJoystickLeft:"IoxWrksSubstanceSpreaderJoystickLeft",IoxWrksSubstanceSpreaderJoystickMode:"IoxWrksSubstanceSpreaderJoystickMode",IoxWrksSubstanceSpreaderJoystickPowerFloat1:"IoxWrksSubstanceSpreaderJoystickPowerFloat1",IoxWrksSubstanceSpreaderJoystickPowerFloat2:"IoxWrksSubstanceSpreaderJoystickPowerFloat2",IoxWrksSubstanceSpreaderJoystickRight:"IoxWrksSubstanceSpreaderJoystickRight",IoxWrksSubstanceSpreaderJoystickTwistLeft:"IoxWrksSubstanceSpreaderJoystickTwistLeft",IoxWrksSubstanceSpreaderJoystickTwistRight:"IoxWrksSubstanceSpreaderJoystickTwistRight",IoxWrksSubstanceSpreaderJoystickUp:"IoxWrksSubstanceSpreaderJoystickUp",IoxWrksSubstanceSpreaderLiquidMaterialPercentage:"IoxWrksSubstanceSpreaderLiquidMaterialPercentage",IoxWrksSubstanceSpreaderPrewetMaterialPercentage:"IoxWrksSubstanceSpreaderPrewetMaterialPercentage",IoxWrksSubstanceSpreaderRelativeHumidityAtRoadTemp:"IoxWrksSubstanceSpreaderRelativeHumidityAtRoadTemp",IoxWrksSubstanceSpreaderRoadConditionMarwis:"IoxWrksSubstanceSpreaderRoadConditionMarwis",IoxWrksSubstanceSpreaderSolidMaterialPercentage:"IoxWrksSubstanceSpreaderSolidMaterialPercentage",IoxWrksSubstanceSpreaderSpinnerPercentage:"IoxWrksSubstanceSpreaderSpinnerPercentage",IoxWrksSubstanceSpreaderWaterFilmHeight:"IoxWrksSubstanceSpreaderWaterFilmHeight",IoxWrksSubstanceSpreaderWaterFilmHeightOnSurface:"IoxWrksSubstanceSpreaderWaterFilmHeightOnSurface",IoxWrksTowControllerMode:"IoxWrksTowControllerMode",IoxWrksTowControllerStatus:"IoxWrksTowControllerStatus",Io
1xWrksTowLiquidMaterialPercentage:"IoxWrksTowLiquidMaterialPercentage",IoxWrksTowLiquidSpreadDistance:"IoxWrksTowLiquidSpreadDistance",IoxWrksTowPrewetMaterialPercentage:"IoxWrksTowPrewetMaterialPercentage",IoxWrksTowPrewetSpreadDistance:"IoxWrksTowPrewetSpreadDistance",IoxWrksTowSolidMaterialPercentage:"IoxWrksTowSolidMaterialPercentage",IoxWrksTowSolidSpreadDistance:"IoxWrksTowSolidSpreadDistance",IoxWrksTowSpinnerStatus:"IoxWrksTowSpinnerStatus",IoxWrksTruckLiquidSpreadDistance:"IoxWrksTruckLiquidSpreadDistance",IoxWrksTruckPrewetSpreadDistance:"IoxWrksTruckPrewetSpreadDistance",IoxWrksTruckSolidSpreadDistance:"IoxWrksTruckSolidSpreadDistance",ListenOnlyModeReasonAudibleAlertId:"ListenOnlyModeReasonAudibleAlertId",ListenOnlyModeReasonDrivabilityId:"ListenOnlyModeReasonDrivabilityId",ListenOnlyModeReasonDriverWarningMessageId:"ListenOnlyModeReasonDriverWarningMessageId",ListenOnlyModeReasonGarageMaintenanceId:"ListenOnlyModeReasonGarageMaintenanceId",ListenOnlyModeReasonLightsOnTheDashId:"ListenOnlyModeReasonLightsOnTheDashId",ListenOnlyModeReasonLossOfVehicleInstrumentsId:"ListenOnlyModeReasonLossOfVehicleInstrumentsId",ListenOnlyModeReasonNoneId:"ListenOnlyModeReasonNoneId",ListenOnlyModeReasonOEMEmbeddedTelematicsId:"ListenOnlyModeReasonOEMEmbeddedTelematicsId",ListenOnlyModeReasonOperatingLightsOutsideTheVehicleId:"ListenOnlyModeReasonOperatingLightsOutsideTheVehicleId",ListenOnlyModeReasonOtherId:"ListenOnlyModeReasonOtherId",ListenOnlyModeReasonSupport3RdPartyHardwareId:"ListenOnlyModeReasonSupport3RdPartyHardwareId",MaintenanceReportTagId:"MaintenanceReportTagId",MaintenanceScheduleBigQueryUploadRequestId:"MaintenanceScheduleBigQueryUploadRequestId",MaintenanceWorkOrderEntityUploadRequestId:"MaintenanceWorkOrderEntityUploadRequestId",MaintenanceWorkOrderJobBigQueryUploadRequestId:"MaintenanceWorkOrderJobBigQueryUploadRequestId",MaintenanceWorkRequestBigQueryUploadRequestId:"MaintenanceWorkRequestBigQueryUploadRequestId",MimeTaskTypeApplicationMdf4Id:"MimeTaskTypeApplicationMdf4Id",MimeTaskTypeAutomotiveId:"MimeTaskTypeAutomotiveId",MimeTaskTypeUnknownId:"MimeTaskTypeUnknownId",MimeTaskTypeVideoSafewayId:"MimeTaskTypeVideoSafewayId",NoDeviceId:"NoDeviceId",NoDiagnosticId:"NoDiagnosticId",NoDisplayProfileId:"NoDisplayProfileId",NoDriverId:"NoDriverId",NoExceptionEventId:"NoExceptionEventId",NoFailureModeId:"NoFailureModeId",NoGroupId:"NoGroupId",NoRecipientId:"NoRecipientId",NoRuleId:"NoRuleId",NoTrailerId:"NoTrailerId",NoUserId:"NoUserId",NoZoneId:"NoZoneId",NotificationBigQueryUploadRequestId:"NotificationBigQueryUploadRequestId",OtherReportTagId:"OtherReportTagId",ParameterGroupNoneId:"ParameterGroupNoneId",PossibleCollisionsDefaultDashboardReportScheduleId:"PossibleCollisionsDefaultDashboardReportScheduleId",PotentialFuelMismatchBigQueryUploadRequestId:"PotentialFuelMismatchBigQueryUploadRequestId",ProductivityReportTagId:"ProductivityReportTagId",PushNotificationTemplateDefaultExceptionRuleId:"PushNotificationTemplateDefaultExceptionRuleId",RefrigerationUnitBatteryVoltageId:"RefrigerationUnitBatteryVoltageId",RefrigerationUnitControllerProtocolId:"RefrigerationUnitControllerProtocolId",RefrigerationUnitDischargeTemperatureZone1Id:"RefrigerationUnitDischargeTemperatureZone1Id",RefrigerationUnitDischargeTemperatureZone2Id:"RefrigerationUnitDischargeTemperatureZone2Id",RefrigerationUnitDischargeTemperatureZone3Id:"RefrigerationUnitDischargeTemperatureZone3Id",RefrigerationUnitDoorStatusId:"RefrigerationUnitDoorStatusId",RefrigerationUnitElectricRunHoursId:"RefrigerationUnitElectricRunHoursId",RefrigerationUnitEngineCoolantTemperatureId:"RefrigerationUnitEngineCoolantTemperatureId",RefrigerationUnitEngineHoursDieselId:"RefrigerationUnitEngineHoursDieselId",RefrigerationUnitEngineHoursElectricId:"RefrigerationUnitEngineHoursElectricId",RefrigerationUnitEngineHoursId:"RefrigerationUnitEngineHoursId",RefrigerationUnitEngineModeId:"RefrigerationUnitEngineModeId",RefrigerationUnitEngineSpeedId:"RefrigerationUnitEngineSpeedId",RefrigerationUnitEvaporatorCoilTemperatureZone1Id:"RefrigerationUnitEvaporatorCoilTemperatureZone1Id",RefrigerationUnitEvaporatorCoilTemperatureZone2Id:"RefrigerationUnitEvaporatorCoilTemperatureZone2Id",RefrigerationUnitEvaporatorCoilTemperatureZone3Id:"RefrigerationUnitEvaporatorCoilTemperatureZone3Id",RefrigerationUnitExter
1nalAmbientTemperatureId:"RefrigerationUnitExternalAmbientTemperatureId",RefrigerationUnitFuelLevelId:"RefrigerationUnitFuelLevelId",RefrigerationUnitOperationModeId:"RefrigerationUnitOperationModeId",RefrigerationUnitSetTemperatureZone1Id:"RefrigerationUnitSetTemperatureZone1Id",RefrigerationUnitSetTemperatureZone2Id:"RefrigerationUnitSetTemperatureZone2Id",RefrigerationUnitSetTemperatureZone3Id:"RefrigerationUnitSetTemperatureZone3Id",RefrigerationUnitStatusId:"RefrigerationUnitStatusId",RefrigerationUnitTemperatureZone1Id:"RefrigerationUnitTemperatureZone1Id",RefrigerationUnitTemperatureZone2Id:"RefrigerationUnitTemperatureZone2Id",RefrigerationUnitTemperatureZone3Id:"RefrigerationUnitTemperatureZone3Id",RefrigerationUnitTotalNumberAlarmsId:"RefrigerationUnitTotalNumberAlarmsId",RefrigerationUnitTotalRunHoursEnergyTypeId:"RefrigerationUnitTotalRunHoursEnergyTypeId",RemoteProbe1TemperatureId:"RemoteProbe1TemperatureId",RemoteProbe2TemperatureId:"RemoteProbe2TemperatureId",RemoteProbe3TemperatureId:"RemoteProbe3TemperatureId",RemoteProbe4TemperatureId:"RemoteProbe4TemperatureId",ReportTemplateActiveEngineFaultsId:"ReportTemplateActiveEngineFaultsId",ReportTemplateActivitySummaryTodayId:"ReportTemplateActivitySummaryTodayId",ReportTemplateAdvancedAuditLogId:"ReportTemplateAdvancedAuditLogId",ReportTemplateAdvancedAuxiliaryDetailId:"ReportTemplateAdvancedAuxiliaryDetailId",ReportTemplateAdvancedAuxiliarySummaryId:"ReportTemplateAdvancedAuxiliarySummaryId",ReportTemplateAdvancedChargeEventId:"ReportTemplateAdvancedChargeEventId",ReportTemplateAdvancedCongregationId:"ReportTemplateAdvancedCongregationId",ReportTemplateAdvancedCustomerVisitsDetailId:"ReportTemplateAdvancedCustomerVisitsDetailId",ReportTemplateAdvancedCustomerVisitsSummaryId:"ReportTemplateAdvancedCustomerVisitsSummaryId",ReportTemplateAdvancedDVIRId:"ReportTemplateAdvancedDVIRId",ReportTemplateAdvancedDeviceInstallHistoryId:"ReportTemplateAdvancedDeviceInstallHistoryId",ReportTemplateAdvancedDiagnosticsId:"ReportTemplateAdvancedDiagnosticsId",ReportTemplateAdvancedEVBatteryHealthId:"ReportTemplateAdvancedEVBatteryHealthId",ReportTemplateAdvancedEngineFaultId:"ReportTemplateAdvancedEngineFaultId",ReportTemplateAdvancedEngineStatusId:"ReportTemplateAdvancedEngineStatusId",ReportTemplateAdvancedEngineSummaryId:"ReportTemplateAdvancedEngineSummaryId",ReportTemplateAdvancedEventHistoryId:"ReportTemplateAdvancedEventHistoryId",ReportTemplateAdvancedEventRuleDeviceId:"ReportTemplateAdvancedEventRuleDeviceId",ReportTemplateAdvancedExceptionsDetailId:"ReportTemplateAdvancedExceptionsDetailId",ReportTemplateAdvancedExceptionsSummaryId:"ReportTemplateAdvancedExceptionsSummaryId",ReportTemplateAdvancedFailureModeId:"ReportTemplateAdvancedFailureModeId",ReportTemplateAdvancedFillUpsId:"ReportTemplateAdvancedFillUpsId",ReportTemplateAdvancedFuelTaxId:"ReportTemplateAdvancedFuelTaxId",ReportTemplateAdvancedFuelUsageId:"ReportTemplateAdvancedFuelUsageId",ReportTemplateAdvancedGroupsId:"ReportTemplateAdvancedGroupsId",ReportTemplateAdvancedHOSAvailabilityId:"ReportTemplateAdvancedHOSAvailabilityId",ReportTemplateAdvancedHOSLogId:"ReportTemplateAdvancedHOSLogId",ReportTemplateAdvancedHOSViolationId:"ReportTemplateAdvancedHOSViolationId",ReportTemplateAdvancedLogDetailsId:"ReportTemplateAdvancedLogDetailsId",ReportTemplateAdvancedMaintenanceRemindersId:"ReportTemplateAdvancedMaintenanceRemindersId",ReportTemplateAdvancedMaintenanceSchedulesId:"ReportTemplateAdvancedMaintenanceSchedulesId",ReportTemplateAdvancedMaintenanceWorkJobsId:"ReportTemplateAdvancedMaintenanceWorkJobsId",ReportTemplateAdvancedMaintenanceWorkOrdersWorkJobsId:"ReportTemplateAdvancedMaintenanceWorkOrdersWorkJobsId",ReportTemplateAdvancedMaintenanceWorkRequestsId:"ReportTemplateAdvancedMaintenanceWorkRequestsId",ReportTemplateAdvancedMaterialManagementId:"ReportTemplateAdvancedMaterialManagementId",ReportTemplateAdvancedNotificationsId:"ReportTemplateAdvancedNotificationsId",ReportTemplateAdvancedPlanVsActualRouteId:"ReportTemplateAdvancedPlanVsActualRouteId",ReportTemplateAdvancedRiskManagementId:"ReportTemplateAdvancedRiskManagementId",ReportTemplateAdvancedRouteCompletionId:"ReportTemplateAdvancedRouteCompletionId",ReportTemplateAdvancedRouteDirectionsId:"ReportTemplateAdvancedRouteDirectionsId",ReportTemplateAdvancedRouteSummaryId:"ReportTemplateAdvancedRouteSummaryId",ReportTemplateAdvancedServiceStatusId:"ReportTemplateAdvancedServiceStatusId",ReportTemplateAdvancedTextMessagesId:"ReportTemplateAdvancedTextMessagesId",ReportTemplateAdvancedTimeCardId:"ReportTemplateAdvancedTimeCardId",ReportTemplateAdvancedTimePerformanceId:"ReportTemplateAdvancedTimePerformanceId",ReportTemplateAdvancedTripsDetailId:"ReportTemplateAdvancedTripsDetailId",ReportTemplateAdvancedTripsSummaryId:"ReportTemplateAdvancedTripsSummaryId",ReportTemplateAdvancedUnmatchedRouteId:"ReportTemplateAdvancedUnmatchedRouteId",ReportTemplateAdvancedUsersId:"ReportTemplateAdvancedUsersId",ReportTemplateAdvancedValuePerformanceId:"ReportTemplateAdvancedValuePerformanceId",ReportTemplateAdvancedVehiclesId:"ReportTemplateAdvancedVehiclesId",ReportTemplateAdvancedZonesId:"ReportTemplateAdvancedZonesId",ReportTemplateAggressiveDrivingId:"ReportTemplateAggressiveDrivingId",ReportTemplateAssetMonitoringId:"ReportTemplateAssetMonitoringId",ReportTemplateAssetUtilizationId:"ReportTemplateAssetUtilizationId",ReportTemplateAuditLogId:"ReportTemplateAuditLogId",ReportTemplateAuxiliaryDetailId:"ReportTemplateAuxiliaryDetailId",ReportTemplateAuxiliarySummaryId:"ReportTemplateAuxiliarySummaryId",ReportTemplateAverageFuelEconomyId:"ReportTemplateAverageFuelEconomyId",ReportTemplateBEVRangeCapabilityId:"ReportTemplateBEVRangeCapabilityId",ReportTemplateBarCtpId:"ReportTemplateBarCtpId",ReportTemplateBasicDriverScoreLastWeekId:"ReportTemplateBasicDriverScoreLastWeekId",ReportTemplateBigQueryUploadRequestId:"ReportTemplateBigQueryUploadRequestId",ReportTemplateBusinessVsPersonalLastWeekId:"ReportTemplateBusinessVsPersonalLastWeekId",ReportTemplateCameraId:"ReportTemplateCameraId",ReportTemplateChargeEventId:"ReportTemplateChargeEventId",ReportTemplateCleanTruckCheckId:"ReportTemplateCleanTruckCheckId",ReportTemplateColdChainDeviceHistoryId:"ReportTemplateColdChainDeviceHistoryId",ReportTemplateColdChainId:"ReportTemplateColdChainId",ReportTemplateCongregationId:"ReportTemplateCongregationId",ReportTemplateCustomerVisitsDetailId:"ReportTemplateCustomerVisitsDetailId",ReportTemplateCustomerVisitsSummaryId:"ReportTemplateCustomerVisitsSummaryId",ReportTemplateDVIRId:"ReportTemplateDVIRId",ReportTemplateDeviceInstallHistoryId:"ReportTemplateDeviceInstallHistoryId",ReportTemplateDeviceOnlineAndOfflineId:"ReportTemplateDeviceOnlineAndOfflineId",ReportTemplateDiagnosticsId:"ReportTemplateDiagnosticsId",ReportTemplateDriverSafetyScorec
1ardId:"ReportTemplateDriverSafetyScorecardId",ReportTemplateELDDiagnosticsAndMalfunctionsId:"ReportTemplateELDDiagnosticsAndMalfunctionsId",ReportTemplateELDUnidentifiedDriverLogsId:"ReportTemplateELDUnidentifiedDriverLogsId",ReportTemplateELDUnverifiedLogsId:"ReportTemplateELDUnverifiedLogsId",ReportTemplateEVBatteryHealthId:"ReportTemplateEVBatteryHealthId",ReportTemplateEVPerformanceId:"ReportTemplateEVPerformanceId",ReportTemplateEngineFaultId:"ReportTemplateEngineFaultId",ReportTemplateEngineStatusId:"ReportTemplateEngineStatusId",ReportTemplateEngineSummaryId:"ReportTemplateEngineSummaryId",ReportTemplateEventHistoryId:"ReportTemplateEventHistoryId",ReportTemplateEventRuleDeviceId:"ReportTemplateEventRuleDeviceId",ReportTemplateExceptionsDetailId:"ReportTemplateExceptionsDetailId",ReportTemplateExceptionsSummaryId:"ReportTemplateExceptionsSummaryId",ReportTemplateFailureModeId:"ReportTemplateFailureModeId",ReportTemplateFaultCycleId:"ReportTemplateFaultCycleId",ReportTemplateFillUpsId:"ReportTemplateFillUpsId",ReportTemplateFleetDistanceTrendId:"ReportTemplateFleetDistanceTrendId",ReportTemplateFleetUtilizationId:"ReportTemplateFleetUtilizationId",ReportTemplateFuelTaxId:"ReportTemplateFuelTaxId",ReportTemplateFuelTransactionId:"ReportTemplateFuelTransactionId",ReportTemplateFuelUsageId:"ReportTemplateFuelUsageId",ReportTemplateGroupsId:"ReportTemplateGroupsId",ReportTemplateHOSAvailabilityId:"ReportTemplateHOSAvailabilityId",ReportTemplateHOSLogId:"ReportTemplateHOSLogId",ReportTemplateHOSViolationBreakdownId:"ReportTemplateHOSViolationBreakdownId",ReportTemplateHOSViolationId:"ReportTemplateHOSViolationId",ReportTemplateIdlingViolationsId:"ReportTemplateIdlingViolationsId",ReportTemplateLastMileMaintenanceId:"ReportTemplateLastMileMaintenanceId",ReportTemplateLinkedAssetsId:"ReportTemplateLinkedAssetsId",ReportTemplateLogDetailsId:"ReportTemplateLogDetailsId",ReportTemplateMaintenanceRemindersId:"ReportTemplateMaintenanceRemindersId",ReportTemplateMaintenanceSchedulesId:"ReportTemplateMaintenanceSchedulesId",ReportTemplateMaintenanceWorkJobsId:"ReportTemplateMaintenanceWorkJobsId",ReportTemplateMaintenanceWorkRequestsId:"ReportTemplateMaintenanceWorkRequestsId",ReportTemplateMaterialManagementId:"ReportTemplateMaterialManagementId",ReportTemplateMaxSpeedId:"ReportTemplateMaxSpeedId",ReportTemplateNotificationsId:"ReportTemplateNotificationsId",ReportTemplateNumberOfStopsYesterdayId:"ReportTemplateNumberOfStopsYesterdayId",ReportTemplatePercentageOfTimeIdlingYesterdayId:"ReportTemplatePercentageOfTimeIdlingYesterdayId",ReportTemplatePlanVsActualRouteId:"ReportTemplatePlanVsActualRouteId",ReportTemplatePossibleCollisionsId:"ReportTemplatePossibleCollisionsId",ReportTemplateProgressReportId:"ReportTemplateProgressReportId",ReportTemplateRiskAnalyticsId:"ReportTemplateRiskAnalyticsId",ReportTemplateRiskManagementId:"ReportTemplateRiskManagementId",ReportTemplateRouteCompletionId:"ReportTemplateRouteCompletionId",ReportTemplateRouteDirectionsId:"ReportTemplateRouteDirectionsId",ReportTemplateRouteSummaryId:"ReportTemplateRouteSummaryId",ReportTemplateSeatBeltViolationsId:"ReportTemplateSeatBeltViolationsId",ReportTemplateServiceStatusId:"ReportTemplateServiceStatusId",ReportTemplateSpeedViolationsId:"ReportTemplateSpeedViolationsId",ReportTemplateStandaloneAdvancedAssetUtilizationId:"ReportTemplateStandaloneAdvancedAssetUtilizationId",ReportTemplateStandardAssetUtilizationId:"ReportTemplateStandardAssetUtilizationId",ReportTemplateStreetSweeperId:"ReportTemplateStreetSweeperId",ReportTemplateSustainabilityOverviewId:"ReportTemplateSustainabilityOverviewId",ReportTemplateTextMessagesId:"ReportTemplateTextMessagesId",ReportTemplateTimeCardId:"ReportTemplateTimeCardId",ReportTemplateTimePerformanceId:"ReportTemplateTimePerformanceId",ReportTemplateTripCategorizationId:"ReportTemplateTripCategorizationId",ReportTemplateTripsDetailId:"ReportTemplateTripsDetailId",ReportTemplateTripsSummaryId:"ReportTemplateTripsSummaryId",ReportTemplateUnmatchedRouteId:"ReportTemplateUnmatchedRouteId",ReportTemplateUnrepairedDefectsId:"ReportTemplateUnrepairedDefectsI
1d",ReportTemplateUsersId:"ReportTemplateUsersId",ReportTemplateValuePerformanceId:"ReportTemplateValuePerformanceId",ReportTemplateVehiclesId:"ReportTemplateVehiclesId",ReportTemplateWatchdogId:"ReportTemplateWatchdogId",ReportTemplateXarId:"ReportTemplateXarId",ReportTemplateZonesId:"ReportTemplateZonesId",RestrictedDataModeChangeBigQueryUploadRequestId:"RestrictedDataModeChangeBigQueryUploadRequestId",RestrictedDataModeId:"RestrictedDataModeId",RoleAdministratorId:"RoleAdministratorId",RuleAccidentId:"RuleAccidentId",RuleAfterHoursUsageId:"RuleAfterHoursUsageId",RuleAlternatorFailedId:"RuleAlternatorFailedId",RuleApplicationExceptionId:"RuleApplicationExceptionId",RuleAtOfficeLongerThanId:"RuleAtOfficeLongerThanId",RuleBigQueryUploadRequestId:"RuleBigQueryUploadRequestId",RuleCameraDetectedDriverSeatbeltId:"RuleCameraDetectedDriverSeatbeltId",RuleCameraLensObstructionId:"RuleCameraLensObstructionId",RuleCameraTamperingId:"RuleCameraTamperingId",RuleCargoTemperatureOutOfSafeRangeZone1Id:"RuleCargoTemperatureOutOfSafeRangeZone1Id",RuleCargoTemperatureOutOfSafeRangeZone2Id:"RuleCargoTemperatureOutOfSafeRangeZone2Id",RuleCargoTemperatureOutOfSafeRangeZone3Id:"RuleCargoTemperatureOutOfSafeRangeZone3Id",RuleCriticalLowTirePressureId:"RuleCriticalLowTirePressureId",RuleDVIRPostTripMissingId:"RuleDVIRPostTripMissingId",RuleDVIRPreTripMissingId:"RuleDVIRPreTripMissingId",RuleDefensiveDrivingId:"RuleDefensiveDrivingId",RuleDeviceButtonPressedId:"RuleDeviceButtonPressedId",RuleDistractionId:"RuleDistractionId",RuleDoubleSolidLineViolationId:"RuleDoubleSolidLineViolationId",RuleDrinkingOrEatingId:"RuleDrinkingOrEatingId",RuleDriverEyeRubbingId:"RuleDriverEyeRubbingId",RuleDriverFatigueId:"RuleDriverFatigueId",RuleDriverYawningId:"RuleDriverYawningId",RuleDvirDefectId:"RuleDvirDefectId",RuleEVDoneChargingId:"RuleEVDoneChargingId",RuleEVEnterChargingZoneWithLowChargeId:"RuleEVEnterChargingZoneWithLowChargeId",RuleEVExitChargingZoneWithLowChargeId:"RuleEVExitChargingZoneWithLowChargeId",RuleEVLowChargeId:"RuleEVLowChargeId",RuleEVStoppedInChargingLocationAndNotChargingId:"RuleEVStoppedInChargingLocationAndNotChargingId",RuleEarlyLeaveId:"RuleEarlyLeaveId",RuleEngineAbuseId:"RuleEngineAbuseId",RuleEngineCoolantTemperatureHighId:"RuleEngineCoolantTemperatureHighId",RuleEngineLightOnId:"RuleEngineLightOnId",RuleEnhancedMajorCollisionId:"RuleEnhancedMajorCollisionId",RuleEnhancedMinorCollisionId:"RuleEnhancedMinorCollisionId",RuleFMCSAELDYardMoveExemptionId:"RuleFMCSAELDYardMoveExemptionId",RuleFleetIdlingId:"RuleFleetIdlingId",RuleFollowingDistanceId:"RuleFollowingDistanceId",RuleGoAnywhereBatteryDrainId:"RuleGoAnywhereBatteryDrainId",RuleGpsSpeedingWindowId:"RuleGpsSpeedingWindowId",RuleHarshBrakingId:"RuleHarshBrakingId",RuleHarshCorneringId:"RuleHarshCorneringId",RuleHarshGpsAccelerationId:"RuleHarshGpsAccelerationId",RuleHarshGpsBrakingId:"RuleHarshGpsBrakingId",RuleHarshGpsCorneringId:"RuleHarshGpsCorneringId",RuleIdlingId:"RuleIdlingId",RuleIdlingNoPTOId:"RuleIdlingNoPTOId",RuleIsInViolationId:"RuleIsInViolationId",RuleJackrabbitStartsId:"RuleJackrabbitStartsId",RuleLateArrivalId:"RuleLateArrivalId",RuleLightsLeftOnId:"RuleLightsLeftOnId",RuleLongLunchId:"RuleLongLunchId",RuleLongStopsDuringWorkHoursId:"RuleLongStopsDuringWorkHoursId",RuleLooseInstallationDetectedId:"RuleLooseInstallationDetectedId",RuleLowFuelLevelId:"RuleLowFuelLevelId",RuleMaterialManagementDeadheadId:"RuleMaterialManagementDeadheadId",RuleMaterialManagementLiquidApplicationId:"RuleMaterialManagementLiquidApplicationId",RuleMaterialManagementPlowActiveId:"RuleMaterialManagementPlowActiveId",RuleMaterialManagementPreWetApplicationId:"RuleMaterialManagementPreWetApplicationId",RuleMaterialManagementRouteBasedZoneOnlyId:"RuleMaterialManagementRouteBasedZoneOnlyId",RuleMaterialManagementSolidApplicationId:"RuleMaterialManagementSolidApplicationId",RuleMaterialManagementTowPlowActiveId:"RuleMaterialManagementTowPlowActiveId",RuleMaterialManagementTowPlowLiquidApplicationId:"RuleMaterialManagementTowPlowLiquidApplicationId",RuleMaterialManagementTowPlowPreWetApplicationId:"RuleMaterialManagementTowPlowPreWetApplicationId",RuleMaterialManagementTowPlowSolidApplicationId:"RuleMaterialManagementTowPlowSolidApplicationId",RuleMaterialManagementUnloadId:"RuleMaterialManagementUnloadId",RuleNearCollisionWarningId:"RuleNearCollisionWarningId",RulePhoneUsageId:"RulePhoneUsageId",RulePostedSpeedingId:"RulePostedSpeedingId",RulePreventableIdlingId:"RulePreventableIdlingId",RuleRedSignalTrafficLightViolationId:"RuleRedSignalTrafficLightViolationId",RuleRever
1seAtStartId:"RuleReverseAtStartId",RuleRoadCameraAdjustmentRequiredId:"RuleRoadCameraAdjustmentRequiredId",RuleRollingStopId:"RuleRollingStopId",RuleSeatbeltId:"RuleSeatbeltId",RuleSmokingId:"RuleSmokingId",RuleStreetSweeperActiveId:"RuleStreetSweeperActiveId",RuleStreetSweeperLeftBroomActiveId:"RuleStreetSweeperLeftBroomActiveId",RuleStreetSweeperRightBroomActiveId:"RuleStreetSweeperRightBroomActiveId",RuleTachographCompanyCardAvailabilityId:"RuleTachographCompanyCardAvailabilityId",RuleTachographWeeklyStatusOverviewId:"RuleTachographWeeklyStatusOverviewId",RuleUnauthorizedDeviceRemovalId:"RuleUnauthorizedDeviceRemovalId",RuleUnauthorizedHomeStopId:"RuleUnauthorizedHomeStopId",RuleVehicleESRHealthId:"RuleVehicleESRHealthId",RuleVehicleMovementWithinZonesId:"RuleVehicleMovementWithinZonesId",RuleWiFiMaxTierUsageId:"RuleWiFiMaxTierUsageId",RuleWiFiTierUsageId:"RuleWiFiTierUsageId",SafetyReportTagId:"SafetyReportTagId",SecurityIdAboutCheckmateId:"SecurityIdAboutCheckmateId",SecurityIdAccelerometerDataClearanceId:"SecurityIdAccelerometerDataClearanceId",SecurityIdAccessAddInManagementId:"SecurityIdAccessAddInManagementId",SecurityIdAccessBarCtpComplianceEditorId:"SecurityIdAccessBarCtpComplianceEditorId",SecurityIdAccessBarCtpComplianceId:"SecurityIdAccessBarCtpComplianceId",SecurityIdAccessBarCtpComplianceViewerId:"SecurityIdAccessBarCtpComplianceViewerId",SecurityIdAccessBillingServicesId:"SecurityIdAccessBillingServicesId",SecurityIdAccessCleanTruckCheckComplianceEditorId:"SecurityIdAccessCleanTruckCheckComplianceEditorId",SecurityIdAccessCleanTruckCheckComplianceId:"SecurityIdAccessCleanTruckCheckComplianceId",SecurityIdAccessCleanTruckCheckComplianceViewerId:"SecurityIdAccessCleanTruckCheckComplianceViewerId",SecurityIdAccessDeviceInstallationServicesId:"SecurityIdAccessDeviceInstallationServicesId",SecurityIdAccessEVSuitabilityAssessmentId:"SecurityIdAccessEVSuitabilityAssessmentId",SecurityIdAccessInvoicesId:"SecurityIdAccessInvoicesId",SecurityIdAccessKeurmerkId:"SecurityIdAccessKeurmerkId",SecurityIdAccessMonthlyBillsId:"SecurityIdAccessMonthlyBillsId",SecurityIdAccessOneStoreId:"SecurityIdAccessOneStoreId",SecurityIdAccessOrderManagementId:"SecurityIdAccessOrderManagementId",SecurityIdAccessProductReturnsId:"SecurityIdAccessProductReturnsId",SecurityIdAccessStoreId:"SecurityIdAccessStoreId",SecurityIdAccessToAccountSettingsId:"SecurityIdAccessToAccountSettingsId",SecurityIdAccessToCompanySupportTicketsId:"SecurityIdAccessToCompanySupportTicketsId",SecurityIdAccessToMyGeotabId:"SecurityIdAccessToMyGeotabId",SecurityIdAccessToSubmitReturnsId:"SecurityIdAccessToSubmitReturnsId",SecurityIdAccessVehicleEligibilityId:"SecurityIdAccessVehicleEligibilityId",SecurityIdAccidentDebugReportId:"SecurityIdAccidentDebugReportId",SecurityIdAccidentWizardId:"SecurityIdAccidentWizardId",SecurityIdActivateVitalityDriverRewardsAddInId:"SecurityIdActivateVitalityDriverRewardsAddInId",SecurityIdActiveTrackingClearanceId:"SecurityIdActiveTrackingClearanceId",SecurityIdAdministerDeviceModeId:"SecurityIdAdministerDeviceModeId",SecurityIdAdministerFuelTransactionSettingsId:"SecurityIdAdministerFuelTransactionSettingsId",SecurityIdAdministerInvestigationsId:"SecurityIdAdministerInvestigationsId",SecurityIdAdministerLiveMapId:"SecurityIdAdministerLiveMapId",SecurityIdAdministerPropertyId:"SecurityIdAdministerPropertyId",SecurityIdAdministerPropertySetId:"SecurityIdAdministerPropertySetId",SecurityIdAdministerPublicWorksServiceRoutesId:"SecurityIdAdministerPublicWorksServiceRoutesId",SecurityIdAdministerWiFiHotspotSettingsId:"SecurityIdAdministerWiFiHotspotSettingsId",SecurityIdAssetSchedulerEditId:"SecurityIdAssetSchedulerEditId",SecurityIdAuditLogId:"SecurityIdAuditLogId",SecurityIdAuthorizationCodePageAccessId:"SecurityIdAuthorizationCodePageAccessId",SecurityIdAuxiliaryClearanceId:"SecurityIdAuxiliaryClearanceId",SecurityIdBEVRangeCapabilityReportId:"SecurityIdBEVRangeCapabilityReportId",SecurityIdBigQueryUploadRequestId:"SecurityIdBigQueryUploadRequestId",SecurityIdCertifyAssetInspectionId:"SecurityIdCertifyAssetInspectionId",SecurityIdCertifyDVIRId:"SecurityIdCertifyDVIRId",SecurityIdChangePasswordId:"SecurityIdChangePasswordId",SecurityIdCongregationReportId:"SecurityIdCongregationReportId",SecurityIdContinuousConnectClearanceId:"SecurityIdContinuousConnectClearanceId",SecurityIdCreateAndEditInvestigationsId:"SecurityIdCreateAndEditInvestigationsId",SecurityIdCreateExtractKeyId:"SecurityIdCreateExtractKeyId",SecurityIdCreateFirmwareKeyId:"SecurityIdCreateFirmwareKeyId",SecurityIdCreateKeyBackupId:"SecurityIdCreateKeyBackupId",SecurityIdCreateProgrammingKeyId:"SecurityIdCreateProgrammingKeyId",SecurityIdCreateShareableLinkId:"SecurityIdCreateShareableLinkId",SecurityIdCreateTestKe
1yId:"SecurityIdCreateTestKeyId",SecurityIdCreateWifiKeyId:"SecurityIdCreateWifiKeyId",SecurityIdCustomerVisitsReportId:"SecurityIdCustomerVisitsReportId",SecurityIdDeleteGpsTextMessageId:"SecurityIdDeleteGpsTextMessageId",SecurityIdDeleteRecordedVideoId:"SecurityIdDeleteRecordedVideoId",SecurityIdDeleteShareableLinkId:"SecurityIdDeleteShareableLinkId",SecurityIdDeviceAdminAdvancedId:"SecurityIdDeviceAdminAdvancedId",SecurityIdDeviceAdminBulkArchiveRemoveId:"SecurityIdDeviceAdminBulkArchiveRemoveId",SecurityIdDeviceAdminDeleteUnplugReplaceId:"SecurityIdDeviceAdminDeleteUnplugReplaceId",SecurityIdDeviceAdminDriverFeedbackId:"SecurityIdDeviceAdminDriverFeedbackId",SecurityIdDeviceAdminId:"SecurityIdDeviceAdminId",SecurityIdDeviceCurrentStatusClearanceId:"SecurityIdDeviceCurrentStatusClearanceId",SecurityIdDeviceInstallHistoryReportId:"SecurityIdDeviceInstallHistoryReportId",SecurityIdDeviceListId:"SecurityIdDeviceListId",SecurityIdDirectCustomerId:"SecurityIdDirectCustomerId",SecurityIdDirectSupportAdminId:"SecurityIdDirectSupportAdminId",SecurityIdDismissFaultsId:"SecurityIdDismissFaultsId",SecurityIdDisplayHistoricalTripMapId:"SecurityIdDisplayHistoricalTripMapId",SecurityIdDisplayMapId:"SecurityIdDisplayMapId",SecurityIdDisplayMeasurementProfileDetailInsertId:"SecurityIdDisplayMeasurementProfileDetailInsertId",SecurityIdDisplayMeasurementProfileDetailSetId:"SecurityIdDisplayMeasurementProfileDetailSetId",SecurityIdDisplayMeasurementProfileInsertId:"SecurityIdDisplayMeasurementProfileInsertId",SecurityIdDisplayMeasurementProfileRemoveId:"SecurityIdDisplayMeasurementProfileRemoveId",SecurityIdDisplayMeasurementProfileSetId:"SecurityIdDisplayMeasurementProfileSetId",SecurityIdDriverBlacklistId:"SecurityIdDriverBlacklistId",SecurityIdDriverIdentificationClearanceId:"SecurityIdDriverIdentificationClearanceId",SecurityIdEVBatteryHealthReportId:"SecurityIdEVBatteryHealthReportId",SecurityIdEditConnectionDataId:"SecurityIdEditConnectionDataId",SecurityIdEditDeviceDataPrivacyChangeDataId:"SecurityIdEditDeviceDataPrivacyChangeDataId",SecurityIdEditDeviceOdometerId:"SecurityIdEditDeviceOdometerId",SecurityIdEditDeviceShareId:"SecurityIdEditDeviceShareId",SecurityIdEditDistributionListId:"SecurityIdEditDistributionListId",SecurityIdEditExceptionId:"SecurityIdEditExceptionId",SecurityIdEditNotificationEmailTemplateId:"SecurityIdEditNotificationEmailTemplateId",SecurityIdEditRoadSpeedsId:"SecurityIdEditRoadSpeedsId",SecurityIdEditStockRulesId:"SecurityIdEditStockRulesId",SecurityIdEditTripTypeChangeDataId:"SecurityIdEditTripTypeChangeDataId",SecurityIdEditUserDeviceLinkId:"SecurityIdEditUserDeviceLinkId",SecurityIdEmailLogsToCustomRecipientsId:"SecurityIdEmailLogsToCustomRecipientsId",SecurityIdEngineDiagnosticListId:"SecurityIdEngineDiagnosticListId",SecurityIdEngineFailureModeListId:"SecurityIdEngineFailureModeListId",SecurityIdEngineFlashCodelistId:"SecurityIdEngineFlashCodelistId",SecurityIdEngineManagementReportId:"SecurityIdEngineManagementReportId",SecurityIdEngineStatusDataClearanceId:"SecurityIdEngineStatusDataClearanceId",SecurityIdEngineStatusDataGraphId:"SecurityIdEngineStatusDataGraphId",SecurityIdEngineTypeListId:"SecurityIdEngineTypeListId",SecurityIdEngineUnitOfMeasureListId:"SecurityIdEngineUnitOfMeasureListId",SecurityIdEventOccurrenceListId:"SecurityIdEventOccurrenceListId",SecurityIdEverythingId:"SecurityIdEverythingId",SecurityIdExceptionEventReviewParticipantId:"SecurityIdExceptionEventReviewParticipantId",SecurityIdExceptionEventReviewerId:"SecurityIdExceptionEventReviewerId",SecurityIdExceptionsListId:"SecurityIdExceptionsListId",SecurityIdExceptionsReportId:"SecurityIdExceptionsReportId",SecurityIdExportFromOtherDatabaseId:"SecurityIdExportFromOtherDatabaseId",SecurityIdFeaturePreviewClearanceId:"SecurityIdFeaturePreviewClearanceId",SecurityIdFuelTaxId:"SecurityIdFuelTaxId",SecurityIdFuelTransactionAdminId:"SecurityIdFuelTransactionAdminId",SecurityIdFuelTransactionListId:"SecurityIdFuelTransactionListId",SecurityIdFuelUsageReportId:"SecurityIdFuelUsageReportId",SecurityIdGoTalkClearanceId:"SecurityIdGoTalkClearanceId",SecurityIdHosLogEditPcYmId:"SecurityIdHosLogEditPcYmId",SecurityIdIgnoreHOSLogsId:"SecurityIdIgnoreHOSLogsId",SecurityIdImpersonateGpsTextMessageId:"SecurityIdImpersonateGpsTextMessageId",SecurityIdImportFromOtherDatabaseId:"SecurityIdImportFromOtherDatabaseId",SecurityIdImportZonesId:"SecurityIdImportZonesId",SecurityIdInspectAssetInspectionId:"SecurityIdInspectAssetInspectionId",SecurityIdInspectDVIRId:"SecurityIdInspectDVIRId",SecurityIdInstallRecordId:"SecurityIdInstallRecordId",SecurityIdKeyInformationId:"SecurityIdKeyInformationId",SecurityIdLaunchAddInId:"SecurityIdLaunchAddInId",SecurityIdMaintenanceOverviewEditId:"SecurityIdMaintenanceOverviewEditId",SecurityIdMaintenanceRequestsEditId:"SecurityIdMaintenanceRequestsEditId",SecurityIdMaintenanceRequestsFullAccessId:"SecurityIdMaintenanceRequestsFullAccessId",SecurityIdMaintenanceRequestsViewId:"SecurityIdMaintenanceRequestsViewId",SecurityIdMaintenanceSc
1hedulesEditId:"SecurityIdMaintenanceSchedulesEditId",SecurityIdMaintenanceSchedulesFullAccessId:"SecurityIdMaintenanceSchedulesFullAccessId",SecurityIdMaintenanceSchedulesViewId:"SecurityIdMaintenanceSchedulesViewId",SecurityIdMaintenanceWorkOrdersEditId:"SecurityIdMaintenanceWorkOrdersEditId",SecurityIdMaintenanceWorkOrdersFullAccessId:"SecurityIdMaintenanceWorkOrdersFullAccessId",SecurityIdMaintenanceWorkOrdersViewId:"SecurityIdMaintenanceWorkOrdersViewId",SecurityIdManageAddInDataId:"SecurityIdManageAddInDataId",SecurityIdManageAddinsClearanceId:"SecurityIdManageAddinsClearanceId",SecurityIdManageAssetInspectionLogsId:"SecurityIdManageAssetInspectionLogsId",SecurityIdManageAssetInspectionTemplatesId:"SecurityIdManageAssetInspectionTemplatesId",SecurityIdManageAssetLinksId:"SecurityIdManageAssetLinksId",SecurityIdManageAssetUtilizationCriteriaId:"SecurityIdManageAssetUtilizationCriteriaId",SecurityIdManageBinaryDataFilesId:"SecurityIdManageBinaryDataFilesId",SecurityIdManageCertificatesId:"SecurityIdManageCertificatesId",SecurityIdManageCoachingSessionId:"SecurityIdManageCoachingSessionId",SecurityIdManageDVIRLogsId:"SecurityIdManageDVIRLogsId",SecurityIdManageDriverActivityGroupId:"SecurityIdManageDriverActivityGroupId",SecurityIdManageHOSLogsId:"SecurityIdManageHOSLogsId",SecurityIdManageHosRuleSetId:"SecurityIdManageHosRuleSetId",SecurityIdManageMediaId:"SecurityIdManageMediaId",SecurityIdManageReportTemplatesId:"SecurityIdManageReportTemplatesId",SecurityIdManageSeparationAlertsId:"SecurityIdManageSeparationAlertsId",SecurityIdManageShipmentsId:"SecurityIdManageShipmentsId",SecurityIdManageSpreaderConfigurationsId:"SecurityIdManageSpreaderConfigurationsId",SecurityIdManageTachographCompanyCardsId:"SecurityIdManageTachographCompanyCardsId",SecurityIdManageTachographInspectionId:"SecurityIdManageTachographInspectionId",SecurityIdManageTrailersId:"SecurityIdManageTrailersId",SecurityIdManageTripAnnotationId:"SecurityIdManageTripAnnotationId",SecurityIdManageTripClassificationLogsId:"SecurityIdManageTripClassificationLogsId",SecurityIdManageUserDisplayProfilesId:"SecurityIdManageUserDisplayProfilesId",SecurityIdManageUsersVitalityRewardsAddInId:"SecurityIdManageUsersVitalityRewardsAddInId",SecurityIdMaterialManagementReportId:"SecurityIdMaterialManagementReportId",SecurityIdMileageSummaryDashboardId:"SecurityIdMileageSummaryDashboardId",SecurityIdModifyGroupFilterId:"SecurityIdModifyGroupFilterId",SecurityIdNewsNotificationsClearanceId:"SecurityIdNewsNotificationsClearanceId",SecurityIdNodesListId:"SecurityIdNodesListId",SecurityIdNotificationListId:"SecurityIdNotificationListId",SecurityIdOrganizeViewsId:"SecurityIdOrganizeViewsId",SecurityIdProductGuideClearanceId:"SecurityIdProductGuideClearanceId",SecurityIdPurchaseMarketplacePaidItemsId:"SecurityIdPurchaseMarketplacePaidItemsId",SecurityIdPurgeDataId:"SecurityIdPurgeDataId",SecurityIdRealTimeRangeId:"SecurityIdRealTimeRangeId",SecurityIdReminderReportId:"SecurityIdReminderReportId",SecurityIdReminderRuleListId:"SecurityIdReminderRuleListId",SecurityIdRepairAssetInspectionId:"SecurityIdRepairAssetInspectionId",SecurityIdRepairDVIRId:"SecurityIdRepairDVIRId",SecurityIdReprocessDataId:"SecurityIdReprocessDataId",SecurityIdReprocessRouteBasedMaterialManagementRulesId:"SecurityIdReprocessRouteBasedMaterialManagementRulesId",SecurityIdRequestDeviceLocationId:"SecurityIdRequestDeviceLocationId",SecurityIdResellerControlClearanceId:"SecurityIdResellerControlClearanceId",SecurityIdResetPasswordId:"SecurityIdResetPasswordId",SecurityIdRestoreKeyBackupId:"SecurityIdRestoreKeyBackupId",SecurityIdReviewAssetInspectionLogsId:"SecurityIdReviewAssetInspectionLogsId",SecurityIdRiskAnalyticsViewAndDownloadAssetAndDriverReportsId:"SecurityIdRiskAnalyticsViewAndDownloadAssetAndDriverReportsId",SecurityIdRiskManagementReportId:"SecurityIdRiskManagementReportId",SecurityIdRouteComparisonReportId:"SecurityIdRouteComparisonReportId",SecurityIdRouteCompletionReportId:"SecurityIdRouteCompletionReportId",SecurityIdRouteListId:"SecurityIdRouteListId",SecurityIdRouteSummaryReportId:"SecurityIdRouteSummaryReportId",SecurityIdSecurityClearanceListId:"SecurityIdSecurityClearanceListId",SecurityIdSendColdChainCommandId:"SecurityIdSendColdChainCommandId",SecurityIdSendExternalRelayInstructionId:"SecurityIdSendExternalRelayInstructionId",SecurityIdSendGpsTextMessageId:"SecurityIdSendGpsTextMessageId",SecurityIdSendPushNotificationId:"SecurityIdSendPushNotificationId",SecurityIdServicePlansClearanceId:"SecurityIdServicePlansClearanceId",SecurityIdServicesSettingsId:"SecurityIdServicesSettingsId",SecurityIdSkipReminderId:"SecurityIdSkipReminderId",SecurityIdSnoozeReminderId:"SecurityIdSnoozeReminderId",SecurityIdSpeedProfileReportId:"SecurityIdSpeedProfileReportId",SecurityIdStartFullVersionId:"SecurityIdStartFullVersionId",SecurityIdStatusGroupsClearanceId:"SecurityIdStatusGroupsClearanceId",SecurityIdStreetSweeperReportId:"SecurityIdStreetSweeperReportId",SecurityIdSystemSettingsId:"SecurityIdSystemSettingsId",SecurityIdTachographDownloadAndUploadFilesId:"SecurityIdTachographDownloadAndUploadFilesId",SecurityIdTimeCardReportId:"SecurityIdTimeCardReportId",SecurityIdTimeToChargeCompleteId:"SecurityIdTimeToChargeCompleteId",SecurityIdTrackHistoricDataId:"SecurityIdTrackHistoricDataId",SecurityIdTripsActivityReportId:"SecurityIdTripsActivityReportId",SecurityIdTwoWayAudioId:"SecurityIdTwoWayAudioId",SecurityIdUnassignedRouteReportId:"SecurityIdUnassignedRouteReportId",SecurityIdUnblurRecordedVideoId:"SecurityIdUnblurRecordedVideoId",SecurityIdUnknownId:"SecurityIdUnknownId",SecurityIdUserAdminId:"SecurityIdUserAdminId",SecurityIdUserDisplayProfileDetailRemoveId:"SecurityIdUserDisplayProfileDetailRemoveId",SecurityIdUserDisplayProfileInsertId:"SecurityIdUserDisplayProfileInsertId",SecurityIdUserDisplayProfileRemoveId:"SecurityIdUserDisplayProfileRemoveId",SecurityIdUserDisplayProfileSetId:"SecurityIdUserDisplayProfileSetId",SecurityIdUserListId:"SecurityIdUserListId",SecurityIdUserSettingsId:"SecurityIdUserSettingsId",SecurityIdViewAceAIId:"SecurityIdViewAceAIId",SecurityIdViewAddInDataId:"SecurityIdViewAddInDataId",SecurityIdViewAdvancedHelpId:"SecurityIdViewAdvancedHelpId",SecurityIdViewAdvancedRouteId:"SecurityIdViewAdvancedRouteId",SecurityIdViewAnalyticsLabId:"SecurityIdViewAnalyticsLabId",SecurityIdViewAssetInspectionLogsId:"SecurityIdViewAssetInspectionLogsId",SecurityIdViewAssetInspectionTemplatesId:"SecurityIdViewAssetInspectionTemplatesId",SecurityIdViewAssetLifecycleReallocationId:"SecurityIdViewAssetLifecycleReallocationId",SecurityIdViewAssetLifecycleRetirementId:"SecurityIdViewAssetLifecycleRetirementId",SecurityIdViewAssetLinksId:"SecurityIdViewAssetLinksId",SecurityIdViewAssetUtilizationId:"SecurityIdViewAssetUtilizationId",SecurityIdViewBinaryDataFilesId:"SecurityIdViewBinaryDataFilesId",SecurityIdViewBinaryDataId:"SecurityIdViewBinaryDataId",SecurityIdViewBusinessIntelligenceId:"SecurityIdViewBusinessIntelligenceId",SecurityIdViewCertificatesId:"SecurityIdViewCertificatesId",SecurityIdViewCoachingSessionId:"SecurityIdViewCoachingSessionId",SecurityIdViewConnectionDataId:"SecurityIdViewConnectionDataId",SecurityIdViewControllerId:"SecurityIdViewControllerId",SecurityIdViewCustomDataId:"SecurityIdViewCustomDataId",SecurityIdViewDVIRLogsI
1d:"SecurityIdViewDVIRLogsId",SecurityIdViewDeviceDataPrivacyChangeDataId:"SecurityIdViewDeviceDataPrivacyChangeDataId",SecurityIdViewDeviceShareId:"SecurityIdViewDeviceShareId",SecurityIdViewDiagnosticId:"SecurityIdViewDiagnosticId",SecurityIdViewDriverAnalyticsId:"SecurityIdViewDriverAnalyticsId",SecurityIdViewDriverClockInOutId:"SecurityIdViewDriverClockInOutId",SecurityIdViewDriverSafetyId:"SecurityIdViewDriverSafetyId",SecurityIdViewEVChargeMonitoringId:"SecurityIdViewEVChargeMonitoringId",SecurityIdViewEVPerformanceDataId:"SecurityIdViewEVPerformanceDataId",SecurityIdViewEngineDataProfileId:"SecurityIdViewEngineDataProfileId",SecurityIdViewExceptionEventId:"SecurityIdViewExceptionEventId",SecurityIdViewFaultDataId:"SecurityIdViewFaultDataId",SecurityIdViewFuelAndEnergyOverviewId:"SecurityIdViewFuelAndEnergyOverviewId",SecurityIdViewGpsTextMessageId:"SecurityIdViewGpsTextMessageId",SecurityIdViewGroupsId:"SecurityIdViewGroupsId",SecurityIdViewHOSLogsId:"SecurityIdViewHOSLogsId",SecurityIdViewHosRuleSetId:"SecurityIdViewHosRuleSetId",SecurityIdViewInspectionLocationId:"SecurityIdViewInspectionLocationId",SecurityIdViewInvestigationsId:"SecurityIdViewInvestigationsId",SecurityIdViewLiveMapId:"SecurityIdViewLiveMapId",SecurityIdViewLiveVideoId:"SecurityIdViewLiveVideoId",SecurityIdViewMaintenanceOverviewId:"SecurityIdViewMaintenanceOverviewId",SecurityIdViewMarketplacePaidItemsId:"SecurityIdViewMarketplacePaidItemsId",SecurityIdViewMediaId:"SecurityIdViewMediaId",SecurityIdViewNavigationId:"SecurityIdViewNavigationId",SecurityIdViewPropertyId:"SecurityIdViewPropertyId",SecurityIdViewPropertySetId:"SecurityIdViewPropertySetId",SecurityIdViewPublicWorksAdministrationId:"SecurityIdViewPublicWorksAdministrationId",SecurityIdViewRecordedVideoId:"SecurityIdViewRecordedVideoId",SecurityIdViewReportTemplateId:"SecurityIdViewReportTemplateId",SecurityIdViewRiskManagementReportOptionId:"SecurityIdViewRiskManagementReportOptionId",SecurityIdViewRouteId:"SecurityIdViewRouteId",SecurityIdViewRuleId:"SecurityIdViewRuleId",SecurityIdViewSafetyOverviewId:"SecurityIdViewSafetyOverviewId",SecurityIdViewShareableLinkId:"SecurityIdViewShareableLinkId",SecurityIdViewSharedDeviceId:"SecurityIdViewSharedDeviceId",SecurityIdViewShipmentsId:"SecurityIdViewShipmentsId",SecurityIdViewSpreaderConfigurationsId:"SecurityIdViewSpreaderConfigurationsId",SecurityIdViewStatusDataId:"SecurityIdViewStatusDataId",SecurityIdViewSustainabilityCenterId:"SecurityIdViewSustainabilityCenterId",SecurityIdViewTachographCompanyCardsId:"SecurityIdViewTachographCompanyCardsId",SecurityIdViewTachographDrivingTimeDataId:"SecurityIdViewTachographDrivingTimeDataId",SecurityIdViewTachographInfringementDataId:"SecurityIdViewTachographInfringementDataId",SecurityIdViewTachographInspectionId:"SecurityIdViewTachographInspectionId",SecurityIdViewTachographRemoteDownloadDataId:"SecurityIdViewTachographRemoteDownloadDataId",SecurityIdViewTrailersId:"SecurityIdViewTrailersId",SecurityIdViewTripAnnotationId:"SecurityIdViewTripAnnotationId",SecurityIdViewTripClassificationLogsId:"SecurityIdViewTripClassificationLogsId",SecurityIdViewTripTypeChangeDataId:"SecurityIdViewTripTypeChangeDataId",SecurityIdViewUserDeviceLinkId:"SecurityIdViewUserDeviceLinkId",SecurityIdViewVehicleAnalyticsId:"SecurityIdViewVehicleAnalyticsId",SecurityIdViewWiFiHotspotSettingsId:"SecurityIdViewWiFiHotspotSettingsId",SecurityIdWorkHolidayListId:"SecurityIdWorkHolidayListId",SecurityIdWorkTimeListId:"SecurityIdWorkTimeListId",SecurityIdZoneAdminId:"SecurityIdZoneAdminId",SecurityIdZoneListId:"SecurityIdZoneListId",SecurityIdZoneTypeListId:"SecurityIdZoneTypeListId",ShareableLinkStateInProgressId:"ShareableLinkStateInProgressId",ShareableLinkStateSucceedId:"ShareableLinkStateSucceedId",ShipmentLogBigQueryUploadRequestId:"ShipmentLogBigQueryUploadRequestId",SmsTemplateDefaultExceptionRuleId:"SmsTemplateDefaultExceptionRuleId",Source14Id:"Source14Id",SourceAIModelId:"SourceAIModelId",SourceBrpId:"SourceBrpId",SourceGeotabGoId:"SourceGeotabGoId",SourceGmcccId:"SourceGmcccId",SourceJ1708Id:"SourceJ1708Id",SourceJ1939Id:"SourceJ1939Id",SourceLegacyId:"SourceLegacyId",SourceObdId:"SourceObdId",SourceObdSaId:"SourceObdSaId",SourceProprietaryId:"SourceProprietaryId",SourceSystemId:"SourceSystemId",SourceThirdPartyId:"SourceThirdPartyId",SpeedingViolationDefaultDashboardReportScheduleId:"SpeedingViolationDefaultDashboardReportScheduleId",StandardAssetUtilizationDefaultDashboardReportScheduleId:"StandardAssetUtilizationDefaultDashboardReportScheduleId",StatusDataEntityUploadRequestId:"StatusDataEntityUploadRequestId",SustainabilityReportTagId:"SustainabilityReportTagId",SystemSettingsBigQueryUploadRequestId:"SystemSettingsBigQueryUploadRequestId",SystemUserId:"SystemUserId",TelematicsDeviceBatteryLevel:"TelematicsDeviceBatteryLevel",TextTemplateDefaultCriticalLowTirePressurePopupId:"TextTemplateDefaultCriticalLowTirePressurePopupId",TextTemplateDefaultExceptionRuleId:"TextTemplateDefaultExceptionRuleId",TextTemplateDefaultExceptionRulePopupId:"TextTemplateDefaultExceptionRulePopupId",TextTemplateDefaultNewsPopupId:"TextTemplateDefaultNewsPopupId",ThermographStatusId:"ThermographStatusId",ThermographTemperature1Id:"ThermographTemperature1Id",ThermographTemperature2Id:"ThermographTemperature2Id",ThermographTemperature3Id:"ThermographTemperature3Id",ThermographTemperature4Id:"ThermographTemperature4Id",ThermographTemperature5Id:"ThermographTemperature5Id",ThermographTemperature6Id:"ThermographTemperature6Id",TrailerAttachmentBigQueryUploadRequestId:"TrailerAttachmentBigQueryUploadRequestId",TripLegacyBigQueryUploadRequestId:"TripLegacyBigQueryUploadRequestId",TripSoftDeleteDataEntityUploadRequestId:"TripSoftDeleteDataEntityUploadRequestId",UnitOfMeasureAmpsId:"UnitOfMeasureAmpsId",UnitOfMeasureAmpsPerHourId:"UnitOfMeasureAmpsPerHourId",UnitOfMeasureBytesId:"UnitOfMeasureBytesId",UnitOfMeasureCubicMetersId:"UnitOfMeasureCubicMetersId",UnitOfMeasureCubicMetersPerSecondId:"UnitOfMeasureCubicMetersPerSecondId",UnitOfMeasureDecibelId:"UnitOfMeasureDecibelId",UnitOfMeasureDecibelMilliwattId:"UnitOfMeasureDecibelMilliwattId",UnitOfMeasureDegreesCelsiusId:"UnitOfMeasureDegreesCelsiusId",UnitOfMeasureGramsId:"UnitOfMeasureGramsId",UnitOfMeasureGramsPerSecondId:"UnitOfMeasureGramsPerSecondId",UnitOfMeasureGramsPerSquareMeterId:"UnitOfMeasureGramsPerSquareMeterId",UnitOfMeasureHertzId:"UnitOfMeasureHertzId",UnitOfMeasureKiloWattHoursId:"UnitOfMeasureKiloWattHoursId",UnitOfMeasureKilogramsPerKilometerId:"UnitOfMeasureKilogramsPerKilometerId",UnitOfMeasureKilometersPerHourId:"UnitOfMeasureKilometersPerHourId",UnitOfMeasureKilometersPerKiloWattHourId:"UnitOfMeasureKilometersPerKiloWattHourId",UnitOfMeasureKilometersPerKilogramId:"UnitOfMeasureKilometersPerKilogramId",UnitOfMeasureKilometersPerLiterId:"UnitOfMeasureKilometersPerLiterId",UnitOfMeasureLitersId:"UnitOfMeasureLitersId",UnitOfMeasureLitersPerLaneKilometerId:"UnitOfMeasureLitersPerLaneKilometerId",UnitOfMeasureLitersPerTonneId:"UnitOfMeasureLitersPerTonneId",UnitOfMeasureMetersId:"UnitOfMeasureMetersId",UnitOfMeasureMetersPerSecondSquaredId:"UnitOfMeasureMetersPerSecondSquaredId",UnitOfMeasureMicrogramsPerCubicMeterId:"UnitOfMeasureMicrogramsPerCubicMeterId",UnitOfMeasureNewtonMetersId:"UnitOfMeasureNewtonMetersId",UnitOfMeasureNewtonsId:"UnitOfMeasureNewtonsId",UnitOfMeasureNoneId:"UnitOfMeasureNoneId",UnitOfMeasureOhmsId:"UnitOfMeasureOhmsId",UnitOfMeasureOhmsPerSecondId:"UnitOfMeasureOhmsPerSecondId",UnitOfMeasurePartsPerMillionId:"UnitOfMeasurePartsPerMillionId",UnitOfMeasurePascalsId:"UnitOfMeasurePascalsId",UnitOfMeasurePercentageId:"UnitOfMeasurePercentageId",UnitOfMeasurePulsesPerMeterId:"UnitOfMeasurePulsesPerMeterId",UnitOfMeasureRadiansId:"UnitOfMeasureRadiansId",UnitOfMeasureRevolutionsId:"UnitOfMeasureRevolutionsId",UnitOfMeasureRevolutionsPerMinuteId:"UnitOfMeasureRevolutionsPerMinuteId",UnitOfMeasureSecondsId:"UnitOfMeasureSecondsId",UnitOfMeasureVoltsId:"UnitOfMeasureVoltsId",UnitOfMeasureWattsId:"UnitOfMeasureWattsId",UnknownDriverId:"UnknownDriverId",UnknownRestrictedDataModeId:"UnknownRestrictedDataModeId",UnrepairedDefectDefaultDashboardReportScheduleId:"UnrepairedDefectDefaultDashboardReportScheduleId",UnrestrictedDataModeId:"UnrestrictedDataModeId",UserBigQueryUploadRequestId:"UserBigQueryUploadRequestId",UserHosRuleSetBigQueryUploadRequestId:"UserHosRuleSetBigQueryUploadRequestId",UserHosRuleSetBipBigQueryUploadRequestId:"UserHosRuleSetBipBigQueryUploadRequestId",UserNotificationBinaryFileStartId:"UserNotificationBinaryFileStartId",UserReportTemplateId:"UserReportTemplateId",UserRestrictedDataModeId:"UserRestrictedDataModeId",UserWorkTimeStartId:"UserWorkTimeStartId",WatchdogDefaultDashboardReportScheduleId:"WatchdogDefaultDashboardReportScheduleId",WorkTimeAllHoursId:"WorkTimeAllHoursId",WorkTimeEarlyLeaveHoursId:"WorkTimeEarlyLeaveHoursId",WorkTimeLateArrivalHoursId:"WorkTimeLateArrivalHoursId",WorkTimeLunchHoursId:"WorkTimeLunchHoursId",WorkTimeStandardHoursId:"WorkTimeStandardHoursId",ZoneBigQueryUploadRequestId:"ZoneBigQueryUploadRequestId",ZoneTypeCustomerId:"ZoneTypeCustomerId",ZoneTypeHomeId:"ZoneTypeHomeId",ZoneTypeInHouseServiceCenterId:"ZoneTypeInHouseServiceCenterId",ZoneTypeOfficeId:"ZoneTypeOfficeId",ZoneTypeVendorServiceCenterId:"ZoneTypeVendorServiceCenterId"},t.QF={Video:"Video",Snapshot:"Snapshot"},t.ZK={None:"None",AudioAlarmFile:"AudioAlarmFile",EmailTemplate:"EmailTemplate",WebRequestTemplate:"WebRequestTemplate",TextTemplate:"TextTemplate",SmsTemplate:"SmsTemplate",PushNotificationTemplate:"PushNotificationTemplate",WebRequestTemplate2:"WebRequestTemplate2"},t.dp={Data:"Data",Feature:"Feature",Application:"Application"},t._Y={LogOnly:"LogOnly",Email:"Email",LogPopup:"LogPopup",LogUrgentPopup:"LogUrgentPopup",WebService:"WebService",TextMessage:"TextMessage",ChangeStatus:"ChangeStatus",BeepThreeTimesRapidly:"BeepThreeTimesRapidly",BeepThreeTimes:"BeepThreeTimes",BeepTenTimesRapidly:"BeepTenTimesRapidly",LogPopupInfo:"LogPopupInfo",WebRequest:"WebRequest",AssignToGroup:"AssignToGroup",TextToSpeech:"TextToSpeech",LogNewsPopup:"LogNewsPopup",BeepThreeTimesRapidlyAllowDelay:"BeepThreeTimesRapidlyAllowDelay",BeepThreeTimesAllowDelay:"BeepThreeTimesAllowDelay",BeepTenTimesRapidlyAllowDelay:"BeepTenTimesRapidlyAllowDelay",TextToSpeechAllowDelay:"TextToSpeechAllowDelay",TripTypeChange:"TripTypeChange",EmailToGroup:"EmailToGroup",HosEnabled:"HosEnabled",HosDisabled:"HosDisabled",RestrictedDataMode:"RestrictedDataMode",ExpireShareableLink:"ExpireShareableLink",DeviceShareFailure:"DeviceShareFailure",MediaServiceTrigger:"MediaServiceTrigger",SmsToUser:"SmsToUser",EmailToHierarchy:"EmailToHierarchy",PushNotification:"PushNotification",CreateWorkRequest:"CreateWorkRequest",WhatsAppToUser:"WhatsAppToUser",CameraSettingsChange:"CameraSettingsChange"},t.gg={NotRepaired:"NotRepaired",Repaired:"Repaired",NotNecessary:"NotNecessary",RepairDisputed:"RepairDisputed"},t.fF={ScorecardPreference:"ScorecardPreference"},t.bA={Unknown:"Unknown",UserView:"UserView",UserRemove:"UserRemove",UserSet:"UserSet",UserInsert:"UserInsert",DeviceView:"DeviceView",DeviceRemove:"DeviceRemove",DeviceInsert:"DeviceInsert",DeviceSet:"DeviceSet",ZoneView:"ZoneView",ZoneRemove:"ZoneRemove",ZoneInsert:"ZoneInsert",ZoneSet:"ZoneSet",ZoneTypeView:"ZoneTypeView",ZoneTypeRemove:"ZoneTypeRemove",ZoneTypeInsert:"ZoneTypeInsert",ZoneTypeSet:"ZoneTypeSet",RouteView:"RouteView",RouteRemove:"RouteRemove",RouteInsert:"RouteInsert",RouteSet
1:"RouteSet",DatabaseUpgrade:"DatabaseUpgrade",DatabaseMigrate:"DatabaseMigrate",ExportDatabase:"ExportDatabase",ImportDatabase:"ImportDatabase",ServerUpgrade:"ServerUpgrade",SysSetCompanyGUID:"SysSetCompanyGUID",SysSettingsSetAll:"SysSettingsSetAll",EventRemove:"EventRemove",EventInsert:"EventInsert",EventSet:"EventSet",EventRuleRemove:"EventRuleRemove",EventRuleInsert:"EventRuleInsert",EventRuleSet:"EventRuleSet",EventRuleView:"EventRuleView",EventTypeRemove:"EventTypeRemove",EventTypeInsert:"EventTypeInsert",EventTypeSet:"EventTypeSet",ExceptionRuleView:"ExceptionRuleView",ExceptionRuleRemove:"ExceptionRuleRemove",ExceptionRuleInsert:"ExceptionRuleInsert",ExceptionRuleSet:"ExceptionRuleSet",ExceptionRuleSuspend:"ExceptionRuleSuspend",DistributionListView:"DistributionListView",DistributionListRemove:"DistributionListRemove",DistributionListInsert:"DistributionListInsert",DistributionListSet:"DistributionListSet",UomRemove:"UomRemove",UomInsert:"UomInsert",UomSet:"UomSet",DiagnosticView:"DiagnosticView",DiagnosticRemove:"DiagnosticRemove",DiagnosticInsert:"DiagnosticInsert",DiagnosticSet:"DiagnosticSet",MappedDiagnosticRemove:"MappedDiagnosticRemove",MappedDiagnosticInsert:"MappedDiagnosticInsert",MappedDiagnosticSet:"MappedDiagnosticSet",DiagnosticMappingRemove:"DiagnosticMappingRemove",DiagnosticMappingInsert:"DiagnosticMappingInsert",DiagnosticMappingSet:"DiagnosticMappingSet",FailureModeView:"FailureModeView",FailureModeRemove:"FailureModeRemove",FailureModeInsert:"FailureModeInsert",FailureModeSet:"FailureModeSet",WorkTimesView:"WorkTimesView",WorkTimesRemove:"WorkTimesRemove",WorkTimesInsert:"WorkTimesInsert",WorkTimesSet:"WorkTimesSet",WorkHolidaysView:"WorkHolidaysView",WorkHolidaysRemove:"WorkHolidaysRemove",WorkHolidaysInsert:"WorkHolidaysInsert",WorkHolidaysSet:"WorkHolidaysSet",EngineTypeView:"EngineTypeView",EngineTypeRemove:"EngineTypeRemove",EngineTypeInsert:"EngineTypeInsert",EngineTypeSet:"EngineTypeSet",FlashCodeRemove:"FlashCodeRemove",FlashCodeInsert:"FlashCodeInsert",FlashCodeSet:"FlashCodeSet",HistoricDeviceRemove:"HistoricDeviceRemove",HistoricDeviceInsert:"HistoricDeviceInsert",HistoricDeviceSet:"HistoricDeviceSet",HistoricDeviceMakeHistoric:"HistoricDeviceMakeHistoric",HistoricDeviceUnMakeHistoric:"HistoricDeviceUnMakeHistoric",HosLogRemove:"HosLogRemove",HosLogAdd:"HosLogAdd",HosLogEdit:"HosLogEdit",DvirLogAdd:"DvirLogAdd",DvirLogSet:"DvirLogSet",DvirLogRemove:"DvirLogRemove",DvirReprocessRequest:"DvirReprocessRequest",ProcessManualUpdate:"ProcessManualUpdate",ReportAuditLog:"ReportAuditLog",ReportSpeedProfile:"ReportSpeedProfile",ReportCongregation:"ReportCongregation",ReportZoneVisitsDetail:"ReportZoneVisitsDetail",ReportZoneVisitsSummary:"ReportZoneVisitsSummary",ReportDVIRLog:"ReportDVIRLog",ReportDebug:"ReportDebug",ReportDeviceInstallHistory:"ReportDeviceInstallHistory",ReportDevice:"ReportDevice",ReportDiagnosticList:"ReportDiagnosticList",ReportEngineFault:"ReportEngineFault",ReportEngineStatus:"ReportEngineStatus",ReportEngineSummary:"ReportEngineSummary",ReportEventHistory:"ReportEventHistory",ReportEventRuleDevice:"ReportEventRuleDevice",ReportExceptionsDetail:"ReportExceptionsDetail",ReportExceptionsSummary:"ReportExceptionsSummary",ReportFillUps:"ReportFillUps",ReportFuelTax:"ReportFuelTax",ReportEngineStatusStatistics:"ReportEngineStatusStatistics",ReportGroupsList:"ReportGroupsList",ReportHosLogs:"ReportHosLogs",ReportHosViolation:"ReportHosViolation",ReportNotification:"ReportNotification",ReportReminders:"ReportReminders",ReportRiskManagement:"ReportRiskManagement",ReportRouteComparisonDetail:"ReportRouteComparisonDetail",ReportRouteDirection:"ReportRouteDirection",ReportRouteSummary:"ReportRouteSummary",ReportTextMessage:"ReportTextMessage",ReportTimeCard:"ReportTimeCard",ReportTripsDetail:"ReportTripsDetail",ReportTripsSummary:"ReportTripsSummary",ReportUnassignedRoute:"ReportUnassignedRoute",ReportUserList:"ReportUserList",ReportZoneList:"ReportZoneList",ReportEVBatteryHealth:"ReportEVBatteryHealth",ReportAssetMonitoring:"ReportAssetMonitoring",ShowMap:"ShowMap",Purge:"Purge",ExcelReportView:"ExcelReportView",ExcelReportRemove:"ExcelReportRemove",ExcelReportEdit:"ExcelReportEdit",ExcelReportInsert:"ExcelReportInsert",KeyCreate:"KeyCreate",KeyBackup:"KeyBackup",KeyRestore:"KeyRestore",KeyDataDownload:"KeyDataDownload",UserLogin:"UserLogin",UserLogoff:"UserLogoff",UserLoginFailure:"UserLoginFailure",UserLockout:"UserLockout",UserUnlocked:"User
1Unlocked",RequestLocation:"RequestLocation",GpsTextMessageSend:"GpsTextMessageSend",GpsTextMessageDelete:"GpsTextMessageDelete",GpsTextMessageView:"GpsTextMessageView",NotificationView:"NotificationView",NotificationsDismiss:"NotificationsDismiss",NotificationTemplateView:"NotificationTemplateView",NotificationTemplateRemove:"NotificationTemplateRemove",NotificationTemplateSet:"NotificationTemplateSet",NotificationTemplateInsert:"NotificationTemplateInsert",NodeView:"NodeView",NodeRemove:"NodeRemove",NodeSet:"NodeSet",NodeInsert:"NodeInsert",SecurityGroupView:"SecurityGroupView",KeyInsert:"KeyInsert",TrailerView:"TrailerView",TrailerRemove:"TrailerRemove",TrailerSet:"TrailerSet",TrailerInsert:"TrailerInsert",DriverChangeRemove:"DriverChangeRemove",DriverChangeInsert:"DriverChangeInsert",CustomReportScheduleInsert:"CustomReportScheduleInsert",CustomReportScheduleSet:"CustomReportScheduleSet",CustomReportScheduleRemove:"CustomReportScheduleRemove",CustomReportSendError:"CustomReportSendError",FuelTransactionView:"FuelTransactionView",FuelTransactionRemove:"FuelTransactionRemove",FuelTransactionInsert:"FuelTransactionInsert",FuelTransactionSet:"FuelTransactionSet",PostedRoadSpeedSet:"PostedRoadSpeedSet",FillUpsGraph:"FillUpsGraph",MiscPageView:"MiscPageView",AboutView:"AboutView",DashboardView:"DashboardView",RadioDownloaderView:"RadioDownloaderView",FuelTransactionImport:"FuelTransactionImport",DriveLockUserCleared:"DriveLockUserCleared",PasswordResetRequest:"PasswordResetRequest",DefectGroupView:"DefectGroupView",CertificateInsert:"CertificateInsert",CertificateRemove:"CertificateRemove",CertificateSet:"CertificateSet",ReportHosAvailability:"ReportHosAvailability",TripTypeChangeInsert:"TripTypeChangeInsert",TripTypeChangeRemove:"TripTypeChangeRemove",ShipmentLogInsert:"ShipmentLogInsert",ShipmentLogSet:"ShipmentLogSet",ShipmentLogRemove:"ShipmentLogRemove",TripClassificationLogInsert:"TripClassificationLogInsert",TripClassificationLogSet:"TripClassificationLogSet",TripClassificationLogRemove:"TripClassificationLogRemove",TrailerAttachmentInsert:"TrailerAttachmentInsert",TrailerAttachmentSet:"TrailerAttachmentSet",TrailerAttachmentRemove:"TrailerAttachmentRemove",SupportTicketInsert:"SupportTicketInsert",TrainingTicketInsert:"TrainingTicketInsert",SupportTicketSet:"SupportTicketSet",TrainingTicketSet:"TrainingTicketSet",EmailSent:"EmailSent",SkipHosVerify:"SkipHosVerify",SkipHosClaimUnassigned:"SkipHosClaimUnassigned",SkipDvirInspect:"SkipDvirInspect",ELDDataTransfer:"ELDDataTransfer",CreditsView:"CreditsView",ReportChargeEvent:"ReportChargeEvent",HardwarePurchase:"HardwarePurchase",MediaFileView:"MediaFileView",MediaFileRemove:"MediaFileRemove",MediaFileInsert:"MediaFileInsert",MediaFileSet:"MediaFileSet",MediaFileUpload:"MediaFileUpload",WiFiView:"WiFiView",WiFiRemove:"WiFiRemove",WiFiSet:"WiFiSet",WiFiInsert:"WiFiInsert",UserSupportInsert:"UserSupportInsert",UserSupportRemove:"UserSupportRemove",MaterialManagement:"MaterialManagement",StreetSweeper:"StreetSweeper",OverTheAirUpdate:"OverTheAirUpdate",DeviceShareViewed:"DeviceShareViewed",DeviceShareInsert:"DeviceShareInsert",DeviceShareSet:"DeviceShareSet",DeviceShareRemove:"DeviceShareRemove",RouteCompletion:"RouteCompletion",LiveCompletionConfigSet:"LiveCompletionConfigSet",ReprocessRequestInsert:"ReprocessRequestInsert",ReprocessRequestSet:"ReprocessRequestSet",ReprocessRequestRemove:"ReprocessRequestRemove",DeviceReprocessRequestInsert:"DeviceReprocessRequestInsert",DeviceReprocessRequestRemove:"DeviceReprocessRequestRemove",DeviceReprocessRequestSet:"DeviceReprocessRequestSet",DeleteDatabase:"DeleteDatabase",UserHosRuleSetInsert:"UserHosRuleSetInsert",UserHosRuleSetRemove:"UserHosRuleSetRemove",UserHosRuleSetSet:"UserHosRuleSetSet",DeviceDataPrivacyChangeInsert:"DeviceDataPrivacyChangeInsert",DeviceDataPrivacyChangeSet:"DeviceDataPrivacyChangeSet",DeviceDataPrivacyChangeRemove:"DeviceDataPrivacyChangeRemove",StatusDataInsert:"StatusDataInsert",StatusDataSet:"StatusDataSet",UserDisplayProfileInsert:"UserDisplayProfileInsert",UserDisplayProfileRemove:"UserDisplayProfileRemove",UserDisplayProfileSet:"UserDisplayProfileSet",DisplayMeasurementProfileInsert:"DisplayMeasurementProfileInsert",DisplayMeasurementProfileRemove:"DisplayMeasurementProfileRemove",DisplayMeasurementProfileSet:"DisplayMeasurementProfileSet",DisplayMeasurementProfileDetailInsert:"DisplayMeasurementProfileDetailInsert",DisplayMeasurementProfileDetailRemove:"DisplayMeasurementProfileDetailRemove",DisplayMeasurementProfileDetailSet:"DisplayMeasurementProfileDetailSet",TripAnnotationInsert:"TripAnnotationInsert",TripAnnotationSet:"TripAnnotationSet",TripAnnotationRemove:"TripAnnotationRemove",GroupDeviceInsert:"GroupDeviceInsert",GroupDeviceSet:"GroupDeviceSet",ExceptionEventAttachmentAdd:"ExceptionEventAttachmentAdd",ExceptionEventAttachmentRemove:"ExceptionEventAttachmentRemove",ExceptionEventCommentAdd:"ExceptionEventCommentAdd",ExceptionEventEdit:"ExceptionEventEdit",AcceptSupportService:"AcceptSupportService",BinaryDataFileView:"BinaryDataFileView",BinaryDataFileRemove:"BinaryDataFileRemove",BinaryDataFileInsert:"BinaryDataFileInsert",BinaryDataFileSet:"BinaryDataFileSet",BinaryDataFileUpload:"BinaryDataFileUpload",MaintenanceNotificationRuleRemove:"MaintenanceNotificationRuleRemove",MaintenanceNotificationRuleInsert:"MaintenanceNotificationRuleInsert",MaintenanceNotificationRuleSet:"MaintenanceNotificationRuleSet",MaintenanceNotificationRuleView:"MaintenanceNotificationRuleView",EntitySettingRemove:"EntitySettingRemove",EntitySettingInsert:"EntitySettingInsert",EntitySettingSet:"EntitySettingSet",TachographInspectionRemove:"TachographInspectionRemove",TachographInspectionInsert:"TachographInspectionInsert",TachographInspectionSet:"TachographInspectionSet",TachographActivitiesCertificateRemove:"TachographActivitiesCertificateRemove",TachographActivitiesCertificateInsert:"TachographActivitiesCertificateInsert",TachographActivitiesCertificateSet:"TachographActivitiesCertificateSet",TachographVehicleInspectionRemove:"TachographVehicleInspectionRemove",TachographVehicleInspectionInsert:"TachographVehicleInspectionInsert",TachographCompanyCardRemove:"TachographCompanyCardRemove",TachographCompanyCardInsert:"TachographCompanyCardInsert",TachographCompanyCardSet:"TachographCompanyCardSet",AssetMonitoring:"AssetMonitoring",PresetRemove:"PresetRemove",PresetInsert:"PresetInsert",PresetSet:"PresetSet",TachographDataFileInsert:"TachographDataFileInsert",TachographInfringementInsert:"TachographInfringementInsert",ReportBEVRangeCapability:"ReportBEVRangeCapability",UninstallAddIn:"UninstallAddIn",EditAddIn:"EditAddIn",InstallAddIn:"InstallAddIn",EventDeviationInsert:"EventDeviationInsert",EventSkip:"EventSkip",ReportLinkedAssets:"ReportLinkedAssets",ValidateIamUser:"ValidateIamUser",ChangeIamPassword:"ChangeIamPassword",AceView:"AceView",ColdChain:"ColdChain",EVChargeMonitoring:"EVChargeMonitoring",SustainabilityOverview:"SustainabilityOverview",FuelEnergyOverview:"FuelEnergyOverview",ReportRiskAnalytics:"ReportRiskAnalytics",RiskAnalytics:"RiskAnalytics",ReportMaintenanceWorkRequests:"ReportMaintenanceWorkRequests",ReportMaintenanceWorkJobs:"ReportMaintenanceWorkJobs",ReportMaintenanceWorkOrders:"ReportMaintenanceWorkOrders",ReportMaintenanceSc
1hedules:"ReportMaintenanceSchedules",CancelReportProcessingRequest:"CancelReportProcessingRequest",MaintenanceWorkRequestRemove:"MaintenanceWorkRequestRemove",MaintenanceWorkRequestInsert:"MaintenanceWorkRequestInsert",MaintenanceWorkRequestSet:"MaintenanceWorkRequestSet",MaintenanceWorkOrderJobRemove:"MaintenanceWorkOrderJobRemove",MaintenanceWorkOrderJobInsert:"MaintenanceWorkOrderJobInsert",MaintenanceWorkOrderJobCanceledInsert:"MaintenanceWorkOrderJobCanceledInsert",MaintenanceWorkOrderJobSet:"MaintenanceWorkOrderJobSet",MaintenanceWorkOrderJobCanceledSet:"MaintenanceWorkOrderJobCanceledSet",MaintenanceWorkOrderRemove:"MaintenanceWorkOrderRemove",MaintenanceWorkOrderInsert:"MaintenanceWorkOrderInsert",MaintenanceWorkOrderCanceledInsert:"MaintenanceWorkOrderCanceledInsert",MaintenanceWorkOrderSet:"MaintenanceWorkOrderSet",MaintenanceWorkOrderCanceledSet:"MaintenanceWorkOrderCanceledSet",ReportColdChain:"ReportColdChain",ReportLastMileMaintenance:"ReportLastMileMaintenance",ReportCleanTruckCheck:"ReportCleanTruckCheck",SmsNotificationsOptIn:"SmsNotificationsOptIn",SmsNotificationsOptOut:"SmsNotificationsOptOut",WhatsAppNotificationsOptIn:"WhatsAppNotificationsOptIn",WhatsAppNotificationsOptOut:"WhatsAppNotificationsOptOut",ServiceRuleArchive:"ServiceRuleArchive",ServiceRuleUnarchive:"ServiceRuleUnarchive",CtcCancelEnrollment:"CtcCancelEnrollment",CtcRejectArchivedDeviceEnrollment:"CtcRejectArchivedDeviceEnrollment",CtcScanAtNextIgnition:"CtcScanAtNextIgnition",CtcDownloadReport:"CtcDownloadReport",CtcComplianceGridView:"CtcComplianceGridView",CtcAssetEnrollment:"CtcAssetEnrollment",CtcBulkEnrollUpload:"CtcBulkEnrollUpload",CtcBulkEnrollment:"CtcBulkEnrollment",CtcSelectAssetsEnrollView:"CtcSelectAssetsEnrollView",CtcSelectAssetsFilterChanges:"CtcSelectAssetsFilterChanges",CtcAssetsEnrollmentAPI:"CtcAssetsEnrollmentAPI",CtcDownloadReportAPI:"CtcDownloadReportAPI",CtcDownloadMultipleReportsAPI:"CtcDownloadMultipleReportsAPI",CtcSetLoggingFrequency:"CtcSetLoggingFrequency",CtcDisenrollDeviceAPI:"CtcDisenrollDeviceAPI",CtcGetComplianceDeadlineAPI:"CtcGetComplianceDeadlineAPI",DeviceCommunicationStatusSet:"DeviceCommunicationStatusSet",OemDeviceCommandSet:"OemDeviceCommandSet",ViewLiveVideo:"ViewLiveVideo",VideoRuleChange:"VideoRuleChange",DownloadCamerasCsvReport:"DownloadCamerasCsvReport",DownloadRecordedVideo:"DownloadRecordedVideo",CamerasPageVisited:"CamerasPageVisited",VideoRecordingsPageVisited:"VideoRecordingsPageVisited",VinInfoOverride:"VinInfoOverride",ConfigurePublicWorksControllerView:"ConfigurePublicWorksControllerView",ConfigurePublicWorksController:"ConfigurePublicWorksController",MaintenanceWorkRequestDetailsView:"MaintenanceWorkRequestDetailsView",MaintenanceWorkOrderDetailsView:"MaintenanceWorkOrderDetailsView",MaintenanceWorkOrderJobDetailsView:"MaintenanceWorkOrderJobDetailsView",MaintenanceScheduleDetailsView:"MaintenanceScheduleDetailsView",MaintenanceScheduleArchive:"MaintenanceScheduleArchive",MaintenanceScheduleUnarchive:"MaintenanceScheduleUnarchive",ReportEVPerformance:"ReportEVPerformance",AddInDeviceLinkRemove:"AddInDeviceLinkRemove",AddInDeviceLinkInsert:"AddInDeviceLinkInsert",AddInDeviceLinkEdit:"AddInDeviceLinkEdit",EnableAutoEnrollmentGroup:"EnableAutoEnrollmentGroup",DisableAutoEnrollmentGroup:"DisableAutoEnrollmentGroup",QueuedEntityRemoveTaskInsert:"QueuedEntityRemoveTaskInsert",AddInAutoEnrollStatusSet:"AddInAutoEnrollStatusSet",LostModeChangeInsert:"LostModeChangeInsert",LostModeChangeSet:"LostModeChangeSet",LostModeChangeRemove:"LostModeChangeRemove",StolenVehicleRecordInsert:"StolenVehicleRecordInsert",StolenVehicleRecordSet:"StolenVehicleRecordSet",StolenVehicleRecordRemove:"StolenVehicleRecordRemove",InstallAuthorizationCodeInsert:"InstallAuthorizationCodeInsert",InstallAuthorizationCodeSet:"InstallAuthorizationCodeSet",InstallAuthorizationCodeExpire:"InstallAuthorizationCodeExpire",AssetLinkInsert:"AssetLinkInsert",AssetLinkSet:"AssetLinkSet",AssetLinkRemove:"AssetLinkRemove",AssetLinkDetailsInsert:"AssetLinkDetailsInsert",AssetLinkDetailsSet:"AssetLinkDetailsSet",AssetLinkDetail
1sRemove:"AssetLinkDetailsRemove",InvestigationInsert:"InvestigationInsert",InvestigationSet:"InvestigationSet",InvestigationsPageVisited:"InvestigationsPageVisited",InvestigationsPaginationChange:"InvestigationsPaginationChange",InvestigationDetailsPageVisited:"InvestigationDetailsPageVisited",InvestigationAttachmentInsert:"InvestigationAttachmentInsert",InvestigationAttachmentRemove:"InvestigationAttachmentRemove",InvestigationCommentInsert:"InvestigationCommentInsert",InvestigationCommentRemove:"InvestigationCommentRemove",ReportDriverLogs:"ReportDriverLogs",ReportSingleDriverLogs:"ReportSingleDriverLogs",ReportAssetUtilization:"ReportAssetUtilization",ReportBarCtp:"ReportBarCtp",ViewConnectionsPage:"ViewConnectionsPage",EditConnectionsPage:"EditConnectionsPage",RoleInsert:"RoleInsert",RoleSet:"RoleSet",RoleRemove:"RoleRemove",EvsaRequestInsert:"EvsaRequestInsert",EvsaRequestSet:"EvsaRequestSet",EvsaRequestRemove:"EvsaRequestRemove",DocumentScanningInvoiceUpload:"DocumentScanningInvoiceUpload",DocumentScanningReview:"DocumentScanningReview",DocumentScanningVehicleAssignment:"DocumentScanningVehicleAssignment",DocumentScanningCreate:"DocumentScanningCreate",DocumentScanningDelete:"DocumentScanningDelete",DocumentScanningAcceptDuplicate:"DocumentScanningAcceptDuplicate",DocumentScanningDismiss:"DocumentScanningDismiss",WorkOrderDeletionLockAcquired:"WorkOrderDeletionLockAcquired",WorkOrderDeletionLockReleased:"WorkOrderDeletionLockReleased",InspectedItemDefectStatusChange:"InspectedItemDefectStatusChange",ReportXar:"ReportXar",CtcCreateWorkOrder:"CtcCreateWorkOrder",CtcCreateWorkOrderAPI:"CtcCreateWorkOrderAPI",CtcCreateWorkRequest:"CtcCreateWorkRequest",CtcCreateWorkRequestAPI:"CtcCreateWorkRequestAPI",CtcNotifyDriver:"CtcNotifyDriver",CtcNotifyDriverAPI:"CtcNotifyDriverAPI",CtcChangeAutoManualSettings:"CtcChangeAutoManualSettings",CtcSetWorkCreationTypeAPI:"CtcSetWorkCreationTypeAPI",MaintenanceOverviewDowntimeCostSettingsUpdate:"MaintenanceOverviewDowntimeCostSettingsUpdate",ReportFaultCycles:"ReportFaultCycles",ReportColdChainDeviceHistory:"ReportColdChainDeviceHistory",TripClassificationDefaultInsert:"TripClassificationDefaultInsert",TripClassificationDefaultSet:"TripClassificationDefaultSet",TripClassificationDefaultRemove:"TripClassificationDefaultRemove",ReportCameras:"ReportCameras"},t.c6={All:"All",Driver:"Driver",OnlyUser:"OnlyUser"},t.kq={Open:"Open",Wpa2Personal:"Wpa2Personal",Wpa3Personal:"Wpa3Personal"}},6902(e,t){t.zQ=t.pN=void 0,t.pN={Processing:"Processing",Failure:"Failure",Duplicated:"Duplicated",Review:"Review",Completed:"Completed",ReviewMissingAsset:"ReviewMissingAsset"},t.zQ={Unknown:"Unknown",Low:"Low",Medium:"Medium",High:"High",Critical:"Critical"}},61133(e,t){t.Xj=t.lg=void 0,t.lg={AboutPage:"Application:AboutPage",Ace:"Application:Ace",Assets:"Application:Assets",AuditLog:"Application:AuditLog",BasicRouting:"Application:BasicRouting",CleanTruckCheckProgram:"Application:CleanTruckCheckProgram",ColdChain:"Application:ColdChain",Dashboard:"Application:Dashboard",DriveApp:"Application:DriveApp",EVPerformance:"Application:EVPerformance",Events:"Application:Events",Groups:"Application:Groups",Maps:"Application:Maps",Messages:"Application:Messages",Notifications:"Application:Notifications",ProductGuide:"Application:ProductGuide",Reports:"Application:Reports",RolesAndPermissions:"Application:RolesAndPermissions",Rules:"Application:Rules",Shop:"Application:Shop",SustainabilityOverview:"Application:SustainabilityOverview",SystemSettings:"Application:SystemSettings",TripsHistory:"Application:TripsHistory",UsersAndDrivers:"Application:UsersAndDrivers",Video:"Application:Video",WorkHours:"Application:WorkHours",Zones:"Application:Zones"},t.Xj={AboutPage:"Feature:AboutPage",AccessDriveApp:"Feature:AccessDriveApp",Ace:"Feature:Ace",AddInData:"Feature:AddInData",AddInManagement:"Feature:AddInManagement",AssetSharing:"Feature:AssetSharing",AuditLog:"Feature:AuditLog",BetaFeatures:"Feature:BetaFeatures",BinaryDataAndGpsData:"Feature:BinaryDataAndGpsData",BluetoothBeacons:"Feature:BluetoothBeacons",BrowseMarketplace:"Feature:BrowseMarketplace",BuiltInRules:"Feature:BuiltInRules",CameraHealth:"Feature:CameraHealth",CameraSettings:"Feature:CameraSettings",CertifyInspections:"Feature:CertifyInspections",ChangeYourOwnPassword:"Feature:ChangeYourOwnPassword",ChangeYourOwnUserOptions:"Feature:ChangeYourOwnUserOptions",CleanTruckCheckSolution:"Feature:CleanTruckCheckSolution",CoachingScores:"Feature:CoachingScores",Congregation:"Feature:Congregation",Connections:"Feature:Connections",CustomDeviceProperties:"Feature:CustomDeviceProperties",CustomReports:"Feature:CustomReports",Dashboard:"Feature:Dashboard",Defects:"Feature:Defects",DeleteMessages:"Feature:DeleteMessages",DeviceIdentification:"Feature:DeviceIdentification",DeviceInstallOrRemoval:"Feature:DeviceInstallOrRemoval",DeviceInstallationReminders:"Feature:DeviceInstallationReminders",DeviceParameters:"Feature:DeviceParameters",Devices:"Feature:Devices",DiagnosticThresholds:"Feature:DiagnosticThresholds",DriverCoachingEvents:"Feature:DriverCoachingEvents",DriverCoachingRules:"Feature:DriverCoachingRules",DriverCoachingSummary:"Feature:DriverCoachingSummary",Dvirs:"Feature:Dvirs",EVPerformanceData:"Feature:EVPerformanceData",EngineFaultData:"Feature:EngineFaultData",EngineHours:"Feature:EngineHours",Events:"Feature:Events",
1EventsDetailPage:"Feature:EventsDetailPage",Faults:"Feature:Faults",GroupFilters:"Feature:GroupFilters",Groups:"Feature:Groups",HosRecords:"Feature:HosRecords",HosSettings:"Feature:HosSettings",ImportDevices:"Feature:ImportDevices",ImportZones:"Feature:ImportZones",InCabControls:"Feature:InCabControls",Inspections:"Feature:Inspections",InstallApps:"Feature:InstallApps",InstallHistory:"Feature:InstallHistory",IoxOutputs:"Feature:IoxOutputs",LaunchCustomReportsOrAddIns:"Feature:LaunchCustomReportsOrAddIns",LiveTracking:"Feature:LiveTracking",LiveVideo:"Feature:LiveVideo",LogDataAndCollisions:"Feature:LogDataAndCollisions",LogTrips:"Feature:LogTrips",Map:"Feature:Map",MapLayers:"Feature:MapLayers",MapViews:"Feature:MapViews",MeasurementThresholds:"Feature:MeasurementThresholds",Measurements:"Feature:Measurements",Messages:"Feature:Messages",Messaging:"Feature:Messaging",NfcTags:"Feature:NfcTags",NotificationTemplate:"Feature:NotificationTemplate",Notifications:"Feature:Notifications",Odometer:"Feature:Odometer",PlannedVsActualRoute:"Feature:PlannedVsActualRoute",ProductGuide:"Feature:ProductGuide",ProductGuideForGoDevice:"Feature:ProductGuideForGoDevice",RecordedVideo:"Feature:RecordedVideo",RemoteDownloadData:"Feature:RemoteDownloadData",ReprocessExceptionsData:"Feature:ReprocessExceptionsData",RequestAssetLocation:"Feature:RequestAssetLocation",ResellerAccessSettings:"Feature:ResellerAccessSettings",ResetOtherUsersPasswords:"Feature:ResetOtherUsersPasswords",ReviewAssignedEvents:"Feature:ReviewAssignedEvents",RoutePlanning:"Feature:RoutePlanning",RouteSummary:"Feature:RouteSummary",RuleAPI:"Feature:RuleAPI",RuleNotifications:"Feature:RuleNotifications",Rules:"Feature:Rules",SAMLCertificates:"Feature:SAMLCertificates",SecurityClearances:"Feature:SecurityClearances",SendColdChainCommands:"Feature:SendColdChainCommands",SendMessagesOnBehalfOfAnotherUser:"Feature:SendMessagesOnBehalfOfAnotherUser",SendPushNotifications:"Feature:SendPushNotifications",ShareCurrentMapView:"Feature:ShareCurrentMapView",ShareVehicleLocation:"Feature:ShareVehicleLocation",ShareableMapLinks:"Feature:ShareableMapLinks",SpeedProfile:"Feature:SpeedProfile",StatusData:"Feature:StatusData",SustainabilityOverview:"Feature:SustainabilityOverview",SystemCommunications:"Feature:SystemCommunications",SystemSettings:"Feature:SystemSettings",TachographSettings:"Feature:TachographSettings",ThirdPartyDataToGoDevice:"Feature:ThirdPartyDataToGoDevice",TripAnnotations:"Feature:TripAnnotations",TripHistoryMap:"Feature:TripHistoryMap",TripTypeChanges:"Feature:TripTypeChanges",TripsHistory:"Feature:TripsHistory",UninstallApps:"Feature:UninstallApps",UnmatchedRoute:"Feature:UnmatchedRoute",UpdatePostedRoadSpeeds:"Feature:UpdatePostedRoadSpeeds",UserDisplayProfile:"Feature:UserDisplayProfile",UsersAndDrivers:"Feature:UsersAndDrivers",VehicleAccessories:"Feature:VehicleAccessories",WiFiHotspot:"Feature:WiFiHotspot",WorkHours:"Feature:WorkHours",ZoneTypes:"Feature:ZoneTypes",ZoneVisits:"Feature:ZoneVisits",Zones:"Feature:Zones"}},36636(e,t,i){var n;i.d(t,{e:()=>n}),function(e){e.None="none",e.Ascending="asc",e.Descending="desc"}(n||(n={}))},89009(e,t,i){i.d(t,{$j:()=>C,D6:()=>l,EX:()=>c,If:()=>g,Jn:()=>v,Jt:()=>a,Mu:()=>s,OX:()=>D,Ti:()=>b,Xy:()=>p,YD:()=>S,fh:()=>h,g9:()=>o,hr:()=>m,iq:()=>y,je:()=>I,l4:()=>u,qk:()=>f,s_:()=>r,tT:()=>T,xO:()=>d,zR:()=>R});var n=i(27141);const r=n.s_,o=7818==i.j?n.g9:null,a=n.Jt,s=7818==i.j?n.Mu:null,l=7818==i.j?n.D6:null,d=7818==i.j?n.xO:null,c=7818==i.j?n.EX:null,u=7818==i.j?n.l4:null,h=7818==i.j?n.fh:null,p=7818==i.j?n.Xy:null,m=n.hr,g=n.If,S=n.YD,v=n.Jn,I=n.je,y=n.iq,f=7818==i.j?n.qk:null,D=n.OX,C=7818==i.j?n.$j:null,R=7818==i.j?n.zR:null,T=7818==i.j?n.tT:null,b=n.Ti},76210(e,t,i){i.d(t,{C:()=>a});var n=i(49793),r=i(50405),o=i(46682);const a=({className:e,size:t,title:i,description:a,focusable:s=!1})=>{const l=(0,r.useId)(),d=(0,r.useMemo)((()=>(0,o.x)(["zen-icon",t?`zen-icon--${t}`:"",null!=e?e:""])),[t,e]);return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25",focusable:s?"true":void 0,tabIndex:s?0:void 0,role:s||i||a?void 0:"presentation",className:d,"aria-labelledby":i&&s?l:void 0,"data-name":"IconArchive2",children:[i?(0,n.jsx)("title",{id:l,children:i}):null,a?(0,n.jsx)("desc",{children:a}):null,(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3.87a1 1 0 011-1h4.5a1 1 0 01.707.293l1.707 1.707H18a1 1 0 011 1v3h1a1 1 0 011 1v11a1 1 0 01-1 1H4a1 1 0 01-1-1v-11a1 1 0 011-1h1v-5zm2 5h10v-2h-4.5a1 1 0 01-.707-.293L10.086 4.87H7v4zm-2 2v9h14v-9H5zm2 3a1 1 0 011-1h4a1 1 0 110 2H8a1 1 0 01-1-1z"})]})}},5337(e,t,i){i.d(t,{j:()=>a});var n=i(49793),r=i(50405),o=i(46682);const a=({className:e,size:t,title:i,description:a,focusable:s=!1})=>{const l=(0,r.useId)(),d=(0,r.useMemo)((()=>(0,o.x)(["zen-icon",t?`zen-icon--${t}`:"",null!=e?e:""])),[t,e]);return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25",focusable:s?"true":void 0,tabIndex:s?0:void 0,role:s||i||a?void 0:"presentation",className:d,"aria-labelledby":i&&s?l:void 0,"data-name":"IconChevronTopSmall",children:[i?(0,n.jsx)("title",{id:l,children:i}):null,a?(0,n.jsx)("desc",{children:a}):null,(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 10.162a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.415L12 12.284l-3.293 3.293a1 1 0 11-1.414-1.415l4-4z"})]})}},38956(e,t,i){i.d(t,{C:()=>a});var n=i(49793),r=i(50405),o=i(46682);const a=({className:e,size:t,title:i,description:a,focusable:s=!1})=>{const l=(0,r.useId)(),d=(0,r.useMemo)((()=>(0,o.x)(["zen-icon",t?`zen-icon--${t}`:"",null!=e?e:""])),[t,e]);return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25",focusable:s?"true":void 0,tabIndex:s?0:void 0,role:s||i||a?void 0:"presentation",className:d,"aria-labelledby":i&&s?l:void 0,"data-name":"IconCloudOff",children:[i?(0,n.jsx)("title",{id:l,children:i}):null,a?(0,n.jsx)("desc",{children:a}):null,(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.293 3.163a1 1 0 011.414 0l18 18a1 1 0 01-1.414 1.414l-1.738-1.738c-.182.02-.368.03-.555.03H7A6 6 0 015.598 9.035c.116-.261.248-.515.394-.758l-3.7-3.7a1 1 0 010-1.413zm5.176 6.59c-.074.158-.14.32-.198.487a1 1 0 01-.812.666A4.001 4.001 0 007 18.87h9.586L7.469 9.753zm3.11-4.739a7.001 7.001 0 018.363 5.944 5.002 5.002 0 013.84 6.373 1 1 0 11-1.912-.584A3 3 0 0018 12.87a1 1 0 01-1-1 5 5 0 00-6.017-4.896 1 1 0 01-.405-1.959z"})]})}},51046(e,t,i){i.d(t,{G:()=>a});var n=i(49793),r=i(50405),o=i(46682);const a=({className:e,size:t,title:i,description:a,focusable:s=!1})=>{const l=(0,r.useId)(),d=(0,r.useMemo)((()=>(0,o.x)(["zen-icon",t?`zen-icon--${t}`:"",null!=e?e:""])),[t,e]);return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 25",focusable:s?"true":void 0,tabIndex:s?0:void 0,role:s||i||a?void 0:"presentation",className:d,"aria-labelledby":i&&s?l:void 0,"data-name":"IconMap",children:[i?(0,n.jsx)("title",{id:l,children:i}):null,a?(0,n.jsx)("desc",{children:a}):null,(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.585 4.308A1 1 0 0122 5.12v13a1 1 0 01-.684.948l-6 2a1 1 0 01-.632 0L9 19.174l-5.684 1.894A1 1 0 012 20.12v-13a1 1 0 01.684-.949l6-2a1 1 0 01.632 0L15 6.066l5.684-1.895a1 1 0 01.9.137zM14 7.84l-4-1.333V17.4l4 1.333V7.84zm2 10.892l4-1.333V6.507L16 7.84v10.892zM8 17.4V6.507L4 7.84v10.892L8 17.4z"})]})}},97712(e,t,i){i.d(t,{A:()=>a});var n=i(49793),r=i(50405),o=i(46682);const a=({icon:e,className:t,onClick:i,link:a,target:s,title:l,disabled:d,style:c}
1)=>{const u=(0,r.useMemo)((()=>((e,t)=>"function"==typeof e?(0,r.createElement)(e,{size:"large",className:(0,o.x)([t||""])}):e)(e,t)),[e,t]),h=(0,r.useMemo)((()=>(0,o.x)(["zen-primary-icon",i||a?"zen-primary-icon--active":"",d?"zen-primary-icon--disabled":"","secondary"===c?"zen-primary-icon--secondary":"",t||""])),[i,a,t,d,c]);return i?(0,n.jsx)("button",{className:h,onClick:i,disabled:d,title:l,"aria-label":l,children:u}):a?(0,n.jsx)("a",{className:h,href:d?void 0:a,target:s,title:l,"aria-label":l,children:u}):(0,n.jsx)("div",{className:h,children:u})}},32090(e,t,i){i.d(t,{C:()=>l,D:()=>s});var n=i(53534),r=i(19093),o=i(86397),a=i(92191);class s extends o.FZ{connectToNewFrame(){this.connector.connect(this.iframe.contentWindow||window,"*"),this.conn&&this.conn.connect()}initAddins(e){e.forEach((({name:e,data:t})=>{this.conn.registerAddin(e,{data:t,bannedServices:{}})}))}initPostponedAddins(){this.initAddins(this.addinsToInitialize),this.addinsToInitialize.length=0}getFrameHref(){var e;try{let t=(null===(e=this.iframe.contentWindow)||void 0===e?void 0:e.location)||{href:"",origin:""},i=t.href,n=t.origin;return i.slice(n.length)}catch(e){return}}loadFrame(e){return new Promise((t=>{this.iframeParent.appendChild(this.iframe),e.addEventListener("load",(function i(){e.removeEventListener("load",i,!1),t()}),!1),e.src=this.iframeLink}))}constructor(e,t,i,o,s){super(),this.iframeParent=e,this.iframeLink=t,this.language=i,this.serviceToRegister=[],this.addinsToInitialize=[],this.installedAddins=[],this.passEvents=["addinFailed","addinInstalled"],this.initConnectionOnLoad=()=>(this.conn||(this.conn=new r.v(this.connector,this.language),this.passEvents.forEach((e=>{this.conn.attach(e,(t=>{this.fire(e,t)}))})),this.conn.attach("haltConnection",(e=>{if(this.getFrameHref()!==this.iframeLink)return void this.fire("haltConnection",e);if(0===this.installedAddins.length)return;let t=this.installedAddins.slice();this.blur(),this.addinsToInitialize=t,this.installedAddins=t,this.focus()})),this.serviceToRegister.forEach((({name:e,service:t})=>{this.conn.registerService(e,t)})),this.serviceToRegister.length=0),this.conn),this.iframe=(0,a.vt)("iframe",{class:`addins-iframe ${o}`,sandbox:"allow-scripts allow-popups allow-same-origin allow-forms allow-downloads",allowFullscreen:"allowfullscreen",allow:"fullscreen",title:s,"aria-label":s}),this.pConn=this.loadFrame(this.iframe).then(this.initConnectionOnLoad),this.connector=new n.W(this.iframe.contentWindow||window,window,window.location.origin,"*")}blur(){this.connector.disconnect(),this.pConn=this.pConn.then((e=>(e.disconnect(),e))),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe);try{this.iframe.src=""}catch(e){}this.installedAddins.length=0}focus(){this.pConn=this.pConn.then((e=>this.iframe.parentNode?Promise.resolve(e):this.loadFrame(this.iframe).then((()=>e)))).then((e=>(this.connectToNewFrame(),this.initPostponedAddins(),e)))}sendMessage(e,t,i,n){this.conn&&this.conn.sendMessage(e,t,i,n)}registerService(e,t){this.conn?this.conn.registerService(e,t):this.serviceToRegister.push({name:e,service:t})}registerAddins(e){this.installedAddins=this.installedAddins.concat(e),this.conn&&this.conn.isConnected()?this.initAddins(e):this.addinsToInitialize=this.addinsToInitialize.concat(e)}unregisterAddins(e){this.conn&&e.map((e=>this.conn.unregisterAddin(e.name)));let t=e.map((e=>e.name));this.addinsToInitialize=this.addinsToInitialize.filter((e=>-1===t.indexOf(e.name))),this.installedAddins=this.installedAddins.filter((e=>-1===t.indexOf(e.name)))}}class l extends o.FZ{blur(){}focus(){}sendMessage(){}registerService(){}registerAddins(){}unregisterAddins(){}}},30577(e,t,i){i.d(t,{h:()=>r});var n=i(96054);class r extends n.D{constructor(e,t,i){super(),this.attach("setVisibility",(({visible:t})=>{e(!!t)})),this.attach("setDisable",(({disabled:e})=>{t(!e)})),this.attach("setTitle",(({title:e})=>{e&&(i.textContent=e)}))}formatter(e,t){let i=e.data||{};return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},i),{addinName:t})})}clear(e){}}},36905(e,t,i){i.d(t,{w:()=>n});const n="tab"},86059(e,t,i){i.d(t,{B:()=>o});var n=i(44654),r=i(20608);const o=(e,t,i)=>e.map((e=>{let o=(0,r.a)(e.meta.addinName,e.meta.originalUrl);return{type:e.type,isSigned:e.meta.isSigned,addinName:e.meta.addinName,supportEmail:e.meta.support,solutionId:e.meta.solutionId,addinPath:o,url:(0,n.YS)(e.meta.addinName,e.data.url,i),page:e.data.page,title:(0,r.sC)(e.data.tabTitle,t)}}))},40120(e,t,i){i.d(t,{a:()=>m});var n=i(75039),r=i(60925),o=i(11233),a=i(27524);class s{isCredentialsValid(e){return!!(e&&e.database&&e.userName&&e.sessionId)}constructor(e,t){this.getToken=e,this.getDomain=t}async getSession(e,t){const i=await this.getToken(),n=new Error("Invalid session id");if(e&&(0,o.BT)(i))return t().then((e=>e?Promise.resolve({database:i.database,userName:i.userName,sessionId:e,domain:this.getDomain()}):Promise.reject(n)));const r=(0,a.D)(i);return(0,o.BT)(r)||!this.isCredentialsValid(r)?Promise.reject(n):Promise.resolve({database:r.database,userName:r.userName,sessionId:r.sessionId,domain:this.getDomain()})}}
1var l=i(74781),d=i(44654),c=i(67853);let u=["devices","trailers","rules","zones","routes","statusData","workTimes","faultData","groups","users","trips","deviceStatusInfo","zoneTypes","chargeEvent","dvirLogs","dutyStatusLogs","defects"];const h=["defects","groups"],p=["sort","resultsLimit","propertySelector"];class m extends n.e{toApiProperties(e){return p.reduce(((t,i)=>(e.hasOwnProperty(i)&&(t[i]=e[i]),t)),{})}toStoreTypeName(e){return e[0].toLowerCase()+e.substring(1)+"s"}getListOfModules(){return r.q.filter((e=>e.name&&u.indexOf(e.name)>=0))}getStorePerAddin(e){let t=this.storePerAddin[e];return void 0!==t||(t=(0,r.A)(this.connection,this.getListOfModules(),`${this.pageNamePrefix}: ${e}`),t.listenToDataMutationEvents(this.notificationCenter),this.storePerAddin[e]=t),t}request(e,t,i){const n=this.getStorePerAddin(i);let r=t.typeName;if(r&&(t.search||t.entity)){let i=this.toStoreTypeName(r),o=n[i],a=this.toStoreMethod[e];if(o&&a)return a(o,t,i)}return n.call(e,t)}toSerializableError(e){return new Error(`${e.name||"Unknown"}: ${e.message||"error"}`)}constructor(e,t){super(),this.storePerAddin={},this.toStoreMethod={Get:(e,t,i)=>{let n=t.search;return n&&n.id&&h.indexOf(i)<0?e.getItemById(n.id).then((e=>[e])):e.getItemsByValue(n,this.toApiProperties(t))},Set:(e,t)=>e.setItem(t.entity),Add:(e,t)=>e.addItem(t.entity),Remove:(e,t)=>e.removeItem({id:t.entity.id})},this.pageNamePrefix=e.pageNamePrefix,this.connection=e.connection,this.notificationCenter=e.notificationCenter,this.answer("call",(({method:e,params:t,addinName:i})=>e?this.request(e,t||{},i).catch((e=>Promise.reject(this.toSerializableError(e)))):Promise.reject(new Error("Unknown error")))),this.answer("multicall",(({calls:e,addinName:t})=>Promise.all(e.filter((e=>e[0])).map((([e,i])=>this.request(e,i,t)))).catch((e=>Promise.reject(this.toSerializableError(e))))));const i=new s((()=>this.connection.getToken()),(()=>e.domain));this.answer("getSession",(({addinName:t})=>i.getSession(!e.isFedRamp,(()=>(0,l.C)(!e.isFedRamp,e.iamSessionIdStorage))).then((i=>((null==i?void 0:i.sessionId)&&e.createLog({traceTag:c.tF,value:t}).catch(d.tE),i))))),this.answer("setDisabled",(({addinName:e,isDisabled:i})=>Promise.resolve(null==t?void 0:t.toggleEnableAddin(e,!i)))),this.answer("setVisible",(({addinName:e,isVisible:i})=>Promise.resolve(null==t?void 0:t.toggleDisplayAddin(e,i))))}formatter(e,t){let i=e.data||{};return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},i),{addinName:t})})}clear(e){let t=this.storePerAddin[e];t&&(t.destroy(),this.storePerAddin[e]=void 0)}
1destroy(){Object.keys(this.storePerAddin).forEach((e=>{this.clear(e)})),super.destroy()}}},7224(e,t,i){i.d(t,{g:()=>o});var n=i(75039);const r="addin_";class o extends n.e{getKeyPrefix(e){return`${r}${e}_`}getKey(e,t){return`${this.getKeyPrefix(e)}${t}`}constructor(e){super(),this.storage=e,this.resolvedTrue=Promise.resolve(!0),this.answer("set",(({key:e,value:t})=>{if(e)try{this.storage.setItem(e,t,!0)}catch(e){return Promise.reject(e)}return this.resolvedTrue})),this.answer("get",(({key:e})=>{if(e&&this.storage.hasItem(e)){let t=this.storage.getItem(e);return null===t?Promise.resolve(""):"object"==typeof t?Promise.resolve(JSON.stringify(t)):Promise.resolve(t.toString())}return Promise.resolve(void 0)})),this.answer("remove",(({key:e})=>(e&&this.storage.removeItem(e),this.resolvedTrue)))}formatter(e,t){let i=(e.data||{}).key;return i?Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},e.data),{key:this.getKey(t,i)})}):e}clear(e){let t=this.getKeyPrefix(e);this.storage.listItems().forEach((e=>{0===e.indexOf(t)&&this.storage.removeItem(e)}))}
1destroy(){this.storage.listItems().forEach((e=>{0===e.indexOf(r)&&this.storage.removeItem(e)})),super.destroy()}}},55015(e,t,i){i.d(t,{H:()=>s});var n=i(75039),r=i(44654),o=i(67853);const a="mapaddin-";class s extends n.e{getPageState(e){return this.urlPageKeys.all?this.getEntireState(e):this.urlPageKeys.keys.reduce(((t,i)=>(e.hasOwnProperty(i)&&(t[i]=e[i]),t)),{})}getAddinState(e){return Object.keys(e).filter((e=>e.startsWith(a))).reduce(((t,i)=>(t[i.slice(9)]=e[i],t)),{})}toAddinPropName(e){return a+e}getEntireState(e){return Object.keys(e).filter((e=>!e.startsWith(a))).reduce(((t,i)=>(t[i]=e[i],t)),{})}constructor(e,t,i,n,a,s,l){super(),this.urlStateController=e,this.urlPageKeys=l,this.notificationsEnabled=!0,this.handleStateChange=({prevState:e,state:t})=>{if(!this.notificationsEnabled)return;if(this.urlPageKeys.pageName&&t.page!==this.urlPageKeys.pageName)return;if(e.page!==t.page)return this.send("pageChange",t.page),void(this.currState=this.getPageState(t.state));let i=this.getPageState(t.state);(0,r.Hb)(i,this.currState,{},!0)||(this.send("stateChange",Object.assign(Object.assign({},i),this.getAddinState(t.state))),this.currState=i)},(0!==l.keys.length||l.all)&&e.attach("page.change",this.handleStateChange),s((e=>{if(this.notificationsEnabled){let t=(0,o.un)(e);this.send("filterChange",t),this.send("changeFilterValue",(0,o.k6)(e))}})),this.answer("set",(({key:t,value:i})=>{if(t){this.notificationsEnabled=!1;let n=this.toAddinPropName(t);e.setState({state:Object.assign(Object.assign({},e.getState().state),{[n]:i})},!1),this.notificationsEnabled=!0}return Promise.resolve(!0)})),this.answer("get",(()=>{const t=e.getState().state;return Promise.resolve(Object.assign(Object.assign({},this.getPageState(t)),this.getAddinState(t)))})),this.answer("go",(({page:e,state:r})=>{let o=i(e);return t(o)?(n(o,r),Promise.resolve(!0)):Promise.resolve(!1)})),this.answer("hasAccess",(({page:e})=>Promise.resolve(t(i(e))))),this.answer("getFilterState",(()=>Promise.resolve((0,o.un)(a())))),this.answer("getFilterValue",(()=>Promise.resolve((0,o.k6)(a()))))}formatter(e,t){let i=e.data||{};return Object.assign(Object.assign({},e),{data:Object.assign(Object.assign({},i),{addinName:t})})}clear(e){}destroy(){this.urlStateController.detach("page.change",this.handleStateChange),super.destroy()}}},16373(e,t,i){i.d(t,{GC:()=>n,Iz:()=>o,Ly:()=>r});const n="localStorage",r="api",o="page"},53534(e,t,i){i.d(t,{W:()=>a});var n=i(86345);const r="CONNECT",o="CONNECT_ACCEPTED";class a{createConnectionId(){return`${(0,n.$)()}_${(0,n.$)()}_${(0,n.$)()}`}createConnectorPacket(e){return{connId:this.connId,data:e}}sendAll(){this.requests.forEach((([e,t])=>{this.sendToTarget(e,t)})),this.requests.length=0}unsubscribeFromSource(){this.source.removeEventListener("message",this.messageHandler,!1)}subscribeToSource(){this.source.addEventListener("message",this.messageHandler,!1)}sendToTarget(e,t){this.target.postMessage(this.createConnectorPacket(e),this.targetToSend,t||void 0)}constructor(e,t,i,n){this.target=e,this.source=t,this.origin=i,this.targetToSend=n,this.connected=!1,this.handlers=[],this.requests=[],this.isPrimary=!1,this.connId="",this.steps=[{match:e=>e.data===r,process:e=>{this.connected||!e.connId||this.isPrimary||(this.connected=!0,this.connId=e.connId,this.sendToTarget(o),this.sendAll())}},{match:e=>e.data===o,process:e=>{!this.connected&&this.isPrimary&&e.connId===this.connId&&(this.connected=!0,clearTimeout(this.pingTimer),this.sendAll())}},{match:e=>this.connected&&e&&e.connId===this.connId,process:e=>{this.handlers.forEach((t=>{t(e.data)}))}}],this.pingTarget=()=>{this.sendToTarget(r),clearTimeout(this.pingTimer),this.pingTimer=setTimeout(this.pingTarget,200)},this.messageHandler=e=>{if(!this.origin||e.origin===this.origin){let t=e.data||"";this.steps.reduce(((e,i)=>e||!i.match(t)?e:(i.process(t),!0)),!1)}},this.subscribeToSource()}disconnect(){return this.connected=!1,this.unsubscribeFromSource(),clearTimeout(this.pingTimer),this}connect(e,t){return this.connected||(this.unsubscribeFromSource(),this.subscribeToSource(),this.target=e,this.targetToSend=t,this.isPrimary=!0,this.connId=this.createConnectionId(),this.pingTarget()),this}send(e,t){this.connected?this.sendToTarget(e,t):this.requests.push([e,t])}subscribe(e){this.handlers.push(e)}unsubscribe(e){this.handlers=this.handlers.filter((t=>t!==e))}}},19093(e,t,i){i.d(t,{v:()=>o});var n=i(86397),r=i(14117);class o extends n.FZ{send(e,t){this.connector.send(e,t)}generateMessage(e,t,i,n=r.gi){return n===r.gi?(0,r.ZY)(e,t,i):{who:n,service:e,message:{event:t,data:i}}}isAllAddins(e){return e===r.gi}handleHello(e){let t=e.who||"";if(t&&this.addins.hasOwnProperty(t)&&e.hello)return this.addins[t].approved=!0,void this.fire("addinInstalled",{addinName:t});delete this.addins[t],this.fire("addinFailed",{addinName:t}),console.error("Add-in can't be installed",t,e.data)}sendHello(e,t){this.connected&&this.send({hello:!0,who:e,data:t,language:this.language})}handleAddinResponse(e,t,i){let n=i.service||"";if(!t.bannedServices[n]&&this.services.hasOwnProperty(n)){let t=this.services[n],r=t.formatter(i.message,e);if(r){let i=t.handle(r);if(i){let t=this.serviceSend(e,n);i.then(t,t)}}}}parseMessage(e){try{return"string"==typeof e?JSON.parse(e):e}catch(e){return}}subscribe(){this.connector.subscribe((e=>{let t=this.parseMessage(e);void 0!==t&&this.pipeSteps.reduce(((e,i)=>e||!i.match(t)?e:(i.process(t),!0)),!1)}))}constructor(e,t){super(),this.connector=e,this.language=t,this.addins={},this.services={},this.pipeSteps=[{match:r.Th,process:()=>
1{Object.keys(this.addins).forEach((e=>{this.unregisterAddin(e)})),this.disconnect(),this.fire("haltConnection")}},{match:r.qz,process:e=>{this.handleHello(e)}},{match:r.Hu,process:e=>{let t=e.who||"",i=this.addins[t];i&&i.approved&&this.handleAddinResponse(t,i,e)}}],this.connected=!1,this.serviceSend=(e,t)=>(i,n,o)=>{let a=o||e,s=this.addins[a]||{};this.connected&&(s.approved?this.send({message:i,who:a,service:t},n):this.isAllAddins(a)&&this.send((0,r.ZY)(t,i.event,i.data,i.id),n))},this.subscribe()}disconnect(){this.connected&&(Object.keys(this.addins).forEach((e=>{this.unregisterAddin(e)})),this.connected=!1)}isConnected(){return this.connected}connect(){this.connected=!0}registerService(e,t){this.services[e]||(this.services[e]=t,t.connect(this.serviceSend(r.gi,e)))}unregisterService(e){this.services[e].destroy(),delete this.services[e]}sendMessage(e,t,i,n=r.gi){this.send(this.generateMessage(e,t,i,n))}registerAddin(e,t){this.addins[e]&&this.addins[e].approved||(this.addins[e]={initData:t.data,approved:!1,who:e,bannedServices:t.bannedServices},this.sendHello(e,t.data))}unregisterAddin(e){let t=this.addins[e];t&&(t.approved=!1,Object.keys(this.services).forEach((t=>{this.services[t].clear(e)})))}}},96054(e,t,i){i.d(t,{D:()=>n});class n{constructor(){this.eventHandlers={},this.fire=()=>{}}notify(e,t){(this.eventHandlers[e]||[]).forEach((e=>{e.call(this,t)}))}connect(e){this.fire=e}handle(e){this.notify(e.event,e.data)}destroy(){this.eventHandlers={}}send(e,t,i){this.fire(((e,t)=>({event:e,data:t}))(e,t||{}),i)}attach(e,t){this.eventHandlers[e]=this.eventHandlers[e]||[],this.eventHandlers[e].push(t)}detach(e,t){t?this.eventHandlers[e]=(this.eventHandlers[e]||[]).filter((e=>e!==t)):this.eventHandlers[e]&&(this.eventHandlers[e].length=0)}static getPublicServiceMethods(){return["attach","detach"]}}},75039(e,t,i){i.d(t,{e:()=>d});var n=i(86345),r=i(96054);const o=(e,t,i)=>({event:e,data:t,error:void 0,id:i}),a=(e,t,i)=>({event:e,data:{},error:t,id:i});class s extends Error{constructor(){super("Service disconnected"),this.isDisconnected=!0}}class l extends Error{constructor(e){super(`Handler for ${e} is missing`),this.isSourceMissing=!0}}class d extends r.D{constructor(){super(...arguments),this.answers={},this.requests={}}getId(e){return`${e}_${(0,n.$)()}`}isResponseMessage(e){return!(!e||!this.requests.hasOwnProperty(e))}isRequestMessage(e){return!!e}isEventMessage(e){return!e}sendAnswer(e,t,i){return this.answers[t]?this.answers[t](i).then((i=>o(t,i,e)),(i=>a(t,i||{},e))):Promise.reject(a(t,new l(t),e))}connect(e){super.connect(e)}handle(e){let t=e.event,i=e.id||"";if(this.isResponseMessage(i))void 0===e.error?this.requests[i].resolve(e.data):this.requests[i].reject(e.error);else{if(this.isRequestMessage(i))return this.sendAnswer(i,t,e.data);this.isEventMessage(i)&&super.handle(e)}}destroy(){this.answers={},Object.keys(this.requests).forEach((e=>{this.requests[e].reject(new s)})),this.requests={},super.destroy()}ask(e,t){return new Promise(((i,n)=>{let r=this.getId(e);this.requests[r]={resolve:i,reject:n},this.fire(o(e,t||{},r))}))}answer(e,t){this.answers[e]=t}}},14117(e,t,i){i.d(t,{Hu:()=>r,Th:()=>o,Z6:()=>l,ZY:()=>a,gi:()=>s,qz:()=>n});const n=e=>"hello"in e,r=e=>"message"in e,o=e=>"halt"in e&&!0===e.halt,a=(e,t,i,n)=>({service:e,event:t,request:i,id:n}),s="__all__",l="__system__"},76929(e,t,i){var n,r,o,a,s;i.d(t,{P4:()=>r,Sc:()=>a,nE:()=>n,sX:()=>o,zd:()=>s}),function(e){e.Normal="Normal",e.Critical="Critical",e.Unregulated="Unregulated"}(n||(n={})),function(e){e.NotRepaired="NotRepaired",e.Repaired="Repaired",e.NotNecessary="NotNecessary"}(r||(r={})),function(e){e.Device="Device",e.Trailer="Trailer",e.All="All"}(o||(o={})),function(e){e.PreTrip="PreTrip",e.InTrip="InTrip",e.PostTrip="PostTrip"}(a||(a={})),function(e){e[e.Repaired=0]="Repaired",e[e.UnregulatedOnly=1]="UnregulatedOnly",e[e.NotRepaired=2]="NotRepaired",e[e.Reviewed=3]="Reviewed"}(s||(s={}))},20333(e,t,i){i.d(t,{N:()=>c});var n=i(92191);const r="notag",o=e=>document.createTextNode(e),a=()=>document.createElement("SPAN"),s=(e,t=[])=>{const i=/(.*?)(\{\{(.*)\}\}(.*)\{\{\/(\3)?\}\})(.*)/g.exec(e);if(!i)return[{tag:r,value:e}];const n=i[1],o=i[3],a=i[4],l=i[6];
1n&&t.push({tag:r,value:n});const d=s(a);var c;return t.push({tag:o,value:(c=d,!c.length||c.every((e=>e.tag===r))?c.map((e=>e.value)).join(""):c)}),l&&t.push(...s(l)),t},l=(e,t={})=>e.reduce(((e,t)=>{const i=t.tag,n=t.value;return e[i]=n,Array.isArray(n)?l(n,e):e}),t),d=(e,t,i)=>e.reduce(((e,t)=>{const n=t.tag,r=t.value,s=(i[n]||(Array.isArray(r)?a:o))(r);return e.appendChild(s),Array.isArray(r)&&d(r,s,i),e}),t);class c{constructor(e){this.parsedString=s(e),this.tagMap=l(this.parsedString)}getTagContent(e){const t=this.tagMap[e];return Array.isArray(t)?(0,n.X$)(!0,[],t):t}get parsed(){return(0,n.X$)(!0,[],this.parsedString)}toHtml(e={}){return d(this.parsedString,document.createDocumentFragment(),e)}}},90513(e,t,i){i.d(t,{s:()=>r});const n=e=>{let t={};return(...i)=>{let n=((...e)=>JSON.stringify(e))(i);return t.hasOwnProperty(n)||(t[n]=e.apply(null,i)),t[n]}},r=(e,t)=>t?a(e):o(e),o=e=>{let t=s(e,"CountUniqueUsersForReportReceiver");return(e,i,n)=>i.length||e.length?t(e.map((e=>({id:e.id}))),i.map((e=>({id:e.id}))),n).catch((()=>n.length)):Promise.resolve(n.length)},a=e=>{let t=s(e,"CountUniqueUsersForEmailReceiver");return(e,i,n)=>e.length||i.length||n.length?t(e.map((e=>({id:e.id}))),i.map((e=>({id:e.id}))),n).catch((()=>0)):Promise.resolve(0)},s=(e,t)=>n(((i,n,r)=>e.call(t,{individualRecipients:r,groupsWithChildren:i,groupsWithoutChildren:n})))},89713(e,t,i){function n(e,t,i,n,r,o,a,s,l,d){return{name:e,id:t||"",parent:i,groups:n||[],type:r,color:o,subType:l||null,isFake:!!s,realParent:a||i,isGlobalReportingGroup:d}}function r(e,t){return n("","-1",null,e,t,null,null,!0)}function o(e,t){let i,r=!1,a=t;for(a||(a=[],r=!0),a.push(n(e.name,e.id,null,[],e.type)),i=0;i<e.groups.length;i++)o(e.groups[i],a);return r?a:[]}function a(e,t,i,r){if(r){let t=o(e,null),r=i.toLowerCase();return t=t.filter((e=>-1!==e.name.toLowerCase().indexOf(r))),n(e.name,e.id,null,t,e.type)}if(e.id===t)return e;for(let n=0;n<e.groups.length;n++){let o=a(e.groups[n],t,i,r);if(o)return o}return null}function s(e,t,i){let n=null;if(e.type===t&&e.id===i)return e;for(let r=0;r<e.groups.length&&!n;r++)n=s(e.groups[r],t,i);return n}function l(e,t){return t?e.groups.reduce(((e,i)=>{if(-1!==i.name.toLowerCase().indexOf(t))e.push(i);else if(i.groups.length>0)return e.concat(l(i,t));return e}),[]):[]}i.d(t,{$B:()=>a,eP:()=>l,gb:()=>r,hW:()=>s,wj:()=>n})},7115(e,t,i){i.d(t,{CB:()=>h,Tv:()=>I,Vs:()=>u,YN:()=>y,Z3:()=>p,a9:()=>g,bE:()=>v,cL:()=>c,qe:()=>S,tF:()=>m});var n=i(12802),r=i(78300),o=i(31693),a=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const{CustomLog:s}=o.rl,l=a(o.rl,["CustomLog"]),d=Object.assign({AssetUtilizationView:"AssetUtilizationView",GvpPartnerMigrationEnabled:"GvpPartnerMigrationEnabled",AreaActivity:"AreaActivity",CollisionRisk:"CollisionRisk",ConnectionConnect:"ConnectionConnect",ConnectionConnectFailed:"ConnectionConnectFailed",ConnectionDisconnect:"ConnectionDisconnect",ConnectionDisconnectFailed:"ConnectionDisconnectFailed",ConnectionReconnect:"ConnectionReconnect",ConnectionReconnectFailed:"ConnectionReconnectFailed",ConnectionsTabView:"ConnectionsTabView",FuelCardIntegrationSidePanelView:"FuelCardIntegrationSidePanelView",FuelTransactionDetailsView:"FuelTransactionDetailsView",ImportFuelTransactionsView:"ImportFuelTransactionsView",InitializeIamPassword:"InitializeIamPassword",ReportCollisionRisk:"ReportCollisionRisk",SwapDevice:"SwapDevice",WhatsAppRateLimiterSource:"WhatsAppRateLimiterSource",CombinedRateLimiterSource:"CombinedRateLimiterSource",MaintenanceScheduleDuplicate:"MaintenanceScheduleDuplicate",LinkedAssetsHistory:"LinkedAssetsHistory"},l),c=Object.assign(Object.assign({},n.bA),d),u=["InstallAuthorizationCodeInsert","InstallAuthorizationCodeSet","InstallAuthorizationCodeExpire"],h=["WhatsAppNotificationsOptIn","WhatsAppNotificationsOptOut"],p={Unknown:"Unknown",UserView:"View users",UserRemove:"Remove user",UserSet:"Edit user",UserInsert:"Add user",DeviceView:"View devices",DeviceRemove:"Remove device",DeviceInsert:"Add device",DeviceSet:"Edit device",ZoneView:"View zone
1s",ZoneRemove:"Remove zone",ZoneInsert:"Add zone",ZoneSet:"Edit zone",ZoneTypeView:"View zone type",ZoneTypeRemove:"Remove zone type",ZoneTypeInsert:"Add zone type",ZoneTypeSet:"Edit the zone type",RouteView:"View routes",RouteRemove:"Remove route",RouteInsert:"Add route",RouteSet:"Edit route",DatabaseUpgrade:"Upgrade database",DatabaseMigrate:"Migrate database",ExportDatabase:"Export database",ImportDatabase:"Import database",ServerUpgrade:"Upgrade server",SysSetCompanyGUID:"Edit company GUID",SysSettingsSetAll:"Edit system settings",EventRemove:"Remove event",EventInsert:"Add event",EventSet:"Edit event",EventSkip:"Skip event",EventRuleRemove:"Remove event rule",EventRuleInsert:"Add event rule",EventRuleView:"View Event Rules",EventRuleSet:"Edit event rule",EventTypeRemove:"Remove event type",EventTypeInsert:"Add event type",EventTypeSet:"Edit event type",ExceptionRuleView:"View exception rules",ExceptionRuleRemove:"Remove exception rule",ExceptionRuleInsert:"Add exception rule",ExceptionRuleSet:"Edit exception rule",ExceptionRuleSuspend:"Suspend Exception Rule",DistributionListView:"View distribution lists",DistributionListRemove:"Remove distribution list",DistributionListInsert:"Add distribution list",DistributionListSet:"Edit distribution list",UomRemove:"Remove unit of measurement",UomInsert:"Add unit of measurement",UomSet:"Edit unit of measurement",DiagnosticView:"View diagnostics",DiagnosticRemove:"Remove diagnostic",DiagnosticInsert:"Add diagnostic",DiagnosticSet:"Edit diagnostic",MappedDiagnosticRemove:"Remove mapped diagnostic",MappedDiagnosticInsert:"Add mapped diagnostic",MappedDiagnosticSet:"Edit mapped diagnostic",DiagnosticMappingRemove:"Remove diagnostic mapping",DiagnosticMappingInsert:"Add diagnostic mapping",DiagnosticMappingSet:"Edit diagnostic mapping",FailureModeView:"View failure modes",FailureModeRemove:"Remove failure mode",FailureModeInsert:"Add failure mode",FailureModeSet:"Edit the failure mode",WorkTimesView:"View work hours",WorkTimesRemove:"Remove work hours",WorkTimesInsert:"Add work hours",WorkTimesSet:"Edit work hours",WorkHolidaysView:"View work holidays",WorkHolidaysRemove:"Remove work holidays",WorkHolidaysInsert:"Add work holiday",WorkHolidaysSet:"Edit work holiday",EngineTypeView:"View engine types",EngineTypeRemove:"Remove engine type",EngineTypeInsert:"Add engine type",EngineTypeSet:"Edit the engine type",FlashCodeRemove:"Remove flash code",FlashCodeInsert:"Add flash code",FlashCodeSet:"Edit flash code",HistoricDeviceRemove:"Remove archived (historical) device",HistoricDeviceInsert:"Add archived (historical) device",HistoricDeviceSet:"Edit archived (historical) device",HistoricDeviceMakeHistoric:"Archived device (made historical)",HistoricDeviceUnMakeHistoric:"Replaced archived (historical) device",HosLogRemove:"Remove HOS log",HosLogAdd:"Add HOS log",HosLogEdit:"Edit HOS log",DvirLogAdd:"Add Asset Inspection log",DvirLogSet:"Edit Asset Inspection log",DvirLogRemove:"Remove Asset Inspection log",DvirReprocessRequest:"Request DVIR defect reprocessing",ProcessManualUpdate:"Reprocess data",ReportAuditLog:"Report: Audit Logs",ReportSpeedProfile:"Report: Speed Profile",ReportCongregation:"Report: Congregation",ReportZoneVisitsDetail:"Report: Zone Visit Details",ReportZoneVisitsSummary:"Report: Zone Visit Summary",ReportDVIRLog:"Report: Asset Inspection Logs",ReportDebug:"Report: Log Data and Collisions",ReportDeviceInstallHistory:"Report: Device Installation History",ReportDevice:"Report: Device",ReportDiagnosticList:"Report: Diagnostic List",ReportEngineFault:"Report: Engine Faults",ReportFaultCycles:"Report: Fault Cycles",ReportEngineStatus:"Report: Engine Status",ReportEngineSummary:"Report: Engine Summary",ReportEventHistory:"Report: Event History",ReportEventRuleDevice:"Report: Device Event Rules",ReportExceptionsDetail:"Report: Exceptions Detail",ReportExceptionsSummary:"Report: Exceptions Summary",ReportEVBatteryHealth:"Report: EV Battery Health",ReportBEVRangeCapability:"Report: BEV Range Capability",ReportFillUps:"Report: Fill-Ups",ReportFuelTax:"Report: Fuel Tax",ReportEngineStatusStatistics:"Report: Engine Status Statistics",ReportGroupsList:"Report: Groups List",ReportHosLogs:"Report: HOS L
1ogs",ReportHosViolation:"Report: HOS Violation",ReportNotification:"Report: Notification",ReportReminders:"Report: Reminders",ReportRiskAnalytics:"Report: Risk Analytics",ReportRiskManagement:"Report: Risk Management",ReportRouteComparisonDetail:"Report: Route Comparison Detail",ReportRouteDirection:"Report: Route Direction",ReportRouteSummary:"Report: Route Summary",ReportTextMessage:"Report: Text Message",ReportTimeCard:"Report: Time Card",ReportTripsDetail:"Report: Trips Detail",ReportTripsSummary:"Report: Trips Summary",ReportUnassignedRoute:"Report: Unmatched Route",ReportUserList:"Report: User List",ReportZoneList:"Report: Zone List",ReportAssetMonitoring:"Asset Monitoring Report",ReportColdChain:"Cold Chain Report",ReportLastMileMaintenance:"Last Mile Maintenance Report",ReportCleanTruckCheck:"Clean Truck Check Report",ReportEVPerformance:"EV Performance Report",AssetUtilizationView:"View Asset Utilization",ReportAssetUtilization:"Asset Utilization Report",ReportBarCtp:"BAR CTP Report",ShowMap:"Show map",Purge:"Purge",ExcelReportView:"View Excel reports",ExcelReportRemove:"Removed Excel report",ExcelReportEdit:"Edited Excel report",ExcelReportInsert:"Add Excel report",KeyCreate:"Create key",KeyBackup:"Saved key backup",KeyRestore:"Restore key",KeyDataDownload:"Download key data",UserLogin:"User login",UserLogoff:"User logout",UserLoginFailure:"User failed login attempt",UserLockout:"User locked out",UserUnlocked:"User login reset",RequestLocation:"Request device location",GpsTextMessageSend:"Send message",GpsTextMessageDelete:"Delete message",GpsTextMessageView:"View messages",NotificationView:"View notifications",NotificationsDismiss:"Dismiss notifications",NotificationTemplateView:"View notification templates",NotificationTemplateRemove:"Remove notification templates",NotificationTemplateSet:"Edit notification templates",NotificationTemplateInsert:"Add notification templates",NodeView:"View groups",NodeRemove:"Remove group",NodeSet:"Edit group",NodeInsert:"Add group",SecurityGroupView:"View security groups",KeyInsert:"Insert key",TrailerView:"View trailers",TrailerRemove:"Remove trailer",TrailerSet:"Edit trailer",TrailerInsert:"Add trailer",DriverChangeRemove:"Remove driver",DriverChangeInsert:"Assign driver",CustomReportScheduleInsert:"Add notification for report",CustomReportScheduleSet:"Edit notification for report",CustomReportScheduleRemove:"Remove notification for report",CustomReportSendError:"Report not sent",FuelTransactionView:"View fuel transactions",FuelTransactionRemove:"Remove fuel transaction",FuelTransactionInsert:"Add fuel transaction",FuelTransactionSet:"Edit fuel transaction",PostedRoadSpeedSet:"Set posted road speed",FillUpsGraph:"View fill-ups graph",MiscPageView:"View custom page",AboutView:"View about",DashboardView:"View dashboard",RadioDownloaderView:"View radio downloaders",FuelTransactionImport:"Import fuel transaction",ImportFuelTransactionsView:"View import fuel transactions",FuelTransactionDetailsView:"View fuel transaction details",FuelCardIntegrationSidePanelView:"View fuel card integration side panel",DriveLockUserCleared:"Drive lock screen cleared by user",PasswordResetRequest:"Password Reset Request",DefectGroupView:"View defects",CertificateInsert:"Add certificate",CertificateRemove:"Remove certificate",CertificateSet:"Edit certificate",ReportHosAvailability:"Report: HOS Availability",TripTypeChangeInsert:"Add trip type change",TripTypeChangeRemove:"Remove trip type change",ShipmentLogInsert:"Add shipment log",ShipmentLogSet:"Edit shipment log",ShipmentLogRemove:"Remove shipment log",TripClassificationLogInsert:"Add trip classification log",TripClassificationLogSet:"Edit trip classification log",TripClassificationLogRemove:"Remove trip classification log",TripClassificationDefaultInsert:"Add trip classification default",TripClassificationDefaultSet:"Edit trip classification default",TripClassificationDefaultRemove:"Remove trip classification default",TrailerAttachmentInsert:"Add trailer attachment",TrailerAttachmentSet:"Edit trailer attachment",TrailerAttachmentRemove:"Remove trailer attachment",SupportTicketInsert:"Add support ticket",TrainingTicketInsert:"Add training ticket",SupportTicketSet:"Edit support ticket",TrainingTicketSet:"Edit training ticket",EmailSent:"Email sent",SkipHosVerify:"Skip workflow: HOS log verification",SkipHosClaimUnassigned:"Skip workflow: unassigned HOS log claim",SkipDvirInspect:"Skip workflow: Asset Inspection",ELDDataTransfer:"ELD data transfer",CreditsView:"View credits",ReportChargeEvent:"Report: EV Charging History",HardwarePurchase:"Purchase hardware",MediaFileView:"View media file",MediaFileRemove:"Remove media file",MediaFileInsert:"Add media file",MediaFileSet:"Edit media file",MediaFileUpload:"Upload media file",WiFiView:"View Wi-Fi",WiFiRemove:"Remove Wi-Fi",WiFiSet:"Edit Wi-Fi",WiFiInsert:"Add Wi-Fi",UserSupportInsert:"Add user support contact",UserSupportRemove:"Remove user support contact",MaterialManagement:"Material Management",StreetSweeper:"Street Sweeper",OverTheAirUpdate:"Over-the-air update",DeviceShareViewed:"View data sharing",DeviceShareInsert:"Add data sharing",DeviceShareSet:"Edit data sharing",DeviceShareRemove:"Remove data sharing",RiskAnalytics:"Risk Analytics",RouteCompletion:"Route Completion",LiveCompletionConfigSet:"Edit Live Completion configuration",ReprocessRequestInsert:"Add reprocess request",ReprocessRequestSet:"Edit reprocess request",ReprocessRequestRemove:"Remove reprocess request",DeviceReprocessRequestInsert:"Add device reprocess request",DeviceReprocessRequestRemove:"Remove device reprocess request",DeviceReprocessRequestSet:"Edit device reprocess request",DeleteDatabase:"Delete database",UserHosRuleSetInsert:"Add user HOS ruleset",UserHosRuleSetRemove:"Remove user HOS ruleset",UserHosRuleSetSet:"Edit user HOS ruleset",DeviceDataPrivacyChangeInsert:"Add device data privacy change",StatusDataInsert:"Add status data",StatusDataSet:"Edit status data",UserDisplayProfileInsert:"Add user display profile",UserDisplayProfileRemove:"Remove user display profile",UserDisplayProfileSet:"Edit user display profile",DisplayMeasurementProfileInsert:"Add display measurement profile",DisplayMeasurementProfileRemove:"Remove display measurement profile",DisplayMeasurementProfileSet:"Edit display measurement profile",DisplayMeasurementProfileDetailInsert:"Add display measurement profile detail",DisplayMeasurementProfileDetailRemove:"Remove display measurement profile detail",DisplayMeasurementProfileDetailSet:"Edit display measurement profile detail",TripAnnotationInsert:"Add trip annotation",TripAnnotationSet:"Edit trip annotation",TripAnnotationRemove:"Remove trip annotation",GroupDeviceInsert:"Add device to group",GroupDeviceSet:"Edit group device",ExceptionEventAttachmentAdd:"Add exception event attachment",ExceptionEventAttachmentRemove:"Remove exception event attachment",ExceptionEventCommentAdd:"Add exception event comment",ExceptionEventEdit:"Edit exception event",AcceptSupportService:"Accept support services",BinaryDataFileView:"View binary data files",BinaryDataFileRemove:"Remove binary data file",BinaryDataFileInsert:"Add binary data file",BinaryDataFileSet:"Edit binary data file",BinaryDataFileUpload:"Upload binary data file",MaintenanceNotificationRuleRemove:"Remove maintenance notification rule",MaintenanceNotificationRuleInsert:"Insert maintenance notification rule",MaintenanceNotificationRuleSet:"Update maintenance notification rule",MaintenanceNotificationRuleView:"View maintenance notification rule",AreaActivity:"Area Activity",EntitySettingRemove:"Remove entity setting",EntitySettingInsert:"Insert entity setting",EntitySettingSet:"Update entity setting",DeviceDataPrivacyChangeSet:"Edit device data privacy change",DeviceDataPrivacyChangeRemove:"Remove device data privacy change",TachographInspectionRemove:"Remove tachograph inspection",TachographInspectionInsert:"Add tachograph inspection",TachographInspectionSet:"Update tachograph inspection",TachographActivitiesCertificateRemove:"Remove tachograph activities certificate",TachographActivitiesCertificateInsert:"Add tachograph activities certificate",TachographActivitiesCertificateSet:"Update tachograph activities certificate",TachographVehicleInspectionRemove:"Remove vehicle from tachograph inspection",TachographVehicleInspectionInsert:"Add vehicle to tachograph inspection",TachographCompanyCardRemove:"Remove tachograph company card",TachographCompanyCardInsert:"Add tachograph company card",TachographCompanyCardSet:"Update tachograph company card",AssetMonitoring:"Report: Asset Monitoring",PresetRemove:"Remove preset",PresetInsert:"Add preset",PresetSet:"Update preset",TachographDataFileInsert:"Add tachograph data file",TachographInfringementInsert:"Add tachograph infringement",UninstallAddIn:"Uninstall Add-In",EditAddIn:"Edit Add-In",InstallAddIn:"Install Add-In",EventDeviationInsert:"Snooze Event",LinkedAssetsHistory:"Report: Linked Assets History",ReportLinkedAssets:"Report: Linked Assets",ValidateIamUser:"User validated via IAM",InitializeIamPassword:"User initialized password via IAM",ChangeIamPassword:"Change IAM password",AceView:"View Ace",ColdChain:"Report: Cold Chain",EVChargeMonitoring:"Report: EV Charge Monitoring",SustainabilityOverview:"Sustainability Overview",FuelEnergyOverview:"Fuel and Energy Overview",ReportCollisionRisk:"Report: Collision Risk",CollisionRisk:"View Collision Risk",CancelReportProcessingRequest:"Canceled report processing",ReportMaintenanceWorkRequests:"Report: Maintenance work requests",ReportMaintenanceWorkJobs:"Report: Maintenance work jobs",ReportMaintenanceWorkOrders:"Report: Maintenance work orders",ReportMaintenanceSc
1hedules:"Report: Schedules",MaintenanceWorkRequestInsert:"Add maintenance work request",MaintenanceWorkRequestSet:"Edit maintenance work request",MaintenanceWorkRequestRemove:"Remove maintenance work request",MaintenanceWorkOrderJobInsert:"Add maintenance work order job",MaintenanceWorkOrderJobCanceledInsert:"Add maintenance work order job canceled",MaintenanceWorkOrderJobSet:"Edit maintenance work order job",MaintenanceWorkOrderJobCanceledSet:"Edit maintenance work order job canceled",MaintenanceWorkOrderJobRemove:"Remove maintenance order work job",MaintenanceWorkOrderInsert:"Add maintenance work order",MaintenanceWorkOrderCanceledInsert:"Add maintenance work order canceled",MaintenanceWorkOrderSet:"Edit maintenance work order",MaintenanceWorkOrderCanceledSet:"Edit maintenance work order canceled",MaintenanceWorkOrderRemove:"Remove maintenance work order",MaintenanceWorkRequestDetailsView:"View maintenance work request details",MaintenanceWorkOrderDetailsView:"View maintenance work order details",MaintenanceWorkOrderJobDetailsView:"View maintenance work job details",MaintenanceScheduleDetailsView:"View maintenance schedule details",MaintenanceScheduleArchive:"Maintenance schedule archived",MaintenanceScheduleUnarchive:"Maintenance schedule unarchived",MaintenanceScheduleDuplicate:"Maintenance schedule created via duplication",SmsNotificationsOptIn:"Opt-in for SMS notifications",SmsNotificationsOptOut:"Opt-out of SMS notifications",WhatsAppNotificationsOptIn:"Opt-in for WhatsApp notifications",WhatsAppNotificationsOptOut:"Opt-out of WhatsApp notifications",WhatsAppRateLimiterSource:"WhatsApp Rate Limiter",CombinedRateLimiterSource:"SMS/WhatsApp rate limiter",ServiceRuleArchive:"Service rule archived",ServiceRuleUnarchive:"Service rule unarchived",CtcCancelEnrollment:"Cancel Enrollment â Clean Truck Check solution",CtcRejectArchivedDeviceEnrollment:"Rejected archived device enrollment â Clean Truck Check solution",CtcScanAtNextIgnition:"Change Scan Frequency â Clean Truck Check solution",CtcCreateWorkOrder:"Work order created - Clean Truck Check solution",CtcCreateWorkRequest:"Work request created - Clean Truck Check solution",CtcNotifyDriver:"Driver notification created - Clean Truck Check solution",CtcChangeAutoManualSettings:"Auto/Manual settings changed - Clean Truck Check solution",CtcDownloadReport:"Download reports â Clean Truck Check solution",CtcComplianceGridView:"View compliance grid â Clean Truck Check solution",CtcAssetEnrollment:"Enrollment details - Clean Truck Check solution",CtcBulkEnrollUpload:"Bulk enroll upload - Clean Truck Check solution",CtcBulkEnrollment:"Bulk enroll - Clean Truck Check solution",CtcSelectAssetsEnrollView:"View assets enroll report - Clean Truck Check solution",CtcSelectAssetsFilterChanges:"View enrollments - Clean Truck Check solution",CtcAssetsEnrollmentAPI:"Enrollment details - Clean Truck Check API",CtcDownloadReportAPI:"Download report - Clean Truck Check API",CtcDownloadMultipleReportsAPI:"Download reports - Clean Truck Check API",CtcSetLoggingFrequency:"Set logging frequency - clean truck check API",CtcDisenrollDeviceAPI:"Disenroll Asset - Clean Truck Check API",CtcGetComplianceDeadlineAPI:"Get compliance deadline - Clean Truck Check API",CtcCreateWorkOrderAPI:"Create work order - Clean Truck Check API",CtcCreateWorkRequestAPI:"Create work request - Clean Truck Check API",CtcNotifyDriverAPI:"Notify driver - Clean Truck Check API",CtcSetWorkCreationTypeAPI:"Set work creation type - Clean Truck Check API",MaintenanceOverviewDowntimeCostSettingsUpdate:"Update downtime cost settings - Maintenance Overview API",DeviceCommunicationStatusSet:"Update device communication status",OemDeviceCommandSet:"Send Cold Chain OEM command",ViewLiveVideo:"View live video",VideoRuleChange:"Video rule change",ConfigurePublicWorksControllerView:"Viewed controller configuration",ConfigurePublicWorksController:"Set configuration",DownloadCamerasCsvReport:"Download cameras CSV report",DownloadRecordedVideo:"Download recorded video",CamerasPageVisited:"View Cameras",VideoRecordingsPageVisited:"View Video Recordings",VinInfoOverride:"VIN Information Override",SwapDevice:"Swap Device",AddInDeviceLinkInsert:"Enroll Device",AddInDeviceLinkRemove:"Unenroll Device",AddInDeviceLinkEdit:"Edit Device Enrollment",EnableAutoEnrollmentGroup:"Enable Auto Enrollment Group",DisableAutoEnrollmentGroup:"Disable Auto Enrollment Group",QueuedEntityRemoveTaskInsert:"Add background removal task",AddInAutoEnrollStatusSet:"Update Add-In Auto Enrollment Status",LostModeChangeInsert:"Add device Lost Mode change",LostModeChangeSet:"Edit device Lost Mode change",LostModeChangeRemove:"Remove device Lost Mode change",StolenVehicleRecordInsert:"Add stolen vehicle record",StolenVehicleRecordSet:"Edit stolen vehicle record",StolenVehicleRecordRemove:"Remove stolen vehicle record",InstallAuthorizationCodeInsert:"Add installation authorization code",InstallAuthorizationCodeSet:"Edit installation authorization code",InstallAuthorizationCodeExpire:"Expire installation authorization code",AssetLinkInsert:"Add asset link",AssetLinkSet:"Edit asset link",AssetLinkRemove:"Remove asset link",AssetLinkDetail
1sInsert:"Add asset link details",AssetLinkDetailsSet:"Edit asset link details",AssetLinkDetailsRemove:"Remove asset link details",InvestigationInsert:"Add investigation",InvestigationSet:"Edit investigation",InvestigationsPageVisited:"View investigations",InvestigationsPaginationChange:"View investigations",InvestigationDetailsPageVisited:"View investigation details",InvestigationAttachmentInsert:"Add investigation attachment",InvestigationAttachmentRemove:"Remove investigation attachment",InvestigationCommentInsert:"Add investigation comment",InvestigationCommentRemove:"Remove investigation comment",ReportDriverLogs:"Report: Driver Logs",ReportSingleDriverLogs:"Report: Driver Log Details",ConnectionsTabView:"View connections tab",ConnectionConnect:"Connection connected",ConnectionConnectFailed:"Connection failed to connect",ConnectionDisconnect:"Connection disconnected",ConnectionDisconnectFailed:"Connection failed to disconnect",ConnectionReconnect:"Connection reconnected",ConnectionReconnectFailed:"Connection failed to reconnect",RoleInsert:"Add role",RoleSet:"Edit role",RoleRemove:"Remove role",EvsaRequestInsert:"Add EV suitability assessment",EvsaRequestSet:"Update EV Suitability Assessment",EvsaRequestRemove:"Remove EV Suitability Assessment",GetCameraSettings:"Camera Services - get camera settings",SaveCameraSettings:"Camera Services - save camera settings",ChangeEventsSettings:"Camera Services - change events settings",GetVideoRequests:"Camera Services - get video requests",BulkChangeEventsSettings:"Camera Services - Bulk change events settings",FormatCameraStorage:"Camera Services - format camera storage",CalibrateDeviceAdas:"Camera Services - Surfsight calibrate ADAS",RebootCamera:"Camera Services - reboot camera",GetCameraConfiguration:"Camera Services - get camera configuration",AddDeviceMapping:"Camera Services - Add device mapping",UpdateDeviceMapping:"Camera Services - update device mapping",AddDeviceMappings:"Camera Services - Add device mappings",DeleteDeviceMapping:"Camera Services - delete device mapping",GetDeviceUsage:"Camera Services - get device usage",ChangeOrganizationDefaultDeviceSettings:"Camera Services - change organization default device settings",ChangeOrganizationDefaultEventSettings:"Camera Services - change organization default event settings",GetOrganizationDefaultEventSettings:"Camera Services - get organization default event settings",BulkImportCamera:"Camera Services - Bulk import camera",RequestVideo:"Camera Services - request video",ViewVideo:"Camera Services - view video",RequestLiveVideo:"Camera Services - request live video",AcceptEula:"Camera Services - Accept EULA",CameraRestrictedDataMode:"Camera Services - camera restricted data mode change",CameraVacationMode:"Camera Services - camera vacation data mode change",DatabaseMigration:"Camera Services - database migration",CalibrateDeviceAccelerometer:"Camera Services - Surfsight calibrate accelerometer",DeleteMediaRequest:"Camera Services - delete media request",GetOrganizationDefaultDeviceSettings:"Camera Services - get organization default device settings",GvpPartnerMigrationEnabled:"Enable partner camera migration",DocumentScanningInvoiceUpload:"Document scanning: invoice upload",DocumentScanningReview:"Document scanning: review",DocumentScanningVehicleAssignment:"Document scanning: vehicle assignment",DocumentScanningCreate:"Document scanning: entry created",DocumentScanningDelete:"Document scanning: entry deleted",DocumentScanningAcceptDuplicate:"Document scanning: accept duplicate",DocumentScanningDismiss:"Document scanning: work order discarded",WorkOrderDeletionLockAcquired:"Work order deletion lock acquired",WorkOrderDeletionLockReleased:"Work order deletion lock released",InspectedItemDefectStatusChange:"Inspected item defect status change",ReportXar:"Keurmerk XAR Report",ReportColdChainDeviceHistory:"Report: Cold Chain Device History Report",ReportCameras:"Report: camera report"},m={"View exception rules":"View Event Rules","Remove exception rule":"Remove event rule","Add exception rule":"Add event rule","Edit exception rule":"Edit event rule","Suspend Exception Rule":"Suspend event rule","Report: Exceptions Detail":"Report: Events Detail","Report: Exceptions Summary":"Report: Events Summary","Add exception event attachment":"Add event attachment","Remove exception event attachment":"Remove event attachment","Add exception event comment":"Add event comment","Edit exception event":"Edit event","Remove event":"Remove maintenance record","Add event":"Add maintenance record","Edit event":"Edit maintenance record","Skip event":"Skip maintenance record","Remove event rule":"Remove maintenance schedule rule","Add event rule":"Add maintenance schedule rule","View Event Rules":"View maintenance schedule rules","Edit event rule":"Edit maintenance schedule rule","Remove event type":"Remove maintenance type","Add event type":"Add maintenance type","Edit event type":"Edit maintenance type","Report: Device Event Rules":"Report: Device Maintenance Schedules"},g={SmsNotificationsOptIn:"{Username}
1 has opted in to receive SMS notifications.",SmsNotificationsOptOut:"{Username} has opted out of receiving SMS notifications.",WhatsAppNotificationsOptIn:"{Username} has opted in to receive WhatsApp notifications",WhatsAppNotificationsOptOut:"{Username} has opted out of receiving WhatsApp notifications"},S={GetCameraSettings:"Get camera settings",SaveCameraSettings:"Save camera settings",ChangeEventsSettings:"Change events settings",GetVideoRequests:"Get video requests",BulkChangeEventsSettings:"Bulk change events settings",FormatCameraStorage:"Format camera storage",CalibrateDeviceAdas:"Surfsight calibrate ADAS",RebootCamera:"Reboot camera",GetCameraConfiguration:"Get camera configuration",AddDeviceMapping:"Add device mapping",UpdateDeviceMapping:"Update device mapping",AddDeviceMappings:"Add device mappings",DeleteDeviceMapping:"Delete device mapping",GetDeviceUsage:"Get device usage",ChangeOrganizationDefaultDeviceSettings:"Change organization default device settings",ChangeOrganizationDefaultEventSettings:"Change organization default event settings",GetOrganizationDefaultEventSettings:"Get organization default event settings",BulkImportCamera:"Bulk import camera",RequestVideo:"Request video",ViewVideo:"View video",RequestLiveVideo:"Request live video",AcceptEula:"Accept EULA",CameraRestrictedDataMode:"Camera restricted data mode change",CameraVacationMode:"Camera vacation data mode change",DatabaseMigration:"Database migration",CalibrateDeviceAccelerometer:"Surfsight calibrate accelerometer",DeleteMediaRequest:"Delete media request",GetOrganizationDefaultDeviceSettings:"Get organization default device settings"},v=(e,t)=>{const i=S[e];return null!=i?i:y(e,t)},I=e=>{const t=p[e];return t.startsWith("Camera Services - ")?t:e},y=(e,t)=>{const i=p[e];if(!i||!t)return i;return t(r.u.EXCEPTION_TO_EVENTS)&&m[i]||i}},2808(e,t,i){i.d(t,{F:()=>y});var n={true:"yes",false:"no"},r={property:"IncludeHistoricData",values:n},o={showDismissedFault:{property:"ShowDismissedFaults",values:n},diagnostics:{property:"Diagnostics",type:"diagnostics"}},a={minCustomerStopDuration:{property:"IgnoreStopsShorterThan"},groupLevel:{property:"RunReportBy"},showHistoric:r,runBy:{property:"RunBy"},includeZeroDistanceTrips:{property:"IncludeZeroDistanceTrips",values:n}},s={maxStopTime:{property:"IgnoreStopsLongerThan"},showHistoric:r},l={property:"RunBy",values:{Driver:"Driver",Device:"Device"}},d={isSummary:{property:"ReportType",values:{true:"Summary",false:"Details"}},includeHistoric:r,entitySelectionType:{property:"RunBy",values:{Driver:"Driver",Device:"Vehicle"}},exceptionRules:{property:"Rules",type:"rules"},rules:{property:"Rules",type:"rules"}}
1,c={ExceptionsByDevice:d,ExceptionsByDriver:d,DVIRLogs:{dVIRLogsOption:{property:"RunReportBy",values:{All:"all",OnlyDefective:"OnlyDefective",OnlyRepaired:"OnlyRepaired",OnlyCertified:"OnlyCertified",RepairedAndCertified:"RepairedAndCertified"}},trailers:{property:"Trailers",type:"trailers"},showHistoric:r},EngineStatusFault:o,EngineStatusSummary:o,EngineStatusStatus:{diagnostics:{property:"Diagnostics",type:"diagnostics"}},ReportZoneVisits:{rules:{property:"Zones",type:"rules"}},HosLog:{usersFilter:{property:"Driver",type:"users"},includeSystemLogs:{property:"IncludeSystemLogs",values:n}},HosViolation:{userList:{property:"Driver",type:"users"}},HosAvailability:{userList:{property:"Driver",type:"users"}},Reminder:{dueDistance:{property:"mileage"},dueEngineHoursLimit:{property:"engineHours"},duePeriod:{property:"duePeriod"},eventRule:{property:"reminderRule",type:"maintenanceSchedules"},showHistoric:r},EventRules:{months:{property:"TimeBased",values:{true:"yes",false:"no"}},repeats:{property:"RepeatingEvents",values:{true:"yes",false:"no"}},nonRepeating:{property:"NonRepeatingEvents",values:{true:"yes",false:"no"}},kilometers:{property:"DistanceBased",values:{true:"yes",false:"no"}},engineHours:{property:"EngineHoursBased",values:{true:"yes",false:"no"}},eventTypeId:{property:"maintenanceType",type:"eventTypes"}},EventOccurrences:{showActiveOnly:{property:"ShowMaintenanceHistory",values:{true:"no",false:"yes"}},includeHistoricDevices:{property:"ShowHistoricVehicles",values:{true:"yes",false:"no"}},eventRules:{property:"reminderRule",type:"maintenanceSchedules"},eventTypes:{property:"maintenanceType",type:"eventTypes"},keywords:{property:"Search"}},MaintenanceWorkRequests:{isReviewed:{property:"reviewed",values:n},isSnoozed:{property:"snoozed",values:n},labels:{property:"labels",type:"eventTypes"},maintenanceTypes:{property:"maintenanceTypes",type:"eventTypes"},eventTypes:{property:"maintenanceType",type:"eventTypes"},keywords:{property:"Search"}},MaintenanceWorkJobs:{labels:{property:"labels",type:"eventTypes"},maintenanceTypes:{property:"maintenanceTypes",type:"eventTypes"},eventTypes:{property:"maintenanceType",type:"eventTypes"},eventRules:{property:"Schedule",type:"maintenanceSchedules"},keywords:{property:"Search"}},MaintenanceWorkOrders:{labels:{property:"labels",type:"eventTypes"},maintenanceTypes:{property:"maintenanceTypes",type:"eventTypes"},eventTypes:{property:"maintenanceType",type:"eventTypes"},keywords:{property:"Search"}},AssetMonitoring:{exported:{property:"assetMonitoringExported",values:{true:"yes",false:"no"}},exportType:{property:"assetMonitoringExportType"}},RiskManagement:{entityType:l,rules:{property:"Rules",type:"rules"},runGroupLevel:{property:"RunReportBy"},isNoDrivingActivityHidden:{property:"HideZeroDistanceRows",values:n},showHistoric:r},RouteSummaryReport:{routes:{property:"Routes",type:"routes"},runBy:{property:"RunBy",values:{devices:"Devices",routes:"Routes"}}},DeviceActivityDetail:s,DriverActivityDetail:s,DriverActivitySummary:a,DeviceActivitySummary:a,TimeCardCalculator:{entityType:l,calculateWorkTimesOnly:{property:"RunForWorkTimes",values:{true:"Device",false:"all"}},startDayFrom:{property:"startWorkingDayFrom"}},SpeedProfile:{showHistoric:r,speedDataProvider:{property:"SpeedDataProvider",values:{SpeedLimit:"all",SpeedLimitCommercial:"commercialData",SpeedLimitCommunity:"communityData"}}},Congregation:{maximumDistance:{property:"DistanceFromOneToAnother"},minimumOverlap:{property:"MinimumOverlapTime"},minimumCongregateDevices:{property:"MinimumNumberCongregationDevices"},zoneTypesExclusion:{property:"ExcludeStopsZoneTypes",type:"zoneTypes"}},DebugReport:{showHistoric:r},UnassignedRouteReport:{minimumPercentageStopTime:{property:"MinimumPercentageStopTime"}},TextMessages:{includeSystemMessages:{property:"SystemMessages",values:{true:"on",false:"off"}},onlyUndeliveredMessage:{property:"MessagesToShow",values:{true:"Undelivered",false:"all"}}},AuditLog:{auditTypes:{property:"AuditTypes",type:"auditTypes"},userNames:{property:"Users",type:"auditUserNames"}},FuelUpEvent:{showHistoric:r},Route:{routeType:{property:"RouteType",values:{Basic:"Routes",Plan:"RoutePlans"}}},SustainabilityOverview:{powertrain:{property:"Powertrain",type:"groups"}},FuelEnergyOverview:{powertrain:{property:"Powertrain",type:"groups"}},CtcSelectAssetsFilterChanges:{assetSearch:{property:"Asset Search"},enrollmentStatus:{property:"Enrollment Status"},assetTypes:{property:"Asset Types",type:"groups"},powertrain:{property:"Powertrain",type:"groups"}},ReportDriverLogs:{statuses:{property:"Statuses"},rulesets:{property:"Rulesets"},showArchived:{property:"showHistoricalText",values:n}},ReportSingleDriverLogs:{driver:{property:"Driver"},recordTypes:{property:"Record type"}}};var u=i(7115),h=i(44654),p=i(4981),m=i(66630),g=i(490),S=i(47154),v=i(78011),I=i(8515);function y(e,t,i=!1){var n={DeviceActivitySummary:u.cL.ReportTripsSummary,DriverActivitySummary:u.cL.ReportTripsSummary,RouteActivitySummary:u.cL.ReportTripsSummary,RouteComparisonDetailReport:u.cL.ReportRouteComparisonDetail,RouteSummaryReport:u.cL.ReportRouteSummary,UnassignedRouteReport:u.cL.ReportUnassignedRoute,ExceptionsByDevice:u.cL.ReportExceptionsSummary,ExceptionsByDriver:u.cL.ReportExceptionsSummary,EngineStatusSummary:u.cL.ReportEngineSummary,EngineStatusFault:u.cL.ReportEngineFault,FaultCycles:u.cL.ReportFaultCycles,EngineStatusStatus:u.cL.ReportEngineStatus,EngineStatusStatistics:u.cL.ReportEngineStatusStatistics,ChargeEvent:u.cL.ReportChargeEvent,Reminder:u.cL.ReportReminders,EventOccurrences:u.cL.ReportEventHistory,RiskManagement:u.cL.ReportRiskManagement,Congregation:u.cL.ReportCongregation,TimeCardCalculator:u.cL.ReportTimeCard,FuelTaxDeviceReport:u.cL.ReportFuelTax,FuelTaxDriverReport:u.cL.ReportFuelTax,DebugReport:u.cL.ReportDebug,HosLog:u.cL.ReportHosLogs,HosViolation:u.cL.ReportHosViolation,HosAvailability:u.cL.ReportHosAvailability,DVIRLogs:u.cL.ReportDVIRLog,DeviceInstallHistory:u.cL.ReportDeviceInstallHistory,DeviceActivityDetail:u.cL.ReportTripsDetail,DriverActivityDetail:u.cL.ReportTripsDetail,RouteActivityDetail:u.cL.ReportTripsDetail,DiagnosticList:u.cL.ReportDiagnosticList,DeviceReportCalculator:u.cL.ReportDevice,RouteDirection:u.cL.ReportRouteDirection,Notifications:u.cL.ReportNotification,AuditLog:u.cL.ReportAuditLog,FillUps:u.cL.ReportFillUps,EventRules:u.cL.ReportEventRuleDevice,Device:u.cL.DeviceView,Trailer:u.cL.TrailerView,TextMessage:u.cL.GpsTextMessageView,ZoneType:u.cL.ZoneTypeView,Zone:u.cL.ZoneView,ZoneList:u.cL.ZoneView,Group:u.cL.NodeView,GroupCalculator:u.cL.NodeView,User:u.cL.UserView,Diagnostic:u.cL.DiagnosticView,"Engine.Diagnostic":u.cL.DiagnosticView,FailureMode:u.cL.FailureModeView,"Engine.FailureMode":u.cL.FailureModeView,Route:u.cL.RouteView,Rule:u.cL.ExceptionRuleView,"Exceptions.Rule":u.cL.ExceptionRuleView,DistributionList:u.cL.DistributionListView,WorkTime:u.cL.WorkTimesView,WorkHoliday:u.cL.WorkHolidaysView,EngineType:u.cL.EngineTypeView,"Engine.EngineType":u.cL.EngineTypeView,NotificationTemplate:u.cL.NotificationTemplateView,FillUpsGraph:u.cL.FillUpsGraph,ReportTemplate:u.cL.ExcelReportView,Dashboard:u.cL.DashboardView,ReportSpeedProfile:u.cL.ReportSpeedProfile,UserList:u.cL.ReportUserList,TextMessages:u.cL.GpsTextMessageView,EmailSent:u.cL.EmailSent,MaterialManagement:u.cL.MaterialManagement,RouteCompletion:u.cL.RouteCompletion,LiveC
1ompletionConfigSet:u.cL.LiveCompletionConfigSet,AreaActivity:u.cL.AreaActivity,EVBatteryHealth:u.cL.ReportEVBatteryHealth,BEVRangeCapability:u.cL.ReportBEVRangeCapability,AssetMonitoring:u.cL.AssetMonitoring,ReportLinkedAssets:u.cL.ReportLinkedAssets,ColdChain:u.cL.ColdChain,CleanTruckCheck:u.cL.ReportCleanTruckCheck,EVChargeMonitoring:u.cL.EVChargeMonitoring,SustainabilityOverview:u.cL.SustainabilityOverview,FuelEnergyOverview:u.cL.FuelEnergyOverview,ReportCollisionRisk:u.cL.ReportCollisionRisk,CollisionRisk:u.cL.CollisionRisk,CancelReportProcessingRequest:u.cL.CancelReportProcessingRequest,MaintenanceWorkRequests:u.cL.ReportMaintenanceWorkRequests,MaintenanceWorkJobs:u.cL.ReportMaintenanceWorkJobs,MaintenanceWorkOrders:u.cL.ReportMaintenanceWorkOrders,MaintenanceSchedules:u.cL.ReportMaintenanceSchedules,CtcCancelEnrollment:u.cL.CtcCancelEnrollment,CtcRejectArchivedDeviceEnrollment:u.cL.CtcRejectArchivedDeviceEnrollment,CtcScanAtNextIgnition:u.cL.CtcScanAtNextIgnition,CtcDownloadReport:u.cL.CtcDownloadReport,CtcComplianceGridView:u.cL.CtcComplianceGridView,CtcAssetEnrollment:u.cL.CtcAssetEnrollment,CtcBulkEnrollUpload:u.cL.CtcBulkEnrollUpload,CtcBulkEnrollment:u.cL.CtcBulkEnrollment,CtcSelectAssetsEnrollView:u.cL.CtcSelectAssetsEnrollView,CtcSelectAssetsFilterChanges:u.cL.CtcSelectAssetsFilterChanges,CtcAssetsEnrollmentAPI:u.cL.CtcAssetsEnrollmentAPI,CtcDownloadReportAPI:u.cL.CtcDownloadReportAPI,CtcDownloadMultipleReportsAPI:u.cL.CtcDownloadMultipleReportsAPI,CtcSetLoggingFrequency:u.cL.CtcSetLoggingFrequency,CtcDisenrollDeviceAPI:u.cL.CtcDisenrollDeviceAPI,CtcGetComplianceDeadlineAPI:u.cL.CtcGetComplianceDeadlineAPI,OemDeviceCommandSet:u.cL.OemDeviceCommandSet,ConfigurePublicWorksControllerView:u.cL.ConfigurePublicWorksControllerView,MaintenanceWorkRequestDetailsView:u.cL.MaintenanceWorkRequestDetailsView,MaintenanceWorkOrderDetailsView:u.cL.MaintenanceWorkOrderDetailsView,MaintenanceWorkOrderJobDetailsView:u.cL.MaintenanceWorkOrderJobDetailsView,MaintenanceScheduleDetailsView:u.cL.MaintenanceScheduleDetailsView,EVPerformance:u.cL.ReportEVPerformance,ReportDriverLogs:u.cL.ReportDriverLogs,ReportSingleDriverLogs:u.cL.ReportSingleDriverLogs,AssetUtilization:u.cL.ReportAssetUtilization,AssetUtilizationView:u.cL.AssetUtilizationView,BarCtp:u.cL.ReportBarCtp,Xar:u.cL.ReportXar,StreetSweeper:u.cL.StreetSweeper,Cameras:u.cL.ReportCameras,Investigations:u.cL.InvestigationsPageVisited,InvestigationsPaginationChange:u.cL.InvestigationsPaginationChange},r={groups:(e,i,n)=>(0,p.hr)(n.id)?Promise.resolve({id:n.id,name:(0,p.If)({id:n.id,name:n.id},t)}):e.groups.getItemById(n.id),rules:(e,i,n)=>{var r=(0,g.qz)(n,t);return r?Promise.resolve({id:n.id,name:r}):e.rules.getItemById(n.id)},auditTypes:(e,i,n)=>Promise.resolve({name:t(n)}),auditUserNames:(e,t,i)=>Promise.resolve({name:i}),zoneTypes:(e,i,n)=>{var r=(0,S.mn)(n,t);return r?Promise.resolve({id:n,name:r}):e.zoneTypes.getItemById(n.id)},sources:(e,i,n)=>Promise.resolve({id:n.id,name:t(n.id)}),eventTypes:(e,i,n)=>{var r;const o=null!==(r=n.id)&&void 0!==r?r:n,a=(0,g.Bf)(o,t);return a!==o?Promise.resolve({id:o,name:a}):e.eventTypes.getItemById(o)},def:(e,t,i)=>i.name?Promise.resolve(i):e[t].getItemById(i.id)},o=e=>!!e.relation&&!!e.groupFilterConditions,a=function(e,t,i){var n=r[e]||r.def;if((0,v.qV)(t))return n(i,e,{id:t.groupId}).then((e=>[e]));if(o(t)){let r=(e=>{const t=(e,i)=>e.groupFilterConditions.reduce(((e,i)=>(o(i)?t(i,e):e[i.groupId]={id:i.groupId},e)),i);return t(e,{})})(t);return Promise.all(Object.keys(r).map((t=>n(i,e,r[t])))).then((e=>(e.forEach((e=>r[e.id]=e)),((e,t)=>{const i=e=>{let n=e.groupFilterConditions.map((e=>o(e)?i(e):t(e)));return Object.assign(Object.assign({},e),{groupFilterConditions:n})};return i(e)})(t,(e=>Object.assign(Object.assign({},e),{name:r[e.groupId].name}))))))}return Promise.all(t.filter(h.WI).map((t=>n(i,e,t))))},s=e=>{var t;return!!e&&(null===(t=e.groupFilterConditions)||void 0===t?void 0:t.length)},l=e=>"string"==typeof e?e:e.toISOString(),d=function(n,r,d,u){var p;const g=()=>{M&&(M.indexOf("Driver")>=0?y+=V(y,"EntityType","Driver"):M.indexOf("Device")>=0&&(y+=V(y,"EntityType","Device")))};var S,y="",f=(e,t,i)=>({type:e,comment:i,ids:t}),D=(e,t,i)=>({type:e,comment:i,ids:t}),C=[],R=n.search,T=n.fromUtc,b=n.toUtc,w=n.devices,A=n.drivers,E=n.sources,k=n.groups,O=n.groupFilterCondition,M=(e=>e.reportArgumentType||e.typeName)(n),L=(e=>e?(0,m.ey)(e.template||e,t,!1,i):t("HTMLReport"))(r),P=t("ID"),F=c[M],x=n.bounds,N=e=>e.length?", ":"",B=(e,i)=>{var n="",r=0;return Array.isArray(i)?(r=i.length,n=i.slice(0,50).filter(h.WI).map((e=>e.name?`${e.name}${e.id?` (${P}: ${e.id})`:""}`:e.id||e)).join("; "),r>50&&(n+=" "+t("AndMore").replace("{0}",(r-50).toString()))):n=t(i),t(e)+": "+n},U=(e,i)=>{const n=e=>e.map((e=>o(e)?r(e):(e=>e.name?`${e.name}${e.groupId?` (${P}: ${e.groupId})`:""}`:e.groupId)(e))),r=e=>{let i=t(e.relation===I.$.AND?"AND":"OR"),r=n(e.groupFilterConditions);return r.length>1?`(${r.join(` ${i} `)})`:r[0]||""};return`${t(e)}: ${r(i)}`},H=(e,t)=>e[t]?[e[t]]:null,V=(e,t,i)=>N(e)+B(t,i);R&&(T=R.fromDate,b=R.toDate,w=H(R,"deviceSearch")||w,R.deviceSearch&&R.deviceSearch.deviceIds&&(w=null===(p=H(H(R,"deviceSearch"),"deviceIds"))||void 0===p?void 0:p.map((e=>({id:e})))),A=H(R,"driverSearch"),E=H(R,"sourceSearch"),k=(S=R).groups||(S.groupSearch?[S.groupSearch]:null),O=R.groupFilterCondition),y+=((e,i,n)=>{if(e)return i&&n?t("DeviceActivitySummary"===e||"DriverActivitySummary"===e?"RanReportSummary":"RanReportFromTo").replace("{0}",l(i)).replace("{1}",l(n)):t("RanReport");return i&&n?t("FromTo").replace("{0}",l(i)).replace("{1}",l(n)):""})(M,T,b),x&&function(){const e=[x.ne.lng,x.ne.lat,x.sw.lng,x.sw.lat];y+=V(y,"Viewport",`(${e.map((e=>e.toFixed(6))).join(",")})`)}(),O&&(s(O)||(0,v.qV)(O))?(C.push(D("groups",O,"Groups")),g()):k&&k.length&&(C.push(f("groups",k,"Groups")),g()),w&&w.length&&w[0].id&&C.push(f("devices",w,"Devices")),A&&A.length&&C.push(f("users",A,"Drivers")),E&&E.length&&C.push(f("sources",E,"DiagnosticSource")),F&&Object.keys(F).forEac
1h((function(e){var t=F[e],i=n[e];null!=i&&(t.type?o(i)?C.push(D(t.type,i,t.property)):C.push(f(t.type,Array.isArray(i)?i:[i],t.property)):Array.isArray(i)?i.length&&(y+=V(y,t.property,i)):t.values&&t.values[i]?y+=V(y,t.property,t.values[i]):y+=V(y,t.property,i.id?i.id:i))}));let _=Promise.resolve(y);return C.length&&(_=_.then((t=>Promise.all(C.filter((e=>Array.isArray(e.ids)?e.ids.length:(0,v.qV)(e.ids)||s(e.ids))).map((t=>a(t.type,t.ids,e).then((e=>o(e)?U(t.comment,e):B(t.comment,e)))))).then((e=>e.reduce(((e,t)=>e+N(e)+t),t)))))),_.then((e=>{let i=e;if(n.customMessage&&(i+=N(i)+n.customMessage),n.estimateRunTime){let e=t(n.estimateRunTime>1?"fullSeconds":"fullSecond");i+=N(i)+t("EstimateRunTime")+": "+n.estimateRunTime+" "+e}return u&&(i+=N(i)+t("ReportTemplate")+": "+L),d&&(i+=N(i)+t("Type")+": "+d),i}))};return{audit:function(t,i,r){var o=void 0;if(t){let a=function(e){let t=e.reportArgumentType||e.typeName;return n[t]||""}(t);a&&(o=d(t,i,r,!!i).then((t=>e.auditLogs.addItem({name:a,comment:t}))))}return o||Promise.resolve("")},customAudit:function(t,i){return i?d(i).then((i=>e.auditLogs.addItem({name:t,comment:i}))):e.auditLogs.addItem({name:t})}}}},38514(e,t,i){i.d(t,{$K:()=>h,$O:()=>u,AG:()=>b,CN:()=>l,Cr:()=>k,Cu:()=>A,El:()=>M,H$:()=>F,Hk:()=>g,Hq:()=>w,LQ:()=>L,LR:()=>o,Lm:()=>P,Nl:()=>B,O0:()=>s,S5:()=>H,WP:()=>p,Yi:()=>n,Z4:()=>f,Zt:()=>S,_G:()=>c,_s:()=>N,a9:()=>v,aR:()=>E,bj:()=>x,gV:()=>m,gZ:()=>y,hF:()=>r,io:()=>R,jl:()=>T,kP:()=>a,lj:()=>C,m6:()=>d,oU:()=>O,qi:()=>D,v4:()=>I,zz:()=>U});const n="RefrigerationUnitControllerProtocolId",r="RefrigerationUnitEngineHoursId",o="RefrigerationUnitElectricRunHoursId",a="RefrigerationUnitOperationModeId",s="RefrigerationUnitSetTemperatureZone1Id",l="RefrigerationUnitSetTemperatureZone2Id",d="RefrigerationUnitSetTemperatureZone3Id",c="RefrigerationUnitStatusId",u="DiagnosticExternalDeviceIOXColdChainId",h="DiagnosticExternalDeviceIntendiaId",p="DiagnosticIOXColdConnectionStatusId",m="DiagnosticIOXColdRuggedConnectionStatusId",g=4200,S=4241,v="GroupColdChainId",I=10202,y=3,f="DiagnosticCargoTemperatureZone1Id",D="DiagnosticCargoTemperatureZone2Id",C="DiagnosticCargoTemperatureZone3Id",R="DiagnosticDoor1StatusId",T="DiagnosticDoor2StatusId",b="RefrigerationUnitDischargeTemperatureZone1Id",w="RefrigerationUnitDischargeTemperatureZone2Id",A="RefrigerationUnitDischargeTemperatureZone3Id",E={isDirectionToVehicle:!0},k={contentType:"ColdChainFaultClearContent",binaryDataPacketDelay:"00:00:03.0000000"},O=(new Set([6]),new Map([[6,1044]])),M=new Map([[6,355]]),L={isDirectionToVehicle:!0},P={contentType:"ColdChainSetpointSetContent",binaryDataPacketDelay:"00:00:03.0000000"},F=new Set([6]),x=new Set([6,7,16,17,18]),N={contentType:"MimeContent",mimeType:"cmd"},B=[f,D,C,s,l,d],U=[...B,c,R,T,b,w,A],H=[c,R,T]},39326(e,t,i){i.d(t,{Ay:()=>v,LA:()=>g});var n=i(44654),r=i(89713),o=i(5108),a=i(12444),s=i(92191),l=i(47154),d=i(94357),c=i(4981),u=i(490),h=i(78011),p=i(65872),m=i(57173);let g={GROUPS:1,DRIVERS:2,ASSETS:4,ZONES:8,ADDRESSES:16,ROUTES:32,MISC:64,USERS:128,TRAILERS:256,RULES:512,DIAGNOSTICS:1024,ROUTEPLAN:2048,ZONETYPES:4096,CLEARANCES:8192,MAINTENANCESCHEDULES:16384,EVENTTYPES:32768,MAPPEDDIAGNOSTICS:65536,VEHICLES:131072},S=e=>"number"==typeof e?e:g[e];function v(e,t,i){let v=(window.geotab&&geotab.getSharedVariable&&geotab.getSharedVariable("default").localizer||{}).translateKey||(e=>e),y=e=>v(e)||e,f=t;const D=(0,m.Cw)();let C=(e,t)=>t&&t.strings&&t.strings[e],R=C("entireOrganizationText",i)||"***Company group",T=C("itemsOfTypeNotFoundText",i)||"Some items of type '{0}' couldn't be found: {1}",b=C("typeIsNotSupportedText",i)||"'{0}' type is not supported!",w=function(e,t,i,n){let o=(0,r.wj)((0,c.If)(e,y),e.entityId||(e.id?e.id:void 0),void 0===t?null:t,[],g.GROUPS,e.color,n,void 0,void 0,e.isGlobalReportingGroup);if(i&&(o=i(o,e)||o),e.children=e.children||e.groups,e.children)for(let t=0;t<e.children.length;t++){let n=w(e.children[t],o,i,e.children[t].parent);o.groups.push(n)}return o},A=function(e,t,i,o,a,s,l){let d=(0,r.wj)(e,t,null,[],i,null,null,!0),c=a||n.WI;for(let e=0;e<o.length;
1e++){let t=o[e],n=(0,r.wj)(s?s(t):t.name,"string"==typeof t?t:t.id,d,[],i,null,null,void 0,l&&l(t)),a=c(n,t);!1!==a&&d.groups.push(a||n)}return d},E=(e,t)=>A(y("Drivers"),"DRIVERS",g.DRIVERS,e,t,(e=>(0,d.vD)(e,y))),k=(e,t)=>A(y("Diagnostics"),"DIAGNOSTICS",g.DIAGNOSTICS,e,t);const O=e=>e.driverGroups&&g.DRIVERS;let M=(e,t)=>A(y("Users"),"USERS",g.USERS,e,t,d.UY,O),L=(e,t)=>A(y("Devices"),"ASSETS",g.ASSETS,e,t),P=(e,t)=>A(y("Vehicles"),"VEHICLES",g.VEHICLES,e,t),F=(e,t)=>A(y("ZoneTypes"),"ZONETYPES",g.ZONETYPES,e,t),x=(e,t)=>A(y("Zones"),"ZONES",g.ZONES,e,t),N=(e,t)=>A(y("Routes"),"ROUTES",g.ROUTES,e,t,void 0,(e=>e&&e.device?g.ROUTEPLAN:g.ROUTES)),B=(e,t)=>A("Misc","MISC",g.MISC,e,t),U=(e,t)=>A(y("Trailers"),"TRAILERS",g.TRAILERS,e,t),H=(e,t)=>A(y("Rules"),"RULES",g.RULES,e,t),V=(e,t)=>(e.forEach((e=>{e.name=(0,c.If)(e,y)})),A(y("Clearances"),"CLEARANCES",g.CLEARANCES,e,t)),_=(e,t)=>A(y("Event Rules"),"MAINTENANCESCHEDULES",g.MAINTENANCESCHEDULES,e,t),W=(e,t)=>A(y("Event Types"),"EVENTTYPES",g.EVENTTYPES,e,t),q=(e,t)=>A(y("Mapped diagnostics"),"MAPPEDDIAGNOSTICS",g.MAPPEDDIAGNOSTICS,e,t),G=[],j=function(t,i,r,o,a,l,c){let u,h={typeName:"User",resultsLimit:D,search:t||{}};if(l.includeHistoric&&!l.fromDate||(h.search.fromDate=l.fromDate||(new Date).toISOString()),a){let t=(e=>(0,n.Am)(e.trim().split(/\s+/).map((e=>`%${e}%`))))(a),i=(0,s.X$)(!0,{},h);i.search.keywords=t,u=e.call("Get",i)}else u=e.call("Get",h);return u.beginInvoke((function(e){let t=(0,n.V3)(e);if(l.usersFilter&&(t=t.filter(l.usersFilter)),!l.includeHistoric&&!l.fromDate){let e=new Date;t=t.filter((t=>new Date(t.activeFrom)<e))}a&&(t=t.filter((e=>(0,d.wY)(e,a)))),i(c(t||[],o))}),r)},z=function(t,r,o,s,l){return e.call("Get",{typeName:"Group"}).beginInvoke((function(e){let r=e;l&&l.filterGlobalReportingGroups&&(r=e.filter((e=>!e.isGlobalReportingGroup)));let d=(0,a.YD)(r);(null==i?void 0:i.userScope)&&!(0,n.je)(i.userScope)&&(d=(0,a.lx)(d,i.userScope,d)),(0,n.je)(G)||(d=(0,a.lx)(d,G,d)),s&&(d=(0,a.TR)(d,[{id:"!GroupCompanyId",name:s.toLowerCase()}],((e,t)=>!(!e||-1===(0,c.If)(t,y).toLowerCase().indexOf(e[0].name)))));let u=1===d.length?d[0]:{children:d,id:"-GroupCompanyId",name:R,isMockRoot:!0,parent:void 0},h=w(u,null,o,u.parent);t(h)}),r)},$=function(e,t,i,n,r){let o=Object.assign({isDriver:!0},(0,h.bq)(G,"driverGroups"));return j(o,e,t,i,n,r,E)},Z=function(t,i,r,a,s){let l={typeName:"Diagnostic",resultsLimit:s.requestQuota||D,search:{}};return a&&(l.search.name=`%${a}%`),(0,o.FM)(Promise.resolve().then((()=>s.availableDiagnostics?new Promise(((t,i)=>{s.availableDiagnostics?e.call("Get",{typeName:"EntitySetting",search:{key:"diagnostics.ActiveIds",entityType:"Global"}}).beginInvoke((e=>t(JSON.parse(e[0].settingValue))),i):t([])})).catch((e=>(console.error("Failed to load available diagnostics",e),[]))).then((e=>{const t=I;return e&&0!==e.length?e.length<t.length?[...new Set([...e,...t])]:e:t})):[])).then((e=>{if(e&&e.length>0)return[Object.assign(Object.assign({},l),{search:Object.assign(Object.assign({},l.search),{ids:e})})];let t=s.sourceSearch||[],i=s.diagnosticTypeSearch||[];return t.length>0||i.length>0?[...i.map((e=>Object.assign(Object.assign({},l),{search:Object.assign(Object.assign({},l.search),{diagnosticType:e})}))),...t.map((e=>Object.assign(Object.assign({},l),{search:Object.assign(Object.assign({},l.search),{sourceSearch:{id:e}})})))]:[l]})).then((t=>new Promise(((i,o)=>{t.reduce(((e,t)=>e.andAlso?e.andAlso("Get",t):e.call("Get",t)),e).beginInvoke((function(e){let t=(0,n.ZP)(e||[]);t.sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0));let o=k(t,r);i(o)}),o)})))).then(t,i))},J=function(t,i,r,o,s,l,d){let c={typeName:"Device",search:Object.assign(Object.assign({},(0,h.bq)(l||G,"groups")),{fromDate:s.includeHistoric?a.Rv:s.fromDate||(new Date).toISOString(),excludeUntrackedAssets:void 0,keywords:void 0,billingLevelSearch:void 0}),resultsLimit:s.requestQuota||D,sort:s.sort||void 0,propertySelector:s.propertySelector||void 0};return s.excludeUntrackedAssets&&(c.search.excludeUntrackedAssets=!0),o&&(c.search.keywords=(e=>(0,n.Am)(e.split(",").map((e=>e.trim())).filter((e=>e.length))))(o).map((e=>`%${e}%`))),s.billingLevelSearch&&(c.search.billingLevelSearch=s.billingLevelSearch),e.call("Get",c).beginInvoke((function(e){let i=(0,n.V3)(e||[]).sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0));t((d||L)(i,r))}),i)},K=function(e,t,i,n,r){const o=(0,c.sm)((0,p.tT)(G));return J(e,t,i,n,r,o,P)},Y=function(t,i,n,r){let o=Object.assign(Object.assign({},(0,h.bq)(G,"groups")),{name:void 0});return r&&(o.name=`%${r}%`),e.call("Get",{typeName:"Trailer",resultsLimit:D,search:o},!0).beginInvoke((function(e){let i=U(e||[],n);t(i)}),i)},Q=function(t,i,n,r){let o={name:r&&`%${r}%`||void 0};return e.call("Get",{typeName:"ZoneType",resultsLimit:D,search:o},!0).beginInvoke((function(e){let i=(r||"").toLowerCase(),o=(0,l.yI)(e||[],y,(e=>-1!==e.toLowerCase().indexOf(i))),a=F(o||[],n);t(a)}),i)},X=function(t,i,r,o,a){let s=o&&o.trim()?o:"",l=Object.assign({status:a.status?a.status:void 0,baseType:a.baseType?a.baseType:void 0,category:a.category?a.category:"UserExceptionRules",name:`%${s}%`},(0,h.bq)(G,"groups"));a.includeZoneStopRules&&(l.includeZoneStopRules=!0),a.zoneTypes&&(l.zoneTypes=a.zoneTypes);let d={typeName:"Exceptions.Rule",resultsLimit:D,search:l},c=a&&a.getStockRules?a.getStockRules():[];return(0,n.is)(c.reduce(((t,i)=>(0,n.is)(t,e,"GetStockRuleTemplate",{stockRuleDefinition:i})),null),e,"Get",d).beginInvoke((function(e){let i=Array.isArray(e)?(0,n.ZP)(e.filter(n.WI)):[],o=s?s.toLowerCase():void 0,a=o&&c.length?i.filter((e=>e&&e.name&&-1!==e.name.toLowerCase().indexOf(o))):i,l=H(a,r);t(l)}),i)},ee=(e,t,i,n,r)=>{let o=(0,h.bq)(G,"companyGroups");return j(o,e,t,i,n,r,M)},te=function(t,i,n,r){let o=Object.assign(Object.assign({},(0,h.bq)(G,"groups")),{name:`%${r}%`});return e.call("Get",{typeName:"Zone",resultsLimit:D,search:o}).beginInvoke((function(e){let i=x(e||[],n);t(i)}),i)},ie=function(t,i,n,r,o){var a;const s=new Date;s.setMonth(s.getMonth()-6);let l={typeName:"Route",search:{zoneSearch:(0,h.bq)(G,"groups"),fromDate:s.toISOString(),name:`%${r}%`},resultsLimit:null!==(a=o.resultsLimit)&&void 0!==a?a:5e3};
1return o.routeType&&(l.search.routeType=o.routeType),e.call("Get",l).beginInvoke((function(e){let i=N(e||{},n);t(i)}),i)},ne=function(e,t,i,n){return function(t){let a=B(t||{},i);if(n){let e=(0,r.$B)(a,null,n,!0);if(!a)throw new Error("Group not found");a=e}return a.groups=a.groups.slice(0,D),e(a),(0,o.Ay)("Misk load").resolve(a)}(f)},re=function(t,i,n,r){return e.call("Get",{typeName:"Group",search:{id:"GroupSecurityId"}}).beginInvoke((function(e){let i=(e||[]).filter((e=>{let t=(e.name?e.name:y(e.id)).toLowerCase(),i=(r||"").toLowerCase();return-1!==t.indexOf(i)})),o=V(i,n);t(o)}),i)},oe=function(t,i,n,r){return e.call("Get",{typeName:"EventType"}).beginInvoke((function(e){let i=e.map((e=>e.name?e:{name:(0,u.Bf)(e,y),id:e})).filter((e=>-1!==e.name.toLowerCase().indexOf(r.toLowerCase()))).sort(((e,t)=>e.name>t.name?1:t.name>e.name?-1:0));t(W(i,n))}),i)},ae=function(t,i,n,r,o){let a={typeName:"MaintenanceSchedule",resultsLimit:D,search:Object.assign({eventTypeIds:o.evenTypeIds?o.evenTypeIds():void 0},o.groups&&Object.assign({},(0,h.bq)(o.groups(),"groups")))};return e.call("Get",a).beginInvoke((function(e){if(o.includeUnplannedMaintenance){let t={id:"UnplannedMaintenance",name:y("UnplannedMaintenance")};e.push(t)}let i=e.filter((e=>-1!==e.name.toLowerCase().indexOf(r.toLowerCase()))).sort(((e,t)=>e.name.localeCompare(t.name)));t(_(i,n))}),i)},se=function(t,i,n,r){let o=r?r.trim():"";return e.call("Get",{typeName:"MappedDiagnostic"}).beginInvoke((e=>{let i=e.filter((e=>e.name.toLowerCase().includes(o.toLowerCase())));t(q(i,n))}),i)},le={[g.GROUPS]:{methodName:"Group",formatter:function(e,t){return w({children:e,entityId:"GroupCompanyId",name:"**Org**"},null,t)},getMethod:z},[g.DRIVERS]:{formatter:E,methodName:"User",getMethod:$},[g.DIAGNOSTICS]:{formatter:k,methodName:"Diagnostic",getMethod:Z},[g.ASSETS]:{formatter:L,methodName:"Device",getMethod:J},[g.ZONETYPES]:{formatter:F,methodName:"ZoneType",getMethod:Q},[g.TRAILERS]:{formatter:U,methodName:"Trailer",getMethod:Y},[g.RULES]:{formatter:H,methodName:"Exceptions.Rule",getMethod:X},[g.ZONES]:{formatter:x,methodName:"Zone",getMethod:te},[g.ROUTES]:{formatter:N,methodName:"Route",getMethod:ie},[g.USERS]:{formatter:M,methodName:"User",getMethod:ee},[g.MISC]:{formatter:B,methodName:null,getMethod:ne},[g.CLEARANCES]:{formatter:V,methodName:"SecurityGroups",getMethod:re},[g.MAINTENANCESCHEDULES]:{formatter:_,methodName:"MaintenanceSchedule",getMethod:ae},[g.EVENTTYPES]:{formatter:W,methodName:"EventType",getMethod:oe},[g.MAPPEDDIAGNOSTICS]:{formatter:q,methodName:"MappedDiagnostic",getMethod:se},[g.VEHICLES]:{formatter:P,methodName:"Device",getMethod:K}},de=function(){let e=["GroupCompanyId"];return t=>-1!==e.indexOf(t)}(),ce={getFor:function(e){let t=S(e);if(le[t])return le[t].getMethod;throw new Error(`"${e}" type is not supported!`)},getEntitiesOfType:(e,t,i,n)=>ce.getFor(e)(t,i,n,null,{}),getEntitiesById:function(t,i,n,r,o){let l,d,c=[],u=S(t),h=i.slice(),p=function(e,t,i,n){t.reduce((function(t,i,n){return e.splice(n+t,0,i),t+1}),0);let r=(a=e,(Array.isArray(a)?a:[a]).filter((e=>!e||"object"==typeof e&&!Object.keys(e).length)));var a;r.length?n((0,s.X$)(new Error(T.replace("{0}",d||"misc").replace("{1}",r.join(", "))),{isSevere:!1})):i(l(Array.isArray(e)?e:[e],o))};if(!le[u])throw new Error(b.replace("{0}",t));if(d=le[u].methodName,l=le[u].formatter,d){for(let e=0;e<h.length;e++){let t=h[e];de(t)&&(c[e]={id:t},h.splice(e,1),e--)}return h.length?void h.reduce((function(e,t){return(e.call||e.andAlso).call(e,"Get",{typeName:d,search:{id:t}})}),e).beginInvoke((e=>p((0,a.jV)(e),c,n,r)),r):void setTimeout((function(){p([],c,n,r)}),1)}n(l(f||[]))},getFilter:()=>G,setFilter:function(e){G=e||[]},setEntities:function(e){f=e},formatEntities:function(e,t,i){let n=S(e);if(le[n])return le[n].formatter(t,i);throw new Error(`"${e}" type is not supported!`)}};return ce}const I=["aTjGzenyEs0eN478IdG4VNA","aAAXLVtvqMU-OMgOsYu4N_w","DiagnosticTotalTripFuelUsedId","DiagnosticThirdPartyDevicePowerChangeId","DiagnosticDevicePowerChangeId","DiagnosticAccelerometerCalibratedId","DiagnosticOutsideTemperatureId","DiagnosticCrankingVoltageId","DiagnosticVehicleActiveId","aFiPafob90EWkKCl_ch6cVw","DiagnosticIgnitionId","DiagnosticDeviceTotalIdleFuelId","alGIWFKIAGEm-JQz2-ijqcQ","DiagnosticEngineSpeedId","DiagnosticDeviceTotalFuelId","DiagnosticEngineRoadSpeedId","DiagnosticGearPositionId","DiagnosticFuelLevelId","DiagnosticTotalTripIdleFuelUsedId","DiagnosticGoDeviceVoltageId","ag_fwt5XnikKLwiWv6cyApA","aiPGdlV4r-UaImTK73TTdCg","DiagnosticEngineOnTimeId","DiagnosticEngineHoursId","aV6d42wVtOUa65Qwv8GJx_
1w","DiagnosticDriverSeatbeltId","atEnELwfVTkay7D7lpLJKSQ","DiagnosticEngineCoolantTemperatureId","aqsO8fXBat0qTTWcAZ2pICg","DiagnosticThirdPartyOdometerId","DiagnosticOdometerId","DiagnosticCoolantLevelId","DiagnosticDieselExhaustFluidId"]},77761(e,t,i){i.d(t,{pO:()=>c,Lp:()=>u,wY:()=>a,Ao:()=>s,Dq:()=>d,Oi:()=>l});var n=i(89615);const r={Vehicle:n.VY,Trailer:n.aA,Container:n.OY,Equipment:n.JG};var o=i(12444);const a=(e,t,i)=>{const n=i=>n=>{const r=t=>{if(t.realParent){let i=t.realParent;for(;i.parent;){if(e.includes(i.id))return!0;i=i.parent}}return!1},o=e=>t.includes(e.id)&&!e.groups.length,a=n.groups[0],s=a.groups.filter((t=>{var i;const n=!e.includes(t.id),a=!e.includes((null===(i=t.realParent)||void 0===i?void 0:i.id)||"");return t.groups=t.groups.filter((t=>!e.includes(t.id))),!o(t)&&(n&&a&&!r(t))}))||[];a.groups&&(n.groups[0].groups=s),(e.includes(a.id)||r(a)||o(a))&&(n.groups=[]),i(n)};return{getEntities:function(e,t,i){this.base.getEntities(e,n(t),i)},searchEntities:function(e,t,i,r,o){this.base.searchEntities(e,t,i,n(r),o)},resetEntities:e=>{const t=i();return e.filter((e=>t[e.id]))},filterAllButtons:t.map((e=>({id:e})))}},s=(e,t,i,n)=>{const r=a(e,t,i);return Object.assign(Object.assign({},r),{strings:{scopeValidationMessage:n}})},l=e=>e.sort(((e,t)=>e.id===n.VY&&t.id!==n.VY?-1:e.id!==n.VY&&t.id===n.VY?1:e.id===n.aA&&t.id!==n.aA?-1:e.id!==n.aA&&t.id===n.aA?1:(e.name||"").localeCompare(t.name||""))),d=(e,t)=>{const i=-1!==Object.values(r).indexOf(e.id),n=-1!==Object.values(r).indexOf(t.id);return i&&n?(e.name||"").localeCompare(t.name||""):i?-1:n?1:(e.name||"").localeCompare(t.name||"")};async function c(e){var t;const i=await e.groups.getItemsByValue(),n=(0,o.YD)(i);return(null===(t=(0,o.a0)(n).GroupAssetTypeId)||void 0===t?void 0:t.children)||[]}function u(){return"GroupVehicleId"}},35052(e,t,i){i.d(t,{A:()=>s});var n=i(92191),r=i(44654),o=i(86397),a=i(721);function s(e,t,i,s,l,d){var c,u,h,p=s,m=[],g={viewText:"{0}",everythingText:i("All"),resetToDefaultText:i("Reset"),removeItem:i("Remove selection")},S=(0,n.X$)(!0,{},g,t||{}),v=S.viewText.replace("{0}","%s"),I=S.everythingText,y=(0,n.vt)("div",{class:"currentState node-select-container__state noTranslate"}),f=(0,n.vt)("div",{class:"entity-navigator-container node-select-container__control noTranslate","data-connected-popup":e.id||(0,r.$C)()}),D=function(e,t,i,n){var o=void 0!==i?" data-elem-id='"+i+"'":"",a=t?`title="${(0,r.z)(t)}" data-tooltip="${(0,r.z)(t)}"`:"",s=n?`<button class="filterCloseButton help-ignore" ${o} title="${S.removeItem}" aria-label="${S.removeItem}" data-tooltip="${S.removeItem}">\n <svg class='svgIcon geotabButtonIcons popupWindowTrigger bigger filterCloseCross'><use xlink:href="#geo-cross-thin"></use></svg>\n </button>`:"";return`<div ${a} class='help-ignore stateItem ellipsis ${n?"closeCrossStateItem":"stateItem--static"}'><span class="stateItem__text">${(0,r.z)(e||"")}</span>${s}</div>`},C=function(e){let t=e.currentTarget.getAttribute("data-elem-id");t&&u.fireEvent("deselect",u,t)};return""===I?(0,n.jD)(y):((0,n.WU)(y),y.innerHTML=v.replace("%s",D(I))),(h=(0,n.vt)("button",{class:"resetButton node-select-container__control-element node-select-container__control-element--spacing-left geo-button help-ignore ellipsis"},{display:"none"})).textContent=t.resetToDefaultText||"",(c=h).setAttribute("title",S.resetToDefaultText),c.setAttribute("data-tooltip",S.resetToDefaultText),c.addEventListener("click",(function(t){u.fireEvent("reset",e,t)}),!1),f.appendChild(c),e.appendChild(f),e.appendChild(y),u=(0,n.X$)((0,o.Ay)(),{getFilterElt:()=>f,showEntities:function(t,o=!1){let s="",u=!1;if((()=>{let t=e.querySelector(".geotab-filter__wrapper");t&&t.classList.add("node-select-container__control-element","node-select-container__control-element--spacing-right")})(),t.length)if(m=t.slice(),"GroupCompanyId"!==t[0].id||1!==t.length||p){u=t.some((e=>!e.static)),s=((e,t)=>t&&t.displayGrouping?t.displayGrouping.map((t=>({text:t.text,items:e.filter((e=>t.condition(e)))}))):[{text:"",items:e}])(t,p).reduce(((e,t)=>t.items.length>0?e+`\n ${t.text?`<div class='groupTitleNavigatorDisplay'> <strong>${(0,r.z)(t.text)}: </strong> </div>`:""}\n ${t.items.map((e=>D(e.name,e.title,e.id,l&&!e.static))).join("")}\n `.trim():e),"")}else s=D(S.everythingText);else m=[],s=D(S.everythingText);(0,n.L$)(c,!o&&u);let h=y.querySelectorAll(".filterCloseButton");for(let e=0;e<h.length;e++)h[e].removeEventListener("click",C,!1);y.innerHTML=v.replace("%s",s),(0,n.L$)(y,u||""!==I),h=y.querySelectorAll(".filterCloseButton");for(let e=0;e<h.length;e++)h[e].addEventListener("click",C,!1);d&&(0,a.wS)([{parent:e,selector:".resetButton",position:a._m.TopRight},{parent:e,selector:".currentState .stateItem",position:a._m.TopLeft},{parent:e,selector:".filterCloseButton",position:a._m.TopRight}],i)},setNewUIOptions:function(e){var t=e||{};S=(0,n.X$)(!0,S,t.strings||{}),v=S.viewText.replace("{0}","%s"),t.hasOwnProperty("displayGrouping")&&(p=t),u.showEntities(m)},get currentState(){return m}})}},78422(e,t,i){function n(e,t,i){const{buttonText:n,message:r}=e;return`\n <div class="zenith-notice__text">${i(r)}</div>\n <a class="geo-link zenith-notice__button" id="exception_adtsButtonId" href="${t}" target="_blank">
1\n <span>${i(n)}</span>\n </a>\n </div>\n `.trim()}function r(e,t,i){const{buttonText:n,message:r}=e;return`<div class="zenith-notice__text-container">\n <div title="${i(r)}" class="zenith-notice__text">\n ${i(r)}\n </div>\n </div>\n <div class="zenith-notice__button">\n <a class="geo-link" id="exception_adtsButtonId" href="${t}" target="_blank">\n <span>${i(n)}</span>\n </a>\n </div>`.trim()}i.d(t,{E:()=>n,V:()=>r})},62272(e,t,i){i.d(t,{Y5:()=>I,kL:()=>m,S7:()=>g,P0:()=>v});var n=i(49793),r=i(44654);const o=[],a=[],s=[],l=[];let d,c,u,h,p=null;const m=()=>d?Promise.resolve():p||(p=Promise.all([i.e(7541).then(i.t.bind(i,17541,19)),i.e(4481).then(i.bind(i,34481)),i.e(589).then(i.bind(i,90589)),i.e(2557).then(i.bind(i,2557)),Promise.all([i.e(9631),i.e(2199)]).then(i.bind(i,22199))]).then((([e,t,i,r])=>{const o=document.createElement("div");o.classList.add("zenithFeedback"),document.body.appendChild(o);const{createRoot:a}=e;c=t.FeedbackProvider,u=i.Alert,h=r.Toast,d=a(o),d.render((0,n.jsx)(c,{mode:"default"}))})),p),g=async e=>{await m();const t=(0,r.$C)(),i=Object.assign(Object.assign({},e),{id:t,isOpen:!0,onClose:()=>{const e=a.find((e=>e.id===t));e&&e.isOpen&&S(t)}});return a.push(Object.assign({},i)),o.push(Object.assign({},e)),d.render((0,n.jsxs)(c,{mode:"default",children:[a.map((e=>(0,n.jsx)(u,Object.assign({},e),e.id))),s.map((e=>(0,n.jsx)(h,Object.assign({},e),e.id)))]})),t},S=async e=>{var t;await m();const i=a.findIndex((t=>t.id===e));if(-1===i)return;d.render((0,n.jsxs)(c,{mode:"default",children:[a.map(((e,t)=>(0,n.jsx)(u,Object.assign({},e,{isOpen:i!==t}),e.id))),s.map((e=>(0,n.jsx)(h,Object.assign({},e),e.id)))]}));const r=o[i];null===(t=null==r?void 0:r.onClose)||void 0===t||t.call(r,e),a.splice(i,1),o.splice(i,1)},v=async e=>{await m();const t=(0,r.$C)(),i=Object.assign(Object.assign({},e),{id:t,isOpen:!0,onClose:()=>{const e=s.find((e=>e.id===t));e&&e.isOpen&&I(t)}});return l.push(Object.assign({},e)),s.push(Object.assign({},i)),d.render((0,n.jsxs)(c,{mode:"default",children:[a.map((e=>(0,n.jsx)(u,Object.assign({},e),e.id))),s.map((e=>(0,n.jsx)(h,Object.assign({},e),e.id)))]})),t},I=async e=>{var t;await m();const i=s.findIndex((t=>t.id===e));if(-1===i)return;d.render((0,n.jsxs)(c,{mode:"default",children:[a.map((e=>(0,n.jsx)(u,Object.assign({},e),e.id))),s.map(((e,t)=>(0,n.jsx)(h,Object.assign({},e,{isOpen:i!==t}),e.id)))]}));const r=l[i];null===(t=null==r?void 0:r.onClose)||void 0===t||t.call(r,e),l.splice(i,1),s.splice(i,1)}},55738(e,t,i){i.d(t,{y:()=>s});var n=i(50405),r=i(38707),o=i(94996),a=i(71079);function s(){const{urlState:e}=(0,r.Sz)(),t=e.getUrlState(),i=(0,n.useRef)(t),[,s]=(0,n.useState)(t);i.current===t||c(i.current,t)||(i.current=t);const l=(0,n.useCallback)((t=>{try{e.updateUrlState(t),s(t)}catch(e){console.error("Failed to update the url",e)}return t}),[e]),h=(0,n.useCallback)((e=>{if((0,o.nD)(e))return i.current={},void l({});d(e);const t=Object.assign(Object.assign({},i.current),e);c(i.current,t)||(i.current=t,l(t))}),[l]),p=(0,n.useCallback)(((e,t)=>{d(t);if(!c((0,a.P3)(i.current,e),t)){const n=(0,a.$q)(i.current,e,t);u(n),(0,o.nD)(n)?(i.current={},l({})):(i.current=n,l(n))}}),[l]);return{args:i.current,setArgs:h,setArg:p}}function l(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||null==e||(e instanceof Date||e instanceof URL||(Array.isArray(e)?e.every(l):"object"==typeof e&&((Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))&&Object.values(e).every(l))))}function d(e){if(!l(e))throw new Error("Invalid JSON object: The provided data contains non-serializable or non-plain object values.")}function c(e,t){if(e===t)return!0;if(null==e||null==t)return e===t;if(typeof e!=typeof t)return!1;if(e instanceof Date&&t instanceof Date)return e.toISOString()===t.toISOString();if(e instanceof URL&&t instanceof URL)return e.toString()===t.toString();if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((e,i)=>c(e,t[i])));if("object"==typeof e&&"object"==typeof t){if(Object.getPrototypeOf(e)!==Object.prototype&&null!==Object.getPrototypeOf(e))return!1;if(Object.getPrototypeOf(t)!==Object.prototype&&null!==Object.getPrototypeOf(t))return!1;const i=Object.keys(e),n=Object.keys(t);return i.length===n.length&&i.every((i=>i in t&&c(e[i],t[i])))}return!1}const u=e=>{Object.keys(e).forEach((t=>{"object"==typeof e[t]&&null!==e[t]?(u(e[t]),(0,o.nD)(e[t])&&delete e[t]):""!==e[t]&&null!==e[t]&&void 0!==e[t]||delete e[t]}))}},72841(e,t,i){i.d(t,{LA:()=>r.LA,Ay:()=>O,QG:()=>E});var n=i(92191),r=i(39326),o=i(5108),a=i(89713),s=i(12444),l=i(44654),d=i(86397),c=i(93622),u=i(54147),h=i(34457),p=i(77541),m=i(89073),g=i(44035);const S="**";class v{constructor(e,t,i){this.typeIcons=e,this.options=t,this.translate=i,this.wrapTitle=e=>`<span class="${g.E4.LABEL_CLASS}">${(0,l.z)(e)}</span>`,this.renderItemIcon=e=>`<svg class="${g.E4.ICON_CLASS}"><use xlink:href="#${e}"></use></svg>`,this.createListItem=(e,t,i,n=!1)=>`<li class="geo-list__item${this.addClassName(t)}" role="none"\n ${i?` title="${(0,l.z)(i)}"`:""}\n ${n?" aria-hidden='true'":""}>${e}</li>`,this.createButton=(e={name:"",type:""},t,i,n,r="",o,a)=>{let s=e.type,d=e.subType||s,c=n||(e.subType?this.typeIcons[d]:null)||this.options.icon||null,u=(0,l.$C)()+S+(e.id?s+S+(e.id||""):""),h=this.options.hideIcons||!c?()=>"":this.renderItemIcon,p=(c?h(c):"")+this.wrapTitle(t);return`<button class="${g.E4.BUTTON_CLASS} ellipsis ${r}" data-type="${s}" id="${u}" title="${(0,l.z)(i)}" ${void 0!==o?`tabIndex="${o}"`:"tabindex='0'"}${a||""}>\n ${p}\n </button>`},this.createListButton=(e={name:"",type:""},t,i,n)=>{let r=n||"",o=t||e.name||"",a=e.title||o,s=this.createButton(e,o,a,i,void 0,void 0," role='option'");return this.createListItem(s,r,a)},this.addClassName=e=>e?` ${e}`:""}createText(e,t,i=!1){let n=`<div class='${i?g.E4.HEADER_CLASS:g.E4.BUTTON_CLASS} ellipsis' id='${(0,l.$C)()+S}' title='${(0,l.z)(e)}'>${this.wrapTitle(e)}</div>`;return this.createListItem(n,t,void 0)}createCheckbox(e={name:"",type:""},t,i,n,r){let o=n||"",a=e.type,s=e.subType||a,d=i||(e?this.typeIcons[s]:null)||this.options.icon||null,c=(0,l.$C)()+S+(e.id?a+S+(e.id||""):""),u=t||e.name||"",h=e.title||u||"",p=`\n <input type='checkbox' data-type='${a}' ${r?" checked":""} class='${g.E4.CHBX_CLASS}' id='${c}' tabindex="0" role="option">\n <label class='${g.E4.BUTTON_CLASS} ellipsis' for='${c}' title='${(0,l.z)(h)}' id='l**${c}'>${(e=>this.options.hideIcons||!e?"":this.renderItemIcon(e))(d)}${this.wrapTitle(u)}</label>\n `;return this.createListItem(p,o,h)}createNavigationButton(e,t,i){return this.createListButton(e,t,i,g.E4.NAV_BUTTON_CLASS_NAME)}createEntityHeader(e,t,i){let n=t||e.title,r=i||g.E4.HEADER_CLASS;return this.createText(this.translate(n),r,!0)}createSelectButton(e,t,i,n,r){let o=`${e.clickable?g.E4.CLICK_BUTTON_CLASS_NAME:g.E4.SELECT_CLASS}${this.addClassName(n)} ellipsis`;return this.createCheckbox(e,t,i,o,r)}createSelectAllButton(e){let t=this.translate("selectAllText",e);return t?this.createListButton({type:e,id:"all"},t,g.E4.STATUS_ICON_CLASS,g.E4.SELECT_ALL_BUTTON):""}createDeselectAllButton(e){let t=this.translate("deselectAllText",e);return t?this.createListButton({type:e,id:"all"},t,g.E4.BROMM_ICON_CLASS,g.E4.DESELECT_ALL_BUTTON):""}createSelectDeselectAllButton(e){return this.createSelectAllButton(e)+this.createDeselectAllButton(e)}createHistoricalButton(e,t,i){return t?this.createListButton({type:e},t,i,g.E4.SHOW_HISTORICAL_BUTTON):""}createLevelUpButton(e){return e?this.createNavigationButton(e,this.translate("levelUpText"),g.E4.LEVEL_UP_ICON):""}createNothingFoundButton(){return this.createText(this.translate("nothingFoundText"),g.E4.NOTHING_FOUND_CLASS)}createCustomButton(e,t){let i=t?t(e):void 0;return i?this.createButton(void 0,i.text||"",i.text||"",i.icon,`${g.E4.CUSTOM_BUTTON}${this.addClassName(i.className)}`):""}createCustomListButton(e,t){let i=t?t(e):void 0;return i?this.createListButton(void 0,i.text||"",i.icon,`${g.E4.CUSTOM_BUTTON}${this.addClassName(i.className)}`):""}createSeparator(){return this.createListItem("",g.E4.SEPARATOR_NODE_CLASS_NAME,void 0,!0)}createPlaceholder(e,t,i,n=!1){return this.createListItem(e||"",`${g.E4.PLACEHOLDER_CLASS_NAME}${this.addClassName(i)}`,t,!n)}createSwitcher(e,t,i="",n){const r=n?`id="${n}"`:`for="${e}"`;return`<div class="geo-form geo-navigator-list__content ${g.E4.SWITCHER_CLASS_NAME} ${i}">\n <label class="geo-form__label geo-navigator-list__label" ${r}>${t?(0,l.z)(t):""}</label>
1\n <span class="geo-form__control"></span>\n </div>`}}var I=i(4981),y=i(89615),f=i(721);const D=e=>(0,s.st)(e),C=e=>!e.length||D(e[0]),R=e=>!e.length||(0,l.rT)(e[0]),T=function(e,t){let i=4294967296;return(e/i&t/i)*i+(e%i&t%i)};var b=i(45935);let w=!1;const A=function(e,t,i,s){let d,c,u={},h=(e,t)=>e.name?e.name.toLowerCase()>t.name.toLowerCase()?1:-1:0,p=(s.strings||{}).searchLimitWarning||"",m=(0,r.Ay)(e,t,s),S=()=>{Object.values(u).forEach((e=>{e.abort&&e.abort()})),u={},w=!1},v=function(e,t,i){let n,l=[],c=e.type;for(n in r.LA)r.LA.hasOwnProperty(n)&&T(c,r.LA[n])&&l.push(m.getFor(n));let p=[],g=e.formatter,v=e.pattern||"",I=e.requestOptions||{};return d&&d.abort(),S(),d=function(e,t,i,n,r,a,l){let d=null,c=[],p=function(){S(),(c||[]).forEach((function(e){e.abort&&e.abort()})),c.length=0};return l.requestQuota=s.requestQuota,e.length?(Object.keys(u).length>0&&S(),w=!0,c=e.map((function(e,o){let s=a+o,d=e((function(e){e.groups=e.groups.sort(h),t.push(e),setTimeout((function(){t.length===c.length&&(w=!1,c.length=0),u[s]&&i(t),n()}),0)}),n,r,a,l).fail(n);return u[s]=d,d})),d=(0,o.FM)(Promise.all(c)),d.abort=p):(w=!1,i(t)),d||(0,o.FM)(Promise.resolve())}(l,p,(function(){let e=(0,a.gb)(p,c);for(let t=0;t<e.groups.length;t++)e.groups[t].realParent=e.groups[t].realParent||e.groups[t].parent,e.groups[t].parent=e;t(e)}),i,g,v,I),d},I=function(e,t,o,s,d){let u,h=e;if(-1!==[r.LA.ASSETS,r.LA.DRIVERS,r.LA.USERS].indexOf(e.type)){let e=(0,l.Am)(t.split(",").map((e=>e.trim())).filter((e=>e.length)));e.length>g.zp&&(c&&c.hide(),c=i.displayInfo(p.replace("{0}",g.zp.toString()),5),u=e.slice(0,g.zp).join(","))}return o?(h=(0,n.X$)(h,{pattern:u||t}),this.getEntities(h,(function(e){s(e,e),h.pattern=""}),d)):this.getEntities(h,(function(e){s((0,a.$B)(e,null,u||t,!0),e)}),d)},y=function(e,t,i,n){let r=e.type||e,o=e.formatter,s=(0,a.gb)([],r);!t.length&&i(s),m.getEntitiesById(r,t,(function(e){s.groups=e.groups,i.apply(void 0,[s])}),n,o)};return{base:{getEntities:v,searchEntities:I,searchEntitiesByIDs:y},getEntities:s.getEntities||v,searchEntities:s.searchEntities||I,searchEntitiesByIDs:s.searchEntitiesByIDs||y,getFilter:()=>m.getFilter(),setFilter:e=>m.setFilter(e),setEntities:function(e){m.setEntities(e)},formatEntities:(e,t)=>m.formatEntities(e.type||e,t,e.formatter)}},E=function(e,t={}){return Object.assign({selectAllGroupText:e("All in {0}"),selectAllDriversText:e("selectAllDriversText"),selectAllDevicesText:e("selectAllDevicesText"),selectOnlyInGroupText:e("selectOnlyInGroupText"),selectOnlyDriversText:e("selectOnlyDriversText"),selectOnlyDevicesText:e("selectOnlyDevicesText"),searchLimitWarning:e("EntitiesLoaderSearchLimit"),watermarkText:e("watermarkText"),nothingFoundText:e("nothingFoundText"),levelUpText:e("Up one level"),deselectAllText:e("deselectAllText"),selectAllText:e("selectAllText"),entireOrganizationText:e("GroupCompanyId"),itemsOfTypeNotFoundText:e("itemsOfTypeNotFoundText"),typeIsNotSupportedText:e("typeIsNotSupportedText"),showHistoricalText:e("showHistoricalText"),hideHistoricalText:e("hideHistoricalText"),openFilter:e("openFilter"),closeFilter:e("closeFilter"),closeNotification:e("Close notification"),searchResults:e("Search results")},t)},k=(e,t)=>{const i=e.getAttribute("aria-labelledby");const n=(i?i.split(/\s+/).filter(Boolean).map((e=>{var t,i;return(null===(i=null===(t=document.getElementById(e))||void 0===t?void 0:t.textContent)||void 0===i?void 0:i.trim())||""})).filter(Boolean).join(" "):"")||(e.getAttribute("aria-label")||"").trim();return n?`${n} ${t}`.trim():t};function O(e,t,i,T,E,O){const M=Object.keys(g.E4).map((e=>g.E4[e]));let L={type:r.LA.GROUPS|r.LA.DRIVERS|r.LA.ASSETS,formatter:null,strings:{selectAllGroupText:"***All in {0}",selectAllDriversText:"***All Drivers",selectAllDevicesText:"***All Devices",selectOnlyInGroupText:"***Only in {0}",selectOnlyDriversText:"***Only Drivers",selectOnlyDevicesText:"***Only Devices",searchLimitWarning:"EntitiesLoaderSearchLimit",watermarkText:"***Filter...",nothingFoundText:"***Nothing was found",levelUpText:"***Up one level",deselectAllText:"***Remove all",selectAllText:"***Select all",entireOrganizationText:"***Company Group",showHistoricalText:"",hideHistoricalText:"",openFilter:"***Open filter",closeFilter:"***Close filter",searchResults:"***Search results",closeNotification:"Close notification"},getNodeName:void 0,multipleSelection:!0,ignoreSelectionType:!1,minimumSelection:[],value:[],isInputFirstElement:!1,showDeselectAllButton:!1,showSelectDeselectAllButtons:!1,showOnlyInButton:!1,showAllInButton:!0,alwaysShowSelectDeselect:!1,searchOnServer:!0,greedySelection:!0,unfoldGroups:!1,unfoldSingleGroupOnSearch:!0,entities:void 0,icon:null,hideIcons:!1,customClass:"",customClassForFilterList:"",closeOnSelect:!1,closeOnSelectAll:!0,withTextField:!0,listId:void 0,ariaLabelledBy:void 0,innerSelectionHandling:!1,isInBody:!0,isSetValueAfterSelect:!1,filterAllButtons:[],showComboButton:!0},P=()=>`<li class='${g.E4.SEPARATOR_NODE_CLASS_NAME}' aria-hidden='true' role="none"></li>`,F=document.body,x={},N={},B=(0,n.X$)(!0,{},L,i),U=function(){let e=function(e){return Object.keys(r.LA).filter((function(t){return!!(e&r.LA[t])})).map((function(e){return r.LA[e]}))},t=function(e){return e.reduce((function(e,t){return e[t]=!1,e}),{})},i=e(B.type||0);return{types:t(i),updateType:function(n){i=e(n||0),U.types=t(i)},isEverythingSelected:!1,isAnythingSelected:()=>i.some((e=>U.types[e])),isAllTypesSelected:()=>i.every((e=>U.types[e])),deselectAll:function(){U.isEverythingSelected=!1,i.forEac
1h((function(e){U.types[e]=!1}))},selectAll:function(){U.isEverythingSelected=!0,i.forEach((function(e){U.types[e]=!0}))}}}(),H=e=>({type:e.type||1,formatter:e.formatter,requestOptions:e.requestOptions||{}}),V=function(e){return e.requestOptionsSearching?{type:e.type,formatter:e.formatter,requestOptions:e.requestOptionsSearching}:H(e)},_=H(B),W=V(B),q=(B.minimumSelection||[]).slice(0).sort(),G=B.value,j=B.strings,z=B.withTextField;const $=(e,t)=>{if(B.strings){let i=B.strings[e];return"function"==typeof i&&(i=i(t)),i||e}return e};let Z,J,K,Y=(0,h.Ay)((()=>{var e;return null===(e=B.strings)||void 0===e?void 0:e.closeNotification})),Q=A(t,B.entities||[],Y,{strings:B.strings,requestQuota:B.requestQuota,userScope:B.userScope,getEntities:B.getEntities,searchEntities:B.searchEntities,searchEntitiesByIDs:B.searchEntitiesByIDs});const X=0,ee=1;let te,ie,ne,re=!1,oe=!1,ae=!1,se=0;let le,de,ce,ue,he=[],pe=!1,me=function(e){w=!1,e&&e.isAborted||Fe(),T&&e&&!e.isAborted&&T(e)},ge=function(e){te&&(te.setAttribute("placeholder",e),B.useHtmlLabelAssociation||(B.ariaLabelledBy?te.setAttribute("aria-labelledby",B.ariaLabelledBy):te.setAttribute("aria-label",e)))},Se=()=>Z.querySelectorAll(`LI .${g.E4.FOCUSED_BUTTON_CLASS}`),ve=(()=>{let e;return{reset(){e=null},restore(){e&&te&&(re=!0,te.value=e,te.focus(),e="")},setValue(t){e=t||null},getValue:()=>e,clear(){te&&(e=te.value,re=!1,te.value="",i.isSetValueAfterSelect||(te.placeholder=(null==j?void 0:j.watermarkText)||""))}}})();const Ie=e=>{const t="function"==typeof e?e():e;if(void 0!==t&&!(0,m.Fr)())return t;const i=te&&te.parentNode,n=i?i.offsetWidth:0;if(n){let e=te?te.offsetWidth:0;return n!==e&&ie&&B.showComboButton&&(e+=ie.offsetWidth),e=e>150?e:150,e}},ye=e=>{(0,n.AH)(Z,{width:e?`${e}px`:"auto"})};let fe=()=>{if(!ne||!K.isVisible())return;let e=window.getComputedStyle(ne),t=parseInt(e.paddingTop||"0")+parseInt(e.paddingBottom||"0")+parseInt(e.borderBottomWidth||"0")+parseInt(e.borderTopWidth||"0"),i=ne.getBoundingClientRect(),n=ue.getBoundingClientRect(),r=window.innerHeight+F.scrollTop-i.top,o=Ie(B.menuWidth);ye(o),ne.style.height=n.height>r-t?`${r}px`:"auto",K.resize()};const De=e=>ie&&e===ie?te||e:B.mobileTrigger,Ce=e=>{if(!K)return;const t={target:De(e)};K.setOptions(t),K.setTrigger(e)};let Re=function(e){return function(...t){var i,r;if(bt)return;let o="none"===Z.style.display;if(te&&ie){(0,n.jY)(ie,"closeComboIcon",o);let e=o?null===(i=B.strings)||void 0===i?void 0:i.closeFilter:null===(r=B.strings)||void 0===r?void 0:r.openFilter;ie.setAttribute("title",e||""),ie.setAttribute("aria-label",e||""),ie.setAttribute("data-tooltip",e||"")}Et.fireEvent(o?"comboOpen":"comboClose",Et,ne),e.apply(this,t)}},Te=(e,t,i,r,o,a)=>{var s,d;let c=(0,n.vt)("div",{id:(0,l.$C)(),"data-filter":a,tabIndex:"0",role:"navigation",class:"filterMenuContainer"+r},{display:"none"}),u=(0,n.vt)("ul",{class:g.E4.LIST_CLASS,role:"listbox","aria-label":(null===(s=B.strings)||void 0===s?void 0:s.searchResults)||""});J=u,o&&(u.id=o),u.appendChild((0,n.vt)("li")),c.appendChild(u);let h=i?document.body:e,p=i?(e=>{let t=e;for(;t&&t.parentNode!==document.body;)t=t.parentNode;return t})(e):t;if(p){let e=p.nextSibling;e?h.insertBefore(c,e):h.appendChild(c)}else h.appendChild(c);return u.addEventListener("keydown",qe,!1),null===(d=B.keyDownSender)||void 0===d||d.addEventListener("keydown",qe,!1),u.addEventListener("focus",We,!1),c},be=function(t){var n;let r=e.getAttribute("data-popup")||e.id,a=B.customClassForFilterList?` ${B.customClassForFilterList}`:"";ie&&ie.removeEventListener("click",be,!1),te&&te.removeEventListener("focus",be,!1),i.mobileTrigger&&i.mobileTrigger.removeEventListener("click",be,!1);const s=B.mobileTrigger&&(null==t?void 0:t.currentTarget)===B.mobileTrigger?B.mobileTrigger:ie||te||e;s!==e||s.hasAttribute("role")||(s.setAttribute("role","button"),s.setAttribute("tabindex","0")),ne=Te(e,s,!!B.isInBody,a,B.listId,r),ne.setAttribute("aria-label",k(s,(null===(n=B.strings)||void 0===n?void 0:n.searchResults)||"")),Z=ne;const l={onShow:Re(ze),onShowEnd:function(){w&&(ce.style.display="block",xe()),fe(),Ve=!1},onHide:Re((d=Fe,function(...e){ve.clear(),He="",ve.reset(),setTimeout(Ee,1),i.showComboButton&&(null==te||te.setAttribute("aria-expanded","fal
1se")),null==te||te.removeAttribute("aria-activedescendant"),d.apply(this,e)})),content:ne,minWidth:150,minHeight:40,addAutoScroll:!0,position:B.popupWindowPosition,calculatePosition:B.calculatePosition,target:De(s),trapFocus:B.hasComplexPopup,preventReFocusing:()=>document.activeElement===te};var d;kt()&&ie.addEventListener("click",(()=>Ce(ie)),!1),i.mobileTrigger&&i.mobileTrigger.addEventListener("click",(()=>Ce(i.mobileTrigger)),!1),window.addEventListener("resize",fe,!1),K=(0,c.Ay)(s,l),ue=ne.children[0];let h=ue.children;ce=h[h.length-1],le=(0,u.A)(ce,{zIndex:10003,insertWaitingToContainer:!0}),de=(0,o.Ay)("Loading filter"),function(){if((0,m.Fr)()||!B.closeOnMouseOut)return;let e=dt(Z,K,`.${g.E4.SELECT_CLASS} LABEL`);Et.attachEvent("comboOpen",(function(){e.enable()})),Et.attachEvent("comboClose",(function(){e.disable()}))}(),t&&"click"===t.type&&setTimeout(Et.openCombo,100)},we=()=>{se&&clearTimeout(se)},Ae=()=>{Z&&"none"!==Z.style.display||null==te||te.focus()},Ee=function(){if(ue){let e=ue.children,t=ue.children[e.length-1];for(let t=e.length-2;t>-1;--t){let i=e[t];(0,n.nB)(i,"geo-list__item--permanent")||ue.removeChild(e[t])}t.style.height="45px",t.style.position="relative",(0,n.gR)(t,"filter-progress-container"),ne&&(ne.style.height="auto"),ce.style.display="block",le.resize()}};const ke=e=>{if(te){let t=e;B.type===r.LA.DRIVERS&&(t=e.split(" (")[0]),te.placeholder=t}};let Oe,Me,Le,Pe=function(){Ee(),de||"none"===Z.style.display||K.isOpening()||xe()},Fe=function(){ue&&(ue.style.height="",ce.style.display="none",Ne())},xe=function(){Ne(),de=(0,o.Ay)("Loading filter"),le.displayProgress(de)},Ne=function(){de&&(de.resolve(),de=null)},Be=function(e){(0,n.gR)(e,g.E4.FOCUSED_BUTTON_CLASS)},Ue=function(e){let t=Se(),i=((e,t,i)=>{let n=e===X?"previousElementSibling":"nextElementSibling",r=e===X?e=>e.children[e.children.length-1]:e=>e.children[0],o=!!i,a=i&&i[n]||r(t);for(;a&&a!==i;){let e=a.getElementsByClassName(g.E4.BUTTON_CLASS)[0];if(e)return e;a=a[n]?a[n]:o?r(t):null}return null})(e,J,t[0]&&t[0].parentNode);if(Array.prototype.forEach.call(t,(e=>(0,n.jo)(e,g.E4.FOCUSED_BUTTON_CLASS))),i){Be(i),null==te||te.setAttribute("aria-activedescendant",i.id);const e=i.offsetParent?i.offsetParent.offsetHeight:0;let t=i.offsetTop<(i.offsetParent?i.offsetParent.scrollTop:0),n=e+(i.offsetParent?i.offsetParent.scrollTop:0),r=i.offsetTop>n;(t||r)&&i.scrollIntoView()}},He="",Ve=!1,_e=function(){let e=(null==te?void 0:te.value)||ve.getValue()||"";re=""!==e,"none"!==Z.style.display&&e!==He?(He=e,ze()):K.open(),Et.fireEvent("search",Et,[ve.getValue()||""])},We=()=>{Se()[0]||(Ue(ee),Ve=!0)},qe=function(e){let t=!(!ne||"none"===ne.style.display);if(((e,t)=>{switch(e.keyCode){case 38:return e.preventDefault(),!t||(Ue(X),Ve=!0,!0);case 40:return e.preventDefault(),t?(Ue(ee),Ve=!0,!0):(K.open(),!0);case 37:case 39:if(t){let t=Se()[0];(null==t?void 0:t.parentNode)&&(0,n.nB)(t.parentNode,g.E4.SWITCHER_CLASS_NAME)&&(gt(t),e.preventDefault())}return!0;default:return!1}})(e,t))return!1;switch(e.keyCode){case 13:case 32:if(t){if(32===e.keyCode&&!Ve)break;let t=Se()[0];if(t)return gt(t),e.preventDefault(),!1}return!0;case 27:case 9:27!==e.keyCode&&B.hasComplexPopup||(clearTimeout(se),K&&(K.isVisible()&&e.stopPropagation(),K.close()))}return!1},Ge=()=>{clearTimeout(se),se=setTimeout(_e,500),Ve=!1,ve.setValue(te?te.value:"")},je=function(e,t){w=!0,Pe(),t.push(St),t.push(me),e.apply(Et,t)},ze=function(){let e=function(...e){Q.searchEntities.apply(Q,e)},t=function(...e){Q.getEntities.apply(Q,e)},n=re?W:_;n.requestOptions.fromDate=oe?s.Rv:void 0,B.type===r.LA.RULES&&i.showRulesByStatus&&(n.requestOptions.status=oe?void 0:"active"),re?(ae=!0,je(e,[n,(null==te?void 0:te.value)||"",B.searchOnServer])):(ae=!1,je(t,[n])),i.showComboButton&&(null==te||te.setAttribute("aria-expanded","true")),null==te||te.setAttribute("aria-controls",(null==ne?void 0:ne.id)||"")},$e=function(){let e=function(){let e=[];for(let t=0;t<he.length;t++)(0,b.Kg)(he[t])||e.push(he[t].id);return e}().sort();q&&q.sort(),ft(e,q)&&(he=[])},Ze=function(e,t){let i=B.showOnlyInButton&&t,n=0===he.length||!he.some((t=>{return n=e,(i=t).id===n.id&&(B.ignoreSelectionType||i.type===n.type);var i,n}));const r=[...he];if($e(),n||i){n&&he.push(e);let t={selectedNodes:he,prevSelectedNodes:r};C(he)&&C(r)&&(t={affectedGroup:e,selectedNodes:he,prevSelectedNodes:r,affectedType:e.type,onlyInSelection:N[e.id],userInput:!0}),Et.fireEvent("change",Et,t),Et.fireEvent("externalChange",Et,t)}},Je=new v(g.rM,{icon:i.icon,hideIcons:i.hideIcons},$),Ke=function(e){let t=!1;
1return e.parent&&(t=r.LA[e.id]&&r.LA[e.id]!==r.LA.GROUPS),t},Ye=e=>e.id===g.TL||e.id===g.bs,Qe=e=>e.id===g.TL,Xe=e=>(e=>r.LA[e.id]||e.isFake)(e)||Ye(e),et=function(e){let t=e.groups[0];return t&&Xe(t)&&1===e.groups.length},tt=function(e,t,n){return i.alwaysShowSelectDeselect?Je.createSelectDeselectAllButton(e.type):!B.showSelectDeselectAllButtons||t||!B.greedySelection&&n&&!ae?Je.createDeselectAllButton(e.type):Je.createSelectAllButton(e.type)},it=function(e,t,i){var n,r;return!B.showHistoricalButton||t||!B.greedySelection&&i&&!ae?Je.createHistoricalButton(e.type,null===(r=B.strings)||void 0===r?void 0:r.hideHistoricalText,g.E4.BROMM_ICON_CLASS):Je.createHistoricalButton(e.type,null===(n=B.strings)||void 0===n?void 0:n.showHistoricalText,g.E4.STATUS_ICON_CLASS)},nt=function(e,t,i){var n,o;switch(e){case r.LA.DRIVERS:return i?null==j?void 0:j.selectOnlyDriversText:null==j?void 0:j.selectAllDriversText;case r.LA.ASSETS:return i?null==j?void 0:j.selectOnlyDevicesText:null==j?void 0:j.selectAllDevicesText;default:return i?null===(n=null==j?void 0:j.selectOnlyInGroupText)||void 0===n?void 0:n.replace("{0}",t):null===(o=null==j?void 0:j.selectAllGroupText)||void 0===o?void 0:o.replace("{0}",t)}},rt=(e,t,i)=>{if(0!==e.groups.length){let n=[],r=!1;return(B.showSelectDeselectAllButtons||B.showDeselectAllButton)&&(r=!0,!i&&B.unfoldGroups?n=[...n,...e.groups.map((e=>tt(e,U.types[e.type],t.isAnyInCache(e.type))))]:n.push(tt(e,U.isEverythingSelected,t.isAnyInCache(e.type)))),B.showHistoricalButton&&(r=!0,n.push(it(e,oe,t.isAnyInCache(e.type)))),r&&n.push(P()),n}return[]},ot=function(e,t){var i;let n=e.parent,r=rt(e,t,n);if(r.push((e=>{if(B.customHeaderButton){let t=Je.createCustomListButton(e,B.customHeaderButton);if(t)return t+P()}return""})(e)),n&&et(n)&&(n=n.parent),(n||B.showOnlyInButton&&Qe(e))&&(B.disableBuiltInGroups&&!e.groups.length||(r=[...r,Je.createLevelUpButton(n&&e.parent),P()]),(e=>B.showAllInButton&&(!Ye(e)||B.showOnlyInButton))(e))){let n=t.isInCache(e);if(!ae||!Xe(e)){const t=null===(i=B.filterAllButtons)||void 0===i?void 0:i.filter((t=>t.id===e.id));if(!(null==t?void 0:t.length)){e.title=nt(e.type,e.name,!1);let t=Je.createSelectButton(e,e.title,B.showOnlyInButton?g.E4.ALL_IN_GROUPS_CLASS:g.E4.STATUS_ICON_CLASS,g.E4.ALL_IN_BUTTON_CLASS_NAME,n&&!N[e.id]);r.push(t)}}B.showOnlyInButton&&!Ke(e)&&(e.title=nt(e.type,e.name,!0),r.push(Je.createSelectButton(e,e.title,g.E4.STATUS_ICON_CLASS,g.E4.ONLY_IN_BUTTON_CLASS_NAME,n&&N[e.id])))}return r},at=function(e,t,i){let n=e.groups,r=e.groups.length,o=[];if(r&&!(e=>1===e.length&&(e[0].id===g.TL||e[0].id===g.bs)&&!e[0].groups.length)(n)){if(B.unfoldGroups&&r>1&&n[0].groups&&(n[0].groups.length||i&&"-1"===e.id)){for(let e=0;e<r;e++)o.push.apply(o,n[e].groups);r=o.length}else o=n;if(0===r)return[Je.createNothingFoundButton()];let a=null;return o.reduce(((e,i)=>(i.title=B.getNodeName?B.getNodeName(i):i.name,E&&a!==i.type&&e.push(Je.createEntityHeader(E[i.type])),a=i.type,i.groups.length>0?(e.push(Je.createNavigationButton(i,void 0,g.E4.FOLDER_ICON_CLASS)),e):i.id===g.TL||Ke(i)?(e.push(""),e):(e.push(Je.createSelectButton(i,void 0,i.icon,void 0,t.isInCache(i))),e))),[])}if(!B.showOnlyInButton||!Qe(e)){return[B.showHistoricalButton?it(e,oe,!1):"",Je.createNothingFoundButton()]}return[]},st=function(e){let t=e.children[0]&&e.children[0].id;return!(!t||"_"===t[t.length-1]||e.className===g.E4.CLICK_BUTTON_CLASS_NAME||e.className===g.E4.NAV_BUTTON_CLASS_NAME)},lt=function(e){e.children[0].checked=!1},dt=function(e,t,i){let r,o;return e.addEventListener("mouseup",(function(e){o&&(0,n.kp)(e.target,i)===e.target&&(r=o)}),!1),e.addEventListener("mouseout",(function(i){o&&r&&(i.target===e||((e,t)=>{let i=e;for(;i&&i!==t;)i=i.parentNode;return i})(i.relatedTarget,e))&&!function(e,t,i){let n=i.getBoundingClientRect();return e>n.left&&e<n.left+n.width&&t>n.top&&t<n.top+n.height}(i.clientX,i.clientY,e)&&t.close()})),{enable:function(){o=!0,r=!1},disable:function(){o=!1,r=!1}}},ct=function(e,t){let i=e.parentNode,r=(0,n.Kb)(t),o=r.length;for(let t=0;t<o;++t)i.insertBefore(r[t],e);i.removeChild(e)},ut=function(e,t,i){let n,r,o=e,a=e;for(;o&&o.groups&&o.isFake;)a=o,o=o.groups[0];n=a&&a.groups?a.groups:[];for(let e=0;e<n.length;e++)if(r=n[e],r.id===t&&r.type===i)return r;return null},ht=e=>{e.stopPropagation(),e.preventDefault(),gt(e.target)},pt=e=>{let t=e.which;13!==t&&32!==t||gt(e.target)},mt=(e,t,n,r)=>{let o,s=((e,t)=>{if(e.isFake&&e.groups&&e.groups.length&&e.type!==t){let i=e.groups;for(let e=0;e<i.length;e++)if(i[e].type===t)return i[e]}return e})(Me,n),l=(0,a.$B)(s,t,"",!1),d=r===g.E4.ONLY_IN_BUTTON_CLASS_NAME;Ke(l)&&(x[n]=!function(e){let t=e.children[0];return t&&t.checked}(e));let c=((e,t)=>(t?!!N[e.id]:!N[e.id])&&he.some((t=>!(0,b.Kg)(t)&&t.id===e.id)))(l,d);if(B.showOnlyInButton&&r&&(o=function(e){let t;return t=e.className.indexOf(g.E4.ALL_IN_BUTTON_CLASS_NAME)>-1?g.E4.ONLY_IN_BUTTON_CLASS_NAME:g.E4.ALL_IN_BUTTON_CLASS_NAME,e.parentNode.querySelector(`.${t}`)}(e),N[t]=!!d&&!N[t]),c?(U.types[n]=!1,U.isEverythingSelected=!1,lt(e),function(e){const t=[...he];if(he=he.filter((t=>!(!(0,b.Kg)(t)&&!(0,b.Kg)(e)&&t.id===e.id&&(B.ignoreSelectionType||D(t)&&D(e)&&t.type===e.type)))),0===he.length&&q.length)Et.setSelection(he),Et.fireEvent("externalChange",Et,{affectedGroup:null,selectedNodes:he,prevSelectedNodes:t,affectedType:null,onlyInSelection:(0,b.Kg)(e)?void 0:N[e.id]});else{let i={selectedNodes:he,prevSelectedNodes:t};C(he)&&C(t)&&(i={affectedGroup:null,prevSelectedNodes:t,selectedNodes:he,affectedType:D(e)?e.type:void 0,onlyInSelection:D(e)?N[e.id]:void 0,userInput:!0}),Et.fireEvent("change",Et,i),Et.fireEvent("externalChange",Et,i)}i.isSetValueAfterSelect&&te&&(te.placeholder=(null==j?void 0:j.watermarkText)||"")}(l)):(!B.multipleSelection&&ne&&(he=[],Array.prototype.forEach.call(ne.querySelectorAll("input:checked"),(function(e){e.checked=!1}
1))),o&<(o),Ze(l,!!r),function(e){e.children[0].checked=!0}(e),i.isSetValueAfterSelect&&ke(l.name),B.closeOnSelect&&(pe=!0,setTimeout(Et.closeCombo,1))),!i.alwaysShowSelectDeselect&&B.showSelectDeselectAllButtons){let t,i=function(e,t){let i=e.querySelector(`*[data-type='${t}']`);return i&&i.parentNode&&-1===i.parentNode.className.indexOf(g.E4.SELECT_CLASS)?i.parentNode:null}(e.parentNode,n),r=(e=>!(!e||!e.className||-1!==e.className.indexOf(g.E4.DESELECT_ALL_BUTTON)))(i);i&&(t=B.greedySelection?!U.types[n]:!he.some((e=>D(e)&&e.type===n)),r!==t&&ct(i,t?Je.createSelectAllButton(n):Je.createDeselectAllButton(n)))}},gt=e=>{let t=ue,n=Me.groups&&Me.groups[0],r=ae?n&&n.groups:null,o=((e,t)=>{let i=e;for(;i&&"LI"!==i.tagName&&t!==i;)i=i.parentNode;if(i&&i.children[0])return i})(e,t);if(!o)return;if(pe)return!1;let s=o.children[0],l=(s.getAttribute("id")||"").split(S),d=parseInt(s.hasAttribute("data-type")?s.getAttribute("data-type")||"":l[1],10),c=l[2],u=[].filter.call(o.classList,(e=>M.indexOf(e)>-1)),h=u[0]&&u[0].replace(/\s/g,""),p=[g.E4.ONLY_IN_BUTTON_CLASS_NAME,g.E4.ALL_IN_BUTTON_CLASS_NAME],m=u.filter((e=>p.indexOf(e)>=0))[0];switch(h){case g.E4.SELECT_CLASS:mt(o,c,d,m);break;case g.E4.DESELECT_ALL_BUTTON:((e,t,n)=>{let r=t.querySelectorAll("input"+(B.ignoreSelectionType?"":`[data-type='${n}']`)+":checked"),o=r.length;for(let e=0;e<o;e++)r[e].checked=!1;!i.alwaysShowSelectDeselect&&B.showSelectDeselectAllButtons&&ct(e,Je.createSelectAllButton(n)),Et.clearSelection(n,(function(){Et.fireEvent("externalChange",Et,{affectedGroup:null,selectedNodes:[],affectedType:null})}))})(o,t,d);break;case g.E4.SELECT_ALL_BUTTON:((e,t,i,n)=>{let r=t.querySelectorAll(`input[data-type${B.ignoreSelectionType?"":`='${i}'`}]`),o=r.length;for(let e=0;e<o;e++){let t=r[e];st(t.parentNode)&&!t.checked&&(t.checked=!0)}if(ae&&n){let e=(he||[]).reduce((function(e,t){return t&&!t.clickable&&(e[t.id||t]=!0),e}),{})||{};he=he.concat(n.filter((t=>!t.clickable&&!e[t.id]))),Dt(he)}else At(!1,i,!0);B.closeOnSelectAll?(pe=!0,setTimeout(Et.closeCombo,1)):B.showSelectDeselectAllButtons&&ct(e,Je.createDeselectAllButton(i)),Et.fireEvent("externalChange",Et,{affectedGroup:null,selectedNodes:he,affectedType:null})})(o,t,d,r);break;case g.E4.SHOW_HISTORICAL_BUTTON:ve.restore(),oe=!oe,ze();break;case g.E4.CUSTOM_BUTTON:"function"==typeof B.customHeaderButtonHandler&&B.customHeaderButtonHandler.call(o),Et.fireEvent("customButtonClick",Et,o);break;case g.E4.NAV_BUTTON_CLASS_NAME:Pe(),setTimeout((function(){let e=(0,a.hW)(Me,d,c)||(0,a.hW)(Le,d,c);St(e||Le,Le||Me,!1,!1,!0)}),100);break;case g.E4.CLICK_BUTTON_CLASS_NAME:Et.fireEvent("click",Et,[c,ut(Me,c,d)]),Et.closeCombo();break;case g.E4.SWITCHER_CLASS_NAME:Et.fireEvent("toggleSwitcher",Et,[c,ut(Me,c,d)]),Et.closeCombo()}return ve.reset(),!1},St=function(e,t,i,r,o){let a=!(e.loading||w);if(Me=e,Le=t,r)return!1;Ee();let s=(0,n.X$)({},Me);B.showOnlyInButton||(s.groups=s.groups.filter((function(e){return!(Xe(e)&&0===e.groups.length&&!i)}))),et(s)&&(s=s.groups[0],s.parent&&(s.parent.groups=[s])),Oe=s,!ae&&Oe&&(Oe.parent&&U.types[Oe.type]?Rt(Oe,Oe.type):Oe.parent||Oe.groups.forEach((function(e){U.types[e.type]&&C(he)&&(he=he.filter((t=>t.type!==e.type)),Rt(e,e.type))})));let l=function(){let e,t={length:0,isInCache:e=>!!(t[e.type]||t)[e.id]||U.types[e.type],isAnyInCache:e=>t.length&&(!!B.ignoreSelectionType||t[e])};for(let i=0;i<he.length;i++){let n=he[i];!B.ignoreSelectionType&&D(n)?(t[n.type||0]=t[n.type||0]||{},e=t[n.type||0]):e=t,(0,b.Kg)(n)||(e[n.id]=!0),t.length++}return t}();a&&Fe(),B.unfoldSingleGroupOnSearch&&function(e){let t=e.groups;return 1===t.length&&t[0].groups.length}(s)&&!o&&(s=s.groups[0]);let d=[],c=e=>(e||[]).filter((e=>!(e=>e.id&&e.id!==y.s_&&((0,I.hr)(e.id)||d.includes(e.id)))(e))),u=()=>{let e=[...ot(s,l),...at(s,l,i)],t=(0,n.Kb)(e.join("")),r=t.length;for(let e=0;e<r;++e)ue.insertBefore(t[e],ce);ue.removeEventListener("click",ht,!1),ue.addEventListener("click",ht,!1),ue.removeEventListener("keypress",pt,!1),ue.addEventListener("keypress",pt,!1),fe(),w&&le.resize(),vt(o)},h=e=>{Q.getEntities(H(B),(t=>{const i=[y.Ug,y.zw];function n(e){e.groups.forEach((e=>{d.push(e.id),n(e)}))}t.groups.length&&t.groups[0].groups.forEach((e=>{i.includes(e.id)&&n(e)})),s.groups=c(s.groups),e&&e()}),me)};return B.disableBuiltInGroups&&!d.length?h(u):u(),!0};const vt=(e=!1)=>
1{if(!(document.activeElement===te||document.activeElement&&(0,n.cY)(document.activeElement,(e=>e===ne))))if(e)J.focus(),We();else{let e=null==ne?void 0:ne.querySelector(p.F);null==e||e.focus(),(null==e?void 0:e.classList.contains(g.E4.BUTTON_CLASS))&&e&&Be(e)}},It=[];let yt,ft=(e,t)=>(e||It).join(",")===(t||It).join(","),Dt=function(e,t,n){const r=[...he];he=e,Et.fireEvent("change",Et,{affectedGroup:null,selectedNodes:he,prevSelectedNodes:r,silent:n,userInput:!1}),C(he)&&i.isSetValueAfterSelect&&1===he.length&&ke(he[0].name),t&&t(he)},Ct=(e,t)=>!(e.clickable||t&&e.type!==t),Rt=function(e,t){let i,n;if(e){i=e.groups.length,he=he.filter((e=>e&&D(e)&&e.type!==t));for(let r=0;r<i;r++)Ct(e.groups[r],t)&&(n=e.groups[r],n.isFake?he.push.apply(he,n.groups||[]):he.push(n))}},Tt=function(){!Z&&be()},bt=!1,wt=function(){yt&&yt.abort()},At=function(e,t,i){Tt(),e&&(Oe=null),t&&C(he)?(U.types[t]=!0,U.isEverythingSelected=U.isAllTypesSelected(),he=he.filter((e=>e.type!==t))):(U.selectAll(),he=[]),Rt(Oe,t),$e(),wt(),Et.fireEvent("change",Et,{affectedGroup:he,selectedNodes:he,userInput:i})};z&&(0,n.gR)(e,"org-filter");let Et=(0,n.X$)((0,d.Ay)(),{clearSelection:function(e,t,n=!1){let r={};e&&!B.ignoreSelectionType?(r=(he||[]).reduce((function(t,i){return D(i)&&i.type!==e&&"string"!=typeof t[i.type]&&(U.types[i.type]?t[i.type]="all":(t[i.type]=t[i.type]||[],t[i.type].push(i))),t}),{}),r=Object.keys(U.types).reduce((function(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e}),r)):(U.deselectAll(),r[_.type]=[]),i.isSetValueAfterSelect&&te&&(te.placeholder=(null==j?void 0:j.watermarkText)||""),Et.setSelection(r,t,void 0,void 0,n)},selectAll:function(e){At(!0,e,!1)},getEntitiesTypeToDisplay:()=>_,isAllSelected:e=>e?!!U.types[e]:U.isEverythingSelected,setFilter:e=>Q.setFilter(e),getFilter:()=>Q.getFilter(),setSelection:function(e,t,i,n,r=!1){let a,s,l=e,d=e=>!Array.isArray(e),c=function(e,t,i){let n=e,r=[],a={groups:[]},s=function(){i(r.length?r.reduce((function(e,t){return e.groups.push.apply(e.groups,t.groups),e})):a)};d(e)||(n={},n[_.type]=e);let l=Object.keys(n).map((e=>function(e,i){return new Promise(((n,o)=>{t(e,i,(e=>{r.push(e),n(e)}),(e=>{me(e),o(e)}))}))}(parseInt(e),n[e])));return l.length?(0,o.FM)(Promise.all(l)).done(s).fail((e=>e&&e.isAborted||me(e))):(s(),(0,o.FM)(Promise.resolve()))},u=function(e){var i,n;Dt((i=e.groups,n=(e,t)=>e.type===t.type&&e.id===t.id,i.reduce((function(e,t){return((e,t,i)=>e.some((e=>i(t,e))))(e,t,n)||e.push(t),e}),[])),t,r)},h=function(e,t,i){i(Q.formatEntities({type:e,formatter:B.formatter},t))};let p=function(e,t,i,n){Q.searchEntitiesByIDs(e,t,i,n)};if(wt(),"string"==typeof(v=l)&&"all"===v)U.isEverythingSelected||Et.selectAll(),t&&t();else{a=d(m=l)?Object.keys(m).reduce(((e,t)=>(Array.isArray(m[t])&&e.push.apply(e,m[t]),e)),[]):m||[],0!==a.length||U.isAnythingSelected()||(l=q.slice(0),a=l),!B.multipleSelection&&a.length>1&&(l=a.splice(0,1),a=l);let e=he.map((e=>(0,b.Kg)(e)?e:e.id)).sort();if(s=a.map((e=>(0,b.Kg)(e)?e:e.id)).sort(),ft(e,s)&&!U.isAnythingSelected())if(n){let e=void 0!==i?i:R(a)&&a.every((e=>!!e.name));yt=c(l,e?h:p,u)}else t&&t();else if(U.isEverythingSelected=!1,d(l)?Object.keys(l).forEach((function(e){U.types[parseInt(e)]="all"===l[e]})):U.types[_.type]&&(U.types[_.type]=!1),!a.length||B.innerSelectionHandling)Dt(a,t);else{let e=void 0!==i?i:R(a)&&a.every((e=>!!e.name));yt=c(l,e?h:p,u)}}var m,v;return setTimeout((function(){!function(e){let t=(e||[]).reduce(((e,t)=>(t&&(e[t.id||t]=!0),e)),{});Z&&"none"!==Z.style.display&&Array.prototype.forEach.call(Z.querySelectorAll(`.${g.E4.SELECT_CLASS} > .${g.E4.CHBX_CLASS}`),(function(e){let i,n,r=e.getAttribute("id")||"",o=parseInt(e.getAttribute("data-type")||""),a=r.lastIndexOf(S)+2,s=r.substring(a,r.length);if(B.showOnlyInButton){let t=e.parentNode;i=t.className.indexOf(g.E4.ONLY_IN_BUTTON_CLASS_NAME)>-1,n=t.className.indexOf(g.E4.ALL_IN_BUTTON_CLASS_NAME)>-1}e.checked?t[s]||U.types[o]||(e.checked=!1,e.removeAttribute("checked")):t[s]&&(!i&&!n||i&&N[s]||n&&!N[s])&&(e.checked=!0,e.setAttribute("checked",""))}))}(s)}),1),yt||(0,o.FM)(Promise.resolve())},getSelection:function(){let e,t={length:0};for(let e in x)x[e]&&(t[e]="",t.length++);return e=t.length?he.filter((e=>!(D(e)&&e.type in t&&!Ke(e)))):he,e.slice(0)},isOnlyInSelection:e=>N[e],setOnlyInSelectionForGroups:function(e,t){e.forEach((function(e){N[e]=!0}
1)),(t||[]).forEach((function(e){N[e]=!1}))},openCombo:function(){Tt(),K.open()},closeCombo:function(){Tt(),"none"===Z.style.display||K.isHiding()||K.close(),pe=!1},isOpened:()=>Z&&"none"!==Z.style.display&&K&&!K.isHiding(),isSearching:()=>ae,getSearchString:()=>ve.getValue()||"",setSearchString:e=>{te&&(te.value=e),Ge()},isShowHistoric:()=>oe,setShowHistoric:function(e){oe=e},disableFilter:function(){var t;Et.clearSelection(),(0,n.gR)(e,"filterDisabled"),bt=!0,K?(K.close(),K.disable()):(ie&&(ie.removeEventListener("click",Ae,!1),ie.removeEventListener("click",be,!1)),te&&te.removeEventListener("focus",be,!1)),ie&&ie.setAttribute("disabled","disabled"),null==ne||ne.removeEventListener("keydown",qe,!1),te&&(te.removeEventListener("blur",we,!1),te.removeEventListener("keydown",qe,!1),te.removeEventListener("keydown",Ge,!1),te.setAttribute("disabled","disabled")),null===(t=B.keyDownSender)||void 0===t||t.removeEventListener("keydown",qe,!1)},enableFilter:function(){var t;bt&&(te&&(te.addEventListener("blur",we,!1),te.addEventListener("keydown",qe,!1),te.addEventListener("input",Ge,!1),te.removeAttribute("disabled")),null==ne||ne.addEventListener("keydown",qe,!1),null===(t=B.keyDownSender)||void 0===t||t.addEventListener("keydown",qe,!1),ie.removeAttribute("disabled"),K?K.enable():(ie.addEventListener("click",Ae,!1),ie.addEventListener("click",be,!1),te&&te.addEventListener("focus",be,!1)),(0,n.jo)(e,"filterDisabled"),bt=!1)},setNewOptions:function(e,t,i=!1){var r,o;let a=e||{};if(!bt){Tt(),!t&&Et.clearSelection(),e.type&&e.type!==B.type&&U.updateType(e.type),K&&"none"!==Z.style.display&&!i&&K.close(),a.hasOwnProperty("entities")&&(B.entities=a.entities,delete a.entities),a.popupWindowPosition&&a.popupWindowPosition!==B.popupWindowPosition&&K.setOptions({position:a.popupWindowPosition}),(0,n.X$)(!0,B,a),a.minimumSelection&&(B.minimumSelection=a.minimumSelection.slice(),q=B.minimumSelection),a.requestOptions&&(B.requestOptions=B.requestOptions||{},(0,n.X$)(B.requestOptions,a.requestOptions)),a.requestOptionsSearching||(W.requestOptions=W.requestOptions||{}),a.entities&&(B.entities=a.entities.slice()),Q.setEntities(B.entities),["getEntities","searchEntities","searchEntitiesByIDs"].forEach((e=>{a.hasOwnProperty(e)&&(Q[e]=a[e]||Q.base[e])})),_=H(B),W=V(B),j=B.strings,t&&B.isSetValueAfterSelect&&C(he)&&1===he.length?ke(he[0].name):ge((null==j?void 0:j.watermarkText)||"")}null===(r=a.keyDownSender)||void 0===r||r.removeEventListener("keydown",qe,!1),B.keyDownSender=a.keyDownSender,!bt&&(null===(o=B.keyDownSender)||void 0===o||o.addEventListener("keydown",qe,!1))},destroyFilterList:function(){Tt(),clearInterval(undefined),Ee(),Z&&Z.parentNode&&(Z.children[0].removeEventListener("click",ht,!1),Z.children[0].removeEventListener("keypress",pt,!1),Z.parentNode.removeChild(Z))},setMobileMode:t=>{Ce(t&&B.mobileTrigger||ie||te||e),ye(Ie(B.menuWidth)),K.resize()},resize:()=>fe(),focus:()=>null==te?void 0:te.focus()}),kt=()=>B.showComboButton&&ie;return function(){let t=e.id||e.getAttribute("data-connected-popup")||"popup";e.setAttribute("data-popup",`${t}_${(0,l.$C)()}`),z?(B.showComboButton&&(ie=function(){var e,t;let i=(0,n.vt)("button",{class:`${g.E4.EXPAND_BUTTON_CLASS} help-ignore`,title:null===(e=B.strings)||void 0===e?void 0:e.openFilter,"data-tooltip":null===(t=B.strings)||void 0===t?void 0:t.openFilter,tabIndex:"-1","aria-hidden":"true"});return i.appendChild((0,n.P5)([{icon:g.E4.CLOSE_ICON,className:g.E4.COMBO_OPEN_CLASS},{icon:g.E4.OPEN_ICON,className:g.E4.COMBO_CLOSE_CLASS}],`${g.E4.DROPDOWN_ICON_CLASS} toRotate`,!1)),i}()),te=(()=>{var e,t,r;const o=(0,n.vt)("input",{class:`${g.E4.INPUT_BOX_CLASS} ${g.E4.SEARCH_FIELD_CLASS}`,type:"text",autocomplete:"off",role:"combobox","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":"false","data-tooltip":(null===(e=i.strings)||void 0===e?void 0:e.inputBox)||""});return(null===(t=i.strings)||void 0===t?void 0:t.inputBox)&&(o.title=(null===(r=i.strings)||void 0===r?void 0:r.inputBox)||""),i.inputId&&(o.id=i.inputId),o})(),ge((null==j?void 0:j.watermarkText)||""),te.addEventListener("blur",we,!1),te.addEventListener("keydown",qe,!1),te.addEventListener("input",Ge,!1),((e,t,i)=>{let r=B.isFullSizeElement?"geotab-filter__wrapper--full-size":"",o=B.customClass?` ${B.customClass}`:"",a=t?"geo-secondary-button-with-expand":"",s=t?"":"geotab-filter__wrapper--no-button",l=(0,n.vt)("div",{class:`${a} geotab-filter__wrapper ${r}${o} ${s}`.trim()});if(t||(0,n.gR)(e,"geotab-filter__input--no-button"),l.appendChild(e),t&&l.appendChild(t),B.isInputFirstElement&&i.children.length){let e=i.children[0];i.insertBefore(l,e)}else i.appendChild(l)})(te,B.showComboButton?ie:null,e)):B.showComboButton&&(ie=e),kt()&&ie.addEventListener("click",be,!1),i.mobileTrigger&&i.mobileTrigger.addEventListener("click",be,!1),te&&(kt()&&ie.addEventListener("click",Ae,!1),te.addEventListener("focus",be,!1)),Et.setSelection(G||q.slice(0),void 0,!1,!1,B.silentInit),O&&(0,f.wS)([{parent:e,selector:"input",position:f._m.TopLeft},{parent:e,selector:"button",position:f._m.TopRight}],$)}(),Et}},44035(e,t,i){i.d(t,{E4:()=>
1o,TL:()=>a,bs:()=>s,rM:()=>r,zp:()=>l});var n=i(39326);const r={[n.LA.DRIVERS]:"geo-driver-new",[n.LA.ASSETS]:"geo-new-vehicle",[n.LA.ZONES]:"geo-zone-new",[n.LA.ADDRESSES]:"geo-location",[n.LA.ROUTES]:"geo-route-new",[n.LA.ROUTEPLAN]:"geo-planned-route",[n.LA.USERS]:"geo-user-new",[n.LA.TRAILERS]:"geo-trailer-new",[n.LA.GROUPS]:"",[n.LA.RULES]:"",[n.LA.MAINTENANCESCHEDULES]:"geo-clock-icon",[n.LA.EVENTTYPES]:"geo-wrench"},o={HEADER_CLASS:"geo-navigator-list__header",BUTTON_CLASS:"geo-navigator-list__content",CHBX_CLASS:"geo-navigator-list__action",ICON_CLASS:"geo-navigator-list__icon geo-navigator-list__icon--gray",LABEL_CLASS:"geo-navigator-list__label",LIST_CLASS:"geo-list",FOLDER_ICON_CLASS:"geo-folder-empty",STATUS_ICON_CLASS:"geo-circle-ok",ALL_IN_GROUPS_CLASS:"geo-circle-ok",BROMM_ICON_CLASS:"geo-cross-in-circle",CLOSE_ICON:"up-arrow-new",OPEN_ICON:"down-arrow-new",LEVEL_UP_ICON:"geo-lvl-up",EXPAND_BUTTON_CLASS:"geo-secondary-button-with-expand__expand geotab-filter__expand",COMBO_OPEN_CLASS:"geo-secondary-button-with-expand__open",COMBO_CLOSE_CLASS:"geo-secondary-button-with-expand__close",DROPDOWN_ICON_CLASS:"geo-secondary-button-with-expand__arrow geo-icon geo-icon--large",SEARCH_FIELD_CLASS:"geo-secondary-button-with-expand__input geotab-filter__input ellipsis",SEARCH_INPUT_CLASS:"geo-text-input-with-icons__input",FOCUSED_BUTTON_CLASS:"geo-navigator-list__content--focused",SEPARATOR_NODE_CLASS_NAME:"geo-navigator-list__separator",NOTHING_FOUND_CLASS:"noResult",INPUT_BOX_CLASS:"inputBox",SELECT_CLASS:"selectButton",CLICK_BUTTON_CLASS_NAME:"clickButton",NAV_BUTTON_CLASS_NAME:"navButton",ALL_IN_BUTTON_CLASS_NAME:"allInButton",ONLY_IN_BUTTON_CLASS_NAME:"onlyInButton",ADV_BUTTON_CLASS_NAME:"advanced-filter",PLACEHOLDER_CLASS_NAME:"geo-placeholder",CUSTOM_BUTTON:"customButton",SELECT_ALL_BUTTON:"selectAllButton",DESELECT_ALL_BUTTON:"deselectAllButton",SHOW_HISTORICAL_BUTTON:"showHistoricalButton",SWITCHER_CLASS_NAME:"geo-switcher-item"},a="GroupCompanyId",s=`-${a}`,l=400},830(e,t,i){i.d(t,{A:()=>u});var n=i(5108),r=i(72841),o=i(12444),a=i(92191),s=i(44654),l=i(78011),d=i(65872),c=i(57173);function u(e,t,i,u,h,p){const m=(0,c.Cw)();var g,S,v,I,y,f,D=[],C=m,R=function(e,t,i,n){var r,o=(0,d.iq)(t)?(r=t,e&&r?(0,d.co)(r,(t=>!e[t.id])):{}):(t=>e&&t?t.filter((function(t){return!e[t.id]})):[])(t);let a=i,s=!t&&e||((0,d.iq)(t)?o.items&&!!o.items.length:!!o.length);return s&&(a=i.filter((function(t){var i=t.realEntity||t;return[].concat(i.groups||[],i.driverGroups||[],i.companyGroups||[]).some((function(t){return e.hasOwnProperty(t.id)}))})),s=a.length!==i.length),n&&(!t||((0,d.iq)(o)?o.items&&o.items.length:o.length)?(a="all",s=!0):(a=[{allIn:t}],s=!0)),{isChanged:s,selection:a}},T=function(e,t,i){var n,r,o,a,s=t||{};for(n=0;n<e.length;n++)o=(r=e[n]).id||r,a=r.groups||r.children,s[o]=!i||r,a&&T(a,s,i);return s},b=function(e){var t,i,n;let a=S.getEntitiesTypeToDisplay().type!==r.LA.RULES,s=S.getEntitiesTypeToDisplay().type===r.LA.DRIVERS||S.getEntitiesTypeToDisplay().type===r.LA.USERS;return!a||!g||((null===(t=e.groups)||void 0===t?void 0:t.length)?!!(0,o.Ln)([e],g,D,"groups").length:s&&(null===(i=[].concat(e.driverGroups||[],e.companyGroups||[]))||void 0===i?void 0:i.length)?!!(0,o.Ln)([e],g,D,"driverGroups").length||!!(0,o.Ln)([e],g,D,"companyGroups").length:!(null===(n=e.companyGroups)||void 0===n?void 0:n.length)||!!(0,o.Ln)([e],g,D,"companyGroups").length)},w={zones:!0,rules:!0},A=function(e){e&&!e.isAborted&&h(e)},E={},k=e=>(0,o.Jn)(e)?e:{id:e},O=function(e){let t=(0,s.je)(D)?[]:(i=D,(0,d.iq)(i)?(0,d.qk)(i,k):i.map(k));var i;let n=M[e];return{type:n&&n.typeName||e,value:function(e){return n?n.value(e||t):(0,l.bq)(e||t,"groups")},filter:n&&n.filter}},M={devices:{value:function(e){return(0,l.bq)(e,"groups")},filter:function(){let e=S.getEntitiesTypeToDisplay().requestOptions;return e&&e.includeHistoric?s.WI:e=>new Date(e.activeTo)>new Date}},drivers:{typeName:"users",value:function(e){let t=S.getEntitiesTypeToDisplay().requestOptions,i=Object.assign({isDriver:!0},(0,l.bq)(e,"driverGroups"));return t&&void 0!==t.includeHistoric&&(i.fromDate=t.includeHistoric?void 0:new Date),i}},users:{value:function(e){return Object.assign({},(0,l.bq)(e,"companyGroups"))}},rules:{value:function(e){return Object.assign({category:"UserExceptionRules"},(0,l.bq)(e,"groups"))}},trailers:{value:function(){return{}}},routes:{value:function(){return{}}},diagnostic:{value:function(){return{}}},zoneTypes:{value:function(){return{}}},clearances:{typeName:"groups",value:function(){return{}}}},L=function(e){var t,n,r={},o=e,l=function(e,t){if(e&&Array.isArray(e)){r[t]=r[t]||[];let i=T(r[t]);r[t].push.apply(r[t],e.filter((function(e){return e&&!i[e.id]})).map((function(e){return(0,a.X$)({},"object"==typeof e?e:{id:e})})))}};return Array.isArray(o)&&(t=S.getEntitiesTypeToDisplay().type,(o={})[t]=e),n=Object.keys(o).filter(s.WI).filter((e=>o[e])).map((function(e){return(e=>"all"===o[e])(e)?(r[e]=o[e],null):function(e,t){var n=O(E[t]),r=i[n.type],o=[];return void 0===r?(l(e,t),Promise.resolve(void 0)):(Array.isArray(e)&&r&&((o=e.filter(s.WI).map((function(e){var i;let o=e.allIn;return e.allIn?r.getItemsByValue((0,a.X$)(n.value(o)),{resultsLimit:C}).then((function(e){l(e,t)})):(i=(e.id||e).toString(),r.getItemById(i).then((e=>{l(e?[e]:[],t)}),(e=>
1{e&&e.isNotSupportedException&&(e.isSevere=!1),A(e)})))}))).length||l([],t)),Promise.all(o))}(o[e],parseInt(e))})),Promise.all(n).then((function(){return r}),(function(e){(Array.isArray(e)?e:[e]).forEach((function(e){A(e)}))}))};E[r.LA.GROUPS]="groups",E[r.LA.DRIVERS]="drivers",E[r.LA.ASSETS]="devices",E[r.LA.ZONES]="zones",E[r.LA.ZONETYPES]="zoneTypes",E[r.LA.ROUTES]="routes",E[r.LA.USERS]="users",E[r.LA.TRAILERS]="trailers",E[r.LA.RULES]="rules",E[r.LA.DIAGNOSTICS]="diagnostics",E[r.LA.CLEARANCES]="clearances",E[r.LA.MAINTENANCESCHEDULES]="maintenanceSchedules",E[r.LA.EVENTTYPES]="eventTypes",u.formatter=(f=u.formatter,function(e,t){return e.companyGroups=t.groups||t.companyGroups||[{id:t.id}],e.realEntity=t,f&&f(e,t)}),S=(0,r.Ay)(e,t,u,h,p);const P=(e,t,r)=>{var o=S.getEntitiesTypeToDisplay().type;return Promise.resolve(I).then((()=>(0,n.if)(y))).then((function(){var n=S.getSelection();if(S.isAllSelected(o)&&E[o]&&e){if((0,s.je)(D)&&!t)return Promise.resolve([]);let e=O(E[o]);return i[e.type].getItemsByValue(e.value(),{resultsLimit:"number"==typeof r?r||C:void 0})}return Promise.resolve(n.map((e=>e.realEntity)))}))};return v=(0,a.X$)({},S,{setFilter:function(e){var t=D;if(D=e||(0,d.Jt)(),!(0,d.Ti)(e,t)){S.setFilter(D);let n=i=>{var n,o={},a=S.getEntitiesTypeToDisplay().type;D===e&&(E[a]?(n=R(i,(0,s.je)(t)?null:t,S.getSelection(),S.isAllSelected()),g=i,n.isChanged&&v.setSelection(n.selection,void 0,!0)):(Object.keys(r.LA).forEach((function(e){var l=r.LA[e];a&l&&(n=R(i,(0,s.je)(t)?null:t,S.getSelection(),S.isAllSelected(l)),g=i,n.isChanged&&(o[l]=Array.isArray(n.selection)?n.selection.filter((e=>e.type===l)):n.selection))})),Object.keys(o).length&&v.setSelection(o,void 0,!0)))};if(u.preserveLastSelectionBeforeFilter)return Promise.resolve({});let a=(0,d.tT)(e);return I=((e,t)=>new Promise(((n,r)=>{setTimeout((()=>{if((0,s.je)(e))return t(),void n({});i.groups.getItemsByValue().then((function(i){let r=(0,o.YD)(i),a=(0,o.a0)((0,o.lx)(r,(0,d.F4)((0,d.tT)(e)),r)),s=S.getEntitiesTypeToDisplay().type;if(E[s]&&w[E[s]]){let t=T(r,{},!0),i=(0,d.F4)((0,d.tT)(e));for(let e=0;e<i.length;e++){let n=t[i[e].id];if(n)for(n=n.parent;n&&!a[n.id];)a[n.id]=!1,n=n.parent}}t(a),n({})})).catch(r)}),0)})))(a,n)}return Promise.resolve({})},setSelection:function(e,t,i){return y&&(y.abort(),y=null),y=(0,n.Ay)("select in map filter"),!e||Array.isArray(e)&&!e.length||"all"===e?S.setSelection(e||[],y.resolve,void 0,i):Promise.resolve(I).then((function(){y=y&&(0,n.FM)(L(e)).andThen((function(e){var n,r=function(e){return"string"==typeof e?e:Object.keys(e).reduce((function(t,i){var n,r;return"string"==typeof e[i]?(t[i]="all",t.count+=1):(r=(n=O(E[i])||{}).filter?n.filter():s.WI,t[i]=e[i].filter(b).filter(r),t.count+=t[i].length),t}),{count:0})}(e),o=r.hasOwnProperty("count")?r.count:1;return delete r.count,Object.keys(r).forEach((function(e){"string"==typeof r[e]&&(S.selectAll(e),delete r[e])})),n=S.setSelection(r,t,!0,i),o||(S.fireEvent("change",S,{selectedNodes:[]}),S.fireEvent("externalChange",S,{selectedNodes:[]})),n})).done(y.resolve)})),y},getAllSelection:function(e,t,i){return(0,n.FM)(P(e,t,i))},getAllSelectionPromise:P})}},48569(e,t,i){i.d(t,{y:()=>p});var n=i(12444),r=i(92191),o=i(86397),a=i(72841);const s="organizationFilter";var l=i(44654),d=i(35052),c=i(5108),u=i(4981),h=i(89615);function p(e,t,i,p,m){var g,S=function(e){return e.GroupCompanyId={id:"GroupCompanyId",type:1},e},v=S({}),I=function(){return i.groups.getItemsByValue().then((e=>S((0,n.a0)((0,n.YD)(e))))).then((e=>(v=e,e)))},y=(e.id||(0,l.$C)())+"_navigator",f={strings:{selectAllGroupText:p("AllIn")+" {0}",selectOnlyInGroupText:p("OnlyIn")+" {0}",everythingText:p("noNodesSelected"),watermarkText:p("watermarkText"),nothingFoundText:p("nothingFoundText"),levelUpText:p("Up one level"),deselectAllText:p("deselectAllText"),resetToDefaultText:p("resetSelectedGroups"),openFilter:p("openFilter"),closeFilter:p("closeFilter"),removeItem:p("Remove selection")},rootGroups:[h.s_],filterGroups:[{id:h.s_}],userScope:[{id:h.s_}],multipleSelection:!0,componentForNavigatorDisplay:void 0,formatGroupDisplay:l.WI},D=Object.assign(Object.assign(Object.assign({},f),m),{strings:Object.assign(Object.assign({},f.strings),m.strings||{})}),C=D.changedHandler||l.tE,R=[{text:p("AllIn"),condition:e=>!k.isOnlyInSelection(e.id)},{text:p("OnlyIn"),condition:e=>k.isOnlyInSelection(e.id)}],T=m.rootGroups||[],b=(0,l.Xy)(T),w=D.showOnlyInButton?{displayGrouping:R}:void 0,A=D.componentForNavigatorDisplay,E=A||(0,d.A)(e,D.strings,p,w,!0,D.zenithTooltipEnabled),k=function(e,t,i,l){let d,c=Object.assign({},l);(0,r.gR)(e,"org-filter"),(0,r.nB)(e,s)||(0,r.gR)(e,s);let u=(0,a.Ay)(e,t,l,void 0,void 0,l.zenithTooltipEnabled);return u.attachEvent("change",(function(t){var r=t.selectedNodes&&t.selectedNodes.slice(0),o=t.affectedGroup,a=t.onlyInSelection,s=!0,l=!1,h=(e,t)=>t.filter((t=>-1===e.indexOf(t.id))),p=o?r.filter((e=>e.id!==o.id)):r,m=function(e,t){s=!1,i.showEntities(e,t)};if(!c.allowParentChildSelection&&o&&p.length){let e=(0,n.gt)([o]),t=(0,n.yW)(o.id,p,e);if(t.length&&!a)l=!0,r=h(t,r);else{let e=function(e){let t={},i=e.realParent||e.parent;for(u.isOnlyInSelection(i.id)&&(i=i.realParent||i.parent);i;)t[i.id]=i,i=i.realParent||i.parent;return t}(o),t=p.filter((t=>
1e[t.id]&&!u.isOnlyInSelection(t.id))).map((e=>e.id));t.length&&(l=!0,r=h(t,r))}}l?u.setSelection(r,void 0,!0):(d.fireEvent("selectionChanged",e,[d.getValue(),o,m]),s&&m(u.getSelection().map((({name:e,id:t})=>({name:e,id:t,title:"",static:!1})))))})),i.attachEvent("reset",(function(){let e=u.getSelection(),t=c.resetEntities||(e=>[]);u.setSelection(t(e))})),i.attachEvent("deselect",(function(e){let t=u.getSelection(),i=t.filter((t=>t.id!==e));t.length!==i.length&&u.setSelection(i)})),u.attachToAll(((t,i)=>{t&&d.fireEvent(t,e,i)})),d=(0,r.X$)((0,o.Ay)(),{getValue:()=>(u.getSelection()||[]).map((e=>e.id||e)),setValue:u.setSelection,setFilter:u.setFilter,closeCombo:u.closeCombo,disableFilter:u.disableFilter,enableFilter:u.enableFilter,setNewOptions:function(e,t=!1){c=Object.assign(Object.assign({},c),e),u.setNewOptions(e,!0,t),i.setNewUIOptions(e)},isOnlyInSelection:u.isOnlyInSelection,setOnlyInSelectionForGroups:u.setOnlyInSelectionForGroups,setMobileMode:u.setMobileMode,getSearchString:u.getSearchString,setSearchString:u.setSearchString,resize:u.resize,focus:u.focus})}(E.getFilterElt(),t,E,{isInputFirstElement:!0,type:a.LA.GROUPS,strings:D.strings,minimumSelection:D.rootGroups,userScope:D.userScope,multipleSelection:D.multipleSelection,showOnlyInButton:D.showOnlyInButton,allowParentChildSelection:D.allowParentChildSelection,requestOptions:D.requestOptions,getNodeName:(0,u.GS)(p),listId:y,resetEntities:D.resetEntities,getEntities:D.getEntities,searchEntities:D.searchEntities,filterAllButtons:D.filterAllButtons||[],disableBuiltInGroups:D.disableBuiltInGroups,zenithTooltipEnabled:D.zenithTooltipEnabled,inputId:D.inputId,useHtmlLabelAssociation:D.useHtmlLabelAssociation});return(0,r.gR)(e,"node-select-container"),k.attachEvent("selectionChanged",(function(e,t,i){I().then((function(e){let n=(k.getValue()||[]).map((t=>e[t])).filter(l.WI),r=(e=>1===e.length&&T.some((t=>t===e[0].id)))(n),o=n.map((function(t){for(var i=t.id,n=e[i],o=(0,u.If)(n,p),a=n.parent,s=o,d=t.color?t.color:void 0;a;)s=(0,u.If)(a,p)+"/"+s,a=a.parent;return(D.formatGroupDisplay||l.WI)({id:i,name:o,title:s,static:r,color:d},t)}));i(o,(e=>T.length===e.length&&e.every((e=>b[e.id])))(n)),C(n,t),g.fire("change",[n,t])}))})),I(),g=(0,r.X$)(new o.FZ,{setSelectedNodes:function(e){let t=D.showOnlyInButton?e=>e.reduce(((e,t)=>(e[t.isOnlyInSelection?"only":"all"].push(t),e)),{all:[],only:[]}):e=>({all:e.slice(),only:[]}),{groups:i,onlyInSelection:n,allInSelection:r}=function(e,t){let i=Array.isArray(e[0]),{all:n,only:r}=i?{all:(o=e)[0],only:o[1]}:t(e);var o;let a=r.map((e=>e.id)),s=n.map((e=>e.id));return{groups:a.concat(s),onlyInSelection:a,allInSelection:s}}(e||[],t);return k.setOnlyInSelectionForGroups(n,r),(0,c.if)(k.setValue(i).andThen((()=>I())))},setFilter:function(e){D.filterGroups=e,k.setFilter(e)},getSelectedNodes:function(){return(k.getValue()||[]).map((function(e){let t=v[e]||{id:e};return{id:e,name:(0,u.If)(t,p),color:t.color,isOnlyInSelection:!(!D.showOnlyInButton||!k.isOnlyInSelection(t.id))}}))},closeCombo:function(){k.closeCombo()},setNewOptions:function(e){e&&(e.hasOwnProperty("showOnlyInButton")&&(D.showOnlyInButton=e.showOnlyInButton,e.displayGrouping=D.showOnlyInButton?R:null),e.rootGroups&&(D.rootGroups=e.rootGroups,e.minimumSelection=D.rootGroups),k.setNewOptions(e))},validateSelectedNodes:function(){I().then((e=>{k.setValue((k.getValue()||[]).filter((t=>e[t])))}))},disable:()=>{k.disableFilter()},enable:()=>{k.enableFilter()},focus:()=>{k.focus()}})}},76357(e,t,i){i.d(t,{A:()=>S});var n=i(92191),r=i(89458),o=i(48569),a=i(86397),s=i(65872),l=i(44654),d=i(89615),c=i(721);const u=()=>({interSectionRelation:s.g9,sectionState:(0,s.Jt)()});class h extends a.FZ{constructor(e,t,i,a,s){super(),this.translate=e,this.strings=a,this.zenithTooltipEnabled=s,this.switcherId=(0,l.$C)(),this.operatorLabelId=(0,l.$C)(),this.currentState=u(),this.interSectionsSwitcher=new r.A(this.translate),this.operationSwitcher=new r.A(this.translate,{id:this.switcherId,labelledBy:this.operatorLabelId},Object.assign({},this.strings),this.zenithTooltipEnabled),this.contentEl=(0,n.vt)("li",{class:"section form__section"});let h=`\n <div class="section__inter-section-switcher"></div>\n <div class="section__main">\n <div class="section__col section__col--left">\n <label class="section__label" id="${this.operatorLabelId}">${e("Operator")}</label>\n <div class="section__switcher"></div>\n </div>\n <div class="section__col ellipsis section__col--right">\n <label class="section__label">${e("Groups")}</label>\n <button class="section__remove-button geo-button geo-button--link" ${(null==a?void 0:a.removeButtonTitle)?`title="${null==a?void 0:a.removeButtonTitle}" data-tooltip="${null==a?void 0:a.removeButtonTitle}"`:""}>${e("RemoveCondition")}</button>\n <div class="section__groups ellipsis"></div>\n </div>\n </div>\n `;this.contentEl.innerHTML=h;let p=this.content.querySelector(".section__inter-section-switcher");this.interSectionsSwitcher.render(p);let m=this.content.querySelector(".section__switcher");this.operationSwitcher.render(m);let g=this.content.querySelector(".section__groups");this.groupsSelect=(0,o.y)(g,t,i,e,{strings:{everythingText:e("GroupCompanyId"),resetToDefaultText:e("resetSelectedGroups"),inputBox:null==a?void 0:a.groupsInputBoxTitle},userScope:[{id:d.s_}],zenithTooltipEnabled:s}),this.content.querySelector(".section__remove-button").addEventListener("click",(()=>this.fire("onSectionRemove"))),this.interSectionsSwitcher.attach("change",(e=>this.currentState.interSectionRelation=e)),this.operationSwitcher.attach("change",(e=>this.currentState.sectionState.relation=e)),this.groupsSelect.attach("change",(([e])=>{this.currentState.sectionState.items=e,this.fire("onSectionItemsUpdated")})),s&&(0,c.wS)([{parent:this.content,selector:".section__remove-button",position:c._m.TopRight}],e)}get content(){return this.contentEl}getState(){const e=e=>e.id;let t=this.currentState.sectionState.items.map(e).sort();return this.groupsSelect.getSelectedNodes().map(e).sort().join()===t.join()?Object.assign(Object.assign({},this.currentState),{sectionState:Object.assign(Object.assign({},this.currentState.sectionState),{items:this.groupsSelect.getSelectedNodes()})}):Object.assign({},this.currentState)}setState(e){return this.currentState=e,this.interSectionsSwitcher.value=void 0!==e.interSectionRelation?e.interSectionRelation:s.g9,this.operationSwitcher.value=void 0!==e.sectionState.relation?e.sectionState.relation:s.g9,this.groupsSelect.setSelectedNodes(Array.isArray(e.sectionState.items)?e.sectionState.items:[])}clear(){return this.setState(u())}setFilter(e){this.groupsSelect.setFilter(e)}destroy(){var e;null===(e=this.contentEl.parentNode)||void 0===e||e.removeChild(this.contentEl)}}var p=i(8515);class m extends a.FZ{constructor(e,t,i,r,o){super(),this.translate=e,this.connection=t,this.store=i,this.strings=r,this.zenithTooltipEnabled=o,this.sections=[],this.addFormItem=e=>{let t=new h(this.translate,this.connection,this.store,Object.assign({},this.strings),this.zenithTooltipEnabled);t.setFilter(this.filter);let i=t.setState(e).then((()=>{this.fire("onSectionAdded"),t.attach("onSectionRemove",(()=>this.removeFormItem(t))),t.attach("onSectionItemsUpdated",(()=>this.updateFormItem()))}
1));return this.formSectionsContainer.appendChild(t.content),this.sections.push(t),i},this.removeFormItem=e=>{if(1===this.sections.length)this.sections[0].clear(),this.fire("onSimpleSectionRemove",this.sections);else{e.detach("onSectionRemove"),e.destroy();let t=this.sections.indexOf(e);this.sections.splice(t,1),this.fire("onSectionRemove"),0===t&&this.fire("onSimpleSectionRemove",this.sections)}},this.updateFormItem=()=>{this.fire("onSectionUpdated")},this.clear=()=>{this.sections.forEach((e=>{e.detach("onSectionRemove"),e.destroy()})),this.sections=[],this.fire("onSectionRemove")},this.container=(0,n.vt)("div",{class:"form advanced-groups-filter"});let a=`\n <div class="form__desc">${e("AdvancedFilterFormDesc")}</div>\n <ul class="sections form__sections"></ul>\n <div class="form__add-section">\n <button class="add-section__button geo-button geo-caption" ${(null==r?void 0:r.addButtonTitle)?`title="${null==r?void 0:r.addButtonTitle}" data-tooltip="${null==r?void 0:r.addButtonTitle}"`:""}>\n <svg class="svgIcon large geo-caption__pre-content"><use xlink:href="#geo-plus-new"></use></svg>\n <span class="geo-caption__content">\n ${e("AddCondition")}\n </span>\n </button>\n </div>\n `;this.container.innerHTML=a,this.formSectionsContainer=this.container.querySelector(".form__sections");let l=this.container.querySelector(".add-section__button");const d=()=>({interSectionRelation:s.g9,sectionState:(0,s.Jt)()});l.addEventListener("click",(()=>this.addFormItem(d())),!1),this.addFormItem(d()),o&&(0,c.wS)([{parent:this.container,selector:".add-section__button",position:c._m.TopLeft}],e)}get content(){return this.container}getState(){let e=this.sections.reduce(((e,t)=>{let i=t.getState();return this.sections.length>1&&(0,l.je)(i.sectionState)&&i.sectionState.relation===p.$.OR?e:Object.keys(e).length?{relation:i.interSectionRelation,items:[e,i.sectionState]}:i.sectionState}),{});return Object.keys(e).length?(0,s.tT)((0,s.zR)(e)):(0,s.Jt)()}setState(e){this.clear();let t=(e,i=s.g9)=>(0,s.ND)(e)?this.addFormItem({interSectionRelation:i,sectionState:Object.assign({},e)}):Promise.all(e.items.map((i=>t(i,e.relation))));return t(e).then((()=>this.getState()))}get simpleSection(){return this.sections[0]}clearSelection(){return this.setState((0,s.Jt)())}setFilter(e){this.filter=e,this.sections.forEach((t=>t.setFilter(e)))}}var g=i(77789);class S extends a.FZ{initialize(){this.advForm=new m(this.translate,this.connection,this.store,Object.assign({},this.strings),this.zenithTooltipEnabled);let e={title:this.translate("AdvancedGroupsFilter"),isModal:!0,id:this.dialogId,zIndex:11001,buttons:[{name:this.translate("Cancel"),click:()=>{this.advForm.setState(this.initState),this.dialog.close()}},{name:this.translate("ApplyFilters"),click:()=>this.applyFilters(this.advForm.getState()),className:"geo-button geo-button--action"}],closeButtonCallback:e=>!e&&this.advForm.setState(this.initState)};this.dialog=(0,g.K)(this.advForm.content,e,this.translate),this.dialog.attachEvent("dialogClose",(()=>this.fire("onClose"))),this.advForm.attach("onSectionAdded",(()=>{this.dialog.resizeTo()})),this.advForm.attach("onSectionRemove",(()=>{this.dialog.resizeTo()})),this.advForm.attach("onSectionUpdated",(()=>{this.dialog.resizeTo()}))}updateSimpleSectionState(e){let t=(0,s.AZ)(this.getState(),(()=>({relation:e.relation,items:e.selectedNodes})));return this.setState(t)}constructor(e,t,i,n,r,o){super(),this.translate=e,this.connection=t,this.store=i,this.dialogId=n,this.strings=r,this.zenithTooltipEnabled=o,this.applyFilters=e=>{this.fire("onApply",e),this.dialog.close(!0),this.advForm.setState(e)},this.initialize(),this.attach("onSimpleChanged",(({value:e,onStateUpdated:t})=>{this.updateSimpleSectionState(e).then((()=>t&&t()))}))}show(e){return this.trigger!==e&&(this.trigger=e),this.dialog.show(),this.initState=Object.assign({},this.advForm.getState()),Promise.resolve()}hide(){this.dialog.close()}getState(){return this.advForm.getState()}setState(e){return this.advForm.setState(e)}clearSelection(){return this.advForm.clearSelection()}setFilter(e){this.advForm.setFilter(e)}}},89458(e,t,i){i.d(t,{A:()=>d});var n=i(44654),r=i(92191),o=i(79280),a=i(65872),s=i(86397),l=i(8515);class d extends s.FZ{constructor(e,t,i,n){super(),this.translate=e,this.params=t,this.strings=i,this.zenithTooltipEnabled=n,this.currentValue=a.g9}render(e){var t,i,a;let s=(0,r.vt)("input",{id:(null===(t=this.params)||void 0===t?void 0:t.id)||"",type:"radio",class:"switcher"});e.appendChild(s),this.switcher=(0,o.Z)(s,n.WI,{labels:{on:this.translate("OperatorAnd"),off:this.translate("OperatorOr")},onChange:e=>{this.currentValue=e.isOn()?l.$.AND:l.$.OR,this.fire("change",this.currentValue)},labelledBy:null===(i=this.params)||void 0===i?void 0:i.labelledBy,title:null===(a=this.strings)||void 0===a?void 0:a.switcherTitle,zenithTooltipEnabled:this.zenithTooltipEnabled}),this.switcher.setValue(this.currentValue===l.$.AND)}toggle(){this.value=this.currentValue===l.$.AND?l.$.OR:l.$.AND,this.fire("change",this.currentValue)}get value(){return this.currentValue}set value(e){this.currentValue=e,this.switcher&&this.switcher.setValue(e===l.$.AND)}}},11937(e,t,i){i.d(t,{A:()=>h});var n=i(86397),r=i(92191),o=i(44654),a=i(31129),s=i(721);const l=(0,o.dB)([13]),d=(0,o.dB)([27,9]),c=(0,o.dB)([38]),u=(0,o.dB)([40]);class h extends n.FZ{renderOption(e,t,i){return`${t&&t.section!==e.section?this.renderSeparator():""}<li id="${(0,o.$C)()}" data-id="${(0,o.z)(e.value)}" class="custom-select__option${e.disabled?" custom-select__option--disabled":""}" role="option" aria-label="${(0,o.z)(e.label)}" ${e.disabled?"aria-disabled=true":""}>${i}</li>`}renderSeparator(){return'<li class="custom-select__separator" role="separator" aria-disabled="true"></li>'}searchSelected(e){let t=e;for(;t&&t!==this.selectList&&!t.hasAttribute("data-id");)t=t.parentElement;if(!t.hasAttribute("data-id"))return;let i=t.getAttribute("data-id");return this.items.filter((e=>e.value===i))[0]}toggleList(e){if(this.isShown!==e){if(this.options.wide&&e&&(this.selectListWrapper.style.width=Math.max(this.parent.offsetWidth,30)+"px"),this.isShown=e,(0,r.jY)(this.selectListWrapper,this.shownModifier,e),this.selectList.setAttribute("aria-expanded",e.toString()),e)return this.selectElt.blur(),this.selectList.focus(),this.selectList.addEventListener("keydown",this.scrollUp,!1),this.selectList.addEventListener("keydown",this.scrollDown,!1),this.selectList.addEventListener("keyup",this.moveUp,!1),this.selectList.addEventListener("keyup",this.moveDown,!1),this.selectList.addEventListener("keypress",this.enterFn,!1),this.selectList.addEventListener("keyup",this.escapeFn,!1),this.global.addEventListener("click",this.clickOutside,!1),this.nextSelection=this.selection,void(void 0!==this.selection&&this.select(this.selection));this.selectElt.focus(),this.selectList.removeEventListener("keydown",this.scrollUp,!1),this.selectList.removeEventListener("keydown",this.scrollDown,!1),this.selectList.removeEventListener("keyup",this.moveUp,!1),this.selectList.removeEventListener("keyup",this.moveDown,!1),this.selectList.removeEventListener("keypress",this.enterFn,!1),this.selectList.removeEventListener("keyup",this.escapeFn,!1),this.global.removeEventListener("click",this.clickOutside,!1)}}indexBySelection(e){for(let t=0;t<this.items.length;t++)if(e.value===this.items[t].value)return t;return-1}getNextIndex(e,t,i){let n=e+i;return n<0?t-1:n>=t?0:n}select(e){let t=this.selectList.querySelector(`.${this.selectedModifier}`);t&&(t.classList.remove(this.selectedModifier),this.options.listItemSelectedClass&&t.classList.remove(this.options.listItemSelectedClass),t.removeAttribute("aria-selected"));let i=this.selectList.querySelector(`[data-id="${e.value}"]`);if(i){i.classList.add(this.selectedModifier),this.options.listItemSelectedClass&&i.classList.add(this.options.listItemSelectedClass),i.setAttribute("aria-selected","true"),this.selectList.setAttribute("aria-activedescendant",i.id);let e=Math.round(this.selectList.offsetHeight/2),t=Math.max(i.offsetTop-i.offsetHeight,0);t<this.selectList.scrollTop&&(this.selectList.scrollTop=t-e);
1let n=this.selectList.scrollTop,r=i.offsetTop+i.offsetHeight;r>n&&(this.selectList.scrollTop=r-i.offsetHeight-e)}}moveSelection(e,t){if(this.nextSelection=this.nextSelection||this.selection,void 0===this.nextSelection)return;let i=this.getNextIndex(this.indexBySelection(this.nextSelection),this.items.length,e);this.nextSelection=this.items[i],this.nextSelection.disabled&&this.nextSelection!==t?this.moveSelection(e,t||this.nextSelection):this.select(this.nextSelection)}moveNext(e){return t=>{t.preventDefault(),this.scrolling=!1,clearTimeout(this.scrollingTimer),this.scrollingTimer=void 0,this.moveSelection(e)}}scrollNext(e){return t=>{t.preventDefault(),this.scrolling?this.moveSelection(e):this.scrollingTimer||(this.scrollingTimer=setTimeout((()=>{this.scrolling=!0,this.moveSelection(e)}),400))}}constructor(e,t,i,n,h,p,m="",g){super(),this.parent=e,this.global=t,this.renderItem=i,this.renderSelectedItem=n,this.items=[],this.isShown=!1,this.scrolling=!1,this.shownModifier="custom-select__wrapper--shown",this.selectedModifier="custom-select__option--selected",this.clickOutside=e=>{let t=e.target;for(;t&&t!==this.parent;)t=t.parentElement;t||this.toggleList(!1)},this.pickItem=e=>{const t=this.searchSelected(e)||this.selection;t&&t.disabled||(this.selection=t,void 0!==this.selection&&(this.value=this.selection.value,this.toggleList(!1),this.fire("change",Object.assign({},this.selection))))},this.options=Object.assign({wide:!1,label:"",listItemSelectedClass:""},h),this.moveUp=u(this.moveNext(1)),this.moveDown=c(this.moveNext(-1)),this.scrollDown=c(this.scrollNext(-1)),this.scrollUp=u(this.scrollNext(1)),this.enterFn=l((()=>{let e=this.selectList.querySelector(`.${this.selectedModifier}:not(.custom-select__option--disabled)`);e&&this.pickItem(e)})),this.escapeFn=d((()=>{this.toggleList(!1),this.selectElt.focus()})),e.classList.add("custom-select"),this.options.wide&&e.classList.add("custom-select--wide"),this.options.useNewUI&&e.classList.add("custom-select--new-ui");let S=(0,r.Kb)((0,a.h$)(this.options.label,(0,o.$C)(),this.options.useNewUI,m,!!g,this.options.buttonId));S.forEach((t=>{e.appendChild(t)})),this.selectListWrapper=S[1],this.selectList=S[1].children[0],this.selectList.addEventListener("click",(e=>{this.pickItem(e.target)}),!1),this.selectElt=S[0],this.selectElt.addEventListener("click",(()=>{this.toggleList(!this.selectListWrapper.classList.contains(this.shownModifier))}),!1),this.selectElt.addEventListener("keyup",this.escapeFn,!1),g?(this.selectListWrapper.querySelector(".custom-select__fixed-item").appendChild(g),g.addEventListener("blur",(()=>this.toggleList(!1)))):this.selectList.addEventListener("blur",(()=>this.toggleList(!1))),this.options.zenithTooltipEnabled&&(0,s.wS)([{parent:this.parent,selector:".zenith-select",position:s._m.Top}],p)}updateItem(e,t=!1,i=!1){var n;this.items=t?i?[...e,...this.items]:[...this.items,...e]:e,this.selectList.innerHTML=this.items.filter((e=>void 0!==e.data)).map(((e,t,i)=>this.renderOption(e,i[t-1],this.renderItem(e.data)))).join("");let r=null===(n=this.selection)||void 0===n?void 0:n.value;r&&!this.items.every((e=>e.value!==r))||(this.value=this.items[0].value)}focus(){this.selectElt.focus()}set disabled(e){this.selectElt.disabled=e,this.toggleList(!1)}get disabled(){return this.selectElt.disabled}set value(e){let t=this.items.filter((t=>t.value===e));t.length>0&&(this.selection=t[0],this.select(this.selection),this.selectElt.innerHTML=this.renderSelectedItem(this.selection.data))}get value(){return this.selection?this.selection.value:""}}},31129(e,t,i){i.d(t,{Ue:()=>n,dd:()=>r,h$:()=>o});const n=(e,t,i)=>`\n<span class="custom-selected-item ${e}" id="${t}" aria-hidden="true">\n <span class="custom-selected-item__name">${i}</span>\n <svg class="custom-selected-item__icon"><use xlink:href="#geo-new-arrow-down"></use></svg>\n</span>
1\n`.trim(),r=e=>`\n<div class="inline-custom-select ${e}"></div>\n`.trim(),o=(e,t,i=!1,n="",r,o)=>`\n <button aria-haspopup="listbox" aria-controls="${t}" class="custom-select__selection ${i?"":"custom-select__selection--clean"} ${n}" ${o?`id="${o}"`:`aria-label="${e}"`} title="${e}" data-tooltip="${e}"></button>\n <div class="custom-select__wrapper">\n <ul tabindex="-1" role="listbox" id="${t}" class="custom-select__list"></ul>\n ${r?'<div class="custom-select__fixed-item"></div>':""}\n </div>\n`.trim()},87775(e,t,i){i.d(t,{X:()=>o});var n=i(44654),r=i(92191);const o=(e,t,i,o=!1)=>{let a=(0,r.Kb)(`<div class="geo-tag filter-single${o?" geo-tag--html":""}">\n <span class="geo-tag__name">${o?e:(0,n.z)(e)}</span>\n <button class="geo-tag__remove" group-id="${t}" title="${i}" aria-label="${i}">\n <svg class="svgIcon geo-tag__close-icon group-icon"><use xlink:href="#geo-cross-thin"></use></svg>\n </button>\n </div>`)[0],s=a.querySelector(".geo-tag__remove"),l=a.querySelector(".group-icon");return s.addEventListener("mouseover",(()=>{(0,r.gR)(l,"group-icon--hovered"),(0,r.gR)(s,"geo-tag__remove--hovered")}),!1),s.addEventListener("mouseout",(()=>{(0,r.jo)(l,"group-icon--hovered"),(0,r.jo)(s,"geo-tag__remove--hovered")}),!1),s.addEventListener("focus",(()=>{(0,r.gR)(a,"geo-tag--focused"),(0,r.gR)(l,"group-icon--hovered"),(0,r.gR)(s,"geo-tag__remove--hovered")}),!1),s.addEventListener("blur",(()=>{(0,r.jo)(a,"geo-tag--focused"),(0,r.jo)(l,"group-icon--hovered"),(0,r.jo)(s,"geo-tag__remove--hovered")}),!1),a}},82470(e,t,i){i.d(t,{Er:()=>n,ZY:()=>s,ao:()=>c,lE:()=>o,m4:()=>l,m8:()=>r});const n=e=>({id:"root",name:"",link:"",children:e}),r=(e,t)=>{let i=Object.assign(Object.assign({},e),{children:void 0,parent:t});return e.children&&(i.children=e.children.map((e=>r(e,i)))),i},o=(e,t)=>{if(e.id===t)return e;if(e.children)for(const i of e.children){let e=o(i,t);if(e)return e}},a=(e,t)=>!!o(e,t),s=(e,t)=>!a(e,t.id)&&!a(t,e.id),l=(e,t)=>
1{if(void 0!==e.children)for(const i of e.children)if(t.has(i.id)||l(i,t))return!0;return!1},d=(e,t)=>{let i=e;if(void 0===i.children||0===i.children.length)return t;for(const e of i.children)t.push(e.id),d(e,t);return t},c=e=>{let t=(e=>{let t=e;const i=[];for(;t.parent;)i.push(t.parent.id),t=t.parent;return i})(e),i=d(e,[]);return new Set([...t,e.id,...i])}},87926(e,t,i){i.d(t,{N7:()=>C,Ne:()=>v,Qm:()=>f,R3:()=>M,RN:()=>p,TW:()=>R,Vn:()=>w,Wr:()=>y,XC:()=>A,_2:()=>I,c8:()=>b,cZ:()=>O,gS:()=>D,i7:()=>E,kA:()=>k,mV:()=>S,mi:()=>m,p_:()=>T,ud:()=>L,yR:()=>F,zj:()=>P});var n=i(96732),r=i(44654),o=i(89615),a=i(32449),s=i(65872),l=i(4981),d=i(12444),c=i(94996),u=i(8515);let h=e=>e&&void 0!==e.relation;function p(e){let t=[],i=[];return e.items.forEach((n=>{var r,a;h(n)?(r=n,a=e.relation,1===r.items.length&&r.items[0].id&&r.relation===a?n.items[0].id!==o.s_&&i.push(n.items[0].id):t.push(n)):n.id!==o.s_&&i.push(n.id)})),{advancedFilterState:t.length?{relation:e.relation,items:[...t]}:void 0,simpleFilterState:i.length?[...i]:void 0,relation:e.relation}}function m(e){let t=[];return e.advancedFilterState&&e.advancedFilterState.items[0].id!==o.s_&&t.push(e.advancedFilterState),e.simpleFilterState&&e.simpleFilterState.length>0&&e.simpleFilterState.forEach((e=>{t.push({id:e})})),{relation:e.relation,items:t.length?[...t]:[{id:o.s_}]}}const g=(e,t,i)=>{var n;if(!e[t])return;let o=Object.assign(Object.assign({},e[t]),{parent:i?Object.assign({},e[i]):void 0});if(o.children&&(null===(n=o.children)||void 0===n?void 0:n.length)>0){let t=o.children.map((t=>g(e,t.id,o.id))).filter(r.WI);o.children=t?[...t]:[]}return o};function S(e,t,i,n,r,o){let a=i();return t.map((t=>{let i=n(t.id);return Object.assign(Object.assign({label:(0,l.If)(t,e),property:t.id,checked:a.indexOf(t.id)>-1,isWithAction:t.children&&t.children.length>0||!1,partialChecked:i.length>0,countSelectedChild:i.length,blocked:!1},o?{title:o(t.id)}:{}),r?{color:t.color}:{})}))}function v(e,t,i,n,r){let o=i();return t.map((t=>Object.assign(Object.assign({label:(0,l.If)(t,e),property:t.id,checked:o.indexOf(t.id)>-1,isWithAction:!1,partialChecked:!1,blocked:!1},r?{title:r(t.id)}:{}),n?{color:t.color}:{})))}function I(e,t){return e.map((e=>({label:e,property:e,checked:e===t,isWithAction:!1,partialChecked:!1,blocked:!1})))}function y(e,t,i){return i.map((e=>t[e]?Object.assign({},t[e]):void 0)).filter(r.WI).map((i=>{let n=f(e,t,i.id,o.s_);return Object.assign(Object.assign({},i),{name:["...",...n.length>1?n.slice(-2):n].join("/")})}))}function f(e,t,i,n){var r;let o=t[i];if(!o)return[];let a=[(0,l.If)(o,e)],s=o.parent?t[null===(r=o.parent)||void 0===r?void 0:r.id]:void 0;for(;s&&s.id!==n;)a.push((0,l.If)(s,e)),s=s.parent?t[s.parent.id]:void 0;return a.length>1?a.reverse():a}function D(e,t){let i=[],n=[];return e.filter((e=>!(null==t?void 0:t.has(e.id)))).forEach((e=>(0,l.hr)(e.id)?i.push(e):n.push(e))),{builtInGroups:[...i],userGroups:[...n],currentId:void 0}}function C(e,t){let i=[],n=[];return e?(((null==e?void 0:e.children)||[]).filter((e=>!(null==t?void 0:t.has(e.id)))).forEach((e=>(0,l.hr)(e.id)?i.push(e):n.push(e))),{builtInGroups:[...i.map((e=>{var i;return Object.assign(Object.assign({},e),{children:null===(i=e.children)||void 0===i?void 0:i.filter((e=>!(null==t?void 0:t.has(e.id))))})}))],userGroups:[...n],currentId:e.id}):{builtInGroups:[],userGroups:[],currentId:void 0}}function R(e){let t=[];return e?((e||[]).forEach((e=>{if(e&&t.push([e]),(null==e?void 0:e.children)&&e.children.length>0){let i=R(e.children);i&&t.push(i)}})),(0,r.ZP)(t)):[]}function T(e,t){var i;let n={},r={};e.forEach((e=>{n[e.id]=Object.assign({},e)}));let o=function(e,t){let i=g(e,t);if(!i){const n=(0,d.YD)(Object.values(e)).map((e=>Object.assign(Object.assign({},e),{parent:void 0})));i={id:t,name:"",children:[...n.map((e=>Object.assign(Object.assign({},e),{parent:{id:t,name:"",parent:void 0}})))],parent:void 0}}return i.parent={id:"root",name:"",children:[Object.assign({},i)],parent:void 0},i}(n,t);return o?(r[t]=Object.assign({},o),null===(i=o.children)||void 0===i||i.forEach((e=>{r[e.id]=Object.assign({}
1,e),R(e.children||[]).forEach((e=>{e&&(r[e.id]=Object.assign({},e))}))})),r):{}}function b(e,t){const i=t=>t===u.$.OR?e("OperatorOr"):e("OperatorAnd"),n=(e,t="")=>{let r=e.items;if(r&&r.length&&h(r[0]))return r.reduce(((t,r)=>`${""+(t?`${t} ${i(e.relation)} `:"")}${n(r,t)}`),t);let o=r.map((e=>`${e.name}`)).join(` ${i(e.relation)} `);return`${r&&r.length>1?`(${o})`:o}`};return`${n(t)}`}function w(){return{groups:(0,s.Jt)(),sideWide:!1}}function A(){return(0,s.Jt)()}function E(e,t){return{groups:e?m(e):(0,s.Jt)(),sideWide:t||!1}}const k="groups";function O(e){const{global:t,state:i}=e.getState();return t.filter&&!(0,r.je)(t.filter)?{groups:(0,s.qk)(t.filter,(e=>({id:e}))),sideWide:!0}:{groups:i[k]?(0,s.qk)(i.groups,(e=>({id:e}))):(0,s.Jt)(),sideWide:!1}}function M(e,t,i=!1){const{groups:n,sideWide:o}=t,a=(0,r.je)(n)?void 0:(0,s.qk)(n,(e=>e.id)),l=e.getState(),d=Object.assign(Object.assign({},l),{state:Object.assign(Object.assign({},l.state),{[k]:o?void 0:a}),global:Object.assign(Object.assign({},l.global),{filter:o?a:void 0})});e.setState(d,i)}function L(e,t){let i=e;return P(t)||(i=Object.assign(Object.assign({},i),{state:{}})),F(i)}function P(e){return!(0,c.kZ)(e.featurePreview)&&(0,n.QS)(e.featurePreview,a.O5.PAGE_GROUPS_FILTER)}function F(e){const{state:t,global:i}=e,n=(0,c.kZ)(t.groups)?i.filter:t.groups;return(0,c.kZ)(n)?(0,s.Jt)():(0,s.qk)(n,(e=>({id:e})))}},1371(e,t,i){i.d(t,{o:()=>V});var n=i(8515),r=i(44654),o=i(4981),a=i(92191),s=i(86397),l=i(93622),d=i(65872);class c{getNum(e){return(0,r.je)(e)?0:(0,d.iq)(e)?e.items.some((e=>(0,d.iq)(e)))?1:e.items.length:e.length}constructor(e,t){this.container=e,this.counterEl=(0,a.vt)("span",{class:"notifications-button__amount geo-button-badge"}),this.filterState=t,e.appendChild(this.counterEl)}set filterState(e){const t=this.getNum(e);this.counterEl.textContent=t.toString(),(0,a.L$)(this.counterEl,0!==t)}destroy(){this.container.removeChild(this.counterEl)}}var u=i(53621),h=i(86244);class p{constructor(e){this.store=e,this.getAllgroupsRequest=void 0,this.isGetAllgroupsRequestSettled=!1,this.setAllGroupsRequestSettled=()=>{this.isGetAllgroupsRequestSettled=!0}}async getAllGroups(e={}){return this.getAllgroupsRequest&&!this.isGetAllgroupsRequestSettled||(this.isGetAllgroupsRequestSettled=!1,this.getAllgroupsRequest=this.store.groups.getItemsByValue(),this.getAllgroupsRequest.then(this.setAllGroupsRequestSettled,this.setAllGroupsRequestSettled)),new h.g(this.getAllgroupsRequest,e)}}var m=i(89615),g=i(76357),S=i(89458),v=i(54147);class I extends s.FZ{addListeners(){this.activeEl.addEventListener("focus",(()=>{this.fire("focus",this.id)})),this.activeEl.addEventListener("blur",(()=>this.fire("blur",this.id)))}constructor(e,t,i,n){super(),this.groupId=e,this.itemType=t,this.controlEl=i,this.controlEl.classList.add("active-list-item"),this.activeEl=n(this.controlEl),this.addListeners()}get id(){return this.groupId}get type(){return this.itemType}focus(){this.activeEl.focus()}setTabIndex(e){this.activeEl.tabIndex=e}}var y,f;!function(e){e.System="Built-in Groups",e.Custom="Groups"}(y||(y={})),function(e){e.Normal="normal",e.Parent="parent",e.Up="up",e.SelectAll="selectAll",e.Nothing="nothing"}(f||(f={}));f.Normal,f.SelectAll;const D={[f.Parent]:"#geo-folder-empty",[f.SelectAll]:"#geo-circle-ok",[f.Up]:"#geo-lvl-up"},C=(e,t)=>`\n <div class="group-list-item__content group-list-item-content">\n <div class="group-list-item-content__icon">${(e=>{const t=D[e];return t?`<svg class="group-list-icon">\n <use xlink:href="${t}"></use>\n </svg>`:""})(e)}</div>\n <div class="group-list-item-content__title">${(0,r.z)(t)}</div>\n </div>`;class R{constructor(e,t,i,n){this.el=(0,a.Kb)(((e,t,i)=>{return`\n <li id="${n=e,`group-list-item-${n}`}" class="group-list__item group-list-item" data-id="${e}" data-type="${t}" title="${(0,r.z)(i)}"></li>`;var n})(t,i,n))[0],e.appendChild(this.el)}get slot(){return this.el}set selected(e){}}class T extends I{constructor(e,t,i,n,r){super(t,n,(0,a.Kb)((e=>`\n <button class="button-list-item" value="${e}" tabindex="-1"></button>`)(t))[0],(e=>e)),this.onClick=e=>{e.preventDefault(),e.stopPropagation(),this.fire("click",this.id)},this.onKeyDown=e=>{"Enter"===e.code&&this.onClick(e)};const o=(0,a.K4)(),s=new R(o,t,n,r);this.activeEl.addEventListener("click",this.onClick,!1),this.activeEl.addEventListener("keydown",this.onKeyDown,!1),s.slot.appendChild(this.activeEl);const l=(0,a.Kb)(C(n,i))[0];this.activeEl.appendChild(l),e.appendChild(o)}}class b extends I{constructor(e,t,i,n,r,o){super(t,r,(0,a.Kb)((e=>{const t=`group_${e}`;return`<div class="selectable-list-item">\n <input id="${t}" class="selectable-list-item__checkbox" type="checkbox" tabindex="-1" value="${e}"/>\n <label for="${t}" class="selectable-list-item__label"></label>\n </div>`})(t))[0],(e=>e.querySelector(".selectable-list-item__checkbox"))),this.onSelect=()=>{this.fire("select",{id:this.id,isSelected:this.selected})},this.onKeyDown=e=>{"Enter"===e.code&&(this.selected=!this.selected,this.onSelect())};const s=(0,a.K4)();this.groupListItem=new R(s,t,r,o);const l=this.controlEl.querySelector(".selectable-list-item__label");this.activeEl.checked=n,this.groupListItem.slot.appendChild(this.controlEl),this.activeEl.addEventListener("change",this.onSelect,!1),this.activeEl.addEventListener("keydown",this.onKeyDown,!1);const d=(0,a.Kb)(C(r,i))[0];l.appendChild(d),e.appendChild(s)}get selected(){return!!this.activeEl.checked}set selected(e){this.activeEl.checked=e}}class w{constructor(e,t,i,n,s,l){this.translate=n,this.getTitle=l,this.compareGroups=(e,t)=>{const i=(0,r.z)((0,o.If)(e,this.translate)),n=(0,r.z)((0,o.If)(t,this.translate));return i.localeCompare(n)},this.getItem=(e,t,i)=>{const n=t.children.length?f.Parent:f.Normal;return n===f.Parent?new T(e,t.id,(0,o.If)(t,this.translate),n,this.getTitle(t)):new b(e,t.id,(0,o.If)(t,this.translate),i,n,this.getTitle(t))};const d=(0,a.K4)();this.listItems=i.sort(this.compareGroups).map((e=>this.getItem(d,e,e.isSelected))),this.el=(0,a.Kb)(((e,t)=>{const i=(0,r.$C)();return`\n <div class='group-list__section group-list-section'>\n ${e?`<div id="${i}" class="group-list-section__header">${e}</div>`:""}\n <ul\n class="group-list group-list-section__items"\n ${e?`aria-labelledby="${i}"`:""}\n >${t}</ul>\n </div>\n `})(s?"":this.translate(t),""))[0];this.el.querySelector(".group-list-section__items").appendChild(d),e.appendChild(this.el)}get items(){return this.listItems}}var A=i(24985),E=i(12444);class k extends s.FZ{loadGroupsTree(){return this.store.groups.clearCache(),this.store.groups.getItemsByValue().then((e=>(0,E.YD)(e)))}deselectChildren(e,t=new Set([])){return e.children.reduce(((e,t)=>{var i=e;return t.children&&t.children.length&&(i=this.deselectChildren(t,i)),this.selectedItems.has(t.id)&&i.add(t.id),this.selectedItems.delete(t.id),i}),t)}deselectParent(e){let t=e.parent;if(t)return this.selectedItems.has(t.id)?(this.selectedItems.delete(t.id),t.id):this.deselectParent(t)}createTopGroup(e){const t={r:0,g:0,b:0,a:0};return e.forEach((e=>{e.parent={id:m.s_,name:m.k3,color:t,children:[]}})),{id:m.s_,name:m.k3,children:e,color:t}}constructor(e,t,i=[]){super(),this.store=e,this.translate=t,this.selectedItems=new Set,this.groupsTree=[],this.globalFilterState=(0,d.Jt)(),this.compareGroups=(e,t)=>(0,o.If)(t,this.translate).toLocaleLowerCase().indexOf(e.name.toLocaleLowerCase())>-1,this.selectedItems=new Set([...i])}async load(e){var t;this.groupsTreePromise&&void 0===e||(null===(t=this.abortToken)||void 0===t||t.abort(),this.abortToken=new A.H,this.groupsTreePromise=Promise.race([this.loadGroupsTree(),this.abortToken.promise]));let i=await this.groupsTreePromise;return i=(0,E.lx)(i,this.globalFilterState,i),e&&(i=(0,E.TR)(i,{id:"!search",name:e},this.compareGroups,!0)),i.length&&(i.length>1||!i[0].children.length)&&(i=[this.createTopGroup(i)]),this.groupsTree=i,i}isSelected(e){return this.selectedItems.has(e)}get selected(){return Array.from(this.selectedItems)}set selected(e){this.selectedItems=new Set(e)}selectItem(e){const t=(0,E.TR)(this.groupsTree,{id:e})[0];if(!t)throw new Error("Can't select group. Group is not in the groups tree.");const i=new Set(this.selectedItems);this.selectedItems.add(e);const n=this.deselectChildren(t),r=this.deselectParent(t);r&&n.add(r),this.fire("update",{prevState:i,newState:new Set(this.selectedItems),diff:{selected:new Set([e]),deselected:n}})}deselectItem(e){if(!this.selectedItems.has(e))return;if(!(0,E.TR)(this.groupsTree,{id:e})[0])throw new Error("Can't deselect group. Group is not in the groups tree.");const t=new Set(this.selectedItems);this.selectedItems.delete(e);let i=[];0===this.selectedItems.size&&(i=[m.s_],this.selectedItems.add(m.s_)),this.fire("update",{prevState:t,newState:new Set(this.selectedItems),diff:{selected:new Set(i),deselected:new Set([e])}})}getById(e){return(0,E.TR)(this.groupsTree,[{id:e}])}set globalFilter(e){this.globalFilterState=e}destroy(){var e;null===(e=this.abortToken)||void 0===e||e.abort()}}const O=[y.System,y.Custom];class M extends s.FZ{getSectionType(e){return(0,o.hr)(e.id)?y.System:y.Custom}getSection(e,t,i,n){return new w(e,t,i,this.translate,n,this.getTitle)}getUpButton(e,t){const i=this.translate("Up one level");return new T(e,t.id,i,f.Up,i)}getSelectAllButton(e,t){const i=this.translate("Everything in {0}").replace("{0}",(0,r.z)((0,o.If)(t,this.translate)));return new b(e,t.id,i,this.groupListState.isSelected(t.id),f.SelectAll,i)}addNothingItem(e){const t="nothing",i=(this.translate("Nothing was found"),new R(e,t,f.Nothing,"")),n=(0,a.Kb)((r=this.translate,`\n <div class="nothing-list-item">${C(f.Nothing,r("Nothing was found"))}</div>`))[0];var r;i.slot.appendChild(n)}
1updateRovingTabIndex(e){this.items.forEach(((t,i)=>{t.setTabIndex(i===e?0:-1)}))}focusItem(e){this.updateRovingTabIndex(e),this.focusedItemIndex=e,this.items[e].focus()}constructor(e,t,i,n,r,o){super(),this.store=i,this.translate=n,this.getTitle=r,this.items=[],this.focusedItemIndex=-1,this.onDrillDown=async e=>{await this.render(e,!0),this.fire("navigate",e)},this.onSelect=({id:e,isSelected:t})=>{t?this.groupListState.selectItem(e):this.groupListState.deselectItem(e),this.fire("select",{id:e,isSelected:t})},this.onUpdateState=e=>{this.items.forEach((t=>{t instanceof b&&(t.selected=e.newState.has(t.id))})),this.fire("change",e)},this.attachItemListeners=e=>{e instanceof b&&e.attach("select",this.onSelect),e instanceof T&&e.attach("click",this.onDrillDown),e.attach("blur",(()=>{this.focusedItemIndex=-1})),e.attach("focus",(()=>{const t=this.items.indexOf(e);this.updateRovingTabIndex(t),this.focusedItemIndex=t}))},this.focusNext=()=>{const e=this.focusedItemIndex+1;e>=this.items.length?this.focusItem(0):this.focusItem(e)},this.focusPrevious=()=>{const e=this.focusedItemIndex-1;e<0?this.focusItem(this.items.length-1):this.focusItem(e)},this.onKeyDown=e=>{switch(e.code){case"ArrowDown":e.preventDefault(),this.focusNext();break;case"ArrowUp":e.preventDefault(),this.focusPrevious()}},this.groupListState=new k(this.store,n,o),this.container=(0,a.vt)("ul",{"aria-label":t,class:"group-list"}),this.waiting=(0,v.A)(this.container,{insertWaitingToContainer:!0}),e.appendChild(this.container),this.groupListState.attach("update",this.onUpdateState),this.container.addEventListener("keydown",this.onKeyDown,!1)}async render(e,t=!1){this.container.innerHTML="",this.groupsTreePromise||(this.groupsTreePromise=this.groupListState.load()),this.container.classList.add("group-list--loading"),this.waiting.displayProgress(this.groupsTreePromise);const i=await this.groupsTreePromise;this.focusedItemIndex=-1,this.container.classList.remove("group-list--loading");const n=e?this.groupListState.getById(e):i,r=(1===n.length&&n[0].children.length&&n[0].children?n[0].children:n).reduce(((e,t)=>{const i=this.getSectionType(t);return e[i]||(e[i]=[]),e[i].push(Object.assign(Object.assign({},t),{isSelected:this.groupListState.isSelected(t.id)})),e}),{}),o=(0,a.K4)(),s=[],l=n[0]&&n[0].parent;l&&(e&&i[0].id!==e&&s.push(this.getUpButton(o,l)),s.push(this.getSelectAllButton(o,n[0])));const d=Object.keys(r).length<2,c=O.map((e=>{const t=r[e]||[];if(!t.length)return;const i=(0,a.Kb)((n="",s=e,`\n <li class="group-list__item group-list__item--section" aria-label="${s}" data-section="${s}">\n ${n}\n </li>`))[0];var n,s;const l=this.getSection(i,e,t,d);return o.appendChild(i),l})).reduce(((e,t)=>t?e.concat(t.items):e),[]);this.items=s.concat(c),this.items.forEach(this.attachItemListeners),this.items.length>0&&this.updateRovingTabIndex(0),this.items.length||this.addNothingItem(o),this.container.appendChild(o),t&&this.focusNext(),this.fire("render")}get state(){return this.groupListState.selected}set state(e){this.groupListState.selected=e,this.items.forEach((e=>{e.selected=this.groupListState.isSelected(e.id)}))}async search(e){this.groupsTreePromise=this.groupListState.load(e),this.fire("search",e),await this.render()}invokeKeyDown(e){this.onKeyDown(e)}set globalFilter(e){this.groupListState.globalFilter=e}destroy(){this.groupListState.destroy()}static translations(){return["Nothing was found","Everything in {0}","Up one level",y.System,y.Custom]}}var L=i(87775);class P extends s.FZ{handleAmount(e){this.amountTag.textContent=e.toString(),this.moreTag.textContent=this.translate("{0} more").replace("{0}",e.toString())}isAdvancedState(e){var t;return(null===(t=e.items)||void 0===t?void 0:t.length)&&(0,d.iq)(e.items[0])}getRelationStr(e){let t=e===n.$.OR?"OperatorOr":"OperatorAnd";return this.translate(t)}getAdvancedFilterString(e){const t=(e,i="")=>{let n=e.items;if(this.isAdvancedState(e))return null==n?void 0:n.reduce(((i,n)=>`${""+(i?`${i} <span class="selected-item__operator selected-item__operator--intersection">${this.getRelationStr(e.relation)}</span> `:"")}${t(n,i)}`),i);let o=null==n?void 0:n.map((e=>`<span class="selected-item__subitem">${(0,r.z)(e.name)}</span>`)).join(` <span class="selected-item__operator">${this.getRelationStr(e.relation)}</span> `);return`<span class="selected-item__section">${(null==n?void 0:n.length)>1?`(${o})`:o}</span>`};return`<span class="selected-item">${t(e)}</span>`}add(e,t,i,n){this.allSelectedElement&&(this.allSelectedElement.style.display="none"),this.currentSelection.items.push(e);let r=this.generateItem(e,n,e.isAdvanced);this.container.insertBefore(r,this.popupAnchor);const o=this.container.clientWidth;let a=r.clientWidth+this.itemMargin;const s=t<i-1?this.widthForAnchor:0;this.collapsible&&o<this.alreadyConsumedWidth+a+s||this.isAnchorVisible()?(r.remove(),this.popupContainer.append(r),this.handleAmount(this.popupContainer.children.length),this.popupAnchor.style.display="flex"):this.alreadyConsumedWidth+=a}constructor(e,t,i={}){super(),this.container=e,this.translate=t,this.options=i,this.widthForAnchor=75,this.itemMargin=12,this.collapsible=!0,this.currentSelection=(0,d.Jt)(),this.createAllSelected=()=>
1{if(this.options.customAllSelected)return this.options.customAllSelected;let e=document.createElement("div");e.className="selection-manager__tag--all geo-tag";let t=document.createElement("span");return t.innerHTML=this.options.allSelectedText||this.translate("All groups selected"),t.className="geo-tag__name geo-tag__name--placeholder",e.appendChild(t),e},this.createPopupContainer=()=>{let e=document.createElement("div");return e.className="selection-popup geo-popup--flex-width",e},this.createPopupAnchor=()=>{let e=document.createElement("button");return e.className="geo-tag geo-tag--focusable selection-anchor",e.style.display="none",this.amountTag=document.createElement("span"),this.amountTag.className="geo-tag__name selection-anchor__amount",e.appendChild(this.amountTag),this.moreTag=document.createElement("span"),this.moreTag.className="geo-tag__name selection-anchor__name",e.appendChild(this.moreTag),this.arrowTag=document.createElement("span"),this.arrowTag.className="geo-tag__icon selection-anchor__icon",this.arrowTag.innerHTML='<svg class="selection-anchor__arrow toRotate"><use xlink:href="#geo-new-arrow-down"></use></svg>',e.appendChild(this.arrowTag),e},this.isAnchorVisible=()=>"none"!==this.popupAnchor.style.display,this.generateItem=(e,t,i=!1)=>{let n=(0,L.X)(e.name,e.id,this.translate("Remove selection"),i);n.classList.add("selection-manager__tag");let r=n.querySelector(".geo-tag__remove");r&&r.addEventListener("click",(()=>{let e=r&&r.getAttribute("group-id")||"";this.remove(e)}),!1);let o=(0,a.vt)("div",{class:"selection-manager__item"});if(o.appendChild(n),t){let e=(0,a.vt)("div",{class:"selection-manager__relation"});e.textContent=t,o.appendChild(e)}return o},this.clearContainer=()=>{let e=this.container.querySelectorAll(".selection-manager__item");for(let t=0;t<e.length;t++){let i=e[t],n=i.parentElement;n&&n.removeChild(i)}},e.classList.add("selection-manager"),this.allSelectedElement=this.options.showAllSelected?this.createAllSelected():void 0,this.allSelectedElement&&this.container.append(this.allSelectedElement),this.popupAnchor=this.createPopupAnchor(),e.append(this.popupAnchor),this.handleAmount(0),this.popupContainer=this.createPopupContainer(),e.append(this.popupContainer),this.popup=(0,l.Ay)(this.popupAnchor,{content:this.popupContainer})}resize(){this.setSelection(this.currentSelection)}setSelection(e){if(this.currentSelection={relation:e.relation,items:[]},this.popupAnchor.style.display="none",this.popupContainer.innerHTML="",this.clearContainer(),this.alreadyConsumedWidth=0,this.handleAmount(0),this.allSelectedElement&&(this.allSelectedElement.style.display="flex"),this.isAdvancedState(e)){let t={id:"-1",name:this.getAdvancedFilterString(e),isAdvanced:!0};this.add(t,0,1)}else{let t=e.items.filter((e=>e.id!==m.s_));t.forEach(((i,n)=>{let r=this.getRelationStr(e.relation);this.add(i,n,t.length,n!==t.length-1?r:void 0)}))}}remove(e){if("-1"===e)this.fire("reset"),this.setSelection(Object.assign(Object.assign({},this.currentSelection),{items:[]}));else{this.fire("remove",e);let t=this.currentSelection.items.reduce(((t,i)=>(i.id!==e&&t.push(i),t)),[]);this.setSelection(Object.assign(Object.assign({},this.currentSelection),{items:t}))}}set isCollapsible(e){this.collapsible=e}destroy(){this.container.innerHTML="",this.popup.destroy(),this.popupContainer.remove()}}class F extends s.FZ{constructor(e,t,i={}){super(),this.translate=e,this.dataManager=t,this.options=i,this.onResize=(0,r.nF)((()=>{var e;null===(e=this.selectionManager)||void 0===e||e.resize()}))}async render(e,t,i=!1){const n=(0,a.vt)("div",{class:"selection-manager"});this.options.showWaiting&&(this.waiting=(0,v.A)(e)),this.selectionManager=new P(n,this.translate,{showAllSelected:this.options.showAllSelected,allSelectedText:this.options.allSelectedText,customAllSelected:this.options.getCustomAllSelectedElement&&this.options.getCustomAllSelectedElement()}),this.selectionManager.isCollapsible=i,this.selectionManager.attach("reset",(()=>this.fire("reset"))),this.selectionManager.attach("remove",(e=>this.fire("remove",e))),window.addEventListener("resize",this.onResize,!1),e.appendChild(n),await this.setFilter(t)}async setFilter(e){var t;if(null===(t=this.abortController)||void 0===t||t.abort(),!e||(0,r.je)(e)||!this.selectionManager)return void(this.selectionManager&&this.selectionManager.setSelection({relation:n.$.OR,items:[{id:m.s_,name:this.translate(m.s_)}]}));this.abortController=new AbortController;const i=this.abortController.signal,a=this.dataManager.getAllGroups({signal:i});this.waiting&&this.waiting.displayProgress(a);const s=await a;this.groupsHash=(0,r.jU)(s);const l=(0,d.co)(e,(e=>!!this.groupsHash[e.id]));if((0,r.je)(l))return void this.selectionManager.setSelection(l);const c=(0,d.qk)(l,(e=>{const t=this.groupsHash[e.id];return Object.assign(Object.assign({},t),{name:(0,o.If)(t,this.translate)})}));this.selectionManager.setSelection(c)}resize(){var e;null===(e=this.selectionManager)||void 0===e||e.resize()}destroy(){var e,t;null===(e=this.abortController)||void 0===e||e.abort(),null===(t=this.selectionManager)||void 0===t||t.destroy(),window.removeEventListener("resize",this.onResize,!1),this.selectionManager=void 0}}const x="organization-filter-operator",N="organization-filter-advanced-link",B={showMobileSection:!1,getTitle:e=>e.name};class U extends s.FZ{async createMobileSection(e,t){const i=(0,a.Kb)((n=this.translate,`<div class="geo-filter-mobile organization-filter-popup__item">\n <div class="geo-filter-mobile__item">\n <div class="geo-filter-mobile__item-content mobile-filter-state"></div>\n </div>\n <div class="geo-filter-mobile__item">\n <div class="geo-filter-mobile__item-content">\n <div class="geo-text-input-with-icons geo-text-input-with-icons--stretched">\n <svg class="geo-text-input-with-icons__pre-icon"><use xlink:href="#geo-search_magnifying-glass"></use></svg>\n <input type="text" placeholder="${n("searchGroupPlaceholderText")}" class="geo-text-input-with-icons__input" autocomplete="off" aria-label="${n("searchGroupPlaceholderText")}">\n </div>\n </div>\n </div>\n </div>`))[0];var n;this.mobileFilterStateItem=i.querySelector(".mobile-filter-state"),this.setEmptyFilterStateClass(),this.mobileSearchInput=i.querySelector(".geo-text-input-with-icons__input"),this.mobileSearchInput.value=t,this.mobileSearchInput.addEventListener("input",(e=>{const t=e.target.value;
1this.search(t).catch(this.errorHandler)}),!1),this.mobileSearchInput.addEventListener("keydown",(e=>{"Tab"!==e.code&&this.sendKey(e)}),!1),e.appendChild(i),await this.createSelectionManager(this.mobileFilterStateItem)}createOperatorSelector(e,t){const i=(0,a.Kb)(((e,t,i)=>`\n <div class="geo-form organization-filter-popup__item ${x}">\n <label class="geo-form__label ${x}__label" ${i?`id="${i}"`:`for="${e}"`}>${t}</label>\n <span class="geo-form__control"></span>\n </div>`)(t,this.translate("Operator"),this.operatorLabelId))[0],n=i.querySelector(".geo-form__control");this.advRelationSwitcher.render(n),this.advRelationSwitcher.attach("change",this.onToggleSwitcher),e.appendChild(i)}createAdvancedLink(e){const t=(0,a.Kb)((i=this.translate("Advanced groups filter"),`\n <button class="geo-form organization-filter-popup__item ${N}">\n <span class="${N}__label">${i}</span>\n </button>`))[0];var i;t.addEventListener("click",this.onClickAdvanced),e.appendChild(t)}async createSelectionManager(e){const t=(0,a.vt)("div",{class:"selection-manager noTranslate"});this.selectionManager=new F(this.translate,this.dataManager),this.selectionManager.attach("reset",this.onResetState),this.selectionManager.attach("remove",this.onDeselectItem),await this.selectionManager.render(t,this.filterState),e.appendChild(t)}constructor(e,t,i,n,o,s,l=(0,d.Jt)(),c){super(),this.container=e,this.connection=t,this.store=i,this.dataManager=n,this.translate=o,this.errorHandler=s,this.globalFilterState=(0,d.Jt)(),this.updateInternalState=e=>{var t;(0,d.Ti)(this.state,e)||(null===(t=this.selectionManager)||void 0===t||t.setFilter(e).catch((e=>this.errorHandler(e))),this.filterState=e,this.fire("change",e),this.setEmptyFilterStateClass())},this.onSimpleSelectionChanged=e=>{const t=(0,d.AZ)(this.filterState,(t=>({relation:t.relation,items:Array.from(e.newState).map((e=>({id:e})))})));this.updateInternalState(t)},this.onToggleSwitcher=e=>{const t=(0,d.AZ)(this.filterState,(t=>({relation:e,items:t.items})));this.updateInternalState(t)},this.onResetState=()=>{const e=(0,d.Jt)();(0,d.Ti)(this.state,e)||(this.state=e,this.groupList&&(this.groupList.state=[]),this.fire("change",e))},this.onDeselectItem=e=>{if(!this.groupList)return;const t=(0,d.KY)(this.state).items.filter((t=>t.id!==e)),i={relation:this.advRelationSwitcher.value,items:t};(0,d.Ti)(this.state,i)||(this.state=i,this.groupList.state=t.map((e=>e.id)),this.fire("change",i))},this.onClickAdvanced=e=>{this.advancedDialog||(this.advancedDialog=new g.A(this.translate,this.connection,this.store),this.advancedDialog.attach("onApply",(e=>{(0,d.Ti)(this.state,e)||(this.state=e,this.fire("change",e))}))),this.advancedDialog.show(e.target),this.advancedDialog.setState(this.filterState),this.advancedDialog.setFilter(this.globalFilterState)},this.onSearch=e=>{this.mobileSearchInput&&(this.mobileSearchInput.value=e),this.fire("search",e)},this.onRenderContent=()=>{this.fire("renderContent")},this.setEmptyFilterStateClass=()=>{const e=!!this.filterState.items.length&&this.filterState.items[0].id!==m.s_;this.mobileFilterStateItem&&this.mobileFilterStateItem.classList.toggle("geo-filter-mobile__item-content--empty",!e)},this.filterState=(0,a.X$)(!0,{},l),this.switcherId=(0,r.$C)(),this.operatorLabelId=(0,r.$C)(),this.advRelationSwitcher=new S.A(o,{id:this.switcherId,labelledBy:this.operatorLabelId});const u=l&&(0,d.KY)(l);this.advRelationSwitcher.value=u.relation,this.options=Object.assign(Object.assign({},B),c)}async render(e=""){const t=(0,a.K4)(),i=this.options.showMobileSection?this.createMobileSection(t,e):Promise.resolve();this.createOperatorSelector(t,this.switcherId),this.createAdvancedLink(t);const n=(0,d.KY)(this.state),r=(0,a.vt)("div",{class:"organization-filter-popup__item"});t.appendChild(r),this.groupList=new M(r,this.translate("Group List"),this.store,this.translate,this.options.getTitle,n.items.map((e=>e.id))),this.groupList.globalFilter=this.globalFilterState,this.groupList.attach("change",this.onSimpleSelectionChanged),this.groupList.attach("search",this.onSearch),this.groupList.attach("render",this.onRenderContent),this.advRelationSwitcher.value=n.relation,this.container.appendChild(t);const o=e?this.groupList.search(e):this.groupList.render();await i,await o}
1sendKey(e){var t;null===(t=this.groupList)||void 0===t||t.invokeKeyDown(e)}async search(e){var t;await(null===(t=this.groupList)||void 0===t?void 0:t.search(e))}get state(){return(0,a.X$)(!0,{},this.filterState)}set state(e){var t;if(!(0,d.Ti)(this.state,e)){this.filterState=(0,a.X$)(!0,{},e);const i=(0,d.KY)(e);this.advRelationSwitcher.value=i.relation,this.groupList&&(this.groupList.state=i.items.map((e=>e.id))),null===(t=this.selectionManager)||void 0===t||t.setFilter(e).catch((e=>this.errorHandler(e))),this.setEmptyFilterStateClass()}}set globalFilter(e){(0,d.Ti)(this.globalFilterState,e)||(this.globalFilterState=e,this.groupList&&(this.groupList.globalFilter=e))}destroy(){var e,t;null===(e=this.selectionManager)||void 0===e||e.destroy(),null===(t=this.groupList)||void 0===t||t.destroy(),this.groupList=void 0,this.container.innerHTML=""}static translations(){return["Operator","Advanced groups filter","Group List",...M.translations()]}}const H={isHeader:!1,hasMobileVersion:!1,showAllSelected:!1,allSelectedText:"Everything",searchPlaceholderText:"Groups",getCustomAllSelectedElement:null,clippingParent:document.body,labelledBy:"",useOldColours:!1};class V extends s.FZ{async createSelectionManager(e){this.selectionManager=new F(this.translate,this.dataManager,{showWaiting:!this.options.isHeader,showAllSelected:this.options.showAllSelected,allSelectedText:this.translate(this.options.allSelectedText),getCustomAllSelectedElement:this.options.getCustomAllSelectedElement||void 0}),this.selectionManager.attach("reset",this.onResetState),this.selectionManager.attach("remove",this.onDeselectItem),await this.selectionManager.render(e,this.filterState,this.options.isHeader)}constructor(e,t,i,o,s,c,h){super(),this.container=e,this.connection=t,this.store=i,this.translate=o,this.errorHandler=s,this.globalFilterState=(0,d.Jt)(),this.searchStr="",this.searchMethod=(0,r.sg)((()=>{if(!this.popup||!this.popupContent)throw this.getNotInitializedError();this.popup.isVisible()?this.popupContent.search(this.searchStr):this.open()}),500),this.getNotInitializedError=()=>new Error("Popup hasn't been rendered yet"),this.getMenuPosition=e=>e?l.fF:l.SK,this.getMenuPopupWidth=()=>{var e;return this.options.isHeader?this.threshold.isMobilePreview?document.body.clientWidth-24:250:null===(e=this.content)||void 0===e?void 0:e.offsetWidth},this.onPopupContentChangeState=e=>{var t;this.filterState=e,null===(t=this.selectionManager)||void 0===t||t.setFilter(e).catch((e=>this.errorHandler(e))),this.selectionCounter&&(this.selectionCounter.filterState=e),this.fire("beforeChange",e),this.fire("change",e)},this.onSelectionManagerChangeState=e=>{this.filterState=e,this.popupContent&&(this.popupContent.state=this.state),this.selectionCounter&&(this.selectionCounter.filterState=e),this.fire("beforeChange",this.state),this.fire("change",this.state)},this.onKeyDown=e=>{const t=this.popup,i=this.searchInput,n=this.popupContent;if("Escape"===e.code)return t.close(),void i.focus();"Enter"!==e.code?"Tab"!==e.code?t.isVisible()&&document.activeElement===this.searchInput&&n.sendKey(e):t.isVisible()&&e.target===this.searchInput&&(t.trapFocus(),e.preventDefault()):this.open()},this.onSearch=()=>{const e=this.searchInput.value;e!==this.searchStr&&(this.searchStr=e,this.searchMethod())},this.onListSearch=e=>{this.searchInput.value=e,this.searchStr=e},this.onResetState=()=>{const e=(0,d.Jt)();this.onSelectionManagerChangeState(e)},this.onResize=()=>{this.resize()},this.onDeselectItem=e=>{const t=(0,d.AZ)(this.state,(t=>{let i=t.items.filter((t=>t.id!==e));const r=i.length>1?t.relation:n.$.OR;return i.length||(i=(0,d.Jt)().items),{relation:r,items:i}}));this.onSelectionManagerChangeState(t)},this.setButtonTitle=(e,t)=>{e.setAttribute("title",this.translate(t?"Close filter":"Open filter")),e.setAttribute("aria-label",this.translate(t?"Close filter":"Open filter"))},this.setPopupTriggeTitle=e=>{const t=!this.popupMobileTrigger||!this.popupMobileTriggerOpenIcon||!this.popupMobileTriggerCloseIcon;if(!this.popupTrigger||this.options.hasMobileVersion&&t)throw this.getNotInitializedError();this.setButtonTitle(this.popupTrigger,e),this.options.hasMobileVersion&&(this.setButtonTitle(this.popupMobileTrigger,e),(0,a.L$)(this.popupMobileTriggerOpenIcon,!e),(0,a.L$)(this.popupMobileTriggerCloseIcon,e))},this.getPopupTriggerEl=e=>{const t=e&&this.options.hasMobileVersion?this.popupMobileTrigger:this.popupTrigger;if(!t)throw this.getNotInitializedError();return t},this.movePopupAfterTrigger=e=>{if(!this.popupContainer)throw this.getNotInitializedError();const t=this.getPopupTriggerEl(e);t.parentNode.insertBefore(this.popupContainer,t.nextSibling)},this.setMenuWidth=e=>{if(!this.popupContainer)throw this.getNotInitializedError();const t=e?`${e}px`:"auto";(0,a.AH)(this.popupContainer,{"max-width":t,width:t})},this.getTarget=e=>e?this.popupMobileTrigger:this.searchInput,this.setTrigger=(e,t)=>{const i={target:this.getTarget(e),position:this.getMenuPosition(e)};this.movePopupAfterTrigger(e),t.setOptions(i),t.setTrigger(this.getPopupTriggerEl(e))},this.toggleMobileClass=e=>{var t;return null===(t=this.popupContainer)||void 0===t?void 0:t.classList.toggle("organization-filter__popup--mobile",e)},this.filterState=c||(0,d.Jt)(),this.threshold=new u.F(window,640),this.options=Object.assign(Object.assign({},H),h),this.dataManager=new p(i)}render(){this.content=(0,a.Kb)(((e,t,i,n,o,a)=>{const s=(0,r.$C)();return`\n <div class="organization-filter ${t?"organization-filter--header":""} ${i?"organization-filter--has-mobile-version":""}">\n <div class="geo-secondary-button-with-expand organization-filter__combobox">\n <input class="inputBox geo-secondary-button-with-expand__input organization-filter__search-field ellipsis" type="text" autocomplete="off" aria-autocomplete="list" role="combobox" aria-haspopup="dialog" aria-controls="${s}" aria-expanded="false" placeholder="${e(n)}" ${o}>\n <button class="geo-secondary-button-with-expand__expand organization-filter__expand-button help-ignore popupWindowTrigger" tabindex="-1" aria-hidden="true" aria-expanded="false" title="${e("Open filter")}">\n <svg class="geo-secondary-button-with-expand__arrow geo-icon geo-icon--large toRotate">\n <use xlink:href="#geo-up-arrow-new" class="geo-secondary-button-with-expand__open"></use>\n <use xlink:href="#geo-down-arrow-new" class="geo-secondary-button-with-expand__close"></use>\n </svg>\n </button>\n </div>\n <div class="organization-filter__state"></div>\n ${i?`<button class="org-filter-button organization-filter__mobile-trigger header-input" title="${e("Open filter")}" aria-label="${e("Open filter")}"">\n <div class="notifications-button org-filter-button__icon--open header-input__wrapper">\n <svg class="notifications-button__icon header-input__icon ${a?"header-input__icon--old":"header-input__icon--default"}"><use xlink:href="#geo-zenith-IconFork"></use></svg>\n </div>\n <div class="notifications-button org-filter-button__icon--close header-input__wrapper" style="display: none;">\n <svg class="notifications-button__icon header-input__icon ${a?"header-input__icon--old":"header-input__icon--default"}"><use xlink:href="#geo-zenith-IconFork"></use></svg>\n </div>\n </button>`:""}\n <div id="${s}" class="organization-filter__popup organization-filter-popup" aria-label="${e("Groups filter")}" style="display: none;"></div>\n </div>\n`})(this.translate,this.options.isHeader,this.options.hasMobileVersion,this.options.searchPlaceholderText,this.options.labelledBy?`aria-labelledby="${this.options.labelledBy}"`:`aria-label="${this.translate(this.options.searchPlaceholderText)}"`,this.options.useOldColours))[0],this.popupTrigger=this.content.querySelector(".organization-filter__expand-button"),this.searchInput=this.content.querySelector(".organization-filter__search-field"),this.popupContainer=this.content.querySelector(".organization-filter__popup");const e=new U(this.popupContainer,this.connection,this.store,this.dataManager,this.translate,this.errorHandler,this.filterState,{showMobileSection:this.options.hasMobileVersion,getTitle:(0,o.GS)(this.translate)});e.globalFilter=this.globalFilterState,this.popupContent=e,this.options.hasMobileVersion&&(this.popupMobileTrigger=this.content.querySelector(".organization-filter__mobile-trigger"),this.popupMobileTriggerOpenIcon=this.popupMobileTrigger.querySelector(".org-filter-button__icon--open"),this.popupMobileTriggerCloseIcon=this.popupMobileTrigger.querySelector(".org-filter-button__icon--close"),this.selectionCounter=new c(this.popupMobileTrigger.querySelector(".org-filter-button__icon--open"),this.filterState)),this.movePopupAfterTrigger(this.threshold.isMobilePreview),this.threshold.attach("change",(e=>{this.options.hasMobileVersion&&this.setTrigger(e.isMobilePreview,t),this.toggleMobileClass(e.isMobilePreview),this.resize()})),this.toggleMobileClass(this.threshold.isMobilePreview);const t=(0,l.Ay)(this.getPopupTriggerEl(this.threshold.isMobilePreview),{content:this.popupContainer,onShow:()=>{var e,t;null===(e=this.searchInput)||void 0===e||e.setAttribute("aria-expanded","true"),null===(t=this.popupContainer)||void 0===t||t.setAttribute("role","dialog")},onShowEnd:()=>{this.store.groups.clearCache(),e.render(this.searchStr).then((()=>
1this.resize())).catch((e=>this.errorHandler(e))),this.setPopupTriggeTitle(!0),this.resize()},onHide:()=>{e.destroy(),this.setPopupTriggeTitle(!1),this.searchInput&&(this.searchInput.value="",this.searchStr="")},onHideEnd:()=>{var e,t;null===(e=this.searchInput)||void 0===e||e.setAttribute("aria-expanded","false"),null===(t=this.popupContainer)||void 0===t||t.removeAttribute("role")},parent:this.options.clippingParent,target:this.getTarget(this.threshold.isMobilePreview),trapFocus:!0,minWidth:150,minHeight:160,addAutoScroll:!0,position:this.getMenuPosition(this.threshold.isMobilePreview),preventReFocusing:()=>document.activeElement===this.searchInput,width:this.getMenuPopupWidth()});this.popup=t,this.container.addEventListener("keydown",this.onKeyDown,!1),this.popupContent.attach("change",this.onPopupContentChangeState),this.popupContent.attach("renderContent",this.onResize),this.popupContent.attach("search",this.onListSearch),this.searchInput.addEventListener("input",this.onSearch,!1),window.addEventListener("resize",this.onResize,!1);let i=this.content.querySelector(".organization-filter__state");return this.container.appendChild(this.content),this.createSelectionManager(i).catch((e=>this.errorHandler(e)))}open(){this.popup&&!this.popup.isVisible()&&this.popup.open()}close(){this.popup&&this.popup.isVisible()&&this.popup.close()}focus(){var e;null===(e=this.searchInput)||void 0===e||e.focus()}get state(){return(0,a.X$)(!0,{},this.filterState)}set state(e){var t;(0,d.Ti)(this.state,e)||(this.filterState=(0,a.X$)(!0,{},e),this.popupContent&&(this.popupContent.state=this.state),null===(t=this.selectionManager)||void 0===t||t.setFilter(e).catch((e=>this.errorHandler(e))),this.selectionCounter&&(this.selectionCounter.filterState=e),this.fire("change",e))}forceUpdate(){this.fire("change",this.state)}set globalFilter(e){this.globalFilterState=e,this.popupContent&&(this.popupContent.globalFilter=e)}resize(){var e,t;null===(e=this.selectionManager)||void 0===e||e.resize();const i=null===(t=this.popupContainer)||void 0===t?void 0:t.childNodes[0];if(!(this.popup&&this.popup.isVisible()&&this.popupContainer&&i))return;let n=window.getComputedStyle(this.popupContainer),r=parseInt(n.paddingTop||"0")+parseInt(n.paddingBottom||"0")+parseInt(n.borderBottomWidth||"0")+parseInt(n.borderTopWidth||"0"),o=this.popupContainer.getBoundingClientRect(),a=i.getBoundingClientRect(),s=window.innerHeight+document.body.scrollTop-o.top,l=this.getMenuPopupWidth();l&&this.setMenuWidth(l),this.popupContainer.style.height=a.height>s-r?`${s}px`:"auto",this.popup.resize()}destroy(){var e,t,i;this.container.removeEventListener("keydown",this.onKeyDown,!1),null===(e=this.selectionCounter)||void 0===e||e.destroy(),window.removeEventListener("resize",this.onResize,!1),this.threshold.detach(),this.content&&this.content.parentNode===this.container&&this.container.removeChild(this.content),this.popupContent=void 0,this.popupTrigger=void 0,this.popupMobileTrigger=void 0,this.popupMobileTriggerOpenIcon=void 0,this.popupMobileTriggerCloseIcon=void 0,this.content=void 0,this.searchInput=void 0,this.popupContainer=void 0,null===(t=this.popup)||void 0===t||t.destroy(),this.popup=void 0,null===(i=this.selectionManager)||void 0===i||i.destroy(),this.globalFilterState=(0,d.Jt)()}static translations(){return["Groups filter","Open filter","Close filter","Everything",...U.translations()]}}},7815(e,t,i){i.d(t,{q:()=>p});var n=i(86397),r=i(92191),o=i(44654);const a=(e,t)=>`\n <div class="selected-list__group">\n <div class="selected-list__group-name>${(0,o.z)(e.title)}</div>\n ${s(e.items,t)}\n </div>\n `.trim(),s=(e,t)=>`<ul class="selected-list__list">${e.map((e=>l(e,t))).join("")}</ul>`,l=(e,t)=>`\n <li class="selected-list__item ${e.isValid?"":"selected-list__item--invalid"} help-ignore ellipsis" title="${(0,o.z)(e.description)}">\n ${c(t,e.link)}\n ${d(e)}\n ${h(e,t)}\n </li>\n `.trim(),d=e=>e.title?`<span class="selected-list__item-title">${(0,o.z)(e.title)}</span>`:"",c=(e,t)=>void 0===t?"":`<span class="selected-list__item--wrapper">\n ${((e,t,i)=>e?`<a class="selected-list__item-link" href="${(0,o.z)(e)}" aria-label="${i("Edit user")}">${(0,o.z)(t)}</a>`:(0,o.z)(t))(t.link,t.title,e)}\n ${u(t)}\n </span>`.trim(),u=e=>0===e.moreInfo.length?"":`(${e.moreInfo.map((e=>`<span class="selected-list__title-part ${e.isValid?"":"selected-list__title-part--invalid"}">${(0,o.z)(e.title)}</span>`)).join(", ")})`,h=(e,t)=>e.removable?`\n <button class="selected-list__close-button" data-remove-id="${(0,o.z)(e.id)}" aria-label="${t("Remove from list")}">\n <svg class="svgIcon bigger selected-list__close-icon"><use xlink:href="#geo-cross-thin"></use></svg>\n </button>\n `.trim():"";class p extends n.FZ{constructor(e,t){super(),this.translate=t,this.container=(0,r.Kb)('<div class="selected-list"></div>')[0],e.appendChild(this.container),this.container.addEventListener("click",(e=>{let t=e.target;t.hasAttribute("data-remove-id")&&this.fire("remove",t.getAttribute("data-remove-id"))}),!1)}render(e){var t,i;this.container.innerHTML=(t=e,i=this.translate,1!==t.length||t[0].title?t.map((e=>a(e,i))).join(""):s(t[0].items,i))}}},53621(e,t,i){i.d(t,{F:()=>r});var n=i(86397);class r extends n.FZ{constructor(e,t){super(),this.isMobilePreviewFlag=!1,this.stateChanged=e=>{this.isMobilePreviewFlag=e.matches,this.fire("change",{isMobilePreview:this.isMobilePreviewFlag})};let i=e.matchMedia(`(max-width: ${t}px)`);this.isMobilePreviewFlag=i.matches,"function"==typeof i.addEventListener?i.addEventListener("change",this.stateChanged,!1):i.addListener(this.stateChanged)}get isMobilePreview(){return this.isMobilePreviewFlag}}},721(e,t,i){i.d(t,{_m:()=>d,cf:()=>m,wS:()=>p});
1var n=i(44654),r=i(2843),o=i(42458),a=i(92191),s=i(98105);const l=(e,t,i,n="")=>`\n<div id="${e}" class="zenith-tooltip ${n} ${i?"zenith-tooltip--mobile":""}" role="tooltip" aria-live="polite">\n <div class="zenith-tooltip__content">\n <p class="zenith-tooltip__text"></p>\n ${i?`\n <button class="zenith-tooltip__close-button geo-button geo-button--tertiary" title="${t("Close")}" aria-label="${t("Close")}">\n <svg class="geo-icon"><use xlink:href="#geo-cross-thin"></use></svg>\n </button>`:""}\n </div>\n</div>`.trim();var d;!function(e){e.Top="top",e.TopLeft="topLeft",e.TopRight="topRight",e.Bottom="bottom",e.BottomLeft="bottomLeft",e.BottomRight="bottomRight",e.Right="right",e.RightTop="rightTop",e.RightBottom="rightBottom",e.Left="left",e.LeftTop="leftTop",e.LeftBottom="leftBottom"}(d||(d={}));const c=12,u={[d.Top]:e=>({x:e.insetInlineStart+e.width/2,y:e.top-c}),[d.TopLeft]:e=>({x:e.insetInlineStart-8,y:e.top-c}),[d.TopRight]:e=>({x:e.insetInlineStart+e.width+8,y:e.top-c}),[d.Bottom]:e=>({x:e.insetInlineStart+e.width/2,y:e.top+e.height+c}),[d.BottomLeft]:e=>({x:e.insetInlineStart-8,y:e.top+e.height+c}),[d.BottomRight]:e=>({x:e.insetInlineStart+e.width+8,y:e.top+e.height+c}),[d.Right]:e=>({x:e.insetInlineStart+e.width+c,y:e.top+e.height/2}),[d.RightTop]:e=>({x:e.insetInlineStart+e.width+c,y:e.top-8}),[d.RightBottom]:e=>({x:e.insetInlineStart+e.width+c,y:e.top+e.height+8}),[d.Left]:e=>({x:e.insetInlineStart-c,y:e.top+e.height/2}),[d.LeftTop]:e=>({x:e.insetInlineStart-c,y:e.top-8}),[d.LeftBottom]:e=>({x:e.insetInlineStart-c,y:e.top+e.height+8})},h={[d.Top]:"zenith-tooltip--top",[d.TopLeft]:"zenith-tooltip--top-left",[d.TopRight]:"zenith-tooltip--top-right",[d.Bottom]:"zenith-tooltip--bottom",[d.BottomLeft]:"zenith-tooltip--bottom-left",[d.BottomRight]:"zenith-tooltip--bottom-right",[d.Right]:"zenith-tooltip--right",[d.RightTop]:"zenith-tooltip--right-top",[d.RightBottom]:"zenith-tooltip--right-bottom",[d.Left]:"zenith-tooltip--left",[d.LeftTop]:"zenith-tooltip--left-top",[d.LeftBottom]:"zenith-tooltip--left-bottom"},p=(e,t)=>{e.forEach((({parent:e,selector:i,position:n})=>{e.querySelectorAll(i).forEach((e=>{e.dataset.tooltip&&!e.dataset.tooltipInitialized&&(e.title="",e.dataset.tooltipInitialized="true",new m(e,document.body,n,t))}))}))};class m{updateTitle(e){const t=this.tooltip.querySelector(".zenith-tooltip__text");if(t.innerHTML="",Array.isArray(e)){const i=(0,a.Kb)("<ul class='zenith-tooltip__content-list'></ul>")[0];e.forEach((e=>{const t=(0,a.Kb)("<li class='zenith-tooltip__content-list-item'></li>")[0];t.textContent=e,i.appendChild(t)})),t.appendChild(i)}else t.textContent=e}locateTooltip(){const e=(0,r.Q)(this.targetElement);if(this.lastKnownMobileState)this.tooltip.style.insetInlineStart=`${window.innerWidth/2-this.tooltip.clientWidth/2+window.scrollX}px`,this.tooltip.style.top=`${e.top+e.height+c}px`;else{const t=u[this.position](e);this.tooltip.style.insetInlineStart=`${t.x}px`,this.tooltip.style.top=`${t.y}px`}}setupAccessibility(){const e=this.targetElement;e.setAttribute("tabindex","0"),e.setAttribute("aria-describedby",this.tooltip.id)}recreateTooltip(){const e=null!==this.tooltip.parentElement,t=this.targetElement.dataset.tooltip;this.shield.shown&&(this.shield.shown=!1,this.shield.unmount()),this.tooltip.remove(),this.position=this.lastKnownMobileState?d.Bottom:this.initialPosition,this.tooltip=(0,a.Kb)(l(this.tooltipId,this.translate,this.lastKnownMobileState,this.customClass))[0],this.tooltip.classList.add(h[this.position]),this.setupTooltipEventListeners(),e&&t&&(this.updateTitle(t),this.relativeParent.appendChild(this.tooltip),this.locateTooltip())}setupTooltipEventListeners(){if(this.lastKnownMobileState){const e=this.targetElement,t=this.tooltip.getElementsByClassName("zenith-tooltip__close-button")[0];null==t||t.addEventListener("click",(t=>{t.stopPropagation(),this.hide(),null==e||e.focus()}))}}setupEventListeners(){const e=this.targetElement;window.addEventListener("resize",this.handleResize),e.addEventListener("pointerover",this.handlePointerOver),e.addEventListener("focusin",this.handleFocusIn),e.addEventListener("touchstart",this.handleTouchStart),e.addEventListener("pointerout",this.handlePointerOut),e.addEventListener("focusout",this.handleFocusOut),e.addEventListener("keydown",this.handleKeyDown),this.relativeParent.addEventListener("wheel",this.handleWheel,{passive:!0}),this.setupTooltipEventListeners()}constructor(e,t=document.body,i=d.Bottom,r,c){this.targetElement=e,this.relativeParent=t,this.position=i,this.translate=r,this.customClass=c,this.handleResize=(0,n.sg)((()=>{const e=(0,o.C)(window);this.lastKnownMobileState!==e?(this.hide(),this.lastKnownMobileState=e,this.recreateTooltip()):this.locateTooltip()}),100),this.handleShieldClick=e=>{e.stopPropagation(),this.hide()},this.showTooltip=e=>{e.stopPropagation();const t=this.targetElement;t.dataset.tooltip&&(this.updateTitle(t.dataset.tooltip),this.show())},this.hideTooltip=e=>{e.stopPropagation(),this.hide()},this.handlePointerOver=e=>{this.lastKnownMobileState||this.showTooltip(e)},this.handleFocusIn=e=>{this.lastKnownMobileState||this.showTooltip(e)},this.handleTouchStart=e=>{this.lastKnownMobileState&&this.showTooltip(e)},this.handlePointerOut=e=>{this.lastKnownMobileState||this.hideTooltip(e)},this.handleFocusOut=e=>{this.lastKnownMobileState||this.hideTooltip(e)},this.handleKeyDown=e=>{"Escape"===e.key&&this.hideTooltip(e)},this.handleWheel=e=>this.hideTooltip(e),this.tooltipId=(0,n.$C)(),this.lastKnownMobileState=(0,o.C)(window),this.shield=new s.e,this.initialPosition=i,this.lastKnownMobileState&&(this.position=d.Bottom),this.tooltip=(0,a.Kb)(l(this.tooltipId,r,this.lastKnownMobileState,c))[0],this.tooltip.classList.add(h[this.position]),this.setupAccessibility(),this.setupEventListeners()}show(){void 0!==this.showTimeoutId&&clearTimeout(this.showTimeoutId),this.relativeParent.querySelectorAll(".zenith-tooltip").forEach((e=>e.remove())),this.showTimeoutId=setTimeout((()=>
1{if(this.relativeParent.appendChild(this.tooltip),this.lastKnownMobileState){this.shield.mount(document.body),this.shield.shown=!0;const e=this.shield.elt;null==e||e.addEventListener("pointerdown",this.handleShieldClick)}this.locateTooltip()}),500)}hide(){if(void 0!==this.showTimeoutId&&(clearTimeout(this.showTimeoutId),this.showTimeoutId=void 0),this.lastKnownMobileState){this.shield.shown=!1;const e=this.shield.elt;null==e||e.removeEventListener("pointerdown",this.handleShieldClick),this.shield.unmount()}this.tooltip.remove()}getContainer(){return this.tooltip}destroy(){this.hide();const e=this.targetElement;window.removeEventListener("resize",this.handleResize),e.removeEventListener("pointerover",this.handlePointerOver),e.removeEventListener("focusin",this.handleFocusIn),e.removeEventListener("touchstart",this.handleTouchStart),e.removeEventListener("pointerout",this.handlePointerOut),e.removeEventListener("focusout",this.handleFocusOut),e.removeEventListener("keydown",this.handleKeyDown),this.relativeParent.removeEventListener("wheel",this.handleWheel),e.removeAttribute("tabindex"),e.removeAttribute("aria-describedby")}}},31693(e,t,i){var n,r,o,a,s,l,d,c,u,h,p,m,g,S,v,I,y,f,D,C,R,T,b,w,A,E,k,O,M,L,P,F,x,N,B,U,H,V,_;i.d(t,{$w:()=>n,At:()=>B,C4:()=>f,D7:()=>O,Lf:()=>u,MC:()=>k,OX:()=>A,PP:()=>g,Sy:()=>p,Tt:()=>a,Wq:()=>C,Yt:()=>F,bA:()=>E,fC:()=>w,fW:()=>N,ft:()=>H,g:()=>T,iU:()=>d,l0:()=>M,mY:()=>R,rl:()=>I,sS:()=>D,vk:()=>c,vq:()=>P,xL:()=>x,xO:()=>U}),function(e){e.Us="us",e.Eu="eu"}(n||(n={})),function(e){e.Video="Video",e.Snapshot="Snapshot"}(r||(r={})),function(e){e.High="High",e.Medium="Medium",e.Low="Low"}(o||(o={})),function(e){e.Left="left",e.Right="right"}(a||(a={})),function(e){e.Surfsight="surfsight",e.Lytx="lytx",e.Xirgo="xirgo",e.Gofocusplus="gofocusplus",e.Gofocus="gofocus",e.Netradyne="netradyne",e.Mock="mock"}(s||(s={})),function(e){e.RequestStartTime="RequestStartTime",e.RuleName="RuleName",e.VideoPriority="VideoPriority",e.InitiallyRequestedTime="InitiallyRequestedTime"}(l||(l={})),function(e){e.User="User",e.Exception="Exception",e.Internal="Internal"}(d||(d={})),function(e){e.RequestPending="RequestPending",e.RequestQueued="RequestQueued",e.RequestQueuedWithPartialResponse="RequestQueuedWithPartialResponse",e.DeviceUnavailable="DeviceUnavailable",e.RequestTimedOut="RequestTimedOut",e.RequestFailed="RequestFailed",e.ResponsePartiallyReady="ResponsePartiallyReady",e.ResponseReady="ResponseReady",e.Duplicate="Duplicate",e.MarkedForDeletion="MarkedForDeletion"}(c||(c={})),function(e){e.Custom="Custom",e.Exception="Exception"}(u||(u={})),function(e){e.High="High",e.Medium="Medium",e.Low="Low"}(h||(h={})),function(e){e.Video="Video",e.Snapshot="Snapshot"}(p||(p={})),function(e){e.Us="Us",e.Eu="Eu"}(m||(m={})),function(e){e.FrontFacing="FrontFacing",e.DriverFacing="DriverFacing"}(g||(g={})),function(e){e.User="User",e.Exception="Exception",e.Internal="Internal",e.ExceptionCallback="ExceptionCallback",e.UserRequest="UserRequest"}(S||(S={})),function(e){e.Custom="Custom",e.Exception="Exception"}(v||(v={})),function(e){e.GetCameraSettings="GetCameraSettings",e.SaveCameraSettings="SaveCameraSettings",e.ChangeEventsSettings="ChangeEventsSettings",e.GetVideoRequests="GetVideoRequests",e.BulkChangeEventsSettings="BulkChangeEventsSettings",e.FormatCameraStorage="FormatCameraStorage",e.CalibrateDeviceAdas="CalibrateDeviceAdas",e.RebootCamera="RebootCamera",e.GetCameraConfiguration="GetCameraConfiguration",e.AddDeviceMapping="AddDeviceMapping",e.UpdateDeviceMapping="UpdateDeviceMapping",e.AddDeviceMappings="AddDeviceMappings",e.DeleteDeviceMapping="DeleteDeviceMapping",e.GetDeviceUsage="GetDeviceUsage",e.ChangeOrganizationDefaultDeviceSettings="ChangeOrganizationDefaultDeviceSettings",e.ChangeOrganizationDefaultEventSettings="ChangeOrganizationDefaultEventSettings",e.GetOrganizationDefaultEventSettings="GetOrganizationDefaultEventSettings",e.BulkImportCamera="BulkImportCamera",e.RequestVideo="RequestVideo",e.ViewVideo="ViewVideo",e.RequestLiveVideo="RequestLiveVideo",e.AcceptEula="AcceptEula",e.CameraRestrictedDataMode="CameraRestrictedDataMode",e.CameraVacationMode="CameraVacationMode",e.DatabaseMigration="DatabaseMigration",e.CustomLog="CustomLog",e.CalibrateDeviceAccelerometer="CalibrateDeviceAccelerometer",e.DeleteMediaRequest="DeleteMediaRequest",e.GetOrganizationDefaultDeviceSettings="GetOrganizationDefaultDeviceSettings"}(I||(I={})),function(e){e.String="String",e.Int="Int",e.Bool="Bool"}(y||(y={})),function(e){e.DATABASE="DATABASE",e.PARTNER_DEVICE="PARTNER_DEVICE"}(f||(f={})),function(e){e.Surfsight="surfsight",e.Lytx="lytx",e.Sensata="sensata",e.Smarterai="smarterai",e.Gofocus="gofocus",e.Netradyne="netradyne",e.Mock="mock"}(D||(D={})),function(e){e.RoadCameraDecalibrated="RoadCameraDecalibrated",e.AdjustmentRequiredRoad="AdjustmentRequiredRoad",e.AdjustmentSuggestedRoad="AdjustmentSuggestedRoad",e.CabinCameraDecalibrated="CabinCameraDecalibrated",e.AdjustmentRequiredCabin="AdjustmentRequiredCabin",e.AdjustmentSuggestedCabin="AdjustmentSuggestedCabin",e.CameraResetDueToAppFreeze="CameraResetDueToAppFreeze",e.CameraEventRecorderObstruction="CameraEventRecorderObstruction",e.CameraFaultAllPowerRemoved="CameraFaultAllPowerRemoved",e.CameraSimCoverOpened="CameraSimCoverOpened",e.CameraLensObstruction="CameraLensObstruction",e.CameraTampered="CameraTampered",e.CameraDismounted="CameraDismounted",e.IoxCommunicationFault="IoxCommunicationFault",e.CameraOnlineLessThanThreshold="CameraOnlineLessThanThreshold",e.CameraCameOnlineLate="CameraCameOnlineLate",e.MediaSuccessRateWarning="MediaSuccessRateWarning",e.CameraEventRecorderNoCommunication24Hours="CameraEventRecorderNoCommunication24Hours",e.CameraIssue="CameraIssue",e.CameraSdCardNotMounted="CameraSdCardNotMounted",e.CameraRecordingFailure="CameraRecordingFailure",e.CameraHardwareFailure="CameraHardwareFailure",e.CameraRecordingFailureTwiceIn24Hours="CameraRecordingFailureTwiceIn24Hours",e.CameraConstantlyResetting="CameraConstantlyResetting",e.DriverCameraRecordingFailure="DriverCameraRecordingFailure",e.DriverCameraRecordingWhenItShouldNotBe="DriverCameraRecordingWhenItShouldNotBe",e.SdCardFragmentedOrCorrupt="SdCardFragmentedOrCorrupt",e.CameraNotRecording="CameraNotRecording",e.CameraNeverCameOnline="CameraNeverCameOnline",e.ZeroSuccessfulMediaRequests="ZeroSuccessfulMediaRequests",e.ZeroUptime="ZeroUptime",e.CameraDataCapReached="CameraDataCapReached"}(C||(C={})),function(e){e.Healthy="Healthy",e.Unstable="Unstable",e.Unhealthy="Unhealthy",e.NotWorking="NotWorking",e.PendingEvaluation="PendingEvaluation"}(R||(R={})),function(e){e.Offline="offline",e.Online="online",e.Standby="standby"}(T||(T={})),function(e){e.RequestPending="RequestPending",e.RequestQueued="RequestQueued",e.RequestQueuedWithPartialResponse="RequestQueuedWithPartialResponse",e.DeviceUnavailable="DeviceUnavailable",e.RequestTimedOut="RequestTimedOut",e.RequestFailed="RequestFailed",e.ResponsePartiallyReady="ResponsePartiallyReady",e.ResponseReady="ResponseReady",e.PendingFailureAssessment="PendingFailureAssessment",e.Duplicate="Duplicate",e.MarkedForDeletion="MarkedForDeletion",e.QueueOverflow="QueueOverflow"}(b||(b={})),function(e){e.SingleLens="SingleLens",e.MultiLens="MultiLens"}(w||(w={})),function(e){e.ALL="ALL",e.SD1="SD1",e.SD2="SD2",e.SD1SD2="SD1SD2",e.HD1="HD1",e.HD2="HD2"}(A||(A={})),function(e){e.Low="Low",e.Medium="Medium",e.High="High"}(E||(E={})),function(e){e.Low="Low",e.Medium="Medium",e.High="High"}(k||(k={})),function(e){e.Low="Low",e.Medium="Medium",e.High="High"}(O||(O={}
1)),function(e){e.InParkingMode="InParkingMode",e.NotInParkingMode="NotInParkingMode",e.GoingToParkingMode="GoingToParkingMode",e.InDeepSleep="InDeepSleep",e.InSentryMode="InSentryMode"}(M||(M={})),function(e){e.ACTIVE="ACTIVE",e.PARKING="PARKING",e.OFFLINE="OFFLINE",e.RESET="RESET"}(L||(L={})),function(e){e.Low="low",e.Medium="medium",e.High="high"}(P||(P={})),function(e){e.OPERATION="OPERATION",e.ADJUSTMENT="ADJUSTMENT"}(F||(F={})),function(e){e.En="en",e.De="de",e.Fr="fr",e.Es="es",e.Nl="nl",e.Pt="pt",e.Bn="bn",e.Bg="bg",e.Cmn="cmn",e.Cs="cs",e.Da="da",e.Fi="fi",e.Hu="hu",e.Hi="hi",e.Id="id",e.It="it",e.Ja="ja",e.Ko="ko",e.Ms="ms",e.Nb="nb",e.Pa="pa",e.Pl="pl",e.Ro="ro",e.Sk="sk",e.Sv="sv",e.Ta="ta",e.Th="th",e.Tr="tr",e.Uk="uk",e.Ur="ur"}(x||(x={})),function(e){e.NEUTRAL="NEUTRAL",e.MALE="MALE",e.FEMALE="FEMALE"}(N||(N={})),function(e){e.EN_US="EN_US",e.EN_GB="EN_GB",e.EN_AU="EN_AU",e.EN_ZA="EN_ZA",e.DE_DE="DE_DE",e.FR_FR="FR_FR",e.FR_CA="FR_CA",e.ES_ES="ES_ES",e.ES_US="ES_US",e.NL_NL="NL_NL",e.NL_BE="NL_BE",e.BN_IN="BN_IN",e.BG_BG="BG_BG",e.CMN_CN="CMN_CN",e.CS_CZ="CS_CZ",e.DA_DK="DA_DK",e.FI_FI="FI_FI",e.HU_HU="HU_HU",e.HI_IN="HI_IN",e.ID_ID="ID_ID",e.IT_IT="IT_IT",e.JA_JP="JA_JP",e.KO_KR="KO_KR",e.MS_MY="MS_MY",e.NB_NO="NB_NO",e.PL_PL="PL_PL",e.RO_RO="RO_RO",e.SK_SK="SK_SK",e.SV_SE="SV_SE",e.TA_IN="TA_IN",e.TH_TH="TH_TH",e.TR_TR="TR_TR",e.UK_UA="UK_UA",e.UR_IN="UR_IN",e.UNKNOWN="UNKNOWN"}(B||(B={})),function(e){e.Asc="Asc",e.Desc="Desc"}(U||(U={})),function(e){e.Mph="mph",e.Kmh="kmh"}(H||(H={})),function(e){e.Online="online",e.Standby="standby",e.Offline="offline"}(V||(V={})),function(e){e.FrontFacing="FrontFacing",e.DriverFacing="DriverFacing"}(_||(_={}))},6360(e,t,i){i.d(t,{m:()=>n});const n="groupsFilter"},79625(e,t,i){i.d(t,{i:()=>r.i,m:()=>n.m});var n=i(6360),r=i(33040)},33040(e,t,i){i.d(t,{i:()=>m});var n=i(89009),r=i(50405),o=i(89615),a=i(38707),s=i(65872),l=i(87926),d=i(78011),c=i(62065),u=i(6360),h=i(15100),p=i(43643);const m=({initialState:e,initialSiteWide:t=!1,noAssetGroups:i,noPowertrainGroups:m,onChange:g,onInitialUrlParse:S,addToUrlHistory:v=!1,onUrlStateChange:I,allGroups:y,pageOwnsUrl:f=!1,suppressUrlChangeNotification:D=!1}={})=>{const{translate:C,errorHandler:R,urlStateController:T,groupsFilter:b}=(0,a.Sz)(),[w,A]=(0,r.useState)(!1),{data:E=[],error:k}=(0,p.eR)(h.jQr,{},{enabled:!y}),O=null!=y?y:E,M=(0,r.useCallback)((e=>{P(e),null==g||g(e)}),[g]),[L,P]=(0,r.useState)({value:{groups:null!=e?e:(0,s.Jt)(),sideWide:t}}),F=S||M,x=I||(D?P:M),N=T.getState().global.filter,B=T.getState().state[l.kA],U=(0,r.useMemo)((()=>(0,l.cZ)(T)),[B,N]),H=(0,r.useCallback)((e=>(0,d.bq)(L.value.groups,e)),[L.value.groups]),V=(0,r.useMemo)((()=>(0,d.Tc)(L.value.groups)),[L.value.groups]),_=(0,r.useMemo)((()=>O.filter((e=>!(i&&e.id===o.j1||m&&e.id===o.BU)))),[O,i,m]),W=(0,r.useCallback)((()=>Promise.resolve(_)),[_]),q=(0,r.useCallback)((e=>{b.setValue(e.sideWide?e.groups:(0,s.Jt)())}),[b]),G=(0,r.useCallback)((e=>{(0,l.R3)(T,e,v)}),[v,T]),j=(0,r.useCallback)((e=>{(0,l.R3)(T,e,!0)}),[T]),z=(0,r.useCallback)((()=>{b.setValue((0,s.Jt)())}),[b]),$=(0,r.useCallback)((e=>f?e.value.sideWide?(j(e.value),void M(e)):(z(),void M(e)):(G(e.value),q(e.value),void M(e))),[f,z,M,j,G,q]);return(0,r.useEffect)((()=>{k&&R(k)}),[k,R]),(0,r.useEffect)((()=>{var e,t,i;const n=T.getState();A(!0),((null===(t=null===(e=n.global.filter)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)||(null===(i=n.state[l.kA])||void 0===i?void 0:i.items.length))&&F({value:(0,l.cZ)(T)})}),[]),(0,c.H)((()=>{var e;if(!U||!(null===(e=null==L?void 0:L.value)||void 0===e?void 0:e.groups))return;(0,n.Ti)(U.groups,L.value.groups)&&(!f||U.sideWide===L.value.sideWide)||x({value:U})}),[U]),{registerGroupsFilter:{id:u.m,showInSidePanel:!0,hideInBar:!0,sidePanelTitle:C("Groups"),onChange:$,state:L,props:{dataLoader:W,errorHandler:R,options:{placeholder:C("Groups")}}},state:L,groups:L.value.groups,filterSearchParams:H,groupFilterCondition:V,allGroups:O,forceChange:$,stateValuesAreReady:w}}},62065(e,t,i){i.d(t,{H:()=>r});var n=i(50405);const r=(e,t)=>{const i=(0,n.useRef)(!1);(0,n.useEffect)((()=>
1{if(i.current)return e();i.current=!0}),t)}},12600(e,t,i){i.d(t,{SN:()=>o,Y_:()=>r});class n{constructor(e,t){this.id=e,this.name=t}}const r={Aoa:new n("Aoa","Angolan kwanza (AOA)"),Ars:new n("Ars","Argentine peso (ARS)"),Aud:new n("Aud","Australian dollar (AUD)"),Brl:new n("Brl","Brazilian real (BRL)"),Gbp:new n("Gbp","British pound (GBP)"),Cad:new n("Cad","Canadian dollar (CAD)"),Clp:new n("Clp","Chilean peso (CLP)"),Cny:new n("Cny","Chinese yuan (CNY)"),Cop:new n("Cop","Colombian peso (COP)"),Eur:new n("Eur","European euro (EUR)"),Gyd:new n("Gyd","Guyanese dollar (GYD)"),Hkd:new n("Hkd","Hong Kong dollar (HKD)"),Inr:new n("Inr","Indian rupee (INR)"),Idr:new n("Idr","Indonesian rupiah (IDR)"),Jpy:new n("Jpy","Japanese yen (JPY)"),Myr:new n("Myr","Malaysian ringgit (MYR)"),Mxn:new n("Mxn","Mexican peso (MXN)"),Mzn:new n("Mzn","Mozambican metical (MZN)"),Nzd:new n("Nzd","New Zealand dollar (NZD)"),Ngn:new n("Ngn","Naira (NGN)"),Nok:new n("Nok","Norwegian krone (NOK)"),Pgk:new n("Pgk","Papua New Guinea kina (PGK)"),Pen:new n("Pen","Peruvian sol (PEN)"),Pln:new n("Pln","Polish Zloty (PLN)"),Php:new n("Php","Philippine peso (PHP)"),Qar:new n("Qar","Qatari riyal (QAR)"),Rub:new n("Rub","Russian rouble (RUB)"),Sar:new n("Sar","Saudi riyal (SAR)"),Sgd:new n("Sgd","Singapore dollar (SGD)"),Zar:new n("Zar","South African rand (ZAR)"),Krw:new n("Krw","South Korean won (KRW)"),Sek:new n("Sek","Swedish krona (SEK)"),Chf:new n("Chf","Swiss franc (CHF)"),Twd:new n("Twd","Taiwanese dollar (TWD)"),Thb:new n("Thb","Thai baht (THB)"),Try:new n("Try","Turkish lira (TRY)"),Usd:new n("Usd","US dollar (USD)")},o=function(){const e={};return Object.keys(r).forEach((t=>{const i=r[t];e[i.name]=i.id})),e}},11619(e,t,i){i.d(t,{AF:()=>z,AO:()=>G,Ay:()=>q,EK:()=>v,Hc:()=>w,IH:()=>k,J5:()=>h,NY:()=>M,Nz:()=>U,O4:()=>W,Sm:()=>f,TC:()=>D,TU:()=>V,Vb:()=>S,X_:()=>y,Yh:()=>C,ZQ:()=>u,_z:()=>I,dy:()=>B,ee:()=>p,fG:()=>x,fR:()=>m,fr:()=>_,iW:()=>g,pO:()=>b,po:()=>P,rb:()=>L,s$:()=>j,sh:()=>T,uY:()=>E,yr:()=>H});var n=i(44654),r=i(5108),o=i(89594),a=i(81156),s=i(45852),l=i(490),d=i(68533),c=i(88327);const u=5e6,h=3106855,p=1208880,m=1e9,g=200,S=864e5;var v;!function(e){e.Manual="manual",e.DataInsight="Data Insight",e.Scheduled="Scheduled",e.DriverReported="driverReport",e.Faults="faults",e.Rules="Rules"}(v||(v={}));const I={serialize:e=>e===d.vu.Ascending?1:-1,deserialize:e=>1===e?d.vu.Ascending:d.vu.Descending};function y(e){return Promise.resolve(e.map((e=>Object.assign(Object.assign({},e),e.eventDue))))}const f=e=>R(null==e?void 0:e.recipientType,"LogOnly","Email","LogPopup","LogUrgentPopup"),D=e=>R(null==e?void 0:e.recipientType,"EmailToGroup"),C=e=>R(null==e?void 0:e.recipientType,"Email"),R=(e,...t)=>t.filter((t=>e===t)).length>0,T=e=>"header"in e,b=e=>e?Math.ceil((0,s.PV)(e)/36e5*100)/100:0,w=(e,t,i,n="",r)=>{const o=t();return((e,t,i="")=>{t.hideMessage(i||`${e.id}_error`)})(e,i,n),document.activeElement===e?"":(o&&(A(e,o,i,n),r&&r()),o)},A=(e,t,i,n="")=>{i.displayFailed({id:n||`${e.id}_error`,message:t,field:e})},E=(e,t,i,n="")=>{let r=!1;const o=()=>{w(e,i,t,n)},a=()=>{r||w(e,i,t,n)},s=()=>{r=!0,e.focus(),r=!1};return e.addEventListener("blur",a),e.addEventListener("focusin",s),e.addEventListener("change",o),{remove:()=>{e.removeEventListener("blur",a),e.removeEventListener("focusin",s),e.removeEventListener("change",o)}}},k=(e,t,i)=>e.reduce(((e,n)=>{var r;return(null===(r=n.maintenanceSchedule)||void 0===r?void 0:r.id)===t&&n.device.id===i&&(!e||n.eventDate>e.eventDate)?n:e}),null),O=e=>{const t=e(new Date(Date.now()));return t.setSeconds(0),t.setMilliseconds(0),t},M=(e,t)=>{if(!e)return O(t);let i=new Date(e.getTime());return i.setSeconds(0),i.setMilliseconds(0),i},L=e=>e?(0,a.uf)((0,s.PV)(e)/36e5,2):0,P=e=>{const t=e.getFullYear();let i=(1+e.getMonth()).toString();i=i.length>1?i:"0"+i;let n=e.getDate().toString();return n=n.length>1?n:"0"+n,i+"/"+n+"/"+t+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()},F={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6},x=e=>F[e],N={0:"Sunday",1:"Monday",2:"Tuesday",3:"Wednesday",4:"Thursday",5:"Friday",6:"Saturday"},B=e=>N[e],U=e=>{const t={0:c.a.sunday,1:c.a.monday,2:c.a.tuesday,3:c.a.wednesday,4:c.a.thursday,5:c.a.friday,6:c.a.saturday};return null!=e&&e in t?t[e]():c.a.unknown()};var H;!function(e){e.Day="Day",e.Week="Week",e.Month="Month"}(H||(H={}));const V=(0,n.Pm)((()=>(0,o.k0)((0,n.K4)("/js/exceljs/exceljs.min.js"),document.head).then((()=>
1{if(!ExcelJS)throw new Error("Excel file support is not available")})))),_=()=>{try{return new RegExp("a","u"),!Object.hasOwnProperty("assign")}catch(e){return!0}},W=(e,t,i,n,r)=>{const o=[];for(let a=i;a<=r;a++){const i=e.getRow(a);for(let e=t;e<=n;e++)o.push(i.getCell(e))}return o};class q{getNumberVehiclesAddedToRule(e){return this.store.eventOccurrences.getItemsByValue({activeOnly:!0,latestRecordsOnly:!0,EventRuleIds:[e.id]}).then((t=>({id:e.id,count:(0,n.ar)(t.map((e=>e.device))).length})))}static getStatusDataParams(e,t,i,n){const r=O(i).toISOString();let o={fromDate:r,toDate:r};if(n){let e=n.toISOString();o.fromDate=e,o.toDate=e}return Object.assign({diagnosticSearch:{id:t},deviceSearch:{id:e}},o)}constructor(e,t,i,n){this.store=e,this.activeTasks=t,this.translate=i,this.errorHandler=n,this.maxRequestsCount=20}requestDataByChunks(e,t,i,o){let a,s=[],l=i.length/this.maxRequestsCount,d=i=>{let n=(0,r.FM)(Promise.all(i.map((i=>this.store[e][t?"getItemById":"getItemsByValue"](i,{resultsLimit:o})))).then((e=>e),this.errorHandler));return this.activeTasks.add(n),n},c=e=>{s=s.concat((0,n.ZP)(e))};for(let e=0;e<l;e++){let t=i.slice(e*this.maxRequestsCount,(e+1)*this.maxRequestsCount);a=a?a.andThen((()=>d(t))).andThen(c):d(t).andThen(c)}return a?a.andThen((()=>s)):(0,r.FM)(Promise.resolve())}getDeviceOdoAndEngineHours(e,t,i){return(0,r.FM)(Promise.all([this.store.statusData.getItemsByValue(q.getStatusDataParams(e,"DiagnosticOdometerAdjustmentId",t,i),{resultsLimit:1}),this.store.statusData.getItemsByValue(q.getStatusDataParams(e,"DiagnosticEngineHoursAdjustmentId",t,i),{resultsLimit:1})]).then((e=>({odo:e[0][0]||{data:0},engine:e[1][0]||{data:0}})),this.errorHandler))}getDeviceOdoAndEngineHoursPromise(e,t){return Promise.all([this.store.statusData.getItemsByValue(q.getStatusDataParams(e,"DiagnosticOdometerAdjustmentId",t),{resultsLimit:1}),this.store.statusData.getItemsByValue(q.getStatusDataParams(e,"DiagnosticEngineHoursAdjustmentId",t),{resultsLimit:1})]).then((t=>({currentOdometer:t[0][0]?t[0][0].data:0,currentEngineHours:t[1][0]?t[1][0].data:0,device:{id:e}})),(e=>{throw this.errorHandler(e),e}))}populateEvents(e,t=!0){if(!e||!e.length)return Promise.resolve([]);const i=e[0].device.hasOwnProperty("name"),[r,o,a]=this.getUniqueEntityIds(e);let s,l;i&&(s=o.map((t=>e.filter((e=>{var i;return(null===(i=e.maintenanceSchedule)||void 0===i?void 0:i.id)===t}))[0].maintenanceSchedule)),l=r.map((t=>e.filter((e=>{var i;return(null===(i=e.device)||void 0===i?void 0:i.id)===t}))[0].device)));var d=Promise.resolve([]);null!==o&&o.length>0&&(d=(i?Promise.resolve(s):this.store.maintenanceSchedules.getItemsByValue({ScheduleIds:o})).then((e=>this.populateRules(e))));var c=Promise.resolve([]);null!==a&&a.length>0&&(c=this.store.eventTypes.getItemsByValue({Ids:a}));const u=[[]];for(var h=0,p=0;p<r.length;p++)100===u[h].length&&(u[++h]=[]),u[h].push(r[p]);var m;return m=i?Promise.resolve(l).then((e=>this.populateDevices(e,t&&!i))):Promise.all(u.map((e=>this.store.devices.getItemsByValue({deviceIds:e},{propertySelector:{fields:["id","name","groups","activeTo","deviceFlags","devicePlanBillingInfo"],isIncluded:!0}})))).then(n.ZP).then((e=>this.populateDevices(e,t&&!i))),Promise.all([d,c,m]).then((t=>{const n=t[0],r=t[1],o=t[2];return e.map((e=>{const t=n.filter((t=>{var i;return(null===(i=e.maintenanceSchedule)||void 0===i?void 0:i.id)===t.id}))[0]||e.maintenanceSchedule;let a,s=!1;if(i){s="Overdue"===e.status}return a=i&&!e.isActiveSnooze?{name:s?this.translate("Overdue"):this.translate("DueSoon"),id:s?1:3}:i&&e.isActiveSnooze?{name:this.translate("Snoozed"),id:2}:void 0,Object.assign(Object.assign({},e),{maintenanceSchedule:t,eventType:this.eventTypeFromReference(null==e?void 0:e.eventType,r)||(null==t?void 0:t.eventType),device:o.filter((t=>e.device.id===t.id))[0]||e.device,statusText:a})}))}))}convertUpcomingEventsPropertyTypes(e){for(const t of e)t.dueInDays=t.dueInDays&&(0,n.pp)(t.dueInDays),t.overdueByDays=t.overdueByDays&&(0,n.pp)(t.overdueByDays),t.dueInOdometer=t.dueInOdometer&&(0,n.pp)(t.dueInOdometer),t.overdueByOdometer=t.overdueByOdometer&&(0,n.pp)(t.overdueByOdometer),t.dueInEngineHours=t.dueInEngineHours&&(0,s.Ay)(t.dueInEngineHours).getAllHours(),t.overdueByEngineHours=t.overdueByEngineHours&&(0,s.Ay)(t.overdueByEngineHours).getAllHours();return e}populateRules(e,t=!1){const i=(0,n.Am)(e.filter((e=>void 0!==e.id)).map((e=>e.eventType.id?e.eventType.id:e.eventType))),r=i.length>0?this.store.eventTypes.getItemsByValue({Ids:i}):Promise.resolve([]);return Promise.all([r,t?Promise.all(e.map((e=>
1this.getNumberVehiclesAddedToRule(e)))):void 0]).then((t=>{const i=t[0],n=t[1];return e.map((e=>Object.assign(Object.assign({},e),{repeats:e.kilometers||e.engineHours||e.months||e.weeks||e.days?this.translate("yes"):this.translate("no"),eventType:this.eventTypeFromReference(e.eventType,i),vehiclesAdded:n?n.filter((t=>t.id===e.id))[0].count:void 0})))}))}populateDevices(e,t){const i=e.map((e=>e.id)),r=(0,n.Am)((0,n.ZP)(e.map((e=>e.groups?e.groups.map((e=>e.id)):[])))),o=[];for(var a=0;100*a<i.length;a++)o.push(i.slice(100*a,100*(a+1)));return Promise.all([this.store.groups.getItemsByValue(),t?Promise.all(o.map((e=>this.store.deviceStatusInfo.getItemsByValue({deviceSearch:{deviceIds:e}},{propertySelector:{fields:["exceptionEvents","statusData"],isIncluded:!1}})))):void 0]).then((t=>{var i;const o=null!==(i=t[0])&&void 0!==i?i:r.map((e=>({id:e}))),a=t[1]?(0,n.ZP)(t[1]):void 0;return e.map((e=>Object.assign(Object.assign({},e),{groups:o.filter((t=>!!e.groups&&e.groups.some((e=>e.id===t.id)))),status:a?a.filter((t=>t.device.id===e.id))[0]:void 0})))}))}eventTypeFromReference(e,t){if(void 0!==e)return"string"==typeof e?{id:e,name:this.translate(e)}:t.filter((t=>e.id===t.id))[0]}getUniqueEntityIds(e){const t=[],i=[],r=[];for(let n=0;n<e.length;n++){const o=e[n],a=o.eventType&&"string"!=typeof o.eventType?o.eventType.id:o.eventType;t.push(o.device.id),o.maintenanceSchedule&&i.push(o.maintenanceSchedule.id),a&&r.push(a)}return[(0,n.Am)(t),(0,n.Am)(i),(0,n.Am)(r)]}updateGridCount(e,t,i,n,r){let o;o=0===e?this.translate(r):1===e?this.translate(n):this.translate(i).replace("{0}",e.toString());const a=`<div class="header-counter__showing">${o}</div>`,s=`<div class="header-counter__amount">${e}</div>`;t.innerHTML=`${a}${s}`}standardizeEventType(e){return"string"==typeof e?{id:e,name:(0,l.Bf)(e,(e=>this.translate(e)))}:e}getDeviceAndRuleAndEventType(e,t){return Promise.all([this.store.maintenanceSchedules.getItemById(t),this.store.devices.getItemById(e)]).then((([e,t])=>Promise.all([t,e,this.store.eventTypes.getItemById(e.eventType.id||e.eventType).then((t=>"string"==typeof e.eventType?this.eventTypeFromReference(e.eventType,e.eventType):{id:e.eventType.id,name:t.name}))])))}}const G="aDAyN2U4MjEtZGRhZS00NjR",j={IMAGE:"Image",PDF:"Pdf"},z="UnplannedMaintenance"},10444(e,t,i){i.d(t,{DM:()=>a,RK:()=>s,Uu:()=>l,hX:()=>d,tp:()=>c,y4:()=>u});var n=i(78300);const r={"Default Exceptions Detail Report":"Default Events Detail Report","Default Exceptions Summary Report":"Default Events Summary Report","Advanced Exceptions Detail Report":"Advanced Events Detail Report","Advanced Exceptions Summary Report":"Advanced Events Summary Report","Exceptions Detail":"Events Detail","Exceptions Summary":"Events Summary"},o=[["rule-based driving exceptions","rule-based driving events"],["all exception events","all events"],["for each exception.","for each event."],["safety exception rules","safety event rules"],["exception logic","event logic"],["Track speeding exceptions","Track speeding events"],["driver exceptions","driver events"]],a=e=>!!e&&e(n.u.EXCEPTION_TO_EVENTS),s=(e,t)=>t&&r[e]||e,l=(e,t)=>t?o.reduce(((e,[t,i])=>e.split(t).join(i)),e):e,d=(e,t=!1)=>e?t?"Event rules:":"Event rules":t?"exceptionRules:":"exceptionRules",c=e=>e?"Event report":"Exception report",u=e=>e?"EventsDetailReport":"ExceptionsDetailReport"},78265(e,t,i){i.d(t,{EA:()=>n,Xh:()=>r,es:()=>o,kz:()=>a});const n=e=>{if(!/^[A-Z,a-z]+$/.test(e))throw new Error("Invalid letter");let t=e.split("").reverse(),i=0;for(let e=0;e<t.length;++e){i+=Math.pow(26,e)*(t[e].toLowerCase().charCodeAt(0)-96)}return i},r=e=>{if(e<=0)throw new Error("Can't convert zero and negative numbers to letters");let t=e,i=0;const n=[];for(;t>0;){const e=t/Math.pow(26,i)%26;n.splice(0,0,(r=e,String.fromCharCode(r+96).toUpperCase())),t-=Math.pow(26,i)*e,i++}var r;return n.join("")},o=e=>{if(!/^[A-Z,a-z]+\d+$/.test(e))throw new Error("Malformed cell address");let t=e.search(/\d/),i=e.substring(0,t),r=n(i),o=e.substring(t);return{row:parseInt(o),col:r,colStr:i}},a=(e,t)=>{let{row:i,col:n,colStr:r}=o(e);return{row:i,col:n,colStr:r,value:t,dataType:typeof t}}},29234(e,t,i){i.d(t,{F:()=>a});var n=i(19723),r=i(92191),o=i(78422);class a extends n.S{constructor(){super(),this.elt=(0,r.vt)("div",{class:"zenith-notice zenith-notice--info zenith-notice__multiline geo-view-list__single-element"})}set value(e){}get value(){}set options(e){this.elt.innerHTML=(0,o.V)({buttonText:"Learn more",message:"To give you the fastest response times, some date ranges now exclude todayâs data. Note that all exception events are now based in local timezone."},"https://support.geotab.com/mygeotab/doc/exceptions-enhance",e.translate)}get options(){return{translate:e=>e}}focus(){this.elt.scrollIntoView({block:"start"})}static requiredServices(){return[]}}a.type="AdtsNoticeWarning"},26336(e,t,i){i.d(t,{B:()=>l});var n=i(19723),r=i(92191),o=i(65872),a=i(1371),s=i(60155);class l extends n.S{constructor({translate:e,connection:t,store:i,errorHandler:n}){super(),this.globalFilter=(0,o.Jt)(),this.errorHandler=n,this.translate=e,this.connection=t,this.store=i,this.elt=(0,r.vt)("div"),this.scopeGroupFilter=new s.Y,this.filter=new a.o(this.elt,this.connection,this.store,this.translate,this.errorHandler,void 0,{showAllSelected:!0,allSelectedText:"Everything",searchPlaceholderText:"Select groupsâ¦",clippingParent:document.querySelector(".report-edit")||document.body}),this.filter.attach("change",(e=>{this.selection=e||(0,o.Jt)(),this.scopeGroupFilter.groupFilterCondition=s.Y.getConditionFromFilterState(this.selection),this.fire("change",this.value)}))}set value(e){this.filter.close(),this.scopeGroupFilter=new s.Y(e),this.filter.state=s.Y.getFilterStateFromCondition(this.scopeGroupFilter.groupFilterCondition)}get value(){return this.scopeGroupFilter.state}set options(e){e.filter&&(this.globalFilter=e.filter,this.filter.globalFilter=e.filter),e.reset&&(this.filter.state=this.globalFilter||(0,o.Jt)(),this.scopeGroupFilter.groupFilterCondition=s.Y.getConditionFromFilterState(this.filter.state),this.filter.close())}get options(){return{filter:this.globalFilter}}mount(e){this.filter.render().catch((e=>this.errorHandler(e))),super.mount(e)}unmount(e){this.filter.state=(0,o.Jt)(),this.filter.destroy(),super.unmount(e)}focus(){this.filter.focus()}static requiredServices(){return["translate","connection","store","errorHandler"]}static translations(){return["Everything","Select groupsâ¦",...a.o.translations()]}}l.type="AdvGroupFilter"},74834(e,t,i){i.d(t,{n:()=>a});var n=i(19723),r=i(92191),o=i(44654);class a extends n.S{indexByValue(e){for(let t=0;t<this.boxes.length;++t)if(this.boxes[t].value===e)return t;return-1}createLabel(e,t){let i=(0,r.vt)("label",{class:"geo-button-set__label",htmlFor:t});if(e.icon){let t="geo-caption__pre-content svgIcon",n=(0,r.yr)(e.icon,t);(0,r.gR)(n,t),(0,r.gR)(i,"geo-caption"),i.appendChild(n);let o=(0,r.vt)("span",{class:"geo-caption__content"});return o.textContent=e.name,i.appendChild(o),i}return i.textContent=e.name,i}
1renderButtons(e){this.boxes.forEach((e=>{e.removeEventListener("change",this.onChange,!1)})),this.boxes.length=0,this.elt.innerHTML="";let t=(0,o.$C)(),i=e.reduce(((e,i)=>{let n=(0,o.$C)(),a=(0,r.vt)("input",{type:"radio",name:t,value:i.value,class:"geo-button-set__radio",id:n}),s=this.createLabel(i,n);return a.addEventListener("change",this.onChange,!1),e.boxes.push(a),e.frag.appendChild(a),e.frag.appendChild(s),e}),{frag:(0,r.K4)(),boxes:this.boxes});this.elt.appendChild(i.frag),this.indexByValue(this.val)>=0?this.value=this.val:0===this.boxes.length?this.value="":this.value=this.boxes[0].value}constructor(){super(),this.val="",this.boxes=[],this.onChange=e=>{this.val=e.target.value,this.fire("change",this.val)},this.horizontalClass="geo-button-set--horizontal",this.verticalClass="",this.elt=(0,r.vt)("div",{class:"geo-button-set geo-button-set--horizontal"})}set value(e){this.val=e,!this.val&&this.boxes.length>0&&(this.val=this.boxes[0].value);let t=this.indexByValue(e);t>=0&&(this.boxes[t].checked=!0)}get value(){return this.val}set options(e){e.items&&this.renderButtons(e.items),e.hasOwnProperty("horizontal")&&((0,r.jY)(this.elt,this.horizontalClass,e.horizontal),(0,r.jY)(this.elt,this.verticalClass,!e.horizontal));let t=e.disabledItems;if(!0===e.disabled&&(t=this.boxes.map((e=>e.value))),void 0!==t){const e=t;this.boxes.forEach((t=>{t.disabled=e.indexOf(t.value)>=0}));let i=this.boxes.filter((e=>e.value===this.val))[0];if(i&&i.disabled){i.checked=!1;let e=this.boxes.filter((e=>!e.disabled))[0];this.val=e?e.value:"",e&&(e.checked=!0)}}}get options(){return{}}focus(){var e;const t=this.indexByValue(this.value)||0;null===(e=this.boxes[t])||void 0===e||e.focus()}static requiredServices(){return[]}}a.type="Buttonset"},55618(e,t,i){i.d(t,{c:()=>a});var n=i(19723),r=i(92191),o=i(1628);class a extends n.S{constructor({localizer:e}){super(),this.localizer=e,this.elt=(0,r.vt)("input",{type:"text",class:"geo-text-input"}),this.datepicker=(0,o.A)(this.elt,{type:"datetime",on:{onChange:()=>{this.fire("change",this.value)}}},e)}set value(e){let t="string"==typeof e?new Date(e):e;this.datepicker.setDate(this.localizer.toLocalDateTime(t))}get value(){return this.localizer.toReverseOffsetDateTime(this.datepicker.getDate())}set options(e){e.dateFormat&&this.datepicker.changeDateFormat(e.dateFormat),e.timeFormat&&this.datepicker.changeTimeFormat(e.timeFormat)}get options(){return{}}focus(){this.datepicker.focus()}static requiredServices(){return["localizer"]}}a.type="DateTime"},57904(e,t,i){i.d(t,{D:()=>c});var n=i(19723),r=i(92191),o=i(7815),a=i(830),s=i(72841),l=i(44654);const d=e=>!0;class c extends n.S{createEmptyResult(){return[{title:"",items:[{title:"",description:"",id:"",removable:!1,isValid:!0}]}]}toResult(e){return 0===e.length?this.createEmptyResult():[{title:"",items:e.map((e=>({title:e.name,description:"",id:e.id,removable:!0,isValid:this.isEntityValid(e)})))}]}constructor({translate:e,connection:t,store:i}){super(),this.state=[],this.ignoreUpdates=!1,this.isEntityValid=d,this.listFormatter=l.WI,this.elt=(0,r.vt)("div");let n=(0,r.vt)("div");this.list=new o.q(n,e),this.list.render(this.createEmptyResult()),this.list.attach("remove",(e=>{this.state=this.state.filter((t=>t.id!==e)),this.filter.setSelection(this.state)}));let c=(0,r.vt)("div");this.filter=(0,a.A)(c,t,i,{type:s.LA.USERS,greedySelection:!0,strings:(0,s.QG)(e,{watermarkText:e("Select usersâ¦")}),withTextField:!0},(()=>{})),this.filter.attachEvent("change",(({selectedNodes:e})=>{this.state=e.map((e=>({id:e.id}))),this.ignoreUpdates||(this.list.render(this.listFormatter(this.toResult(e))),this.fire("change",this.state.slice()))})),this.elt.appendChild(c),this.elt.appendChild(n)}set value(e){this.state=e||[],this.filter.setSelection(this.state)}get value(){return this.state}set options(e){if(e.reset&&(this.filter.clearSelection(),this.filter.closeCombo()),e.filter&&this.filter.setFilter(e.filter),e.options&&(this.ignoreUpdates=!0,this.filter.setNewOptions(e.options,!0),this.ignoreUpdates=!1),e.hasOwnProperty("isEntityValid")&&(this.isEntityValid=e.isEntityValid||d),e.hasOwnProperty("listFormatter")){this.listFormatter=e.listFormatter||l.WI;let t=this.filter.getSelection();this.list.render(this.listFormatter(this.toResult(t)))}}get options(){return{}}mount(e){(0,r.gR)(e,"notFlexible"),super.mount(e)}unmount(e){(0,r.jo)(e,"notFlexible"),super.unmount(e)}focus(){this.filter.focus()}static requiredServices(){return["translate","connection","store"]}}c.type="FilterWithList"},55328(e,t,i){i.d(t,{X:()=>l});var n=i(19723),r=i(92191),o=i(97714),a=i(53598);const s={Minute:1,FiveMinutes:2,ThirtyMinutes:3,Hourly:4,Daily:5,Weekly:6,BiWeekly:7,FourWeeks:8,Monthly:9,Quarterly:10};class l extends n.S{refresh(){const e=((e,t)=>{const i=(0,a.MH)(e);if(!i||!t)return!1;if("Monthly"===i&&"FourWeeks"===t)return!1;const n=s[i],r=s[t];return!(!n||!r)&&r<n})(this.period,this.frequency);this.elt.style.display=e?"":"none",this.container&&(0,r.BM)(this.container,"flex",e),e?(this.inner.options={title:this.title},this.inner.value=[this.message]):this.inner.value=[]}constructor(){super(),this.period="",this.frequency="",this.message="",this.title="",this.container=null,this.inner=new o.N,this.inner.options={type:"warning"},this.elt=this.inner.elt,this.elt.style.display="none"}mount(e){this.container=e,(0,r.BM)(e,"flex",!1),super.mount(e)}get value(){}set value(e){}set options(e){var t,i,n,r;this.message=null!==(t=e.message)&&void 0!==t?t:this.message,this.title=null!==(i=e.title)&&void 0!==i?i:this.title,this.period=null!==(n=e.period)&&void 0!==n?n:"",this.frequency=null!==(r=e.frequency)&&void 0!==r?r:"",this.refresh()}get options(){return{}}focus(){this.elt.scrollIntoView({block:"start"})}static requiredServices(){return o.N.requiredServices()}}l.type="FrequencyMismatchWarning"},46482(e,t,i){i.d(t,{y:()=>s});var n=i(19723),r=i(92191),o=i(48569),a=i(89615);class s extends n.S{constructor({translate:e,connection:t,store:i}
1){super(),this.selection=[],this.elt=(0,r.vt)("div"),this.filter=(0,o.y)(this.elt,t,i,e,{strings:{entireOrganizationText:e("GroupCompanyId"),everythingText:e("Everyone")},showOnlyInButton:!1,rootGroups:[],multipleSelection:!0,userScope:[{id:a.s_}]}),this.filter.attach("change",(()=>{this.selection=this.filter.getSelectedNodes()||[],this.fire("change",this.value)}))}set value(e){this.filter.closeCombo(),this.filter.setSelectedNodes(e)}get value(){return this.selection}set options(e){e.reset&&(this.filter.setSelectedNodes([]),this.filter.closeCombo()),e.filter&&this.filter.setFilter(e.filter),e.options&&this.filter.setNewOptions(e.options)}get options(){return{}}mount(e){(0,r.gR)(e,"notFlexible"),super.mount(e)}unmount(e){(0,r.jo)(e,"notFlexible"),super.unmount(e)}focus(){this.filter.focus()}static requiredServices(){return["translate","connection","store"]}}s.type="GroupFilter"},7490(e,t,i){i.d(t,{i:()=>o});var n=i(19723),r=i(97714);class o extends n.S{constructor(){super(),this.val="",this.phrases={deactivatedWarning:[],newReportWarning:[]},this.warning=new r.N,this.elt=this.warning.elt}set value(e){let t;this.val=e,t=e?"new"===e?this.phrases.newReportWarning:this.phrases.deactivatedWarning:[],this.warning.value=t,this.warning.options={type:"deactivated"===e?"error":"warning"}}get value(){return this.val}set options(e){this.phrases=Object.assign(Object.assign({},this.phrases),e)}get options(){return this.phrases}focus(){this.elt.scrollIntoView({block:"start"})}static requiredServices(){return r.N.requiredServices()}}o.type="InactiveReportWarning"},74062(e,t,i){i.d(t,{p:()=>a});var n=i(19723),r=i(92191);const o="report-input--full-width";class a extends n.S{toggleWarning(e){this.input.classList.toggle("geo-text-input--error",e);const t=this.elt.querySelector(".validation-warning");null==t||t.classList.toggle("validation-warning--hidden",!e),this.isWarningShown=e}constructor(){super(),this.isWarningShown=!1,this.elt=(0,r.Kb)('\n <div class="report-input">\n <div class="report-input__wrapper">\n <input type="text" class="geo-text-input report-input__field">\n <div class="report-input__warning validation-warning validation-warning--hidden">\n <svg class="report-input__warning--icon validation-warning__icon"><use xlink:href="#geo-error-exception-new"></use></svg>\n <span class="validation-warning__text"></span>\n </div>\n </div>\n <span class="report-input__post-label"></span>\n </div>\n'.trim())[0],this.input=this.elt.querySelector(".report-input__field"),this.postLabel=this.elt.querySelector(".report-input__post-label"),this.warningTextElement=this.elt.querySelector(".validation-warning__text"),this.input.addEventListener("change",(()=>{this.isWarningShown&&this.toggleWarning(!1),this.fire("change",this.value)}),!1)}set value(e){this.input.value=e}get value(){return this.input.value}set options(e){void 0!==e.postLabel&&(this.postLabel.textContent=e.postLabel),void 0!==e.type&&(this.input.type=e.type),void 0!==e.max&&(this.input.max=e.max.toString()),void 0!==e.min&&(this.input.min=e.min.toString()),void 0!==e.step&&(this.input.step=e.step.toString()),void 0!==e.maxLength&&(this.input.maxLength=e.maxLength),e.ariaLabelledby&&this.input.setAttribute("aria-labelledby",e.ariaLabelledby),void 0!==e.disabled&&(this.input.disabled=e.disabled),this.isWarningShown&&this.toggleWarning(!1),e.warningText&&(this.warningTextElement.textContent=e.warningText,this.toggleWarning(!0)),e.fullWidth?this.elt.classList.add(o):this.elt.classList.remove(o)}get options(){return{postLabel:this.postLabel.textContent||"",type:this.input.type,disabled:this.input.disabled,warningText:this.warningTextElement.textContent||""}}unmount(e){this.input.max="",this.input.min="",this.input.step="",this.input.disabled=!1,super.unmount(e)}focus(){this.isWarningShown&&this.toggleWarning(!1),this.input.focus()}static requiredServices(){return[]}}a.type="Input"},77286(e,t,i){i.d(t,{Q:()=>o});var n=i(19723),r=i(74062);class o extends n.S{filterValue(e){let t=this.max,i=this.min,n=isNaN(e)?0:e;return n>t?t:e<i?i:n}constructor(){super(),this.max=1/0,this.min=-1/0,this.input=new r.p,this.input.options={type:"number"},this.elt=this.input.elt,this.input.attach("change",(()=>{this.fire("change",this.value)}))}set value(e){this.input.value=this.filterValue(e).toString()}get value(){return this.filterValue(+this.input.value)}set options(e){this.input.options=e,void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min)}get options(){return{postLabel:this.input.options.postLabel,max:this.max,min:this.min}}focus(){this.input.focus()}static requiredServices(){return[...r.p.requiredServices()]}}o.type="NumberInput"},62110(e,t,i){i.d(t,{_:()=>o});var n=i(19723),r=i(97714);class o extends n.S{constructor(){super(),this.phrases=[],this.warning=new r.N,this.warning.options={hasLabel:!0},this.elt=this.warning.elt}get value(){}set options(e){this.phrases=e.warning,this.warning.value=this.phrases}get options(){return{warning:this.phrases}}focus(){this.elt.scrollIntoView({block:"start"})}
1static requiredServices(){return r.N.requiredServices()}}o.type="ScopeGroupFilterWarning"},13732(e,t,i){i.d(t,{l:()=>o});var n=i(19723),r=i(92191);class o extends n.S{setValueOrDefault(e){this.elt.value=e,!this.elt.value&&this.items.length>0&&(this.elt.value=this.items[0].value.toString())}constructor(){super(),this.items=[],this.elt=(0,r.vt)("select",{class:"geo-select"}),this.elt.addEventListener("change",(()=>{this.fire("change",this.elt.value)}),!1)}set value(e){this.setValueOrDefault(e)}get value(){return this.elt.value}set options(e){if(void 0!==e.size&&(this.elt.size=e.size),e.ariaLabelledby&&this.elt.setAttribute("aria-labelledby",e.ariaLabelledby),e.items){this.items=e.items;let t=this.elt.value;this.elt.innerHTML="",this.elt.appendChild(e.items.reduce(((e,t)=>{let i=(0,r.vt)("option",{value:t.value.toString(),class:"geo-select__option"});return i.textContent=t.name,t.disabled&&(i.disabled=!0),e.appendChild(i),e}),(0,r.K4)())),this.setValueOrDefault(t)}void 0!==e.fullWidth&&this.elt.classList.toggle("geo-select--full-width",e.fullWidth),void 0!==e.disabled&&(this.elt.disabled=e.disabled)}get options(){return{size:this.elt.size||1,items:this.items}}focus(){this.elt.focus()}static requiredServices(){return[]}}o.type="Select"},37526(e,t,i){i.d(t,{w:()=>o});var n=i(19723),r=i(92191);class o extends n.S{constructor(){super(),this.elt=(0,r.vt)("div",{class:"report-separator geo-view-list__single-element"})}set value(e){}get value(){}set options(e){void 0!==e.title&&(this.elt.textContent=e.title||"")}get options(){return{title:this.elt.textContent||""}}focus(){this.elt.scrollIntoView({block:"start"})}static requiredServices(){return[]}}o.type="Separator"},85894(e,t,i){i.d(t,{$:()=>d,J:()=>c});var n=i(19723),r=i(92191),o=i(78265),a=i(74834),s=i(58646);var l=i(94996);var d;!function(e){e.DeviceID="device",e.UserID="user",e.None="none"}(d||(d={}));class c extends n.S{collectValue(){let e,t=+this.rowSelect.value,i=+this.columnSelect.value,n=this.drilldownToggler.value?this.columnType.value:d.None;return e=n!==d.None?isNaN(i)?1:i||1:0,{sheetName:this.sheetSelect.value,row:isNaN(t)?1:t,column:e,columnType:n}}validateHeaderRow(e,t){const i=t.Values,n=Object.keys(i).filter((t=>{const{row:i}=(0,o.es)(t);return i===e}));return!(!n.length||n.every((e=>(0,l.kZ)(i[e]))))}updateForm(){(0,r.qj)(this.columnSelect,this.drilldownToggler.value),(0,r.qj)(this.columnTypeParent,this.drilldownToggler.value);const e=this.sheets&&this.sheets[this.sheetSelect.value];if(e){const t=!!this.rowSelect.value&&this.validateHeaderRow(parseInt(this.rowSelect.value),e);(0,r.L$)(this.rowSelectWarning,!t)}}renderValue(e){this.sheetSelect.value=e.sheetName,this.rowSelect.value=e.row.toString(),this.columnSelect.value=e.column.toString(),this.drilldownToggler.value=e.columnType!==d.None,this.columnType.value=e.columnType===d.None?d.DeviceID:e.columnType||d.DeviceID,this.updateForm()}createOptions(e,t){e.innerHTML="",e.appendChild(t.reduce(((e,t)=>{let i=(0,r.vt)("option",{value:t.value});return i.textContent=t.name,e.appendChild(i),e}),(0,r.K4)()))}generateItemsRange(e,t){let i=[];for(let n=1;n<=e;++n)i.push({name:t(n),value:n.toString()});return i}getLastColumn(e){return Object.keys(e.Values).reduce(((e,t)=>{let i=(0,o.es)(t).col;return i>e?i:e}),0)}loadSpreadsheet(e){return e?this.templateLoader.load(this.templateId,"",100).then((e=>[e,this.calcSpreadsheetStat(e)])):Promise.resolve(void 0)}calcSpreadsheetStat(e){return Object.keys(e).map((t=>{let i=e[t],n=i?i.Metadata.LastRowWithData:100,r=i&&i.Metadata.HeadingRow||10,a=i&&i.Metadata.DeviceIdColumn||"",s=i&&i.Metadata.UserIdColumn||"",l=i?this.getLastColumn(i):30;return{headerRow:r,deviceIdColumnNumber:a?(0,o.EA)(a):0,userIdColumnNumber:s?(0,o.EA)(s):0,maxRows:n,maxColumns:l,sheetName:t}}))}updateSheets(e,t){let i=Object.keys(e);this.createOptions(this.sheetSelect,i.map((e=>({name:e,value:e}))));let n=this.translate("Row {0}");this.createOptions(this.rowSelect,this.generateItemsRange(t.maxRows,(e=>n.replace("{0}",e.toString()))));let r=this.translate("Column {0}");this.createOptions(this.columnSelect,this.generateItemsRange(t.maxColumns,(e=>r.replace("{0}",(0,o.Xh)(e)))))}calcColumnValueFromStat(e){return 0===e.deviceIdColumnNumber&&0===e.userIdColumnNumber?[d.None,0]:0===e.deviceIdColumnNumber?[d.UserID,e.userIdColumnNumber]:[d.DeviceID,e.deviceIdColumnNumber]}
1getSheetStat(e,t){if(!e)return;let[,i]=e;return i.filter((e=>e.sheetName===t))[0]}updateIdColumnNumber(e){return this.spreadsheetStat.then((t=>{if(e===d.None)return;let i=this.getSheetStat(t,this.sheetSelect.value);if(!i)return;let n=e===d.DeviceID?i.deviceIdColumnNumber:i.userIdColumnNumber;n>0&&n!==this.val.column&&(this.val.column=n,this.renderValue(this.val))}))}updateNewSheets(e,t){this.spreadsheetStat=this.loadSpreadsheet(e),this.spreadsheetStat.then((e=>{var i;if(!e)return;let[n,r]=e;this.sheets=n;let o=t&&n.hasOwnProperty(t)?t:(null===(i=r[0])||void 0===i?void 0:i.sheetName)||"Report";if(!o)return;let a=this.getSheetStat(e,o);if(!a)return;this.updateSheets(n,a);let s=!this.val.sheetName||!this.val.row||!this.val.column;if(this.val.sheetName=this.val.sheetName||a.sheetName,this.val.row=this.val.row||a.headerRow,0===this.val.column){let[e,t]=this.calcColumnValueFromStat(a);this.val.columnType!==d.None&&(this.val.columnType=e),this.val.column=t}this.renderValue(this.val),s&&this.formUpdated()}))}constructor({translate:e,spreadsheetJSONLoader:t}){var i;super(),this.defValue={sheetName:"",row:0,column:0,columnType:d.DeviceID},this.val=Object.assign({},this.defValue),this.templateId="",this.spreadsheetStat=Promise.resolve(void 0),this.formUpdated=()=>{this.updateForm(),this.val=this.collectValue(),this.fire("change",this.val)},this.templateLoader=t,this.translate=e,this.elt=(0,r.Kb)((i=e,`\n <div class="sheet-selector">\n <div class="sheet-selector__sheet-name">\n <select class="sheet-selector__sheet-name-select geo-select geo-select--vertical-margin geo-select--full-width"></select>\n </div>\n <div class="sheet-selector__header-row sheet-axis">\n <div class="sheet-axis__help-header"><strong>${i("Identify header row for data table")}</strong></div>\n <div class="sheet-axis__help-text">${i("This field is required to define which data points are referenced to build the chart (not required for built-in reports).")}</div>\n <select aria-label="${i("Identify header row for data table")}" class="sheet-axis__select-axis geo-select geo-select--vertical-margin geo-select--full-width"></select>\n <div class="validation-error sheet-axis__validation-error">\n <svg class="validation-error__icon"><use xlink:href="#geo-attention-new"></use></svg>\n <span class="validation-error__text">${i("There is no data found in the selected row.")}</span>\n </div>\n </div>\n <div class="sheet-selector__header-column sheet-axis">\n <div class="sheet-axis__help-header"><strong>${i("Identify column with User or Vehicle ID")}</strong></div>\n <div class="sheet-axis__help-text">${i("This field is required to enable drillthroughs and to relate the spreadsheet data back to the users or vehicles in the system.")}</div>\n <div class="sheet-axis__drill-down-switcher"></div>\n <select aria-label="${i("Identify column with User or Vehicle ID")}" class="sheet-axis__select-axis geo-select geo-select--vertical-margin geo-select--full-width"></select>\n <div class="sheet-axis__type-switcher"></div>\n </div>\n </div>\n`.trim()))[0],this.sheetSelect=this.elt.querySelector(".sheet-selector__sheet-name-select"),this.sheetSelect.addEventListener("change",(()=>{this.spreadsheetStat.then((e=>{let t=this.getSheetStat(e,this.sheetSelect.value);if(!t)return;this.val.sheetName=t.sheetName,this.val.row=t.headerRow;let[i,n]=this.calcColumnValueFromStat(t);this.val.columnType=i,this.val.column=n,this.renderValue(this.val),this.formUpdated()}))}),!1),this.rowSelect=this.elt.querySelector(".sheet-selector__header-row select"),this.rowSelect.addEventListener("change",this.formUpdated,!1),this.rowSelectWarning=this.elt.querySelector(".sheet-selector__header-row .sheet-axis__validation-error"),this.columnSelect=this.elt.querySelector(".sheet-selector__header-column select"),this.columnSelect.addEventListener("change",this.formUpdated,!1),this.drilldownToggler=new s.i({translate:e}),this.drilldownToggler.options={labels:{off:e("Disable drill capability"),on:e("Enable drill capability")}},this.drilldownToggler.value=!0,this.drilldownToggler.attach("change",(()=>{this.formUpdated(),this.renderValue(this.val)})),this.elt.querySelector(".sheet-axis__drill-down-switcher").appendChild(this.drilldownToggler.elt),this.columnType=new a.n,this.columnType.options={items:[{name:e("Vehicle ID"),value:d.DeviceID},{name:e("Driver ID"),value:d.UserID}]},this.columnType.attach("change",(()=>{this.val.columnType=this.columnType.value,this.updateIdColumnNumber(this.val.columnType).then((()=>{this.formUpdated()}))})),this.columnTypeParent=this.elt.querySelector(".sheet-axis__type-switcher"),this.columnTypeParent.appendChild(this.columnType.elt)}set value(e){this.val=e||this.val,this.renderValue(this.val)}get value(){return this.val}set options(e){if(void 0!==e.templateId&&(this.templateId=e.templateId,this.isMounted()&&this.updateNewSheets(this.templateId,this.val.sheetName)),e.disabledColumnType){this.columnType.options={disabledItems:e.disabledColumnType};let t=this.collectValue();t.columnType!==this.val.columnType&&(this.val=t,this.updateIdColumnNumber(this.val.columnType).then((()=>{this.formUpdated()})))}e.ariaLabelledby&&this.sheetSelect.setAttribute("aria-labelledby",e.ariaLabelledby)}get options(){return{}}mount(e){this.updateNewSheets(this.templateId),(0,r.gR)(e,"notFlexible"),super.mount(e)}unmount(e){(0,r.jo)(e,"notFlexible"),this.val=Object.assign({},this.defValue),super.unmount(e)}focus(){this.sheetSelect.focus()}static requiredServices(){return["translate","spreadsheetJSONLoader"]}}c.type="SheetSelector"},58646(e,t,i){i.d(t,{i:()=>a});var n=i(19723),r=i(92191),o=i(79280);class a extends n.S{constructor({translate:e}){super();let t=(0,r.vt)("div",{class:"geo-switcher geo-form__short-input"});this.elt=(0,r.vt)("div"),this.elt.appendChild(t);let i=t;this.switcher=(0,o.Z)(i,e,{onChange:()=>{this.fire("change",this.value)}})}set value(e){this.switcher.setValue(!!e)}get value(){return this.switcher.isOn()}set options(e){e.labels&&(this.switcher.onLabel.set(e.labels.on),this.switcher.offLabel.set(e.labels.off)),void 0!==e.disabled&&(e.disabled?this.switcher.disable():this.switcher.enable())}get options(){return{}}
1focus(){this.switcher.focus()}static requiredServices(){return["translate"]}}a.type="Switcher"},91608(e,t,i){i.d(t,{f:()=>o});var n=i(19723),r=i(92191);class o extends n.S{constructor(){super(),this.elt=(0,r.Kb)('\n <div class="report-textarea">\n <textarea type="text" class="geo-textarea report-textarea__field"></textarea>\n <span class="report-textarea__post-label"></span>\n </div>\n'.trim())[0],this.textarea=this.elt.querySelector(".report-textarea__field"),this.postLabel=this.elt.querySelector(".report-textarea__post-label"),this.textarea.addEventListener("change",(()=>{this.fire("change",this.value)}),!1)}set value(e){this.textarea.value=e}get value(){return this.textarea.value}set options(e){void 0!==e.postLabel&&(this.postLabel.textContent=e.postLabel),void 0!==e.rows&&(this.textarea.rows=e.rows),void 0!==e.disabled&&(this.textarea.disabled=e.disabled),void 0!==e.maxLength&&(this.textarea.maxLength=e.maxLength),e.ariaLabelledby&&this.textarea.setAttribute("aria-labelledby",e.ariaLabelledby)}get options(){return{postLabel:this.postLabel.textContent||"",rows:this.textarea.rows,disabled:this.textarea.disabled}}unmount(e){this.textarea.disabled=!1,super.unmount(e)}focus(){this.textarea.focus()}static requiredServices(){return[]}}o.type="Textarea"},97714(e,t,i){i.d(t,{N:()=>o});var n=i(19723),r=i(92191);class o extends n.S{constructor(){super(),this.isInfoType=!1,this.title="",this.elt=(0,r.vt)("div",{class:"alert geo-view-list__single-element",role:"alert"})}set value(e){if(this.elt.innerHTML="",0!==e.length){const t=(0,r.K4)();if(this.title){const e=(0,r.vt)("strong",{class:"warning-paragraph"});e.textContent=this.title,t.appendChild(e)}e.reduce(((e,t)=>{let i=(0,r.vt)("div",{class:this.isInfoType?"zenith-notice__text":"warning-paragraph"});return i.textContent=t,e.appendChild(i),e}),t),this.elt.appendChild(t)}}get value(){return[]}set options(e){var t;e.type&&(this.isInfoType="info"===e.type,this.isInfoType?this.elt.className="zenith-notice zenith-notice--info geo-view-list__single-element":(this.elt.className="alert geo-view-list__single-element",(0,r.jY)(this.elt,"alert--success","success"===e.type),(0,r.jY)(this.elt,"alert--error","error"===e.type),(0,r.jY)(this.elt,"alert--warning","warning"===e.type))),void 0!==e.hasLabel&&(0,r.jY)(this.elt,"geo-view-list__single-element",!e.hasLabel),this.title=null!==(t=e.title)&&void 0!==t?t:"",void 0!==e.messages&&(this.value=e.messages)}get options(){return{}}focus(){this.elt.scrollIntoView({block:"start"})}static requiredServices(){return[]}}o.type="Warning"},50221(e,t,i){i.d(t,{Jc:()=>h,Zt:()=>c,he:()=>m,r2:()=>p,uu:()=>d,xv:()=>o});var n=i(78300),r=i(45482);const o=()=>({id:r.q2.Default,name:"",colors:[{color:"#1192E8",value:""},{color:"#009D9A",value:""},{color:"#7C9C09",value:""},{color:"#2A5847",value:""},{color:"#2853BD",value:""},{color:"#002D9C",value:""},{color:"#6929C4",value:""},{color:"#A56EFF",value:""},{color:"#B28600",value:""},{color:"#DA7C3A",value:""},{color:"#D35D80",value:""},{color:"#912362",value:""},{color:"#8A3800",value:""},{color:"#520408",value:""},{color:"#012749",value:""},{color:"#757695",value:""}]}),a=e=>({id:r.q2.SequentialBlue,name:e("Sequential blue palette"),colors:[{color:"#1098FF",value:""},{color:"#0F8FF0",value:""},{color:"#0E86E1",value:""},{color:"#0D7DD2",value:""},{color:"#0C74C3",value:""},{color:"#0B6BB4",value:""},{color:"#0A62A5",value:""},{color:"#095996",value:""},{color:"#075087",value:""},{color:"#064778",value:""},{color:"#053E69",value:""},{color:"#04355A",value:""},{color:"#032C4B",value:""},{color:"#02233C",value:""},{color:"#011A2D",value:""},{color:"#00111E",value:""}]}),s=e=>({id:r.q2.SequentialGreen,name:e("Sequential green palette"),colors:[{color:"#4AA75E",value:""},{color:"#459C58",value:""},{color:"#419253",value:""},{color:"#3C874E",value:""},{color:"#387D48",value:""},{color:"#337343",value:""},{color:"#2F693D",value:""},{color:"#2B5F38",value:""},{color:"#275533",value:""},{color:"#234B2D",value:""},{color:"#1F4228",value:""},{color:"#1B3923",value:""},{color:"#18301E",value:""},{color:"#142719",value:""},{color:"#101F14",value:""},{color:"#0A170D",value:""}]}),l=e=>({id:r.q2.DivergentRedBlue,name:e("Divergent red/blue palette"),colors:[{color:"#630000",value:""},{color:"#741208",value:""},{color:"#852311",value:""},{color:"#963519",value:""},{color:"#A74721",value:""},{color:"#B85929",value:""},{color:"#B85929",value:""},{color:"#DA7C3A",value:""},{color:"#BF703F",value:""},{color:"#A46444",value:""},{color:"#885848",value:""},{color:"#6D4C4D",value:""},{color:"#523F52",value:""},{color:"#373357",value:""},{color:"#1B275B",value:""},{color:"#001B60",value:""}]}),d=(e,t)=>t(n.u.ENABLE_DASHBOARD_PAPER_CUT_CHANGES)?[Object.assign(Object.assign({},a(e)),{name:e("Default palette")})]:[Object.assign(Object.assign({},o()),{name:e("Default palette")}),Object.assign({}
1,a(e)),Object.assign({},s(e)),Object.assign({},l(e))],c=(e,t)=>({id:r.q2.Custom,name:e("Custom palette"),colors:t||[]}),u=[{templateId:"ReportTemplateWatchdogId",groupColumn:5,colors:[{color:"#93c83d",value:"ok"},{color:"#fad201",value:"offline for 1 - 2 days"},{color:"#ff9600",value:"offline for 2 - 3 days"},{color:"#ea184d",value:"offline for 3+ days"},{color:"#808080",value:"not active"},{color:"#DCDCDC",value:"ok (stationary)"},{color:"#A9A9A9",value:"suspended"},{color:"#696969",value:"terminated"},{color:"#6929C4",value:"untracked asset"}]},{templateId:"ReportTemplateDriverSafetyScorecardId",groupColumn:7,colors:[{color:"#93c83d",value:"low risk"},{color:"#fad201",value:"mild risk"},{color:"#ff9600",value:"medium risk"},{color:"#ea184d",value:"high risk"},{color:"#808080",value:"no activity"}]}],h=(e,t,i)=>u.filter((i=>i.templateId===e&&i.groupColumn===t)).map((e=>c(i,e.colors))),p=(e,t,i,n)=>{let o=h(t,i,n);return o.length>0&&e.id===r.q2.Custom?o.map((t=>Object.assign(Object.assign({},t),{colors:e.colors}))):o}
1,m=["ok","offline for 1 - 2 days","offline for 2 - 3 days","offline for 3+ days","not active","ok (stationary)","suspended","terminated","untracked asset","low risk","mild risk","medium risk","high risk","no activity"]},28846(e,t,i){var n;i.d(t,{q:()=>n}),function(e){e.Top="top",e.Bottom="bottom"}(n||(n={}))},13311(e,t,i){var n;i.d(t,{D:()=>n}),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(n||(n={}))},45231(e,t,i){var n;i.d(t,{D:()=>n}),function(e){e.Small="small",e.Medium="medium",e.Large="large",e.XLarge="xlarge"}(n||(n={}))},39109(e,t,i){var n;i.d(t,{h:()=>n}),function(e){e.Desc="descending",e.Asc="ascending"}(n||(n={}))},81464(e,t,i){var n;i.d(t,{N:()=>n}),function(e){e.Pie="pie",e.Donut="doughnut",e.Bar="bar",e.Line="line",e.Linebar="linebar",e.Count="count",e.Donutcount="donutcount",e.StackedBar="stackedbar",e.StackedColumnBar="horizontalBar"}(n||(n={}))},45482(e,t,i){var n,r,o,a,s,l;i.d(t,{PU:()=>l,bR:()=>d,gj:()=>r,jG:()=>a,lw:()=>s,q2:()=>n,wy:()=>o}),function(e){e.Default="default",e.SequentialBlue="sequential-blue",e.SequentialGreen="sequential-green",e.DivergentRedBlue="divergent-red-blue",e.Custom="custom"}(n||(n={})),function(e){e.Device="device",e.User="user",e.None="none"}(r||(r={})),function(e){e.Value="value",e.Percentage="percentage"}(o||(o={})),function(e){e.Percent="percent",e.Unit="unit"}(a||(a={})),function(e){e.Average="average",e.Count="count",e.Max="max",e.Min="min",e.Median="median",e.Sum="sum"}(s||(s={})),function(e){e.Unit="unit",e.Number="number",e.Duration="duration"}(l||(l={}));const d="SortOrderOfValues"},82278(e,t,i){i.d(t,{c:()=>o,l:()=>a});var n=i(65872);const r=e=>({id:e.id}),o=e=>(e||[]).map(r),a=e=>{let t=e.groupFilterCondition;return Object.assign(Object.assign({},e),{groupFilterCondition:(0,n.qk)(t,r)})}},82517(e,t,i){i.d(t,{t:()=>D});var n=i(58646),r=i(13732),o=i(92923),a=i(53598),s=i(37526),l=i(55618),d=i(10142),c=i(87980),u=i(7490),h=i(11204),p=i(26336),m=i(60155),g=i(65298),S=i(62110),v=i(61255),I=i(88573),y=i(29234),f=i(55328);class D{constructor(e,t,i,n=!1){this.isReportWithInteractiveChart=e,this.hasAccessToBelongsToGroups=t,this.displayAdtsMessage=n,this.interactiveChart=e?new c.l(i):new d.M,this.subscribtionFormPart=new h._}toFormState(e,t,i){let n;return n=e.id?e.isActive?"":"deactivated":"new",Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Mf)(e)),{switchOffWarning:n,period:e.period,frequency:e.frequency,nextRun:(0,o.j4)(e.lastRun,e.frequency),scopeGroupFilter:new m.Y(e.scopeGroupFilter).state}),this.subscribtionFormPart.toFormState(e,t,i)),this.interactiveChart.toFormState(e,t,i))}fromFormState(e,t,i,n,r){let{schedule:a}=this.interactiveChart.fromFormState(e,t,i,n,r),{schedule:s}=this.subscribtionFormPart.fromFormState(e,a,i,n,r);const l=n.companyGroups,d=(0,g.z)(s.scopeGroupFilter,e.scopeGroupFilter,l);return{template:i,schedule:Object.assign(Object.assign({},s),{isActive:e.hasOwnProperty("showDashboardType")?s.isActive:e.showReport,scopeGroupFilter:d.scopeGroupFilter,scopeGroups:d.scopeGroupFilter?[]:l,nullifyScopeGroupFilter:d.nullifyScopeGroupFilter,period:e.period,frequency:e.frequency,lastRun:(0,o.HF)(e.nextRun,e.frequency).toISOString()})}}createVisibilityState(e){let t,i=!e.showReport&&(void 0===e.showDashboardType||"no"===e.showDashboardType);return t=this.isReportWithInteractiveChart?[]:e.showReport?["active"]:[],[...this.subscribtionFormPart.createVisibilityState(e),...this.interactiveChart.createVisibilityState(e),...t,...i&&e.switchOffWarning?["warning"]:[],...this.hasAccessToBelongsToGroups(e.scopeGroupFilter)?["hasAccessToBelongsToGroups"]:["showBelongsToWarning"],...this.displayAdtsMessage?["showAdtsNotice"]:[]]}validate(e,t,i){return e.showReport||void 0!==e.showDashboardType&&"no"!==e.showDashboardType?[...this.interactiveChart.validate(e,t,i),...this.subscribtionFormPart.validate(e,t,i).map((e=>"no one"===e?i("report_DashboardReportForNobody"):e))]:[]}static requiredElements(e,t,i,n,r,o,a,s,l){return R(e,t,i,n,r,o,a,s,l)}}const C=(e,t,i,r,o)=>t?c.l.requiredElements(e,i,r,o):[{component:n.i,label:e("Dashboard graphic options:"),id:"showReport",options:{labels:{on:e("on"),off:e("off")}}}],R=(e,t,i,n,d,c,m,g,v)=>[{component:u.i,id:"switchOffWarning",visiblility:["warning"],options:{deactivatedWarning:[e("reportOffError_p1"),e("reportOffError_p2")],newReportWarning:[e("dashboard_newReportWarning")]}},...C(e,d,c,m,v),{component:s.w,id:"displaySeparator",visiblility:["active"],options:{title:e("DisplayOptions")}},...h._.requiredElements(e,i,{subscribtionGroupsLabel:e("Group dashboard viewers"),subscribtionIndividualLabel:e("Individual dashboard viewers"),selfSubscribtionLabel:e("Include me as a dashboard viewer"),invalidIndividualUser:"",amountOfSubscribersLabels:{type:"users",zero:e("{{amount-part}}No one{{/amount-part}} will see the graphic."),one:e("Only {{amount-part}}one user{{/amount-part}} will see the graphic."),many:e("{{amount-part}}{UsersQty} users{{/amount-part}} will see the graphic."),me:e("Only {{amount-part}}you{{/amount-part}} will see the graphic.")}},g,(()=>!0),n),{component:s.w,id:"periodSeparator",visiblility:["active"],options:{title:e("ReportDataConfiguration")}},{component:r.l,label:e("DateRange:"),id:I.I.Period,visiblility:["active"],options:{size:6,items:(0,a.T9)(e)}},{component:y.F,id:"adtsMessage",visiblility:["active","showAdtsNotice"],options:{translate:e}},{component:r.l,label:e("RefreshPeriod"),id:I.I.Frequency,visiblility:["active"],subscribe:{[I.I.Period]:(e,t)=>{t.setValue((0,a.MH)(e))}},options:{size:1,items:(0,o.nE)(e)}},{component:f.X,id:"frequencyMismatchWarning",visiblility:["active"],options:{title:e("Consider a longer refresh period"),message:e("This report refreshes more frequently than its data period. Consider a less frequent refresh schedule."),peri
1od:m.period,frequency:m.frequency},subscribe:{[I.I.Period]:(e,t,i)=>{t.setOptions({period:e,frequency:i.getElementValue(I.I.Frequency)})},[I.I.Frequency]:(e,t,i)=>{t.setOptions({period:i.getElementValue(I.I.Period),frequency:e})}}},{component:l.c,label:e("NextRun"),id:I.I.NextRun,visiblility:["active"],helpTitle:e("The date and time of when this report is scheduled to run next."),options:{dateFormat:t.dateFormat,timeFormat:t.timeFormat},subscribe:{localization:(e,t)=>{t.setOptions(e)}}},{component:p.B,label:e("ReportForGroups"),id:"scopeGroupFilter",visiblility:["active","hasAccessToBelongsToGroups"],subscribe:{filter:(e,t)=>{t.setOptions({filter:e.filter||[]})}},options:{filter:i}},{component:S._,label:e("ReportForGroups"),id:"scopeGroupFilterWarning",visiblility:["active","showBelongsToWarning"],subscribe:{showReport:(e,t)=>{t.setOptions({isShown:!1})}},options:{warning:[e("reportBelongsToError")]}}]},61255(e,t,i){i.d(t,{Gm:()=>l,Mf:()=>a,aK:()=>d,sl:()=>s});var n=i(19870);const r=(e,t)=>({showReport:(t||!!e.id)&&e.isActive}),o=(e,t)=>{const i=r(e,t),o=e.destination===n.H_?"chart":"excel";return Object.assign(Object.assign({},i),{showDashboardType:i.showReport?o:"no"})},a=e=>r(e,!1),s=e=>o(e,!1),l=e=>r(e,!0),d=e=>o(e,!0)},59994(e,t,i){i.d(t,{Ju:()=>p,nu:()=>u});var n=i(50221),r=i(28846),o=i(13311),a=i(45231),s=i(39109),l=i(81464),d=i(45482);const c="default",u=()=>({chartType:l.N.Pie,chartGroupBy:1,chartSortBy:1,chartSortOrder:s.h.Asc,chartSize:a.D.Large,showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,numberOfItems:10,dataPoints:[],colorPlate:(0,n.xv)(),hideZeros:!1,numberOfItemsCuttingSide:r.q.Top,numberFormatForStackedCharts:d.jG.Percent,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},spreadsheet:{sheetName:"",row:1,column:1,columnType:d.gj.Device,columnName:""}}),h={[c]:()=>({chartType:l.N.Pie,chartGroupBy:1,chartSortBy:1,chartSortOrder:s.h.Asc,chartSize:a.D.Large,showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,numberOfItems:10,dataPoints:[],colorPlate:(0,n.xv)(),minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0}}),ReportTemplateWatchdogId:e=>({chartType:l.N.Pie,spreadsheet:{sheetName:"Report",row:16,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Count,chartType:l.N.Pie,column:5,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],chartSize:a.D.Large,colorPlate:(0,n.Jc)("ReportTemplateWatchdogId",5,e)[0],showLegend:!0,legendPosition:o.D.Bottom,showAxis:!0,chartShowItemValues:!0,minimumThreshold:{enabled:!0,type:d.wy.Value,threshold:0},chartGroupBy:5}),ReportTemplateDriverSafetyScorecardId:e=>({chartType:l.N.Donutcount,spreadsheet:{sheetName:"Report",row:12,column:4,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Average,chartType:l.N.Donut,column:7,decimalDigits:0,numberFormat:d.jG.Percent,fieldType:d.PU.Unit},{aggregateBy:d.lw.Average,chartType:l.N.Count,column:6,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:6,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,chartSize:a.D.Large,colorPlate:(0,n.Jc)("ReportTemplateDriverSafetyScorecardId",7,e)[0],showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,minimumThreshold:{enabled:!0,type:d.wy.Value,threshold:0},chartGroupBy:7}),ReportTemplateSeatBeltViolationsId:()=>({chartType:l.N.Linebar,spreadsheet:{sheetName:"Report",row:11,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:8,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit},{aggregateBy:d.lw.Average,chartType:l.N.Line,column:11,decimalDigits:0,numberFormat:d.jG.Percent,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:8,chartSortOrder:s.h.Desc}),ReportTemplateSpeedViolationsId:()=>({chartType:l.N.Linebar,spreadsheet:{sheetName:"Report",row:11,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:8,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit},{aggregateBy:d.lw.Average,chartType:l.N.Line,column:11,decimalDigits:0,numberFormat:d.jG.Percent,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:8,chartSortOrder:s.h.Desc}),ReportTemplateFleetDistanceTrendId:()=>({chartType:l.N.Linebar,spreadsheet:{sheetName:"Report",row:11,column:4,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:2,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit},{aggregateBy:d.lw.Average,chartType:l.N.Line,column:3,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Bottom,hideZeros:!0,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:1,chartSortOrder:s.h.Asc}),ReportTemplateAggressiveDrivingId:()=>({chartType:l.N.StackedBar,spreadsheet:{sheetName:"Summary",row:10,column:2,columnType:d.gj.Device,columnName:"Device ID"},dataPoints:[{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:4,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit},{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:5,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit},{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:6,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}
1],numberOfItems:10,numberFormatForStackedCharts:d.jG.Unit,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:d.bR,chartSortOrder:s.h.Desc}),ReportTemplateMaxSpeedId:()=>({chartType:l.N.Bar,spreadsheet:{sheetName:"Report",row:11,column:3,columnType:d.gj.Device,columnName:"Device ID"},dataPoints:[{aggregateBy:d.lw.Max,chartType:l.N.Bar,column:5,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:5,chartSortOrder:s.h.Desc}),ReportTemplateAssetUtilizationId:()=>({chartType:l.N.Bar,spreadsheet:{sheetName:"Report",row:12,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Average,chartType:l.N.Bar,column:7,decimalDigits:0,numberFormat:d.jG.Percent,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Bottom,hideZeros:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:7,chartSortOrder:s.h.Asc,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0}),ReportTemplateStandardAssetUtilizationId:()=>({chartType:l.N.Bar,spreadsheet:{sheetName:"Report",row:12,column:16,columnType:d.gj.Device,columnName:"Device ID"},dataPoints:[{aggregateBy:d.lw.Average,chartType:l.N.Bar,column:7,decimalDigits:1,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:7,chartSortOrder:s.h.Asc,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0,unitCell:"B10",unitColumns:[7,14],showYAxisPrefix:!0}),ReportTemplateFleetUtilizationId:()=>({chartType:l.N.Bar,spreadsheet:{sheetName:"Report",row:11,column:7,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Average,chartType:l.N.Bar,column:5,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Bottom,hideZeros:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:5,chartSortOrder:s.h.Desc,chartSize:a.D.Large,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0}),ReportTemplateIdlingViolationsId:()=>({chartType:l.N.Linebar,spreadsheet:{sheetName:"Report",row:9,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:6,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit},{aggregateBy:d.lw.Average,chartType:l.N.Line,column:9,decimalDigits:0,numberFormat:d.jG.Percent,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:6,chartSortOrder:s.h.Desc,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0}),ReportTemplateActiveEngineFaultsId:()=>({chartType:l.N.Bar,spreadsheet:{sheetName:"Report",row:9,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Sum,chartType:l.N.Bar,column:5,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:5,chartSortOrder:s.h.Desc,chartSize:a.D.XLarge,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0}),ReportTemplateAverageFuelEconomyId:()=>({chartType:l.N.Count,spreadsheet:{sheetName:"Report",row:12,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"},dataPoints:[{aggregateBy:d.lw.Average,chartType:l.N.Count,column:8,decimalDigits:2,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:1,numberOfItemsCuttingSide:r.q.Top,hideZeros:!0,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:7,chartSortOrder:s.h.Desc,chartSize:a.D.Small,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0}),ReportTemplatePossibleCollisionsId:()=>({chartType:l.N.Count,spreadsheet:{sheetName:"Report",row:12,column:0,columnType:d.gj.None,columnName:void 0},dataPoints:[{aggregateBy:d.lw.Count,chartType:l.N.Bar,column:1,decimalDigits:0,numberFormat:d.jG.Unit,fieldType:d.PU.Unit}],numberOfItems:10,numberOfItemsCuttingSide:r.q.Bottom,hideZeros:!1,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartGroupBy:1,chartSortBy:7,chartSortOrder:s.h.Desc,chartSize:a.D.Large,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0}),ReportTemplateDeviceOnlineAndOfflineId:()=>({chartType:l.N.Donut,spreadsheet:{sheetName:"Report",row:14,column:3,columnType:d.gj.Device,columnName:"Vehicle ID"}
1,dataPoints:[{column:5,fieldType:d.PU.Unit,aggregateBy:d.lw.Count,decimalDigits:0,numberFormat:d.jG.Unit,chartType:l.N.Donut}],chartGroupBy:5,chartSortBy:5,chartSortOrder:s.h.Asc,numberOfItems:10,hideZeros:!1,minimumThreshold:{enabled:!1,type:d.wy.Value,threshold:0},chartSize:a.D.Large,colorPlate:(0,n.xv)(),showLegend:!0,legendPosition:o.D.Top,showAxis:!0,chartShowItemValues:!0})},p=(e,t)=>{const i=h[e||c];return i?i(t):h[c](t)}},87980(e,t,i){i.d(t,{l:()=>Se});var n=i(74834),r=i(19723),o=i(92191);class a extends r.S{constructor(){super(),this.elt=(0,o.Kb)('\n <button class="report-button geo-button geo-view-list__single-element">\n <span class="report-button__title"></span>\n </button>\n'.trim())[0],this.title=this.elt.querySelector("span"),this.elt.addEventListener("click",(()=>{this.fire("change",void 0)}),!1)}set value(e){}get value(){}set options(e){e.title&&(this.title.textContent=e.title),void 0!==e.icon&&(this.icon&&this.icon.parentNode&&(this.elt.removeChild(this.icon),this.icon=void 0),e.icon&&(this.icon=(0,o.yr)(e.icon,"report-button__icon"),this.elt.insertBefore(this.icon,this.title)))}get options(){return{}}focus(){this.elt.focus()}static requiredServices(){return[]}}a.type="Button";var s=i(58646),l=i(19870),d=i(61255),c=i(88573);class u{toFormState(e){return Object.assign(Object.assign({},(0,d.sl)(e)),{defaultChartSettings:e.destination===l.H_})}fromFormState(e,t,i){return{template:i,schedule:Object.assign(Object.assign({},t),{destination:"chart"===e.showDashboardType?l.H_:l.WE,isActive:"no"!==e.showDashboardType})}}createVisibilityState(e){return["chart"===e.showDashboardType?"chart":"","no"!==e.showDashboardType?"active":"",e.defaultChartSettings?"":"customChart"].filter((e=>""!==e))}validate(){return[]}}u.createInteractiveChartsVisibilitySwitcherElements=(e,t={})=>Object.assign({component:n.n,label:e("Add chart to Dashboard:"),id:c.I.ShowDashboardType,options:{horizontal:!0,items:[{value:"no",name:e("no")},{value:"chart",name:e("Interactive chart")},{value:"excel",name:e("Excel chart")}]}},t.showDashboardType||{}),u.createInteractiveChartsMobilePreviewElement=e=>({component:a,id:"mobilePreviewButton",visiblility:["chart","active","mobile"],options:{icon:"eye-open",title:e("Preview chart and spreadsheet")}}),u.createInteractiveChartsSettingsSwitcherElement=(e,t,i)=>({component:s.i,label:e("Interactive chart settings (Layout and template settings)"),id:"defaultChartSettings",visiblility:["chart","active"],options:{labels:{on:i.defaultChartSettings?e("Keep previous settings"):e("Use default settings"),off:e("Customize")}}});var h=i(19076),p=i(37526),m=i(85894),g=i(78265),S=i(44654);const v=(e,t)=>Object.assign({type:e,title:e,minDataPoints:1,maxDataPoints:10,chartTypes:[e],sortable:!0,allowItemsLimits:!0,disableColorPlatePick:!1,disabledSizes:[],disableLegend:!1,defaultLegendValue:!1,allowLegendPosition:!0,disableAxis:!1,defaultAxisValue:!1,disableInteractive:!1,defaultInteractiveValue:!1,icon:"",stackedChart:!1},t);var I=i(45231),y=i(81464);const f=v(y.N.Pie,{title:"Pie chart",maxDataPoints:1,icon:"geo-pie-chart",disabledSizes:[I.D.Small,I.D.Medium]}),D=v(y.N.Bar,{title:"Bar chart",icon:"geo-bar-chart"}),C=v(y.N.Line,{title:"Line chart",icon:"geo-line-chart"}),R=v(y.N.Linebar,{title:"Bar and Line Chart",disabledSizes:[I.D.Small,I.D.Medium],chartTypes:[y.N.Line,y.N.Bar],minDataPoints:2,icon:"geo-line-bar-chart"}),T=v(y.N.Count,{title:"Number",maxDataPoints:1,allowItemsLimits:!1,sortable:!1,disableLegend:!0,defaultLegendValue:!1,allowLegendPosition:!1,disableAxis:!0,defaultAxisValue:!1,disableInteractive:!0,defaultInteractiveValue:!1,disableColorPlatePick:!0,icon:"geo-count-chart"}),b=v(y.N.Donut,{title:"Donut chart",minDataPoints:1,maxDataPoints:1,disabledSizes:[I.D.Small,I.D.Medium],icon:"geo-donut-chart"}),w=v(y.N.Donutcount,{title:"Donut and Number Chart",minDataPoints:2,maxDataPoints:2,chartTypes:[y.N.Donut,y.N.Count],disabledSizes:[I.D.Small,I.D.Medium],icon:"geo-donut-count-chart"}),A=[D,R,v(y.N.StackedBar,{title:"Stacked bar chart",stackedChart:!0,icon:"geo-stacked-bar-chart"}),v(y.N.StackedColumnBar,{title:"Stacked column chart",stackedCh
1art:!0,icon:"geo-stacked-column-chart"}),b,w,C,T,f],E=A.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.type]:Object.assign({},t)})),{}),k=e=>E[e]||f,O=(e,t)=>{let i=(0,S.$C)();return`\n <div class="data-point-form__part data-point-edit ${t}">\n <label for="${i}" class="data-point-edit__label" >${e}:</label>\n <select id="${i}" class="geo-select geo-select--full-width data-point-edit__select"></select>\n </div>\n `.trim()};var M=i(45482);class L extends r.S{fireChange(){this.fire("change",this.value)}isUnsavedDataPoint(){return!!this.form.parentNode}createEmptyDataPoint(){return{chartType:this.chartTypes[0]||y.N.Pie,column:1,decimalDigits:0,numberFormat:M.jG.Unit,aggregateBy:M.lw.Average}}updateSheets(e){return e?this.templateLoader.load(this.templateId,"",100).then((e=>{var t;let i=Object.keys(e||{}),n=this.sheetName&&e.hasOwnProperty(this.sheetName)?this.sheetName:i[0],r=e[n];if(!r)return;let o=this.headerRow||(null===(t=r.Metadata)||void 0===t?void 0:t.HeadingRow),a=Object.keys(r.Values).filter((e=>(0,g.es)(e).row===o)).map((e=>r.Values[e].toString().trim())).map(((e,t)=>({name:e,value:(t+1).toString()}))).filter((e=>""!==e.name));return this.createOptions(this.dataPointsSelect,a),{headerRow:o,sheetName:n,headerNamesHash:a.reduce(((e,t)=>(e[t.value]=t.name,e)),{})}})):Promise.resolve(void 0)}collectFormValues(){return{chartType:this.chartTypeSelect.value||this.chartTypes[0]||y.N.Pie,column:this.dataPointsSelect.value?+this.dataPointsSelect.value:1,decimalDigits:+this.decimalPlacesSelect.value,numberFormat:this.numberFormatSelect.value,aggregateBy:this.aggregateBySelect.value}}applyEditState(){if(!this.form.parentNode)return;let e=this.form.getAttribute("data-edit-index");if(!e)return;let t=+e;t<this.dataPoints.length&&(this.dataPoints[t]=this.collectFormValues())}editDataPoint(e){if(this.dataPoints.length<=e)return;this.finishEdit();let t=this.dataPoints[e],i=this.dataPointsList.children[e];if(!i)return;this.prevDataPoint=t,this.form.setAttribute("data-edit-index",e.toString()),(0,o.jY)(this.form,this.hideFormRemoveClass,this.dataPoints.length<=this.minAmount);let n=this.chartTypes.length!==this.maxAmount||this.chartTypes.length!==this.minAmount;(0,o.jY)(this.form,this.hideFormChartTypeClass,1===this.chartTypes.length||!n),(0,o.qj)(i,!1),this.dataPointsList.insertBefore(this.form,i),this.dataPointsSelect.value=t.column.toString(),this.chartTypeSelect.value=t.chartType;const r=this.dataPoints[e].chartType;r===y.N.StackedBar||r===y.N.StackedColumnBar?(0,o.jD)(this.numberFormatElement):(this.numberFormatSelect.value=t.numberFormat,(0,o.WU)(this.numberFormatElement)),this.aggregateBySelect.value=t.aggregateBy,this.decimalPlacesSelect.value=t.decimalDigits.toString()}finishEdit(){this.form.parentNode&&(this.prevDataPoint=void 0,this.form.parentNode.removeChild(this.form),this.form.removeAttribute("data-edit-index"),Array.prototype.forEach.call(this.dataPointsList.getElementsByClassName("data-point"),(e=>{(0,o.qj)(e,!0)})))}toggleAddMoreButton(){(0,o.qj)(this.addMore,this.maxAmount>this.dataPoints.length)}renderDataPoints(e){Array.prototype.forEach.call(this.dataPointsList.getElementsByClassName("data-point__edit"),(e=>{e.removeEventListener("click",this.editDataPointsHandler,!1)})),this.finishEdit(),this.dataPointsList.innerHTML="";let t=this.chartTypes.length<=1?this.hideDataPointChartTypeClass:"";const i=!!e.length&&(e[0].chartType===y.N.StackedBar||e[0].chartType===y.N.StackedColumnBar);let n=e.map(((e,n)=>((e,t,i,n,r,o)=>{const a=o?"":`<div class="data-point__row">${r("Number format")}: ${r(e.numberFormat)}</div>`;return`\n <div class="data-point ${i}">\n <div class="data-point__row data-point__name-edit">\n <div class="data-point__col-name"><strong>${(0,S.z)(n[e.column])||r("Column {0}").replace("{0}",(0,g.Xh)(e.column))}</strong></div>\n <button class="data-point__edit" data-index="${t}">${r("Edit")}</button>\n </div>\n <div class="data-point__row data-point__chart-type">${r("Chart type")}: ${r(k(e.chartType).title)}</div>\n ${a}\n <div class="data-point__row">${r("Aggregate by")}: ${r(e.aggregateBy)}</div>\n <div class="data-point__row">${r("Number of decimal places")}: ${((e,t)=>0===e?t("No decimals (e.g. 1)"):e.toString())(e.decimalDigits,r)}</div>\n </div>\n`.trim()})(e,n,t,this.headerNamesHash,this.translate,i))).reduce(((e,t)=>(e.appendChild((0,o.Kb)(t)[0]),e)),(0,o.K4)());this.dataPointsList.appendChild(n),Array.prototype.forEach.call(this.dataPointsList.getElementsByClassName("data-point__edit"),(e=>{e.addEventListener("click",this.editDataPointsHandler,!1)})),this.openLastToEdit&&this.editDataPoint(this.dataPoints.length-1)}normalizeDataPointsAmount(e){let t=e;
1if(this.maxAmount<t.length&&(t=t.slice(0,this.maxAmount)),t.length<this.minAmount){this.openLastToEdit=!0;for(let e=t.length;e<this.minAmount;++e)t.push(this.createEmptyDataPoint())}return t}createOptions(e,t){let i=e.value;e.innerHTML="",e.appendChild(t.reduce(((e,t)=>{let i=(0,o.vt)("option",{value:t.value});return i.textContent=t.name,e.appendChild(i),e}),(0,o.K4)())),e.value=i,e.value!==i&&(e.value=t.length>0?t[0].value:"")}constructor({translate:e,spreadsheetJSONLoader:t}){var i;super(),this.hideFormChartTypeClass="data-point-form--single",this.hideFormRemoveClass="data-point-form--limit",this.hideDataPointChartTypeClass="data-point--single",this.dataPoints=[],this.maxAmount=10,this.minAmount=1,this.chartTypes=[],this.templateId="",this.headerRow=0,this.sheetName="",this.openLastToEdit=!1,this.headerNamesHash={},this.editDataPointsHandler=e=>{let t=e.target.getAttribute("data-index");t&&(this.editDataPoint(+t),this.openLastToEdit=!1)},this.translate=e,this.templateLoader=t,this.elt=(0,o.Kb)((i=e,`\n <div class="data-points">\n <div class="data-points__list"></div>\n <div class="data-points__add-more">\n <button class="data-points__add-button geo-button">${i("Add more data points")}</button>\n </div>\n </div>\n`.trim()))[0],this.form=(0,o.Kb)((e=>`\n <div class="data-point-form">\n ${O(e("Data points"),"data-point-form__col-name")}\n ${O(e("Chart type"),"data-point-form__chart-type")}\n ${O(e("Number format"),"data-point-form__num-format")}\n ${O(e("Aggregate by"),"data-point-form__aggregate-by")}\n ${O(e("Number of decimal places"),"data-point-form__dec-places")}\n <div class="data-point-form__controls">\n <div class="data-point-form__disapprove">\n <button class="data-point-form__remove geo-button">${e("Remove")}</button>\n </div>\n <div class="data-point-form__approve">\n <button class="data-point-form__cancel geo-button">${e("Cancel")}</button>\n <button class="data-point-form__done geo-button">${e("Done")}</button>\n </div>\n </div>\n </div>
1\n`.trim())(e))[0],this.form.querySelector(".data-point-form__remove").addEventListener("click",(()=>{let e=this.form.getAttribute("data-edit-index");if(e&&this.dataPoints.length>this.minAmount){this.openLastToEdit=!1;let t=+e;this.dataPoints=[...this.dataPoints.slice(0,t),...this.dataPoints.slice(t+1)],this.finishEdit(),this.renderDataPoints(this.dataPoints),this.toggleAddMoreButton(),this.fireChange()}}),!1),this.form.querySelector(".data-point-form__cancel").addEventListener("click",(()=>{let e=this.form.getAttribute("data-edit-index");if(e&&void 0!==this.prevDataPoint){this.openLastToEdit=!1;let t=+e;this.dataPoints[t]=this.prevDataPoint,this.finishEdit(),this.renderDataPoints(this.dataPoints)}}),!1),this.form.querySelector(".data-point-form__done").addEventListener("click",(()=>{let e=this.form.getAttribute("data-edit-index");if(e){this.openLastToEdit=!1;let t=+e;this.dataPoints[t]=this.collectFormValues(),this.finishEdit(),this.renderDataPoints(this.dataPoints),this.fireChange()}}),!1),this.dataPointsSelect=this.form.querySelector(".data-
1point-form__col-name select"),this.chartTypeSelect=this.form.querySelector(".data-point-form__chart-type select"),this.numberFormatSelect=this.form.querySelector(".data-point-form__num-format select"),this.numberFormatElement=this.form.querySelector(".data-point-form__num-format"),this.createOptions(this.numberFormatSelect,(e=>[{name:e("Percentage (%)"),value:M.jG.Percent},{name:e("Unit (1,2,3)"),value:M.jG.Unit}])(e)),this.aggregateBySelect=this.form.querySelector(".data-point-form__aggregate-by select"),this.createOptions(this.aggregateBySelect,(e=>[{name:e("Average"),value:M.lw.Average},{name:e("Count"),value:M.lw.Count},{name:e("Max"),value:M.lw.Max},{name:e("Min"),value:M.lw.Min},{name:e("Median"),value:M.lw.Median},{name:e("Sum"),value:M.lw.Sum}])(e)),this.decimalPlacesSelect=this.form.querySelector(".data-point-form__dec-places select"),this.createOptions(this.decimalPlacesSelect,(e=>[{name:e("No decimals (e.g. 1)"),value:"0"},{name:e("1 decimal digit"),value:"1"},{name:e("2 decimal digits"),value:"2"},{name:e("3 decimal digits"),value:"3"},{name:e("4 decimal digits"),value:"4"}
1])(e)),this.dataPointsList=this.elt.querySelector(".data-points__list"),this.addMore=this.elt.querySelector(".data-points__add-button"),this.addMore.addEventListener("click",(()=>{this.isUnsavedDataPoint()&&this.fireChange(),this.finishEdit(),this.dataPoints.push(this.createEmptyDataPoint()),this.renderDataPoints(this.dataPoints),this.editDataPoint(this.dataPoints.length-1),this.toggleAddMoreButton()}),!1)}set value(e){this.dataPoints=this.normalizeDataPointsAmount(e||this.dataPoints),this.renderDataPoints(this.dataPoints)}get value(){return this.applyEditState(),this.dataPoints}set options(e){this.finishEdit(),void 0!==e.maxAmount&&(this.maxAmount=e.maxAmount),void 0!==e.minAmount&&(this.minAmount=e.minAmount),void 0===e.maxAmount&&void 0===e.minAmount||(this.dataPoints=this.normalizeDataPointsAmount(this.dataPoints)),this.toggleAddMoreButton(),e.chartTypes&&(this.chartTypes=e.chartTypes,this.createOptions(this.chartTypeSelect,this.chartTypes.map((e=>({name:this.translate(k(e).title),value:e})))),this.dataPoints=this.dataPoints.map(((e,t)=>{let i=this.chartTypes.indexOf(e.chartType)>=0?e.chartType:this.chartTypes[t%this.chartTypes.length];return Object.assign(Object.assign({},e),{chartType:i})}))),void 0!==e.openLastToEdit&&(this.openLastToEdit=e.openLastToEdit),void 0!==e.templateId&&(this.templateId=e.templateId),void 0!==e.headerRow&&(this.headerRow=e.headerRow),void 0!==e.sheetName&&(this.sheetName=e.sheetName),this.updateSheets(this.templateId).then((e=>{void 0!==e&&(this.headerNamesHash=e.headerNamesHash,this.renderDataPoints(this.dataPoints))}))}get options(){return{}}mount(e){this.updateSheets(this.templateId).then((e=>{void 0!==e&&(this.headerRow=this.headerRow||e.headerRow,this.sheetName=this.sheetName||e.sheetName,this.headerNamesHash=e.headerNamesHash,this.renderDataPoints(this.dataPoints))})),(0,o.gR)(e,"notFlexible"),super.mount(e)}unmount(e){this.templateId="",this.headerRow=0,this.sheetName="",this.dataPoints.length=0,this.openLastToEdit=!1,(0,o.jo)(e,"notFlexible"),super.unmount(e)}focus(){const e=this.dataPointsList.children[0],t=(null==e?void 0:e.querySelector(".data-
1point__edit"))||null;null==t||t.focus()}static requiredServices(){return["translate","spreadsheetJSONLoader"]}}L.type="DataPoints";class P extends r.S{collectValue(){let e=this.buttonset.value;return{enabled:"none"!==e,type:e,threshold:+this.valueInput.value}}constructor(e){super(),this.fireChange=()=>{this.fire("change",this.collectValue())};let{translate:t}=e;this.elt=(0,o.Kb)('\n <div class="slice-threshold geo-view-list__field geo-view-list-group">\n <div class="slice-threshold__value geo-view-list-group__item">\n <input class="slice-threshold__input geo-text-input" type="number" style="display:none;">\n </div>\n </div>\n '.trim())[0],this.valueInput=this.elt.querySelector(".slice-threshold__input"),this.valueInput.value="0",this.valueInput.addEventListener("input",(0,S.sg)(this.fireChange,50),!1),this.buttonset=new n.n,this.buttonset.options={items:[{name:t("None"),value:"none"},{name:t("Percentage (%)"),value:"percentage"},{name:t("Unit (1,2,3)"),value:"value"}]},this.elt.insertBefore(this.buttonset.elt,this.elt.children[0]),(0,o.gR)(this.buttonset.elt,"slice-threshold__type geo-view-list-group__item"),this.buttonset.attach("change",(e=>{(0,o.qj)(this.valueInput,"none"!==e),this.fireChange()}))}get value(){return this.collectValue()}set value(e){this.valueInput.value=e.threshold.toString()||"0",(0,o.qj)(this.valueInput,e.enabled),this.buttonset.value=e.enabled&&e.type||"none"}set options(e){e.ariaLabelledby&&this.valueInput.setAttribute("aria-labelledby",e.ariaLabelledby)}get options(){}focus(){this.buttonset.focus()}mount(e){(0,o.gR)(e,"notFlexible"),super.mount(e)}unmount(e){(0,o.jo)(e,"notFlexible"),super.unmount(e)}static requiredServices(){return["translate",...n.n.requiredServices()]}}P.type="SliceThreshold";var F=i(13732);class x extends r.S{updateSheets(e){return e?this.templateLoader.load(e,"",100).then(((e={})=>{let t=Object.keys(e),i=this.sheetName&&e.hasOwnProperty(this.sheetName)?this.sheetName:t[0],n=e[i];if(!n)return;let r=this.headerRow||n.Metadata.HeadingRow,o=Object.keys(n.Values).filter((e=>(0,g.es)(e).row===r)).map((e=>n.Values[e].toString().trim())).map(((e,t)=>({name:e||this.translate("Column {0}").replace("{0}",(0,g.Xh)(t+1)),value:(t+1).toString()})));this.availableColumns.length>0&&(o=this.availableColumns.map((e=>{let t=e.toString(),i=o.filter((e=>e.value===t));return 0===i.length?{name:this.translate("Column {0}").replace("{0}",(0,g.Xh)(e)),value:t}:i[0]})).filter((e=>e))),this.select.options={items:[...o,...this.additionalItems]},this.select.value=this.column.toString(),this.setColumn(this.select.value),this.sheetData=n.Values})):Promise.resolve(void 0)}isAdditionalValue(e){return this.additionalItems.map((e=>e.value)).includes(e)}setColumn(e,t=1){const i=this.isAdditionalValue(e)?e:+e;this.column="number"==typeof i&&isNaN(i)?t:i}constructor(e){super(),this.column=1,this.templateId="",this.sheetName="",this.headerRow=0,this.sheetData={},this.availableColumns=[],this.additionalItems=[],this.getColumnData=(e,t)=>Object.keys(t).reduce(((i,n)=>{const{row:r,col:o}=(0,g.es)(n);return r>this.headerRow&&o===e?(i.push(t[n]),i):i}),[]),this.validate=()=>{if(!this.validateFunc||this.isAdditionalValue(this.column))return void(0,o.jD)(this.warningContainer);const e=this.getColumnData(+this.column,this.sheetData),t=this.validateFunc(+this.column,e);(0,o.L$)(this.warningContainer,!!t),this.warningContainerText.textContent=t||""};let{translate:t,spreadsheetJSONLoader:i}=e;this.templateLoader=i,this.translate=t,this.select=new F.l,this.select.options={size:1,fullWidth:!0},this.elt=(0,o.Kb)('<div class="column-select">\n <div class="column-select__select"></div>\n <div class="column-select__warning alert" style="display:none">\n <div class="column-select__warning-text"></div>\n </div>\n </div>'.trim())[0],this.selectContainer=this.elt.querySelector(".column-select__select"),this.warningContainer=this.elt.querySelector(".column-select__warning"),this.warningContainerText=this.elt.querySelector(".column-select__warning-text"),this.selectContainer.appendChild(this.select.elt),this.select.attach("change",(e=>{this.setColumn(e),this.validate(),this.fire("change",this.value)}))}set value(e){this.setColumn(e,this.column),this.select.value=this.column.toString()}get value(){return this.column}set options(e){void 0!==e.templateId&&(this.templateId=e.templateId),void 0!==e.headerRow&&(this.headerRow=e.headerRow),void 0!==e.sheetName&&(this.sheetName=e.sheetName),void 0!==e.availableColumns&&(this.availableColumns=e.availableColumns.filter(((e,t,i)=>i.indexOf(e)===t)),this.availableColumns.length>0&&this.availableColumns.indexOf(+this.column)<0&&(this.column=this.availableColumns[0])),e.additionalItems&&(this.additionalItems=e.additionalItems),void 0!==e.validate&&(this.validateFunc=e.validate),e.ariaLabelledby&&this.select.elt.setAttribute("aria-labelledby",e.ariaLabelledby),this.updateSheets(this.templateId).then((()=>{this.validate()}))}get options(){return{}}mount(e){this.updateSheets(this.templateId),super.mount(e)}unmount(e){this.select.options={items:[]},this.templateId="",this.headerRow=0,this.sheetName="",this.column=1,this.availableColumns=[],this.additionalItems=[],super.unmount(e)}focus(){this.select.focus()}static requiredServices(){return["spreadsheetJSONLoader","translate",...F.l.requiredServices()]}}
1x.type="ColumnSelect";var N=i(39109),B=i(77286),U=i(28846);class H extends r.S{constructor({translate:e}){super(),this.onChange=e=>this.fire("change",e),this.onNumberChanged=e=>this.onChange({numberOfItems:e,cuttingSide:this.getCuttingSideValue(this.cuttingSideSwitcher.value)}),this.onCuttingSideChanged=e=>this.onChange({numberOfItems:this.numberInput.value,cuttingSide:this.getCuttingSideValue(e)}),this.getCuttingSideValue=e=>e?U.q.Top:U.q.Bottom,this.translate=e,this.numberInput=new B.Q,this.cuttingSideSwitcher=new s.i({translate:this.translate}),this.elt=(0,o.Kb)('\n <div class="report-number-of-items geo-view-list__field geo-view-list-group">\n <div class="report-number-of-items__input geo-view-list-group__item"></div>\n <div class="report-number-of-items__cutting-side geo-view-list-group__item"></div>\n </button>\n'.trim())[0],this.numberInputContainer=this.elt.querySelector(".report-number-of-items__input"),this.cuttingSideSwitcherContainer=this.elt.querySelector(".report-number-of-items__cutting-side")}set value(e){this.numberInput.value=e.numberOfItems,this.cuttingSideSwitcher.value=e.cuttingSide===U.q.Top}get value(){return{numberOfItems:this.numberInput.value,cuttingSide:this.getCuttingSideValue(this.cuttingSideSwitcher.value)}}set options(e){this.numberInput.options=e.ariaLabelledby?Object.assign(Object.assign({},e.input),{ariaLabelledby:e.ariaLabelledby}):e.input,this.cuttingSideSwitcher.options=e.switcher}get options(){return{input:this.numberInput.options,switcher:this.cuttingSideSwitcher.options}}mount(e){this.numberInputContainer.appendChild(this.numberInput.elt),this.cuttingSideSwitcherContainer.appendChild(this.cuttingSideSwitcher.elt),this.numberInput.attach("change",(0,S.sg)(this.onNumberChanged,50)),this.cuttingSideSwitcher.attach("change",this.onCuttingSideChanged),super.mount(e)}unmount(e){this.numberInput.detach("change",this.onNumberChanged),this.cuttingSideSwitcher.detach("change",this.onCuttingSideChanged),this.numberInput.unmount(this.numberInputContainer),this.cuttingSideSwitcher.unmount(this.cuttingSideSwitcherContainer),super.unmount(e)}focus(){this.numberInput.focus()}static requiredServices(){return[...B.Q.requiredServices(),...s.i.requiredServices()]}}H.type="NumberOfItems";var V=i(11937);class _ extends r.S{constructor(e){super(),this.items=[],this.normalizeOptions=e=>({section:"",label:e.name,data:e,value:e.value.toString()}),this.getButtonNode=()=>this.elt.querySelector("button"),this.getListNode=()=>this.elt.querySelector("ul"),this.elt=(0,o.Kb)('<div class="select-with-icon"></div>')[0],this.codeSelect=new V.A(this.elt,document,(e=>(e=>`\n <div>\n <label class="select-with-icon__list-item-content geo-navigator-list__content ellipsis">\n <svg class="select-with-icon__list-item-icon select-with-icon__list-item-icon--gray geo-navigator-list__icon geo-icon--large">\n <use xlink:href="#${e.icon}"></use>\n </svg>\n <span class="select-with-icon__list-item-name geo-navigator-list__label">${e.name}</span>\n </label>\n </div>`.trim())(e)),(e=>(e=>`\n <div class="select-with-icon__button-content" style="width:100%">\n <svg class="select-with-icon__button-icon geo-icon geo-icon--left geo-icon--large"><use xlink:href="#${e.icon}"></use></svg>\n <span class="select-with-icon__button-content-value geo-caption__content">${e.name}</span>\n <svg class="geo-caption__post-content geo-icon geo-icon--large"><use xlink:href="#geo-down-arrow-new"></use></svg>\n </div>`.trim())(e)),{listItemSelectedClass:"select-with-icon__list-item--selected"},e),(0,o.gR)(this.getButtonNode(),"geo-button geo-caption geo-caption--full-width select-with-icon__button"),(0,o.gR)(this.getListNode(),"select-with-icon__list"),this.codeSelect.attach("change",(e=>{this.fire("change",e.value)}))}set value(e){this.codeSelect.value=e}get value(){return this.codeSelect.value}set options(e){e.items&&(this.items=e.items,this.codeSelect.updateItem(e.items.map(this.normalizeOptions)),this.getListNode().childNodes.forEach((e=>(0,o.gR)(e,"select-with-icon__list-item"))))}get options(){return{items:this.items}}
1focus(){this.codeSelect.focus()}static requiredServices(){return[]}}_.type="SelectWithIcon";const W={numberOfItems:10,cuttingSide:U.q.Bottom};class q{toInteractiveChartFormState(e){return{chartType:e.chartType||y.N.Pie,spreadsheet:e.spreadsheet,dataPoints:e.dataPoints,numberOfItems:{numberOfItems:e.numberOfItems||W.numberOfItems,cuttingSide:e.numberOfItemsCuttingSide||W.cuttingSide},hideZeros:e.hideZeros,minimumThreshold:e.minimumThreshold,chartGroupBy:e.chartGroupBy||1,chartSortBy:e.chartSortBy||1,chartSortOrder:e.chartSortOrder||N.h.Asc,numberFormatForStackedCharts:e.numberFormatForStackedCharts}}fromInteractiveChartFormState(e){return{chartType:e.chartType,spreadsheet:e.spreadsheet,dataPoints:e.dataPoints,numberOfItems:e.numberOfItems.numberOfItems,numberOfItemsCuttingSide:e.numberOfItems.cuttingSide,hideZeros:e.hideZeros,minimumThreshold:e.minimumThreshold,chartGroupBy:e.chartGroupBy,chartSortBy:e.chartSortBy,chartSortOrder:e.chartSortOrder,numberFormatForStackedCharts:e.numberFormatForStackedCharts}}createVisibilityState(e){let t=k(e.chartType);return[...t.sortable?["sortable"]:[],...t.allowItemsLimits?["multipleItems"]:[],...t.stackedChart?["stackedChart"]:[],...t.type!==y.N.Count?["chartGroupBy"]:[]]}validate(){return[]}static requiredElements(e,t,i){return Z(e,t,i)}}const G=e=>{let t=k(e);return{maxAmount:t.maxDataPoints,minAmount:t.minDataPoints,chartTypes:t.chartTypes}},j=e=>({headerRow:e?e.row:void 0,sheetName:e?e.sheetName:void 0}),z=(e,t)=>({availableColumns:[e||0,...(t||[]).map((e=>e.column))].filter((e=>0!==e))}),$=(e,t)=>{const i=[];return e!==y.N.StackedBar&&e!==y.N.StackedColumnBar||i.push({name:t("Values in chart"),value:M.bR}),{additionalItems:i}},Z=(e,t,i)=>[{component:p.w,id:"chartSeparator",visiblility:["chart","customChart"],options:{title:e("Interactive Chart Settings")}},{component:_,label:e("Chart type")+":",id:"chartType",visiblility:["chart","customChart"],options:{items:A.map((t=>({value:t.type,name:e(t.title),icon:t.icon})))}},{component:m.J,visiblility:["chart","customChart"],label:e("Spreadsheet to reference:"),id:c.I.SpreadsheetSettings,subscribe:{template:(e,t)=>
1{t.setOptions({templateId:e.id})}},options:{templateId:t,disabledColumnType:[]}},{component:L,visiblility:["chart","customChart"],label:e("Data points")+":",id:"dataPoints",subscribe:{template:(e,t)=>{t.setOptions({templateId:e.id})},chartType:(e,t)=>{t.setOptions(G(e))},spreadsheet:(e,t)=>{t.setOptions(j(e))}},options:Object.assign(Object.assign({templateId:t,openLastToEdit:!i.dataPoints||0===i.dataPoints.length},G(i.chartType)),j(i.spreadsheet))},{component:F.l,label:e("Number format:"),id:"numberFormatForStackedCharts",visiblility:["chart","customChart","stackedChart","sortable"],subscribe:{chartType:(e,t)=>{const i=e===y.N.StackedBar||e===y.N.StackedColumnBar;t.setOptions({display:i})}},options:{size:1,items:[{value:M.jG.Percent,name:e("Percentage (%)")},{value:M.jG.Unit,name:e("Unit (1,2,3)")}]}},{component:H,visiblility:["chart","customChart","multipleItems"],label:"Number of results to display (For example, Top 10 fuel efficient drivers):",id:"numberOfItems",options:{input:{min:1,max:100,step:1},switcher:{labels:{on:e("Top"),off:e("Bottom")}}}},{component:s.i,visiblility:["chart","customChart","multipleItems"],label:"Display results with zeros (For example, vehicles with 0 exceptions):",id:"hideZeros",options:{labels:{on:e("Hide results"),off:e("Show results")}}},{component:P,visiblility:["chart","customChart","multipleItems"],label:e("Slice minimum threshold: (Items under the minimum are designated as Other)"),id:"minimumThreshold",options:{}},{component:x,label:e("Group by")+":",id:"chartGroupBy",visiblility:["chart","customChart","chartGroupBy"],subscribe:{spreadsheet:(e,t)=>{t.setOptions(j(e))},template:(e,t)=>
1{t.setOptions({templateId:e.id})}},options:Object.assign({availableColumns:[],templateId:t,validate:(t,i)=>((e,t)=>1===new Set(e).size?t("The Serial Number field only displays one segment. If that is incorrect, please select another data point to group by."):void 0)(i,e)},j(i.spreadsheet))},{component:x,label:e("Sort by")+":",id:"chartSortBy",visiblility:["chart","customChart","sortable"],subscribe:{spreadsheet:(e,t)=>{t.setOptions(j(e))},chartGroupBy:(e,t,i)=>{t.setOptions(z(i.getElementValue("chartGroupBy"),i.getElementValue("dataPoints")))},dataPoints:(e,t,i)=>{t.setOptions(z(i.getElementValue("chartGroupBy"),i.getElementValue("dataPoints")))},template:(e,t)=>{t.setOptions({templateId:e.id})},chartType:(t,i)=>{i.setOptions($(t,e))}},options:Object.assign(Object.assign(Object.assign({templateId:t},z(i.chartGroupBy,i.dataPoints)),j(i.spreadsheet)),$(i.chartType,e))},{component:F.l,label:e("Sort order")+":",id:"chartSortOrder",visiblility:["chart","customChart","sortable"],options:{size:1,items:[{value:N.h.Asc,name:e("Ascending")},{value:N.h.Desc,name:e("Descending")}]}}],J=e=>{let t=[];for(let i=0;i<e;++i)t.push(K());return`<div class="color-grid__row">${t.join("")}</div>`},K=()=>'<span class="color-grid__cell"></span>';class Y{constructor(e,t){this.grid=(0,o.Kb)(((e,t)=>{let i=[];for(let n=0;n<t;++n)i.push(J(e));return`<div class="color-grid">${i.join("")}</div>`})(e,t))[0]}get element(){return this.grid}colorize(e){Array.prototype.forEach.call(this.grid.getElementsByClassName("color-grid__cell"),((t,i)=>{let n=e.length>i?e[i]:"";(0,o.AH)(t,{backgroundColor:n,borderColor:n})}))}}var Q=i(50221);class X extends r.S{createPlate(){return this.platesPool.length>0?this.platesPool.pop():new Y(4,4)}
1clearPlates(){this.plates.forEach((e=>{var t;null===(t=e.element.parentNode)||void 0===t||t.removeChild(e.element),this.platesPool.push(e)})),this.plates.length=0,this.elt.innerHTML=""}renderPlate(e){let t=this.createPlate();this.plates.push(t);let i=(0,o.Kb)((n=e,r=this.connectionName,`\n <label class="report-color-plates__option">\n <input data-plate="${(0,S.z)(n.id)}" name="${r}" type="radio" class="report-color-plates__input">\n <div class="report-color-plates__plate"></div>\n <span class="report-color-plates__title">${(0,S.z)(n.name)}</span>\n </label>\n `.trim()))[0];var n,r;this.elt.appendChild(i),i.querySelector(".report-color-plates__plate").appendChild(t.element),t.colorize(e.colors.map((e=>e.color)))}renderPlates(e){this.clearPlates(),e.forEach((e=>{this.renderPlate(e)}))}selectColorPlate(e){let t=this.elt.querySelector(`[data-plate='${e}']`);t&&(t.checked=!0)}constructor(){super(),this.connectionName=(0,S.$C)(),this.platesPool=[],this.plates=[],this.allPlates=[],this.isFlagEnabled=()=>!1,this.elt=(0,o.vt)("div",{class:"report-color-plates"}),this.elt.addEventListener("change",(e=>{let t=e.target.getAttribute("data-plate")||"",i=this.allPlates.filter((e=>e.id===t));i.length>0&&(this.selectedPlate=i[0]),this.fire("change",this.selectedPlate)}),!1)}set value(e){this.selectedPlate=e,this.selectColorPlate(e.id)}get value(){return this.selectedPlate||(0,Q.uu)((e=>e),this.isFlagEnabled)[0]}set options(e){e.isFlagEnabled&&(this.isFlagEnabled=e.isFlagEnabled),e.colorSets&&(this.allPlates=e.colorSets,this.renderPlates(this.allPlates),this.selectedPlate=this.selectedPlate&&this.allPlates.some((e=>{var t;return e.id===(null===(t=this.selectedPlate)||void 0===t?void 0:t.id)}))?this.selectedPlate:this.allPlates[0]||(0,Q.uu)((e=>e),this.isFlagEnabled)[0],this.selectColorPlate(this.selectedPlate.id)),e.hasOwnProperty("disabled")&&Array.prototype.forEach.call(this.elt.getElementsByClassName("report-color-plates__input"),(t=>{t.disabled=e.disabled}))}get options(){return{colorSets:this.allPlates}}focus(){const e=this.selectedPlate||(0,Q.uu)((e=>
1e),this.isFlagEnabled)[0],t=this.elt.querySelector(`[data-plate='${e.id}']`);null==t||t.focus()}static requiredServices(){return[]}}X.type="ColorPlate";var ee=i(48423),te=i(86397),ie=i(6502);const ne=e=>`<div class="plate-picker__row">${e.map(re).join("")}</div>`,re=e=>`\n <button style="background-color: ${e.color}; border-color: ${e.color};" data-color="${e.color}" class="plate-picker__color" title="${e.name}" aria-label="${e.name}"></button>\n`.trim(),oe="#1192E8";class ae extends te.FZ{pickColor(e){let t=e.target;t.hasAttribute("data-color")&&(this.value=t.getAttribute("data-color")||oe,this.fire("change",this.value),this.close())}renderPlate(){let e=(0,o.Kb)(((e,t)=>{let i=e.slice(0,16);for(let e=i.length;e<16;++e)i.push({name:t("White"),color:"#FFFFFF"});let n=[];for(let e=0;e<16;e+=4)n.push(ne(i.slice(e,e+4)));return`<div role="listbox" aria-expanded="false" class="plate-color-picker__plate plate-picker">${n.join("")}</div>`})(this.colorsSet,this.translate))[0];return this.globalEventTarget.addEventListener("click",this.handleGlobalClick,!1),e.addEventListener("keyup",this.handleEscape,!1),e.addEventListener("keypress",this.handleEnterPress,!1),e.addEventListener("click",this.handleClick,!1),this.picker.appendChild(e),e}renderSelectedColor(){(0,o.AH)(this.picker.querySelector(".plate-color-picker__color"),{backgroundColor:this.color})}togglePlate(e,t){this.plate&&((0,o.jY)(this.picker,this.visiblePlateModifier,e),this.plate.setAttribute("aria-expanded",e.toString()),e?this.trap.trap(this.plate):this.trap.untrap(t))}constructor(e,t,i=(e=>[{color:oe,name:e("Light Blue")},{color:"#009D9A",name:e("Turquoise")},{color:"#7C9C09",name:e("Light Green")},{color:"#2A5847",name:e("Dark Green")},{color:"#2853BD",name:e("Blue")},{color:"#002D9C",name:e("Dark Blue")},{color:"#6929C4",name:e("Dark Purple")},{color:"#A56EFF",name:e("Light Purple")},{color:"#B28600",name:e("Gold")},{color:"#DA7C3A",name:e("Orange")},{color:"#D35D80",name:e("Pink")},{color:"#912362",name:e("Maroon")},{color:"#8A3800",name:e("Light Brown")},{color:"#520408",name:e("Dark Brown")},{color:"#012749",name:e("Dark Grey")},{color:"#757695",name:e("Light Grey")}])(e)){var n;super(),this.translate=e,this.globalEventTarget=t,this.colorsSet=i,this.visiblePlateModifier="plate-color-picker--opened",this.color=oe,this.handleEscape=(0,ee.Xx)((()=>{this.close()})),this.handleEnterPress=(0,ee.$p)((e=>{this.pickColor(e)})),this.handleClick=e=>{this.pickColor(e)},this.handleGlobalClick=e=>{let t=e.target;for(;t;){if(t===this.plate||t===this.picker)return;t=t.parentNode}this.close()},this.picker=(0,o.Kb)((n=e,`\n <div class="plate-color-picker">\n <button aria-haspopup="listbox" class="plate-color-picker__trigger" title="${n("Select color")}" aria-label="${n("Select color")}">\n <span class="plate-color-picker__color"></span>\n <svg class="plate-color-picker__expand">\n <use xlink:href="#geo-new-arrow-down"></use>\n </svg>\n </button>\n </div>\n `.trim()))[0],this.trap=new ie.A,this.picker.querySelector(".plate-color-picker__trigger").addEventListener("click",(e=>{void 0===this.plate&&(this.plate=this.renderPlate()),this.togglePlate(!(0,o.nB)(this.picker,this.visiblePlateModifier),e)}),!1)}get element(){return this.picker}get value(){return this.color}set value(e){this.color=e,this.renderSelectedColor()}close(){this.togglePlate(!1,null)}destroy(){this.close(),this.globalEventTarget.removeEventListener("click",this.handleGlobalClick,!1),this.plate&&(this.plate.addEventListener("keyup",this.handleEscape,!1),this.plate.addEventListener("keypress",this.handleEnterPress,!1),this.plate.addEventListener("click",this.handleClick,!1))}}class se extends r.S{createPlate(e){if(this.platesPool.length>0)return this.platesPool.pop();const t=e.map((e=>({name:e.value,color:e.color})));return new ae(this.translate,this.globalEventTarget,t)}
1clearPlates(){this.plates.forEach((e=>{e.picker.close(),e.picker.detach("change"),e.picker.element.parentNode&&e.picker.element.parentNode.removeChild(e.picker.element),this.platesPool.push(e.picker)})),this.plates.length=0,this.elt.innerHTML=""}renderColors(e){this.clearPlates(),e.forEach((t=>{let i=(0,o.Kb)((n=t.value,`\n <div class="custom-color-plates__cell value-color-picker">\n <div class="value-color-picker__picker"></div>\n <span class="value-color-picker__title ellipsis">${(0,S.z)(n)}</span>\n </div>\n `.trim()))[0];var n;let r=this.createPlate(e);r.attach("change",(()=>{this.fire("change",this.value)})),r.value=t.color,i.querySelector(".value-color-picker__picker").appendChild(r.element),this.elt.appendChild(i),this.plates.push({picker:r,value:t.value})}))}constructor({translate:e,globalEventTarget:t}){super(),this.platesPool=[],this.plates=[],this.translate=e,this.globalEventTarget=t,this.elt=(0,o.Kb)('<div class="custom-color-plates"></div>')[0]}set value(e){this.renderColors(e)}get value(){return this.plates.map((e=>({value:e.value,color:e.picker.value})))}set options(e){}get options(){return{}}unmount(e){this.clearPlates(),super.unmount(e)}focus(){this.elt.scrollIntoView({block:"start"})}static requiredServices(){return["translate","globalEventTarget"]}}se.type="CustomColorPlate";var le=i(13311);class de{toInteractiveChartFormState(e){let t=e.colorPlate||(0,Q.xv)();return{chartSize:e.chartSize,showLegend:e.showLegend,showAxis:e.showAxis,chartShowItemValues:!e.chartShowItemValues,colorPlate:e.colorPlate,legendPosition:e.legendPosition||le.D.Top,customColorPlate:t.id===M.q2.Custom?t.colors:[]}}fromInteractiveChartFormState(e){let t=e.colorPlate;return t&&t.id===M.q2.Custom&&(t.colors=e.customColorPlate),{chartSize:e.chartSize,showLegend:e.showLegend,showAxis:e.showAxis,chartShowItemValues:!e.chartShowItemValues,legendPosition:e.legendPosition||le.D.Top,colorPlate:t?{id:t.id,colors:t.colors}:void 0}}createVisibilityState(e){var t;let i=(null===(t=e.colorPlate)||void 0===t?void 0:t.id)||M.q2.Default,n=k(e.chartType);return["custom"===i?"customizeReportColors":"",n.disableColorPlatePick?"":"changeReportColors",n.allowLegendPosition&&e.showLegend?"chartWithLegend":""].filter((e=>e))}validate(){return[]}static requiredElements(e,t,i,n){return me(e,t,i,n)}}const ce=(e,t)=>(i,n)=>{let r=k(i);n.setOptions({disabled:r[e]}),r[e]&&void 0!==t&&n.setValue(r[t])},ue=e=>({disabled:k(e).disableLegend}),he=e=>({disabled:k(e).disableAxis}),pe=e=>({disabled:k(e).disableInteractive}),me=(e,t,i,r)=>{return[{component:p.w,id:"layoutChartSeparator",visiblility:["chart","customChart"],options:{title:e("Layout options")}},{component:n.n,label:e("Widget size")+":",id:"chartSize",visiblility:["chart","customChart"],subscribe:{chartType:ce("disabledSizes",void 0)},options:Object.assign(Object.assign({},(o=i.chartType,{disabled:k(o).disabledSizes})),{horizontal:!0,items:[{value:I.D.Small,name:e("Small")},{value:I.D.Medium,name:e("Medium")},{value:I.D.Large,name:e("Large")},{value:I.D.XLarge,name:e("X-Large")}]})},{component:X,label:e("Color palette")+":",id:"colorPlate",visiblility:["chart","customChart","changeReportColors"],subscribe:{customColorPlate:(t,i)=>{i.setOptions({colorSets:[...(0,Q.uu)(e,r),(0,Q.Zt)(e,t)],isFlagEnabled:r})},chartGroupBy:(i,n)=>{n.setOptions({colorSets:[...(0,Q.uu)(e,r),...(0,Q.r2)(n.getValue(),t,i,e)],isFlagEnabled:r})}},options:{colorSets:[...(0,Q.uu)(e,r),...(0,Q.r2)(i.colorPlate,t,i.chartGroupBy,e)],isFlagEnabled:r}},{component:se,label:e("Custom colors")+":",id:"customColorPlate",visiblility:["chart","customChart","changeReportColors","customizeReportColors"],options:{},subscribe:{colorPlate:(e,t)=>{e.id===M.q2.Custom&&t.setValue(e.colors)}}},{component:s.i,label:e("Legend labels")+":",id:"showLegend",visiblility:["chart","customChart"],subscribe:{chartType:ce("disableLegend","defaultLegendValue")},options:Object.assign(Object.assign({},ue(i.chartType)),{labels:{on:e("Show"),off:e("Hide")}})},{component:n.n,label:e("Legend position")+":",id:"legendPosition",visiblility:["chart","customChart","chartWithLegend"],options:{horizontal:!0,items:[{value:le.D.Top,name:e("Top")},{value:le.D.Bottom,name:e("Bottom")},{value:le.D.Left,name:e("Left")},{value:le.D.Right,name:e("Right")}]}},{component:s.i,label:e("Axis labels")+":",id:"showAxis",visiblility:["chart","customChart"],subscribe:{chartType:ce("disableAxis","defaultAxisValue")},options:Object.assign(Object.assign({},he(i.chartType)),{labels:{on:e("Show"),off:e("Hide")}})},{component:s.i,label:e("Show item values")+":",id:"chartShowItemValues",visiblility:["chart","customChart"],subscribe:{chartType:ce("disableInteractive","defaultInteractiveValue")},options:Object.assign(Object.assign({},pe(i.chartType)),{labels:{on:e("On hover/tab only"),off:e("Show always")}})}];var o};var ge=i(59994);class Se{constructor(e){this.translate=e,this.control=new u,this.dataSettings=new q,this.layoutSettings=new de}toFormState(e,t,i){let n=(0,h.P)(e.interactiveSettings||"",this.translate,t.id)||(0,ge.Ju)(t.id,this.translate);return Object.assign(Object.assign(Object.assign({},this.control.toFormState(e,t,i)),this.dataSettings.toInteractiveChartFormState(n)),this.layoutSettings.toInteractiveChartFormState(n))}fromFormState(e,t,i,n,r){let{schedule:o}=this.control.fromFormState(e,t,i,n,r),a="";if(o.destination===l.H_&&(a=o.interactiveSettings||"",!e.defaultChartSettings||""===a)){let t=(0,h.P)(o.interactiveSettings||"",this.translate,i.id)||(0,ge.Ju)(i.id,this.translate);a=JSON.stringify(Object.assign(Object.assign({},this.dataSettings.fromInteractiveChartFormState(e,t)),this.layoutSettings.fromInteractiveChartFormState(e,t)))}return{template:i,schedule:Object.assign(Object.assign({},o),{interactiveSettings:a})}}createVisibilityState(e){return[...this.control.createVisibilityState(e),...this.dataSettings.createVisibilityState(e),...this.layoutSettings.createVisibilityState(e)]}validate(e,t,i){return this.control.validate(e,t,i)}static requiredElements(e,t,i,n){return[u.createInteractiveChartsVisibilitySwitcherElements(e),u.createInteractiveChartsMobilePreviewElement(e),u.createInteractiveChartsSettingsSwitcherElement(e,t,i),...q.requiredElements(e,t,i),...de.requiredElements(e,t,i,n)]}}Se.createInteractiveChartsVisibilitySwitcherElements=(e,t={})=>[u.createInteractiveChartsVisibilitySwitcherElements(e,t)],Se.createInteractiveChartsMobilePreviewElements=e=>[u.createInteractiveChartsMobilePreviewElement(e)],Se.createInteractiveChartsSettingsElements=(e,t,i,n)=>[u.createInteractiveChartsSettingsSwitcherElement(e,t,i),...q.requiredElements(e,t,i),...de.requiredElements(e,t,i,n)]},27425(e,t,i){i.d(t,{TA:()=>T,jf:()=>C});var n=i(13732),r=i(92923),o=i(53598),a=i(37526),s=i(55618),l=i(87980),d=i(7490),c=i(11204),u=i(26336),h=i(62110),p=i(82517),m=i(74062),g=i(58646),S=i(61255),v=i(91608),I=i(19870),y=i(88573),f=i(29234),D=i(55328);const C=255,R=750;class T extends p.t{toFormState(e,t,i){const n=super.toFormState(e,t,i),r=e.description||"";return Object.assign(Object.assign(Object.assign({},n),this.isReportWithInteractiveChart?(0,S.aK)(e):(0,S.Gm)(e)),{switchOffWarning:e.isActive?"":"deactivated",destination:e.destination,name:e.name,description:r.length>R?r.slice(0,747)+"...":r})}fromFormState(e,t,i,n,r){const o=super.fromFormState(e,t,i,n,r);return{template:o.template,schedule:Object.assign(Object.assign({},o.schedule),{name:e.name.slice(0,C),description:e.description.slice(0,R)})}}static requiredElements(e,t,i,n,r,o,a,s,l){return A(e,t,i,n,r,o,a,s,l)}}T.translations=()=>["Chart type","Excel","Interactive","Chart name","Chart description","Consider a longer refresh period","This report refreshes more frequently than its data period. Consider a less frequent refresh schedule."];const b=(e,t)=>{const i={visiblility:["singleDashboard"],subscribe:{destination:(e,i)=>{const n=t?e?"excel":"chart":!e;i.setValue(n)}}};return t?l.l.createInteractiveChartsVisibilitySwitcherElements(e,{showDashboardType:Object.assign({},i)}):[Object.assign({component:g.i,label:e("Dashboard graphic options:"),id:"showReport",options:{labels:{on:e("on"),off:e("off")}}},i)]},w=(e,t)=>t?[{component:g.i,label:e("Chart type"),id:y.I.Destination,options:{disabled:!t,labels:{on:e("Excel"),off:e("Interactive")}},get:e=>e?"dashboard":"chart",set:e=>e===I.WE}]:[],A=(e,t,i,p,g,S,I,T,A)=>[{component:d.i,id:"switchOffWarning",visiblility:["warning"],options:{deactivatedWarning:[e("reportOffError_p1"),e("reportOffError_p2")],newReportWarning:[e("dashboard_newReportWarning")]}},...b(e,g),...w(e,g),...l.l.createInteractiveChartsMobilePreviewElements(e),{component:m.p,label:e("Chart name"),id:y.I.Name,visiblility:["active"],options:{fullWidth:!0,maxLength:C},subscribe:{showWarning:(t,i)=>{i.setOptions({fullWidth:!0,maxLength:C,warningText:e("Chart name is required")})}}},{component:v.f,label:e("Chart description"),id:y.I.Description,visiblility:["active"],options:{rows:5,maxLength:R}},...l.l.createInteractiveChartsSettingsElements(e,S,I,A),{component:a.w,id:"displaySeparator",visiblility:["active"],options:{title:e("DisplayOptions")}},...c._.requiredElements(e,i,{subscribtionGroupsLabel:e("Group dashboard viewers"),subscribtionIndividualLabel:e("Individual dashboard viewers"),selfSubscribtionLabel:e("Include me as a dashboard viewer"),invalidIndividualUser:"",amountOfSubscribersLabels:{type:"users",zero:e("{{amount-part}}No one{{/amount-part}} will see the graphic."),one:e("Only {{amount-part}}one user{{/amount-part}} will see the graphic."),many:e("{{amount-part}}{UsersQty} users{{/amount-part}} will see the graphic."),me:e("Only {{amount-part}}you{{/amount-part}} will see the graphic.")}},T,(()=>!0),p),{component:a.w,id:"periodSeparator",visiblility:["active"],options:{title:e("ReportDataConfiguration")}},{component:n.l,label:e("DateRange:"),id:y.I.Period,visiblility:["active"],options:{size:6,items:(0,o.T9)(e)}},{component:f.F,id:"adtsMessage",visiblility:["active","showAdtsNotice"],options:{translate:e}},{component:n.l,label:e("RefreshPeriod"),id:y.I.Frequency,visiblility:["active"],subscribe:{[y.I.Period]:(e,t)=>{t.setValue((0,o.MH)(e))}},options:{size:1,items:(0,r.nE)(e)}},{component:D.X,id:"frequencyMismatchWarning",visiblility:["active"],options:{title:e("Consider a longer refresh period"),message:e("This report refreshes more frequently than its data period. Consider a less frequent refresh schedule."),peri
1od:I.period,frequency:I.frequency},subscribe:{[y.I.Period]:(e,t,i)=>{t.setOptions({period:e,frequency:i.getElementValue(y.I.Frequency)})},[y.I.Frequency]:(e,t,i)=>{t.setOptions({period:i.getElementValue(y.I.Period),frequency:e})}}},{component:s.c,label:e("NextRun"),id:y.I.NextRun,visiblility:["active"],helpTitle:e("The date and time of when this report is scheduled to run next."),options:{dateFormat:t.dateFormat,timeFormat:t.timeFormat},subscribe:{localization:(e,t)=>{t.setOptions(e)}}},{component:u.B,label:e("ReportForGroups"),id:y.I.BelongingToAdv,visiblility:["active","hasAccessToBelongsToGroups"],subscribe:{filter:(e,t)=>{t.setOptions({filter:e.filter||[]})}},options:{filter:i}},{component:h._,label:e("ReportForGroups"),id:"scopeGroupFilterWarning",visiblility:["active","showBelongsToWarning"],subscribe:{showReport:(e,t)=>{t.setOptions({isShown:!1})}},options:{warning:[e("reportBelongsToError")]}}]},19076(e,t,i){i.d(t,{P:()=>r});var n=i(59994);const r=(e,t,i)=>{if(0!==e.trim().length)return Object.assign(Object.assign({},(0,n.Ju)(i,t)),JSON.parse(e))}},65298(e,t,i){i.d(t,{z:()=>d});var n=i(8515),r=i(44654),o=i(89615),a=i(65872),s=i(60155),l=i(82278);const d=(e,t,i=[{id:o.s_}])=>{if(!t)return{nullifyScopeGroupFilter:!0};const d=new s.Y(t).toFormState(),c=(0,a.tT)(d.groupFilterCondition),u=0===c.items.length||(0,r.je)(c)?Object.assign(Object.assign({},d),{groupFilterCondition:{relation:n.$.OR,items:i}}):d,h=new s.Y(e).toFormState(),p=(0,a.tT)(h.groupFilterCondition);if(h.id&&(0,a.Ti)(p,u.groupFilterCondition))return{nullifyScopeGroupFilter:!1};u.id=void 0;const m=(0,l.l)(u);return{scopeGroupFilter:s.Y.fromFormState(m).state,nullifyScopeGroupFilter:!1}}},88573(e,t,i){var n;i.d(t,{I:()=>n}),function(e){e.ShowReport="showReport",e.ShowDashboardType="showDashboardType",e.Destination="destination",e.Name="name",e.Description="description",e.ReportSubGroup="reportSubGroup",e.IncludeDismissedEvents="includeDismissedEvents",e.RunGroupLevel="runGroupLevel",e.Rules="rules",e.IsReportByDevice="isReportByDevice",e.IsNoDrivingActivityHidden="isNoDrivingActivityHidden",e.ShowDismissedFault="showDismissedFault",e.Diagnostics="diagnostics",e.FaultSource="faultSource",e.SubGroup="subGroup",e.IncludeHistoric="includeHistoric",e.Period="period",e.Frequency="frequency",e.NextRun="nextRun",e.BelongingTo="scopeGroups",e.BelongingToAdv="scopeGroupFilter",e.SpreadsheetSettings="spreadsheet",e.DvirLogsOption="dVIRLogsOption",e.MaintenanceTypes="maintenanceTypes",e.MaintenanceSeverities="maintenanceSeverities",e.JobStatuses="jobStatuses",e.OrderStatuses="orderStatuses",e.OrderPriorities="orderPriorities",e.DuePeriod="duePeriod",e.DueMilage="dueMilage",e.DueEngineHours="dueEngineHours",e.Tags="tags",e.ShowArchived="showArchived",e.FromToDateCreated="fromToDateCreated",e.FromToDateCompleted="fromToDateCompleted",e.FromToDateStarted="fromToDateStarted",e.FaultProtocols="faultProtocols"}(n||(n={}))},65370(e,t,i){i.d(t,{N:()=>l});var n=i(91945),r=i(96030),o=i(88573);const a=[o.I.Destination,o.I.Name,o.I.Description,o.I.ShowReport,o.I.ShowDashboardType,o.I.Rules],s=new Map([[n.u.Watchdog,[...a]],[n.u.PossibleCollisions,[...a]],[n.u.FleetUtilization,[...a,o.I.IsReportByDevice,o.I.IncludeDismissedEvents,o.I.ReportSubGroup,o.I.IsNoDrivingActivityHidden,o.I.RunGroupLevel,o.I.Rules]],[n.u.ActiveEngineFaults,[...a,o.I.ShowDismissedFault,o.I.FaultSource,o.I.Diagnostics,o.I.FaultProtocols]],[n.u.AverageFuelEconomy,[...a,o.I.SubGroup,o.I.IncludeHistoric]],[n.u.DriverSafetyScoreCard,[...a,o.I.IncludeDismissedEvents,o.I.IsNoDrivingActivityHidden]],[n.u.HighestSpeedingViolation,[...a]],[n.u.AggressiveDriving,[...a]],[n.u.HOSViolationBreakdown,[...a]],[n.u.IdlingViolations,[...a]],[n.u.UnrepairedDefects,[...a,o.I.DvirLogsOption]]]),l=(e,t)=>{const i=(0,r.n)(t);let n;return n=s.has(t)?s.get(t)||[]:i?a:[],!!n.includes(e)}},11204(e,t,i){i.d(t,{_:()=>v});var n=i(19723),r=i(46482),o=i(92191),a=i(89615);class s extends n.S{constructor(e){super(),this.valPrivateGroups=[],this.privateGroupsHash=Promise.resolve({}),this.val=[[],[]],this.store=e.store,this.groupFilter=new r.y(e),this.elt=this.groupFilter.elt,this.groupFilter.attach("change",(()=>{let[e,t]=this.groupFilter.value.reduce(((e,t)=>(e[t.isOnlyInSelection?1:0].push(t),e)),[[],[]]);this.val=[e,[...t,...this.valPrivateGroups]],this.fire("change",this.value)}))}set value(e){this.val=[e[0]||[],e[1]||[]],this.valPrivateGroups.length=0,this.privateGroupsHash.then((e=>{let[t,i]=this.val[1].reduce(((t,i)=>(t[e[i.id]?1:0].push(i),t)),[[],[]]);this.valPrivateGroups=i,this.groupFilter.value=[...t.map((e=>({id:e.id,isOnlyInSelection:!0}
1))),...this.val[0].map((e=>({id:e.id,isOnlyInSelection:!1})))]}))}get value(){return this.val}set options(e){let t={userScope:[{id:a.s_}]};this.groupFilter.options=Object.assign(Object.assign({},e),{options:Object.assign(Object.assign(Object.assign({},t),e.options||{}),{showOnlyInButton:!0})})}get options(){return{}}mount(e){this.privateGroupsHash=this.store.groups.getItemById("GroupPrivateUserId").then((e=>e.children.reduce(((e,t)=>(e[t.id]=!0,e)),{}))),(0,o.gR)(e,"notFlexible"),super.mount(e)}unmount(e){this.valPrivateGroups.length=0,(0,o.jo)(e,"notFlexible"),super.unmount(e)}focus(){this.groupFilter.focus()}static requiredServices(){return["store",...r.y.requiredServices()]}}s.type="GroupFilterWithPrivate";var l=i(24985),d=i(90513),c=i(20333);class u extends n.S{updateLabel(e){let t=this.cOptions.many;0===e&&(t=this.cOptions.zero),1===e&&(t=this.isCurrentUserSubscribed(this.groups.recipients)?this.cOptions.me:this.cOptions.one);const i=new c.N(this.translate(t||""));this.elt.textContent="";const n=i.toHtml({"amount-part":t=>(0,o.Kb)(((e,t)=>`<span class="amount-of-subscribers__users">${e.replace("{UsersQty}",t.toString())}</span>`)(t,e))[0]});this.elt.appendChild(n)}constructor({store:e,translate:t}){super(),this.cancelToken=new l.H,this.groups={allGroups:[],directGroups:[],recipients:[]},this.cOptions={zero:"",one:"",many:"",me:"",type:"users"},this.isCurrentUserSubscribed=e=>e.some((e=>e.id===this.cOptions.currentUserId)),this.store=e,this.translate=t,this.requestAmount=(0,d.s)(this.store,"receivers"===this.cOptions.type),this.elt=(0,o.vt)("div",{class:"amount-of-subscribers geo-view-list__single-element geo-view-list__field"})}set value(e){this.groups=e,this.cancelToken.abort(),this.cancelToken=new l.H,Promise.race([this.requestAmount(this.groups.allGroups,this.groups.directGroups,this.groups.recipients),this.cancelToken.promise]).then((e=>{this.updateLabel(e)})),this.elt.textContent=this.translate("Calculating...")}get value(){return this.groups}set options(e){e.type&&e.type!==this.cOptions.type&&(this.requestAmount=(0,d.s)(this.store,"receivers"===e.type)),this.cOptions=Object.assign(Object.assign({},this.cOptions),e)}get options(){return this.cOptions}focus(){this.elt.scrollIntoView({block:"start"})}static requiredServices(){return["translate","store"]}}u.type="AmountOfSubscribers";var h=i(82278),p=i(72841),m=i(57904),g=i(58646),S=i(96030);class v{toFormState(e,t,i){let n=i.privateUserGroups||[],r=n.length>0?n[0].id:"",o=e.individualRecipients||[],a=e.includeDirectChildrenOnlyGroups||[];return{allSubscribedGroups:[e.includeAllChildrenGroups||[],a.filter((e=>e.id!==r))],selfSubscribed:a.some((e=>e.id===r))||o.some((e=>e.id===i.id)),individualRecipients:o.filter((e=>e.id!==i.id)),amountOfViewers:{allGroups:e.includeAllChildrenGroups||[],directGroups:a,recipients:o}}}fromFormState(e,t,i,n){let[r,o]=e.allSubscribedGroups;return r=(0,h.c)(r),o=(0,h.c)(o),{template:i,schedule:Object.assign(Object.assign({},t),{includeAllChildrenGroups:r,includeDirectChildrenOnlyGroups:o,individualRecipients:[...e.individualRecipients,...e.selfSubscribed?[{id:n.id}]:[]],groups:[...r,...o]})}}createVisibilityState(){return[]}validate(e,t){let[i,n]=e.allSubscribedGroups;return(0,S.n)(t.id||"")||i.length>0||n.length>0||e.selfSubscribed||e.individualRecipients.length>0?[]:["no one"]}static requiredElements(e,t,i,n,r,o){return I(e,t,i,n,r,o)}}const I=(e,t,i,n,r,o)=>{const a=(e=>(t,i,n)=>{let[r,o]=n.getElementValue("allSubscribedGroups"),a=n.getElementValue("individualRecipients"),s=n.getElementValue("selfSubscribed");n.setState({amountOfViewers:{allGroups:r,directGroups:[...o],recipients:[...a,...s?[{id:e}]:[]]}})})(o);return[{component:s,label:i.subscribtionGroupsLabel,id:"allSubscribedGroups",visiblility:["active"],subscribe:{filter:(e,t)=>{t.setOptions({filter:e.filter||[]})}},options:{filter:t,options:{rootGroups:[],strings:{everythingText:e("NoGroupSelected")}}}},{component:m.D,id:"individualRecipients",visiblility:["active"],label:i.subscribtionIndividualLabel,options:{listFormatter:t=>t.map((t=>Object.assign(Object.assign({},t),{items:t.items.map((t=>{let n=0===t.title.length?e("No users selected"):t.title,r=t.isValid?"":i.invalidIndividualUser,o=t.isValid?"":` (${r})`;return Object.assign(Object.assign({},t),{title:n+o,description:r})}))}))),isEntityValid:r,options:{type:p.LA.USERS,requestOptions:{usersFilter:e=>e.id!==o&&n(e)},strings:(0,p.QG)(e,{watermarkText:e("SelectUsers")})},selectionInfo:!0}},{component:g.i,label:i.selfSubscribtionLabel,id:"selfSubscribed",visiblility:["active"],options:{labels:{on:e("yes"),off:e("no")}}},{component:u,id:"amountOfViewers",visiblility:["active"],subscribe:{allSubscribedGroups:a,selfSubscribed:a,individualRecipients:a},options:Object.assign(Object.assign({},i.amountOfSubscribersLabels),{currentUserId:o})}]}},10142(e,t,i){i.d(t,{M:()=>r,e:()=>o});var n=i(65370);class r{toFormState(){return{}}fromFormState(e,t,i){return{schedule:t,template:i}}createVisibilityState(){return[]}validate(){return[]}}class o{constructor(e,t){this.scheduleFormatter=e,this.dataSourceSettings=t}validate(e,t,i){let n=this.scheduleFormatter.validate(e,t,i);
1return this.dataSourceSettings.validate&&(n=n.concat(this.dataSourceSettings.validate(e,i))),n}createVisibilityState(e){let t=this.dataSourceSettings.createVisibilityState||(()=>[]);return[...this.scheduleFormatter.createVisibilityState(e),...t(e)]}toFormState(e,t,i){let n=this.dataSourceSettings.fromReportArguments||(e=>e);return Object.assign(Object.assign({},this.scheduleFormatter.toFormState(e,t,i)),n(e.arguments))}fromFormState(e,t,i,r,o){let a=this.dataSourceSettings.toReportArguments||(()=>({})),s=this.toFormState(t,i,r),l=Object.keys(s).reduce(((e,i)=>e.hasOwnProperty(i)&&!(0,n.N)(i,t.id||"")?e:Object.assign(Object.assign({},e),{[i]:s[i]})),e),{template:d,schedule:c}=this.scheduleFormatter.fromFormState(l,t,i,r,o);return{template:d,schedule:Object.assign(Object.assign({},c),{arguments:Object.assign(Object.assign({},c.arguments),a(l,c.arguments))})}}}},19723(e,t,i){i.d(t,{S:()=>r});var n=i(86397);class r extends n.FZ{constructor(){super(...arguments),this.mounted=!1}isMounted(){return this.mounted}mount(e){e.appendChild(this.elt),this.mounted=!0}unmount(e){this.elt.parentNode===e&&e.removeChild(this.elt),this.mounted=!1}}},91945(e,t,i){var n;i.d(t,{u:()=>n}),function(e){e.RiskAnalytics="bFFFFFFFFFFFFD8E4",e.Watchdog="bFFFFFFFFFFFFD8EF",e.PossibleCollisions="bFFFFFFFFFFFFD8EE",e.FleetUtilization="bFFFFFFFFFFFFD8ED",e.A
1ctiveEngineFaults="bFFFFFFFFFFFFD8EC",e.AverageFuelEconomy="bFFFFFFFFFFFFD8EB",e.DriverSafetyScoreCard="bFFFFFFFFFFFFD8EA",e.HighestSpeedingViolation="bFFFFFFFFFFFFD8E9",e.AggressiveDriving="bFFFFFFFFFFFFD8E8",e.HOSViolationBreakdown="bFFFFFFFFFFFFD8E7",e.UnrepairedDefects="bFFFFFFFFFFFFD8E6",e.IdlingViolations="bFFFFFFFFFFFFD8E5",e.StandardAssetUtilization="bFFFFFFFFFFFFD8E3"}(n||(n={}))},29775(e,t,i){var n;i.d(t,{k:()=>n}),function(e){e.Minute="Minute",e.FiveMinutes="FiveMinutes",e.ThirtyMinutes="ThirtyMinutes",e.Hourly="Hourly",e.Daily="Daily",e.Weekly="Weekly",e.BiWeekly="BiWeekly",e.Monthly="Monthly",e.FourWeeks="FourWeeks",e.Quarterly="Quarterly"}(n||(n={}))},96030(e,t,i){i.d(t,{n:()=>n});const n=e=>{if("b"!==e[0])return!1;const t=e.slice(1).padStart(16,"0");return parseInt(t[0],16)>7}},53598(e,t,i){i.d(t,{$A:()=>d,F_:()=>s,Fq:()=>u,MH:()=>a,T9:()=>l,UB:()=>c,y4:()=>p});var n=i(31756);const r=[{value:"PreviousHour",name:"PreviousHour",duration:1,refresh:"Hourly"},{value:"Today",name:"today",duration:24,refresh:"Daily"},{value:"Yesterday",name:"yesterday",duration:24,refresh:"Daily"},{value:"PreviousDay",name:"PreviousDay",duration:24,refresh:"Daily"},{value:"PreviousWeek",name:"PreviousWeek",duration:168,refresh:"Weekly"},{value:"ThisWeek",name:"thisweek",duration:168,refresh:"Weekly"},{value:"LastWeek",name:"lastweek",duration:168,refresh:"Weekly"},{value:"PreviousTwoWeeks",name:"PreviousTwoWeeks",duration:336,refresh:"BiWeekly"},{value:"ThisMonth",name:"thismonth",duration:720,refresh:"Monthly"},{value:"LastMonth",name:"lastmonth",duration:720,refresh:"Monthly"},{value:"PreviousFourWeeks",name:"previousFourWeeks",duration:672,refresh:"FourWeeks"},{value:"PreviousThirtyDays",name:"previousThirtyDays",duration:720,refresh:"Monthly"},{value:"LastThreeMonths",name:"lastThreeMonths",duration:2160,refresh:"Monthly"},{value:"LastQuarter",name:"previousquarter",duration:2160,refresh:"Quarterly"},{value:"LastSixMonths",name:"lastSixMonths",duration:4320,refresh:"Monthly"},{value:"LastTwelveMonths",name:"lastTwelveMonths",duration:8640,refresh:"Monthly"},{value:"YearToDate",name:"yearToDate",duration:8640,refresh:"Monthly"}],o=e=>t=>Object.assign(Object.assign({},t),{name:e(t.name)}),a=e=>{for(let t=0;t<r.length;++t)if(r[t].value===e)return r[t].refresh;return""},s=e=>{var t,i;return null!==(i=null===(t=r.find((t=>t.value===e)))||void 0===t?void 0:t.duration)&&void 0!==i?i:0},l=e=>r.filter((e=>e.duration>0&&e.duration<1e3)).map(o(e)),d=e=>r.map(o(e)),c=e=>r.filter((e=>"Today"===e.value||"Yesterday"===e.value||"ThisWeek"===e.value||"LastWeek"===e.value||"ThisMonth"===e.value||"LastMonth"===e.value||"LastThreeMonths"===e.value||"LastTwelveMonths"===e.value||"YearToDate"===e.value)).map(o(e));function u(e,t){const i=d(t).reduce(((e,t)=>(e[t.value]=t,e)),{});const n=e&&i[e];return t(n?n.name:"Unknown")}const h={Today:n.Te,Yesterday:n.ai,ThisWeek:n.DC,LastWeek:n.f6,ThisMonth:n.Nz,LastMonth:n.V$,LastThreeMonths:n.u$,LastTwelveMonths:n.YS,YearToDate:n.i0};function p(e,t,i,n,r){const o=h[e];if(!o)return null;const a="ThisWeek"===e||"LastWeek"===e?o(t,i,n?"Sunday":"Monday",r):o(t,i,r),s=a.getRange();return{from:s.from,to:s.to,label:a.label}}},19870(e,t,i){i.d(t,{DT:()=>c,H_:()=>r,P9:()=>s,RU:()=>d,WE:()=>n,oF:()=>l,op:()=>a,rz:()=>o});const n="Dashboard",r="InteractiveDashboard",o="EmailPdf",a="EmailExcel",s="NormalReport",l=e=>e.destination===s,d=e=>e.destination===n||e.destination===r,c=e=>e.destination===o||e.destination===a},92923(e,t,i){i.d(t,{GO:()=>p,HF:()=>u,JM:()=>c,LO:()=>l,j4:()=>h,nE:()=>d});var n=i(27501),r=i(29775);const o=[{value:r.k.ThirtyMinutes,name:"ThirtyMinutes",for:[],toLast:e=>(0,n.z5)(e,-30),toNext:e=>(0,n.z5)(e,30)},{value:r.k.Hourly,name:"Hourly",for:[],toLast:e=>(0,n.LY)(e,-1),toNext:e=>(0,n.LY)(e,1)},{value:r.k.Daily,name:"Daily",for:[],toLast:e=>(0,n.fi)(e,-1),toNext:e=>(0,n.fi)(e,1)},{value:r.k.Weekly,name:"Weekly",for:[],toLast:e=>(0,n.fi)(e,-7),toNext:e=>(0,n.fi)(e,7)},{value:r.k.BiWeekly,name:"BiWeekly",for:[],toLast:e=>(0,n.fi)(e,-14),toNext:e=>(0,n.fi)(e,14)},{value:r.k.Monthly,name:"Monthly",for:[],toLast:e=>(0,n.PS)(e,-1),toNext:e=>(0,n.PS)(e,1)},{value:r.k.FourWeeks,name:"FourWeeks",for:[],toLast:e=>(0,n.fi)(e,-28),toNext:e=>(0,n.fi)(e,28)},{value:r.k.Quarterly,name:"Quarterly",for:[],toLast:e=>(0,n.PS)(e,-3),toNext:e=>(0,n.PS)(e,3)}],a=[...[{value:r.k.Minute,name:"EveryMinute",for:["Notification"],toLast:e=>(0,n.z5)(e,-1),toNext:e=>(0,n.z5)(e,1)},{value:r.k.FiveMinutes,name:"FiveMinutes",for:["Notification"],toLast:e=>(0,n.z5)(e,-5),toNext:e=>(0,n.z5)(e,5)}],...o],s=e=>t=>Object.assign(Object.assign({},t),{name:e(t.name)}),l=e=>o.map(s(e)),d=e=>a.map(s(e)),c=e=>a.map(s(e)),u=(e,t)=>
1{let i=e?new Date(e):new Date;for(let e=0;e<a.length;e++)if(a[e].value===t)return a[e].toLast(i);return a[0].toLast(i)},h=(e,t)=>{let i=e?new Date(e):new Date;for(let e=0;e<a.length;e++)if(a[e].value===t)return a[e].toNext(i);return a[0].toNext(i)},p=(e,t,i)=>{var r,o,a,s;let l=i.toLocalDateTime(new Date);return l.setDate(null!==(r=e.dayOfMonth)&&void 0!==r?r:l.getDate()),l.setHours(null!==(o=e.hour)&&void 0!==o?o:l.getHours()),l.setMinutes(null!==(a=e.minute)&&void 0!==a?a:l.getMinutes()),l.setSeconds(null!==(s=e.second)&&void 0!==s?s:l.getSeconds()),l.setMilliseconds(0),l=e.weekday?((e,t)=>{const i=e-t.getDay(),r=i<0?i+7:i;return(0,n.fi)(t,r)})(e.weekday,l):l,l=i.toReverseOffsetDateTime(l),l>new Date&&(l=u(l.toISOString(),t)),l.toISOString()}},60155(e,t,i){i.d(t,{Y:()=>l});var n=i(32365),r=i(92191),o=i(89615),a=i(65872),s=i(78011);class l{constructor(e={groupFilterCondition:{groupId:o.s_}}){this.scopeGroupFilter=e}toFormState(){return Object.assign(Object.assign({},this.scopeGroupFilter),{groupFilterCondition:l.getFilterStateFromCondition(this.groupFilterCondition)})}mapFilterConditions(e,t){const i=n=>{if(!(0,s.EJ)(n))return e(n);const r=Object.assign(Object.assign({},n),{groupFilterConditions:n.groupFilterConditions.map(i)});return t?t(r):r};return i(this.scopeGroupFilter.groupFilterCondition)}isEntireOrganization(){return(0,n.je)(this.groupFilterCondition)}static fromFormState(e){return new l(Object.assign(Object.assign({},e),{groupFilterCondition:l.getConditionFromFilterState(e.groupFilterCondition)}))}static getConditionFromFilterState(e){return(0,s.yc)((0,a.tT)(e))}static getFilterStateFromCondition(e){return(0,s.uK)((0,s.EJ)(e)?e:[e])}get id(){return this.scopeGroupFilter.id}set id(e){this.scopeGroupFilter.id=e}get groupFilterCondition(){return(0,r.X$)(!0,{},this.scopeGroupFilter.groupFilterCondition||[])}set groupFilterCondition(e){this.scopeGroupFilter.groupFilterCondition=(0,r.X$)(!0,{},e)}get name(){return this.scopeGroupFilter.name}set name(e){this.scopeGroupFilter.name=e}get comment(){return this.scopeGroupFilter.comment}set comment(e){this.scopeGroupFilter.comment=e}get state(){return{id:this.id,name:this.name,comment:this.comment,groupFilterCondition:this.groupFilterCondition}}}},35385(e,t,i){i.d(t,{E:()=>s});var n=i(92191),r=i(34457),o=i(86397),a=i(44654);class s extends o.FZ{fileListToFiles(e){if(!e)return[];let t=[];for(var i=0,n=e.length;i<n;i++)t.push(e[i]);return t}fileSelectOnClick(e){try{(0,n.DX)(this.inputFile,e)}catch(e){this.notifier.displayWarning(this.translate("DeniedAccessToFS"))}}getDroppedFiles(e){try{if(e.dataTransfer)return this.allowMultipleFiles?this.fileListToFiles(e.dataTransfer.files):[e.dataTransfer.files[0]]}catch(e){this.notifier.displayWarning(this.translate("DeniedAccessToFS"))}return[]}dropFilesCallback(e,t){e.some((e=>!e))?this.notifier.displayWarning(this.translate("SelectFilesWarning")):this.isFoldersThere(e)?this.notifier.displayWarning(this.translate("SelectedFoldersWarning")):e.length>0&&this.fire("change",{files:e,isDrop:t})}isFoldersThere(e){return e.some((e=>!e.type&&1===e.name.split(".").length))}constructor(e,t="",i=!1,o=""){super(),this.translate=e,this.allowMultipleFiles=i,this.overDropAreaClass="filesOverDragAndDropField",this.toggleHighlightDropAreaFn=e=>t=>{t.preventDefault(),(0,n.jY)(this.dragAndDropArea,this.overDropAreaClass,e)},this.notifier=(0,r.Ay)(e),this.removeHighlighting=this.toggleHighlightDropAreaFn(!1),this.addHighlighting=this.toggleHighlightDropAreaFn(!0),this.dragAndDropArea=(0,n.Kb)(((e,t,i,n,r)=>`\n<div class="geo-drag-and-drop-uploader__container uploaderElementsContainer">\n <input id="${n}" data-testid="uploadFileElement" class="uploadFileElement" type='file' ${i?"multiple":""} aria-labelledby=${r}>\n <svg class="geo-drag-and-drop-uploader__icon"><use xlink:href="#geo-upload-new"></use></svg>\n <span class="geo-drag-and-drop-uploader__title" id=${r}>${t||e("DropFilesHere")}</span>\n</div>`.trim())(e,t,this.allowMultipleFiles,o,(0,a.$C)()).trim())[0],this.dragAndDropArea.addEventListener("dragenter",this.addHighlighting,!1),this.dragAndDropArea.addEventListener("dragover",this.addHighlighting,!1),this.dragAndDropArea.addEventListener("dragleave",this.removeHighlighting,!1),this.dragAndDropArea.addEventListener("drop",(e=>{this.removeHighlighting(e),this.dropFilesCallback(this.getDroppedFiles(e),!0)}),!1),this.dragAndDropArea.addEventListener("click",(e=>{e.target!==this.inputFile&&this.fileSelectOnClick(e)}),!1),this.inputFile=this.dragAndDropArea.getElementsByTagName("input")[0],this.inputFile.addEventListener("change",(()=>{let e=this.fileListToFiles(this.inputFile.files);this.inputFile.value&&e.length>0&&this.dropFilesCallback(e,!1)}),!1),this.inputFile.addEventListener("focus",(()=>{this.dragAndDropArea.classList.add("geo-drag-and-drop-uploader__container--focused")}),!1),this.inputFile.addEventListener("blur",(()=>{this.dragAndDropArea.classList.remove("geo-drag-and-drop-uploader__container--focused")}),!1)}get dropArea(){return this.dragAndDropArea}triggerFileSelect(){this.fileSelectOnClick()}enable(){this.inputFile.disabled=!1}disable(){this.inputFile.disabled=!0}clear(){this.inputFile.value=""}}s.translations=[]},59880(e,t,i){i.d(t,{H:()=>a});var n=i(92191),r=i(34457),o=i(11619);function a(e,t,i,a){e.appendChild((0,n.Kb)('<div class="noTranslate geo-drag-and-drop-uploader" aria-label="File uploader" role="region">\n <div id="fileUploaderContainer" class="uploaderPicker geo-drag-and-drop-uploader__uploader"></div>\n </div>')[0]);const s=(0,r.Ay)(a),l=e.getElementsByClassName("uploaderPicker")[0],d=(e=>
1{const t={Name:"Name",Size:"Size",Zipped:"Zipped",ZippedSize:"Zipped size",SelectFilesWarning:"There are no files selected for uploading.",SelectServersWarning:"There are no servers selected for uploading",UploadAfterZipping:"Your upload will start when zipping is completed.",CancelUpload:"Cancel Upload",SelectNewFile:"Select a new file",unauthorizedFileTypeMessage:"The format of the uploaded file is not supported. Please select a {0} file to attach.",SelectedFileSizeTooBig:"The size of the selected file is too large. It must be less than {0} MB."};return Object.keys(t).forEach((i=>{t[i]=e(i)})),t})(a);l.appendChild(t.dropArea);let c,u=Object.assign({fileTypes:[],uploadOnDrop:!1,params:void 0,maxAllowedFileSize:1/0,unauthorizedFileTypeMessage:d.unauthorizedFileTypeMessage},i);const h=e=>{const t=u.fileTypes&&u.fileTypes.length?u.fileTypes.reduce(((e,t)=>(e[t]=!0,e)),{}):null,i=u.maxAllowedFileSize;if(!e)return s.displayWarning(d.SelectFilesWarning),c=null,void(l.style.display="block");if(t){if(e.size>i)return s.displayWarning(d.SelectedFileSizeTooBig.replace("{0}",(i/1048576).toFixed(0))),c=null,void(l.style.display="block");if(!(e=>{const i=(e||"").split(".");return!t||t[i[i.length-1]]})(e.name))return s.displayWarning(u.unauthorizedFileTypeMessage.replace("{0}",u.fileTypes.join(", "))),c=null,void(l.style.display="block")}},p=(e,t,i)=>{let n={};n=e.reduce(((e,i,n)=>(e[t[n]]=i,e)),{}),i.push(n)};return t.attach("change",(({files:e})=>{const i=u.params;(null==i?void 0:i.startCallback)&&i.startCallback(),l.style.display="none",c=e[0],h(c),c&&u.uploadOnDrop&&i?((e,t)=>{const i=[],n=["ColumnA","ColumnB","ColumnC","ColumnD","ColumnE","ColumnF","ColumnG","ColumnH","ColumnI","ColumnJ","ColumnK","ColumnL","ColumnM","ColumnN","ColumnO","ColumnP","ColumnQ","ColumnR","ColumnS","ColumnT","ColumnU","ColumnV","ColumnW","ColumnX","ColumnY","ColumnZ","ColumnAA","ColumnAB","ColumnAC","ColumnAD"],r=c.name.slice(1+(c.name.lastIndexOf(".")-1>>>0));if(".csv"===r){const t=new FileReader;t.onload=()=>{const r=t.result.split("\n");for(let e=0;e<r.length;e++){const t=r[e].split(",");t.every((e=>""===e.trim()))||p(t,n,i)}e&&e(i)},t.readAsText(c)}else{if(".xlsx"!==r)return s.displayWarning(u.unauthorizedFileTypeMessage.replace("{0}",c.name).replace("{1}",u.fileTypes.join(", "))),c=null,l.style.display="block",void t();(0,o.TU)().then((()=>{const r=new FileReader;r.onloadend=()=>{const o=r.result,a=new ExcelJS.Workbook;n.unshift(""),a.xlsx.load(o).then((()=>{a.worksheets.forEach((e=>{"hidden"!==e.state&&"veryHidden"!==e.state&&e.eachRow((e=>{p(e.values,n,i)}))})),e&&e(i)})).catch((e=>{t(e.message)}))},r.readAsArrayBuffer(c)})).catch((e=>{t(e.message)}))}})(i.successCallback,i.errorCallback):null==i||i.errorCallback(),t.clear()})),{getFile:()=>c}}},86545(e,t,i){i.d(t,{H:()=>n,_:()=>r});const n="UnknownDriverId",r={Custom:"Custom",RouteDefinition:"RouteDefinition",Stock:"Stock",ZoneStop:"ZoneStop",RouteCompletion:"RouteCompletion",RouteBasedMaterialMgmt:"RouteBasedMaterialMgmt",Virtual:"Virtual",Unknown:"Unknown"}},52826(e,t,i){i.d(t,{A:()=>r});var n=i(92191);function r(e,t,i,r){const o=e.saveAs||e.msSaveAs||e.webkitSaveAs||e.mozSaveAs||(()=>{const t=e.URL||(e.URL=e.webkitURL);if(t)return(e,i,r)=>{e.name=i;const o=t.createObjectURL(e),a=(0,n.vt)("a");a.style.visibility="hidden",r.appendChild(a),a.onclick=function(){a.href=o,a.download=i,a.target="_blank"},(0,n.DX)(a),r.removeChild(a)}})();o&&o(t,i,r)}},95004(e,t,i){i.d(t,{Mz:()=>r,Sh:()=>o,wv:()=>n});class n{constructor(e){this.translations=null,this.tokens=e}load(e){if(this.translations)throw new Error("Translations already loaded.");this.translations=e instanceof Map?e:new Map(Object.entries(e))}pending(){return this.translations?[]:this.tokens}}function r(e){const t=Object.getOwnPropertyNames(e).map((t=>e[t].call(e)));return new Proxy(new n(t),{get:(t,i)=>i in t?t[i]:(...n)=>{if(!t.translations)throw new Error("Dictionary not set. Please call load before translating.");const r=e[i]();if("string"!=typeof r)throw new Error('Translations must be defined using token function (ex: myPageTitle = token("My Page Title")).');return(t.translations.get(r)||r).replace(/\{(\d+)}/g,((e,t)=>
1{const i=parseInt(t);return-1!==i&&i<n.length?String(n[i]):`{${t}}`}))}})}function o(e){return(...t)=>e}},417(e,t,i){var n;i.d(t,{AO:()=>s,Bj:()=>T,Cn:()=>y,ER:()=>n,J3:()=>b,JD:()=>a,P0:()=>A,Rj:()=>w,Tj:()=>o,Uj:()=>u,ap:()=>g,hY:()=>h,iK:()=>f,u0:()=>v}),function(e){e.SourceGmcccId="SourceGmcccId",e.SourceBrpId="SourceBrpId",e.SourceGeotabGoId="SourceGeotabGoId",e.SourceJ1708Id="SourceJ1708Id",e.SourceJ1939Id="SourceJ1939Id",e.SourceObdId="SourceObdId",e.SourceSystemId="SourceSystemId",e.SourceThirdPartyId="SourceThirdPartyId",e.SourceObdSaId="SourceObdSaId",e.SourceAIModelId="SourceAIModelId",e.Source14Id="Source14Id",e.None="none"}(n||(n={}));const r={ControllerObdBodyId:"B",ControllerObdWwhBodyId:"B",ControllerObdChassisId:"C",ControllerObdWwhChassisId:"C",ControllerObdNetworkingId:"U",ControllerObdWwhNetworkingId:"U",ControllerObdPowertrainId:"P",ControllerObdWwhPowertrainId:"P"},o=function(e){var t,i;const n=(e,t)=>e.padStart(t,"0").toUpperCase(),o="string"==typeof e.controller?e.controller:null===(t=e.controller)||void 0===t?void 0:t.id,a=o?r[o]:void 0;if(a)return a+n(parseInt(String(e.code),10).toString(16),4);const s="string"==typeof e.source?e.source:null===(i=e.source)||void 0===i?void 0:i.id;if("Source14Id"===s){const t=parseInt(String(e.code),10),i=t>>14,r=["P","C","B","U"][i];return r?r+n((t-(i<<14)).toString(16),4):e.code}return"SourceProprietaryId"===s||"SourceLegacyId"===s||"SourceBrpId"===s?`0x${n(parseInt(String(e.code),10).toString(16),6)}`:e.code},a=function(e){if(!e)return;const t=[o(e),e.name].filter((e=>void 0!==e&&""!==e));return t.length?t.join(" - "):void 0},s=function(e,t){if(!e)return t(n.None);if("string"==typeof e)switch(e){case n.SourceGmcccId:case n.SourceBrpId:case n.SourceGeotabGoId:case n.SourceJ1708Id:case n.SourceJ1939Id:case n.SourceObdId:case n.SourceSystemId:case n.SourceThirdPartyId:case n.SourceObdSaId:case n.SourceAIModelId:case n.Source14Id:return t(e);default:return e}return e.name},l=e=>t=>`${t.name} (type: ${s(t.source,e)})`,d=e=>t=>{let i=e[t.controller.id];return`${t.name.substring(0,t.name.length-1)}; controller: ${i?i.name:t.controller.id})`},c=e=>{var t;return`${e.name.substring(0,e.name.length-1)}; code: ${null!==(t=o(e))&&void 0!==t?t:""})`},u=function(e,t,i,n,r=0){let o={},a=[],s=r+1,h=[l(i),c,d(t)],p=n||h[r],m=[];for(let t=e.length-1;t>-1;--t){let i=e[t].name.toLowerCase();o[i]?(o[i].push(t),2===o[i].length&&m.push(o[i])):o[e[t].name.toLowerCase()]=[t]}for(let n=m.length-1;n>-1;--n){let o=m[n];for(let t=o.length-1;t>-1;--t){let i=e[o[t]];r||(i=Object.assign({},e[o[t]])),i.name=p(i),e[o[t]]=i,a.push(i)}h[s]&&u(a,t,i,h[s],s),a.length=0}return e},h=function(e,t){switch(e.id){case"ControllerGeotabGoId":case"ControllerGmcccFaultId":case"ControllerBrpFaultId":case"ControllerObdBodyId":case"ControllerObdChassisId":case"ControllerObdNetworkingId":case"ControllerObdPowertrainId":case"ControllerNoneId":return t(e.id);
1default:return e.name||e.id}},p=["UnitOfMeasureNoneId","UnitOfMeasureDegreesCelsiusId","UnitOfMeasureKilometersPerHourId","UnitOfMeasureNewtonsId","UnitOfMeasureNewtonMetersId","UnitOfMeasureMetersPerSecondSquaredId","UnitOfMeasureMetersId","UnitOfMeasureGramsId","UnitOfMeasureCubicMetersId","UnitOfMeasureLitersId","UnitOfMeasureCubicMetersPerSecondId","UnitOfMeasureRevolutionsPerMinuteId","UnitOfMeasureHertzId","UnitOfMeasureSecondsId","UnitOfMeasureVoltsId","UnitOfMeasureAmpsId","UnitOfMeasureWattsId","UnitOfMeasureOhmsId","UnitOfMeasurePascalsId","UnitOfMeasureBytesId","UnitOfMeasurePartsPerMillionId","UnitOfMeasurePercentageId","UnitOfMeasureRadiansId","UnitOfMeasureRevolutionsId","UnitOfMeasureCountId","UnitOfMeasurePulsesPerMeterId","UnitOfMeasureOhmsPerSecondId","UnitOfMeasureGramsPerSecondId","UnitOfMeasureKilometersPerKilogramId","UnitOfMeasureKilometersPerLiterId","UnitOfMeasureKilogramsPerKilometerId","UnitOfMeasureLitersPerLaneKilometerId","UnitOfMeasureGramsPerSquareMeterId","UnitOfMeasureKiloWattHoursId","UnitOfMeasureLitersPerTonneId","UnitOfMeasureKilometersPerKiloWattHourId","UnitOfMeasureAmpsPerHourId","UnitOfMeasureDecibel","UnitOfMeasureDecibelMilliwatt","UnitOfMeasureMigrogramsPerCubicMeter"],m={UnitOfMeasurePercentageId:"%"},g=function(e,t){return-1!==p.indexOf(e)?m[e]?m[e]:t(e).replace("{meters}","").replace("{minutes}","").trim():e},S={SuspectParameter:!0,ObdFault:!0,GoFault:!0,ObdWwhFault:!0,ProprietaryFault:!0,LegacyFault:!0,Source14Fault:!0,Pid:!0,Sid:!0},v=e=>S.hasOwnProperty(e.diagnosticType),I={SuspectParameter:!0,Pid:!0,Sid:!0},y=e=>!S.hasOwnProperty(e.diagnosticType)||I.hasOwnProperty(e.diagnosticType);var f;!function(e){e.MaintenanceOnly="MaintenanceOnly",e.CheckAtNextHalt="CheckAtNextHalt",e.CheckImmediately="
1CheckImmediately",e.NoRepairNeeded="NoRepairNeeded",e.None="None"}(f||(f={}));const D={[f.CheckImmediately]:0,[f.CheckAtNextHalt]:1,[f.MaintenanceOnly]:2,[f.NoRepairNeeded]:3,[f.None]:4},C={[f.CheckImmediately]:"Check immediately",[f.CheckAtNextHalt]:"Check at next halt",[f.MaintenanceOnly]:"Maintenance only",[f.NoRepairNeeded]:"No repair needed",[f.None]:"Not available"},R={[f.CheckImmediately]:"check-immediately",[f.CheckAtNextHalt]:"check-at-next-halt",[f.MaintenanceOnly]:"maintenance-only",[f.NoRepairNeeded]:"no-repair-needed",[f.None]:"not-available"},T=e=>C[e],b=e=>R[e],w=(e,t)=>D[e]>D[t]?1:-1,A=(e,t)=>{var i;let n=t&&t.enumNames&&(null===(i=t.enumNames.find((t=>t.value===e)))||void 0===i?void 0:i.name)||"";return n?`(${n})`:""}},48423(e,t,i){i.d(t,{$p:()=>r,A5:()=>d,Xx:()=>o,bK:()=>l,lE:()=>a,yy:()=>c,ze:()=>s});const n=e=>t=>i=>{let n=i.which||i.keyCode;e.some((e=>e===n))&&t(i)},r=n([13]),o=n([27]),a=n([9]),s=n([37]),l=n([38]),d=n([39]),c=n([40])},66630(e,t,i){i.d(t,{$0:()=>v,OM:()=>I,Z1:()=>u,bv:()=>g,dX:()=>S,eb:()=>f,ey:()=>m,l2:()=>y});var n=i(27425),r=i(44654),o=i(73797),a=i(78300),s=i(10444);const l=new Set(["ReportTemplateAssetUtilizationId","ReportTemplateFleetUtilizationId","ReportTemplateFleetDistanceTrendId"]),d=e=>{if(!e)return!1;const t="string"==typeof e?e:e.id;return!!t&&l.has(t)},c=new Set(["EVBatteryHealth","BEVRangeCapability"]),u=e=>"string"!=typeof e&&!!(null==e?void 0:e.reportDataSource)&&c.has(e.reportDataSource),h=(e,t,i,n)=>{if(!e||!((e,t)=>!!(null==t?void 0:t(a.u.ENABLE_UTILIZATION_PAGE))&&d(e)||u(e))(t,n))return e;const r=i("legacyReportPrefix")+" ";return e.startsWith(r)?e:r+e},p=["ZoneList","TripsDetail","RiskManagement","Debug","ExceptionsDetail","ExceptionsSummary","TripsSummary","TimeCard","AuditLog","UserList","FailureMode","DiagnosticList","ZoneVisitsDetail","ZoneVisitsSummary","RouteSummary","UnassignedRoute","Notification","FuelTax","Congregation","EngineSummary","EngineFault","FaultCycle","EngineStatus","Device","RouteDirections","Reminder","EventRuleDevice","EventHistory","GroupsList","DeviceInstallHistory","TimePerformance","ValuePerformance","EngineStatusStatistics","ChargeEvent","TextMessage","RouteComparisonDetail","HosLog","DVIRLog","HosViolation","HosAvailability","FillUps","MaterialManagement","RouteCompletion","EVBatteryHealth","BEVRangeCapability","AssetMonitoring","RiskAnalytics","ColdChain","LastMileMaintenance","MaintenanceSchedules","MaintenanceWorkRequests","MaintenanceWorkOrdersWorkJobs","MaintenanceWorkJobs","CleanTruckCheck","EVPerformance","FuelTransaction","SustainabilityOverview","AssetUtilization","AdvancedAssetUtilization","BarCtp","StreetSweeper","LinkedAssets","Cameras"],m=function(e,t,i,n,r){let o;if("string"==typeof e||"Report"===e.reportTemplateType){let t=e.reportDataSource||e;-1!==p.indexOf(t)&&(o=`${i?"Short":""}ReportTemplate${e.reportDataSource||e}`)}else if("Advanced"===e.reportTemplateType)-1!==p.indexOf(e.reportDataSource)&&(o=(i?"Short":"")+"ReportTemplateAdvanced"+e.reportDataSource);else if(e.isSystem)return(0,s.RK)(h(t(e.name),e,t,r),n);const a=n&&o?o.replace("Exceptions","Events"):o,l=a?t(a):e.name;return(0,s.RK)(h(l,e,t,r),n)},g=function(e,t,i){var n;if(!e)return"";const r=u(e)?e.reportDataSource:void 0;let o;if("Report"===e.reportTemplateType){const i=(d(e)?null===(n=e.id)||void 0===n?void 0:n.replace(/Id$/,""):void 0)||(r?`ReportTemplate${r}`:void 0);o=t(i||"Standard")}else o="Advanced"===e.reportTemplateType?t(r?`ReportTemplateAdvanced${r}`:"Advanced"):e.isSystem?t(e.name):e.name;return h(o,e,t,i)},S=e=>"Report"===e?0:"Advanced"===e?1:2,v=function(e,t){if(!e||!t)return 0;let i=S(e.template.reportTemplateType)-S(t.template.reportTemplateType);return 0!==i?i:(0,r.UD)(e.template.name,t.template.name)},I=(e,t,i,o)=>{const s=o(a.u.EXCEPTION_TO_EVENTS),l=m(e,t,!1,s,o)||(0,r.z)(e.name),d=t("{templateName} ({date})").replace("{date}",i(new Date)),c=d.length-14,u=n.jf-c,h=u>l.length?l:l.slice(0,u-3)+"...";return d.replace("{templateName}",h).replace("{templateName}",h)},y=(e,t,i,n)=>{var r;return e?(null==n?void 0:n(a.u.ENABLE_UTILIZATION_PAGE))&&d(e)?t("legacyReportDescription"):u(e)?t("legacyEvReportDescription"):((e,t)=>{const i=e?e.trim():"";if(!i)return"";if(!i.startsWith("Report contains"))return t(i);
1const n=i.match(/^Report contains (\d+) fields, including (.*?)\.+$/);if(!n||n.length<3)return t(i);const r=n[1],o=n[2].split(", ").map((e=>t(e.trim()))).join(", ");return t("ReportMetadata").replace("{0}",r).replace("{1}",o)})((0,s.Uu)(null!==(r=e.description)&&void 0!==r?r:"",i),t):""},f=e=>e("ManageReportTemplates",(0,o.Q8)(o.SD.CustomReports))&&(e("UserList",(0,o.iC)(o.SD.UsersAndDrivers))||e("ExceptionsList",(0,o.iC)(o.SD.Rules))||e("ViewHOSLogs")||e("ManageHOSLogs"))},490(e,t,i){i.d(t,{Bf:()=>o,F8:()=>l,MJ:()=>a,XE:()=>s,qz:()=>r,sM:()=>d});var n=i(86545);const r=function(e,t){let i=t(e.id);return i!==e.id?i:e.baseType===n._.RouteBasedMaterialMgmt?t(e.name):e.name},o=function(e,t){const i=t(e);return i!==e?i:e},a=(e,t)=>{if(void 0===e)return"";switch(e){case 0:return"0 "+t("times");case 1:return t("once");case 2:return t("twice");default:return`${e} ${t("times")}`}},s=(e,t)=>e&&"0s"!==e?t("for {duration}").replace("{duration}",e):"",l=e=>e===n._.Custom||e===n._.Stock,d=e=>e.color&&e.color.a>0},45935(e,t,i){i.d(t,{Ig:()=>a,Kg:()=>o,ZH:()=>s,vQ:()=>r,yh:()=>l});var n=i(94996);function r(e){return(0,n.kZ)(e)||""===e}function o(e){return!(0,n.kZ)(e)&&"string"==typeof e}function a(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()})).replace(/\s+/g,"")}const s=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"",l=(e,t,i)=>e.split(t).join(i)},47154(e,t,i){i.d(t,{Gw:()=>l,PA:()=>o,mn:()=>r,yI:()=>s});const n={ZoneTypeCustomerId:"customer",ZoneTypeOfficeId:"office",ZoneTypeHomeId:"home",ZoneTypeVendorServiceCenterId:"vendorservicecenter",ZoneTypeInHouseServiceCenterId:"inhouseservicecenter"},r=function(e,t){let i="string"==typeof e?e:e.id;return n.hasOwnProperty(i)?t(n[i]):void 0},o=function(e){return n.hasOwnProperty(e)};let a=function(e,t){let i=e.name.toLowerCase(),n=t.name.toLowerCase();return i<n?-1:i===n?0:1};const s=function(e,t,i=(()=>!0)){return[...e.filter((e=>{let t="string"==typeof e?e:e.id;return!n.hasOwnProperty(t)})),...Object.keys(n).reduce(((e,r)=>{let o=t(n[r].toLowerCase());return i(o)&&e.push({id:r,name:o,comment:"",isSystem:!0}),e}),[])].sort(a)},l=()=>({nonCustomer:"#0069c3",office:"#FFA500",home:"#46b500",customer:"#d52121",vendorServiceCenter:"#0069c3",inHouseServiceCenter:"#0069c3"})},1628(e,t,i){i.d(t,{A:()=>f});var n=i(92191),r=i(44654),o=i(6502),a=i(12614);const s=function(){let e={mainContainer:null,myTab:null,previousButton:null,nextButton:null,centralPane:null,subCentralPane:null,monthContainer:null,yearContainer:null,timeContainer:null,subTimeContainer:null,timeText:null,hour:null,minutes:null,seconds:null,tContTable:null,zones:null,scheduler:null,subSchedulerContainer:null,calendar:null,tableHead:null,tableBody:null,buttonPanel:null,buttonNow:null,buttonDone:null,amount:null},t=function(){for(let t=0,i=Object.keys(e),n=i.length;t<n;t++)e[i[t]]=null},i=()=>{},r=function(r,o,l,d){let c,u,h,p,m,g,S,v=this,I=document.body,y=function(t){let i=t.target,r=()=>{(0,n.jo)(e.mainContainer,"selectShown"),t.stopImmediatePropagation()};if(!i.datepicker){let n=i;for(;n!==I&&n;){if(n===e.mainContainer)return void r();n=n.parentNode}if(i===I&&f(t.pageX,t.pageY))return void r();s.untrap(t),v.trigger("onHidePicker",t)}},f=(t,i)=>{let{top:n,left:r,height:o,width:a}=e.mainContainer.getBoundingClientRect();return i>=n&&i<=n+o&&t>=r&&t<=r+a},D=function(){j()&&G(e.mainContainer.inputElementLast)},C=function(e,t=0){if(void 0===e)return NaN;const i=parseInt(e,10);return isNaN(i)?t:i},R=function(t){(null==o?void 0:o.isNestedPopup)&&t.preventDefault();let i=this,n=new Date(C(i.dataset.year),C(i.dataset.month),C(i.dataset.day),C(e.hour.value),C(e.minutes.value),C(e.seconds.value));V[pe.type](n),G();let r=t?t.currentTarget:null;r&&r.focus(),o.useMonthYearOnlySelectionMode&&T()},T=function(){let t=function(){let t=le||S;const i=C(e.yearContainer.value),n=C(e.monthContainer.value),r=C(e.hour.value),a=C(e.minutes.value),s=C(e.seconds.value);let l=new Date(i,n,t.getDate(),r,a,s);o.useMonthYearOnlySelectionMode&&new Date(i,n,1,r,a,s).getMonth()!==l.getMonth()&&(l=new Date(i,n+1,0,r,a,s));return l}();W(t)&&q(t,(function(){v.trigger("onChange")}))},b=function(e){e.stopPropagation()},w=(e,t=[])=>{let i=e.toLowerCase();for(let e=0,n=t.length;e<n;e++)if(t[e].toLowerCase()===i)return e>11?e-12:e;return null},A={toStringFormat:l,fromStringFormat:d},E=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},k=(e,t)=>{let i=[];if(e&&Array.isArray(e)){let n=1;t&&(n=t);let r=e.length;for(let t=0;t<r;t+=n)i.push(e[t])}return i},O=(e,t)=>{if(!e)return;let i=void 0===t||t;e.style.display=i?"":"none"},M=(e,t={},i={})=>{let n=document.createElement(e);for(let e=0,i=Object.keys(t),r=i.length;e<r;e++){let r=i[e];"class"===r?n.className=t[r]:n.setAttribute(r,t[r])}for(let e=0,t=Object.keys(i),r=t.length;e<r;e++){let r=t[e];n[r]=i[r]}return n},L=(e,t={})=>{for(let i=0,n=Object.keys(t),r=n.length;i<r;i++){let r=n[i];e.setAttribute(r,t[r].toString())}},P=(e,t=[])=>{for(let i=0,n=t.length;i<n;i++)e.removeAttribute(t[i])},F=e=>{e.stopPropagation()},x=t=>{let i=t?"addEventListener":"removeEventListener";I[i]("click",y,!1),I[i]("wheel",y,!1),e.mainContainer[i]("click",b,!1),window[i]("resize",D,!1),e.mainContainer[i]("wheel",F,!1)},N=function(t){let i=t.currentTarget,n=C(i.dataset.day),r=C(i.dataset.month),o=C(i.dataset.year),a=new Date(o,r,n,C(e.hour.value),C(e.minutes.value),C(e.seconds.value));q(a,(()=>{v.trigger("onChange")}))},B=function(e){let t=null!==le?A.toStringFormat(le,pe[`${pe.type}Format`]):"",i=c.value;if(t!==i)if(e){let e=A.fromStringFormat(i,pe[`${pe.type}Format`]),t=W(e)?_(e):null;null!==t&&q(t,(()=>{v.trigger("onChange")}))}else c.value=t},U=()=>
1{O(e.buttonPanel,!0),O(e.buttonDone,!0),e.buttonDone.onclick=function(e){c.removeEventListener("focus",oe,!1),c.addEventListener("blur",re,!1),s.untrap(e),v.trigger("onHidePicker",e),e.stopImmediatePropagation()},O(e.buttonNow,!0),e.buttonNow.onclick=function(){let e=_(pe.toLocalDateTime(new Date));q(e,(()=>{v.trigger("onChange")}))}},H=e=>{e.onclick=i,e.disabled=!0,(0,n.gR)(e,"disabled")},V={date:function(t,r=!1){let a=(e,t,i,n)=>new Date(i,t,e,23,59)<(n||S),s=(e,t,i)=>{let n=pe.startDateForMaxSelectableDays?pe.startDateForMaxSelectableDays:S;return new Date(i,t,e,0,0)>new Date(n.getFullYear(),n.getMonth(),n.getDate()+(pe.maxSelectableDays||0),0,0)},l=S,d=le,c=t||null,u=function(e,t,i){let n=i.map(((e,n)=>{let r=M("option");return r.innerText=e.toString(),r.setAttribute("value",(12===i.length?n:e).toString()),r.innerText===t&&r.setAttribute("selected","selected"),r}));e.innerHTML="",n.forEach((t=>{e.appendChild(t)}))},h=1,p=(e,t,i)=>{let n=t===e.getMonth(),r=i===e.getFullYear();return n&&r};B(),U(),r||(O(e.timeContainer,!1),O(e.myTab),O(e.scheduler,!o.useMonthYearOnlySelectionMode&&void 0)),c=c||d||l;let v=pe.monthNames[c.getMonth()],I=c.getMonth(),y=c.getFullYear(),f=he.indexOf(pe.startOfWeek),D=(C=new Date(y,I,1).getDay())>(b=f)?C-b:7-b+C;var C,b;let w=(A=c,33-new Date(A.getFullYear(),A.getMonth(),33).getDate());var A;let k=e.tableBody.querySelectorAll("button");E(e.tableHead),e.tableHead.appendChild((e=>{let t=pe.minDayNames.slice(e),i=M("tr");for(let i=0;i<e;i++)t.push(pe.minDayNames[i]);for(let e=0,n=pe.minDayNames.length;e<n;e++){let n=M("th",{},{innerHTML:t[e]});i.appendChild(n)}return i})(f)),u(e.monthContainer,v,m),pe.selectingMonth?(0,n.gR)(e.monthContainer,"hover"):(e.monthContainer.setAttribute("disabled","disabled"),(0,n.jo)(e.monthContainer,"hover")),u(e.yearContainer,y.toString(),g),pe.selectingYear?(0,n.gR)(e.yearContainer,"hover"):(e.yearContainer.setAttribute("disabled","disabled"),(0,n.jo)(e.yearContainer,"hover"));let F=_(new Date(0===I?y-1:y,0===I?11:I-1,1,c.getHours(),c.getMinutes(),c.getSeconds()),!0);e.previousButton.title=`${pe.previousMonthLabel} (${pe.monthNames[F.getMonth()]} ${F.getFullYear()})`,L(e.previousButton,{"data-day":1,"aria-label":`${pe.previousMonthLabel} (${pe.monthNames[F.getMonth()]} ${F.getFullYear()})`,"data-month":F.getMonth(),"data-year":F.getFullYear()}),e.previousButton.onclick=R,e.nextButton.onclick=R;let x,V,q=_(new Date(11===I?y+1:y,11===I?0:I+1,1,c.getHours(),c.getMinutes(),c.getSeconds()),!1);e.nextButton.title=`${pe.nextMonthLabel} (${pe.monthNames[q.getMonth()]} ${q.getFullYear()})`,L(e.nextButton,{"data-day":1,"aria-label":`${pe.nextMonthLabel} (${pe.monthNames[q.getMonth()]} ${q.getFullYear()})`,"data-month":q.getMonth(),"data-year":q.getFullYear()});for(let e=0;e<k.length;e++){let t=k[e];if(t.className="",t.setAttribute("tabindex","-1"),e<D)if((pe.blockPreviousDays||pe.maxSelectableDays&&a(h,I,y,pe.startDateForMaxSelectableDays))&&H(t),pe.showSiblingMonthsDays){let i=new Date(y,I,1-(D-e),0,0,0);L(t,{"data-day":i.getDate(),"data-month":i.getMonth(),"data-year":i.getFullYear(),title:`${m[i.getMonth()]} ${i.getDate()}`,"aria-label":`${m[i.getMonth()]} ${i.getDate()}`}),t.onclick=N,t.textContent=h.toString(),t.textContent=i.getDate().toString(),(0,n.gR)(t,"number"),(0,n.gR)(t,"grey")}else t.onclick=i,P(t,["data-day","data-month","data-year"]),t.innerHTML="",(0,n.gR)(t,"space");else if(h<=w)V||(V=t),pe.blockPreviousDays&&a(h,I,y)||pe.startDateForMaxSelectableDays&&a(h,I,y,pe.startDateForMaxSelectableDays)||pe.maxSelectableDays&&s(h,I,y)?H(t):(t.removeAttribute("disabled"),t.onclick=N,(0,n.gR)(t,"number")),t.textContent=h.toString(),L(t,{"data-day":h,"data-month":I,"data-year":y,title:`${m[I]} ${h}`,"aria-label":`${m[I]} ${h}`}),null!==d&&W(d)&&h===d.getDate()?p(d,I,y)&&((0,n.gR)(t,"selected_date"),x=t):W(l)&&h===l.getDate()&&p(l,I,y)&&(0,n.gR)(t,"today_date"),h++;else if(pe.showSiblingMonthsDays){let e=new Date(y,I,h,0,0,0);L(t,{"data-day":e.getDate(),"data-month":e.getMonth(),"data-year":e.getFullYear(),title:`${m[e.getMonth()]} ${e.getDate()}`,"aria-label":`${m[e.getMonth()]} ${e.getDate()}`}),pe.maxSelectableDays&&s(h,I,y)?H(t):(t.removeAttribute("disabled"),t.onclick=N,
1(0,n.gR)(t,"number"),(0,n.gR)(t,"grey")),t.textContent=e.getDate().toString(),h++}else t.onclick=i,P(t,["data-day","data-month","data-year"]),t.innerHTML="",(0,n.gR)(t,"space")}x?x.removeAttribute("tabindex"):V.removeAttribute("tabindex"),(()=>{if(!pe.showSiblingMonthsDays){let t=e.tableBody.querySelector("tr.datepicker_scheduler_calendar_body_last_row");t&&(t.style.display=t.querySelectorAll(".space").length<7?"table-row":"none")}})(),e.monthContainer.onchange=T,e.yearContainer.onchange=T;let G=e.calendar.querySelectorAll("button");return[].forEach.call(G,(e=>{e.onkeydown=function(t){let i=t.which||t.keyCode,n=e.dataset.day,r=e.dataset.month,o=e.dataset.year,a=function(t,i){e.setAttribute("tabindex","-1"),J(n,r,o,i),t.stopPropagation()};38===i?a(t,-59472e4):40===i?a(t,61488e4):37===i?a(t,-8496e4):39===i&&a(t,8784e4)}})),!0},time:function(t=!1){let i=/\s?(tt|t|TT|T)\s?/.exec(pe.timeFormat),r=function(e,t,i){let n=e=>{let t=parseInt(e),i=(t<13?e:e-12)+(t<12?" AM":" PM");return 0===t&&(i+=" (12 AM)"),i},r="";for(let e=0,o=t.length;e<o;e++){let o=t[e];r+=`<option class="select_option" value="${o}">${i?n(o):o}</option>`}e.innerHTML=r};B(),U(),t||(O(e.timeContainer),O(e.myTab,!1),O(e.scheduler,!1));let o=e.tContTable.querySelector(".controls.seconds");if(pe.showSeconds?(0,n.jo)(o,"hidden"):(0,n.gR)(o,"hidden"),O(e.tContTable.querySelector(".t_cont_table_row.zones"),pe.showZones),E(e.hour),E(e.minutes),E(e.seconds),r(e.hour,u,!(!i||2!==i.length)&&i[1]),r(e.minutes,h),r(e.seconds,p),le){let t=e=>e<10?`0${e}`:e.toString();e.timeText.innerHTML=A.toStringFormat(le,pe.timeFormat),e.hour.value=t(le.getHours()),e.minutes.value=t(le.getMinutes()),e.seconds.value=t(le.getSeconds())}return e.hour.onchange=T,e.minutes.onchange=T,e.seconds.onchange=T,!0},datetime:function(t){return V.time(!0),V.date(t,!0),U(),O(e.timeContainer),O(e.myTab),O(e.scheduler,!o.useMonthYearOnlySelectionMode&&void 0),!0}},_=function(e,t){let i=e.getDate(),n=e.getMonth(),r=pe.monthNames[n],o=!1,a=(()=>{let e=[],t=pe.monthNames;for(let i=0,n=m.length;i<n;i++)e.push(w(m[i],t));return e})(),s=e.getFullYear(),l=s.toString(),d=!1,c=e=>e<10?`0${e}`:e.toString(),S=e.getHours(),v=c(S),I=e.getMinutes(),y=c(I),f=e.getSeconds(),D=c(f),C=e.getMilliseconds()||0,R=(e,t)=>{let i=e.length;if(t<=e[0])return{min:e[0],max:e[1]};if(t>=e[i-1])return{min:e[i-2],max:e[i-1]};for(let n=0;n<i;n++)if(t<e[n])return{min:e[n-1],max:e[n]};return{min:e[0],max:e[1]}},T=e=>t=>t===e;if(null===w(r,m)&&(o=!0),g.some(T(l))||(d=!0),!u.some(T(v))){let e=R(u,S);S=void 0!==t&&t?e.min:e.max}if(!h.some(T(y))){let e=R(h,I);I=void 0!==t&&t?e.min:e.max}if(!p.some(T(D))){let e=R(p,f);f=void 0!==t&&t?e.min:e.max}let b=(()=>{if(void 0!==t&&t){if(d)return n=a[a.length-1],s=R(g,s).min,!o&&d&&s===g[0]&&(n=a[0]),new Date(s,n,i,S,I,f);o&&!d&&(n=R(a,n).min)}
1else{if(o&&d||!o&&d)return n=a[0],s=R(g,s).max,!o&&d&&s===g[g.length-1]&&(n=a[a.length-1]),new Date(s,n,i,S,I,f);o&&!d&&(n=R(a,n).max)}})();return void 0===b?new Date(s,n,i,S,I,f,C):b},W=e=>e&&e instanceof Date&&!isNaN(e.getDate()),q=(e,t)=>{let i;if(e instanceof Date?i=e:e&&(i=(e=>{let t=new Date(e);if(W(t))return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCMilliseconds())})(e)),void 0!==i&&W(i)){let e=_(i),n=!le||e.getTime()!==le.getTime();e.getTime()!==i.getTime()?pe.autoCorrectDate&&n&&v.trigger("onChangeDate",le,e):n&&v.trigger("onChangeDate",le,e),t&&t()}},G=function(t){(0,n.AH)(e.mainContainer,{display:"block"});let i=t||c,r=I.getBoundingClientRect(),o=e.mainContainer.getBoundingClientRect(),l=i.getBoundingClientRect(),d=0-I.scrollTop-window.pageYOffset,u=0-I.scrollLeft-window.pageXOffset,h=l.bottom-d,p=(0,a.Pv)()?r.width-l.right+u:l.left-u;h+o.height>r.height&&(h=l.top-d>=o.height?l.top-d-o.height:r.height-2-o.height),p+o.width>r.width&&(p=r.width-2-o.width),e.mainContainer.addEventListener("keydown",Q,!1),i&&i.focus(),(0,n.AH)(e.mainContainer,{top:`${h}px`,insetInlineStart:`${p}px`}),v.trigger("onShowPickerEnd");const m=e.mainContainer.querySelector(".selected_date")||e.mainContainer;s.trap(m)},j=()=>"block"===e.mainContainer.style.display,z=function(e){e.preventDefault(),v.trigger("onShowPicker")},$="http://www.w3.org/2000/svg",Z=e=>{let t=document.createElementNS($,"svg");return t.setAttribute("class","svgIcon rtl-mirror"),t.appendChild(((e,t)=>{let i=document.createElementNS($,"use");return i.setAttributeNS("http://www.w3.org/1999/xlink","href",`#geo-${e}`),t&&(i.className.baseVal=t),i})(e)),t},J=(t,i,n,r)=>{let o=new Date(n,i,t),a=new Date(o.getTime()+r);o.getMonth()!==a.getMonth()&&V[pe.type](new Date(a.getFullYear(),a.getMonth(),1));let s=(t=>{let i=t.getDate(),n=t.getMonth(),r=t.getFullYear();return e.calendar.querySelector(`button[data-day='${i}'][data-month='${n}'][data-year='${r}']`)})(a);s&&(s.removeAttribute("tabindex"),s.focus())},K=e=>{13===e.keyCode&&(oe(e),e.preventDefault())},Y=e=>{let t=c,i=e?"addEventListener":"removeEventListener";if(e){(0,n.gR)(c,"hasDatePicker");for(let e in pe.on)pe.on.hasOwnProperty(e)&&v.on(e,pe.on[e]);v.on("onHidePicker",X),v.on("onShowPicker",ee),v.on("onChangeDate",te)}else{(0,n.jo)(c,"hasDatePicker");for(let e in pe.on)pe.on.hasOwnProperty(e)&&v.off(e,pe.on[e]);v.off("onHidePicker",X),v.off("onShowPicker",ee),v.off("onChangeDate",te)}document.documentElement&&"ontouchstart"in document.documentElement?(t[i]("touchstart",z,!1),t[i]("touchend",z,!1),t[i]("focus",z,!1),t[i]("input",ie,!1),t[i]("change",ne,!1)):(t[i]("input",ie,!1),t[i]("change",ne,!1),t[i]("click",oe,!1),t[i]("focus",oe,!1),t[i]("keydown",K,!1))},Q=e=>{27===(e.which||e.keyCode)&&(c.removeEventListener("focus",oe,!1),c.addEventListener("blur",re,!1),s.untrap(e),v.trigger("onHidePicker",e),e.stopPropagation())},X=function(){var t;!(t=!1)&&(0,n.jo)(e.mainContainer,"selectShown"),O(e.timeContainer,t),O(e.myTab,t),O(e.scheduler,!o.useMonthYearOnlySelectionMode&&t),(0,n.AH)(e.mainContainer,{display:"none"}),e.mainContainer.removeEventListener("keydown",Q,!1)},ee=function(){if(S=ue(),e.mainContainer.currentInput=c,le)V[pe.type]();else{E(e.hour),E(e.minutes),E(e.seconds),ae();let t=""===e.hour.value?0:u[0],i=""===e.minutes.value?0:h[0],n=""===e.seconds.value?0:p[0],r=new Date(S.getFullYear(),S.getMonth(),S.getDate(),t,i,n);q(_(r))}G()},te=function(t,i){let n=A.toStringFormat(i,pe[`${pe.type}Format`]);le=i,c.value!==n&&(c.value=n),e.mainContainer.currentInput&&e.mainContainer.currentInput!==c||V[pe.type](i),v.trigger("onAfterChangeDate",t,i)},ie=function(t){t.preventDefault(),e.mainContainer.inputElementLast=this;let i=this.value.trim(),n=new Date(i),r=pe[`${pe.type}Format`];if(!W(n)&&/[^\/\s\d:\.-]/.test(i)&&!/tt|TT|T|t|MMMM|MMM|dddd|ddd/.test(r))return void(this.value=i.replace(/[^\/\s\d:\.-]/gi,"").trim());let o=A.fromStringFormat(i,r);W(o)&&q(o,(()=>{v.trigger("onChange")}))},ne=function(){let t=this.value;e.mainContainer.inputElementLast=this;let i=A.fromStringFormat(t,pe[`${pe.type}Format`]);q(i,(()=>{v.trigger("onChange")}))},re=function(){c.removeEventListener("blur",re,!1),c.addEventListener("focus",oe,!1)},oe=function(t){(null==o?void 0:o.isNestedPopup)&&t.preventDefault(),e.mainContainer.inputElementLast=this;let i=e.mainContainer.currentInput===this;("focus"===t.type||"click"===t.type)&&i&&j()||(le&&B(!0),v.trigger("onShowPicker"))},ae=function(){m=(e=>{let t=[];if(Array.isArray(e)){let i=e.length;for(let n=0;n<i;n++)t.push(pe.monthNames[e[n]-1])}else if(!isNaN(parseInt(e.toString()))){let i=pe.monthNames.length,n=1;const r=parseInt(e.toString());r>1&&(n=r);for(let e=0;e<i;e+=n)t.push(pe.monthNames[e])}if(!t.length)throw new Error("Unknown range of year!\r\nCheck your datepicker options");return t})(pe.rangeMonths),g=function(e){let t=[],i=e;if(Array.isArray(i)){let e=i.length;for(let n=0;n<e;n++)t.push(i[n].toString())}else{let e;if(/c/.test(i)){i=i.replace(/c/gim,""),e=i.split(":");let t=2e3;
1for(let i=0;i<2;i++)/-/.test(e[i])?(e[i]=parseInt(e[i].replace("-","")),e[i]=t-(e[i]||0)):(e[i]=parseInt(e[i].replace("+","")),e[i]=t+(e[i]||0))}else{e=i.split(":");for(let t=0;t<2;t++)e[t]=parseInt(e[t])}if(e[0]>e[1]){let t=e[0];e[0]=e[1],e[1]=t}for(let i=e[0];i<=e[1];i++)t.push(i.toString())}if(!t.length)throw new Error("Unknown range of year!\r\nCheck your datepicker options");return t}(pe.rangeYears),u=k(de,pe.stepHours),h=k(ce,pe.stepMinutes),p=k(ce,pe.stepSeconds)},se=e=>{let t=[];for(let i=0;i<e;i++)t.push(i<10?`0${i}`:i.toString());return t},le=null,de=se(24),ce=se(60),ue=()=>pe.toLocalDateTime(new Date),he=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],pe={dateFormat:"dd/MM/yy",timeFormat:"HH:mm:ss",datetimeFormat:"dd/MM/yy HH:mm:ss",type:"date",on:{},rangeMonths:0,rangeYears:"c-50:c+50",hourText:"Hours",startOfWeek:"Sunday",minutesText:"Minutes",secondsText:"Seconds",zoneText:"Zone",timeText:"Time",currentText:"Now",nextMonthLabel:"Go to next month",previousMonthLabel:"Go to previous month",selectMonth:"Select month",selectYear:"Select year",selectDate:"Select date",selectHour:"Select hour",selectMinute:"Select minute",selectSecond:"Select second",selectTimezone:"Select Timezone",closeText:"Done",showButtonPanel:!1,showNowButton:!0,showSiblingMonthsDays:!1,changeDateOnClickNewYear:!1,minDayNames:["Su","Mo","Tu","We","Th","Fr","St"],shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNames:he.slice(),shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],autoCorrectDate:!0,selectingMonth:!0,selectingYear:!0,shortYearCutoff:50,stepMinutes:0,stepSeconds:0,stepHours:0,showSeconds:!1,showZones:!1,toLocalDateTime:e=>e};if(S=ue(),v.on=function(e,t){this.selfEventHandlers||(this.selfEventHandlers=[]),this.selfEventHandlers[e]||(this.selfEventHandlers[e]=[]),this.selfEventHandlers[e].push(t)},v.off=function(e,t){let i=this.selfEventHandlers[e];if(!i)return;let n=i.length;for(let e=0;e<n;e++)i[e]===t&&i.splice(e--,1)},v.trigger=function(e,...t){let i=this.selfEventHandlers[e];if(!i)return;let n=i.length;for(let e=0;e<n;e++)i[e].apply(this,t)},pe=Object.assign(Object.assign({},pe),o||{}),c=(()=>{if("string"==typeof r)return I.querySelector(`#${r}[type='text']`);if(r)return r;throw new Error("Undefined input element")})(),c&&c.setAttribute("autocomplete","off"),c&&c.datepicker)return c.datepicker;e.mainContainer&&e.mainContainer.parentNode?e.amount+=1:(t(),e.mainContainer||(e.mainContainer=M("div",{class:"datepicker_main_container",role:"dialog","aria-modal":"true","aria-label":pe.selectDate}),I.appendChild(e.mainContainer)),e.myTab=M("div",{class:"month_year_tab"}),e.mainContainer.appendChild(e.myTab),e.previousButton=M("button",{class:"month_year_tab_button l_button"}),e.previousButton.appendChild(Z("arrow-left-old")),e.myTab.appendChild(e.previousButton),e.centralPane=M("div",{class:"central_pane"}),e.myTab.appendChild(e.centralPane),e.nextButton=M("button",{class:"month_year_tab_button r_button"}),e.nextButton.appendChild(Z("arrow-right")),e.myTab.appendChild(e.nextButton),e.subCentralPane=M("div",{class:"central_pane_sub"}),e.centralPane.appendChild(e.subCentralPane),e.monthContainer=M("select",{class:"central_pane_month"}),e.monthContainer.setAttribute("aria-label",pe.selectMonth),e.subCentralPane.appendChild(e.monthContainer),e.yearContainer=M("select",{class:"central_pane_year"}),e.yearContainer.setAttribute("aria-label",pe.selectYear),e.subCentralPane.appendChild(e.yearContainer),function(){let t;e.scheduler=M("div",{class:"scheduler"}),e.mainContainer.appendChild(e.scheduler),e.subSchedulerContainer=M("div",{class:"scheduler_sub"}),e.scheduler.appendChild(e.subSchedulerContainer),t=M("div",{class:"modalWindow"}),e.scheduler.appendChild(t),e.calendar=M("table",{class:"scheduler_calendar"}),e.subSchedulerContainer.appendChild(e.calendar),e.tableHead=M("thead",{class:"calendar_header"}),e.calendar.appendChild(e.tableHead),e.tableBody=M("tbody",{class:"calendar_body"}),(e=>{for(let t=0;t<6;t++){let i=M("tr",{class:t+1===6?"datepicker_scheduler_calendar_body_last_row":""});for(let e=0;e<7;e++){let e=M("td",void 0,void 0),t=M("button",void 0,void 0);e.appendChild(t),i.appendChild(e)}e.appendChild(i)}})(e.tableBody),e.calendar.appendChild(e.tableBody)}(),(()=>{let t=e=>{let t=M("tr",{class:"t_cont_table_row"}),i=M("td",{class:"descr"},{innerHTML:e});return t.appendChild(i),t},i=e=>{let i=t(e.label),r=M("td",{class:"controls"});return(0,n.gR)(i,e.className),r.appendChild(e.element),i.appendChild(r),i};e.timeContainer=M("div",{class:"time_container"}),e.mainContainer.appendChild(e.timeContainer),e.subTimeContainer=M("div",{class:"datepicker_time_container_sub"}),e.timeContainer.appendChild(e.subTimeContainer);let r=M("div",{class:"modalWindow"});e.timeContainer.appendChild(r),e.tContTable=M("table",{class:"t_cont_table"}),e.subTimeContainer.appendChild(e.tContTable),e.timeText=M("span",{class:"t_cont_time_text"}),e.hour=M("select",{class:"select datepicker_time_hour"}),e.hour.setAttribute("aria-label",pe.selectHour),e.minutes=M("select",{class:"select datepicker_time_minutes"}),e.minutes.setAttribute("aria-label",pe.selectMinute),e.seconds=M("select",{class:"select datepicker_time_seconds"}),e.seconds.setAttribute("aria-label",pe.selectSecond),e.zones=M("select",{class:"select datepicker_time_zones"}),e.zones.setAttribute("aria-label",pe.selectTimezone);let o=[{className:"time",label:pe.timeText,element:e.timeText},{className:"hour",label:pe.hourText,element:e.hour},{className:"minutes",label:pe.minutesText,element:e.minutes},{className:"seconds",label:pe.secondsText,element:e.seconds},{className:"zones",label:pe.zoneText,element:e.zones}],a=t(pe.timeText),s=o.length-1;for(let t=1;t<s;t++){let n=o[t];if(n.element===e.zones)e.tContTable.appendChild(i(n));else{let e=M("td",{class:"controls "+n.className});if(1!==t&&t!==s-1){let e=M("td",{class:"separator"},{innerHTML:":"});a.appendChild(e)}e.appendChild(n.element),a.appendChild(e)}}e.tContTable.appendChild(a)})(),e.buttonPanel=M("div",{class:"button_panel"}),e.mainContainer.appendChild(e.buttonPanel),e.buttonNow=M("button",{class:"button button_now"},{innerHTML:pe.currentText}),e.buttonPanel.appendChild(e.buttonNow),e.buttonDone=M("button",{class:"button button_done"},{innerHTML:pe.closeText}),e.buttonPanel.appendChild(e.buttonDone),o.useMonthYearOnlySelectionMode&&(e.buttonPanel.style.border="0"),x(!0),e.amount=1),Y(!0),ae();let me={attachEvent:(e,t)=>
1{v.on(e,t)},detachEvent:(e,t)=>{v.off(e,t)},hide:()=>{v.trigger("onHidePicker")},show:()=>{v.trigger("onShowPicker")},setDate:e=>{q(e)},getDate:()=>null===le?null:new Date(le.getTime()),getOptions:function(e){let t={},i=typeof e;if(void 0===e)return Object.assign({},pe);if("string"==typeof e)return pe[e]||void 0;if("object"===i)for(let i=0,n=Object.keys(e),r=n.length;i<r;i++){let e=n[i];t[e]=pe[e]||void 0}return t},setOptions:function(t){"object"==typeof t&&(Y(!1),pe=Object.assign(Object.assign({},pe),t),Y(!0),ae(),null!==le&&q(le),null!==le&&W(le)&&(e.mainContainer.currentInput===c&&j()&&V[pe.type](),B()))},getContainer:function(){return e.mainContainer},clear:()=>{le=null,c.value=""},destroy:function(){Y(!1),e.amount-1==0?(x(!1),I.removeChild(e.mainContainer),t()):e.amount-=1,delete c.datepicker}};return c.datepicker=me,c.datepicker};const s=new o.A;return(e,t,i,n)=>new r(e,t,i,n)}();var l=i(89073),d=i(85400);const c=e=>(t,i)=>{var n=function(e,t,i){var n,r="(";for(n=e;n<t;n++)r+=n!==t-1?`${i[n]}|`:i[n];return r+=")"},o=[],a="(\\d{1,2})",s="(\\d{2})",l=function(e,t){return function(){return o.push(e),t}},d={d:l("date",a),dd:l("date",s),ddd:l("dateStr",n(0,7,e.shortDayNames)),dddd:l("dateStr",n(0,7,e.dayNames)),M:l("month",a),MM:l("month",s),MMM:l("month",n(0,12,e.shortMonthNames)),MMMM:l("month",n(0,12,e.monthNames)),y:l("yearShort",a),yy:l("yearShort",s),yyyy:l("year","(\\d{3,4})"),h:l("hours",a),hh:l("hours",s),H:l("Hours",a),HH:l("Hours",s),m:l("minutes",a),mm:l("minutes",s),s:l("seconds",a),ss:l("seconds",s),l:l("milliseconds",a),L:l("milliseconds",s),t:l("t",`(${e.dayPeriods.narrow.am}|${e.dayPeriods.narrow.pm})`),tt:l("t",`(${e.dayPeriods.wide.am}|${e.dayPeriods.wide.pm})`),T:l("t",`(${e.dayPeriods.narrow.am.toUpperCase()}|${e.dayPeriods.narrow.pm.toUpperCase()})`),TT:l("t",`(${e.dayPeriods.wide.am.toUpperCase()}|${e.dayPeriods.wide.pm.toUpperCase()})`)};let c=(0,r.z)(i).replace(/d{1,4}|M{1,4}|yy(?:yy)?|y|([HhmsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,(function(e){return e in d?d[e]():e.toString()})),u=new RegExp(c,"g").exec(t);return u&&u.length&&u.length-1===o.length?function(t,i){var n,r={date:null,month:null,year:null,hours:0,minutes:0,seconds:0,milliseconds:0},o=!1,a=new Date;let s=e=>isNaN(e)?null:e;i.forEach((function(i,n){let a=t[n+1],l=parseInt(a),d=isNaN(l);switch(i){case"month":r.month=d?function(e,t){var i=null;return(t||[]).forEach((function(t,n){t.toLowerCase()===e.toLowerCase()&&(i=n>11?n-12:n)})),i}(a,e.shortMonthNames.concat(e.monthNames)):l-1;break;case"year":d||(r.year=((e,t)=>e.length>2?t:2e3+t)(a,l));break;case"yearShort":d||(r.year=(e=>(e<=50?2e3:1900)+e)(l));break;case"Hours":o=!0,r.hours=s(l);break;case"date":case"hours":case"minutes":case"seconds":case"milliseconds":r[i]=s(l);break;case"t":if(!o){let t=((t,i)=>{if(null===t)return null;const{narrow:n,wide:r}=e.dayPeriods,o=[n.am,n.am.toUpperCase(),r.am,r.am.toUpperCase()],a=[n.pm,n.pm.toUpperCase(),r.pm,r.pm.toUpperCase()];return o.includes(i)&&t>=12?t-12:a.includes(i)&&t<12?t+12:null})(r.hours,a);null!==t&&(r.hours=t)}}})),r.date=null!==r.date?r.date:a.getDate(),r.month=null!==r.month?r.month:a.getMonth(),r.year=r.year||a.getFullYear(),r.hours=null!==r.hours?r.hours:0,r.minutes=r.minutes||0,r.seconds=r.seconds||0,r.milliseconds=r.milliseconds||0;let l=!1;for(n in r)if(null===n){l=!0;break}return l?null:new Date(r.year,r.month,r.date,r.hours,r.minutes,r.seconds,r.milliseconds)}(u,o):null};let u,h={date:(0,r.Pm)((()=>(0,l.yD)())),time:(0,r.Pm)((()=>(0,l.zZ)())),datetime:(0,r.Pm)((()=>(0,l.N0)()||(0,l.WW)())),datetimelocal:(0,r.Pm)((()=>(0,l.WW)()))},p=e=>(e||[]).map((e=>e.substring(0,3))),m=["January","February","March","April","May","June","July","August","September","October","November","December"],g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],S={datepicker:{clearText:"Clear",clearStatus:"EraseCurrentDate",closeText:"Done",closeStatus:"CloseWithoutChange",prevText:"Prev",prevStatus:"ShowPreviousMonth",nextText:"Next",nextStatus:"ShowNextMonth",currentStatus:"ShowCurrentMonth",monthNames:m.slice(),monthNamesShort:p(m),monthStatus:"ShowDifferentMonth",yearStatus:"ShowDifferentYear",weekStatus:"WeekYear",dayNames:g.slice(),dayNamesShort:p(g),dayStatus:"DayStatus",initStatus:"SelectDate",currentText:"Now",nextMonthLabel:"NextMonthNav",previousMonthLabel:"PrevMonthNav",selectMonth:"SelectMonth",selectYear:"SelectYear",selectDate:"SelectDate",selectHour:"SelectHour",selectMinute:"SelectMinute",selectSecond:"SelectSecond",selectTimezone:"SelectTimezone",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"hh:mm:ss tt",timeSuffix:"",timeOnlyTitle:"Cho
1oseTime",timeText:"Time",hourText:"fullHour",minuteText:"fullMinute",secondText:"fullSecond",millisecText:"Millisecond",timezoneText:"TimeZone"}},v=new o.A,I=function(e,t){!function(e,t){let i=e.datepicker;Object.keys(i).forEach((function(e){if("string"==typeof i[e])i[e]=t(i[e])||i[e];else if(i[e].length){let n=[];for(let r=0;r<i[e].length;r++)n.push(t(i[e][r])||i[e][r]);i[e]=n.slice(0)}}))}(e||{},t.translateKey)},y=(0,r.Pm)((function(){let e=!0;return function(t){if(e){e=!1;let i=t.getCultureInfo()||{dateFormat:"dd/MM/yy HH:mm:ss",firstDayOfWeek:"Sunday"};I(S,t);const{monthNames:n,shortMonthNames:r,dayNames:o,shortDayNames:a}=(0,d.Mo)(t.translateKey,i.language);u={dateFormat:i.dateFormat||"dd/MM/yy",timeFormat:i.timeFormat||"HH:mm:ss",datetimeFormat:i.dateTimeFormat,type:"date",on:{},rangeMonths:0,rangeYears:"c-50:c+50",hourText:S.datepicker.hourText,showSiblingMonthsDays:!0,changeDateOnClickNewYear:!0,startOfWeek:i.firstDayOfWeek,minutesText:S.datepicker.minuteText,secondsText:S.datepicker.secondText,zoneText:S.datepicker.timezoneText,currentText:S.datepicker.currentText,nextMonthLabel:S.datepicker.nextMonthLabel,previousMonthLabel:S.datepicker.previousMonthLabel,selectMonth:S.datepicker.selectMonth,selectYear:S.datepicker.selectYear,selectHour:S.datepicker.selectHour,selectMinute:S.datepicker.selectMinute,selectSecond:S.datepicker.selectSecond,selectDate:S.datepicker.selectDate,selectTimezone:S.datepicker.selectTimezone,closeText:S.datepicker.closeText,timeText:S.datepicker.timeText,monthNames:n,shortMonthNames:r,dayNames:o,minDayNames:a,shortDayNames:a,autoCorrectDate:!0,selectingMonth:!0,selectingYear:!0,shortYearCutoff:50,stepMinutes:0,stepSeconds:0,stepHours:0,showSeconds:!1,showZones:!1,toLocalDateTime:t.toLocalDateTime}}}}));function f(e,t,i){let o;y()(i);let a=(0,n.X$)({},u,t||{});if((0,l.Ts)()&&h[a.type]()){let t="time"===a.type,s=e,l=a.onChange||r.tE,d=i.parseDateToString,c=e=>(e<10?"0":"")+e,u=null,p=function(){if(u=null,a.onChange){let i=this.value,n=new Date(i);i&&!isNaN(n)||(!t||e.value.length<4)&&o.setDate(new Date),l.call(this)}},m={time:{get:e=>new Date(`${(new Date).toDateString()} ${e.replace(/-/g,"/")}`),set:e=>d(e,"HH:mm")},date:{get(e){let t=new Date(e.replace(/-/g,"/"));return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},set:e=>`${e.getFullYear()}-${c(e.getMonth()+1)}-${c(e.getDate())}`},datetime:{get:e=>new Date(e),set:e=>`${e.getUTCFullYear()}-${c(e.getUTCMonth()+1)}-${c(e.getUTCDate())}T${c(e.getUTCHours())}:${c(e.getUTCMinutes())}`},"datetime-local":{get(e){let t=new Date(`${e}Z`),i=t.getTimezoneOffset();return t.setMinutes(t.getMinutes()+i),t},set:e=>`${e.getFullYear()}-${c(e.getMonth()+1)}-${c(e.getDate())}T${c(e.getHours())}:${c(e.getMinutes())}`},def:{get:e=>new Date(e),set:e=>e.toISOString()}};const g=h.datetimelocal()?"datetime-local":"datetime";let S="datetime"===a.type?g:a.type||"",v=m[S]||m.def;s.addEventListener("change",p,!1),s.setAttribute("type",S),(0,n.gR)(s,"date-picker--native"),o={getDate:()=>{if(!u)return e.value?v.get(e.value||""):null;const t=u instanceof Date?u.getTime():new Date(u).getTime();return isNaN(t)?null:new Date(t)},setDate:function(t){u=t,e.value=v.set("string"==typeof t?new Date(t):t)},clear:function(){u=null,s.value=""},destroy:function(){a.onChange&&s.removeEventListener("change",p,!1)},focus:()=>{e.focus()}}}else{o=s(e,a,i.parseDateToString,c((0,d.Mo)(i.translateKey)));let t=()=>{let e=o.getContainer();v.trap(e);let t=o.getDate()||new Date,i=t.getDate(),n=t.getMonth(),r=t.getFullYear(),a=e.querySelector(`button[data-day='${i}'][data-month='${n}'][data-year='${r}']`);a&&a.focus()},n=e=>{13===(e.which||e.keyCode)&&(o.show(),t())},r=e=>{let i=e.which||e.keyCode;27===i?o.hide():9===i&&(e.preventDefault(),t())};o.attachEvent("onShowPickerEnd",(()=>{e.addEventListener("keydown",n,!1),e.addEventListener("keydown",r,!1)})),o.attachEvent("onHidePicker",(t=>{v.untrap(t),e.removeEventListener("keydown",n,!1),e.removeEventListener("keydown",r,!1)})),o.updateStartDateForMaxSelectableDays=function(e){this.setOptions({startDateForMaxSelectableDays:e})},o.changeDateFormat=function(e){let t=this.getOptions("timeFormat");this.setOptions({datetimeFormat:`${e} ${t}`,dateFormat:e})},o.changeTimeFormat=function(e){let t=this.getOptions("dateFormat");this.setOptions({datetimeFormat:`${t} ${e}`,timeFormat:e})}}return["setDate","getDate","hide","destroy","show","changeDateFormat","changeTimeFormat","clear","updateStartDateForMaxSelectableDays"].forEach((function(e){o[e]=o[e]||r.tE})),o}},79280(e,t,i){i.d(t,{Z:()=>s});var n=i(92191),r=i(44654),o=i(721);const a="buttonDisabled";function s(e,t,i){var s,l=i||{},d=l.onChange||null,c=((e,t)=>e||{on:t("on")||"***On",off:t("off")||"***Off"})(l.labels,t),u=l.isTriStateButton||!1,h=()=>(0,n.vt)("input",{type:"radio",id:(0,r.$C)(),class:"geo-switcher__input"}),p=e=>`geo-switcher__label centeredLabelText noTranslate ${e?"onLabelSwitcher":"offLabelSwitcher"} ${l.isZenith?"zenith-switch__label":""}
1`,m=function(e){if(e&&"INPUT"!==e.nodeName){let t={parent:e,containerElement:e,parentClass:""},i=e.children;for(const e of i){const i=e.nodeName;if("LABEL"===i||"INPUT"===i){const n="LABEL"===i?"data-off-label":"data-off-input",r="LABEL"===i?"Label":"Element",o=e.getAttribute(n);o?t["true"===o?`off${r}`:`on${r}`]=e:t[t[`on${r}`]?`off${r}`:`on${r}`]=e}}return t}return{parent:e.parentNode,onElement:e,parentClass:e.getAttribute("data-parent-class")||""}}(e),g=l.narrowSwitcherButton?" narrowSwitcher":"",S=m.parent||l.parent||document.body;let v;var I,y;v=m.onElement?m.containerElement?m.onElement:(I=e,y=S.removeChild(I),(0,n.gR)(y,"geo-switcher__input"),y):h();var f=m.offElement||h(),D=c.on,C=c.off,R=m.onLabel,T=m.offLabel,b=(e=>{let t="geo-switcher "+(l.isZenith?"zenith-switch":"");return m.containerElement?((0,n.gR)(m.containerElement,t),m.containerElement):(0,n.vt)("span",{class:t+(e?` ${e}`:""),title:l.title,"data-tooltip":l.title})})(m.parentClass),w=(e,t)=>({get:()=>e.textContent,set:function(i){e.textContent=i||t}}),A=function(e){e.parentNode||b.appendChild(e)},E=function(t){var i=this===v?f:v,n=!0,r=this.checked,o=this.checked;r&&o?i.checked=!1:u||o||o||(this.checked=!0,n=!1),d&&n&&t&&d.call(e||this,s)};v.id=v.id||(0,r.$C)();let k=document.querySelector(`label[for='${v.id}']`);k&&(k.id=k.id||(0,r.$C)(),v.setAttribute("aria-describedby",k.id),f.setAttribute("aria-describedby",k.id)),R||((R=(0,n.vt)("label",{class:p(!0)+g,htmlFor:v.id})).textContent=D),T||((T=(0,n.vt)("label",{class:p(!1)+g,htmlFor:f.id})).textContent=C);let O=(0,r.$C)();if(v.setAttribute("type","radio"),v.setAttribute("name",O),f.setAttribute("name",O),l.labelledBy?(b.setAttribute("role","group"),b.setAttribute("aria-labelledby",l.labelledBy)):function(e){if(!e)return;let t=R.getAttribute("id"),i=T.getAttribute("id");t||(t=(0,r.$C)(),R.setAttribute("id",t)),i||(i=(0,r.$C)(),T.setAttribute("id",i)),v.setAttribute("aria-labelledby",`${e} ${t}`),f.setAttribute("aria-labelledby",`${e} ${i}`)}(l.labelledBy),l.ruleGroupLabel&&(b.setAttribute("role","group"),b.setAttribute("aria-label",l.ruleGroupLabel)),v.addEventListener("change",E,!1),A(v),A(R),f.addEventListener("change",E,!1),A(f),A(T),(0,n.jY)(b,"geo-switcher--stretched",!!l.stretched),l.isZenith){const e=b.querySelectorAll(".geo-switcher-label");for(let t=0,i=e.length;t<i;t++)(0,n.gR)(e[t],"zenith-switch__label")}return v.checked||(f.checked=!0),S!==b&&S.appendChild(b),(null==i?void 0:i.zenithTooltipEnabled)&&(0,o.wS)([{parent:S,selector:".geo-switcher",position:o._m.TopLeft}],t),s={container:b,setValue:function(e){"boolean"==typeof e?(e=>{let t=e?v:f;t.checked||(t.checked=!0,E.call(t,!1))})(e):u&&(f.checked=!1,v.checked=!1,E.call(v,!1))},isOn:function(){return v.checked},isOff:function(){return f.checked},isIndeterminate:function(){return!f.checked&&!v.checked},changeState:function(e){(u=e)?(v.setAttribute("type","checkbox"),f.setAttribute("type","checkbox")):(v.setAttribute("type","radio"),f.setAttribute("type","radio"))},focus:()=>{s.isDisabled()||(v.checked&&v.focus(),f.checked&&f.focus())},disable:function(){v.setAttribute("disabled","disabled"),f.setAttribute("disabled","disabled"),(0,n.gR)(R,a),(0,n.gR)(T,a)},enable:function(){v.removeAttribute("disabled"),f.removeAttribute("disabled"),(0,n.jo)(R,a),(0,n.jo)(T,a)},isDisabled:function(){return!!v.getAttribute("disabled")},destroy:function(){f.removeEventListener("change",E,!1),v.removeEventListener("change",E,!1),R.parentNode&&(R.parentNode.removeChild(R),T.parentNode.removeChild(T)),!m.offElement&&f.parentNode&&f.parentNode.removeChild(f)},onLabel:w(R,c.on),offLabel:w(T,c.off)}}},86062(e,t,i){i.d(t,{g:()=>c,u:()=>d});var n=i(27439),r=i(43643);const o={name:"DiagnosticLookupEntry"},a=new Map;function s(e,t){return`${e}:${t.join(":")}`}function l(e,t){var i;const n=(null===(i=e.lookupKeys)||void 0===i?void 0:i.length)?e.lookupKeys.map((e=>t.value[e])):null;return(null==n?void 0:n.every((e=>null!=e)))?n:null}function d(e,t){var i;const n=l(e,t);return n?null===(i=a.get(s(e.id,n)))||void 0===i?void 0:i.data:void 0}function c(e,t){var i;const d=l(e,t),c=d&&e.lookupKeys?e.lookupKeys.reduce(((e,t,i)=>(e[t]=d[i],e)),{}):null,u=d?s(e.id,d):null,h=u?a.get(u):void 0,{data:p}=(0,r.eR)(o,{search:{diagnosticId:(0,n.I8)(e.geoId),keysList:c?[c]:[]}},{enabled:!!d&&!h,staleTime:1/0});return u&&(null==p?void 0:p.length)&&!a.has(u)&&a.set(u,p[0]),u?null===(i=a.get(u))||void 0===i?void 0:i.data:void 0}},34503(e,t,i){i.d(t,{J:()=>s,l:()=>l});var n=i(50405),r=i(27850),o=i(86062);function a(e){return null==e?"â":"object"==typeof e?JSON.stringify(e):String(e)}function s(e,t,i,s,d){const c=l(e),u=null!=s?s:(e,t)=>function(e,t){if(null==e)return"â";if("object"!=typeof e)return a(e);const i=[];for(const[t,n]of Object.entries(e))i.push(`${t}: ${a(n)}`);if(t)for(const[e,n]of Object.entries(t))i.push(`${e}: ${a(n)}`);return i.length>0?i.join(" "):"â"}(e,t),h={id:e,geoId:c,lookupKeys:i},p=(0,n.memo)((({entity:e})=>{const t=e.diagnostic&&"object"==typeof e.diagnostic&&"id"in e.diagnostic?e.diagnostic.id:void 0;if(void 0!==t&&t!==c)return(0,n.createElement)(n.Fragment,null,"â");const i=(0,o.g)(h,e);return(0,n.createElement)(n.Fragment,null,u(e.value,i))})),m=e=>(0,n.createElement)(p,{entity:e}),g=(0,r.VP)({name:t,title:t,sort:d,render:m});return{id:e,geoId:c,name:t,lookupKeys:i,sort:d,textRender:u,columnRender:g,renderCell:m}}
1function l(e){const t=e.replace(/-/g,""),i=new Uint8Array(16);for(let e=0;e<16;e++)i[e]=parseInt(t.substring(2*e,2*e+2),16);const n=new Uint8Array([i[3],i[2],i[1],i[0],i[5],i[4],i[7],i[6],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]]),r=Array.from(n,(e=>String.fromCharCode(e))).join("");return"a"+btoa(r).substring(0,22).replace(/\//g,"_").replace(/\+/g,"-")}},9787(e,t,i){i.d(t,{r:()=>r});var n=i(34503);const r={ActiveFaultCount:(0,n.J)("45acd560-6135-4bd3-b5e7-9920923f96ee","ActiveFaultCount"),ClassicObdiiDtc:(0,n.J)("51a2cd0c-9fc3-410d-b246-7972a3e6823e","ClassicObdiiDtc",["systemCategory","code"]),FaultStatusIgnition:(0,n.J)("45c2975e-d249-4c2a-9e24-599224dca2e3","FaultStatusIgnition"),FaultStatusTelematicDeviceUnplugged:(0,n.J)("79a8cb7d-fb22-41e6-b08b-ab3d15d1580f","FaultStatusTelematicDeviceUnplugged"),FaultUnifiedCycleVisibility:(0,n.J)("633777f5-9e94-4b4b-9b28-0a3b3e64c900","FaultUnifiedCycleVisibility"),FaultUnifiedHeadMachineState:(0,n.J)("f31e6d1e-2c79-42b6-8bcf-b313a292432e","FaultUnifiedHeadMachineState"),GenericFault:(0,n.J)("526b6bb1-b18a-4b79-969b-3fd7912c874e","GenericFault",["code"]),J1587Dtc:(0,n.J)("3b0a1562-6700-494f-bb0e-291a86547fbb","J1587Dtc",["mid","sidpid","fmi","typeOfIdentifier","typeOfDtc"]),J1939Dtc:(0,n.J)("e96de667-d228-4e8c-84a2-cb9374741b31","J1939Dtc",["sourceAddress","spn","fmi"]),J1939EnrichedFaultDiagnostic:(0,n.J)("9008104c-1fd6-44a6-886d-f66e05aafca1","J1939EnrichedFaultDiagnostic",["sourceAddress","spn","fmi"]),NumericDtc:(0,n.J)("1b419f28-3041-404a-b5b0-848436ade0da","NumericDtc",["code"]),ProprietaryDtc:(0,n.J)("9dd3c534-861a-4499-a47c-b7b686bb9977","ProprietaryDtc",["canId","code"]),SeverityAggregate:(0,n.J)("b54ad3da-e35d-448c-b867-684ac89640d9","SeverityAggregate"),TelematicDeviceReset:(0,n.J)("e788badc-2f21-4f03-bfca-7c22ecc30b7e","TelematicDeviceReset",["code"]),TelematicDeviceUnplugged:(0,n.J)("445c6342-a996-4043-8fc1-1d9e3093a16b","TelematicDeviceUnplugged",["code"]),UdsObdDtc:(0,n.J)("53513fb2-d115-420a-9cac-2e0038b9ea8c","UdsObdDtc",["systemCategory","code","failureTypeByte"]),VehicleEngineType:(0,n.J)("d7cb5c3e-441c-4fa7-8bb2-4e96be10d010","VehicleEngineType"),VehicleMake:(0,n.J)("2b6219ec-6ae0-4507-ab48-b8253d12ca1e","VehicleMake"),VehicleModel:(0,n.J)("6ca27047-8e8c-4113-bf11-0927e5a29707","VehicleModel"),VehicleYear:(0,n.J)("195c2f64-3de7-4c1b-999d-6493c245bd43","VehicleYear")}},78133(e,t,i){i.d(t,{h:()=>r});var n=i(27439);function r(e){var t;const i=new Map,r=new Map;for(const o of e){if(!o.dateTime)continue;const e=o.dateTime,a=o.diagnostic&&"object"==typeof o.diagnostic?o.diagnostic.id:void 0;if(!a)continue;const s=`${e}|${a}`,l=null!==(t=r.get(s))&&void 0!==t?t:0;r.set(s,l+1);const d=0===l?e:`${e}::${l}`;let c=i.get(d);c||(c={id:(0,n.I8)(d),dateTime:e,cells:{}},i.set(d,c)),c.cells[a]=o}return Array.from(i.values()).sort(((e,t)=>e.dateTime<t.dateTime?-1:e.dateTime>t.dateTime?1:0))}},61375(e,t,i){i.d(t,{Td:()=>u,Tj:()=>l,q8:()=>c,tL:()=>d});var n=i(49793),r=i(27850),o=i(9787);const a=(0,i(34503).J)(o.r.FaultUnifiedHeadMachineState.id,o.r.FaultUnifiedHeadMachineState.name,void 0,(e=>{var t,i,r,o;if(!(null===(t=null==e?void 0:e.faultCycles)||void 0===t?void 0:t.length))return"â";const a=new Map,s=new Map;for(const t of e.faultCycles){let e;if(t.open)e=a;else{if(!t.lastClosed)continue;e=s}const n=null!==(i=e.get(t.diagnosticId))&&void 0!==i?i:[];0===n.length&&e.set(t.diagnosticId,n),n.push(`[${(null!==(r=t.keys)&&void 0!==r?r:[]).join(", ")}]`)}const l=[];for(const e of new Set([...a.keys(),...s.keys()])){const t=[],i=a.get(e),n=s.get(e);(null==i?void 0:i.length)&&t.push(`Open: ${i.join(", ")}`),(null==n?void 0:n.length)&&t.push(`Healed: ${n.join(", ")}`);const r=null!==(o=c.get(e))&&void 0!==o?o:e;l.push(`${r}: ${t.join(" | ")}`)}return l.length>0?(0,n.jsx)("div",{children:l.map(((e,t)=>(0,n.jsx)("div",{children:e},t)))}):"â"})),s=[...Object.values(o.r).filter((e=>e.geoId!==o.r.FaultUnifiedHeadMachineState.geoId)),a],l=s.map((e=>({id:e.geoId,name:e.name}))),d=new Map(s.map((e=>[e.geoId,e]))),c=new Map(s.map((e=>[e.id,e.name])));function u(e,t){return(0,r.VP)({name:e,title:t.name,render:i=>
1{const n=i.cells[e];return n?t.renderCell(n):"â"}})}},96425(e,t,i){i.d(t,{vb:()=>c,XG:()=>k,rj:()=>g,ew:()=>h,tD:()=>d,iK:()=>n.iK,$y:()=>n.$y,Eh:()=>S,Fg:()=>s,qN:()=>n.qN,Bj:()=>n.Bj,Yh:()=>u,ag:()=>l});var n=i(2708),r=i(94996),o=i(45935);const a={"Firmware update applied":"Telematics Device: Firmware Update Applied Successfully"},s=(e,t)=>t("SourceGeotabGoId"===e?"Telematics device":"Vehicle"),l=(e,t=!1,i)=>{let n=e.diagnostic.name;const s=e.faultDescription;return((0,r.kZ)(e.overrideSeverity)||(0,o.vQ)(s))&&("SourceJ1939Id"!==e.diagnostic.source||(0,o.vQ)(s))?n&&Object.prototype.hasOwnProperty.call(a,n)?a[n]:t&&-1!==(null==n?void 0:n.indexOf("Unknown Diagnostic"))?i("Proprietary OEM Fault: Description unavailable"):null!=n?n:"":s};var d;!function(e){e.AIModel="SourceAIModelId",e.Brp="SourceBrpId",e.Gmccc="SourceGmcccId",e.J1708="SourceJ1708Id",e.J1939="SourceJ1939Id",e.Legacy="SourceLegacyId",e.Obd="SourceObdId",e.ObdSa="SourceObdSaId",e.Proprietary="SourceProprietaryId",e.ThirdParty="SourceThirdPartyId",e.GeotabGo="SourceGeotabGoId",e.System="SourceSystemId"}(d||(d={}));const c=500,u=e=>void 0!==e.dismissDateTime&&void 0!==e.dismissUser;var h;!function(e){e.None="None",e.Pending="Pending",e.Active="Active",e.Inactive="Inactive",e.Cleared="Cleared"}(h||(h={}));const p=new Set([d.Obd,d.ObdSa]),m=new Set(Object.values(d)),g="all",S=(e,t)=>(e=>e===g||"string"==typeof e&&m.has(e))(t)?e===h.Active&&(e=>"string"==typeof e&&p.has(e))(t)?"Confirmed":e:"Unknown";var v=i(49793),I=i(50405),y=i(69537),f=i(53567),D=i(26033),C=i(27439),R=i(15100),T=i(24595),b=i(38707),w=i(38514),A=i(12691),E=i(417);const k=({faults:e,isOpen:t,setIsOpen:i,onConfirmDismissFaults:n})=>{const{currentUser:r,errorHandler:a,localizer:s,myapi:l,translate:d}=(0,b.Sz)(),[c,u]=(0,I.useState)(!1),[h,p]=(0,I.useState)(""),[m,g]=(0,I.useState)([]),[S,k]=(0,I.useState)(!1),O=(e,t)=>t.some((t=>t.device.id===e.device.id&&t.messageContent.faultCode===e.diagnostic.code)),M=(0,I.useCallback)(((e,t,i)=>e.map((e=>{var n,o,a,s;const l=e.device.id,d=e.device.name,c=r.id,u=i.find((e=>{var t;return(null===(t=e.device)||void 0===t?void 0:t.id)===l})),h=null===(n=null==u?void 0:u.statusData)||void 0===n?void 0:n.find((e=>{var t;return(null===(t=e.diagnostic)||void 0===t?void 0:t.id)===w.Yi})),p=null==h?void 0:h.data,m={user:{id:c},device:{id:l,name:d},messageContent:{contentType:w.Cr.contentType,channelNumber:null===(o=t.find((e=>e.device.id===l)))||void 0===o?void 0:o.channel,binaryDataPacketDelay:w.Cr.binaryDataPacketDelay,faultCode:null!==(a=e.diagnostic.code)&&void 0!==a?a:0,controllerProtocol:p},isDirectionToVehicle:w.aR.isDirectionToVehicle};return(0,A.Q)(t,i,null!==(s=e.diagnostic.code)&&void 0!==s?s:0,p,l)?m:null})).filter((e=>null!==e))),[r.id]),L=(0,I.useCallback)(((e,t)=>0===t.length?"":t.length<e.length?d("For IOX-UREADER devices, dismissing refrigeration unit faults will also attempt to clear the faults from the devices."):d("This will also attempt to clear the faults from the devices.")),[d]),P=(0,I.useCallback)((async()=>{if(u(!1),g([]),p(""),0===e.length)return void u(!0);const t=Array.from(new Set(e.map((e=>e.device.id)))),i=await l.get(R.Wvl,{search:{deviceSearch:{deviceIds:t},diagnostics:[{id:w.Yi}]},propertySelector:{fields:["exceptionEvents"],isIncluded:!1}}),n=i.filter((e=>{var t;return null===(t=e.statusData)||void 0===t?void 0:t.length})).map((e=>e.device.id)),r=await Promise.all(n.map((async e=>{const[t,i]=await Promise.all([l.get(R.i0n,{search:{deviceSearch:{id:e},type:w.Hk}}),l.get(R.i0n,{search:{deviceSearch:{id:e},type:w.Zt}})]);return[...t,...i]}))),o=[].concat(...r),a=M(e,o,i);g(a),p(L(e,a)),u(!0)}),[e,l,M,L]);return(0,I.useEffect)((()=>{t&&(k(!1),P())}),[t,P]),(0,v.jsxs)(y.aF,{isOpen:t,title:d("Dismiss fault"),onClose:()=>{i(!1),u(!1)},children:[(0,v.jsxs)(v.Fragment,{children:[!(0,o.vQ)(h)&&(0,v.jsx)(f.l,{type:"info",icon:!0,multiline:!0,children:h}),(0,v.jsxs)("div",{className:"dismiss-faults-modal__content",children:[(0,v.jsx)("div",{className:"dismiss-faults-modal__content__title label-01",children:d("You are about to dismiss the selected faults and all previous occurrences for this vehicle.")}),(0,v.jsx)("div",{className:"dismiss-faults-modal__content__container",children:c?e.map((e=>{var t,i,n;return(0,v.jsxs)("div",{className:"body-05",children:["#",null!==(t=(0,E.Tj)(e.diagnostic))&&void 0!==t?t:e.diagnostic.code," -"," ",(null===(i=e.faultDescription)||void 0===i?void 0:i.trim())||e.diagnostic.name," -"," ",s.toShortDateTime(null!==(n=e.dateTime)&&void 0!==n?n:""),(0,v.jsx)("div",{className:"dismiss-faults-modal__content__container__iox-suffix",children:O(e,m)&&(0,v.jsx)("span",{children:d("[IOX-UREADER]")})})]},String(e.id))})):Array.from({length:e.length},((e,t)=>(0,v.jsx)(D.E,{type:"text",width:"100%"},t)))})]})]}),(0,v.jsx)(y.aF.PrimaryButton,{disabled:!c||0===e.length||S,onClick:()=>{k(!0),(()=>{const t=e.map((e=>(0,C.I8)(e.id))),i=l.call(T.yTG,{faultIds:t}),n=m.map((e=>l.add(R.KBF,e)));return Promise.all([i,...n]).catch(a)})().then((()=>{n(),i(!1),u(!1)})).catch((()=>k(!1)))},children:d("Dismiss faults")}),(0,v.jsx)(y.aF.SecondaryButton,{disabled:S,onClick:()=>{i(!1),u(!1)},children:d("Cancel")})]})}},50993(e,t,i){i.d(t,{GZ:()=>n,qN:()=>l,Bj:()=>s});var n,r=i(6902);!function(e){e[e.Unknown=0]="Unknown",e[e.Low=100]="Low",e[e.Medium=200]="Medium",e[e.High=300]="High",e[e.Critical=400]="Critical"}(n||(n={}));const o={[n.Critical]:r.zQ.Critical,[n.High]:r.zQ.High,[n.Medium]:r.zQ.Medium,[n.Low]:r.zQ.Low,[n.Unknown]:r.zQ.Unknown},a={[n.Critical]:"error",[n.High]:"error",[n.Medium]:"warning",[n.Low]:"info",[n.Unknown]:void 0},s=(e,t)=>{var i;const n=void 0!==e&&null!==(i=o[e])&&void 0!==i?i:r.zQ.Unknown;return t?t(n):n},l=e=>a[e]},27788(e,t,i){i.r(t),i.d(t,{TRANSLATIONS:()=>b,default:()=>T});var n=i(49793),r=i(50405),o=i(55738),a=i(31756),s=i(580),l=i(95533),d=i(69046),c=i(38946),u=i(98830),h=i(15100),p=i(27439),m=i(43643),g=i(27850),S=i(38707),v=i(15070),I=i(63485),y=i(78133),f=i(61375);const D="diagnostic-history-asset",C="diagnostic-history-diagnostics",R=()=>({[D]:{state:{selected:[],isChecked:!1}
1},[C]:{state:{selectedOption:[]}}});function T(){var e,t,i;const{errorHandler:T,translate:b,getLinkTo:w,hasAccessTo:A,context:{localizer:{toLocalDateTime:E}}}=(0,S.Sz)(),{toReverseOffsetDateTime:k,weekStartsOnSunday:O}=(0,r.useContext)(u.U),[M,L]=(0,r.useState)(!1),[P,F]=(0,r.useState)([]),{args:x,setArg:N,setArgs:B}=(0,o.y)(),U=null!==(e=x.device)&&void 0!==e?e:"",H=(0,r.useMemo)((()=>{var e;return null!==(e=x.diagnostics)&&void 0!==e?e:[]}),[x.diagnostics]),V=null!==(t=x.archived)&&void 0!==t&&t,_=U.length>0&&H.length>0,W=P[P.length-1],q=(0,r.useMemo)((()=>{var e,t,i,n;return{search:Object.assign(Object.assign({deviceSearch:U?{id:(0,p.I8)(U)}:void 0},H.length>0?{diagnosticSearch:{ids:H.map(p.I8)}}:{}),{fromDate:null!==(t=null===(e=x.dateRange)||void 0===e?void 0:e.from)&&void 0!==t?t:void 0,toDate:null!==(n=null!=W?W:null===(i=x.dateRange)||void 0===i?void 0:i.to)&&void 0!==n?n:void 0}),resultsLimit:100}}),[U,H,x.dateRange,W]),{data:G,isLoading:j}=(0,m.eR)(h.t2d,q,{enabled:_}),{data:z}=(0,m.o2)(h.ojn,U?(0,p.I8)(U):void 0,{enabled:!!U}),$=(0,r.useMemo)((()=>(0,y.h)(null!=G?G:[])),[G]),Z=(0,r.useMemo)((()=>[(0,g.VP)({name:"device",title:"Device",render:()=>z?(0,n.jsx)(I.V,{device:z,getLinkTo:w,hasAccessTo:A}):U}),(0,g.VP)({name:"dateTime",title:"Date/Time",render:e=>new Date(e.dateTime).toLocaleString()}),...H.map((e=>({diagId:e,descriptor:f.tL.get(e)}))).filter((e=>void 0!==e.descriptor)).map((({diagId:e,descriptor:t})=>(0,f.Td)(e,t)))]),[H,z,U,w,A]),J=(0,r.useMemo)((()=>[...(0,a.xF)(E,b,O?"Sunday":"Monday",k),(0,a.YS)(E,b,k)]),[E,b,O,k]),K=(0,r.useMemo)((()=>{var e;return x.dateRange?{from:new Date(x.dateRange.from),to:new Date(x.dateRange.to),label:null!==(e=x.dateRange.label)&&void 0!==e?e:""}:void 0}),[x.dateRange]),Y=(0,r.useCallback)((()=>F([])),[]),Q=(0,r.useCallback)((e=>{var t;B({device:null!==(t=e.selected[0])&&void 0!==t?t:void 0,archived:e.isChecked||void 0}),Y()}),[B,Y]),X=(0,r.useCallback)((e=>{N("dateRange",e?{from:e.from.toISOString(),to:e.to.toISOString(),label:e.label}:void 0),Y()}),[N,Y]),ee=(0,r.useCallback)((e=>{N("diagnostics",e.selectedOption.length>0?e.selectedOption:void 0),Y()}),[N,Y]),te=P.length,ie=!j&&100===(null!==(i=null==G?void 0:G.length)&&void 0!==i?i:0),ne=Math.max($.length,1),re=ne*(te+1)+(ie?ne:0),oe=(0,r.useCallback)((e=>{if(e<te)F((t=>t.slice(0,e)));else if(e===te+1){if(!G||0===G.length)return;const e=G[G.length-1];if(!e.dateTime)return;const t=e.dateTime.replace(/(\.\d{3})\d+(Z|[+-]\d{2}:\d{2})$/,"$1$2"),i=new Date(new Date(t).getTime()-1).toISOString();F((e=>[...e,i]))}}),[te,G]);return(0,n.jsxs)(d.P,{children:[(0,n.jsxs)(l.Y9,{children:[(0,n.jsx)(l.Y9.Title,{pageName:"Diagnostic Data History",isBeta:!0}),(0,n.jsxs)(s.Xx,{getDefaultFiltersState:R,isAllFiltersVisible:M,toggleAllFilters:L,children:[(0,n.jsx)(v.a,{id:D,state:{selected:U?[U]:[],isChecked:V},onChange:Q,hideInBar:!1,showInSidePanel:!0}),(0,n.jsx)(s.Xx.Dropdown,{id:C,state:{selectedOption:H},onChange:ee,hideInBar:!1,showInSidePanel:!0,sidePanelTitle:"Diagnostics",props:{dataItems:f.Tj,multiselect:!0,showCounterPill:!0,showSelection:!0,placeholder:"Diagnostics",title:"Diagnostics",errorHandler:T}}),(0,n.jsx)(s.Xx.PeriodPicker,{id:"diagnostic-history-date-range",defaultState:K,state:K,hideInBar:!1,showInSidePanel:!0,sidePanelTitle:"Date Range",onChange:X,props:{options:J,dropDownTitle:"Date Range",withCalendar:!0,timeSelect:!0,allowUnsetValue:!0}})]})]}),_?(0,n.jsx)(c.XI,{entities:$,columns:Z,isLoading:j,children:(0,n.jsx)(c.XI.Pagination,{activePage:te,onChange:oe,perPage:ne,total:re,disabled:j})}):(0,n.jsx)("div",{className:"diagnostic-data-history__empty-state",children:"Select a device and at least one diagnostic to load data."})]})}const b=[v.J]},15070(e,t,i){i.d(t,{J:()=>r.a,a:()=>n.a});var n=i(42436),r=i(88327)},42436(e,t,i){i.d(t,{a:()=>p});var n=i(49793),r=i(580),o=i(68533),a=i(27439),s=i(15100),l=i(86244),d=i(78011),c=i(88327),u=i(26791),h=i(38707);function p(e){var t,i;const{id:o,state:a,onChange:s,showInSidePanel:d,hideInBar:u,useSidePanelView:p,groups:m,multiselect:g=!0}=e,{errorHandler:v,myapi:I}=(0,h.Sz)();return(0,n.jsx)(r.Xx.DropdownWithCheckbox,{id:o,state:{selected:null!==(t=a.selected)&&void 0!==t?t:[],isChecked:null!==(i=a.isChecked)&&void 0!==i&&i},onChange:e=>{s({selected:e.selected,isChecked:e.isChecked})},showInSidePanel:d,hideInBar:u,useSidePanelView:p,sidePanelTitle:c.a.assets(),props:{title:c.a.assets(),checkboxLabel:c.a.showArchived(),placeholder:c.a.assets(),searchField:!0,multiselect:g,defaultValue:{selected:[],isChecked:!1}
1,getData:async(e,t,i)=>{var n;return new l.g(S(t,null!=i&&i,null!==(n=a.selected)&&void 0!==n?n:[],I,v,m),{signal:e})},errorHandler:v}})}const m=(e,t)=>e.name.localeCompare(t.name),g=e=>({id:e.id,name:e.name}),S=async(e,t,i,n,r,l)=>{try{const r={keywords:e?e.split(",").map((e=>e.trim())).filter((e=>e.length>0)).map((e=>"%"+e+"%")):void 0,fromDate:t?void 0:(0,a.qd)((new Date).toUTCString()),groupFilterCondition:(0,d.Tc)(l)},c={resultsLimit:100,sort:{sortBy:"name",sortDirection:o.vu.Ascending},propertySelector:{fields:["Id","Name","LicensePlate","SerialNumber"],isIncluded:!0}},[h,p]=await Promise.all([n.get(s.ojn,Object.assign({search:r},c)),Promise.all(i.map((e=>n.getById(s.ojn,(0,a.I8)(e)))))]),S=p.map(g).sort(m),v=h.map(g).sort(m);return[...S,...v].filter((0,u.pD)((e=>e.id))).slice(0,100+S.length)}catch(e){return r(e)}}},61273(e,t,i){i.d(t,{PG:()=>s,VJ:()=>c,Xn:()=>l,_U:()=>a,g0:()=>o,rq:()=>d,u$:()=>n});var n,r=i(96425);!function(e){e.All="all",e.Vehicle="vehicle",e.Telematics="telematics"}(n||(n={}));const o={[n.Vehicle]:"Vehicle",[n.Telematics]:"Telematics device"},a={[r.iK.Critical]:"Critical",[r.iK.High]:"High",[r.iK.Medium]:"Medium",[r.iK.Low]:"Low",[r.iK.Unknown]:"Unknown"},s={[r.iK.Critical]:"Check immediately",[r.iK.High]:"Check at next halt",[r.iK.Medium]:"Maintenance only",[r.iK.Low]:"No repair needed",[r.iK.Unknown]:"No severity available"},l=[r.tD.AIModel,r.tD.Brp,r.tD.Gmccc,r.tD.J1708,r.tD.J1939,r.tD.Legacy,r.tD.Obd,r.tD.ObdSa,r.tD.Proprietary,r.tD.ThirdParty],d=[r.tD.GeotabGo,r.tD.System],c={[r.tD.AIModel]:"AIModel",[r.tD.Brp]:"Brp",[r.tD.Gmccc]:"Gmccc",[r.tD.J1708]:"J1708",[r.tD.J1939]:"J1939",[r.tD.Legacy]:"Legacy",[r.tD.Obd]:"Obd",[r.tD.ObdSa]:"ObdSa",[r.tD.Proprietary]:"Proprietary",[r.tD.ThirdParty]:"ThirdParty",[r.tD.GeotabGo]:"Telematics device",[r.tD.System]:"System"}},25264(e,t,i){i.d(t,{KB:()=>a,Km:()=>u,PF:()=>l,So:()=>h,kv:()=>o,n3:()=>c,ph:()=>d,re:()=>p});var n=i(92459);const r=["ViewDVIRLogs","ManageDVIRLogs","ViewAssetInspectionLogs","ManageAssetInspectionLogs"],o=["EngineManagementReport","ViewFaultData"],a={View:"view",Edit:"edit",Full:"full"},s=(e,t,i,n,r)=>!!e(r)||t!==a.Full&&(!!e(n)||t===a.View&&e(i)),l=(e,t)=>s(e,t,"MaintenanceSchedulesView","MaintenanceSchedulesEdit","MaintenanceSchedulesFullAccess"),d=(e,t,i)=>!(i&&!i(n.q.MaintenanceWorkRequest)&&!i(n.q.MaintenanceComplete))&&s(e,t,"MaintenanceRequestsView","MaintenanceRequestsEdit","MaintenanceRequestsFullAccess"),c=(e,t,i)=>!(i&&!i(n.q.MaintenanceWorkRequest)&&!i(n.q.MaintenanceComplete))&&s(e,t,"MaintenanceWorkOrdersView","MaintenanceWorkOrdersEdit","MaintenanceWorkOrdersFullAccess"),u=(e,t)=>!!(t(n.q.Faults)||t(n.q.MaintenanceComplete)||t(n.q.MaintenanceEssentials))&&o.some((t=>e(t))),h=(e,t)=>!!t(n.q.Dvirs)&&r.some((t=>e(t))),p=(e,t)=>d(e,a.View,t.isAppInstalled)||c(e,a.View,t.isAppInstalled)||u(e,t.isAppInstalled)||h(e,t.isAppInstalled)||t.canViewPage("engineMeasurements")},26791(e,t,i){i.d(t,{JY:()=>H,rf:()=>Pe,IE:()=>K,e5:()=>Me,uw:()=>Y,hT:()=>U,MF:()=>pe,Aj:()=>je,ke:()=>ne,Z1:()=>G,qR:()=>W,p$:()=>Be,HJ:()=>J,g$:()=>We,ow:()=>Ue,yG:()=>Ve,Bj:()=>_e,B9:()=>He,jU:()=>xe,CQ:()=>Ne,hy:()=>Fe,Fb:()=>Le,KQ:()=>ce,Kd:()=>Oe,Mb:()=>Ge,Fu:()=>ue,ku:()=>he,It:()=>ge,ZB:()=>Ie,g7:()=>De,hQ:()=>ve,mD:()=>Ae,Vw:()=>ie,n4:()=>E.n,KT:()=>Z,dd:()=>de,k9:()=>se,z9:()=>le,Gh:()=>qe,WY:()=>_,pD:()=>q,Jc:()=>be,Fv:()=>ye,OY:()=>Ee,lT:()=>ke,XX:()=>$,t2:()=>j,mK:()=>X,Kp:()=>oe,Z9:()=>we,kk:()=>Te,VI:()=>Re,Uf:()=>Ce});var n=i(49793),r=i(27439),o=i(15100),a=i(68533),s=i(76210),l=i(45335),d=i(59196),c=i(50405),u=i(53598),h=i(82470),p=i(2808),m=i(38707),g=i(79625),S=i(35385),v=i(59880),I=i(52826),y=i(44654),f=i(89594),D=i(43643),C=i(53872);var R=i(88327),T=i(23038),b=i(44755),w=i(50993),A=i(88305),E=i(41238),k=i(45852),O=i(94996),M=i(62272),L=i(81156),P=i(36636),F=i(96732),x=i(32449),N=i(61273),B=i(78300);const U="severityassetnamecode",H="assetnameseveritycode",V={name:"CreateCtcWorkOrderFromWorkRequest",readonly:!1},_=(e,t)=>(e&&(e.hide(),t.current=!0),()=>{t.current&&e&&(e.show(),t.current=!1)});function W(e){return e||void 0}function q(e){const t=new Set;return i=>{const n=e(i);return!t.has(n)&&(t.add(n),!0)}}const G=new class{constructor(){this.diagnosticsCache=null,this.lastFetched=0}getCurrentTimestamp(){return(new Date).getTime()}isCacheExpired(){return this.getCurrentTimestamp()-this.lastFetched>3e5}requestChunk(e,t,i){const n={resultsLimit:i,sort:Object.assign({sortBy:"version",sortDirection:"asc"},t&&{offset:t.version,lastId:t.id})};return e.get(o.zDT,n)}requestDiagnosticsInChunks(e,t=[]){const i=t?t[t.length-1]:{};return this.requestChunk(e,i,5e4).then((i=>{let n=(t||[]).concat(i);return 5e4===i.length?this.requestDiagnosticsInChunks(e,n):n}))}isCacheAvailable(){return null!==this.diagnosticsCache&&!this.isCacheExpired()}getCachedDiagnostics(){return this.isCacheAvailable()?this.diagnosticsCache:null}loadDiagnostics(e){return this.diagnosticsCache&&this.isCacheExpired()&&(this.diagnosticsCache=null),this.diagnosticsCache||(this.lastFetched=this.getCurrentTimestamp(),this.diagnosticsCache=this.requestDiagnosticsInChunks(e).then((e=>e)).catch((e=>{throw this.diagnosticsCache=null,this.lastFetched=0,e}))),this.diagnosticsCache}},j=({translate:e,customDragAndDropText:t,successCallback:i,errorCallback:n,startCallback:r})=>{var o,a;const[s,l]=(0,c.useState)(null),d=(0,c.useRef)(null),u=null===(a=null===(o=d.current)||void 0===o?void 0:o.getFile())||void 0===a?void 0:a.name;return{initCsvReader:(0,c.useCallback)((o=>
1{if(!o)return void(d.current=null);d.current=(0,v.H)(o,new S.E(e,t,!1),{fileTypes:["xlsx"],params:{startCallback:r,successCallback:i,errorCallback:n},uploadOnDrop:!0,maxAllowedFileSize:3145728},e);const a=o.querySelector('input[type="file"]');a&&a.setAttribute("accept",".xlsx"),l(o)}),[e,d]),fileName:u,fileReaderContainer:s}},z=(0,y.Pm)((()=>(0,f.k0)((0,y.K4)("/js/exceljs/exceljs.min.js"),document.head).then((()=>{if(!ExcelJS)throw new Error("Excel file support is not available")})))),$=({withTemplate:e,setWaiting:t,container:i,errorHandler:n,config:r})=>{const o=(0,c.useCallback)(((e,t)=>{const n=new Blob([e],{type:"application/octet-stream"});null!==i&&(0,I.A)(window,n,t,i)}),[i]),a=(i,a,s=!1)=>{t(!0),z().then((()=>{e(s,a,r).then((e=>{t(!1),o(e,i)}))})).catch((e=>{t(!1),n(e)}))};return{generateTemplate:a,downloadTemplate:(e,t=[])=>{const i=0===t.length;a(e,t,i)}}},Z=e=>{switch(e){case P.e.Ascending:return a.vu.Ascending;case P.e.Descending:return a.vu.Descending;case P.e.None:return a.vu.Ascending;default:return(0,C.xb)(e)}},J={ASSETS:"assets-filter",DRIVERS:"drivers-filter",GROUPS:g.m,STATUS:"status-filter",PRIORITY:"priority-filter",REFERENCE:"references-filter",MAINTENANCE_TYPES:"maintenance-types-filter",SOURCES:"sources-filter",LABELS:"labels-filter",DATE_STARTED:"date-started-filter",DATE_COMPLETED:"date-completed-filter",DATE_CREATED:"date-created-filter",SEVERITIES:"severities-filter",REPEATS:"repeatsFilter",FREQUENCY:"frequencyFilter",SCHEDULES:"schedulesFilter",SNOOZED:"snoozed-filter",SHOW_ARCHIVED:"show-archived-filter",CREATION_METHOD:"creation-method-filter",REPAIR_SITE:"repair-site-filter"},K="9999-12-31T23:59:59.9999999Z",Y={STANDARD:"standard",QUICK:"quick"},Q=e=>{var t;return(null===(t=e.maintenanceType)||void 0===t?void 0:t.customSource)===T.hD.CleanTruckCheck},X=()=>{const{myapi:e,errorHandler:t,translate:i}=(0,m.Sz)();return(0,c.useCallback)((async(n,r)=>{try{const t=r.length>0?e.get(o.eYJ,{search:{ids:r}}):[],s=n?e.get(o.eYJ,{search:{name:"%"+n+"%"},sort:{sortBy:"name",sortDirection:a.vu.Ascending}}):e.get(o.eYJ,{resultsLimit:100,sort:{sortBy:"name",sortDirection:a.vu.Ascending}}),[l,d]=await Promise.all([s,t]),c=new Map;return[...d,...l].forEach((e=>c.set(e.id,e))),Array.from(c.values()).map((e=>({id:e.id,name:ue(i,e),children:[]})))}catch(e){return t(e),[]}}),[e,t,i])};async function ee(e,t,i,n,a){const s={device:e.device,costCurrency:i,priorityCode:b.au.Low,odometerReading:n||(e.currentOdometer?e.currentOdometer.toString():"0"),engineHoursReading:a||(e.currentEngineHours?e.currentEngineHours.toString():"0"),statusCode:b.O1.Open,creationMethod:b.Rf.Manual},l=await t.add(o.ewl,s);return(0,r.I8)(l)}async function te(e,t,i,n,o){if(!e.id)throw new Error("Cannot create a CTC work order without a work request id");const a=await t.call(V,{workRequestId:e.id,requestedWorkOrder:{costCurrency:i,odometerReading:n||(e.currentOdometer?e.currentOdometer.toString():"0"),engineHoursReading:o||(e.currentEngineHours?e.currentEngineHours.toString():"0")}});if(!a.id)throw new Error("CTC work order creation did not return a work order id");return(0,r.I8)(a.id)}const ie=e=>Promise.all([e.invalidateQueries({queryKey:[o.BO8.name,"get"]}),e.invalidateQueries({queryKey:[o.BO8.name,"countOf"]}),e.invalidateQueries({queryKey:[o.BO8.name,"getAggregation"]})]);const ne=(e,{orderId:t,displayCurrency:i,statusCode:n,startDate:o,dateCompleted:a,odometerReading:s,engineHoursReading:l})=>{var d,c,u;const h=e.maintenanceType,p=(null==h?void 0:h.customSource)===T.hD.CleanTruckCheck&&e.id?{ctcSourceWorkRequestId:e.id.toString()}:{};return{maintenanceType:e.maintenanceType,eventDescription:null!==(d=e.description)&&void 0!==d?d:"",severityCode:null!==(c=e.severity)&&void 0!==c?c:w.GZ.Unknown,triggeredDate:e.triggeredDateTime?e.triggeredDateTime.toString().substring(0,10):void 0,schedule:e.schedule?{id:e.schedule.id}:void 0,device:e.device?{id:(0,r.vG)(e.device)}:void 0,costCurrency:null!==(u=e.costCurrency)&&void 0!==u?u:i,currencyConversionFailed:!1,workOrder:{id:t},statusCode:n,startDate:o,dateCompleted:a,odometerReading:s,engineHoursReading:l,metadata:Object.assign(Object.assign({},e.metadata),p)}},re=async({workRequest:e,orderId:t,myApi:i,displayCurrency:n,errorHandler:r,statusCode:a=b.O1.Open,startDate:s,dateCompleted:l,odometerReading:d,engineHoursReading:c})=>{try{if(!e)return!1;const r=ne(e,{orderId:t,displayCurrency:n,statusCode:a,startDate:s,dateCompleted:l,odometerReading:d,engineHoursReading:c});return await i.add(o.pOE,r),!0}catch(e){return await r(e),!1}};function oe(){const{myapi:e,currentUser:t,errorHandler:i,goToPage:n}=(0,m.Sz)(),a=(0,l.jE)(),{setWorkOrder:s}=we(),d=Re();return{processWorkRequests:(0,c.useCallback)((async l=>{const{mode:c,requests:u,dateCompleted:h,odometer:p,engineHours:m,navigateAfter:g=!0,showAlertOrErrorHandler:S}=l;if(0===u.length)return{orderIds:[]};const v=(e=>e.reduce(((e,t)=>{const i=(0,r.vG)(t.device);return e[i]||(e[i]=[]),e[i].push(t),e}),{}))(u),I=[];for(const n of Object.keys(v)){const a=v[n];if(!a||0===a.length)continue;const[s]=a,{deviceName:l,currentOdometerInMeters:c,currentEngineHoursInHours:u}=De(s);if(d(n,l,c,u))try{const n=a.filter(Q);for(const i of n){const n=await te(i,e,t.displayCurrency,p,m);I.push({orderId:n,device:i.device})}const l=a.filter((e=>!Q(e)));if(0===l.length)continue;const[d]=l,c=await ee(d,e,t.displayCurrency,p,m);if(null!==c){(await Promise.all(l.map((n=>re({workRequest:n,orderId:c,myApi:e,displayCurrency:t.displayCurrency,errorHandler:i,statusCode:b.O1.Open,dateCompleted:void 0,odometerReading:p,engineHoursReading:m}))))).some(Boolean)?I.push({orderId:c,device:s.device}):await e.remove(o.ewl,{id:(0,r.I8)(c)})}}catch(e){await S(e)}}const y=I.map((e=>e.orderId));let f=[];if(c===Y.QUICK&&I.length>0&&h){const e=I.map((async({orderId:e,device:t})=>{try{return{orderId:e,success:await s({id:(0,r.I8)(e),device:t,statusCode:b.O1.Completed,completedDateTime:h})}}catch(t){return await S(t),{orderId:e,success:!1}}}));f=await Promise.all(e)}if(y.length>0&&await ie(a),y.length>0){const t=((e,t,i)=>{const n=e===Y.QUICK&&t.length>0,r=!!n&&t.every((e=>e.success));return 1===i.length?n?r?R.a.completedWorkOrderCreated():R.a.workOrderCreatedPendingCompletion():R.a.workOrderCreated():n?r?R.a.xCompletedWorkOrdersCreated(i.length.toString()):R.a.xWorkOrdersCreatedSomePendingCompletion(i.length.toString()):R.a.xWorkOrdersCreated(i.length.toString())})(c,f,y),i=c===Y.QUICK?{header:t,type:"success",onClose:()=>{},action:{text:1===y.length?R.a.goToOrder():R.a.goToOrders(),onClick:async()=>
1{if(1===y.length)n("maintenanceWorkOrderDetails",{id:y[0]});else{const t=await Promise.all(y.map((t=>e.getById(o.ewl,(0,r.I8)(t)))));n("maintenanceWorkOrder",{references:t.map((e=>e.reference))})}}}}:{header:t,type:"success",onClose:()=>{}};await(0,M.P0)(i),await(async(e,t,i,n,a)=>{i&&e===Y.STANDARD&&(1===t.length?n("maintenanceWorkOrderDetails",{id:t[0]}):t.length>1&&n("maintenanceWorkOrder",{references:(await Promise.all(t.map((e=>a.getById(o.ewl,(0,r.I8)(e)))))).map((e=>e.reference))}))})(c,y,g,n,e)}return{orderIds:y}}),[e,t.displayCurrency,i,n,a,s,d])}}const ae=()=>({"{database}":`{${R.a.database()}}`,"{date}":`{${R.a.date()}}`,"{device}":`{${R.a.device()}}`,"{deviceComments}":`{${R.a.deviceComments()}}`,"{deviceGroups}":`{${R.a.deviceGroups()}}`,"{deviceName}":`{${R.a.deviceName()}}`,"{deviceId}":`{${R.a.deviceId()}}`,"{odometer}":`{${R.a.odometer()}}`,"{serialNumber}":`{${R.a.serialNumber()}}`,"{vin}":`{${R.a.vin()}}`,"{licensePlate}":`{${R.a.licensePlate()}}`,"{maintenanceReminderName}":`{${R.a.maintenanceSchedule()}}`,"{maintenanceReminderType}":`{${R.a.maintenanceType()}}`,"{maintenanceReminderRemainingDays}":`{${R.a.remainingDays()}}`,"{maintenanceReminderRemainingDistance}":`{${R.a.remainingDistance()}}`,"{maintenanceReminderRemainingEngineHours}":`{${R.a.remainingEngineHours()}}`}),se=(e,t)=>e.replace(/\{maintenanceReminderType}/g,t),le=e=>{const t=ae();return Object.keys(t).reduce(((e,i)=>e.replace(new RegExp(i,"g"),t[i])),e)},de=e=>{const t=ae(),i={};for(const[e,n]of Object.entries(t))i[n]=e;return Object.keys(i).reduce(((e,t)=>e.replace(new RegExp(t,"g"),i[t])),e)},ce=function(e,t){switch(e.name){case"** Default Vehicle Defects **":case"Default Vehicle Defects List":return t("GroupVehicleDefectsId");case"** Default Trailer Defects **":case"Default Trailer Defects List":return t("GroupTrailerDefectsId");default:return t(e.name)}},ue=(e,t,i)=>{var n,r,o;if((null==t?void 0:t.sourceType)===T.EK.DataInsight)return"Oil Life Remaining"===t.name?R.a.oilLifeRemaining():R.a.electricalSystemRatingInsight();if((null==t?void 0:t.sourceType)===T.EK.Rules&&i){const r=e(i);return r!==i?r:null!==(n=null==t?void 0:t.name)&&void 0!==n?n:""}return(null==t?void 0:t.customSource)===T.hD.DefectReport&&t.typeDescription?t.typeDescription:e(null!==(o=null===(r=null==t?void 0:t.name)||void 0===r?void 0:r.split(" - ").map((t=>ce({name:t},e))).join(" - "))&&void 0!==o?o:"")},he=(e,t)=>{const i=(null==t?void 0:t.activeTo)&&new Date(t.activeTo)<new Date,r=ue(e,t);return(0,n.jsxs)("div",{className:"m9e-maintenance-type-container",children:[(0,n.jsx)("span",{className:i?"m9e-maintenance-type-name--archived":"",children:r}),i&&(0,n.jsx)("span",{className:"m9e-maintenance-type-icon--archived",title:R.a.archived(),children:(0,n.jsx)(s.C,{size:"large"})})]})},pe=(e,t)=>t.eventTypes.addItem({source:T.EK.Manual,customSource:T.hD.DefectReport,defect:{id:e}}),me=({schedule:e,deviceId:t})=>{const i=t?{deviceId:t}:{};return"string"==typeof e.maintenanceType||e.maintenanceType.sourceType===T.EK.DataInsight?{pageName:"maintenanceReminderMultiSource",pageState:Object.assign({ruleId:e.id},i)}:{pageName:"maintenanceScheduleDetails",pageState:Object.assign({id:e.id},i)}},ge=({schedule:e,getLinkTo:t,deviceId:i})=>{const{pageName:n,pageState:r}=me({schedule:e,deviceId:i});return t(n,r)},Se=e=>e?{pageName:"maintenanceReminderMultiSource",pageState:{ruleId:e}}:void 0,ve=({workRequest:e,maintenanceType:t,schedule:i,canViewSchedules:n,defectTree:o,canNavigateToAssetInspection:a})=>{var s,l;if(e&&t)switch(t.sourceType){case T.EK.DataInsight:return Se(null===(s=e.schedule)||void 0===s?void 0:s.id);case T.EK.Manual:return((e,t)=>{var i,n;const o=(0,r.NS)(e.defect);if(!e.defect||(0,O.kZ)(t)||(0,O.kZ)(o))return;const a=(0,h.lE)((0,h.m8)(t),o.id),s=null===(n=null===(i=null==a?void 0:a.parent)||void 0===i?void 0:i.parent)||void 0===n?void 0:n.id;return s?{pageName:"defectList",pageState:{id:s}}:void 0})(t,o);case T.EK.Scheduled:return((e,t,i)=>{var n;if(t&&i)return me({schedule:t,deviceId:null===(n=(0,r.NS)(e.device))||void 0===n?void 0:n.id})})(e,i,n);case T.EK.Rules:return(e=>{var t;const i=null===(t=e.metadata)||void 0===t?void 0:t.exceptionEventId;return i?{pageName:"exception",pageState:{id:i}}:void 0})(e);default:return(null===(l=e.metadata)||void 0===l?void 0:l[T.jT.Source])===T.hD.AssetInspection?((e,t)=>
1{var i,n;const o=null===(i=e.metadata)||void 0===i?void 0:i[T.jT.InspectionLogId],a=null===(n=(0,r.NS)(e.device))||void 0===n?void 0:n.id;return t&&o&&a?{pageName:"assetInspectionDetail",pageState:{device:a,id:o}}:void 0})(e,a):void 0}},Ie=({workJob:e,maintenanceType:t,schedule:i,canViewSchedules:n})=>{var o,a;if(e&&t)return t.sourceType===T.EK.DataInsight?Se(null===(o=e.schedule)||void 0===o?void 0:o.id):t.sourceType===T.EK.Scheduled&&i&&n?me({schedule:i,deviceId:null===(a=(0,r.NS)(e.device))||void 0===a?void 0:a.id}):void 0},ye=(e,t)=>{const{store:i,translate:n,isFlagEnabled:o}=(0,m.Sz)(),a=(0,c.useMemo)((()=>(0,p.F)(i,n,o(B.u.EXCEPTION_TO_EVENTS))),[i,n,o]);return(0,c.useCallback)((i=>{if((0,O.kZ)(i))return;let n=`id: ${i.id}`;const o=(0,r.NS)(i.device),s=!!o;if(t)try{n=t(i)}catch(e){n=`id: ${i.id}`}a.customAudit(e,Object.assign(Object.assign({},s&&{devices:[{id:o.id}]}),{customMessage:n}))}),[e,a,t])};function fe(){const{myapi:e,getLinkTo:t,showAlert:i,translate:n}=(0,m.Sz)();return(0,c.useCallback)((async a=>{const{device:s,dateCompleted:l,maintenanceType:d}=a;if((0,O.kZ)(s)||(0,O.kZ)(l)||(0,O.kZ)(d))return void console.error("Cannot check for duplicate job: missing required fields");const c=await e.get(o.pOE,{search:{maintenanceTypeSearch:{ids:[(0,r.vG)(d)]},deviceSearch:{id:(0,r.vG)(s)},fromDateCompleted:l.toString(),toDateCompleted:l.toString()}});if((null==c?void 0:c.length)>0){const e=c[0],r=ue(n,e.maintenanceType);i({header:R.a.error(),text:R.a.theMaintenanceJobIsDuplicated(r),type:"error",buttons:{primary:{link:t("maintenanceWorkJobDetails",{id:e.id}),text:R.a.goToJob()}}})}}),[e,t,i,n])}function De(e){var t,i,n;const o=(0,r.NS)(e.device),a=(0,r.vG)(e.device);return{deviceId:a,deviceName:null!==(t=null==o?void 0:o.name)&&void 0!==t?t:a,currentOdometerInMeters:parseInt(null!==(i=e.currentOdometer)&&void 0!==i?i:"0",A.z.Hexadecimal)||0,currentEngineHoursInHours:null!==(n=e.currentEngineHoursInHours)&&void 0!==n?n:0}}function Ce(e,t,i){const n=[],r=i?b.ZQ:b.J5,o=i?(0,L.U2)(e):(0,L.ze)((0,L.U2)(e));if(e<0)n.push(R.a.odometerReadingCannotBeNegative());else if(o>r){const e=i?"km":"miles",t=r.toLocaleString();n.push(R.a.odometerReadingExceedsMaximumValue().replace("{0}",t).replace("{1}",e))}if(t<0)n.push(R.a.engineHoursReadingCannotBeNegative());else if(t>b.ee){const e=b.ee.toLocaleString();n.push(R.a.engineHoursReadingExceedsMaximumValue().replace("{0}",e))}return{isValid:0===n.length,errors:n}}function Re(){const{showAlert:e,getLinkTo:t,localizer:i}=(0,m.Sz)(),n="km"===i.getDistanceAbbreviation();return(0,c.useCallback)(((i,r,o,a)=>{const s=Ce(o,a,n);return!!s.isValid||(e({header:R.a.error(),text:`${R.a.assetHasInvalidReadings().replace("{0}",r)}\n\n${s.errors.join("\n\n")}`,type:"error",buttons:{primary:{link:t("device",{id:i}),text:R.a.goToAsset()}}}),!1)}),[e,t,n])}function Te(){const{mutateAsync:e}=(0,D.QW)(o.pOE),t=fe();return{setWorkOrderJob:async i=>{var n;try{return await e(i),!0}catch(e){const r=e;if(r.isDuplicateException||(null===(n=r.message)||void 0===n?void 0:n.includes("DuplicateException"))){const{device:e,dateCompleted:n,maintenanceType:r}=i;return await t({device:e,dateCompleted:n,maintenanceType:r}),!1}throw e}}}}function be(){const{mutateAsync:e}=(0,D.JQ)(o.pOE),t=fe();return{addWorkOrderJob:async i=>{var n;try{return await e(i)}catch(e){const r=e;if(r.isDuplicateException||(null===(n=r.message)||void 0===n?void 0:n.includes("DuplicateException"))){const{device:e,maintenanceType:n}=i;return await t({device:e,dateCompleted:i.dateCompleted,maintenanceType:n}),null}throw e}}}}function we(){const{myapi:e}=(0,m.Sz)(),{mutateAsync:t}=(0,D.QW)(o.ewl),i=fe();return{setWorkOrder:async n=>{try{return await t(n),!0}catch(t){if((0,y.u1)(t).includes("DuplicateException")){const t=(await e.get(o.pOE,{search:{workOrderId:(0,r.I8)(n.id)}})).map((e=>i({device:n.device,dateCompleted:n.completedDateTime,maintenanceType:e.maintenanceType})));return await Promise.all(t),!1}throw t}}}}const Ae=e=>{if(!e||0===e.length)return{totalWorkRequests:0,workOrdersToCreate:[]};const t=e.reduce(((e,t)=>{if(!t.device)return e;const i=(0,r.vG)(t.device),n=(0,r.NS)(t.device),o=(null==n?void 0:n.name)||`Device ${i}`;return e[i]||(e[i]={assetName:o,assetId:i,workRequests:[]}),e[i].workRequests.push(t),e}),{}),i=[];return Object.values(t).forEach((e=>{const t=e.workRequests.filter(Q).map((()=>({assetName:e.assetName,assetId:e.assetId,workRequestCount:1}))),n=e.workRequests.filter((e=>!Q(e)));i.push(...t),n.length>0&&i.push({assetName:e.assetName,assetId:e.assetId,workRequestCount:n.length})}
1)),{totalWorkRequests:e.length,workOrdersToCreate:i}};function Ee(){const{mutateAsync:e}=function(){const e=(0,l.jE)(),{myapi:t,currentUser:i}=(0,m.Sz)(),n=Re();return(0,d.n)({mutationFn:async({workRequest:e})=>{const{deviceId:r,deviceName:o,currentOdometerInMeters:a,currentEngineHoursInHours:s}=De(e);if(!n(r,o,a,s)){const e=new Error("Device readings validation failed");throw e.name="ValidationError",e.silent=!0,e}return ee(e,t,i.displayCurrency)},onSuccess:async()=>{await ie(e)}})}(),{myapi:t,goToPage:i,currentUser:n,errorHandler:r,showAlert:o}=(0,m.Sz)(),a=Re();return(0,c.useCallback)((async s=>{var l;try{if(void 0===s)return;const o=(null===(l=s.maintenanceType)||void 0===l?void 0:l.customSource)===T.hD.CleanTruckCheck;if(o){const{deviceId:e,deviceName:t,currentOdometerInMeters:i,currentEngineHoursInHours:n}=De(s);if(!a(e,t,i,n))return}const d=o?await te(s,t,n.displayCurrency):await e({workRequest:s});o||await re({workRequest:s,orderId:d,myApi:t,displayCurrency:n.displayCurrency,errorHandler:r}),i("maintenanceWorkOrderDetails",{id:d})}catch(e){if(e&&"object"==typeof e&&"silent"in e&&e.silent)return;b.qE.includes((0,y.WY)(e))?await r(e):o((0,b.W)(e))}}),[e,t,n.displayCurrency,r,i,o,a])}function ke({periodArg:e,toLocalDateTime:t,translate:i,weekStartsOnSunday:n,toReverseOffsetDateTime:o,setArg:a,argKey:s}){const l=(0,c.useRef)(!1),d=(0,c.useCallback)((e=>{if(!e)return;const a=(0,u.y4)(e,t,i,n,o);return a?{from:(0,r.qd)(a.from),to:(0,r.qd)(a.to),label:a.label}:void 0}),[t,i,n,o]),h=(0,c.useMemo)((()=>{if(!e)return;if(e.from&&e.to)return e;const t=e.period;return t?d(t):void 0}),[e,d]);return(0,c.useEffect)((()=>{!l.current&&h&&(null==e?void 0:e.period)&&!(null==e?void 0:e.from)&&(l.current=!0,a(s,h))}),[h,e,a,s]),{computedDatePeriod:h}}const Oe=(e,t,i,n=[])=>{const r=(0,F.jI)(geotab.getSharedVariable("default").currentUser,x.O5.NEW_FAULTS_PAGE);return{name:r?"faults":"engineFaults",state:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e&&{devices:[e]}),(t||i)&&{dateRange:Object.assign(Object.assign({},t&&{startDate:t}),i&&{endDate:i})}),r&&{sources:N.u$.Vehicle}),r&&e&&{viewBy:"asset"}),n.length>0&&{severity:n})}},Me="-";function Le(e,t,i){return[e,t,i].filter(Boolean).join("_").replace(/[^a-zA-Z0-9\-_]/g,"")}const Pe={ASSET_MAINTENANCE:"assetMaintenance",MAINTENANCE_OVERVIEW:"maintenanceOverview"},Fe=e=>e.length>0?e.map((e=>(0,b.Ob)(e))).join(", "):"",xe=e=>e.length>0?e.map((e=>(0,b.KG)(e))).join(", "):"",Ne=e=>e.length>0?e.map((e=>(0,w.Bj)(w.GZ[e]))).join(", "):"",Be=async(e,t,i)=>{if(0===e.length)return"";try{return(await Promise.all(e.map((e=>t.getById(o.eYJ,(0,r.I8)(e)))))).map((e=>ue(i,e))).join(", ")}catch(t){return e.join(", ")}},Ue=(e,t)=>{if(!e)return"";const i=(0,k.Ay)(e).getAllDays();return void 0===i||i<0?"":0===i?t("DueToday"):14===i?t("NextTwoWeeks"):`${i} ${t("fullDays")}`},He=(e,t)=>e?`${Math.round(t.toLocalDistance(e))} ${t.getDistanceAbbreviation()}`:"",Ve=(e,t)=>{if(!e)return"";const i=(0,k.Ay)(e).getAllHours();return i?`${i} ${t("fullHours")}`:""},_e=(e,t)=>t((0,O.kZ)(null==e?void 0:e.fromDate)?"Yes":"No"),We=(e,t)=>e?(0,u.Fq)(e,t):"",qe=e=>e&&e.length>0?e.map((e=>({id:e}))):void 0,Ge=e=>(e||[]).map((e=>e.id)).sort(),je=e=>e.every((([e,t])=>(0,E.n)(e,t)))},66337(e,t,i){i.d(t,{Gb:()=>w,IO:()=>L,LJ:()=>k,Y$:()=>A,j6:()=>P,k7:()=>M,nh:()=>T,pl:()=>R});var n=i(49793),r=i(27439),o=i(12802),a=i(61133),s=i(15100),l=i(80862),d=i(29992),c=i(2728),u=i(26033),h=i(33725),p=i(99544),m=i(50405),g=i(39753),S=i(27501),v=i(38707),I=(i(44654),i(94996)),y=i(43643),f=(i(27850),i(25264)),D=i(88327),C=i(44755);const R=/^(geotab|app|system|legacy):/;function T(e){return e.replace(R,"")}const b=[{id:"1",page:"maintenanceWorkRequest",summary:()=>D.a.requests()},{id:"2",page:"maintenanceWorkOrder",summary:()=>D.a.orders()},{id:"3",page:"maintenanceWorkJob",summary:()=>D.a.jobs()}];function w(e){const t=(0,f.ph)(e,f.KB.View),i=(0,f.n3)(e,f.KB.View);return b.filter((e=>"1"===e.id?t:i))}const A=e=>{const{goToPage:t,urlState:i}=(0,v.Sz)(),r=e.tabsData.map((e=>Object.assign(Object.assign({},e),{name:e.summary()}))),o=e.active.toString(),[a,s]=(0,m.useState)(o);return(0,m.useEffect)((()=>{s(o)}),[o]),(0,n.jsx)(g.$M,{page:e.addinPage||"",tabsClassName:"m9e-page__remove-border-bottom",tabs:r,activeTabId:a,onTabChange:function(e){const n=r.findIndex((t=>t.id===e));if(-1!==n){s(e);const o=i.getUrlState(),a={};void 0!==(null==o?void 0:o.groups)&&(a.groups=o.groups),void 0!==(null==o?void 0:o.assets)&&(a.assets=o.assets),void 0!==(null==o?void 0:o.showArchived)&&(a.showArchived=o.showArchived),t(r[n].page,a)}else s(e)},children:r.map((e=>(0,n.jsx)("div",{id:`panel-${e.id}`,role:"tabpanel","aria-labelledby":e.id,hidden:!0},e.id)))})};function E(e,t){const i=R.test(e),n=R.test(t);return i&&!n?-1:!i&&n?1:e.localeCompare(t)}A.displayName="Tabs";
1const k=({categories:e})=>{let t=(0,m.useMemo)((()=>{let t=null==e?void 0:e.filter((e=>""!==e.trim()));return!(0,I.kZ)(t)&&(null==t?void 0:t.length)>1&&(t=t.filter((e=>!e.match(R)))),null==t?void 0:t.sort(E)}),[e]);return void 0!==t&&t.length>0&&""!==t[0]?(0,n.jsx)("div",{className:"m9e-category-cell",children:t.map((e=>(0,n.jsx)(c.a,{children:T(e)},e)))}):null};function O(e,t,i,n){t>0?e.push(`${D.a.dueIn()} ${t} ${n(i)}`):e.push(`${D.a.overdueBy()} ${-t} ${n(i)}`)}function M(e,t,i,r){const o=[],a="km"===t.getDistanceAbbreviation();if(!e)return"";if(!0===e.requiresCalculation)return function(e,t,i){const r=e.device,o="string"==typeof r?r:null==r?void 0:r.id,a=o&&i?i.get(String(o)):null;return a&&!1===a.isDeviceCommunicating?(0,n.jsx)(h.m,{alignment:"top-right",className:"m9e-tooltip-wide",trigger:(0,n.jsxs)("span",{className:"m9e-status-warning",children:[(0,n.jsx)(d.i,{size:p.D.Large,className:"zenith-form__field-label-warning-icon"}),D.a.deviceOfflineCalculating()]}),children:(0,n.jsxs)("div",{children:[D.a.deviceOfflineCalculatingDetails(),(null==a?void 0:a.dateTime)&&(0,n.jsxs)("div",{children:[D.a.lastCommunication(),": ",t.toLocalDateTime(a.dateTime).toLocaleString()]})]})}):(0,n.jsx)(h.m,{alignment:"top-right",size:"auto",trigger:(0,n.jsxs)("span",{children:[D.a.calculating()," ",(0,n.jsx)(l.a,{size:p.D.Large,className:"zenith-form__field-label-info-icon"})]}),children:D.a.calculatingNextDueDetails()})}(e,t,r);if(e.dueOnDate){var s=(0,S.Ne)(new Date,t.toLocalDateTime(e.dueOnDate));s=s>=0?Math.floor(s):s%1>=-.5?Math.ceil(s):Math.floor(s),O(o,s,"days",i)}if(a&&void 0!==e.serviceDueInKilometers?O(o,e.serviceDueInKilometers,"km",i):void 0!==e.serviceDueInMiles&&O(o,e.serviceDueInMiles,"miles",i),void 0!==e.serviceDueInEngineHours){const t=(0,C.pO)(e.serviceDueInEngineHours);O(o,Number(t),"hours",i)}if(void 0!==e.snoozeUntilDate&&void 0!==e.snoozeDate&&t.toLocalDateTime(e.snoozeUntilDate.toString())>t.toLocalDateTime(new Date)){const i=(0,S.Ne)(t.toLocalDateTime(e.snoozeDate),t.toLocalDateTime(e.snoozeUntilDate));o.push(function(e,t){if(void 0===t)return"";switch(e){case 1:return D.a.snoozedFor1DayOnDate().replace("{date}",t);case 7:return D.a.snoozedFor7DaysOnDate().replace("{date}",t);case 30:return D.a.snoozedFor30DaysOnDate().replace("{date}",t);default:return""}}(i,(0,C.mf)(e.snoozeDate,t)))}0===o.length&&o.push("-");const c=[];return o.forEach(((e,t)=>{c.push(e),t<o.length-1&&c.push((0,n.jsx)("br",{},`br-${t}`))})),(0,n.jsx)(n.Fragment,{children:c})}const L=({entity:e})=>{var t,i;const{hasAccessTo:l}=(0,v.Sz)(),{data:d,isLoading:c}=(0,y.o2)(s._QE,null===(t=(0,r.NS)(e))||void 0===t?void 0:t.id,{enabled:!!e&&l("ZoneList",{name:a.Xj.Zones,level:o.hx.FeatureView})&&"string"!=typeof e});return l("ZoneList",{name:a.Xj.Zones,level:o.hx.FeatureView})?c?(0,n.jsx)(u.E,{type:"pill"}):(0,I.kZ)(d)?void 0:null!==(i=d.name)&&void 0!==i?i:"":D.a.unknown()},P=(e,t,i)=>e.requiresCalculation&&!t?(0,n.jsx)(u.E,{type:"pill"}):i},88327(e,t,i){i.d(t,{a:()=>r});var n=i(95004);const r=(0,n.Mz)({accept:(0,n.Sh)("Accept"),accidentReported:(0,n.Sh)("Collision reported"),actionRequired:(0,n.Sh)("Action Required"),actions:(0,n.Sh)("Actions"),active:(0,n.Sh)("Active"),add:(0,n.Sh)("Add"),addAll:(0,n.Sh)("Add all"),addAllPending:(0,n.Sh)("All pending ({0})"),addAnyRelevantFilesSuchAsDiagramsOrPhotos:(0,n.Sh)("Add any relevant files, such as diagrams or photos. Remember to clearly name the files before uploading to find them easily in the future."),addAnyRelevantNotesOrFiles:(0,n.Sh)("Add any relevant files, such as diagrams or photos. We recommend that you clearly name the files before uploading."),addAssetGroupsAdvice:(0,n.Sh)("Only the assets that are currently in the group you select are assigned. New assets added later won't be included automatically, so you'll need to add them manually."),addAssets:(0,n.Sh)("Add Assets"),addingJobs:(0,n.Sh)("Adding the following jobs to orders: {0}"),addingOrders:(0,n.Sh)("Adding orders"),addingRequests:(0,n.Sh)("Adding requests"),addJob:(0,n.Sh)("Add Job"),addJobFromDefect:(0,n.Sh)("This list only shows defects that have not been assigned to a job. Select a defect for the job."),addJobs:(0,n.Sh)("Add jobs"),addJobsToCompletedOrderTitle:(0,n.Sh)("This work order is already complete"),addJobsToCompletedOrderBody:(0,n.Sh)("Any new jobs you add will also be marked as complete automatically"),addN:(0,n.Sh)("Add {0}"),addNewUserPlus:(0,n.Sh)("+ New user"),addNotificationRule:(0,n.Sh)("Add notification rule"),addSchedule:(0,n.Sh)("Add Schedule"),addTaxToTotal:(0,n.Sh)("Add tax to total"),addTaxToTotalTooltip:(0,n.Sh)("When enabled, this adds tax on top of the costs entered. When disabled, the costs entered already include tax."),addWorkOrder:(0,n.Sh)("Add work order"),addWorkRequest:(0,n.Sh)("Add work request"),addZone:(0,n.Sh)("+ Zone"),advancedDetails:(0,n.Sh)("Advanced details"),all:(0,n.Sh)("All"),allCurrencyValuesWillBeConverted:(0,n.Sh)("Currency values will be converted and displayed in the user's preferred currency. Exchange rates used in currency conversions are from the Bank of Canada."),allWorkRequestsRelatedToThisAutomationWillBeDeleted:(0,n.Sh)("All existing work requests related to this automation will be deleted."),allWorkRequestsWillBeMarkedAsCompleted:(0,n.Sh)("All Requests will be marked as completed on the selected date."),amount:(0,n.Sh)("Amou
1nt"),andMore:(0,n.Sh)("Not listed: {0}"),archive:(0,n.Sh)("Archive"),archived:(0,n.Sh)("Archived"),assignAssetAriaLabel:(0,n.Sh)("Assign asset to work order"),archiveScheduleAssetsWillBeUnassigned:(0,n.Sh)("Assets will be unassigned from this schedule. Assets can be reassigned if the schedule is restored."),archiveScheduleJobsWillRemainVisible:(0,n.Sh)("Completed jobs will remain visible in work orders. To view archived jobs, enable the 'Include archived data' filter on the Jobs page."),archiveScheduleMessage:(0,n.Sh)("Archive this schedule. This will stop all future maintenance reminders. This action can be undone."),archiveScheduleWorkRequestsDeleted:(0,n.Sh)("All work requests related to this schedule will be deleted."),areYouSureEditAssignations:(0,n.Sh)("All selected assets will be updated with saved changes."),areYouSureRemoveAssignations:(0,n.Sh)("All selected assets will be removed from the schedule."),areYouSureRemoveSchedule:(0,n.Sh)("Are you sure you want to delete this schedule?"),areYouSureUnarchiveSchedule:(0,n.Sh)("Restore schedule"),asset:(0,n.Sh)("Asset"),assetUnit:(0,n.Sh)("asset"),assetHasInvalidReadings:(0,n.Sh)("Asset {0} has invalid odometer or engine hours readings"),assetHealth:(0,n.Sh)("Asset Health"),assetInspection:(0,n.Sh)("Asset Inspection"),assetInspections:(0,n.Sh)("Asset Inspections"),assetName:(0,n.Sh)("Asset name"),assetRemoved:(0,n.Sh)("Asset removed"),assets:(0,n.Sh)("Assets"),assetsUnit:(0,n.Sh)("assets"),assetsAdded:(0,n.Sh)("Assets added"),assetsDetail:(0,n.Sh)("Asset Details"),assetsNotInSchedule:(0,n.Sh)("{0} assets are not on the {scheduleName} schedule."),assetsRemoved:(0,n.Sh)("Assets removed"),assetsSelected:(0,n.Sh)("Assets selected:"),assetsUpdated:(0,n.Sh)("Assets updated"),assetUpdated:(0,n.Sh)("Asset updated"),assignAssetModalDescription:(0,n.Sh)("Select the asset for the uploaded invoice"),assigned:(0,n.Sh)("Assigned"),assignedSchedules:(0,n.Sh)("Assigned schedules"),assignedTo:(0,n.Sh)("Assigned to"),attachAMaximumOf10RelatedMaintenanceDocuments:(0,n.Sh)("Attach up to 10 related maintenance documents. Each file has a 10 MB size limit."),autoCreateWorkRequests:(0,n.Sh)("Auto-create work requests"),automaticallyAddAssetsToTheSchedule:(0,n.Sh)("Automatically associate unassigned assets with detected schedules."),automaticallyCreateWorkRequestsFromAssetInspections:(0,n.Sh)("Automatically create work requests from Asset Inspections"),automaticFilterApplied:(0,n.Sh)("Default Date Filter Applied"),availableTokens:(0,n.Sh)("Available Tokens"),averageDays:(0,n.Sh)("Average days"),averageDowntime:(0,n.Sh)("Average Downtime"),avgDowntimeDays:(0,n.Sh)("Average downtime (days)"),body:(0,n.Sh)("Body"),breakdown:(0,n.Sh)("Breakdown"),breakdownDetails:(0,n.Sh)("Breakdown details"),breakdownUnit:(0,n.Sh)("breakdown"),breakdownRate:(0,n.Sh)("Breakdown Rate"),breakdownRateOverTime:(0,n.Sh)("Breakdown rate over time"),breakdownsPerDistance:(0,n.Sh)("Breakdowns/{0} {1}"),breakdownsUnit:(0,n.Sh)("breakdowns"),breakdownTrends:(0,n.Sh)("Breakdown Trends"),bulkActionCompleteNow:(0,n.Sh)("Bulk action: Complete Order"),bulkActionCreateWorkOrder:(0,n.Sh)("Bulk action: Create Order"),bulkActionSkip:(0,n.Sh)("Bulk action: skip"),bulkActionSnooze:(0,n.Sh)("Bulk action: snooze"),bulkImportExcelErrorName:(0,n.Sh)("Maintenance Work Orders Bulk Import Error.xlsx"),bulkImportExcelName:(0,n.Sh)("Maintenance Work Orders Bulk Import.xlsx"),bulkImportOrdersSuccess:(0,n.Sh)("Work orders uploaded"),bulkUpload:(0,n.Sh)("Import existing records"),calculating:(0,n.Sh)("Calculating"),calculatingNextDueDetails:(0,n.Sh)("Calculating details for next due maintenance based on a recent asset change in the maintenance schedule."),cancel:(0,n.Sh)("Cancel"),cancelBulkImportConfirmation:(0,n.Sh)("If you cancel now, all orders created up to this point will be deleted."),canceled:(0,n.Sh)("Canceled"),cancelImport:(0,n.Sh)("Cancel import"),cancelling:(0,n.Sh)("Canceling process"),cancelUpload:(0,n.Sh)("Cancel upload"),cannotDeleteWorkActionRequiredDescription:(0,n.Sh)("Remove asset {assetName} from schedule {scheduleName} before deleting."),cannotDeleteWorkJobDialog:(0,n.Sh)("Cannot Delete Job"),cannotDeleteWorkJobDialogDescription:(0,n.Sh)("You can't delete this job because it's linked to Maintenance Schedule '{scheduleName}' for asset '{assetName}'. This link is used to calculate the next scheduled maintenance."),cannotDeleteWorkOrderDialog:(0,n.Sh)("Cannot Delete Work Order"),cannotDeleteWorkOrderDialogDescription:(0,n.Sh)("A job linked to Maintenance Schedule '{scheduleName}' for asset '{assetName}' is preventing you from deleting this work order"),cannotDeleteWorkOrderDeletionLockedDescription:(0,n.Sh)("This work order cannot be deleted because it has active deleti
1on locks. Contact the integrator holding the lock or wait for the lock to expire."),capitalImprovement:(0,n.Sh)("Capital improvement"),categories:(0,n.Sh)("Categories"),changeMaintenanceWorkOrderStatusWarning:(0,n.Sh)("You're about to mark this work order as {status}. Once saved, this status will be locked and can't be changed. Do you want to continue?"),checkAtNextHalt:(0,n.Sh)("Check at next halt"),checkImmediately:(0,n.Sh)("Check immediately"),clearFilter:(0,n.Sh)("Clear filter"),cleanTruckCheckFailure:(0,n.Sh)("Clean Truck Check Failure"),clearSelectedWorkOrdersFilter:(0,n.Sh)("Clear the filter to view all work orders."),cleared:(0,n.Sh)("Cleared"),close:(0,n.Sh)("Close"),closedDate:(0,n.Sh)("Closed date"),closedWorkOrders:(0,n.Sh)("Closed work orders"),comments:(0,n.Sh)("Comments"),complete:(0,n.Sh)("Complete"),completed:(0,n.Sh)("Completed"),completedWorkOrderCreated:(0,n.Sh)("Completed Order created"),completeNow:(0,n.Sh)("Complete Order"),completeWorkOrderAutomatically:(0,n.Sh)("You are about to mark this work order as Completed. This will also mark all remaining open jobs on this order as Completed. This action cannot be undone, are you sure?"),completingOrders:(0,n.Sh)("Completing orders"),completionDateConflictsWithJobs:(0,n.Sh)("One or more jobs were completed after this date. The latest job was completed on {0}."),conditions:(0,n.Sh)("Conditions"),configuration:(0,n.Sh)("Configuration"),confirm:(0,n.Sh)("Confirm"),confirmAction:(0,n.Sh)("Confirm action"),confirmed:(0,n.Sh)("Confirmed"),continue:(0,n.Sh)("Continue"),continueToDismissFaults:(0,n.Sh)("Dismiss Faults"),continueWithoutSaving:(0,n.Sh)("Continue without saving"),controller:(0,n.Sh)("Controller"),controllerOfFaultData:(0,n.Sh)("Controller of fault data"),controllers:(0,n.Sh)("Controllers"),cost:(0,n.Sh)("Cost"),costCurrency:(0,n.Sh)("Cost currency"),costTotalCombinesOrderAndJobCosts:(0,n.Sh)("Total combines costs entered on jobs and any costs added to the order"),create:(0,n.Sh)("Create"),createFromInvoice:(0,n.Sh)("Create from invoice"),createFromInvoiceDescription:(0,n.Sh)("Upload invoices to create work orders."),createFromInvoiceDescriptionMultiple:(0,n.Sh)("If you have multiple invoices, upload each file individually."),createFromInvoiceFileTooLarge:(0,n.Sh)("File size exceeds limit of {0}"),createFromInvoiceInvalidFile:(0,n.Sh)("Upload supported files: {0}"),createFromInvoiceMaxFiles:(0,n.Sh)("Maximum file uploads: {0}"),createFromInvoiceSelectedFiles:(0,n.Sh)("Selected files"),createFromInvoiceSupportedFormats:(0,n.Sh)("Supported formats: PDF, JPG, PNG"),createFromInvoiceTitle:(0,n.Sh)("Create from invoice"),createFromInvoiceAiDisclaimer:(0,n.Sh)("Results are generated by AI and may contain inaccuracies."),createFromInvoiceUpload:(0,n.Sh)("Upload"),createFromInvoiceUploading:(0,n.Sh)("Uploading"),createFromScratch:(0,n.Sh)("Create your own"),createSchedulesTo:(0,n.Sh)("Create schedules to keep track of maintenance needs."),createWorkOrder:(0,n.Sh)("Create work order"),creationMethod:(0,n.Sh)("Creation method"),creationMethodBulkImport:(0,n.Sh)("Imported record"),creationMethodInvoiceScanning:(0,n.Sh)("Invoice uploaded"),creationMethodManual:(0,n.Sh)("Manually created"),critical:(0,n.Sh)("Critical"),currency:(0,n.Sh)("Currency"),currentEngineHours:(0,n.Sh)("Current engine hours"),currentlyActive:(0,n.Sh)("Currently active"),currentOdometer:(0,n.Sh)("Current odometer"),currentStatus:(0,n.Sh)("Current status"),customOptions:(0,n.Sh)("Custom options"),daily:(0,n.Sh)("Daily"),database:(0,n.Sh)("Database"),dataInsight:(0,n.Sh)("Data insight"),date:(0,n.Sh)("Date"),dateCompleted:(0,n.Sh)("Date completed"),dateCreated:(0,n.Sh)("Date created"),dateRange:(0,n.Sh)("Date range"),dateStarted:(0,n.Sh)("Date started"),dateTimeFirstException:(0,n.Sh)("Date and time (first event)"),day:(0,n.Sh)("day"),dayOfMonth:(0,n.Sh)("Day of month"),dayOfWeek:(0,n.Sh)("Day of week"),days:(0,n.Sh)("days"),daysBeforeDue:(0,n.Sh)("days before due"),daysCaps:(0,n.Sh)("Days"),daysFrequencyDescription:(0,n.Sh)("Frequency based on days"),daysUpper:(0,n.Sh)("Days"),defect:(0,n.Sh)("Defect"),defectList:(0,n.Sh)("Defect list"),defectLists:(0,n.Sh)("Defect Lists"),defectReport:(0,n.Sh)("Defect Report"),defectsFound:(0,n.Sh)("Defects found"),delete:(0,n.Sh)("Delete"),deleteExistingWorkRequestsFromInspections:(0,n.Sh)("Delete existing Work Requests from inspections"),deleteFile:(0,n.Sh)("Delete File"),deleteMaintenanceJob:(0,n.Sh)("Delete job"),deleteMaintenanceWorkOrder:(0,n.Sh)("Delete work order"),deleteScheduleJobsDeleted:(0,n.Sh)("All jobs related to this schedule will be deleted. Work orders may become empty if they contained only one job."),deleteScheduleMessage:(0,n.Sh)("Delete this schedule. This action is permanent and cannot be undone."),deleteScheduleNotificationsDeleted:(0,n.Sh)("All notifications related to this schedule will be deleted."),deleteScheduleWorkRequestsDeleted:(0,n.Sh)("All work requests related to this schedule will be deleted."),deletionLockActiveLocksLabel:(0,n.Sh)("Active locks:"),deletionLockTitle:(0,n.Sh)("Work order is locked"),description:(0,n.Sh)("Description"),details:(0,n.Sh)("Details"),device:(0,n.Sh)("Device"),deviceComments:(0,n.Sh)("Device Comments"),deviceGroups:(0,n.Sh)("Device Groups"),deviceId:(0,n.Sh)("Device ID"),deviceIdentifier:(0,n.Sh)("Device Serial Number, VIN, or Asset Name*"),deviceName:(0,n.Sh)("Device name"),devicesNotInSchedule:(0,n.Sh)("Some maintenance jobs in your file are not linked to any schedule. We recommend linking them to get reminders about future maintenance. Do you want us to automatically link maintenance jobs and schedules?"),deviceOfflineCalculating:(0,n.Sh)("Device offline"),deviceOfflineCalculatingDetails:(0,n.Sh)("The device is currently offline. Maintenance details are based on the last known data. Ensure the device is properly installed. Real-time data reporting will resume once the device is back online."),deviceStatusLabel:(0,n.Sh)("Device status"),deviceStatusOffline:(0,n.Sh)("Offline"),deviceStatusOnline:(0,n.Sh)("Online"),diagnostic:(0,n.Sh)("Diagnostic"),diagnosticName:(0,n.Sh)("Diagnostic name"),diagnostics:(0,n.Sh)("Diagnostics"),diagnosticSeverity:(0,n.Sh)("Diagnostic severity"),dailyDowntimeRate:(0,n.Sh)("Daily downtime rate"),dismiss:(0,n.Sh)("Dismiss"),dismissed:(0,n.Sh)("Dismissed"),dismissFault:(0,n.Sh)("Dismiss fault"),dismissFaults:(0,n.Sh)("Dismiss faults"),distance:(0,n.Sh)("Distance"),distanceDrivenSinceFault:(0,n.Sh)("Distance driven since fault"),doYouWantToPermanentlyDeleteThisAttachedDocument:(0,n.Sh)("Do you want to permanently delete this attached document?"),download:(0,n.Sh)("Download"),DownloadFileShowingErrors:(0,n.Sh)("Download file showing errors"),downloadTemplate:(0,n.Sh)("Download template file"),downloadYourReportNow:(0,n.Sh)("Download your report now, or go to the My Reports page for more details."),activeDowntimes:(0,n.Sh)("Active downtimes"),downtimeDays:(0,n.Sh)("Downtime (days)"),downtimePresent:(0,n.Sh)("Present"),downtimeEvents:(0,n.Sh)("Downtime events"),downtimeXMore:(0,n.Sh)("{0} more"),detectedDowntimeEvents:(0,n.Sh)("Detected Downtime Events"),detectedDowntimeReport:(0,n.Sh)("Detected Downtime Report"),downtimeReport:(0,n.Sh)("Downtime report"),downtimeCostRateMustBePositive:(0,n.Sh)("Enter a cost greater than 0"),downtimeCostRateRequired:(0,n.Sh)("Enter a daily rate to calculate downtime cost"),downtimeCostRateMustBeWithinRange:(0,n.Sh)("Enter a cost between 0 and 1,000,000"),downtimeCostSettings:(0,n.Sh)("Downtime cost settings"),downtimeCostSettingsDescription:(0,n.Sh)("Configure the rates used to estimate downtime cost. Values are displayed in your profile currency."),downtimeCostSettingsWarning:(0,n.Sh)("Changes here apply to all users in your organization and recalculate downtime costs across all historical reports."),downtimeCostBenchmark:(0,n.Sh)("Benchmark is {0}/day"),downtimeCostConvertedBenchmark:(0,n.Sh)("Approximately {0}/day. Benchmark: {1}/day"),downtimeCostConversionUnavailable:(0,n.Sh)("Currency conversion is temporarily unavailable"),totalDowntimeCostConversionUnavailableTooltip:(0,n.Sh)("Currency conversion is temporarily unavailable. The value remains in the settings currency."),downtimeCostLastUpdated:(0,n.Sh)("Last updated by: {0} on {1}"),downtimeCostSettingsAttribution:(0,n.Sh)("The industry benchmark is based on $300 USD/day. The Bank of Canada provides the exchange rates. See {TermsAndConditions} for more details."),downtimeDetails:(0,n.Sh)("Downtime details"),downtimeOverFourteenDays:(0,n.Sh)("Downtime over 14 days"),downtimeStatus:(0,n.Sh)("Downtime status"),downtimeStatusActive:(0,n.Sh)("Down"),downtimeStatusResolved:(0,n.Sh)("Resolved"),duplicate:(0,n.Sh)("Duplicate"),duplicatedDocument:(0,n.Sh)("Work order already exists"),duplicateJobsSkipped:(0,n.Sh)("Duplicate jobs ski
1pped during import: {0}"),duplicateJobsSkippedGuidance:(0,n.Sh)("The following jobs were not imported because they share the same device, maintenance type, and completion date as existing records. To import them, adjust the completion timestamps to make each record unique."),driverReported:(0,n.Sh)("Driver reported"),driversReport:(0,n.Sh)("Driver's report"),dropFileHereOrClickToBrowse:(0,n.Sh)("Drop file here or click to browse"),dueIn:(0,n.Sh)("Due in"),dueOnDate:(0,n.Sh)("Due on date"),duration:(0,n.Sh)("Duration"),dynamic:(0,n.Sh)("Dynamic"),edit:(0,n.Sh)("Edit"),editDetails:(0,n.Sh)("Edit Details"),editJob:(0,n.Sh)("Edit job"),editMessage:(0,n.Sh)("Edit message"),editWorkRequest:(0,n.Sh)("Edit work request"),effectOnComponent:(0,n.Sh)("Effect on Component"),electricalSystemRatingInsight:(0,n.Sh)("Electrical System Rating Insight"),emailToGroup:(0,n.Sh)("Email to group"),emailToUser:(0,n.Sh)("Email to user"),emergency:(0,n.Sh)("Emergency"),emptyScheduleTable:(0,n.Sh)("This schedule has no assets"),enabled:(0,n.Sh)("Enabled"),engineHours:(0,n.Sh)("Engine hours"),engineHoursBeforeDue:(0,n.Sh)("engine hours before due"),engineHoursExceedsRealisticValues:(0,n.Sh)("Condition engine hours exceeds realistic values (limit: 596,523 hours)."),engineHoursFrequencyDescription:(0,n.Sh)("Frequency based on engine hours"),engineHoursReading:(0,n.Sh)("Engine hours reading"),engineHoursReadingCannotBeNegative:(0,n.Sh)("Engine hours value cannot be negative."),engineHoursReadingExceedsMaximumValue:(0,n.Sh)("Engine hours reading exceeds maximum allowed value ({0} hours)"),enrollUnenrollVehicles:(0,n.Sh)("Enroll or unenroll vehicles"),error:(0,n.Sh)("Error"),errorFetchingDeviceData:(0,n.Sh)("Failed to load asset odometer and engine hours"),errorFetchingWorkJobDetails:(0,n.Sh)("Error fetching work job details"),errorFetchingWorkRequestDetails:(0,n.Sh)("Error fetching work request details"),errorFoundOnRows:(0,n.Sh)("The file you uploaded cannot be imported due to multiple errors. You can download the file and view the error details by clicking the button below. Please correct the file and re-upload it."),eventDate:(0,n.Sh)("Event date"),eventDescription:(0,n.Sh)("Event description"),event:(0,n.Sh)("Event"),eventUnit:(0,n.Sh)("event"),eventsUnit:(0,n.Sh)("events"),events:(0,n.Sh)("Events"),eventType:(0,n.Sh)("Event type"),everyDays:(0,n.Sh)("Every {0} days"),everyMonths:(0,n.Sh)("Every {0} months"),everyMonthsOnDay:(0,n.Sh)("Every {0} months on day {1}"),everyWeeks:(0,n.Sh)("Every {0} weeks"),everyWeeksOnDay:(0,n.Sh)("Every {0} weeks on {day of the week}"),everyYears:(0,n.Sh)("Every {0} years"),excelImportErrorDate:(0,n.Sh)("You must enter a date."),excelImportErrorEngineHours:(0,n.Sh)("The Engine Hours value must be a positive number"),excelImportErrorMaintenanceName:(0,n.Sh)("You must enter a maintenance name."),excelImportErrorOdometerReading:(0,n.Sh)("The Odometer Reading value must be a positive number."),exceptionCount:(0,n.Sh)("Event count"),excludingTaxes:(0,n.Sh)("Excluding taxes"),existingWorkOrder:(0,n.Sh)("Existing work order"),expirationDate:(0,n.Sh)("Expiration date"),failureMode:(0,n.Sh)("Failure Mode"),fault:(0,n.Sh)("Fault"),faultCode:(0,n.Sh)("Fault Code"),faultCycleSummary:(0,n.Sh)("Fault Cycle Summary"),faultCycleSummaryDescription:(0,n.Sh)("View relevant information about the current DTC cycle related to the fault you selected, including the state (Active, Pending, or Confirmed), the dates it was first active and pending, and the distances traveled in each state."),faultDetails:(0,n.Sh)("Fault Details"),faultRichSeverity:(0,n.Sh)("Fault rich severity"),overrideSeverity:(0,n.Sh)("Override severity"),faults:(0,n.Sh)("Faults"),faultsAutoFilterBannerContent:(0,n.Sh)("Only faults from the last 8 hours are shown to ensure faster loading. Adjust the date filter to customize your view."),faultsBetaBannerContent:(0,n.Sh)("You are viewing the new Faults experience. Click Pause to go back to the previous version."),faultsBetaBannerPause:(0,n.Sh)("Pause"),faultsBetaBannerTitle:(0,n.Sh)("The new Faults experience is enabled."),faultsBetaModalContinue:(0,n.Sh)("Keep new experience"),faultsBetaModalNote:(0,n.Sh)("You will lose access to fault enrichment and the new page layout."),faultsBetaModalQuestion:(0,n.Sh)("Are you sure you'd like to go back to the previous version of the Faults experience?"),faultsBetaModalRevert:(0,n.Sh)("Revert"),faultsBetaModalTitle:(0,n.Sh)("Revert to the previous version of Faults?"),faultSeverity:(0,n.Sh)("Fault severity"),faultsTable:(0,n.Sh)("Faults table"),faultSummaryLastSevenDays:(0,n.Sh)("Fault summary (last 7 days)"),feedbackError:(0,n.Sh)("Feedback not submitted, please try again."),feedbackImpactOnComponentPlaceholder:(0,n.Sh)("Provide details to help us improve this effect on component"),feedbackMessage:(0,n.Sh)("Was this information helpful? Provide feedback to help us improve."),feedbackModalPlaceholder:(0,n.Sh)("Provide details to help us improve this rating."),feedbackModalTitleSeverity:(0,n.Sh)("Severity Rated Correctly?"),feedbackNegativeMessage:(0,n.Sh)("We are sorry this information was not helpful. What could we improve?"),feedbackNo:(0,n.Sh)("No, this looks wrong"),feedbackPositiveMessage:(0,n.Sh)("We are glad this information was helpful. Is there anything we could improve?"),feedbackProvide:(0,n.Sh)("Provide Feedback"),feedbackRecommendedActionModalPlaceholder:(0,n.Sh)("Provide details to help us improve this recommended action"),feedbackSelectSeverity:(0,n.Sh)("Select the severity level you believe best describes this fault:"),feedbackThankYou:(0,n.Sh)("Thank y
1ou for your contribution!"),feedbackVerifyImpactOnComponent:(0,n.Sh)("Verify effect on component"),feedbackVerifyRecommendedAction:(0,n.Sh)("Verify recommended action"),feedbackYes:(0,n.Sh)("Yes, this looks correct"),scanningSummaryTileErrorMultiInvoice:(0,n.Sh)("This file seems to contain more than one invoice. If you have multiple invoices, upload each file individually."),scanningSummaryTileErrorGeneric:(0,n.Sh)("File upload failed"),scanningSummaryTileErrorTransient:(0,n.Sh)("File upload failed. Try again."),scanningSummaryTileErrorUnreadable:(0,n.Sh)("We couldn't find any information about the vehicle or maintenance work on this invoice. You may need to manually create this Work Order."),scanningSummaryTileOrderCreated:(0,n.Sh)("Work order created from this invoice: {0}"),scanningSummaryTileWarningDuplicate:(0,n.Sh)("Work order already exists: {0}"),scanningSummaryTileWarningReview:(0,n.Sh)("Work order: {0} is missing some key details. Review the required fields."),scanningSummaryTileWarningReviewMissingAsset:(0,n.Sh)("We couldn't match an asset to this invoice. Select which asset this invoice belongs to."),filterByCreationMethod:(0,n.Sh)("Filter by creation method"),filterByGroup:(0,n.Sh)("Filter by group"),firstActiveFault:(0,n.Sh)("First active fault"),firstPendingFault:(0,n.Sh)("First pending fault"),fmiModes:(0,n.Sh)("FMI modes"),forDetailsPleaseReadOurFull:(0,n.Sh)("For details, please read our full {TermsAndConditions}."),fromJobs:(0,n.Sh)("From jobs"),forSelectedRange:(0,n.Sh)("for selected range"),freeForAllUsers:(0,n.Sh)("Free for all users"),frequency:(0,n.Sh)("Frequency"),frequencyRepeatsDaily:(0,n.Sh)("Daily"),frequencyRepeatsEvery:(0,n.Sh)("Every {0} {1}"),frequencyRepeatsEveryDays:(0,n.Sh)("Every {0} days"),frequencyRepeatsEveryHrs:(0,n.Sh)("Every {0} hrs"),frequencyRepeatsEveryMonthOn:(0,n.Sh)("Every {0} months on day {1}"),frequencyRepeatsEveryMonths:(0,n.Sh)("Every {0} months"),frequencyRepeatsEveryWeeks:(0,n.Sh)("Every {0} weeks"),frequencyRepeatsEveryWeeksOn:(0,n.Sh)("Every {0} weeks on {day of the week}"),frequencyRepeatsEveryYears:(0,n.Sh)("Every {0} years"),frequencyRepeatsMonthly:(0,n.Sh)("Monthly"),frequencyRepeatsMonthlyOn:(0,n.Sh)("Monthly on day {0}"),frequencyRepeatsOr:(0,n.Sh)("or {0} {1}"),frequencyRepeatsOrHrs:(0,n.Sh)("Or {0} hrs"),frequencyRepeatsWeekly:(0,n.Sh)("Weekly"),frequencyRepeatsWeeklyOn:(0,n.Sh)("Weekly on {day of the week}"),frequencyRepeatsYearly:(0,n.Sh)("Yearly"),friday:(0,n.Sh)("Friday"),goToAsset:(0,n.Sh)("Go to asset"),goToJob:(0,n.Sh)("Go to job"),goToMyReports:(0,n.Sh)("Go to My Reports"),goToOrder:(0,n.Sh)("Go to order"),goToOrders:(0,n.Sh)("Go to Orders"),goToScheduleButton:(0,n.Sh)("Go to schedule"),groups:(0,n.Sh)("Groups"),h:(0,n.Sh)("h"),hideFmiModes:(0,n.Sh)("Hide FMI modes"),hideTimesLogged:(0,n.Sh)("Hide times logged"),high:(0,n.Sh)("High"),highestRateOfAtRiskAssets:(0,n.Sh)("Highest Rate of At-Risk Assets"),highestRateOfMultiDowntimeAssets:(0,n.Sh)("Highest Rate of Multi-Downtime Assets"),highestRiskOfBreakdown:(0,n.Sh)("Highest Risk of Breakdown"),highestRiskOfBreakdownTooltip:(0,n.Sh)("Always shows current asset health data. Not affected by the selected date range"),highOrCriticalWorkRequests:(0,n.Sh)("High or critical work requests"),historical:(0,n.Sh)("Historical"),history:(0,n.Sh)("History"),hours:(0,n.Sh)("Hours"),hoursOfLabor:(0,n.Sh)("Hours of labor"),id:(0,n.Sh)("ID"),immediateActionItems:(0,n.Sh)("Immediate Actions"),immediateActionItemsOverview:(0,n.Sh)("Assets with Immediate Actions"),impact:(0,n.Sh)("Impact"),impactedAssets:(0,n.Sh)("Impacted assets"),import:(0,n.Sh)("Import"),importErrorCostCurrencyEmpty:(0,n.Sh)("You must enter a Currency Unit."),importErrorCurrencyUnitDoesNotExist:(0,n.Sh)("The Currency Unit does not exist."),importErrorDateCompletedBeforeStartDate:(0,n.Sh)("The date completed must be after the date started."),importErrorDateCompletedEmpty:(0,n.Sh)("You must enter a date completed."),importErrorDeviceIdentifierDoesNotExists:(0,n.Sh)("The device with the following identifier does not exist: {0}."),importErrorDeviceIdentifierDuplicated:(0,n.Sh)("Several devices found with the following identifier: {0}."),importErrorDeviceIdentifierEmpty:(0,n.Sh)("You must enter a device seri
1al number, a VIN, or an asset name."),importErrorEngineHoursEmpty:(0,n.Sh)("You must enter a valid engine hours number."),importErrorFileCorrupted:(0,n.Sh)("The file you uploaded appears to be corrupted or invalid. Please ensure the file is a valid Excel (.xlsx) file and try again."),importErrorFutureWorkOrderCreationDate:(0,n.Sh)("Work order creation date cannot be in the future"),importErrorHeaderRowDoesNotExist:(0,n.Sh)("Column headers are missing or incorrect. Please ensure that your file contains a header row."),importErrorIdentifiersEmpty:(0,n.Sh)("Device identifier, maintenance name, and maintenance source are required."),importErrorInvalidDate:(0,n.Sh)("The date must follow the ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). For example: 2024-11-30T13:35:00Z"),importErrorInvalidDeviceIdentifier:(0,n.Sh)("Enter a 12-digit serial number, 17-digit VIN, or the asset name."),importErrorInvalidHours:(0,n.Sh)("The hours value must be a positive number."),importErrorInvalidJobStatus:(0,n.Sh)("The Job Status does not exist."),importErrorInvalidLaborsCost:(0,n.Sh)("The Labor Cost value must be a positive number."),importErrorInvalidMaintenanceSource:(0,n.Sh)("Invalid maintenance source."),importErrorInvalidPartsCost:(0,n.Sh)("The Parts Cost value must be a positive number."),importErrorInvalidReasonForRepair:(0,n.Sh)("Reason for repair does not exist."),importErrorInvalidRepairClass:(0,n.Sh)("Repair class does not exist."),importErrorInvalidServiceWorkAccomplished:(0,n.Sh)("The Service Work Accomplished does not exist."),importErrorInvalidSeverity:(0,n.Sh)("Priority does not exist."),importErrorInvalidShippingCost:(0,n.Sh)("The Shipping Cost value must be a positive number."),importErrorInvalidTaxCosts:(0,n.Sh)("The Tax value cannot be negative."),importErrorInvalidVmrsSystemCode:(0,n.Sh)("The VMRS System Code does not exist."),importErrorIWorkOrderIdNotEmpty:(0,n.Sh)("You must enter the Work Order ID."),importErrorJobStatusEmpty:(0,n.Sh)("You must enter a job status."),importErrorMaintenanceSourceDoesNotExists:(0,n.Sh)("The maintenance source with the following name does not exist: {0}."),importErrorMaintenanceSourceEmpty:(0,n.Sh)("Maintenance source is required."),importErrorMultipleDevicesWithIdentifier:(0,n.Sh)("Unable to import. The lookup with the following identifier exists in multiple records: {0}."),importErrorOdometerInvalid:(0,n.Sh)("You must enter a valid odometer number."),importErrorStartDateEmpty:(0,n.Sh)("You must enter a start date."),importErrorTitle:(0,n.Sh)("Data Input Error"),importErrorTooManyRows:(0,n.Sh)("The uploaded Excel file contains more than {0} rows. Please reduce the number of rows to {1} or less and try uploading again. You may need to split your data into multiple files."),importErrorUserDoesNotExists:(0,n.Sh)("The user with the following identifier does not exist: {0}."),importErrorUserDuplicated:(0,n.Sh)("Several users found with the following identifier: {0}."),importErrorWorkOrderIdEmpty:(0,n.Sh)("You must enter a work order reference."),importErrorZoneDoesNotExists:(0,n.Sh)("The zone with the following name does not exist: {0}."),importErrorZoneDuplicated:(0,n.Sh)("Several zones found with the following name: {0}."),importFailed:(0,n.Sh)("Failed"),importHeadersReason:(0,n.Sh)("Reason/Explanation"),importingExistingRecords:(0,n.Sh)("Importing existing records"),importInstructionsColumnName:(0,n.Sh)("Column Name"),importInstructionsColumnType:(0,n.Sh)("Column Type"),importInstructionsColumnTypeMandatory:(0,n.Sh)("Mandatory"),importInstructionsColumnTypeOptional:(0,n.Sh)("Optional"),importInstructionsExplanation:(0,n.Sh)("Explanation"),importInstructionsExplanationsCurrencyUnit:(0,n.Sh)("The currency of the maintenance cost incurred. This field becomes mandatory if any of the cost columns have data."),importInstructionsExplanationsDateCompleted:(0,n.Sh)("Date when the vehicle maintenance was completed."),importInstructionsExplanationsDescription:(0,n.Sh)("Description of the service that was done, if a description is provided."),importInstructionsExplanationsDeviceIdentifier:(0,n.Sh)("A 12-digit device seri
1al number, 17-digit VIN, or asset name found on the Vehicles & Assets page."),importInstructionsExplanationsEngineHoursReading:(0,n.Sh)("Engine Hours at the time vehicle maintenance was performed."),importInstructionsExplanationsEventDescription:(0,n.Sh)("Description of the Maintenance name."),importInstructionsExplanationsJobStatus:(0,n.Sh)("Completed, or Canceled."),importInstructionsExplanationsLaborCost:(0,n.Sh)("The mechanic or workshop maintenance cost."),importInstructionsExplanationsMaintenanceName:(0,n.Sh)("The name of the maintenance. The available options in the dropdown for this column depend on your selection in the source column. If source is scheduled, select the name of the maintenance schedule found on the Maintenance Schedules page. If source is defect, select the name of the defect found on the Defects list page."),importInstructionsExplanationsMaintenanceSource:(0,n.Sh)("Select the source of this maintenance job. Choose Scheduled for planned maintenance originating from a predefined schedule, or Defect for unplanned maintenance addressing a specific issue."),importInstructionsExplanationsMaintenanceTypeName:(0,n.Sh)("Name of maintenance type associated with maintenance reminder."),importInstructionsExplanationsNotes:(0,n.Sh)("Any comments about the vehicle maintenance."),importInstructionsExplanationsOdometerReading:(0,n.Sh)("Odometer at the time vehicle maintenance was performed."),importInstructionsExplanationsPartsCost:(0,n.Sh)("The cost related to changing parts (if applicable)."),importInstructionsExplanationsPriority:(0,n.Sh)("Order in which the Job was completed. From Critical, High, Medium, or Low. Defaults to Low if not specified."),importInstructionsExplanationsServiceWorkAccomplished:(0,n.Sh)("Another VMRS code. 01 - Adjust, 02 - Clean, 03 - Replaced Parts, 08 - Overhaul, 10 - Perform PM, or 24 - Repair or Modify."),importInstructionsExplanationsShippingCost:(0,n.Sh)("Shipping costs for the repair."),importInstructionsExplanationsStartDate:(0,n.Sh)("Date when the vehicle maintenance started."),importInstructionsExplanationsTax:(0,n.Sh)("The tax paid for the maintenance cost."),importInstructionsExplanationsTotalCost:(0,n.Sh)("The total cost for maintenance work completed. This field becomes mandatory if any of the cost columns have data."),importInstructionsExplanationsVMRSSystemCode:(0,n.Sh)("Vehicle Maintenance Reporting Standards (VMRS) codes are a standardized system of alphanumeric codes used to track and categorize maintenance information for vehicles and equipment."),importInstructionsExplanationsWorkOrderAssignedTo:(0,n.Sh)("The username (email) of the person assigned to the work order."),importInstructionsExplanationsWorkOrderID:(0,n.Sh)("Reference/Work Order number associated with maintenance."),importInstructionsHeadersCurrencyUnit:(0,n.Sh)("Currency unit"),importInstructionsHeadersDateCompleted:(0,n.Sh)("Date completed*"),importInstructionsHeadersDescription:(0,n.Sh)("Description"),importInstructionsHeadersDeviceIdentifier:(0,n.Sh)("Device Serial Number, VIN, or Asset Name*"),importInstructionsHeadersEngineHoursReading:(0,n.Sh)("Engine hours reading"),importInstructionsHeadersEventDescription:(0,n.Sh)("Event description"),importInstructionsHeadersJobStatus:(0,n.Sh)("Job status*"),importInstructionsHeadersLaborCost:(0,n.Sh)("Labor cost"),importInstructionsHeadersMaintenanceName:(0,n.Sh)("Maintenance name*"),importInstructionsHeadersMaintenanceTypeName:(0,n.Sh)("Maintenance Type"),importInstructionsHeadersNotes:(0,n.Sh)("Notes"),importInstructionsHeadersOdometerReading:(0,n.Sh)("Odometer reading"),importInstructionsHeadersPartsCost:(0,n.Sh)("Parts cost"),importInstructionsHeadersPriority:(0,n.Sh)("Priority"),importInstructionsHeadersServiceWorkAccomplished:(0,n.Sh)("Service work accomplished"),importInstructionsHeadersShippingCost:(0,n.Sh)("Shipping cost"),importInstructionsHeadersStartDate:(0,n.Sh)("Start date*"),importInstructionsHeadersTax:(0,n.Sh)("Tax"),importInstructionsHeadersTotalCost:(0,n.Sh)("Total cost"),importInstructionsHeadersVMRSSystemCode:(0,n.Sh)("VMRS system code"),importInstructionsHeadersWorkOrderAssignedTo:(0,n.Sh)("User assigned to the work order"),importInstructionsHeadersWorkOrderID:(0,n.Sh)("Work order reference*"),importMaintenanceTypeDuplicated:(0,n.Sh)("The maintenance name '{0}' is duplicated in your file. All maintenance names must be unique."),importMaintenanceTypeInvalidValue:(0,n.Sh)("The job/maintenance name '{0}
1' is not valid, please ensure the asset type matches the defect asset type."),importMaintenanceTypeInvalidFormat:(0,n.Sh)("The maintenance name '{0}' is invalid. Please select the name from the dropdown instead of typing it manually."),importMaintenanceTypeNameDoesNotExist:(0,n.Sh)("This record cannot be created either due to your group access, or because the maintenance schedule/type with the name {0} does not exist."),importMaintenanceTypeNameEmpty:(0,n.Sh)("You must enter a maintenance name."),importMaintenanceTypeNameNotMatchingWithSource:(0,n.Sh)("The maintenance name '{0}' is not valid for the selected source. Please select a name from the list corresponding to the chosen maintenance source."),importOrdersDescription:(0,n.Sh)("Import your maintenance orders by uploading a file using the template provided for download."),importSheet:(0,n.Sh)("Import Sheet"),importSuccessful:(0,n.Sh)("Successful"),importTemplateInstructions:(0,n.Sh)("Instructions"),importTemplateInstructions1:(0,n.Sh)("Each row on the Import Sheet tab represents a maintenance Work Order and a single Job."),importTemplateInstructions10:(0,n.Sh)("Please ensure your Excel file has a maximum of 1500 rows before uploading. If you have more data, please split it into multiple files."),importTemplateInstructions11:(0,n.Sh)("Microsoft Excel is the recommended application for editing the template file. Google Sheets or other applications may not fully support Excel's dynamic data validation, which can lead to errors during the upload."),importTemplateInstructions12:(0,n.Sh)("If an asset isn't already on the selected Schedule, we'll add it for you using the information from this upload as the first record."),importTemplateInstructions13:(0,n.Sh)("All dates must follow the ISO 8601 format (UTC). For example: 2024-11-30T13:35:00Z"),importTemplateInstructions2:(0,n.Sh)("Rows 1 and 2 on the Import Sheet represent column headers and an example row. Do not modify the column headers row. The example row is not required, it can be removed."),importTemplateInstructions4:(0,n.Sh)("Each job is associated with a maintenance type. You must set up maintenance schedules or define defects in the system before referencing them in the upload. The available options in the Job/maintenance name column will depend on your selection in the Job/source column. If you add a new schedule or defect in the system after downloading this template, you will need to re-download the template to see it as an option."),importTemplateInstructions5:(0,n.Sh)("Mandatory columns are indicated with an asterisk (*). You must complete all mandatory columns."),importTemplateInstructions6:(0,n.Sh)("If the value for Odometer Reading or Engine Hours Reading is not available enter 0."),importTemplateInstructions7:(0,n.Sh)("Distance Measurement Unit (km/mile) is based on the option set on the Options page in User options."),importTemplateInstructions8:(0,n.Sh)("If any of the values for an optional column is not available or does not apply, please leave it blank."),importTemplateInstructions9:(0,n.Sh)("Use the table on the right to find the different column names, explanations, and whether they are mandatory or optional."),inactive:(0,n.Sh)("Inactive"),includingTaxes:(0,n.Sh)("Including taxes"),information:(0,n.Sh)("Information"),informationNotAvailable:(0,n.Sh)("No information available."),inProgress:(0,n.Sh)("In progress"),inspectionDetail:(0,n.Sh)("Inspection detail"),inspectionOn:(0,n.Sh)("{0} inspection on {1}"),inspectionSignedBy:(0,n.Sh)("Signed by"),inspectionType:(0,n.Sh)("Type"),invalidDateFilter:(0,n.Sh)("The page has loaded without a date filter. Please use the fields to apply a new date range."),ioxSuffix:(0,n.Sh)("[IOX-UREADER]"),isOverdue:(0,n.Sh)("Is overdue"),job:(0,n.Sh)("Job"),jobCompleted:(0,n.Sh)("Job completed"),jobCompleteDateAfterWorkOrderCompleteDate:(0,n.Sh)("The date is after the work order completion date ({0})."),jobCount:(0,n.Sh)("Job count"),jobDeleted:(0,n.Sh)("Job deleted"),jobDetails:(0,n.Sh)("Job Details"),jobs:(0,n.Sh)("Jobs"),jobsAddedToWorkOrder:(0,n.Sh)("Jobs added to work order"),jobStarted:(0,n.Sh)("Job started"),jobStatus:(0,n.Sh)("Job status"),keepImporting:(0,n.Sh)("Continue importing"),keyMetrics:(0,n.Sh)("Key Metrics"),kilometers:(0,n.Sh)("Kilometers"),kilometersFrequencyDescription:(0,n.Sh)("Frequency based on distance"),km:(0,n.Sh)("km"),kmBeforeDue:(0,n.Sh)("km before due"),labelSkipComment:(0,n.Sh)("Why are you skipping this work request?"),labelSkipConfirmOneWorkRequest:(0,n.Sh)("Are you sure you want to skip this work request? A new work job will be created after skipping."),labelSkipConfirmOneWorkRequests:(0,n.Sh)("Are you sure you want to skip multiple work requests ({number}
1)? New work jobs will be created after skipping."),labelSkipSuccessMessage:(0,n.Sh)("You have skipped maintenance work requests ({number}). A canceled maintenance work job has been created for each skipped request."),labor:(0,n.Sh)("Labor"),laborCosts:(0,n.Sh)("Labor costs"),lastAssetInspection:(0,n.Sh)("Last asset inspection"),lastCompletedWorkOrder:(0,n.Sh)("Last completed work order"),lastCommunication:(0,n.Sh)("Last communication"),lastEditedDate:(0,n.Sh)("Last edited: {0}"),lastEngineHours:(0,n.Sh)("Last engine hours"),lastMaintenanceDate:(0,n.Sh)("Last maintenance date"),lastOdometer:(0,n.Sh)("Last odometer"),lastRecorded:(0,n.Sh)("Last recorded"),lastUpdated:(0,n.Sh)("Last updated"),lastValueAtDate:(0,n.Sh)("Value at date:"),latestAssetFaults:(0,n.Sh)("Latest Asset Faults"),latestLogTime:(0,n.Sh)("Latest log time"),learnMore:(0,n.Sh)("Learn more"),licensePlate:(0,n.Sh)("License plate"),logOnly:(0,n.Sh)("Log only (under My Notifications)"),low:(0,n.Sh)("Low"),longestAverageDowntime:(0,n.Sh)("Longest Average Downtime"),maintenanceAutomations:(0,n.Sh)("Schedules & Automations"),maintenanceAutomationSaved:(0,n.Sh)("Maintenance automation updated"),maintenanceAutomationUpdatedAndWorkRequestsDeleted:(0,n.Sh)("Existing work requests from Asset Inspections deleted"),maintenanceJobAdded:(0,n.Sh)("Maintenance job added"),maintenanceJobDeleted:(0,n.Sh)("Maintenance job deleted"),maintenanceJobsUpdated:(0,n.Sh)("Maintenance jobs updated"),maintenanceJobUpdated:(0,n.Sh)("Maintenance job updated"),maintenanceName:(0,n.Sh)("Maintenance name"),maintenanceOnly:(0,n.Sh)("Maintenance only"),maintenanceOverview:(0,n.Sh)("Maintenance Overview"),maintenanceSchedule:(0,n.Sh)("Maintenance Schedule"),maintenanceSchedules:(0,n.Sh)("Maintenance Schedules"),maintenanceSummary:(0,n.Sh)("Maintenance summary"),maintenanceType:(0,n.Sh)("Maintenance type"),maintenanceTypes:(0,n.Sh)("Maintenance Types"),maintenanceTypesLowerCapital:(0,n.Sh)("Maintenance types"),maintenanceWorkOrder:(0,n.Sh)("Maintenance work order"),maintenanceWorkRequest:(0,n.Sh)("Maintenance Work Request"),majorDefects:(0,n.Sh)("Major Defects"),manageFaultEnrichmentLevels:(0,n.Sh)("Manage fault enrichment levels"),manual:(0,n.Sh)("Manual"),markClosed:(0,n.Sh)("Mark as closed"),medium:(0,n.Sh)("Medium"),messageDriver:(0,n.Sh)("Message driver (sent via Drive App)"),mi:(0,n.Sh)("mi"),miscellaneousCost:(0,n.Sh)("Miscellaneous"),monday:(0,n.Sh)("Monday"),monthly:(0,n.Sh)("Monthly"),monthlyOnDay:(0,n.Sh)("Monthly on day {0}"),monthlySuscription:(0,n.Sh)("Monthly subscription"),months:(0,n.Sh)("Months"),monthsFrequencyDescription:(0,n.Sh)("Frequency based on months"),mostBreakdowns:(0,n.Sh)("Most Breakdowns"),multipleJobsCompletionMessage:(0,n.Sh)("This will change the completion date for all {0} jobs on this work order to {1}. This may affect the related work requests if the work order is already completed. Are you sure?"),multipleWorkRequestsToComplete:(0,n.Sh)("{0} Requests to complete"),name:(0,n.Sh)("Name"),newJob:(0,n.Sh)("New job"),newWorkOrderDialogDescription:(0,n.Sh)("Select an asset to create a work order"),newWorkOrderDialogTitle:(0,n.Sh)("Create work order"),newWorkRequestDialogDescription:(0,n.Sh)("Create a work request based on a defect."),newWorkRequestDialogTitle:(0,n.Sh)("Create Work Request"),nJobsAddedToWorkOrder:(0,n.Sh)("Jobs added: {0}"),no:(0,n.Sh)("No"),noActionDetected:(0,n.Sh)("No Actions Detected"),noActionDetectedDescription:(0,n.Sh)("No assets have critical issues detected requiring immediate attention."),noData:(0,n.Sh)("No data"),notEnoughDataReturned:(0,n.Sh)("Not enough data returned"),tryAdjustingFilters:(0,n.Sh)("Try adjusting your group filters or date range."),noDefectsFound:(0,n.Sh)("No defects found."),noFaultsForTheLastSevenDays:(0,n.Sh)("No faults for the last 7 days."),noImmediateActionRequired:(0,n.Sh)("No immediate actions detected"),noImmediateActionRequiredDescription:(0,n.Sh)("This asset has no detected critical issues requiring immediate attention."),noJobsFoundForThisOrder:(0,n.Sh)("No jobs found for this order"),noMatchingRecordsFound:(0,n.Sh)("No matching records foun
1d"),none:(0,n.Sh)("None"),noregonDisableEnrichment:(0,n.Sh)("Disabling this feature will remove access to Noregon's enriched fault data, including detailed fault descriptions and severity levels. This may impact your ability to diagnose and make maintenance decisions."),noregonDisableEnrichmentTitle:(0,n.Sh)("Disable Enriched Fault Data from Noregon"),noregonLevel1Body:(0,n.Sh)("Access severity levels and rich fault descriptions, helping you diagnose and prioritize issues."),noregonLevel1Header:(0,n.Sh)("Complimentary Data by Noregon"),noregonLevel2Body:(0,n.Sh)("Prioritize and resolve issues faster with detailed J1939 fault descriptions, severity ratings, component impact, and recommended actions."),noregonLevel2Header:(0,n.Sh)("Fault Enrichment Complete"),noregonLevel3Body:(0,n.Sh)("Stay ahead of failures and reduce downtime with TripVision. This Add-In solution features predictive fault data, real time alerts, preventive maintenance tracking, and scheduled reporting â seamlessly accessed with single sign-on."),noregonLogo:(0,n.Sh)("Noregon logo"),noregonModalBody:(0,n.Sh)("Access enriched fault data from Noregon for J1939 protocol vehicles (mostly heavy-duty, some medium-duty). The solutions provide precise severity levels and comprehensive descriptions, enabling improved fault diagnosis and informed maintenance decisions."),noregonModalTitle:(0,n.Sh)("Data Enrichment Plans with Noregon"),noregonPlans:(0,n.Sh)("Plans"),noRepairNeeded:(0,n.Sh)("No repair needed"),notAvailable:(0,n.Sh)("Not available"),notes:(0,n.Sh)("Notes"),notesAndAttachments:(0,n.Sh)("Notes and Attachments"),notificationMessage:(0,n.Sh)("Notification Message"),notificationMessageDescription:(0,n.Sh)("The notification message will be the one below, with the corresponding values replacing the words in brackets."),notifications:(0,n.Sh)("Notifications"),notificationType:(0,n.Sh)("Notification type"),notificationTypeLabel:(0,n.Sh)("Notification type:"),notNecessary:(0,n.Sh)("Not Necessary"),notRepaired:(0,n.Sh)("Not repaired"),noValue:(0,n.Sh)("No value"),noWorkRequestsFound:(0,n.Sh)("No work requests found"),odometer:(0,n.Sh)("Odometer"),odometerAndEngineHoursWillBeUpdatedUsingThisDate:(0,n.Sh)("Odometer and engine hours will be updated based on this date."),odometerExceedsRealisticValues:(0,n.Sh)("Condition mileage exceeds realistic values (limit: 5,000,000 km)."),odometerReading:(0,n.Sh)("Odometer reading"),odometerReadingCannotBeNegative:(0,n.Sh)("Odometer reading value cannot be negative."),odometerReadingExceedsMaximumValue:(0,n.Sh)("Odometer reading exceeds maximum allowed value ({0} {1})"),off:(0,n.Sh)("Off"),oilChange:(0,n.Sh)("Oil change"),oilLifeRemaining:(0,n.Sh)("Oil Life Remaining"),onceYouSaveYourChanges:(0,n.Sh)("Once you save your changes, this action cannot be undone."),ongoingFaultsSevenDays:(0,n.Sh)("Ongoing faults"),onHold:(0,n.Sh)("On hold"),onlyVisibleToGeotabUserAccount:(0,n.Sh)("Geotab Only"),onSpecificDay:(0,n.Sh)("On specific day"),closed:(0,n.Sh)("Closed"),notStarted:(0,n.Sh)("Not started"),open:(0,n.Sh)("Open"),openedBy:(0,n.Sh)("Opened by"),openedDateByUser:(0,n.Sh)("Opened on {0} by {1}"),openFilter:(0,n.Sh)("Open filter"),openMajorDefects:(0,n.Sh)("Open major defects"),openWorkOrder:(0,n.Sh)("Open work order"),openWorkOrderPrompt:(0,n.Sh)("You have an open work order (reference # {0}) for this asset. Create a new work order?"),openWorkRequests:(0,n.Sh)("Open work requests"),openWorkSevereRequests:(0,n.Sh)("Open work requests with High or Critical severity"),optInWithOneClick:(0,n.Sh)("Enable"),optOutWithOneClick:(0,n.Sh)("Disable"),or:(0,n.Sh)("or"),orCaps:(0,n.Sh)("Or"),order:(0,n.Sh)("Order"),orderDetails:(0,n.Sh)("Order details"),orderReference:(0,n.Sh)("Order reference"),orders:(0,n.Sh)("Orders"),ordersImportedSuccessfullyMessage:(0,n.Sh)("Orders uploaded"),orderDeleted:(0,n.Sh)("Order deleted"),originalInvoice:(0,n.Sh)("Original invoice"),other:(0,n.Sh)("Other"),overdue:(0,n.Sh)("Overdue"),overdueBy:(0,n.Sh)("Overdue by"),overview:(0,n.Sh)("Overview"),partneredWith:(0,n.Sh)("Partnered with"),parts:(0,n.Sh)("Parts"),partsCost:(0,n.Sh)("Parts cost"),pendingStatus:(0,n.Sh)("Pending"),pendingWorkOrders:(0,n.Sh)("Pending work orders"),performance:(0,n.Sh)("Performance"),pleaseSelectADate:(0,n.Sh)("Please select a date."),pleaseSelectADefect:(0,n.Sh)("Please select a defect, not a part or list."),pleaseSelectADefectList:(0,n.Sh)("Please select a defect list."),pleaseSelectAnAsset:(0,n.Sh)("Please select an asset."),pleaseSelectAnyDueParameters:(0,n.Sh)("Please select a due date, or a service due on odometer or engine hours."),pleaseSelectASeverity:(0,n.Sh)("Please select a severity."),pleaseSelectAValidNumber:(0,n.Sh)("Please select a valid number."),preDelivery:(0,n.Sh)("Pre-delivery"),preventativeMaintenance:(0,n.Sh)("Preventative maintenance"),preventativeMaintenanceFollowUp:(0,n.Sh)("Preventative maintenance follow-up"),printAddress:(0,n.Sh)("Address"),printAuthorizationStatement:(0,n.Sh)("I authorize the repair work listed above, including necessary materials, and give permission to operate the vehicle for testing or inspection."),printCompanyOrShopName:(0,n.Sh)("Company / shop name"),printCompletionSignOff:(0,n.Sh)("Completion sign-off"),printCostsIncludeTax:(0,n.Sh)("The costs on this work order already include tax"),printDateOpened:(0,n.Sh)("Date opened"),printInvoice:(0,n.Sh)("Invoice"),printLicensePlate:(0,n.Sh)("License plate"),printNoJobsOnThisWorkOrder:(0,n.Sh)("No jobs on this work order"),printPartsReceived:(0,n.Sh)("Parts received"),printPhone:(0,n.Sh)("Phone"),printPrintDate:(0,n.Sh)("Print date"),printQcApproved:(0,n.Sh)("QC approved"),printShopInformation:(0,n.Sh)("Shop information"),printShopInformationDescription:(0,n.Sh)("This information appears on the printed work order header. It won't be saved."),printSignature:(0,n.Sh)("Signature"),printSupervisor:(0,n.Sh)("Supervisor"),printTechnician:(0,n.Sh)("Technician"),printUnitNumber:(0,n.Sh)("Unit number"),printVehicleReturned:(0,n.Sh)("Vehicle returned"),printWorkCompleted:(0,n.Sh)("Work completed"),printWorkOrderButton:(0,n.Sh)("Print"),printWorkOrderNotes:(0,n.Sh)("Work order notes"),printWorkOrderTitle:(0,n.Sh)("Work order - {0}"),priority:(0,n.Sh)("Priority"),processCancelled:(0,n.Sh)("Process canceled"),protocol:(0,n.Sh)("Protocol"),protocols:(0,n.Sh)("Protocols"),pushNotification:(0,n.Sh)("Push notification"),ratePercent:(0,n.Sh)("Rate (%)"),reasonForRepair:(0,n.Sh)("Reason for repair"),recipient:(0,n.Sh)("Recipient"),recipientLabel:(0,n.Sh)("Recipient:"),recommendedAction:(0,n.Sh)("Recommended Action"),recordsImportedSuccessfully:(0,n.Sh)("Records imported"),redPopup:(0,n.Sh)("Urgent popup (red system alert)"),reference:(0,n.Sh)("Reference"),references:(0,n.Sh)("References"),remainingDays:(0,n.Sh)("Remaining days"),remainingDistance:(0,n.Sh)("Remaining distance"),remainingEngineHours:(0,n.Sh)("Remaining engine hours"),reminderDate:(0,n.Sh)("Reminder date"),remove:(0,n.Sh)("Remove"),removeAll:(0,n.Sh)("Remove all"),removeAssets:(0,n.Sh)("Remove assets"),removeFile:(0,n.Sh)("Remove file"),removeMaintenanceJob:(0,n.Sh)("Remove maintenance job"),removeMaintenanceWorkOrder:(0,n.Sh)("Delete Work Order"),removeUploadedFile:(0,n.Sh)("Remove uploaded file"),repairClass:(0,n.Sh)("Repair class"),repairReason:(0,n.Sh)("Repair reason"),repairSite:(0,n.Sh)("Repair site"),repairSignedOn:(0,n.Sh)("Repair signed on"),repairStatus:(0,n.Sh)("Repair status"),repairSignedBy:(0,n.Sh)("Repair signed by"),repaired:(0,n.Sh)("Repaired"),repeatEvery:(0,n.Sh)("Repeat every"),repeatBreakdowns:(0,n.Sh)("Repeat breakdowns"),repeatOn:(0,n.Sh)("Repeat on"),repeatOnDayOfTheMonth:(0,n.Sh)("Repeat on day of the month"),repeatOnSpecificDay:(0,n.Sh)("Repeat on specific day"),repeats:(0,n.Sh)("Repeats"),repeatsByTime:(0,n.Sh)("Repeats by time"),scheduleWillRepeatBasedOnLastMaintenanceDate:(0,n.Sh)("This schedule will repeat based on each asset's last maintenance date."),reports:(0,n.Sh)("Reports"),request:(0,n.Sh)("Request"),requests:(0,n.Sh)("Requests"),requiredField:(0,n.Sh)("Required field"),retry:(0,n.Sh)("Retry"),reviewMissingAsset:(0,n.Sh)("Asset not identified"),reviewMissingAssetMessage:(0,n.Sh)("We couldn't match an asset to this invoice. Select which asset this invoice belongs to."),reviewUploadsSubtitle:(0,n.Sh)("Upload activities are available for review for 7 days. Work orders created from successful uploads are saved to your records."),reviewWorkOrderTitle:(0,n.Sh)("Review Order"),riskOfBreakdown:(0,n.Sh)("Risk of breakdown"),riskOfBreakdownCardTooltip:(0,n.Sh)("Indicates the probability of the vehicle requiring a tow in the next 1,000 km based on detected faults."),riskOfBreakdownCardPillTooltip:(0,n.Sh)("{0} has a {1}% risk of breaking down in the next 1,000 km based on the current active faults. A breakdown is defined as the vehicle requiring a tow."),riskOfBreakdownTooltip:(0,n.Sh)("{0} has a {1}% risk of breaking down in the next 1,000 km, based on this fault. A breakdown is defined as the vehicle requiring a tow."),roadCall:(0,n.Sh)("RoadCall"),rules:(0,n.Sh)("Rules"),saturday:(0,n.Sh)("Saturday"),save:(0,n.Sh)("Save"),saveAndContinue:(0,n.Sh)("Save and continue"),saveWorkOrder:(0,n.Sh)("Save work order"),scanDocumentFailedMessage:(0,n.Sh)("The document could not be scanned. The document may be unreadable or in an unsupported format."),scanNoDataExtracted:(0,n.Sh)("No data could be extracted from the document."),scanReview:(0,n.Sh)("Review"),scanScanning:(0,n.Sh)("Scanning..."),scanTimedOut:(0,n.Sh)("Scan timed out. Please try again."),scanUnexpectedError:(0,n.Sh)("An unexpected error occurred."),schedule:(0,n.Sh)("Schedule"),scheduleAccess:(0,n.Sh)("Maintenance schedule access"),scheduled:(0,n.Sh)("Scheduled"),shopVisit:(0,n.Sh)("Shop visit"),scheduledMaintenance:(0,n.Sh)("Scheduled Maintenance"),scheduleNameMaxLength:(0,n.Sh)("Schedule name cannot exceed 50 characters."),scheduleFrequencyRequiredBanner:(0,n.Sh)("Name and frequency are required. The schedule generates work requests for assigned assets based on frequency. You can also configure notifications to alert recipients before maintenance is due."),scheduleOptions:(0,n.Sh)("Schedule options"),schedules:(0,n.Sh)("Schedules"),search:(0,n.Sh)("Search"),searchAssets:(0,n.Sh)("Search assets"),searchGroups:(0,n.Sh)("Search groups"),searchMaintenanceTypes:(0,n.Sh)("Search maintenance typesâ¦"),searchPriority:(0,n.Sh)("Search priority"),searchReference:(0,n.Sh)("Search reference"),searchStatus:(0,n.Sh)("Search status"),seeDetails:(0,n.Sh)("See details"),seeFaultEnrichmentLevels:(0,n.Sh)("See fault enrichment levels"),seeJobs:(0,n.Sh)("See jobs"),seeSeverityWithNoregon:(0,n.Sh)("Severity with Noregon (free)"),select:(0,n.Sh)("Select"),selectAnOption:(0,n.Sh)("Select an option"),selectAtLeastOneFrequency:(0,n.Sh)("Select at least one frequency"),selectAssets:(0,n.Sh)("Select assets"),selectCurrency:(0,n.Sh)("Select currency"),selectedAssets:(0,n.Sh)("Selected assets: {0}"),selection:(0,n.Sh)("Selection"),selectJobStatus:(0,n.Sh)("Select Job status"),selectOrderStatus:(0,n.Sh)("Select status"),selectPriority:(0,n.Sh)("Select priority"),selectReasonForRepair:(0,n.Sh)("Select reason for repair"),selectRepairClass:(0,n.Sh)("Select repair class"),selectServiceWorkAccomplished:(0,n.Sh)("Select service work accomplished"),selectSeverity:(0,n.Sh)("Select severity"),selectTimeFrequency:(0,n.Sh)("Select frequency"),selectVmrsSystemCode:(0,n.Sh)("Select VMRS system code"),serialNumber:(0,n.Sh)("Seri
1al number"),serviceDetails:(0,n.Sh)("Service details"),serviceDueInEngineHours:(0,n.Sh)("Service due (in engine hours)"),serviceDueInKilometers:(0,n.Sh)("Service due (in kilometers)"),serviceDueInMiles:(0,n.Sh)("Service due (in miles)"),serviceDueOnEngineHours:(0,n.Sh)("Service due on engine hours"),serviceDueOnOdometer:(0,n.Sh)("Service due on odometer"),serviceWorkAccomplished:(0,n.Sh)("Service work accomplished"),severe:(0,n.Sh)("Severe"),severeFaults:(0,n.Sh)("Severe Faults"),severeFaultsLastEightHours:(0,n.Sh)("Severe Faults (last 8 hours)"),severeFaultsLastSevenDays:(0,n.Sh)("Severe faults (last 7 days)"),severeFaultsSevenDays:(0,n.Sh)("Severe faults"),severeFaultsSevenDaysDescription:(0,n.Sh)("Faults with High or Critical severity (last 7 days)"),severeRequestPending:(0,n.Sh)("You have 1 pending severe work request."),severeRequestsPending:(0,n.Sh)("You have {0} pending severe work requests."),severeWorkRequests:(0,n.Sh)("Severe work requests"),severeWorkRequestsTitle:(0,n.Sh)("Severe Work Requests"),severity:(0,n.Sh)("Severity"),shipping:(0,n.Sh)("Shipping"),shippingCost:(0,n.Sh)("Shipping cost"),shippingCosts:(0,n.Sh)("Shipping costs"),showArchived:(0,n.Sh)("Include archived data"),showArchivedAssets:(0,n.Sh)("Include archived (historical) data"),showDismissedFaults:(0,n.Sh)("Show dismissed faults"),show
1FmiModes:(0,n.Sh)("Show FMI modes"),showingNRequests:(0,n.Sh)("Work requests: {0}"),showingSelectedWorkOrders:(0,n.Sh)("Showing selected work orders"),showOnMap:(0,n.Sh)("Show on map {0}"),showSnoozedRequests:(0,n.Sh)("Show snoozed requests"),showTimesLogged:(0,n.Sh)("Show times logged"),since:(0,n.Sh)("Since: {0}"),sinceLastService:(0,n.Sh)("Travel distance since last service: {0}"),singleJobCompletionMessage:(0,n.Sh)('This will change the completion date for the job "{0}" to {1}. This may affect the related work request if the work order is already completed. Are you sure?'),singleWorkRequestToComplete:(0,n.Sh)("1 Request to complete"),skip:(0,n.Sh)("Skip"),skippedJobs:(0,n.Sh)("Skipped jobs"),skipDuplicatedRecords:(0,n.Sh)("Skip duplicated jobs when uploading data."),skipMaintenanceWorkRequest:(0,n.Sh)("Skip maintenance work request"),snooze:(0,n.Sh)("Snooze"),snoozedFor1DayOnDate:(0,n.Sh)("Snoozed for 1 day on {date}"),snoozedFor30DaysOnDate:(0,n.Sh)("Snoozed for 30 days on {date}"),snoozedFor7DaysOnDate:(0,n.Sh)("Snoozed for 7 days on {date}"),snoozeFor1Day:(0,n.Sh)("Snooze for 1 day"),snoozeFor30Days:(0,n.Sh)("Snooze for 30 days"),snoozeFor7Days:(0,n.Sh)("Snooze for 7 days"),source:(0,n.Sh)("Source"),sourceOfFaultData:(0,n.Sh)("Source of fault data"),sources:(0,n.Sh)("Sources"),sourcesAndProtocols:(0,n.Sh)("Sources / Protocols"),startDate:(0,n.Sh)("Start Date"),status:(0,n.Sh)("Status"),subjectLine:(0,n.Sh)("Subject line (for email only)"),submit:(0,n.Sh)("Submit"),subtotal:(0,n.Sh)("Subtotal"),sunday:(0,n.Sh)("Sunday"),taxCost:(0,n.Sh)("Tax cost"),taxes:(0,n.Sh)("Taxes"),telematicsDevice:(0,n.Sh)("Telematics device"),templateBody:(0,n.Sh)("{device} is due for {maintenanceReminderType} in {maintenanceReminderRemainingDays} days, {maintenanceReminderRemainingDistance}, or {maintenanceReminderRemainingEngineHours}"),templateBodyTitle:(0,n.Sh)("The contents of the template, consisting of the different tokens below."),templateCancelButtonTitle:(0,n.Sh)("Cancel maintenance notification template editing"),templateEditMessageButtonTitle:(0,n.Sh)("Edit notification template message"),templateSaveButtonTitle:(0,n.Sh)("Finish maintenance notification template editing"),templateSubjectTitle:(0,n.Sh)("The subject line that will be used when sending an email."),termsAndConditions:(0,n.Sh)("Terms and Conditions"),theDateCompletedMustBeAfterTheDateStarted:(0,n.Sh)("The date completed must be after the date started."),theDateStartedMustBeBeforeTheDateCompleted:(0,n.Sh)("The date started must be before the date completed."),theDeviceCouldNotBeFound:(0,n.Sh)("The device could not be found."),theMaintenanceJobHasBeenDeleted:(0,n.Sh)("This job has either been deleted from the system or doesn't exist."),theMaintenanceJobIsDuplicated:(0,n.Sh)("Failed to add job. A maintenance job with the same asset, maintenance type ({0}), and completed date already exists."),theMaintenanceScheduleCouldNotBeFound:(0,n.Sh)("We could not find this maintenance schedule."),theMaintenanceWorkJobCouldNotBeFound:(0,n.Sh)("The maintenance Work Job could not be found."),theMaintenanceWorkOrderCouldNotBeFound:(0,n.Sh)("We could not find the requested Work Order."),theMaintenanceWorkOrderHasBeenDeleted:(0,n.Sh)("This work order has either been deleted from the system or doesn't exist."),theMaintenanceWorkRequestCouldNotBeFound:(0,n.Sh)("The maintenance Work Request could not be found."),theNotificationShouldHaveAtLeastOneTrigger:(0,n.Sh)("The notification should have at least one Trigger."),thisActionDoesNotRequireSave:(0,n.Sh)("This action does not require you to click the Save button."),thisMaintenanceJobWillBePermanentlyDeleted:(0,n.Sh)("This maintenance job will be permanently deleted and will not be recoverable."),thisMaintenanceOrderWillBePermanentlyDeleted:(0,n.Sh)("This maintenance work order will be permanently deleted, and will not be recoverable."),thursday:(0,n.Sh)("Thursday"),time:(0,n.Sh)("Time"),timeOpen:(0,n.Sh)("Time open"),timeToComplete:(0,n.Sh)("Time to complete"),times:(0,n.Sh)("times"),timesLogged:(0,n.Sh)("Times logged"),tokenDescriptionDatabase:(0,n.Sh)("The database for this device"),tokenDescriptionDate:(0,n.Sh)("The date the event occurred"),tokenDescriptionDevice:(0,n.Sh)("The name and serial number of the device that triggered the event"),tokenDescriptionDeviceComments:(0,n.Sh)("The comment field for the device"),tokenDescriptionDeviceGroups:(0,n.Sh)("The groups to which the device belongs"),tokenDescriptionDeviceId:(0,n.Sh)("The identifier for the device"),tokenDescriptionDeviceName:(0,n.Sh)("The name of the device that triggered the event"),tokenDescriptionLicensePlate:(0,n.Sh)("The vehicle's license plate number"),tokenDescriptionMaintenanceSc
1hedule:(0,n.Sh)("The maintenance schedule name"),tokenDescriptionMaintenanceType:(0,n.Sh)("The maintenance schedule name"),tokenDescriptionOdometer:(0,n.Sh)("The odometer value of the device"),tokenDescriptionRemainingDays:(0,n.Sh)("The number of days remaining until maintenance is due"),tokenDescriptionRemainingDistance:(0,n.Sh)("The distance remaining until maintenance is due"),tokenDescriptionRemainingEngineHours:(0,n.Sh)("The number of engine hours remaining until maintenance is due"),tokenDescriptionSerialNumber:(0,n.Sh)("The device serial number"),tokenDescriptionVin:(0,n.Sh)("The vehicle's identification number"),awaitingCompletion:(0,n.Sh)("Awaiting completion"),overLast12Months:(0,n.Sh)("Over last 12 months"),total:(0,n.Sh)("Total"),totalCost:(0,n.Sh)("Total cost"),totalCostEst:(0,n.Sh)("Total cost estimate"),totalCostEstTooltip:(0,n.Sh)("Estimated cost based on configured cost settings for the selected range"),totalCostLast12Months:(0,n.Sh)("Total cost (last 12 months)"),totalCostRecorded:(0,n.Sh)("Total cost recorded"),totalCosts:(0,n.Sh)("Total Costs"),totalDowntime:(0,n.Sh)("Total downtime"),totalDowntimeDays:(0,n.Sh)("Total downtime (days)"),totalDowntimeCostTooltip:(0,n.Sh)("Estimated cost based on the configured cost per downtime day and the number of downtime days"),totalBreakdowns:(0,n.Sh)("Total breakdowns"),triggered:(0,n.Sh)("Triggered"),triggeredDate:(0,n.Sh)("Triggered date"),triggerNotification:(0,n.Sh)("Trigger notification"),triggerNotificationLabel:(0,n.Sh)("Trigger notification:"),tuesday:(0,n.Sh)("Tuesday"),unarchive:(0,n.Sh)("Unarchive"),undo:(0,n.Sh)("Undo"),uninstall:(0,n.Sh)("Uninstall"),unit:(0,n.Sh)("Unit"),unknown:(0,n.Sh)("Unknown"),unknownDevice:(0,n.Sh)("Unknown device"),unknownJob:(0,n.Sh)("Unknown job"),unknownProprietaryFault:(0,n.Sh)("Proprietary OEM Fault: Description unavailable"),unknownUser:(0,n.Sh)("Unknown user"),unlockMoreData:(0,n.Sh)("Unlock more data."),unscheduled:(0,n.Sh)("Unscheduled"),upcomingMaintenance:(0,n.Sh)("Upcoming Maintenance"),updateAllJobs:(0,n.Sh)("Update all jobs"),updateCompletion:(0,n.Sh)("Completion update"),updateCompletionDetailsModalContent:(0,n.Sh)("Set the completion date and asset readings. The parameters will be automatically recalculated based on the new date, but you can manually override them."),updateCompletionDetailsModalTitle:(0,n.Sh)("Completion update details"),unknownFile:(0,n.Sh)("Unknown file"),uploaderMaxDocuments:(0,n.Sh)("The maintenance record cannot have more than 10 attached maintenance documents."),uploaderSelectFile:(0,n.Sh)("Select a PDF, PNG, JPG, or JPEG file to upload with this record. The maximum file size is 10MB."),uploadFailed:(0,n.Sh)("Upload failed"),uploadInvoice:(0,n.Sh)("Upload invoice"),uploadStatusAllProcessed:(0,n.Sh)("Invoices processed"),uploadStatusOrdersCreated:(0,n.Sh)("Orders created"),uploadStatusInProgressTitle:(0,n.Sh)("Processing invoices"),uploadStatusInProgressMessage:(0,n.Sh)("Your work orders are being generated."),uploadStatusReviewUploads:(0,n.Sh)("Review uploads"),uploadStatusReviewUploadsTitle:(0,n.Sh)("Review your uploads"),uploadStatusReviewUploadsMessage:(0,n.Sh)("Invoices processed. Review them to resolve any issues and update your work orders."),uploadStatusViewProgress:(0,n.Sh)("View progress"),user:(0,n.Sh)("User"),valueShouldBeGreaterThan:(0,n.Sh)("Enter a value greater than {number}."),vandalism:(0,n.Sh)("Vandalism"),vehicle:(0,n.Sh)("Vehicle"),vehicles:(0,n.Sh)("Vehicles"),checkEngineLight:(0,n.Sh)("Check Engine Light"),vehicleDowntime:(0,n.Sh)("Vehicle Downtime"),vehicleDowntimeOverTime:(0,n.Sh)("Vehicle downtime over time"),viewAll:(0,n.Sh)("View all"),viewBy:(0,n.Sh)("View by"),noUploadsInLastDays:(0,n.Sh)("No uploads in the last 7 days"),viewAllUploads:(0,n.Sh)("View all uploads"),viewMore:(0,n.Sh)("View more"),viewOrder:(0,n.Sh)("View order"),vin:(0,n.Sh)("VIN"),vmrsSystemCode:(0,n.Sh)("VMRS system code"),warning:(0,n.Sh)("Warning"),wednesday:(0,n.Sh)("Wednesday"),weekly:(0,n.Sh)("Weekly"),weeklyOnDay:(0,n.Sh)("Weekly on {day of the week}"),weeks:(0,n.Sh)("Weeks"),weeksFrequencyDescription:(0,n.Sh)("Frequency based on weeks"),weWillAlsoAttemptToClearTheFaultsFromTheDevices:(0,n.Sh)("This will also attempt to clear the faults from the devices."),weWillAttemptToClearIOXFaults:(0,n.Sh)("For IOX-UREADER devices, dismissing refrigeration unit faults will also attempt to clear the faults from the devices."),weWillAttemptToClearTheFaults:(0,n.Sh)("We will attempt to clear the faults from the device remotely."),weWillNotifyYouWhenYourReportIsReady:(0,n.Sh)("You'll be notified when your report is ready. Track the progress on the My Reports page."),workOrder:(0,n.Sh)("Work order"),workOrderAssignedTo:(0,n.Sh)("Assigned to username (email)"),workOrderCreated:(0,n.Sh)("Order created"),workOrderCreatedPendingCompletion:(0,n.Sh)("Order created (pending completion)"),workOrderCreationDate:(0,n.Sh)("Creation Date"),workOrderDeleted:(0,n.Sh)("Work order deleted"),workOrderDetails:(0,n.Sh)("Work Order Details"),workOrderManagement:(0,n.Sh)("Work Order Management"),workOrderManagementTable:(0,n.Sh)("Work Order Management table"),workOrderOverview:(0,n.Sh)("Work Order Overview"),workOrderPlus:(0,n.Sh)("+ Work Order"),workOrders:(0,n.Sh)("Work orders"),scheduleArchived:(0,n.Sh)("Schedule archived"),scheduleDeleted:(0,n.Sh)("Schedule deleted"),scheduleDuplicated:(0,n.Sh)("Schedule duplicated"),scheduleRestored:(0,n.Sh)("Schedule restored"),scheduleSaved:(0,n.Sh)("Schedule saved"),workOrderSaved:(0,n.Sh)("Work order saved"),workOrderZone:(0,n.Sh)("Zone Name"),workRequest:(0,n.Sh)("Work request"),workRequestAlreadyExist:(0,n.Sh)("A work request already exists with this defect."),workRequestBeingWorking:(0,n.Sh)("A work request already exists with this defect. It is being worked on a job with reference: {0}"),workRequestCreated:(0,n.Sh)("Work request created"),workRequestDetails:(0,n.Sh)("Work Request Details"),workRequests:(0,n.Sh)("Work requests"),workRequestSkipped:(0,n.Sh)("Work request skipped"),workRequestSnoozed:(0,n.Sh)("Work request snoozed for {0}
1 days"),workRequestsSkipped:(0,n.Sh)("Work requests skipped ({0})"),workRequestsSnoozed:(0,n.Sh)("Work requests snoozed for {0} days ({1})"),workRequestsWillBeCreatedFromNewReportedDefects:(0,n.Sh)("Work Requests will be created from new reported defects"),xBeforeDue:(0,n.Sh)("{0} before due"),xCompletedWorkOrdersCreated:(0,n.Sh)("Completed Orders created ({0})"),xWorkOrdersCreated:(0,n.Sh)("Orders created ({0})"),xWorkOrdersCreatedSomePendingCompletion:(0,n.Sh)("Orders created ({0}, some pending completion)"),yellowPopup:(0,n.Sh)("Popup (yellow system alert)"),years:(0,n.Sh)("Years"),yes:(0,n.Sh)("Yes"),youAreAboutToCompletePluralRequestsMultipleOrders:(0,n.Sh)("Complete {0} Requests and create {1} Orders:"),youAreAboutToCompletePluralRequestsSingleOrder:(0,n.Sh)("Complete {0} Requests and create 1 Order:"),youAreAboutToCompleteSingleRequestMultipleOrders:(0,n.Sh)("Complete 1 Request and create {0} Orders:"),youAreAboutToCompleteSingleRequestSingleOrder:(0,n.Sh)("Complete 1 Request and create 1 Order:"),youAreAboutToDismissTheSelectedFaults:(0,n.Sh)("You are about to dismiss the selected faults and all previous occurrences for this vehicle."),youAreCreatingAWorkOrderFor:(0,n.Sh)("You are creating a work order for {0}."),youCannotRemoveItUntilTheAsset:(0,n.Sh)("You cannot remove it until the asset is removed from the schedule."),youMustEnterTheDateCompleted:(0,n.Sh)("You must enter the date completed."),youMustEnterTheDateStarted:(0,n.Sh)("You must enter the date started."),yourReportIsBeingPrepared:(0,n.Sh)("Your report is being prepared"),yourReportIsReadyToDownload:(0,n.Sh)("Your report is ready to download"),zone:(0,n.Sh)("Zone")})},23038(e,t,i){i.d(t,{$t:()=>l,As:()=>s,Bk:()=>g,EK:()=>r,S$:()=>h,So:()=>a,hD:()=>c,hw:()=>d,jL:()=>S,jT:()=>u,m1:()=>m,pB:()=>p,zh:()=>v});var n,r,o=i(88327);!function(e){e[e.Manual=0]="Manual",e[e.Scheduled=1]="Scheduled",e[e.DataInsight=2]="DataInsight",e[e.DriverReported=3]="DriverReported",e[e.Faults=4]="Faults",e[e.Rules=5]="Rules"}(n||(n={})),function(e){e.Manual="Manual",e.DataInsight="DataInsight",e.Scheduled="Scheduled",e.DriverReported="DriverReported",e.Faults="Faults",e.Rules="Rules"}(r||(r={}));const a={Processing:"Processing",Failure:"Failure",Duplicated:"Duplicated",Review:"Review",Completed:"Completed",ReviewMissingAsset:"ReviewMissingAsset"},s={WorkOrder:"WorkOrder"},l={ApiFailure:"ApiFailure",Timeout:"Timeout",Exception:"Exception",MissingMandatoryFields:"MissingMandatoryFields",AssetNotFound:"AssetNotFound",NoJobs:"NoJobs",MediaFileNotFound:"MediaFileNotFound",UnsupportedFileType:"UnsupportedFileType",MultipleInvoices:"MultipleInvoices",TransientFailure:"TransientFailure"},d={MediaFile:"mediaFile",MediaFileMetaData:"mediaFile.metadata",WorkOrder:"workOrder",WorkOrderReference:"workOrder.reference",WorkOrderDeletedDateTime:"workOrder.deletedDateTime",State:"state",ProcessingStartedAt:"processingStartedAt"};var c;!function(e){e.AssetInspection="Asset Inspection",e.DefectReport="Defect Report",e.DocScanning="DocScanning",e.CleanTruckCheck="Clean Truck Check"}(c||(c={}));const u={Source:"Source",InspectionLogId:"InspectionLogId",InspectedItemId:"InspectedItemId"};var h;!function(e){e.Kilometers="kilometers",e.Months="months",e.Weeks="weeks",e.Days="days",e.EngineHours="engineHours"}(h||(h={}));const p={[h.Kilometers]:{description:o.a.kilometersFrequencyDescription},[h.Months]:{description:o.a.monthsFrequencyDescription},[h.Weeks]:{description:o.a.weeksFrequencyDescription},[h.Days]:{description:o.a.daysFrequencyDescription},[h.EngineHours]:{description:o.a.engineHoursFrequencyDescription}};var m;!function(e){e.Yes="yes",e.No="no"}(m||(m={}));const g={[m.Yes]:{id:"true",description:o.a.yes},[m.No]:{id:"false",description:o.a.no}},S={Unknown:{id:0,description:o.a.unknown},Low:{id:100,description:o.a.low},Medium:{id:200,description:o.a.medium},High:{id:300,description:o.a.high},Critical:{id:400,description:o.a.critical}};var v;!function(e){e[e.entityDoesNotExist=1]="entityDoesNotExist",e[e.multipleEntitiesFound=2]="multipleEntitiesFound",e[e.emptyValue=3]="emptyValue",e[e.invali
1dValue=4]="invalidValue",e[e.notMatchingEntity=5]="notMatchingEntity",e[e.invalidFormat=6]="invalidFormat",e[e.futureDate=7]="futureDate",e[e.noError=0]="noError"}(v||(v={}))},44755(e,t,i){i.d(t,{$2:()=>Fe,$5:()=>nt,$F:()=>Ue,$r:()=>Re,A3:()=>B,AG:()=>ue,B$:()=>Ye,C$:()=>H,C0:()=>Ze,Cp:()=>Ee,DE:()=>It,E6:()=>Qe,Fw:()=>Je,GQ:()=>he,HI:()=>J,IE:()=>re,J5:()=>Ge,KG:()=>Be,Km:()=>mt,M3:()=>ae,M9:()=>we,Nr:()=>P,O1:()=>V,OF:()=>F,Ob:()=>ke,QE:()=>U,QX:()=>z,RE:()=>ye,RY:()=>Xe,Rf:()=>_,SO:()=>q,SV:()=>Me,TL:()=>yt,UI:()=>ve,UK:()=>ie,Uh:()=>ct,V8:()=>De,W:()=>ht,WO:()=>Le,WX:()=>Z,X2:()=>Ke,Yp:()=>fe,ZQ:()=>qe,a2:()=>_e,a6:()=>se,aG:()=>W,aT:()=>dt,au:()=>Ce,ax:()=>$,b0:()=>oe,b7:()=>St,c9:()=>He,dO:()=>Oe,eV:()=>le,ee:()=>je,ez:()=>rt,f5:()=>pt,fe:()=>Ve,gx:()=>lt,hD:()=>ne,jF:()=>G,l$:()=>x,lU:()=>Ae,ln:()=>N,mf:()=>Ie,nX:()=>We,nx:()=>ze,oJ:()=>Y,oX:()=>Se,p0:()=>j,pO:()=>ee,pc:()=>xe,q$:()=>te,qE:()=>ut,rz:()=>Pe,sE:()=>ce,tn:()=>pe,u4:()=>de,uM:()=>$e,uW:()=>ge,x2:()=>gt,yM:()=>X,z3:()=>Q,zJ:()=>Ne,zm:()=>Te});var n=i(49793),r=i(27439),o=i(15100),a=i(89009),s=i(26033),l=i(23038),d=i(44654),c=i(78300),u=i(95478),h=i(45852),p=i(78011),m=i(11619),g=i(81156),S=i(94996),v=i(45935),I=i(66337),y=i(12600),f=i(43643),D=i(88327),C=i(50993),R=i(96425),T=i(88305),b=i(76929),w=i(89615),A=i(12444),E=i(77761),k=i(41238),O=i(4981),M=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};const L=(e,t,i)=>(null!=e?e:[]).map((e=>{var n;const r="string"==typeof e?e:String(e.id),o="string"==typeof e?void 0:null!==(n=t.get(r))&&void 0!==n?n:e.name;return{id:r,name:(0,O.hr)(r)?i(r):null!=o?o:""}})).filter((e=>Boolean(e.name))),P=(e,t,i)=>L(e,t,i).sort(E.Dq).map((e=>e.name)),F=(e,t,i)=>((e,t,i)=>L(e,t,i).map((e=>e.name)))(e,t,i).join(", "),x=(e,t,i)=>{let n=(new Date).toISOString(),r={fromDate:n,toDate:n};if(i){let e=i.toISOString();r.fromDate=e,r.toDate=e}return Object.assign({diagnosticSearch:{id:t},deviceSearch:{id:e}},r)},N=e=>{var t,i,n,r;return Boolean(null!==(r=null!==(n=null!==(i=null!==(t=e.kilometers)&&void 0!==t?t:e.months)&&void 0!==i?i:e.weeks)&&void 0!==n?n:e.days)&&void 0!==r?r:e.engineHours)},B=e=>void 0===e||e<0||e>6?"":(0,m.Nz)(e),U=(e,t)=>{var i,n;const r=e.months?(o=e.months,a=null===(i=e.dayOfMonth)||void 0===i?void 0:i.toString(),1===o?a?D.a.frequencyRepeatsMonthlyOn().replace("{0}",a):D.a.frequencyRepeatsMonthly():12!==o||a?o>12&&o%12==0&&!a?D.a.frequencyRepeatsEveryYears().replace("{0}",(o/12).toString()):o>1?a?D.a.frequencyRepeatsEveryMonthOn().replace("{0}",o.toString()).replace("{1}",a):D.a.frequencyRepeatsEveryMonths().replace("{0}",o.toString()):"":D.a.frequencyRepeatsYearly()):"";var o,a;const s=e.weeks?((e,t)=>{const i=t?parseInt(t):void 0;let n=i||0===i?(0,m.Nz)(i):t;return 1===e?n?D.a.frequencyRepeatsWeeklyOn().replace("{day of the week}",n):D.a.frequencyRepeatsWeekly():e>1?n?D.a.frequencyRepeatsEveryWeeksOn().replace("{0}",e.toString()).replace("{day of the week}",n):D.a.frequencyRepeatsEveryWeeks().replace("{0}",e.toString()):""})(e.weeks,null===(n=e.dayOfWeek)||void 0===n?void 0:n.toString()):"",l=e.days?(c=e.days)>1?D.a.frequencyRepeatsEveryDays().replace("{0}",c.toString()):D.a.frequencyRepeatsDaily():"";var c;let u="";if(e.kilometers){const i=Math.round(t.toLocalDistance(e.kilometers)).toString(),n=t.getDistanceAbbreviation();u=e.months?D.a.frequencyRepeatsOr().replace("{0}",i).replace("{1}",n):D.a.frequencyRepeatsEvery().replace("{0}",i).replace("{1}",n)}let h="";if(e.engineHours){const t=ee(`${e.engineHours}`);h=e.months||e.kilometers?D.a.frequencyRepeatsOrHrs(t):D.a.frequencyRepeatsEveryHrs(t)}const p=[r,s,l,u,h].filter((e=>""!==e)).join("\n");let g="";return u||h||r||!e.eventDate||(g=t.toShortDate(e.eventDate).toString()),(0,d.z)(p||g)},H=e=>(0,g.uf)(3600*e,0);var V,_;!function(e){e[e.Open=1]="Open",e[e.Assigned=2]="Assigned",e[e.InProgress=3]="InProgress",e[e.OnHold=4]="OnHold",e[e.Completed=5]="Completed",e[e.Canceled=6]="Canceled"}(V||(V={})),function(e){e[e.Manual=0]="Manual",e[e.BulkImport=1]="BulkImport",e[e.InvoiceScanning=2]="InvoiceScanning"}(_||(_={}));const W={Asset:"asset",Order:"order",Orders:"orders",Job:"job",Request:"request",MaintenanceType:"maintenanceType"},q=[V.Open,V.Assigned,V.InProgress,V.OnHold],G=q,j=[V.Completed,V.Canceled],z=(e,t)=>({statuses:q,deviceSearch:{fromDate:!0===e?void 0:(0,r.qd)(new Date),groupFilterCondition:t}}),$=(e,t,i)=>({isSnoozed:!e,isReviewed:!1,deviceSearch:{fromDate:!0===t?void 0:(0,r.qd)(new Date),groupFilterCondition:i}});var Z,J,K,Y;!function(e){e[e.Breakdown=1]="Breakdown",e[e.DriversReport=4]="DriversReport",e[e.PreDelivery=7]="PreDelivery",e[e.PreventativeMaintenance=8]="PreventativeMaintenance",e[e.RoadCall=10]="RoadCall",e[e.PreventativeMaintenanceFollowUp=12]="PreventativeMaintenanceFollowUp",e[e.CapitalImprovement=21]="CapitalImprovement",e[e.AccidentReported=32]="AccidentReported",e[e.Vandalism=37]="Vandalism"}(Z||(Z={})),function(e){e[e.Scheduled=1]="Scheduled",e[e.Unscheduled=2]="Unscheduled",e[e.Emergency=3]="Emergency"}(J||(J={})),function(e){e.Processing="PROCESSING",e.Done="DONE",e.Failed="FAILED"}(K||(K={})),function(e){e.Idle="IDLE",e.Submitting="SUBMITTING",e.Processing="PROCESSING",e.Done="DONE",e.Failed="FAILED"}(Y||(Y={}));const Q=(e,t,i)=>
1e(c.u.MAINTENANCE_WORK_ORDER_OCR_RELEASE)&&!t&&i!==u.c.FedRamp&&i!==u.c.Conus,X=e=>e(c.u.MAINTENANCE_WORK_ORDER_PRINT_RELEASE),ee=e=>{if((0,v.vQ)(e))return"";const t=(0,h.Ay)(e);return(e.startsWith("-")?t.negate():t).getAllHours()},te=(e,t,i)=>(0,S.kZ)(e)?i:t.formatNumber(e),ie=(e,t,i="")=>{if((0,S.kZ)(e))return"";const r="number"==typeof e?t.formatNumber(e):e;return(0,v.vQ)(i)?(0,n.jsx)("div",{className:"m9e-right-align",children:r}):(0,n.jsx)("div",{className:"m9e-right-align",children:`${r} ${i}`})},ne=e=>{if(!e||(0,v.vQ)(e))return!1;const t=e.trim();if((0,v.vQ)(t))return!1;const i=t.toUpperCase();return Object.values(y.Y_).some((e=>e.id.toUpperCase()===i))},re=(e,t,i,r,o)=>{const a=(t,i)=>{const n=null!=t?t:0;return i?n.toLocaleString(e.getCultureInfo().language,{style:"currency",currency:i}):n.toLocaleString("en",{maximumFractionDigits:2})};return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"m9e-left-align",children:[" ",a(t,r)]}),o&&void 0!==i&&r!==o&&(0,n.jsx)("div",{className:"m9e-left-align m9e-text-display-currency",children:a(i,o)})]})},oe=(e,t,i,n)=>Math.max(0,(0,g.uf)((null!=e?e:0)+(null!=t?t:0)+(null!=i?i:0)+(null!=n?n:0),2)),ae=(e,t,i)=>{const n=null!=e?e:0;return i?n.toLocaleString(t.getCultureInfo().language,{style:"currency",currency:i,minimumFractionDigits:2,maximumFractionDigits:2}):n.toLocaleString("en",{minimumFractionDigits:2,maximumFractionDigits:2})},se=(e,t)=>{var i,n,r,o;return(0,g.uf)(e+(null!==(i=t.laborCost)&&void 0!==i?i:0)+(null!==(n=t.partsCost)&&void 0!==n?n:0)+(null!==(r=t.shippingCost)&&void 0!==r?r:0)+(null!==(o=t.miscCost)&&void 0!==o?o:0),2)},le=(e,t,i)=>(0,g.uf)(e-(i?0:null!=t?t:0),2),de=(e,t)=>Math.max((0,g.uf)(e+(null!=t?t:0),2),0),ce=(e,t)=>t<=0?null:(0,g.uf)((null!=e?e:0)/t*100,2),ue=(e,t)=>(0,g.uf)((null!=e?e:0)*t/100,2),he=({type:e,render:t,params:i})=>{const{isLoading:r,data:o}=(0,f.eR)(e,i);return r?(0,n.jsx)(s.E,{type:"pill"}):t(o||[])},pe=({type:e,render:t,search:i})=>{const{isLoading:r,data:o}=(0,f.sz)(e,i);return r?(0,n.jsx)(s.E,{type:"pill"}):t(o)},me=e=>e?(0,n.jsx)("div",{className:"m9e-right-align",children:e}):"",ge=e=>(0,S.kZ)(e)||0===parseInt(e.toString(),T.z.Hexadecimal),Se=(e,t,i,n=!1)=>{if((0,S.kZ)(e))return"";let r;if(void 0===i)r=ee(e.toString());else{const t=parseInt(e.toString(),i)/3600;r=n?Math.round(t):Math.floor(t)}return ie(r,t,D.a.h())},ve=(e,t,i)=>(0,S.kZ)(e)?"":ie((0,T.T)(e,t,i),t,t.getDistanceAbbreviation()),Ie=(e,t)=>e&&t.toShortDate(e instanceof Date?e:new Date(e)),ye=(e,t)=>me(((e,t)=>{if(!e)return;const i=e instanceof Date?e:new Date(e);return t.toShortDateTime(i,void 0,t.getCultureInfo().dateTimeFormat.replace(":ss",""))})(e,t)),fe=(e,t)=>me(Ie(e,t)),De=(e,t)=>e.length===t.length&&e.every(((e,i)=>e===t[i]));var Ce;function Re(e){return Object.keys(e).filter((e=>!isNaN(Number(e)))).reduce(((e,t)=>(e.push(t),e)),[])}!function(e){e[e.Low=100]="Low",e[e.Medium=200]="Medium",e[e.High=300]="High",e[e.Critical=400]="Critical"}(Ce||(Ce={}));const Te=Object.keys(V).filter((e=>!isNaN(Number(e)))).reduce(((e,t)=>(e[t]=V[t],e)),{}),be={Snooze1Day:{id:1,description:D.a.snoozeFor1Day},Snooze7Days:{id:7,description:D.a.snoozeFor7Days},Snooze30Days:{id:30,description:D.a.snoozeFor30Days}},we=()=>Object.entries(be).map((([e,t])=>({id:t.id.toString(),name:t.description(),children:[]})));function Ae(e,t){return e instanceof Array?e.map((e=>({name:t(e),id:e}))):Object.entries(e).map((([e])=>({name:t(e),id:e})))}new Date(864e10);const Ee=1208880,ke=(e,t)=>{var i;if(void 0===e)return D.a.unknown();const n=null!==(i={[V.Open]:{default:"Open",localized:D.a.open},[V.Assigned]:{default:"Assigned",localized:D.a.assigned},[V.InProgress]:{default:"In progress",localized:D.a.inProgress},[V.OnHold]:{default:"On hold",localized:D.a.onHold},[V.Completed]:{default:"Completed",localized:D.a.completed},[V.Canceled]:{default:"Canceled",localized:D.a.canceled}}[e])&&void 0!==i?i:{default:"unknown",localized:D.a.unknown};return(0,S.kZ)(t)?n.localized():t(n.default)},Oe=e=>Object.values(V).filter((e=>"number"==typeof e)).map((t=>({name:ke(t,e),value:t.toString()}))),Me=e=>Object.values(C.GZ).filter((e=>"number"==typeof e)).map((t=>({name:(0,C.Bj)(t,e),value:t.toString()}))),Le=e=>{const t={[Z.Breakdown]:D.a.breakdown,[Z.DriversReport]:D.a.driversReport,[Z.PreDelivery]:D.a.preDelivery,[Z.PreventativeMaintenance]:D.a.preventativeMaintenance,[Z.RoadCall]:D.a.roadCall,[Z.PreventativeMaintenanceFollowUp]:D.a.preventativeMaintenanceFollowUp,[Z.CapitalImprovement]:D.a.capitalImprovement,[Z.AccidentReported]:D.a.accidentReported,[Z.Vandalism]:D.a.vandalism};if(void 0!==e){const i=t[e];if(void 0!==i)return i()}return D.a.unknown()},Pe=e=>{const t={[J.Scheduled]:D.a.scheduled,[J.Unscheduled]:D.a.unscheduled,[J.Emergency]:D.a.emergency};if(void 0!==e){const i=t[e];if(void 0!==i)return i()}return D.a.unknown()},Fe=e=>"object"==typeof e?e.source:l.EK.DataInsight,xe=e=>{const t={[l.EK.Manual]:D.a.manual,[l.EK.DataInsight]:D.a.dataInsight,[l.EK.Scheduled]:D.a.scheduled,[l.EK.DriverReported]:D.a.driverReported,[l.EK.Faults]:D.a.faults,[l.EK.Rules]:D.a.rules,[l.hD.AssetInspection]:D.a.assetInspection,[l.hD.DefectReport]:D.a.defectReport};if(void 0!==e){const i=t[e];return i?i():e}return D.a.unknown()},Ne=(e,t,i)=>1===e?t:i,Be=e=>({[Ce.Critical]:D.a.critical,[Ce.High]:D.a.high,[Ce.Medium]:D.a.medium,[Ce.Low]:D.a.low}[e]()),Ue=e=>{var t;const i={[C.GZ.Critical]:D.a.critical,[C.GZ.High]:D.a.high,[C.GZ.Medium]:D.a.medium,[C.GZ.Low]:D.a.low,[C.GZ.Unknown]:D.a.unknown};return void 0!==e?(null!==(t=i[e])&&void 0!==t?t:D.a.unknown)():D.a.unknown()},He=e=>{var t,i;const n={[_.Manual]:D.a.creationMethodManual,[_.BulkImport]:D.a.creationMethodBulkImport,[_.InvoiceScanning]:D.a.creationMethodInvoiceScanning};return null!==(i=null===(t=n[e])||void 0===t?void 0:t.call(n))&&void 0!==i?i:""},Ve=e=>({[Ce.Critical]:"error",[Ce.High]:"error",[Ce.Medium]:"warning",[Ce.Low]:void 0}[e]),_e=(e,t)=>
1e.map((e=>t(e))),We=e=>{const t={[R.iK.Critical]:D.a.checkImmediately,[R.iK.High]:D.a.checkAtNextHalt,[R.iK.Medium]:D.a.maintenanceOnly,[R.iK.Low]:D.a.noRepairNeeded,[R.iK.Unknown]:D.a.notAvailable};return void 0===e?D.a.unknown():t[e]?t[e]():D.a.unknown()},qe=5e6,Ge=3106855,je=1208880,ze=595680,$e=5,Ze=50,Je="time",Ke="distance",Ye="engine-hours";function Qe(e){const t=[];return!((0,S.kZ)(e.dayOfMonth)&&(0,S.kZ)(e.dayOfWeek)&&!e.dayOfWeekName&&(0,S.kZ)(e.days)&&(0,S.kZ)(e.months)&&(0,S.kZ)(e.weeks))&&t.push(Je),(0,S.kZ)(e.kilometers)||t.push(Ke),(0,S.kZ)(e.engineHours)||t.push(Ye),t}async function Xe(e,t,i){var n,a,s,l,d,c,u,h,p,m,g;const y=(await e.get(o.BO8,{search:{maintenanceTypeSearch:{ids:[(0,r.vG)(i)]}}})).filter((e=>!!e.device)).map((e=>e.device)),f=await e.get(o.u1_,{search:{eventRuleId:t.id}}),D=await Promise.all(f.map((async t=>{var{id:i,eventRule:n}=t,a=M(t,["id","eventRule"]);const s=(0,r.NS)(a.recipient);if((null==s?void 0:s.id)&&!s.recipientType)try{const t=await e.getById(o.tXZ,(0,r.I8)(s.id));return Object.assign(Object.assign({},a),{recipient:t})}catch(e){return a}return a}))),C=Qe(t),R=(null!==(n=i.labels)&&void 0!==n?n:[]).filter((e=>!(0,v.vQ)(e))).filter((e=>!e.match(I.pl))).join(", ");let T=null;if(t.notificationTemplate){const i=(0,r.vG)(t.notificationTemplate);if(i&&"EmailTemplateDefaultMaintenanceReminderId"!==i)try{T=await e.getById(o.A0h,(0,r.I8)(i))}catch(e){}}return{comment:null!==(a=t.comment)&&void 0!==a?a:"",groups:null!==(s=t.groups)&&void 0!==s?s:[],labels:R,conditionIds:C,dayOfMonth:null!==(l=t.dayOfMonth)&&void 0!==l?l:null,dayOfWeek:null!==(d=t.dayOfWeek)&&void 0!==d?d:null,dayOfWeekName:null!==(c=t.dayOfWeekName)&&void 0!==c?c:"",days:null!==(u=t.days)&&void 0!==u?u:null,weeks:null!==(h=t.weeks)&&void 0!==h?h:null,months:null!==(p=t.months)&&void 0!==p?p:null,kilometers:null!==(m=t.kilometers)&&void 0!==m?m:null,engineHours:(0,S.kZ)(t.engineHours)?null:String(t.engineHours),bufferedDevices:y,bufferedNotifications:D,bufferedTemplate:T,sourceScheduleId:t.id,sourceScheduleName:null!==(g=t.name)&&void 0!==g?g:""}}var et;!function(e){e[e.CabAndSheetMetal=2]="CabAndSheetMetal",e[e.InstrumentsAndGauges=3]="InstrumentsAndGauges",e[e.AerodynamicDevices=4]="AerodynamicDevices",e[e.AxlesFront=11]="AxlesFront",e[e.AxlesRear=12]="AxlesRear",e[e.Brakes=13]="Brakes",e[e.Frame=14]="Frame",e[e.Steering=15]="Steering",e[e.Suspension=16]="Suspension",e[e.TiresTubesLinersAndValves=17]="TiresTubesLinersAndValves",e[e.WheelsRimsHubsAndBearings=18]="WheelsRimsHubsAndBearings",e[e.AxlesDrivenFrontSteering=21]="AxlesDrivenFrontSteering",e[e.AxlesDrivenRear=22]="AxlesDrivenRear",e[e.Clutch=23]="Clutch",e[e.DriveShafts=24]="DriveShafts",e[e.TransferCase=25]="TransferCase",e[e.TransmissionMainManual=26]="TransmissionMainManual",e[e.TransmissionAutomatic=27]="TransmissionAutomatic",e[e.AuxiliaryTransmission=28]="AuxiliaryTransmission"}(et||(et={}));const tt={[et.CabAndSheetMetal]:"Cab & Sheet Metal",[et.InstrumentsAndGauges]:"Instruments, Gauges, Warning & Shutdown Devices & Meters",[et.AerodynamicDevices]:"Aerodynamic Devices",[et.AxlesFront]:"Axles - Front",[et.AxlesRear]:"Axles - Rear",[et.Brakes]:"Brakes",[et.Frame]:"Frame",[et.Steering]:"Steering",[et.Suspension]:"Suspension",[et.TiresTubesLinersAndValves]:"Tires, Tubes, Liners & Valves",[et.WheelsRimsHubsAndBearings]:"Wheels, Rims, Hubs & Bearings",[et.AxlesDrivenFrontSteering]:"Axles - Driven, Front Steering",[et.AxlesDrivenRear]:"Axles - Driven, Rear",[et.Clutch]:"Clutch",[et.DriveShafts]:"Drive Shafts",[et.TransferCase]:"Transfer Case",[et.TransmissionMainManual]:"Transmission - Main, Manual",[et.TransmissionAutomatic]:"Transmission - Automatic",[et.AuxiliaryTransmission]:"Auxiliary Transmission"},it=e=>tt[e],nt=Object.values(et).filter((e=>"number"==typeof e)),rt=nt.map((e=>({id:String(e),name:it(e)})));var ot;!function(e){e[e.Adjust=1]="Adjust",e[e.Clean=2]="Clean",e[e.ReplacedParts=3]="ReplacedParts",e[e.InProgress=4]="InProgress",e[e.Cancelled=5]="Cancelled",e[e.Overhaul=8]="Overhaul",e[e.PerformPM=10]="PerformPM",e[e.RepairOrModify=24]="RepairOrModify"}(ot||(ot={}));const at={[ot.Adjust]:"Adjust",[ot.Clean]:"Clean",[ot.ReplacedParts]:"Replaced Parts",[ot.InProgress]:"In progress",[ot.Cancelled]:"Cancelled",[ot.Overhaul]:"Overhaul",[ot.PerformPM]:"Perform PM",[ot.RepairOrModify]:"Repair or Modify"},st=e=>at[e],lt=Object.values(ot).filter((e=>"number"==typeof e)).map((e=>({id:String(e),name:st(e)}))),dt=e=>{const t=lt.find((t=>t.name===e));return t?t.id:void 0},ct=(e,t)=>
1({assignedTo:"NoUserId",completedDateTime:void 0,costCurrency:e,dateTime:void 0,device:(0,r.Yd)(t),dueOnDate:void 0,engineHoursReading:"0",laborCost:0,mediaFiles:[],notes:"",odometerReading:"0",openedByUser:void 0,partsCost:0,reference:void 0,repairClass:void 0,repairReason:void 0,shippingCost:0,taxCost:0,timeOpen:void 0,totalCost:0,statusCode:1,priorityCode:Ce.Low,zone:"NoZoneId",updatedDate:void 0,currencyConversionFailed:!1}),ut=["GenericException","ArgumentException"],ht=e=>{const t=e instanceof Error?e.name:void 0;let i;return i=e instanceof Error?e.message:String("object"==typeof e&&null!==e&&"message"in e?e.message:e),{header:t,text:null!=i?i:"",type:"error",buttons:{primary:{text:D.a.accept()}}}};async function pt(e,t,i,n){const a=Object.assign({fromDate:n?void 0:(0,r.qd)((new Date).toUTCString())},(0,p.bq)(t,"groups")),s=(await e.get(o.ojn,{search:a})).map((e=>e.id));return i.filter((e=>s.includes((0,r.I8)(e))))}const mt=async e=>{const{value:t,currentAssets:i,includeArchived:n,myapi:r,getAssetsInGroups:o,updateAssets:s,defaultGroupsFilter:l}=e;if(!(0,a.Ti)(t.groups,l)&&(null==i?void 0:i.length)){const e=await o(r,t.groups,i,n);(0,k.n)(i,e)||s&&s(e,n)}}
1,gt=(e,t,i,n)=>{if(!e||!t)return!0;let r=null;for(const i of e)if(i.startDate){const e=new Date(i.startDate);new Date(t)<e&&(!r||e>r)&&(r=e)}return!r||(i(ht({message:D.a.completionDateConflictsWithJobs().replace("{0}",n.toShortDate(r))})),!1)};function St(e,t){if(!e||0===e.length||!t||0===t.length)return;const i=t,[,n]=(0,A.tr)(i,[w.aA]);if(e.some((e=>n.has((0,r.vG)(e)))))return"Trailer";const[,o]=(0,A.tr)(i,[w.VY]);return e.some((e=>o.has((0,r.vG)(e))))?"Device":void 0}const vt={bFFFFFFFFFFFFFFFF:()=>D.a.oilLifeRemaining(),bFFFFFFFFFFFFFFFE:()=>D.a.electricalSystemRatingInsight()},It=(e,t)=>{if(!e)return"";if(!t)return e;if(!(e=>{if(!e||e.length<2||"b"!==e[0])return!1;const t=parseInt(e[1],16);return!isNaN(t)&&t>=8})(t))return e;const i=vt[t];return i?i():e};function yt(e,t,i){const n=new Map,r=[],o=(e,i=1)=>{var a,s;if("string"==typeof e||void 0===e.id)return!1;if((1===i||2===i)&&(0,S.tb)(e.children))return!1;const l=[];let d=!1;(e.children||[]).forEach((e=>{o(e,i+1)&&"string"!=typeof e&&(l.push({id:e.id,name:t(e)}),d=!0)}));const c=3===i||d;if(c&&!n.has(e.id)){const i={id:e.id,name:null!==(s=t({id:e.id,name:null!==(a=e.name)&&void 0!==a?a:""}))&&void 0!==s?s:""};l.length>0&&(i.children=l),r.push(i),n.set(e.id,i)}return c},a=e.filter((e=>function(e,t){return"string"!=typeof e&&(e.assetType===b.sX.All||!t||e.assetType===t)}(e,i)));return a.forEach((e=>o(e))),r}},2708(e,t,i){var n;i.d(t,{$y:()=>h,Bj:()=>s,Oo:()=>a,iK:()=>n,qN:()=>l}),function(e){e.Critical="CheckImmediately",e.High="CheckAtNextHalt",e.Medium="MaintenanceOnly",e.Low="NoRepairNeeded",e.Unknown="NotAvailable"}(n||(n={}));const r={[n.Critical]:"Critical",[n.High]:"High",[n.Medium]:"Medium",[n.Low]:"Low",[n.Unknown]:"Unknown"},o={[n.Critical]:"error",[n.High]:"error",[n.Medium]:"warning",[n.Low]:"info",[n.Unknown]:void 0},a=[n.Critical,n.High],s=(e,t)=>{var i;const o=void 0!==e&&null!==(i=r[e])&&void 0!==i?i:r[n.Unknown];return t?t(o):o},l=e=>o[e],d=new Map([[n.Critical,0],[n.High,1],[n.Medium,2],[n.Low,3],[n.Unknown,4]]),c=d.get(n.Unknown),u=e=>{var t;return"string"==typeof e&&null!==(t=d.get(e))&&void 0!==t?t:c},h=(e,t)=>u(e)-u(t)},39753(e,t,i){i.d(t,{K3:()=>w,BB:()=>T,$M:()=>A,nx:()=>b});var n=i(49793),r=i(50405),o=i(58084),a=i(86345),s=i(76356),l=i(32090),d=i(86059),c=i(67853),u=i(4946),h=i(29395),p=i(7224),m=i(40120),g=i(55015),S=i(30577),v=i(16373),I=i(36905),y=i(94451),f=i(38707);function D(e,t){return e.addinName+(0===t?"":` (${t})`)}function C(e,t){var i;const n=(0,f.Sz)(),[o,C]=(0,r.useState)([]),[R,T]=(0,r.useState)(!0),b=(0,r.useRef)([]),w=(0,r.useRef)(new Set),A=(0,r.useRef)(new Map),{context:E,connection:k,currentUser:O,errorHandler:M,isFlagEnabled:L,goToPage:P}=n,F=n.pageArgs.shared,x=E.addinsStorage,N=(null===(i=k.getUserInfo())||void 0===i?void 0:i.database)||"",B=O.language,U=(0,r.useRef)({context:E,connection:k,shared:F,isFlagEnabled:L,goToPage:P,errorHandler:M});U.current={context:E,connection:k,shared:F,isFlagEnabled:L,goToPage:P,errorHandler:M};const H=(0,r.useRef)(t);(0,r.useEffect)((()=>{const e=H.current;H.current=t;const i=b.current;i.filter((t=>t.tabId===e)).forEach((e=>{try{e.frame.sendMessage(v.Iz,"blur",{addinName:e.addinName})}catch(e){}})),i.filter((e=>e.tabId===t)).forEach((e=>{try{e.frame.sendMessage(v.Iz,"focus",{addinName:e.addinName})}catch(e){}}))}),[t]),(0,r.useEffect)((()=>{if(!e)return void T(!1);let t=!1,i=[];const n={toggleDisplayAddin(e,t){var n;const r=null===(n=i.find((t=>t.addinName===e)))||void 0===n?void 0:n.tabId;return!!r&&(A.current.set(r,t),C((e=>[...e])),t)},toggleEnableAddin:(e,t)=>!1};return(async()=>{var r,o;try{const r=await x.list([s.T.TAB],!0),o=(0,d.B)(r,B,N).filter((t=>t.page===e)).filter((e=>(0,c.z3)(e.url)));if(t)return;const f=b.current,R=o.map(((e,t)=>D(e,t)));f.filter((e=>!R.includes(e.addinName))).forEach((e=>{A.current.delete(e.tabId),e.frame.detach(),e.frame.unregisterAddins([{name:e.addinName,title:"",data:{url:""}}]),e.frame.blur()}));const T=f.filter((e=>R.includes(e.addinName))),E=o.map(((e,t)=>({addin:e,globalIndex:t}))).filter((({addin:e,globalIndex:t})=>{const i=D(e,t);return T.every((e=>e.addinName!==i))})).map((({addin:i,globalIndex:r})=>{const o=document.createElement("div");o.className="addin-tabs__addin-panel";const s=(0,a.$)();A.current.set(s,!0);const d=D(i,r),c=new l.D(o,`/${N}/geotab/checkmate/addinsTools/addins/tabAddin/frame/frame.html`,B,"addin-tabs__iframe",i.title||i.addinName||"Add-Ins");return c.attach("haltConnection",(()=>{t||(A.current.delete(s),C((e=>e.filter((e=>e.addinName!==d)))),b.current=b.current.filter((e=>e.addinName!==d)))})),c.attach("addinFailed",(()=>{t||(A.current.delete(s),C((e=>e.filter((e=>e.addinName!==d)))),b.current=b.current.filter((e=>e.addinName!==d)))})),c.attach("addinInstalled",(({addinName:e})=>{e===d&&w.current.add(d)})),((t,i)=>{const r=U.current,o=(0,u.uK)();t.registerService(v.GC,new p.g(o));const a=new y.f(r.shared.entitiesLoader);t.registerService(v.Ly,new m.a({connection:(0,h.A)(r.connection),notificationCenter:r.shared.notificationCenter,domain:window.location.host,isFlagEnabled:e=>
1r.isFlagEnabled(e),iamSessionIdStorage:r.context.iamSessionIdReceiver,createLog:r.context.isFedRamp?()=>Promise.resolve():e=>a.log(e),isFedRamp:r.context.isFedRamp,pageNamePrefix:"TabAddin"},n)),t.registerService(v.Iz,new g.H(r.context.urlStateController,r.shared.uiConfiguration.pagesSecurity.hasAccessToPage,r.context.navigator.getNextPageName,r.goToPage,r.shared.filter.getValue,(e=>{r.shared.filter.attachEvent("change",e)}),{all:!1,keys:[],pageName:e}));const s=document.createElement("button");s.id=i,t.registerService(I.w,new S.h((e=>{A.current.set(i,e),C((e=>[...e]))}),(e=>{}),s))})(c,s),{addinName:d,tabId:s,container:o,frame:c,url:i.url,title:i.title,solutionId:i.solutionId}})),k=[...T,...E];b.current=k,i=k.map((e=>({addinName:e.addinName,tabId:e.tabId}))),E.forEach((e=>{e.frame.focus(),e.frame.registerAddins([{name:e.addinName,title:e.title,data:{url:e.url,solutionId:e.solutionId}}])})),T.forEach((e=>{e.frame.focus()})),C(k)}catch(e){null===(o=(r=U.current).errorHandler)||void 0===o||o.call(r,e)}finally{t||T(!1)}})(),()=>{t=!0,b.current.forEach((e=>{e.frame.detach(),e.frame.blur()})),b.current=[],w.current.clear(),A.current.clear()}}),[e,x,B,N]);return{addinTabs:o.filter((e=>!1!==A.current.get(e.tabId))).map((e=>({id:e.tabId,name:e.title}))),addinPanelRefs:(0,r.useMemo)((()=>{const e=new Map;return o.forEach((t=>{e.set(t.tabId,t.container)})),e}),[o]),isLoading:R}}const R=(0,r.createContext)({isAddinTabActive:!1,setIsAddinTabActive:()=>{}});function T({children:e}){const[t,i]=(0,r.useState)(!1);return(0,n.jsx)(R.Provider,{value:{isAddinTabActive:t,setIsAddinTabActive:i},children:e})}function b(){return(0,r.useContext)(R).isAddinTabActive}function w({children:e}){const{isAddinTabActive:t}=(0,r.useContext)(R);return(0,n.jsx)("div",{style:t?{display:"none"}:{display:"contents"},children:e})}function A({page:e,tabs:t,activeTabId:i,onTabChange:a,children:s,className:l,tabsClassName:d}){const{addinTabs:c,addinPanelRefs:u}=C(e,i),h=(0,r.useRef)(null),p=(0,r.useRef)(u),m=(0,r.useContext)(R).setIsAddinTabActive;(0,r.useEffect)((()=>{p.current=u}),[u]);const g=[...t,...c],S=c.some((e=>e.id===i)),v=t.some((e=>e.id===i));return(0,r.useEffect)((()=>{m(S)}),[S,m]),(0,r.useEffect)((()=>{const e=h.current;e&&u.forEach((t=>{t.parentElement||e.appendChild(t)}))}),[u]),(0,r.useEffect)((()=>{const e=h.current;if(!e||!S)return;const t=()=>{const t=e.getBoundingClientRect().top,i=window.innerHeight-t+"px";p.current.forEach((e=>{e.style.height=i}))};t();const i=new ResizeObserver(t);return i.observe(document.documentElement),()=>i.disconnect()}),[S]),(0,r.useEffect)((()=>{u.forEach(((e,t)=>{t===i?e.classList.remove("addin-tabs__addin-panel--hidden"):e.classList.add("addin-tabs__addin-panel--hidden")}))}),[u,i]),(0,n.jsxs)("div",{className:l,children:[(0,n.jsx)(o.t,{className:d,tabs:g,activeTabId:i,onTabChange:a}),v&&s,(0,n.jsx)("div",{ref:h,style:{display:S?void 0:"none"}})]})}A.displayName="AddinTabs"},12691(e,t,i){i.d(t,{Q:()=>r});var n=i(38514);const r=(e,t,i,r,o)=>{const a=n.oU.get(r);if(void 0===a)return!1;const s=n.El.get(r);if(void 0===s)return!1;const l=i-a;return e.some((e=>"object"==typeof e.device&&null!==e.device&&e.device.id===o))&&t.some((e=>{var t;return"object"==typeof e.device&&null!==e.device&&e.device.id===o&&(null===(t=e.statusData)||void 0===t?void 0:t.some((e=>{var t;return(null===(t=e.diagnostic)||void 0===t?void 0:t.id)===n.Yi})))}))&&l>=0&&l<s}},32365(e,t,i){i.d(t,{Au:()=>h,je:()=>a,v9:()=>p});var n=i(8515),r=i(89615),o=i(78011);const a=e=>(0,o.EJ)(e)?e.groupFilterConditions.every((e=>a(e))):e.groupId===r.s_,s=(e,t,i=new Set)=>{if(i.has(e))return new Set;i.add(e);const n=new Set([e]),r=t[e];if(!r)return n;for(const e of r.children)for(const r of s(e.id,t,i))n.add(r);return n},l=(e,t,i)=>{const n=e.groupFilterConditions;n&&n.length?n.forEach((e=>l(e,t,i))):e.groupId&&t(e.groupId).forEach((e=>i.add(e)))},d=(e,t)=>{const i=e.groupFilterConditions;return i&&i.length?e.relation===n.$.AND?i.every((e=>d(e,t))):i.some((e=>d(e,t))):!!e.groupId&&t.has(e.groupId)},c=(e,t,i)=>{const n=e.groupFilterConditions;return n&&n.length?n.some((e=>c(e,t,i))):!!e.groupId&&i(t).has(e.groupId)},u=(e,t,i)=>{const r=e.groupFilterConditions;return r&&r.length?e.relation===n.$.AND?r.every((e=>u(e,t,i))):r.some((e=>u(e,t,i))):!!e.groupId&&c(t,e.groupId,i)},h=(e,t,i)=>{if(a(t.groupFilterCondition))return a(e.groupFilterCondition);if(a(e.groupFilterCondition))return!0;const n=new Map,r=e=>{let t=n.get(e);return t||(t=s(e,i),n.set(e,t)),t},o=new Set;return l(e.groupFilterCondition,r,o),d(t.groupFilterCondition,o)&&u(e.groupFilterCondition,t.groupFilterCondition,r)},p=e=>({id:"",name:"",comments:"",groupFilterCondition:{relation:n.$.OR,groupFilterConditions:e.map((e=>({groupId:e.id})))}})},88305(e,t,i){i.d(t,{T:()=>
1o,z:()=>n});var n,r=i(81156);!function(e){e[e.Decimal=10]="Decimal",e[e.Hexadecimal=16]="Hexadecimal"}(n||(n={}));const o=(e,t,i)=>{if(!Object.values(n).includes(i))throw new Error("Invalid base");const o=t.toLocalDistance((0,r.U2)(parseInt(e.toString(),i)));return parseFloat(o.toFixed(2))}},27850(e,t,i){i.d(t,{D_:()=>f,IQ:()=>v,SB:()=>R,VP:()=>g,WQ:()=>D,aN:()=>C,fB:()=>I,g7:()=>b,oR:()=>S,rk:()=>y,yr:()=>T});var n=i(49793),r=i(42792),o=i(79458),a=i(93552),s=i(37513),l=i(68533),d=i(50405),c=i(44583),u=i(43643),h=i(89073),p=i(38707),m=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i};function g(e){var t,i;const r=null!=e?e:{},{name:o,title:a,width:s,sort:l,render:d}=r,c=m(r,["name","title","width","sort","render"]),u=Object.assign(Object.assign(Object.assign({},c),{id:o,name:o,title:null!==(t=e.title)&&void 0!==t?t:o,meta:{defaultWidth:null!==(i=e.width)&&void 0!==i?i:I,multilineHeader:e.multilineHeader},isSortable:!!(null==e?void 0:e.sort),sortable:!!(null==e?void 0:e.sort),sort:l}),"boolean"==typeof e.default?{visible:e.default}:{});return e.column?u.columnComponent=e.column:d&&(u.columnComponent={renderHeader:f,render:d,renderFeed:(e,t)=>[e,(0,n.jsx)("div",{children:d(t)},t.id)]}),u}function S(e,t){return{id:v,name:v,title:"",meta:{defaultWidth:30,visibleOnHover:!0},isSortable:!1,columnComponent:new a.G({actions:[{icon:s.t,createTitle:t=>e("More actions"),actions:t}]})}}const v="actions",I=150,y=300;function f(e){return e}function D(e,t,i,n=100,r){const o={dataByPage:{0:[]},current:0,total:0,pageSize:n},[a,s]=(0,d.useState)(o),l=e=>s(Object.assign(Object.assign({},o),{total:e})),{data:c}=(0,u.sz)(e,t,{enabled:!1!==(null==r?void 0:r.enabled)}),h=null!=c?c:-1,p=(0,d.useCallback)(((e="all")=>(h<0||("all"===e?l(h):s((e=>Object.assign(Object.assign({},e),{total:h})))),Promise.resolve())),[t,e,h]),m=(0,d.useCallback)(((e,t)=>{s((i=>{const n=i.dataByPage.hasOwnProperty(e)?i.dataByPage:Object.assign(Object.assign({},i.dataByPage),{[e]:null!=t?t:[]});return Object.assign(Object.assign({},i),{current:e,dataByPage:n})}))}),[s]);return(0,d.useEffect)((()=>{h>=0&&l(h)}),[e,t,i.sortColumn,i.sortDirection,h]),(0,d.useMemo)((()=>({pagination:a,setPage:m,reset:p})),[a,m,p])}function C(e,t,i,n,a,s=100,c){var u,h,p,m,g;const S=(0,d.useMemo)((()=>{var e;if(!n.length)throw new Error("No columns provided");if(a){const t=n.find((e=>e.name===a.sortColumn));if(!t)throw new Error(`Invalid default sort: column '${a.sortColumn}' not found in columns array`);return{sortColumn:String(t.name),sortDirection:null!==(e=a.sortDirection)&&void 0!==e?e:r.e.Ascending}}return{sortColumn:String(n[0].name),sortDirection:r.e.Ascending}}),[n,null==a?void 0:a.sortColumn,null==a?void 0:a.sortDirection]),v=null!==(u=null==c?void 0:c.sortStorageName)&&void 0!==u?u:e,[I,y]=(0,d.useState)((()=>{var e;const t=null!==(e=(0,o.c)(v,S))&&void 0!==e?e:S;return n.some((e=>e.name===t.sortColumn))?t:S})),f=(0,d.useRef)(!1!==(null==c?void 0:c.enabled));(0,d.useEffect)((()=>{var e;const t=!1!==(null==c?void 0:c.enabled);if(t&&!f.current){const t=null!==(e=(0,o.c)(v,S))&&void 0!==e?e:S;n.some((e=>e.name===t.sortColumn))&&y((e=>e.sortColumn===t.sortColumn&&e.sortDirection===t.sortDirection?e:t))}f.current=t}),[null==c?void 0:c.enabled,v,S,n]);const C=D(t,i,I,s,c),R=(0,d.useCallback)((e=>{y(e),C.setPage(0)}),[C]),T=null===(h=C.pagination.dataByPage[C.pagination.current])||void 0===h?void 0:h[C.pagination.pageSize-1],b=n.find((e=>e.name===I.sortColumn)),w=null==b?void 0:b.sort;b||console.error(`Column with name '${I.sortColumn}' not found in columns array ${n.map((e=>e.name)).toString()}`);const A=null!==(p=null==w?void 0:w.sortName)&&void 0!==p?p:"",E="id"===I.sortColumn||null==T?void 0:T.id,k=w?null===(g=null===(O=T,m=w.fieldName.split(".").reduce(((e,t)=>null==e?void 0:e[t]),O))||void 0===m?void 0:m.toString)||void 0===g?void 0:g.call(m):void 0;var O;const M=(0,d.useMemo)((()=>{const e=I.sortDirection===r.e.Ascending?l.vu.Ascending:l.vu.Descending;return{search:i,sort:""===A?void 0:{sortBy:A,sortDirection:e,lastId:E,offset:k},resultsLimit:C.pagination.pageSize}}),[i,A,I.sortDirection,E,k,C.pagination.pageSize]),L=(0,d.useMemo)((()=>({pageName:v,value:I,onChange:R})),[v,I,R]);return(0,d.useMemo)((()=>Object.assign(Object.assign({},C),{params:M,sortable:L})),[C,M,L])}function R(e,t,i,n,r,o){const{params:a,sortable:s,pagination:l,setPage:h}=C(e,t,i,n,r,100,o),p=(0,u.eR)(t,a,Object.assign(Object.assign(Object.assign({},u.g5),{enabled:!1!==(null==o?void 0:o.enabled),placeholderData:(null==o?void 0:o.keepPreviousData)?c.rX:void 0}),void 0!==(null==o?void 0:o.refetchInterval)&&{refetchInterval:o.refetchInterval}));return(0,d.useMemo)((()=>{const t=p.data||[];return{entities:t,isLoading:p.isLoading,registerTable:{entities:t,isLoading:p.isLoading,columns:n,sortable:s,flexible:{pageName:e}},registerPagination:{activePage:l.current,onChange:e=>{p.isFetching||h(e,t)},disabled:p.isFetching,perPage:l.pageSize,total:l.total}}}),[p,s,l])}function T(e,t,i,n,r,o){const{entities:a,registerTable:s,registerPagination:l}=R(e,t,i,n,void 0,o),{goToPage:c}=(0,p.Sz)(),[u,m]=(0,d.useState)(!1),[g,S]=(0,d.useState)(),v=(0,d.useRef)(null),I=(0,d.useCallback)((e=>{if((0,h.Fr)()&&r){const{url:t,params:i}=r(e);c(t,i)}m(!0),S(e)}),[c]),y=(0,d.useCallback)((()=>{S(void 0),m(!1)}),[]);return(0,d.useEffect)((()=>
1{if(!v.current)return()=>{};const e=e=>{b(e.target,a,I,null==g?void 0:g.id,y)};return v.current.addEventListener("click",e),()=>{var t;return null===(t=v.current)||void 0===t?void 0:t.removeEventListener("click",e)}}),[a,I,g,y]),{entities:a,registerMasterDetail:{isPanelOpen:u,tableRef:v},selectedEntity:g,registerTable:s,registerPagination:l,onSelectEntity:I,closePanel:y}}const b=(e,t,i,n,r)=>{if(e&&t&&(!e.classList||!(e.classList.contains("zen-data-grid-wrapper")||e.classList.contains("zen-status-pill")||e.classList.contains("zen-actions-column__action")||e.classList.contains("action-link-column")||e.classList.contains("zen-checkbox")||e.classList.contains("geo-link"))))if(e.hasAttribute("data-row-id")){const o=e.getAttribute("data-row-id");if(o===n&&r)return void r();const a=t.find((e=>e.id===o));a&&i(a)}else b(e.parentElement,t,i,n,r)}},63485(e,t,i){i.d(t,{V:()=>p});var n=i(49793),r=i(12802),o=i(61133),a=i(97712),s=i(51046),l=i(38956),d=i(76210),c=i(50405),u=i(94996),h=i(38707);const p=({device:e,getLinkTo:t,hasAccessTo:i,tabToFocus:p})=>{var m,g,S;const{translate:v}=(0,h.Sz)(),I=(0,c.useMemo)((()=>!(0,u.kZ)(e.activeTo)&&new Date(e.activeTo)<new Date),[e.activeTo]),y=""===e.serialNumber,f=i("DisplayMap",{name:o.Xj.Map,level:r.hx.FeatureView})&&!y&&!I,D=null!==(m=t("map",{liveVehicleIds:[e.id]}))&&void 0!==m?m:"",C={id:e.id};return p&&(C.tabToFocus=p),(0,n.jsxs)("div",{className:"asset-chip",children:[i("DisplayMap",{name:o.Xj.Map,level:r.hx.FeatureView})&&(f?(0,n.jsx)(a.A,{icon:s.G,onClick:()=>window.location.href=D,title:v("View on map")}):(0,n.jsx)(a.A,{icon:l.C,disabled:!0})),(0,n.jsx)("a",{id:"asset-chip-device-link",href:null!==(g=t("device",C))&&void 0!==g?g:"",className:"zen-link",children:null!==(S=e.name)&&void 0!==S?S:e.id}),I&&(0,n.jsx)("div",{className:"asset-chip__archived-icon",children:(0,n.jsx)(a.A,{style:"secondary",icon:d.C})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.