@carto/meridian-ds 0.1.1-alpha.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +5 -5
- package/dist/ArrowDown-CGnG0E-4.cjs +1 -0
- package/dist/ArrowDown-TqD1eTx5.js +6 -0
- package/dist/SwatchSquare-C-QxZLYN.cjs +1 -0
- package/dist/SwatchSquare-DVuvnme5.js +7 -0
- package/dist/custom-icons/index.cjs +1 -1
- package/dist/custom-icons/index.js +447 -57
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/types/custom-icons/AccessIn.d.ts +4 -0
- package/dist/types/custom-icons/AccessIn.d.ts.map +1 -0
- package/dist/types/custom-icons/AddApp.d.ts +4 -0
- package/dist/types/custom-icons/AddApp.d.ts.map +1 -0
- package/dist/types/custom-icons/AddSection.d.ts +4 -0
- package/dist/types/custom-icons/AddSection.d.ts.map +1 -0
- package/dist/types/custom-icons/AdvancedSettings.d.ts +4 -0
- package/dist/types/custom-icons/AdvancedSettings.d.ts.map +1 -0
- package/dist/types/custom-icons/Annotation.d.ts +4 -0
- package/dist/types/custom-icons/Annotation.d.ts.map +1 -0
- package/dist/types/custom-icons/ApiCall.d.ts +4 -0
- package/dist/types/custom-icons/ApiCall.d.ts.map +1 -0
- package/dist/types/custom-icons/ArrowDown.d.ts +4 -0
- package/dist/types/custom-icons/ArrowDown.d.ts.map +1 -0
- package/dist/types/custom-icons/ArrowLeft.d.ts +4 -0
- package/dist/types/custom-icons/ArrowLeft.d.ts.map +1 -0
- package/dist/types/custom-icons/ArrowRight.d.ts +4 -0
- package/dist/types/custom-icons/ArrowRight.d.ts.map +1 -0
- package/dist/types/custom-icons/ArrowUp.d.ts +4 -0
- package/dist/types/custom-icons/ArrowUp.d.ts.map +1 -0
- package/dist/types/custom-icons/Autostyle.d.ts +4 -0
- package/dist/types/custom-icons/Autostyle.d.ts.map +1 -0
- package/dist/types/custom-icons/Avg.d.ts +4 -0
- package/dist/types/custom-icons/Avg.d.ts.map +1 -0
- package/dist/types/custom-icons/Behavioral.d.ts +4 -0
- package/dist/types/custom-icons/Behavioral.d.ts.map +1 -0
- package/dist/types/custom-icons/Bigquery.d.ts +4 -0
- package/dist/types/custom-icons/Bigquery.d.ts.map +1 -0
- package/dist/types/custom-icons/Blending.d.ts +4 -0
- package/dist/types/custom-icons/Blending.d.ts.map +1 -0
- package/dist/types/custom-icons/BlockLabel.d.ts +4 -0
- package/dist/types/custom-icons/BlockLabel.d.ts.map +1 -0
- package/dist/types/custom-icons/BlockLabelOff.d.ts +4 -0
- package/dist/types/custom-icons/BlockLabelOff.d.ts.map +1 -0
- package/dist/types/custom-icons/BottomRow.d.ts +4 -0
- package/dist/types/custom-icons/BottomRow.d.ts.map +1 -0
- package/dist/types/custom-icons/Carto.d.ts +4 -0
- package/dist/types/custom-icons/Carto.d.ts.map +1 -0
- package/dist/types/custom-icons/CartoAi.d.ts +4 -0
- package/dist/types/custom-icons/CartoAi.d.ts.map +1 -0
- package/dist/types/custom-icons/CartoSymbol.d.ts +4 -0
- package/dist/types/custom-icons/CartoSymbol.d.ts.map +1 -0
- package/dist/types/custom-icons/CatalogView.d.ts +4 -0
- package/dist/types/custom-icons/CatalogView.d.ts.map +1 -0
- package/dist/types/custom-icons/CatastropheModeling.d.ts +4 -0
- package/dist/types/custom-icons/CatastropheModeling.d.ts.map +1 -0
- package/dist/types/custom-icons/Center.d.ts +4 -0
- package/dist/types/custom-icons/Center.d.ts.map +1 -0
- package/dist/types/custom-icons/CenterLayer.d.ts +4 -0
- package/dist/types/custom-icons/CenterLayer.d.ts.map +1 -0
- package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts +4 -0
- package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts.map +1 -0
- package/dist/types/custom-icons/CloseDiagonallyRight.d.ts +4 -0
- package/dist/types/custom-icons/CloseDiagonallyRight.d.ts.map +1 -0
- package/dist/types/custom-icons/CloseVertically.d.ts +4 -0
- package/dist/types/custom-icons/CloseVertically.d.ts.map +1 -0
- package/dist/types/custom-icons/CodeBlock.d.ts +4 -0
- package/dist/types/custom-icons/CodeBlock.d.ts.map +1 -0
- package/dist/types/custom-icons/Console.d.ts +4 -0
- package/dist/types/custom-icons/Console.d.ts.map +1 -0
- package/dist/types/custom-icons/Covid19.d.ts +4 -0
- package/dist/types/custom-icons/Covid19.d.ts.map +1 -0
- package/dist/types/custom-icons/CreateMap.d.ts +4 -0
- package/dist/types/custom-icons/CreateMap.d.ts.map +1 -0
- package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts +4 -0
- package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts.map +1 -0
- package/dist/types/custom-icons/CreateTileset.d.ts +4 -0
- package/dist/types/custom-icons/CreateTileset.d.ts.map +1 -0
- package/dist/types/custom-icons/CreateWorkflow.d.ts +4 -0
- package/dist/types/custom-icons/CreateWorkflow.d.ts.map +1 -0
- package/dist/types/custom-icons/Data.d.ts +4 -0
- package/dist/types/custom-icons/Data.d.ts.map +1 -0
- package/dist/types/custom-icons/DataAccess.d.ts +4 -0
- package/dist/types/custom-icons/DataAccess.d.ts.map +1 -0
- package/dist/types/custom-icons/DataExplorer.d.ts +4 -0
- package/dist/types/custom-icons/DataExplorer.d.ts.map +1 -0
- package/dist/types/custom-icons/DataMonetization.d.ts +4 -0
- package/dist/types/custom-icons/DataMonetization.d.ts.map +1 -0
- package/dist/types/custom-icons/DataObservatory.d.ts +4 -0
- package/dist/types/custom-icons/DataObservatory.d.ts.map +1 -0
- package/dist/types/custom-icons/DataOk.d.ts +4 -0
- package/dist/types/custom-icons/DataOk.d.ts.map +1 -0
- package/dist/types/custom-icons/DataPending.d.ts +4 -0
- package/dist/types/custom-icons/DataPending.d.ts.map +1 -0
- package/dist/types/custom-icons/DataPremium.d.ts +4 -0
- package/dist/types/custom-icons/DataPremium.d.ts.map +1 -0
- package/dist/types/custom-icons/DataPublic.d.ts +4 -0
- package/dist/types/custom-icons/DataPublic.d.ts.map +1 -0
- package/dist/types/custom-icons/DataSample.d.ts +4 -0
- package/dist/types/custom-icons/DataSample.d.ts.map +1 -0
- package/dist/types/custom-icons/DataUnavailable.d.ts +4 -0
- package/dist/types/custom-icons/DataUnavailable.d.ts.map +1 -0
- package/dist/types/custom-icons/Databricks.d.ts +4 -0
- package/dist/types/custom-icons/Databricks.d.ts.map +1 -0
- package/dist/types/custom-icons/Demographics.d.ts +4 -0
- package/dist/types/custom-icons/Demographics.d.ts.map +1 -0
- package/dist/types/custom-icons/Derived.d.ts +4 -0
- package/dist/types/custom-icons/Derived.d.ts.map +1 -0
- package/dist/types/custom-icons/Distance.d.ts +4 -0
- package/dist/types/custom-icons/Distance.d.ts.map +1 -0
- package/dist/types/custom-icons/Dot.d.ts +4 -0
- package/dist/types/custom-icons/Dot.d.ts.map +1 -0
- package/dist/types/custom-icons/DrawCircle.d.ts +4 -0
- package/dist/types/custom-icons/DrawCircle.d.ts.map +1 -0
- package/dist/types/custom-icons/DrawLasso.d.ts +4 -0
- package/dist/types/custom-icons/DrawLasso.d.ts.map +1 -0
- package/dist/types/custom-icons/DrawLine.d.ts +4 -0
- package/dist/types/custom-icons/DrawLine.d.ts.map +1 -0
- package/dist/types/custom-icons/DrawPolygon.d.ts +4 -0
- package/dist/types/custom-icons/DrawPolygon.d.ts.map +1 -0
- package/dist/types/custom-icons/DrawSquare.d.ts +4 -0
- package/dist/types/custom-icons/DrawSquare.d.ts.map +1 -0
- package/dist/types/custom-icons/DropAPin.d.ts +4 -0
- package/dist/types/custom-icons/DropAPin.d.ts.map +1 -0
- package/dist/types/custom-icons/DualMap.d.ts +4 -0
- package/dist/types/custom-icons/DualMap.d.ts.map +1 -0
- package/dist/types/custom-icons/Environmental.d.ts +4 -0
- package/dist/types/custom-icons/Environmental.d.ts.map +1 -0
- package/dist/types/custom-icons/EnvironmentalManagement.d.ts +4 -0
- package/dist/types/custom-icons/EnvironmentalManagement.d.ts.map +1 -0
- package/dist/types/custom-icons/Equal.d.ts +4 -0
- package/dist/types/custom-icons/Equal.d.ts.map +1 -0
- package/dist/types/custom-icons/ExitToAppLeft.d.ts +4 -0
- package/dist/types/custom-icons/ExitToAppLeft.d.ts.map +1 -0
- package/dist/types/custom-icons/Fabric.d.ts +4 -0
- package/dist/types/custom-icons/Fabric.d.ts.map +1 -0
- package/dist/types/custom-icons/Facebook.d.ts +4 -0
- package/dist/types/custom-icons/Facebook.d.ts.map +1 -0
- package/dist/types/custom-icons/Financial.d.ts +4 -0
- package/dist/types/custom-icons/Financial.d.ts.map +1 -0
- package/dist/types/custom-icons/FlipInverse.d.ts +4 -0
- package/dist/types/custom-icons/FlipInverse.d.ts.map +1 -0
- package/dist/types/custom-icons/Framed.d.ts +4 -0
- package/dist/types/custom-icons/Framed.d.ts.map +1 -0
- package/dist/types/custom-icons/FraudDetection.d.ts +4 -0
- package/dist/types/custom-icons/FraudDetection.d.ts.map +1 -0
- package/dist/types/custom-icons/Functions.d.ts +4 -0
- package/dist/types/custom-icons/Functions.d.ts.map +1 -0
- package/dist/types/custom-icons/GeneratingDescription.d.ts +4 -0
- package/dist/types/custom-icons/GeneratingDescription.d.ts.map +1 -0
- package/dist/types/custom-icons/GeocodeTable.d.ts +4 -0
- package/dist/types/custom-icons/GeocodeTable.d.ts.map +1 -0
- package/dist/types/custom-icons/Geography.d.ts +4 -0
- package/dist/types/custom-icons/Geography.d.ts.map +1 -0
- package/dist/types/custom-icons/Geomarketing.d.ts +4 -0
- package/dist/types/custom-icons/Geomarketing.d.ts.map +1 -0
- package/dist/types/custom-icons/Geometry.d.ts +4 -0
- package/dist/types/custom-icons/Geometry.d.ts.map +1 -0
- package/dist/types/custom-icons/Github.d.ts +4 -0
- package/dist/types/custom-icons/Github.d.ts.map +1 -0
- package/dist/types/custom-icons/Google.d.ts +4 -0
- package/dist/types/custom-icons/Google.d.ts.map +1 -0
- package/dist/types/custom-icons/H3.d.ts +4 -0
- package/dist/types/custom-icons/H3.d.ts.map +1 -0
- package/dist/types/custom-icons/HealthAnalytics.d.ts +4 -0
- package/dist/types/custom-icons/HealthAnalytics.d.ts.map +1 -0
- package/dist/types/custom-icons/HideLeftsidebar.d.ts +4 -0
- package/dist/types/custom-icons/HideLeftsidebar.d.ts.map +1 -0
- package/dist/types/custom-icons/Home.d.ts +4 -0
- package/dist/types/custom-icons/Home.d.ts.map +1 -0
- package/dist/types/custom-icons/Housing.d.ts +4 -0
- package/dist/types/custom-icons/Housing.d.ts.map +1 -0
- package/dist/types/custom-icons/HumanMobility.d.ts +4 -0
- package/dist/types/custom-icons/HumanMobility.d.ts.map +1 -0
- package/dist/types/custom-icons/Id.d.ts +4 -0
- package/dist/types/custom-icons/Id.d.ts.map +1 -0
- package/dist/types/custom-icons/Image.d.ts +4 -0
- package/dist/types/custom-icons/Image.d.ts.map +1 -0
- package/dist/types/custom-icons/Infrastructure.d.ts +4 -0
- package/dist/types/custom-icons/Infrastructure.d.ts.map +1 -0
- package/dist/types/custom-icons/IotAnalytics.d.ts +4 -0
- package/dist/types/custom-icons/IotAnalytics.d.ts.map +1 -0
- package/dist/types/custom-icons/LabelDeprecated.d.ts +4 -0
- package/dist/types/custom-icons/LabelDeprecated.d.ts.map +1 -0
- package/dist/types/custom-icons/Layers.d.ts +4 -0
- package/dist/types/custom-icons/Layers.d.ts.map +1 -0
- package/dist/types/custom-icons/Linkedin.d.ts +4 -0
- package/dist/types/custom-icons/Linkedin.d.ts.map +1 -0
- package/dist/types/custom-icons/MapCoordinates.d.ts +4 -0
- package/dist/types/custom-icons/MapCoordinates.d.ts.map +1 -0
- package/dist/types/custom-icons/MapOthers.d.ts +4 -0
- package/dist/types/custom-icons/MapOthers.d.ts.map +1 -0
- package/dist/types/custom-icons/MapPin.d.ts +4 -0
- package/dist/types/custom-icons/MapPin.d.ts.map +1 -0
- package/dist/types/custom-icons/MarketAnalysis.d.ts +4 -0
- package/dist/types/custom-icons/MarketAnalysis.d.ts.map +1 -0
- package/dist/types/custom-icons/Max.d.ts +4 -0
- package/dist/types/custom-icons/Max.d.ts.map +1 -0
- package/dist/types/custom-icons/MeasureTool.d.ts +4 -0
- package/dist/types/custom-icons/MeasureTool.d.ts.map +1 -0
- package/dist/types/custom-icons/Min.d.ts +4 -0
- package/dist/types/custom-icons/Min.d.ts.map +1 -0
- package/dist/types/custom-icons/MobilityPlanning.d.ts +4 -0
- package/dist/types/custom-icons/MobilityPlanning.d.ts.map +1 -0
- package/dist/types/custom-icons/NetworkDeployment.d.ts +4 -0
- package/dist/types/custom-icons/NetworkDeployment.d.ts.map +1 -0
- package/dist/types/custom-icons/NightsThermostat.d.ts +4 -0
- package/dist/types/custom-icons/NightsThermostat.d.ts.map +1 -0
- package/dist/types/custom-icons/NoApp.d.ts +4 -0
- package/dist/types/custom-icons/NoApp.d.ts.map +1 -0
- package/dist/types/custom-icons/NoMap.d.ts +4 -0
- package/dist/types/custom-icons/NoMap.d.ts.map +1 -0
- package/dist/types/custom-icons/NoSpatialExtension.d.ts +4 -0
- package/dist/types/custom-icons/NoSpatialExtension.d.ts.map +1 -0
- package/dist/types/custom-icons/NoTileset.d.ts +4 -0
- package/dist/types/custom-icons/NoTileset.d.ts.map +1 -0
- package/dist/types/custom-icons/NotEqual.d.ts +4 -0
- package/dist/types/custom-icons/NotEqual.d.ts.map +1 -0
- package/dist/types/custom-icons/Number.d.ts +4 -0
- package/dist/types/custom-icons/Number.d.ts.map +1 -0
- package/dist/types/custom-icons/Onboarding.d.ts +4 -0
- package/dist/types/custom-icons/Onboarding.d.ts.map +1 -0
- package/dist/types/custom-icons/OohAnalytics.d.ts +4 -0
- package/dist/types/custom-icons/OohAnalytics.d.ts.map +1 -0
- package/dist/types/custom-icons/Opacity.d.ts +4 -0
- package/dist/types/custom-icons/Opacity.d.ts.map +1 -0
- package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts +4 -0
- package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts.map +1 -0
- package/dist/types/custom-icons/OpenDiagonallyRight.d.ts +4 -0
- package/dist/types/custom-icons/OpenDiagonallyRight.d.ts.map +1 -0
- package/dist/types/custom-icons/OpenNewWindow.d.ts +4 -0
- package/dist/types/custom-icons/OpenNewWindow.d.ts.map +1 -0
- package/dist/types/custom-icons/OpenVertically.d.ts +4 -0
- package/dist/types/custom-icons/OpenVertically.d.ts.map +1 -0
- package/dist/types/custom-icons/ParameterSettings.d.ts +4 -0
- package/dist/types/custom-icons/ParameterSettings.d.ts.map +1 -0
- package/dist/types/custom-icons/PawnChess.d.ts +4 -0
- package/dist/types/custom-icons/PawnChess.d.ts.map +1 -0
- package/dist/types/custom-icons/PlaceSelect.d.ts +4 -0
- package/dist/types/custom-icons/PlaceSelect.d.ts.map +1 -0
- package/dist/types/custom-icons/PointsOfInterest.d.ts +4 -0
- package/dist/types/custom-icons/PointsOfInterest.d.ts.map +1 -0
- package/dist/types/custom-icons/Postgre.d.ts +4 -0
- package/dist/types/custom-icons/Postgre.d.ts.map +1 -0
- package/dist/types/custom-icons/PostgreOutlined.d.ts +4 -0
- package/dist/types/custom-icons/PostgreOutlined.d.ts.map +1 -0
- package/dist/types/custom-icons/Preferences.d.ts +4 -0
- package/dist/types/custom-icons/Preferences.d.ts.map +1 -0
- package/dist/types/custom-icons/ProcessData.d.ts +4 -0
- package/dist/types/custom-icons/ProcessData.d.ts.map +1 -0
- package/dist/types/custom-icons/PublicWithPassword.d.ts +4 -0
- package/dist/types/custom-icons/PublicWithPassword.d.ts.map +1 -0
- package/dist/types/custom-icons/Publish.d.ts +4 -0
- package/dist/types/custom-icons/Publish.d.ts.map +1 -0
- package/dist/types/custom-icons/Quadbin.d.ts +4 -0
- package/dist/types/custom-icons/Quadbin.d.ts.map +1 -0
- package/dist/types/custom-icons/Quadkey.d.ts +4 -0
- package/dist/types/custom-icons/Quadkey.d.ts.map +1 -0
- package/dist/types/custom-icons/QueryTable.d.ts +4 -0
- package/dist/types/custom-icons/QueryTable.d.ts.map +1 -0
- package/dist/types/custom-icons/Rain.d.ts +4 -0
- package/dist/types/custom-icons/Rain.d.ts.map +1 -0
- package/dist/types/custom-icons/Raster.d.ts +4 -0
- package/dist/types/custom-icons/Raster.d.ts.map +1 -0
- package/dist/types/custom-icons/Redshift.d.ts +4 -0
- package/dist/types/custom-icons/Redshift.d.ts.map +1 -0
- package/dist/types/custom-icons/Report.d.ts +4 -0
- package/dist/types/custom-icons/Report.d.ts.map +1 -0
- package/dist/types/custom-icons/Reset.d.ts +4 -0
- package/dist/types/custom-icons/Reset.d.ts.map +1 -0
- package/dist/types/custom-icons/RiskAnalysis.d.ts +4 -0
- package/dist/types/custom-icons/RiskAnalysis.d.ts.map +1 -0
- package/dist/types/custom-icons/RoadTraffic.d.ts +4 -0
- package/dist/types/custom-icons/RoadTraffic.d.ts.map +1 -0
- package/dist/types/custom-icons/RunSettings.d.ts +4 -0
- package/dist/types/custom-icons/RunSettings.d.ts.map +1 -0
- package/dist/types/custom-icons/RunStep.d.ts +4 -0
- package/dist/types/custom-icons/RunStep.d.ts.map +1 -0
- package/dist/types/custom-icons/Salesforce.d.ts +4 -0
- package/dist/types/custom-icons/Salesforce.d.ts.map +1 -0
- package/dist/types/custom-icons/Sample.d.ts +4 -0
- package/dist/types/custom-icons/Sample.d.ts.map +1 -0
- package/dist/types/custom-icons/SaveOk.d.ts +4 -0
- package/dist/types/custom-icons/SaveOk.d.ts.map +1 -0
- package/dist/types/custom-icons/ScheduleRun.d.ts +4 -0
- package/dist/types/custom-icons/ScheduleRun.d.ts.map +1 -0
- package/dist/types/custom-icons/Search.d.ts +4 -0
- package/dist/types/custom-icons/Search.d.ts.map +1 -0
- package/dist/types/custom-icons/SelectTool.d.ts +4 -0
- package/dist/types/custom-icons/SelectTool.d.ts.map +1 -0
- package/dist/types/custom-icons/SelectVariable.d.ts +4 -0
- package/dist/types/custom-icons/SelectVariable.d.ts.map +1 -0
- package/dist/types/custom-icons/SingleLayer.d.ts +4 -0
- package/dist/types/custom-icons/SingleLayer.d.ts.map +1 -0
- package/dist/types/custom-icons/SiteSelection.d.ts +4 -0
- package/dist/types/custom-icons/SiteSelection.d.ts.map +1 -0
- package/dist/types/custom-icons/Snowflake.d.ts +4 -0
- package/dist/types/custom-icons/Snowflake.d.ts.map +1 -0
- package/dist/types/custom-icons/SpatialAnalysis.d.ts +4 -0
- package/dist/types/custom-icons/SpatialAnalysis.d.ts.map +1 -0
- package/dist/types/custom-icons/SpatialExtension.d.ts +4 -0
- package/dist/types/custom-icons/SpatialExtension.d.ts.map +1 -0
- package/dist/types/custom-icons/SpatialIndexes.d.ts +4 -0
- package/dist/types/custom-icons/SpatialIndexes.d.ts.map +1 -0
- package/dist/types/custom-icons/Sql.d.ts +4 -0
- package/dist/types/custom-icons/Sql.d.ts.map +1 -0
- package/dist/types/custom-icons/SqlError.d.ts +4 -0
- package/dist/types/custom-icons/SqlError.d.ts.map +1 -0
- package/dist/types/custom-icons/Sso.d.ts +4 -0
- package/dist/types/custom-icons/Sso.d.ts.map +1 -0
- package/dist/types/custom-icons/StrokeCustom.d.ts +4 -0
- package/dist/types/custom-icons/StrokeCustom.d.ts.map +1 -0
- package/dist/types/custom-icons/StrokeDash.d.ts +4 -0
- package/dist/types/custom-icons/StrokeDash.d.ts.map +1 -0
- package/dist/types/custom-icons/StrokeSolid.d.ts +4 -0
- package/dist/types/custom-icons/StrokeSolid.d.ts.map +1 -0
- package/dist/types/custom-icons/SupplyChain.d.ts +4 -0
- package/dist/types/custom-icons/SupplyChain.d.ts.map +1 -0
- package/dist/types/custom-icons/SwatchCircle.d.ts +4 -0
- package/dist/types/custom-icons/SwatchCircle.d.ts.map +1 -0
- package/dist/types/custom-icons/SwatchCircleNone.d.ts +4 -0
- package/dist/types/custom-icons/SwatchCircleNone.d.ts.map +1 -0
- package/dist/types/custom-icons/SwatchSquare.d.ts +4 -0
- package/dist/types/custom-icons/SwatchSquare.d.ts.map +1 -0
- package/dist/types/custom-icons/TableColumn.d.ts +4 -0
- package/dist/types/custom-icons/TableColumn.d.ts.map +1 -0
- package/dist/types/custom-icons/TableColumnLimited.d.ts +4 -0
- package/dist/types/custom-icons/TableColumnLimited.d.ts.map +1 -0
- package/dist/types/custom-icons/TempTable.d.ts +4 -0
- package/dist/types/custom-icons/TempTable.d.ts.map +1 -0
- package/dist/types/custom-icons/TerritoryPlanning.d.ts +4 -0
- package/dist/types/custom-icons/TerritoryPlanning.d.ts.map +1 -0
- package/dist/types/custom-icons/TextBox.d.ts +4 -0
- package/dist/types/custom-icons/TextBox.d.ts.map +1 -0
- package/dist/types/custom-icons/Tileset.d.ts +4 -0
- package/dist/types/custom-icons/Tileset.d.ts.map +1 -0
- package/dist/types/custom-icons/TilesetsAggregated.d.ts +4 -0
- package/dist/types/custom-icons/TilesetsAggregated.d.ts.map +1 -0
- package/dist/types/custom-icons/TimeBuckets.d.ts +4 -0
- package/dist/types/custom-icons/TimeBuckets.d.ts.map +1 -0
- package/dist/types/custom-icons/TimeCar.d.ts +4 -0
- package/dist/types/custom-icons/TimeCar.d.ts.map +1 -0
- package/dist/types/custom-icons/TimeWindowIncremental.d.ts +4 -0
- package/dist/types/custom-icons/TimeWindowIncremental.d.ts.map +1 -0
- package/dist/types/custom-icons/TimeWindowMoving.d.ts +4 -0
- package/dist/types/custom-icons/TimeWindowMoving.d.ts.map +1 -0
- package/dist/types/custom-icons/Tooltip.d.ts +4 -0
- package/dist/types/custom-icons/Tooltip.d.ts.map +1 -0
- package/dist/types/custom-icons/TopRow.d.ts +4 -0
- package/dist/types/custom-icons/TopRow.d.ts.map +1 -0
- package/dist/types/custom-icons/TwinArea.d.ts +4 -0
- package/dist/types/custom-icons/TwinArea.d.ts.map +1 -0
- package/dist/types/custom-icons/Twitter.d.ts +4 -0
- package/dist/types/custom-icons/Twitter.d.ts.map +1 -0
- package/dist/types/custom-icons/UpdateGen.d.ts +4 -0
- package/dist/types/custom-icons/UpdateGen.d.ts.map +1 -0
- package/dist/types/custom-icons/UploadFileUrl.d.ts +4 -0
- package/dist/types/custom-icons/UploadFileUrl.d.ts.map +1 -0
- package/dist/types/custom-icons/View2d.d.ts +4 -0
- package/dist/types/custom-icons/View2d.d.ts.map +1 -0
- package/dist/types/custom-icons/View3d.d.ts +4 -0
- package/dist/types/custom-icons/View3d.d.ts.map +1 -0
- package/dist/types/custom-icons/ViewLeftsidebar.d.ts +4 -0
- package/dist/types/custom-icons/ViewLeftsidebar.d.ts.map +1 -0
- package/dist/types/custom-icons/WfComponent.d.ts +4 -0
- package/dist/types/custom-icons/WfComponent.d.ts.map +1 -0
- package/dist/types/custom-icons/WfComponentInvalid.d.ts +4 -0
- package/dist/types/custom-icons/WfComponentInvalid.d.ts.map +1 -0
- package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts +4 -0
- package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts.map +1 -0
- package/dist/types/custom-icons/WfInput.d.ts +4 -0
- package/dist/types/custom-icons/WfInput.d.ts.map +1 -0
- package/dist/types/custom-icons/WfInputAlt.d.ts +4 -0
- package/dist/types/custom-icons/WfInputAlt.d.ts.map +1 -0
- package/dist/types/custom-icons/WfModule.d.ts +4 -0
- package/dist/types/custom-icons/WfModule.d.ts.map +1 -0
- package/dist/types/custom-icons/WfOutput.d.ts +4 -0
- package/dist/types/custom-icons/WfOutput.d.ts.map +1 -0
- package/dist/types/custom-icons/WfOutputAlt.d.ts +4 -0
- package/dist/types/custom-icons/WfOutputAlt.d.ts.map +1 -0
- package/dist/types/custom-icons/WhiteSpace.d.ts +4 -0
- package/dist/types/custom-icons/WhiteSpace.d.ts.map +1 -0
- package/dist/types/custom-icons/WidgetOptions.d.ts +4 -0
- package/dist/types/custom-icons/WidgetOptions.d.ts.map +1 -0
- package/dist/types/custom-icons/Workflow.d.ts +4 -0
- package/dist/types/custom-icons/Workflow.d.ts.map +1 -0
- package/dist/types/custom-icons/WorkflowTemp.d.ts +4 -0
- package/dist/types/custom-icons/WorkflowTemp.d.ts.map +1 -0
- package/dist/types/custom-icons/index.d.ts +189 -11
- package/dist/types/custom-icons/index.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesSkeleton.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
- package/dist/widgets/index.cjs +10 -10
- package/dist/widgets/index.js +774 -775
- package/package.json +1 -2
- package/dist/arrow-drop-icon-Dau5xh-6.js +0 -16
- package/dist/arrow-drop-icon-XN9k9ZtW.cjs +0 -1
- package/dist/search-icon-8Q4AttLX.js +0 -38
- package/dist/search-icon-CyudR_26.cjs +0 -1
- package/dist/types/custom-icons/arrow-drop-icon.d.ts +0 -3
- package/dist/types/custom-icons/arrow-drop-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/circle-icon.d.ts +0 -3
- package/dist/types/custom-icons/circle-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/cursor-icon.d.ts +0 -3
- package/dist/types/custom-icons/cursor-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/graph-line-icon.d.ts +0 -3
- package/dist/types/custom-icons/graph-line-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/lasso-icon.d.ts +0 -3
- package/dist/types/custom-icons/lasso-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/layer-icon.d.ts +0 -3
- package/dist/types/custom-icons/layer-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/opacity-icon.d.ts +0 -3
- package/dist/types/custom-icons/opacity-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/polygon-icon.d.ts +0 -3
- package/dist/types/custom-icons/polygon-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/rectangle-icon.d.ts +0 -3
- package/dist/types/custom-icons/rectangle-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/search-icon.d.ts +0 -3
- package/dist/types/custom-icons/search-icon.d.ts.map +0 -1
- package/dist/types/custom-icons/upload-icon.d.ts +0 -3
- package/dist/types/custom-icons/upload-icon.d.ts.map +0 -1
package/dist/widgets/index.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsxs as w, Fragment as ie, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useTheme as de, styled as y, Box as S, Skeleton as H, Grid as ae, Link as ve, darken as
|
|
2
|
+
import Gn, { useMemo as F, useState as _, useEffect as G, useCallback as oe, useRef as re, createContext as Un, useContext as qn, useLayoutEffect as on, createRef as Xn } from "react";
|
|
3
|
+
import { useTheme as de, styled as y, Box as S, Skeleton as H, Grid as ae, Link as ve, darken as yt, Button as De, Divider as vt, TextField as ot, InputAdornment as wt, Checkbox as an, Tooltip as pe, IconButton as me, Slider as xt, debounce as Kn, TableCell as bt, TableContainer as ln, Table as sn, TableHead as cn, TableRow as Je, TableBody as dn, TableSortLabel as Zn, TablePagination as Jn, Menu as kt, MenuItem as Pe, SvgIcon as je, Typography as $e, lighten as Qn, ClickAwayListener as ei, ToggleButton as ti, capitalize as un, List as ni, ListItem as ii, Chip as ri, Paper as pn, Popover as oi, Select as ai, ListItemText as li, Collapse as St, Drawer as si, LinearProgress as ci, Icon as di } from "@mui/material";
|
|
4
4
|
import { useIntl as le } from "react-intl";
|
|
5
|
-
import { d as
|
|
6
|
-
import
|
|
7
|
-
import { S as
|
|
8
|
-
import { ChevronLeft as
|
|
9
|
-
import { c as
|
|
10
|
-
import { lighten as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { A as
|
|
19
|
-
function
|
|
5
|
+
import { d as ui, u as se, T as z, S as B, B as Mt, a as pi, b as pt } from "../TablePaginationActions-C9YCSB32.js";
|
|
6
|
+
import gi from "echarts-for-react";
|
|
7
|
+
import { S as Qe, a as hi } from "../SwatchSquare-DVuvnme5.js";
|
|
8
|
+
import { ChevronLeft as fi, ChevronRight as mi, ErrorOutline as yi, Cancel as vi, ExpandLess as wi, ExpandMore as xi, MoreVert as bi } from "@mui/icons-material";
|
|
9
|
+
import { c as gn, a as ki, b as hn } from "../paletteUtils-BEwZhrLg.js";
|
|
10
|
+
import { lighten as Si, styled as Mi } from "@mui/material/styles";
|
|
11
|
+
import Ii from "@mui/icons-material/KeyboardArrowDown";
|
|
12
|
+
import Ci from "@mui/icons-material/Close";
|
|
13
|
+
import Ti from "@mui/icons-material/LayersOutlined";
|
|
14
|
+
import Ai from "@mui/icons-material/VisibilityOutlined";
|
|
15
|
+
import Ei from "@mui/icons-material/VisibilityOffOutlined";
|
|
16
|
+
import Li from "@mui/icons-material/ExpandMore";
|
|
17
|
+
import $i from "@mui/icons-material/ExpandLess";
|
|
18
|
+
import { A as Di } from "../Alert-CU0-7Oca.js";
|
|
19
|
+
function fn() {
|
|
20
20
|
let e = !1;
|
|
21
21
|
return window.PointerEvent && "maxTouchPoints" in navigator ? navigator.maxTouchPoints > 0 && (e = !0) : (window.matchMedia && window.matchMedia("(any-pointer:coarse)").matches || window.TouchEvent || "ontouchstart" in window) && (e = !0), e;
|
|
22
22
|
}
|
|
23
23
|
function he(e) {
|
|
24
24
|
return !e || typeof e != "object" ? e : `${e.prefix ?? ""}${e.value}${e.suffix ?? ""}`;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
26
|
+
const Pi = [], Oi = {}, Pt = (e) => e;
|
|
27
|
+
function Wi(e, t) {
|
|
28
28
|
if (!e || Array.isArray(e) && e.length === 0)
|
|
29
29
|
return null;
|
|
30
30
|
const i = Array.isArray(e) ? e : [e];
|
|
@@ -40,15 +40,15 @@ function Fi(e, t) {
|
|
|
40
40
|
return `<div style="margin-top: 4px">${String(d)}${c}</div>`;
|
|
41
41
|
}).join(" "), r;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ri({
|
|
44
44
|
height: e,
|
|
45
|
-
labels: t =
|
|
45
|
+
labels: t = Oi,
|
|
46
46
|
yAxisData: i,
|
|
47
|
-
selectedBars: r =
|
|
47
|
+
selectedBars: r = Pi,
|
|
48
48
|
series: o,
|
|
49
49
|
colors: a,
|
|
50
50
|
tooltip: l = !0,
|
|
51
|
-
tooltipFormatter: d =
|
|
51
|
+
tooltipFormatter: d = Wi,
|
|
52
52
|
xAxisFormatter: s = Pt,
|
|
53
53
|
yAxisFormatter: u = Pt,
|
|
54
54
|
onSelectedBarsChange: p,
|
|
@@ -77,16 +77,16 @@ function Ni({
|
|
|
77
77
|
labels: t,
|
|
78
78
|
height: e ?? parseInt(f.spacing(22)),
|
|
79
79
|
// parseInt removes 'px' from the string,
|
|
80
|
-
selectedBars:
|
|
80
|
+
selectedBars: Fi(r),
|
|
81
81
|
yAxisData: k,
|
|
82
82
|
colors: b,
|
|
83
83
|
series: h
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Fi(e) {
|
|
87
87
|
return (e ?? []).length ? e.map((t) => Array.isArray(t) && t.length === 2 ? t : Array.isArray(t) ? [...Array(2)].map((r, o) => t[o] ?? 0) : [t, 0]) : [];
|
|
88
88
|
}
|
|
89
|
-
var
|
|
89
|
+
var Ni = function e(t, i) {
|
|
90
90
|
if (t === i) return !0;
|
|
91
91
|
if (t && i && typeof t == "object" && typeof i == "object") {
|
|
92
92
|
if (t.constructor !== i.constructor) return !1;
|
|
@@ -111,8 +111,8 @@ var _i = function e(t, i) {
|
|
|
111
111
|
}
|
|
112
112
|
return t !== t && i !== i;
|
|
113
113
|
};
|
|
114
|
-
const Le = /* @__PURE__ */
|
|
115
|
-
class We extends
|
|
114
|
+
const Le = /* @__PURE__ */ ui(Ni);
|
|
115
|
+
class We extends gi {
|
|
116
116
|
componentDidUpdate(t) {
|
|
117
117
|
const { shouldSetOption: i } = this.props;
|
|
118
118
|
if (typeof i == "function" && !i(t, this.props))
|
|
@@ -148,7 +148,7 @@ function Ot(e, t) {
|
|
|
148
148
|
i[r] = e[r];
|
|
149
149
|
}), i;
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const at = 240, mn = y(S)(({ theme: e }) => ({
|
|
152
152
|
display: "flex",
|
|
153
153
|
alignItems: "flex-end",
|
|
154
154
|
justifyContent: "space-between",
|
|
@@ -166,7 +166,7 @@ const ot = 240, yn = y(S)(({ theme: e }) => ({
|
|
|
166
166
|
backgroundImage: `linear-gradient(to bottom, ${e.palette.grey[50]} 1px, transparent 1px)`,
|
|
167
167
|
transform: "scaleY(-1)"
|
|
168
168
|
}
|
|
169
|
-
})),
|
|
169
|
+
})), yn = y(S)(({ theme: e }) => ({
|
|
170
170
|
display: "flex",
|
|
171
171
|
alignItems: "flex-end",
|
|
172
172
|
justifyContent: "space-between",
|
|
@@ -186,15 +186,15 @@ const ot = 240, yn = y(S)(({ theme: e }) => ({
|
|
|
186
186
|
"& + &": {
|
|
187
187
|
marginLeft: "1px"
|
|
188
188
|
}
|
|
189
|
-
})),
|
|
189
|
+
})), Bi = y(H)(({ theme: e }) => ({
|
|
190
190
|
backgroundColor: e.palette.common.white
|
|
191
191
|
})), Wt = y(H)(({ theme: e }) => ({
|
|
192
192
|
backgroundColor: e.palette.grey[100]
|
|
193
193
|
}));
|
|
194
|
-
function
|
|
194
|
+
function _i({ height: e }) {
|
|
195
195
|
return /* @__PURE__ */ w(ie, { children: [
|
|
196
196
|
/* @__PURE__ */ n(S, { mb: 2, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
|
|
197
|
-
/* @__PURE__ */ w(
|
|
197
|
+
/* @__PURE__ */ w(mn, { style: { height: e || at }, children: [
|
|
198
198
|
/* @__PURE__ */ n(Fe, { variant: "rectangular", height: "20%" }),
|
|
199
199
|
/* @__PURE__ */ n(Fe, { variant: "rectangular", height: "40%" }),
|
|
200
200
|
/* @__PURE__ */ n(Fe, { variant: "rectangular", height: "60%" }),
|
|
@@ -209,7 +209,7 @@ function ke(e) {
|
|
|
209
209
|
e && !r && (i(!0), o(!0)), e || i(!1);
|
|
210
210
|
}, [e, r]), { showSkeleton: t };
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const zi = fn(), Hi = y(ae)(({ theme: e }) => ({
|
|
213
213
|
marginBottom: e.spacing(2),
|
|
214
214
|
flexDirection: "row",
|
|
215
215
|
justifyContent: "space-between",
|
|
@@ -217,11 +217,11 @@ const Yi = mn(), ji = y(ae)(({ theme: e }) => ({
|
|
|
217
217
|
"& .MuiTypography-caption": {
|
|
218
218
|
color: e.palette.text.secondary
|
|
219
219
|
}
|
|
220
|
-
})),
|
|
220
|
+
})), ji = y(ve)(({ theme: e }) => ({
|
|
221
221
|
...e.typography.caption,
|
|
222
222
|
cursor: "pointer"
|
|
223
223
|
}));
|
|
224
|
-
function
|
|
224
|
+
function ls(e) {
|
|
225
225
|
const {
|
|
226
226
|
yAxisData: t,
|
|
227
227
|
xAxisData: i,
|
|
@@ -239,7 +239,7 @@ function ss(e) {
|
|
|
239
239
|
filterable: m,
|
|
240
240
|
animation: f,
|
|
241
241
|
isLoading: h
|
|
242
|
-
} =
|
|
242
|
+
} = Ri(e), k = r.length > 1, b = de(), M = le(), I = se(M), { showSkeleton: x } = ke(!!h), A = F(
|
|
243
243
|
() => ({
|
|
244
244
|
show: l,
|
|
245
245
|
trigger: "axis",
|
|
@@ -251,7 +251,7 @@ function ss(e) {
|
|
|
251
251
|
color: b.palette.common.white
|
|
252
252
|
},
|
|
253
253
|
backgroundColor: b.palette.black[90],
|
|
254
|
-
position: function(T, R, q,
|
|
254
|
+
position: function(T, R, q, j, X) {
|
|
255
255
|
const te = { top: 0 };
|
|
256
256
|
return X.contentSize[0] < X.viewSize[0] - T[0] ? te.left = T[0] : te.right = X.viewSize[0] - T[0], te;
|
|
257
257
|
},
|
|
@@ -282,7 +282,7 @@ function ss(e) {
|
|
|
282
282
|
), $ = F(() => {
|
|
283
283
|
let T = [];
|
|
284
284
|
return v ? T = t.reduce((R, q) => (q.forEach(
|
|
285
|
-
(
|
|
285
|
+
(j, X) => R[X] = (R[X] ?? 0) + (j ?? Number.MIN_SAFE_INTEGER)
|
|
286
286
|
), R), []) : T = t.flat().map((R) => R ?? Number.MIN_SAFE_INTEGER), Math.max(...T);
|
|
287
287
|
}, [t, v]), D = F(
|
|
288
288
|
() => ({
|
|
@@ -320,9 +320,9 @@ function ss(e) {
|
|
|
320
320
|
name: r[R] ?? "",
|
|
321
321
|
animation: f,
|
|
322
322
|
barMaxWidth: 100,
|
|
323
|
-
data: T.map((q,
|
|
323
|
+
data: T.map((q, j) => {
|
|
324
324
|
const X = o.some(
|
|
325
|
-
([
|
|
325
|
+
([Y, K = 0]) => Y === j && K === R
|
|
326
326
|
), te = !!o.length && !X;
|
|
327
327
|
return {
|
|
328
328
|
value: q,
|
|
@@ -333,11 +333,11 @@ function ss(e) {
|
|
|
333
333
|
};
|
|
334
334
|
}),
|
|
335
335
|
...v && { stack: "total" },
|
|
336
|
-
...!
|
|
336
|
+
...!zi && {
|
|
337
337
|
emphasis: {
|
|
338
338
|
focus: "series",
|
|
339
339
|
itemStyle: {
|
|
340
|
-
color:
|
|
340
|
+
color: yt(u[R] ?? "#000", 0.25)
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
@@ -385,18 +385,18 @@ function ss(e) {
|
|
|
385
385
|
}, C = oe(
|
|
386
386
|
(T) => {
|
|
387
387
|
if (a) {
|
|
388
|
-
const R = [...o], { dataIndex: q, componentIndex:
|
|
389
|
-
([
|
|
388
|
+
const R = [...o], { dataIndex: q, componentIndex: j } = T, X = R.findIndex(
|
|
389
|
+
([Y, K = 0]) => q === Y && j === K
|
|
390
390
|
);
|
|
391
|
-
X === -1 ? R.push([q,
|
|
391
|
+
X === -1 ? R.push([q, j]) : R.splice(X, 1);
|
|
392
392
|
const te = R.map(
|
|
393
|
-
([
|
|
394
|
-
xAxis: i[
|
|
393
|
+
([Y, K = 0]) => ({
|
|
394
|
+
xAxis: i[Y],
|
|
395
395
|
serie: r[K],
|
|
396
|
-
yAxis: t[K][
|
|
396
|
+
yAxis: t[K][Y]
|
|
397
397
|
})
|
|
398
398
|
);
|
|
399
|
-
a(k ? R : R.map((
|
|
399
|
+
a(k ? R : R.map((Y) => Y[0]), te);
|
|
400
400
|
}
|
|
401
401
|
},
|
|
402
402
|
[
|
|
@@ -413,14 +413,14 @@ function ss(e) {
|
|
|
413
413
|
} : {},
|
|
414
414
|
[m, C]
|
|
415
415
|
);
|
|
416
|
-
return x ? /* @__PURE__ */ n(
|
|
417
|
-
a && /* @__PURE__ */ w(
|
|
416
|
+
return x ? /* @__PURE__ */ n(_i, { height: g }) : /* @__PURE__ */ w("div", { children: [
|
|
417
|
+
a && /* @__PURE__ */ w(Hi, { container: !0, children: [
|
|
418
418
|
/* @__PURE__ */ n(z, { variant: "caption", children: o.length > 0 ? I.formatMessage(
|
|
419
419
|
{ id: "c4r.widgets.bar.selectedItems" },
|
|
420
420
|
{ items: o.length }
|
|
421
421
|
) : I.formatMessage({ id: "c4r.widgets.bar.all" }) }),
|
|
422
422
|
o && o.length > 0 && /* @__PURE__ */ n(
|
|
423
|
-
|
|
423
|
+
ji,
|
|
424
424
|
{
|
|
425
425
|
onClick: () => J(),
|
|
426
426
|
onKeyDown: U,
|
|
@@ -447,11 +447,11 @@ function Rt(e = "", t = 0) {
|
|
|
447
447
|
}
|
|
448
448
|
const Ie = "__rest__", Oe = "Others";
|
|
449
449
|
var Te = /* @__PURE__ */ ((e) => (e.RANKING = "ranking", e.FIXED = "fixed", e))(Te || {});
|
|
450
|
-
const
|
|
450
|
+
const vn = y(ae)(({ theme: e }) => ({
|
|
451
451
|
maxHeight: e.spacing(40),
|
|
452
452
|
overflow: "auto",
|
|
453
453
|
padding: 0
|
|
454
|
-
})),
|
|
454
|
+
})), wn = y(ae, {
|
|
455
455
|
shouldForwardProp: (e) => e !== "selectable" && e !== "name" && e !== "unselected"
|
|
456
456
|
})(({ theme: e, selectable: t, name: i, unselected: r }) => ({
|
|
457
457
|
flexDirection: "row",
|
|
@@ -496,7 +496,7 @@ const wn = y(ae)(({ theme: e }) => ({
|
|
|
496
496
|
color: t.text.secondary
|
|
497
497
|
}
|
|
498
498
|
})
|
|
499
|
-
),
|
|
499
|
+
), Yi = y(ae)(({ theme: e }) => ({
|
|
500
500
|
height: e.spacing(0.5),
|
|
501
501
|
width: "100%",
|
|
502
502
|
margin: e.spacing(0.5, 0, 0.25, 0),
|
|
@@ -510,13 +510,13 @@ const wn = y(ae)(({ theme: e }) => ({
|
|
|
510
510
|
transition: `background-color ${e.transitions.easing.sharp} ${e.transitions.duration.shortest}ms,
|
|
511
511
|
width ${e.transitions.easing.sharp} ${e.transitions.duration.complex}ms`
|
|
512
512
|
}
|
|
513
|
-
})),
|
|
513
|
+
})), Vi = y(ae, {
|
|
514
514
|
shouldForwardProp: (e) => e !== "isSelectable"
|
|
515
515
|
})(({ theme: e, isSelectable: t }) => ({
|
|
516
516
|
...t && {
|
|
517
517
|
width: `calc(100% - ${e.spacing(4)})`
|
|
518
518
|
}
|
|
519
|
-
})),
|
|
519
|
+
})), Gi = y(z)(({ theme: e }) => ({
|
|
520
520
|
fontWeight: e.typography.fontWeightBold,
|
|
521
521
|
marginRight: e.spacing(2)
|
|
522
522
|
})), Ve = y(ve)(({ theme: e }) => ({
|
|
@@ -525,7 +525,7 @@ const wn = y(ae)(({ theme: e }) => ({
|
|
|
525
525
|
"& + hr": {
|
|
526
526
|
margin: e.spacing(0, 1)
|
|
527
527
|
}
|
|
528
|
-
})),
|
|
528
|
+
})), Ui = y(S)(({ theme: e }) => ({
|
|
529
529
|
...e.typography.body2
|
|
530
530
|
})), Nt = y(De)(({ theme: e }) => ({
|
|
531
531
|
position: "absolute",
|
|
@@ -540,26 +540,26 @@ const wn = y(ae)(({ theme: e }) => ({
|
|
|
540
540
|
height: "auto",
|
|
541
541
|
marginTop: e.spacing(2)
|
|
542
542
|
}
|
|
543
|
-
})),
|
|
543
|
+
})), qi = y(H)(({ theme: e }) => ({
|
|
544
544
|
marginTop: e.spacing(1.25),
|
|
545
545
|
marginBottom: e.spacing(1.75)
|
|
546
|
-
})),
|
|
546
|
+
})), Xi = (e) => e % 2 === 1, xn = () => /* @__PURE__ */ w(ie, { children: [
|
|
547
547
|
/* @__PURE__ */ n(H, { width: 48, height: 8 }),
|
|
548
|
-
/* @__PURE__ */ n(
|
|
548
|
+
/* @__PURE__ */ n(vn, { container: !0, mt: 3, children: [...Array(6)].map((e, t) => /* @__PURE__ */ w(wn, { container: !0, spacing: 1, children: [
|
|
549
549
|
/* @__PURE__ */ w(ae, { container: !0, item: !0, direction: "row", justifyContent: "space-between", children: [
|
|
550
|
-
/* @__PURE__ */ n(H, { width:
|
|
550
|
+
/* @__PURE__ */ n(H, { width: Xi(t) ? 72 : 48, height: 8 }),
|
|
551
551
|
/* @__PURE__ */ n(H, { width: 48, height: 8 })
|
|
552
552
|
] }),
|
|
553
|
-
/* @__PURE__ */ n(
|
|
553
|
+
/* @__PURE__ */ n(qi, { height: 4, width: "100%" })
|
|
554
554
|
] }, t)) })
|
|
555
555
|
] });
|
|
556
|
-
function
|
|
556
|
+
function bn(e) {
|
|
557
557
|
const t = re();
|
|
558
558
|
return G(() => {
|
|
559
559
|
t.current = e;
|
|
560
560
|
}), t.current;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function gt({
|
|
563
563
|
start: e,
|
|
564
564
|
end: t,
|
|
565
565
|
duration: i,
|
|
@@ -575,7 +575,7 @@ function pt({
|
|
|
575
575
|
};
|
|
576
576
|
o.current = requestAnimationFrame(u);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Ki({
|
|
579
579
|
start: e,
|
|
580
580
|
end: t,
|
|
581
581
|
duration: i,
|
|
@@ -603,16 +603,16 @@ function Ji({
|
|
|
603
603
|
};
|
|
604
604
|
o.current = requestAnimationFrame(v);
|
|
605
605
|
}
|
|
606
|
-
const
|
|
606
|
+
const Zi = [], Ji = {}, Qi = (e) => e, ct = () => {
|
|
607
607
|
};
|
|
608
|
-
function
|
|
608
|
+
function ss({
|
|
609
609
|
data: e,
|
|
610
|
-
formatter: t =
|
|
611
|
-
labels: i =
|
|
610
|
+
formatter: t = Qi,
|
|
611
|
+
labels: i = Ji,
|
|
612
612
|
maxItems: r = 5,
|
|
613
613
|
order: o = Te.RANKING,
|
|
614
|
-
selectedCategories: a =
|
|
615
|
-
onSelectedCategoriesChange: l =
|
|
614
|
+
selectedCategories: a = Zi,
|
|
615
|
+
onSelectedCategoriesChange: l = ct,
|
|
616
616
|
animation: d = !0,
|
|
617
617
|
filterable: s = !0,
|
|
618
618
|
searchable: u = !0,
|
|
@@ -620,7 +620,7 @@ function cs({
|
|
|
620
620
|
}) {
|
|
621
621
|
const [c, v] = _([]), [g, m] = _(1), [f, h] = _(!1), [k, b] = _(""), [M, I] = _([]), [x, A] = _(
|
|
622
622
|
[]
|
|
623
|
-
), [E, O] = _([]), $ = re(null), D = re(), P =
|
|
623
|
+
), [E, O] = _([]), $ = re(null), D = re(), P = bn(E), W = re([]), { showSkeleton: J } = ke(!!p), U = le(), C = se(U);
|
|
624
624
|
function N(L) {
|
|
625
625
|
return c.reduce((Z, ee) => (L.includes(ee.name) && Z.push(ee.name), Z), []);
|
|
626
626
|
}
|
|
@@ -632,13 +632,13 @@ function cs({
|
|
|
632
632
|
}
|
|
633
633
|
const R = () => l([]), q = (L) => {
|
|
634
634
|
L.key === "Enter" && R();
|
|
635
|
-
},
|
|
635
|
+
}, j = () => {
|
|
636
636
|
l([]), I([]);
|
|
637
637
|
}, X = (L) => {
|
|
638
|
-
L.key === "Enter" &&
|
|
638
|
+
L.key === "Enter" && j();
|
|
639
639
|
}, te = () => {
|
|
640
640
|
I(N(a));
|
|
641
|
-
},
|
|
641
|
+
}, Y = (L) => {
|
|
642
642
|
L.key === "Enter" && te();
|
|
643
643
|
}, K = () => {
|
|
644
644
|
const L = N(
|
|
@@ -694,7 +694,7 @@ function cs({
|
|
|
694
694
|
), xe = oe(() => {
|
|
695
695
|
const L = M.length;
|
|
696
696
|
return L ? e.length - L : e.length - r;
|
|
697
|
-
}, [e, r, M]),
|
|
697
|
+
}, [e, r, M]), Ye = oe(
|
|
698
698
|
(L) => L === Ie ? `Others ${u ? "" : `(${xe()})`}` : i[String(L)] ?? String(L),
|
|
699
699
|
[xe, i, u]
|
|
700
700
|
), Re = oe(
|
|
@@ -727,7 +727,7 @@ function cs({
|
|
|
727
727
|
P && (W.current = P);
|
|
728
728
|
}, [P]), G(() => {
|
|
729
729
|
if (d)
|
|
730
|
-
return
|
|
730
|
+
return Ki({
|
|
731
731
|
start: (W.current || []).map((L) => ({
|
|
732
732
|
...L,
|
|
733
733
|
value: L.value ?? 0
|
|
@@ -747,38 +747,38 @@ function cs({
|
|
|
747
747
|
data: L,
|
|
748
748
|
onCategoryClick: Z
|
|
749
749
|
}) {
|
|
750
|
-
const ee = t(L.value ?? 0), [ge, Ae] = _(!1), be = re(null),
|
|
751
|
-
var
|
|
752
|
-
const
|
|
753
|
-
Ae(
|
|
750
|
+
const ee = t(L.value ?? 0), [ge, Ae] = _(!1), be = re(null), lt = () => {
|
|
751
|
+
var $t, Dt;
|
|
752
|
+
const st = ((($t = be == null ? void 0 : be.current) == null ? void 0 : $t.scrollWidth) ?? 0) > (((Dt = be == null ? void 0 : be.current) == null ? void 0 : Dt.clientWidth) ?? 0);
|
|
753
|
+
Ae(st);
|
|
754
754
|
};
|
|
755
|
-
G(() => (
|
|
756
|
-
window.removeEventListener("resize",
|
|
755
|
+
G(() => (lt(), window.addEventListener("resize", lt), () => {
|
|
756
|
+
window.removeEventListener("resize", lt);
|
|
757
757
|
}), []);
|
|
758
|
-
const
|
|
759
|
-
|
|
760
|
-
},
|
|
758
|
+
const Yn = (st) => {
|
|
759
|
+
st.key === "Enter" && Z();
|
|
760
|
+
}, Vn = !f && a.length > 0 && !a.includes(L.name);
|
|
761
761
|
return /* @__PURE__ */ w(
|
|
762
|
-
|
|
762
|
+
wn,
|
|
763
763
|
{
|
|
764
764
|
container: !0,
|
|
765
765
|
direction: "row",
|
|
766
766
|
spacing: 1,
|
|
767
|
-
onClick: s ? Z :
|
|
768
|
-
onKeyDown: s ?
|
|
767
|
+
onClick: s ? Z : ct,
|
|
768
|
+
onKeyDown: s ? Yn : ct,
|
|
769
769
|
selectable: s,
|
|
770
|
-
unselected:
|
|
770
|
+
unselected: Vn,
|
|
771
771
|
name: L.name === Ie ? Ie : "",
|
|
772
772
|
tabIndex: s ? 0 : -1,
|
|
773
773
|
children: [
|
|
774
774
|
s && f && /* @__PURE__ */ n(ae, { item: !0, mr: 1, children: /* @__PURE__ */ n(
|
|
775
|
-
|
|
775
|
+
an,
|
|
776
776
|
{
|
|
777
777
|
checked: x.includes(L.name),
|
|
778
778
|
tabIndex: -1
|
|
779
779
|
}
|
|
780
780
|
) }),
|
|
781
|
-
/* @__PURE__ */ w(
|
|
781
|
+
/* @__PURE__ */ w(Vi, { container: !0, item: !0, xs: !0, isSelectable: f, children: [
|
|
782
782
|
/* @__PURE__ */ w(
|
|
783
783
|
ae,
|
|
784
784
|
{
|
|
@@ -791,9 +791,9 @@ function cs({
|
|
|
791
791
|
/* @__PURE__ */ n(
|
|
792
792
|
pe,
|
|
793
793
|
{
|
|
794
|
-
title:
|
|
794
|
+
title: Ye(L.name),
|
|
795
795
|
disableHoverListener: !ge,
|
|
796
|
-
children: /* @__PURE__ */ n(
|
|
796
|
+
children: /* @__PURE__ */ n(Gi, { variant: "body2", noWrap: !0, ref: be, children: Ye(L.name) })
|
|
797
797
|
}
|
|
798
798
|
),
|
|
799
799
|
typeof ee == "object" && ee !== null ? /* @__PURE__ */ w("span", { children: [
|
|
@@ -804,13 +804,13 @@ function cs({
|
|
|
804
804
|
]
|
|
805
805
|
}
|
|
806
806
|
),
|
|
807
|
-
/* @__PURE__ */ n(
|
|
807
|
+
/* @__PURE__ */ n(Yi, { className: "progressbar", item: !0, children: /* @__PURE__ */ n("div", { style: { width: Re(L.value ?? 0) } }) })
|
|
808
808
|
] })
|
|
809
809
|
]
|
|
810
810
|
}
|
|
811
811
|
);
|
|
812
812
|
}
|
|
813
|
-
return (e == null ? void 0 : e.length) === 0 || J ? /* @__PURE__ */ n(
|
|
813
|
+
return (e == null ? void 0 : e.length) === 0 || J ? /* @__PURE__ */ n(xn, {}) : /* @__PURE__ */ w(Ui, { children: [
|
|
814
814
|
s && c.length > 0 && /* @__PURE__ */ w(Ft, { container: !0, children: [
|
|
815
815
|
/* @__PURE__ */ n(z, { variant: "caption", children: a.length > 0 ? C.formatMessage(
|
|
816
816
|
{ id: "c4r.widgets.category.selectedItems" },
|
|
@@ -829,7 +829,7 @@ function cs({
|
|
|
829
829
|
) : M.length > 0 ? /* @__PURE__ */ n(
|
|
830
830
|
Ve,
|
|
831
831
|
{
|
|
832
|
-
onClick:
|
|
832
|
+
onClick: j,
|
|
833
833
|
onKeyDown: X,
|
|
834
834
|
underline: "hover",
|
|
835
835
|
tabIndex: 0,
|
|
@@ -840,7 +840,7 @@ function cs({
|
|
|
840
840
|
Ve,
|
|
841
841
|
{
|
|
842
842
|
onClick: te,
|
|
843
|
-
onKeyDown:
|
|
843
|
+
onKeyDown: Y,
|
|
844
844
|
underline: "hover",
|
|
845
845
|
tabIndex: 0,
|
|
846
846
|
children: C.formatMessage({
|
|
@@ -848,7 +848,7 @@ function cs({
|
|
|
848
848
|
})
|
|
849
849
|
}
|
|
850
850
|
),
|
|
851
|
-
/* @__PURE__ */ n(
|
|
851
|
+
/* @__PURE__ */ n(vt, { orientation: "vertical", flexItem: !0 }),
|
|
852
852
|
/* @__PURE__ */ n(
|
|
853
853
|
Ve,
|
|
854
854
|
{
|
|
@@ -865,7 +865,7 @@ function cs({
|
|
|
865
865
|
] }),
|
|
866
866
|
e.length > r && f && /* @__PURE__ */ w(Ft, { container: !0, children: [
|
|
867
867
|
/* @__PURE__ */ n(
|
|
868
|
-
|
|
868
|
+
ot,
|
|
869
869
|
{
|
|
870
870
|
size: "small",
|
|
871
871
|
sx: { mt: -0.5 },
|
|
@@ -875,7 +875,7 @@ function cs({
|
|
|
875
875
|
onChange: Q,
|
|
876
876
|
onFocus: V,
|
|
877
877
|
InputProps: {
|
|
878
|
-
startAdornment: /* @__PURE__ */ n(
|
|
878
|
+
startAdornment: /* @__PURE__ */ n(wt, { position: "start", children: /* @__PURE__ */ n(Qe, {}) })
|
|
879
879
|
},
|
|
880
880
|
inputProps: {
|
|
881
881
|
tabIndex: 0,
|
|
@@ -885,7 +885,7 @@ function cs({
|
|
|
885
885
|
),
|
|
886
886
|
/* @__PURE__ */ n(Nt, { size: "small", onClick: Se, children: C.formatMessage({ id: "c4r.widgets.category.cancel" }) })
|
|
887
887
|
] }),
|
|
888
|
-
/* @__PURE__ */ n(
|
|
888
|
+
/* @__PURE__ */ n(vn, { container: !0, item: !0, children: E.length ? E.map((L, Z) => /* @__PURE__ */ n(
|
|
889
889
|
jn,
|
|
890
890
|
{
|
|
891
891
|
data: L,
|
|
@@ -916,7 +916,7 @@ function cs({
|
|
|
916
916
|
{
|
|
917
917
|
size: "small",
|
|
918
918
|
color: "primary",
|
|
919
|
-
startIcon: /* @__PURE__ */ n(
|
|
919
|
+
startIcon: /* @__PURE__ */ n(Qe, {}),
|
|
920
920
|
onClick: ne,
|
|
921
921
|
children: C.formatMessage(
|
|
922
922
|
{ id: "c4r.widgets.category.searchInfo" },
|
|
@@ -926,25 +926,25 @@ function cs({
|
|
|
926
926
|
) }) : null
|
|
927
927
|
] });
|
|
928
928
|
}
|
|
929
|
-
const
|
|
929
|
+
const kn = () => /* @__PURE__ */ n(S, { pt: 0.5, children: /* @__PURE__ */ n(H, { height: 24, width: 120 }) }), er = y("span")(() => ({
|
|
930
930
|
marginRight: "2px"
|
|
931
|
-
})),
|
|
931
|
+
})), tr = y("span")(() => ({
|
|
932
932
|
marginLeft: "2px"
|
|
933
|
-
})), Ge = "-",
|
|
934
|
-
function
|
|
933
|
+
})), Ge = "-", nr = (e) => e;
|
|
934
|
+
function cs({
|
|
935
935
|
data: e = Ge,
|
|
936
|
-
formatter: t =
|
|
936
|
+
formatter: t = nr,
|
|
937
937
|
animation: i = !0,
|
|
938
938
|
isLoading: r = !1
|
|
939
939
|
}) {
|
|
940
|
-
const [o, a] = _(Ge), l = re(null), d =
|
|
941
|
-
G(() => (typeof e == "number" && i ?
|
|
940
|
+
const [o, a] = _(Ge), l = re(null), d = bn(o), s = re(d), { showSkeleton: u } = ke(!!r);
|
|
941
|
+
G(() => (typeof e == "number" && i ? gt({
|
|
942
942
|
start: s.current || 0,
|
|
943
943
|
end: e,
|
|
944
944
|
duration: 500,
|
|
945
945
|
drawFrame: (g) => a(g),
|
|
946
946
|
requestRef: l
|
|
947
|
-
}) : typeof e == "object" && i && e && s.current && e.value !== null && e.value !== void 0 ?
|
|
947
|
+
}) : typeof e == "object" && i && e && s.current && e.value !== null && e.value !== void 0 ? gt({
|
|
948
948
|
start: Number(
|
|
949
949
|
s.current.value
|
|
950
950
|
),
|
|
@@ -956,10 +956,10 @@ function ds({
|
|
|
956
956
|
l.current && cancelAnimationFrame(l.current);
|
|
957
957
|
}), [i, e, a]);
|
|
958
958
|
const p = t(o), c = typeof p == "object" && p !== null, v = p === Ge;
|
|
959
|
-
return u ? /* @__PURE__ */ n(
|
|
960
|
-
/* @__PURE__ */ n(
|
|
959
|
+
return u ? /* @__PURE__ */ n(kn, {}) : c ? /* @__PURE__ */ w(z, { variant: "h5", component: "div", weight: "medium", children: [
|
|
960
|
+
/* @__PURE__ */ n(er, { children: p.prefix }),
|
|
961
961
|
p.value,
|
|
962
|
-
/* @__PURE__ */ n(
|
|
962
|
+
/* @__PURE__ */ n(tr, { children: p.suffix })
|
|
963
963
|
] }) : /* @__PURE__ */ n(
|
|
964
964
|
z,
|
|
965
965
|
{
|
|
@@ -976,7 +976,7 @@ function ds({
|
|
|
976
976
|
}
|
|
977
977
|
const Bt = {};
|
|
978
978
|
let Ne = null;
|
|
979
|
-
function
|
|
979
|
+
function ir({
|
|
980
980
|
data: e,
|
|
981
981
|
filterable: t,
|
|
982
982
|
selectedBars: i,
|
|
@@ -1004,11 +1004,11 @@ function or({
|
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
if (o && t) {
|
|
1007
|
-
const v =
|
|
1007
|
+
const v = dt(
|
|
1008
1008
|
s,
|
|
1009
1009
|
"mousedown",
|
|
1010
1010
|
p
|
|
1011
|
-
), g =
|
|
1011
|
+
), g = dt(
|
|
1012
1012
|
s,
|
|
1013
1013
|
"mousemove",
|
|
1014
1014
|
c
|
|
@@ -1028,7 +1028,7 @@ function or({
|
|
|
1028
1028
|
d([]), Ne = null;
|
|
1029
1029
|
}
|
|
1030
1030
|
if (o && t)
|
|
1031
|
-
return
|
|
1031
|
+
return dt(s, "mouseup", p);
|
|
1032
1032
|
}, [s, o, l, e, r, t]);
|
|
1033
1033
|
const u = oe(
|
|
1034
1034
|
(p) => {
|
|
@@ -1052,16 +1052,16 @@ function or({
|
|
|
1052
1052
|
onEvents: t ? { click: u } : {}
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function dt(e, t, i) {
|
|
1056
1056
|
if (e != null && e.handler)
|
|
1057
1057
|
return Bt[t] = i, e.on(t, i), () => {
|
|
1058
1058
|
Bt[t] && (e != null && e.handler) && e.off(t, i);
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function rr({ height: e }) {
|
|
1062
1062
|
return /* @__PURE__ */ w(ie, { children: [
|
|
1063
1063
|
/* @__PURE__ */ n(S, { mb: 2, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
|
|
1064
|
-
/* @__PURE__ */ w(
|
|
1064
|
+
/* @__PURE__ */ w(yn, { style: { height: e ?? at }, children: [
|
|
1065
1065
|
/* @__PURE__ */ n(fe, { variant: "rectangular", height: "20%" }),
|
|
1066
1066
|
/* @__PURE__ */ n(fe, { variant: "rectangular", height: "40%" }),
|
|
1067
1067
|
/* @__PURE__ */ n(fe, { variant: "rectangular", height: "60%" }),
|
|
@@ -1077,7 +1077,7 @@ function ar({ height: e }) {
|
|
|
1077
1077
|
] })
|
|
1078
1078
|
] });
|
|
1079
1079
|
}
|
|
1080
|
-
const
|
|
1080
|
+
const or = fn(), ar = y(ae)(({ theme: e }) => ({
|
|
1081
1081
|
marginBottom: e.spacing(2),
|
|
1082
1082
|
flexDirection: "row",
|
|
1083
1083
|
justifyContent: "space-between",
|
|
@@ -1085,12 +1085,12 @@ const lr = mn(), sr = y(ae)(({ theme: e }) => ({
|
|
|
1085
1085
|
"& .MuiTypography-caption": {
|
|
1086
1086
|
color: e.palette.text.secondary
|
|
1087
1087
|
}
|
|
1088
|
-
})),
|
|
1088
|
+
})), lr = y(ve)(({ theme: e }) => ({
|
|
1089
1089
|
...e.typography.caption,
|
|
1090
1090
|
cursor: "pointer"
|
|
1091
|
-
})),
|
|
1092
|
-
},
|
|
1093
|
-
function
|
|
1091
|
+
})), sr = [], cr = () => {
|
|
1092
|
+
}, et = (e) => e;
|
|
1093
|
+
function dr(e, t = et, i = et) {
|
|
1094
1094
|
if (!e)
|
|
1095
1095
|
return null;
|
|
1096
1096
|
if (Array.isArray(e) && e.length === 0)
|
|
@@ -1101,27 +1101,27 @@ function pr(e, t = Qe, i = Qe) {
|
|
|
1101
1101
|
const [a, l, d] = o.value, s = he(t(a)), u = he(t(l)), p = he(i(d)), c = `${s} <span style="vertical-align: 1px;">—</span> ${u}`, v = `<div style="margin-left: 8px; display: inline">${p}</div>`;
|
|
1102
1102
|
return `${c} <div style="margin-top: 4px">${String(r)}${v}</div>`;
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function ds({
|
|
1105
1105
|
data: e,
|
|
1106
1106
|
ticks: t,
|
|
1107
1107
|
min: i,
|
|
1108
1108
|
max: r,
|
|
1109
|
-
xAxisFormatter: o =
|
|
1110
|
-
yAxisFormatter: a =
|
|
1109
|
+
xAxisFormatter: o = et,
|
|
1110
|
+
yAxisFormatter: a = et,
|
|
1111
1111
|
yAxisType: l = "dense",
|
|
1112
|
-
selectedBars: d =
|
|
1113
|
-
onSelectedBarsChange: s =
|
|
1112
|
+
selectedBars: d = sr,
|
|
1113
|
+
onSelectedBarsChange: s = cr,
|
|
1114
1114
|
tooltip: u = !0,
|
|
1115
|
-
tooltipFormatter: p =
|
|
1115
|
+
tooltipFormatter: p = dr,
|
|
1116
1116
|
animation: c = !0,
|
|
1117
1117
|
filterable: v = !0,
|
|
1118
1118
|
height: g = 200,
|
|
1119
1119
|
isLoading: m
|
|
1120
1120
|
}) {
|
|
1121
1121
|
const f = le(), h = de(), k = se(f), { showSkeleton: b } = ke(!!m), M = !!v && !!s, [I, x] = _(), A = (T) => x(T), E = F(
|
|
1122
|
-
() =>
|
|
1122
|
+
() => gr(e, t, i, r),
|
|
1123
1123
|
[e, t, i, r]
|
|
1124
|
-
), { onEvents: O, markAreaOptions: $ } =
|
|
1124
|
+
), { onEvents: O, markAreaOptions: $ } = ir({
|
|
1125
1125
|
data: E,
|
|
1126
1126
|
filterable: M,
|
|
1127
1127
|
selectedBars: d,
|
|
@@ -1171,7 +1171,7 @@ function us({
|
|
|
1171
1171
|
padding: [B * 0.5, B * 0.5, 0, B * 0.5],
|
|
1172
1172
|
formatter: (T) => {
|
|
1173
1173
|
const R = he(o(T));
|
|
1174
|
-
return T === i ?
|
|
1174
|
+
return T === i ? ur(R) : T === r ? pr(R) : R;
|
|
1175
1175
|
},
|
|
1176
1176
|
color: h.palette.black[60]
|
|
1177
1177
|
}
|
|
@@ -1183,13 +1183,13 @@ function us({
|
|
|
1183
1183
|
verticalAlign: "bottom",
|
|
1184
1184
|
padding: [0, 0, B * 1.25, 0],
|
|
1185
1185
|
inside: !0,
|
|
1186
|
-
color: (
|
|
1187
|
-
const X = Math.max(...e.map((
|
|
1186
|
+
color: (j) => {
|
|
1187
|
+
const X = Math.max(...e.map((Y) => Y ?? Number.MIN_SAFE_INTEGER)) || 1;
|
|
1188
1188
|
let te = "transparent";
|
|
1189
|
-
return
|
|
1189
|
+
return j >= X && (te = h.palette.black[60]), te;
|
|
1190
1190
|
},
|
|
1191
1191
|
...h.typography.overlineDelicate,
|
|
1192
|
-
formatter: (
|
|
1192
|
+
formatter: (j) => he(a(j))
|
|
1193
1193
|
}, R = {
|
|
1194
1194
|
verticalAlign: "middle",
|
|
1195
1195
|
padding: [0, 0, 0, B * 0.5],
|
|
@@ -1215,7 +1215,7 @@ function us({
|
|
|
1215
1215
|
showMinLabel: !1,
|
|
1216
1216
|
...q,
|
|
1217
1217
|
...h.typography.overlineDelicate,
|
|
1218
|
-
formatter: (
|
|
1218
|
+
formatter: (j) => he(a(j))
|
|
1219
1219
|
}
|
|
1220
1220
|
};
|
|
1221
1221
|
}, [
|
|
@@ -1225,30 +1225,30 @@ function us({
|
|
|
1225
1225
|
a,
|
|
1226
1226
|
l
|
|
1227
1227
|
]), J = F(() => {
|
|
1228
|
-
const T = i === r && E.filter((
|
|
1229
|
-
const
|
|
1230
|
-
return { value:
|
|
1228
|
+
const T = i === r && E.filter((j) => j[2] !== 0).length === 1, q = (T ? [E[0], E[E.length - 1]] : E).map((j, X) => {
|
|
1229
|
+
const Y = d.length && !d.includes(X) ? h.palette.black[25] : h.palette.secondary.main;
|
|
1230
|
+
return { value: j, itemStyle: { color: Y } };
|
|
1231
1231
|
});
|
|
1232
1232
|
return {
|
|
1233
1233
|
type: "custom",
|
|
1234
1234
|
cursor: "pointer",
|
|
1235
1235
|
markArea: $,
|
|
1236
|
-
renderItem: function(
|
|
1237
|
-
const te =
|
|
1236
|
+
renderItem: function(j, X) {
|
|
1237
|
+
const te = j.dataIndex === E.length - 1, Y = j.dataIndex === 0, K = q[j.dataIndex].itemStyle.color, ue = X.value(0), Se = X.value(1), we = X.value(2), [V, Q] = X.coord([ue, we]), [ne, ce] = X.size([Se - ue, we]);
|
|
1238
1238
|
return {
|
|
1239
1239
|
type: "rect",
|
|
1240
1240
|
shape: {
|
|
1241
|
-
x: T ? V / 10 : V + (
|
|
1241
|
+
x: T ? V / 10 : V + (Y ? 0 : 1),
|
|
1242
1242
|
y: Q,
|
|
1243
1243
|
// Division by 10 in the next line is done to avoid that the only bar rendered inside the histogram widget gets all the width of it
|
|
1244
1244
|
width: T ? V - V / 10 : ne - (te ? 0 : 1),
|
|
1245
1245
|
height: ce
|
|
1246
1246
|
},
|
|
1247
1247
|
style: { fill: K },
|
|
1248
|
-
...!
|
|
1248
|
+
...!or && {
|
|
1249
1249
|
emphasis: {
|
|
1250
1250
|
style: {
|
|
1251
|
-
fill:
|
|
1251
|
+
fill: yt(K, 0.25)
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
@@ -1292,8 +1292,8 @@ function us({
|
|
|
1292
1292
|
), N = (T) => {
|
|
1293
1293
|
T.key === "Enter" && s([]);
|
|
1294
1294
|
};
|
|
1295
|
-
return b ? /* @__PURE__ */ n(
|
|
1296
|
-
M && /* @__PURE__ */ w(
|
|
1295
|
+
return b ? /* @__PURE__ */ n(rr, { height: g }) : /* @__PURE__ */ w("div", { children: [
|
|
1296
|
+
M && /* @__PURE__ */ w(ar, { container: !0, children: [
|
|
1297
1297
|
/* @__PURE__ */ n(z, { variant: "caption", weight: "strong", children: d.length > 0 ? k.formatMessage(
|
|
1298
1298
|
{ id: "c4r.widgets.histogram.selectedItems" },
|
|
1299
1299
|
{
|
|
@@ -1303,7 +1303,7 @@ function us({
|
|
|
1303
1303
|
}
|
|
1304
1304
|
) : k.formatMessage({ id: "c4r.widgets.histogram.all" }) }),
|
|
1305
1305
|
d.length > 0 && /* @__PURE__ */ n(
|
|
1306
|
-
|
|
1306
|
+
lr,
|
|
1307
1307
|
{
|
|
1308
1308
|
onClick: () => s([]),
|
|
1309
1309
|
onKeyDown: N,
|
|
@@ -1325,14 +1325,14 @@ function us({
|
|
|
1325
1325
|
)
|
|
1326
1326
|
] });
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function ur(e) {
|
|
1329
1329
|
return `${Array(String(e).length).fill(" ").join("")}${e}`;
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function pr(e) {
|
|
1332
1332
|
const t = Array(String(e).length).fill(" ").join("");
|
|
1333
1333
|
return `${e}${t}`;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function gr(e, t, i, r) {
|
|
1336
1336
|
return e.map(
|
|
1337
1337
|
(o, a) => [
|
|
1338
1338
|
a === 0 ? i : t[a - 1],
|
|
@@ -1341,7 +1341,7 @@ function fr(e, t, i, r) {
|
|
|
1341
1341
|
]
|
|
1342
1342
|
);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function hr(e, t, i, r) {
|
|
1345
1345
|
const o = de(), a = F(() => t === Te.RANKING ? e.slice().sort((s, u) => (u.value ?? 0) - (s.value ?? 0)) : e, [e, t]), l = F(() => {
|
|
1346
1346
|
const s = [];
|
|
1347
1347
|
let u = 0;
|
|
@@ -1369,27 +1369,27 @@ function mr(e, t, i, r) {
|
|
|
1369
1369
|
});
|
|
1370
1370
|
}, [l, r, o]);
|
|
1371
1371
|
}
|
|
1372
|
-
const
|
|
1372
|
+
const fr = y(S)(({ theme: e }) => ({
|
|
1373
1373
|
zIndex: 1,
|
|
1374
1374
|
display: "flex",
|
|
1375
1375
|
flexDirection: "column",
|
|
1376
1376
|
alignItems: "center",
|
|
1377
1377
|
justifyContent: "center",
|
|
1378
1378
|
paddingBottom: e.spacing(1)
|
|
1379
|
-
})),
|
|
1379
|
+
})), mr = y(S)(({ theme: e }) => ({
|
|
1380
1380
|
display: "flex",
|
|
1381
1381
|
alignItems: "center",
|
|
1382
1382
|
gap: e.spacing(1),
|
|
1383
1383
|
maxWidth: "140px",
|
|
1384
1384
|
textTransform: "uppercase"
|
|
1385
|
-
})),
|
|
1385
|
+
})), yr = y(S)(({ theme: e }) => ({
|
|
1386
1386
|
display: "inline-block",
|
|
1387
1387
|
borderRadius: e.spacing(0.5),
|
|
1388
1388
|
width: e.spacing(1),
|
|
1389
1389
|
minWidth: e.spacing(1),
|
|
1390
1390
|
height: e.spacing(1)
|
|
1391
1391
|
}));
|
|
1392
|
-
function
|
|
1392
|
+
function vr({
|
|
1393
1393
|
data: e,
|
|
1394
1394
|
selectedCategories: t,
|
|
1395
1395
|
formatter: i
|
|
@@ -1401,13 +1401,13 @@ function xr({
|
|
|
1401
1401
|
t.length > 0 ? u = e.filter(
|
|
1402
1402
|
(m) => t.includes(m.name)
|
|
1403
1403
|
) : u = e;
|
|
1404
|
-
const p =
|
|
1404
|
+
const p = wr(u), c = u.find((m) => m === p);
|
|
1405
1405
|
if (!c)
|
|
1406
1406
|
return null;
|
|
1407
1407
|
let v = 0;
|
|
1408
1408
|
for (const m of e)
|
|
1409
1409
|
v += m.value ?? 0;
|
|
1410
|
-
const g =
|
|
1410
|
+
const g = xr(
|
|
1411
1411
|
c.value ?? 0,
|
|
1412
1412
|
v,
|
|
1413
1413
|
i
|
|
@@ -1418,84 +1418,84 @@ function xr({
|
|
|
1418
1418
|
a && o(a);
|
|
1419
1419
|
}, [a, o]);
|
|
1420
1420
|
const { name: l, percentage: d, color: s } = r ?? {};
|
|
1421
|
-
return r ? /* @__PURE__ */ w(
|
|
1421
|
+
return r ? /* @__PURE__ */ w(fr, { children: [
|
|
1422
1422
|
/* @__PURE__ */ n(z, { variant: "h5", children: d }),
|
|
1423
|
-
/* @__PURE__ */ w(
|
|
1424
|
-
/* @__PURE__ */ n(
|
|
1423
|
+
/* @__PURE__ */ w(mr, { children: [
|
|
1424
|
+
/* @__PURE__ */ n(yr, { bgcolor: s, component: "span" }),
|
|
1425
1425
|
/* @__PURE__ */ n(z, { component: "span", variant: "body2", noWrap: !0, children: l })
|
|
1426
1426
|
] })
|
|
1427
1427
|
] }) : null;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function wr(e) {
|
|
1430
1430
|
const t = e.filter(
|
|
1431
1431
|
(i) => i.name !== Oe
|
|
1432
1432
|
);
|
|
1433
1433
|
return t.length === 0 ? e[0] : t.reduce((i, r) => (r.value ?? 0) > (i.value ?? 0) ? r : i);
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function xr(e, t, i) {
|
|
1436
1436
|
let r = 0;
|
|
1437
1437
|
return t !== 0 && (r = e / t * 100), i ? i(r) : `${r}%`;
|
|
1438
1438
|
}
|
|
1439
|
-
const _t = 32,
|
|
1439
|
+
const _t = 32, br = y(S)(({ theme: e }) => ({
|
|
1440
1440
|
display: "flex",
|
|
1441
1441
|
alignItems: "center",
|
|
1442
1442
|
justifyContent: "center",
|
|
1443
1443
|
marginTop: e.spacing(0.5)
|
|
1444
|
-
})),
|
|
1444
|
+
})), kr = y("div")(() => ({
|
|
1445
1445
|
display: "flex",
|
|
1446
1446
|
alignItems: "center",
|
|
1447
1447
|
justifyContent: "center",
|
|
1448
1448
|
position: "relative"
|
|
1449
|
-
})),
|
|
1449
|
+
})), Sr = y(Bi)(() => ({
|
|
1450
1450
|
position: "absolute",
|
|
1451
1451
|
zIndex: 1
|
|
1452
|
-
})),
|
|
1452
|
+
})), Mr = y("div")(({ theme: e }) => ({
|
|
1453
1453
|
display: "flex",
|
|
1454
1454
|
flexDirection: "column",
|
|
1455
1455
|
alignItems: "center",
|
|
1456
1456
|
gap: e.spacing(1),
|
|
1457
1457
|
position: "absolute",
|
|
1458
1458
|
zIndex: 2
|
|
1459
|
-
})),
|
|
1459
|
+
})), Ir = y(S)(({ theme: e }) => ({
|
|
1460
1460
|
display: "flex",
|
|
1461
1461
|
alignItems: "center",
|
|
1462
1462
|
gap: e.spacing(2),
|
|
1463
1463
|
height: e.spacing(5)
|
|
1464
|
-
})),
|
|
1464
|
+
})), Cr = y("div")(({ theme: e }) => ({
|
|
1465
1465
|
display: "flex",
|
|
1466
1466
|
alignItems: "center",
|
|
1467
1467
|
gap: e.spacing(1.5)
|
|
1468
1468
|
}));
|
|
1469
|
-
function
|
|
1470
|
-
const t = parseInt(String(e), 10) ||
|
|
1469
|
+
function Sn({ height: e }) {
|
|
1470
|
+
const t = parseInt(String(e), 10) || at, i = t - _t, r = i - _t;
|
|
1471
1471
|
return /* @__PURE__ */ w(S, { mt: 0.5, children: [
|
|
1472
1472
|
/* @__PURE__ */ n(H, { height: 8, width: 64 }),
|
|
1473
|
-
/* @__PURE__ */ n(
|
|
1473
|
+
/* @__PURE__ */ n(br, { height: t, children: /* @__PURE__ */ w(kr, { children: [
|
|
1474
1474
|
/* @__PURE__ */ n(H, { variant: "circular", width: i, height: i }),
|
|
1475
1475
|
/* @__PURE__ */ n(
|
|
1476
|
-
|
|
1476
|
+
Sr,
|
|
1477
1477
|
{
|
|
1478
1478
|
variant: "circular",
|
|
1479
1479
|
width: r,
|
|
1480
1480
|
height: r
|
|
1481
1481
|
}
|
|
1482
1482
|
),
|
|
1483
|
-
/* @__PURE__ */ w(
|
|
1483
|
+
/* @__PURE__ */ w(Mr, { children: [
|
|
1484
1484
|
/* @__PURE__ */ n(H, { height: 24, width: 72 }),
|
|
1485
1485
|
/* @__PURE__ */ n(H, { height: 8, width: 48 })
|
|
1486
1486
|
] })
|
|
1487
1487
|
] }) }),
|
|
1488
|
-
/* @__PURE__ */ n(
|
|
1488
|
+
/* @__PURE__ */ n(Ir, { children: [...Array(2)].map((o, a) => /* @__PURE__ */ w(Cr, { children: [
|
|
1489
1489
|
/* @__PURE__ */ n(H, { variant: "circular", width: 8, height: 8 }),
|
|
1490
1490
|
/* @__PURE__ */ n(H, { width: 48, height: 8 })
|
|
1491
1491
|
] }, a)) })
|
|
1492
1492
|
] });
|
|
1493
1493
|
}
|
|
1494
|
-
const
|
|
1494
|
+
const Tr = y(S)(({ theme: e }) => ({
|
|
1495
1495
|
position: "relative",
|
|
1496
1496
|
padding: e.spacing(1.25, 1, 0, 1),
|
|
1497
1497
|
width: "100%"
|
|
1498
|
-
})),
|
|
1498
|
+
})), Ar = y(S)(({ theme: e }) => ({
|
|
1499
1499
|
position: "relative",
|
|
1500
1500
|
display: "flex",
|
|
1501
1501
|
flexDirection: "row",
|
|
@@ -1504,7 +1504,7 @@ const Er = y(S)(({ theme: e }) => ({
|
|
|
1504
1504
|
// Accessibility tweak to display focus indicator properly
|
|
1505
1505
|
padding: e.spacing(0.5),
|
|
1506
1506
|
margin: e.spacing(-0.5)
|
|
1507
|
-
})),
|
|
1507
|
+
})), Er = y(S)(({ theme: e }) => ({
|
|
1508
1508
|
display: "flex",
|
|
1509
1509
|
flexDirection: "row",
|
|
1510
1510
|
gap: e.spacing(1),
|
|
@@ -1512,7 +1512,7 @@ const Er = y(S)(({ theme: e }) => ({
|
|
|
1512
1512
|
textOverflow: "ellipsis",
|
|
1513
1513
|
whiteSpace: "nowrap",
|
|
1514
1514
|
cursor: "pointer"
|
|
1515
|
-
})),
|
|
1515
|
+
})), Lr = y(S)(({ theme: e }) => ({
|
|
1516
1516
|
display: "inline-block",
|
|
1517
1517
|
position: "absolute",
|
|
1518
1518
|
left: e.spacing(-2),
|
|
@@ -1521,13 +1521,13 @@ const Er = y(S)(({ theme: e }) => ({
|
|
|
1521
1521
|
zIndex: 1,
|
|
1522
1522
|
width: e.spacing(2.5),
|
|
1523
1523
|
background: `linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, ${e.palette.background.paper} 100%)`
|
|
1524
|
-
})),
|
|
1524
|
+
})), $r = y(S)(({ theme: e }) => ({
|
|
1525
1525
|
position: "absolute",
|
|
1526
1526
|
padding: e.spacing(0.25, 1),
|
|
1527
1527
|
top: e.spacing(0),
|
|
1528
1528
|
right: 0,
|
|
1529
1529
|
background: e.palette.background.paper
|
|
1530
|
-
})),
|
|
1530
|
+
})), Dr = y(S, {
|
|
1531
1531
|
shouldForwardProp: (e) => e !== "color"
|
|
1532
1532
|
})(({ theme: e, color: t }) => {
|
|
1533
1533
|
const i = e.spacing(1);
|
|
@@ -1538,7 +1538,7 @@ const Er = y(S)(({ theme: e }) => ({
|
|
|
1538
1538
|
height: i
|
|
1539
1539
|
};
|
|
1540
1540
|
});
|
|
1541
|
-
function
|
|
1541
|
+
function Mn({
|
|
1542
1542
|
series: e,
|
|
1543
1543
|
selectedCategories: t,
|
|
1544
1544
|
onCategoryClick: i
|
|
@@ -1578,9 +1578,9 @@ function In({
|
|
|
1578
1578
|
}), x.observe(p.current)), () => {
|
|
1579
1579
|
x == null || x.disconnect();
|
|
1580
1580
|
};
|
|
1581
|
-
}, [p, b]), /* @__PURE__ */ w(
|
|
1581
|
+
}, [p, b]), /* @__PURE__ */ w(Tr, { ref: p, children: [
|
|
1582
1582
|
/* @__PURE__ */ n(
|
|
1583
|
-
|
|
1583
|
+
Ar,
|
|
1584
1584
|
{
|
|
1585
1585
|
ref: c,
|
|
1586
1586
|
style: {
|
|
@@ -1590,7 +1590,7 @@ function In({
|
|
|
1590
1590
|
if (A < l) return null;
|
|
1591
1591
|
const E = t.length === 0 || t.includes(x.name);
|
|
1592
1592
|
return /* @__PURE__ */ w(
|
|
1593
|
-
|
|
1593
|
+
Er,
|
|
1594
1594
|
{
|
|
1595
1595
|
tabIndex: 0,
|
|
1596
1596
|
onClick: i ? () => i(x.name) : void 0,
|
|
@@ -1600,7 +1600,7 @@ function In({
|
|
|
1600
1600
|
},
|
|
1601
1601
|
children: [
|
|
1602
1602
|
/* @__PURE__ */ n(
|
|
1603
|
-
|
|
1603
|
+
Dr,
|
|
1604
1604
|
{
|
|
1605
1605
|
color: E ? x.color : r.palette.text.disabled
|
|
1606
1606
|
}
|
|
@@ -1620,8 +1620,8 @@ function In({
|
|
|
1620
1620
|
})
|
|
1621
1621
|
}
|
|
1622
1622
|
),
|
|
1623
|
-
(o || l > 0) && /* @__PURE__ */ w(
|
|
1624
|
-
/* @__PURE__ */ n(
|
|
1623
|
+
(o || l > 0) && /* @__PURE__ */ w($r, { ref: v, children: [
|
|
1624
|
+
/* @__PURE__ */ n(Lr, {}),
|
|
1625
1625
|
/* @__PURE__ */ n(
|
|
1626
1626
|
pe,
|
|
1627
1627
|
{
|
|
@@ -1634,7 +1634,7 @@ function In({
|
|
|
1634
1634
|
size: "small",
|
|
1635
1635
|
disabled: l === 0,
|
|
1636
1636
|
onClick: h,
|
|
1637
|
-
children: /* @__PURE__ */ n(
|
|
1637
|
+
children: /* @__PURE__ */ n(fi, {})
|
|
1638
1638
|
}
|
|
1639
1639
|
)
|
|
1640
1640
|
}
|
|
@@ -1651,7 +1651,7 @@ function In({
|
|
|
1651
1651
|
size: "small",
|
|
1652
1652
|
disabled: !o,
|
|
1653
1653
|
onClick: f,
|
|
1654
|
-
children: /* @__PURE__ */ n(
|
|
1654
|
+
children: /* @__PURE__ */ n(mi, {})
|
|
1655
1655
|
}
|
|
1656
1656
|
)
|
|
1657
1657
|
}
|
|
@@ -1659,12 +1659,12 @@ function In({
|
|
|
1659
1659
|
] })
|
|
1660
1660
|
] });
|
|
1661
1661
|
}
|
|
1662
|
-
const
|
|
1662
|
+
const ht = "232px", Pr = y(ae)(({ theme: e }) => ({
|
|
1663
1663
|
flexDirection: "row",
|
|
1664
1664
|
justifyContent: "space-between",
|
|
1665
1665
|
alignItems: "center",
|
|
1666
1666
|
marginBottom: e.spacing(0.5)
|
|
1667
|
-
})),
|
|
1667
|
+
})), Or = y(S, {
|
|
1668
1668
|
shouldForwardProp: (e) => e !== "height" && e !== "width"
|
|
1669
1669
|
})(
|
|
1670
1670
|
({ height: e, width: t }) => ({
|
|
@@ -1677,22 +1677,22 @@ const gt = "232px", Wr = y(ae)(({ theme: e }) => ({
|
|
|
1677
1677
|
width: t || "100%",
|
|
1678
1678
|
height: e || "100%"
|
|
1679
1679
|
})
|
|
1680
|
-
),
|
|
1680
|
+
), Wr = y(We)(() => ({
|
|
1681
1681
|
position: "absolute",
|
|
1682
1682
|
top: 0,
|
|
1683
1683
|
right: 0,
|
|
1684
1684
|
left: 0,
|
|
1685
1685
|
bottom: 0
|
|
1686
|
-
})), zt = [],
|
|
1687
|
-
function
|
|
1686
|
+
})), zt = [], Rr = {}, Fr = (e) => e;
|
|
1687
|
+
function us({
|
|
1688
1688
|
name: e,
|
|
1689
1689
|
data: t,
|
|
1690
|
-
formatter: i =
|
|
1691
|
-
tooltipFormatter: r =
|
|
1690
|
+
formatter: i = Fr,
|
|
1691
|
+
tooltipFormatter: r = Nr,
|
|
1692
1692
|
percentFormatter: o,
|
|
1693
|
-
height: a =
|
|
1694
|
-
width: l =
|
|
1695
|
-
labels: d =
|
|
1693
|
+
height: a = ht,
|
|
1694
|
+
width: l = ht,
|
|
1695
|
+
labels: d = Rr,
|
|
1696
1696
|
colors: s = zt,
|
|
1697
1697
|
animation: u = !0,
|
|
1698
1698
|
filterable: p = !0,
|
|
@@ -1702,7 +1702,7 @@ function ps({
|
|
|
1702
1702
|
maxItems: m = 11,
|
|
1703
1703
|
order: f = Te.RANKING
|
|
1704
1704
|
}) {
|
|
1705
|
-
const h = de(), k =
|
|
1705
|
+
const h = de(), k = hr(t, f, m, s), { showSkeleton: b } = ke(!!g), M = le(), I = se(M), x = F(() => o || ((U) => `${M.formatNumber(U, {
|
|
1706
1706
|
maximumFractionDigits: 2,
|
|
1707
1707
|
minimumFractionDigits: 2
|
|
1708
1708
|
})}%`), [M, o]), A = F(() => {
|
|
@@ -1794,8 +1794,8 @@ function ps({
|
|
|
1794
1794
|
}, J = (U) => {
|
|
1795
1795
|
U.key === "Enter" && W();
|
|
1796
1796
|
};
|
|
1797
|
-
return b ? /* @__PURE__ */ n(
|
|
1798
|
-
p && /* @__PURE__ */ w(
|
|
1797
|
+
return b ? /* @__PURE__ */ n(Sn, { height: a }) : /* @__PURE__ */ w(ie, { children: [
|
|
1798
|
+
p && /* @__PURE__ */ w(Pr, { container: !0, children: [
|
|
1799
1799
|
/* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: c.length ? I.formatMessage(
|
|
1800
1800
|
{ id: "c4r.widgets.pie.selectedItems" },
|
|
1801
1801
|
{ items: c.length }
|
|
@@ -1811,9 +1811,9 @@ function ps({
|
|
|
1811
1811
|
}
|
|
1812
1812
|
)
|
|
1813
1813
|
] }),
|
|
1814
|
-
/* @__PURE__ */ w(
|
|
1814
|
+
/* @__PURE__ */ w(Or, { height: a, width: l, children: [
|
|
1815
1815
|
/* @__PURE__ */ n(
|
|
1816
|
-
|
|
1816
|
+
vr,
|
|
1817
1817
|
{
|
|
1818
1818
|
data: k,
|
|
1819
1819
|
selectedCategories: c,
|
|
@@ -1821,7 +1821,7 @@ function ps({
|
|
|
1821
1821
|
}
|
|
1822
1822
|
),
|
|
1823
1823
|
/* @__PURE__ */ n(
|
|
1824
|
-
|
|
1824
|
+
Wr,
|
|
1825
1825
|
{
|
|
1826
1826
|
option: O,
|
|
1827
1827
|
onEvents: P,
|
|
@@ -1831,7 +1831,7 @@ function ps({
|
|
|
1831
1831
|
)
|
|
1832
1832
|
] }),
|
|
1833
1833
|
k.length > 0 && /* @__PURE__ */ n(
|
|
1834
|
-
|
|
1834
|
+
Mn,
|
|
1835
1835
|
{
|
|
1836
1836
|
series: k,
|
|
1837
1837
|
selectedCategories: c,
|
|
@@ -1840,30 +1840,30 @@ function ps({
|
|
|
1840
1840
|
)
|
|
1841
1841
|
] });
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Nr(e, t, i) {
|
|
1844
1844
|
var s;
|
|
1845
1845
|
const r = Array.isArray(e) ? e[0] : e;
|
|
1846
1846
|
if (!r)
|
|
1847
1847
|
return null;
|
|
1848
1848
|
const o = he(t(r.value)), a = i(r.percent) || `${r.percent}%`, d = `display:inline-block;border-radius:4px;width:8px;height:8px;background-color:${((s = r.data) == null ? void 0 : s.color) || r.textStyle.color}`;
|
|
1849
1849
|
return `
|
|
1850
|
-
<div style="white-space:normal;"><p style="max-width:${
|
|
1850
|
+
<div style="white-space:normal;"><p style="max-width:${ht};font-size:11px;font-weight:500;line-height:1.454;text-transform:uppercase;margin:0 0 4px 0;">${r.name}</p>
|
|
1851
1851
|
<p style="display:flex;align-items:center;font-size: 11px;font-weight:500;line-height:1.454;margin:0;"><span style="${d}"></span> <span style="margin:0 4px;font-weight:400;">${o}</span> (${a})</p></div>
|
|
1852
1852
|
`.trim();
|
|
1853
1853
|
}
|
|
1854
|
-
const
|
|
1854
|
+
const Br = y(ae)(({ theme: e }) => ({
|
|
1855
1855
|
position: "relative",
|
|
1856
1856
|
alignItems: "center",
|
|
1857
1857
|
height: e.spacing(4)
|
|
1858
|
-
})),
|
|
1858
|
+
})), _r = y(ae)(({ theme: e }) => ({
|
|
1859
1859
|
position: "absolute",
|
|
1860
1860
|
zIndex: 1,
|
|
1861
1861
|
padding: e.spacing(0, 3)
|
|
1862
1862
|
}));
|
|
1863
|
-
function
|
|
1863
|
+
function zr() {
|
|
1864
1864
|
return /* @__PURE__ */ w(ae, { container: !0, children: [
|
|
1865
|
-
/* @__PURE__ */ w(
|
|
1866
|
-
/* @__PURE__ */ w(
|
|
1865
|
+
/* @__PURE__ */ w(Br, { container: !0, item: !0, children: [
|
|
1866
|
+
/* @__PURE__ */ w(_r, { container: !0, item: !0, justifyContent: "space-between", children: [
|
|
1867
1867
|
/* @__PURE__ */ n(Wt, { variant: "circular", width: 12, height: 12 }),
|
|
1868
1868
|
/* @__PURE__ */ n(Wt, { variant: "circular", width: 12, height: 12 })
|
|
1869
1869
|
] }),
|
|
@@ -1875,16 +1875,16 @@ function Yr() {
|
|
|
1875
1875
|
] })
|
|
1876
1876
|
] });
|
|
1877
1877
|
}
|
|
1878
|
-
const
|
|
1878
|
+
const Hr = y(S)(() => ({
|
|
1879
1879
|
position: "relative"
|
|
1880
|
-
})),
|
|
1880
|
+
})), jr = y(S)(({ theme: { spacing: e } }) => ({
|
|
1881
1881
|
display: "flex",
|
|
1882
1882
|
flexDirection: "row-reverse",
|
|
1883
1883
|
height: e(1.5)
|
|
1884
|
-
})),
|
|
1884
|
+
})), Yr = y(ve)(() => ({
|
|
1885
1885
|
cursor: "pointer"
|
|
1886
1886
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1887
|
-
})), Ht = y(
|
|
1887
|
+
})), Ht = y(ot)(({ theme: { spacing: e } }) => ({
|
|
1888
1888
|
maxWidth: e(9),
|
|
1889
1889
|
margin: 0,
|
|
1890
1890
|
"& fieldset": {
|
|
@@ -1903,11 +1903,11 @@ const jr = y(S)(() => ({
|
|
|
1903
1903
|
margin: 0
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
|
-
})),
|
|
1906
|
+
})), Vr = y(xt)(({ theme: { palette: e } }) => ({
|
|
1907
1907
|
"& .MuiSlider-rail": {
|
|
1908
1908
|
color: e.text.hint
|
|
1909
1909
|
}
|
|
1910
|
-
})),
|
|
1910
|
+
})), Gr = y(xt)(({ theme: { palette: e, spacing: t } }) => ({
|
|
1911
1911
|
pointerEvents: "none",
|
|
1912
1912
|
position: "absolute",
|
|
1913
1913
|
zIndex: 1,
|
|
@@ -1932,7 +1932,7 @@ const jr = y(S)(() => ({
|
|
|
1932
1932
|
transform: "translateY(-50%)"
|
|
1933
1933
|
}
|
|
1934
1934
|
}));
|
|
1935
|
-
function
|
|
1935
|
+
function ps({
|
|
1936
1936
|
data: e,
|
|
1937
1937
|
min: t,
|
|
1938
1938
|
max: i,
|
|
@@ -1955,7 +1955,7 @@ function gs({
|
|
|
1955
1955
|
if (!(x[0].value > x[1].value))
|
|
1956
1956
|
return x;
|
|
1957
1957
|
}, [r, i, t]), m = F(
|
|
1958
|
-
() => o ?
|
|
1958
|
+
() => o ? Kn(o, 250) : null,
|
|
1959
1959
|
[o]
|
|
1960
1960
|
), f = (x) => {
|
|
1961
1961
|
u([...x]), d([...x]), m && m([...x]);
|
|
@@ -1980,9 +1980,9 @@ function gs({
|
|
|
1980
1980
|
function I(x) {
|
|
1981
1981
|
x.key === "Enter" && M();
|
|
1982
1982
|
}
|
|
1983
|
-
return v ? /* @__PURE__ */ n(
|
|
1984
|
-
/* @__PURE__ */ n(
|
|
1985
|
-
|
|
1983
|
+
return v ? /* @__PURE__ */ n(zr, {}) : /* @__PURE__ */ w(Hr, { children: [
|
|
1984
|
+
/* @__PURE__ */ n(jr, { children: k && /* @__PURE__ */ n(z, { variant: "caption", color: "primary", children: /* @__PURE__ */ n(
|
|
1985
|
+
Yr,
|
|
1986
1986
|
{
|
|
1987
1987
|
onClick: M,
|
|
1988
1988
|
onKeyDown: I,
|
|
@@ -1994,7 +1994,7 @@ function gs({
|
|
|
1994
1994
|
) }) }),
|
|
1995
1995
|
/* @__PURE__ */ w(S, { children: [
|
|
1996
1996
|
/* @__PURE__ */ n(
|
|
1997
|
-
|
|
1997
|
+
Vr,
|
|
1998
1998
|
{
|
|
1999
1999
|
getAriaLabel: (x) => x === 0 ? c.formatMessage({ id: "c4r.widgets.range.minValue" }) : c.formatMessage({ id: "c4r.widgets.range.maxValue" }),
|
|
2000
2000
|
value: l,
|
|
@@ -2004,7 +2004,7 @@ function gs({
|
|
|
2004
2004
|
}
|
|
2005
2005
|
),
|
|
2006
2006
|
r && r.length === 2 && /* @__PURE__ */ n(
|
|
2007
|
-
|
|
2007
|
+
Gr,
|
|
2008
2008
|
{
|
|
2009
2009
|
getAriaLabel: (x) => x === 0 ? c.formatMessage({ id: "c4r.widgets.range.minLimit" }) : c.formatMessage({ id: "c4r.widgets.range.maxLimit" }),
|
|
2010
2010
|
value: r,
|
|
@@ -2052,40 +2052,40 @@ function gs({
|
|
|
2052
2052
|
] })
|
|
2053
2053
|
] });
|
|
2054
2054
|
}
|
|
2055
|
-
const
|
|
2055
|
+
const Ur = y(yn)(({ theme: e }) => ({
|
|
2056
2056
|
flexDirection: "column",
|
|
2057
2057
|
alignItems: "center",
|
|
2058
2058
|
justifyContent: "center",
|
|
2059
2059
|
marginLeft: e.spacing(4),
|
|
2060
2060
|
containerType: "inline-size",
|
|
2061
|
-
[`@container (max-width: ${
|
|
2061
|
+
[`@container (max-width: ${Mt.XS}px)`]: {
|
|
2062
2062
|
" > div": {
|
|
2063
2063
|
maxWidth: "75%"
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
2066
|
-
})),
|
|
2066
|
+
})), qr = y(S)(() => ({
|
|
2067
2067
|
position: "relative",
|
|
2068
2068
|
display: "flex",
|
|
2069
2069
|
justifyContent: "space-between",
|
|
2070
2070
|
width: "80%",
|
|
2071
2071
|
maxWidth: "50%"
|
|
2072
2072
|
}));
|
|
2073
|
-
function
|
|
2073
|
+
function Xr({ height: e }) {
|
|
2074
2074
|
function t() {
|
|
2075
2075
|
return Math.floor(Math.random() * 5);
|
|
2076
2076
|
}
|
|
2077
|
-
return /* @__PURE__ */ w(S, { height: e ??
|
|
2077
|
+
return /* @__PURE__ */ w(S, { height: e ?? at, children: [
|
|
2078
2078
|
/* @__PURE__ */ n(S, { mb: 4, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
|
|
2079
|
-
/* @__PURE__ */ n(
|
|
2079
|
+
/* @__PURE__ */ n(Ur, { height: "80%", children: [...Array(3)].map((i, r) => (
|
|
2080
2080
|
// Every row is placed with an incremental margin left to reinforce the effect of a scatter plot
|
|
2081
|
-
/* @__PURE__ */ n(
|
|
2081
|
+
/* @__PURE__ */ n(qr, { ml: r * 3, children: [...Array(4)].map((o, a) => (
|
|
2082
2082
|
// Random margins are used to create the effect of a scatter plot
|
|
2083
2083
|
/* @__PURE__ */ n(S, { mt: t(), ml: t(), children: /* @__PURE__ */ n(H, { variant: "circular", width: 12, height: 12 }) }, a)
|
|
2084
2084
|
)) }, r)
|
|
2085
2085
|
)) })
|
|
2086
2086
|
] });
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function Kr(e, t) {
|
|
2089
2089
|
var s;
|
|
2090
2090
|
const i = Array.isArray(e.tooltip) ? e.tooltip[0] : e.tooltip, r = Array.isArray(t.tooltip) ? t.tooltip[0] : t.tooltip, o = i == null ? void 0 : i.formatter, a = r == null ? void 0 : r.formatter, l = (s = e.series[0]) == null ? void 0 : s.data, d = t.series[0].data;
|
|
2091
2091
|
return o !== a ? !1 : l && d && l.length === d.length ? !d.some(({ value: u }, p) => {
|
|
@@ -2093,10 +2093,10 @@ function Jr(e, t) {
|
|
|
2093
2093
|
return u !== ((c = l[p]) == null ? void 0 : c.value);
|
|
2094
2094
|
}) : !1;
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function Zr({
|
|
2097
2097
|
tooltipFormatter: e,
|
|
2098
|
-
xAxisFormatter: t =
|
|
2099
|
-
yAxisFormatter: i =
|
|
2098
|
+
xAxisFormatter: t = tt,
|
|
2099
|
+
yAxisFormatter: i = tt
|
|
2100
2100
|
}, r) {
|
|
2101
2101
|
return {
|
|
2102
2102
|
grid: {
|
|
@@ -2132,7 +2132,7 @@ function Qr({
|
|
|
2132
2132
|
}
|
|
2133
2133
|
};
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function Jr({
|
|
2136
2136
|
name: e,
|
|
2137
2137
|
data: t,
|
|
2138
2138
|
animation: i
|
|
@@ -2146,30 +2146,30 @@ function eo({
|
|
|
2146
2146
|
}
|
|
2147
2147
|
];
|
|
2148
2148
|
}
|
|
2149
|
-
const
|
|
2149
|
+
const Qr = Gn.memo(
|
|
2150
2150
|
We,
|
|
2151
|
-
(e, t) =>
|
|
2151
|
+
(e, t) => Kr(
|
|
2152
2152
|
e.option,
|
|
2153
2153
|
t.option
|
|
2154
2154
|
)
|
|
2155
|
-
),
|
|
2156
|
-
function
|
|
2155
|
+
), jt = 225, eo = [], tt = (e) => e;
|
|
2156
|
+
function gs({
|
|
2157
2157
|
name: e = null,
|
|
2158
|
-
data: t =
|
|
2158
|
+
data: t = eo,
|
|
2159
2159
|
animation: i = !0,
|
|
2160
|
-
xAxisFormatter: r =
|
|
2161
|
-
yAxisFormatter: o =
|
|
2162
|
-
tooltipFormatter: a =
|
|
2160
|
+
xAxisFormatter: r = tt,
|
|
2161
|
+
yAxisFormatter: o = tt,
|
|
2162
|
+
tooltipFormatter: a = to,
|
|
2163
2163
|
isLoading: l
|
|
2164
2164
|
}) {
|
|
2165
2165
|
const d = de(), s = re(), [u, p] = _({
|
|
2166
2166
|
series: []
|
|
2167
2167
|
}), { showSkeleton: c } = ke(!!l);
|
|
2168
2168
|
return G(() => {
|
|
2169
|
-
const v =
|
|
2169
|
+
const v = Zr(
|
|
2170
2170
|
{ xAxisFormatter: r, yAxisFormatter: o, tooltipFormatter: a },
|
|
2171
2171
|
d
|
|
2172
|
-
), g =
|
|
2172
|
+
), g = Jr({
|
|
2173
2173
|
name: e,
|
|
2174
2174
|
data: t || [],
|
|
2175
2175
|
animation: i
|
|
@@ -2186,17 +2186,17 @@ function hs({
|
|
|
2186
2186
|
r,
|
|
2187
2187
|
o,
|
|
2188
2188
|
a
|
|
2189
|
-
]), c ? /* @__PURE__ */ n(
|
|
2190
|
-
|
|
2189
|
+
]), c ? /* @__PURE__ */ n(Xr, { height: jt }) : /* @__PURE__ */ n(
|
|
2190
|
+
Qr,
|
|
2191
2191
|
{
|
|
2192
2192
|
ref: s,
|
|
2193
2193
|
option: u,
|
|
2194
2194
|
lazyUpdate: !0,
|
|
2195
|
-
style: { height:
|
|
2195
|
+
style: { height: jt }
|
|
2196
2196
|
}
|
|
2197
2197
|
);
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function to(e) {
|
|
2200
2200
|
const t = Array.isArray(e) ? e[0] : e, i = (t == null ? void 0 : t.value) || [];
|
|
2201
2201
|
return `[${i[0]}, ${i[1]})`;
|
|
2202
2202
|
}
|
|
@@ -2209,9 +2209,9 @@ function Ue({
|
|
|
2209
2209
|
const a = [72, 48, 96, 32, 64], l = o % a.length;
|
|
2210
2210
|
return a[l];
|
|
2211
2211
|
}
|
|
2212
|
-
return [...Array(t)].map((o, a) => /* @__PURE__ */ n(
|
|
2212
|
+
return [...Array(t)].map((o, a) => /* @__PURE__ */ n(bt, { children: /* @__PURE__ */ n(H, { width: e ?? r(i), height: 8 }) }, a));
|
|
2213
2213
|
}
|
|
2214
|
-
const
|
|
2214
|
+
const no = y(S)(({ theme: e }) => ({
|
|
2215
2215
|
display: "flex",
|
|
2216
2216
|
flexDirection: "row",
|
|
2217
2217
|
justifyContent: "flex-end",
|
|
@@ -2219,29 +2219,29 @@ const ro = y(S)(({ theme: e }) => ({
|
|
|
2219
2219
|
gap: e.spacing(2),
|
|
2220
2220
|
margin: 0,
|
|
2221
2221
|
padding: e.spacing(2, 1)
|
|
2222
|
-
})),
|
|
2222
|
+
})), io = y(ln)(() => ({
|
|
2223
2223
|
overflow: "hidden"
|
|
2224
2224
|
}));
|
|
2225
|
-
function
|
|
2225
|
+
function ro({
|
|
2226
2226
|
style: e,
|
|
2227
2227
|
dense: t,
|
|
2228
2228
|
pagination: i,
|
|
2229
2229
|
rowsPerPage: r
|
|
2230
2230
|
}) {
|
|
2231
2231
|
return /* @__PURE__ */ w(ie, { children: [
|
|
2232
|
-
/* @__PURE__ */ n(
|
|
2233
|
-
/* @__PURE__ */ n(
|
|
2232
|
+
/* @__PURE__ */ n(io, { style: e, children: /* @__PURE__ */ w(sn, { "aria-label": "skeleton table", size: t ? "small" : "medium", children: [
|
|
2233
|
+
/* @__PURE__ */ n(cn, { children: /* @__PURE__ */ w(Je, { children: [
|
|
2234
2234
|
/* @__PURE__ */ n(Ue, { rows: 1, width: 8 }),
|
|
2235
2235
|
/* @__PURE__ */ n(Ue, { width: 56 })
|
|
2236
2236
|
] }) }),
|
|
2237
|
-
/* @__PURE__ */ n(
|
|
2237
|
+
/* @__PURE__ */ n(dn, { children: [...Array(Math.min(10, r ?? 10))].map(
|
|
2238
2238
|
(o, a) => /* @__PURE__ */ w(Je, { children: [
|
|
2239
2239
|
/* @__PURE__ */ n(Ue, { rows: 1, width: 8 }),
|
|
2240
2240
|
/* @__PURE__ */ n(Ue, { index: a })
|
|
2241
2241
|
] }, a)
|
|
2242
2242
|
) })
|
|
2243
2243
|
] }) }),
|
|
2244
|
-
i && /* @__PURE__ */ w(
|
|
2244
|
+
i && /* @__PURE__ */ w(no, { children: [
|
|
2245
2245
|
/* @__PURE__ */ n(H, { width: 56, height: 8 }),
|
|
2246
2246
|
/* @__PURE__ */ n(S, { mr: 1, children: /* @__PURE__ */ n(H, { width: 52, height: 16 }) }),
|
|
2247
2247
|
/* @__PURE__ */ n(H, { width: 60, height: 8 }),
|
|
@@ -2250,18 +2250,18 @@ function ao({
|
|
|
2250
2250
|
] })
|
|
2251
2251
|
] });
|
|
2252
2252
|
}
|
|
2253
|
-
const
|
|
2253
|
+
const oo = y(Zn)(({ theme: e }) => ({
|
|
2254
2254
|
...e.typography.caption,
|
|
2255
2255
|
color: e.palette.text.secondary,
|
|
2256
2256
|
whiteSpace: "nowrap"
|
|
2257
|
-
})),
|
|
2257
|
+
})), ao = y(Je)(({ theme: e }) => ({
|
|
2258
2258
|
maxHeight: e.spacing(6.5),
|
|
2259
2259
|
transition: "background-color 0.25s ease",
|
|
2260
2260
|
"&.MuiTableRow-hover:hover": {
|
|
2261
2261
|
cursor: "pointer",
|
|
2262
2262
|
backgroundColor: e.palette.background.default
|
|
2263
2263
|
}
|
|
2264
|
-
})),
|
|
2264
|
+
})), lo = y(bt)(() => ({
|
|
2265
2265
|
overflow: "hidden",
|
|
2266
2266
|
"& p": {
|
|
2267
2267
|
maxWidth: "100%",
|
|
@@ -2269,14 +2269,14 @@ const lo = y(Jn)(({ theme: e }) => ({
|
|
|
2269
2269
|
overflow: "hidden",
|
|
2270
2270
|
textOverflow: "ellipsis"
|
|
2271
2271
|
}
|
|
2272
|
-
})),
|
|
2272
|
+
})), so = y(Jn)(({ theme: e }) => ({
|
|
2273
2273
|
height: e.spacing(6),
|
|
2274
2274
|
overflowX: "auto",
|
|
2275
2275
|
overflowY: "hidden"
|
|
2276
2276
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
2277
|
-
})),
|
|
2277
|
+
})), co = 10, uo = [5, 10, 25], Be = () => {
|
|
2278
2278
|
};
|
|
2279
|
-
function
|
|
2279
|
+
function hs({
|
|
2280
2280
|
columns: e,
|
|
2281
2281
|
rows: t,
|
|
2282
2282
|
sorting: i = !1,
|
|
@@ -2288,8 +2288,8 @@ function fs({
|
|
|
2288
2288
|
totalCount: s,
|
|
2289
2289
|
page: u,
|
|
2290
2290
|
onSetPage: p = Be,
|
|
2291
|
-
rowsPerPage: c =
|
|
2292
|
-
rowsPerPageOptions: v =
|
|
2291
|
+
rowsPerPage: c = co,
|
|
2292
|
+
rowsPerPageOptions: v = uo,
|
|
2293
2293
|
onSetRowsPerPage: g = Be,
|
|
2294
2294
|
onRowClick: m = Be,
|
|
2295
2295
|
onRowMouseEnter: f,
|
|
@@ -2329,7 +2329,7 @@ function fs({
|
|
|
2329
2329
|
J.height = `calc(${k} - ${C}px)`;
|
|
2330
2330
|
}
|
|
2331
2331
|
return O ? /* @__PURE__ */ n(
|
|
2332
|
-
|
|
2332
|
+
ro,
|
|
2333
2333
|
{
|
|
2334
2334
|
rowsPerPage: c,
|
|
2335
2335
|
style: J,
|
|
@@ -2337,9 +2337,9 @@ function fs({
|
|
|
2337
2337
|
pagination: d
|
|
2338
2338
|
}
|
|
2339
2339
|
) : /* @__PURE__ */ w(ie, { children: [
|
|
2340
|
-
/* @__PURE__ */ n(
|
|
2340
|
+
/* @__PURE__ */ n(ln, { style: J, children: /* @__PURE__ */ w(sn, { stickyHeader: !0, size: b ? "small" : "medium", children: [
|
|
2341
2341
|
/* @__PURE__ */ n(
|
|
2342
|
-
|
|
2342
|
+
po,
|
|
2343
2343
|
{
|
|
2344
2344
|
columns: e,
|
|
2345
2345
|
sorting: i,
|
|
@@ -2349,7 +2349,7 @@ function fs({
|
|
|
2349
2349
|
}
|
|
2350
2350
|
),
|
|
2351
2351
|
/* @__PURE__ */ n(
|
|
2352
|
-
|
|
2352
|
+
go,
|
|
2353
2353
|
{
|
|
2354
2354
|
columns: e,
|
|
2355
2355
|
rows: t,
|
|
@@ -2360,7 +2360,7 @@ function fs({
|
|
|
2360
2360
|
)
|
|
2361
2361
|
] }) }),
|
|
2362
2362
|
d && /* @__PURE__ */ n(
|
|
2363
|
-
|
|
2363
|
+
so,
|
|
2364
2364
|
{
|
|
2365
2365
|
ref: x,
|
|
2366
2366
|
rowsPerPageOptions: v,
|
|
@@ -2375,7 +2375,7 @@ function fs({
|
|
|
2375
2375
|
onPageChange: P,
|
|
2376
2376
|
onRowsPerPageChange: W,
|
|
2377
2377
|
ActionsComponent: () => /* @__PURE__ */ n(
|
|
2378
|
-
|
|
2378
|
+
pi,
|
|
2379
2379
|
{
|
|
2380
2380
|
count: s,
|
|
2381
2381
|
rowsPerPage: c,
|
|
@@ -2388,15 +2388,15 @@ function fs({
|
|
|
2388
2388
|
)
|
|
2389
2389
|
] });
|
|
2390
2390
|
}
|
|
2391
|
-
function
|
|
2391
|
+
function po({
|
|
2392
2392
|
columns: e,
|
|
2393
2393
|
sorting: t,
|
|
2394
2394
|
sortBy: i,
|
|
2395
2395
|
sortDirection: r,
|
|
2396
2396
|
onSort: o
|
|
2397
2397
|
}) {
|
|
2398
|
-
return /* @__PURE__ */ n(
|
|
2399
|
-
|
|
2398
|
+
return /* @__PURE__ */ n(cn, { children: /* @__PURE__ */ n(Je, { children: e.map(({ field: a, headerName: l, align: d }) => /* @__PURE__ */ n(bt, { align: d ?? "left", children: t ? /* @__PURE__ */ n(
|
|
2399
|
+
oo,
|
|
2400
2400
|
{
|
|
2401
2401
|
active: i === a,
|
|
2402
2402
|
direction: i === a ? r : "asc",
|
|
@@ -2405,17 +2405,17 @@ function ho({
|
|
|
2405
2405
|
}
|
|
2406
2406
|
) : l ?? a }, a)) }) });
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function go({
|
|
2409
2409
|
columns: e,
|
|
2410
2410
|
rows: t,
|
|
2411
2411
|
onRowMouseEnter: i,
|
|
2412
2412
|
onRowMouseLeave: r,
|
|
2413
2413
|
onRowClick: o
|
|
2414
2414
|
}) {
|
|
2415
|
-
return /* @__PURE__ */ n(
|
|
2415
|
+
return /* @__PURE__ */ n(dn, { children: t.map((a, l) => {
|
|
2416
2416
|
const d = String(a.cartodb_id || a.id || l);
|
|
2417
2417
|
return /* @__PURE__ */ n(
|
|
2418
|
-
|
|
2418
|
+
ao,
|
|
2419
2419
|
{
|
|
2420
2420
|
hover: !!o,
|
|
2421
2421
|
onMouseEnter: () => i == null ? void 0 : i(a),
|
|
@@ -2425,7 +2425,7 @@ function fo({
|
|
|
2425
2425
|
var m;
|
|
2426
2426
|
let g = (m = Object.entries(a).find(([f]) => f.toUpperCase() === s.toUpperCase())) == null ? void 0 : m[1];
|
|
2427
2427
|
return v ? g = v(g) : typeof g == "bigint" ? g = g.toString() : Array.isArray(g) ? g = `[${g.map((f) => typeof f == "string" ? `"${f}"` : String(f)).join(", ")}]` : typeof g == "object" && g !== null && (g = JSON.stringify(g)), (u ?? s) && /* @__PURE__ */ n(
|
|
2428
|
-
|
|
2428
|
+
lo,
|
|
2429
2429
|
{
|
|
2430
2430
|
scope: "row",
|
|
2431
2431
|
align: p ?? "left",
|
|
@@ -2439,10 +2439,10 @@ function fo({
|
|
|
2439
2439
|
);
|
|
2440
2440
|
}) });
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function In(e, t, i, r, o) {
|
|
2443
2443
|
const a = Array.isArray(e) ? e : [e], [l] = a[0].data, d = new Date(l);
|
|
2444
2444
|
return `<div style='minWidth: 160px;'>
|
|
2445
|
-
<p style='font-weight: 600; line-height: 1; margin: 4px 0;'>${
|
|
2445
|
+
<p style='font-weight: 600; line-height: 1; margin: 4px 0;'>${Tn({ date: d, stepMultiplier: r, stepSize: t })}</p>
|
|
2446
2446
|
${a.reduce((u, p) => {
|
|
2447
2447
|
if (p.value !== void 0 && p.value !== null) {
|
|
2448
2448
|
const c = `<div style='display: flex; flex-direction: row; align-items: center; justify-content: spread; height: 20px; gap: 8px;'>
|
|
@@ -2464,18 +2464,18 @@ function Cn(e, t, i, r, o) {
|
|
|
2464
2464
|
}, []).join("")}
|
|
2465
2465
|
</div>`;
|
|
2466
2466
|
}
|
|
2467
|
-
var
|
|
2468
|
-
function
|
|
2467
|
+
var It = /* @__PURE__ */ ((e) => (e.LINE = "line", e.BAR = "bar", e))(It || {});
|
|
2468
|
+
function Yt(e) {
|
|
2469
2469
|
if (typeof e == "object" && typeof (e == null ? void 0 : e.getTime) == "function")
|
|
2470
2470
|
return e.getTime();
|
|
2471
2471
|
const t = new Date(e).getTime();
|
|
2472
2472
|
if (isFinite(t))
|
|
2473
2473
|
return t;
|
|
2474
2474
|
}
|
|
2475
|
-
function
|
|
2475
|
+
function Cn(e) {
|
|
2476
2476
|
return typeof e == "object" && typeof (e == null ? void 0 : e.getTime) == "function" ? e : new Date(e);
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function nt(e, t) {
|
|
2479
2479
|
var i, r;
|
|
2480
2480
|
for (let o = 0; o < t.length; o++) {
|
|
2481
2481
|
const a = t[o].name, l = o < t.length ? (i = t[o + 1]) == null ? void 0 : i.name : a, d = o > 0 ? (r = t[o - 1]) == null ? void 0 : r.name : a, s = Math.abs(a - l), u = Math.abs(a - d), p = a - u * 0.5, c = a + s * 0.5;
|
|
@@ -2489,85 +2489,85 @@ function tt(e, t) {
|
|
|
2489
2489
|
return o;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function ho(e) {
|
|
2493
2493
|
let t, i = 0;
|
|
2494
2494
|
for (const { name: r } of e)
|
|
2495
2495
|
r !== t && (t = r, i++);
|
|
2496
2496
|
return i;
|
|
2497
2497
|
}
|
|
2498
|
-
function
|
|
2498
|
+
function fo(e) {
|
|
2499
2499
|
const t = new Date(e), i = t.getDay(), r = t.getDate() - i + (i ? 1 : -6);
|
|
2500
2500
|
return t.setDate(r), t.setHours(0, 0, 0, 0), t.getTime();
|
|
2501
2501
|
}
|
|
2502
2502
|
var Me = /* @__PURE__ */ ((e) => (e.YEARS = "year", e.MONTHS = "month", e.WEEKS = "week", e.DAYS = "day", e.HOURS = "hour", e.MINUTES = "minute", e.SECONDS = "second", e))(Me || {});
|
|
2503
|
-
const
|
|
2503
|
+
const Ct = {
|
|
2504
2504
|
year: Ee,
|
|
2505
2505
|
month: Ee,
|
|
2506
2506
|
week: Ee,
|
|
2507
2507
|
day: Ee,
|
|
2508
|
-
hour:
|
|
2508
|
+
hour: wo,
|
|
2509
2509
|
minute: Vt,
|
|
2510
2510
|
second: Vt
|
|
2511
|
-
},
|
|
2512
|
-
year:
|
|
2513
|
-
month:
|
|
2514
|
-
week:
|
|
2515
|
-
day:
|
|
2516
|
-
hour:
|
|
2517
|
-
minute:
|
|
2518
|
-
second:
|
|
2511
|
+
}, mo = {
|
|
2512
|
+
year: To,
|
|
2513
|
+
month: Co,
|
|
2514
|
+
week: Io,
|
|
2515
|
+
day: Mo,
|
|
2516
|
+
hour: So,
|
|
2517
|
+
minute: ko,
|
|
2518
|
+
second: bo
|
|
2519
2519
|
};
|
|
2520
|
-
function
|
|
2520
|
+
function yo({
|
|
2521
2521
|
date: e,
|
|
2522
2522
|
stepSize: t
|
|
2523
2523
|
}) {
|
|
2524
|
-
const i =
|
|
2524
|
+
const i = Ct[t];
|
|
2525
2525
|
if (!i) throw new Error("formatTime: invalid stepSize");
|
|
2526
2526
|
return i(e);
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function it({
|
|
2529
2529
|
start: e,
|
|
2530
2530
|
end: t,
|
|
2531
2531
|
stepSize: i
|
|
2532
2532
|
}) {
|
|
2533
2533
|
if (e > t)
|
|
2534
|
-
return
|
|
2535
|
-
const r =
|
|
2534
|
+
return it({ start: t, end: e, stepSize: i });
|
|
2535
|
+
const r = Ct[i];
|
|
2536
2536
|
if (!r)
|
|
2537
2537
|
throw new Error("formatTimeRange: missing formatter or invalid stepSize");
|
|
2538
2538
|
const o = r(e), a = r(t);
|
|
2539
2539
|
return `${o} - ${a}`;
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function Tn({
|
|
2542
2542
|
date: e,
|
|
2543
2543
|
stepSize: t,
|
|
2544
2544
|
stepMultiplier: i
|
|
2545
2545
|
}) {
|
|
2546
|
-
if (!
|
|
2546
|
+
if (!Ct[t])
|
|
2547
2547
|
throw new Error("formatBucketRange: missing formatter or invalid stepSize");
|
|
2548
|
-
const { start: o, end: a } =
|
|
2548
|
+
const { start: o, end: a } = xo({ date: e, stepSize: t, stepMultiplier: i });
|
|
2549
2549
|
if (i === 1) {
|
|
2550
2550
|
if (t === "day")
|
|
2551
|
-
return
|
|
2551
|
+
return yo({ date: o, stepSize: t });
|
|
2552
2552
|
if (t === "second")
|
|
2553
|
-
return `${Ee(o)} ${
|
|
2553
|
+
return `${Ee(o)} ${ft(
|
|
2554
2554
|
o
|
|
2555
|
-
)} - ${
|
|
2555
|
+
)} - ${ft(a)}`;
|
|
2556
2556
|
}
|
|
2557
|
-
return
|
|
2557
|
+
return it({ start: o, end: a, stepSize: t });
|
|
2558
2558
|
}
|
|
2559
|
-
const
|
|
2559
|
+
const Tt = (e) => 1e3 * e, At = (e) => Tt(60 * e), vo = (e) => At(60 * e);
|
|
2560
2560
|
function Ee(e) {
|
|
2561
2561
|
return e.toLocaleDateString();
|
|
2562
2562
|
}
|
|
2563
|
-
function
|
|
2563
|
+
function wo(e) {
|
|
2564
2564
|
return Ee(e) + " " + e.toLocaleTimeString(void 0, {
|
|
2565
2565
|
hour: "numeric",
|
|
2566
2566
|
minute: "2-digit",
|
|
2567
2567
|
hour12: !0
|
|
2568
2568
|
});
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function ft(e) {
|
|
2571
2571
|
return e.toLocaleTimeString(void 0, {
|
|
2572
2572
|
hour: "2-digit",
|
|
2573
2573
|
minute: "2-digit",
|
|
@@ -2576,19 +2576,19 @@ function ht(e) {
|
|
|
2576
2576
|
});
|
|
2577
2577
|
}
|
|
2578
2578
|
function Vt(e) {
|
|
2579
|
-
return Ee(e) + " " +
|
|
2579
|
+
return Ee(e) + " " + ft(e);
|
|
2580
2580
|
}
|
|
2581
|
-
function
|
|
2581
|
+
function xo({
|
|
2582
2582
|
date: e,
|
|
2583
2583
|
stepSize: t,
|
|
2584
2584
|
stepMultiplier: i = 1
|
|
2585
2585
|
}) {
|
|
2586
|
-
const r =
|
|
2586
|
+
const r = mo[t];
|
|
2587
2587
|
if (!r)
|
|
2588
2588
|
throw new Error("getBucketInterval: invalid bucket size");
|
|
2589
2589
|
return r({ date: e, stepMultiplier: i });
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function bo({
|
|
2592
2592
|
date: e,
|
|
2593
2593
|
stepMultiplier: t = 1
|
|
2594
2594
|
}) {
|
|
@@ -2600,10 +2600,10 @@ function So({
|
|
|
2600
2600
|
e.getMinutes(),
|
|
2601
2601
|
e.getSeconds(),
|
|
2602
2602
|
0
|
|
2603
|
-
), r = new Date(i.getTime() +
|
|
2603
|
+
), r = new Date(i.getTime() + Tt(t - 1) + 999);
|
|
2604
2604
|
return { start: i, end: r };
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function ko({
|
|
2607
2607
|
date: e,
|
|
2608
2608
|
stepMultiplier: t = 1
|
|
2609
2609
|
}) {
|
|
@@ -2616,11 +2616,11 @@ function Mo({
|
|
|
2616
2616
|
0,
|
|
2617
2617
|
0
|
|
2618
2618
|
), r = new Date(
|
|
2619
|
-
i.getTime() +
|
|
2619
|
+
i.getTime() + At(t - 1) + Tt(59)
|
|
2620
2620
|
);
|
|
2621
2621
|
return { start: i, end: r };
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function So({
|
|
2624
2624
|
date: e,
|
|
2625
2625
|
stepMultiplier: t = 1
|
|
2626
2626
|
}) {
|
|
@@ -2633,11 +2633,11 @@ function Io({
|
|
|
2633
2633
|
0,
|
|
2634
2634
|
0
|
|
2635
2635
|
), r = new Date(
|
|
2636
|
-
i.getTime() +
|
|
2636
|
+
i.getTime() + vo(t - 1) + At(59)
|
|
2637
2637
|
);
|
|
2638
2638
|
return { start: i, end: r };
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function Mo({
|
|
2641
2641
|
date: e,
|
|
2642
2642
|
stepMultiplier: t = 1
|
|
2643
2643
|
}) {
|
|
@@ -2656,25 +2656,25 @@ function Co({
|
|
|
2656
2656
|
);
|
|
2657
2657
|
return { start: i, end: r };
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function Io({
|
|
2660
2660
|
date: e,
|
|
2661
2661
|
stepMultiplier: t = 1
|
|
2662
2662
|
}) {
|
|
2663
|
-
const i = new Date(
|
|
2663
|
+
const i = new Date(fo(e)), r = new Date(
|
|
2664
2664
|
i.getFullYear(),
|
|
2665
2665
|
i.getMonth(),
|
|
2666
2666
|
i.getDate() + 6 + 7 * (t - 1)
|
|
2667
2667
|
);
|
|
2668
2668
|
return { start: i, end: r };
|
|
2669
2669
|
}
|
|
2670
|
-
function
|
|
2670
|
+
function Co({
|
|
2671
2671
|
date: e,
|
|
2672
2672
|
stepMultiplier: t = 1
|
|
2673
2673
|
}) {
|
|
2674
2674
|
const i = new Date(e.getFullYear(), e.getMonth(), 1), r = new Date(e.getFullYear(), e.getMonth() + t, 0);
|
|
2675
2675
|
return { start: i, end: r };
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2677
|
+
function To({
|
|
2678
2678
|
date: e,
|
|
2679
2679
|
stepMultiplier: t = 1
|
|
2680
2680
|
}) {
|
|
@@ -2682,7 +2682,7 @@ function Eo({
|
|
|
2682
2682
|
return { start: i, end: r };
|
|
2683
2683
|
}
|
|
2684
2684
|
const ye = () => {
|
|
2685
|
-
},
|
|
2685
|
+
}, An = Un({
|
|
2686
2686
|
isPlaying: !1,
|
|
2687
2687
|
setIsPlaying: ye,
|
|
2688
2688
|
isPaused: !1,
|
|
@@ -2694,10 +2694,10 @@ const ye = () => {
|
|
|
2694
2694
|
stop: ye,
|
|
2695
2695
|
intl: {}
|
|
2696
2696
|
});
|
|
2697
|
-
function
|
|
2698
|
-
return
|
|
2697
|
+
function Et() {
|
|
2698
|
+
return qn(An);
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function Ao({
|
|
2701
2701
|
children: e,
|
|
2702
2702
|
isPlaying: t,
|
|
2703
2703
|
isPaused: i,
|
|
@@ -2710,7 +2710,7 @@ function Lo({
|
|
|
2710
2710
|
}) {
|
|
2711
2711
|
const [u, p] = _(t), [c, v] = _(i), [g, m] = _([]), f = se(s);
|
|
2712
2712
|
G(() => {
|
|
2713
|
-
const M = g.sort((I, x) => I < x ? -1 : 1).map(
|
|
2713
|
+
const M = g.sort((I, x) => I < x ? -1 : 1).map(Cn);
|
|
2714
2714
|
d == null || d(M);
|
|
2715
2715
|
}, [g, d]);
|
|
2716
2716
|
const h = oe(() => {
|
|
@@ -2726,10 +2726,10 @@ function Lo({
|
|
|
2726
2726
|
i !== c && v(i);
|
|
2727
2727
|
}, [i]), G(() => {
|
|
2728
2728
|
if (!l) return;
|
|
2729
|
-
const M = l.map(
|
|
2729
|
+
const M = l.map(Yt), I = g.map(Yt);
|
|
2730
2730
|
(M[0] !== I[0] || M[1] !== I[1]) && m(M);
|
|
2731
2731
|
}, l), /* @__PURE__ */ n(
|
|
2732
|
-
|
|
2732
|
+
An.Provider,
|
|
2733
2733
|
{
|
|
2734
2734
|
value: {
|
|
2735
2735
|
isPlaying: !!u,
|
|
@@ -2750,13 +2750,13 @@ function Lo({
|
|
|
2750
2750
|
const Gt = {};
|
|
2751
2751
|
let qe = null;
|
|
2752
2752
|
const _e = { seriesId: "0" };
|
|
2753
|
-
function
|
|
2753
|
+
function Eo({
|
|
2754
2754
|
echartsInstance: e,
|
|
2755
2755
|
data: t,
|
|
2756
2756
|
canSelectLines: i,
|
|
2757
2757
|
filterable: r
|
|
2758
2758
|
}) {
|
|
2759
|
-
const o = de(), { isPlaying: a, isPaused: l, setIsPaused: d, timeWindow: s, setTimeWindow: u, stop: p } =
|
|
2759
|
+
const o = de(), { isPlaying: a, isPaused: l, setIsPaused: d, timeWindow: s, setTimeWindow: u, stop: p } = Et(), [c, v] = _(!1), [g, m] = _(!1), [f, h] = _(!1), [k, b] = _(0), M = F(() => e == null ? void 0 : e.getZr(), [e]), I = oe(
|
|
2760
2760
|
(O) => M == null ? void 0 : M.setCursorStyle(O),
|
|
2761
2761
|
[M]
|
|
2762
2762
|
), x = oe(
|
|
@@ -2765,7 +2765,7 @@ function $o({
|
|
|
2765
2765
|
const [$] = e.convertFromPixel(_e, [
|
|
2766
2766
|
O.offsetX,
|
|
2767
2767
|
O.offsetY
|
|
2768
|
-
]), D =
|
|
2768
|
+
]), D = nt($, t);
|
|
2769
2769
|
u(D !== void 0 ? [t[D].name] : []);
|
|
2770
2770
|
}
|
|
2771
2771
|
},
|
|
@@ -2871,7 +2871,7 @@ function $o({
|
|
|
2871
2871
|
var P;
|
|
2872
2872
|
if (s.length !== 1)
|
|
2873
2873
|
return;
|
|
2874
|
-
const O = s[0], $ =
|
|
2874
|
+
const O = s[0], $ = nt(O, t);
|
|
2875
2875
|
if ($ === void 0)
|
|
2876
2876
|
return;
|
|
2877
2877
|
const D = (P = t[$]) == null ? void 0 : P.name;
|
|
@@ -2922,8 +2922,8 @@ function Xe(e, t, i) {
|
|
|
2922
2922
|
Gt[t] && (e != null && e.handler) && e.off(t, i);
|
|
2923
2923
|
};
|
|
2924
2924
|
}
|
|
2925
|
-
const
|
|
2926
|
-
function
|
|
2925
|
+
const En = B * 22, Ln = "100%", Lo = 5, $o = 3, Do = B * 20;
|
|
2926
|
+
function Po({
|
|
2927
2927
|
chartType: e,
|
|
2928
2928
|
formatter: t,
|
|
2929
2929
|
timeAxisSplitNumber: i,
|
|
@@ -2963,8 +2963,8 @@ function Wo({
|
|
|
2963
2963
|
borderWidth: 0,
|
|
2964
2964
|
backgroundColor: f.palette.black[90],
|
|
2965
2965
|
position: (C, N, T, R, q) => {
|
|
2966
|
-
const
|
|
2967
|
-
return q.contentSize[0] < q.viewSize[0] - C[0] ?
|
|
2966
|
+
const j = { top: 0 };
|
|
2967
|
+
return q.contentSize[0] < q.viewSize[0] - C[0] ? j.left = C[0] + B * 1.5 : j.right = q.viewSize[0] - C[0] + B * 1.5, j;
|
|
2968
2968
|
},
|
|
2969
2969
|
...o ? { formatter: o } : {}
|
|
2970
2970
|
}),
|
|
@@ -3025,9 +3025,9 @@ function Wo({
|
|
|
3025
3025
|
show: !1
|
|
3026
3026
|
},
|
|
3027
3027
|
splitNumber: i ?? (M !== void 0 ? Math.min(
|
|
3028
|
-
|
|
3029
|
-
Math.ceil(M /
|
|
3030
|
-
) :
|
|
3028
|
+
$o,
|
|
3029
|
+
Math.ceil(M / Do)
|
|
3030
|
+
) : Lo)
|
|
3031
3031
|
},
|
|
3032
3032
|
yAxis: {
|
|
3033
3033
|
type: "value",
|
|
@@ -3060,14 +3060,14 @@ function Wo({
|
|
|
3060
3060
|
max: x
|
|
3061
3061
|
}
|
|
3062
3062
|
};
|
|
3063
|
-
}, [f, x, t, M, i, m]), { timelineOptions: O, timeWindowOptions: $ } =
|
|
3063
|
+
}, [f, x, t, M, i, m]), { timelineOptions: O, timeWindowOptions: $ } = Eo({
|
|
3064
3064
|
echartsInstance: h,
|
|
3065
3065
|
data: a,
|
|
3066
3066
|
canSelectLines: !!g,
|
|
3067
3067
|
filterable: c
|
|
3068
3068
|
}), D = F(
|
|
3069
3069
|
() => l.map(({ data: C, color: N, name: T }, R) => {
|
|
3070
|
-
const q = v && v.length > 0,
|
|
3070
|
+
const q = v && v.length > 0, j = q && v.includes(T), X = !q || j ? N : f.palette.action.disabledBackground;
|
|
3071
3071
|
return {
|
|
3072
3072
|
id: String(R),
|
|
3073
3073
|
name: T,
|
|
@@ -3078,7 +3078,7 @@ function Wo({
|
|
|
3078
3078
|
type: e,
|
|
3079
3079
|
smooth: !0,
|
|
3080
3080
|
color: X,
|
|
3081
|
-
z: q &&
|
|
3081
|
+
z: q && j ? 10 : 0,
|
|
3082
3082
|
lineStyle: {
|
|
3083
3083
|
width: 2
|
|
3084
3084
|
},
|
|
@@ -3144,8 +3144,8 @@ function Wo({
|
|
|
3144
3144
|
N.disconnect();
|
|
3145
3145
|
};
|
|
3146
3146
|
}, [h]);
|
|
3147
|
-
const U = u ?
|
|
3148
|
-
return
|
|
3147
|
+
const U = u ? Ln : s ?? En;
|
|
3148
|
+
return on(() => {
|
|
3149
3149
|
var N;
|
|
3150
3150
|
const C = (N = h == null ? void 0 : h.getDom()) == null ? void 0 : N.parentElement;
|
|
3151
3151
|
C && I(C.clientWidth), h == null || h.resize();
|
|
@@ -3159,7 +3159,7 @@ function Wo({
|
|
|
3159
3159
|
}
|
|
3160
3160
|
);
|
|
3161
3161
|
}
|
|
3162
|
-
const
|
|
3162
|
+
const Oo = {
|
|
3163
3163
|
[Me.YEARS]: 60 * 60 * 24 * 7,
|
|
3164
3164
|
// Week
|
|
3165
3165
|
[Me.MONTHS]: 60 * 60 * 24,
|
|
@@ -3174,8 +3174,8 @@ const Ro = {
|
|
|
3174
3174
|
// Quarter hour
|
|
3175
3175
|
[Me.SECONDS]: 1
|
|
3176
3176
|
// Second
|
|
3177
|
-
},
|
|
3178
|
-
function
|
|
3177
|
+
}, Wo = [0.5, 1, 2, 3];
|
|
3178
|
+
function Ro({
|
|
3179
3179
|
data: e,
|
|
3180
3180
|
stepSize: t
|
|
3181
3181
|
}) {
|
|
@@ -3187,8 +3187,8 @@ function No({
|
|
|
3187
3187
|
stop: c,
|
|
3188
3188
|
togglePlay: v,
|
|
3189
3189
|
intl: g
|
|
3190
|
-
} =
|
|
3191
|
-
|
|
3190
|
+
} = Et();
|
|
3191
|
+
zo(
|
|
3192
3192
|
() => (d || s) && c(),
|
|
3193
3193
|
// Only executed when data changes
|
|
3194
3194
|
[e]
|
|
@@ -3203,8 +3203,8 @@ function No({
|
|
|
3203
3203
|
};
|
|
3204
3204
|
G(() => {
|
|
3205
3205
|
if (d && u.length === 2 && e.length) {
|
|
3206
|
-
const x =
|
|
3207
|
-
return
|
|
3206
|
+
const x = Oo[t] * 1e3;
|
|
3207
|
+
return Ho({
|
|
3208
3208
|
data: e,
|
|
3209
3209
|
timeWindow: u,
|
|
3210
3210
|
msTimeWindowStep: x * o,
|
|
@@ -3219,7 +3219,7 @@ function No({
|
|
|
3219
3219
|
}
|
|
3220
3220
|
}, [e, d, t, p, f, o]), G(() => {
|
|
3221
3221
|
if (d && u.length === 1 && e.length)
|
|
3222
|
-
return
|
|
3222
|
+
return Yo({
|
|
3223
3223
|
speed: o,
|
|
3224
3224
|
timelinePosition: u[0],
|
|
3225
3225
|
data: e,
|
|
@@ -3248,11 +3248,11 @@ function No({
|
|
|
3248
3248
|
color: "default",
|
|
3249
3249
|
onClick: k,
|
|
3250
3250
|
"data-testid": "clock",
|
|
3251
|
-
children: /* @__PURE__ */ n(
|
|
3251
|
+
children: /* @__PURE__ */ n(Fo, {})
|
|
3252
3252
|
}
|
|
3253
3253
|
),
|
|
3254
3254
|
/* @__PURE__ */ w(
|
|
3255
|
-
|
|
3255
|
+
kt,
|
|
3256
3256
|
{
|
|
3257
3257
|
anchorEl: i,
|
|
3258
3258
|
keepMounted: !0,
|
|
@@ -3260,7 +3260,7 @@ function No({
|
|
|
3260
3260
|
onClose: b,
|
|
3261
3261
|
children: [
|
|
3262
3262
|
/* @__PURE__ */ n(Pe, { disabled: !0, children: /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: g.formatMessage({ id: "c4r.widgets.timeSeries.speed" }) }) }),
|
|
3263
|
-
|
|
3263
|
+
Wo.map((I) => /* @__PURE__ */ w(
|
|
3264
3264
|
Pe,
|
|
3265
3265
|
{
|
|
3266
3266
|
selected: I === o,
|
|
@@ -3283,7 +3283,7 @@ function No({
|
|
|
3283
3283
|
disabled: !(s || d),
|
|
3284
3284
|
onClick: f,
|
|
3285
3285
|
"data-testid": "stop",
|
|
3286
|
-
children: /* @__PURE__ */ n(
|
|
3286
|
+
children: /* @__PURE__ */ n(Bo, {})
|
|
3287
3287
|
}
|
|
3288
3288
|
) }),
|
|
3289
3289
|
/* @__PURE__ */ n(S, { mt: 0.75, children: /* @__PURE__ */ n(
|
|
@@ -3293,13 +3293,13 @@ function No({
|
|
|
3293
3293
|
size: "small",
|
|
3294
3294
|
color: "primary",
|
|
3295
3295
|
onClick: h,
|
|
3296
|
-
children: d ? /* @__PURE__ */ n(
|
|
3296
|
+
children: d ? /* @__PURE__ */ n(_o, {}) : /* @__PURE__ */ n(No, {})
|
|
3297
3297
|
}
|
|
3298
3298
|
) })
|
|
3299
3299
|
] });
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3302
|
-
return /* @__PURE__ */ n(
|
|
3301
|
+
function Fo() {
|
|
3302
|
+
return /* @__PURE__ */ n(je, { viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
|
|
3303
3303
|
"path",
|
|
3304
3304
|
{
|
|
3305
3305
|
d: "M12.5 1.254h-5v1.667h5V1.254zM9.167 12.088h1.666v-5H9.167v5zm6.691-5.517 1.184-1.183a9.207 9.207 0 0 0-1.175-1.175l-1.184 1.183A7.468 7.468 0 0 0 10 3.746a7.5 7.5 0 0 0-7.5 7.5c0 4.141 3.35 7.5 7.5 7.5s7.5-3.358 7.5-7.5a7.504 7.504 0 0 0-1.642-4.675zM10 17.088a5.83 5.83 0 0 1-5.833-5.834A5.83 5.83 0 0 1 10 5.421a5.83 5.83 0 0 1 5.833 5.833A5.83 5.83 0 0 1 10 17.087z",
|
|
@@ -3308,8 +3308,8 @@ function Bo() {
|
|
|
3308
3308
|
}
|
|
3309
3309
|
) });
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3312
|
-
return /* @__PURE__ */ n(
|
|
3311
|
+
function No() {
|
|
3312
|
+
return /* @__PURE__ */ n(je, { "data-testid": "play-icon", children: /* @__PURE__ */ n(
|
|
3313
3313
|
"path",
|
|
3314
3314
|
{
|
|
3315
3315
|
d: "M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z",
|
|
@@ -3318,8 +3318,8 @@ function _o() {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
) });
|
|
3320
3320
|
}
|
|
3321
|
-
function
|
|
3322
|
-
return /* @__PURE__ */ n(
|
|
3321
|
+
function Bo() {
|
|
3322
|
+
return /* @__PURE__ */ n(je, { children: /* @__PURE__ */ n(
|
|
3323
3323
|
"path",
|
|
3324
3324
|
{
|
|
3325
3325
|
d: "M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2zm0 2c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm4 4v8H8V8h8zm-2 2h-4v4h4v-4z",
|
|
@@ -3328,8 +3328,8 @@ function zo() {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
) });
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3332
|
-
return /* @__PURE__ */ n(
|
|
3331
|
+
function _o() {
|
|
3332
|
+
return /* @__PURE__ */ n(je, { "data-testid": "pause-icon", children: /* @__PURE__ */ n(
|
|
3333
3333
|
"path",
|
|
3334
3334
|
{
|
|
3335
3335
|
d: "M9,16 L11,16 L11,8 L9,8 L9,16 Z M12,2 C6.48,2 2,6.48 2,12 C2,17.52 6.48,22 12,22 C17.52,22 22,17.52 22,12 C22,6.48 17.52,2 12,2 Z M12,20 C7.59,20 4,16.41 4,12 C4,7.59 7.59,4 12,4 C16.41,4 20,7.59 20,12 C20,16.41 16.41,20 12,20 Z M13,16 L15,16 L15,8 L13,8 L13,16 Z",
|
|
@@ -3338,13 +3338,13 @@ function Ho() {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
) });
|
|
3340
3340
|
}
|
|
3341
|
-
function
|
|
3341
|
+
function zo(e, t = []) {
|
|
3342
3342
|
const i = re(!1);
|
|
3343
3343
|
G(() => {
|
|
3344
3344
|
i.current ? e() : i.current = !0;
|
|
3345
3345
|
}, t);
|
|
3346
3346
|
}
|
|
3347
|
-
function
|
|
3347
|
+
function Ho({
|
|
3348
3348
|
msTimeWindowStep: e,
|
|
3349
3349
|
timeWindow: t,
|
|
3350
3350
|
data: i,
|
|
@@ -3363,8 +3363,8 @@ function jo({
|
|
|
3363
3363
|
};
|
|
3364
3364
|
d();
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3367
|
-
function
|
|
3366
|
+
const jo = 2;
|
|
3367
|
+
function Yo({
|
|
3368
3368
|
speed: e,
|
|
3369
3369
|
timelinePosition: t,
|
|
3370
3370
|
data: i,
|
|
@@ -3372,11 +3372,11 @@ function Go({
|
|
|
3372
3372
|
onEnd: o,
|
|
3373
3373
|
animationRef: a
|
|
3374
3374
|
}) {
|
|
3375
|
-
let l =
|
|
3376
|
-
const s =
|
|
3375
|
+
let l = nt(t, i) ?? 0, d = i[l].name;
|
|
3376
|
+
const s = ho(i), u = Math.max(
|
|
3377
3377
|
Math.round(Math.sqrt(s) / 2),
|
|
3378
3378
|
// FPS based on number of unique time points
|
|
3379
|
-
|
|
3379
|
+
jo
|
|
3380
3380
|
// Min FPS
|
|
3381
3381
|
) * e, p = () => {
|
|
3382
3382
|
a.current.timeoutId = setTimeout(() => {
|
|
@@ -3394,38 +3394,38 @@ function Go({
|
|
|
3394
3394
|
};
|
|
3395
3395
|
p();
|
|
3396
3396
|
}
|
|
3397
|
-
const
|
|
3397
|
+
const Vo = y(S)(() => ({
|
|
3398
3398
|
containerType: "inline-size",
|
|
3399
3399
|
display: "flex",
|
|
3400
3400
|
flexDirection: "column"
|
|
3401
|
-
})),
|
|
3401
|
+
})), Go = y(S)(() => ({
|
|
3402
3402
|
display: "flex",
|
|
3403
3403
|
flexDirection: "column"
|
|
3404
|
-
})),
|
|
3404
|
+
})), $n = y(S)(() => ({
|
|
3405
3405
|
display: "flex",
|
|
3406
3406
|
flexDirection: "row"
|
|
3407
|
-
})),
|
|
3407
|
+
})), Uo = y($n)(() => ({
|
|
3408
3408
|
alignItems: "center",
|
|
3409
3409
|
justifyContent: "space-between"
|
|
3410
|
-
})),
|
|
3410
|
+
})), qo = y(S)(({ theme: e }) => ({
|
|
3411
3411
|
flexShrink: 0,
|
|
3412
3412
|
marginLeft: 0,
|
|
3413
3413
|
paddingLeft: e.spacing(1),
|
|
3414
|
-
[`@container (max-width: ${
|
|
3414
|
+
[`@container (max-width: ${Mt.XS}px)`]: {
|
|
3415
3415
|
paddingLeft: 0
|
|
3416
3416
|
},
|
|
3417
3417
|
paddingBottom: e.spacing(1.5),
|
|
3418
3418
|
alignSelf: "flex-end"
|
|
3419
|
-
})),
|
|
3419
|
+
})), Xo = y(S)(({ theme: e }) => ({
|
|
3420
3420
|
alignSelf: "normal",
|
|
3421
3421
|
minWidth: 0,
|
|
3422
3422
|
paddingLeft: e.spacing(5),
|
|
3423
3423
|
paddingBottom: e.spacing(1.5),
|
|
3424
|
-
[`@container (max-width: ${
|
|
3424
|
+
[`@container (max-width: ${Mt.XS}px)`]: {
|
|
3425
3425
|
paddingLeft: e.spacing(1)
|
|
3426
3426
|
}
|
|
3427
3427
|
}));
|
|
3428
|
-
function
|
|
3428
|
+
function Dn({
|
|
3429
3429
|
fitHeight: e,
|
|
3430
3430
|
header: t,
|
|
3431
3431
|
controls: i,
|
|
@@ -3434,17 +3434,17 @@ function Pn({
|
|
|
3434
3434
|
}) {
|
|
3435
3435
|
const a = o && /* @__PURE__ */ n(S, { flex: 0, mt: 2, children: o });
|
|
3436
3436
|
return /* @__PURE__ */ w(
|
|
3437
|
-
|
|
3437
|
+
Vo,
|
|
3438
3438
|
{
|
|
3439
3439
|
style: {
|
|
3440
3440
|
flex: e ? "1" : void 0
|
|
3441
3441
|
},
|
|
3442
3442
|
children: [
|
|
3443
|
-
/* @__PURE__ */ n(
|
|
3444
|
-
i ? /* @__PURE__ */ w(
|
|
3445
|
-
/* @__PURE__ */ w(
|
|
3446
|
-
/* @__PURE__ */ n(
|
|
3447
|
-
/* @__PURE__ */ n(
|
|
3443
|
+
/* @__PURE__ */ n(Uo, { flex: 0, children: t }),
|
|
3444
|
+
i ? /* @__PURE__ */ w(Go, { flex: 1, children: [
|
|
3445
|
+
/* @__PURE__ */ w($n, { flex: 1, children: [
|
|
3446
|
+
/* @__PURE__ */ n(qo, { flex: 0, children: i }),
|
|
3447
|
+
/* @__PURE__ */ n(Xo, { flex: 1, children: r })
|
|
3448
3448
|
] }),
|
|
3449
3449
|
a
|
|
3450
3450
|
] }) : /* @__PURE__ */ w(ie, { children: [
|
|
@@ -3455,20 +3455,29 @@ function Pn({
|
|
|
3455
3455
|
}
|
|
3456
3456
|
);
|
|
3457
3457
|
}
|
|
3458
|
-
const
|
|
3458
|
+
const Ko = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox: "0 0 720 124", ...e, children: /* @__PURE__ */ n(
|
|
3459
|
+
"path",
|
|
3460
|
+
{
|
|
3461
|
+
d: "M0.74707 123C11.8168 119.656 26.7934 118.37 53.4909 102.164C73.1959 90.2031 92.5604 81.3284 108.188 76.6983C122.841 72.357 136.188 74.3832 144.653 75.1549C150.496 75.6876 195.443 82.8718 207.164 83.6435C218.885 84.4152 241.676 87.502 274.234 80.5567C306.791 73.6115 305.869 75.4585 330.233 67.438C388.837 48.1456 433.461 2.6348 458.511 1.07229C495.627 -1.24279 512.557 52.7758 539.255 58.1776C565.952 63.5795 583.534 64.3512 601.766 55.0909C619.999 45.8305 625.859 40.4287 646.045 38.1136C666.231 35.7985 683.812 41.972 718.975 70.5247",
|
|
3462
|
+
stroke: "currentColor",
|
|
3463
|
+
strokeWidth: "2",
|
|
3464
|
+
strokeLinejoin: "round",
|
|
3465
|
+
vectorEffect: "non-scaling-stroke"
|
|
3466
|
+
}
|
|
3467
|
+
) }), Zo = y(S)(() => ({
|
|
3459
3468
|
display: "flex",
|
|
3460
3469
|
flexDirection: "column",
|
|
3461
3470
|
justifyContent: "flex-end"
|
|
3462
|
-
})),
|
|
3471
|
+
})), Jo = y(S)(() => ({
|
|
3463
3472
|
position: "relative",
|
|
3464
3473
|
height: "100%",
|
|
3465
3474
|
alignSelf: "normal",
|
|
3466
3475
|
display: "flex",
|
|
3467
3476
|
flexDirection: "column",
|
|
3468
3477
|
justifyContent: "flex-end"
|
|
3469
|
-
})),
|
|
3478
|
+
})), Qo = y(S)(({ theme: e }) => ({
|
|
3470
3479
|
padding: e.spacing(2.25, 0, 0.5, 2)
|
|
3471
|
-
})),
|
|
3480
|
+
})), ea = y(mn)(({ theme: e }) => ({
|
|
3472
3481
|
flexDirection: "column",
|
|
3473
3482
|
flex: 1,
|
|
3474
3483
|
height: "100%",
|
|
@@ -3482,12 +3491,12 @@ const Jo = y(S)(() => ({
|
|
|
3482
3491
|
stroke: e.palette.black[8]
|
|
3483
3492
|
}
|
|
3484
3493
|
}
|
|
3485
|
-
})),
|
|
3494
|
+
})), ta = y(S)(({ theme: e }) => ({
|
|
3486
3495
|
display: "flex",
|
|
3487
3496
|
flexDirection: "row",
|
|
3488
3497
|
justifyContent: "space-between",
|
|
3489
3498
|
padding: e.spacing(1.25, 0.5, 0.75, 0.5)
|
|
3490
|
-
})),
|
|
3499
|
+
})), na = y(S)(({ theme: e }) => ({
|
|
3491
3500
|
display: "flex",
|
|
3492
3501
|
flexDirection: "row",
|
|
3493
3502
|
gap: e.spacing(2),
|
|
@@ -3497,30 +3506,30 @@ const Jo = y(S)(() => ({
|
|
|
3497
3506
|
display: "flex",
|
|
3498
3507
|
flexDirection: "row",
|
|
3499
3508
|
gap: e.spacing(1)
|
|
3500
|
-
})),
|
|
3509
|
+
})), ia = ({
|
|
3501
3510
|
fitHeight: e,
|
|
3502
3511
|
height: t,
|
|
3503
3512
|
showControls: i,
|
|
3504
3513
|
showLegend: r
|
|
3505
3514
|
}) => /* @__PURE__ */ n(
|
|
3506
|
-
|
|
3515
|
+
Dn,
|
|
3507
3516
|
{
|
|
3508
3517
|
fitHeight: !!e,
|
|
3509
3518
|
header: /* @__PURE__ */ n(S, { pt: 1.25, pb: 0.75, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
|
|
3510
|
-
controls: i && /* @__PURE__ */ w(
|
|
3519
|
+
controls: i && /* @__PURE__ */ w(Zo, { children: [
|
|
3511
3520
|
/* @__PURE__ */ n(S, { p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) }),
|
|
3512
3521
|
/* @__PURE__ */ n(S, { mt: 2, p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) }),
|
|
3513
3522
|
/* @__PURE__ */ n(S, { mt: 1, p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) })
|
|
3514
3523
|
] }),
|
|
3515
|
-
chart: /* @__PURE__ */ w(
|
|
3516
|
-
/* @__PURE__ */ n(
|
|
3517
|
-
/* @__PURE__ */ n(
|
|
3518
|
-
/* @__PURE__ */ w(
|
|
3524
|
+
chart: /* @__PURE__ */ w(Jo, { style: { height: e ? Ln : t ?? En }, children: [
|
|
3525
|
+
/* @__PURE__ */ n(Qo, { flex: 0, children: /* @__PURE__ */ n(H, { width: 24, height: 8 }) }),
|
|
3526
|
+
/* @__PURE__ */ n(ea, { flex: 1, children: /* @__PURE__ */ n(Ko, { preserveAspectRatio: "none" }) }),
|
|
3527
|
+
/* @__PURE__ */ w(ta, { flex: 0, children: [
|
|
3519
3528
|
/* @__PURE__ */ n(H, { width: 32, height: 8 }),
|
|
3520
3529
|
/* @__PURE__ */ n(H, { width: 32, height: 8 })
|
|
3521
3530
|
] })
|
|
3522
3531
|
] }),
|
|
3523
|
-
legend: r && (r && /* @__PURE__ */ w(
|
|
3532
|
+
legend: r && (r && /* @__PURE__ */ w(na, { children: [
|
|
3524
3533
|
/* @__PURE__ */ w(Ut, { children: [
|
|
3525
3534
|
/* @__PURE__ */ n(H, { width: 8, height: 8 }),
|
|
3526
3535
|
/* @__PURE__ */ n(H, { width: 48, height: 8 })
|
|
@@ -3531,17 +3540,17 @@ const Jo = y(S)(() => ({
|
|
|
3531
3540
|
] })
|
|
3532
3541
|
] }))
|
|
3533
3542
|
}
|
|
3534
|
-
),
|
|
3535
|
-
function
|
|
3536
|
-
data: e =
|
|
3543
|
+
), Pn = (e) => e, On = [];
|
|
3544
|
+
function fs({
|
|
3545
|
+
data: e = On,
|
|
3537
3546
|
categories: t,
|
|
3538
3547
|
stepSize: i,
|
|
3539
3548
|
stepMultiplier: r = 1,
|
|
3540
|
-
chartType: o =
|
|
3549
|
+
chartType: o = It.LINE,
|
|
3541
3550
|
timeAxisSplitNumber: a,
|
|
3542
3551
|
tooltip: l = !0,
|
|
3543
|
-
tooltipFormatter: d =
|
|
3544
|
-
formatter: s =
|
|
3552
|
+
tooltipFormatter: d = In,
|
|
3553
|
+
formatter: s = Pn,
|
|
3545
3554
|
height: u,
|
|
3546
3555
|
fitHeight: p,
|
|
3547
3556
|
showControls: c = !0,
|
|
@@ -3559,7 +3568,7 @@ function ms({
|
|
|
3559
3568
|
onPause: E,
|
|
3560
3569
|
onStop: O,
|
|
3561
3570
|
isLoading: $ = !1,
|
|
3562
|
-
palette: D = Object.values(
|
|
3571
|
+
palette: D = Object.values(gn.qualitative.bold),
|
|
3563
3572
|
showLegend: P,
|
|
3564
3573
|
yAxisType: W = "dense"
|
|
3565
3574
|
}) {
|
|
@@ -3568,20 +3577,20 @@ function ms({
|
|
|
3568
3577
|
var R, q;
|
|
3569
3578
|
if (T.length === 2) {
|
|
3570
3579
|
((R = J.current) == null ? void 0 : R.length) === 1 && (m == null || m(void 0));
|
|
3571
|
-
const
|
|
3572
|
-
k == null || k(
|
|
3580
|
+
const j = T.sort((X, te) => X < te ? -1 : 1).map(Cn);
|
|
3581
|
+
k == null || k(j);
|
|
3573
3582
|
}
|
|
3574
3583
|
if (T.length === 1) {
|
|
3575
3584
|
((q = J.current) == null ? void 0 : q.length) === 2 && (k == null || k([]));
|
|
3576
|
-
const
|
|
3577
|
-
m == null || m(
|
|
3585
|
+
const j = nt(Number(T[0]), e);
|
|
3586
|
+
m == null || m(j);
|
|
3578
3587
|
}
|
|
3579
3588
|
J.current = T;
|
|
3580
3589
|
},
|
|
3581
3590
|
[k, m, e]
|
|
3582
3591
|
);
|
|
3583
3592
|
return C ? /* @__PURE__ */ n(
|
|
3584
|
-
|
|
3593
|
+
ia,
|
|
3585
3594
|
{
|
|
3586
3595
|
fitHeight: p,
|
|
3587
3596
|
height: u,
|
|
@@ -3589,7 +3598,7 @@ function ms({
|
|
|
3589
3598
|
showLegend: P
|
|
3590
3599
|
}
|
|
3591
3600
|
) : /* @__PURE__ */ n(
|
|
3592
|
-
|
|
3601
|
+
Ao,
|
|
3593
3602
|
{
|
|
3594
3603
|
isPlaying: I,
|
|
3595
3604
|
onPlay: x,
|
|
@@ -3600,7 +3609,7 @@ function ms({
|
|
|
3600
3609
|
onTimeWindowUpdate: N,
|
|
3601
3610
|
intl: U,
|
|
3602
3611
|
children: /* @__PURE__ */ n(
|
|
3603
|
-
|
|
3612
|
+
ra,
|
|
3604
3613
|
{
|
|
3605
3614
|
data: e,
|
|
3606
3615
|
categories: t,
|
|
@@ -3627,48 +3636,48 @@ function ms({
|
|
|
3627
3636
|
}
|
|
3628
3637
|
);
|
|
3629
3638
|
}
|
|
3630
|
-
function
|
|
3631
|
-
data: e =
|
|
3639
|
+
function ra({
|
|
3640
|
+
data: e = On,
|
|
3632
3641
|
categories: t,
|
|
3633
3642
|
stepSize: i,
|
|
3634
3643
|
stepMultiplier: r = 1,
|
|
3635
|
-
chartType: o =
|
|
3644
|
+
chartType: o = It.LINE,
|
|
3636
3645
|
timeAxisSplitNumber: a,
|
|
3637
3646
|
tooltip: l = !0,
|
|
3638
|
-
tooltipFormatter: d =
|
|
3639
|
-
formatter: s =
|
|
3647
|
+
tooltipFormatter: d = In,
|
|
3648
|
+
formatter: s = Pn,
|
|
3640
3649
|
height: u,
|
|
3641
3650
|
fitHeight: p = !1,
|
|
3642
3651
|
showControls: c = !0,
|
|
3643
3652
|
animation: v = !0,
|
|
3644
3653
|
filterable: g = !0,
|
|
3645
|
-
palette: m = Object.values(
|
|
3654
|
+
palette: m = Object.values(gn.qualitative.bold),
|
|
3646
3655
|
selectedCategories: f = [],
|
|
3647
3656
|
onSelectedCategoriesChange: h,
|
|
3648
3657
|
showLegend: k,
|
|
3649
3658
|
timelinePosition: b,
|
|
3650
3659
|
yAxisType: M = "dense"
|
|
3651
3660
|
}) {
|
|
3652
|
-
const I = de(), x = I.palette.secondary.main, { isPlaying: A, isPaused: E, timeWindow: O, stop: $, setTimeWindow: D, intl: P } =
|
|
3661
|
+
const I = de(), x = I.palette.secondary.main, { isPlaying: A, isPaused: E, timeWindow: O, stop: $, setTimeWindow: D, intl: P } = Et();
|
|
3653
3662
|
G(() => {
|
|
3654
3663
|
if (b !== void 0) {
|
|
3655
3664
|
if (b < 0 || b >= e.length) return;
|
|
3656
|
-
const
|
|
3657
|
-
D([
|
|
3665
|
+
const Y = e[b].name;
|
|
3666
|
+
D([Y]);
|
|
3658
3667
|
}
|
|
3659
3668
|
}, [b, e]), G(() => {
|
|
3660
3669
|
if (!e.length) return;
|
|
3661
|
-
const
|
|
3662
|
-
(O[0] <
|
|
3670
|
+
const Y = e[0].name, K = e[e.length - 1].name;
|
|
3671
|
+
(O[0] < Y || O[1] > K || O[1] < Y || O[1] > K) && D([]);
|
|
3663
3672
|
}, [e]);
|
|
3664
3673
|
const W = F(() => {
|
|
3665
|
-
const
|
|
3674
|
+
const Y = {}, K = t ? t.map((ue) => ({
|
|
3666
3675
|
name: ue,
|
|
3667
3676
|
data: [],
|
|
3668
|
-
color:
|
|
3677
|
+
color: ki(ue, {
|
|
3669
3678
|
palette: m,
|
|
3670
3679
|
fallbackColor: x,
|
|
3671
|
-
colorMapping:
|
|
3680
|
+
colorMapping: Y
|
|
3672
3681
|
})
|
|
3673
3682
|
})) : [
|
|
3674
3683
|
{
|
|
@@ -3691,26 +3700,26 @@ function oa({
|
|
|
3691
3700
|
if (!e.length)
|
|
3692
3701
|
return "";
|
|
3693
3702
|
if (O.length === 2) {
|
|
3694
|
-
const [
|
|
3695
|
-
return
|
|
3703
|
+
const [Y, K] = O.map((ue) => new Date(ue));
|
|
3704
|
+
return it({ start: Y, end: K, stepSize: i });
|
|
3696
3705
|
}
|
|
3697
3706
|
if (!A && !E) {
|
|
3698
|
-
const
|
|
3699
|
-
return
|
|
3707
|
+
const Y = new Date(e[0].name), K = new Date(e[e.length - 1].name);
|
|
3708
|
+
return it({ start: Y, end: K, stepSize: i });
|
|
3700
3709
|
}
|
|
3701
3710
|
if (O.length === 1) {
|
|
3702
|
-
const
|
|
3703
|
-
return
|
|
3711
|
+
const Y = new Date(O[0]);
|
|
3712
|
+
return Tn({ date: Y, stepSize: i, stepMultiplier: r });
|
|
3704
3713
|
}
|
|
3705
3714
|
}, [e, O, A, E, i, r]), U = F(() => A || E || O.length > 0 || (f == null ? void 0 : f.length) > 0, [E, A, f == null ? void 0 : f.length, O.length]), C = () => {
|
|
3706
3715
|
$(), D([]), h == null || h([]);
|
|
3707
|
-
}, N = (
|
|
3708
|
-
|
|
3716
|
+
}, N = (Y) => {
|
|
3717
|
+
Y.key === "Enter" && C();
|
|
3709
3718
|
}, T = oe(
|
|
3710
|
-
(
|
|
3719
|
+
(Y) => {
|
|
3711
3720
|
if (h) {
|
|
3712
|
-
const K = [...f], ue = K.indexOf(
|
|
3713
|
-
ue === -1 ? K.push(
|
|
3721
|
+
const K = [...f], ue = K.indexOf(Y);
|
|
3722
|
+
ue === -1 ? K.push(Y) : K.splice(ue, 1), h(K);
|
|
3714
3723
|
}
|
|
3715
3724
|
},
|
|
3716
3725
|
[h, f]
|
|
@@ -3730,13 +3739,13 @@ function oa({
|
|
|
3730
3739
|
)
|
|
3731
3740
|
] });
|
|
3732
3741
|
return /* @__PURE__ */ n(
|
|
3733
|
-
|
|
3742
|
+
Dn,
|
|
3734
3743
|
{
|
|
3735
3744
|
fitHeight: p,
|
|
3736
3745
|
header: q,
|
|
3737
|
-
controls: g && c && /* @__PURE__ */ n(
|
|
3746
|
+
controls: g && c && /* @__PURE__ */ n(Ro, { data: e, stepSize: i }),
|
|
3738
3747
|
chart: /* @__PURE__ */ n(
|
|
3739
|
-
|
|
3748
|
+
Po,
|
|
3740
3749
|
{
|
|
3741
3750
|
chartType: o,
|
|
3742
3751
|
timeAxisSplitNumber: a,
|
|
@@ -3745,8 +3754,8 @@ function oa({
|
|
|
3745
3754
|
categories: t,
|
|
3746
3755
|
tooltip: l,
|
|
3747
3756
|
formatter: s,
|
|
3748
|
-
tooltipFormatter: (
|
|
3749
|
-
|
|
3757
|
+
tooltipFormatter: (Y) => d(
|
|
3758
|
+
Y,
|
|
3750
3759
|
i,
|
|
3751
3760
|
s,
|
|
3752
3761
|
r,
|
|
@@ -3762,7 +3771,7 @@ function oa({
|
|
|
3762
3771
|
}
|
|
3763
3772
|
),
|
|
3764
3773
|
legend: R && /* @__PURE__ */ n(
|
|
3765
|
-
|
|
3774
|
+
Mn,
|
|
3766
3775
|
{
|
|
3767
3776
|
series: W,
|
|
3768
3777
|
selectedCategories: f,
|
|
@@ -3772,25 +3781,25 @@ function oa({
|
|
|
3772
3781
|
}
|
|
3773
3782
|
);
|
|
3774
3783
|
}
|
|
3775
|
-
const
|
|
3784
|
+
const oa = y("div")(({ theme: e }) => ({
|
|
3776
3785
|
padding: e.spacing(2, 0),
|
|
3777
3786
|
...e.typography.body2
|
|
3778
|
-
})),
|
|
3787
|
+
})), aa = y(S)(({ theme: e }) => ({
|
|
3779
3788
|
overflow: "auto",
|
|
3780
3789
|
maxHeight: e.spacing(40),
|
|
3781
3790
|
paddingRight: e.spacing(1),
|
|
3782
3791
|
margin: e.spacing(0.5, 0)
|
|
3783
|
-
})),
|
|
3792
|
+
})), la = y(S)(({ theme: e }) => ({
|
|
3784
3793
|
display: "flex",
|
|
3785
3794
|
alignItems: "center",
|
|
3786
3795
|
flexWrap: "wrap",
|
|
3787
3796
|
gap: e.spacing(1.5),
|
|
3788
3797
|
padding: e.spacing(2, 0)
|
|
3789
|
-
})),
|
|
3798
|
+
})), Wn = y(S)(({ theme: e, alignItems: t = "center" }) => ({
|
|
3790
3799
|
display: "flex",
|
|
3791
3800
|
alignItems: t,
|
|
3792
3801
|
gap: e.spacing(0.75)
|
|
3793
|
-
})),
|
|
3802
|
+
})), Rn = y("div", {
|
|
3794
3803
|
shouldForwardProp: (e) => e !== "color"
|
|
3795
3804
|
})(({ theme: e, color: t }) => ({
|
|
3796
3805
|
flexShrink: 0,
|
|
@@ -3798,11 +3807,11 @@ const aa = y("div")(({ theme: e }) => ({
|
|
|
3798
3807
|
height: e.spacing(1),
|
|
3799
3808
|
borderRadius: e.spacing(1),
|
|
3800
3809
|
backgroundColor: t
|
|
3801
|
-
})),
|
|
3810
|
+
})), sa = y(S)(({ theme: e }) => ({
|
|
3802
3811
|
display: "flex",
|
|
3803
3812
|
alignItems: "center",
|
|
3804
3813
|
gap: e.spacing(2)
|
|
3805
|
-
})),
|
|
3814
|
+
})), ca = y("div")(({ theme: e }) => ({
|
|
3806
3815
|
height: e.spacing(0.5),
|
|
3807
3816
|
width: "100%",
|
|
3808
3817
|
borderRadius: e.spacing(0.5),
|
|
@@ -3833,14 +3842,14 @@ const aa = y("div")(({ theme: e }) => ({
|
|
|
3833
3842
|
"& a": {
|
|
3834
3843
|
cursor: "pointer"
|
|
3835
3844
|
}
|
|
3836
|
-
})),
|
|
3845
|
+
})), da = y(pe)(({ theme: e }) => ({
|
|
3837
3846
|
".MuiTooltip-tooltip": {
|
|
3838
3847
|
color: e.palette.common.white,
|
|
3839
3848
|
maxWidth: 260,
|
|
3840
3849
|
marginBottom: 0,
|
|
3841
3850
|
overflow: "hidden"
|
|
3842
3851
|
}
|
|
3843
|
-
})),
|
|
3852
|
+
})), ua = y(ot)(({ theme: e }) => ({
|
|
3844
3853
|
marginTop: e.spacing(-0.5)
|
|
3845
3854
|
}));
|
|
3846
3855
|
y(S)(() => ({
|
|
@@ -3848,7 +3857,7 @@ y(S)(() => ({
|
|
|
3848
3857
|
flexWrap: "nowrap",
|
|
3849
3858
|
justifyContent: "space-between"
|
|
3850
3859
|
}));
|
|
3851
|
-
const
|
|
3860
|
+
const pa = y("div", {
|
|
3852
3861
|
shouldForwardProp: (e) => e !== "filterable"
|
|
3853
3862
|
})(({ filterable: e }) => ({
|
|
3854
3863
|
"& .progressbar div": {
|
|
@@ -3860,18 +3869,18 @@ const ga = y("div", {
|
|
|
3860
3869
|
backgroundColor: "var(--hover-color)"
|
|
3861
3870
|
}
|
|
3862
3871
|
}
|
|
3863
|
-
})),
|
|
3872
|
+
})), ga = y(S)(({ theme: e }) => ({
|
|
3864
3873
|
display: "flex",
|
|
3865
3874
|
alignItems: "center",
|
|
3866
3875
|
flexWrap: "nowrap",
|
|
3867
3876
|
overflow: "hidden",
|
|
3868
3877
|
gap: e.spacing(1)
|
|
3869
|
-
})),
|
|
3878
|
+
})), ha = y(S)(({ theme: e }) => ({
|
|
3870
3879
|
padding: e.spacing(0.5, 0),
|
|
3871
3880
|
flexGrow: "1",
|
|
3872
3881
|
maxWidth: "100%",
|
|
3873
3882
|
minWidth: 0
|
|
3874
|
-
})),
|
|
3883
|
+
})), fa = y(S, {
|
|
3875
3884
|
shouldForwardProp: (e) => e !== "backgroundColor"
|
|
3876
3885
|
})(({ theme: e, backgroundColor: t }) => ({
|
|
3877
3886
|
marginLeft: e.spacing(1),
|
|
@@ -3880,12 +3889,12 @@ const ga = y("div", {
|
|
|
3880
3889
|
color: "white",
|
|
3881
3890
|
borderRadius: e.spacing(2)
|
|
3882
3891
|
}));
|
|
3883
|
-
function
|
|
3892
|
+
function ma(e, t, i, r, o) {
|
|
3884
3893
|
const l = (e[0] ?? []).map((d, s) => {
|
|
3885
3894
|
const u = String(d.name), p = r.length > 0 && !r.includes(u), c = i[s] ?? u, v = e.map((g, m) => {
|
|
3886
3895
|
var f;
|
|
3887
3896
|
return {
|
|
3888
|
-
color: p ?
|
|
3897
|
+
color: p ? Si(t[m], 0.8) : t[m],
|
|
3889
3898
|
value: ((f = g[s]) == null ? void 0 : f.value) ?? 0
|
|
3890
3899
|
};
|
|
3891
3900
|
});
|
|
@@ -3900,29 +3909,29 @@ function ya(e, t, i, r, o) {
|
|
|
3900
3909
|
return Math.max(...s.data.map((c) => c.value)) - u;
|
|
3901
3910
|
}), l;
|
|
3902
3911
|
}
|
|
3903
|
-
const
|
|
3904
|
-
function
|
|
3912
|
+
const ya = 500;
|
|
3913
|
+
function va(e, t = {}) {
|
|
3905
3914
|
const { disabled: i, duration: r, animateOnMount: o, initialValue: a = 0 } = t, l = re(null), [d, s] = _(
|
|
3906
3915
|
() => o ? a : e
|
|
3907
3916
|
);
|
|
3908
|
-
return G(() => (i ? s(e) :
|
|
3917
|
+
return G(() => (i ? s(e) : gt({
|
|
3909
3918
|
start: d,
|
|
3910
3919
|
end: e,
|
|
3911
|
-
duration: r ??
|
|
3920
|
+
duration: r ?? ya,
|
|
3912
3921
|
drawFrame: (u) => s(u),
|
|
3913
3922
|
requestRef: l
|
|
3914
3923
|
}), () => {
|
|
3915
3924
|
l.current && cancelAnimationFrame(l.current);
|
|
3916
3925
|
}), [e, i, r]), d;
|
|
3917
3926
|
}
|
|
3918
|
-
const
|
|
3919
|
-
function
|
|
3927
|
+
const wa = {};
|
|
3928
|
+
function Fn({
|
|
3920
3929
|
enabled: e = !0,
|
|
3921
3930
|
value: t = 0,
|
|
3922
|
-
options: i =
|
|
3931
|
+
options: i = wa,
|
|
3923
3932
|
formatter: r
|
|
3924
3933
|
}) {
|
|
3925
|
-
const a =
|
|
3934
|
+
const a = va(t || 0, {
|
|
3926
3935
|
...{
|
|
3927
3936
|
animateOnMount: !0,
|
|
3928
3937
|
disabled: e === !1 || t === null || t === void 0
|
|
@@ -3931,43 +3940,43 @@ function Nn({
|
|
|
3931
3940
|
});
|
|
3932
3941
|
return /* @__PURE__ */ n("span", { children: r ? r(a) : a });
|
|
3933
3942
|
}
|
|
3934
|
-
const
|
|
3935
|
-
},
|
|
3936
|
-
function
|
|
3943
|
+
const mt = (e) => e, xa = () => {
|
|
3944
|
+
}, ba = [];
|
|
3945
|
+
function ka({
|
|
3937
3946
|
item: e,
|
|
3938
3947
|
index: t = 0,
|
|
3939
|
-
names: i =
|
|
3940
|
-
formatter: r =
|
|
3948
|
+
names: i = ba,
|
|
3949
|
+
formatter: r = mt
|
|
3941
3950
|
}) {
|
|
3942
3951
|
const o = de(), a = e.data[0], l = e.data[t], d = i[t], s = (l.value - a.value) / (a.value || 1) * 100, u = Math.sign(s) === -1 ? "-" : "+", p = Math.sign(s) === -1 ? o.palette.error.main : o.palette.success.main, c = e.key === Oe ? o.palette.text.disabled : p;
|
|
3943
3952
|
return /* @__PURE__ */ w("div", { children: [
|
|
3944
3953
|
/* @__PURE__ */ n($e, { color: "inherit", variant: "caption", noWrap: !0, children: e.label }),
|
|
3945
|
-
/* @__PURE__ */ n(S, { pt: 1, pb: 0.5, children: /* @__PURE__ */ w(
|
|
3954
|
+
/* @__PURE__ */ n(S, { pt: 1, pb: 0.5, children: /* @__PURE__ */ w(Wn, { alignItems: "baseline", children: [
|
|
3946
3955
|
/* @__PURE__ */ n(
|
|
3947
|
-
|
|
3956
|
+
Rn,
|
|
3948
3957
|
{
|
|
3949
3958
|
color: e.key === Oe ? o.palette.background.default : l.color
|
|
3950
3959
|
}
|
|
3951
3960
|
),
|
|
3952
3961
|
/* @__PURE__ */ n($e, { color: "inherit", variant: "caption", children: d }),
|
|
3953
3962
|
/* @__PURE__ */ n(S, { style: { flexGrow: 1 } }),
|
|
3954
|
-
/* @__PURE__ */ n(
|
|
3963
|
+
/* @__PURE__ */ n(fa, { backgroundColor: c, children: /* @__PURE__ */ w($e, { color: "inherit", variant: "caption", children: [
|
|
3955
3964
|
u,
|
|
3956
3965
|
r(Math.abs(s))
|
|
3957
3966
|
] }) })
|
|
3958
3967
|
] }) })
|
|
3959
3968
|
] });
|
|
3960
3969
|
}
|
|
3961
|
-
function
|
|
3970
|
+
function Sa({
|
|
3962
3971
|
item: e,
|
|
3963
3972
|
animation: t = !0,
|
|
3964
3973
|
animationOptions: i,
|
|
3965
3974
|
maxValue: r,
|
|
3966
3975
|
showCheckbox: o,
|
|
3967
3976
|
checkboxChecked: a,
|
|
3968
|
-
formatter: l =
|
|
3969
|
-
tooltipFormatter: d =
|
|
3970
|
-
onClick: s =
|
|
3977
|
+
formatter: l = mt,
|
|
3978
|
+
tooltipFormatter: d = mt,
|
|
3979
|
+
onClick: s = xa,
|
|
3971
3980
|
names: u,
|
|
3972
3981
|
tooltip: p
|
|
3973
3982
|
}) {
|
|
@@ -3975,7 +3984,7 @@ function Ma({
|
|
|
3975
3984
|
return `${Math.min(100, (g || 0) / r * 100)}%`;
|
|
3976
3985
|
}
|
|
3977
3986
|
const v = (g) => /* @__PURE__ */ n(
|
|
3978
|
-
|
|
3987
|
+
ka,
|
|
3979
3988
|
{
|
|
3980
3989
|
item: e,
|
|
3981
3990
|
names: u,
|
|
@@ -3983,23 +3992,23 @@ function Ma({
|
|
|
3983
3992
|
index: g
|
|
3984
3993
|
}
|
|
3985
3994
|
);
|
|
3986
|
-
return /* @__PURE__ */ w(
|
|
3987
|
-
o ? /* @__PURE__ */ n(
|
|
3988
|
-
/* @__PURE__ */ w(
|
|
3995
|
+
return /* @__PURE__ */ w(ga, { onClick: () => s(e.key), children: [
|
|
3996
|
+
o ? /* @__PURE__ */ n(an, { checked: a }) : null,
|
|
3997
|
+
/* @__PURE__ */ w(ha, { children: [
|
|
3989
3998
|
/* @__PURE__ */ n($e, { variant: "body2", noWrap: !0, children: e.label }),
|
|
3990
3999
|
e.data.map((g, m) => /* @__PURE__ */ n(
|
|
3991
|
-
|
|
4000
|
+
da,
|
|
3992
4001
|
{
|
|
3993
4002
|
title: v(m),
|
|
3994
4003
|
placement: "top-start",
|
|
3995
4004
|
arrow: !1,
|
|
3996
4005
|
disableHoverListener: !p,
|
|
3997
|
-
children: /* @__PURE__ */ w(
|
|
3998
|
-
/* @__PURE__ */ n(
|
|
4006
|
+
children: /* @__PURE__ */ w(sa, { children: [
|
|
4007
|
+
/* @__PURE__ */ n(ca, { className: "progressbar", children: /* @__PURE__ */ n(
|
|
3999
4008
|
"div",
|
|
4000
4009
|
{
|
|
4001
4010
|
style: {
|
|
4002
|
-
"--hover-color":
|
|
4011
|
+
"--hover-color": yt(g.color, 0.2),
|
|
4003
4012
|
"--color": g.color,
|
|
4004
4013
|
width: c(g.value)
|
|
4005
4014
|
}
|
|
@@ -4011,7 +4020,7 @@ function Ma({
|
|
|
4011
4020
|
variant: m === 0 ? "body2" : "caption",
|
|
4012
4021
|
color: m === 0 ? "textPrimary" : "textSecondary",
|
|
4013
4022
|
children: /* @__PURE__ */ n(
|
|
4014
|
-
|
|
4023
|
+
Fn,
|
|
4015
4024
|
{
|
|
4016
4025
|
value: g.value,
|
|
4017
4026
|
enabled: t,
|
|
@@ -4028,19 +4037,9 @@ function Ma({
|
|
|
4028
4037
|
] })
|
|
4029
4038
|
] });
|
|
4030
4039
|
}
|
|
4031
|
-
const Xt = (e) => e,
|
|
4040
|
+
const Xt = (e) => e, Ma = () => {
|
|
4032
4041
|
}, ze = [];
|
|
4033
|
-
function
|
|
4034
|
-
return /* @__PURE__ */ n(Ye, { children: /* @__PURE__ */ n(
|
|
4035
|
-
"path",
|
|
4036
|
-
{
|
|
4037
|
-
d: "M11,4 C14.8659932,4 18,7.13400675 18,11 C18,12.7003211 17.3937669,14.2590489 16.3856562,15.4718279 L19.4748737,18.5606602 L18.0606602,19.9748737 L14.8998887,16.8138615 C13.7854137,17.5629194 12.4437497,18 11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 Z M11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 Z",
|
|
4038
|
-
id: "Color",
|
|
4039
|
-
fill: "inherit"
|
|
4040
|
-
}
|
|
4041
|
-
) });
|
|
4042
|
-
}
|
|
4043
|
-
function ys({
|
|
4042
|
+
function ms({
|
|
4044
4043
|
names: e = ze,
|
|
4045
4044
|
data: t = ze,
|
|
4046
4045
|
labels: i = ze,
|
|
@@ -4052,7 +4051,7 @@ function ys({
|
|
|
4052
4051
|
searchable: s = !0,
|
|
4053
4052
|
filterable: u = !0,
|
|
4054
4053
|
selectedCategories: p = ze,
|
|
4055
|
-
onSelectedCategoriesChange: c =
|
|
4054
|
+
onSelectedCategoriesChange: c = Ma,
|
|
4056
4055
|
formatter: v = Xt,
|
|
4057
4056
|
tooltipFormatter: g = Xt,
|
|
4058
4057
|
tooltip: m = !0,
|
|
@@ -4064,7 +4063,7 @@ function ys({
|
|
|
4064
4063
|
h.palette.primary.main,
|
|
4065
4064
|
h.palette.info.main
|
|
4066
4065
|
];
|
|
4067
|
-
return
|
|
4066
|
+
return ma(
|
|
4068
4067
|
t,
|
|
4069
4068
|
V,
|
|
4070
4069
|
i,
|
|
@@ -4078,8 +4077,8 @@ function ys({
|
|
|
4078
4077
|
return P;
|
|
4079
4078
|
const V = P.slice(0, o), Q = P.slice(o), ne = [];
|
|
4080
4079
|
for (const xe of Q)
|
|
4081
|
-
xe.data.forEach((
|
|
4082
|
-
ne[Re] = ne[Re] ?? 0, ne[Re] +=
|
|
4080
|
+
xe.data.forEach((Ye, Re) => {
|
|
4081
|
+
ne[Re] = ne[Re] ?? 0, ne[Re] += Ye.value;
|
|
4083
4082
|
});
|
|
4084
4083
|
const ce = {
|
|
4085
4084
|
key: Oe,
|
|
@@ -4095,12 +4094,12 @@ function ys({
|
|
|
4095
4094
|
return ce || xe;
|
|
4096
4095
|
}) : P, [P, E]), N = P.length - J.length + 1, T = s && !k && o < P.length;
|
|
4097
4096
|
if (P.length === 0 || f)
|
|
4098
|
-
return /* @__PURE__ */ n(
|
|
4097
|
+
return /* @__PURE__ */ n(xn, {});
|
|
4099
4098
|
const R = k ? C : M ? U : J;
|
|
4100
4099
|
function q() {
|
|
4101
4100
|
I(!0), c([...x]), K();
|
|
4102
4101
|
}
|
|
4103
|
-
function
|
|
4102
|
+
function j() {
|
|
4104
4103
|
I(!1);
|
|
4105
4104
|
}
|
|
4106
4105
|
function X() {
|
|
@@ -4109,7 +4108,7 @@ function ys({
|
|
|
4109
4108
|
function te() {
|
|
4110
4109
|
I(!0);
|
|
4111
4110
|
}
|
|
4112
|
-
function
|
|
4111
|
+
function Y() {
|
|
4113
4112
|
b(!0), A([...p]);
|
|
4114
4113
|
}
|
|
4115
4114
|
function K() {
|
|
@@ -4128,13 +4127,13 @@ function ys({
|
|
|
4128
4127
|
ce.length === P.length && (ce = []), A(ce);
|
|
4129
4128
|
}
|
|
4130
4129
|
const we = u ? k ? Se : ue : void 0;
|
|
4131
|
-
return /* @__PURE__ */ w(
|
|
4130
|
+
return /* @__PURE__ */ w(oa, { children: [
|
|
4132
4131
|
u ? /* @__PURE__ */ w(qt, { center: !0, children: [
|
|
4133
4132
|
/* @__PURE__ */ n(z, { variant: "caption", children: p.length > 0 ? D.formatMessage(
|
|
4134
4133
|
{ id: "c4r.widgets.category.selectedItems" },
|
|
4135
4134
|
{ items: p.length }
|
|
4136
4135
|
) : D.formatMessage({ id: "c4r.widgets.category.all" }) }),
|
|
4137
|
-
/* @__PURE__ */ n(z, { variant: "caption", children: k ? /* @__PURE__ */ n(ve, { onClick: q, children: D.formatMessage({ id: "c4r.widgets.category.apply" }) }) : M ? /* @__PURE__ */ n(ve, { onClick:
|
|
4136
|
+
/* @__PURE__ */ n(z, { variant: "caption", children: k ? /* @__PURE__ */ n(ve, { onClick: q, children: D.formatMessage({ id: "c4r.widgets.category.apply" }) }) : M ? /* @__PURE__ */ n(ve, { onClick: j, children: D.formatMessage({
|
|
4138
4137
|
id: "c4r.widgets.category.unlock"
|
|
4139
4138
|
}) }) : p.length ? /* @__PURE__ */ w(
|
|
4140
4139
|
S,
|
|
@@ -4148,7 +4147,7 @@ function ys({
|
|
|
4148
4147
|
/* @__PURE__ */ n(ve, { onClick: te, children: D.formatMessage({
|
|
4149
4148
|
id: "c4r.widgets.category.lock"
|
|
4150
4149
|
}) }),
|
|
4151
|
-
/* @__PURE__ */ n(
|
|
4150
|
+
/* @__PURE__ */ n(vt, { orientation: "vertical", flexItem: !0 }),
|
|
4152
4151
|
/* @__PURE__ */ n(ve, { onClick: X, children: D.formatMessage({
|
|
4153
4152
|
id: "c4r.widgets.category.clear"
|
|
4154
4153
|
}) })
|
|
@@ -4157,7 +4156,7 @@ function ys({
|
|
|
4157
4156
|
) : null })
|
|
4158
4157
|
] }) : null,
|
|
4159
4158
|
k ? /* @__PURE__ */ n(qt, { children: /* @__PURE__ */ n(
|
|
4160
|
-
|
|
4159
|
+
ua,
|
|
4161
4160
|
{
|
|
4162
4161
|
size: "small",
|
|
4163
4162
|
placeholder: D.formatMessage({
|
|
@@ -4166,11 +4165,11 @@ function ys({
|
|
|
4166
4165
|
onChange: (V) => O(V.currentTarget.value),
|
|
4167
4166
|
onFocus: (V) => V.currentTarget.scrollIntoView(),
|
|
4168
4167
|
InputProps: {
|
|
4169
|
-
startAdornment: /* @__PURE__ */ n(
|
|
4168
|
+
startAdornment: /* @__PURE__ */ n(wt, { position: "start", children: /* @__PURE__ */ n(Qe, {}) })
|
|
4170
4169
|
}
|
|
4171
4170
|
}
|
|
4172
4171
|
) }) : null,
|
|
4173
|
-
/* @__PURE__ */ w(
|
|
4172
|
+
/* @__PURE__ */ w(aa, { children: [
|
|
4174
4173
|
R.length === 0 ? /* @__PURE__ */ w(ie, { children: [
|
|
4175
4174
|
/* @__PURE__ */ n(z, { variant: "body2", children: D.formatMessage({
|
|
4176
4175
|
id: "c4r.widgets.category.noResults"
|
|
@@ -4180,8 +4179,8 @@ function ys({
|
|
|
4180
4179
|
{ searchValue: E }
|
|
4181
4180
|
) })
|
|
4182
4181
|
] }) : null,
|
|
4183
|
-
R.map((V) => /* @__PURE__ */ n(
|
|
4184
|
-
|
|
4182
|
+
R.map((V) => /* @__PURE__ */ n(pa, { children: /* @__PURE__ */ n(
|
|
4183
|
+
Sa,
|
|
4185
4184
|
{
|
|
4186
4185
|
item: V,
|
|
4187
4186
|
animation: l,
|
|
@@ -4202,8 +4201,8 @@ function ys({
|
|
|
4202
4201
|
{
|
|
4203
4202
|
size: "small",
|
|
4204
4203
|
color: "primary",
|
|
4205
|
-
startIcon: /* @__PURE__ */ n(
|
|
4206
|
-
onClick:
|
|
4204
|
+
startIcon: /* @__PURE__ */ n(Qe, {}),
|
|
4205
|
+
onClick: Y,
|
|
4207
4206
|
children: D.formatMessage(
|
|
4208
4207
|
{ id: "c4r.widgets.category.searchInfo" },
|
|
4209
4208
|
{ elements: N }
|
|
@@ -4211,44 +4210,44 @@ function ys({
|
|
|
4211
4210
|
}
|
|
4212
4211
|
) : null,
|
|
4213
4212
|
k ? /* @__PURE__ */ n(De, { size: "small", color: "primary", onClick: K, children: D.formatMessage({ id: "c4r.widgets.category.cancel" }) }) : null,
|
|
4214
|
-
/* @__PURE__ */ n(
|
|
4215
|
-
/* @__PURE__ */ n(
|
|
4213
|
+
/* @__PURE__ */ n(la, { children: e.map((V, Q) => /* @__PURE__ */ w(Wn, { children: [
|
|
4214
|
+
/* @__PURE__ */ n(Rn, { color: (r == null ? void 0 : r[Q]) ?? h.palette.background.default }),
|
|
4216
4215
|
/* @__PURE__ */ n(z, { variant: "overline", children: V })
|
|
4217
4216
|
] }, e[Q])) })
|
|
4218
4217
|
] });
|
|
4219
4218
|
}
|
|
4220
|
-
const
|
|
4219
|
+
const Ia = Mi(z)(({ theme: e }) => ({
|
|
4221
4220
|
display: "inline-block",
|
|
4222
4221
|
marginTop: e.spacing(0.5)
|
|
4223
4222
|
}));
|
|
4224
|
-
function
|
|
4223
|
+
function Ca({
|
|
4225
4224
|
row: e
|
|
4226
4225
|
}) {
|
|
4227
4226
|
const t = de();
|
|
4228
|
-
return e.label ? /* @__PURE__ */ n(S, { color: e.color ?? t.palette.text.secondary, children: /* @__PURE__ */ n(
|
|
4227
|
+
return e.label ? /* @__PURE__ */ n(S, { color: e.color ?? t.palette.text.secondary, children: /* @__PURE__ */ n(Ia, { color: "inherit", variant: "caption", children: e.label }) }) : null;
|
|
4229
4228
|
}
|
|
4230
|
-
const
|
|
4229
|
+
const Ta = y("div")(({ theme: e }) => ({
|
|
4231
4230
|
margin: 0,
|
|
4232
4231
|
...e.typography.h5,
|
|
4233
4232
|
fontWeight: Number(e.typography.fontWeightMedium),
|
|
4234
4233
|
color: e.palette.text.primary,
|
|
4235
4234
|
display: "flex"
|
|
4236
|
-
})),
|
|
4235
|
+
})), Aa = y(z)(({ theme: e }) => ({
|
|
4237
4236
|
marginRight: e.spacing(0.5)
|
|
4238
|
-
})),
|
|
4237
|
+
})), Ea = y(z)(({ theme: e }) => ({
|
|
4239
4238
|
marginLeft: e.spacing(0.5)
|
|
4240
4239
|
}));
|
|
4241
|
-
function
|
|
4240
|
+
function La({
|
|
4242
4241
|
row: e,
|
|
4243
4242
|
animated: t,
|
|
4244
4243
|
animationOptions: i,
|
|
4245
4244
|
formatter: r
|
|
4246
4245
|
}) {
|
|
4247
4246
|
const o = de(), { prefix: a, value: l, suffix: d, shouldBeHighlighted: s } = e;
|
|
4248
|
-
return /* @__PURE__ */ w(
|
|
4249
|
-
a ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(
|
|
4247
|
+
return /* @__PURE__ */ w(Ta, { children: [
|
|
4248
|
+
a ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Aa, { color: "inherit", component: "span", variant: "subtitle2", children: a }) }) : null,
|
|
4250
4249
|
/* @__PURE__ */ n(S, { fontWeight: s ? "bold" : "", children: /* @__PURE__ */ n(
|
|
4251
|
-
|
|
4250
|
+
Fn,
|
|
4252
4251
|
{
|
|
4253
4252
|
value: l,
|
|
4254
4253
|
enabled: t,
|
|
@@ -4256,26 +4255,26 @@ function $a({
|
|
|
4256
4255
|
formatter: r
|
|
4257
4256
|
}
|
|
4258
4257
|
) }),
|
|
4259
|
-
d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(
|
|
4258
|
+
d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Ea, { color: "inherit", component: "span", variant: "subtitle2", children: d }) }) : null
|
|
4260
4259
|
] });
|
|
4261
4260
|
}
|
|
4262
|
-
const
|
|
4261
|
+
const $a = (e) => e, Kt = [], Da = y("div")(({ theme: e }) => ({
|
|
4263
4262
|
"&:nth-of-type(n+2)": {
|
|
4264
4263
|
marginTop: e.spacing(2)
|
|
4265
4264
|
}
|
|
4266
4265
|
}));
|
|
4267
|
-
function
|
|
4268
|
-
data: e =
|
|
4269
|
-
colors: t =
|
|
4266
|
+
function ys({
|
|
4267
|
+
data: e = Kt,
|
|
4268
|
+
colors: t = Kt,
|
|
4270
4269
|
animated: i = !0,
|
|
4271
4270
|
animationOptions: r,
|
|
4272
|
-
formatter: o =
|
|
4271
|
+
formatter: o = $a,
|
|
4273
4272
|
isLoading: a = !1
|
|
4274
4273
|
}) {
|
|
4275
|
-
const l =
|
|
4276
|
-
return a ? /* @__PURE__ */ n(
|
|
4274
|
+
const l = Pa(e, t);
|
|
4275
|
+
return a ? /* @__PURE__ */ n(kn, {}) : /* @__PURE__ */ n("div", { children: l.map((d, s) => /* @__PURE__ */ w(Da, { children: [
|
|
4277
4276
|
/* @__PURE__ */ n(
|
|
4278
|
-
|
|
4277
|
+
La,
|
|
4279
4278
|
{
|
|
4280
4279
|
row: d,
|
|
4281
4280
|
animated: i,
|
|
@@ -4283,25 +4282,25 @@ function vs({
|
|
|
4283
4282
|
formatter: o
|
|
4284
4283
|
}
|
|
4285
4284
|
),
|
|
4286
|
-
/* @__PURE__ */ n(
|
|
4285
|
+
/* @__PURE__ */ n(Ca, { row: d })
|
|
4287
4286
|
] }, s)) });
|
|
4288
4287
|
}
|
|
4289
|
-
function
|
|
4288
|
+
function Pa(e, t) {
|
|
4290
4289
|
const i = e.map((o, a) => ({ ...o, color: t[a], shouldBeHighlighted: !1 })).filter((o) => o.value !== void 0);
|
|
4291
4290
|
return i && i.length > 1 && (i[0].shouldBeHighlighted = !0), i;
|
|
4292
4291
|
}
|
|
4293
|
-
function
|
|
4292
|
+
function Oa(e, t = [], i = [], r, o = []) {
|
|
4294
4293
|
return e.map((a, l) => {
|
|
4295
4294
|
const d = o.length > 0 && !o.includes(a.name), u = (t != null && t.length ? t : r.palette.qualitative.bold)[l];
|
|
4296
4295
|
return {
|
|
4297
4296
|
...a,
|
|
4298
4297
|
key: a.name,
|
|
4299
|
-
color: d ?
|
|
4298
|
+
color: d ? Qn(u, 0.8) : u,
|
|
4300
4299
|
name: i[l] ?? a.name
|
|
4301
4300
|
};
|
|
4302
4301
|
});
|
|
4303
4302
|
}
|
|
4304
|
-
function
|
|
4303
|
+
function Wa(e, t, i) {
|
|
4305
4304
|
const r = `
|
|
4306
4305
|
font-size: 12px;
|
|
4307
4306
|
line-height: 1.33;
|
|
@@ -4321,23 +4320,23 @@ function Ra(e, t, i) {
|
|
|
4321
4320
|
<p style="${o}">${String(a.marker)} ${s} (${u} %)</p>
|
|
4322
4321
|
`.trim();
|
|
4323
4322
|
}
|
|
4324
|
-
const
|
|
4325
|
-
}, Ke = [],
|
|
4326
|
-
function
|
|
4323
|
+
const Ra = (e) => e, Fa = () => {
|
|
4324
|
+
}, Ke = [], Na = "260px";
|
|
4325
|
+
function vs({
|
|
4327
4326
|
names: e = Ke,
|
|
4328
4327
|
data: t = Ke,
|
|
4329
4328
|
labels: i = Ke,
|
|
4330
4329
|
colors: r = Ke,
|
|
4331
|
-
height: o =
|
|
4330
|
+
height: o = Na,
|
|
4332
4331
|
animation: a = !0,
|
|
4333
|
-
formatter: l =
|
|
4334
|
-
tooltipFormatter: d =
|
|
4332
|
+
formatter: l = Ra,
|
|
4333
|
+
tooltipFormatter: d = Wa,
|
|
4335
4334
|
selectedCategories: s = [],
|
|
4336
|
-
onCategorySelected: u =
|
|
4335
|
+
onCategorySelected: u = Fa,
|
|
4337
4336
|
isLoading: p = !1
|
|
4338
4337
|
}) {
|
|
4339
4338
|
const c = de(), v = re(), g = F(() => t.map(
|
|
4340
|
-
(k, b) =>
|
|
4339
|
+
(k, b) => Oa(k, r[b], i[b], c, s)
|
|
4341
4340
|
), [t, r, i, c, s]), m = F(() => {
|
|
4342
4341
|
const k = g.length > 1;
|
|
4343
4342
|
let b;
|
|
@@ -4469,7 +4468,7 @@ function ws({
|
|
|
4469
4468
|
function h(k) {
|
|
4470
4469
|
v.current = k;
|
|
4471
4470
|
}
|
|
4472
|
-
return g.length ? p ? /* @__PURE__ */ n(
|
|
4471
|
+
return g.length ? p ? /* @__PURE__ */ n(Sn, { height: o }) : /* @__PURE__ */ n(
|
|
4473
4472
|
We,
|
|
4474
4473
|
{
|
|
4475
4474
|
onChartReady: h,
|
|
@@ -4480,14 +4479,14 @@ function ws({
|
|
|
4480
4479
|
}
|
|
4481
4480
|
) : null;
|
|
4482
4481
|
}
|
|
4483
|
-
const
|
|
4482
|
+
const Ba = () => {
|
|
4484
4483
|
};
|
|
4485
|
-
function
|
|
4484
|
+
function _a({
|
|
4486
4485
|
icon: e,
|
|
4487
4486
|
hoverTooltip: t,
|
|
4488
4487
|
clickTooltip: i,
|
|
4489
4488
|
enabled: r,
|
|
4490
|
-
onEnabledChange: o =
|
|
4489
|
+
onEnabledChange: o = Ba,
|
|
4491
4490
|
tooltipPlacement: a = "bottom"
|
|
4492
4491
|
}) {
|
|
4493
4492
|
const [l, d] = _(!1), [s, u] = _(r);
|
|
@@ -4502,7 +4501,7 @@ function za({
|
|
|
4502
4501
|
window.removeEventListener("keydown", c);
|
|
4503
4502
|
};
|
|
4504
4503
|
}
|
|
4505
|
-
}, [r, o]), /* @__PURE__ */ n(
|
|
4504
|
+
}, [r, o]), /* @__PURE__ */ n(ei, { onClickAway: () => u(!1), children: /* @__PURE__ */ n(
|
|
4506
4505
|
pe,
|
|
4507
4506
|
{
|
|
4508
4507
|
title: s ? i : t,
|
|
@@ -4513,7 +4512,7 @@ function za({
|
|
|
4513
4512
|
s || d(!1);
|
|
4514
4513
|
},
|
|
4515
4514
|
children: /* @__PURE__ */ n(
|
|
4516
|
-
|
|
4515
|
+
ti,
|
|
4517
4516
|
{
|
|
4518
4517
|
value: "selectedMode",
|
|
4519
4518
|
selected: r,
|
|
@@ -4524,14 +4523,14 @@ function za({
|
|
|
4524
4523
|
}
|
|
4525
4524
|
) });
|
|
4526
4525
|
}
|
|
4527
|
-
const
|
|
4526
|
+
const za = y(me, {
|
|
4528
4527
|
shouldForwardProp: (e) => e !== "isOpen"
|
|
4529
4528
|
})(({ isOpen: e, theme: t }) => ({
|
|
4530
4529
|
color: t.palette.text.secondary,
|
|
4531
4530
|
width: t.spacing(3),
|
|
4532
4531
|
transform: `rotate(${e ? "180" : "0"}deg)`,
|
|
4533
4532
|
backgroundColor: e ? t.palette.action.hover : void 0
|
|
4534
|
-
})),
|
|
4533
|
+
})), Ha = y(Pe, {
|
|
4535
4534
|
shouldForwardProp: (e) => e !== "disabled"
|
|
4536
4535
|
})(({ disabled: e, theme: t }) => ({
|
|
4537
4536
|
...e && {
|
|
@@ -4542,13 +4541,13 @@ const Ha = y(me, {
|
|
|
4542
4541
|
"&.Mui-disabled": {
|
|
4543
4542
|
opacity: 1
|
|
4544
4543
|
}
|
|
4545
|
-
})),
|
|
4544
|
+
})), Ya = () => {
|
|
4546
4545
|
};
|
|
4547
|
-
function
|
|
4546
|
+
function Va({
|
|
4548
4547
|
selectionModes: e,
|
|
4549
4548
|
editModes: t,
|
|
4550
4549
|
selectedMode: i,
|
|
4551
|
-
onSelectMode: r =
|
|
4550
|
+
onSelectMode: r = Ya,
|
|
4552
4551
|
enabled: o,
|
|
4553
4552
|
tooltipPlacement: a = "bottom",
|
|
4554
4553
|
tooltipText: l = "",
|
|
@@ -4560,14 +4559,14 @@ function Ga({
|
|
|
4560
4559
|
}, h = !!e.length && !!t.length, k = (M) => t.some((I) => I.id === M.id);
|
|
4561
4560
|
function b(M) {
|
|
4562
4561
|
return /* @__PURE__ */ n(
|
|
4563
|
-
|
|
4562
|
+
Ha,
|
|
4564
4563
|
{
|
|
4565
4564
|
selected: o && i === M.id,
|
|
4566
4565
|
onClick: () => f(M.id),
|
|
4567
4566
|
disabled: s && k(M),
|
|
4568
4567
|
children: /* @__PURE__ */ w(S, { display: "flex", justifyContent: "space-between", alignItems: "center", children: [
|
|
4569
4568
|
M.icon,
|
|
4570
|
-
/* @__PURE__ */ n(S, { ml: 2, children: /* @__PURE__ */ n(z, { variant: "body2", color: "inherit", children:
|
|
4569
|
+
/* @__PURE__ */ n(S, { ml: 2, children: /* @__PURE__ */ n(z, { variant: "body2", color: "inherit", children: un(M.label) }) })
|
|
4571
4570
|
] })
|
|
4572
4571
|
},
|
|
4573
4572
|
M.id
|
|
@@ -4575,7 +4574,7 @@ function Ga({
|
|
|
4575
4574
|
}
|
|
4576
4575
|
return /* @__PURE__ */ w(ie, { children: [
|
|
4577
4576
|
/* @__PURE__ */ n(pe, { title: l, placement: a, children: /* @__PURE__ */ n(
|
|
4578
|
-
|
|
4577
|
+
za,
|
|
4579
4578
|
{
|
|
4580
4579
|
id: "feature-selection-menu-button",
|
|
4581
4580
|
"aria-controls": "feature-selection-menu",
|
|
@@ -4583,11 +4582,11 @@ function Ga({
|
|
|
4583
4582
|
"aria-expanded": v ? "true" : void 0,
|
|
4584
4583
|
onClick: g,
|
|
4585
4584
|
isOpen: v,
|
|
4586
|
-
children: /* @__PURE__ */ n(
|
|
4585
|
+
children: /* @__PURE__ */ n(Ii, {})
|
|
4587
4586
|
}
|
|
4588
4587
|
) }),
|
|
4589
4588
|
/* @__PURE__ */ w(
|
|
4590
|
-
|
|
4589
|
+
kt,
|
|
4591
4590
|
{
|
|
4592
4591
|
id: "feature-selection-menu",
|
|
4593
4592
|
style: { zIndex: u.zIndex.tooltip + 1 },
|
|
@@ -4598,14 +4597,14 @@ function Ga({
|
|
|
4598
4597
|
children: [
|
|
4599
4598
|
d && /* @__PURE__ */ n(ja, { disabled: !0, children: /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: d }) }),
|
|
4600
4599
|
!!e.length && e.map(b),
|
|
4601
|
-
h && /* @__PURE__ */ n(
|
|
4600
|
+
h && /* @__PURE__ */ n(vt, { sx: { margin: ({ spacing: M }) => M(1, 0) } }),
|
|
4602
4601
|
!!t.length && t.map(b)
|
|
4603
4602
|
]
|
|
4604
4603
|
}
|
|
4605
4604
|
)
|
|
4606
4605
|
] });
|
|
4607
4606
|
}
|
|
4608
|
-
const
|
|
4607
|
+
const Ga = y(ni)(({ theme: e }) => ({
|
|
4609
4608
|
display: "flex",
|
|
4610
4609
|
alignItems: "center",
|
|
4611
4610
|
marginLeft: e.spacing(1.5),
|
|
@@ -4617,11 +4616,11 @@ const Ua = y(ii)(({ theme: e }) => ({
|
|
|
4617
4616
|
"&::-webkit-scrollbar": {
|
|
4618
4617
|
display: "none"
|
|
4619
4618
|
}
|
|
4620
|
-
})),
|
|
4619
|
+
})), Ua = () => {
|
|
4621
4620
|
};
|
|
4622
|
-
function
|
|
4621
|
+
function qa({
|
|
4623
4622
|
features: e,
|
|
4624
|
-
onSelectGeometry: t =
|
|
4623
|
+
onSelectGeometry: t = Ua,
|
|
4625
4624
|
onDeleteGeometry: i,
|
|
4626
4625
|
chipTooltip: r,
|
|
4627
4626
|
disabledChipTooltip: o,
|
|
@@ -4645,7 +4644,7 @@ function Xa({
|
|
|
4645
4644
|
return d || ((k = m.properties) == null ? void 0 : k.name) || `${h} ${f + 1}`;
|
|
4646
4645
|
}
|
|
4647
4646
|
const [v, g] = _(!1);
|
|
4648
|
-
return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(
|
|
4647
|
+
return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(Ga, { sx: { gap: a === "small" ? 0.5 : 1 }, children: e.map((m, f) => {
|
|
4649
4648
|
var I, x;
|
|
4650
4649
|
const h = (I = m.properties) == null ? void 0 : I.disabled, k = (x = m.properties) == null ? void 0 : x.invalid;
|
|
4651
4650
|
let b = r;
|
|
@@ -4655,23 +4654,23 @@ function Xa({
|
|
|
4655
4654
|
id: "c4r.widgets.featureSelection.remove"
|
|
4656
4655
|
}));
|
|
4657
4656
|
let M = "secondary";
|
|
4658
|
-
return h && (M = "default"), k && (M = "error"), /* @__PURE__ */ n(
|
|
4657
|
+
return h && (M = "default"), k && (M = "error"), /* @__PURE__ */ n(ii, { disablePadding: !0, children: /* @__PURE__ */ n(
|
|
4659
4658
|
pe,
|
|
4660
4659
|
{
|
|
4661
4660
|
disableHoverListener: h ? !o : !r,
|
|
4662
4661
|
title: b,
|
|
4663
4662
|
placement: l,
|
|
4664
4663
|
children: /* @__PURE__ */ n(
|
|
4665
|
-
|
|
4664
|
+
ri,
|
|
4666
4665
|
{
|
|
4667
4666
|
size: a,
|
|
4668
4667
|
label: c(m, f),
|
|
4669
4668
|
color: M,
|
|
4670
4669
|
onClick: () => t(m),
|
|
4671
4670
|
onDelete: i ? () => i(m) : void 0,
|
|
4672
|
-
icon: k ? /* @__PURE__ */ n(
|
|
4671
|
+
icon: k ? /* @__PURE__ */ n(yi, { color: "error" }) : void 0,
|
|
4673
4672
|
deleteIcon: /* @__PURE__ */ n(
|
|
4674
|
-
|
|
4673
|
+
vi,
|
|
4675
4674
|
{
|
|
4676
4675
|
onMouseEnter: () => g(!0),
|
|
4677
4676
|
onMouseLeave: () => g(!1)
|
|
@@ -4683,16 +4682,16 @@ function Xa({
|
|
|
4683
4682
|
) }, f);
|
|
4684
4683
|
}) }) });
|
|
4685
4684
|
}
|
|
4686
|
-
const
|
|
4685
|
+
const Xa = y(pn)(({ theme: e }) => ({
|
|
4687
4686
|
display: "flex",
|
|
4688
4687
|
alignItems: "center",
|
|
4689
4688
|
justifyContent: "space-between",
|
|
4690
4689
|
maxHeight: e.spacing(5),
|
|
4691
4690
|
padding: e.spacing(0.5)
|
|
4692
|
-
})),
|
|
4693
|
-
function
|
|
4691
|
+
})), Ka = [];
|
|
4692
|
+
function ws({
|
|
4694
4693
|
selectionModes: e,
|
|
4695
|
-
editModes: t =
|
|
4694
|
+
editModes: t = Ka,
|
|
4696
4695
|
selectedMode: i,
|
|
4697
4696
|
onSelectMode: r,
|
|
4698
4697
|
enabled: o = !1,
|
|
@@ -4707,12 +4706,12 @@ function xs({
|
|
|
4707
4706
|
const v = le(), g = se(v), m = F(() => e.map((I) => ({
|
|
4708
4707
|
...I,
|
|
4709
4708
|
label: g.formatMessage({
|
|
4710
|
-
id: `c4r.widgets.featureSelection.${
|
|
4709
|
+
id: `c4r.widgets.featureSelection.${Zt(I.id)}`
|
|
4711
4710
|
})
|
|
4712
4711
|
})), [e, g]), f = F(() => t.map((I) => ({
|
|
4713
4712
|
...I,
|
|
4714
4713
|
label: g.formatMessage({
|
|
4715
|
-
id: `c4r.widgets.featureSelection.${
|
|
4714
|
+
id: `c4r.widgets.featureSelection.${Zt(I.id)}`
|
|
4716
4715
|
})
|
|
4717
4716
|
})), [t, g]), h = F(() => {
|
|
4718
4717
|
const x = [
|
|
@@ -4728,7 +4727,7 @@ function xs({
|
|
|
4728
4727
|
if (!x)
|
|
4729
4728
|
throw new Error(`Selected mode "${i}" not supported`);
|
|
4730
4729
|
return x;
|
|
4731
|
-
}, [f, m, i]), k =
|
|
4730
|
+
}, [f, m, i]), k = un((h == null ? void 0 : h.label) || ""), b = h != null && h.isEdit ? k : g.formatMessage(
|
|
4732
4731
|
{
|
|
4733
4732
|
id: "c4r.widgets.featureSelection.selectTool"
|
|
4734
4733
|
},
|
|
@@ -4738,9 +4737,9 @@ function xs({
|
|
|
4738
4737
|
}) : g.formatMessage({
|
|
4739
4738
|
id: "c4r.widgets.featureSelection.clickToCreate"
|
|
4740
4739
|
});
|
|
4741
|
-
return /* @__PURE__ */ w(
|
|
4740
|
+
return /* @__PURE__ */ w(Xa, { children: [
|
|
4742
4741
|
/* @__PURE__ */ n(
|
|
4743
|
-
|
|
4742
|
+
_a,
|
|
4744
4743
|
{
|
|
4745
4744
|
icon: h == null ? void 0 : h.icon,
|
|
4746
4745
|
hoverTooltip: b,
|
|
@@ -4751,7 +4750,7 @@ function xs({
|
|
|
4751
4750
|
}
|
|
4752
4751
|
),
|
|
4753
4752
|
/* @__PURE__ */ n(
|
|
4754
|
-
|
|
4753
|
+
Va,
|
|
4755
4754
|
{
|
|
4756
4755
|
selectionModes: m,
|
|
4757
4756
|
editModes: f,
|
|
@@ -4769,7 +4768,7 @@ function xs({
|
|
|
4769
4768
|
}
|
|
4770
4769
|
),
|
|
4771
4770
|
!!l && /* @__PURE__ */ n(
|
|
4772
|
-
|
|
4771
|
+
qa,
|
|
4773
4772
|
{
|
|
4774
4773
|
features: [l],
|
|
4775
4774
|
onSelectGeometry: d,
|
|
@@ -4787,18 +4786,18 @@ function xs({
|
|
|
4787
4786
|
)
|
|
4788
4787
|
] });
|
|
4789
4788
|
}
|
|
4790
|
-
function
|
|
4789
|
+
function Zt(e) {
|
|
4791
4790
|
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
4792
4791
|
}
|
|
4793
|
-
const
|
|
4792
|
+
const Nn = 240, Za = y(pn, {
|
|
4794
4793
|
shouldForwardProp: (e) => e !== "collapsed"
|
|
4795
4794
|
})(({ theme: e, collapsed: t }) => ({
|
|
4796
|
-
width: t ? "min-content" :
|
|
4795
|
+
width: t ? "min-content" : Nn,
|
|
4797
4796
|
background: e.palette.background.paper,
|
|
4798
4797
|
maxHeight: "calc(100% - 120px)",
|
|
4799
4798
|
display: "flex",
|
|
4800
4799
|
flexDirection: "column"
|
|
4801
|
-
})),
|
|
4800
|
+
})), Ja = y("header", {
|
|
4802
4801
|
shouldForwardProp: (e) => e !== "collapsed"
|
|
4803
4802
|
})(({ theme: e, collapsed: t }) => ({
|
|
4804
4803
|
display: "flex",
|
|
@@ -4807,7 +4806,7 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4807
4806
|
padding: e.spacing(1),
|
|
4808
4807
|
paddingLeft: e.spacing(2),
|
|
4809
4808
|
borderBottom: t ? void 0 : `1px solid ${e.palette.divider}`
|
|
4810
|
-
})),
|
|
4809
|
+
})), Qa = y("header")(({ theme: e }) => ({
|
|
4811
4810
|
padding: e.spacing(1.5),
|
|
4812
4811
|
paddingRight: e.spacing(2),
|
|
4813
4812
|
gap: e.spacing(0.5),
|
|
@@ -4817,13 +4816,13 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4817
4816
|
zIndex: 2,
|
|
4818
4817
|
top: 0,
|
|
4819
4818
|
background: e.palette.background.paper
|
|
4820
|
-
})),
|
|
4819
|
+
})), el = y("div")(({ theme: e }) => ({
|
|
4821
4820
|
display: "flex",
|
|
4822
4821
|
gap: e.spacing(2),
|
|
4823
4822
|
alignItems: "center",
|
|
4824
4823
|
padding: e.spacing(1),
|
|
4825
|
-
minWidth: `calc(${
|
|
4826
|
-
})),
|
|
4824
|
+
minWidth: `calc(${Nn}px - ${e.spacing(4)})`
|
|
4825
|
+
})), tl = y(ot)(({ theme: e }) => ({
|
|
4827
4826
|
display: "flex",
|
|
4828
4827
|
width: e.spacing(7.5),
|
|
4829
4828
|
flexShrink: 0,
|
|
@@ -4831,7 +4830,7 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4831
4830
|
WebkitAppearance: "none",
|
|
4832
4831
|
margin: 0
|
|
4833
4832
|
}
|
|
4834
|
-
})),
|
|
4833
|
+
})), nl = y("ul", {
|
|
4835
4834
|
shouldForwardProp: (e) => e !== "opacity"
|
|
4836
4835
|
})(({ theme: e, opacity: t }) => ({
|
|
4837
4836
|
opacity: t,
|
|
@@ -4840,39 +4839,39 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4840
4839
|
display: "flex",
|
|
4841
4840
|
flexDirection: "column",
|
|
4842
4841
|
gap: e.spacing(1)
|
|
4843
|
-
})),
|
|
4842
|
+
})), Bn = y("ul")(({ theme: e }) => ({
|
|
4844
4843
|
margin: 0,
|
|
4845
4844
|
padding: 0,
|
|
4846
4845
|
paddingBottom: e.spacing(1),
|
|
4847
4846
|
display: "flex",
|
|
4848
4847
|
flexDirection: "column"
|
|
4849
|
-
})),
|
|
4848
|
+
})), il = y("li")(() => ({
|
|
4850
4849
|
display: "flex",
|
|
4851
4850
|
alignItems: "center"
|
|
4852
|
-
})),
|
|
4851
|
+
})), rl = y("div")(({ theme: e }) => ({
|
|
4853
4852
|
marginRight: e.spacing(1.5),
|
|
4854
|
-
width:
|
|
4855
|
-
height:
|
|
4853
|
+
width: pt,
|
|
4854
|
+
height: pt,
|
|
4856
4855
|
"& img": {
|
|
4857
4856
|
margin: "auto",
|
|
4858
4857
|
display: "block"
|
|
4859
4858
|
}
|
|
4860
|
-
})),
|
|
4859
|
+
})), Jt = y(S, {
|
|
4861
4860
|
shouldForwardProp: (e) => e !== "width"
|
|
4862
4861
|
})(({ width: e, theme: t }) => ({
|
|
4863
4862
|
width: e,
|
|
4864
4863
|
overflow: "auto",
|
|
4865
4864
|
maxHeight: `calc(100% - ${t.spacing(1.5)})`
|
|
4866
|
-
})),
|
|
4865
|
+
})), ol = y("section")(({ theme: e }) => ({
|
|
4867
4866
|
"&:not(:first-of-type)": {
|
|
4868
4867
|
borderTop: `1px solid ${e.palette.divider}`
|
|
4869
4868
|
}
|
|
4870
|
-
})),
|
|
4869
|
+
})), al = y("div")(() => ({
|
|
4871
4870
|
flexGrow: 1,
|
|
4872
4871
|
flexShrink: 1,
|
|
4873
4872
|
minWidth: 0
|
|
4874
4873
|
}));
|
|
4875
|
-
function
|
|
4874
|
+
function ll({
|
|
4876
4875
|
menuRef: e,
|
|
4877
4876
|
open: t,
|
|
4878
4877
|
toggleOpen: i,
|
|
@@ -4895,13 +4894,13 @@ function sl({
|
|
|
4895
4894
|
size: "small",
|
|
4896
4895
|
color: t ? "primary" : "default",
|
|
4897
4896
|
onClick: () => i(!t),
|
|
4898
|
-
children: /* @__PURE__ */ n(
|
|
4897
|
+
children: /* @__PURE__ */ n(hi, {})
|
|
4899
4898
|
}
|
|
4900
4899
|
)
|
|
4901
4900
|
}
|
|
4902
4901
|
),
|
|
4903
4902
|
/* @__PURE__ */ n(
|
|
4904
|
-
|
|
4903
|
+
oi,
|
|
4905
4904
|
{
|
|
4906
4905
|
open: t,
|
|
4907
4906
|
onClose: () => i(!1),
|
|
@@ -4919,9 +4918,9 @@ function sl({
|
|
|
4919
4918
|
sx: { transform: "translate(-12px, 36px)" }
|
|
4920
4919
|
}
|
|
4921
4920
|
},
|
|
4922
|
-
children: /* @__PURE__ */ w(
|
|
4921
|
+
children: /* @__PURE__ */ w(el, { children: [
|
|
4923
4922
|
/* @__PURE__ */ n(
|
|
4924
|
-
|
|
4923
|
+
xt,
|
|
4925
4924
|
{
|
|
4926
4925
|
value: r * 100,
|
|
4927
4926
|
onChange: (s, u) => o(u / 100),
|
|
@@ -4931,7 +4930,7 @@ function sl({
|
|
|
4931
4930
|
}
|
|
4932
4931
|
),
|
|
4933
4932
|
/* @__PURE__ */ n(
|
|
4934
|
-
|
|
4933
|
+
tl,
|
|
4935
4934
|
{
|
|
4936
4935
|
size: "small",
|
|
4937
4936
|
type: "number",
|
|
@@ -4945,7 +4944,7 @@ function sl({
|
|
|
4945
4944
|
"data-testid": "opacity-slider"
|
|
4946
4945
|
},
|
|
4947
4946
|
InputProps: {
|
|
4948
|
-
endAdornment: /* @__PURE__ */ w(
|
|
4947
|
+
endAdornment: /* @__PURE__ */ w(wt, { position: "end", sx: { margin: 0 }, children: [
|
|
4949
4948
|
" ",
|
|
4950
4949
|
"%"
|
|
4951
4950
|
] })
|
|
@@ -4957,13 +4956,13 @@ function sl({
|
|
|
4957
4956
|
)
|
|
4958
4957
|
] });
|
|
4959
4958
|
}
|
|
4960
|
-
function
|
|
4959
|
+
function Lt({
|
|
4961
4960
|
title: e,
|
|
4962
4961
|
visible: t,
|
|
4963
4962
|
typographyProps: i
|
|
4964
4963
|
}) {
|
|
4965
4964
|
const r = re(null), [o, a] = _(!1);
|
|
4966
|
-
|
|
4965
|
+
on(() => {
|
|
4967
4966
|
if (t && r.current) {
|
|
4968
4967
|
const { offsetWidth: d, scrollWidth: s } = r.current;
|
|
4969
4968
|
a(d < s);
|
|
@@ -4986,8 +4985,8 @@ function Et({
|
|
|
4986
4985
|
return o ? /* @__PURE__ */ n(pe, { title: e, children: l }) : l;
|
|
4987
4986
|
}
|
|
4988
4987
|
var Ce = /* @__PURE__ */ ((e) => (e.CATEGORY = "category", e.ICON = "icon", e.CONTINUOUS_RAMP = "continuous_ramp", e.BINS = "bins", e.PROPORTION = "proportion", e))(Ce || {});
|
|
4989
|
-
const
|
|
4990
|
-
function
|
|
4988
|
+
const ut = 20;
|
|
4989
|
+
function sl({
|
|
4991
4990
|
legend: e
|
|
4992
4991
|
}) {
|
|
4993
4992
|
const {
|
|
@@ -4996,10 +4995,10 @@ function cl({
|
|
|
4996
4995
|
isStrokeColor: r = !1,
|
|
4997
4996
|
customMarkers: o,
|
|
4998
4997
|
maskedMarkers: a = !0
|
|
4999
|
-
} = e, l =
|
|
4998
|
+
} = e, l = hn(i, t.length), d = t.length > ut, s = le(), u = se(s);
|
|
5000
4999
|
return /* @__PURE__ */ w(ie, { children: [
|
|
5001
|
-
/* @__PURE__ */ n(
|
|
5002
|
-
|
|
5000
|
+
/* @__PURE__ */ n(Bn, { "data-testid": "categories-legend", children: t.slice(0, ut).map((p, c) => /* @__PURE__ */ n(
|
|
5001
|
+
pl,
|
|
5003
5002
|
{
|
|
5004
5003
|
label: String(p),
|
|
5005
5004
|
color: l[c % l.length],
|
|
@@ -5021,14 +5020,14 @@ function cl({
|
|
|
5021
5020
|
id: "c4r.widgets.legend.maxCategories"
|
|
5022
5021
|
},
|
|
5023
5022
|
{
|
|
5024
|
-
n:
|
|
5023
|
+
n: ut
|
|
5025
5024
|
}
|
|
5026
5025
|
)
|
|
5027
5026
|
}
|
|
5028
5027
|
)
|
|
5029
5028
|
] });
|
|
5030
5029
|
}
|
|
5031
|
-
const
|
|
5030
|
+
const cl = ({
|
|
5032
5031
|
isMax: e,
|
|
5033
5032
|
color: t,
|
|
5034
5033
|
isStrokeColor: i,
|
|
@@ -5047,7 +5046,7 @@ const dl = ({
|
|
|
5047
5046
|
boxSizing: "content-box"
|
|
5048
5047
|
},
|
|
5049
5048
|
...i ? { borderColor: t } : { backgroundColor: t }
|
|
5050
|
-
}),
|
|
5049
|
+
}), dl = ({
|
|
5051
5050
|
icon: e,
|
|
5052
5051
|
color: t,
|
|
5053
5052
|
maskedIcon: i
|
|
@@ -5064,7 +5063,7 @@ const dl = ({
|
|
|
5064
5063
|
backgroundColor: "rgba(0,0,0,0)",
|
|
5065
5064
|
backgroundImage: `url(${e})`
|
|
5066
5065
|
}
|
|
5067
|
-
}),
|
|
5066
|
+
}), ul = y(S, {
|
|
5068
5067
|
shouldForwardProp: (e) => e !== "icon" && e !== "maskedIcon" && e !== "color" && e !== "isStrokeColor"
|
|
5069
5068
|
})(({ icon: e, maskedIcon: t, color: i, isStrokeColor: r, theme: o }) => ({
|
|
5070
5069
|
whiteSpace: "nowrap",
|
|
@@ -5075,9 +5074,9 @@ const dl = ({
|
|
|
5075
5074
|
borderRadius: "50%",
|
|
5076
5075
|
position: "relative",
|
|
5077
5076
|
border: "2px solid transparent",
|
|
5078
|
-
...e ?
|
|
5077
|
+
...e ? dl({ icon: e, color: i, maskedIcon: t }) : cl({ color: i, isStrokeColor: r, theme: o })
|
|
5079
5078
|
}));
|
|
5080
|
-
function
|
|
5079
|
+
function pl({
|
|
5081
5080
|
label: e,
|
|
5082
5081
|
isStrokeColor: t,
|
|
5083
5082
|
color: i = "#000",
|
|
@@ -5086,7 +5085,7 @@ function gl({
|
|
|
5086
5085
|
}) {
|
|
5087
5086
|
return /* @__PURE__ */ w(S, { component: "li", sx: { display: "flex", alignItems: "center" }, children: [
|
|
5088
5087
|
/* @__PURE__ */ n(
|
|
5089
|
-
|
|
5088
|
+
ul,
|
|
5090
5089
|
{
|
|
5091
5090
|
className: "marker",
|
|
5092
5091
|
mr: 1.5,
|
|
@@ -5098,7 +5097,7 @@ function gl({
|
|
|
5098
5097
|
}
|
|
5099
5098
|
),
|
|
5100
5099
|
/* @__PURE__ */ n(
|
|
5101
|
-
|
|
5100
|
+
Lt,
|
|
5102
5101
|
{
|
|
5103
5102
|
title: e,
|
|
5104
5103
|
visible: !0,
|
|
@@ -5107,15 +5106,15 @@ function gl({
|
|
|
5107
5106
|
)
|
|
5108
5107
|
] });
|
|
5109
5108
|
}
|
|
5110
|
-
const Ze = 6,
|
|
5109
|
+
const Ze = 6, rt = {
|
|
5111
5110
|
0: 12,
|
|
5112
5111
|
1: 9,
|
|
5113
5112
|
2: 6,
|
|
5114
5113
|
3: 3
|
|
5115
|
-
},
|
|
5114
|
+
}, gl = y(S, {
|
|
5116
5115
|
shouldForwardProp: (e) => e !== "index"
|
|
5117
5116
|
})(({ index: e = 0, theme: t }) => {
|
|
5118
|
-
const i = t.spacing(
|
|
5117
|
+
const i = t.spacing(rt[e]), r = t.spacing(rt[e]);
|
|
5119
5118
|
return {
|
|
5120
5119
|
border: `solid 1px ${t.palette.divider}`,
|
|
5121
5120
|
backgroundColor: t.palette.background.default,
|
|
@@ -5126,20 +5125,20 @@ const Ze = 6, it = {
|
|
|
5126
5125
|
width: i,
|
|
5127
5126
|
height: r
|
|
5128
5127
|
};
|
|
5129
|
-
}),
|
|
5128
|
+
}), hl = y(S)(({ theme: { spacing: e } }) => ({
|
|
5130
5129
|
display: "flex",
|
|
5131
5130
|
justifyContent: "flex-end",
|
|
5132
5131
|
flexShrink: 0,
|
|
5133
5132
|
position: "relative",
|
|
5134
|
-
width: e(
|
|
5135
|
-
height: e(
|
|
5136
|
-
})),
|
|
5133
|
+
width: e(rt[0]),
|
|
5134
|
+
height: e(rt[0])
|
|
5135
|
+
})), fl = y(S)(({ theme: { spacing: e } }) => ({
|
|
5137
5136
|
display: "flex",
|
|
5138
5137
|
gap: e(1),
|
|
5139
5138
|
alignItems: "stretch",
|
|
5140
5139
|
justifyContent: "stretch",
|
|
5141
5140
|
padding: e(2, 0)
|
|
5142
|
-
})),
|
|
5141
|
+
})), ml = y(S)(() => ({
|
|
5143
5142
|
display: "flex",
|
|
5144
5143
|
flexDirection: "column",
|
|
5145
5144
|
justifyContent: "space-around",
|
|
@@ -5147,20 +5146,20 @@ const Ze = 6, it = {
|
|
|
5147
5146
|
flexGrow: 1,
|
|
5148
5147
|
flexShrink: 1
|
|
5149
5148
|
}));
|
|
5150
|
-
function
|
|
5149
|
+
function yl({
|
|
5151
5150
|
legend: e
|
|
5152
5151
|
}) {
|
|
5153
|
-
const t = le(), i = se(t), r = e.showMinMax ?? !0, { min: o, max: a, error: l } =
|
|
5154
|
-
return /* @__PURE__ */ w(
|
|
5155
|
-
/* @__PURE__ */ n(
|
|
5156
|
-
|
|
5152
|
+
const t = le(), i = se(t), r = e.showMinMax ?? !0, { min: o, max: a, error: l } = vl(e), [d, s] = l ? [0, 0] : wl(o, a);
|
|
5153
|
+
return /* @__PURE__ */ w(fl, { "data-testid": "proportion-legend", children: [
|
|
5154
|
+
/* @__PURE__ */ n(hl, { children: [...Array(4)].map((u, p) => /* @__PURE__ */ n(
|
|
5155
|
+
gl,
|
|
5157
5156
|
{
|
|
5158
5157
|
index: p,
|
|
5159
5158
|
component: "span"
|
|
5160
5159
|
},
|
|
5161
5160
|
p
|
|
5162
5161
|
)) }),
|
|
5163
|
-
/* @__PURE__ */ n(
|
|
5162
|
+
/* @__PURE__ */ n(ml, { children: l ? /* @__PURE__ */ n(S, { maxWidth: 240, children: /* @__PURE__ */ n(z, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ w(ie, { children: [
|
|
5164
5163
|
/* @__PURE__ */ w(z, { variant: "overline", color: "textSecondary", children: [
|
|
5165
5164
|
r && i.formatMessage({ id: "c4r.widgets.legend.max" }) + ": ",
|
|
5166
5165
|
t.formatNumber(a, {
|
|
@@ -5182,35 +5181,35 @@ function vl({
|
|
|
5182
5181
|
] }) })
|
|
5183
5182
|
] });
|
|
5184
5183
|
}
|
|
5185
|
-
function
|
|
5184
|
+
function _n({ labels: e }) {
|
|
5186
5185
|
let t = e == null ? void 0 : e[e.length - 1], i = e == null ? void 0 : e[0];
|
|
5187
5186
|
return Number.isFinite(i) || (i = parseInt(String(i), 10)), Number.isFinite(t) || (t = parseInt(String(t), 10)), [i, t];
|
|
5188
5187
|
}
|
|
5189
|
-
function
|
|
5188
|
+
function vl(e) {
|
|
5190
5189
|
let t = !1;
|
|
5191
|
-
const [i, r] =
|
|
5190
|
+
const [i, r] = _n(e);
|
|
5192
5191
|
return (Number.isNaN(i) || Number.isNaN(r)) && (t = !0), { min: i, max: r, error: t };
|
|
5193
5192
|
}
|
|
5194
|
-
function
|
|
5193
|
+
function wl(e, t) {
|
|
5195
5194
|
const i = (t - e) / 3;
|
|
5196
5195
|
return [e + i, t - i];
|
|
5197
5196
|
}
|
|
5198
|
-
function
|
|
5197
|
+
function xl({
|
|
5199
5198
|
legend: e
|
|
5200
5199
|
}) {
|
|
5201
5200
|
const { labels: t = [], icons: i = [] } = e;
|
|
5202
|
-
return /* @__PURE__ */ n(
|
|
5203
|
-
/* @__PURE__ */ n(
|
|
5201
|
+
return /* @__PURE__ */ n(Bn, { "data-testid": "icon-legend", children: t.map((r, o) => /* @__PURE__ */ w(il, { children: [
|
|
5202
|
+
/* @__PURE__ */ n(rl, { children: /* @__PURE__ */ n(
|
|
5204
5203
|
"img",
|
|
5205
5204
|
{
|
|
5206
5205
|
src: i[o],
|
|
5207
5206
|
alt: r,
|
|
5208
5207
|
width: "auto",
|
|
5209
|
-
height:
|
|
5208
|
+
height: pt
|
|
5210
5209
|
}
|
|
5211
5210
|
) }),
|
|
5212
5211
|
/* @__PURE__ */ n(
|
|
5213
|
-
|
|
5212
|
+
Lt,
|
|
5214
5213
|
{
|
|
5215
5214
|
visible: !0,
|
|
5216
5215
|
title: r,
|
|
@@ -5219,27 +5218,27 @@ function bl({
|
|
|
5219
5218
|
)
|
|
5220
5219
|
] }, r)) });
|
|
5221
5220
|
}
|
|
5222
|
-
function
|
|
5221
|
+
function bl(e) {
|
|
5223
5222
|
return typeof e[0] == "object" && "label" in e[0];
|
|
5224
5223
|
}
|
|
5225
|
-
function
|
|
5224
|
+
function Qt({
|
|
5226
5225
|
isContinuous: e = !1,
|
|
5227
5226
|
legend: t
|
|
5228
5227
|
}) {
|
|
5229
|
-
const { labels: i = [], colors: r = [], showMinMax: o = !0 } = t, a =
|
|
5228
|
+
const { labels: i = [], colors: r = [], showMinMax: o = !0 } = t, a = hn(
|
|
5230
5229
|
r,
|
|
5231
5230
|
!i.length || e ? 2 : i.length + 1
|
|
5232
|
-
), l =
|
|
5231
|
+
), l = bl(i), d = l ? i.map(({ value: m }) => m) : i, s = l ? i.map(({ label: m }) => m) : i, [u, p] = _n({ labels: d }), c = Number.isNaN(u) || Number.isNaN(p);
|
|
5233
5232
|
let v = s[s.length - 1], g = s[0];
|
|
5234
5233
|
return !e && o && (g = "< " + g, v = "≥ " + v), /* @__PURE__ */ n(S, { py: 2, "data-testid": "ramp-legend", children: c ? /* @__PURE__ */ n(S, { maxWidth: 240, children: /* @__PURE__ */ n(z, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ w(ie, { children: [
|
|
5235
5234
|
/* @__PURE__ */ n(S, { display: "flex", pb: 1, children: e ? /* @__PURE__ */ n(
|
|
5236
|
-
|
|
5235
|
+
kl,
|
|
5237
5236
|
{
|
|
5238
5237
|
"data-testid": "step-continuous",
|
|
5239
5238
|
palette: a
|
|
5240
5239
|
}
|
|
5241
5240
|
) : /* @__PURE__ */ n(
|
|
5242
|
-
|
|
5241
|
+
Ml,
|
|
5243
5242
|
{
|
|
5244
5243
|
palette: a,
|
|
5245
5244
|
labels: s,
|
|
@@ -5253,7 +5252,7 @@ function en({
|
|
|
5253
5252
|
] })
|
|
5254
5253
|
] }) });
|
|
5255
5254
|
}
|
|
5256
|
-
const
|
|
5255
|
+
const kl = y(S, {
|
|
5257
5256
|
shouldForwardProp: (e) => e !== "palette"
|
|
5258
5257
|
})(({ palette: e, theme: t }) => ({
|
|
5259
5258
|
display: "block",
|
|
@@ -5261,7 +5260,7 @@ const Sl = y(S, {
|
|
|
5261
5260
|
height: t.spacing(1),
|
|
5262
5261
|
borderRadius: t.spacing(0.5),
|
|
5263
5262
|
background: `linear-gradient(to right, ${e.join()})`
|
|
5264
|
-
})),
|
|
5263
|
+
})), Sl = y(S, {
|
|
5265
5264
|
shouldForwardProp: (e) => e !== "color"
|
|
5266
5265
|
})(({ color: e, theme: t }) => ({
|
|
5267
5266
|
display: "block",
|
|
@@ -5275,7 +5274,7 @@ const Sl = y(S, {
|
|
|
5275
5274
|
borderRadius: t.spacing(0, 0.5, 0.5, 0)
|
|
5276
5275
|
}
|
|
5277
5276
|
}));
|
|
5278
|
-
function
|
|
5277
|
+
function Ml({
|
|
5279
5278
|
labels: e = [],
|
|
5280
5279
|
palette: t = [],
|
|
5281
5280
|
max: i,
|
|
@@ -5284,17 +5283,17 @@ function Il({
|
|
|
5284
5283
|
const o = e.length ? [r, ...e] : [r, i];
|
|
5285
5284
|
return /* @__PURE__ */ n(ie, { children: o.map((a, l) => {
|
|
5286
5285
|
const d = l === 0 ? r : l === o.length - 1 ? i : `${a} - ${o[l + 1]}`;
|
|
5287
|
-
return /* @__PURE__ */ n(pe, { title: d, children: /* @__PURE__ */ n(
|
|
5286
|
+
return /* @__PURE__ */ n(pe, { title: d, children: /* @__PURE__ */ n(Sl, { "data-testid": "step-discontinuous", color: t[l] }) }, l);
|
|
5288
5287
|
}) });
|
|
5289
5288
|
}
|
|
5290
|
-
const
|
|
5291
|
-
[Ce.CATEGORY]:
|
|
5292
|
-
[Ce.PROPORTION]:
|
|
5293
|
-
[Ce.ICON]:
|
|
5294
|
-
[Ce.BINS]: (e) => /* @__PURE__ */ n(
|
|
5295
|
-
[Ce.CONTINUOUS_RAMP]: (e) => /* @__PURE__ */ n(
|
|
5289
|
+
const Il = {
|
|
5290
|
+
[Ce.CATEGORY]: sl,
|
|
5291
|
+
[Ce.PROPORTION]: yl,
|
|
5292
|
+
[Ce.ICON]: xl,
|
|
5293
|
+
[Ce.BINS]: (e) => /* @__PURE__ */ n(Qt, { ...e, isContinuous: !1 }),
|
|
5294
|
+
[Ce.CONTINUOUS_RAMP]: (e) => /* @__PURE__ */ n(Qt, { ...e, isContinuous: !0 })
|
|
5296
5295
|
};
|
|
5297
|
-
function
|
|
5296
|
+
function Cl({ legend: e }) {
|
|
5298
5297
|
const t = le(), i = se(t);
|
|
5299
5298
|
return e.select || !e.type ? null : /* @__PURE__ */ w(z, { variant: "body2", color: "textSecondary", component: "p", children: [
|
|
5300
5299
|
e.type,
|
|
@@ -5303,17 +5302,17 @@ function Tl({ legend: e }) {
|
|
|
5303
5302
|
"."
|
|
5304
5303
|
] });
|
|
5305
5304
|
}
|
|
5306
|
-
function
|
|
5305
|
+
function Tl(e) {
|
|
5307
5306
|
return e.type === Ce.PROPORTION ? "c4r.widgets.legend.subtitles.proportion" : e.type === Ce.ICON || e.customMarkers ? "c4r.widgets.legend.subtitles.icon" : e.isStrokeColor ? "c4r.widgets.legend.subtitles.strokeColor" : "c4r.widgets.legend.subtitles.color";
|
|
5308
5307
|
}
|
|
5309
|
-
function
|
|
5308
|
+
function Al({
|
|
5310
5309
|
layer: e,
|
|
5311
5310
|
legend: t,
|
|
5312
5311
|
customLegendTypes: i,
|
|
5313
5312
|
onChangeSelection: r
|
|
5314
5313
|
}) {
|
|
5315
5314
|
var p;
|
|
5316
|
-
const o = le(), a = se(o), l = t.type, s =
|
|
5315
|
+
const o = le(), a = se(o), l = t.type, s = Il[l] ?? i[l] ?? Cl, u = ((p = t.select) == null ? void 0 : p.options) ?? [];
|
|
5317
5316
|
return /* @__PURE__ */ w(S, { component: "li", "data-testid": "legend-layer-variable", px: 2, children: [
|
|
5318
5317
|
t.attr ? /* @__PURE__ */ w(S, { pb: 1, children: [
|
|
5319
5318
|
/* @__PURE__ */ n(
|
|
@@ -5323,7 +5322,7 @@ function El({
|
|
|
5323
5322
|
variant: "overlineDelicate",
|
|
5324
5323
|
color: "textSecondary",
|
|
5325
5324
|
component: "p",
|
|
5326
|
-
children: a.formatMessage({ id:
|
|
5325
|
+
children: a.formatMessage({ id: Tl(t) })
|
|
5327
5326
|
}
|
|
5328
5327
|
),
|
|
5329
5328
|
/* @__PURE__ */ n(z, { variant: "caption", component: "p", children: t.attr })
|
|
@@ -5331,7 +5330,7 @@ function El({
|
|
|
5331
5330
|
t.select ? /* @__PURE__ */ w(S, { pb: 1, children: [
|
|
5332
5331
|
/* @__PURE__ */ n(z, { variant: "caption", weight: "medium", component: "p", children: t.select.label }),
|
|
5333
5332
|
/* @__PURE__ */ n(
|
|
5334
|
-
|
|
5333
|
+
ai,
|
|
5335
5334
|
{
|
|
5336
5335
|
"data-testid": "legend-layer-variable-select",
|
|
5337
5336
|
name: "legend-select",
|
|
@@ -5350,19 +5349,19 @@ function El({
|
|
|
5350
5349
|
}
|
|
5351
5350
|
}
|
|
5352
5351
|
},
|
|
5353
|
-
children: u.map((c) => /* @__PURE__ */ n(Pe, { value: c.value, children: /* @__PURE__ */ n(
|
|
5352
|
+
children: u.map((c) => /* @__PURE__ */ n(Pe, { value: c.value, children: /* @__PURE__ */ n(li, { primary: c.label }) }, c.value))
|
|
5354
5353
|
}
|
|
5355
5354
|
)
|
|
5356
5355
|
] }) : null,
|
|
5357
5356
|
/* @__PURE__ */ n(s, { layer: e, legend: t })
|
|
5358
5357
|
] });
|
|
5359
5358
|
}
|
|
5360
|
-
const
|
|
5361
|
-
function
|
|
5362
|
-
return e ? Array.isArray(e) ? e.every((t) =>
|
|
5359
|
+
const El = {};
|
|
5360
|
+
function zn(e) {
|
|
5361
|
+
return e ? Array.isArray(e) ? e.every((t) => zn(t)) : !e.select && !e.type : !0;
|
|
5363
5362
|
}
|
|
5364
|
-
function
|
|
5365
|
-
customLegendTypes: e =
|
|
5363
|
+
function en({
|
|
5364
|
+
customLegendTypes: e = El,
|
|
5366
5365
|
layer: t,
|
|
5367
5366
|
onChangeCollapsed: i,
|
|
5368
5367
|
onChangeOpacity: r,
|
|
@@ -5372,15 +5371,15 @@ function tn({
|
|
|
5372
5371
|
minZoom: d = 0,
|
|
5373
5372
|
currentZoom: s = 0
|
|
5374
5373
|
}) {
|
|
5375
|
-
const u = le(), p = se(u), c = re(null), [v, g] = _(!1), m = t.id, f = t.title, h = t.visible ?? !0, k = t.switchable ?? !0, b = t.collapsed ?? !1, M = (t.collapsible ?? !0) && !
|
|
5374
|
+
const u = le(), p = se(u), c = re(null), [v, g] = _(!1), m = t.id, f = t.title, h = t.visible ?? !0, k = t.switchable ?? !0, b = t.collapsed ?? !1, M = (t.collapsible ?? !0) && !zn(t.legend), I = t.opacity ?? 1, x = t.showOpacityControl ?? !0, A = h && !b, E = A ? /* @__PURE__ */ n($i, {}) : /* @__PURE__ */ n(Li, {}), O = (t == null ? void 0 : t.minZoom) !== void 0 || (t == null ? void 0 : t.maxZoom) !== void 0, $ = t.minZoom ?? d, D = t.maxZoom ?? l, P = O && ($ > d || D < l), W = s < $ || s > D, J = Ll({
|
|
5376
5375
|
intl: p,
|
|
5377
5376
|
minZoom: d,
|
|
5378
5377
|
maxZoom: l,
|
|
5379
5378
|
layerMinZoom: $,
|
|
5380
5379
|
layerMaxZoom: D
|
|
5381
5380
|
}), U = t.helperText ?? (P ? J : ""), C = F(() => t.legend ? Array.isArray(t.legend) ? t.legend : [t.legend] : [], [t.legend]);
|
|
5382
|
-
return t.legend ? /* @__PURE__ */ w(
|
|
5383
|
-
/* @__PURE__ */ w(
|
|
5381
|
+
return t.legend ? /* @__PURE__ */ w(ol, { "data-testid": "legend-layer", "aria-label": f, children: [
|
|
5382
|
+
/* @__PURE__ */ w(Qa, { ref: c, children: [
|
|
5384
5383
|
M && /* @__PURE__ */ n(
|
|
5385
5384
|
me,
|
|
5386
5385
|
{
|
|
@@ -5393,8 +5392,8 @@ function tn({
|
|
|
5393
5392
|
children: E
|
|
5394
5393
|
}
|
|
5395
5394
|
),
|
|
5396
|
-
/* @__PURE__ */ w(
|
|
5397
|
-
/* @__PURE__ */ n(
|
|
5395
|
+
/* @__PURE__ */ w(al, { children: [
|
|
5396
|
+
/* @__PURE__ */ n(Lt, { visible: h, title: f ?? "" }),
|
|
5398
5397
|
P && /* @__PURE__ */ n(
|
|
5399
5398
|
pe,
|
|
5400
5399
|
{
|
|
@@ -5422,7 +5421,7 @@ function tn({
|
|
|
5422
5421
|
)
|
|
5423
5422
|
] }),
|
|
5424
5423
|
x && h && !b && /* @__PURE__ */ n(
|
|
5425
|
-
|
|
5424
|
+
ll,
|
|
5426
5425
|
{
|
|
5427
5426
|
menuRef: c,
|
|
5428
5427
|
open: v,
|
|
@@ -5446,20 +5445,20 @@ function tn({
|
|
|
5446
5445
|
collapsed: h ? b : !1,
|
|
5447
5446
|
visible: !h
|
|
5448
5447
|
}),
|
|
5449
|
-
children: h ? /* @__PURE__ */ n(
|
|
5448
|
+
children: h ? /* @__PURE__ */ n(Ai, {}) : /* @__PURE__ */ n(Ei, {})
|
|
5450
5449
|
}
|
|
5451
5450
|
)
|
|
5452
5451
|
}
|
|
5453
5452
|
)
|
|
5454
5453
|
] }),
|
|
5455
|
-
/* @__PURE__ */ w(
|
|
5454
|
+
/* @__PURE__ */ w(St, { unmountOnExit: !0, timeout: 100, in: A, children: [
|
|
5456
5455
|
/* @__PURE__ */ n(
|
|
5457
|
-
|
|
5456
|
+
nl,
|
|
5458
5457
|
{
|
|
5459
5458
|
"data-testid": "legend-layer-variable-list",
|
|
5460
5459
|
opacity: W ? 0.5 : 1,
|
|
5461
5460
|
children: C.map((N, T) => /* @__PURE__ */ n(
|
|
5462
|
-
|
|
5461
|
+
Al,
|
|
5463
5462
|
{
|
|
5464
5463
|
legend: N,
|
|
5465
5464
|
layer: t,
|
|
@@ -5483,7 +5482,7 @@ function tn({
|
|
|
5483
5482
|
] })
|
|
5484
5483
|
] }) : null;
|
|
5485
5484
|
}
|
|
5486
|
-
function
|
|
5485
|
+
function Ll({
|
|
5487
5486
|
intl: e,
|
|
5488
5487
|
minZoom: t,
|
|
5489
5488
|
maxZoom: i,
|
|
@@ -5495,11 +5494,11 @@ function $l({
|
|
|
5495
5494
|
}), s = e.formatMessage({ id: "c4r.widgets.legend.zoomNote" }), u = o < i ? `${l} ${o}` : "", p = r > t ? `${d} ${r}` : "", c = [u, p].filter(Boolean).join(` ${a} `);
|
|
5496
5495
|
return c ? `${s} ${c}` : "";
|
|
5497
5496
|
}
|
|
5498
|
-
const
|
|
5499
|
-
},
|
|
5500
|
-
function
|
|
5501
|
-
customLegendTypes: e =
|
|
5502
|
-
layers: t =
|
|
5497
|
+
const $l = {}, He = () => {
|
|
5498
|
+
}, Dl = [];
|
|
5499
|
+
function xs({
|
|
5500
|
+
customLegendTypes: e = $l,
|
|
5501
|
+
layers: t = Dl,
|
|
5503
5502
|
collapsed: i = !1,
|
|
5504
5503
|
onChangeCollapsed: r = He,
|
|
5505
5504
|
onChangeVisibility: o = He,
|
|
@@ -5513,34 +5512,34 @@ function bs({
|
|
|
5513
5512
|
isMobile: v,
|
|
5514
5513
|
sx: g
|
|
5515
5514
|
}) {
|
|
5516
|
-
const m = le(), f = se(m), h = /* @__PURE__ */ w(
|
|
5515
|
+
const m = le(), f = se(m), h = /* @__PURE__ */ w(Ja, { collapsed: i, children: [
|
|
5517
5516
|
/* @__PURE__ */ n(z, { variant: "caption", flexGrow: 1, children: s }),
|
|
5518
5517
|
/* @__PURE__ */ n(
|
|
5519
5518
|
pe,
|
|
5520
5519
|
{
|
|
5521
5520
|
title: f.formatMessage({ id: "c4r.widgets.legend.close" }),
|
|
5522
|
-
children: /* @__PURE__ */ n(me, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(
|
|
5521
|
+
children: /* @__PURE__ */ n(me, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(Ci, {}) })
|
|
5523
5522
|
}
|
|
5524
5523
|
)
|
|
5525
5524
|
] }), k = /* @__PURE__ */ n(
|
|
5526
5525
|
pe,
|
|
5527
5526
|
{
|
|
5528
5527
|
title: f.formatMessage({ id: "c4r.widgets.legend.open" }),
|
|
5529
|
-
children: /* @__PURE__ */ n(me, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(
|
|
5528
|
+
children: /* @__PURE__ */ n(me, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(Ti, {}) })
|
|
5530
5529
|
}
|
|
5531
5530
|
);
|
|
5532
|
-
return /* @__PURE__ */ n(
|
|
5531
|
+
return /* @__PURE__ */ n(Za, { sx: g, elevation: 3, collapsed: i || !!v, children: v ? /* @__PURE__ */ w(ie, { children: [
|
|
5533
5532
|
k,
|
|
5534
5533
|
/* @__PURE__ */ w(
|
|
5535
|
-
|
|
5534
|
+
si,
|
|
5536
5535
|
{
|
|
5537
5536
|
anchor: "bottom",
|
|
5538
5537
|
open: !i,
|
|
5539
5538
|
onClose: () => r(!0),
|
|
5540
5539
|
children: [
|
|
5541
5540
|
h,
|
|
5542
|
-
/* @__PURE__ */ n(
|
|
5543
|
-
|
|
5541
|
+
/* @__PURE__ */ n(Jt, { children: t.map((b) => /* @__PURE__ */ n(
|
|
5542
|
+
en,
|
|
5544
5543
|
{
|
|
5545
5544
|
layer: b,
|
|
5546
5545
|
onChangeCollapsed: l,
|
|
@@ -5559,8 +5558,8 @@ function bs({
|
|
|
5559
5558
|
)
|
|
5560
5559
|
] }) : /* @__PURE__ */ w(ie, { children: [
|
|
5561
5560
|
i ? k : h,
|
|
5562
|
-
/* @__PURE__ */ n(
|
|
5563
|
-
|
|
5561
|
+
/* @__PURE__ */ n(Jt, { width: i ? 0 : void 0, children: /* @__PURE__ */ n(St, { unmountOnExit: !0, in: !i, timeout: 500, children: t.map((b) => /* @__PURE__ */ n(
|
|
5562
|
+
en,
|
|
5564
5563
|
{
|
|
5565
5564
|
layer: b,
|
|
5566
5565
|
onChangeCollapsed: l,
|
|
@@ -5576,7 +5575,7 @@ function bs({
|
|
|
5576
5575
|
)) }) })
|
|
5577
5576
|
] }) });
|
|
5578
5577
|
}
|
|
5579
|
-
function
|
|
5578
|
+
function tn({
|
|
5580
5579
|
color: e = void 0,
|
|
5581
5580
|
children: t
|
|
5582
5581
|
}) {
|
|
@@ -5591,31 +5590,31 @@ function nn({
|
|
|
5591
5590
|
}
|
|
5592
5591
|
) }) : /* @__PURE__ */ n(S, { mt: -1 });
|
|
5593
5592
|
}
|
|
5594
|
-
function
|
|
5593
|
+
function bs({
|
|
5595
5594
|
title: e = "No data available",
|
|
5596
5595
|
body: t = "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View.",
|
|
5597
5596
|
severity: i = void 0,
|
|
5598
5597
|
...r
|
|
5599
5598
|
}) {
|
|
5600
|
-
return i ? /* @__PURE__ */ n(
|
|
5599
|
+
return i ? /* @__PURE__ */ n(Di, { title: e, severity: i, ...r, children: /* @__PURE__ */ n(tn, { children: t }) }) : /* @__PURE__ */ w(S, { ...r, children: [
|
|
5601
5600
|
e && /* @__PURE__ */ n(z, { variant: "body2", children: e }),
|
|
5602
|
-
/* @__PURE__ */ n(
|
|
5601
|
+
/* @__PURE__ */ n(tn, { color: "textSecondary", children: t })
|
|
5603
5602
|
] });
|
|
5604
5603
|
}
|
|
5605
|
-
const
|
|
5604
|
+
const Pl = y(S, {
|
|
5606
5605
|
shouldForwardProp: (e) => e !== "margin"
|
|
5607
5606
|
})(({ theme: e, margin: t }) => ({
|
|
5608
5607
|
margin: 0,
|
|
5609
5608
|
position: "relative",
|
|
5610
5609
|
maxWidth: "100%",
|
|
5611
5610
|
padding: t ?? e.spacing(2, 2.5)
|
|
5612
|
-
})),
|
|
5611
|
+
})), Ol = y(ci)(({ theme: e }) => ({
|
|
5613
5612
|
position: "absolute",
|
|
5614
5613
|
top: 0,
|
|
5615
5614
|
left: 0,
|
|
5616
5615
|
width: "100%",
|
|
5617
5616
|
height: e.spacing(0.25)
|
|
5618
|
-
})),
|
|
5617
|
+
})), Wl = y(ae, {
|
|
5619
5618
|
shouldForwardProp: (e) => e !== "expanded"
|
|
5620
5619
|
})(({ theme: e, expanded: t = !0 }) => ({
|
|
5621
5620
|
display: "flex",
|
|
@@ -5625,7 +5624,7 @@ const Ol = y(S, {
|
|
|
5625
5624
|
width: "100%",
|
|
5626
5625
|
...t ? { minHeight: e.spacing(3) } : { height: e.spacing(3) },
|
|
5627
5626
|
padding: 0
|
|
5628
|
-
})),
|
|
5627
|
+
})), Rl = y(De, {
|
|
5629
5628
|
shouldForwardProp: (e) => e !== "expandable"
|
|
5630
5629
|
})(({ theme: e, expandable: t = !0 }) => ({
|
|
5631
5630
|
flex: 1,
|
|
@@ -5643,14 +5642,14 @@ const Ol = y(S, {
|
|
|
5643
5642
|
"&:hover": {
|
|
5644
5643
|
background: "none"
|
|
5645
5644
|
}
|
|
5646
|
-
})),
|
|
5645
|
+
})), Hn = ({ theme: e }) => ({
|
|
5647
5646
|
display: "flex",
|
|
5648
5647
|
alignItems: "center",
|
|
5649
5648
|
justifyContent: "center",
|
|
5650
5649
|
width: e.spacing(3),
|
|
5651
5650
|
height: e.spacing(3),
|
|
5652
5651
|
color: e.palette.text.secondary
|
|
5653
|
-
}),
|
|
5652
|
+
}), Fl = y(wi)(({ theme: e }) => Hn({ theme: e })), Nl = y(xi)(({ theme: e }) => Hn({ theme: e })), Bl = y($e, {
|
|
5654
5653
|
shouldForwardProp: (e) => e !== "expanded"
|
|
5655
5654
|
})(({ expanded: e = !0 }) => ({
|
|
5656
5655
|
wordBreak: "break-word",
|
|
@@ -5664,26 +5663,26 @@ const Ol = y(S, {
|
|
|
5664
5663
|
whiteSpace: "nowrap",
|
|
5665
5664
|
textOverflow: "ellipsis"
|
|
5666
5665
|
}
|
|
5667
|
-
})),
|
|
5666
|
+
})), _l = y(ae)(({ theme: e }) => ({
|
|
5668
5667
|
display: "flex",
|
|
5669
5668
|
alignItems: "center",
|
|
5670
5669
|
gap: e.spacing(1),
|
|
5671
5670
|
marginRight: e.spacing(-0.5),
|
|
5672
5671
|
marginLeft: e.spacing(1)
|
|
5673
|
-
})),
|
|
5672
|
+
})), nn = y(me)(({ theme: e }) => ({
|
|
5674
5673
|
color: e.palette.text.secondary
|
|
5675
|
-
})),
|
|
5674
|
+
})), zl = y(kt)(({ theme: e }) => ({
|
|
5676
5675
|
".MuiPaper-root": {
|
|
5677
5676
|
marginTop: e.spacing(5),
|
|
5678
5677
|
maxHeight: e.spacing(21),
|
|
5679
5678
|
minWidth: e.spacing(16)
|
|
5680
5679
|
}
|
|
5681
|
-
})),
|
|
5682
|
-
function
|
|
5680
|
+
})), rn = [], Hl = /* @__PURE__ */ n(bi, {});
|
|
5681
|
+
function ks({
|
|
5683
5682
|
title: e,
|
|
5684
|
-
actions: t =
|
|
5685
|
-
options: i =
|
|
5686
|
-
optionsIcon: r =
|
|
5683
|
+
actions: t = rn,
|
|
5684
|
+
options: i = rn,
|
|
5685
|
+
optionsIcon: r = Hl,
|
|
5687
5686
|
children: o,
|
|
5688
5687
|
contentProps: a,
|
|
5689
5688
|
disabled: l = !1,
|
|
@@ -5695,14 +5694,14 @@ function Ss({
|
|
|
5695
5694
|
isLoading: v = !1,
|
|
5696
5695
|
margin: g
|
|
5697
5696
|
}) {
|
|
5698
|
-
const m =
|
|
5697
|
+
const m = Xn(), [f, h] = _(!0), k = s !== void 0 && u !== void 0, b = d !== !1 ? k ? s : f : !0, M = k ? u : h, [I, x] = _(null), A = !!I, E = () => {
|
|
5699
5698
|
d && M(!b);
|
|
5700
5699
|
}, O = (W) => x(W.currentTarget), $ = () => x(null);
|
|
5701
5700
|
function D(W) {
|
|
5702
5701
|
W && W(), $();
|
|
5703
5702
|
}
|
|
5704
5703
|
const P = (W) => /* @__PURE__ */ n(
|
|
5705
|
-
|
|
5704
|
+
nn,
|
|
5706
5705
|
{
|
|
5707
5706
|
"aria-label": W.label,
|
|
5708
5707
|
onClick: W.action,
|
|
@@ -5711,20 +5710,20 @@ function Ss({
|
|
|
5711
5710
|
},
|
|
5712
5711
|
W.id
|
|
5713
5712
|
);
|
|
5714
|
-
return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ w(
|
|
5715
|
-
v ? /* @__PURE__ */ n(
|
|
5716
|
-
/* @__PURE__ */ w(
|
|
5713
|
+
return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ w(Pl, { margin: g, component: "section", "aria-label": e, children: [
|
|
5714
|
+
v ? /* @__PURE__ */ n(Ol, {}) : null,
|
|
5715
|
+
/* @__PURE__ */ w(Wl, { container: !0, expanded: s, children: [
|
|
5717
5716
|
/* @__PURE__ */ n(
|
|
5718
|
-
|
|
5717
|
+
Rl,
|
|
5719
5718
|
{
|
|
5720
5719
|
expandable: d,
|
|
5721
|
-
startIcon: d && /* @__PURE__ */ n(
|
|
5720
|
+
startIcon: d && /* @__PURE__ */ n(di, { children: b ? /* @__PURE__ */ n(Fl, {}) : /* @__PURE__ */ n(Nl, {}) }),
|
|
5722
5721
|
onClick: E,
|
|
5723
5722
|
tabIndex: d ? 0 : -1,
|
|
5724
|
-
children: /* @__PURE__ */ n(pe, { title: e, children: /* @__PURE__ */ n(
|
|
5723
|
+
children: /* @__PURE__ */ n(pe, { title: e, children: /* @__PURE__ */ n(Bl, { expanded: s, align: "left", variant: "subtitle1", children: e }) })
|
|
5725
5724
|
}
|
|
5726
5725
|
),
|
|
5727
|
-
/* @__PURE__ */ w(
|
|
5726
|
+
/* @__PURE__ */ w(_l, { item: !0, children: [
|
|
5728
5727
|
c,
|
|
5729
5728
|
t.length > 0 && t.map((W) => W.tooltip ? /* @__PURE__ */ n(
|
|
5730
5729
|
pe,
|
|
@@ -5737,7 +5736,7 @@ function Ss({
|
|
|
5737
5736
|
) : P(W)),
|
|
5738
5737
|
i.length > 0 && /* @__PURE__ */ w(ie, { children: [
|
|
5739
5738
|
/* @__PURE__ */ n(
|
|
5740
|
-
|
|
5739
|
+
nn,
|
|
5741
5740
|
{
|
|
5742
5741
|
"aria-label": "options",
|
|
5743
5742
|
"aria-controls": "options-menu",
|
|
@@ -5748,7 +5747,7 @@ function Ss({
|
|
|
5748
5747
|
}
|
|
5749
5748
|
),
|
|
5750
5749
|
/* @__PURE__ */ n(
|
|
5751
|
-
|
|
5750
|
+
zl,
|
|
5752
5751
|
{
|
|
5753
5752
|
id: "options-menu",
|
|
5754
5753
|
elevation: 8,
|
|
@@ -5778,40 +5777,40 @@ function Ss({
|
|
|
5778
5777
|
] })
|
|
5779
5778
|
] })
|
|
5780
5779
|
] }),
|
|
5781
|
-
/* @__PURE__ */ n(
|
|
5780
|
+
/* @__PURE__ */ n(St, { ref: m, in: b, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ w(S, { ...a, children: [
|
|
5782
5781
|
/* @__PURE__ */ n(S, { pt: 1, children: o }),
|
|
5783
5782
|
p ?? /* @__PURE__ */ n(S, { children: p })
|
|
5784
5783
|
] }) })
|
|
5785
5784
|
] });
|
|
5786
5785
|
}
|
|
5787
5786
|
export {
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5787
|
+
ls as BarWidgetUI,
|
|
5788
|
+
ss as CategoryWidgetUI,
|
|
5789
|
+
ms as ComparativeCategoryWidgetUI,
|
|
5790
|
+
ys as ComparativeFormulaWidgetUI,
|
|
5791
|
+
vs as ComparativePieWidgetUI,
|
|
5792
|
+
Va as FeatureSelectionUIDropdown,
|
|
5793
|
+
qa as FeatureSelectionUIGeometryChips,
|
|
5794
|
+
_a as FeatureSelectionUIToggleButton,
|
|
5795
|
+
ws as FeatureSelectionWidgetUI,
|
|
5796
|
+
cs as FormulaWidgetUI,
|
|
5798
5797
|
Me as GroupDateTypes,
|
|
5799
|
-
|
|
5798
|
+
ds as HistogramWidgetUI,
|
|
5800
5799
|
Ce as LEGEND_TYPES,
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5800
|
+
sl as LegendCategories,
|
|
5801
|
+
xl as LegendIcon,
|
|
5802
|
+
yl as LegendProportion,
|
|
5803
|
+
Qt as LegendRamp,
|
|
5804
|
+
xs as LegendWidgetUI,
|
|
5805
|
+
bs as NoDataAlert,
|
|
5806
|
+
us as PieWidgetUI,
|
|
5807
|
+
ps as RangeWidgetUI,
|
|
5808
|
+
gs as ScatterPlotWidgetUI,
|
|
5809
|
+
It as TIME_SERIES_CHART_TYPES,
|
|
5810
|
+
hs as TableWidgetUI,
|
|
5811
|
+
Ao as TimeSeriesProvider,
|
|
5812
|
+
fs as TimeSeriesWidgetUI,
|
|
5813
|
+
ks as WrapperWidgetUI,
|
|
5814
|
+
Et as useTimeSeriesContext,
|
|
5815
|
+
Eo as useTimeSeriesInteractivity
|
|
5817
5816
|
};
|