@carto/meridian-ds 1.4.2 → 1.4.3-alpha-codemirror.1
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 +15 -0
- package/dist/Alert-Bcn_9-oO.cjs +4 -0
- package/dist/{Alert-Cn0nq6aq.js → Alert-mpNEqtBu.js} +36 -33
- package/dist/ArrowDown-BD0WmQR3.cjs +1 -0
- package/dist/ArrowDown-CMhYkZ2p.js +31 -0
- package/dist/{MenuItem-vbfSlKyV.js → MenuItem-Cd34y6F3.js} +41 -15
- package/dist/MenuItem-Dbss-WG1.cjs +1 -0
- package/dist/OpenDiagonallyRight-BkCaUpcr.js +56 -0
- package/dist/OpenDiagonallyRight-DqSU7b6o.cjs +1 -0
- package/dist/SwatchSquare-C34ayL4L.cjs +1 -0
- package/dist/SwatchSquare-CVpwEFFV.js +48 -0
- package/dist/TablePaginationActions-BfAn9gSh.cjs +9 -0
- package/dist/{TablePaginationActions-EC4ynZRa.js → TablePaginationActions-Cj_BbjKR.js} +364 -333
- package/dist/components/index.cjs +2 -1
- package/dist/components/index.js +2522 -1352
- package/dist/custom-icons/index.cjs +1 -1
- package/dist/custom-icons/index.js +5476 -4340
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +4 -4
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/IconButton.d.ts.map +1 -1
- package/dist/types/components/atoms/SelectField.d.ts.map +1 -1
- package/dist/types/components/atoms/Typography.d.ts.map +1 -1
- package/dist/types/components/molecules/Alert.d.ts.map +1 -1
- package/dist/types/components/molecules/Copy/CopiableComponent.d.ts +20 -0
- package/dist/types/components/molecules/Copy/CopiableComponent.d.ts.map +1 -0
- package/dist/types/components/molecules/Copy/copyString.d.ts +3 -0
- package/dist/types/components/molecules/Copy/copyString.d.ts.map +1 -0
- package/dist/types/components/molecules/Copy/index.d.ts +5 -0
- package/dist/types/components/molecules/Copy/index.d.ts.map +1 -0
- package/dist/types/components/molecules/Copy/useCopyValue.d.ts +5 -0
- package/dist/types/components/molecules/Copy/useCopyValue.d.ts.map +1 -0
- package/dist/types/components/molecules/Menu/Menu.d.ts +2 -1
- package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuItem.d.ts +2 -1
- package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts +11 -0
- package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +1 -0
- package/dist/types/components/molecules/Menu/MenuList.d.ts +2 -1
- package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/index.d.ts +2 -2
- package/dist/types/components/molecules/Menu/index.d.ts.map +1 -1
- package/dist/types/components/molecules/index.d.ts +2 -0
- package/dist/types/components/molecules/index.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +16 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +16 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +10 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +8 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +4 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +13 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +9 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +27 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +7 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/index.d.ts +4 -0
- package/dist/types/components/organisms/CodeArea/index.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/types.d.ts +39 -0
- package/dist/types/components/organisms/CodeArea/types.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/utils.d.ts +5 -0
- package/dist/types/components/organisms/CodeArea/utils.d.ts.map +1 -0
- package/dist/types/components/organisms/DatePickers/DatePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DatePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/PickersDay.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/types.d.ts +2 -0
- package/dist/types/components/organisms/DatePickers/types.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/Dialog.d.ts +1 -1
- package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +1 -1
- 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 +3 -3
- package/dist/types/custom-icons/AccessIn.d.ts.map +1 -1
- package/dist/types/custom-icons/AddApp.d.ts +3 -3
- package/dist/types/custom-icons/AddApp.d.ts.map +1 -1
- package/dist/types/custom-icons/AddSection.d.ts +3 -3
- package/dist/types/custom-icons/AddSection.d.ts.map +1 -1
- package/dist/types/custom-icons/AdvancedSettings.d.ts +3 -3
- package/dist/types/custom-icons/AdvancedSettings.d.ts.map +1 -1
- package/dist/types/custom-icons/Annotation.d.ts +3 -3
- package/dist/types/custom-icons/Annotation.d.ts.map +1 -1
- package/dist/types/custom-icons/ApiCall.d.ts +3 -3
- package/dist/types/custom-icons/ApiCall.d.ts.map +1 -1
- package/dist/types/custom-icons/ArrowDown.d.ts +3 -3
- package/dist/types/custom-icons/ArrowDown.d.ts.map +1 -1
- package/dist/types/custom-icons/ArrowLeft.d.ts +3 -3
- package/dist/types/custom-icons/ArrowLeft.d.ts.map +1 -1
- package/dist/types/custom-icons/ArrowRight.d.ts +3 -3
- package/dist/types/custom-icons/ArrowRight.d.ts.map +1 -1
- package/dist/types/custom-icons/ArrowUp.d.ts +3 -3
- package/dist/types/custom-icons/ArrowUp.d.ts.map +1 -1
- package/dist/types/custom-icons/Autostyle.d.ts +3 -3
- package/dist/types/custom-icons/Autostyle.d.ts.map +1 -1
- package/dist/types/custom-icons/Avg.d.ts +3 -3
- package/dist/types/custom-icons/Avg.d.ts.map +1 -1
- package/dist/types/custom-icons/Behavioral.d.ts +3 -3
- package/dist/types/custom-icons/Behavioral.d.ts.map +1 -1
- package/dist/types/custom-icons/Bigquery.d.ts +3 -3
- package/dist/types/custom-icons/Bigquery.d.ts.map +1 -1
- package/dist/types/custom-icons/Blending.d.ts +3 -3
- package/dist/types/custom-icons/Blending.d.ts.map +1 -1
- package/dist/types/custom-icons/BlockLabel.d.ts +3 -3
- package/dist/types/custom-icons/BlockLabel.d.ts.map +1 -1
- package/dist/types/custom-icons/BlockLabelOff.d.ts +3 -3
- package/dist/types/custom-icons/BlockLabelOff.d.ts.map +1 -1
- package/dist/types/custom-icons/BottomRow.d.ts +3 -3
- package/dist/types/custom-icons/BottomRow.d.ts.map +1 -1
- package/dist/types/custom-icons/Carto.d.ts +3 -3
- package/dist/types/custom-icons/Carto.d.ts.map +1 -1
- package/dist/types/custom-icons/CartoAi.d.ts +3 -3
- package/dist/types/custom-icons/CartoAi.d.ts.map +1 -1
- package/dist/types/custom-icons/CartoSymbol.d.ts +3 -3
- package/dist/types/custom-icons/CartoSymbol.d.ts.map +1 -1
- package/dist/types/custom-icons/CatalogView.d.ts +3 -3
- package/dist/types/custom-icons/CatalogView.d.ts.map +1 -1
- package/dist/types/custom-icons/CatastropheModeling.d.ts +3 -3
- package/dist/types/custom-icons/CatastropheModeling.d.ts.map +1 -1
- package/dist/types/custom-icons/Center.d.ts +3 -3
- package/dist/types/custom-icons/Center.d.ts.map +1 -1
- package/dist/types/custom-icons/CenterLayer.d.ts +3 -3
- package/dist/types/custom-icons/CenterLayer.d.ts.map +1 -1
- package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts +3 -3
- package/dist/types/custom-icons/CloseDiagonallyLeft.d.ts.map +1 -1
- package/dist/types/custom-icons/CloseDiagonallyRight.d.ts +3 -3
- package/dist/types/custom-icons/CloseDiagonallyRight.d.ts.map +1 -1
- package/dist/types/custom-icons/CloseVertically.d.ts +3 -3
- package/dist/types/custom-icons/CloseVertically.d.ts.map +1 -1
- package/dist/types/custom-icons/CodeBlock.d.ts +3 -3
- package/dist/types/custom-icons/CodeBlock.d.ts.map +1 -1
- package/dist/types/custom-icons/Comments.d.ts +3 -3
- package/dist/types/custom-icons/Comments.d.ts.map +1 -1
- package/dist/types/custom-icons/Console.d.ts +3 -3
- package/dist/types/custom-icons/Console.d.ts.map +1 -1
- package/dist/types/custom-icons/Covid19.d.ts +3 -3
- package/dist/types/custom-icons/Covid19.d.ts.map +1 -1
- package/dist/types/custom-icons/CreateMap.d.ts +3 -3
- package/dist/types/custom-icons/CreateMap.d.ts.map +1 -1
- package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts +3 -3
- package/dist/types/custom-icons/CreateSpatialAnalysis.d.ts.map +1 -1
- package/dist/types/custom-icons/CreateTileset.d.ts +3 -3
- package/dist/types/custom-icons/CreateTileset.d.ts.map +1 -1
- package/dist/types/custom-icons/CreateWorkflow.d.ts +3 -3
- package/dist/types/custom-icons/CreateWorkflow.d.ts.map +1 -1
- package/dist/types/custom-icons/Data.d.ts +3 -3
- package/dist/types/custom-icons/Data.d.ts.map +1 -1
- package/dist/types/custom-icons/DataAccess.d.ts +3 -3
- package/dist/types/custom-icons/DataAccess.d.ts.map +1 -1
- package/dist/types/custom-icons/DataExplorer.d.ts +3 -3
- package/dist/types/custom-icons/DataExplorer.d.ts.map +1 -1
- package/dist/types/custom-icons/DataFilter.d.ts +4 -0
- package/dist/types/custom-icons/DataFilter.d.ts.map +1 -0
- package/dist/types/custom-icons/DataMonetization.d.ts +3 -3
- package/dist/types/custom-icons/DataMonetization.d.ts.map +1 -1
- package/dist/types/custom-icons/DataObservatory.d.ts +3 -3
- package/dist/types/custom-icons/DataObservatory.d.ts.map +1 -1
- package/dist/types/custom-icons/DataOk.d.ts +3 -3
- package/dist/types/custom-icons/DataOk.d.ts.map +1 -1
- package/dist/types/custom-icons/DataPending.d.ts +3 -3
- package/dist/types/custom-icons/DataPending.d.ts.map +1 -1
- package/dist/types/custom-icons/DataPremium.d.ts +3 -3
- package/dist/types/custom-icons/DataPremium.d.ts.map +1 -1
- package/dist/types/custom-icons/DataPublic.d.ts +3 -3
- package/dist/types/custom-icons/DataPublic.d.ts.map +1 -1
- package/dist/types/custom-icons/DataSample.d.ts +3 -3
- package/dist/types/custom-icons/DataSample.d.ts.map +1 -1
- package/dist/types/custom-icons/DataUnavailable.d.ts +3 -3
- package/dist/types/custom-icons/DataUnavailable.d.ts.map +1 -1
- package/dist/types/custom-icons/Databricks.d.ts +3 -3
- package/dist/types/custom-icons/Databricks.d.ts.map +1 -1
- package/dist/types/custom-icons/Demographics.d.ts +3 -3
- package/dist/types/custom-icons/Demographics.d.ts.map +1 -1
- package/dist/types/custom-icons/Derived.d.ts +3 -3
- package/dist/types/custom-icons/Derived.d.ts.map +1 -1
- package/dist/types/custom-icons/Distance.d.ts +3 -3
- package/dist/types/custom-icons/Distance.d.ts.map +1 -1
- package/dist/types/custom-icons/Dot.d.ts +3 -3
- package/dist/types/custom-icons/Dot.d.ts.map +1 -1
- package/dist/types/custom-icons/DrawCircle.d.ts +3 -3
- package/dist/types/custom-icons/DrawCircle.d.ts.map +1 -1
- package/dist/types/custom-icons/DrawLasso.d.ts +3 -3
- package/dist/types/custom-icons/DrawLasso.d.ts.map +1 -1
- package/dist/types/custom-icons/DrawLine.d.ts +3 -3
- package/dist/types/custom-icons/DrawLine.d.ts.map +1 -1
- package/dist/types/custom-icons/DrawPolygon.d.ts +3 -3
- package/dist/types/custom-icons/DrawPolygon.d.ts.map +1 -1
- package/dist/types/custom-icons/DrawSquare.d.ts +3 -3
- package/dist/types/custom-icons/DrawSquare.d.ts.map +1 -1
- package/dist/types/custom-icons/DropAPin.d.ts +3 -3
- package/dist/types/custom-icons/DropAPin.d.ts.map +1 -1
- package/dist/types/custom-icons/DualMap.d.ts +3 -3
- package/dist/types/custom-icons/DualMap.d.ts.map +1 -1
- package/dist/types/custom-icons/Environmental.d.ts +3 -3
- package/dist/types/custom-icons/Environmental.d.ts.map +1 -1
- package/dist/types/custom-icons/EnvironmentalManagement.d.ts +3 -3
- package/dist/types/custom-icons/EnvironmentalManagement.d.ts.map +1 -1
- package/dist/types/custom-icons/Equal.d.ts +3 -3
- package/dist/types/custom-icons/Equal.d.ts.map +1 -1
- package/dist/types/custom-icons/ExitToAppLeft.d.ts +3 -3
- package/dist/types/custom-icons/ExitToAppLeft.d.ts.map +1 -1
- package/dist/types/custom-icons/Fabric.d.ts +3 -3
- package/dist/types/custom-icons/Fabric.d.ts.map +1 -1
- package/dist/types/custom-icons/Facebook.d.ts +3 -3
- package/dist/types/custom-icons/Facebook.d.ts.map +1 -1
- package/dist/types/custom-icons/Financial.d.ts +3 -3
- package/dist/types/custom-icons/Financial.d.ts.map +1 -1
- package/dist/types/custom-icons/FlipInverse.d.ts +3 -3
- package/dist/types/custom-icons/FlipInverse.d.ts.map +1 -1
- package/dist/types/custom-icons/Framed.d.ts +3 -3
- package/dist/types/custom-icons/Framed.d.ts.map +1 -1
- package/dist/types/custom-icons/FraudDetection.d.ts +3 -3
- package/dist/types/custom-icons/FraudDetection.d.ts.map +1 -1
- package/dist/types/custom-icons/Functions.d.ts +3 -3
- package/dist/types/custom-icons/Functions.d.ts.map +1 -1
- package/dist/types/custom-icons/GeneratingDescription.d.ts +3 -3
- package/dist/types/custom-icons/GeneratingDescription.d.ts.map +1 -1
- package/dist/types/custom-icons/GeocodeTable.d.ts +3 -3
- package/dist/types/custom-icons/GeocodeTable.d.ts.map +1 -1
- package/dist/types/custom-icons/Geography.d.ts +3 -3
- package/dist/types/custom-icons/Geography.d.ts.map +1 -1
- package/dist/types/custom-icons/Geomarketing.d.ts +3 -3
- package/dist/types/custom-icons/Geomarketing.d.ts.map +1 -1
- package/dist/types/custom-icons/Geometry.d.ts +3 -3
- package/dist/types/custom-icons/Geometry.d.ts.map +1 -1
- package/dist/types/custom-icons/Github.d.ts +3 -3
- package/dist/types/custom-icons/Github.d.ts.map +1 -1
- package/dist/types/custom-icons/Google.d.ts +3 -3
- package/dist/types/custom-icons/Google.d.ts.map +1 -1
- package/dist/types/custom-icons/H3.d.ts +3 -3
- package/dist/types/custom-icons/H3.d.ts.map +1 -1
- package/dist/types/custom-icons/HealthAnalytics.d.ts +3 -3
- package/dist/types/custom-icons/HealthAnalytics.d.ts.map +1 -1
- package/dist/types/custom-icons/HideComments.d.ts +3 -3
- package/dist/types/custom-icons/HideComments.d.ts.map +1 -1
- package/dist/types/custom-icons/HideLeftsidebar.d.ts +3 -3
- package/dist/types/custom-icons/HideLeftsidebar.d.ts.map +1 -1
- package/dist/types/custom-icons/Home.d.ts +3 -3
- package/dist/types/custom-icons/Home.d.ts.map +1 -1
- package/dist/types/custom-icons/Housing.d.ts +3 -3
- package/dist/types/custom-icons/Housing.d.ts.map +1 -1
- package/dist/types/custom-icons/HumanMobility.d.ts +3 -3
- package/dist/types/custom-icons/HumanMobility.d.ts.map +1 -1
- package/dist/types/custom-icons/Id.d.ts +3 -3
- package/dist/types/custom-icons/Id.d.ts.map +1 -1
- package/dist/types/custom-icons/Image.d.ts +3 -3
- package/dist/types/custom-icons/Image.d.ts.map +1 -1
- package/dist/types/custom-icons/Infrastructure.d.ts +3 -3
- package/dist/types/custom-icons/Infrastructure.d.ts.map +1 -1
- package/dist/types/custom-icons/IotAnalytics.d.ts +3 -3
- package/dist/types/custom-icons/IotAnalytics.d.ts.map +1 -1
- package/dist/types/custom-icons/LabelDeprecated.d.ts +3 -3
- package/dist/types/custom-icons/LabelDeprecated.d.ts.map +1 -1
- package/dist/types/custom-icons/Layers.d.ts +3 -3
- package/dist/types/custom-icons/Layers.d.ts.map +1 -1
- package/dist/types/custom-icons/Linkedin.d.ts +3 -3
- package/dist/types/custom-icons/Linkedin.d.ts.map +1 -1
- package/dist/types/custom-icons/MapCoordinates.d.ts +3 -3
- package/dist/types/custom-icons/MapCoordinates.d.ts.map +1 -1
- package/dist/types/custom-icons/MapCopy.d.ts +3 -3
- package/dist/types/custom-icons/MapCopy.d.ts.map +1 -1
- package/dist/types/custom-icons/MapOthers.d.ts +3 -3
- package/dist/types/custom-icons/MapOthers.d.ts.map +1 -1
- package/dist/types/custom-icons/MapPin.d.ts +3 -3
- package/dist/types/custom-icons/MapPin.d.ts.map +1 -1
- package/dist/types/custom-icons/MarkCommentRead.d.ts +3 -3
- package/dist/types/custom-icons/MarkCommentRead.d.ts.map +1 -1
- package/dist/types/custom-icons/MarketAnalysis.d.ts +3 -3
- package/dist/types/custom-icons/MarketAnalysis.d.ts.map +1 -1
- package/dist/types/custom-icons/Max.d.ts +3 -3
- package/dist/types/custom-icons/Max.d.ts.map +1 -1
- package/dist/types/custom-icons/MeasureTool.d.ts +3 -3
- package/dist/types/custom-icons/MeasureTool.d.ts.map +1 -1
- package/dist/types/custom-icons/Min.d.ts +3 -3
- package/dist/types/custom-icons/Min.d.ts.map +1 -1
- package/dist/types/custom-icons/MobilityPlanning.d.ts +3 -3
- package/dist/types/custom-icons/MobilityPlanning.d.ts.map +1 -1
- package/dist/types/custom-icons/NetworkDeployment.d.ts +3 -3
- package/dist/types/custom-icons/NetworkDeployment.d.ts.map +1 -1
- package/dist/types/custom-icons/NightsThermostat.d.ts +3 -3
- package/dist/types/custom-icons/NightsThermostat.d.ts.map +1 -1
- package/dist/types/custom-icons/NoApp.d.ts +3 -3
- package/dist/types/custom-icons/NoApp.d.ts.map +1 -1
- package/dist/types/custom-icons/NoMap.d.ts +3 -3
- package/dist/types/custom-icons/NoMap.d.ts.map +1 -1
- package/dist/types/custom-icons/NoSpatialExtension.d.ts +3 -3
- package/dist/types/custom-icons/NoSpatialExtension.d.ts.map +1 -1
- package/dist/types/custom-icons/NoTileset.d.ts +3 -3
- package/dist/types/custom-icons/NoTileset.d.ts.map +1 -1
- package/dist/types/custom-icons/NotEqual.d.ts +3 -3
- package/dist/types/custom-icons/NotEqual.d.ts.map +1 -1
- package/dist/types/custom-icons/Number.d.ts +3 -3
- package/dist/types/custom-icons/Number.d.ts.map +1 -1
- package/dist/types/custom-icons/Onboarding.d.ts +3 -3
- package/dist/types/custom-icons/Onboarding.d.ts.map +1 -1
- package/dist/types/custom-icons/OohAnalytics.d.ts +3 -3
- package/dist/types/custom-icons/OohAnalytics.d.ts.map +1 -1
- package/dist/types/custom-icons/Opacity.d.ts +3 -3
- package/dist/types/custom-icons/Opacity.d.ts.map +1 -1
- package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts +3 -3
- package/dist/types/custom-icons/OpenDiagonallyLeft.d.ts.map +1 -1
- package/dist/types/custom-icons/OpenDiagonallyRight.d.ts +3 -3
- package/dist/types/custom-icons/OpenDiagonallyRight.d.ts.map +1 -1
- package/dist/types/custom-icons/OpenNewWindow.d.ts +3 -3
- package/dist/types/custom-icons/OpenNewWindow.d.ts.map +1 -1
- package/dist/types/custom-icons/OpenVertically.d.ts +3 -3
- package/dist/types/custom-icons/OpenVertically.d.ts.map +1 -1
- package/dist/types/custom-icons/ParameterSettings.d.ts +3 -3
- package/dist/types/custom-icons/ParameterSettings.d.ts.map +1 -1
- package/dist/types/custom-icons/PawnChess.d.ts +3 -3
- package/dist/types/custom-icons/PawnChess.d.ts.map +1 -1
- package/dist/types/custom-icons/PlaceSelect.d.ts +3 -3
- package/dist/types/custom-icons/PlaceSelect.d.ts.map +1 -1
- package/dist/types/custom-icons/PointsOfInterest.d.ts +3 -3
- package/dist/types/custom-icons/PointsOfInterest.d.ts.map +1 -1
- package/dist/types/custom-icons/Postgre.d.ts +3 -3
- package/dist/types/custom-icons/Postgre.d.ts.map +1 -1
- package/dist/types/custom-icons/PostgreOutlined.d.ts +3 -3
- package/dist/types/custom-icons/PostgreOutlined.d.ts.map +1 -1
- package/dist/types/custom-icons/Preferences.d.ts +3 -3
- package/dist/types/custom-icons/Preferences.d.ts.map +1 -1
- package/dist/types/custom-icons/ProcessData.d.ts +3 -3
- package/dist/types/custom-icons/ProcessData.d.ts.map +1 -1
- package/dist/types/custom-icons/PublicWithPassword.d.ts +3 -3
- package/dist/types/custom-icons/PublicWithPassword.d.ts.map +1 -1
- package/dist/types/custom-icons/Publish.d.ts +3 -3
- package/dist/types/custom-icons/Publish.d.ts.map +1 -1
- package/dist/types/custom-icons/Quadbin.d.ts +3 -3
- package/dist/types/custom-icons/Quadbin.d.ts.map +1 -1
- package/dist/types/custom-icons/Quadkey.d.ts +3 -3
- package/dist/types/custom-icons/Quadkey.d.ts.map +1 -1
- package/dist/types/custom-icons/QueryTable.d.ts +3 -3
- package/dist/types/custom-icons/QueryTable.d.ts.map +1 -1
- package/dist/types/custom-icons/Rain.d.ts +3 -3
- package/dist/types/custom-icons/Rain.d.ts.map +1 -1
- package/dist/types/custom-icons/Raster.d.ts +3 -3
- package/dist/types/custom-icons/Raster.d.ts.map +1 -1
- package/dist/types/custom-icons/Redshift.d.ts +3 -3
- package/dist/types/custom-icons/Redshift.d.ts.map +1 -1
- package/dist/types/custom-icons/Report.d.ts +3 -3
- package/dist/types/custom-icons/Report.d.ts.map +1 -1
- package/dist/types/custom-icons/Reset.d.ts +3 -3
- package/dist/types/custom-icons/Reset.d.ts.map +1 -1
- package/dist/types/custom-icons/RiskAnalysis.d.ts +3 -3
- package/dist/types/custom-icons/RiskAnalysis.d.ts.map +1 -1
- package/dist/types/custom-icons/RoadTraffic.d.ts +3 -3
- package/dist/types/custom-icons/RoadTraffic.d.ts.map +1 -1
- package/dist/types/custom-icons/RunSettings.d.ts +3 -3
- package/dist/types/custom-icons/RunSettings.d.ts.map +1 -1
- package/dist/types/custom-icons/RunStep.d.ts +3 -3
- package/dist/types/custom-icons/RunStep.d.ts.map +1 -1
- package/dist/types/custom-icons/Salesforce.d.ts +3 -3
- package/dist/types/custom-icons/Salesforce.d.ts.map +1 -1
- package/dist/types/custom-icons/Sample.d.ts +3 -3
- package/dist/types/custom-icons/Sample.d.ts.map +1 -1
- package/dist/types/custom-icons/SaveOk.d.ts +3 -3
- package/dist/types/custom-icons/SaveOk.d.ts.map +1 -1
- package/dist/types/custom-icons/ScheduleRun.d.ts +3 -3
- package/dist/types/custom-icons/ScheduleRun.d.ts.map +1 -1
- package/dist/types/custom-icons/Search.d.ts +3 -3
- package/dist/types/custom-icons/Search.d.ts.map +1 -1
- package/dist/types/custom-icons/SelectDestination.d.ts +3 -3
- package/dist/types/custom-icons/SelectDestination.d.ts.map +1 -1
- package/dist/types/custom-icons/SelectTool.d.ts +3 -3
- package/dist/types/custom-icons/SelectTool.d.ts.map +1 -1
- package/dist/types/custom-icons/SelectVariable.d.ts +3 -3
- package/dist/types/custom-icons/SelectVariable.d.ts.map +1 -1
- package/dist/types/custom-icons/SingleLayer.d.ts +3 -3
- package/dist/types/custom-icons/SingleLayer.d.ts.map +1 -1
- package/dist/types/custom-icons/SiteSelection.d.ts +3 -3
- package/dist/types/custom-icons/SiteSelection.d.ts.map +1 -1
- package/dist/types/custom-icons/Snowflake.d.ts +3 -3
- package/dist/types/custom-icons/Snowflake.d.ts.map +1 -1
- package/dist/types/custom-icons/SpatialAnalysis.d.ts +3 -3
- package/dist/types/custom-icons/SpatialAnalysis.d.ts.map +1 -1
- package/dist/types/custom-icons/SpatialExtension.d.ts +3 -3
- package/dist/types/custom-icons/SpatialExtension.d.ts.map +1 -1
- package/dist/types/custom-icons/SpatialIndexes.d.ts +3 -3
- package/dist/types/custom-icons/SpatialIndexes.d.ts.map +1 -1
- package/dist/types/custom-icons/Sql.d.ts +3 -3
- package/dist/types/custom-icons/Sql.d.ts.map +1 -1
- package/dist/types/custom-icons/SqlError.d.ts +3 -3
- package/dist/types/custom-icons/SqlError.d.ts.map +1 -1
- package/dist/types/custom-icons/Sso.d.ts +3 -3
- package/dist/types/custom-icons/Sso.d.ts.map +1 -1
- package/dist/types/custom-icons/StrokeCustom.d.ts +3 -3
- package/dist/types/custom-icons/StrokeCustom.d.ts.map +1 -1
- package/dist/types/custom-icons/StrokeDash.d.ts +3 -3
- package/dist/types/custom-icons/StrokeDash.d.ts.map +1 -1
- package/dist/types/custom-icons/StrokeSolid.d.ts +3 -3
- package/dist/types/custom-icons/StrokeSolid.d.ts.map +1 -1
- package/dist/types/custom-icons/SupplyChain.d.ts +3 -3
- package/dist/types/custom-icons/SupplyChain.d.ts.map +1 -1
- package/dist/types/custom-icons/SwatchCircle.d.ts +3 -3
- package/dist/types/custom-icons/SwatchCircle.d.ts.map +1 -1
- package/dist/types/custom-icons/SwatchCircleNone.d.ts +3 -3
- package/dist/types/custom-icons/SwatchCircleNone.d.ts.map +1 -1
- package/dist/types/custom-icons/SwatchSquare.d.ts +3 -3
- package/dist/types/custom-icons/SwatchSquare.d.ts.map +1 -1
- package/dist/types/custom-icons/TableColumn.d.ts +3 -3
- package/dist/types/custom-icons/TableColumn.d.ts.map +1 -1
- package/dist/types/custom-icons/TableColumnLimited.d.ts +3 -3
- package/dist/types/custom-icons/TableColumnLimited.d.ts.map +1 -1
- package/dist/types/custom-icons/TempTable.d.ts +3 -3
- package/dist/types/custom-icons/TempTable.d.ts.map +1 -1
- package/dist/types/custom-icons/TerritoryPlanning.d.ts +3 -3
- package/dist/types/custom-icons/TerritoryPlanning.d.ts.map +1 -1
- package/dist/types/custom-icons/TextBox.d.ts +3 -3
- package/dist/types/custom-icons/TextBox.d.ts.map +1 -1
- package/dist/types/custom-icons/Tileset.d.ts +3 -3
- package/dist/types/custom-icons/Tileset.d.ts.map +1 -1
- package/dist/types/custom-icons/TilesetsAggregated.d.ts +3 -3
- package/dist/types/custom-icons/TilesetsAggregated.d.ts.map +1 -1
- package/dist/types/custom-icons/TimeBuckets.d.ts +3 -3
- package/dist/types/custom-icons/TimeBuckets.d.ts.map +1 -1
- package/dist/types/custom-icons/TimeCar.d.ts +3 -3
- package/dist/types/custom-icons/TimeCar.d.ts.map +1 -1
- package/dist/types/custom-icons/TimeWindowIncremental.d.ts +3 -3
- package/dist/types/custom-icons/TimeWindowIncremental.d.ts.map +1 -1
- package/dist/types/custom-icons/TimeWindowMoving.d.ts +3 -3
- package/dist/types/custom-icons/TimeWindowMoving.d.ts.map +1 -1
- package/dist/types/custom-icons/Tooltip.d.ts +3 -3
- package/dist/types/custom-icons/Tooltip.d.ts.map +1 -1
- package/dist/types/custom-icons/TopRow.d.ts +3 -3
- package/dist/types/custom-icons/TopRow.d.ts.map +1 -1
- package/dist/types/custom-icons/TwinArea.d.ts +3 -3
- package/dist/types/custom-icons/TwinArea.d.ts.map +1 -1
- package/dist/types/custom-icons/Twitter.d.ts +3 -3
- package/dist/types/custom-icons/Twitter.d.ts.map +1 -1
- package/dist/types/custom-icons/UpdateGen.d.ts +3 -3
- package/dist/types/custom-icons/UpdateGen.d.ts.map +1 -1
- package/dist/types/custom-icons/UploadFileUrl.d.ts +3 -3
- package/dist/types/custom-icons/UploadFileUrl.d.ts.map +1 -1
- package/dist/types/custom-icons/View2d.d.ts +3 -3
- package/dist/types/custom-icons/View2d.d.ts.map +1 -1
- package/dist/types/custom-icons/View3d.d.ts +3 -3
- package/dist/types/custom-icons/View3d.d.ts.map +1 -1
- package/dist/types/custom-icons/ViewLeftsidebar.d.ts +3 -3
- package/dist/types/custom-icons/ViewLeftsidebar.d.ts.map +1 -1
- package/dist/types/custom-icons/WfComponent.d.ts +3 -3
- package/dist/types/custom-icons/WfComponent.d.ts.map +1 -1
- package/dist/types/custom-icons/WfComponentInvalid.d.ts +3 -3
- package/dist/types/custom-icons/WfComponentInvalid.d.ts.map +1 -1
- package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts +3 -3
- package/dist/types/custom-icons/WfExtensionPackageDefault.d.ts.map +1 -1
- package/dist/types/custom-icons/WfInput.d.ts +3 -3
- package/dist/types/custom-icons/WfInput.d.ts.map +1 -1
- package/dist/types/custom-icons/WfInputAlt.d.ts +3 -3
- package/dist/types/custom-icons/WfInputAlt.d.ts.map +1 -1
- package/dist/types/custom-icons/WfModule.d.ts +3 -3
- package/dist/types/custom-icons/WfModule.d.ts.map +1 -1
- package/dist/types/custom-icons/WfOutput.d.ts +3 -3
- package/dist/types/custom-icons/WfOutput.d.ts.map +1 -1
- package/dist/types/custom-icons/WfOutputAlt.d.ts +3 -3
- package/dist/types/custom-icons/WfOutputAlt.d.ts.map +1 -1
- package/dist/types/custom-icons/WhiteSpace.d.ts +3 -3
- package/dist/types/custom-icons/WhiteSpace.d.ts.map +1 -1
- package/dist/types/custom-icons/WidgetOptions.d.ts +3 -3
- package/dist/types/custom-icons/WidgetOptions.d.ts.map +1 -1
- package/dist/types/custom-icons/Workflow.d.ts +3 -3
- package/dist/types/custom-icons/Workflow.d.ts.map +1 -1
- package/dist/types/custom-icons/WorkflowTemp.d.ts +3 -3
- package/dist/types/custom-icons/WorkflowTemp.d.ts.map +1 -1
- package/dist/types/custom-icons/index.d.ts +1 -0
- package/dist/types/custom-icons/index.d.ts.map +1 -1
- package/dist/types/custom-icons/types.d.ts +14 -0
- package/dist/types/custom-icons/types.d.ts.map +1 -0
- package/dist/types/localization/en.d.ts +10 -0
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +10 -0
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +10 -0
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +30 -0
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/types/widgets/RangeWidgetUI/RangeSkeleton.d.ts.map +1 -1
- package/dist/widgets/index.cjs +3 -3
- package/dist/widgets/index.js +5 -5
- package/package.json +10 -3
- package/dist/Alert-B2JgFj6Y.cjs +0 -4
- package/dist/ArrowDown-B1AG0MlL.js +0 -24
- package/dist/ArrowDown-CGnG0E-4.cjs +0 -1
- package/dist/MenuItem-CuEx97RN.cjs +0 -1
- package/dist/SwatchSquare-C-QxZLYN.cjs +0 -1
- package/dist/SwatchSquare-DAne_6Gi.js +0 -35
- package/dist/TablePaginationActions-7wkkiCXh.cjs +0 -9
- package/dist/types/components/molecules/Menu/MenuFilter.d.ts +0 -8
- package/dist/types/components/molecules/Menu/MenuFilter.d.ts.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,20 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { styled as
|
|
4
|
-
import { T as
|
|
5
|
-
import { a as
|
|
1
|
+
import { jsx as n, jsxs as x, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O, useState as B, useEffect as z, useMemo as At, useRef as Z, Fragment as te, useCallback as ot, useImperativeHandle as ee } from "react";
|
|
3
|
+
import { styled as m, Box as D, Button as St, CircularProgress as G, TextField as It, InputAdornment as it, IconButton as W, Tooltip as P, Select as oe, MenuItem as $t, FormControl as Bt, InputLabel as Tt, FormHelperText as J, ToggleButtonGroup as re, Menu as ne, MenuList as ie, Link as ae, Checkbox as at, ListItemText as U, Autocomplete as lt, Divider as _, ListItemIcon as rt, createFilterOptions as le, Accordion as ce, AccordionSummary as de, AccordionDetails as se, Avatar as ue, Snackbar as pe, Portal as ge, Fade as fe, Slide as Rt, alpha as Ot, useTheme as j, Toolbar as me, AppBar as be, Paper as he, Dialog as xe, DialogTitle as ye, Chip as Ce, DialogContent as Me, DialogActions as ke } from "@mui/material";
|
|
4
|
+
import { T as F, c as N, u as T, N as ft, A as ve } from "../TablePaginationActions-Cj_BbjKR.js";
|
|
5
|
+
import { a as ei } from "../TablePaginationActions-Cj_BbjKR.js";
|
|
6
6
|
import { useIntl as R } from "react-intl";
|
|
7
|
-
import { VisibilityOffOutlined as
|
|
8
|
-
import { A as
|
|
7
|
+
import { VisibilityOffOutlined as we, VisibilityOutlined as De, Cancel as Ft, AddCircleOutlineOutlined as Ae, ContentCopyOutlined as Lt, CloseOutlined as Wt, MenuOutlined as Se, HelpOutline as K, TodayOutlined as Ie, MoreVertOutlined as $e, ErrorOutline as Be, Check as Te } from "@mui/icons-material";
|
|
8
|
+
import { A as Et } from "../Alert-mpNEqtBu.js";
|
|
9
9
|
import "cartocolor";
|
|
10
|
-
import { M as
|
|
11
|
-
import { A as
|
|
12
|
-
import { DatePicker as
|
|
13
|
-
import { PickersDay as
|
|
14
|
-
import { TimePicker as
|
|
15
|
-
import { DateTimePicker as
|
|
16
|
-
import
|
|
17
|
-
|
|
10
|
+
import { M as Y } from "../MenuItem-Cd34y6F3.js";
|
|
11
|
+
import { A as ct } from "../ArrowDown-CMhYkZ2p.js";
|
|
12
|
+
import { DatePicker as Re } from "@mui/x-date-pickers/DatePicker";
|
|
13
|
+
import { PickersDay as Oe } from "@mui/x-date-pickers";
|
|
14
|
+
import { TimePicker as Fe } from "@mui/x-date-pickers/TimePicker";
|
|
15
|
+
import { DateTimePicker as Le } from "@mui/x-date-pickers/DateTimePicker";
|
|
16
|
+
import { O as mt, C as We } from "../OpenDiagonallyRight-BkCaUpcr.js";
|
|
17
|
+
import { Controlled as Ee, UnControlled as He } from "react-codemirror2";
|
|
18
|
+
import { lime as bt, blue as tt, purple as Pe, teal as ze, red as Ne, indigo as _e } from "@mui/material/colors";
|
|
19
|
+
import "codemirror/lib/codemirror.css";
|
|
20
|
+
import "codemirror/lib/codemirror.js";
|
|
21
|
+
import "codemirror/mode/sql/sql.js";
|
|
22
|
+
import "codemirror/mode/javascript/javascript.js";
|
|
23
|
+
import "codemirror/mode/htmlmixed/htmlmixed.js";
|
|
24
|
+
import "codemirror/mode/markdown/markdown.js";
|
|
25
|
+
import "codemirror/mode/shell/shell.js";
|
|
26
|
+
import "codemirror/mode/python/python.js";
|
|
27
|
+
import "codemirror/addon/display/placeholder";
|
|
28
|
+
import "codemirror/addon/hint/sql-hint.js";
|
|
29
|
+
import "codemirror/addon/hint/show-hint.css";
|
|
30
|
+
import "codemirror/addon/hint/show-hint.js";
|
|
31
|
+
import "codemirror/addon/selection/active-line.js";
|
|
32
|
+
import "codemirror/addon/edit/matchbrackets.js";
|
|
33
|
+
import "codemirror/addon/fold/foldcode.js";
|
|
34
|
+
import "codemirror/addon/fold/foldgutter.js";
|
|
35
|
+
import "codemirror/addon/fold/foldgutter.css";
|
|
36
|
+
import "codemirror/addon/fold/brace-fold.js";
|
|
37
|
+
import "codemirror/addon/fold/xml-fold.js";
|
|
38
|
+
import "codemirror/addon/fold/indent-fold.js";
|
|
39
|
+
import "codemirror/addon/fold/markdown-fold.js";
|
|
40
|
+
import "codemirror/addon/fold/comment-fold.js";
|
|
41
|
+
import Ge from "@mui/material/ClickAwayListener";
|
|
42
|
+
const je = m(D)({
|
|
18
43
|
position: "absolute",
|
|
19
44
|
top: 0,
|
|
20
45
|
left: 0,
|
|
@@ -23,52 +48,53 @@ const ye = p(v)({
|
|
|
23
48
|
display: "flex",
|
|
24
49
|
alignItems: "center",
|
|
25
50
|
justifyContent: "center"
|
|
26
|
-
}),
|
|
51
|
+
}), Ve = m(D)({
|
|
27
52
|
visibility: "hidden",
|
|
28
53
|
pointerEvents: "none"
|
|
29
54
|
});
|
|
30
|
-
function
|
|
55
|
+
function Ue({
|
|
31
56
|
children: t,
|
|
32
57
|
loading: e,
|
|
33
|
-
disabled:
|
|
34
|
-
startIcon:
|
|
35
|
-
endIcon:
|
|
36
|
-
loadingPosition:
|
|
37
|
-
...
|
|
58
|
+
disabled: o,
|
|
59
|
+
startIcon: r,
|
|
60
|
+
endIcon: i,
|
|
61
|
+
loadingPosition: l,
|
|
62
|
+
...a
|
|
38
63
|
}, c) {
|
|
39
|
-
const
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
] }) : t,
|
|
43
|
-
if (!
|
|
44
|
-
return e &&
|
|
64
|
+
const d = /* @__PURE__ */ n(G, { size: 18, color: "inherit" }), u = e && l === void 0, p = () => u ? /* @__PURE__ */ x(D, { sx: { position: "relative" }, children: [
|
|
65
|
+
/* @__PURE__ */ n(je, { children: d }),
|
|
66
|
+
/* @__PURE__ */ n(Ve, { children: t })
|
|
67
|
+
] }) : t, s = (b) => {
|
|
68
|
+
if (!u)
|
|
69
|
+
return e && l !== void 0 ? l === b ? d : void 0 : b === "start" ? r : i;
|
|
45
70
|
};
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
-
|
|
71
|
+
return /* @__PURE__ */ n(
|
|
72
|
+
St,
|
|
48
73
|
{
|
|
49
|
-
disabled: e ||
|
|
50
|
-
startIcon:
|
|
51
|
-
endIcon:
|
|
52
|
-
...
|
|
74
|
+
disabled: e || o,
|
|
75
|
+
startIcon: s("start"),
|
|
76
|
+
endIcon: s("end"),
|
|
77
|
+
...a,
|
|
78
|
+
role: a.href ? "link" : "button",
|
|
53
79
|
ref: c,
|
|
54
|
-
children: /* @__PURE__ */
|
|
80
|
+
children: /* @__PURE__ */ n(F, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: p() })
|
|
55
81
|
}
|
|
56
82
|
);
|
|
57
83
|
}
|
|
58
|
-
const
|
|
84
|
+
const nt = O(Ue), Ye = m(D)(({ theme: t }) => ({
|
|
59
85
|
display: "flex",
|
|
60
86
|
alignItems: "center",
|
|
61
87
|
gap: t.spacing(0.5)
|
|
62
|
-
})),
|
|
88
|
+
})), qe = m(F)(({ theme: t }) => ({
|
|
63
89
|
".Mui-disabled &": {
|
|
64
90
|
color: t.palette.text.disabled
|
|
65
91
|
}
|
|
66
|
-
})),
|
|
92
|
+
})), Ze = m(D)(({ theme: t }) => ({
|
|
67
93
|
display: "flex",
|
|
68
94
|
svg: {
|
|
69
|
-
width:
|
|
70
|
-
height:
|
|
71
|
-
fontSize:
|
|
95
|
+
width: N,
|
|
96
|
+
height: N,
|
|
97
|
+
fontSize: N,
|
|
72
98
|
path: {
|
|
73
99
|
fill: t.palette.text.secondary,
|
|
74
100
|
".Mui-disabled &": {
|
|
@@ -80,55 +106,55 @@ const go = L(Ce), ve = p(v)(({ theme: t }) => ({
|
|
|
80
106
|
function X({
|
|
81
107
|
label: t,
|
|
82
108
|
type: e,
|
|
83
|
-
icon:
|
|
84
|
-
inheritSize:
|
|
109
|
+
icon: o,
|
|
110
|
+
inheritSize: r
|
|
85
111
|
}) {
|
|
86
|
-
return /* @__PURE__ */ x(
|
|
112
|
+
return /* @__PURE__ */ x(Ye, { children: [
|
|
87
113
|
t,
|
|
88
|
-
e && /* @__PURE__ */
|
|
89
|
-
|
|
114
|
+
e && /* @__PURE__ */ n(
|
|
115
|
+
qe,
|
|
90
116
|
{
|
|
91
117
|
component: "span",
|
|
92
|
-
variant:
|
|
118
|
+
variant: r ? "inherit" : "caption",
|
|
93
119
|
color: "textSecondary",
|
|
94
120
|
weight: "regular",
|
|
95
121
|
children: e === "required" ? "(required)" : "(optional)"
|
|
96
122
|
}
|
|
97
123
|
),
|
|
98
|
-
|
|
124
|
+
o && /* @__PURE__ */ n(Ze, { children: o })
|
|
99
125
|
] });
|
|
100
126
|
}
|
|
101
|
-
function
|
|
102
|
-
const
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
|
|
127
|
+
function Je({ InputProps: t, size: e = "small", ...o }, r) {
|
|
128
|
+
const i = R(), l = T(i), [a, c] = B(!1);
|
|
129
|
+
return /* @__PURE__ */ n(
|
|
130
|
+
It,
|
|
105
131
|
{
|
|
106
|
-
...
|
|
107
|
-
ref:
|
|
108
|
-
type:
|
|
132
|
+
...o,
|
|
133
|
+
ref: r,
|
|
134
|
+
type: a ? "text" : "password",
|
|
109
135
|
size: e,
|
|
110
136
|
InputProps: {
|
|
111
137
|
...t,
|
|
112
|
-
endAdornment: /* @__PURE__ */
|
|
113
|
-
|
|
138
|
+
endAdornment: /* @__PURE__ */ n(it, { position: "end", children: /* @__PURE__ */ n(W, { size: e, onClick: () => c(!a), children: /* @__PURE__ */ n(
|
|
139
|
+
P,
|
|
114
140
|
{
|
|
115
|
-
title:
|
|
116
|
-
id: `c4r.form.${
|
|
141
|
+
title: l.formatMessage({
|
|
142
|
+
id: `c4r.form.${a ? "hidePassword" : "showPassword"}`
|
|
117
143
|
}),
|
|
118
|
-
children:
|
|
144
|
+
children: a ? /* @__PURE__ */ n(we, {}) : /* @__PURE__ */ n(De, {})
|
|
119
145
|
}
|
|
120
146
|
) }) })
|
|
121
147
|
}
|
|
122
148
|
}
|
|
123
149
|
);
|
|
124
150
|
}
|
|
125
|
-
const
|
|
126
|
-
function
|
|
127
|
-
|
|
128
|
-
const e = ++
|
|
151
|
+
const Ln = O(Je), et = {};
|
|
152
|
+
function Ke(t = "$lodash$") {
|
|
153
|
+
et[t] || (et[t] = 0);
|
|
154
|
+
const e = ++et[t];
|
|
129
155
|
return t === "$lodash$" ? `${e}` : `${t}${e}`;
|
|
130
156
|
}
|
|
131
|
-
const
|
|
157
|
+
const Xe = m(oe)(({ theme: t }) => ({
|
|
132
158
|
"& .MuiInputAdornment-positionStart": {
|
|
133
159
|
paddingLeft: t.spacing(2),
|
|
134
160
|
"&.MuiInputAdornment-sizeSmall": {
|
|
@@ -144,60 +170,62 @@ const we = p(Wt)(({ theme: t }) => ({
|
|
|
144
170
|
"&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
|
|
145
171
|
paddingRight: t.spacing(7)
|
|
146
172
|
}
|
|
147
|
-
})),
|
|
173
|
+
})), Qe = m($t)(() => ({
|
|
148
174
|
display: "none"
|
|
149
175
|
}));
|
|
150
|
-
function
|
|
176
|
+
function to({
|
|
151
177
|
children: t,
|
|
152
178
|
placeholder: e,
|
|
153
|
-
size:
|
|
154
|
-
displayEmpty:
|
|
155
|
-
menuProps:
|
|
156
|
-
inputProps:
|
|
157
|
-
labelId:
|
|
179
|
+
size: o = "small",
|
|
180
|
+
displayEmpty: r,
|
|
181
|
+
menuProps: i,
|
|
182
|
+
inputProps: l,
|
|
183
|
+
labelId: a,
|
|
158
184
|
label: c,
|
|
159
|
-
labelSecondary:
|
|
160
|
-
helperText:
|
|
161
|
-
name:
|
|
162
|
-
error:
|
|
163
|
-
focused:
|
|
164
|
-
disabled:
|
|
165
|
-
fullWidth:
|
|
185
|
+
labelSecondary: d,
|
|
186
|
+
helperText: u,
|
|
187
|
+
name: p,
|
|
188
|
+
error: s,
|
|
189
|
+
focused: b,
|
|
190
|
+
disabled: g,
|
|
191
|
+
fullWidth: f,
|
|
166
192
|
required: y,
|
|
167
|
-
"aria-label":
|
|
168
|
-
...
|
|
169
|
-
},
|
|
170
|
-
const A =
|
|
193
|
+
"aria-label": h,
|
|
194
|
+
...w
|
|
195
|
+
}, M) {
|
|
196
|
+
const A = o === "small", [C] = B(() => Ke("select-label-")), k = c ? a ?? C : void 0;
|
|
171
197
|
return /* @__PURE__ */ x(
|
|
172
|
-
|
|
198
|
+
Bt,
|
|
173
199
|
{
|
|
174
|
-
size:
|
|
175
|
-
error:
|
|
176
|
-
focused:
|
|
177
|
-
disabled:
|
|
178
|
-
fullWidth:
|
|
200
|
+
size: o,
|
|
201
|
+
error: s,
|
|
202
|
+
focused: b,
|
|
203
|
+
disabled: g,
|
|
204
|
+
fullWidth: f,
|
|
179
205
|
required: y,
|
|
206
|
+
"data-name": "select-field",
|
|
207
|
+
"data-size": o,
|
|
180
208
|
children: [
|
|
181
|
-
/* @__PURE__ */ x(
|
|
182
|
-
c && /* @__PURE__ */
|
|
183
|
-
|
|
209
|
+
/* @__PURE__ */ x(D, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
210
|
+
c && /* @__PURE__ */ n(Tt, { shrink: !0, id: k, children: c }),
|
|
211
|
+
d && /* @__PURE__ */ n(D, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: d })
|
|
184
212
|
] }),
|
|
185
213
|
/* @__PURE__ */ x(
|
|
186
|
-
|
|
214
|
+
Xe,
|
|
187
215
|
{
|
|
188
|
-
...
|
|
216
|
+
...w,
|
|
189
217
|
labelId: k,
|
|
190
|
-
name:
|
|
191
|
-
ref:
|
|
192
|
-
size:
|
|
193
|
-
fullWidth:
|
|
194
|
-
displayEmpty:
|
|
218
|
+
name: p,
|
|
219
|
+
ref: M,
|
|
220
|
+
size: o,
|
|
221
|
+
fullWidth: f,
|
|
222
|
+
displayEmpty: r ?? !!e,
|
|
195
223
|
inputProps: {
|
|
196
|
-
...
|
|
197
|
-
"aria-label":
|
|
224
|
+
...l,
|
|
225
|
+
"aria-label": h
|
|
198
226
|
},
|
|
199
227
|
MenuProps: {
|
|
200
|
-
...
|
|
228
|
+
...i,
|
|
201
229
|
PopoverClasses: {
|
|
202
230
|
paper: A ? "MuiMenu-paper-sizeSmall" : void 0
|
|
203
231
|
},
|
|
@@ -211,8 +239,8 @@ function Se({
|
|
|
211
239
|
}
|
|
212
240
|
},
|
|
213
241
|
children: [
|
|
214
|
-
e && /* @__PURE__ */
|
|
215
|
-
|
|
242
|
+
e && /* @__PURE__ */ n(Qe, { disabled: !0, value: "", children: /* @__PURE__ */ n(
|
|
243
|
+
F,
|
|
216
244
|
{
|
|
217
245
|
variant: A ? "body2" : "body1",
|
|
218
246
|
color: "text.hint",
|
|
@@ -224,30 +252,30 @@ function Se({
|
|
|
224
252
|
]
|
|
225
253
|
}
|
|
226
254
|
),
|
|
227
|
-
|
|
255
|
+
u && /* @__PURE__ */ n(J, { "aria-label": `${p}-helper`, children: u })
|
|
228
256
|
]
|
|
229
257
|
}
|
|
230
258
|
);
|
|
231
259
|
}
|
|
232
|
-
const
|
|
260
|
+
const eo = O(to), oo = m(re, {
|
|
233
261
|
shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
|
|
234
|
-
})(({ variant: t, backgroundColor: e, theme:
|
|
262
|
+
})(({ variant: t, backgroundColor: e, theme: o }) => ({
|
|
235
263
|
// Variants
|
|
236
264
|
...t === "contained" && {
|
|
237
265
|
boxShadow: "none"
|
|
238
266
|
},
|
|
239
267
|
...t === "unbounded" && {
|
|
240
268
|
boxShadow: "none",
|
|
241
|
-
borderRadius:
|
|
269
|
+
borderRadius: o.spacing(0.5),
|
|
242
270
|
"& .MuiDivider-root": {
|
|
243
|
-
height:
|
|
271
|
+
height: o.spacing(4),
|
|
244
272
|
"&.MuiToggleButtonGroup-groupedHorizontal": {
|
|
245
|
-
height:
|
|
273
|
+
height: o.spacing(4)
|
|
246
274
|
},
|
|
247
275
|
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
248
276
|
height: "auto",
|
|
249
|
-
width:
|
|
250
|
-
margin: `${
|
|
277
|
+
width: o.spacing(4),
|
|
278
|
+
margin: `${o.spacing(0.5, 0, 1)} !important`,
|
|
251
279
|
borderRadius: "0 !important"
|
|
252
280
|
}
|
|
253
281
|
},
|
|
@@ -257,11 +285,11 @@ const Te = L(Se), $e = p(_t, {
|
|
|
257
285
|
margin: 0
|
|
258
286
|
},
|
|
259
287
|
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
|
|
260
|
-
height:
|
|
288
|
+
height: o.spacing(3)
|
|
261
289
|
},
|
|
262
290
|
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
263
291
|
height: "auto",
|
|
264
|
-
width:
|
|
292
|
+
width: o.spacing(3)
|
|
265
293
|
}
|
|
266
294
|
},
|
|
267
295
|
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
@@ -270,17 +298,17 @@ const Te = L(Se), $e = p(_t, {
|
|
|
270
298
|
marginLeft: 0
|
|
271
299
|
},
|
|
272
300
|
"&:not(:last-of-type)": {
|
|
273
|
-
marginRight:
|
|
301
|
+
marginRight: o.spacing(0.5)
|
|
274
302
|
}
|
|
275
303
|
},
|
|
276
304
|
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
|
|
277
305
|
".MuiToggleButtonGroup-grouped": {
|
|
278
|
-
margin:
|
|
306
|
+
margin: o.spacing(0, 0.5)
|
|
279
307
|
}
|
|
280
308
|
},
|
|
281
309
|
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
|
|
282
310
|
".MuiToggleButtonGroup-grouped": {
|
|
283
|
-
margin:
|
|
311
|
+
margin: o.spacing(0, 0, 0.5),
|
|
284
312
|
"&:not(:last-of-type)": {
|
|
285
313
|
marginRight: 0
|
|
286
314
|
},
|
|
@@ -292,32 +320,32 @@ const Te = L(Se), $e = p(_t, {
|
|
|
292
320
|
},
|
|
293
321
|
// Colors
|
|
294
322
|
...e === "primary" && {
|
|
295
|
-
backgroundColor:
|
|
323
|
+
backgroundColor: o.palette.background.paper
|
|
296
324
|
},
|
|
297
325
|
...e === "secondary" && {
|
|
298
|
-
backgroundColor:
|
|
326
|
+
backgroundColor: o.palette.background.default
|
|
299
327
|
},
|
|
300
328
|
...e === "transparent" && {
|
|
301
329
|
backgroundColor: "transparent"
|
|
302
330
|
}
|
|
303
331
|
}));
|
|
304
|
-
function
|
|
332
|
+
function Wn({
|
|
305
333
|
children: t,
|
|
306
334
|
variant: e = "floating",
|
|
307
|
-
backgroundColor:
|
|
308
|
-
...
|
|
335
|
+
backgroundColor: o,
|
|
336
|
+
...r
|
|
309
337
|
}) {
|
|
310
|
-
return /* @__PURE__ */
|
|
311
|
-
|
|
338
|
+
return /* @__PURE__ */ n(
|
|
339
|
+
oo,
|
|
312
340
|
{
|
|
313
|
-
...
|
|
341
|
+
...r,
|
|
314
342
|
variant: e,
|
|
315
|
-
backgroundColor:
|
|
343
|
+
backgroundColor: o ?? (e === "unbounded" ? "transparent" : "primary"),
|
|
316
344
|
children: t
|
|
317
345
|
}
|
|
318
346
|
);
|
|
319
347
|
}
|
|
320
|
-
const
|
|
348
|
+
const ro = m("div")(({ theme: t }) => ({
|
|
321
349
|
position: "relative",
|
|
322
350
|
display: "inline-flex",
|
|
323
351
|
// TODO: Remove this once we have a better way to handle the spacing between icon buttons:
|
|
@@ -325,7 +353,7 @@ const Re = p("div")(({ theme: t }) => ({
|
|
|
325
353
|
"& + &, & + .optionIconButton": {
|
|
326
354
|
marginLeft: t.spacing(0.5)
|
|
327
355
|
}
|
|
328
|
-
})),
|
|
356
|
+
})), no = m(W, {
|
|
329
357
|
shouldForwardProp: (t) => !["active"].includes(t)
|
|
330
358
|
})(({ active: t, theme: e }) => ({
|
|
331
359
|
...t && {
|
|
@@ -336,92 +364,122 @@ const Re = p("div")(({ theme: t }) => ({
|
|
|
336
364
|
}
|
|
337
365
|
}
|
|
338
366
|
}));
|
|
339
|
-
function
|
|
367
|
+
function io({
|
|
340
368
|
tooltip: t,
|
|
341
369
|
tooltipPlacement: e = "top",
|
|
342
|
-
icon:
|
|
343
|
-
size:
|
|
344
|
-
variant:
|
|
345
|
-
color:
|
|
346
|
-
sx:
|
|
370
|
+
icon: o,
|
|
371
|
+
size: r = "medium",
|
|
372
|
+
variant: i = "icon",
|
|
373
|
+
color: l = "default",
|
|
374
|
+
sx: a,
|
|
347
375
|
className: c,
|
|
348
|
-
loading:
|
|
349
|
-
disabled:
|
|
350
|
-
active:
|
|
351
|
-
...
|
|
352
|
-
},
|
|
353
|
-
return /* @__PURE__ */
|
|
354
|
-
|
|
376
|
+
loading: d,
|
|
377
|
+
disabled: u,
|
|
378
|
+
active: p,
|
|
379
|
+
...s
|
|
380
|
+
}, b) {
|
|
381
|
+
return /* @__PURE__ */ n(P, { placement: e, title: t ?? "", children: /* @__PURE__ */ n(
|
|
382
|
+
ro,
|
|
355
383
|
{
|
|
356
384
|
className: `optionIconButton ${c ?? ""}`,
|
|
357
|
-
sx:
|
|
385
|
+
sx: a,
|
|
358
386
|
"data-testid": "icon-button",
|
|
359
|
-
children: /* @__PURE__ */
|
|
360
|
-
|
|
387
|
+
children: /* @__PURE__ */ n(
|
|
388
|
+
no,
|
|
361
389
|
{
|
|
362
|
-
...
|
|
363
|
-
ref:
|
|
364
|
-
size:
|
|
365
|
-
variant:
|
|
366
|
-
color:
|
|
367
|
-
active:
|
|
368
|
-
disabled:
|
|
369
|
-
|
|
390
|
+
...s,
|
|
391
|
+
ref: b,
|
|
392
|
+
size: r,
|
|
393
|
+
variant: i,
|
|
394
|
+
color: l,
|
|
395
|
+
active: p,
|
|
396
|
+
disabled: u || d,
|
|
397
|
+
role: "button",
|
|
398
|
+
children: d ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : o
|
|
370
399
|
}
|
|
371
400
|
)
|
|
372
401
|
}
|
|
373
402
|
) });
|
|
374
403
|
}
|
|
375
|
-
const
|
|
404
|
+
const q = O(io), ao = m(ne, {
|
|
376
405
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
377
|
-
})(({ theme: t, extended: e, width:
|
|
406
|
+
})(({ theme: t, extended: e, width: o, height: r }) => ({
|
|
378
407
|
...e && {
|
|
379
408
|
".MuiMenuItem-root": {
|
|
380
409
|
minHeight: t.spacing(6)
|
|
381
410
|
}
|
|
382
411
|
},
|
|
383
|
-
...
|
|
412
|
+
...o && {
|
|
384
413
|
".MuiList-root": {
|
|
385
|
-
width:
|
|
386
|
-
minWidth:
|
|
414
|
+
width: o,
|
|
415
|
+
minWidth: o
|
|
387
416
|
}
|
|
388
417
|
},
|
|
389
|
-
...
|
|
418
|
+
...r && {
|
|
390
419
|
".MuiMenu-paper": {
|
|
391
420
|
overflow: "hidden"
|
|
392
421
|
},
|
|
393
422
|
".MuiList-root": {
|
|
394
|
-
maxHeight:
|
|
423
|
+
maxHeight: r
|
|
395
424
|
}
|
|
396
425
|
}
|
|
397
426
|
}));
|
|
398
|
-
function
|
|
399
|
-
return /* @__PURE__ */
|
|
427
|
+
function lo({ extended: t, width: e, height: o, MenuListProps: r, ...i }, l) {
|
|
428
|
+
return /* @__PURE__ */ n(
|
|
429
|
+
ao,
|
|
430
|
+
{
|
|
431
|
+
...i,
|
|
432
|
+
ref: l,
|
|
433
|
+
"data-name": "menu",
|
|
434
|
+
width: e,
|
|
435
|
+
height: o,
|
|
436
|
+
extended: t,
|
|
437
|
+
MenuListProps: {
|
|
438
|
+
...r,
|
|
439
|
+
"data-width": e,
|
|
440
|
+
"data-height": o,
|
|
441
|
+
"data-extended": t
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
);
|
|
400
445
|
}
|
|
401
|
-
const
|
|
446
|
+
const co = O(lo), so = m(ie, {
|
|
402
447
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
403
|
-
})(({ theme: t, extended: e, width:
|
|
448
|
+
})(({ theme: t, extended: e, width: o, height: r }) => ({
|
|
404
449
|
...e && {
|
|
405
450
|
".MuiMenuItem-root": {
|
|
406
451
|
minHeight: t.spacing(6)
|
|
407
452
|
}
|
|
408
453
|
},
|
|
409
454
|
"&.MuiList-root": {
|
|
410
|
-
...n && {
|
|
411
|
-
width: n,
|
|
412
|
-
minWidth: n
|
|
413
|
-
},
|
|
414
455
|
...o && {
|
|
415
|
-
|
|
456
|
+
width: o,
|
|
457
|
+
minWidth: o
|
|
458
|
+
},
|
|
459
|
+
...r && {
|
|
460
|
+
maxHeight: r
|
|
416
461
|
}
|
|
417
462
|
}
|
|
418
463
|
}));
|
|
419
|
-
function
|
|
420
|
-
return /* @__PURE__ */
|
|
464
|
+
function uo({ extended: t, width: e, height: o, ...r }, i) {
|
|
465
|
+
return /* @__PURE__ */ n(
|
|
466
|
+
so,
|
|
467
|
+
{
|
|
468
|
+
...r,
|
|
469
|
+
ref: i,
|
|
470
|
+
width: e,
|
|
471
|
+
height: o,
|
|
472
|
+
extended: t,
|
|
473
|
+
"data-name": "menu-list",
|
|
474
|
+
"data-width": e,
|
|
475
|
+
"data-height": o,
|
|
476
|
+
"data-extended": t
|
|
477
|
+
}
|
|
478
|
+
);
|
|
421
479
|
}
|
|
422
|
-
const
|
|
480
|
+
const En = O(uo), po = m(Y)(() => ({
|
|
423
481
|
marginTop: "0 !important"
|
|
424
|
-
})),
|
|
482
|
+
})), go = m(ae)(
|
|
425
483
|
({ disabled: t, theme: e }) => ({
|
|
426
484
|
display: "flex",
|
|
427
485
|
alignItems: "center",
|
|
@@ -434,74 +492,87 @@ const He = p(vt)(() => ({
|
|
|
434
492
|
}
|
|
435
493
|
})
|
|
436
494
|
);
|
|
437
|
-
function
|
|
495
|
+
function fo({
|
|
438
496
|
areAllSelected: t,
|
|
439
497
|
areAnySelected: e,
|
|
440
|
-
selectAll:
|
|
441
|
-
selectAllDisabled:
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
498
|
+
selectAll: o,
|
|
499
|
+
selectAllDisabled: r,
|
|
500
|
+
"aria-label": i,
|
|
501
|
+
"data-testid": l
|
|
502
|
+
}, a) {
|
|
503
|
+
const c = R(), d = T(c);
|
|
504
|
+
return /* @__PURE__ */ n(
|
|
505
|
+
po,
|
|
446
506
|
{
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
507
|
+
ref: a,
|
|
508
|
+
fixed: !0,
|
|
509
|
+
"data-name": "menu-filter",
|
|
510
|
+
"aria-label": i,
|
|
511
|
+
"data-testid": l,
|
|
512
|
+
children: /* @__PURE__ */ x(
|
|
513
|
+
go,
|
|
514
|
+
{
|
|
515
|
+
variant: "body2",
|
|
516
|
+
color: "textPrimary",
|
|
517
|
+
component: "button",
|
|
518
|
+
underline: "none",
|
|
519
|
+
disabled: !!r,
|
|
520
|
+
onClick: o,
|
|
521
|
+
tabIndex: 0,
|
|
522
|
+
children: [
|
|
523
|
+
/* @__PURE__ */ n(
|
|
524
|
+
at,
|
|
525
|
+
{
|
|
526
|
+
checked: t,
|
|
527
|
+
indeterminate: e && !t,
|
|
528
|
+
disabled: r
|
|
529
|
+
}
|
|
530
|
+
),
|
|
531
|
+
d.formatMessage({ id: "c4r.form.selectAll" })
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
)
|
|
465
535
|
}
|
|
466
|
-
)
|
|
536
|
+
);
|
|
467
537
|
}
|
|
468
|
-
|
|
538
|
+
const Ht = O(fo);
|
|
539
|
+
function mo({
|
|
469
540
|
selectedOptions: t,
|
|
470
541
|
options: e,
|
|
471
|
-
onChange:
|
|
542
|
+
onChange: o
|
|
472
543
|
}) {
|
|
473
|
-
const [
|
|
474
|
-
return
|
|
475
|
-
|
|
544
|
+
const [r, i] = B(t ?? []), l = e.length === r.length, a = r.length > 0;
|
|
545
|
+
return z(() => {
|
|
546
|
+
r !== t && i(r);
|
|
476
547
|
}, [t]), {
|
|
477
|
-
areAllSelected:
|
|
478
|
-
areAnySelected:
|
|
479
|
-
currentOptions:
|
|
480
|
-
handleChange: (
|
|
548
|
+
areAllSelected: l,
|
|
549
|
+
areAnySelected: a,
|
|
550
|
+
currentOptions: r,
|
|
551
|
+
handleChange: (p) => {
|
|
481
552
|
const {
|
|
482
|
-
target: { value:
|
|
483
|
-
} =
|
|
484
|
-
|
|
553
|
+
target: { value: s }
|
|
554
|
+
} = p, b = typeof s == "string" ? s.split(",") : s.filter((g) => g !== void 0);
|
|
555
|
+
i(b), o(b);
|
|
485
556
|
},
|
|
486
557
|
selectAll: () => {
|
|
487
|
-
const
|
|
488
|
-
|
|
489
|
-
(
|
|
490
|
-
) ? (
|
|
558
|
+
const p = e == null ? void 0 : e.filter(({ disabled: s }) => !s).map(({ value: s }) => s);
|
|
559
|
+
p && (p.every(
|
|
560
|
+
(b) => r.includes(b)
|
|
561
|
+
) ? (i([]), o([])) : (i(p), o(p)));
|
|
491
562
|
},
|
|
492
563
|
unselectAll: () => {
|
|
493
|
-
|
|
564
|
+
i([]), o([]);
|
|
494
565
|
}
|
|
495
566
|
};
|
|
496
567
|
}
|
|
497
|
-
const
|
|
568
|
+
const bo = m($t)(({ theme: t }) => ({
|
|
498
569
|
"&.Mui-disabled": {
|
|
499
570
|
pointerEvents: "auto",
|
|
500
571
|
"&:hover": {
|
|
501
572
|
backgroundColor: `${t.palette.background.default} !important`
|
|
502
573
|
}
|
|
503
574
|
}
|
|
504
|
-
})),
|
|
575
|
+
})), ho = m(it, {
|
|
505
576
|
shouldForwardProp: (t) => t !== "size"
|
|
506
577
|
})(({ theme: t, size: e }) => ({
|
|
507
578
|
display: "none",
|
|
@@ -518,86 +589,86 @@ const Ge = p(mt)(({ theme: t }) => ({
|
|
|
518
589
|
top: t.spacing(3),
|
|
519
590
|
right: t.spacing(5)
|
|
520
591
|
}
|
|
521
|
-
})),
|
|
592
|
+
})), xo = [], yo = () => {
|
|
522
593
|
};
|
|
523
|
-
function
|
|
524
|
-
options: t =
|
|
594
|
+
function Co({
|
|
595
|
+
options: t = xo,
|
|
525
596
|
selectedOptions: e,
|
|
526
|
-
size:
|
|
527
|
-
placeholder:
|
|
528
|
-
showCounter:
|
|
529
|
-
showFilters:
|
|
530
|
-
onChange:
|
|
597
|
+
size: o = "small",
|
|
598
|
+
placeholder: r,
|
|
599
|
+
showCounter: i,
|
|
600
|
+
showFilters: l = !0,
|
|
601
|
+
onChange: a = yo,
|
|
531
602
|
selectAllDisabled: c,
|
|
532
|
-
tooltipPlacement:
|
|
533
|
-
variant:
|
|
534
|
-
...
|
|
535
|
-
},
|
|
603
|
+
tooltipPlacement: d,
|
|
604
|
+
variant: u,
|
|
605
|
+
...p
|
|
606
|
+
}, s) {
|
|
536
607
|
const {
|
|
537
|
-
areAllSelected:
|
|
538
|
-
areAnySelected:
|
|
539
|
-
currentOptions:
|
|
608
|
+
areAllSelected: b,
|
|
609
|
+
areAnySelected: g,
|
|
610
|
+
currentOptions: f,
|
|
540
611
|
handleChange: y,
|
|
541
|
-
selectAll:
|
|
542
|
-
unselectAll:
|
|
543
|
-
} =
|
|
612
|
+
selectAll: h,
|
|
613
|
+
unselectAll: w
|
|
614
|
+
} = mo({
|
|
544
615
|
options: t,
|
|
545
616
|
selectedOptions: e,
|
|
546
|
-
onChange:
|
|
547
|
-
}),
|
|
617
|
+
onChange: a
|
|
618
|
+
}), M = o === "small", A = M || u === "standard" ? 0 : 2, C = R(), k = T(C), v = `${f.length} ${k.formatMessage({
|
|
548
619
|
id: "c4r.form.selected"
|
|
549
|
-
})}`,
|
|
550
|
-
|
|
620
|
+
})}`, $ = At(() => b ? /* @__PURE__ */ n(
|
|
621
|
+
F,
|
|
551
622
|
{
|
|
552
623
|
component: "span",
|
|
553
|
-
variant:
|
|
624
|
+
variant: M ? "body2" : "body1",
|
|
554
625
|
color: "textPrimary",
|
|
555
626
|
ml: A,
|
|
556
627
|
children: k.formatMessage({ id: "c4r.form.allSelected" })
|
|
557
628
|
}
|
|
558
|
-
) :
|
|
559
|
-
|
|
629
|
+
) : g ? /* @__PURE__ */ n(
|
|
630
|
+
F,
|
|
560
631
|
{
|
|
561
632
|
component: "span",
|
|
562
|
-
variant:
|
|
633
|
+
variant: M ? "body2" : "body1",
|
|
563
634
|
color: "textPrimary",
|
|
564
635
|
ml: A,
|
|
565
|
-
children:
|
|
636
|
+
children: i && f.length > 1 ? v : f.join(", ")
|
|
566
637
|
}
|
|
567
|
-
) : /* @__PURE__ */
|
|
568
|
-
|
|
638
|
+
) : /* @__PURE__ */ n(
|
|
639
|
+
F,
|
|
569
640
|
{
|
|
570
641
|
component: "span",
|
|
571
|
-
variant:
|
|
642
|
+
variant: M ? "body2" : "body1",
|
|
572
643
|
color: "text.hint",
|
|
573
644
|
ml: A,
|
|
574
|
-
children:
|
|
645
|
+
children: r ?? k.formatMessage({ id: "c4r.form.noneSelected" })
|
|
575
646
|
}
|
|
576
647
|
), [
|
|
648
|
+
b,
|
|
577
649
|
g,
|
|
650
|
+
v,
|
|
578
651
|
f,
|
|
579
|
-
I,
|
|
580
|
-
m,
|
|
581
652
|
k,
|
|
582
|
-
|
|
653
|
+
M,
|
|
583
654
|
A,
|
|
584
|
-
|
|
585
|
-
|
|
655
|
+
r,
|
|
656
|
+
i
|
|
586
657
|
]);
|
|
587
658
|
return /* @__PURE__ */ x(
|
|
588
|
-
|
|
659
|
+
eo,
|
|
589
660
|
{
|
|
590
|
-
...
|
|
591
|
-
ref:
|
|
661
|
+
...p,
|
|
662
|
+
ref: s,
|
|
592
663
|
multiple: !0,
|
|
593
664
|
displayEmpty: !0,
|
|
594
|
-
placeholder:
|
|
595
|
-
value:
|
|
596
|
-
renderValue: () =>
|
|
665
|
+
placeholder: r,
|
|
666
|
+
value: f,
|
|
667
|
+
renderValue: () => $,
|
|
597
668
|
onChange: y,
|
|
598
|
-
size:
|
|
599
|
-
variant:
|
|
600
|
-
endAdornment:
|
|
669
|
+
size: o,
|
|
670
|
+
variant: u,
|
|
671
|
+
endAdornment: l && g && /* @__PURE__ */ n(ho, { position: "end", size: o, children: /* @__PURE__ */ n(W, { onClick: w, size: o, children: /* @__PURE__ */ n(Ft, {}) }) }),
|
|
601
672
|
menuProps: {
|
|
602
673
|
PaperProps: {
|
|
603
674
|
sx: {
|
|
@@ -608,50 +679,50 @@ function Ue({
|
|
|
608
679
|
}
|
|
609
680
|
},
|
|
610
681
|
children: [
|
|
611
|
-
|
|
612
|
-
|
|
682
|
+
l && /* @__PURE__ */ n(
|
|
683
|
+
Ht,
|
|
613
684
|
{
|
|
614
|
-
areAllSelected:
|
|
615
|
-
areAnySelected:
|
|
616
|
-
selectAll:
|
|
685
|
+
areAllSelected: b,
|
|
686
|
+
areAnySelected: g,
|
|
687
|
+
selectAll: h,
|
|
617
688
|
selectAllDisabled: c
|
|
618
689
|
}
|
|
619
690
|
),
|
|
620
|
-
t == null ? void 0 : t.map((
|
|
621
|
-
const
|
|
622
|
-
|
|
691
|
+
t == null ? void 0 : t.map((I) => {
|
|
692
|
+
const E = /* @__PURE__ */ x(
|
|
693
|
+
bo,
|
|
623
694
|
{
|
|
624
|
-
value:
|
|
625
|
-
disabled:
|
|
695
|
+
value: I.value,
|
|
696
|
+
disabled: I.disabled,
|
|
626
697
|
tabIndex: 0,
|
|
627
698
|
children: [
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
|
|
699
|
+
/* @__PURE__ */ n(
|
|
700
|
+
at,
|
|
630
701
|
{
|
|
631
|
-
disabled:
|
|
632
|
-
checked:
|
|
702
|
+
disabled: I.disabled,
|
|
703
|
+
checked: f.includes(I.value)
|
|
633
704
|
}
|
|
634
705
|
),
|
|
635
|
-
/* @__PURE__ */
|
|
706
|
+
/* @__PURE__ */ n(U, { primary: I.label })
|
|
636
707
|
]
|
|
637
708
|
},
|
|
638
|
-
|
|
709
|
+
I.value
|
|
639
710
|
);
|
|
640
|
-
return
|
|
641
|
-
|
|
711
|
+
return I.tooltip ? /* @__PURE__ */ n(
|
|
712
|
+
P,
|
|
642
713
|
{
|
|
643
|
-
title:
|
|
644
|
-
placement:
|
|
645
|
-
children:
|
|
714
|
+
title: I.tooltip,
|
|
715
|
+
placement: d,
|
|
716
|
+
children: E
|
|
646
717
|
},
|
|
647
|
-
|
|
648
|
-
) :
|
|
718
|
+
I.value
|
|
719
|
+
) : E;
|
|
649
720
|
})
|
|
650
721
|
]
|
|
651
722
|
}
|
|
652
723
|
);
|
|
653
724
|
}
|
|
654
|
-
const
|
|
725
|
+
const Hn = O(Co), Mo = m(It, {
|
|
655
726
|
shouldForwardProp: (t) => t !== "cursor"
|
|
656
727
|
})(
|
|
657
728
|
({ cursor: t, theme: e }) => ({
|
|
@@ -679,286 +750,286 @@ const xo = L(Ue), Ye = p(ft, {
|
|
|
679
750
|
}
|
|
680
751
|
})
|
|
681
752
|
);
|
|
682
|
-
function
|
|
753
|
+
function ko({
|
|
683
754
|
buttonText: t,
|
|
684
755
|
hasFiles: e,
|
|
685
|
-
size:
|
|
686
|
-
error:
|
|
687
|
-
disabled:
|
|
688
|
-
handleReset:
|
|
689
|
-
handleOpen:
|
|
756
|
+
size: o,
|
|
757
|
+
error: r,
|
|
758
|
+
disabled: i,
|
|
759
|
+
handleReset: l,
|
|
760
|
+
handleOpen: a,
|
|
690
761
|
inProgress: c
|
|
691
762
|
}) {
|
|
692
|
-
return /* @__PURE__ */
|
|
693
|
-
|
|
763
|
+
return /* @__PURE__ */ n(it, { position: "end", children: c ? /* @__PURE__ */ n(W, { "aria-label": "Loading", disabled: !0, size: o, children: /* @__PURE__ */ n(G, { size: 18 }) }) : e ? /* @__PURE__ */ n(
|
|
764
|
+
W,
|
|
694
765
|
{
|
|
695
|
-
onClick:
|
|
696
|
-
size:
|
|
697
|
-
"aria-label": "
|
|
698
|
-
disabled:
|
|
699
|
-
children: /* @__PURE__ */
|
|
766
|
+
onClick: l,
|
|
767
|
+
size: o,
|
|
768
|
+
"aria-label": "Delete",
|
|
769
|
+
disabled: i,
|
|
770
|
+
children: /* @__PURE__ */ n(Ft, {})
|
|
700
771
|
}
|
|
701
|
-
) : /* @__PURE__ */
|
|
702
|
-
|
|
772
|
+
) : /* @__PURE__ */ n(
|
|
773
|
+
St,
|
|
703
774
|
{
|
|
704
|
-
onClick:
|
|
705
|
-
size:
|
|
775
|
+
onClick: a,
|
|
776
|
+
size: o,
|
|
706
777
|
variant: "text",
|
|
707
|
-
color:
|
|
708
|
-
disabled:
|
|
778
|
+
color: r ? "default" : "primary",
|
|
779
|
+
disabled: i,
|
|
709
780
|
children: t
|
|
710
781
|
}
|
|
711
782
|
) });
|
|
712
783
|
}
|
|
713
|
-
function
|
|
784
|
+
function vo({
|
|
714
785
|
name: t,
|
|
715
786
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
716
787
|
multiple: e,
|
|
717
788
|
// multiple prop defined here for compatibility with cloud-native but not used in the component
|
|
718
|
-
handleReset:
|
|
719
|
-
handleOpen:
|
|
720
|
-
dragOver:
|
|
721
|
-
error:
|
|
722
|
-
placeholder:
|
|
789
|
+
handleReset: o,
|
|
790
|
+
handleOpen: r,
|
|
791
|
+
dragOver: i,
|
|
792
|
+
error: l,
|
|
793
|
+
placeholder: a,
|
|
723
794
|
focused: c,
|
|
724
|
-
buttonText:
|
|
725
|
-
inProgress:
|
|
726
|
-
InputProps:
|
|
727
|
-
size:
|
|
728
|
-
hasFiles:
|
|
729
|
-
cursor:
|
|
730
|
-
...
|
|
795
|
+
buttonText: d = "Browse",
|
|
796
|
+
inProgress: u,
|
|
797
|
+
InputProps: p,
|
|
798
|
+
size: s = "small",
|
|
799
|
+
hasFiles: b,
|
|
800
|
+
cursor: g = "pointer",
|
|
801
|
+
...f
|
|
731
802
|
}) {
|
|
732
|
-
return /* @__PURE__ */
|
|
733
|
-
|
|
803
|
+
return /* @__PURE__ */ n(
|
|
804
|
+
Mo,
|
|
734
805
|
{
|
|
735
|
-
...
|
|
736
|
-
size:
|
|
737
|
-
error:
|
|
738
|
-
placeholder:
|
|
739
|
-
focused: c ??
|
|
740
|
-
cursor:
|
|
806
|
+
...f,
|
|
807
|
+
size: s,
|
|
808
|
+
error: l,
|
|
809
|
+
placeholder: a,
|
|
810
|
+
focused: c ?? i,
|
|
811
|
+
cursor: g,
|
|
741
812
|
InputProps: {
|
|
742
|
-
...
|
|
813
|
+
...p,
|
|
743
814
|
name: t,
|
|
744
815
|
// multiple prop cannot be used here because it is not a valid prop for TextField InputProps
|
|
745
816
|
// not used for any UI logic
|
|
746
817
|
readOnly: !0,
|
|
747
|
-
endAdornment: /* @__PURE__ */
|
|
748
|
-
|
|
818
|
+
endAdornment: /* @__PURE__ */ n(
|
|
819
|
+
ko,
|
|
749
820
|
{
|
|
750
|
-
buttonText:
|
|
751
|
-
hasFiles:
|
|
752
|
-
size:
|
|
753
|
-
error:
|
|
754
|
-
disabled: !!
|
|
755
|
-
handleReset:
|
|
756
|
-
handleOpen:
|
|
757
|
-
inProgress:
|
|
821
|
+
buttonText: d,
|
|
822
|
+
hasFiles: b,
|
|
823
|
+
size: s,
|
|
824
|
+
error: l,
|
|
825
|
+
disabled: !!i,
|
|
826
|
+
handleReset: o,
|
|
827
|
+
handleOpen: r,
|
|
828
|
+
inProgress: u
|
|
758
829
|
}
|
|
759
830
|
)
|
|
760
831
|
}
|
|
761
832
|
}
|
|
762
833
|
);
|
|
763
834
|
}
|
|
764
|
-
function
|
|
835
|
+
function wo({
|
|
765
836
|
onChange: t,
|
|
766
837
|
files: e,
|
|
767
|
-
multiple:
|
|
768
|
-
placeholder:
|
|
769
|
-
uploadInputRef:
|
|
838
|
+
multiple: o,
|
|
839
|
+
placeholder: r,
|
|
840
|
+
uploadInputRef: i
|
|
770
841
|
}) {
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
!e || e.length === 0 ?
|
|
774
|
-
|
|
842
|
+
const l = R(), a = T(l), [c, d] = B(""), [u, p] = B(!1);
|
|
843
|
+
z(() => {
|
|
844
|
+
!e || e.length === 0 ? d("") : e.length === 1 ? d(e[0].name) : d(
|
|
845
|
+
a.formatMessage(
|
|
775
846
|
{ id: "c4r.form.filesSelected" },
|
|
776
847
|
{ count: e.length }
|
|
777
848
|
)
|
|
778
849
|
);
|
|
779
|
-
}, [e,
|
|
780
|
-
const
|
|
781
|
-
var
|
|
782
|
-
(
|
|
783
|
-
},
|
|
784
|
-
|
|
785
|
-
},
|
|
786
|
-
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
const k =
|
|
790
|
-
t == null || t(
|
|
791
|
-
}, y = (
|
|
850
|
+
}, [e, a]);
|
|
851
|
+
const s = () => {
|
|
852
|
+
var C;
|
|
853
|
+
(C = i.current) == null || C.click();
|
|
854
|
+
}, b = (C) => {
|
|
855
|
+
C.preventDefault(), p(!0);
|
|
856
|
+
}, g = (C) => {
|
|
857
|
+
C.preventDefault(), p(!1);
|
|
858
|
+
}, f = (C) => {
|
|
859
|
+
C.preventDefault(), p(!1);
|
|
860
|
+
const k = C.dataTransfer.items, v = y(k);
|
|
861
|
+
t == null || t(v);
|
|
862
|
+
}, y = (C) => {
|
|
792
863
|
const k = [];
|
|
793
|
-
for (const
|
|
794
|
-
if (
|
|
795
|
-
const
|
|
796
|
-
k.push(
|
|
864
|
+
for (const v of Array.from(C))
|
|
865
|
+
if (v.kind === "file") {
|
|
866
|
+
const $ = v.getAsFile();
|
|
867
|
+
k.push($);
|
|
797
868
|
}
|
|
798
869
|
return k;
|
|
799
|
-
},
|
|
800
|
-
const k = Array.from(
|
|
870
|
+
}, h = (C) => {
|
|
871
|
+
const k = Array.from(C.target.files);
|
|
801
872
|
t == null || t(k);
|
|
802
|
-
},
|
|
803
|
-
|
|
804
|
-
},
|
|
805
|
-
const
|
|
873
|
+
}, w = (C) => {
|
|
874
|
+
C.stopPropagation(), d("");
|
|
875
|
+
}, M = At(() => {
|
|
876
|
+
const C = a.formatMessage(
|
|
806
877
|
{ id: "c4r.form.dragPlaceholder" },
|
|
807
|
-
{ count:
|
|
808
|
-
), k =
|
|
878
|
+
{ count: o ? 0 : 1 }
|
|
879
|
+
), k = a.formatMessage(
|
|
809
880
|
{ id: "c4r.form.dragActivePlaceholder" },
|
|
810
|
-
{ count:
|
|
881
|
+
{ count: o ? 0 : 1 }
|
|
811
882
|
);
|
|
812
|
-
let
|
|
813
|
-
return
|
|
814
|
-
}, [
|
|
883
|
+
let v = "";
|
|
884
|
+
return u ? v = k : v = r ?? C, v;
|
|
885
|
+
}, [u, o, r, a]);
|
|
815
886
|
return {
|
|
816
887
|
filesText: c,
|
|
817
|
-
getPlaceholder:
|
|
818
|
-
dragOver:
|
|
888
|
+
getPlaceholder: M,
|
|
889
|
+
dragOver: u,
|
|
819
890
|
inputEvents: {
|
|
820
|
-
onDragOver:
|
|
821
|
-
onDragLeave:
|
|
822
|
-
onDrop:
|
|
823
|
-
onClick:
|
|
891
|
+
onDragOver: b,
|
|
892
|
+
onDragLeave: g,
|
|
893
|
+
onDrop: f,
|
|
894
|
+
onClick: s
|
|
824
895
|
},
|
|
825
|
-
handleFiles:
|
|
826
|
-
handleReset:
|
|
896
|
+
handleFiles: h,
|
|
897
|
+
handleReset: w
|
|
827
898
|
};
|
|
828
899
|
}
|
|
829
|
-
const
|
|
830
|
-
function
|
|
900
|
+
const Do = ["application/JSON"];
|
|
901
|
+
function Pn({
|
|
831
902
|
name: t,
|
|
832
903
|
buttonText: e,
|
|
833
|
-
accept:
|
|
834
|
-
files:
|
|
835
|
-
inProgress:
|
|
836
|
-
onChange:
|
|
837
|
-
multiple:
|
|
904
|
+
accept: o,
|
|
905
|
+
files: r,
|
|
906
|
+
inProgress: i,
|
|
907
|
+
onChange: l,
|
|
908
|
+
multiple: a,
|
|
838
909
|
placeholder: c,
|
|
839
|
-
error:
|
|
840
|
-
focused:
|
|
841
|
-
nativeInputProps:
|
|
842
|
-
...
|
|
910
|
+
error: d,
|
|
911
|
+
focused: u,
|
|
912
|
+
nativeInputProps: p,
|
|
913
|
+
...s
|
|
843
914
|
}) {
|
|
844
|
-
const
|
|
845
|
-
filesText:
|
|
915
|
+
const b = o ?? Do, g = Z(null), {
|
|
916
|
+
filesText: f,
|
|
846
917
|
getPlaceholder: y,
|
|
847
|
-
dragOver:
|
|
848
|
-
inputEvents:
|
|
849
|
-
handleFiles:
|
|
918
|
+
dragOver: h,
|
|
919
|
+
inputEvents: w,
|
|
920
|
+
handleFiles: M,
|
|
850
921
|
handleReset: A
|
|
851
|
-
} =
|
|
852
|
-
uploadInputRef:
|
|
853
|
-
files:
|
|
854
|
-
onChange:
|
|
855
|
-
multiple:
|
|
922
|
+
} = wo({
|
|
923
|
+
uploadInputRef: g,
|
|
924
|
+
files: r,
|
|
925
|
+
onChange: l,
|
|
926
|
+
multiple: a,
|
|
856
927
|
placeholder: c
|
|
857
928
|
});
|
|
858
|
-
return /* @__PURE__ */ x(
|
|
859
|
-
/* @__PURE__ */
|
|
860
|
-
|
|
929
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
930
|
+
/* @__PURE__ */ n(
|
|
931
|
+
vo,
|
|
861
932
|
{
|
|
862
|
-
...
|
|
933
|
+
...s,
|
|
863
934
|
placeholder: y,
|
|
864
|
-
value:
|
|
865
|
-
error:
|
|
866
|
-
focused:
|
|
935
|
+
value: f,
|
|
936
|
+
error: d,
|
|
937
|
+
focused: u ?? h,
|
|
867
938
|
handleReset: A,
|
|
868
|
-
dragOver:
|
|
869
|
-
inProgress:
|
|
870
|
-
hasFiles: !!
|
|
871
|
-
InputProps:
|
|
939
|
+
dragOver: h,
|
|
940
|
+
inProgress: i,
|
|
941
|
+
hasFiles: !!f,
|
|
942
|
+
InputProps: w,
|
|
872
943
|
buttonText: e
|
|
873
944
|
}
|
|
874
945
|
),
|
|
875
|
-
/* @__PURE__ */
|
|
946
|
+
/* @__PURE__ */ n(
|
|
876
947
|
"input",
|
|
877
948
|
{
|
|
878
|
-
...
|
|
879
|
-
ref:
|
|
949
|
+
...p,
|
|
950
|
+
ref: g,
|
|
880
951
|
style: { display: "none" },
|
|
881
952
|
type: "file",
|
|
882
953
|
"aria-label": t,
|
|
883
954
|
name: t,
|
|
884
|
-
accept: String(
|
|
885
|
-
multiple:
|
|
886
|
-
onChange:
|
|
955
|
+
accept: String(b),
|
|
956
|
+
multiple: a,
|
|
957
|
+
onChange: M
|
|
887
958
|
}
|
|
888
959
|
)
|
|
889
960
|
] });
|
|
890
961
|
}
|
|
891
|
-
function
|
|
962
|
+
function Ao({
|
|
892
963
|
disabled: t,
|
|
893
964
|
loading: e,
|
|
894
|
-
...
|
|
895
|
-
},
|
|
896
|
-
return /* @__PURE__ */
|
|
897
|
-
|
|
965
|
+
...o
|
|
966
|
+
}, r) {
|
|
967
|
+
return /* @__PURE__ */ n(
|
|
968
|
+
lt,
|
|
898
969
|
{
|
|
899
|
-
...
|
|
900
|
-
ref:
|
|
970
|
+
...o,
|
|
971
|
+
ref: r,
|
|
901
972
|
disabled: t || e,
|
|
902
|
-
popupIcon: e ? /* @__PURE__ */
|
|
973
|
+
popupIcon: e ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : /* @__PURE__ */ n(ct, {}),
|
|
903
974
|
"data-name": "autocomplete",
|
|
904
975
|
ListboxProps: {
|
|
905
976
|
"aria-multiselectable": !1,
|
|
906
|
-
...
|
|
977
|
+
...o.ListboxProps
|
|
907
978
|
}
|
|
908
979
|
}
|
|
909
980
|
);
|
|
910
981
|
}
|
|
911
|
-
const
|
|
912
|
-
function
|
|
913
|
-
return { renderOption: (e,
|
|
982
|
+
const zn = O(Ao), Pt = (t) => t && typeof t == "object" ? t.title ?? String(t) : String(t), zt = (t, e) => typeof t != "object" || t === null ? { value: t, multiple: e } : { ...t, multiple: e }, Nt = (t) => /* @__PURE__ */ n("span", { "data-testid": "more-options-tag", children: `+${t}` });
|
|
983
|
+
function _t() {
|
|
984
|
+
return { renderOption: (e, o, r, i, l) => {
|
|
914
985
|
const {
|
|
915
|
-
title:
|
|
986
|
+
title: a,
|
|
916
987
|
inputValue: c,
|
|
917
|
-
divider:
|
|
918
|
-
fixed:
|
|
919
|
-
extended:
|
|
920
|
-
dense:
|
|
921
|
-
destructive:
|
|
922
|
-
disabled:
|
|
923
|
-
subtitle:
|
|
988
|
+
divider: d,
|
|
989
|
+
fixed: u,
|
|
990
|
+
extended: p,
|
|
991
|
+
dense: s,
|
|
992
|
+
destructive: b,
|
|
993
|
+
disabled: g,
|
|
994
|
+
subtitle: f,
|
|
924
995
|
iconColor: y,
|
|
925
|
-
startAdornment:
|
|
926
|
-
endAdornment:
|
|
927
|
-
alternativeTitle:
|
|
996
|
+
startAdornment: h,
|
|
997
|
+
endAdornment: w,
|
|
998
|
+
alternativeTitle: M,
|
|
928
999
|
secondaryText: A,
|
|
929
|
-
multiple:
|
|
930
|
-
} =
|
|
931
|
-
return /* @__PURE__ */
|
|
932
|
-
c && /* @__PURE__ */
|
|
1000
|
+
multiple: C
|
|
1001
|
+
} = o, { key: k, ...v } = e, $ = typeof o == "string" || typeof o == "number", I = (E, S, L, V) => L || V || (S && typeof S == "object" && "value" in S ? String(S.value) : E(S));
|
|
1002
|
+
return /* @__PURE__ */ n(te, { children: d ? /* @__PURE__ */ n(_, {}) : /* @__PURE__ */ x(H, { children: [
|
|
1003
|
+
c && /* @__PURE__ */ n(_, {}),
|
|
933
1004
|
/* @__PURE__ */ x(
|
|
934
|
-
|
|
1005
|
+
Y,
|
|
935
1006
|
{
|
|
936
|
-
...
|
|
937
|
-
|
|
938
|
-
fixed:
|
|
939
|
-
extended:
|
|
940
|
-
dense:
|
|
941
|
-
destructive:
|
|
942
|
-
disabled:
|
|
943
|
-
subtitle:
|
|
1007
|
+
...v,
|
|
1008
|
+
...!$ && {
|
|
1009
|
+
fixed: u,
|
|
1010
|
+
extended: p,
|
|
1011
|
+
dense: s,
|
|
1012
|
+
destructive: b,
|
|
1013
|
+
disabled: g,
|
|
1014
|
+
subtitle: f,
|
|
944
1015
|
iconColor: y
|
|
945
1016
|
},
|
|
946
|
-
"aria-disabled":
|
|
947
|
-
"aria-selected":
|
|
1017
|
+
"aria-disabled": f || g,
|
|
1018
|
+
"aria-selected": r.selected,
|
|
948
1019
|
children: [
|
|
949
|
-
!
|
|
950
|
-
|
|
951
|
-
|
|
1020
|
+
!f && (h || C || l) && /* @__PURE__ */ x(rt, { children: [
|
|
1021
|
+
l || C && /* @__PURE__ */ n(at, { checked: r.selected }),
|
|
1022
|
+
h
|
|
952
1023
|
] }),
|
|
953
|
-
/* @__PURE__ */ x(
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1024
|
+
/* @__PURE__ */ x(U, { children: [
|
|
1025
|
+
I(
|
|
1026
|
+
i ?? Pt,
|
|
1027
|
+
o,
|
|
1028
|
+
M,
|
|
1029
|
+
a
|
|
959
1030
|
),
|
|
960
|
-
A && /* @__PURE__ */
|
|
961
|
-
|
|
1031
|
+
A && /* @__PURE__ */ n(
|
|
1032
|
+
F,
|
|
962
1033
|
{
|
|
963
1034
|
component: "p",
|
|
964
1035
|
variant: "caption",
|
|
@@ -967,114 +1038,114 @@ function wt() {
|
|
|
967
1038
|
}
|
|
968
1039
|
)
|
|
969
1040
|
] }),
|
|
970
|
-
!
|
|
1041
|
+
!f && w
|
|
971
1042
|
]
|
|
972
1043
|
}
|
|
973
1044
|
)
|
|
974
1045
|
] }) }, k);
|
|
975
1046
|
} };
|
|
976
1047
|
}
|
|
977
|
-
function
|
|
1048
|
+
function So({
|
|
978
1049
|
getOptionLabel: t,
|
|
979
1050
|
newItemLabel: e,
|
|
980
|
-
newItemIcon:
|
|
981
|
-
multiple:
|
|
1051
|
+
newItemIcon: o,
|
|
1052
|
+
multiple: r
|
|
982
1053
|
}) {
|
|
983
|
-
const
|
|
1054
|
+
const i = R(), l = T(i), a = le(), { renderOption: c } = _t();
|
|
984
1055
|
return {
|
|
985
|
-
creatableFilterOptions: (
|
|
986
|
-
const
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
), { inputValue:
|
|
990
|
-
(
|
|
1056
|
+
creatableFilterOptions: (s, b) => {
|
|
1057
|
+
const g = a(
|
|
1058
|
+
s,
|
|
1059
|
+
b
|
|
1060
|
+
), { inputValue: f } = b, y = s.some(
|
|
1061
|
+
(h) => f === t(h)
|
|
991
1062
|
);
|
|
992
|
-
if (
|
|
993
|
-
let
|
|
994
|
-
typeof e == "function" ?
|
|
995
|
-
inputValue:
|
|
996
|
-
title:
|
|
1063
|
+
if (f.length > 1 && f !== "" && !y) {
|
|
1064
|
+
let h;
|
|
1065
|
+
typeof e == "function" ? h = e(f) : e ? h = `${e} "${f}"` : h = `${l.formatMessage({ id: "c4r.form.add" })} "${f}"`, g.push({
|
|
1066
|
+
inputValue: f,
|
|
1067
|
+
title: h
|
|
997
1068
|
});
|
|
998
1069
|
}
|
|
999
|
-
return
|
|
1070
|
+
return g;
|
|
1000
1071
|
},
|
|
1001
|
-
creatableOptionLabel: (
|
|
1002
|
-
creatableRenderOption: (
|
|
1003
|
-
const
|
|
1072
|
+
creatableOptionLabel: (s) => typeof s == "string" ? s : s.inputValue ? s.inputValue : t(s),
|
|
1073
|
+
creatableRenderOption: (s, b, g) => {
|
|
1074
|
+
const f = b.inputValue ? o ?? /* @__PURE__ */ n(Ae, {}) : void 0, y = zt(b, !!r);
|
|
1004
1075
|
return c(
|
|
1005
|
-
|
|
1076
|
+
s,
|
|
1006
1077
|
y,
|
|
1007
|
-
|
|
1078
|
+
g,
|
|
1008
1079
|
t,
|
|
1009
|
-
|
|
1080
|
+
f
|
|
1010
1081
|
);
|
|
1011
1082
|
}
|
|
1012
1083
|
};
|
|
1013
1084
|
}
|
|
1014
|
-
function
|
|
1085
|
+
function Gt({
|
|
1015
1086
|
options: t,
|
|
1016
1087
|
value: e,
|
|
1017
|
-
onChange:
|
|
1018
|
-
getOptionLabel:
|
|
1088
|
+
onChange: o,
|
|
1089
|
+
getOptionLabel: r
|
|
1019
1090
|
}) {
|
|
1020
|
-
const [
|
|
1091
|
+
const [i, l] = B(
|
|
1021
1092
|
Array.isArray(e) ? e : e ? [e] : []
|
|
1022
|
-
), { renderOption:
|
|
1023
|
-
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1093
|
+
), { renderOption: a } = _t();
|
|
1094
|
+
z(() => {
|
|
1095
|
+
const b = Array.isArray(e) ? e : e ? [e] : [];
|
|
1096
|
+
l(b);
|
|
1026
1097
|
}, [e]);
|
|
1027
|
-
const c =
|
|
1098
|
+
const c = i.length === t.length, d = i.length > 0 && i.length < t.length;
|
|
1028
1099
|
return {
|
|
1029
|
-
multipleValue:
|
|
1100
|
+
multipleValue: i,
|
|
1030
1101
|
allSelected: c,
|
|
1031
|
-
someSelected:
|
|
1032
|
-
handleSelectAll: (
|
|
1033
|
-
const
|
|
1034
|
-
|
|
1102
|
+
someSelected: d,
|
|
1103
|
+
handleSelectAll: (b) => {
|
|
1104
|
+
const g = c ? [] : [...t];
|
|
1105
|
+
l(g), o == null || o(
|
|
1106
|
+
b,
|
|
1035
1107
|
g,
|
|
1036
|
-
f,
|
|
1037
1108
|
"selectOption"
|
|
1038
1109
|
);
|
|
1039
1110
|
},
|
|
1040
|
-
handleChange: (g, f
|
|
1041
|
-
|
|
1111
|
+
handleChange: (b, g, f) => {
|
|
1112
|
+
l(g === null ? [] : g), o == null || o(b, g, f);
|
|
1042
1113
|
},
|
|
1043
|
-
multipleRenderOption: (g, f
|
|
1044
|
-
const y =
|
|
1045
|
-
return
|
|
1046
|
-
|
|
1114
|
+
multipleRenderOption: (b, g, f) => {
|
|
1115
|
+
const y = zt(g, !0);
|
|
1116
|
+
return a(
|
|
1117
|
+
b,
|
|
1047
1118
|
y,
|
|
1048
|
-
|
|
1049
|
-
|
|
1119
|
+
f,
|
|
1120
|
+
r
|
|
1050
1121
|
);
|
|
1051
1122
|
}
|
|
1052
1123
|
};
|
|
1053
1124
|
}
|
|
1054
|
-
function
|
|
1125
|
+
function Io({
|
|
1055
1126
|
children: t,
|
|
1056
1127
|
showFilters: e,
|
|
1057
|
-
allSelected:
|
|
1058
|
-
someSelected:
|
|
1059
|
-
handleSelectAll:
|
|
1128
|
+
allSelected: o,
|
|
1129
|
+
someSelected: r,
|
|
1130
|
+
handleSelectAll: i = () => {
|
|
1060
1131
|
},
|
|
1061
|
-
multiple:
|
|
1062
|
-
...
|
|
1132
|
+
multiple: l,
|
|
1133
|
+
...a
|
|
1063
1134
|
}, c) {
|
|
1064
1135
|
return /* @__PURE__ */ x(
|
|
1065
1136
|
"ul",
|
|
1066
1137
|
{
|
|
1067
1138
|
ref: c,
|
|
1068
|
-
...
|
|
1139
|
+
...a,
|
|
1069
1140
|
role: "listbox",
|
|
1070
|
-
"aria-multiselectable":
|
|
1141
|
+
"aria-multiselectable": l,
|
|
1071
1142
|
children: [
|
|
1072
|
-
e &&
|
|
1073
|
-
|
|
1143
|
+
e && l && /* @__PURE__ */ n(
|
|
1144
|
+
Ht,
|
|
1074
1145
|
{
|
|
1075
|
-
areAllSelected: !!
|
|
1076
|
-
areAnySelected: !!
|
|
1077
|
-
selectAll:
|
|
1146
|
+
areAllSelected: !!o,
|
|
1147
|
+
areAnySelected: !!r,
|
|
1148
|
+
selectAll: i
|
|
1078
1149
|
}
|
|
1079
1150
|
),
|
|
1080
1151
|
t
|
|
@@ -1082,127 +1153,206 @@ function Qe({
|
|
|
1082
1153
|
}
|
|
1083
1154
|
);
|
|
1084
1155
|
}
|
|
1085
|
-
const
|
|
1086
|
-
function
|
|
1156
|
+
const jt = O(Io);
|
|
1157
|
+
function $o({
|
|
1087
1158
|
newItemLabel: t,
|
|
1088
1159
|
newItemIcon: e,
|
|
1089
|
-
getOptionLabel:
|
|
1090
|
-
multiple:
|
|
1091
|
-
disableCloseOnSelect:
|
|
1092
|
-
disabled:
|
|
1093
|
-
loading:
|
|
1160
|
+
getOptionLabel: o = Pt,
|
|
1161
|
+
multiple: r,
|
|
1162
|
+
disableCloseOnSelect: i,
|
|
1163
|
+
disabled: l,
|
|
1164
|
+
loading: a,
|
|
1094
1165
|
showFilters: c,
|
|
1095
|
-
options:
|
|
1096
|
-
value:
|
|
1097
|
-
onChange:
|
|
1098
|
-
getLimitTagsText:
|
|
1099
|
-
...
|
|
1100
|
-
},
|
|
1101
|
-
const { freeSolo:
|
|
1102
|
-
multipleValue:
|
|
1103
|
-
allSelected:
|
|
1104
|
-
someSelected:
|
|
1166
|
+
options: d = [],
|
|
1167
|
+
value: u,
|
|
1168
|
+
onChange: p,
|
|
1169
|
+
getLimitTagsText: s,
|
|
1170
|
+
...b
|
|
1171
|
+
}, g) {
|
|
1172
|
+
const { freeSolo: f = !0, ...y } = b, {
|
|
1173
|
+
multipleValue: h,
|
|
1174
|
+
allSelected: w,
|
|
1175
|
+
someSelected: M,
|
|
1105
1176
|
handleSelectAll: A,
|
|
1106
|
-
handleChange:
|
|
1107
|
-
} =
|
|
1108
|
-
options:
|
|
1109
|
-
value:
|
|
1110
|
-
onChange:
|
|
1177
|
+
handleChange: C
|
|
1178
|
+
} = Gt({
|
|
1179
|
+
options: d,
|
|
1180
|
+
value: u,
|
|
1181
|
+
onChange: p
|
|
1111
1182
|
}), {
|
|
1112
1183
|
creatableFilterOptions: k,
|
|
1113
|
-
creatableOptionLabel:
|
|
1114
|
-
creatableRenderOption:
|
|
1115
|
-
} =
|
|
1116
|
-
getOptionLabel:
|
|
1184
|
+
creatableOptionLabel: v,
|
|
1185
|
+
creatableRenderOption: $
|
|
1186
|
+
} = So({
|
|
1187
|
+
getOptionLabel: o,
|
|
1117
1188
|
newItemLabel: t,
|
|
1118
1189
|
newItemIcon: e,
|
|
1119
|
-
multiple:
|
|
1190
|
+
multiple: r
|
|
1120
1191
|
});
|
|
1121
|
-
return /* @__PURE__ */
|
|
1122
|
-
|
|
1192
|
+
return /* @__PURE__ */ n(
|
|
1193
|
+
lt,
|
|
1123
1194
|
{
|
|
1124
1195
|
...y,
|
|
1125
|
-
ref:
|
|
1126
|
-
options:
|
|
1127
|
-
value:
|
|
1128
|
-
onChange:
|
|
1196
|
+
ref: g,
|
|
1197
|
+
options: d,
|
|
1198
|
+
value: r ? h : u,
|
|
1199
|
+
onChange: C,
|
|
1129
1200
|
filterOptions: k,
|
|
1130
|
-
getOptionLabel:
|
|
1131
|
-
renderOption:
|
|
1132
|
-
freeSolo:
|
|
1201
|
+
getOptionLabel: v,
|
|
1202
|
+
renderOption: $,
|
|
1203
|
+
freeSolo: f,
|
|
1133
1204
|
forcePopupIcon: !0,
|
|
1134
|
-
multiple:
|
|
1135
|
-
disableCloseOnSelect:
|
|
1136
|
-
ListboxComponent:
|
|
1205
|
+
multiple: r,
|
|
1206
|
+
disableCloseOnSelect: i ?? r,
|
|
1207
|
+
ListboxComponent: jt,
|
|
1137
1208
|
ListboxProps: {
|
|
1138
1209
|
showFilters: c,
|
|
1139
|
-
allSelected:
|
|
1140
|
-
someSelected:
|
|
1210
|
+
allSelected: w,
|
|
1211
|
+
someSelected: M,
|
|
1141
1212
|
handleSelectAll: A,
|
|
1142
|
-
multiple:
|
|
1213
|
+
multiple: r
|
|
1143
1214
|
},
|
|
1144
|
-
getLimitTagsText:
|
|
1145
|
-
disabled:
|
|
1146
|
-
popupIcon:
|
|
1215
|
+
getLimitTagsText: s ?? Nt,
|
|
1216
|
+
disabled: l || a,
|
|
1217
|
+
popupIcon: a ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : /* @__PURE__ */ n(ct, {}),
|
|
1147
1218
|
"data-name": "creatable-autocomplete"
|
|
1148
1219
|
}
|
|
1149
1220
|
);
|
|
1150
1221
|
}
|
|
1151
|
-
const
|
|
1152
|
-
function
|
|
1222
|
+
const Nn = O($o);
|
|
1223
|
+
function Bo({
|
|
1153
1224
|
renderOption: t,
|
|
1154
1225
|
disableCloseOnSelect: e = !0,
|
|
1155
|
-
disabled:
|
|
1156
|
-
loading:
|
|
1157
|
-
showFilters:
|
|
1158
|
-
options:
|
|
1159
|
-
value:
|
|
1226
|
+
disabled: o,
|
|
1227
|
+
loading: r,
|
|
1228
|
+
showFilters: i,
|
|
1229
|
+
options: l,
|
|
1230
|
+
value: a,
|
|
1160
1231
|
onChange: c,
|
|
1161
|
-
getOptionLabel:
|
|
1162
|
-
getLimitTagsText:
|
|
1163
|
-
...
|
|
1164
|
-
},
|
|
1232
|
+
getOptionLabel: d,
|
|
1233
|
+
getLimitTagsText: u,
|
|
1234
|
+
...p
|
|
1235
|
+
}, s) {
|
|
1165
1236
|
const {
|
|
1166
|
-
multipleValue:
|
|
1167
|
-
allSelected:
|
|
1168
|
-
someSelected:
|
|
1237
|
+
multipleValue: b,
|
|
1238
|
+
allSelected: g,
|
|
1239
|
+
someSelected: f,
|
|
1169
1240
|
handleSelectAll: y,
|
|
1170
|
-
handleChange:
|
|
1171
|
-
multipleRenderOption:
|
|
1172
|
-
} =
|
|
1173
|
-
options:
|
|
1174
|
-
value:
|
|
1241
|
+
handleChange: h,
|
|
1242
|
+
multipleRenderOption: w
|
|
1243
|
+
} = Gt({
|
|
1244
|
+
options: l,
|
|
1245
|
+
value: a,
|
|
1175
1246
|
onChange: c,
|
|
1176
|
-
getOptionLabel:
|
|
1247
|
+
getOptionLabel: d
|
|
1177
1248
|
});
|
|
1178
|
-
return /* @__PURE__ */
|
|
1179
|
-
|
|
1249
|
+
return /* @__PURE__ */ n(
|
|
1250
|
+
lt,
|
|
1180
1251
|
{
|
|
1181
|
-
...
|
|
1182
|
-
ref:
|
|
1183
|
-
options:
|
|
1184
|
-
value:
|
|
1185
|
-
onChange:
|
|
1186
|
-
getOptionLabel:
|
|
1187
|
-
renderOption: t ??
|
|
1188
|
-
ListboxComponent:
|
|
1252
|
+
...p,
|
|
1253
|
+
ref: s,
|
|
1254
|
+
options: l,
|
|
1255
|
+
value: b,
|
|
1256
|
+
onChange: h,
|
|
1257
|
+
getOptionLabel: d,
|
|
1258
|
+
renderOption: t ?? w,
|
|
1259
|
+
ListboxComponent: jt,
|
|
1189
1260
|
ListboxProps: {
|
|
1190
|
-
showFilters:
|
|
1191
|
-
allSelected:
|
|
1192
|
-
someSelected:
|
|
1261
|
+
showFilters: i,
|
|
1262
|
+
allSelected: g,
|
|
1263
|
+
someSelected: f,
|
|
1193
1264
|
handleSelectAll: y,
|
|
1194
1265
|
multiple: !0
|
|
1195
1266
|
},
|
|
1196
1267
|
multiple: !0,
|
|
1197
|
-
getLimitTagsText:
|
|
1268
|
+
getLimitTagsText: u ?? Nt,
|
|
1198
1269
|
disableCloseOnSelect: e,
|
|
1199
|
-
disabled:
|
|
1200
|
-
popupIcon:
|
|
1270
|
+
disabled: o || r,
|
|
1271
|
+
popupIcon: r ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : /* @__PURE__ */ n(ct, {}),
|
|
1201
1272
|
"data-name": "multiple-autocomplete"
|
|
1202
1273
|
}
|
|
1203
1274
|
);
|
|
1204
1275
|
}
|
|
1205
|
-
const
|
|
1276
|
+
const _n = O(Bo), To = ({
|
|
1277
|
+
children: t,
|
|
1278
|
+
disabled: e,
|
|
1279
|
+
value: o,
|
|
1280
|
+
onCopied: r,
|
|
1281
|
+
copyText: i = "c4r.button.copy",
|
|
1282
|
+
copiedText: l = "c4r.notifications.copiedToClipboard",
|
|
1283
|
+
button: a,
|
|
1284
|
+
buttonLabel: c,
|
|
1285
|
+
buttonProps: d,
|
|
1286
|
+
ariaLabel: u,
|
|
1287
|
+
dataTestId: p,
|
|
1288
|
+
tooltipPlacement: s = "top",
|
|
1289
|
+
...b
|
|
1290
|
+
}, g) => {
|
|
1291
|
+
const f = R(), y = T(f), [h, w] = B(!1), { copy: M } = Vt(i, l), A = (C) => {
|
|
1292
|
+
C.preventDefault(), M(o).then(() => {
|
|
1293
|
+
r == null || r(), w(!0);
|
|
1294
|
+
}).catch(console.error);
|
|
1295
|
+
};
|
|
1296
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
1297
|
+
/* @__PURE__ */ n(
|
|
1298
|
+
P,
|
|
1299
|
+
{
|
|
1300
|
+
title: y.formatMessage({ id: i }),
|
|
1301
|
+
leaveDelay: 0,
|
|
1302
|
+
placement: s,
|
|
1303
|
+
children: /* @__PURE__ */ x(
|
|
1304
|
+
D,
|
|
1305
|
+
{
|
|
1306
|
+
...b,
|
|
1307
|
+
sx: { cursor: e ? void 0 : "pointer" },
|
|
1308
|
+
onClick: A,
|
|
1309
|
+
"data-name": "copiable",
|
|
1310
|
+
ref: g,
|
|
1311
|
+
children: [
|
|
1312
|
+
t,
|
|
1313
|
+
a && /* @__PURE__ */ n(
|
|
1314
|
+
q,
|
|
1315
|
+
{
|
|
1316
|
+
...d,
|
|
1317
|
+
disabled: e,
|
|
1318
|
+
icon: /* @__PURE__ */ n(Lt, {}),
|
|
1319
|
+
"data-testid": p,
|
|
1320
|
+
"aria-label": u || c,
|
|
1321
|
+
sx: {
|
|
1322
|
+
display: "flex"
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
)
|
|
1326
|
+
]
|
|
1327
|
+
}
|
|
1328
|
+
)
|
|
1329
|
+
}
|
|
1330
|
+
),
|
|
1331
|
+
/* @__PURE__ */ n(
|
|
1332
|
+
dt,
|
|
1333
|
+
{
|
|
1334
|
+
open: h,
|
|
1335
|
+
autoWidth: !0,
|
|
1336
|
+
closeable: !1,
|
|
1337
|
+
autoHideDuration: 4e3,
|
|
1338
|
+
onClose: () => w(!1),
|
|
1339
|
+
children: y.formatMessage({ id: l })
|
|
1340
|
+
}
|
|
1341
|
+
)
|
|
1342
|
+
] });
|
|
1343
|
+
}, Ro = O(To);
|
|
1344
|
+
async function Oo(t) {
|
|
1345
|
+
return await navigator.clipboard.writeText(t);
|
|
1346
|
+
}
|
|
1347
|
+
const Vt = (t = "c4r.button.copy", e = "c4r.notifications.copiedToClipboard") => {
|
|
1348
|
+
const [o, r] = B(t);
|
|
1349
|
+
return {
|
|
1350
|
+
message: o,
|
|
1351
|
+
copy: async (l) => {
|
|
1352
|
+
await Oo(l), r(e), setTimeout(() => r(t), 1e3);
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
}, Fo = m("div", {
|
|
1206
1356
|
shouldForwardProp: (t) => t !== "variant"
|
|
1207
1357
|
})(({ variant: t, theme: e }) => ({
|
|
1208
1358
|
width: "100%",
|
|
@@ -1212,42 +1362,42 @@ const vo = L(en), nn = p("div", {
|
|
|
1212
1362
|
boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
|
|
1213
1363
|
}
|
|
1214
1364
|
}));
|
|
1215
|
-
function
|
|
1365
|
+
function Gn({
|
|
1216
1366
|
variant: t = "standard",
|
|
1217
1367
|
items: e,
|
|
1218
|
-
...
|
|
1368
|
+
...o
|
|
1219
1369
|
}) {
|
|
1220
|
-
return /* @__PURE__ */
|
|
1221
|
-
|
|
1370
|
+
return /* @__PURE__ */ n(Fo, { ...o, variant: t, children: e.map((r, i) => /* @__PURE__ */ x(
|
|
1371
|
+
ce,
|
|
1222
1372
|
{
|
|
1223
|
-
disabled:
|
|
1224
|
-
defaultExpanded:
|
|
1225
|
-
onChange:
|
|
1373
|
+
disabled: r.disabled,
|
|
1374
|
+
defaultExpanded: r.defaultExpanded,
|
|
1375
|
+
onChange: r.onChange,
|
|
1226
1376
|
children: [
|
|
1227
|
-
/* @__PURE__ */
|
|
1228
|
-
|
|
1377
|
+
/* @__PURE__ */ n(
|
|
1378
|
+
de,
|
|
1229
1379
|
{
|
|
1230
|
-
"aria-controls": `${
|
|
1231
|
-
id: `${
|
|
1232
|
-
children:
|
|
1380
|
+
"aria-controls": `${i}-content`,
|
|
1381
|
+
id: `${i}-header`,
|
|
1382
|
+
children: r.summary
|
|
1233
1383
|
}
|
|
1234
1384
|
),
|
|
1235
|
-
/* @__PURE__ */
|
|
1385
|
+
/* @__PURE__ */ n(se, { children: r.content })
|
|
1236
1386
|
]
|
|
1237
1387
|
},
|
|
1238
|
-
|
|
1388
|
+
i
|
|
1239
1389
|
)) });
|
|
1240
1390
|
}
|
|
1241
|
-
const
|
|
1391
|
+
const ht = {
|
|
1242
1392
|
large: 5,
|
|
1243
1393
|
medium: 4,
|
|
1244
1394
|
small: 3,
|
|
1245
1395
|
xsmall: 2.25
|
|
1246
|
-
},
|
|
1396
|
+
}, Lo = m(ue, {
|
|
1247
1397
|
shouldForwardProp: (t) => t !== "size" && t !== "disabled"
|
|
1248
|
-
})(({ theme: t, size: e = "medium", disabled:
|
|
1249
|
-
width: t.spacing(
|
|
1250
|
-
height: t.spacing(
|
|
1398
|
+
})(({ theme: t, size: e = "medium", disabled: o = !1 }) => ({
|
|
1399
|
+
width: t.spacing(ht[e]),
|
|
1400
|
+
height: t.spacing(ht[e]),
|
|
1251
1401
|
...t.typography.subtitle1,
|
|
1252
1402
|
...e === "large" && {
|
|
1253
1403
|
...t.typography.h6
|
|
@@ -1260,18 +1410,18 @@ const it = {
|
|
|
1260
1410
|
...t.typography.caption,
|
|
1261
1411
|
fontWeight: 500,
|
|
1262
1412
|
svg: {
|
|
1263
|
-
width:
|
|
1264
|
-
height:
|
|
1413
|
+
width: N,
|
|
1414
|
+
height: N
|
|
1265
1415
|
}
|
|
1266
1416
|
},
|
|
1267
|
-
...
|
|
1417
|
+
...o && {
|
|
1268
1418
|
opacity: 0.6
|
|
1269
1419
|
}
|
|
1270
1420
|
}));
|
|
1271
|
-
function
|
|
1272
|
-
return /* @__PURE__ */
|
|
1421
|
+
function jn(t) {
|
|
1422
|
+
return /* @__PURE__ */ n(Lo, { ...t });
|
|
1273
1423
|
}
|
|
1274
|
-
const
|
|
1424
|
+
const Ut = 480, Wo = m(pe)(({ theme: t }) => ({
|
|
1275
1425
|
bottom: t.spacing(2),
|
|
1276
1426
|
right: t.spacing(2),
|
|
1277
1427
|
left: t.spacing(2),
|
|
@@ -1280,13 +1430,13 @@ const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
|
|
|
1280
1430
|
right: "auto",
|
|
1281
1431
|
left: "50%",
|
|
1282
1432
|
width: "100%",
|
|
1283
|
-
maxWidth: `${
|
|
1433
|
+
maxWidth: `${Ut}px`
|
|
1284
1434
|
}
|
|
1285
|
-
})),
|
|
1435
|
+
})), Eo = m(D, {
|
|
1286
1436
|
shouldForwardProp: (t) => t !== "autoWidth"
|
|
1287
1437
|
})(({ autoWidth: t, theme: e }) => ({
|
|
1288
1438
|
minWidth: "100%",
|
|
1289
|
-
maxWidth: `${
|
|
1439
|
+
maxWidth: `${Ut}px`,
|
|
1290
1440
|
margin: e.spacing(0, 1),
|
|
1291
1441
|
...t && {
|
|
1292
1442
|
minWidth: "auto"
|
|
@@ -1297,59 +1447,59 @@ const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
|
|
|
1297
1447
|
minWidth: "auto"
|
|
1298
1448
|
}
|
|
1299
1449
|
}
|
|
1300
|
-
})),
|
|
1450
|
+
})), Ho = m(Et, {
|
|
1301
1451
|
shouldForwardProp: (t) => !["hasActions", "closeable"].includes(t)
|
|
1302
|
-
})(({ hasActions: t, closeable: e, icon:
|
|
1452
|
+
})(({ hasActions: t, closeable: e, icon: o, theme: r }) => ({
|
|
1303
1453
|
position: "relative",
|
|
1304
1454
|
display: "flex",
|
|
1305
1455
|
flexWrap: "wrap",
|
|
1306
|
-
columnGap:
|
|
1307
|
-
rowGap:
|
|
1308
|
-
padding:
|
|
1309
|
-
paddingLeft:
|
|
1310
|
-
color:
|
|
1311
|
-
backgroundColor:
|
|
1456
|
+
columnGap: r.spacing(1),
|
|
1457
|
+
rowGap: r.spacing(0.25),
|
|
1458
|
+
padding: r.spacing(1),
|
|
1459
|
+
paddingLeft: r.spacing(2),
|
|
1460
|
+
color: r.palette.common.white,
|
|
1461
|
+
backgroundColor: r.palette.common.black,
|
|
1312
1462
|
".MuiAlert-message": {
|
|
1313
|
-
padding:
|
|
1463
|
+
padding: r.spacing(0.75, 0)
|
|
1314
1464
|
},
|
|
1315
1465
|
".MuiAlert-message .MuiTypography-root, .MuiAlert-icon": {
|
|
1316
|
-
color:
|
|
1466
|
+
color: r.palette.common.white
|
|
1317
1467
|
},
|
|
1318
1468
|
".MuiAlert-message .MuiTypography-root:not(.MuiAlertTitle-root)": {
|
|
1319
|
-
...
|
|
1469
|
+
...r.typography.body2
|
|
1320
1470
|
},
|
|
1321
1471
|
".MuiAlert-message .MuiCircularProgress-circle": {
|
|
1322
|
-
color:
|
|
1472
|
+
color: r.palette.common.white
|
|
1323
1473
|
},
|
|
1324
1474
|
".MuiAlert-icon": {
|
|
1325
1475
|
position: "absolute",
|
|
1326
|
-
top:
|
|
1327
|
-
left:
|
|
1476
|
+
top: r.spacing(1),
|
|
1477
|
+
left: r.spacing(1.5),
|
|
1328
1478
|
display: "flex",
|
|
1329
1479
|
alignItems: "center",
|
|
1330
1480
|
justifyContent: "center",
|
|
1331
|
-
width:
|
|
1332
|
-
marginTop:
|
|
1481
|
+
width: r.spacing(3),
|
|
1482
|
+
marginTop: r.spacing(0.5)
|
|
1333
1483
|
},
|
|
1334
1484
|
"&.MuiAlert-standardError": {
|
|
1335
|
-
backgroundColor:
|
|
1485
|
+
backgroundColor: r.palette.error.main
|
|
1336
1486
|
},
|
|
1337
|
-
...
|
|
1338
|
-
paddingLeft:
|
|
1487
|
+
...o !== !1 && {
|
|
1488
|
+
paddingLeft: r.spacing(5.5)
|
|
1339
1489
|
},
|
|
1340
1490
|
...e && {
|
|
1341
|
-
paddingRight:
|
|
1491
|
+
paddingRight: r.spacing(6)
|
|
1342
1492
|
},
|
|
1343
1493
|
...!e && !t && {
|
|
1344
|
-
paddingRight:
|
|
1494
|
+
paddingRight: r.spacing(1.5)
|
|
1345
1495
|
},
|
|
1346
1496
|
...t && {
|
|
1347
1497
|
".MuiAlert-message": {
|
|
1348
1498
|
minWidth: "fit-content",
|
|
1349
|
-
padding:
|
|
1499
|
+
padding: r.spacing(0.75, 0)
|
|
1350
1500
|
}
|
|
1351
1501
|
}
|
|
1352
|
-
})),
|
|
1502
|
+
})), Po = m(D)(({ theme: t }) => ({
|
|
1353
1503
|
position: "absolute",
|
|
1354
1504
|
top: t.spacing(1),
|
|
1355
1505
|
right: t.spacing(1),
|
|
@@ -1360,58 +1510,58 @@ const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
|
|
|
1360
1510
|
color: t.palette.white[60]
|
|
1361
1511
|
}
|
|
1362
1512
|
}));
|
|
1363
|
-
function
|
|
1513
|
+
function dt({
|
|
1364
1514
|
severity: t = "neutral",
|
|
1365
|
-
autoHideDuration: e =
|
|
1366
|
-
closeable:
|
|
1367
|
-
children:
|
|
1368
|
-
title:
|
|
1369
|
-
action:
|
|
1370
|
-
open:
|
|
1515
|
+
autoHideDuration: e = ft,
|
|
1516
|
+
closeable: o = !0,
|
|
1517
|
+
children: r,
|
|
1518
|
+
title: i,
|
|
1519
|
+
action: l,
|
|
1520
|
+
open: a,
|
|
1371
1521
|
onClose: c = () => {
|
|
1372
1522
|
},
|
|
1373
|
-
autoWidth:
|
|
1374
|
-
icon:
|
|
1375
|
-
...
|
|
1523
|
+
autoWidth: d,
|
|
1524
|
+
icon: u,
|
|
1525
|
+
...p
|
|
1376
1526
|
}) {
|
|
1377
|
-
const
|
|
1378
|
-
return /* @__PURE__ */
|
|
1379
|
-
|
|
1527
|
+
const s = R(), b = T(s);
|
|
1528
|
+
return /* @__PURE__ */ n(ge, { children: /* @__PURE__ */ n(
|
|
1529
|
+
Wo,
|
|
1380
1530
|
{
|
|
1381
|
-
...
|
|
1382
|
-
open:
|
|
1383
|
-
autoHideDuration: e === null ? null : e ||
|
|
1531
|
+
...p,
|
|
1532
|
+
open: a,
|
|
1533
|
+
autoHideDuration: e === null ? null : e || ft,
|
|
1384
1534
|
onClose: c,
|
|
1385
|
-
TransitionComponent:
|
|
1386
|
-
"data-auto-width":
|
|
1535
|
+
TransitionComponent: d ? fe : Rt,
|
|
1536
|
+
"data-auto-width": d,
|
|
1387
1537
|
children: /* @__PURE__ */ x(
|
|
1388
|
-
|
|
1538
|
+
Eo,
|
|
1389
1539
|
{
|
|
1390
1540
|
sx: {
|
|
1391
1541
|
position: "relative"
|
|
1392
1542
|
},
|
|
1393
|
-
autoWidth:
|
|
1543
|
+
autoWidth: d,
|
|
1394
1544
|
children: [
|
|
1395
|
-
/* @__PURE__ */
|
|
1396
|
-
|
|
1545
|
+
/* @__PURE__ */ n(
|
|
1546
|
+
Ho,
|
|
1397
1547
|
{
|
|
1398
1548
|
severity: t,
|
|
1399
|
-
action:
|
|
1400
|
-
icon:
|
|
1549
|
+
action: l,
|
|
1550
|
+
icon: u === !1 || t === "neutral" && !u ? !1 : u,
|
|
1401
1551
|
elevation: 6,
|
|
1402
|
-
hasActions: !!
|
|
1403
|
-
closeable:
|
|
1404
|
-
title:
|
|
1405
|
-
children:
|
|
1552
|
+
hasActions: !!l,
|
|
1553
|
+
closeable: o,
|
|
1554
|
+
title: i,
|
|
1555
|
+
children: r
|
|
1406
1556
|
}
|
|
1407
1557
|
),
|
|
1408
|
-
|
|
1409
|
-
|
|
1558
|
+
o && /* @__PURE__ */ n(Po, { children: /* @__PURE__ */ n(
|
|
1559
|
+
q,
|
|
1410
1560
|
{
|
|
1411
1561
|
color: "default",
|
|
1412
|
-
onClick: (
|
|
1413
|
-
icon: /* @__PURE__ */
|
|
1414
|
-
tooltip:
|
|
1562
|
+
onClick: (w) => c(w, "timeout"),
|
|
1563
|
+
icon: /* @__PURE__ */ n(Wt, {}),
|
|
1564
|
+
tooltip: b.formatMessage({
|
|
1415
1565
|
id: "c4r.button.close"
|
|
1416
1566
|
})
|
|
1417
1567
|
}
|
|
@@ -1422,40 +1572,40 @@ function ko({
|
|
|
1422
1572
|
}
|
|
1423
1573
|
) });
|
|
1424
1574
|
}
|
|
1425
|
-
const
|
|
1575
|
+
const zo = m("div")(({ theme: t }) => ({
|
|
1426
1576
|
display: "flex",
|
|
1427
1577
|
alignItems: "center",
|
|
1428
|
-
height:
|
|
1578
|
+
height: ve,
|
|
1429
1579
|
marginRight: t.spacing(1.5)
|
|
1430
|
-
})),
|
|
1580
|
+
})), No = m(W)(({ theme: t }) => ({
|
|
1431
1581
|
marginRight: t.spacing(1),
|
|
1432
1582
|
"&.MuiButtonBase-root svg path": {
|
|
1433
1583
|
fill: t.palette.brand.appBarContrastText
|
|
1434
1584
|
}
|
|
1435
|
-
})),
|
|
1436
|
-
borderColor:
|
|
1585
|
+
})), _o = m(_)(({ theme: t }) => ({
|
|
1586
|
+
borderColor: Ot(t.palette.brand.appBarContrastText, 0.12)
|
|
1437
1587
|
}));
|
|
1438
|
-
function
|
|
1588
|
+
function Go({
|
|
1439
1589
|
onClickMenu: t
|
|
1440
1590
|
}) {
|
|
1441
1591
|
return (
|
|
1442
1592
|
// replacing deprecated `<Hidden />` with sx following this MUI5 guide:
|
|
1443
1593
|
// https://mui.com/material-ui/migration/v5-component-changes/#hidden
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
|
|
1594
|
+
/* @__PURE__ */ n(
|
|
1595
|
+
D,
|
|
1446
1596
|
{
|
|
1447
1597
|
sx: {
|
|
1448
1598
|
display: { md: "none", xs: "block" }
|
|
1449
1599
|
},
|
|
1450
|
-
children: /* @__PURE__ */ x(
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
/* @__PURE__ */
|
|
1600
|
+
children: /* @__PURE__ */ x(zo, { children: [
|
|
1601
|
+
/* @__PURE__ */ n(No, { onClick: t, children: /* @__PURE__ */ n(Se, {}) }),
|
|
1602
|
+
/* @__PURE__ */ n(_o, { orientation: "vertical", flexItem: !0 })
|
|
1453
1603
|
] })
|
|
1454
1604
|
}
|
|
1455
1605
|
)
|
|
1456
1606
|
);
|
|
1457
1607
|
}
|
|
1458
|
-
const
|
|
1608
|
+
const jo = m("div")(({ theme: t }) => ({
|
|
1459
1609
|
display: "flex",
|
|
1460
1610
|
marginRight: t.spacing(1.5),
|
|
1461
1611
|
"& a": {
|
|
@@ -1466,18 +1616,18 @@ const gn = p("div")(({ theme: t }) => ({
|
|
|
1466
1616
|
height: t.spacing(4)
|
|
1467
1617
|
}
|
|
1468
1618
|
}));
|
|
1469
|
-
function
|
|
1470
|
-
return /* @__PURE__ */
|
|
1619
|
+
function Vo({ logo: t }) {
|
|
1620
|
+
return /* @__PURE__ */ n(jo, { children: t });
|
|
1471
1621
|
}
|
|
1472
|
-
const
|
|
1622
|
+
const Uo = m(F)({
|
|
1473
1623
|
display: "flex",
|
|
1474
1624
|
alignItems: "center",
|
|
1475
1625
|
whiteSpace: "nowrap"
|
|
1476
1626
|
});
|
|
1477
|
-
function
|
|
1478
|
-
const e =
|
|
1479
|
-
return /* @__PURE__ */
|
|
1480
|
-
|
|
1627
|
+
function Yo({ text: t }) {
|
|
1628
|
+
const e = j();
|
|
1629
|
+
return /* @__PURE__ */ n(
|
|
1630
|
+
Uo,
|
|
1481
1631
|
{
|
|
1482
1632
|
component: "span",
|
|
1483
1633
|
variant: "subtitle1",
|
|
@@ -1486,7 +1636,7 @@ function hn({ text: t }) {
|
|
|
1486
1636
|
}
|
|
1487
1637
|
);
|
|
1488
1638
|
}
|
|
1489
|
-
const
|
|
1639
|
+
const qo = m(F)(({ theme: t }) => ({
|
|
1490
1640
|
display: "flex",
|
|
1491
1641
|
alignItems: "center",
|
|
1492
1642
|
"&::before": {
|
|
@@ -1496,10 +1646,10 @@ const bn = p(B)(({ theme: t }) => ({
|
|
|
1496
1646
|
color: t.palette.brand.appBarContrastText
|
|
1497
1647
|
}
|
|
1498
1648
|
}));
|
|
1499
|
-
function
|
|
1500
|
-
const e =
|
|
1501
|
-
return /* @__PURE__ */
|
|
1502
|
-
|
|
1649
|
+
function Zo({ text: t }) {
|
|
1650
|
+
const e = j();
|
|
1651
|
+
return /* @__PURE__ */ n(
|
|
1652
|
+
qo,
|
|
1503
1653
|
{
|
|
1504
1654
|
component: "span",
|
|
1505
1655
|
variant: "body2",
|
|
@@ -1509,7 +1659,7 @@ function xn({ text: t }) {
|
|
|
1509
1659
|
}
|
|
1510
1660
|
);
|
|
1511
1661
|
}
|
|
1512
|
-
const
|
|
1662
|
+
const Jo = m(be)(({ theme: t }) => ({
|
|
1513
1663
|
backgroundColor: t.palette.brand.appBarMain,
|
|
1514
1664
|
"& .MuiTypography-root": {
|
|
1515
1665
|
color: t.palette.brand.appBarContrastText
|
|
@@ -1517,7 +1667,7 @@ const yn = p(te)(({ theme: t }) => ({
|
|
|
1517
1667
|
"& .MuiIconButton-root path": {
|
|
1518
1668
|
fill: t.palette.brand.appBarContrastText
|
|
1519
1669
|
}
|
|
1520
|
-
})),
|
|
1670
|
+
})), Ko = m("div")(({ theme: t }) => ({
|
|
1521
1671
|
display: "flex",
|
|
1522
1672
|
alignItems: "center",
|
|
1523
1673
|
maxWidth: "calc(100% - 300px)",
|
|
@@ -1525,179 +1675,192 @@ const yn = p(te)(({ theme: t }) => ({
|
|
|
1525
1675
|
[t.breakpoints.down("sm")]: {
|
|
1526
1676
|
minWidth: "192px"
|
|
1527
1677
|
}
|
|
1528
|
-
})),
|
|
1678
|
+
})), Xo = m("div")(({ theme: t }) => ({
|
|
1529
1679
|
display: "flex",
|
|
1530
1680
|
alignItems: "center",
|
|
1531
1681
|
justifyContent: "space-between",
|
|
1532
1682
|
flex: 1,
|
|
1533
1683
|
marginLeft: t.spacing(1)
|
|
1534
1684
|
}));
|
|
1535
|
-
function
|
|
1685
|
+
function Vn({
|
|
1536
1686
|
children: t,
|
|
1537
1687
|
brandLogo: e,
|
|
1538
|
-
brandText:
|
|
1539
|
-
secondaryText:
|
|
1540
|
-
showBurgerMenu:
|
|
1541
|
-
onClickMenu:
|
|
1542
|
-
...
|
|
1688
|
+
brandText: o,
|
|
1689
|
+
secondaryText: r,
|
|
1690
|
+
showBurgerMenu: i = !1,
|
|
1691
|
+
onClickMenu: l,
|
|
1692
|
+
...a
|
|
1543
1693
|
}) {
|
|
1544
|
-
return /* @__PURE__ */
|
|
1545
|
-
/* @__PURE__ */ x(
|
|
1546
|
-
|
|
1547
|
-
e && /* @__PURE__ */
|
|
1548
|
-
|
|
1549
|
-
|
|
1694
|
+
return /* @__PURE__ */ n(Jo, { ...a, children: /* @__PURE__ */ x(me, { children: [
|
|
1695
|
+
/* @__PURE__ */ x(Ko, { children: [
|
|
1696
|
+
i && /* @__PURE__ */ n(Go, { onClickMenu: l }),
|
|
1697
|
+
e && /* @__PURE__ */ n(Vo, { logo: e }),
|
|
1698
|
+
o && /* @__PURE__ */ n(Yo, { text: o }),
|
|
1699
|
+
r && /* @__PURE__ */ n(Zo, { text: r })
|
|
1550
1700
|
] }),
|
|
1551
|
-
/* @__PURE__ */
|
|
1701
|
+
/* @__PURE__ */ n(Xo, { children: t })
|
|
1552
1702
|
] }) });
|
|
1553
1703
|
}
|
|
1554
|
-
const
|
|
1704
|
+
const Qo = m(D, {
|
|
1555
1705
|
shouldForwardProp: (t) => !["size", "variant"].includes(t)
|
|
1556
|
-
})(({ size: t, variant: e, theme:
|
|
1706
|
+
})(({ size: t, variant: e, theme: o }) => ({
|
|
1557
1707
|
position: "absolute",
|
|
1558
|
-
right:
|
|
1708
|
+
right: o.spacing(5.75),
|
|
1559
1709
|
...t === "small" && {
|
|
1560
|
-
right:
|
|
1710
|
+
right: o.spacing(4),
|
|
1561
1711
|
top: "3px"
|
|
1562
1712
|
// to align with design specs
|
|
1563
1713
|
},
|
|
1564
1714
|
...e === "standard" && {
|
|
1565
|
-
right:
|
|
1715
|
+
right: o.spacing(4.75),
|
|
1566
1716
|
...t === "small" && {
|
|
1567
|
-
right:
|
|
1717
|
+
right: o.spacing(3.5)
|
|
1568
1718
|
}
|
|
1569
1719
|
}
|
|
1570
1720
|
}));
|
|
1571
|
-
function
|
|
1721
|
+
function st({
|
|
1572
1722
|
size: t,
|
|
1573
1723
|
variant: e,
|
|
1574
|
-
...
|
|
1724
|
+
...o
|
|
1575
1725
|
}) {
|
|
1576
|
-
const
|
|
1577
|
-
return /* @__PURE__ */
|
|
1578
|
-
|
|
1726
|
+
const r = R(), i = T(r);
|
|
1727
|
+
return /* @__PURE__ */ n(Qo, { size: t, variant: e, children: /* @__PURE__ */ n(
|
|
1728
|
+
W,
|
|
1579
1729
|
{
|
|
1580
|
-
...
|
|
1730
|
+
...o,
|
|
1581
1731
|
size: t,
|
|
1582
|
-
"aria-label":
|
|
1732
|
+
"aria-label": i.formatMessage({
|
|
1583
1733
|
id: "c4r.form.clearSelection"
|
|
1584
1734
|
})
|
|
1585
1735
|
}
|
|
1586
1736
|
) });
|
|
1587
1737
|
}
|
|
1588
|
-
const
|
|
1738
|
+
const tr = m(D, {
|
|
1589
1739
|
shouldForwardProp: (t) => !["size", "variant", "readOnly"].includes(t)
|
|
1590
|
-
})(({ size: t, variant: e, readOnly:
|
|
1740
|
+
})(({ size: t, variant: e, readOnly: o, theme: r }) => ({
|
|
1591
1741
|
// There is no specific slot to change TextField styles at DatePicker level, so we need to wrap our component to isolate this override. https://mui.com/x/react-date-pickers/date-picker/#customization
|
|
1592
1742
|
".MuiInputBase-root": {
|
|
1593
1743
|
"& .clearButton svg": {
|
|
1594
|
-
color:
|
|
1744
|
+
color: r.palette.text.hint
|
|
1595
1745
|
},
|
|
1596
1746
|
...t === "small" && {
|
|
1597
|
-
paddingRight: `${
|
|
1747
|
+
paddingRight: `${r.spacing(1)} !important`
|
|
1598
1748
|
},
|
|
1599
1749
|
...t === "medium" && {
|
|
1600
1750
|
"& .MuiInputAdornment-root": {
|
|
1601
1751
|
"& .MuiIconButton-edgeEnd": {
|
|
1602
|
-
marginRight:
|
|
1752
|
+
marginRight: r.spacing(-1)
|
|
1603
1753
|
}
|
|
1604
1754
|
}
|
|
1605
1755
|
},
|
|
1606
1756
|
...e === "standard" && {
|
|
1607
|
-
paddingRight: `${
|
|
1757
|
+
paddingRight: `${r.spacing(1)} !important`,
|
|
1608
1758
|
...t === "small" && {
|
|
1609
|
-
paddingRight: `${
|
|
1759
|
+
paddingRight: `${r.spacing(0.5)} !important`
|
|
1610
1760
|
}
|
|
1611
1761
|
},
|
|
1612
|
-
...
|
|
1762
|
+
...o && {
|
|
1613
1763
|
"& .MuiInputAdornment-root": {
|
|
1614
1764
|
"& svg": {
|
|
1615
|
-
color:
|
|
1765
|
+
color: r.palette.text.disabled
|
|
1616
1766
|
}
|
|
1617
1767
|
}
|
|
1618
1768
|
}
|
|
1619
1769
|
}
|
|
1620
1770
|
}));
|
|
1621
|
-
function
|
|
1771
|
+
function ut({
|
|
1622
1772
|
children: t,
|
|
1623
1773
|
size: e,
|
|
1624
|
-
variant:
|
|
1625
|
-
readOnly:
|
|
1626
|
-
...
|
|
1774
|
+
variant: o,
|
|
1775
|
+
readOnly: r,
|
|
1776
|
+
...i
|
|
1627
1777
|
}) {
|
|
1628
|
-
return /* @__PURE__ */
|
|
1778
|
+
return /* @__PURE__ */ n(tr, { ...i, size: e, variant: o, readOnly: r, children: t });
|
|
1629
1779
|
}
|
|
1630
|
-
function
|
|
1780
|
+
function xt({
|
|
1631
1781
|
handleClear: t,
|
|
1632
1782
|
variant: e = "outlined",
|
|
1633
|
-
size:
|
|
1634
|
-
label:
|
|
1635
|
-
labelHelpTooltip:
|
|
1636
|
-
type:
|
|
1637
|
-
helperText:
|
|
1783
|
+
size: o = "small",
|
|
1784
|
+
label: r,
|
|
1785
|
+
labelHelpTooltip: i,
|
|
1786
|
+
type: l,
|
|
1787
|
+
helperText: a,
|
|
1638
1788
|
placeholder: c,
|
|
1639
|
-
slotProps:
|
|
1640
|
-
slots:
|
|
1641
|
-
error:
|
|
1642
|
-
showCalendar:
|
|
1643
|
-
readOnly:
|
|
1644
|
-
|
|
1789
|
+
slotProps: d,
|
|
1790
|
+
slots: u,
|
|
1791
|
+
error: p,
|
|
1792
|
+
showCalendar: s = !0,
|
|
1793
|
+
readOnly: b,
|
|
1794
|
+
"aria-label": g,
|
|
1795
|
+
"data-testid": f,
|
|
1796
|
+
...y
|
|
1645
1797
|
}) {
|
|
1646
|
-
const
|
|
1798
|
+
const h = R(), w = T(h);
|
|
1647
1799
|
return (
|
|
1648
1800
|
// Don't remove className, it's used for styling
|
|
1649
|
-
/* @__PURE__ */
|
|
1650
|
-
|
|
1801
|
+
/* @__PURE__ */ n(D, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ n(
|
|
1802
|
+
ut,
|
|
1651
1803
|
{
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1804
|
+
size: o,
|
|
1805
|
+
variant: e,
|
|
1806
|
+
readOnly: b,
|
|
1807
|
+
"data-name": "date-picker",
|
|
1808
|
+
"aria-label": g,
|
|
1809
|
+
"data-testid": f,
|
|
1810
|
+
children: /* @__PURE__ */ n(
|
|
1811
|
+
Re,
|
|
1655
1812
|
{
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1813
|
+
...y,
|
|
1814
|
+
label: r && /* @__PURE__ */ n(
|
|
1815
|
+
X,
|
|
1816
|
+
{
|
|
1817
|
+
label: r,
|
|
1818
|
+
type: l,
|
|
1819
|
+
icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
|
|
1820
|
+
}
|
|
1821
|
+
),
|
|
1822
|
+
slotProps: {
|
|
1823
|
+
// https://mui.com/x/api/date-pickers/date-picker/#slots
|
|
1824
|
+
textField: {
|
|
1825
|
+
variant: e,
|
|
1826
|
+
helperText: a,
|
|
1827
|
+
placeholder: c,
|
|
1828
|
+
size: o,
|
|
1829
|
+
error: p ?? void 0,
|
|
1830
|
+
// undefined is needed to allow the component to control the error state for the default validation
|
|
1831
|
+
inputProps: {
|
|
1832
|
+
"data-testid": "date-picker-input"
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
field: {
|
|
1836
|
+
clearable: !!t,
|
|
1837
|
+
onClear: t
|
|
1838
|
+
},
|
|
1839
|
+
...d
|
|
1840
|
+
},
|
|
1841
|
+
slots: {
|
|
1842
|
+
clearButton: (M) => /* @__PURE__ */ n(st, { ...M, size: o, variant: e }),
|
|
1843
|
+
openPickerButton: (M) => /* @__PURE__ */ n(
|
|
1844
|
+
W,
|
|
1845
|
+
{
|
|
1846
|
+
...M,
|
|
1847
|
+
size: o,
|
|
1848
|
+
"aria-label": w.formatMessage({
|
|
1849
|
+
id: "c4r.form.chooseDate"
|
|
1850
|
+
})
|
|
1851
|
+
}
|
|
1852
|
+
),
|
|
1853
|
+
...u
|
|
1854
|
+
},
|
|
1855
|
+
disableOpenPicker: !s,
|
|
1856
|
+
readOnly: b
|
|
1659
1857
|
}
|
|
1660
|
-
)
|
|
1661
|
-
slotProps: {
|
|
1662
|
-
// https://mui.com/x/api/date-pickers/date-picker/#slots
|
|
1663
|
-
textField: {
|
|
1664
|
-
variant: e,
|
|
1665
|
-
helperText: l,
|
|
1666
|
-
placeholder: c,
|
|
1667
|
-
size: n,
|
|
1668
|
-
error: h ?? void 0,
|
|
1669
|
-
// undefined is needed to allow the component to control the error state for the default validation
|
|
1670
|
-
inputProps: {
|
|
1671
|
-
"data-testid": "date-picker-input"
|
|
1672
|
-
}
|
|
1673
|
-
},
|
|
1674
|
-
field: {
|
|
1675
|
-
clearable: !!t,
|
|
1676
|
-
onClear: t
|
|
1677
|
-
},
|
|
1678
|
-
...s
|
|
1679
|
-
},
|
|
1680
|
-
slots: {
|
|
1681
|
-
clearButton: (b) => /* @__PURE__ */ i(K, { ...b, size: n, variant: e }),
|
|
1682
|
-
openPickerButton: (b) => /* @__PURE__ */ i(
|
|
1683
|
-
O,
|
|
1684
|
-
{
|
|
1685
|
-
...b,
|
|
1686
|
-
size: n,
|
|
1687
|
-
"aria-label": y.formatMessage({
|
|
1688
|
-
id: "c4r.form.chooseDate"
|
|
1689
|
-
})
|
|
1690
|
-
}
|
|
1691
|
-
),
|
|
1692
|
-
...d
|
|
1693
|
-
},
|
|
1694
|
-
disableOpenPicker: !u,
|
|
1695
|
-
readOnly: g
|
|
1858
|
+
)
|
|
1696
1859
|
}
|
|
1697
|
-
) })
|
|
1860
|
+
) })
|
|
1698
1861
|
);
|
|
1699
1862
|
}
|
|
1700
|
-
const
|
|
1863
|
+
const er = m(D, {
|
|
1701
1864
|
shouldForwardProp: (t) => ![
|
|
1702
1865
|
"isSelected",
|
|
1703
1866
|
"isStartDate",
|
|
@@ -1710,11 +1873,11 @@ const An = p(v, {
|
|
|
1710
1873
|
({
|
|
1711
1874
|
theme: t,
|
|
1712
1875
|
isSelected: e,
|
|
1713
|
-
isStartDate:
|
|
1714
|
-
isEndDate:
|
|
1715
|
-
isSelectedMonth:
|
|
1716
|
-
isLastDay:
|
|
1717
|
-
isFirstDay:
|
|
1876
|
+
isStartDate: o,
|
|
1877
|
+
isEndDate: r,
|
|
1878
|
+
isSelectedMonth: i,
|
|
1879
|
+
isLastDay: l,
|
|
1880
|
+
isFirstDay: a
|
|
1718
1881
|
}) => ({
|
|
1719
1882
|
position: "relative",
|
|
1720
1883
|
margin: t.spacing(0.25),
|
|
@@ -1722,7 +1885,7 @@ const An = p(v, {
|
|
|
1722
1885
|
margin: 0
|
|
1723
1886
|
},
|
|
1724
1887
|
// Highlight the selected date range
|
|
1725
|
-
...e &&
|
|
1888
|
+
...e && i && {
|
|
1726
1889
|
// Creates a continuous background color between start and end date
|
|
1727
1890
|
"&::before": {
|
|
1728
1891
|
content: '""',
|
|
@@ -1733,12 +1896,12 @@ const An = p(v, {
|
|
|
1733
1896
|
left: "-2px",
|
|
1734
1897
|
backgroundColor: t.palette.primary.background,
|
|
1735
1898
|
// Selected start date OR first day of the month
|
|
1736
|
-
...(
|
|
1899
|
+
...(o || a) && {
|
|
1737
1900
|
left: 0,
|
|
1738
1901
|
borderRadius: `${t.shape.borderRadius}px 0 0 ${t.shape.borderRadius}px`
|
|
1739
1902
|
},
|
|
1740
1903
|
// Selected end date OR last day of the month
|
|
1741
|
-
...(
|
|
1904
|
+
...(r || l) && {
|
|
1742
1905
|
right: 0,
|
|
1743
1906
|
borderRadius: `0 ${t.shape.borderRadius}px ${t.shape.borderRadius}px 0`
|
|
1744
1907
|
}
|
|
@@ -1754,7 +1917,7 @@ const An = p(v, {
|
|
|
1754
1917
|
borderRadius: `0 ${t.shape.borderRadius}px ${t.shape.borderRadius}px 0`
|
|
1755
1918
|
},
|
|
1756
1919
|
// First day of month and last selected day in a week
|
|
1757
|
-
...
|
|
1920
|
+
...a && {
|
|
1758
1921
|
"&:last-of-type::before": {
|
|
1759
1922
|
left: 0,
|
|
1760
1923
|
right: 0,
|
|
@@ -1762,7 +1925,7 @@ const An = p(v, {
|
|
|
1762
1925
|
}
|
|
1763
1926
|
},
|
|
1764
1927
|
// Last day of month and first selected day in a week
|
|
1765
|
-
...
|
|
1928
|
+
...l && {
|
|
1766
1929
|
"&:first-of-type::before": {
|
|
1767
1930
|
left: 0,
|
|
1768
1931
|
right: 0,
|
|
@@ -1771,7 +1934,7 @@ const An = p(v, {
|
|
|
1771
1934
|
},
|
|
1772
1935
|
"& .MuiPickersDay-today": {
|
|
1773
1936
|
borderColor: `${t.palette.default.outlinedBorder} !important`,
|
|
1774
|
-
...(
|
|
1937
|
+
...(o || r) && {
|
|
1775
1938
|
boxShadow: `0 0 0 1px inset ${t.palette.background.paper}`
|
|
1776
1939
|
}
|
|
1777
1940
|
},
|
|
@@ -1792,7 +1955,7 @@ const An = p(v, {
|
|
|
1792
1955
|
}
|
|
1793
1956
|
}
|
|
1794
1957
|
})
|
|
1795
|
-
),
|
|
1958
|
+
), or = m(Oe, {
|
|
1796
1959
|
shouldForwardProp: (t) => t !== "isDateRangeLimit"
|
|
1797
1960
|
})(({ theme: t, isDateRangeLimit: e }) => ({
|
|
1798
1961
|
"&.MuiPickersDay-root": {
|
|
@@ -1812,37 +1975,38 @@ const An = p(v, {
|
|
|
1812
1975
|
}
|
|
1813
1976
|
}
|
|
1814
1977
|
}
|
|
1815
|
-
})),
|
|
1816
|
-
function
|
|
1978
|
+
})), yt = (t, e) => !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
|
|
1979
|
+
function Ct({
|
|
1817
1980
|
day: t,
|
|
1818
1981
|
startDate: e,
|
|
1819
|
-
endDate:
|
|
1820
|
-
selectedMonth:
|
|
1821
|
-
...
|
|
1982
|
+
endDate: o,
|
|
1983
|
+
selectedMonth: r,
|
|
1984
|
+
...i
|
|
1822
1985
|
}) {
|
|
1823
|
-
const
|
|
1824
|
-
return /* @__PURE__ */
|
|
1825
|
-
|
|
1986
|
+
const l = !!(e && yt(e, t)), a = !!(o && yt(o, t)), c = !!(e && o && t.getTime() >= e.getTime() && t.getTime() <= o.getTime()), d = t.getDate() === 1, u = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), p = !!(r && t.getMonth() === r.getMonth());
|
|
1987
|
+
return /* @__PURE__ */ n(
|
|
1988
|
+
er,
|
|
1826
1989
|
{
|
|
1827
1990
|
isSelected: c,
|
|
1828
|
-
isStartDate:
|
|
1829
|
-
isEndDate:
|
|
1830
|
-
isSelectedMonth:
|
|
1831
|
-
isLastDay:
|
|
1832
|
-
isFirstDay:
|
|
1833
|
-
children: /* @__PURE__ */
|
|
1834
|
-
|
|
1991
|
+
isStartDate: l,
|
|
1992
|
+
isEndDate: a,
|
|
1993
|
+
isSelectedMonth: p,
|
|
1994
|
+
isLastDay: u,
|
|
1995
|
+
isFirstDay: d,
|
|
1996
|
+
children: /* @__PURE__ */ n(
|
|
1997
|
+
or,
|
|
1835
1998
|
{
|
|
1836
|
-
...
|
|
1999
|
+
...i,
|
|
1837
2000
|
day: t,
|
|
1838
|
-
selected: c ||
|
|
1839
|
-
isDateRangeLimit:
|
|
2001
|
+
selected: c || l || a,
|
|
2002
|
+
isDateRangeLimit: l || a,
|
|
2003
|
+
"data-name": "pickers-day"
|
|
1840
2004
|
}
|
|
1841
2005
|
)
|
|
1842
2006
|
}
|
|
1843
2007
|
);
|
|
1844
2008
|
}
|
|
1845
|
-
const
|
|
2009
|
+
const rr = m(D, {
|
|
1846
2010
|
shouldForwardProp: (t) => !["variant"].includes(t)
|
|
1847
2011
|
})(({ variant: t, theme: e }) => ({
|
|
1848
2012
|
display: "flex",
|
|
@@ -1892,182 +2056,197 @@ const In = p(v, {
|
|
|
1892
2056
|
}
|
|
1893
2057
|
}
|
|
1894
2058
|
}));
|
|
1895
|
-
function
|
|
2059
|
+
function Un({
|
|
1896
2060
|
globalHelperText: t,
|
|
1897
2061
|
error: e,
|
|
1898
|
-
variant:
|
|
1899
|
-
startProps:
|
|
1900
|
-
endProps:
|
|
1901
|
-
|
|
2062
|
+
variant: o = "outlined",
|
|
2063
|
+
startProps: r,
|
|
2064
|
+
endProps: i,
|
|
2065
|
+
"aria-label": l,
|
|
2066
|
+
"data-testid": a,
|
|
2067
|
+
...c
|
|
1902
2068
|
}) {
|
|
1903
|
-
const
|
|
1904
|
-
(
|
|
1905
|
-
), [
|
|
1906
|
-
(
|
|
1907
|
-
),
|
|
1908
|
-
|
|
1909
|
-
},
|
|
1910
|
-
|
|
1911
|
-
},
|
|
1912
|
-
|
|
1913
|
-
|
|
2069
|
+
const d = R(), u = T(d), [p, s] = B(!1), [b, g] = B(!1), [f, y] = B(
|
|
2070
|
+
(r == null ? void 0 : r.value) || null
|
|
2071
|
+
), [h, w] = B((i == null ? void 0 : i.value) || null), [M, A] = B(
|
|
2072
|
+
(i == null ? void 0 : i.value) ?? (r == null ? void 0 : r.value) ?? /* @__PURE__ */ new Date()
|
|
2073
|
+
), C = e ?? (r == null ? void 0 : r.error) ?? (i == null ? void 0 : i.error), k = (S, L) => {
|
|
2074
|
+
y(S), r != null && r.onChange && r.onChange(S, L), S && L.validationError === null && !b && L.trigger === null && (g(!1), s(!0));
|
|
2075
|
+
}, v = (S, L) => {
|
|
2076
|
+
w(S), i != null && i.onChange && i.onChange(S, L);
|
|
2077
|
+
}, $ = () => {
|
|
2078
|
+
g(!0), s(!1), setTimeout(() => {
|
|
2079
|
+
A(f ?? /* @__PURE__ */ new Date());
|
|
1914
2080
|
}, 120);
|
|
1915
2081
|
}, I = () => {
|
|
1916
|
-
|
|
1917
|
-
|
|
2082
|
+
g(!1), s(!0), setTimeout(() => {
|
|
2083
|
+
A(h ?? f ?? /* @__PURE__ */ new Date());
|
|
1918
2084
|
}, 120);
|
|
1919
|
-
},
|
|
1920
|
-
|
|
1921
|
-
|
|
2085
|
+
}, E = () => {
|
|
2086
|
+
g(!1), s(!0), setTimeout(() => {
|
|
2087
|
+
A(h ?? f ?? /* @__PURE__ */ new Date());
|
|
1922
2088
|
}, 120);
|
|
1923
2089
|
};
|
|
1924
|
-
return /* @__PURE__ */ x(
|
|
1925
|
-
/* @__PURE__ */ x(
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
...
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2090
|
+
return /* @__PURE__ */ x(D, { children: [
|
|
2091
|
+
/* @__PURE__ */ x(
|
|
2092
|
+
rr,
|
|
2093
|
+
{
|
|
2094
|
+
variant: o,
|
|
2095
|
+
"data-name": "date-range-picker",
|
|
2096
|
+
"aria-label": l,
|
|
2097
|
+
"data-testid": a,
|
|
2098
|
+
children: [
|
|
2099
|
+
/* @__PURE__ */ n(
|
|
2100
|
+
xt,
|
|
2101
|
+
{
|
|
2102
|
+
...c,
|
|
2103
|
+
...r,
|
|
2104
|
+
value: (r == null ? void 0 : r.value) ?? f,
|
|
2105
|
+
maxDate: h ?? void 0,
|
|
2106
|
+
label: (r == null ? void 0 : r.label) ?? u.formatMessage({ id: "c4r.form.startDate" }),
|
|
2107
|
+
slotProps: {
|
|
2108
|
+
popper: {
|
|
2109
|
+
placement: "bottom-start",
|
|
2110
|
+
"aria-label": u.formatMessage({
|
|
2111
|
+
id: "c4r.form.startDateCalendar"
|
|
2112
|
+
})
|
|
2113
|
+
},
|
|
2114
|
+
...r == null ? void 0 : r.slotProps
|
|
2115
|
+
},
|
|
2116
|
+
slots: {
|
|
2117
|
+
openPickerIcon: Ie,
|
|
2118
|
+
day: (S) => /* @__PURE__ */ n(
|
|
2119
|
+
Ct,
|
|
2120
|
+
{
|
|
2121
|
+
...S,
|
|
2122
|
+
startDate: f,
|
|
2123
|
+
endDate: h,
|
|
2124
|
+
selectedMonth: M
|
|
2125
|
+
}
|
|
2126
|
+
),
|
|
2127
|
+
...r == null ? void 0 : r.slots
|
|
2128
|
+
},
|
|
2129
|
+
error: (r == null ? void 0 : r.error) ?? e,
|
|
2130
|
+
open: b,
|
|
2131
|
+
onChange: k,
|
|
2132
|
+
onOpen: $,
|
|
2133
|
+
onClose: I,
|
|
2134
|
+
onMonthChange: (S) => A(S),
|
|
2135
|
+
variant: o
|
|
2136
|
+
}
|
|
2137
|
+
),
|
|
2138
|
+
/* @__PURE__ */ n(
|
|
2139
|
+
xt,
|
|
2140
|
+
{
|
|
2141
|
+
...c,
|
|
2142
|
+
...i,
|
|
2143
|
+
value: (i == null ? void 0 : i.value) ?? h,
|
|
2144
|
+
minDate: f ?? void 0,
|
|
2145
|
+
slotProps: {
|
|
2146
|
+
popper: {
|
|
2147
|
+
"aria-label": u.formatMessage({
|
|
2148
|
+
id: "c4r.form.endDateCalendar"
|
|
2149
|
+
})
|
|
2150
|
+
},
|
|
2151
|
+
...i == null ? void 0 : i.slotProps
|
|
2152
|
+
},
|
|
2153
|
+
slots: {
|
|
2154
|
+
day: (S) => /* @__PURE__ */ n(
|
|
2155
|
+
Ct,
|
|
2156
|
+
{
|
|
2157
|
+
...S,
|
|
2158
|
+
startDate: f,
|
|
2159
|
+
endDate: h,
|
|
2160
|
+
selectedMonth: M
|
|
2161
|
+
}
|
|
2162
|
+
),
|
|
2163
|
+
...i == null ? void 0 : i.slots
|
|
2164
|
+
},
|
|
2165
|
+
label: (i == null ? void 0 : i.label) ?? u.formatMessage({ id: "c4r.form.endDate" }),
|
|
2166
|
+
error: (i == null ? void 0 : i.error) ?? e,
|
|
2167
|
+
open: p,
|
|
2168
|
+
onOpen: E,
|
|
2169
|
+
onClose: () => s(!1),
|
|
2170
|
+
onChange: v,
|
|
2171
|
+
onMonthChange: (S) => A(S),
|
|
2172
|
+
variant: o
|
|
2173
|
+
}
|
|
2174
|
+
)
|
|
2175
|
+
]
|
|
2176
|
+
}
|
|
2177
|
+
),
|
|
2178
|
+
t && /* @__PURE__ */ n(J, { error: C, children: t })
|
|
2004
2179
|
] });
|
|
2005
2180
|
}
|
|
2006
|
-
const
|
|
2007
|
-
const
|
|
2008
|
-
if (
|
|
2009
|
-
const
|
|
2010
|
-
return e &&
|
|
2181
|
+
const Yt = (t, e, o, r) => {
|
|
2182
|
+
const i = t == null ? void 0 : t.includes("hours"), l = t == null ? void 0 : t.includes("seconds"), a = t == null ? void 0 : t.includes("minutes"), c = (t == null ? void 0 : t.length) === 1 && t[0] === "hours";
|
|
2183
|
+
if (r) return r;
|
|
2184
|
+
const d = [];
|
|
2185
|
+
return e && d.push("MM/dd/yyyy "), i && d.push(o ? "hh" : "HH"), c || d.push(":"), a && d.push("mm"), l && d.push(":ss"), o && d.push(" a"), d.join("");
|
|
2011
2186
|
};
|
|
2012
|
-
function
|
|
2187
|
+
function Yn({
|
|
2013
2188
|
handleClear: t,
|
|
2014
2189
|
variant: e = "outlined",
|
|
2015
|
-
size:
|
|
2016
|
-
label:
|
|
2017
|
-
labelHelpTooltip:
|
|
2018
|
-
type:
|
|
2019
|
-
helperText:
|
|
2190
|
+
size: o = "small",
|
|
2191
|
+
label: r,
|
|
2192
|
+
labelHelpTooltip: i,
|
|
2193
|
+
type: l,
|
|
2194
|
+
helperText: a,
|
|
2020
2195
|
placeholder: c,
|
|
2021
|
-
error:
|
|
2022
|
-
showClock:
|
|
2023
|
-
readOnly:
|
|
2024
|
-
slotProps:
|
|
2025
|
-
slots:
|
|
2026
|
-
ampm:
|
|
2027
|
-
views:
|
|
2196
|
+
error: d,
|
|
2197
|
+
showClock: u = !0,
|
|
2198
|
+
readOnly: p,
|
|
2199
|
+
slotProps: s,
|
|
2200
|
+
slots: b,
|
|
2201
|
+
ampm: g = !0,
|
|
2202
|
+
views: f = ["hours", "minutes"],
|
|
2028
2203
|
format: y,
|
|
2029
|
-
|
|
2204
|
+
"data-testid": h,
|
|
2205
|
+
"aria-label": w,
|
|
2206
|
+
...M
|
|
2030
2207
|
}) {
|
|
2031
|
-
const
|
|
2032
|
-
return
|
|
2033
|
-
if (!
|
|
2034
|
-
const I = new ResizeObserver((
|
|
2035
|
-
var
|
|
2036
|
-
const
|
|
2037
|
-
|
|
2208
|
+
const A = R(), C = T(A), k = Z(null), [v, $] = B(0);
|
|
2209
|
+
return z(() => {
|
|
2210
|
+
if (!k.current) return;
|
|
2211
|
+
const I = new ResizeObserver((E) => {
|
|
2212
|
+
var L;
|
|
2213
|
+
const S = (L = E[0]) == null ? void 0 : L.contentRect.width;
|
|
2214
|
+
S && $(S);
|
|
2038
2215
|
});
|
|
2039
|
-
return I.observe(
|
|
2216
|
+
return I.observe(k.current), () => {
|
|
2040
2217
|
I.disconnect();
|
|
2041
2218
|
};
|
|
2042
|
-
}, []), /* @__PURE__ */
|
|
2043
|
-
|
|
2219
|
+
}, []), /* @__PURE__ */ n(
|
|
2220
|
+
ut,
|
|
2044
2221
|
{
|
|
2045
|
-
size:
|
|
2222
|
+
size: o,
|
|
2046
2223
|
variant: e,
|
|
2047
|
-
readOnly:
|
|
2048
|
-
"data-
|
|
2049
|
-
|
|
2050
|
-
|
|
2224
|
+
readOnly: p,
|
|
2225
|
+
"data-name": "time-picker",
|
|
2226
|
+
"data-testid": h ?? "time-picker",
|
|
2227
|
+
"aria-label": w,
|
|
2228
|
+
children: /* @__PURE__ */ n(
|
|
2229
|
+
Fe,
|
|
2051
2230
|
{
|
|
2052
|
-
...
|
|
2053
|
-
ref:
|
|
2054
|
-
label: /* @__PURE__ */
|
|
2231
|
+
...M,
|
|
2232
|
+
ref: k,
|
|
2233
|
+
label: /* @__PURE__ */ n(
|
|
2055
2234
|
X,
|
|
2056
2235
|
{
|
|
2057
|
-
label:
|
|
2058
|
-
type:
|
|
2059
|
-
icon:
|
|
2236
|
+
label: r ?? C.formatMessage({ id: "c4r.form.time" }),
|
|
2237
|
+
type: l,
|
|
2238
|
+
icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
|
|
2060
2239
|
}
|
|
2061
2240
|
),
|
|
2062
2241
|
views: ["hours"],
|
|
2063
|
-
format:
|
|
2242
|
+
format: Yt(f, !1, g, y),
|
|
2064
2243
|
slotProps: {
|
|
2065
2244
|
textField: {
|
|
2066
2245
|
variant: e,
|
|
2067
|
-
helperText:
|
|
2246
|
+
helperText: a,
|
|
2068
2247
|
placeholder: c,
|
|
2069
|
-
size:
|
|
2070
|
-
error:
|
|
2248
|
+
size: o,
|
|
2249
|
+
error: d ?? void 0,
|
|
2071
2250
|
// undefined is needed to allow the component to control the error state for the default validation
|
|
2072
2251
|
inputProps: {
|
|
2073
2252
|
"data-testid": "time-picker-input"
|
|
@@ -2082,81 +2261,85 @@ function Bo({
|
|
|
2082
2261
|
},
|
|
2083
2262
|
layout: {
|
|
2084
2263
|
sx: {
|
|
2085
|
-
width:
|
|
2264
|
+
width: v
|
|
2086
2265
|
}
|
|
2087
2266
|
},
|
|
2088
|
-
...
|
|
2267
|
+
...s
|
|
2089
2268
|
},
|
|
2090
2269
|
slots: {
|
|
2091
|
-
clearButton: (I) => /* @__PURE__ */
|
|
2092
|
-
openPickerButton: (I) => /* @__PURE__ */
|
|
2093
|
-
|
|
2270
|
+
clearButton: (I) => /* @__PURE__ */ n(st, { ...I, size: o, variant: e }),
|
|
2271
|
+
openPickerButton: (I) => /* @__PURE__ */ n(
|
|
2272
|
+
W,
|
|
2094
2273
|
{
|
|
2095
2274
|
...I,
|
|
2096
|
-
size:
|
|
2097
|
-
"aria-label":
|
|
2275
|
+
size: o,
|
|
2276
|
+
"aria-label": C.formatMessage({
|
|
2098
2277
|
id: "c4r.form.chooseDate"
|
|
2099
2278
|
})
|
|
2100
2279
|
}
|
|
2101
2280
|
),
|
|
2102
|
-
...
|
|
2281
|
+
...b
|
|
2103
2282
|
},
|
|
2104
|
-
disableOpenPicker: !
|
|
2105
|
-
readOnly:
|
|
2106
|
-
ampm:
|
|
2283
|
+
disableOpenPicker: !u,
|
|
2284
|
+
readOnly: p,
|
|
2285
|
+
ampm: g
|
|
2107
2286
|
}
|
|
2108
2287
|
)
|
|
2109
2288
|
}
|
|
2110
2289
|
);
|
|
2111
2290
|
}
|
|
2112
|
-
function
|
|
2291
|
+
function qn({
|
|
2113
2292
|
handleClear: t,
|
|
2114
2293
|
variant: e = "outlined",
|
|
2115
|
-
size:
|
|
2116
|
-
label:
|
|
2117
|
-
labelHelpTooltip:
|
|
2118
|
-
type:
|
|
2119
|
-
helperText:
|
|
2294
|
+
size: o = "small",
|
|
2295
|
+
label: r,
|
|
2296
|
+
labelHelpTooltip: i,
|
|
2297
|
+
type: l,
|
|
2298
|
+
helperText: a,
|
|
2120
2299
|
placeholder: c,
|
|
2121
|
-
error:
|
|
2122
|
-
showCalendar:
|
|
2123
|
-
readOnly:
|
|
2124
|
-
slotProps:
|
|
2125
|
-
slots:
|
|
2126
|
-
ampm:
|
|
2127
|
-
views:
|
|
2300
|
+
error: d,
|
|
2301
|
+
showCalendar: u = !0,
|
|
2302
|
+
readOnly: p,
|
|
2303
|
+
slotProps: s,
|
|
2304
|
+
slots: b,
|
|
2305
|
+
ampm: g = !0,
|
|
2306
|
+
views: f = ["hours", "minutes"],
|
|
2128
2307
|
format: y,
|
|
2129
|
-
|
|
2308
|
+
"data-testid": h,
|
|
2309
|
+
"aria-label": w,
|
|
2310
|
+
...M
|
|
2130
2311
|
}) {
|
|
2131
|
-
const
|
|
2132
|
-
return /* @__PURE__ */
|
|
2133
|
-
|
|
2312
|
+
const A = R(), C = T(A);
|
|
2313
|
+
return /* @__PURE__ */ n(
|
|
2314
|
+
ut,
|
|
2134
2315
|
{
|
|
2135
|
-
size:
|
|
2316
|
+
size: o,
|
|
2136
2317
|
variant: e,
|
|
2137
|
-
readOnly:
|
|
2138
|
-
"data-
|
|
2139
|
-
|
|
2140
|
-
|
|
2318
|
+
readOnly: p,
|
|
2319
|
+
"data-name": "date-time-picker",
|
|
2320
|
+
"data-testid": h ?? "date-time-picker",
|
|
2321
|
+
"aria-label": w,
|
|
2322
|
+
children: /* @__PURE__ */ n(
|
|
2323
|
+
Le,
|
|
2141
2324
|
{
|
|
2142
|
-
...
|
|
2143
|
-
label: /* @__PURE__ */
|
|
2325
|
+
...M,
|
|
2326
|
+
label: /* @__PURE__ */ n(
|
|
2144
2327
|
X,
|
|
2145
2328
|
{
|
|
2146
|
-
label:
|
|
2147
|
-
type:
|
|
2148
|
-
icon:
|
|
2329
|
+
label: r ?? C.formatMessage({ id: "c4r.form.time" }),
|
|
2330
|
+
type: l,
|
|
2331
|
+
icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
|
|
2149
2332
|
}
|
|
2150
2333
|
),
|
|
2151
2334
|
views: ["year", "month", "day", "hours"],
|
|
2152
|
-
format:
|
|
2335
|
+
format: Yt(f, !0, g, y),
|
|
2153
2336
|
slotProps: {
|
|
2154
2337
|
textField: {
|
|
2155
2338
|
variant: e,
|
|
2156
|
-
helperText:
|
|
2339
|
+
helperText: a,
|
|
2157
2340
|
placeholder: c,
|
|
2158
|
-
size:
|
|
2159
|
-
error:
|
|
2341
|
+
size: o,
|
|
2342
|
+
error: d ?? void 0,
|
|
2160
2343
|
// undefined is needed to allow the component to control the error state for the default validation
|
|
2161
2344
|
inputProps: {
|
|
2162
2345
|
"data-testid": "date-time-picker-input"
|
|
@@ -2166,140 +2349,964 @@ function So({
|
|
|
2166
2349
|
clearable: !!t,
|
|
2167
2350
|
onClear: t
|
|
2168
2351
|
},
|
|
2169
|
-
...
|
|
2352
|
+
...s
|
|
2170
2353
|
},
|
|
2171
2354
|
slots: {
|
|
2172
|
-
clearButton: (
|
|
2173
|
-
openPickerButton: (
|
|
2174
|
-
|
|
2355
|
+
clearButton: (k) => /* @__PURE__ */ n(st, { ...k, size: o, variant: e }),
|
|
2356
|
+
openPickerButton: (k) => /* @__PURE__ */ n(
|
|
2357
|
+
W,
|
|
2175
2358
|
{
|
|
2176
|
-
...
|
|
2177
|
-
size:
|
|
2178
|
-
"aria-label":
|
|
2359
|
+
...k,
|
|
2360
|
+
size: o,
|
|
2361
|
+
"aria-label": C.formatMessage({
|
|
2179
2362
|
id: "c4r.form.chooseDate"
|
|
2180
2363
|
})
|
|
2181
2364
|
}
|
|
2182
2365
|
),
|
|
2183
|
-
...
|
|
2366
|
+
...b
|
|
2184
2367
|
},
|
|
2185
|
-
disableOpenPicker: !
|
|
2186
|
-
readOnly:
|
|
2187
|
-
ampm:
|
|
2368
|
+
disableOpenPicker: !u,
|
|
2369
|
+
readOnly: p,
|
|
2370
|
+
ampm: g
|
|
2188
2371
|
}
|
|
2189
2372
|
)
|
|
2190
2373
|
}
|
|
2191
2374
|
);
|
|
2192
2375
|
}
|
|
2193
|
-
const
|
|
2376
|
+
const nr = [{ outlinedBullet: !1, value: "" }], ir = m("ul")(({ theme: t }) => ({
|
|
2194
2377
|
listStyle: "none",
|
|
2195
2378
|
paddingLeft: 0,
|
|
2196
2379
|
margin: t.spacing(0.5, 0, 0, 0)
|
|
2197
|
-
})),
|
|
2380
|
+
})), ar = m("li")(({ theme: t }) => ({
|
|
2198
2381
|
display: "flex",
|
|
2199
2382
|
alignItems: "center",
|
|
2200
2383
|
justifyContent: "space-between",
|
|
2201
2384
|
"&:not(:last-child)": {
|
|
2202
2385
|
marginBottom: t.spacing(0.5)
|
|
2203
2386
|
}
|
|
2204
|
-
})),
|
|
2387
|
+
})), lr = m("span")(({ theme: t }) => ({
|
|
2205
2388
|
width: t.spacing(1),
|
|
2206
2389
|
height: t.spacing(1),
|
|
2207
2390
|
marginRight: t.spacing(0.5),
|
|
2208
2391
|
border: `2px solid ${t.palette.qualitative.bold[1]}`,
|
|
2209
2392
|
borderRadius: "50%",
|
|
2210
2393
|
backgroundColor: t.palette.qualitative.bold[1]
|
|
2211
|
-
})),
|
|
2394
|
+
})), cr = m(F)(({ theme: t }) => ({
|
|
2212
2395
|
minWidth: t.spacing(10),
|
|
2213
2396
|
marginRight: t.spacing(1.5)
|
|
2214
2397
|
}));
|
|
2215
|
-
function
|
|
2216
|
-
items: t =
|
|
2398
|
+
function Zn({
|
|
2399
|
+
items: t = nr,
|
|
2217
2400
|
title: e
|
|
2218
2401
|
}) {
|
|
2219
|
-
return /* @__PURE__ */ x(
|
|
2220
|
-
e && /* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
2223
|
-
|
|
2402
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
2403
|
+
e && /* @__PURE__ */ n(F, { color: "inherit", variant: "caption", weight: "medium", children: e }),
|
|
2404
|
+
/* @__PURE__ */ n(ir, { children: t.map((o, r) => /* @__PURE__ */ x(ar, { children: [
|
|
2405
|
+
/* @__PURE__ */ n(
|
|
2406
|
+
lr,
|
|
2224
2407
|
{
|
|
2225
2408
|
style: {
|
|
2226
|
-
backgroundColor: `${
|
|
2227
|
-
borderColor:
|
|
2409
|
+
backgroundColor: `${o.outlinedBullet ? "transparent" : o.color}`,
|
|
2410
|
+
borderColor: o.color
|
|
2228
2411
|
}
|
|
2229
2412
|
}
|
|
2230
2413
|
),
|
|
2231
|
-
|
|
2232
|
-
/* @__PURE__ */
|
|
2233
|
-
] },
|
|
2414
|
+
o.category && /* @__PURE__ */ n(cr, { color: "inherit", variant: "caption", children: o.category }),
|
|
2415
|
+
/* @__PURE__ */ n(F, { color: "inherit", variant: "caption", weight: "medium", children: o.value })
|
|
2416
|
+
] }, r)) })
|
|
2234
2417
|
] });
|
|
2235
2418
|
}
|
|
2236
|
-
const
|
|
2237
|
-
|
|
2238
|
-
medium: "640px",
|
|
2239
|
-
large: "640px",
|
|
2240
|
-
xlarge: "720px"
|
|
2241
|
-
}, st = {
|
|
2242
|
-
small: {
|
|
2243
|
-
width: "432px",
|
|
2244
|
-
maxWidth: "432px"
|
|
2245
|
-
},
|
|
2246
|
-
medium: {
|
|
2247
|
-
width: "592px",
|
|
2248
|
-
maxWidth: "592px"
|
|
2249
|
-
},
|
|
2250
|
-
large: {
|
|
2251
|
-
width: "768px",
|
|
2252
|
-
maxWidth: "768px",
|
|
2253
|
-
minHeight: "576px"
|
|
2254
|
-
},
|
|
2255
|
-
xlarge: {
|
|
2256
|
-
width: "calc(100vw - 80px)",
|
|
2257
|
-
height: "calc(100vh - 80px)",
|
|
2258
|
-
maxWidth: "960px"
|
|
2259
|
-
}
|
|
2260
|
-
}, dt = p(ee, {
|
|
2261
|
-
shouldForwardProp: (t) => !["fullScreen", "height", "width", "hasForm"].includes(t)
|
|
2419
|
+
const dr = m(D, {
|
|
2420
|
+
shouldForwardProp: (t) => !["withGutter", "disabled"].includes(t)
|
|
2262
2421
|
})(
|
|
2263
|
-
({
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2422
|
+
({ withGutter: t, disabled: e, theme: o }) => ({
|
|
2423
|
+
display: "flex",
|
|
2424
|
+
alignItems: "center",
|
|
2425
|
+
justifyContent: "flex-end",
|
|
2426
|
+
gap: o.spacing(1),
|
|
2427
|
+
...t && {
|
|
2428
|
+
height: o.spacing(4),
|
|
2429
|
+
padding: o.spacing(0, 0.5),
|
|
2430
|
+
borderTop: `1px solid ${o.palette.divider}`,
|
|
2431
|
+
borderBottom: "1px solid transparent"
|
|
2432
|
+
},
|
|
2433
|
+
...e && {
|
|
2434
|
+
backgroundColor: o.palette.default.background
|
|
2435
|
+
}
|
|
2436
|
+
})
|
|
2437
|
+
);
|
|
2438
|
+
function qt({
|
|
2439
|
+
onClickFooter: t,
|
|
2440
|
+
labelIdButtonFooter: e,
|
|
2441
|
+
ariaLabelButtonFooter: o,
|
|
2442
|
+
disabledButtonFooter: r,
|
|
2443
|
+
withGutter: i = !0,
|
|
2444
|
+
showSnackbar: l,
|
|
2445
|
+
onCloseSnackbar: a,
|
|
2446
|
+
loading: c,
|
|
2447
|
+
disabled: d,
|
|
2448
|
+
...u
|
|
2449
|
+
}) {
|
|
2450
|
+
const p = R(), s = T(p);
|
|
2451
|
+
return t ? /* @__PURE__ */ x(
|
|
2452
|
+
dr,
|
|
2453
|
+
{
|
|
2454
|
+
withGutter: i,
|
|
2455
|
+
disabled: d,
|
|
2456
|
+
"data-name": "code-area-footer",
|
|
2457
|
+
"data-gutter": i,
|
|
2458
|
+
children: [
|
|
2459
|
+
/* @__PURE__ */ n(
|
|
2460
|
+
nt,
|
|
2461
|
+
{
|
|
2462
|
+
variant: "text",
|
|
2463
|
+
...u,
|
|
2464
|
+
loading: c,
|
|
2465
|
+
onClick: t,
|
|
2466
|
+
"aria-label": o || "save-form-button",
|
|
2467
|
+
disabled: d || r,
|
|
2468
|
+
children: s.formatMessage({
|
|
2469
|
+
id: e || "c4r.button.save"
|
|
2470
|
+
})
|
|
2471
|
+
}
|
|
2472
|
+
),
|
|
2473
|
+
/* @__PURE__ */ n(
|
|
2474
|
+
dt,
|
|
2475
|
+
{
|
|
2476
|
+
open: l,
|
|
2477
|
+
autoWidth: !0,
|
|
2478
|
+
closeable: !1,
|
|
2479
|
+
autoHideDuration: 4e3,
|
|
2480
|
+
onClose: a,
|
|
2481
|
+
children: s.formatMessage({
|
|
2482
|
+
id: "c4r.notifications.changesSaved"
|
|
2483
|
+
})
|
|
2484
|
+
}
|
|
2485
|
+
)
|
|
2486
|
+
]
|
|
2487
|
+
}
|
|
2488
|
+
) : null;
|
|
2489
|
+
}
|
|
2490
|
+
const Mt = m(D, { shouldForwardProp: (t) => t !== "size" })(({ size: t, theme: e }) => ({
|
|
2491
|
+
position: "absolute",
|
|
2492
|
+
top: 0,
|
|
2493
|
+
right: e.spacing(0.5),
|
|
2494
|
+
zIndex: 1,
|
|
2495
|
+
display: "flex",
|
|
2496
|
+
justifyContent: "flex-end",
|
|
2497
|
+
gap: e.spacing(1),
|
|
2498
|
+
padding: t === "small" ? e.spacing(0.5) : e.spacing(1, 2, 2),
|
|
2499
|
+
paddingRight: t === "small" ? 0 : e.spacing(1.5)
|
|
2500
|
+
}));
|
|
2501
|
+
function sr({
|
|
2502
|
+
disabled: t,
|
|
2503
|
+
copyValue: e,
|
|
2504
|
+
onClickExpand: o,
|
|
2505
|
+
size: r
|
|
2506
|
+
}) {
|
|
2507
|
+
const i = R(), l = T(i), a = !!o, c = e !== void 0, d = a && c, { copy: u } = Vt(), [p, s] = B(!1), [b, g] = B(null), f = !!b, y = (M) => {
|
|
2508
|
+
g(M.currentTarget);
|
|
2509
|
+
}, h = () => {
|
|
2510
|
+
g(null);
|
|
2511
|
+
}, w = (M) => {
|
|
2512
|
+
M.preventDefault(), e && u(e).then(() => {
|
|
2513
|
+
s(!0);
|
|
2514
|
+
}).catch(console.error);
|
|
2515
|
+
};
|
|
2516
|
+
return !a && !c ? null : d ? /* @__PURE__ */ x(H, { children: [
|
|
2517
|
+
/* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
|
|
2518
|
+
/* @__PURE__ */ n(
|
|
2519
|
+
q,
|
|
2520
|
+
{
|
|
2521
|
+
color: "default",
|
|
2522
|
+
size: r,
|
|
2523
|
+
icon: /* @__PURE__ */ n($e, {}),
|
|
2524
|
+
disabled: t,
|
|
2525
|
+
tooltip: l.formatMessage({ id: "c4r.button.showOptions" }),
|
|
2526
|
+
tooltipPlacement: "top",
|
|
2527
|
+
"aria-controls": f ? "basic-menu" : void 0,
|
|
2528
|
+
"aria-haspopup": "true",
|
|
2529
|
+
"aria-expanded": f ? "true" : void 0,
|
|
2530
|
+
onClick: y
|
|
2531
|
+
}
|
|
2532
|
+
),
|
|
2533
|
+
/* @__PURE__ */ x(
|
|
2534
|
+
co,
|
|
2535
|
+
{
|
|
2536
|
+
anchorEl: b,
|
|
2537
|
+
open: f,
|
|
2538
|
+
onClose: h,
|
|
2539
|
+
id: "menu",
|
|
2540
|
+
MenuListProps: { "aria-labelledby": "menu-button" },
|
|
2541
|
+
"aria-label": "Code area actions",
|
|
2542
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
2543
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
2544
|
+
children: [
|
|
2545
|
+
/* @__PURE__ */ x(Y, { onClick: w, disabled: t, id: "copy", children: [
|
|
2546
|
+
/* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(Lt, {}) }),
|
|
2547
|
+
/* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.copy" }) })
|
|
2548
|
+
] }),
|
|
2549
|
+
/* @__PURE__ */ x(Y, { onClick: o, disabled: t, id: "expand", children: [
|
|
2550
|
+
/* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(mt, {}) }),
|
|
2551
|
+
/* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.expand" }) })
|
|
2552
|
+
] })
|
|
2553
|
+
]
|
|
2554
|
+
}
|
|
2555
|
+
)
|
|
2556
|
+
] }),
|
|
2557
|
+
/* @__PURE__ */ n(
|
|
2558
|
+
dt,
|
|
2559
|
+
{
|
|
2560
|
+
open: p,
|
|
2561
|
+
autoWidth: !0,
|
|
2562
|
+
closeable: !1,
|
|
2563
|
+
autoHideDuration: 4e3,
|
|
2564
|
+
onClose: () => s(!1),
|
|
2565
|
+
children: l.formatMessage({
|
|
2566
|
+
id: "c4r.notifications.copiedToClipboard"
|
|
2567
|
+
})
|
|
2568
|
+
}
|
|
2569
|
+
)
|
|
2570
|
+
] }) : /* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
|
|
2571
|
+
c && /* @__PURE__ */ n(
|
|
2572
|
+
Ro,
|
|
2573
|
+
{
|
|
2574
|
+
disabled: t,
|
|
2575
|
+
value: e,
|
|
2576
|
+
button: !0,
|
|
2577
|
+
buttonProps: { size: r }
|
|
2578
|
+
}
|
|
2579
|
+
),
|
|
2580
|
+
a && /* @__PURE__ */ n(
|
|
2581
|
+
q,
|
|
2582
|
+
{
|
|
2583
|
+
color: "default",
|
|
2584
|
+
size: r,
|
|
2585
|
+
onClick: o,
|
|
2586
|
+
icon: /* @__PURE__ */ n(mt, {}),
|
|
2587
|
+
disabled: t,
|
|
2588
|
+
tooltip: l.formatMessage({ id: "c4r.button.expand" }),
|
|
2589
|
+
tooltipPlacement: "top"
|
|
2590
|
+
}
|
|
2591
|
+
)
|
|
2592
|
+
] });
|
|
2593
|
+
}
|
|
2594
|
+
const ur = m(D, {
|
|
2595
|
+
shouldForwardProp: (t) => !["size", "height"].includes(t)
|
|
2596
|
+
})(({ size: t, height: e, theme: o }) => ({
|
|
2597
|
+
position: "relative",
|
|
2598
|
+
flex: 1,
|
|
2599
|
+
display: "flex",
|
|
2600
|
+
cursor: "text",
|
|
2601
|
+
":focus-within &, .error &": {
|
|
2602
|
+
marginBottom: 0
|
|
2603
|
+
},
|
|
2604
|
+
"& .react-codemirror2": {
|
|
2605
|
+
width: "100%",
|
|
2606
|
+
height: "100% !important",
|
|
2607
|
+
position: "relative"
|
|
2608
|
+
},
|
|
2609
|
+
"& .CodeMirror": {
|
|
2610
|
+
position: "absolute",
|
|
2611
|
+
top: 0,
|
|
2612
|
+
bottom: 0,
|
|
2613
|
+
left: 0,
|
|
2614
|
+
right: 0,
|
|
2615
|
+
zIndex: 1,
|
|
2616
|
+
height: "100% !important",
|
|
2617
|
+
backgroundColor: o.palette.background.default
|
|
2618
|
+
},
|
|
2619
|
+
"& .CodeMirror-code": {
|
|
2620
|
+
"&> div:first-of-type .CodeMirror-line": {
|
|
2621
|
+
marginTop: o.spacing(-0.25)
|
|
2622
|
+
}
|
|
2623
|
+
},
|
|
2624
|
+
"& .CodeMirror-scroll": {
|
|
2625
|
+
paddingLeft: o.spacing(1),
|
|
2626
|
+
paddingRight: o.spacing(1),
|
|
2627
|
+
backgroundColor: "transparent"
|
|
2628
|
+
},
|
|
2629
|
+
"& .CodeMirror-lines": {
|
|
2630
|
+
padding: o.spacing(1, 0)
|
|
2631
|
+
},
|
|
2632
|
+
"& .CodeMirror pre.CodeMirror-line, & .CodeMirror pre.CodeMirror-line-like": {
|
|
2633
|
+
boxSizing: "border-box",
|
|
2634
|
+
paddingLeft: 0,
|
|
2635
|
+
paddingTop: o.spacing(0.25),
|
|
2636
|
+
lineHeight: 1.2
|
|
2637
|
+
},
|
|
2638
|
+
"& .CodeMirror-linenumbers": {
|
|
2639
|
+
width: `${o.spacing(4.5)} !important`
|
|
2640
|
+
},
|
|
2641
|
+
"& .CodeMirror-linenumber": {
|
|
2642
|
+
width: `${o.spacing(4.5)} !important`,
|
|
2643
|
+
height: o.spacing(2),
|
|
2644
|
+
marginBottom: `${o.spacing(-0.25)} !important`,
|
|
2645
|
+
paddingTop: o.spacing(0.25),
|
|
2646
|
+
paddingRight: o.spacing(1.25),
|
|
2647
|
+
boxSizing: "border-box !important",
|
|
2648
|
+
color: o.palette.text.secondary
|
|
2649
|
+
},
|
|
2650
|
+
// Active line addon
|
|
2651
|
+
"& .CodeMirror-activeline-background, & .CodeMirror-activeline-gutter": {
|
|
2652
|
+
backgroundColor: "transparent"
|
|
2653
|
+
},
|
|
2654
|
+
"& .CodeMirror-gutter-background": {
|
|
2655
|
+
width: `${o.spacing(6.25)} !important`
|
|
2656
|
+
// Hack needed to simulate active line background
|
|
2657
|
+
},
|
|
2658
|
+
"& .CodeMirror-sizer": {
|
|
2659
|
+
paddingTop: o.spacing(0.25),
|
|
2660
|
+
marginLeft: `${o.spacing(5.25)} !important`,
|
|
2661
|
+
borderRightWidth: `${o.spacing(4)} !important`
|
|
2662
|
+
// Hack needed to simulate active line background
|
|
2663
|
+
},
|
|
2664
|
+
"& .CodeMirror-matchingbracket": {
|
|
2665
|
+
color: `${bt[900]} !important`,
|
|
2666
|
+
backgroundColor: o.palette.black[4],
|
|
2667
|
+
boxShadow: `0 0 0 1px ${o.palette.text.hint}`
|
|
2668
|
+
},
|
|
2669
|
+
// Selected line
|
|
2670
|
+
"& .CodeMirror-selected, & .CodeMirror-focused .CodeMirror-selected, & .CodeMirror-line::selection, & .CodeMirror-line > span::selection, & .CodeMirror-line > span > span::selection": {
|
|
2671
|
+
background: `${Ot(tt[800], 0.2)} !important`
|
|
2672
|
+
},
|
|
2673
|
+
"& .CodeMirror-gutters": {
|
|
2674
|
+
borderRight: 0,
|
|
2675
|
+
color: o.palette.text.secondary,
|
|
2676
|
+
backgroundColor: o.palette.default.background
|
|
2677
|
+
},
|
|
2678
|
+
"& .CodeMirror-gutter-elt": {
|
|
2679
|
+
"& .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded": {
|
|
2680
|
+
marginLeft: o.spacing(-1),
|
|
2681
|
+
"&:after": {
|
|
2682
|
+
fontSize: o.typography.caption.fontSize
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
"& .CodeMirror-placeholder": {
|
|
2687
|
+
paddingTop: "0 !important",
|
|
2688
|
+
marginLeft: `${o.spacing(-0.5)} !important`,
|
|
2689
|
+
marginBottom: `${o.spacing(-0.25)} !important`,
|
|
2690
|
+
color: `${o.palette.text.hint} !important`
|
|
2691
|
+
},
|
|
2692
|
+
"& .MuiLinearProgress-root": {
|
|
2693
|
+
height: "2px",
|
|
2694
|
+
position: "absolute",
|
|
2695
|
+
top: 0,
|
|
2696
|
+
left: 0,
|
|
2697
|
+
right: 0,
|
|
2698
|
+
zIndex: 1
|
|
2699
|
+
},
|
|
2700
|
+
"& .pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like, & .cm-bracket": {
|
|
2701
|
+
color: o.palette.text.primary
|
|
2702
|
+
},
|
|
2703
|
+
"& .CodeMirror pre.CodeMirror-placeholder": {
|
|
2704
|
+
color: o.palette.text.hint
|
|
2705
|
+
},
|
|
2706
|
+
"& .CodeMirror-composing": {
|
|
2707
|
+
border: 0
|
|
2708
|
+
},
|
|
2709
|
+
// Theme: light
|
|
2710
|
+
"& .cm-keyword, & .cm-string, & .cm-string-2, & .cm-other": {
|
|
2711
|
+
color: Pe[500]
|
|
2712
|
+
},
|
|
2713
|
+
"& .cm-operator, & .cm-tag, & .cm-attribute": {
|
|
2714
|
+
color: ze[700]
|
|
2715
|
+
},
|
|
2716
|
+
"& .cm-number, & .cm-property, & .cm-builtin": {
|
|
2717
|
+
color: Ne[700]
|
|
2718
|
+
},
|
|
2719
|
+
"& .cm-comment": {
|
|
2720
|
+
color: o.palette.text.secondary
|
|
2721
|
+
},
|
|
2722
|
+
"& .cm-variable": {
|
|
2723
|
+
color: bt[900]
|
|
2724
|
+
},
|
|
2725
|
+
"& .cm-variable-2": {
|
|
2726
|
+
color: o.palette.text.primary
|
|
2727
|
+
},
|
|
2728
|
+
"& .cm-punctuation, & .cm-def, ": {
|
|
2729
|
+
color: tt[800]
|
|
2730
|
+
},
|
|
2731
|
+
"& .cm-variable-3, & .cm-type": {
|
|
2732
|
+
color: _e[800]
|
|
2733
|
+
},
|
|
2734
|
+
"& .CodeMirror-foldmarker": {
|
|
2735
|
+
textShadow: "none",
|
|
2736
|
+
color: o.palette.primary.main
|
|
2737
|
+
},
|
|
2738
|
+
"& .cm-error": {
|
|
2739
|
+
color: o.palette.error.main
|
|
2740
|
+
},
|
|
2741
|
+
"& .CodeMirror-selected": {
|
|
2742
|
+
background: tt[800]
|
|
2743
|
+
},
|
|
2744
|
+
"& .cm-header-1": {
|
|
2745
|
+
fontSize: o.typography.h2.fontSize
|
|
2746
|
+
},
|
|
2747
|
+
"& .cm-header-2": {
|
|
2748
|
+
fontSize: o.typography.h3.fontSize
|
|
2749
|
+
},
|
|
2750
|
+
"& .cm-header-3": {
|
|
2751
|
+
fontSize: o.typography.h4.fontSize
|
|
2752
|
+
},
|
|
2753
|
+
"& .cm-header-4": {
|
|
2754
|
+
fontSize: o.typography.h5.fontSize
|
|
2755
|
+
},
|
|
2756
|
+
"& .cm-header-5": {
|
|
2757
|
+
fontSize: o.typography.h6.fontSize
|
|
2758
|
+
},
|
|
2759
|
+
...t === "small" && {
|
|
2760
|
+
"& .CodeMirror": {
|
|
2761
|
+
height: e || "auto",
|
|
2762
|
+
minHeight: o.spacing(9),
|
|
2763
|
+
...o.typography.code3
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}));
|
|
2767
|
+
function pr(t) {
|
|
2768
|
+
const e = t.split(`
|
|
2769
|
+
`), o = [], r = [];
|
|
2770
|
+
for (e.forEach((i, l) => {
|
|
2771
|
+
const a = l + 1;
|
|
2772
|
+
if (i.trim() === "-- BEGIN CONTROL CODE")
|
|
2773
|
+
r.push(a);
|
|
2774
|
+
else if (i.trim() === "-- END CONTROL CODE" && r.length > 0) {
|
|
2775
|
+
const c = r.pop();
|
|
2776
|
+
o.push({
|
|
2777
|
+
from: c,
|
|
2778
|
+
to: a
|
|
2779
|
+
});
|
|
2780
|
+
}
|
|
2781
|
+
}); r.length > 0; ) {
|
|
2782
|
+
const i = r.pop();
|
|
2783
|
+
o.push({
|
|
2784
|
+
from: i,
|
|
2785
|
+
to: e.length
|
|
2786
|
+
// Set end to last line for unmatched BEGIN
|
|
2787
|
+
});
|
|
2788
|
+
}
|
|
2789
|
+
return o;
|
|
2790
|
+
}
|
|
2791
|
+
function gr({
|
|
2792
|
+
options: t,
|
|
2793
|
+
value: e,
|
|
2794
|
+
defaultValue: o,
|
|
2795
|
+
id: r,
|
|
2796
|
+
onEditorDidMount: i,
|
|
2797
|
+
onChange: l,
|
|
2798
|
+
onBlur: a,
|
|
2799
|
+
onFocus: c,
|
|
2800
|
+
placeholder: d,
|
|
2801
|
+
disabled: u,
|
|
2802
|
+
size: p = "small",
|
|
2803
|
+
height: s,
|
|
2804
|
+
"data-testid": b,
|
|
2805
|
+
"aria-label": g = "Code editor text area",
|
|
2806
|
+
"aria-labelledby": f,
|
|
2807
|
+
...y
|
|
2808
|
+
}) {
|
|
2809
|
+
var k;
|
|
2810
|
+
const h = Z(), w = {
|
|
2811
|
+
mode: "sql",
|
|
2812
|
+
theme: "light",
|
|
2813
|
+
lineNumbers: !0,
|
|
2814
|
+
lineWrapping: !0,
|
|
2815
|
+
extraKeys: { "Ctrl-Space": "autocomplete" },
|
|
2816
|
+
placeholder: d,
|
|
2817
|
+
disabled: u,
|
|
2818
|
+
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
|
|
2819
|
+
styleActiveLine: { nonEmpty: !0 },
|
|
2820
|
+
styleActiveSelected: !0,
|
|
2821
|
+
matchBrackets: !0,
|
|
2822
|
+
foldOptions: {
|
|
2823
|
+
minFoldSize: 1,
|
|
2824
|
+
scanUp: !1
|
|
2825
|
+
},
|
|
2826
|
+
...t
|
|
2827
|
+
}, [M, A] = B(null);
|
|
2828
|
+
z(() => () => {
|
|
2829
|
+
A(null);
|
|
2830
|
+
}, []);
|
|
2831
|
+
const C = ot(
|
|
2832
|
+
({ from: v, to: $ }) => {
|
|
2833
|
+
M.foldCode(
|
|
2834
|
+
0,
|
|
2835
|
+
{
|
|
2836
|
+
rangeFinder: () => {
|
|
2837
|
+
if ($)
|
|
2838
|
+
return {
|
|
2839
|
+
from: { line: v - 1, ch: 0 },
|
|
2840
|
+
to: { line: $ - 1, ch: 0 }
|
|
2841
|
+
};
|
|
2842
|
+
}
|
|
2843
|
+
},
|
|
2844
|
+
"fold"
|
|
2845
|
+
);
|
|
2846
|
+
},
|
|
2847
|
+
[M]
|
|
2848
|
+
);
|
|
2849
|
+
return z(() => {
|
|
2850
|
+
if (!e || !M) return;
|
|
2851
|
+
const v = pr(e);
|
|
2852
|
+
if (v.length)
|
|
2853
|
+
for (const $ of v)
|
|
2854
|
+
C($);
|
|
2855
|
+
}, [e, C, M]), /* @__PURE__ */ x(
|
|
2856
|
+
ur,
|
|
2857
|
+
{
|
|
2858
|
+
size: p,
|
|
2859
|
+
height: s,
|
|
2860
|
+
id: r,
|
|
2861
|
+
"data-size": p,
|
|
2862
|
+
"data-height": s,
|
|
2863
|
+
"data-mode": typeof (t == null ? void 0 : t.mode) == "object" && ((k = t.mode) != null && k.name) ? t.mode.name : t == null ? void 0 : t.mode,
|
|
2864
|
+
"data-fold-gutter": t == null ? void 0 : t.foldGutter,
|
|
2865
|
+
"data-testid": b,
|
|
2866
|
+
"aria-label": f ? void 0 : g,
|
|
2867
|
+
"aria-labelledby": f,
|
|
2868
|
+
"data-name": "code-area-input",
|
|
2869
|
+
children: [
|
|
2870
|
+
e !== void 0 && /* @__PURE__ */ n(
|
|
2871
|
+
Ee,
|
|
2872
|
+
{
|
|
2873
|
+
...y,
|
|
2874
|
+
value: e,
|
|
2875
|
+
editorDidMount: (v) => {
|
|
2876
|
+
h.current = v, A(v), i == null || i(v);
|
|
2877
|
+
},
|
|
2878
|
+
options: w,
|
|
2879
|
+
onBeforeChange: (v, $, I) => {
|
|
2880
|
+
l == null || l(I);
|
|
2881
|
+
},
|
|
2882
|
+
onBlur: (v) => {
|
|
2883
|
+
a == null || a(v.getValue());
|
|
2884
|
+
},
|
|
2885
|
+
onFocus: c
|
|
2886
|
+
}
|
|
2887
|
+
),
|
|
2888
|
+
o !== void 0 && /* @__PURE__ */ n(
|
|
2889
|
+
He,
|
|
2890
|
+
{
|
|
2891
|
+
...y,
|
|
2892
|
+
value: o,
|
|
2893
|
+
options: w,
|
|
2894
|
+
onBlur: (v) => {
|
|
2895
|
+
a == null || a(v.getValue());
|
|
2896
|
+
},
|
|
2897
|
+
onFocus: c
|
|
2898
|
+
}
|
|
2899
|
+
)
|
|
2900
|
+
]
|
|
2901
|
+
}
|
|
2902
|
+
);
|
|
2903
|
+
}
|
|
2904
|
+
const fr = m(Bt)(() => ({
|
|
2905
|
+
display: "flex",
|
|
2906
|
+
flexDirection: "column",
|
|
2907
|
+
flex: 1
|
|
2908
|
+
})), mr = m(D, {
|
|
2909
|
+
shouldForwardProp: (t) => ![
|
|
2910
|
+
"variant",
|
|
2911
|
+
"error",
|
|
2912
|
+
"disabled",
|
|
2913
|
+
"readOnly",
|
|
2914
|
+
"lineNumbers",
|
|
2915
|
+
"fullScreen"
|
|
2916
|
+
].includes(t)
|
|
2917
|
+
})(
|
|
2918
|
+
({ variant: t, error: e, disabled: o, readOnly: r, lineNumbers: i, fullScreen: l, theme: a }) => ({
|
|
2919
|
+
position: "relative",
|
|
2920
|
+
overflow: "auto",
|
|
2921
|
+
display: "flex",
|
|
2922
|
+
flexDirection: "column",
|
|
2923
|
+
flex: 1,
|
|
2924
|
+
width: "100%",
|
|
2925
|
+
minHeight: 0,
|
|
2926
|
+
background: a.palette.background.paper,
|
|
2927
|
+
// Active line addon
|
|
2928
|
+
".CodeMirror-focused .CodeMirror-activeline": {
|
|
2929
|
+
"& .CodeMirror-activeline-background, & .CodeMirror-activeline-gutter": {
|
|
2930
|
+
background: a.palette.primary.background
|
|
2931
|
+
}
|
|
2932
|
+
},
|
|
2933
|
+
...l && {
|
|
2934
|
+
maxWidth: "100%",
|
|
2935
|
+
maxHeight: "100vh",
|
|
2936
|
+
height: "100vh"
|
|
2937
|
+
},
|
|
2938
|
+
...(t === "filled" || t === "outlined") && {
|
|
2939
|
+
borderRadius: a.spacing(0.5),
|
|
2940
|
+
transition: a.transitions.create("background-color", {
|
|
2941
|
+
easing: a.transitions.easing.easeInOut,
|
|
2942
|
+
duration: a.transitions.duration.shortest
|
|
2943
|
+
}),
|
|
2944
|
+
"&:after": {
|
|
2945
|
+
content: '""',
|
|
2946
|
+
position: "absolute",
|
|
2947
|
+
top: 0,
|
|
2948
|
+
left: 0,
|
|
2949
|
+
right: 0,
|
|
2950
|
+
bottom: 0,
|
|
2951
|
+
pointerEvents: "none",
|
|
2952
|
+
border: `1px solid ${a.palette.default.outlinedBorder}`,
|
|
2953
|
+
borderRadius: a.spacing(0.5),
|
|
2954
|
+
transition: a.transitions.create("border-color", {
|
|
2955
|
+
easing: a.transitions.easing.easeInOut,
|
|
2956
|
+
duration: a.transitions.duration.shortest
|
|
2957
|
+
})
|
|
2958
|
+
},
|
|
2959
|
+
"&:hover:after": {
|
|
2960
|
+
borderColor: a.palette.common.black
|
|
2961
|
+
},
|
|
2962
|
+
"&:focus-within": {
|
|
2963
|
+
overflow: "hidden",
|
|
2964
|
+
"&:after": {
|
|
2965
|
+
borderWidth: "2px",
|
|
2966
|
+
borderColor: a.palette.primary.main
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2969
|
+
...e && {
|
|
2970
|
+
"&.MuiBox-root:after": {
|
|
2971
|
+
borderWidth: "2px",
|
|
2972
|
+
borderColor: a.palette.error.main
|
|
2973
|
+
}
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
...t === "filled" && {
|
|
2977
|
+
backgroundColor: a.palette.background.paper,
|
|
2978
|
+
"&.codeArea-filled:after": {
|
|
2979
|
+
borderColor: "transparent"
|
|
2980
|
+
},
|
|
2981
|
+
"&.codeArea-filled:hover:after": {
|
|
2982
|
+
borderColor: a.palette.common.black
|
|
2983
|
+
},
|
|
2984
|
+
"&.codeArea-filled:focus-within:after": {
|
|
2985
|
+
borderWidth: "2px",
|
|
2986
|
+
borderColor: a.palette.primary.main
|
|
2987
|
+
},
|
|
2988
|
+
"& .CodeMirror": {
|
|
2989
|
+
backgroundColor: a.palette.default.background,
|
|
2990
|
+
"&:focus-within": {
|
|
2991
|
+
backgroundColor: a.palette.background.paper
|
|
2992
|
+
}
|
|
2993
|
+
},
|
|
2994
|
+
...e && {
|
|
2995
|
+
borderColor: a.palette.error.main,
|
|
2996
|
+
"& .CodeMirror": {
|
|
2997
|
+
backgroundColor: a.palette.default.background
|
|
2998
|
+
},
|
|
2999
|
+
"&:hover, &:focus-within, &.codeArea-filled:after, &.codeArea-filled:hover:after, &.codeArea-filled:focus-within:after": {
|
|
3000
|
+
borderColor: a.palette.error.main
|
|
3001
|
+
},
|
|
3002
|
+
"&:focus-within": {
|
|
3003
|
+
"& .CodeMirror": {
|
|
3004
|
+
backgroundColor: a.palette.background.paper
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
},
|
|
3009
|
+
...r && {
|
|
3010
|
+
"& .CodeMirror": {
|
|
3011
|
+
backgroundColor: a.palette.default.background,
|
|
3012
|
+
".CodeMirror-cursors": {
|
|
3013
|
+
visibility: "hidden !important"
|
|
3014
|
+
}
|
|
3015
|
+
},
|
|
3016
|
+
...t === "filled" && {
|
|
3017
|
+
backgroundColor: a.palette.background.paper
|
|
3018
|
+
}
|
|
3019
|
+
},
|
|
3020
|
+
...o && {
|
|
3021
|
+
pointerEvents: "none",
|
|
3022
|
+
"& .CodeMirror": {
|
|
3023
|
+
color: a.palette.text.disabled,
|
|
3024
|
+
backgroundColor: a.palette.default.background,
|
|
3025
|
+
"& span, .CodeMirror-linenumber, .CodeMirror-guttermarker-subtle": {
|
|
3026
|
+
color: a.palette.text.disabled
|
|
3027
|
+
}
|
|
3028
|
+
},
|
|
3029
|
+
...t === "filled" && {
|
|
3030
|
+
backgroundColor: a.palette.background.paper
|
|
3031
|
+
}
|
|
3032
|
+
},
|
|
3033
|
+
...!i && {
|
|
3034
|
+
"& .CodeMirror-scroll .CodeMirror-sizer": {
|
|
3035
|
+
marginLeft: `${a.spacing(1)} !important`
|
|
3036
|
+
},
|
|
3037
|
+
"& .CodeMirror-gutter-background": {
|
|
3038
|
+
width: `${a.spacing(2)} !important`
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
})
|
|
3042
|
+
), br = m(D, {
|
|
3043
|
+
shouldForwardProp: (t) => t !== "hasActions"
|
|
3044
|
+
})(({ theme: t, hasActions: e }) => ({
|
|
3045
|
+
flex: "1 1 auto",
|
|
3046
|
+
overflowY: "auto",
|
|
3047
|
+
display: "flex",
|
|
3048
|
+
flexDirection: "column",
|
|
3049
|
+
...e && {
|
|
3050
|
+
".CodeMirror-line": {
|
|
3051
|
+
paddingRight: `${t.spacing(4)} !important`
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
})), hr = m(K)(({ theme: t }) => ({
|
|
3055
|
+
width: N,
|
|
3056
|
+
height: N,
|
|
3057
|
+
fill: t.palette.text.secondary
|
|
3058
|
+
}));
|
|
3059
|
+
function xr({
|
|
3060
|
+
value: t,
|
|
3061
|
+
defaultValue: e,
|
|
3062
|
+
validate: o,
|
|
3063
|
+
onChange: r,
|
|
3064
|
+
onBlur: i,
|
|
3065
|
+
onFocus: l,
|
|
3066
|
+
label: a,
|
|
3067
|
+
labelHelpTooltip: c,
|
|
3068
|
+
placeholder: d,
|
|
3069
|
+
type: u,
|
|
3070
|
+
disabled: p,
|
|
3071
|
+
copyValue: s,
|
|
3072
|
+
helperText: b,
|
|
3073
|
+
error: g,
|
|
3074
|
+
size: f = "small",
|
|
3075
|
+
variant: y = "outlined",
|
|
3076
|
+
onClickExpand: h,
|
|
3077
|
+
onClickFooter: w,
|
|
3078
|
+
disabledButtonFooter: M,
|
|
3079
|
+
labelIdButtonFooter: A,
|
|
3080
|
+
ariaLabelButtonFooter: C,
|
|
3081
|
+
options: k,
|
|
3082
|
+
id: v = "code-area-field",
|
|
3083
|
+
saveLoading: $,
|
|
3084
|
+
showSaveSnackbar: I,
|
|
3085
|
+
onCloseSaveSnackbar: E,
|
|
3086
|
+
fullScreen: S,
|
|
3087
|
+
isExpanded: L,
|
|
3088
|
+
...V
|
|
3089
|
+
}) {
|
|
3090
|
+
const [Xt, pt] = B(!1), gt = (k == null ? void 0 : k.readOnly) ?? !1, Qt = (k == null ? void 0 : k.lineNumbers) ?? !0;
|
|
3091
|
+
return /* @__PURE__ */ x(
|
|
3092
|
+
fr,
|
|
3093
|
+
{
|
|
3094
|
+
size: f,
|
|
3095
|
+
error: g,
|
|
3096
|
+
disabled: p,
|
|
3097
|
+
"aria-disabled": p,
|
|
3098
|
+
"data-size": f,
|
|
3099
|
+
"data-full-screen": S,
|
|
3100
|
+
"data-variant": y,
|
|
3101
|
+
"data-name": "code-area-field",
|
|
3102
|
+
children: [
|
|
3103
|
+
a && /* @__PURE__ */ n(
|
|
3104
|
+
Tt,
|
|
3105
|
+
{
|
|
3106
|
+
htmlFor: v,
|
|
3107
|
+
disabled: p,
|
|
3108
|
+
error: g,
|
|
3109
|
+
focused: Xt,
|
|
3110
|
+
shrink: !0,
|
|
3111
|
+
id: `${v}-label`,
|
|
3112
|
+
children: /* @__PURE__ */ n(
|
|
3113
|
+
X,
|
|
3114
|
+
{
|
|
3115
|
+
label: a,
|
|
3116
|
+
type: u,
|
|
3117
|
+
icon: c ? /* @__PURE__ */ n(P, { title: c, children: /* @__PURE__ */ n(
|
|
3118
|
+
hr,
|
|
3119
|
+
{
|
|
3120
|
+
"aria-label": typeof c == "string" ? c : void 0
|
|
3121
|
+
}
|
|
3122
|
+
) }) : void 0
|
|
3123
|
+
}
|
|
3124
|
+
)
|
|
3125
|
+
}
|
|
3126
|
+
),
|
|
3127
|
+
/* @__PURE__ */ x(
|
|
3128
|
+
mr,
|
|
3129
|
+
{
|
|
3130
|
+
variant: y,
|
|
3131
|
+
error: !!g,
|
|
3132
|
+
disabled: p,
|
|
3133
|
+
readOnly: gt,
|
|
3134
|
+
lineNumbers: Qt,
|
|
3135
|
+
className: y === "filled" ? "codeArea-filled" : "",
|
|
3136
|
+
fullScreen: S,
|
|
3137
|
+
children: [
|
|
3138
|
+
/* @__PURE__ */ n(
|
|
3139
|
+
sr,
|
|
3140
|
+
{
|
|
3141
|
+
onClickExpand: h,
|
|
3142
|
+
copyValue: s,
|
|
3143
|
+
disabled: p,
|
|
3144
|
+
size: L ? "medium" : "small"
|
|
3145
|
+
}
|
|
3146
|
+
),
|
|
3147
|
+
/* @__PURE__ */ n(br, { hasActions: !!s || !!h, children: /* @__PURE__ */ n(
|
|
3148
|
+
gr,
|
|
3149
|
+
{
|
|
3150
|
+
...V,
|
|
3151
|
+
id: v,
|
|
3152
|
+
disabled: p,
|
|
3153
|
+
value: t,
|
|
3154
|
+
defaultValue: e,
|
|
3155
|
+
placeholder: d,
|
|
3156
|
+
onFocus: () => {
|
|
3157
|
+
pt(!0), l == null || l();
|
|
3158
|
+
},
|
|
3159
|
+
onBlur: (Q) => {
|
|
3160
|
+
i && i(Q), r && r(Q), o && o(Q), pt(!1);
|
|
3161
|
+
},
|
|
3162
|
+
onChange: r,
|
|
3163
|
+
size: f,
|
|
3164
|
+
options: {
|
|
3165
|
+
...gt && {
|
|
3166
|
+
styleActiveLine: !1,
|
|
3167
|
+
matchBrackets: !1
|
|
3168
|
+
},
|
|
3169
|
+
...k
|
|
3170
|
+
},
|
|
3171
|
+
"aria-labelledby": a ? `${v}-label` : void 0
|
|
3172
|
+
}
|
|
3173
|
+
) }),
|
|
3174
|
+
/* @__PURE__ */ n(
|
|
3175
|
+
qt,
|
|
3176
|
+
{
|
|
3177
|
+
labelIdButtonFooter: A,
|
|
3178
|
+
ariaLabelButtonFooter: C,
|
|
3179
|
+
onClickFooter: w,
|
|
3180
|
+
disabled: p,
|
|
3181
|
+
disabledButtonFooter: M,
|
|
3182
|
+
size: "small",
|
|
3183
|
+
loading: !!$,
|
|
3184
|
+
showSnackbar: I,
|
|
3185
|
+
onCloseSnackbar: E
|
|
3186
|
+
}
|
|
3187
|
+
)
|
|
3188
|
+
]
|
|
3189
|
+
}
|
|
3190
|
+
),
|
|
3191
|
+
b && /* @__PURE__ */ n(J, { children: b })
|
|
3192
|
+
]
|
|
3193
|
+
}
|
|
3194
|
+
);
|
|
3195
|
+
}
|
|
3196
|
+
const yr = m(D)(({ theme: t }) => ({
|
|
3197
|
+
position: "relative",
|
|
3198
|
+
marginBottom: "1px",
|
|
3199
|
+
padding: t.spacing(1.5, 2, 1.5, 5.5),
|
|
3200
|
+
"&:before": {
|
|
3201
|
+
content: '""',
|
|
3202
|
+
position: "absolute",
|
|
3203
|
+
top: 0,
|
|
3204
|
+
left: 0,
|
|
3205
|
+
bottom: 0,
|
|
3206
|
+
zIndex: 1,
|
|
3207
|
+
width: t.spacing(5),
|
|
3208
|
+
background: t.palette.background.default
|
|
3209
|
+
},
|
|
3210
|
+
"&:after": {
|
|
3211
|
+
content: '""',
|
|
3212
|
+
position: "absolute",
|
|
3213
|
+
top: 0,
|
|
3214
|
+
right: 0,
|
|
3215
|
+
left: 0,
|
|
3216
|
+
bottom: 0,
|
|
3217
|
+
zIndex: 2,
|
|
3218
|
+
background: "linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 40%)"
|
|
3219
|
+
},
|
|
3220
|
+
".MuiFormHelperText-root": {
|
|
3221
|
+
marginTop: 0
|
|
3222
|
+
}
|
|
3223
|
+
})), Cr = m(D)(({ theme: t }) => ({
|
|
3224
|
+
position: "relative",
|
|
3225
|
+
zIndex: 3,
|
|
3226
|
+
display: "flex",
|
|
3227
|
+
alignItems: "center",
|
|
3228
|
+
gap: t.spacing(1)
|
|
3229
|
+
}));
|
|
3230
|
+
function Mr({
|
|
3231
|
+
children: t,
|
|
3232
|
+
hasDivider: e
|
|
3233
|
+
}) {
|
|
3234
|
+
const o = j();
|
|
3235
|
+
return t ? /* @__PURE__ */ x(H, { children: [
|
|
3236
|
+
/* @__PURE__ */ n(yr, { children: /* @__PURE__ */ x(Cr, { children: [
|
|
3237
|
+
/* @__PURE__ */ n(Be, { htmlColor: o.palette.error.main }),
|
|
3238
|
+
/* @__PURE__ */ n(J, { error: !0, children: t })
|
|
3239
|
+
] }) }),
|
|
3240
|
+
e && /* @__PURE__ */ n(_, {})
|
|
3241
|
+
] }) : null;
|
|
3242
|
+
}
|
|
3243
|
+
const kt = {
|
|
3244
|
+
small: "480px",
|
|
3245
|
+
medium: "640px",
|
|
3246
|
+
large: "640px",
|
|
3247
|
+
xlarge: "720px"
|
|
3248
|
+
}, vt = {
|
|
3249
|
+
small: {
|
|
3250
|
+
width: "432px",
|
|
3251
|
+
maxWidth: "432px"
|
|
3252
|
+
},
|
|
3253
|
+
medium: {
|
|
3254
|
+
width: "592px",
|
|
3255
|
+
maxWidth: "592px"
|
|
3256
|
+
},
|
|
3257
|
+
large: {
|
|
3258
|
+
width: "768px",
|
|
3259
|
+
maxWidth: "768px",
|
|
3260
|
+
minHeight: "576px"
|
|
3261
|
+
},
|
|
3262
|
+
xlarge: {
|
|
3263
|
+
width: "calc(100vw - 80px)",
|
|
3264
|
+
height: "calc(100vh - 80px)",
|
|
3265
|
+
maxWidth: "960px"
|
|
3266
|
+
}
|
|
3267
|
+
}, wt = m(he, {
|
|
3268
|
+
shouldForwardProp: (t) => !["fullScreen", "height", "width", "hasForm"].includes(t)
|
|
3269
|
+
})(
|
|
3270
|
+
({
|
|
3271
|
+
fullScreen: t,
|
|
3272
|
+
height: e,
|
|
3273
|
+
width: o,
|
|
3274
|
+
hasForm: r,
|
|
3275
|
+
size: i = "small",
|
|
3276
|
+
theme: l
|
|
3277
|
+
}) => ({
|
|
3278
|
+
"&.MuiPaper-root": {
|
|
3279
|
+
position: "relative",
|
|
3280
|
+
display: "flex",
|
|
3281
|
+
flexDirection: "column",
|
|
3282
|
+
margin: l.spacing(5),
|
|
3283
|
+
borderRadius: l.spacing(1),
|
|
3284
|
+
...vt[i],
|
|
3285
|
+
maxHeight: kt[i],
|
|
3286
|
+
[`@media (max-height:${kt[i]})`]: {
|
|
3287
|
+
maxHeight: "calc(100vh - 80px)",
|
|
3288
|
+
...i === "large" && {
|
|
3289
|
+
minHeight: e !== "auto" ? "calc(100vh - 80px)" : "auto"
|
|
3290
|
+
}
|
|
3291
|
+
},
|
|
3292
|
+
...t && {
|
|
3293
|
+
width: "100vw",
|
|
3294
|
+
maxWidth: `calc(100vw - ${l.spacing(10)})`,
|
|
3295
|
+
height: "100vh",
|
|
3296
|
+
maxHeight: `calc(100vh - ${l.spacing(10)})`,
|
|
3297
|
+
margin: l.spacing(5),
|
|
3298
|
+
borderRadius: l.spacing(1)
|
|
3299
|
+
},
|
|
3300
|
+
...e && {
|
|
3301
|
+
height: e,
|
|
3302
|
+
minHeight: e
|
|
3303
|
+
},
|
|
3304
|
+
...o && {
|
|
3305
|
+
width: o
|
|
3306
|
+
},
|
|
3307
|
+
[l.breakpoints.down("sm")]: {
|
|
3308
|
+
position: "absolute",
|
|
3309
|
+
width: "100%",
|
|
2303
3310
|
maxWidth: "100%",
|
|
2304
3311
|
height: "100vh",
|
|
2305
3312
|
maxHeight: "100vh",
|
|
@@ -2311,21 +3318,21 @@ const ct = {
|
|
|
2311
3318
|
borderRadius: 0,
|
|
2312
3319
|
...e && {
|
|
2313
3320
|
top: "auto",
|
|
2314
|
-
borderRadius:
|
|
3321
|
+
borderRadius: l.spacing(1, 1, 0, 0),
|
|
2315
3322
|
height: e,
|
|
2316
3323
|
minHeight: e
|
|
2317
3324
|
}
|
|
2318
3325
|
},
|
|
2319
3326
|
// Special case for Dialogs wrapped in Form
|
|
2320
|
-
...
|
|
2321
|
-
maxHeight: `calc(100vh - ${
|
|
3327
|
+
...r && {
|
|
3328
|
+
maxHeight: `calc(100vh - ${l.spacing(10)})`,
|
|
2322
3329
|
form: {
|
|
2323
3330
|
flex: 1,
|
|
2324
3331
|
display: "flex",
|
|
2325
3332
|
flexDirection: "column",
|
|
2326
3333
|
justifyContent: "space-between",
|
|
2327
3334
|
overflow: "hidden",
|
|
2328
|
-
...
|
|
3335
|
+
...vt[i],
|
|
2329
3336
|
maxWidth: "100%",
|
|
2330
3337
|
...t && {
|
|
2331
3338
|
width: "100%",
|
|
@@ -2337,17 +3344,17 @@ const ct = {
|
|
|
2337
3344
|
height: e,
|
|
2338
3345
|
minHeight: e
|
|
2339
3346
|
},
|
|
2340
|
-
...
|
|
2341
|
-
width:
|
|
3347
|
+
...o && {
|
|
3348
|
+
width: o
|
|
2342
3349
|
},
|
|
2343
|
-
[
|
|
3350
|
+
[l.breakpoints.down("sm")]: {
|
|
2344
3351
|
width: "100%",
|
|
2345
3352
|
maxWidth: "100%",
|
|
2346
3353
|
height: "100vh",
|
|
2347
3354
|
maxHeight: "100vh",
|
|
2348
3355
|
...e && {
|
|
2349
3356
|
top: "auto",
|
|
2350
|
-
borderRadius:
|
|
3357
|
+
borderRadius: l.spacing(1, 1, 0, 0),
|
|
2351
3358
|
height: e,
|
|
2352
3359
|
minHeight: e
|
|
2353
3360
|
}
|
|
@@ -2357,125 +3364,130 @@ const ct = {
|
|
|
2357
3364
|
}
|
|
2358
3365
|
})
|
|
2359
3366
|
);
|
|
2360
|
-
function
|
|
3367
|
+
function kr({
|
|
2361
3368
|
nonModal: t,
|
|
2362
3369
|
children: e,
|
|
2363
|
-
size:
|
|
2364
|
-
PaperProps:
|
|
2365
|
-
fullScreen:
|
|
2366
|
-
height:
|
|
2367
|
-
width:
|
|
3370
|
+
size: o = "small",
|
|
3371
|
+
PaperProps: r,
|
|
3372
|
+
fullScreen: i,
|
|
3373
|
+
height: l,
|
|
3374
|
+
width: a,
|
|
2368
3375
|
hasForm: c,
|
|
2369
|
-
"aria-label":
|
|
2370
|
-
"data-testid":
|
|
2371
|
-
...
|
|
2372
|
-
}) {
|
|
2373
|
-
return t ? /* @__PURE__ */
|
|
2374
|
-
|
|
3376
|
+
"aria-label": d,
|
|
3377
|
+
"data-testid": u,
|
|
3378
|
+
...p
|
|
3379
|
+
}, s) {
|
|
3380
|
+
return t ? /* @__PURE__ */ n(
|
|
3381
|
+
wt,
|
|
2375
3382
|
{
|
|
2376
|
-
size:
|
|
2377
|
-
fullScreen:
|
|
2378
|
-
height:
|
|
2379
|
-
width:
|
|
3383
|
+
size: o,
|
|
3384
|
+
fullScreen: i,
|
|
3385
|
+
height: l,
|
|
3386
|
+
width: a,
|
|
2380
3387
|
hasForm: c,
|
|
2381
|
-
"aria-label":
|
|
2382
|
-
"data-testid":
|
|
2383
|
-
|
|
3388
|
+
"aria-label": d,
|
|
3389
|
+
"data-testid": u,
|
|
3390
|
+
"data-name": "dialog",
|
|
3391
|
+
...p,
|
|
3392
|
+
ref: s,
|
|
2384
3393
|
children: e
|
|
2385
3394
|
}
|
|
2386
|
-
) : /* @__PURE__ */
|
|
2387
|
-
|
|
3395
|
+
) : /* @__PURE__ */ n(
|
|
3396
|
+
xe,
|
|
2388
3397
|
{
|
|
2389
|
-
PaperComponent:
|
|
3398
|
+
PaperComponent: wt,
|
|
2390
3399
|
PaperProps: {
|
|
2391
|
-
...
|
|
2392
|
-
size:
|
|
2393
|
-
fullScreen:
|
|
2394
|
-
height:
|
|
2395
|
-
width:
|
|
3400
|
+
...r,
|
|
3401
|
+
size: o,
|
|
3402
|
+
fullScreen: i,
|
|
3403
|
+
height: l,
|
|
3404
|
+
width: a,
|
|
2396
3405
|
hasForm: c
|
|
2397
3406
|
},
|
|
2398
|
-
fullScreen:
|
|
3407
|
+
fullScreen: i,
|
|
2399
3408
|
role: "section",
|
|
2400
|
-
"aria-label":
|
|
2401
|
-
"data-testid":
|
|
2402
|
-
"data-size":
|
|
2403
|
-
"data-width":
|
|
2404
|
-
"data-height":
|
|
2405
|
-
|
|
3409
|
+
"aria-label": d,
|
|
3410
|
+
"data-testid": u,
|
|
3411
|
+
"data-size": o,
|
|
3412
|
+
"data-width": a,
|
|
3413
|
+
"data-height": l,
|
|
3414
|
+
"data-name": "dialog",
|
|
3415
|
+
...p,
|
|
3416
|
+
ref: s,
|
|
2406
3417
|
children: e
|
|
2407
3418
|
}
|
|
2408
3419
|
);
|
|
2409
3420
|
}
|
|
2410
|
-
const
|
|
3421
|
+
const vr = O(kr), wr = m(ye)(() => ({
|
|
2411
3422
|
padding: 0,
|
|
2412
3423
|
zIndex: 10
|
|
2413
|
-
})),
|
|
3424
|
+
})), Dr = m(D)(({ theme: t }) => ({
|
|
2414
3425
|
display: "flex",
|
|
2415
3426
|
alignItems: "center",
|
|
2416
3427
|
justifyContent: "space-between",
|
|
2417
3428
|
padding: t.spacing(2),
|
|
2418
3429
|
minHeight: t.spacing(8)
|
|
2419
|
-
})),
|
|
3430
|
+
})), Dt = m(D)(({ theme: t }) => ({
|
|
2420
3431
|
display: "flex",
|
|
2421
3432
|
alignItems: "center",
|
|
2422
3433
|
gap: t.spacing(1),
|
|
2423
3434
|
overflow: "hidden"
|
|
2424
|
-
})),
|
|
3435
|
+
})), Ar = m(Wt)(({ theme: t }) => ({
|
|
2425
3436
|
color: t.palette.text.secondary
|
|
2426
|
-
})),
|
|
3437
|
+
})), Sr = m(_)(() => ({
|
|
2427
3438
|
"+ .MuiDialogContent-root": {
|
|
2428
3439
|
borderTop: "none !important"
|
|
2429
3440
|
}
|
|
2430
3441
|
}));
|
|
2431
|
-
function
|
|
3442
|
+
function Ir({
|
|
2432
3443
|
title: t,
|
|
2433
3444
|
chipLabel: e,
|
|
2434
|
-
chipProps:
|
|
2435
|
-
children:
|
|
2436
|
-
onClose:
|
|
2437
|
-
secondaryActions:
|
|
2438
|
-
"aria-label":
|
|
3445
|
+
chipProps: o,
|
|
3446
|
+
children: r,
|
|
3447
|
+
onClose: i,
|
|
3448
|
+
secondaryActions: l,
|
|
3449
|
+
"aria-label": a,
|
|
2439
3450
|
closeIcon: c,
|
|
2440
|
-
...
|
|
3451
|
+
...d
|
|
2441
3452
|
}) {
|
|
2442
|
-
const
|
|
2443
|
-
return /* @__PURE__ */ x(
|
|
2444
|
-
/* @__PURE__ */ x(
|
|
2445
|
-
/* @__PURE__ */ x(
|
|
2446
|
-
/* @__PURE__ */ x(
|
|
2447
|
-
/* @__PURE__ */
|
|
2448
|
-
|
|
3453
|
+
const u = R(), p = T(u);
|
|
3454
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
3455
|
+
/* @__PURE__ */ x(wr, { component: "div", "data-name": "dialog-header", ...d, children: [
|
|
3456
|
+
/* @__PURE__ */ x(Dr, { children: [
|
|
3457
|
+
/* @__PURE__ */ x(Dt, { flex: 1, maxWidth: 0.8, children: [
|
|
3458
|
+
/* @__PURE__ */ n(
|
|
3459
|
+
F,
|
|
2449
3460
|
{
|
|
2450
3461
|
component: "h2",
|
|
2451
3462
|
variant: "inherit",
|
|
2452
3463
|
noWrap: !0,
|
|
2453
|
-
"aria-label":
|
|
3464
|
+
"aria-label": a,
|
|
3465
|
+
role: "heading",
|
|
2454
3466
|
children: t
|
|
2455
3467
|
}
|
|
2456
3468
|
),
|
|
2457
|
-
e && /* @__PURE__ */
|
|
3469
|
+
e && /* @__PURE__ */ n(Ce, { color: "default", label: e, ...o })
|
|
2458
3470
|
] }),
|
|
2459
|
-
/* @__PURE__ */ x(
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
3471
|
+
/* @__PURE__ */ x(Dt, { children: [
|
|
3472
|
+
l,
|
|
3473
|
+
i && /* @__PURE__ */ n(
|
|
3474
|
+
P,
|
|
2463
3475
|
{
|
|
2464
|
-
title:
|
|
3476
|
+
title: p.formatMessage({ id: "c4r.button.close" }),
|
|
2465
3477
|
placement: "left",
|
|
2466
|
-
children: /* @__PURE__ */
|
|
3478
|
+
children: /* @__PURE__ */ n(W, { onClick: i, children: c || /* @__PURE__ */ n(Ar, { "data-testid": "CloseIcon" }) })
|
|
2467
3479
|
}
|
|
2468
3480
|
)
|
|
2469
3481
|
] })
|
|
2470
3482
|
] }),
|
|
2471
|
-
|
|
3483
|
+
r
|
|
2472
3484
|
] }),
|
|
2473
|
-
|
|
3485
|
+
r && /* @__PURE__ */ n(Sr, {})
|
|
2474
3486
|
] });
|
|
2475
3487
|
}
|
|
2476
|
-
const
|
|
3488
|
+
const $r = m(Me, {
|
|
2477
3489
|
shouldForwardProp: (t) => !["scrollableContent", "withGutter", "withBottomGutter"].includes(t)
|
|
2478
|
-
})(({ theme: t, scrollableContent: e, withGutter:
|
|
3490
|
+
})(({ theme: t, scrollableContent: e, withGutter: o, withBottomGutter: r }) => ({
|
|
2479
3491
|
display: "flex",
|
|
2480
3492
|
flexDirection: "column",
|
|
2481
3493
|
gap: t.spacing(3),
|
|
@@ -2491,75 +3503,76 @@ const Wn = p(re, {
|
|
|
2491
3503
|
display: "none"
|
|
2492
3504
|
}
|
|
2493
3505
|
},
|
|
2494
|
-
...
|
|
3506
|
+
...o && {
|
|
2495
3507
|
padding: ` ${t.spacing(1, 2, 0)} !important`,
|
|
2496
3508
|
".MuiDialog-paperFullScreen &": {
|
|
2497
3509
|
padding: `${t.spacing(2, 2, 0)} !important`
|
|
2498
3510
|
}
|
|
2499
3511
|
},
|
|
2500
|
-
...
|
|
3512
|
+
...r && {
|
|
2501
3513
|
paddingBottom: `${t.spacing(3)} !important`,
|
|
2502
3514
|
".MuiDialog-paperFullScreen &": {
|
|
2503
3515
|
paddingBottom: `${t.spacing(3)} !important`
|
|
2504
3516
|
}
|
|
2505
3517
|
}
|
|
2506
3518
|
}));
|
|
2507
|
-
function
|
|
3519
|
+
function Br({
|
|
2508
3520
|
children: t,
|
|
2509
3521
|
scrollableContent: e,
|
|
2510
|
-
hasFooterAlert:
|
|
2511
|
-
withGutter:
|
|
2512
|
-
withBottomGutter:
|
|
2513
|
-
onScroll:
|
|
2514
|
-
...
|
|
3522
|
+
hasFooterAlert: o,
|
|
3523
|
+
withGutter: r = !0,
|
|
3524
|
+
withBottomGutter: i = !0,
|
|
3525
|
+
onScroll: l,
|
|
3526
|
+
...a
|
|
2515
3527
|
}, c) {
|
|
2516
|
-
const
|
|
2517
|
-
|
|
3528
|
+
const d = j(), [u, p] = B(null);
|
|
3529
|
+
ee(
|
|
2518
3530
|
c,
|
|
2519
|
-
() =>
|
|
2520
|
-
[
|
|
3531
|
+
() => u,
|
|
3532
|
+
[u]
|
|
2521
3533
|
);
|
|
2522
|
-
const
|
|
2523
|
-
(
|
|
2524
|
-
const
|
|
2525
|
-
|
|
3534
|
+
const s = ot(
|
|
3535
|
+
(g) => {
|
|
3536
|
+
const f = Math.abs(g.scrollHeight - g.clientHeight - g.scrollTop) < 1, y = g.scrollTop === 0, h = `1px solid ${d.palette.divider}`;
|
|
3537
|
+
g.style.borderTop = y ? "none" : h, g.style.borderBottom = f && !o ? "none" : h;
|
|
2526
3538
|
},
|
|
2527
|
-
[
|
|
2528
|
-
),
|
|
2529
|
-
(
|
|
2530
|
-
|
|
3539
|
+
[d.palette.divider, o]
|
|
3540
|
+
), b = ot(
|
|
3541
|
+
(g) => {
|
|
3542
|
+
s(g.target), l == null || l(g);
|
|
2531
3543
|
},
|
|
2532
|
-
[
|
|
3544
|
+
[s, l]
|
|
2533
3545
|
);
|
|
2534
|
-
return
|
|
2535
|
-
|
|
2536
|
-
}, [
|
|
2537
|
-
if (!
|
|
2538
|
-
const
|
|
2539
|
-
u
|
|
3546
|
+
return z(() => {
|
|
3547
|
+
u && s(u);
|
|
3548
|
+
}, [u, s]), z(() => {
|
|
3549
|
+
if (!u || typeof ResizeObserver > "u") return;
|
|
3550
|
+
const g = new ResizeObserver(() => {
|
|
3551
|
+
s(u);
|
|
2540
3552
|
});
|
|
2541
|
-
return
|
|
2542
|
-
}, [
|
|
2543
|
-
|
|
3553
|
+
return g.observe(u), () => g.disconnect();
|
|
3554
|
+
}, [u, s]), /* @__PURE__ */ n(
|
|
3555
|
+
$r,
|
|
2544
3556
|
{
|
|
2545
|
-
ref:
|
|
2546
|
-
onScroll:
|
|
3557
|
+
ref: p,
|
|
3558
|
+
onScroll: b,
|
|
2547
3559
|
scrollableContent: e,
|
|
2548
|
-
withGutter:
|
|
2549
|
-
withBottomGutter:
|
|
2550
|
-
|
|
3560
|
+
withGutter: r,
|
|
3561
|
+
withBottomGutter: i && r,
|
|
3562
|
+
"data-name": "dialog-content",
|
|
3563
|
+
...a,
|
|
2551
3564
|
children: t
|
|
2552
3565
|
}
|
|
2553
3566
|
);
|
|
2554
3567
|
}
|
|
2555
|
-
const
|
|
3568
|
+
const Zt = O(Br), Jn = m(Zt, {
|
|
2556
3569
|
shouldForwardProp: (t) => t !== "withAlert"
|
|
2557
3570
|
})(({ withAlert: t, theme: e }) => ({
|
|
2558
3571
|
padding: `${e.spacing(0, 2)} !important`,
|
|
2559
3572
|
...t && {
|
|
2560
3573
|
paddingBottom: `${e.spacing(3)} !important`
|
|
2561
3574
|
}
|
|
2562
|
-
})),
|
|
3575
|
+
})), Tr = m(Et)(({ theme: t }) => ({
|
|
2563
3576
|
minHeight: "auto",
|
|
2564
3577
|
padding: 0,
|
|
2565
3578
|
backgroundColor: "transparent",
|
|
@@ -2573,43 +3586,43 @@ const Hn = L(En), Fo = p(Hn, {
|
|
|
2573
3586
|
color: t.palette.text.primary
|
|
2574
3587
|
}
|
|
2575
3588
|
}));
|
|
2576
|
-
function
|
|
3589
|
+
function Jt({
|
|
2577
3590
|
children: t,
|
|
2578
3591
|
severity: e = "neutral",
|
|
2579
|
-
...
|
|
3592
|
+
...o
|
|
2580
3593
|
}) {
|
|
2581
|
-
return /* @__PURE__ */
|
|
3594
|
+
return /* @__PURE__ */ n(Tr, { severity: e, ...o, "data-name": "dialog-alert", children: t });
|
|
2582
3595
|
}
|
|
2583
|
-
const
|
|
3596
|
+
const Rr = m(D, {
|
|
2584
3597
|
shouldForwardProp: (t) => !["dark", "hasChildren"].includes(t)
|
|
2585
|
-
})(({ dark: t, hasChildren: e, theme:
|
|
3598
|
+
})(({ dark: t, hasChildren: e, theme: o }) => ({
|
|
2586
3599
|
flex: "0 0 auto",
|
|
2587
3600
|
display: "block",
|
|
2588
|
-
minHeight: e ?
|
|
3601
|
+
minHeight: e ? o.spacing(8) : "auto",
|
|
2589
3602
|
zIndex: 10,
|
|
2590
3603
|
...t && {
|
|
2591
|
-
backgroundColor:
|
|
2592
|
-
color:
|
|
3604
|
+
backgroundColor: o.palette.common.black,
|
|
3605
|
+
color: o.palette.white[60],
|
|
2593
3606
|
".MuiAlert-root": {
|
|
2594
3607
|
".MuiTypography-root, .MuiAlert-message :not(.MuiAlertTitle-root)": {
|
|
2595
|
-
color:
|
|
3608
|
+
color: o.palette.white[60],
|
|
2596
3609
|
a: {
|
|
2597
|
-
color: `${
|
|
3610
|
+
color: `${o.palette.secondary.main} !important`
|
|
2598
3611
|
}
|
|
2599
3612
|
},
|
|
2600
3613
|
".MuiAlert-icon": {
|
|
2601
|
-
color:
|
|
3614
|
+
color: o.palette.white[60]
|
|
2602
3615
|
}
|
|
2603
3616
|
}
|
|
2604
3617
|
}
|
|
2605
|
-
})),
|
|
3618
|
+
})), Or = m(D)(() => ({
|
|
2606
3619
|
display: "flex",
|
|
2607
3620
|
alignItems: "center",
|
|
2608
3621
|
justifyContent: "space-between",
|
|
2609
3622
|
"& > div:empty": {
|
|
2610
3623
|
padding: 0
|
|
2611
3624
|
}
|
|
2612
|
-
})),
|
|
3625
|
+
})), Fr = m(D, {
|
|
2613
3626
|
shouldForwardProp: (t) => t !== "hasAlert"
|
|
2614
3627
|
})(({ hasAlert: t, theme: e }) => ({
|
|
2615
3628
|
display: "flex",
|
|
@@ -2617,7 +3630,7 @@ const Pn = p(v, {
|
|
|
2617
3630
|
gap: e.spacing(1),
|
|
2618
3631
|
padding: e.spacing(2),
|
|
2619
3632
|
paddingTop: t ? 0 : e.spacing(2)
|
|
2620
|
-
})),
|
|
3633
|
+
})), Kt = m(ke, {
|
|
2621
3634
|
shouldForwardProp: (t) => t !== "hasAlert"
|
|
2622
3635
|
})(({ hasAlert: t, theme: e }) => ({
|
|
2623
3636
|
gap: e.spacing(1),
|
|
@@ -2627,41 +3640,42 @@ const Pn = p(v, {
|
|
|
2627
3640
|
".MuiButton-root + .MuiButton-root": {
|
|
2628
3641
|
marginLeft: 0
|
|
2629
3642
|
}
|
|
2630
|
-
})),
|
|
3643
|
+
})), Lr = m(_)(() => ({
|
|
2631
3644
|
// To prevent double border in the top when content is scrollable
|
|
2632
3645
|
marginTop: "-1px"
|
|
2633
3646
|
}));
|
|
2634
|
-
function
|
|
3647
|
+
function Wr({
|
|
2635
3648
|
children: t,
|
|
2636
3649
|
secondaryActions: e,
|
|
2637
|
-
alertContent:
|
|
2638
|
-
alertProps:
|
|
2639
|
-
dark:
|
|
2640
|
-
topContent:
|
|
2641
|
-
...
|
|
3650
|
+
alertContent: o,
|
|
3651
|
+
alertProps: r,
|
|
3652
|
+
dark: i,
|
|
3653
|
+
topContent: l,
|
|
3654
|
+
...a
|
|
2642
3655
|
}) {
|
|
2643
|
-
return /* @__PURE__ */ x(
|
|
2644
|
-
|
|
2645
|
-
!!
|
|
3656
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
3657
|
+
l,
|
|
3658
|
+
!!o && /* @__PURE__ */ n(Lr, {}),
|
|
2646
3659
|
/* @__PURE__ */ x(
|
|
2647
|
-
|
|
3660
|
+
Rr,
|
|
2648
3661
|
{
|
|
2649
|
-
...
|
|
2650
|
-
dark:
|
|
2651
|
-
"data-theme":
|
|
3662
|
+
...a,
|
|
3663
|
+
dark: i,
|
|
3664
|
+
"data-theme": i ? "dark" : "light",
|
|
3665
|
+
"data-name": "dialog-footer",
|
|
2652
3666
|
hasChildren: !!t,
|
|
2653
3667
|
children: [
|
|
2654
|
-
!!
|
|
2655
|
-
/* @__PURE__ */ x(
|
|
2656
|
-
/* @__PURE__ */
|
|
2657
|
-
/* @__PURE__ */
|
|
3668
|
+
!!o && /* @__PURE__ */ n(D, { sx: { p: 2, pt: 1.5, pb: 1 }, children: /* @__PURE__ */ n(Jt, { ...r, children: o }) }),
|
|
3669
|
+
/* @__PURE__ */ x(Or, { children: [
|
|
3670
|
+
/* @__PURE__ */ n(Fr, { hasAlert: !!o, children: e }),
|
|
3671
|
+
/* @__PURE__ */ n(Kt, { hasAlert: !!o, children: t })
|
|
2658
3672
|
] })
|
|
2659
3673
|
]
|
|
2660
3674
|
}
|
|
2661
3675
|
)
|
|
2662
3676
|
] });
|
|
2663
3677
|
}
|
|
2664
|
-
const
|
|
3678
|
+
const Er = m(D)(({ theme: t }) => ({
|
|
2665
3679
|
position: "absolute",
|
|
2666
3680
|
width: "100%",
|
|
2667
3681
|
zIndex: 100,
|
|
@@ -2674,9 +3688,9 @@ const Nn = p(v)(({ theme: t }) => ({
|
|
|
2674
3688
|
boxSizing: "border-box",
|
|
2675
3689
|
alignItems: "flex-end",
|
|
2676
3690
|
background: t.palette.white[60]
|
|
2677
|
-
})),
|
|
3691
|
+
})), Hr = m("div")(() => ({
|
|
2678
3692
|
width: "100%"
|
|
2679
|
-
})),
|
|
3693
|
+
})), Pr = m(D)(({ theme: t }) => ({
|
|
2680
3694
|
width: "100%",
|
|
2681
3695
|
padding: t.spacing(1.5, 2, 2),
|
|
2682
3696
|
backgroundColor: t.palette.background.paper,
|
|
@@ -2686,46 +3700,47 @@ const Nn = p(v)(({ theme: t }) => ({
|
|
|
2686
3700
|
marginTop: t.spacing(1)
|
|
2687
3701
|
}
|
|
2688
3702
|
}));
|
|
2689
|
-
function
|
|
3703
|
+
function zr({
|
|
2690
3704
|
children: t,
|
|
2691
3705
|
onClickAway: e,
|
|
2692
|
-
actions:
|
|
2693
|
-
severity:
|
|
2694
|
-
opened:
|
|
2695
|
-
"data-testid":
|
|
2696
|
-
"aria-label":
|
|
3706
|
+
actions: o,
|
|
3707
|
+
severity: r = "warning",
|
|
3708
|
+
opened: i,
|
|
3709
|
+
"data-testid": l,
|
|
3710
|
+
"aria-label": a,
|
|
2697
3711
|
...c
|
|
2698
3712
|
}) {
|
|
2699
|
-
const
|
|
2700
|
-
return /* @__PURE__ */
|
|
2701
|
-
|
|
3713
|
+
const d = Z(null), u = j();
|
|
3714
|
+
return /* @__PURE__ */ n(
|
|
3715
|
+
Er,
|
|
2702
3716
|
{
|
|
2703
|
-
ref:
|
|
2704
|
-
"data-testid":
|
|
2705
|
-
"aria-label":
|
|
3717
|
+
ref: d,
|
|
3718
|
+
"data-testid": l,
|
|
3719
|
+
"aria-label": a,
|
|
2706
3720
|
role: "presentation",
|
|
2707
|
-
|
|
3721
|
+
"data-name": "dialog-confirmation",
|
|
3722
|
+
children: /* @__PURE__ */ n(Ge, { onClickAway: () => {
|
|
2708
3723
|
e && e();
|
|
2709
|
-
}, children: /* @__PURE__ */
|
|
2710
|
-
|
|
3724
|
+
}, children: /* @__PURE__ */ n(
|
|
3725
|
+
Rt,
|
|
2711
3726
|
{
|
|
2712
3727
|
direction: "up",
|
|
2713
|
-
in:
|
|
2714
|
-
container:
|
|
3728
|
+
in: i,
|
|
3729
|
+
container: d.current,
|
|
2715
3730
|
mountOnEnter: !0,
|
|
2716
3731
|
unmountOnExit: !0,
|
|
2717
|
-
easing:
|
|
3732
|
+
easing: u.transitions.easing.easeOut,
|
|
2718
3733
|
timeout: 350,
|
|
2719
|
-
children: /* @__PURE__ */
|
|
2720
|
-
/* @__PURE__ */
|
|
2721
|
-
/* @__PURE__ */
|
|
3734
|
+
children: /* @__PURE__ */ n(Hr, { children: /* @__PURE__ */ x(Pr, { children: [
|
|
3735
|
+
/* @__PURE__ */ n(Jt, { severity: r, ...c, children: t }),
|
|
3736
|
+
/* @__PURE__ */ n(Kt, { children: o })
|
|
2722
3737
|
] }) })
|
|
2723
3738
|
}
|
|
2724
3739
|
) })
|
|
2725
3740
|
}
|
|
2726
3741
|
);
|
|
2727
3742
|
}
|
|
2728
|
-
const
|
|
3743
|
+
const Nr = m(D)(({ theme: t }) => ({
|
|
2729
3744
|
display: "flex",
|
|
2730
3745
|
alignItems: "center",
|
|
2731
3746
|
justifyContent: "center",
|
|
@@ -2734,7 +3749,7 @@ const qn = p(v)(({ theme: t }) => ({
|
|
|
2734
3749
|
"& > div": {
|
|
2735
3750
|
flex: 1
|
|
2736
3751
|
}
|
|
2737
|
-
})),
|
|
3752
|
+
})), _r = m(D)(({ theme: t }) => ({
|
|
2738
3753
|
display: "flex",
|
|
2739
3754
|
flex: 1,
|
|
2740
3755
|
flexDirection: "column",
|
|
@@ -2762,16 +3777,16 @@ const qn = p(v)(({ theme: t }) => ({
|
|
|
2762
3777
|
content: "none"
|
|
2763
3778
|
}
|
|
2764
3779
|
}));
|
|
2765
|
-
function
|
|
3780
|
+
function Gr({
|
|
2766
3781
|
theme: t,
|
|
2767
3782
|
completed: e,
|
|
2768
|
-
current:
|
|
3783
|
+
current: o
|
|
2769
3784
|
}) {
|
|
2770
3785
|
return e ? {
|
|
2771
3786
|
background: t.palette.success.main,
|
|
2772
3787
|
borderColor: t.palette.success.main,
|
|
2773
3788
|
color: t.palette.common.white
|
|
2774
|
-
} :
|
|
3789
|
+
} : o ? {
|
|
2775
3790
|
background: t.palette.text.primary,
|
|
2776
3791
|
borderColor: t.palette.text.primary,
|
|
2777
3792
|
color: t.palette.common.white
|
|
@@ -2780,9 +3795,9 @@ function Zn({
|
|
|
2780
3795
|
color: t.palette.text.secondary
|
|
2781
3796
|
};
|
|
2782
3797
|
}
|
|
2783
|
-
const
|
|
3798
|
+
const jr = m("span", {
|
|
2784
3799
|
shouldForwardProp: (t) => t !== "completed" && t !== "current"
|
|
2785
|
-
})(({ theme: t, completed: e, current:
|
|
3800
|
+
})(({ theme: t, completed: e, current: o }) => ({
|
|
2786
3801
|
display: "flex",
|
|
2787
3802
|
justifyContent: "center",
|
|
2788
3803
|
alignItems: "center",
|
|
@@ -2792,66 +3807,221 @@ const Jn = p("span", {
|
|
|
2792
3807
|
borderRadius: "50%",
|
|
2793
3808
|
border: `${t.spacing(0.25)} solid currentColor`,
|
|
2794
3809
|
...t.typography.caption,
|
|
2795
|
-
...
|
|
3810
|
+
...Gr({ theme: t, completed: e, current: o })
|
|
2796
3811
|
}));
|
|
2797
|
-
function
|
|
3812
|
+
function Kn({
|
|
2798
3813
|
currentStep: t,
|
|
2799
3814
|
stepsLabels: e,
|
|
2800
|
-
...
|
|
3815
|
+
...o
|
|
2801
3816
|
}) {
|
|
2802
|
-
return /* @__PURE__ */
|
|
2803
|
-
const
|
|
3817
|
+
return /* @__PURE__ */ n(Nr, { ...o, "data-name": "dialog-stepper", children: /* @__PURE__ */ n(D, { sx: { display: "flex" }, children: e.map((r, i) => {
|
|
3818
|
+
const l = i + 1, a = l === t, c = l < t;
|
|
2804
3819
|
return /* @__PURE__ */ x(
|
|
2805
|
-
|
|
3820
|
+
_r,
|
|
2806
3821
|
{
|
|
2807
|
-
"data-state": c ? "completed" :
|
|
3822
|
+
"data-state": c ? "completed" : a ? "current" : "uncompleted",
|
|
2808
3823
|
children: [
|
|
2809
|
-
/* @__PURE__ */
|
|
2810
|
-
/* @__PURE__ */
|
|
3824
|
+
/* @__PURE__ */ n(jr, { completed: c, current: a, children: c ? /* @__PURE__ */ n(Te, { fontSize: "small", "aria-label": "Completed step" }) : l }),
|
|
3825
|
+
/* @__PURE__ */ n(F, { variant: "caption", component: "div", color: c ? "success.main" : a ? "textPrimary" : "textSecondary", children: r })
|
|
2811
3826
|
]
|
|
2812
3827
|
},
|
|
2813
|
-
|
|
3828
|
+
i
|
|
2814
3829
|
);
|
|
2815
3830
|
}) }) });
|
|
2816
3831
|
}
|
|
3832
|
+
const Vr = m(Zt, {
|
|
3833
|
+
shouldForwardProp: (t) => !["error", "withBorder"].includes(t)
|
|
3834
|
+
})(
|
|
3835
|
+
({ error: t, withBorder: e, theme: o }) => ({
|
|
3836
|
+
gap: 0,
|
|
3837
|
+
border: e ? `1px solid ${o.palette.divider} !important` : void 0,
|
|
3838
|
+
borderBottom: t ? "none !important" : void 0,
|
|
3839
|
+
".react-codemirror2": {
|
|
3840
|
+
display: "flex",
|
|
3841
|
+
flexDirection: "column",
|
|
3842
|
+
minHeight: "100%"
|
|
3843
|
+
},
|
|
3844
|
+
".CodeMirror-wrap": {
|
|
3845
|
+
display: "flex",
|
|
3846
|
+
flexDirection: "column",
|
|
3847
|
+
flex: 1
|
|
3848
|
+
},
|
|
3849
|
+
"& + .MuiDivider-root": {
|
|
3850
|
+
display: "none"
|
|
3851
|
+
}
|
|
3852
|
+
})
|
|
3853
|
+
);
|
|
3854
|
+
function Ur({
|
|
3855
|
+
children: t,
|
|
3856
|
+
error: e,
|
|
3857
|
+
withBorder: o = !0,
|
|
3858
|
+
withGutter: r = !1
|
|
3859
|
+
}) {
|
|
3860
|
+
return t ? /* @__PURE__ */ n(Vr, { withGutter: r, error: e, withBorder: o, children: t }) : null;
|
|
3861
|
+
}
|
|
3862
|
+
function Yr({
|
|
3863
|
+
onClose: t,
|
|
3864
|
+
onCancel: e,
|
|
3865
|
+
cancelLabel: o,
|
|
3866
|
+
cancelButton: r,
|
|
3867
|
+
closeButton: i,
|
|
3868
|
+
contentLabel: l,
|
|
3869
|
+
titleLabel: a,
|
|
3870
|
+
severity: c = "warning",
|
|
3871
|
+
content: d
|
|
3872
|
+
}) {
|
|
3873
|
+
const u = R(), p = T(u);
|
|
3874
|
+
return !t || !e ? null : /* @__PURE__ */ n(
|
|
3875
|
+
zr,
|
|
3876
|
+
{
|
|
3877
|
+
opened: !0,
|
|
3878
|
+
severity: c,
|
|
3879
|
+
title: p.formatMessage({
|
|
3880
|
+
id: a || "c4r.dialog.confirmation.title"
|
|
3881
|
+
}),
|
|
3882
|
+
actions: /* @__PURE__ */ x(H, { children: [
|
|
3883
|
+
e && (r || /* @__PURE__ */ n(nt, { onClick: e, children: p.formatMessage({
|
|
3884
|
+
id: o || "c4r.button.cancel"
|
|
3885
|
+
}) })),
|
|
3886
|
+
t && (i || /* @__PURE__ */ n(nt, { variant: "contained", onClick: t, children: p.formatMessage({
|
|
3887
|
+
id: "c4r.button.leave"
|
|
3888
|
+
}) }))
|
|
3889
|
+
] }),
|
|
3890
|
+
children: d || p.formatMessage({
|
|
3891
|
+
id: l || "c4r.dialog.confirmation.content"
|
|
3892
|
+
})
|
|
3893
|
+
}
|
|
3894
|
+
);
|
|
3895
|
+
}
|
|
3896
|
+
function Xn({
|
|
3897
|
+
open: t,
|
|
3898
|
+
onClose: e,
|
|
3899
|
+
title: o,
|
|
3900
|
+
error: r,
|
|
3901
|
+
helperText: i,
|
|
3902
|
+
onClickFooter: l,
|
|
3903
|
+
disabledButtonFooter: a,
|
|
3904
|
+
labelIdButtonFooter: c,
|
|
3905
|
+
ariaLabelButtonFooter: d,
|
|
3906
|
+
disabled: u,
|
|
3907
|
+
showConfirmation: p,
|
|
3908
|
+
onCancelConfirm: s,
|
|
3909
|
+
onCloseConfirm: b,
|
|
3910
|
+
footerProps: g,
|
|
3911
|
+
saveLoading: f,
|
|
3912
|
+
showSaveSnackbar: y,
|
|
3913
|
+
onCloseSaveSnackbar: h,
|
|
3914
|
+
"data-testid": w,
|
|
3915
|
+
"aria-label": M,
|
|
3916
|
+
...A
|
|
3917
|
+
}) {
|
|
3918
|
+
const C = r || !!l || !!g;
|
|
3919
|
+
return t ? /* @__PURE__ */ x(
|
|
3920
|
+
vr,
|
|
3921
|
+
{
|
|
3922
|
+
open: t,
|
|
3923
|
+
fullScreen: !0,
|
|
3924
|
+
onClose: e,
|
|
3925
|
+
"data-testid": w,
|
|
3926
|
+
"aria-label": M,
|
|
3927
|
+
"data-name": "code-area-dialog",
|
|
3928
|
+
children: [
|
|
3929
|
+
/* @__PURE__ */ n(
|
|
3930
|
+
Ir,
|
|
3931
|
+
{
|
|
3932
|
+
title: o,
|
|
3933
|
+
onClose: e,
|
|
3934
|
+
closeIcon: !l && /* @__PURE__ */ n(We, {})
|
|
3935
|
+
}
|
|
3936
|
+
),
|
|
3937
|
+
/* @__PURE__ */ n(Ur, { error: r, children: /* @__PURE__ */ n(
|
|
3938
|
+
xr,
|
|
3939
|
+
{
|
|
3940
|
+
...A,
|
|
3941
|
+
disabled: u,
|
|
3942
|
+
variant: null,
|
|
3943
|
+
isExpanded: !0
|
|
3944
|
+
}
|
|
3945
|
+
) }),
|
|
3946
|
+
C && /* @__PURE__ */ n(
|
|
3947
|
+
Wr,
|
|
3948
|
+
{
|
|
3949
|
+
...g,
|
|
3950
|
+
topContent: r && /* @__PURE__ */ n(Mr, { hasDivider: !!l, children: i }),
|
|
3951
|
+
children: !!l && /* @__PURE__ */ n(
|
|
3952
|
+
qt,
|
|
3953
|
+
{
|
|
3954
|
+
onClickFooter: l,
|
|
3955
|
+
labelIdButtonFooter: c,
|
|
3956
|
+
ariaLabelButtonFooter: d,
|
|
3957
|
+
disabled: u,
|
|
3958
|
+
disabledButtonFooter: a,
|
|
3959
|
+
withGutter: !1,
|
|
3960
|
+
variant: "contained",
|
|
3961
|
+
size: "medium",
|
|
3962
|
+
loading: !!f,
|
|
3963
|
+
showSnackbar: y,
|
|
3964
|
+
onCloseSnackbar: h
|
|
3965
|
+
}
|
|
3966
|
+
)
|
|
3967
|
+
}
|
|
3968
|
+
),
|
|
3969
|
+
p && /* @__PURE__ */ n(
|
|
3970
|
+
Yr,
|
|
3971
|
+
{
|
|
3972
|
+
onClose: b ?? e,
|
|
3973
|
+
onCancel: s,
|
|
3974
|
+
cancelLabel: "c4r.button.keepEditing"
|
|
3975
|
+
}
|
|
3976
|
+
)
|
|
3977
|
+
]
|
|
3978
|
+
}
|
|
3979
|
+
) : null;
|
|
3980
|
+
}
|
|
2817
3981
|
export {
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
3982
|
+
Gn as AccordionGroup,
|
|
3983
|
+
Et as Alert,
|
|
3984
|
+
Vn as AppBar,
|
|
3985
|
+
zn as Autocomplete,
|
|
3986
|
+
jn as Avatar,
|
|
3987
|
+
nt as Button,
|
|
3988
|
+
Xn as CodeAreaDialog,
|
|
3989
|
+
xr as CodeAreaField,
|
|
3990
|
+
gr as CodeAreaInput,
|
|
3991
|
+
Ro as CopiableComponent,
|
|
3992
|
+
Nn as CreatableAutocomplete,
|
|
3993
|
+
xt as DatePicker,
|
|
3994
|
+
Un as DateRangePicker,
|
|
3995
|
+
qn as DateTimePicker,
|
|
3996
|
+
vr as Dialog,
|
|
3997
|
+
Kt as DialogActions,
|
|
3998
|
+
Jt as DialogAlert,
|
|
3999
|
+
zr as DialogConfirmation,
|
|
4000
|
+
Zt as DialogContent,
|
|
4001
|
+
Jn as DialogContentPadded,
|
|
4002
|
+
Wr as DialogFooter,
|
|
4003
|
+
Ir as DialogHeader,
|
|
4004
|
+
wt as DialogPaper,
|
|
4005
|
+
Kn as DialogStepper,
|
|
4006
|
+
q as IconButton,
|
|
2839
4007
|
X as LabelWithIndicator,
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
4008
|
+
co as Menu,
|
|
4009
|
+
Y as MenuItem,
|
|
4010
|
+
Ht as MenuItemFilter,
|
|
4011
|
+
En as MenuList,
|
|
4012
|
+
_n as MultipleAutocomplete,
|
|
4013
|
+
Hn as MultipleSelectField,
|
|
4014
|
+
Ln as PasswordField,
|
|
4015
|
+
eo as SelectField,
|
|
4016
|
+
dt as Snackbar,
|
|
4017
|
+
ei as TablePaginationActions,
|
|
4018
|
+
Yn as TimePicker,
|
|
4019
|
+
Wn as ToggleButtonGroup,
|
|
4020
|
+
Zn as TooltipData,
|
|
4021
|
+
F as Typography,
|
|
4022
|
+
Pn as UploadField,
|
|
4023
|
+
vo as UploadFieldBase,
|
|
4024
|
+
Oo as copyString,
|
|
4025
|
+
vt as dialogDimensionsBySize,
|
|
4026
|
+
Vt as useCopyValue
|
|
2857
4027
|
};
|