@carto/meridian-ds 0.1.1-alpha.5 → 1.0.0-alpha-muiv6.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 +14 -0
- package/README.md +5 -5
- package/dist/{Alert-CT76xuh3.cjs → Alert-C0iusY_y.cjs} +1 -1
- package/dist/{Alert-CU0-7Oca.js → Alert-CAXy8Ryb.js} +1 -1
- package/dist/ArrowDown-B1AG0MlL.js +24 -0
- package/dist/ArrowDown-CGnG0E-4.cjs +1 -0
- package/dist/MenuItem-CYbg2TdD.cjs +9 -0
- package/dist/MenuItem-DlGBm9LU.js +3565 -0
- package/dist/SwatchSquare-C-QxZLYN.cjs +1 -0
- package/dist/SwatchSquare-DAne_6Gi.js +35 -0
- package/dist/{TablePaginationActions-C9YCSB32.js → TablePaginationActions-DdTjHDJ5.js} +842 -566
- package/dist/TablePaginationActions-DfvzICj9.cjs +10 -0
- package/dist/components/index.cjs +5 -1
- package/dist/components/index.js +13845 -617
- package/dist/custom-icons/index.cjs +1 -1
- package/dist/custom-icons/index.js +4174 -57
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +393 -152
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/PasswordField.d.ts.map +1 -1
- package/dist/types/components/atoms/SelectField.d.ts.map +1 -1
- package/dist/types/components/molecules/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/ClearButton.d.ts +6 -0
- package/dist/types/components/organisms/DatePickers/ClearButton.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/DateFieldContainer.d.ts +8 -0
- package/dist/types/components/organisms/DatePickers/DateFieldContainer.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/DatePicker.d.ts +4 -0
- package/dist/types/components/organisms/DatePickers/DatePicker.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts +4 -0
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts +4 -0
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/PickersDay.d.ts +4 -0
- package/dist/types/components/organisms/DatePickers/PickersDay.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts +4 -0
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/index.d.ts +5 -0
- package/dist/types/components/organisms/DatePickers/index.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/types.d.ts +35 -0
- package/dist/types/components/organisms/DatePickers/types.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/utils.d.ts +3 -0
- package/dist/types/components/organisms/DatePickers/utils.d.ts.map +1 -0
- package/dist/types/components/organisms/index.d.ts +2 -0
- package/dist/types/components/organisms/index.d.ts.map +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/MapCopy.d.ts +4 -0
- package/dist/types/custom-icons/MapCopy.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/localization/en.d.ts +9 -0
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +9 -0
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +9 -0
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +27 -0
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/types/theme/carto-theme.d.ts +187 -3
- package/dist/types/theme/carto-theme.d.ts.map +1 -1
- package/dist/types/theme/sections/components/buttons.d.ts.map +1 -1
- package/dist/types/theme/sections/components/date-pickers.d.ts +3 -0
- package/dist/types/theme/sections/components/date-pickers.d.ts.map +1 -0
- package/dist/types/theme/types.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/types/widgets/legend/legend-types/LegendProportion.d.ts.map +1 -1
- package/dist/widgets/index.cjs +15 -15
- package/dist/widgets/index.js +788 -795
- package/package.json +20 -17
- package/dist/TablePaginationActions-5u10SobX.cjs +0 -9
- 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/components/molecules/UploadField/StyledUploadField.d.ts +0 -8
- package/dist/types/components/molecules/UploadField/StyledUploadField.d.ts.map +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/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts +0 -32
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.styled.d.ts.map +0 -1
- package/dist/types/widgets/SkeletonWidgets.d.ts +0 -20
- package/dist/types/widgets/SkeletonWidgets.d.ts.map +0 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.styled.d.ts +0 -45
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.styled.d.ts.map +0 -1
- package/dist/types/widgets/legend/LegendWidgetUI.styles.d.ts +0 -31
- package/dist/types/widgets/legend/LegendWidgetUI.styles.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, debounce as Kn, Slider as xt, TableCell as bt, Table as ln, TableHead as sn, TableRow as Je, TableBody as cn, TableContainer 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, ListItem as ni, Chip as ii, List as ri, Paper as pn, Popover as oi, Select as ai, ListItemText as li, Collapse as St, Drawer as si, Icon as ci, LinearProgress as di } from "@mui/material";
|
|
4
4
|
import { useIntl as le } from "react-intl";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { S as
|
|
8
|
-
import { ChevronLeft as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
function
|
|
5
|
+
import { x as ui, w as se, T as z, S as B, B as Mt, a as pi, b as pt } from "../TablePaginationActions-DdTjHDJ5.js";
|
|
6
|
+
import gi from "echarts-for-react";
|
|
7
|
+
import { S as Qe, a as hi } from "../SwatchSquare-DAne_6Gi.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 { lighten as ki, styled as Si } from "@mui/material/styles";
|
|
10
|
+
import { A as Mi } from "../Alert-CAXy8Ryb.js";
|
|
11
|
+
import { c as gn, a as Ii, b as hn } from "../paletteUtils-BEwZhrLg.js";
|
|
12
|
+
import Ci from "@mui/icons-material/KeyboardArrowDown";
|
|
13
|
+
import Ti from "@mui/icons-material/Close";
|
|
14
|
+
import Ai from "@mui/icons-material/LayersOutlined";
|
|
15
|
+
import Ei from "@mui/icons-material/VisibilityOutlined";
|
|
16
|
+
import Li from "@mui/icons-material/VisibilityOffOutlined";
|
|
17
|
+
import $i from "@mui/icons-material/ExpandMore";
|
|
18
|
+
import Di from "@mui/icons-material/ExpandLess";
|
|
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(dn)(() => ({
|
|
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(ln, { "aria-label": "skeleton table", size: t ? "small" : "medium", children: [
|
|
2233
|
+
/* @__PURE__ */ n(sn, { 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(cn, { 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(dn, { style: J, children: /* @__PURE__ */ w(ln, { 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(sn, { 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,44 +2405,46 @@ 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(cn, { 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),
|
|
2422
2422
|
onMouseLeave: () => r == null ? void 0 : r(a),
|
|
2423
2423
|
onClick: () => o && o(a),
|
|
2424
|
-
children: e.map(
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2424
|
+
children: e.map(
|
|
2425
|
+
({ field: s, headerName: u, align: p, component: c, formatter: v }) => {
|
|
2426
|
+
var m;
|
|
2427
|
+
let g = (m = Object.entries(a).find(([f]) => f.toUpperCase() === s.toUpperCase())) == null ? void 0 : m[1];
|
|
2428
|
+
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(
|
|
2429
|
+
lo,
|
|
2430
|
+
{
|
|
2431
|
+
scope: "row",
|
|
2432
|
+
align: p ?? "left",
|
|
2433
|
+
children: c ? c(g) : g
|
|
2434
|
+
},
|
|
2435
|
+
`${d}_${s}`
|
|
2436
|
+
);
|
|
2437
|
+
}
|
|
2438
|
+
)
|
|
2437
2439
|
},
|
|
2438
2440
|
d
|
|
2439
2441
|
);
|
|
2440
2442
|
}) });
|
|
2441
2443
|
}
|
|
2442
|
-
function
|
|
2444
|
+
function In(e, t, i, r, o) {
|
|
2443
2445
|
const a = Array.isArray(e) ? e : [e], [l] = a[0].data, d = new Date(l);
|
|
2444
2446
|
return `<div style='minWidth: 160px;'>
|
|
2445
|
-
<p style='font-weight: 600; line-height: 1; margin: 4px 0;'>${
|
|
2447
|
+
<p style='font-weight: 600; line-height: 1; margin: 4px 0;'>${Tn({ date: d, stepMultiplier: r, stepSize: t })}</p>
|
|
2446
2448
|
${a.reduce((u, p) => {
|
|
2447
2449
|
if (p.value !== void 0 && p.value !== null) {
|
|
2448
2450
|
const c = `<div style='display: flex; flex-direction: row; align-items: center; justify-content: spread; height: 20px; gap: 8px;'>
|
|
@@ -2464,18 +2466,18 @@ function Cn(e, t, i, r, o) {
|
|
|
2464
2466
|
}, []).join("")}
|
|
2465
2467
|
</div>`;
|
|
2466
2468
|
}
|
|
2467
|
-
var
|
|
2468
|
-
function
|
|
2469
|
+
var It = /* @__PURE__ */ ((e) => (e.LINE = "line", e.BAR = "bar", e))(It || {});
|
|
2470
|
+
function Yt(e) {
|
|
2469
2471
|
if (typeof e == "object" && typeof (e == null ? void 0 : e.getTime) == "function")
|
|
2470
2472
|
return e.getTime();
|
|
2471
2473
|
const t = new Date(e).getTime();
|
|
2472
2474
|
if (isFinite(t))
|
|
2473
2475
|
return t;
|
|
2474
2476
|
}
|
|
2475
|
-
function
|
|
2477
|
+
function Cn(e) {
|
|
2476
2478
|
return typeof e == "object" && typeof (e == null ? void 0 : e.getTime) == "function" ? e : new Date(e);
|
|
2477
2479
|
}
|
|
2478
|
-
function
|
|
2480
|
+
function nt(e, t) {
|
|
2479
2481
|
var i, r;
|
|
2480
2482
|
for (let o = 0; o < t.length; o++) {
|
|
2481
2483
|
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 +2491,85 @@ function tt(e, t) {
|
|
|
2489
2491
|
return o;
|
|
2490
2492
|
}
|
|
2491
2493
|
}
|
|
2492
|
-
function
|
|
2494
|
+
function ho(e) {
|
|
2493
2495
|
let t, i = 0;
|
|
2494
2496
|
for (const { name: r } of e)
|
|
2495
2497
|
r !== t && (t = r, i++);
|
|
2496
2498
|
return i;
|
|
2497
2499
|
}
|
|
2498
|
-
function
|
|
2500
|
+
function fo(e) {
|
|
2499
2501
|
const t = new Date(e), i = t.getDay(), r = t.getDate() - i + (i ? 1 : -6);
|
|
2500
2502
|
return t.setDate(r), t.setHours(0, 0, 0, 0), t.getTime();
|
|
2501
2503
|
}
|
|
2502
2504
|
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
|
|
2505
|
+
const Ct = {
|
|
2504
2506
|
year: Ee,
|
|
2505
2507
|
month: Ee,
|
|
2506
2508
|
week: Ee,
|
|
2507
2509
|
day: Ee,
|
|
2508
|
-
hour:
|
|
2510
|
+
hour: wo,
|
|
2509
2511
|
minute: Vt,
|
|
2510
2512
|
second: Vt
|
|
2511
|
-
},
|
|
2512
|
-
year:
|
|
2513
|
-
month:
|
|
2514
|
-
week:
|
|
2515
|
-
day:
|
|
2516
|
-
hour:
|
|
2517
|
-
minute:
|
|
2518
|
-
second:
|
|
2513
|
+
}, mo = {
|
|
2514
|
+
year: To,
|
|
2515
|
+
month: Co,
|
|
2516
|
+
week: Io,
|
|
2517
|
+
day: Mo,
|
|
2518
|
+
hour: So,
|
|
2519
|
+
minute: ko,
|
|
2520
|
+
second: bo
|
|
2519
2521
|
};
|
|
2520
|
-
function
|
|
2522
|
+
function yo({
|
|
2521
2523
|
date: e,
|
|
2522
2524
|
stepSize: t
|
|
2523
2525
|
}) {
|
|
2524
|
-
const i =
|
|
2526
|
+
const i = Ct[t];
|
|
2525
2527
|
if (!i) throw new Error("formatTime: invalid stepSize");
|
|
2526
2528
|
return i(e);
|
|
2527
2529
|
}
|
|
2528
|
-
function
|
|
2530
|
+
function it({
|
|
2529
2531
|
start: e,
|
|
2530
2532
|
end: t,
|
|
2531
2533
|
stepSize: i
|
|
2532
2534
|
}) {
|
|
2533
2535
|
if (e > t)
|
|
2534
|
-
return
|
|
2535
|
-
const r =
|
|
2536
|
+
return it({ start: t, end: e, stepSize: i });
|
|
2537
|
+
const r = Ct[i];
|
|
2536
2538
|
if (!r)
|
|
2537
2539
|
throw new Error("formatTimeRange: missing formatter or invalid stepSize");
|
|
2538
2540
|
const o = r(e), a = r(t);
|
|
2539
2541
|
return `${o} - ${a}`;
|
|
2540
2542
|
}
|
|
2541
|
-
function
|
|
2543
|
+
function Tn({
|
|
2542
2544
|
date: e,
|
|
2543
2545
|
stepSize: t,
|
|
2544
2546
|
stepMultiplier: i
|
|
2545
2547
|
}) {
|
|
2546
|
-
if (!
|
|
2548
|
+
if (!Ct[t])
|
|
2547
2549
|
throw new Error("formatBucketRange: missing formatter or invalid stepSize");
|
|
2548
|
-
const { start: o, end: a } =
|
|
2550
|
+
const { start: o, end: a } = xo({ date: e, stepSize: t, stepMultiplier: i });
|
|
2549
2551
|
if (i === 1) {
|
|
2550
2552
|
if (t === "day")
|
|
2551
|
-
return
|
|
2553
|
+
return yo({ date: o, stepSize: t });
|
|
2552
2554
|
if (t === "second")
|
|
2553
|
-
return `${Ee(o)} ${
|
|
2555
|
+
return `${Ee(o)} ${ft(
|
|
2554
2556
|
o
|
|
2555
|
-
)} - ${
|
|
2557
|
+
)} - ${ft(a)}`;
|
|
2556
2558
|
}
|
|
2557
|
-
return
|
|
2559
|
+
return it({ start: o, end: a, stepSize: t });
|
|
2558
2560
|
}
|
|
2559
|
-
const
|
|
2561
|
+
const Tt = (e) => 1e3 * e, At = (e) => Tt(60 * e), vo = (e) => At(60 * e);
|
|
2560
2562
|
function Ee(e) {
|
|
2561
2563
|
return e.toLocaleDateString();
|
|
2562
2564
|
}
|
|
2563
|
-
function
|
|
2565
|
+
function wo(e) {
|
|
2564
2566
|
return Ee(e) + " " + e.toLocaleTimeString(void 0, {
|
|
2565
2567
|
hour: "numeric",
|
|
2566
2568
|
minute: "2-digit",
|
|
2567
2569
|
hour12: !0
|
|
2568
2570
|
});
|
|
2569
2571
|
}
|
|
2570
|
-
function
|
|
2572
|
+
function ft(e) {
|
|
2571
2573
|
return e.toLocaleTimeString(void 0, {
|
|
2572
2574
|
hour: "2-digit",
|
|
2573
2575
|
minute: "2-digit",
|
|
@@ -2576,19 +2578,19 @@ function ht(e) {
|
|
|
2576
2578
|
});
|
|
2577
2579
|
}
|
|
2578
2580
|
function Vt(e) {
|
|
2579
|
-
return Ee(e) + " " +
|
|
2581
|
+
return Ee(e) + " " + ft(e);
|
|
2580
2582
|
}
|
|
2581
|
-
function
|
|
2583
|
+
function xo({
|
|
2582
2584
|
date: e,
|
|
2583
2585
|
stepSize: t,
|
|
2584
2586
|
stepMultiplier: i = 1
|
|
2585
2587
|
}) {
|
|
2586
|
-
const r =
|
|
2588
|
+
const r = mo[t];
|
|
2587
2589
|
if (!r)
|
|
2588
2590
|
throw new Error("getBucketInterval: invalid bucket size");
|
|
2589
2591
|
return r({ date: e, stepMultiplier: i });
|
|
2590
2592
|
}
|
|
2591
|
-
function
|
|
2593
|
+
function bo({
|
|
2592
2594
|
date: e,
|
|
2593
2595
|
stepMultiplier: t = 1
|
|
2594
2596
|
}) {
|
|
@@ -2600,10 +2602,10 @@ function So({
|
|
|
2600
2602
|
e.getMinutes(),
|
|
2601
2603
|
e.getSeconds(),
|
|
2602
2604
|
0
|
|
2603
|
-
), r = new Date(i.getTime() +
|
|
2605
|
+
), r = new Date(i.getTime() + Tt(t - 1) + 999);
|
|
2604
2606
|
return { start: i, end: r };
|
|
2605
2607
|
}
|
|
2606
|
-
function
|
|
2608
|
+
function ko({
|
|
2607
2609
|
date: e,
|
|
2608
2610
|
stepMultiplier: t = 1
|
|
2609
2611
|
}) {
|
|
@@ -2616,11 +2618,11 @@ function Mo({
|
|
|
2616
2618
|
0,
|
|
2617
2619
|
0
|
|
2618
2620
|
), r = new Date(
|
|
2619
|
-
i.getTime() +
|
|
2621
|
+
i.getTime() + At(t - 1) + Tt(59)
|
|
2620
2622
|
);
|
|
2621
2623
|
return { start: i, end: r };
|
|
2622
2624
|
}
|
|
2623
|
-
function
|
|
2625
|
+
function So({
|
|
2624
2626
|
date: e,
|
|
2625
2627
|
stepMultiplier: t = 1
|
|
2626
2628
|
}) {
|
|
@@ -2633,11 +2635,11 @@ function Io({
|
|
|
2633
2635
|
0,
|
|
2634
2636
|
0
|
|
2635
2637
|
), r = new Date(
|
|
2636
|
-
i.getTime() +
|
|
2638
|
+
i.getTime() + vo(t - 1) + At(59)
|
|
2637
2639
|
);
|
|
2638
2640
|
return { start: i, end: r };
|
|
2639
2641
|
}
|
|
2640
|
-
function
|
|
2642
|
+
function Mo({
|
|
2641
2643
|
date: e,
|
|
2642
2644
|
stepMultiplier: t = 1
|
|
2643
2645
|
}) {
|
|
@@ -2656,25 +2658,25 @@ function Co({
|
|
|
2656
2658
|
);
|
|
2657
2659
|
return { start: i, end: r };
|
|
2658
2660
|
}
|
|
2659
|
-
function
|
|
2661
|
+
function Io({
|
|
2660
2662
|
date: e,
|
|
2661
2663
|
stepMultiplier: t = 1
|
|
2662
2664
|
}) {
|
|
2663
|
-
const i = new Date(
|
|
2665
|
+
const i = new Date(fo(e)), r = new Date(
|
|
2664
2666
|
i.getFullYear(),
|
|
2665
2667
|
i.getMonth(),
|
|
2666
2668
|
i.getDate() + 6 + 7 * (t - 1)
|
|
2667
2669
|
);
|
|
2668
2670
|
return { start: i, end: r };
|
|
2669
2671
|
}
|
|
2670
|
-
function
|
|
2672
|
+
function Co({
|
|
2671
2673
|
date: e,
|
|
2672
2674
|
stepMultiplier: t = 1
|
|
2673
2675
|
}) {
|
|
2674
2676
|
const i = new Date(e.getFullYear(), e.getMonth(), 1), r = new Date(e.getFullYear(), e.getMonth() + t, 0);
|
|
2675
2677
|
return { start: i, end: r };
|
|
2676
2678
|
}
|
|
2677
|
-
function
|
|
2679
|
+
function To({
|
|
2678
2680
|
date: e,
|
|
2679
2681
|
stepMultiplier: t = 1
|
|
2680
2682
|
}) {
|
|
@@ -2682,7 +2684,7 @@ function Eo({
|
|
|
2682
2684
|
return { start: i, end: r };
|
|
2683
2685
|
}
|
|
2684
2686
|
const ye = () => {
|
|
2685
|
-
},
|
|
2687
|
+
}, An = Un({
|
|
2686
2688
|
isPlaying: !1,
|
|
2687
2689
|
setIsPlaying: ye,
|
|
2688
2690
|
isPaused: !1,
|
|
@@ -2694,10 +2696,10 @@ const ye = () => {
|
|
|
2694
2696
|
stop: ye,
|
|
2695
2697
|
intl: {}
|
|
2696
2698
|
});
|
|
2697
|
-
function
|
|
2698
|
-
return
|
|
2699
|
+
function Et() {
|
|
2700
|
+
return qn(An);
|
|
2699
2701
|
}
|
|
2700
|
-
function
|
|
2702
|
+
function Ao({
|
|
2701
2703
|
children: e,
|
|
2702
2704
|
isPlaying: t,
|
|
2703
2705
|
isPaused: i,
|
|
@@ -2710,7 +2712,7 @@ function Lo({
|
|
|
2710
2712
|
}) {
|
|
2711
2713
|
const [u, p] = _(t), [c, v] = _(i), [g, m] = _([]), f = se(s);
|
|
2712
2714
|
G(() => {
|
|
2713
|
-
const M = g.sort((I, x) => I < x ? -1 : 1).map(
|
|
2715
|
+
const M = g.sort((I, x) => I < x ? -1 : 1).map(Cn);
|
|
2714
2716
|
d == null || d(M);
|
|
2715
2717
|
}, [g, d]);
|
|
2716
2718
|
const h = oe(() => {
|
|
@@ -2726,10 +2728,10 @@ function Lo({
|
|
|
2726
2728
|
i !== c && v(i);
|
|
2727
2729
|
}, [i]), G(() => {
|
|
2728
2730
|
if (!l) return;
|
|
2729
|
-
const M = l.map(
|
|
2731
|
+
const M = l.map(Yt), I = g.map(Yt);
|
|
2730
2732
|
(M[0] !== I[0] || M[1] !== I[1]) && m(M);
|
|
2731
2733
|
}, l), /* @__PURE__ */ n(
|
|
2732
|
-
|
|
2734
|
+
An.Provider,
|
|
2733
2735
|
{
|
|
2734
2736
|
value: {
|
|
2735
2737
|
isPlaying: !!u,
|
|
@@ -2750,13 +2752,13 @@ function Lo({
|
|
|
2750
2752
|
const Gt = {};
|
|
2751
2753
|
let qe = null;
|
|
2752
2754
|
const _e = { seriesId: "0" };
|
|
2753
|
-
function
|
|
2755
|
+
function Eo({
|
|
2754
2756
|
echartsInstance: e,
|
|
2755
2757
|
data: t,
|
|
2756
2758
|
canSelectLines: i,
|
|
2757
2759
|
filterable: r
|
|
2758
2760
|
}) {
|
|
2759
|
-
const o = de(), { isPlaying: a, isPaused: l, setIsPaused: d, timeWindow: s, setTimeWindow: u, stop: p } =
|
|
2761
|
+
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
2762
|
(O) => M == null ? void 0 : M.setCursorStyle(O),
|
|
2761
2763
|
[M]
|
|
2762
2764
|
), x = oe(
|
|
@@ -2765,7 +2767,7 @@ function $o({
|
|
|
2765
2767
|
const [$] = e.convertFromPixel(_e, [
|
|
2766
2768
|
O.offsetX,
|
|
2767
2769
|
O.offsetY
|
|
2768
|
-
]), D =
|
|
2770
|
+
]), D = nt($, t);
|
|
2769
2771
|
u(D !== void 0 ? [t[D].name] : []);
|
|
2770
2772
|
}
|
|
2771
2773
|
},
|
|
@@ -2871,7 +2873,7 @@ function $o({
|
|
|
2871
2873
|
var P;
|
|
2872
2874
|
if (s.length !== 1)
|
|
2873
2875
|
return;
|
|
2874
|
-
const O = s[0], $ =
|
|
2876
|
+
const O = s[0], $ = nt(O, t);
|
|
2875
2877
|
if ($ === void 0)
|
|
2876
2878
|
return;
|
|
2877
2879
|
const D = (P = t[$]) == null ? void 0 : P.name;
|
|
@@ -2922,8 +2924,8 @@ function Xe(e, t, i) {
|
|
|
2922
2924
|
Gt[t] && (e != null && e.handler) && e.off(t, i);
|
|
2923
2925
|
};
|
|
2924
2926
|
}
|
|
2925
|
-
const
|
|
2926
|
-
function
|
|
2927
|
+
const En = B * 22, Ln = "100%", Lo = 5, $o = 3, Do = B * 20;
|
|
2928
|
+
function Po({
|
|
2927
2929
|
chartType: e,
|
|
2928
2930
|
formatter: t,
|
|
2929
2931
|
timeAxisSplitNumber: i,
|
|
@@ -2963,8 +2965,8 @@ function Wo({
|
|
|
2963
2965
|
borderWidth: 0,
|
|
2964
2966
|
backgroundColor: f.palette.black[90],
|
|
2965
2967
|
position: (C, N, T, R, q) => {
|
|
2966
|
-
const
|
|
2967
|
-
return q.contentSize[0] < q.viewSize[0] - C[0] ?
|
|
2968
|
+
const j = { top: 0 };
|
|
2969
|
+
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
2970
|
},
|
|
2969
2971
|
...o ? { formatter: o } : {}
|
|
2970
2972
|
}),
|
|
@@ -3025,9 +3027,9 @@ function Wo({
|
|
|
3025
3027
|
show: !1
|
|
3026
3028
|
},
|
|
3027
3029
|
splitNumber: i ?? (M !== void 0 ? Math.min(
|
|
3028
|
-
|
|
3029
|
-
Math.ceil(M /
|
|
3030
|
-
) :
|
|
3030
|
+
$o,
|
|
3031
|
+
Math.ceil(M / Do)
|
|
3032
|
+
) : Lo)
|
|
3031
3033
|
},
|
|
3032
3034
|
yAxis: {
|
|
3033
3035
|
type: "value",
|
|
@@ -3060,14 +3062,14 @@ function Wo({
|
|
|
3060
3062
|
max: x
|
|
3061
3063
|
}
|
|
3062
3064
|
};
|
|
3063
|
-
}, [f, x, t, M, i, m]), { timelineOptions: O, timeWindowOptions: $ } =
|
|
3065
|
+
}, [f, x, t, M, i, m]), { timelineOptions: O, timeWindowOptions: $ } = Eo({
|
|
3064
3066
|
echartsInstance: h,
|
|
3065
3067
|
data: a,
|
|
3066
3068
|
canSelectLines: !!g,
|
|
3067
3069
|
filterable: c
|
|
3068
3070
|
}), D = F(
|
|
3069
3071
|
() => l.map(({ data: C, color: N, name: T }, R) => {
|
|
3070
|
-
const q = v && v.length > 0,
|
|
3072
|
+
const q = v && v.length > 0, j = q && v.includes(T), X = !q || j ? N : f.palette.action.disabledBackground;
|
|
3071
3073
|
return {
|
|
3072
3074
|
id: String(R),
|
|
3073
3075
|
name: T,
|
|
@@ -3078,7 +3080,7 @@ function Wo({
|
|
|
3078
3080
|
type: e,
|
|
3079
3081
|
smooth: !0,
|
|
3080
3082
|
color: X,
|
|
3081
|
-
z: q &&
|
|
3083
|
+
z: q && j ? 10 : 0,
|
|
3082
3084
|
lineStyle: {
|
|
3083
3085
|
width: 2
|
|
3084
3086
|
},
|
|
@@ -3144,8 +3146,8 @@ function Wo({
|
|
|
3144
3146
|
N.disconnect();
|
|
3145
3147
|
};
|
|
3146
3148
|
}, [h]);
|
|
3147
|
-
const U = u ?
|
|
3148
|
-
return
|
|
3149
|
+
const U = u ? Ln : s ?? En;
|
|
3150
|
+
return on(() => {
|
|
3149
3151
|
var N;
|
|
3150
3152
|
const C = (N = h == null ? void 0 : h.getDom()) == null ? void 0 : N.parentElement;
|
|
3151
3153
|
C && I(C.clientWidth), h == null || h.resize();
|
|
@@ -3159,7 +3161,7 @@ function Wo({
|
|
|
3159
3161
|
}
|
|
3160
3162
|
);
|
|
3161
3163
|
}
|
|
3162
|
-
const
|
|
3164
|
+
const Oo = {
|
|
3163
3165
|
[Me.YEARS]: 60 * 60 * 24 * 7,
|
|
3164
3166
|
// Week
|
|
3165
3167
|
[Me.MONTHS]: 60 * 60 * 24,
|
|
@@ -3174,8 +3176,8 @@ const Ro = {
|
|
|
3174
3176
|
// Quarter hour
|
|
3175
3177
|
[Me.SECONDS]: 1
|
|
3176
3178
|
// Second
|
|
3177
|
-
},
|
|
3178
|
-
function
|
|
3179
|
+
}, Wo = [0.5, 1, 2, 3];
|
|
3180
|
+
function Ro({
|
|
3179
3181
|
data: e,
|
|
3180
3182
|
stepSize: t
|
|
3181
3183
|
}) {
|
|
@@ -3187,8 +3189,8 @@ function No({
|
|
|
3187
3189
|
stop: c,
|
|
3188
3190
|
togglePlay: v,
|
|
3189
3191
|
intl: g
|
|
3190
|
-
} =
|
|
3191
|
-
|
|
3192
|
+
} = Et();
|
|
3193
|
+
zo(
|
|
3192
3194
|
() => (d || s) && c(),
|
|
3193
3195
|
// Only executed when data changes
|
|
3194
3196
|
[e]
|
|
@@ -3203,8 +3205,8 @@ function No({
|
|
|
3203
3205
|
};
|
|
3204
3206
|
G(() => {
|
|
3205
3207
|
if (d && u.length === 2 && e.length) {
|
|
3206
|
-
const x =
|
|
3207
|
-
return
|
|
3208
|
+
const x = Oo[t] * 1e3;
|
|
3209
|
+
return Ho({
|
|
3208
3210
|
data: e,
|
|
3209
3211
|
timeWindow: u,
|
|
3210
3212
|
msTimeWindowStep: x * o,
|
|
@@ -3219,7 +3221,7 @@ function No({
|
|
|
3219
3221
|
}
|
|
3220
3222
|
}, [e, d, t, p, f, o]), G(() => {
|
|
3221
3223
|
if (d && u.length === 1 && e.length)
|
|
3222
|
-
return
|
|
3224
|
+
return Yo({
|
|
3223
3225
|
speed: o,
|
|
3224
3226
|
timelinePosition: u[0],
|
|
3225
3227
|
data: e,
|
|
@@ -3248,11 +3250,11 @@ function No({
|
|
|
3248
3250
|
color: "default",
|
|
3249
3251
|
onClick: k,
|
|
3250
3252
|
"data-testid": "clock",
|
|
3251
|
-
children: /* @__PURE__ */ n(
|
|
3253
|
+
children: /* @__PURE__ */ n(Fo, {})
|
|
3252
3254
|
}
|
|
3253
3255
|
),
|
|
3254
3256
|
/* @__PURE__ */ w(
|
|
3255
|
-
|
|
3257
|
+
kt,
|
|
3256
3258
|
{
|
|
3257
3259
|
anchorEl: i,
|
|
3258
3260
|
keepMounted: !0,
|
|
@@ -3260,7 +3262,7 @@ function No({
|
|
|
3260
3262
|
onClose: b,
|
|
3261
3263
|
children: [
|
|
3262
3264
|
/* @__PURE__ */ n(Pe, { disabled: !0, children: /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: g.formatMessage({ id: "c4r.widgets.timeSeries.speed" }) }) }),
|
|
3263
|
-
|
|
3265
|
+
Wo.map((I) => /* @__PURE__ */ w(
|
|
3264
3266
|
Pe,
|
|
3265
3267
|
{
|
|
3266
3268
|
selected: I === o,
|
|
@@ -3283,7 +3285,7 @@ function No({
|
|
|
3283
3285
|
disabled: !(s || d),
|
|
3284
3286
|
onClick: f,
|
|
3285
3287
|
"data-testid": "stop",
|
|
3286
|
-
children: /* @__PURE__ */ n(
|
|
3288
|
+
children: /* @__PURE__ */ n(Bo, {})
|
|
3287
3289
|
}
|
|
3288
3290
|
) }),
|
|
3289
3291
|
/* @__PURE__ */ n(S, { mt: 0.75, children: /* @__PURE__ */ n(
|
|
@@ -3293,13 +3295,13 @@ function No({
|
|
|
3293
3295
|
size: "small",
|
|
3294
3296
|
color: "primary",
|
|
3295
3297
|
onClick: h,
|
|
3296
|
-
children: d ? /* @__PURE__ */ n(
|
|
3298
|
+
children: d ? /* @__PURE__ */ n(_o, {}) : /* @__PURE__ */ n(No, {})
|
|
3297
3299
|
}
|
|
3298
3300
|
) })
|
|
3299
3301
|
] });
|
|
3300
3302
|
}
|
|
3301
|
-
function
|
|
3302
|
-
return /* @__PURE__ */ n(
|
|
3303
|
+
function Fo() {
|
|
3304
|
+
return /* @__PURE__ */ n(je, { viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
|
|
3303
3305
|
"path",
|
|
3304
3306
|
{
|
|
3305
3307
|
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 +3310,8 @@ function Bo() {
|
|
|
3308
3310
|
}
|
|
3309
3311
|
) });
|
|
3310
3312
|
}
|
|
3311
|
-
function
|
|
3312
|
-
return /* @__PURE__ */ n(
|
|
3313
|
+
function No() {
|
|
3314
|
+
return /* @__PURE__ */ n(je, { "data-testid": "play-icon", children: /* @__PURE__ */ n(
|
|
3313
3315
|
"path",
|
|
3314
3316
|
{
|
|
3315
3317
|
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 +3320,8 @@ function _o() {
|
|
|
3318
3320
|
}
|
|
3319
3321
|
) });
|
|
3320
3322
|
}
|
|
3321
|
-
function
|
|
3322
|
-
return /* @__PURE__ */ n(
|
|
3323
|
+
function Bo() {
|
|
3324
|
+
return /* @__PURE__ */ n(je, { children: /* @__PURE__ */ n(
|
|
3323
3325
|
"path",
|
|
3324
3326
|
{
|
|
3325
3327
|
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 +3330,8 @@ function zo() {
|
|
|
3328
3330
|
}
|
|
3329
3331
|
) });
|
|
3330
3332
|
}
|
|
3331
|
-
function
|
|
3332
|
-
return /* @__PURE__ */ n(
|
|
3333
|
+
function _o() {
|
|
3334
|
+
return /* @__PURE__ */ n(je, { "data-testid": "pause-icon", children: /* @__PURE__ */ n(
|
|
3333
3335
|
"path",
|
|
3334
3336
|
{
|
|
3335
3337
|
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 +3340,13 @@ function Ho() {
|
|
|
3338
3340
|
}
|
|
3339
3341
|
) });
|
|
3340
3342
|
}
|
|
3341
|
-
function
|
|
3343
|
+
function zo(e, t = []) {
|
|
3342
3344
|
const i = re(!1);
|
|
3343
3345
|
G(() => {
|
|
3344
3346
|
i.current ? e() : i.current = !0;
|
|
3345
3347
|
}, t);
|
|
3346
3348
|
}
|
|
3347
|
-
function
|
|
3349
|
+
function Ho({
|
|
3348
3350
|
msTimeWindowStep: e,
|
|
3349
3351
|
timeWindow: t,
|
|
3350
3352
|
data: i,
|
|
@@ -3363,8 +3365,8 @@ function jo({
|
|
|
3363
3365
|
};
|
|
3364
3366
|
d();
|
|
3365
3367
|
}
|
|
3366
|
-
const
|
|
3367
|
-
function
|
|
3368
|
+
const jo = 2;
|
|
3369
|
+
function Yo({
|
|
3368
3370
|
speed: e,
|
|
3369
3371
|
timelinePosition: t,
|
|
3370
3372
|
data: i,
|
|
@@ -3372,11 +3374,11 @@ function Go({
|
|
|
3372
3374
|
onEnd: o,
|
|
3373
3375
|
animationRef: a
|
|
3374
3376
|
}) {
|
|
3375
|
-
let l =
|
|
3376
|
-
const s =
|
|
3377
|
+
let l = nt(t, i) ?? 0, d = i[l].name;
|
|
3378
|
+
const s = ho(i), u = Math.max(
|
|
3377
3379
|
Math.round(Math.sqrt(s) / 2),
|
|
3378
3380
|
// FPS based on number of unique time points
|
|
3379
|
-
|
|
3381
|
+
jo
|
|
3380
3382
|
// Min FPS
|
|
3381
3383
|
) * e, p = () => {
|
|
3382
3384
|
a.current.timeoutId = setTimeout(() => {
|
|
@@ -3394,38 +3396,38 @@ function Go({
|
|
|
3394
3396
|
};
|
|
3395
3397
|
p();
|
|
3396
3398
|
}
|
|
3397
|
-
const
|
|
3399
|
+
const Vo = y(S)(() => ({
|
|
3398
3400
|
containerType: "inline-size",
|
|
3399
3401
|
display: "flex",
|
|
3400
3402
|
flexDirection: "column"
|
|
3401
|
-
})),
|
|
3403
|
+
})), Go = y(S)(() => ({
|
|
3402
3404
|
display: "flex",
|
|
3403
3405
|
flexDirection: "column"
|
|
3404
|
-
})),
|
|
3406
|
+
})), $n = y(S)(() => ({
|
|
3405
3407
|
display: "flex",
|
|
3406
3408
|
flexDirection: "row"
|
|
3407
|
-
})),
|
|
3409
|
+
})), Uo = y($n)(() => ({
|
|
3408
3410
|
alignItems: "center",
|
|
3409
3411
|
justifyContent: "space-between"
|
|
3410
|
-
})),
|
|
3412
|
+
})), qo = y(S)(({ theme: e }) => ({
|
|
3411
3413
|
flexShrink: 0,
|
|
3412
3414
|
marginLeft: 0,
|
|
3413
3415
|
paddingLeft: e.spacing(1),
|
|
3414
|
-
[`@container (max-width: ${
|
|
3416
|
+
[`@container (max-width: ${Mt.XS}px)`]: {
|
|
3415
3417
|
paddingLeft: 0
|
|
3416
3418
|
},
|
|
3417
3419
|
paddingBottom: e.spacing(1.5),
|
|
3418
3420
|
alignSelf: "flex-end"
|
|
3419
|
-
})),
|
|
3421
|
+
})), Xo = y(S)(({ theme: e }) => ({
|
|
3420
3422
|
alignSelf: "normal",
|
|
3421
3423
|
minWidth: 0,
|
|
3422
3424
|
paddingLeft: e.spacing(5),
|
|
3423
3425
|
paddingBottom: e.spacing(1.5),
|
|
3424
|
-
[`@container (max-width: ${
|
|
3426
|
+
[`@container (max-width: ${Mt.XS}px)`]: {
|
|
3425
3427
|
paddingLeft: e.spacing(1)
|
|
3426
3428
|
}
|
|
3427
3429
|
}));
|
|
3428
|
-
function
|
|
3430
|
+
function Dn({
|
|
3429
3431
|
fitHeight: e,
|
|
3430
3432
|
header: t,
|
|
3431
3433
|
controls: i,
|
|
@@ -3434,17 +3436,17 @@ function Pn({
|
|
|
3434
3436
|
}) {
|
|
3435
3437
|
const a = o && /* @__PURE__ */ n(S, { flex: 0, mt: 2, children: o });
|
|
3436
3438
|
return /* @__PURE__ */ w(
|
|
3437
|
-
|
|
3439
|
+
Vo,
|
|
3438
3440
|
{
|
|
3439
3441
|
style: {
|
|
3440
3442
|
flex: e ? "1" : void 0
|
|
3441
3443
|
},
|
|
3442
3444
|
children: [
|
|
3443
|
-
/* @__PURE__ */ n(
|
|
3444
|
-
i ? /* @__PURE__ */ w(
|
|
3445
|
-
/* @__PURE__ */ w(
|
|
3446
|
-
/* @__PURE__ */ n(
|
|
3447
|
-
/* @__PURE__ */ n(
|
|
3445
|
+
/* @__PURE__ */ n(Uo, { flex: 0, children: t }),
|
|
3446
|
+
i ? /* @__PURE__ */ w(Go, { flex: 1, children: [
|
|
3447
|
+
/* @__PURE__ */ w($n, { flex: 1, children: [
|
|
3448
|
+
/* @__PURE__ */ n(qo, { flex: 0, children: i }),
|
|
3449
|
+
/* @__PURE__ */ n(Xo, { flex: 1, children: r })
|
|
3448
3450
|
] }),
|
|
3449
3451
|
a
|
|
3450
3452
|
] }) : /* @__PURE__ */ w(ie, { children: [
|
|
@@ -3455,20 +3457,29 @@ function Pn({
|
|
|
3455
3457
|
}
|
|
3456
3458
|
);
|
|
3457
3459
|
}
|
|
3458
|
-
const
|
|
3460
|
+
const Ko = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox: "0 0 720 124", ...e, children: /* @__PURE__ */ n(
|
|
3461
|
+
"path",
|
|
3462
|
+
{
|
|
3463
|
+
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",
|
|
3464
|
+
stroke: "currentColor",
|
|
3465
|
+
strokeWidth: "2",
|
|
3466
|
+
strokeLinejoin: "round",
|
|
3467
|
+
vectorEffect: "non-scaling-stroke"
|
|
3468
|
+
}
|
|
3469
|
+
) }), Zo = y(S)(() => ({
|
|
3459
3470
|
display: "flex",
|
|
3460
3471
|
flexDirection: "column",
|
|
3461
3472
|
justifyContent: "flex-end"
|
|
3462
|
-
})),
|
|
3473
|
+
})), Jo = y(S)(() => ({
|
|
3463
3474
|
position: "relative",
|
|
3464
3475
|
height: "100%",
|
|
3465
3476
|
alignSelf: "normal",
|
|
3466
3477
|
display: "flex",
|
|
3467
3478
|
flexDirection: "column",
|
|
3468
3479
|
justifyContent: "flex-end"
|
|
3469
|
-
})),
|
|
3480
|
+
})), Qo = y(S)(({ theme: e }) => ({
|
|
3470
3481
|
padding: e.spacing(2.25, 0, 0.5, 2)
|
|
3471
|
-
})),
|
|
3482
|
+
})), ea = y(mn)(({ theme: e }) => ({
|
|
3472
3483
|
flexDirection: "column",
|
|
3473
3484
|
flex: 1,
|
|
3474
3485
|
height: "100%",
|
|
@@ -3482,12 +3493,12 @@ const Jo = y(S)(() => ({
|
|
|
3482
3493
|
stroke: e.palette.black[8]
|
|
3483
3494
|
}
|
|
3484
3495
|
}
|
|
3485
|
-
})),
|
|
3496
|
+
})), ta = y(S)(({ theme: e }) => ({
|
|
3486
3497
|
display: "flex",
|
|
3487
3498
|
flexDirection: "row",
|
|
3488
3499
|
justifyContent: "space-between",
|
|
3489
3500
|
padding: e.spacing(1.25, 0.5, 0.75, 0.5)
|
|
3490
|
-
})),
|
|
3501
|
+
})), na = y(S)(({ theme: e }) => ({
|
|
3491
3502
|
display: "flex",
|
|
3492
3503
|
flexDirection: "row",
|
|
3493
3504
|
gap: e.spacing(2),
|
|
@@ -3497,30 +3508,30 @@ const Jo = y(S)(() => ({
|
|
|
3497
3508
|
display: "flex",
|
|
3498
3509
|
flexDirection: "row",
|
|
3499
3510
|
gap: e.spacing(1)
|
|
3500
|
-
})),
|
|
3511
|
+
})), ia = ({
|
|
3501
3512
|
fitHeight: e,
|
|
3502
3513
|
height: t,
|
|
3503
3514
|
showControls: i,
|
|
3504
3515
|
showLegend: r
|
|
3505
3516
|
}) => /* @__PURE__ */ n(
|
|
3506
|
-
|
|
3517
|
+
Dn,
|
|
3507
3518
|
{
|
|
3508
3519
|
fitHeight: !!e,
|
|
3509
3520
|
header: /* @__PURE__ */ n(S, { pt: 1.25, pb: 0.75, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
|
|
3510
|
-
controls: i && /* @__PURE__ */ w(
|
|
3521
|
+
controls: i && /* @__PURE__ */ w(Zo, { children: [
|
|
3511
3522
|
/* @__PURE__ */ n(S, { p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) }),
|
|
3512
3523
|
/* @__PURE__ */ n(S, { mt: 2, p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) }),
|
|
3513
3524
|
/* @__PURE__ */ n(S, { mt: 1, p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) })
|
|
3514
3525
|
] }),
|
|
3515
|
-
chart: /* @__PURE__ */ w(
|
|
3516
|
-
/* @__PURE__ */ n(
|
|
3517
|
-
/* @__PURE__ */ n(
|
|
3518
|
-
/* @__PURE__ */ w(
|
|
3526
|
+
chart: /* @__PURE__ */ w(Jo, { style: { height: e ? Ln : t ?? En }, children: [
|
|
3527
|
+
/* @__PURE__ */ n(Qo, { flex: 0, children: /* @__PURE__ */ n(H, { width: 24, height: 8 }) }),
|
|
3528
|
+
/* @__PURE__ */ n(ea, { flex: 1, children: /* @__PURE__ */ n(Ko, { preserveAspectRatio: "none" }) }),
|
|
3529
|
+
/* @__PURE__ */ w(ta, { flex: 0, children: [
|
|
3519
3530
|
/* @__PURE__ */ n(H, { width: 32, height: 8 }),
|
|
3520
3531
|
/* @__PURE__ */ n(H, { width: 32, height: 8 })
|
|
3521
3532
|
] })
|
|
3522
3533
|
] }),
|
|
3523
|
-
legend: r && (r && /* @__PURE__ */ w(
|
|
3534
|
+
legend: r && (r && /* @__PURE__ */ w(na, { children: [
|
|
3524
3535
|
/* @__PURE__ */ w(Ut, { children: [
|
|
3525
3536
|
/* @__PURE__ */ n(H, { width: 8, height: 8 }),
|
|
3526
3537
|
/* @__PURE__ */ n(H, { width: 48, height: 8 })
|
|
@@ -3531,17 +3542,17 @@ const Jo = y(S)(() => ({
|
|
|
3531
3542
|
] })
|
|
3532
3543
|
] }))
|
|
3533
3544
|
}
|
|
3534
|
-
),
|
|
3535
|
-
function
|
|
3536
|
-
data: e =
|
|
3545
|
+
), Pn = (e) => e, On = [];
|
|
3546
|
+
function fs({
|
|
3547
|
+
data: e = On,
|
|
3537
3548
|
categories: t,
|
|
3538
3549
|
stepSize: i,
|
|
3539
3550
|
stepMultiplier: r = 1,
|
|
3540
|
-
chartType: o =
|
|
3551
|
+
chartType: o = It.LINE,
|
|
3541
3552
|
timeAxisSplitNumber: a,
|
|
3542
3553
|
tooltip: l = !0,
|
|
3543
|
-
tooltipFormatter: d =
|
|
3544
|
-
formatter: s =
|
|
3554
|
+
tooltipFormatter: d = In,
|
|
3555
|
+
formatter: s = Pn,
|
|
3545
3556
|
height: u,
|
|
3546
3557
|
fitHeight: p,
|
|
3547
3558
|
showControls: c = !0,
|
|
@@ -3559,7 +3570,7 @@ function ms({
|
|
|
3559
3570
|
onPause: E,
|
|
3560
3571
|
onStop: O,
|
|
3561
3572
|
isLoading: $ = !1,
|
|
3562
|
-
palette: D = Object.values(
|
|
3573
|
+
palette: D = Object.values(gn.qualitative.bold),
|
|
3563
3574
|
showLegend: P,
|
|
3564
3575
|
yAxisType: W = "dense"
|
|
3565
3576
|
}) {
|
|
@@ -3568,20 +3579,20 @@ function ms({
|
|
|
3568
3579
|
var R, q;
|
|
3569
3580
|
if (T.length === 2) {
|
|
3570
3581
|
((R = J.current) == null ? void 0 : R.length) === 1 && (m == null || m(void 0));
|
|
3571
|
-
const
|
|
3572
|
-
k == null || k(
|
|
3582
|
+
const j = T.sort((X, te) => X < te ? -1 : 1).map(Cn);
|
|
3583
|
+
k == null || k(j);
|
|
3573
3584
|
}
|
|
3574
3585
|
if (T.length === 1) {
|
|
3575
3586
|
((q = J.current) == null ? void 0 : q.length) === 2 && (k == null || k([]));
|
|
3576
|
-
const
|
|
3577
|
-
m == null || m(
|
|
3587
|
+
const j = nt(Number(T[0]), e);
|
|
3588
|
+
m == null || m(j);
|
|
3578
3589
|
}
|
|
3579
3590
|
J.current = T;
|
|
3580
3591
|
},
|
|
3581
3592
|
[k, m, e]
|
|
3582
3593
|
);
|
|
3583
3594
|
return C ? /* @__PURE__ */ n(
|
|
3584
|
-
|
|
3595
|
+
ia,
|
|
3585
3596
|
{
|
|
3586
3597
|
fitHeight: p,
|
|
3587
3598
|
height: u,
|
|
@@ -3589,7 +3600,7 @@ function ms({
|
|
|
3589
3600
|
showLegend: P
|
|
3590
3601
|
}
|
|
3591
3602
|
) : /* @__PURE__ */ n(
|
|
3592
|
-
|
|
3603
|
+
Ao,
|
|
3593
3604
|
{
|
|
3594
3605
|
isPlaying: I,
|
|
3595
3606
|
onPlay: x,
|
|
@@ -3600,7 +3611,7 @@ function ms({
|
|
|
3600
3611
|
onTimeWindowUpdate: N,
|
|
3601
3612
|
intl: U,
|
|
3602
3613
|
children: /* @__PURE__ */ n(
|
|
3603
|
-
|
|
3614
|
+
ra,
|
|
3604
3615
|
{
|
|
3605
3616
|
data: e,
|
|
3606
3617
|
categories: t,
|
|
@@ -3627,48 +3638,48 @@ function ms({
|
|
|
3627
3638
|
}
|
|
3628
3639
|
);
|
|
3629
3640
|
}
|
|
3630
|
-
function
|
|
3631
|
-
data: e =
|
|
3641
|
+
function ra({
|
|
3642
|
+
data: e = On,
|
|
3632
3643
|
categories: t,
|
|
3633
3644
|
stepSize: i,
|
|
3634
3645
|
stepMultiplier: r = 1,
|
|
3635
|
-
chartType: o =
|
|
3646
|
+
chartType: o = It.LINE,
|
|
3636
3647
|
timeAxisSplitNumber: a,
|
|
3637
3648
|
tooltip: l = !0,
|
|
3638
|
-
tooltipFormatter: d =
|
|
3639
|
-
formatter: s =
|
|
3649
|
+
tooltipFormatter: d = In,
|
|
3650
|
+
formatter: s = Pn,
|
|
3640
3651
|
height: u,
|
|
3641
3652
|
fitHeight: p = !1,
|
|
3642
3653
|
showControls: c = !0,
|
|
3643
3654
|
animation: v = !0,
|
|
3644
3655
|
filterable: g = !0,
|
|
3645
|
-
palette: m = Object.values(
|
|
3656
|
+
palette: m = Object.values(gn.qualitative.bold),
|
|
3646
3657
|
selectedCategories: f = [],
|
|
3647
3658
|
onSelectedCategoriesChange: h,
|
|
3648
3659
|
showLegend: k,
|
|
3649
3660
|
timelinePosition: b,
|
|
3650
3661
|
yAxisType: M = "dense"
|
|
3651
3662
|
}) {
|
|
3652
|
-
const I = de(), x = I.palette.secondary.main, { isPlaying: A, isPaused: E, timeWindow: O, stop: $, setTimeWindow: D, intl: P } =
|
|
3663
|
+
const I = de(), x = I.palette.secondary.main, { isPlaying: A, isPaused: E, timeWindow: O, stop: $, setTimeWindow: D, intl: P } = Et();
|
|
3653
3664
|
G(() => {
|
|
3654
3665
|
if (b !== void 0) {
|
|
3655
3666
|
if (b < 0 || b >= e.length) return;
|
|
3656
|
-
const
|
|
3657
|
-
D([
|
|
3667
|
+
const Y = e[b].name;
|
|
3668
|
+
D([Y]);
|
|
3658
3669
|
}
|
|
3659
3670
|
}, [b, e]), G(() => {
|
|
3660
3671
|
if (!e.length) return;
|
|
3661
|
-
const
|
|
3662
|
-
(O[0] <
|
|
3672
|
+
const Y = e[0].name, K = e[e.length - 1].name;
|
|
3673
|
+
(O[0] < Y || O[1] > K || O[1] < Y || O[1] > K) && D([]);
|
|
3663
3674
|
}, [e]);
|
|
3664
3675
|
const W = F(() => {
|
|
3665
|
-
const
|
|
3676
|
+
const Y = {}, K = t ? t.map((ue) => ({
|
|
3666
3677
|
name: ue,
|
|
3667
3678
|
data: [],
|
|
3668
|
-
color:
|
|
3679
|
+
color: Ii(ue, {
|
|
3669
3680
|
palette: m,
|
|
3670
3681
|
fallbackColor: x,
|
|
3671
|
-
colorMapping:
|
|
3682
|
+
colorMapping: Y
|
|
3672
3683
|
})
|
|
3673
3684
|
})) : [
|
|
3674
3685
|
{
|
|
@@ -3691,26 +3702,26 @@ function oa({
|
|
|
3691
3702
|
if (!e.length)
|
|
3692
3703
|
return "";
|
|
3693
3704
|
if (O.length === 2) {
|
|
3694
|
-
const [
|
|
3695
|
-
return
|
|
3705
|
+
const [Y, K] = O.map((ue) => new Date(ue));
|
|
3706
|
+
return it({ start: Y, end: K, stepSize: i });
|
|
3696
3707
|
}
|
|
3697
3708
|
if (!A && !E) {
|
|
3698
|
-
const
|
|
3699
|
-
return
|
|
3709
|
+
const Y = new Date(e[0].name), K = new Date(e[e.length - 1].name);
|
|
3710
|
+
return it({ start: Y, end: K, stepSize: i });
|
|
3700
3711
|
}
|
|
3701
3712
|
if (O.length === 1) {
|
|
3702
|
-
const
|
|
3703
|
-
return
|
|
3713
|
+
const Y = new Date(O[0]);
|
|
3714
|
+
return Tn({ date: Y, stepSize: i, stepMultiplier: r });
|
|
3704
3715
|
}
|
|
3705
3716
|
}, [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
3717
|
$(), D([]), h == null || h([]);
|
|
3707
|
-
}, N = (
|
|
3708
|
-
|
|
3718
|
+
}, N = (Y) => {
|
|
3719
|
+
Y.key === "Enter" && C();
|
|
3709
3720
|
}, T = oe(
|
|
3710
|
-
(
|
|
3721
|
+
(Y) => {
|
|
3711
3722
|
if (h) {
|
|
3712
|
-
const K = [...f], ue = K.indexOf(
|
|
3713
|
-
ue === -1 ? K.push(
|
|
3723
|
+
const K = [...f], ue = K.indexOf(Y);
|
|
3724
|
+
ue === -1 ? K.push(Y) : K.splice(ue, 1), h(K);
|
|
3714
3725
|
}
|
|
3715
3726
|
},
|
|
3716
3727
|
[h, f]
|
|
@@ -3730,13 +3741,13 @@ function oa({
|
|
|
3730
3741
|
)
|
|
3731
3742
|
] });
|
|
3732
3743
|
return /* @__PURE__ */ n(
|
|
3733
|
-
|
|
3744
|
+
Dn,
|
|
3734
3745
|
{
|
|
3735
3746
|
fitHeight: p,
|
|
3736
3747
|
header: q,
|
|
3737
|
-
controls: g && c && /* @__PURE__ */ n(
|
|
3748
|
+
controls: g && c && /* @__PURE__ */ n(Ro, { data: e, stepSize: i }),
|
|
3738
3749
|
chart: /* @__PURE__ */ n(
|
|
3739
|
-
|
|
3750
|
+
Po,
|
|
3740
3751
|
{
|
|
3741
3752
|
chartType: o,
|
|
3742
3753
|
timeAxisSplitNumber: a,
|
|
@@ -3745,8 +3756,8 @@ function oa({
|
|
|
3745
3756
|
categories: t,
|
|
3746
3757
|
tooltip: l,
|
|
3747
3758
|
formatter: s,
|
|
3748
|
-
tooltipFormatter: (
|
|
3749
|
-
|
|
3759
|
+
tooltipFormatter: (Y) => d(
|
|
3760
|
+
Y,
|
|
3750
3761
|
i,
|
|
3751
3762
|
s,
|
|
3752
3763
|
r,
|
|
@@ -3762,7 +3773,7 @@ function oa({
|
|
|
3762
3773
|
}
|
|
3763
3774
|
),
|
|
3764
3775
|
legend: R && /* @__PURE__ */ n(
|
|
3765
|
-
|
|
3776
|
+
Mn,
|
|
3766
3777
|
{
|
|
3767
3778
|
series: W,
|
|
3768
3779
|
selectedCategories: f,
|
|
@@ -3772,25 +3783,25 @@ function oa({
|
|
|
3772
3783
|
}
|
|
3773
3784
|
);
|
|
3774
3785
|
}
|
|
3775
|
-
const
|
|
3786
|
+
const oa = y("div")(({ theme: e }) => ({
|
|
3776
3787
|
padding: e.spacing(2, 0),
|
|
3777
3788
|
...e.typography.body2
|
|
3778
|
-
})),
|
|
3789
|
+
})), aa = y(S)(({ theme: e }) => ({
|
|
3779
3790
|
overflow: "auto",
|
|
3780
3791
|
maxHeight: e.spacing(40),
|
|
3781
3792
|
paddingRight: e.spacing(1),
|
|
3782
3793
|
margin: e.spacing(0.5, 0)
|
|
3783
|
-
})),
|
|
3794
|
+
})), la = y(S)(({ theme: e }) => ({
|
|
3784
3795
|
display: "flex",
|
|
3785
3796
|
alignItems: "center",
|
|
3786
3797
|
flexWrap: "wrap",
|
|
3787
3798
|
gap: e.spacing(1.5),
|
|
3788
3799
|
padding: e.spacing(2, 0)
|
|
3789
|
-
})),
|
|
3800
|
+
})), Wn = y(S)(({ theme: e, alignItems: t = "center" }) => ({
|
|
3790
3801
|
display: "flex",
|
|
3791
3802
|
alignItems: t,
|
|
3792
3803
|
gap: e.spacing(0.75)
|
|
3793
|
-
})),
|
|
3804
|
+
})), Rn = y("div", {
|
|
3794
3805
|
shouldForwardProp: (e) => e !== "color"
|
|
3795
3806
|
})(({ theme: e, color: t }) => ({
|
|
3796
3807
|
flexShrink: 0,
|
|
@@ -3798,11 +3809,11 @@ const aa = y("div")(({ theme: e }) => ({
|
|
|
3798
3809
|
height: e.spacing(1),
|
|
3799
3810
|
borderRadius: e.spacing(1),
|
|
3800
3811
|
backgroundColor: t
|
|
3801
|
-
})),
|
|
3812
|
+
})), sa = y(S)(({ theme: e }) => ({
|
|
3802
3813
|
display: "flex",
|
|
3803
3814
|
alignItems: "center",
|
|
3804
3815
|
gap: e.spacing(2)
|
|
3805
|
-
})),
|
|
3816
|
+
})), ca = y("div")(({ theme: e }) => ({
|
|
3806
3817
|
height: e.spacing(0.5),
|
|
3807
3818
|
width: "100%",
|
|
3808
3819
|
borderRadius: e.spacing(0.5),
|
|
@@ -3833,14 +3844,14 @@ const aa = y("div")(({ theme: e }) => ({
|
|
|
3833
3844
|
"& a": {
|
|
3834
3845
|
cursor: "pointer"
|
|
3835
3846
|
}
|
|
3836
|
-
})),
|
|
3847
|
+
})), da = y(pe)(({ theme: e }) => ({
|
|
3837
3848
|
".MuiTooltip-tooltip": {
|
|
3838
3849
|
color: e.palette.common.white,
|
|
3839
3850
|
maxWidth: 260,
|
|
3840
3851
|
marginBottom: 0,
|
|
3841
3852
|
overflow: "hidden"
|
|
3842
3853
|
}
|
|
3843
|
-
})),
|
|
3854
|
+
})), ua = y(ot)(({ theme: e }) => ({
|
|
3844
3855
|
marginTop: e.spacing(-0.5)
|
|
3845
3856
|
}));
|
|
3846
3857
|
y(S)(() => ({
|
|
@@ -3848,7 +3859,7 @@ y(S)(() => ({
|
|
|
3848
3859
|
flexWrap: "nowrap",
|
|
3849
3860
|
justifyContent: "space-between"
|
|
3850
3861
|
}));
|
|
3851
|
-
const
|
|
3862
|
+
const pa = y("div", {
|
|
3852
3863
|
shouldForwardProp: (e) => e !== "filterable"
|
|
3853
3864
|
})(({ filterable: e }) => ({
|
|
3854
3865
|
"& .progressbar div": {
|
|
@@ -3860,18 +3871,18 @@ const ga = y("div", {
|
|
|
3860
3871
|
backgroundColor: "var(--hover-color)"
|
|
3861
3872
|
}
|
|
3862
3873
|
}
|
|
3863
|
-
})),
|
|
3874
|
+
})), ga = y(S)(({ theme: e }) => ({
|
|
3864
3875
|
display: "flex",
|
|
3865
3876
|
alignItems: "center",
|
|
3866
3877
|
flexWrap: "nowrap",
|
|
3867
3878
|
overflow: "hidden",
|
|
3868
3879
|
gap: e.spacing(1)
|
|
3869
|
-
})),
|
|
3880
|
+
})), ha = y(S)(({ theme: e }) => ({
|
|
3870
3881
|
padding: e.spacing(0.5, 0),
|
|
3871
3882
|
flexGrow: "1",
|
|
3872
3883
|
maxWidth: "100%",
|
|
3873
3884
|
minWidth: 0
|
|
3874
|
-
})),
|
|
3885
|
+
})), fa = y(S, {
|
|
3875
3886
|
shouldForwardProp: (e) => e !== "backgroundColor"
|
|
3876
3887
|
})(({ theme: e, backgroundColor: t }) => ({
|
|
3877
3888
|
marginLeft: e.spacing(1),
|
|
@@ -3880,12 +3891,12 @@ const ga = y("div", {
|
|
|
3880
3891
|
color: "white",
|
|
3881
3892
|
borderRadius: e.spacing(2)
|
|
3882
3893
|
}));
|
|
3883
|
-
function
|
|
3894
|
+
function ma(e, t, i, r, o) {
|
|
3884
3895
|
const l = (e[0] ?? []).map((d, s) => {
|
|
3885
3896
|
const u = String(d.name), p = r.length > 0 && !r.includes(u), c = i[s] ?? u, v = e.map((g, m) => {
|
|
3886
3897
|
var f;
|
|
3887
3898
|
return {
|
|
3888
|
-
color: p ?
|
|
3899
|
+
color: p ? ki(t[m], 0.8) : t[m],
|
|
3889
3900
|
value: ((f = g[s]) == null ? void 0 : f.value) ?? 0
|
|
3890
3901
|
};
|
|
3891
3902
|
});
|
|
@@ -3900,29 +3911,29 @@ function ya(e, t, i, r, o) {
|
|
|
3900
3911
|
return Math.max(...s.data.map((c) => c.value)) - u;
|
|
3901
3912
|
}), l;
|
|
3902
3913
|
}
|
|
3903
|
-
const
|
|
3904
|
-
function
|
|
3914
|
+
const ya = 500;
|
|
3915
|
+
function va(e, t = {}) {
|
|
3905
3916
|
const { disabled: i, duration: r, animateOnMount: o, initialValue: a = 0 } = t, l = re(null), [d, s] = _(
|
|
3906
3917
|
() => o ? a : e
|
|
3907
3918
|
);
|
|
3908
|
-
return G(() => (i ? s(e) :
|
|
3919
|
+
return G(() => (i ? s(e) : gt({
|
|
3909
3920
|
start: d,
|
|
3910
3921
|
end: e,
|
|
3911
|
-
duration: r ??
|
|
3922
|
+
duration: r ?? ya,
|
|
3912
3923
|
drawFrame: (u) => s(u),
|
|
3913
3924
|
requestRef: l
|
|
3914
3925
|
}), () => {
|
|
3915
3926
|
l.current && cancelAnimationFrame(l.current);
|
|
3916
3927
|
}), [e, i, r]), d;
|
|
3917
3928
|
}
|
|
3918
|
-
const
|
|
3919
|
-
function
|
|
3929
|
+
const wa = {};
|
|
3930
|
+
function Fn({
|
|
3920
3931
|
enabled: e = !0,
|
|
3921
3932
|
value: t = 0,
|
|
3922
|
-
options: i =
|
|
3933
|
+
options: i = wa,
|
|
3923
3934
|
formatter: r
|
|
3924
3935
|
}) {
|
|
3925
|
-
const a =
|
|
3936
|
+
const a = va(t || 0, {
|
|
3926
3937
|
...{
|
|
3927
3938
|
animateOnMount: !0,
|
|
3928
3939
|
disabled: e === !1 || t === null || t === void 0
|
|
@@ -3931,43 +3942,43 @@ function Nn({
|
|
|
3931
3942
|
});
|
|
3932
3943
|
return /* @__PURE__ */ n("span", { children: r ? r(a) : a });
|
|
3933
3944
|
}
|
|
3934
|
-
const
|
|
3935
|
-
},
|
|
3936
|
-
function
|
|
3945
|
+
const mt = (e) => e, xa = () => {
|
|
3946
|
+
}, ba = [];
|
|
3947
|
+
function ka({
|
|
3937
3948
|
item: e,
|
|
3938
3949
|
index: t = 0,
|
|
3939
|
-
names: i =
|
|
3940
|
-
formatter: r =
|
|
3950
|
+
names: i = ba,
|
|
3951
|
+
formatter: r = mt
|
|
3941
3952
|
}) {
|
|
3942
3953
|
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
3954
|
return /* @__PURE__ */ w("div", { children: [
|
|
3944
3955
|
/* @__PURE__ */ n($e, { color: "inherit", variant: "caption", noWrap: !0, children: e.label }),
|
|
3945
|
-
/* @__PURE__ */ n(S, { pt: 1, pb: 0.5, children: /* @__PURE__ */ w(
|
|
3956
|
+
/* @__PURE__ */ n(S, { pt: 1, pb: 0.5, children: /* @__PURE__ */ w(Wn, { alignItems: "baseline", children: [
|
|
3946
3957
|
/* @__PURE__ */ n(
|
|
3947
|
-
|
|
3958
|
+
Rn,
|
|
3948
3959
|
{
|
|
3949
3960
|
color: e.key === Oe ? o.palette.background.default : l.color
|
|
3950
3961
|
}
|
|
3951
3962
|
),
|
|
3952
3963
|
/* @__PURE__ */ n($e, { color: "inherit", variant: "caption", children: d }),
|
|
3953
3964
|
/* @__PURE__ */ n(S, { style: { flexGrow: 1 } }),
|
|
3954
|
-
/* @__PURE__ */ n(
|
|
3965
|
+
/* @__PURE__ */ n(fa, { backgroundColor: c, children: /* @__PURE__ */ w($e, { color: "inherit", variant: "caption", children: [
|
|
3955
3966
|
u,
|
|
3956
3967
|
r(Math.abs(s))
|
|
3957
3968
|
] }) })
|
|
3958
3969
|
] }) })
|
|
3959
3970
|
] });
|
|
3960
3971
|
}
|
|
3961
|
-
function
|
|
3972
|
+
function Sa({
|
|
3962
3973
|
item: e,
|
|
3963
3974
|
animation: t = !0,
|
|
3964
3975
|
animationOptions: i,
|
|
3965
3976
|
maxValue: r,
|
|
3966
3977
|
showCheckbox: o,
|
|
3967
3978
|
checkboxChecked: a,
|
|
3968
|
-
formatter: l =
|
|
3969
|
-
tooltipFormatter: d =
|
|
3970
|
-
onClick: s =
|
|
3979
|
+
formatter: l = mt,
|
|
3980
|
+
tooltipFormatter: d = mt,
|
|
3981
|
+
onClick: s = xa,
|
|
3971
3982
|
names: u,
|
|
3972
3983
|
tooltip: p
|
|
3973
3984
|
}) {
|
|
@@ -3975,7 +3986,7 @@ function Ma({
|
|
|
3975
3986
|
return `${Math.min(100, (g || 0) / r * 100)}%`;
|
|
3976
3987
|
}
|
|
3977
3988
|
const v = (g) => /* @__PURE__ */ n(
|
|
3978
|
-
|
|
3989
|
+
ka,
|
|
3979
3990
|
{
|
|
3980
3991
|
item: e,
|
|
3981
3992
|
names: u,
|
|
@@ -3983,23 +3994,23 @@ function Ma({
|
|
|
3983
3994
|
index: g
|
|
3984
3995
|
}
|
|
3985
3996
|
);
|
|
3986
|
-
return /* @__PURE__ */ w(
|
|
3987
|
-
o ? /* @__PURE__ */ n(
|
|
3988
|
-
/* @__PURE__ */ w(
|
|
3997
|
+
return /* @__PURE__ */ w(ga, { onClick: () => s(e.key), children: [
|
|
3998
|
+
o ? /* @__PURE__ */ n(an, { checked: a }) : null,
|
|
3999
|
+
/* @__PURE__ */ w(ha, { children: [
|
|
3989
4000
|
/* @__PURE__ */ n($e, { variant: "body2", noWrap: !0, children: e.label }),
|
|
3990
4001
|
e.data.map((g, m) => /* @__PURE__ */ n(
|
|
3991
|
-
|
|
4002
|
+
da,
|
|
3992
4003
|
{
|
|
3993
4004
|
title: v(m),
|
|
3994
4005
|
placement: "top-start",
|
|
3995
4006
|
arrow: !1,
|
|
3996
4007
|
disableHoverListener: !p,
|
|
3997
|
-
children: /* @__PURE__ */ w(
|
|
3998
|
-
/* @__PURE__ */ n(
|
|
4008
|
+
children: /* @__PURE__ */ w(sa, { children: [
|
|
4009
|
+
/* @__PURE__ */ n(ca, { className: "progressbar", children: /* @__PURE__ */ n(
|
|
3999
4010
|
"div",
|
|
4000
4011
|
{
|
|
4001
4012
|
style: {
|
|
4002
|
-
"--hover-color":
|
|
4013
|
+
"--hover-color": yt(g.color, 0.2),
|
|
4003
4014
|
"--color": g.color,
|
|
4004
4015
|
width: c(g.value)
|
|
4005
4016
|
}
|
|
@@ -4011,7 +4022,7 @@ function Ma({
|
|
|
4011
4022
|
variant: m === 0 ? "body2" : "caption",
|
|
4012
4023
|
color: m === 0 ? "textPrimary" : "textSecondary",
|
|
4013
4024
|
children: /* @__PURE__ */ n(
|
|
4014
|
-
|
|
4025
|
+
Fn,
|
|
4015
4026
|
{
|
|
4016
4027
|
value: g.value,
|
|
4017
4028
|
enabled: t,
|
|
@@ -4028,19 +4039,9 @@ function Ma({
|
|
|
4028
4039
|
] })
|
|
4029
4040
|
] });
|
|
4030
4041
|
}
|
|
4031
|
-
const Xt = (e) => e,
|
|
4042
|
+
const Xt = (e) => e, Ma = () => {
|
|
4032
4043
|
}, 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({
|
|
4044
|
+
function ms({
|
|
4044
4045
|
names: e = ze,
|
|
4045
4046
|
data: t = ze,
|
|
4046
4047
|
labels: i = ze,
|
|
@@ -4052,7 +4053,7 @@ function ys({
|
|
|
4052
4053
|
searchable: s = !0,
|
|
4053
4054
|
filterable: u = !0,
|
|
4054
4055
|
selectedCategories: p = ze,
|
|
4055
|
-
onSelectedCategoriesChange: c =
|
|
4056
|
+
onSelectedCategoriesChange: c = Ma,
|
|
4056
4057
|
formatter: v = Xt,
|
|
4057
4058
|
tooltipFormatter: g = Xt,
|
|
4058
4059
|
tooltip: m = !0,
|
|
@@ -4064,7 +4065,7 @@ function ys({
|
|
|
4064
4065
|
h.palette.primary.main,
|
|
4065
4066
|
h.palette.info.main
|
|
4066
4067
|
];
|
|
4067
|
-
return
|
|
4068
|
+
return ma(
|
|
4068
4069
|
t,
|
|
4069
4070
|
V,
|
|
4070
4071
|
i,
|
|
@@ -4078,8 +4079,8 @@ function ys({
|
|
|
4078
4079
|
return P;
|
|
4079
4080
|
const V = P.slice(0, o), Q = P.slice(o), ne = [];
|
|
4080
4081
|
for (const xe of Q)
|
|
4081
|
-
xe.data.forEach((
|
|
4082
|
-
ne[Re] = ne[Re] ?? 0, ne[Re] +=
|
|
4082
|
+
xe.data.forEach((Ye, Re) => {
|
|
4083
|
+
ne[Re] = ne[Re] ?? 0, ne[Re] += Ye.value;
|
|
4083
4084
|
});
|
|
4084
4085
|
const ce = {
|
|
4085
4086
|
key: Oe,
|
|
@@ -4095,12 +4096,12 @@ function ys({
|
|
|
4095
4096
|
return ce || xe;
|
|
4096
4097
|
}) : P, [P, E]), N = P.length - J.length + 1, T = s && !k && o < P.length;
|
|
4097
4098
|
if (P.length === 0 || f)
|
|
4098
|
-
return /* @__PURE__ */ n(
|
|
4099
|
+
return /* @__PURE__ */ n(xn, {});
|
|
4099
4100
|
const R = k ? C : M ? U : J;
|
|
4100
4101
|
function q() {
|
|
4101
4102
|
I(!0), c([...x]), K();
|
|
4102
4103
|
}
|
|
4103
|
-
function
|
|
4104
|
+
function j() {
|
|
4104
4105
|
I(!1);
|
|
4105
4106
|
}
|
|
4106
4107
|
function X() {
|
|
@@ -4109,7 +4110,7 @@ function ys({
|
|
|
4109
4110
|
function te() {
|
|
4110
4111
|
I(!0);
|
|
4111
4112
|
}
|
|
4112
|
-
function
|
|
4113
|
+
function Y() {
|
|
4113
4114
|
b(!0), A([...p]);
|
|
4114
4115
|
}
|
|
4115
4116
|
function K() {
|
|
@@ -4128,13 +4129,13 @@ function ys({
|
|
|
4128
4129
|
ce.length === P.length && (ce = []), A(ce);
|
|
4129
4130
|
}
|
|
4130
4131
|
const we = u ? k ? Se : ue : void 0;
|
|
4131
|
-
return /* @__PURE__ */ w(
|
|
4132
|
+
return /* @__PURE__ */ w(oa, { children: [
|
|
4132
4133
|
u ? /* @__PURE__ */ w(qt, { center: !0, children: [
|
|
4133
4134
|
/* @__PURE__ */ n(z, { variant: "caption", children: p.length > 0 ? D.formatMessage(
|
|
4134
4135
|
{ id: "c4r.widgets.category.selectedItems" },
|
|
4135
4136
|
{ items: p.length }
|
|
4136
4137
|
) : 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:
|
|
4138
|
+
/* @__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
4139
|
id: "c4r.widgets.category.unlock"
|
|
4139
4140
|
}) }) : p.length ? /* @__PURE__ */ w(
|
|
4140
4141
|
S,
|
|
@@ -4148,7 +4149,7 @@ function ys({
|
|
|
4148
4149
|
/* @__PURE__ */ n(ve, { onClick: te, children: D.formatMessage({
|
|
4149
4150
|
id: "c4r.widgets.category.lock"
|
|
4150
4151
|
}) }),
|
|
4151
|
-
/* @__PURE__ */ n(
|
|
4152
|
+
/* @__PURE__ */ n(vt, { orientation: "vertical", flexItem: !0 }),
|
|
4152
4153
|
/* @__PURE__ */ n(ve, { onClick: X, children: D.formatMessage({
|
|
4153
4154
|
id: "c4r.widgets.category.clear"
|
|
4154
4155
|
}) })
|
|
@@ -4157,7 +4158,7 @@ function ys({
|
|
|
4157
4158
|
) : null })
|
|
4158
4159
|
] }) : null,
|
|
4159
4160
|
k ? /* @__PURE__ */ n(qt, { children: /* @__PURE__ */ n(
|
|
4160
|
-
|
|
4161
|
+
ua,
|
|
4161
4162
|
{
|
|
4162
4163
|
size: "small",
|
|
4163
4164
|
placeholder: D.formatMessage({
|
|
@@ -4166,11 +4167,11 @@ function ys({
|
|
|
4166
4167
|
onChange: (V) => O(V.currentTarget.value),
|
|
4167
4168
|
onFocus: (V) => V.currentTarget.scrollIntoView(),
|
|
4168
4169
|
InputProps: {
|
|
4169
|
-
startAdornment: /* @__PURE__ */ n(
|
|
4170
|
+
startAdornment: /* @__PURE__ */ n(wt, { position: "start", children: /* @__PURE__ */ n(Qe, {}) })
|
|
4170
4171
|
}
|
|
4171
4172
|
}
|
|
4172
4173
|
) }) : null,
|
|
4173
|
-
/* @__PURE__ */ w(
|
|
4174
|
+
/* @__PURE__ */ w(aa, { children: [
|
|
4174
4175
|
R.length === 0 ? /* @__PURE__ */ w(ie, { children: [
|
|
4175
4176
|
/* @__PURE__ */ n(z, { variant: "body2", children: D.formatMessage({
|
|
4176
4177
|
id: "c4r.widgets.category.noResults"
|
|
@@ -4180,8 +4181,8 @@ function ys({
|
|
|
4180
4181
|
{ searchValue: E }
|
|
4181
4182
|
) })
|
|
4182
4183
|
] }) : null,
|
|
4183
|
-
R.map((V) => /* @__PURE__ */ n(
|
|
4184
|
-
|
|
4184
|
+
R.map((V) => /* @__PURE__ */ n(pa, { children: /* @__PURE__ */ n(
|
|
4185
|
+
Sa,
|
|
4185
4186
|
{
|
|
4186
4187
|
item: V,
|
|
4187
4188
|
animation: l,
|
|
@@ -4202,8 +4203,8 @@ function ys({
|
|
|
4202
4203
|
{
|
|
4203
4204
|
size: "small",
|
|
4204
4205
|
color: "primary",
|
|
4205
|
-
startIcon: /* @__PURE__ */ n(
|
|
4206
|
-
onClick:
|
|
4206
|
+
startIcon: /* @__PURE__ */ n(Qe, {}),
|
|
4207
|
+
onClick: Y,
|
|
4207
4208
|
children: D.formatMessage(
|
|
4208
4209
|
{ id: "c4r.widgets.category.searchInfo" },
|
|
4209
4210
|
{ elements: N }
|
|
@@ -4211,44 +4212,44 @@ function ys({
|
|
|
4211
4212
|
}
|
|
4212
4213
|
) : null,
|
|
4213
4214
|
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(
|
|
4215
|
+
/* @__PURE__ */ n(la, { children: e.map((V, Q) => /* @__PURE__ */ w(Wn, { children: [
|
|
4216
|
+
/* @__PURE__ */ n(Rn, { color: (r == null ? void 0 : r[Q]) ?? h.palette.background.default }),
|
|
4216
4217
|
/* @__PURE__ */ n(z, { variant: "overline", children: V })
|
|
4217
4218
|
] }, e[Q])) })
|
|
4218
4219
|
] });
|
|
4219
4220
|
}
|
|
4220
|
-
const
|
|
4221
|
+
const Ia = Si(z)(({ theme: e }) => ({
|
|
4221
4222
|
display: "inline-block",
|
|
4222
4223
|
marginTop: e.spacing(0.5)
|
|
4223
4224
|
}));
|
|
4224
|
-
function
|
|
4225
|
+
function Ca({
|
|
4225
4226
|
row: e
|
|
4226
4227
|
}) {
|
|
4227
4228
|
const t = de();
|
|
4228
|
-
return e.label ? /* @__PURE__ */ n(S, { color: e.color ?? t.palette.text.secondary, children: /* @__PURE__ */ n(
|
|
4229
|
+
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
4230
|
}
|
|
4230
|
-
const
|
|
4231
|
+
const Ta = y("div")(({ theme: e }) => ({
|
|
4231
4232
|
margin: 0,
|
|
4232
4233
|
...e.typography.h5,
|
|
4233
4234
|
fontWeight: Number(e.typography.fontWeightMedium),
|
|
4234
4235
|
color: e.palette.text.primary,
|
|
4235
4236
|
display: "flex"
|
|
4236
|
-
})),
|
|
4237
|
+
})), Aa = y(z)(({ theme: e }) => ({
|
|
4237
4238
|
marginRight: e.spacing(0.5)
|
|
4238
|
-
})),
|
|
4239
|
+
})), Ea = y(z)(({ theme: e }) => ({
|
|
4239
4240
|
marginLeft: e.spacing(0.5)
|
|
4240
4241
|
}));
|
|
4241
|
-
function
|
|
4242
|
+
function La({
|
|
4242
4243
|
row: e,
|
|
4243
4244
|
animated: t,
|
|
4244
4245
|
animationOptions: i,
|
|
4245
4246
|
formatter: r
|
|
4246
4247
|
}) {
|
|
4247
4248
|
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(
|
|
4249
|
+
return /* @__PURE__ */ w(Ta, { children: [
|
|
4250
|
+
a ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Aa, { color: "inherit", component: "span", variant: "subtitle2", children: a }) }) : null,
|
|
4250
4251
|
/* @__PURE__ */ n(S, { fontWeight: s ? "bold" : "", children: /* @__PURE__ */ n(
|
|
4251
|
-
|
|
4252
|
+
Fn,
|
|
4252
4253
|
{
|
|
4253
4254
|
value: l,
|
|
4254
4255
|
enabled: t,
|
|
@@ -4256,26 +4257,26 @@ function $a({
|
|
|
4256
4257
|
formatter: r
|
|
4257
4258
|
}
|
|
4258
4259
|
) }),
|
|
4259
|
-
d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(
|
|
4260
|
+
d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Ea, { color: "inherit", component: "span", variant: "subtitle2", children: d }) }) : null
|
|
4260
4261
|
] });
|
|
4261
4262
|
}
|
|
4262
|
-
const
|
|
4263
|
+
const $a = (e) => e, Kt = [], Da = y("div")(({ theme: e }) => ({
|
|
4263
4264
|
"&:nth-of-type(n+2)": {
|
|
4264
4265
|
marginTop: e.spacing(2)
|
|
4265
4266
|
}
|
|
4266
4267
|
}));
|
|
4267
|
-
function
|
|
4268
|
-
data: e =
|
|
4269
|
-
colors: t =
|
|
4268
|
+
function ys({
|
|
4269
|
+
data: e = Kt,
|
|
4270
|
+
colors: t = Kt,
|
|
4270
4271
|
animated: i = !0,
|
|
4271
4272
|
animationOptions: r,
|
|
4272
|
-
formatter: o =
|
|
4273
|
+
formatter: o = $a,
|
|
4273
4274
|
isLoading: a = !1
|
|
4274
4275
|
}) {
|
|
4275
|
-
const l =
|
|
4276
|
-
return a ? /* @__PURE__ */ n(
|
|
4276
|
+
const l = Pa(e, t);
|
|
4277
|
+
return a ? /* @__PURE__ */ n(kn, {}) : /* @__PURE__ */ n("div", { children: l.map((d, s) => /* @__PURE__ */ w(Da, { children: [
|
|
4277
4278
|
/* @__PURE__ */ n(
|
|
4278
|
-
|
|
4279
|
+
La,
|
|
4279
4280
|
{
|
|
4280
4281
|
row: d,
|
|
4281
4282
|
animated: i,
|
|
@@ -4283,25 +4284,25 @@ function vs({
|
|
|
4283
4284
|
formatter: o
|
|
4284
4285
|
}
|
|
4285
4286
|
),
|
|
4286
|
-
/* @__PURE__ */ n(
|
|
4287
|
+
/* @__PURE__ */ n(Ca, { row: d })
|
|
4287
4288
|
] }, s)) });
|
|
4288
4289
|
}
|
|
4289
|
-
function
|
|
4290
|
+
function Pa(e, t) {
|
|
4290
4291
|
const i = e.map((o, a) => ({ ...o, color: t[a], shouldBeHighlighted: !1 })).filter((o) => o.value !== void 0);
|
|
4291
4292
|
return i && i.length > 1 && (i[0].shouldBeHighlighted = !0), i;
|
|
4292
4293
|
}
|
|
4293
|
-
function
|
|
4294
|
+
function Oa(e, t = [], i = [], r, o = []) {
|
|
4294
4295
|
return e.map((a, l) => {
|
|
4295
4296
|
const d = o.length > 0 && !o.includes(a.name), u = (t != null && t.length ? t : r.palette.qualitative.bold)[l];
|
|
4296
4297
|
return {
|
|
4297
4298
|
...a,
|
|
4298
4299
|
key: a.name,
|
|
4299
|
-
color: d ?
|
|
4300
|
+
color: d ? Qn(u, 0.8) : u,
|
|
4300
4301
|
name: i[l] ?? a.name
|
|
4301
4302
|
};
|
|
4302
4303
|
});
|
|
4303
4304
|
}
|
|
4304
|
-
function
|
|
4305
|
+
function Wa(e, t, i) {
|
|
4305
4306
|
const r = `
|
|
4306
4307
|
font-size: 12px;
|
|
4307
4308
|
line-height: 1.33;
|
|
@@ -4321,23 +4322,23 @@ function Ra(e, t, i) {
|
|
|
4321
4322
|
<p style="${o}">${String(a.marker)} ${s} (${u} %)</p>
|
|
4322
4323
|
`.trim();
|
|
4323
4324
|
}
|
|
4324
|
-
const
|
|
4325
|
-
}, Ke = [],
|
|
4326
|
-
function
|
|
4325
|
+
const Ra = (e) => e, Fa = () => {
|
|
4326
|
+
}, Ke = [], Na = "260px";
|
|
4327
|
+
function vs({
|
|
4327
4328
|
names: e = Ke,
|
|
4328
4329
|
data: t = Ke,
|
|
4329
4330
|
labels: i = Ke,
|
|
4330
4331
|
colors: r = Ke,
|
|
4331
|
-
height: o =
|
|
4332
|
+
height: o = Na,
|
|
4332
4333
|
animation: a = !0,
|
|
4333
|
-
formatter: l =
|
|
4334
|
-
tooltipFormatter: d =
|
|
4334
|
+
formatter: l = Ra,
|
|
4335
|
+
tooltipFormatter: d = Wa,
|
|
4335
4336
|
selectedCategories: s = [],
|
|
4336
|
-
onCategorySelected: u =
|
|
4337
|
+
onCategorySelected: u = Fa,
|
|
4337
4338
|
isLoading: p = !1
|
|
4338
4339
|
}) {
|
|
4339
4340
|
const c = de(), v = re(), g = F(() => t.map(
|
|
4340
|
-
(k, b) =>
|
|
4341
|
+
(k, b) => Oa(k, r[b], i[b], c, s)
|
|
4341
4342
|
), [t, r, i, c, s]), m = F(() => {
|
|
4342
4343
|
const k = g.length > 1;
|
|
4343
4344
|
let b;
|
|
@@ -4469,7 +4470,7 @@ function ws({
|
|
|
4469
4470
|
function h(k) {
|
|
4470
4471
|
v.current = k;
|
|
4471
4472
|
}
|
|
4472
|
-
return g.length ? p ? /* @__PURE__ */ n(
|
|
4473
|
+
return g.length ? p ? /* @__PURE__ */ n(Sn, { height: o }) : /* @__PURE__ */ n(
|
|
4473
4474
|
We,
|
|
4474
4475
|
{
|
|
4475
4476
|
onChartReady: h,
|
|
@@ -4480,14 +4481,14 @@ function ws({
|
|
|
4480
4481
|
}
|
|
4481
4482
|
) : null;
|
|
4482
4483
|
}
|
|
4483
|
-
const
|
|
4484
|
+
const Ba = () => {
|
|
4484
4485
|
};
|
|
4485
|
-
function
|
|
4486
|
+
function _a({
|
|
4486
4487
|
icon: e,
|
|
4487
4488
|
hoverTooltip: t,
|
|
4488
4489
|
clickTooltip: i,
|
|
4489
4490
|
enabled: r,
|
|
4490
|
-
onEnabledChange: o =
|
|
4491
|
+
onEnabledChange: o = Ba,
|
|
4491
4492
|
tooltipPlacement: a = "bottom"
|
|
4492
4493
|
}) {
|
|
4493
4494
|
const [l, d] = _(!1), [s, u] = _(r);
|
|
@@ -4502,7 +4503,7 @@ function za({
|
|
|
4502
4503
|
window.removeEventListener("keydown", c);
|
|
4503
4504
|
};
|
|
4504
4505
|
}
|
|
4505
|
-
}, [r, o]), /* @__PURE__ */ n(
|
|
4506
|
+
}, [r, o]), /* @__PURE__ */ n(ei, { onClickAway: () => u(!1), children: /* @__PURE__ */ n(
|
|
4506
4507
|
pe,
|
|
4507
4508
|
{
|
|
4508
4509
|
title: s ? i : t,
|
|
@@ -4513,7 +4514,7 @@ function za({
|
|
|
4513
4514
|
s || d(!1);
|
|
4514
4515
|
},
|
|
4515
4516
|
children: /* @__PURE__ */ n(
|
|
4516
|
-
|
|
4517
|
+
ti,
|
|
4517
4518
|
{
|
|
4518
4519
|
value: "selectedMode",
|
|
4519
4520
|
selected: r,
|
|
@@ -4524,14 +4525,14 @@ function za({
|
|
|
4524
4525
|
}
|
|
4525
4526
|
) });
|
|
4526
4527
|
}
|
|
4527
|
-
const
|
|
4528
|
+
const za = y(me, {
|
|
4528
4529
|
shouldForwardProp: (e) => e !== "isOpen"
|
|
4529
4530
|
})(({ isOpen: e, theme: t }) => ({
|
|
4530
4531
|
color: t.palette.text.secondary,
|
|
4531
4532
|
width: t.spacing(3),
|
|
4532
4533
|
transform: `rotate(${e ? "180" : "0"}deg)`,
|
|
4533
4534
|
backgroundColor: e ? t.palette.action.hover : void 0
|
|
4534
|
-
})),
|
|
4535
|
+
})), Ha = y(Pe, {
|
|
4535
4536
|
shouldForwardProp: (e) => e !== "disabled"
|
|
4536
4537
|
})(({ disabled: e, theme: t }) => ({
|
|
4537
4538
|
...e && {
|
|
@@ -4542,13 +4543,13 @@ const Ha = y(me, {
|
|
|
4542
4543
|
"&.Mui-disabled": {
|
|
4543
4544
|
opacity: 1
|
|
4544
4545
|
}
|
|
4545
|
-
})),
|
|
4546
|
+
})), Ya = () => {
|
|
4546
4547
|
};
|
|
4547
|
-
function
|
|
4548
|
+
function Va({
|
|
4548
4549
|
selectionModes: e,
|
|
4549
4550
|
editModes: t,
|
|
4550
4551
|
selectedMode: i,
|
|
4551
|
-
onSelectMode: r =
|
|
4552
|
+
onSelectMode: r = Ya,
|
|
4552
4553
|
enabled: o,
|
|
4553
4554
|
tooltipPlacement: a = "bottom",
|
|
4554
4555
|
tooltipText: l = "",
|
|
@@ -4560,14 +4561,14 @@ function Ga({
|
|
|
4560
4561
|
}, h = !!e.length && !!t.length, k = (M) => t.some((I) => I.id === M.id);
|
|
4561
4562
|
function b(M) {
|
|
4562
4563
|
return /* @__PURE__ */ n(
|
|
4563
|
-
|
|
4564
|
+
Ha,
|
|
4564
4565
|
{
|
|
4565
4566
|
selected: o && i === M.id,
|
|
4566
4567
|
onClick: () => f(M.id),
|
|
4567
4568
|
disabled: s && k(M),
|
|
4568
4569
|
children: /* @__PURE__ */ w(S, { display: "flex", justifyContent: "space-between", alignItems: "center", children: [
|
|
4569
4570
|
M.icon,
|
|
4570
|
-
/* @__PURE__ */ n(S, { ml: 2, children: /* @__PURE__ */ n(z, { variant: "body2", color: "inherit", children:
|
|
4571
|
+
/* @__PURE__ */ n(S, { ml: 2, children: /* @__PURE__ */ n(z, { variant: "body2", color: "inherit", children: un(M.label) }) })
|
|
4571
4572
|
] })
|
|
4572
4573
|
},
|
|
4573
4574
|
M.id
|
|
@@ -4575,7 +4576,7 @@ function Ga({
|
|
|
4575
4576
|
}
|
|
4576
4577
|
return /* @__PURE__ */ w(ie, { children: [
|
|
4577
4578
|
/* @__PURE__ */ n(pe, { title: l, placement: a, children: /* @__PURE__ */ n(
|
|
4578
|
-
|
|
4579
|
+
za,
|
|
4579
4580
|
{
|
|
4580
4581
|
id: "feature-selection-menu-button",
|
|
4581
4582
|
"aria-controls": "feature-selection-menu",
|
|
@@ -4583,11 +4584,11 @@ function Ga({
|
|
|
4583
4584
|
"aria-expanded": v ? "true" : void 0,
|
|
4584
4585
|
onClick: g,
|
|
4585
4586
|
isOpen: v,
|
|
4586
|
-
children: /* @__PURE__ */ n(
|
|
4587
|
+
children: /* @__PURE__ */ n(Ci, {})
|
|
4587
4588
|
}
|
|
4588
4589
|
) }),
|
|
4589
4590
|
/* @__PURE__ */ w(
|
|
4590
|
-
|
|
4591
|
+
kt,
|
|
4591
4592
|
{
|
|
4592
4593
|
id: "feature-selection-menu",
|
|
4593
4594
|
style: { zIndex: u.zIndex.tooltip + 1 },
|
|
@@ -4598,14 +4599,14 @@ function Ga({
|
|
|
4598
4599
|
children: [
|
|
4599
4600
|
d && /* @__PURE__ */ n(ja, { disabled: !0, children: /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: d }) }),
|
|
4600
4601
|
!!e.length && e.map(b),
|
|
4601
|
-
h && /* @__PURE__ */ n(
|
|
4602
|
+
h && /* @__PURE__ */ n(vt, { sx: { margin: ({ spacing: M }) => M(1, 0) } }),
|
|
4602
4603
|
!!t.length && t.map(b)
|
|
4603
4604
|
]
|
|
4604
4605
|
}
|
|
4605
4606
|
)
|
|
4606
4607
|
] });
|
|
4607
4608
|
}
|
|
4608
|
-
const
|
|
4609
|
+
const Ga = y(ri)(({ theme: e }) => ({
|
|
4609
4610
|
display: "flex",
|
|
4610
4611
|
alignItems: "center",
|
|
4611
4612
|
marginLeft: e.spacing(1.5),
|
|
@@ -4617,11 +4618,11 @@ const Ua = y(ii)(({ theme: e }) => ({
|
|
|
4617
4618
|
"&::-webkit-scrollbar": {
|
|
4618
4619
|
display: "none"
|
|
4619
4620
|
}
|
|
4620
|
-
})),
|
|
4621
|
+
})), Ua = () => {
|
|
4621
4622
|
};
|
|
4622
|
-
function
|
|
4623
|
+
function qa({
|
|
4623
4624
|
features: e,
|
|
4624
|
-
onSelectGeometry: t =
|
|
4625
|
+
onSelectGeometry: t = Ua,
|
|
4625
4626
|
onDeleteGeometry: i,
|
|
4626
4627
|
chipTooltip: r,
|
|
4627
4628
|
disabledChipTooltip: o,
|
|
@@ -4645,7 +4646,7 @@ function Xa({
|
|
|
4645
4646
|
return d || ((k = m.properties) == null ? void 0 : k.name) || `${h} ${f + 1}`;
|
|
4646
4647
|
}
|
|
4647
4648
|
const [v, g] = _(!1);
|
|
4648
|
-
return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(
|
|
4649
|
+
return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(Ga, { sx: { gap: a === "small" ? 0.5 : 1 }, children: e.map((m, f) => {
|
|
4649
4650
|
var I, x;
|
|
4650
4651
|
const h = (I = m.properties) == null ? void 0 : I.disabled, k = (x = m.properties) == null ? void 0 : x.invalid;
|
|
4651
4652
|
let b = r;
|
|
@@ -4655,23 +4656,23 @@ function Xa({
|
|
|
4655
4656
|
id: "c4r.widgets.featureSelection.remove"
|
|
4656
4657
|
}));
|
|
4657
4658
|
let M = "secondary";
|
|
4658
|
-
return h && (M = "default"), k && (M = "error"), /* @__PURE__ */ n(
|
|
4659
|
+
return h && (M = "default"), k && (M = "error"), /* @__PURE__ */ n(ni, { disablePadding: !0, children: /* @__PURE__ */ n(
|
|
4659
4660
|
pe,
|
|
4660
4661
|
{
|
|
4661
4662
|
disableHoverListener: h ? !o : !r,
|
|
4662
4663
|
title: b,
|
|
4663
4664
|
placement: l,
|
|
4664
4665
|
children: /* @__PURE__ */ n(
|
|
4665
|
-
|
|
4666
|
+
ii,
|
|
4666
4667
|
{
|
|
4667
4668
|
size: a,
|
|
4668
4669
|
label: c(m, f),
|
|
4669
4670
|
color: M,
|
|
4670
4671
|
onClick: () => t(m),
|
|
4671
4672
|
onDelete: i ? () => i(m) : void 0,
|
|
4672
|
-
icon: k ? /* @__PURE__ */ n(
|
|
4673
|
+
icon: k ? /* @__PURE__ */ n(yi, { color: "error" }) : void 0,
|
|
4673
4674
|
deleteIcon: /* @__PURE__ */ n(
|
|
4674
|
-
|
|
4675
|
+
vi,
|
|
4675
4676
|
{
|
|
4676
4677
|
onMouseEnter: () => g(!0),
|
|
4677
4678
|
onMouseLeave: () => g(!1)
|
|
@@ -4683,16 +4684,16 @@ function Xa({
|
|
|
4683
4684
|
) }, f);
|
|
4684
4685
|
}) }) });
|
|
4685
4686
|
}
|
|
4686
|
-
const
|
|
4687
|
+
const Xa = y(pn)(({ theme: e }) => ({
|
|
4687
4688
|
display: "flex",
|
|
4688
4689
|
alignItems: "center",
|
|
4689
4690
|
justifyContent: "space-between",
|
|
4690
4691
|
maxHeight: e.spacing(5),
|
|
4691
4692
|
padding: e.spacing(0.5)
|
|
4692
|
-
})),
|
|
4693
|
-
function
|
|
4693
|
+
})), Ka = [];
|
|
4694
|
+
function ws({
|
|
4694
4695
|
selectionModes: e,
|
|
4695
|
-
editModes: t =
|
|
4696
|
+
editModes: t = Ka,
|
|
4696
4697
|
selectedMode: i,
|
|
4697
4698
|
onSelectMode: r,
|
|
4698
4699
|
enabled: o = !1,
|
|
@@ -4707,12 +4708,12 @@ function xs({
|
|
|
4707
4708
|
const v = le(), g = se(v), m = F(() => e.map((I) => ({
|
|
4708
4709
|
...I,
|
|
4709
4710
|
label: g.formatMessage({
|
|
4710
|
-
id: `c4r.widgets.featureSelection.${
|
|
4711
|
+
id: `c4r.widgets.featureSelection.${Zt(I.id)}`
|
|
4711
4712
|
})
|
|
4712
4713
|
})), [e, g]), f = F(() => t.map((I) => ({
|
|
4713
4714
|
...I,
|
|
4714
4715
|
label: g.formatMessage({
|
|
4715
|
-
id: `c4r.widgets.featureSelection.${
|
|
4716
|
+
id: `c4r.widgets.featureSelection.${Zt(I.id)}`
|
|
4716
4717
|
})
|
|
4717
4718
|
})), [t, g]), h = F(() => {
|
|
4718
4719
|
const x = [
|
|
@@ -4728,7 +4729,7 @@ function xs({
|
|
|
4728
4729
|
if (!x)
|
|
4729
4730
|
throw new Error(`Selected mode "${i}" not supported`);
|
|
4730
4731
|
return x;
|
|
4731
|
-
}, [f, m, i]), k =
|
|
4732
|
+
}, [f, m, i]), k = un((h == null ? void 0 : h.label) || ""), b = h != null && h.isEdit ? k : g.formatMessage(
|
|
4732
4733
|
{
|
|
4733
4734
|
id: "c4r.widgets.featureSelection.selectTool"
|
|
4734
4735
|
},
|
|
@@ -4738,9 +4739,9 @@ function xs({
|
|
|
4738
4739
|
}) : g.formatMessage({
|
|
4739
4740
|
id: "c4r.widgets.featureSelection.clickToCreate"
|
|
4740
4741
|
});
|
|
4741
|
-
return /* @__PURE__ */ w(
|
|
4742
|
+
return /* @__PURE__ */ w(Xa, { children: [
|
|
4742
4743
|
/* @__PURE__ */ n(
|
|
4743
|
-
|
|
4744
|
+
_a,
|
|
4744
4745
|
{
|
|
4745
4746
|
icon: h == null ? void 0 : h.icon,
|
|
4746
4747
|
hoverTooltip: b,
|
|
@@ -4751,7 +4752,7 @@ function xs({
|
|
|
4751
4752
|
}
|
|
4752
4753
|
),
|
|
4753
4754
|
/* @__PURE__ */ n(
|
|
4754
|
-
|
|
4755
|
+
Va,
|
|
4755
4756
|
{
|
|
4756
4757
|
selectionModes: m,
|
|
4757
4758
|
editModes: f,
|
|
@@ -4769,7 +4770,7 @@ function xs({
|
|
|
4769
4770
|
}
|
|
4770
4771
|
),
|
|
4771
4772
|
!!l && /* @__PURE__ */ n(
|
|
4772
|
-
|
|
4773
|
+
qa,
|
|
4773
4774
|
{
|
|
4774
4775
|
features: [l],
|
|
4775
4776
|
onSelectGeometry: d,
|
|
@@ -4787,18 +4788,18 @@ function xs({
|
|
|
4787
4788
|
)
|
|
4788
4789
|
] });
|
|
4789
4790
|
}
|
|
4790
|
-
function
|
|
4791
|
+
function Zt(e) {
|
|
4791
4792
|
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
4792
4793
|
}
|
|
4793
|
-
const
|
|
4794
|
+
const Nn = 240, Za = y(pn, {
|
|
4794
4795
|
shouldForwardProp: (e) => e !== "collapsed"
|
|
4795
4796
|
})(({ theme: e, collapsed: t }) => ({
|
|
4796
|
-
width: t ? "min-content" :
|
|
4797
|
+
width: t ? "min-content" : Nn,
|
|
4797
4798
|
background: e.palette.background.paper,
|
|
4798
4799
|
maxHeight: "calc(100% - 120px)",
|
|
4799
4800
|
display: "flex",
|
|
4800
4801
|
flexDirection: "column"
|
|
4801
|
-
})),
|
|
4802
|
+
})), Ja = y("header", {
|
|
4802
4803
|
shouldForwardProp: (e) => e !== "collapsed"
|
|
4803
4804
|
})(({ theme: e, collapsed: t }) => ({
|
|
4804
4805
|
display: "flex",
|
|
@@ -4807,7 +4808,7 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4807
4808
|
padding: e.spacing(1),
|
|
4808
4809
|
paddingLeft: e.spacing(2),
|
|
4809
4810
|
borderBottom: t ? void 0 : `1px solid ${e.palette.divider}`
|
|
4810
|
-
})),
|
|
4811
|
+
})), Qa = y("header")(({ theme: e }) => ({
|
|
4811
4812
|
padding: e.spacing(1.5),
|
|
4812
4813
|
paddingRight: e.spacing(2),
|
|
4813
4814
|
gap: e.spacing(0.5),
|
|
@@ -4817,13 +4818,13 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4817
4818
|
zIndex: 2,
|
|
4818
4819
|
top: 0,
|
|
4819
4820
|
background: e.palette.background.paper
|
|
4820
|
-
})),
|
|
4821
|
+
})), el = y("div")(({ theme: e }) => ({
|
|
4821
4822
|
display: "flex",
|
|
4822
4823
|
gap: e.spacing(2),
|
|
4823
4824
|
alignItems: "center",
|
|
4824
4825
|
padding: e.spacing(1),
|
|
4825
|
-
minWidth: `calc(${
|
|
4826
|
-
})),
|
|
4826
|
+
minWidth: `calc(${Nn}px - ${e.spacing(4)})`
|
|
4827
|
+
})), tl = y(ot)(({ theme: e }) => ({
|
|
4827
4828
|
display: "flex",
|
|
4828
4829
|
width: e.spacing(7.5),
|
|
4829
4830
|
flexShrink: 0,
|
|
@@ -4831,7 +4832,7 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4831
4832
|
WebkitAppearance: "none",
|
|
4832
4833
|
margin: 0
|
|
4833
4834
|
}
|
|
4834
|
-
})),
|
|
4835
|
+
})), nl = y("ul", {
|
|
4835
4836
|
shouldForwardProp: (e) => e !== "opacity"
|
|
4836
4837
|
})(({ theme: e, opacity: t }) => ({
|
|
4837
4838
|
opacity: t,
|
|
@@ -4840,39 +4841,39 @@ const Bn = 240, Ja = y(gn, {
|
|
|
4840
4841
|
display: "flex",
|
|
4841
4842
|
flexDirection: "column",
|
|
4842
4843
|
gap: e.spacing(1)
|
|
4843
|
-
})),
|
|
4844
|
+
})), Bn = y("ul")(({ theme: e }) => ({
|
|
4844
4845
|
margin: 0,
|
|
4845
4846
|
padding: 0,
|
|
4846
4847
|
paddingBottom: e.spacing(1),
|
|
4847
4848
|
display: "flex",
|
|
4848
4849
|
flexDirection: "column"
|
|
4849
|
-
})),
|
|
4850
|
+
})), il = y("li")(() => ({
|
|
4850
4851
|
display: "flex",
|
|
4851
4852
|
alignItems: "center"
|
|
4852
|
-
})),
|
|
4853
|
+
})), rl = y("div")(({ theme: e }) => ({
|
|
4853
4854
|
marginRight: e.spacing(1.5),
|
|
4854
|
-
width:
|
|
4855
|
-
height:
|
|
4855
|
+
width: pt,
|
|
4856
|
+
height: pt,
|
|
4856
4857
|
"& img": {
|
|
4857
4858
|
margin: "auto",
|
|
4858
4859
|
display: "block"
|
|
4859
4860
|
}
|
|
4860
|
-
})),
|
|
4861
|
+
})), Jt = y(S, {
|
|
4861
4862
|
shouldForwardProp: (e) => e !== "width"
|
|
4862
4863
|
})(({ width: e, theme: t }) => ({
|
|
4863
4864
|
width: e,
|
|
4864
4865
|
overflow: "auto",
|
|
4865
4866
|
maxHeight: `calc(100% - ${t.spacing(1.5)})`
|
|
4866
|
-
})),
|
|
4867
|
+
})), ol = y("section")(({ theme: e }) => ({
|
|
4867
4868
|
"&:not(:first-of-type)": {
|
|
4868
4869
|
borderTop: `1px solid ${e.palette.divider}`
|
|
4869
4870
|
}
|
|
4870
|
-
})),
|
|
4871
|
+
})), al = y("div")(() => ({
|
|
4871
4872
|
flexGrow: 1,
|
|
4872
4873
|
flexShrink: 1,
|
|
4873
4874
|
minWidth: 0
|
|
4874
4875
|
}));
|
|
4875
|
-
function
|
|
4876
|
+
function ll({
|
|
4876
4877
|
menuRef: e,
|
|
4877
4878
|
open: t,
|
|
4878
4879
|
toggleOpen: i,
|
|
@@ -4895,13 +4896,13 @@ function sl({
|
|
|
4895
4896
|
size: "small",
|
|
4896
4897
|
color: t ? "primary" : "default",
|
|
4897
4898
|
onClick: () => i(!t),
|
|
4898
|
-
children: /* @__PURE__ */ n(
|
|
4899
|
+
children: /* @__PURE__ */ n(hi, {})
|
|
4899
4900
|
}
|
|
4900
4901
|
)
|
|
4901
4902
|
}
|
|
4902
4903
|
),
|
|
4903
4904
|
/* @__PURE__ */ n(
|
|
4904
|
-
|
|
4905
|
+
oi,
|
|
4905
4906
|
{
|
|
4906
4907
|
open: t,
|
|
4907
4908
|
onClose: () => i(!1),
|
|
@@ -4919,9 +4920,9 @@ function sl({
|
|
|
4919
4920
|
sx: { transform: "translate(-12px, 36px)" }
|
|
4920
4921
|
}
|
|
4921
4922
|
},
|
|
4922
|
-
children: /* @__PURE__ */ w(
|
|
4923
|
+
children: /* @__PURE__ */ w(el, { children: [
|
|
4923
4924
|
/* @__PURE__ */ n(
|
|
4924
|
-
|
|
4925
|
+
xt,
|
|
4925
4926
|
{
|
|
4926
4927
|
value: r * 100,
|
|
4927
4928
|
onChange: (s, u) => o(u / 100),
|
|
@@ -4931,7 +4932,7 @@ function sl({
|
|
|
4931
4932
|
}
|
|
4932
4933
|
),
|
|
4933
4934
|
/* @__PURE__ */ n(
|
|
4934
|
-
|
|
4935
|
+
tl,
|
|
4935
4936
|
{
|
|
4936
4937
|
size: "small",
|
|
4937
4938
|
type: "number",
|
|
@@ -4945,7 +4946,7 @@ function sl({
|
|
|
4945
4946
|
"data-testid": "opacity-slider"
|
|
4946
4947
|
},
|
|
4947
4948
|
InputProps: {
|
|
4948
|
-
endAdornment: /* @__PURE__ */ w(
|
|
4949
|
+
endAdornment: /* @__PURE__ */ w(wt, { position: "end", sx: { margin: 0 }, children: [
|
|
4949
4950
|
" ",
|
|
4950
4951
|
"%"
|
|
4951
4952
|
] })
|
|
@@ -4957,13 +4958,13 @@ function sl({
|
|
|
4957
4958
|
)
|
|
4958
4959
|
] });
|
|
4959
4960
|
}
|
|
4960
|
-
function
|
|
4961
|
+
function Lt({
|
|
4961
4962
|
title: e,
|
|
4962
4963
|
visible: t,
|
|
4963
4964
|
typographyProps: i
|
|
4964
4965
|
}) {
|
|
4965
4966
|
const r = re(null), [o, a] = _(!1);
|
|
4966
|
-
|
|
4967
|
+
on(() => {
|
|
4967
4968
|
if (t && r.current) {
|
|
4968
4969
|
const { offsetWidth: d, scrollWidth: s } = r.current;
|
|
4969
4970
|
a(d < s);
|
|
@@ -4986,8 +4987,8 @@ function Et({
|
|
|
4986
4987
|
return o ? /* @__PURE__ */ n(pe, { title: e, children: l }) : l;
|
|
4987
4988
|
}
|
|
4988
4989
|
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
|
|
4990
|
+
const ut = 20;
|
|
4991
|
+
function sl({
|
|
4991
4992
|
legend: e
|
|
4992
4993
|
}) {
|
|
4993
4994
|
const {
|
|
@@ -4996,10 +4997,10 @@ function cl({
|
|
|
4996
4997
|
isStrokeColor: r = !1,
|
|
4997
4998
|
customMarkers: o,
|
|
4998
4999
|
maskedMarkers: a = !0
|
|
4999
|
-
} = e, l =
|
|
5000
|
+
} = e, l = hn(i, t.length), d = t.length > ut, s = le(), u = se(s);
|
|
5000
5001
|
return /* @__PURE__ */ w(ie, { children: [
|
|
5001
|
-
/* @__PURE__ */ n(
|
|
5002
|
-
|
|
5002
|
+
/* @__PURE__ */ n(Bn, { "data-testid": "categories-legend", children: t.slice(0, ut).map((p, c) => /* @__PURE__ */ n(
|
|
5003
|
+
pl,
|
|
5003
5004
|
{
|
|
5004
5005
|
label: String(p),
|
|
5005
5006
|
color: l[c % l.length],
|
|
@@ -5021,14 +5022,14 @@ function cl({
|
|
|
5021
5022
|
id: "c4r.widgets.legend.maxCategories"
|
|
5022
5023
|
},
|
|
5023
5024
|
{
|
|
5024
|
-
n:
|
|
5025
|
+
n: ut
|
|
5025
5026
|
}
|
|
5026
5027
|
)
|
|
5027
5028
|
}
|
|
5028
5029
|
)
|
|
5029
5030
|
] });
|
|
5030
5031
|
}
|
|
5031
|
-
const
|
|
5032
|
+
const cl = ({
|
|
5032
5033
|
isMax: e,
|
|
5033
5034
|
color: t,
|
|
5034
5035
|
isStrokeColor: i,
|
|
@@ -5047,7 +5048,7 @@ const dl = ({
|
|
|
5047
5048
|
boxSizing: "content-box"
|
|
5048
5049
|
},
|
|
5049
5050
|
...i ? { borderColor: t } : { backgroundColor: t }
|
|
5050
|
-
}),
|
|
5051
|
+
}), dl = ({
|
|
5051
5052
|
icon: e,
|
|
5052
5053
|
color: t,
|
|
5053
5054
|
maskedIcon: i
|
|
@@ -5064,20 +5065,21 @@ const dl = ({
|
|
|
5064
5065
|
backgroundColor: "rgba(0,0,0,0)",
|
|
5065
5066
|
backgroundImage: `url(${e})`
|
|
5066
5067
|
}
|
|
5067
|
-
}),
|
|
5068
|
+
}), ul = y("span", {
|
|
5068
5069
|
shouldForwardProp: (e) => e !== "icon" && e !== "maskedIcon" && e !== "color" && e !== "isStrokeColor"
|
|
5069
5070
|
})(({ icon: e, maskedIcon: t, color: i, isStrokeColor: r, theme: o }) => ({
|
|
5070
5071
|
whiteSpace: "nowrap",
|
|
5071
5072
|
display: "block",
|
|
5072
5073
|
width: o.spacing(1.5),
|
|
5073
5074
|
height: o.spacing(1.5),
|
|
5075
|
+
marginRight: o.spacing(1.5),
|
|
5074
5076
|
flexShrink: "0",
|
|
5075
5077
|
borderRadius: "50%",
|
|
5076
5078
|
position: "relative",
|
|
5077
5079
|
border: "2px solid transparent",
|
|
5078
|
-
...e ?
|
|
5080
|
+
...e ? dl({ icon: e, color: i, maskedIcon: t }) : cl({ color: i, isStrokeColor: r, theme: o })
|
|
5079
5081
|
}));
|
|
5080
|
-
function
|
|
5082
|
+
function pl({
|
|
5081
5083
|
label: e,
|
|
5082
5084
|
isStrokeColor: t,
|
|
5083
5085
|
color: i = "#000",
|
|
@@ -5086,11 +5088,9 @@ function gl({
|
|
|
5086
5088
|
}) {
|
|
5087
5089
|
return /* @__PURE__ */ w(S, { component: "li", sx: { display: "flex", alignItems: "center" }, children: [
|
|
5088
5090
|
/* @__PURE__ */ n(
|
|
5089
|
-
|
|
5091
|
+
ul,
|
|
5090
5092
|
{
|
|
5091
5093
|
className: "marker",
|
|
5092
|
-
mr: 1.5,
|
|
5093
|
-
component: "span",
|
|
5094
5094
|
icon: r,
|
|
5095
5095
|
maskedIcon: o,
|
|
5096
5096
|
isStrokeColor: t,
|
|
@@ -5098,7 +5098,7 @@ function gl({
|
|
|
5098
5098
|
}
|
|
5099
5099
|
),
|
|
5100
5100
|
/* @__PURE__ */ n(
|
|
5101
|
-
|
|
5101
|
+
Lt,
|
|
5102
5102
|
{
|
|
5103
5103
|
title: e,
|
|
5104
5104
|
visible: !0,
|
|
@@ -5107,15 +5107,15 @@ function gl({
|
|
|
5107
5107
|
)
|
|
5108
5108
|
] });
|
|
5109
5109
|
}
|
|
5110
|
-
const Ze = 6,
|
|
5110
|
+
const Ze = 6, rt = {
|
|
5111
5111
|
0: 12,
|
|
5112
5112
|
1: 9,
|
|
5113
5113
|
2: 6,
|
|
5114
5114
|
3: 3
|
|
5115
|
-
},
|
|
5115
|
+
}, gl = y("span", {
|
|
5116
5116
|
shouldForwardProp: (e) => e !== "index"
|
|
5117
5117
|
})(({ index: e = 0, theme: t }) => {
|
|
5118
|
-
const i = t.spacing(
|
|
5118
|
+
const i = t.spacing(rt[e]), r = t.spacing(rt[e]);
|
|
5119
5119
|
return {
|
|
5120
5120
|
border: `solid 1px ${t.palette.divider}`,
|
|
5121
5121
|
backgroundColor: t.palette.background.default,
|
|
@@ -5126,20 +5126,20 @@ const Ze = 6, it = {
|
|
|
5126
5126
|
width: i,
|
|
5127
5127
|
height: r
|
|
5128
5128
|
};
|
|
5129
|
-
}),
|
|
5129
|
+
}), hl = y(S)(({ theme: { spacing: e } }) => ({
|
|
5130
5130
|
display: "flex",
|
|
5131
5131
|
justifyContent: "flex-end",
|
|
5132
5132
|
flexShrink: 0,
|
|
5133
5133
|
position: "relative",
|
|
5134
|
-
width: e(
|
|
5135
|
-
height: e(
|
|
5136
|
-
})),
|
|
5134
|
+
width: e(rt[0]),
|
|
5135
|
+
height: e(rt[0])
|
|
5136
|
+
})), fl = y(S)(({ theme: { spacing: e } }) => ({
|
|
5137
5137
|
display: "flex",
|
|
5138
5138
|
gap: e(1),
|
|
5139
5139
|
alignItems: "stretch",
|
|
5140
5140
|
justifyContent: "stretch",
|
|
5141
5141
|
padding: e(2, 0)
|
|
5142
|
-
})),
|
|
5142
|
+
})), ml = y(S)(() => ({
|
|
5143
5143
|
display: "flex",
|
|
5144
5144
|
flexDirection: "column",
|
|
5145
5145
|
justifyContent: "space-around",
|
|
@@ -5147,20 +5147,13 @@ const Ze = 6, it = {
|
|
|
5147
5147
|
flexGrow: 1,
|
|
5148
5148
|
flexShrink: 1
|
|
5149
5149
|
}));
|
|
5150
|
-
function
|
|
5150
|
+
function yl({
|
|
5151
5151
|
legend: e
|
|
5152
5152
|
}) {
|
|
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
|
-
|
|
5157
|
-
{
|
|
5158
|
-
index: p,
|
|
5159
|
-
component: "span"
|
|
5160
|
-
},
|
|
5161
|
-
p
|
|
5162
|
-
)) }),
|
|
5163
|
-
/* @__PURE__ */ n(yl, { 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: [
|
|
5153
|
+
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);
|
|
5154
|
+
return /* @__PURE__ */ w(fl, { "data-testid": "proportion-legend", children: [
|
|
5155
|
+
/* @__PURE__ */ n(hl, { children: [...Array(4)].map((u, p) => /* @__PURE__ */ n(gl, { index: p }, p)) }),
|
|
5156
|
+
/* @__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
5157
|
/* @__PURE__ */ w(z, { variant: "overline", color: "textSecondary", children: [
|
|
5165
5158
|
r && i.formatMessage({ id: "c4r.widgets.legend.max" }) + ": ",
|
|
5166
5159
|
t.formatNumber(a, {
|
|
@@ -5182,35 +5175,35 @@ function vl({
|
|
|
5182
5175
|
] }) })
|
|
5183
5176
|
] });
|
|
5184
5177
|
}
|
|
5185
|
-
function
|
|
5178
|
+
function _n({ labels: e }) {
|
|
5186
5179
|
let t = e == null ? void 0 : e[e.length - 1], i = e == null ? void 0 : e[0];
|
|
5187
5180
|
return Number.isFinite(i) || (i = parseInt(String(i), 10)), Number.isFinite(t) || (t = parseInt(String(t), 10)), [i, t];
|
|
5188
5181
|
}
|
|
5189
|
-
function
|
|
5182
|
+
function vl(e) {
|
|
5190
5183
|
let t = !1;
|
|
5191
|
-
const [i, r] =
|
|
5184
|
+
const [i, r] = _n(e);
|
|
5192
5185
|
return (Number.isNaN(i) || Number.isNaN(r)) && (t = !0), { min: i, max: r, error: t };
|
|
5193
5186
|
}
|
|
5194
|
-
function
|
|
5187
|
+
function wl(e, t) {
|
|
5195
5188
|
const i = (t - e) / 3;
|
|
5196
5189
|
return [e + i, t - i];
|
|
5197
5190
|
}
|
|
5198
|
-
function
|
|
5191
|
+
function xl({
|
|
5199
5192
|
legend: e
|
|
5200
5193
|
}) {
|
|
5201
5194
|
const { labels: t = [], icons: i = [] } = e;
|
|
5202
|
-
return /* @__PURE__ */ n(
|
|
5203
|
-
/* @__PURE__ */ n(
|
|
5195
|
+
return /* @__PURE__ */ n(Bn, { "data-testid": "icon-legend", children: t.map((r, o) => /* @__PURE__ */ w(il, { children: [
|
|
5196
|
+
/* @__PURE__ */ n(rl, { children: /* @__PURE__ */ n(
|
|
5204
5197
|
"img",
|
|
5205
5198
|
{
|
|
5206
5199
|
src: i[o],
|
|
5207
5200
|
alt: r,
|
|
5208
5201
|
width: "auto",
|
|
5209
|
-
height:
|
|
5202
|
+
height: pt
|
|
5210
5203
|
}
|
|
5211
5204
|
) }),
|
|
5212
5205
|
/* @__PURE__ */ n(
|
|
5213
|
-
|
|
5206
|
+
Lt,
|
|
5214
5207
|
{
|
|
5215
5208
|
visible: !0,
|
|
5216
5209
|
title: r,
|
|
@@ -5219,27 +5212,27 @@ function bl({
|
|
|
5219
5212
|
)
|
|
5220
5213
|
] }, r)) });
|
|
5221
5214
|
}
|
|
5222
|
-
function
|
|
5215
|
+
function bl(e) {
|
|
5223
5216
|
return typeof e[0] == "object" && "label" in e[0];
|
|
5224
5217
|
}
|
|
5225
|
-
function
|
|
5218
|
+
function Qt({
|
|
5226
5219
|
isContinuous: e = !1,
|
|
5227
5220
|
legend: t
|
|
5228
5221
|
}) {
|
|
5229
|
-
const { labels: i = [], colors: r = [], showMinMax: o = !0 } = t, a =
|
|
5222
|
+
const { labels: i = [], colors: r = [], showMinMax: o = !0 } = t, a = hn(
|
|
5230
5223
|
r,
|
|
5231
5224
|
!i.length || e ? 2 : i.length + 1
|
|
5232
|
-
), l =
|
|
5225
|
+
), 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
5226
|
let v = s[s.length - 1], g = s[0];
|
|
5234
5227
|
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
5228
|
/* @__PURE__ */ n(S, { display: "flex", pb: 1, children: e ? /* @__PURE__ */ n(
|
|
5236
|
-
|
|
5229
|
+
kl,
|
|
5237
5230
|
{
|
|
5238
5231
|
"data-testid": "step-continuous",
|
|
5239
5232
|
palette: a
|
|
5240
5233
|
}
|
|
5241
5234
|
) : /* @__PURE__ */ n(
|
|
5242
|
-
|
|
5235
|
+
Ml,
|
|
5243
5236
|
{
|
|
5244
5237
|
palette: a,
|
|
5245
5238
|
labels: s,
|
|
@@ -5253,7 +5246,7 @@ function en({
|
|
|
5253
5246
|
] })
|
|
5254
5247
|
] }) });
|
|
5255
5248
|
}
|
|
5256
|
-
const
|
|
5249
|
+
const kl = y(S, {
|
|
5257
5250
|
shouldForwardProp: (e) => e !== "palette"
|
|
5258
5251
|
})(({ palette: e, theme: t }) => ({
|
|
5259
5252
|
display: "block",
|
|
@@ -5261,7 +5254,7 @@ const Sl = y(S, {
|
|
|
5261
5254
|
height: t.spacing(1),
|
|
5262
5255
|
borderRadius: t.spacing(0.5),
|
|
5263
5256
|
background: `linear-gradient(to right, ${e.join()})`
|
|
5264
|
-
})),
|
|
5257
|
+
})), Sl = y(S, {
|
|
5265
5258
|
shouldForwardProp: (e) => e !== "color"
|
|
5266
5259
|
})(({ color: e, theme: t }) => ({
|
|
5267
5260
|
display: "block",
|
|
@@ -5275,7 +5268,7 @@ const Sl = y(S, {
|
|
|
5275
5268
|
borderRadius: t.spacing(0, 0.5, 0.5, 0)
|
|
5276
5269
|
}
|
|
5277
5270
|
}));
|
|
5278
|
-
function
|
|
5271
|
+
function Ml({
|
|
5279
5272
|
labels: e = [],
|
|
5280
5273
|
palette: t = [],
|
|
5281
5274
|
max: i,
|
|
@@ -5284,17 +5277,17 @@ function Il({
|
|
|
5284
5277
|
const o = e.length ? [r, ...e] : [r, i];
|
|
5285
5278
|
return /* @__PURE__ */ n(ie, { children: o.map((a, l) => {
|
|
5286
5279
|
const d = l === 0 ? r : l === o.length - 1 ? i : `${a} - ${o[l + 1]}`;
|
|
5287
|
-
return /* @__PURE__ */ n(pe, { title: d, children: /* @__PURE__ */ n(
|
|
5280
|
+
return /* @__PURE__ */ n(pe, { title: d, children: /* @__PURE__ */ n(Sl, { "data-testid": "step-discontinuous", color: t[l] }) }, l);
|
|
5288
5281
|
}) });
|
|
5289
5282
|
}
|
|
5290
|
-
const
|
|
5291
|
-
[Ce.CATEGORY]:
|
|
5292
|
-
[Ce.PROPORTION]:
|
|
5293
|
-
[Ce.ICON]:
|
|
5294
|
-
[Ce.BINS]: (e) => /* @__PURE__ */ n(
|
|
5295
|
-
[Ce.CONTINUOUS_RAMP]: (e) => /* @__PURE__ */ n(
|
|
5283
|
+
const Il = {
|
|
5284
|
+
[Ce.CATEGORY]: sl,
|
|
5285
|
+
[Ce.PROPORTION]: yl,
|
|
5286
|
+
[Ce.ICON]: xl,
|
|
5287
|
+
[Ce.BINS]: (e) => /* @__PURE__ */ n(Qt, { ...e, isContinuous: !1 }),
|
|
5288
|
+
[Ce.CONTINUOUS_RAMP]: (e) => /* @__PURE__ */ n(Qt, { ...e, isContinuous: !0 })
|
|
5296
5289
|
};
|
|
5297
|
-
function
|
|
5290
|
+
function Cl({ legend: e }) {
|
|
5298
5291
|
const t = le(), i = se(t);
|
|
5299
5292
|
return e.select || !e.type ? null : /* @__PURE__ */ w(z, { variant: "body2", color: "textSecondary", component: "p", children: [
|
|
5300
5293
|
e.type,
|
|
@@ -5303,17 +5296,17 @@ function Tl({ legend: e }) {
|
|
|
5303
5296
|
"."
|
|
5304
5297
|
] });
|
|
5305
5298
|
}
|
|
5306
|
-
function
|
|
5299
|
+
function Tl(e) {
|
|
5307
5300
|
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
5301
|
}
|
|
5309
|
-
function
|
|
5302
|
+
function Al({
|
|
5310
5303
|
layer: e,
|
|
5311
5304
|
legend: t,
|
|
5312
5305
|
customLegendTypes: i,
|
|
5313
5306
|
onChangeSelection: r
|
|
5314
5307
|
}) {
|
|
5315
5308
|
var p;
|
|
5316
|
-
const o = le(), a = se(o), l = t.type, s =
|
|
5309
|
+
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
5310
|
return /* @__PURE__ */ w(S, { component: "li", "data-testid": "legend-layer-variable", px: 2, children: [
|
|
5318
5311
|
t.attr ? /* @__PURE__ */ w(S, { pb: 1, children: [
|
|
5319
5312
|
/* @__PURE__ */ n(
|
|
@@ -5323,7 +5316,7 @@ function El({
|
|
|
5323
5316
|
variant: "overlineDelicate",
|
|
5324
5317
|
color: "textSecondary",
|
|
5325
5318
|
component: "p",
|
|
5326
|
-
children: a.formatMessage({ id:
|
|
5319
|
+
children: a.formatMessage({ id: Tl(t) })
|
|
5327
5320
|
}
|
|
5328
5321
|
),
|
|
5329
5322
|
/* @__PURE__ */ n(z, { variant: "caption", component: "p", children: t.attr })
|
|
@@ -5331,7 +5324,7 @@ function El({
|
|
|
5331
5324
|
t.select ? /* @__PURE__ */ w(S, { pb: 1, children: [
|
|
5332
5325
|
/* @__PURE__ */ n(z, { variant: "caption", weight: "medium", component: "p", children: t.select.label }),
|
|
5333
5326
|
/* @__PURE__ */ n(
|
|
5334
|
-
|
|
5327
|
+
ai,
|
|
5335
5328
|
{
|
|
5336
5329
|
"data-testid": "legend-layer-variable-select",
|
|
5337
5330
|
name: "legend-select",
|
|
@@ -5350,19 +5343,19 @@ function El({
|
|
|
5350
5343
|
}
|
|
5351
5344
|
}
|
|
5352
5345
|
},
|
|
5353
|
-
children: u.map((c) => /* @__PURE__ */ n(Pe, { value: c.value, children: /* @__PURE__ */ n(
|
|
5346
|
+
children: u.map((c) => /* @__PURE__ */ n(Pe, { value: c.value, children: /* @__PURE__ */ n(li, { primary: c.label }) }, c.value))
|
|
5354
5347
|
}
|
|
5355
5348
|
)
|
|
5356
5349
|
] }) : null,
|
|
5357
5350
|
/* @__PURE__ */ n(s, { layer: e, legend: t })
|
|
5358
5351
|
] });
|
|
5359
5352
|
}
|
|
5360
|
-
const
|
|
5361
|
-
function
|
|
5362
|
-
return e ? Array.isArray(e) ? e.every((t) =>
|
|
5353
|
+
const El = {};
|
|
5354
|
+
function zn(e) {
|
|
5355
|
+
return e ? Array.isArray(e) ? e.every((t) => zn(t)) : !e.select && !e.type : !0;
|
|
5363
5356
|
}
|
|
5364
|
-
function
|
|
5365
|
-
customLegendTypes: e =
|
|
5357
|
+
function en({
|
|
5358
|
+
customLegendTypes: e = El,
|
|
5366
5359
|
layer: t,
|
|
5367
5360
|
onChangeCollapsed: i,
|
|
5368
5361
|
onChangeOpacity: r,
|
|
@@ -5372,15 +5365,15 @@ function tn({
|
|
|
5372
5365
|
minZoom: d = 0,
|
|
5373
5366
|
currentZoom: s = 0
|
|
5374
5367
|
}) {
|
|
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) && !
|
|
5368
|
+
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(Di, {}) : /* @__PURE__ */ n($i, {}), 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
5369
|
intl: p,
|
|
5377
5370
|
minZoom: d,
|
|
5378
5371
|
maxZoom: l,
|
|
5379
5372
|
layerMinZoom: $,
|
|
5380
5373
|
layerMaxZoom: D
|
|
5381
5374
|
}), 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(
|
|
5375
|
+
return t.legend ? /* @__PURE__ */ w(ol, { "data-testid": "legend-layer", "aria-label": f, children: [
|
|
5376
|
+
/* @__PURE__ */ w(Qa, { ref: c, children: [
|
|
5384
5377
|
M && /* @__PURE__ */ n(
|
|
5385
5378
|
me,
|
|
5386
5379
|
{
|
|
@@ -5393,8 +5386,8 @@ function tn({
|
|
|
5393
5386
|
children: E
|
|
5394
5387
|
}
|
|
5395
5388
|
),
|
|
5396
|
-
/* @__PURE__ */ w(
|
|
5397
|
-
/* @__PURE__ */ n(
|
|
5389
|
+
/* @__PURE__ */ w(al, { children: [
|
|
5390
|
+
/* @__PURE__ */ n(Lt, { visible: h, title: f ?? "" }),
|
|
5398
5391
|
P && /* @__PURE__ */ n(
|
|
5399
5392
|
pe,
|
|
5400
5393
|
{
|
|
@@ -5422,7 +5415,7 @@ function tn({
|
|
|
5422
5415
|
)
|
|
5423
5416
|
] }),
|
|
5424
5417
|
x && h && !b && /* @__PURE__ */ n(
|
|
5425
|
-
|
|
5418
|
+
ll,
|
|
5426
5419
|
{
|
|
5427
5420
|
menuRef: c,
|
|
5428
5421
|
open: v,
|
|
@@ -5446,20 +5439,20 @@ function tn({
|
|
|
5446
5439
|
collapsed: h ? b : !1,
|
|
5447
5440
|
visible: !h
|
|
5448
5441
|
}),
|
|
5449
|
-
children: h ? /* @__PURE__ */ n(
|
|
5442
|
+
children: h ? /* @__PURE__ */ n(Ei, {}) : /* @__PURE__ */ n(Li, {})
|
|
5450
5443
|
}
|
|
5451
5444
|
)
|
|
5452
5445
|
}
|
|
5453
5446
|
)
|
|
5454
5447
|
] }),
|
|
5455
|
-
/* @__PURE__ */ w(
|
|
5448
|
+
/* @__PURE__ */ w(St, { unmountOnExit: !0, timeout: 100, in: A, children: [
|
|
5456
5449
|
/* @__PURE__ */ n(
|
|
5457
|
-
|
|
5450
|
+
nl,
|
|
5458
5451
|
{
|
|
5459
5452
|
"data-testid": "legend-layer-variable-list",
|
|
5460
5453
|
opacity: W ? 0.5 : 1,
|
|
5461
5454
|
children: C.map((N, T) => /* @__PURE__ */ n(
|
|
5462
|
-
|
|
5455
|
+
Al,
|
|
5463
5456
|
{
|
|
5464
5457
|
legend: N,
|
|
5465
5458
|
layer: t,
|
|
@@ -5483,7 +5476,7 @@ function tn({
|
|
|
5483
5476
|
] })
|
|
5484
5477
|
] }) : null;
|
|
5485
5478
|
}
|
|
5486
|
-
function
|
|
5479
|
+
function Ll({
|
|
5487
5480
|
intl: e,
|
|
5488
5481
|
minZoom: t,
|
|
5489
5482
|
maxZoom: i,
|
|
@@ -5495,11 +5488,11 @@ function $l({
|
|
|
5495
5488
|
}), 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
5489
|
return c ? `${s} ${c}` : "";
|
|
5497
5490
|
}
|
|
5498
|
-
const
|
|
5499
|
-
},
|
|
5500
|
-
function
|
|
5501
|
-
customLegendTypes: e =
|
|
5502
|
-
layers: t =
|
|
5491
|
+
const $l = {}, He = () => {
|
|
5492
|
+
}, Dl = [];
|
|
5493
|
+
function xs({
|
|
5494
|
+
customLegendTypes: e = $l,
|
|
5495
|
+
layers: t = Dl,
|
|
5503
5496
|
collapsed: i = !1,
|
|
5504
5497
|
onChangeCollapsed: r = He,
|
|
5505
5498
|
onChangeVisibility: o = He,
|
|
@@ -5513,34 +5506,34 @@ function bs({
|
|
|
5513
5506
|
isMobile: v,
|
|
5514
5507
|
sx: g
|
|
5515
5508
|
}) {
|
|
5516
|
-
const m = le(), f = se(m), h = /* @__PURE__ */ w(
|
|
5509
|
+
const m = le(), f = se(m), h = /* @__PURE__ */ w(Ja, { collapsed: i, children: [
|
|
5517
5510
|
/* @__PURE__ */ n(z, { variant: "caption", flexGrow: 1, children: s }),
|
|
5518
5511
|
/* @__PURE__ */ n(
|
|
5519
5512
|
pe,
|
|
5520
5513
|
{
|
|
5521
5514
|
title: f.formatMessage({ id: "c4r.widgets.legend.close" }),
|
|
5522
|
-
children: /* @__PURE__ */ n(me, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(
|
|
5515
|
+
children: /* @__PURE__ */ n(me, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(Ti, {}) })
|
|
5523
5516
|
}
|
|
5524
5517
|
)
|
|
5525
5518
|
] }), k = /* @__PURE__ */ n(
|
|
5526
5519
|
pe,
|
|
5527
5520
|
{
|
|
5528
5521
|
title: f.formatMessage({ id: "c4r.widgets.legend.open" }),
|
|
5529
|
-
children: /* @__PURE__ */ n(me, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(
|
|
5522
|
+
children: /* @__PURE__ */ n(me, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(Ai, {}) })
|
|
5530
5523
|
}
|
|
5531
5524
|
);
|
|
5532
|
-
return /* @__PURE__ */ n(
|
|
5525
|
+
return /* @__PURE__ */ n(Za, { sx: g, elevation: 3, collapsed: i || !!v, children: v ? /* @__PURE__ */ w(ie, { children: [
|
|
5533
5526
|
k,
|
|
5534
5527
|
/* @__PURE__ */ w(
|
|
5535
|
-
|
|
5528
|
+
si,
|
|
5536
5529
|
{
|
|
5537
5530
|
anchor: "bottom",
|
|
5538
5531
|
open: !i,
|
|
5539
5532
|
onClose: () => r(!0),
|
|
5540
5533
|
children: [
|
|
5541
5534
|
h,
|
|
5542
|
-
/* @__PURE__ */ n(
|
|
5543
|
-
|
|
5535
|
+
/* @__PURE__ */ n(Jt, { children: t.map((b) => /* @__PURE__ */ n(
|
|
5536
|
+
en,
|
|
5544
5537
|
{
|
|
5545
5538
|
layer: b,
|
|
5546
5539
|
onChangeCollapsed: l,
|
|
@@ -5559,8 +5552,8 @@ function bs({
|
|
|
5559
5552
|
)
|
|
5560
5553
|
] }) : /* @__PURE__ */ w(ie, { children: [
|
|
5561
5554
|
i ? k : h,
|
|
5562
|
-
/* @__PURE__ */ n(
|
|
5563
|
-
|
|
5555
|
+
/* @__PURE__ */ n(Jt, { width: i ? 0 : void 0, children: /* @__PURE__ */ n(St, { unmountOnExit: !0, in: !i, timeout: 500, children: t.map((b) => /* @__PURE__ */ n(
|
|
5556
|
+
en,
|
|
5564
5557
|
{
|
|
5565
5558
|
layer: b,
|
|
5566
5559
|
onChangeCollapsed: l,
|
|
@@ -5576,7 +5569,7 @@ function bs({
|
|
|
5576
5569
|
)) }) })
|
|
5577
5570
|
] }) });
|
|
5578
5571
|
}
|
|
5579
|
-
function
|
|
5572
|
+
function tn({
|
|
5580
5573
|
color: e = void 0,
|
|
5581
5574
|
children: t
|
|
5582
5575
|
}) {
|
|
@@ -5591,31 +5584,31 @@ function nn({
|
|
|
5591
5584
|
}
|
|
5592
5585
|
) }) : /* @__PURE__ */ n(S, { mt: -1 });
|
|
5593
5586
|
}
|
|
5594
|
-
function
|
|
5587
|
+
function bs({
|
|
5595
5588
|
title: e = "No data available",
|
|
5596
5589
|
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
5590
|
severity: i = void 0,
|
|
5598
5591
|
...r
|
|
5599
5592
|
}) {
|
|
5600
|
-
return i ? /* @__PURE__ */ n(
|
|
5593
|
+
return i ? /* @__PURE__ */ n(Mi, { title: e, severity: i, ...r, children: /* @__PURE__ */ n(tn, { children: t }) }) : /* @__PURE__ */ w(S, { ...r, children: [
|
|
5601
5594
|
e && /* @__PURE__ */ n(z, { variant: "body2", children: e }),
|
|
5602
|
-
/* @__PURE__ */ n(
|
|
5595
|
+
/* @__PURE__ */ n(tn, { color: "textSecondary", children: t })
|
|
5603
5596
|
] });
|
|
5604
5597
|
}
|
|
5605
|
-
const
|
|
5598
|
+
const Pl = y(S, {
|
|
5606
5599
|
shouldForwardProp: (e) => e !== "margin"
|
|
5607
5600
|
})(({ theme: e, margin: t }) => ({
|
|
5608
5601
|
margin: 0,
|
|
5609
5602
|
position: "relative",
|
|
5610
5603
|
maxWidth: "100%",
|
|
5611
5604
|
padding: t ?? e.spacing(2, 2.5)
|
|
5612
|
-
})),
|
|
5605
|
+
})), Ol = y(di)(({ theme: e }) => ({
|
|
5613
5606
|
position: "absolute",
|
|
5614
5607
|
top: 0,
|
|
5615
5608
|
left: 0,
|
|
5616
5609
|
width: "100%",
|
|
5617
5610
|
height: e.spacing(0.25)
|
|
5618
|
-
})),
|
|
5611
|
+
})), Wl = y(ae, {
|
|
5619
5612
|
shouldForwardProp: (e) => e !== "expanded"
|
|
5620
5613
|
})(({ theme: e, expanded: t = !0 }) => ({
|
|
5621
5614
|
display: "flex",
|
|
@@ -5625,7 +5618,7 @@ const Ol = y(S, {
|
|
|
5625
5618
|
width: "100%",
|
|
5626
5619
|
...t ? { minHeight: e.spacing(3) } : { height: e.spacing(3) },
|
|
5627
5620
|
padding: 0
|
|
5628
|
-
})),
|
|
5621
|
+
})), Rl = y(De, {
|
|
5629
5622
|
shouldForwardProp: (e) => e !== "expandable"
|
|
5630
5623
|
})(({ theme: e, expandable: t = !0 }) => ({
|
|
5631
5624
|
flex: 1,
|
|
@@ -5643,14 +5636,14 @@ const Ol = y(S, {
|
|
|
5643
5636
|
"&:hover": {
|
|
5644
5637
|
background: "none"
|
|
5645
5638
|
}
|
|
5646
|
-
})),
|
|
5639
|
+
})), Hn = ({ theme: e }) => ({
|
|
5647
5640
|
display: "flex",
|
|
5648
5641
|
alignItems: "center",
|
|
5649
5642
|
justifyContent: "center",
|
|
5650
5643
|
width: e.spacing(3),
|
|
5651
5644
|
height: e.spacing(3),
|
|
5652
5645
|
color: e.palette.text.secondary
|
|
5653
|
-
}),
|
|
5646
|
+
}), Fl = y(wi)(({ theme: e }) => Hn({ theme: e })), Nl = y(xi)(({ theme: e }) => Hn({ theme: e })), Bl = y($e, {
|
|
5654
5647
|
shouldForwardProp: (e) => e !== "expanded"
|
|
5655
5648
|
})(({ expanded: e = !0 }) => ({
|
|
5656
5649
|
wordBreak: "break-word",
|
|
@@ -5664,26 +5657,26 @@ const Ol = y(S, {
|
|
|
5664
5657
|
whiteSpace: "nowrap",
|
|
5665
5658
|
textOverflow: "ellipsis"
|
|
5666
5659
|
}
|
|
5667
|
-
})),
|
|
5660
|
+
})), _l = y(ae)(({ theme: e }) => ({
|
|
5668
5661
|
display: "flex",
|
|
5669
5662
|
alignItems: "center",
|
|
5670
5663
|
gap: e.spacing(1),
|
|
5671
5664
|
marginRight: e.spacing(-0.5),
|
|
5672
5665
|
marginLeft: e.spacing(1)
|
|
5673
|
-
})),
|
|
5666
|
+
})), nn = y(me)(({ theme: e }) => ({
|
|
5674
5667
|
color: e.palette.text.secondary
|
|
5675
|
-
})),
|
|
5668
|
+
})), zl = y(kt)(({ theme: e }) => ({
|
|
5676
5669
|
".MuiPaper-root": {
|
|
5677
5670
|
marginTop: e.spacing(5),
|
|
5678
5671
|
maxHeight: e.spacing(21),
|
|
5679
5672
|
minWidth: e.spacing(16)
|
|
5680
5673
|
}
|
|
5681
|
-
})),
|
|
5682
|
-
function
|
|
5674
|
+
})), rn = [], Hl = /* @__PURE__ */ n(bi, {});
|
|
5675
|
+
function ks({
|
|
5683
5676
|
title: e,
|
|
5684
|
-
actions: t =
|
|
5685
|
-
options: i =
|
|
5686
|
-
optionsIcon: r =
|
|
5677
|
+
actions: t = rn,
|
|
5678
|
+
options: i = rn,
|
|
5679
|
+
optionsIcon: r = Hl,
|
|
5687
5680
|
children: o,
|
|
5688
5681
|
contentProps: a,
|
|
5689
5682
|
disabled: l = !1,
|
|
@@ -5695,14 +5688,14 @@ function Ss({
|
|
|
5695
5688
|
isLoading: v = !1,
|
|
5696
5689
|
margin: g
|
|
5697
5690
|
}) {
|
|
5698
|
-
const m =
|
|
5691
|
+
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
5692
|
d && M(!b);
|
|
5700
5693
|
}, O = (W) => x(W.currentTarget), $ = () => x(null);
|
|
5701
5694
|
function D(W) {
|
|
5702
5695
|
W && W(), $();
|
|
5703
5696
|
}
|
|
5704
5697
|
const P = (W) => /* @__PURE__ */ n(
|
|
5705
|
-
|
|
5698
|
+
nn,
|
|
5706
5699
|
{
|
|
5707
5700
|
"aria-label": W.label,
|
|
5708
5701
|
onClick: W.action,
|
|
@@ -5711,20 +5704,20 @@ function Ss({
|
|
|
5711
5704
|
},
|
|
5712
5705
|
W.id
|
|
5713
5706
|
);
|
|
5714
|
-
return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ w(
|
|
5715
|
-
v ? /* @__PURE__ */ n(
|
|
5716
|
-
/* @__PURE__ */ w(
|
|
5707
|
+
return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ w(Pl, { margin: g, component: "section", "aria-label": e, children: [
|
|
5708
|
+
v ? /* @__PURE__ */ n(Ol, {}) : null,
|
|
5709
|
+
/* @__PURE__ */ w(Wl, { container: !0, expanded: s, children: [
|
|
5717
5710
|
/* @__PURE__ */ n(
|
|
5718
|
-
|
|
5711
|
+
Rl,
|
|
5719
5712
|
{
|
|
5720
5713
|
expandable: d,
|
|
5721
|
-
startIcon: d && /* @__PURE__ */ n(
|
|
5714
|
+
startIcon: d && /* @__PURE__ */ n(ci, { children: b ? /* @__PURE__ */ n(Fl, {}) : /* @__PURE__ */ n(Nl, {}) }),
|
|
5722
5715
|
onClick: E,
|
|
5723
5716
|
tabIndex: d ? 0 : -1,
|
|
5724
|
-
children: /* @__PURE__ */ n(pe, { title: e, children: /* @__PURE__ */ n(
|
|
5717
|
+
children: /* @__PURE__ */ n(pe, { title: e, children: /* @__PURE__ */ n(Bl, { expanded: s, align: "left", variant: "subtitle1", children: e }) })
|
|
5725
5718
|
}
|
|
5726
5719
|
),
|
|
5727
|
-
/* @__PURE__ */ w(
|
|
5720
|
+
/* @__PURE__ */ w(_l, { item: !0, children: [
|
|
5728
5721
|
c,
|
|
5729
5722
|
t.length > 0 && t.map((W) => W.tooltip ? /* @__PURE__ */ n(
|
|
5730
5723
|
pe,
|
|
@@ -5737,7 +5730,7 @@ function Ss({
|
|
|
5737
5730
|
) : P(W)),
|
|
5738
5731
|
i.length > 0 && /* @__PURE__ */ w(ie, { children: [
|
|
5739
5732
|
/* @__PURE__ */ n(
|
|
5740
|
-
|
|
5733
|
+
nn,
|
|
5741
5734
|
{
|
|
5742
5735
|
"aria-label": "options",
|
|
5743
5736
|
"aria-controls": "options-menu",
|
|
@@ -5748,7 +5741,7 @@ function Ss({
|
|
|
5748
5741
|
}
|
|
5749
5742
|
),
|
|
5750
5743
|
/* @__PURE__ */ n(
|
|
5751
|
-
|
|
5744
|
+
zl,
|
|
5752
5745
|
{
|
|
5753
5746
|
id: "options-menu",
|
|
5754
5747
|
elevation: 8,
|
|
@@ -5778,40 +5771,40 @@ function Ss({
|
|
|
5778
5771
|
] })
|
|
5779
5772
|
] })
|
|
5780
5773
|
] }),
|
|
5781
|
-
/* @__PURE__ */ n(
|
|
5774
|
+
/* @__PURE__ */ n(St, { ref: m, in: b, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ w(S, { ...a, children: [
|
|
5782
5775
|
/* @__PURE__ */ n(S, { pt: 1, children: o }),
|
|
5783
5776
|
p ?? /* @__PURE__ */ n(S, { children: p })
|
|
5784
5777
|
] }) })
|
|
5785
5778
|
] });
|
|
5786
5779
|
}
|
|
5787
5780
|
export {
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5781
|
+
ls as BarWidgetUI,
|
|
5782
|
+
ss as CategoryWidgetUI,
|
|
5783
|
+
ms as ComparativeCategoryWidgetUI,
|
|
5784
|
+
ys as ComparativeFormulaWidgetUI,
|
|
5785
|
+
vs as ComparativePieWidgetUI,
|
|
5786
|
+
Va as FeatureSelectionUIDropdown,
|
|
5787
|
+
qa as FeatureSelectionUIGeometryChips,
|
|
5788
|
+
_a as FeatureSelectionUIToggleButton,
|
|
5789
|
+
ws as FeatureSelectionWidgetUI,
|
|
5790
|
+
cs as FormulaWidgetUI,
|
|
5798
5791
|
Me as GroupDateTypes,
|
|
5799
|
-
|
|
5792
|
+
ds as HistogramWidgetUI,
|
|
5800
5793
|
Ce as LEGEND_TYPES,
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5794
|
+
sl as LegendCategories,
|
|
5795
|
+
xl as LegendIcon,
|
|
5796
|
+
yl as LegendProportion,
|
|
5797
|
+
Qt as LegendRamp,
|
|
5798
|
+
xs as LegendWidgetUI,
|
|
5799
|
+
bs as NoDataAlert,
|
|
5800
|
+
us as PieWidgetUI,
|
|
5801
|
+
ps as RangeWidgetUI,
|
|
5802
|
+
gs as ScatterPlotWidgetUI,
|
|
5803
|
+
It as TIME_SERIES_CHART_TYPES,
|
|
5804
|
+
hs as TableWidgetUI,
|
|
5805
|
+
Ao as TimeSeriesProvider,
|
|
5806
|
+
fs as TimeSeriesWidgetUI,
|
|
5807
|
+
ks as WrapperWidgetUI,
|
|
5808
|
+
Et as useTimeSeriesContext,
|
|
5809
|
+
Eo as useTimeSeriesInteractivity
|
|
5817
5810
|
};
|