@carto/ps-react-ui 5.0.0-widgets.9 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-BjPfCLG9.js +1024 -0
- package/dist/actions-BjPfCLG9.js.map +1 -0
- package/dist/actions-CGJD6q0t.js +1318 -0
- package/dist/actions-CGJD6q0t.js.map +1 -0
- package/dist/category-DGUDabsi.js +829 -0
- package/dist/category-DGUDabsi.js.map +1 -0
- package/dist/chart-config-B_fdIcD3.js +108 -0
- package/dist/chart-config-B_fdIcD3.js.map +1 -0
- package/dist/chat.js +1642 -0
- package/dist/chat.js.map +1 -0
- package/dist/cjs-CBrZjPCj.js +75 -0
- package/dist/cjs-CBrZjPCj.js.map +1 -0
- package/dist/components-FED-ArwH.js +4053 -0
- package/dist/components-FED-ArwH.js.map +1 -0
- package/dist/components.js +5 -1351
- package/dist/copy-button-TTlZONkX.js +34 -0
- package/dist/copy-button-TTlZONkX.js.map +1 -0
- package/dist/csv-modifiers-D6HGC24b.js +26 -0
- package/dist/csv-modifiers-D6HGC24b.js.map +1 -0
- package/dist/download-DdaK3qgC.js +232 -0
- package/dist/download-DdaK3qgC.js.map +1 -0
- package/dist/echart-BkaV3V5G.js +133 -0
- package/dist/echart-BkaV3V5G.js.map +1 -0
- package/dist/echart-CRihbmRv.js +249 -0
- package/dist/echart-CRihbmRv.js.map +1 -0
- package/dist/formatter-wVO81tYk.js +6 -0
- package/dist/formatter-wVO81tYk.js.map +1 -0
- package/dist/formula-YfZmmuYX.js +190 -0
- package/dist/formula-YfZmmuYX.js.map +1 -0
- package/dist/formula-noJzQwKo.js +285 -0
- package/dist/formula-noJzQwKo.js.map +1 -0
- package/dist/hooks-zf5gKZYq.js +22 -0
- package/dist/hooks-zf5gKZYq.js.map +1 -0
- package/dist/legend/stores.js +2 -0
- package/dist/legend.js +2284 -0
- package/dist/legend.js.map +1 -0
- package/dist/markdown-2dfL6Cmb.js +165 -0
- package/dist/markdown-2dfL6Cmb.js.map +1 -0
- package/dist/markdown-content-BWUqwx9F.js +8776 -0
- package/dist/markdown-content-BWUqwx9F.js.map +1 -0
- package/dist/range-BCMAl5xf.js +277 -0
- package/dist/range-BCMAl5xf.js.map +1 -0
- package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
- package/dist/row-CvVGBuy_.js +35 -0
- package/dist/row-CvVGBuy_.js.map +1 -0
- package/dist/shared-resize-observer-BEiP2rQt.js +157 -0
- package/dist/shared-resize-observer-BEiP2rQt.js.map +1 -0
- package/dist/smart-tooltip-CwGHCqab.js +34 -0
- package/dist/smart-tooltip-CwGHCqab.js.map +1 -0
- package/dist/spread-Ccpg9fi0.js +149 -0
- package/dist/spread-Ccpg9fi0.js.map +1 -0
- package/dist/stores-mad-9yFn.js +369 -0
- package/dist/stores-mad-9yFn.js.map +1 -0
- package/dist/stores-tiFePP0A.js +243 -0
- package/dist/stores-tiFePP0A.js.map +1 -0
- package/dist/styles-Y-qGBELO.js +13 -0
- package/dist/styles-Y-qGBELO.js.map +1 -0
- package/dist/table-Bx9Uj3U0.js +440 -0
- package/dist/table-Bx9Uj3U0.js.map +1 -0
- package/dist/tooltip-DJUGNZxY.js +23 -0
- package/dist/tooltip-DJUGNZxY.js.map +1 -0
- package/dist/types/chat/bubbles/chat-agent-message-markdown.d.ts +12 -0
- package/dist/types/chat/bubbles/chat-agent-message.d.ts +9 -0
- package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
- package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
- package/dist/types/chat/bubbles/index.d.ts +5 -0
- package/dist/types/chat/bubbles/styles.d.ts +88 -0
- package/dist/types/chat/const.d.ts +4 -0
- package/dist/types/chat/containers/chat-content.d.ts +2 -0
- package/dist/types/chat/containers/chat-footer.d.ts +2 -0
- package/dist/types/chat/containers/chat-header.d.ts +2 -0
- package/dist/types/chat/containers/chat-starter.d.ts +2 -0
- package/dist/types/chat/containers/index.d.ts +4 -0
- package/dist/types/chat/containers/styles.d.ts +160 -0
- package/dist/types/chat/feedback/chat-actions-container.d.ts +3 -0
- package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
- package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
- package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-group.d.ts +2 -0
- package/dist/types/chat/feedback/chat-tool-trace.d.ts +3 -0
- package/dist/types/chat/feedback/get-tool-label.d.ts +2 -0
- package/dist/types/chat/feedback/index.d.ts +8 -0
- package/dist/types/chat/feedback/styles.d.ts +212 -0
- package/dist/types/chat/index.d.ts +21 -0
- package/dist/types/chat/types.d.ts +214 -0
- package/dist/types/chat/use-typewriter.d.ts +32 -0
- package/dist/types/components/basemaps/basemaps.d.ts +21 -1
- package/dist/types/components/basemaps/const.d.ts +1 -1
- package/dist/types/components/basemaps/group-wrapper.d.ts +1 -1
- package/dist/types/components/basemaps/group.d.ts +2 -2
- package/dist/types/components/basemaps/header.d.ts +2 -2
- package/dist/types/components/common-types.d.ts +49 -0
- package/dist/types/components/copy-button/copy-button.d.ts +2 -0
- package/dist/types/components/copy-button/types.d.ts +6 -0
- package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +12 -1
- package/dist/types/components/index.d.ts +37 -20
- package/dist/types/components/lasso-tool/chip.d.ts +2 -2
- package/dist/types/components/lasso-tool/const.d.ts +2 -2
- package/dist/types/components/lasso-tool/edit-confirm-toolbar.d.ts +26 -0
- package/dist/types/components/lasso-tool/geometry-toolbar.d.ts +49 -0
- package/dist/types/components/lasso-tool/icons.d.ts +22 -5
- package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +36 -3
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +34 -9
- package/dist/types/components/lasso-tool/layer-filters.d.ts +10 -0
- package/dist/types/components/lasso-tool/message.d.ts +7 -0
- package/dist/types/components/lasso-tool/options-sections.d.ts +28 -0
- package/dist/types/components/lasso-tool/styles.d.ts +24 -2
- package/dist/types/components/lasso-tool/toolbar/actions/accept-action.d.ts +13 -0
- package/dist/types/components/lasso-tool/toolbar/actions/action-menu.d.ts +28 -0
- package/dist/types/components/lasso-tool/toolbar/actions/cancel-action.d.ts +13 -0
- package/dist/types/components/lasso-tool/toolbar/actions/color-action.d.ts +44 -0
- package/dist/types/components/lasso-tool/toolbar/actions/delete-action.d.ts +11 -0
- package/dist/types/components/lasso-tool/toolbar/actions/duplicate-action.d.ts +11 -0
- package/dist/types/components/lasso-tool/toolbar/actions/edit-geometry-action.d.ts +13 -0
- package/dist/types/components/lasso-tool/toolbar/actions/edit-properties-action.d.ts +60 -0
- package/dist/types/components/lasso-tool/toolbar/actions/fill-action.d.ts +26 -0
- package/dist/types/components/lasso-tool/toolbar/actions/intersect-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/label-action.d.ts +69 -0
- package/dist/types/components/lasso-tool/toolbar/actions/lock-action.d.ts +17 -0
- package/dist/types/components/lasso-tool/toolbar/actions/redo-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/split-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/stroke-action.d.ts +27 -0
- package/dist/types/components/lasso-tool/toolbar/actions/subtract-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/toggle-type-action.d.ts +19 -0
- package/dist/types/components/lasso-tool/toolbar/actions/undo-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/actions/union-action.d.ts +14 -0
- package/dist/types/components/lasso-tool/toolbar/button.d.ts +24 -0
- package/dist/types/components/lasso-tool/toolbar/connected.d.ts +55 -0
- package/dist/types/components/lasso-tool/toolbar/context.d.ts +31 -0
- package/dist/types/components/lasso-tool/toolbar/index.d.ts +41 -0
- package/dist/types/components/lasso-tool/toolbar/styles.d.ts +26 -0
- package/dist/types/components/lasso-tool/toolbar/toolbar.d.ts +30 -0
- package/dist/types/components/lasso-tool/tools-context.d.ts +12 -0
- package/dist/types/components/lasso-tool/types.d.ts +284 -10
- package/dist/types/components/lasso-tool/undo-redo.d.ts +25 -0
- package/dist/types/components/list-data/list-data-skeleton.d.ts +1 -1
- package/dist/types/components/list-data/list-data.d.ts +17 -1
- package/dist/types/components/measurement-tools/const.d.ts +2 -2
- package/dist/types/components/measurement-tools/icons.d.ts +3 -3
- package/dist/types/components/measurement-tools/measurement-tools.d.ts +21 -1
- package/dist/types/components/measurement-tools/styles.d.ts +14 -4
- package/dist/types/components/measurement-tools/types.d.ts +1 -1
- package/dist/types/components/no-data-alert/no-data-alert.d.ts +1 -1
- package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +38 -6
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +18 -1
- package/dist/types/components/tooltip/tooltip.d.ts +14 -1
- package/dist/types/components/types.d.ts +1 -1
- package/dist/types/components/zoom-controls/zoom-controls.d.ts +17 -1
- package/dist/types/hooks/index.d.ts +1 -2
- package/dist/types/hooks/use-widget-ref.d.ts +10 -6
- package/dist/types/legend/components/a11y.d.ts +6 -0
- package/dist/types/legend/components/contexts.d.ts +38 -0
- package/dist/types/legend/components/icons.d.ts +12 -0
- package/dist/types/legend/components/index.d.ts +26 -0
- package/dist/types/legend/components/legend-actions/legend-actions.d.ts +25 -0
- package/dist/types/legend/components/legend-actions/styles.d.ts +7 -0
- package/dist/types/legend/components/legend-category/legend-category-ui.d.ts +13 -0
- package/dist/types/legend/components/legend-category/styles.d.ts +52 -0
- package/dist/types/legend/components/legend-config-select/legend-config-select.d.ts +14 -0
- package/dist/types/legend/components/legend-config-select/styles.d.ts +44 -0
- package/dist/types/legend/components/legend-group/legend-group.d.ts +12 -0
- package/dist/types/legend/components/legend-group/styles.d.ts +129 -0
- package/dist/types/legend/components/legend-group-menu/legend-group-menu-items.d.ts +28 -0
- package/dist/types/legend/components/legend-group-menu/legend-group-menu.d.ts +11 -0
- package/dist/types/legend/components/legend-icon/legend-icon-ui.d.ts +10 -0
- package/dist/types/legend/components/legend-icon/styles.d.ts +52 -0
- package/dist/types/legend/components/legend-item/legend-item-ui.d.ts +14 -0
- package/dist/types/legend/components/legend-item/legend-item.d.ts +10 -0
- package/dist/types/{widgets/root/style.d.ts → legend/components/legend-item/styles.d.ts} +2 -3
- package/dist/types/legend/components/legend-opacity/legend-opacity.d.ts +22 -0
- package/dist/types/legend/components/legend-opacity/styles.d.ts +28 -0
- package/dist/types/legend/components/legend-overflow-menu/legend-overflow-menu.d.ts +12 -0
- package/dist/types/legend/components/legend-panel-menu/legend-panel-menu.d.ts +11 -0
- package/dist/types/legend/components/legend-proportion/legend-proportion-ui.d.ts +16 -0
- package/dist/types/legend/components/legend-proportion/styles.d.ts +37 -0
- package/dist/types/legend/components/legend-ramp/legend-ramp-ui.d.ts +20 -0
- package/dist/types/legend/components/legend-ramp/styles.d.ts +53 -0
- package/dist/types/legend/components/legend-row/legend-row.d.ts +16 -0
- package/dist/types/legend/components/legend-row/styles.d.ts +149 -0
- package/dist/types/legend/components/legend-row-menu/legend-row-menu-items.d.ts +12 -0
- package/dist/types/legend/components/legend-row-menu/legend-row-menu.d.ts +12 -0
- package/dist/types/legend/components/legend-row-menu/legend-zoom-to.d.ts +10 -0
- package/dist/types/legend/components/legend-sortable/contexts.d.ts +7 -0
- package/dist/types/legend/components/legend-sortable/legend-sortable.d.ts +11 -0
- package/dist/types/legend/components/legend-sortable/sortable-entity.d.ts +27 -0
- package/dist/types/legend/components/legend-sortable/sortable-ids.d.ts +6 -0
- package/dist/types/legend/components/legend-sortable/styles.d.ts +55 -0
- package/dist/types/legend/components/legend-swatch/legend-swatch.d.ts +26 -0
- package/dist/types/legend/components/legend-visibility-toggle/legend-visibility-toggle.d.ts +35 -0
- package/dist/types/legend/components/legend-visible-layers/legend-visible-layers.d.ts +7 -0
- package/dist/types/legend/components/legend-visible-layers/styles.d.ts +48 -0
- package/dist/types/legend/components/run-async-menu-action.d.ts +7 -0
- package/dist/types/legend/index.d.ts +135 -0
- package/dist/types/legend/provider/index.d.ts +6 -0
- package/dist/types/legend/provider/labels.d.ts +48 -0
- package/dist/types/legend/provider/legend-config-context.d.ts +7 -0
- package/dist/types/legend/provider/legend-provider.d.ts +38 -0
- package/dist/types/legend/stores/index.d.ts +5 -0
- package/dist/types/legend/stores/legend-context.d.ts +4 -0
- package/dist/types/legend/stores/legend-store-registry.d.ts +39 -0
- package/dist/types/legend/stores/selectors.d.ts +64 -0
- package/dist/types/legend/stores/types.d.ts +294 -0
- package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
- package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
- package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
- package/dist/types/widgets/actions/change-column/change-column-icon.d.ts +1 -1
- package/dist/types/widgets/actions/change-column/change-column.d.ts +6 -2
- package/dist/types/widgets/actions/change-column/sortable-column-item.d.ts +2 -2
- package/dist/types/widgets/actions/download/download.d.ts +13 -2
- package/dist/types/widgets/actions/download/exports.d.ts +16 -1
- package/dist/types/widgets/actions/download/types.d.ts +1 -1
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +15 -2
- package/dist/types/widgets/actions/fullscreen/types.d.ts +3 -2
- package/dist/types/widgets/actions/index.d.ts +20 -18
- package/dist/types/widgets/actions/lock-selection/lock-selection.d.ts +2 -2
- package/dist/types/widgets/actions/lock-selection/types.d.ts +10 -10
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +10 -4
- package/dist/types/widgets/actions/relative-data/types.d.ts +3 -1
- package/dist/types/widgets/actions/relative-data/utils.d.ts +1 -1
- package/dist/types/widgets/actions/searcher/searcher-toggle.d.ts +2 -2
- package/dist/types/widgets/actions/searcher/searcher.d.ts +2 -2
- package/dist/types/widgets/actions/searcher/types.d.ts +2 -2
- package/dist/types/widgets/actions/stack-toggle/grouped-bar-chart-icon.d.ts +1 -1
- package/dist/types/widgets/actions/stack-toggle/stack-toggle.d.ts +5 -4
- package/dist/types/widgets/actions/stack-toggle/types.d.ts +1 -1
- package/dist/types/widgets/actions/zoom-toggle/types.d.ts +1 -1
- package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +10 -2
- package/dist/types/widgets/bar/config.d.ts +8 -4
- package/dist/types/widgets/bar/index.d.ts +3 -3
- package/dist/types/widgets/bar/skeleton.d.ts +1 -1
- package/dist/types/widgets/bar/types.d.ts +3 -3
- package/dist/types/widgets/category/category-ui.d.ts +5 -2
- package/dist/types/widgets/category/components/category-bar.d.ts +4 -1
- package/dist/types/widgets/category/components/category-legend.d.ts +5 -2
- package/dist/types/widgets/category/components/category-row-multi.d.ts +6 -2
- package/dist/types/widgets/category/components/category-row-other.d.ts +4 -1
- package/dist/types/widgets/category/components/category-row-single.d.ts +6 -2
- package/dist/types/widgets/category/config.d.ts +16 -12
- package/dist/types/widgets/category/index.d.ts +14 -6
- package/dist/types/widgets/category/skeleton.d.ts +1 -1
- package/dist/types/widgets/category/style.d.ts +1 -1
- package/dist/types/widgets/category/types.d.ts +4 -3
- package/dist/types/widgets/echart/echart-ui.d.ts +9 -2
- package/dist/types/widgets/echart/echart.d.ts +8 -2
- package/dist/types/widgets/echart/index.d.ts +5 -5
- package/dist/types/widgets/echart/options.d.ts +8 -1
- package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
- package/dist/types/widgets/echart/types.d.ts +7 -2
- package/dist/types/widgets/echart/utils.d.ts +57 -9
- package/dist/types/widgets/error/error.d.ts +12 -2
- package/dist/types/widgets/error/index.d.ts +2 -2
- package/dist/types/widgets/error/types.d.ts +9 -1
- package/dist/types/widgets/formula/components/item.d.ts +5 -2
- package/dist/types/widgets/formula/components/prefix.d.ts +5 -2
- package/dist/types/widgets/formula/components/row.d.ts +5 -2
- package/dist/types/widgets/formula/components/series.d.ts +5 -2
- package/dist/types/widgets/formula/components/suffix.d.ts +5 -2
- package/dist/types/widgets/formula/components/value.d.ts +5 -2
- package/dist/types/widgets/formula/config.d.ts +13 -2
- package/dist/types/widgets/formula/formula-ui.d.ts +5 -2
- package/dist/types/widgets/formula/index.d.ts +11 -11
- package/dist/types/widgets/formula/serializer.d.ts +1 -1
- package/dist/types/widgets/formula/skeleton.d.ts +1 -1
- package/dist/types/widgets/formula/types.d.ts +3 -3
- package/dist/types/widgets/histogram/config.d.ts +20 -4
- package/dist/types/widgets/histogram/index.d.ts +4 -3
- package/dist/types/widgets/histogram/skeleton.d.ts +1 -1
- package/dist/types/widgets/histogram/types.d.ts +8 -5
- package/dist/types/widgets/loader/index.d.ts +3 -0
- package/dist/types/widgets/loader/loader.d.ts +24 -0
- package/dist/types/widgets/loader/types.d.ts +9 -0
- package/dist/types/widgets/loader/utils.d.ts +35 -0
- package/dist/types/widgets/markdown/config.d.ts +12 -2
- package/dist/types/widgets/markdown/index.d.ts +5 -5
- package/dist/types/widgets/markdown/markdown-ui.d.ts +9 -2
- package/dist/types/widgets/markdown/markdown.d.ts +5 -2
- package/dist/types/widgets/markdown/skeleton.d.ts +1 -1
- package/dist/types/widgets/markdown/types.d.ts +3 -3
- package/dist/types/widgets/no-data/index.d.ts +2 -2
- package/dist/types/widgets/no-data/no-data.d.ts +5 -4
- package/dist/types/widgets/no-data/types.d.ts +6 -2
- package/dist/types/widgets/note/index.d.ts +2 -2
- package/dist/types/widgets/note/note.d.ts +12 -2
- package/dist/types/widgets/note/types.d.ts +1 -1
- package/dist/types/widgets/pie/config.d.ts +8 -4
- package/dist/types/widgets/pie/index.d.ts +3 -3
- package/dist/types/widgets/pie/skeleton.d.ts +1 -1
- package/dist/types/widgets/pie/types.d.ts +3 -3
- package/dist/types/widgets/range/components/range-item.d.ts +5 -2
- package/dist/types/widgets/range/config.d.ts +6 -5
- package/dist/types/widgets/range/index.d.ts +6 -6
- package/dist/types/widgets/range/range-ui.d.ts +5 -2
- package/dist/types/widgets/range/serializer.d.ts +1 -1
- package/dist/types/widgets/range/skeleton.d.ts +1 -1
- package/dist/types/widgets/range/types.d.ts +3 -3
- package/dist/types/widgets/scatterplot/config.d.ts +8 -4
- package/dist/types/widgets/scatterplot/index.d.ts +3 -3
- package/dist/types/widgets/scatterplot/skeleton.d.ts +1 -1
- package/dist/types/widgets/scatterplot/types.d.ts +3 -3
- package/dist/types/widgets/selection-summary/index.d.ts +2 -2
- package/dist/types/widgets/selection-summary/selection-summary.d.ts +13 -2
- package/dist/types/widgets/skeleton-loader/index.d.ts +2 -2
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +12 -2
- package/dist/types/widgets/skeleton-loader/types.d.ts +1 -1
- package/dist/types/widgets/spread/components/max-value.d.ts +5 -2
- package/dist/types/widgets/spread/components/min-value.d.ts +5 -2
- package/dist/types/widgets/spread/components/separator.d.ts +5 -2
- package/dist/types/widgets/spread/config.d.ts +14 -8
- package/dist/types/widgets/spread/index.d.ts +9 -9
- package/dist/types/widgets/spread/skeleton.d.ts +1 -1
- package/dist/types/widgets/spread/spread-ui.d.ts +5 -2
- package/dist/types/widgets/spread/types.d.ts +4 -4
- package/dist/types/widgets/stores/index.d.ts +3 -2
- package/dist/types/widgets/stores/types.d.ts +31 -10
- package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
- package/dist/types/widgets/stores/widget-store.d.ts +48 -27
- package/dist/types/widgets/subheader/index.d.ts +2 -2
- package/dist/types/widgets/subheader/subheader.d.ts +13 -2
- package/dist/types/widgets/table/components/cell-header.d.ts +2 -2
- package/dist/types/widgets/table/components/cell.d.ts +4 -2
- package/dist/types/widgets/table/components/pagination-actions.d.ts +2 -2
- package/dist/types/widgets/table/components/pagination.d.ts +2 -2
- package/dist/types/widgets/table/components/row.d.ts +2 -2
- package/dist/types/widgets/table/config.d.ts +10 -6
- package/dist/types/widgets/table/hooks/use-pagination.d.ts +12 -4
- package/dist/types/widgets/table/hooks/use-selection.d.ts +12 -3
- package/dist/types/widgets/table/hooks/use-sort.d.ts +12 -4
- package/dist/types/widgets/table/index.d.ts +17 -13
- package/dist/types/widgets/table/serializer.d.ts +1 -1
- package/dist/types/widgets/table/skeleton.d.ts +1 -1
- package/dist/types/widgets/table/table-ui.d.ts +8 -8
- package/dist/types/widgets/table/types.d.ts +5 -5
- package/dist/types/widgets/timeseries/config.d.ts +8 -4
- package/dist/types/widgets/timeseries/index.d.ts +3 -3
- package/dist/types/widgets/timeseries/skeleton.d.ts +1 -1
- package/dist/types/widgets/timeseries/types.d.ts +3 -3
- package/dist/types/widgets/toolbar-actions/index.d.ts +2 -2
- package/dist/types/widgets/toolbar-actions/toolbar-actions.d.ts +13 -4
- package/dist/types/widgets/toolbar-actions/types.d.ts +10 -3
- package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +1 -1
- package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
- package/dist/types/widgets/utils/chart-config/index.d.ts +9 -0
- package/dist/types/widgets/utils/chart-config/option-builders.d.ts +142 -0
- package/dist/types/widgets/utils/formatter.d.ts +2 -0
- package/dist/types/widgets/utils/index.d.ts +7 -0
- package/dist/types/widgets/utils/skeleton/index.d.ts +4 -0
- package/dist/types/widgets/wrapper/components/actions.d.ts +5 -2
- package/dist/types/widgets/wrapper/components/options.d.ts +5 -2
- package/dist/types/widgets/wrapper/components/title.d.ts +5 -2
- package/dist/types/widgets/wrapper/index.d.ts +6 -6
- package/dist/types/widgets/wrapper/types.d.ts +1 -1
- package/dist/types/widgets/wrapper/wrapper-ui.d.ts +16 -2
- package/dist/types/widgets/wrapper/wrapper.d.ts +16 -2
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
- package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
- package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
- package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/change-column/labels.d.ts +6 -0
- package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +59 -0
- package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
- package/dist/types/widgets-v2/actions/download/constants.d.ts +12 -0
- package/dist/types/widgets-v2/actions/download/csv-item.d.ts +38 -0
- package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
- package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
- package/dist/types/widgets-v2/actions/download/icons.d.ts +18 -0
- package/dist/types/widgets-v2/actions/download/index.d.ts +8 -0
- package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
- package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
- package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
- package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
- package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +78 -0
- package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +57 -0
- package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
- package/dist/types/widgets-v2/actions/index.d.ts +10 -0
- package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
- package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +57 -0
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
- package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
- package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
- package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
- package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
- package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
- package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
- package/dist/types/widgets-v2/actions/show-all/index.d.ts +2 -0
- package/dist/types/widgets-v2/actions/show-all/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +33 -0
- package/dist/types/widgets-v2/actions/show-all/style.d.ts +8 -0
- package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
- package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
- package/dist/types/widgets-v2/bar/download.d.ts +24 -0
- package/dist/types/widgets-v2/bar/index.d.ts +4 -0
- package/dist/types/widgets-v2/bar/options.d.ts +43 -0
- package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
- package/dist/types/widgets-v2/bar/types.d.ts +46 -0
- package/dist/types/widgets-v2/category/category-ui.d.ts +88 -0
- package/dist/types/widgets-v2/category/category.d.ts +55 -0
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +34 -0
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +26 -0
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +43 -0
- package/dist/types/widgets-v2/category/download.d.ts +16 -0
- package/dist/types/widgets-v2/category/index.d.ts +10 -0
- package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
- package/dist/types/widgets-v2/category/style.d.ts +193 -0
- package/dist/types/widgets-v2/category/types.d.ts +55 -0
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
- package/dist/types/widgets-v2/echart/echart.d.ts +83 -0
- package/dist/types/widgets-v2/echart/edge-label-clamp.d.ts +57 -0
- package/dist/types/widgets-v2/echart/index.d.ts +4 -0
- package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
- package/dist/types/widgets-v2/echart/style.d.ts +7 -0
- package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +57 -0
- package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
- package/dist/types/widgets-v2/formula/download.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
- package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
- package/dist/types/widgets-v2/formula/index.d.ts +11 -0
- package/dist/types/widgets-v2/formula/note.d.ts +11 -0
- package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/series.d.ts +16 -0
- package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/formula/style.d.ts +29 -0
- package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
- package/dist/types/widgets-v2/formula/types.d.ts +43 -0
- package/dist/types/widgets-v2/formula/value.d.ts +14 -0
- package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
- package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
- package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/histogram/transforms.d.ts +28 -0
- package/dist/types/widgets-v2/histogram/types.d.ts +60 -0
- package/dist/types/widgets-v2/index.d.ts +109 -0
- package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
- package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +40 -0
- package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
- package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
- package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
- package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
- package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
- package/dist/types/widgets-v2/note/labels.d.ts +5 -0
- package/dist/types/widgets-v2/note/style.d.ts +26 -0
- package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
- package/dist/types/widgets-v2/pie/download.d.ts +17 -0
- package/dist/types/widgets-v2/pie/index.d.ts +4 -0
- package/dist/types/widgets-v2/pie/options.d.ts +35 -0
- package/dist/types/widgets-v2/pie/skeleton.d.ts +13 -0
- package/dist/types/widgets-v2/pie/types.d.ts +57 -0
- package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
- package/dist/types/widgets-v2/range/index.d.ts +4 -0
- package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
- package/dist/types/widgets-v2/range/range.d.ts +24 -0
- package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/range/style.d.ts +40 -0
- package/dist/types/widgets-v2/range/types.d.ts +37 -0
- package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
- package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
- package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
- package/dist/types/widgets-v2/scatterplot/transforms.d.ts +26 -0
- package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
- package/dist/types/widgets-v2/selection-summary/labels.d.ts +11 -0
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +29 -0
- package/dist/types/widgets-v2/selection-summary/style.d.ts +38 -0
- package/dist/types/widgets-v2/spread/band.d.ts +37 -0
- package/dist/types/widgets-v2/spread/download.d.ts +15 -0
- package/dist/types/widgets-v2/spread/index.d.ts +7 -0
- package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
- package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
- package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
- package/dist/types/widgets-v2/spread/types.d.ts +25 -0
- package/dist/types/widgets-v2/state/labels.d.ts +7 -0
- package/dist/types/widgets-v2/state/style.d.ts +19 -0
- package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
- package/dist/types/widgets-v2/stores/index.d.ts +8 -0
- package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
- package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
- package/dist/types/widgets-v2/stores/types.d.ts +55 -0
- package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
- package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
- package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
- package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
- package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
- package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
- package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets-v2/table/download.d.ts +18 -0
- package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
- package/dist/types/widgets-v2/table/index.d.ts +8 -0
- package/dist/types/widgets-v2/table/labels.d.ts +22 -0
- package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
- package/dist/types/widgets-v2/table/style.d.ts +40 -0
- package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
- package/dist/types/widgets-v2/table/table.d.ts +50 -0
- package/dist/types/widgets-v2/table/transforms.d.ts +15 -0
- package/dist/types/widgets-v2/table/types.d.ts +48 -0
- package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
- package/dist/types/widgets-v2/timeseries/index.d.ts +5 -0
- package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
- package/dist/types/widgets-v2/timeseries/transforms.d.ts +10 -0
- package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
- package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
- package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
- package/dist/types/widgets-v2/types.d.ts +25 -0
- package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
- package/dist/types/widgets-v2/utils/index.d.ts +3 -0
- package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
- package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
- package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
- package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
- package/dist/types/widgets-v2/wrapper/style.d.ts +103 -0
- package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
- package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +56 -0
- package/dist/use-widget-selector-VSPhfhNm.js +12 -0
- package/dist/use-widget-selector-VSPhfhNm.js.map +1 -0
- package/dist/utils-Dr6gf3vD.js +58 -0
- package/dist/utils-Dr6gf3vD.js.map +1 -0
- package/dist/widget-store-BFPKYm4R.js +187 -0
- package/dist/widget-store-BFPKYm4R.js.map +1 -0
- package/dist/widgets/actions.js +2 -837
- package/dist/widgets/bar.js +183 -186
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +438 -455
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +3 -123
- package/dist/widgets/error.js +30 -5
- package/dist/widgets/error.js.map +1 -1
- package/dist/widgets/formula.js +3 -125
- package/dist/widgets/histogram.js +185 -167
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/loader.js +66 -0
- package/dist/widgets/loader.js.map +1 -0
- package/dist/widgets/markdown.js +142 -121
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/no-data.js +55 -5
- package/dist/widgets/no-data.js.map +1 -1
- package/dist/widgets/note.js +126 -4
- package/dist/widgets/note.js.map +1 -1
- package/dist/widgets/pie.js +244 -208
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +226 -210
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +219 -216
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/selection-summary.js +39 -38
- package/dist/widgets/selection-summary.js.map +1 -1
- package/dist/widgets/skeleton-loader.js +23 -23
- package/dist/widgets/skeleton-loader.js.map +1 -1
- package/dist/widgets/spread.js +150 -159
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/stores.js +3 -5
- package/dist/widgets/subheader.js +49 -50
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js +573 -653
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +175 -170
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/toolbar-actions.js +144 -6105
- package/dist/widgets/toolbar-actions.js.map +1 -1
- package/dist/widgets/utils.js +18 -0
- package/dist/widgets/utils.js.map +1 -0
- package/dist/widgets/wrapper.js +265 -287
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +4 -0
- package/dist/widgets-v2/bar.js +260 -0
- package/dist/widgets-v2/bar.js.map +1 -0
- package/dist/widgets-v2/category.js +2 -0
- package/dist/widgets-v2/echart.js +2 -0
- package/dist/widgets-v2/formula.js +2 -0
- package/dist/widgets-v2/histogram.js +297 -0
- package/dist/widgets-v2/histogram.js.map +1 -0
- package/dist/widgets-v2/markdown.js +3 -0
- package/dist/widgets-v2/pie.js +373 -0
- package/dist/widgets-v2/pie.js.map +1 -0
- package/dist/widgets-v2/range.js +2 -0
- package/dist/widgets-v2/scatterplot.js +330 -0
- package/dist/widgets-v2/scatterplot.js.map +1 -0
- package/dist/widgets-v2/spread.js +2 -0
- package/dist/widgets-v2/stores.js +2 -0
- package/dist/widgets-v2/table.js +2 -0
- package/dist/widgets-v2/timeseries.js +294 -0
- package/dist/widgets-v2/timeseries.js.map +1 -0
- package/dist/widgets-v2/utils.js +2 -0
- package/dist/widgets-v2.js +964 -0
- package/dist/widgets-v2.js.map +1 -0
- package/dist/zoom-toggle-IsF8BnAp.js +163 -0
- package/dist/zoom-toggle-IsF8BnAp.js.map +1 -0
- package/package.json +109 -17
- package/src/chat/bubbles/chat-agent-message-markdown.test.tsx +38 -0
- package/src/chat/bubbles/chat-agent-message-markdown.tsx +34 -0
- package/src/chat/bubbles/chat-agent-message.test.tsx +42 -0
- package/src/chat/bubbles/chat-agent-message.tsx +31 -0
- package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
- package/src/chat/bubbles/chat-error-message.tsx +47 -0
- package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
- package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
- package/src/chat/bubbles/chat-user-message.tsx +27 -0
- package/src/chat/bubbles/index.ts +5 -0
- package/src/chat/bubbles/styles.ts +171 -0
- package/src/chat/const.ts +4 -0
- package/src/chat/containers/chat-content.test.tsx +269 -0
- package/src/chat/containers/chat-content.tsx +145 -0
- package/src/chat/containers/chat-footer.test.tsx +93 -0
- package/src/chat/containers/chat-footer.tsx +166 -0
- package/src/chat/containers/chat-header.test.tsx +28 -0
- package/src/chat/containers/chat-header.tsx +29 -0
- package/src/chat/containers/chat-starter.test.tsx +32 -0
- package/src/chat/containers/chat-starter.tsx +75 -0
- package/src/chat/containers/index.ts +4 -0
- package/src/chat/containers/styles.ts +187 -0
- package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
- package/src/chat/feedback/chat-actions-container.tsx +10 -0
- package/src/chat/feedback/chat-loader.test.tsx +10 -0
- package/src/chat/feedback/chat-loader.tsx +31 -0
- package/src/chat/feedback/chat-rating-action.tsx +43 -0
- package/src/chat/feedback/chat-thinking.test.tsx +15 -0
- package/src/chat/feedback/chat-thinking.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.test.tsx +23 -0
- package/src/chat/feedback/chat-tool-code-area.tsx +71 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.test.tsx +39 -0
- package/src/chat/feedback/chat-tool-full-view-dialog.tsx +121 -0
- package/src/chat/feedback/chat-tool-group.test.tsx +84 -0
- package/src/chat/feedback/chat-tool-group.tsx +156 -0
- package/src/chat/feedback/chat-tool-trace.test.tsx +81 -0
- package/src/chat/feedback/chat-tool-trace.tsx +192 -0
- package/src/chat/feedback/get-tool-label.test.tsx +91 -0
- package/src/chat/feedback/get-tool-label.ts +13 -0
- package/src/chat/feedback/index.ts +8 -0
- package/src/chat/feedback/styles.ts +239 -0
- package/src/chat/index.ts +62 -0
- package/src/chat/types.ts +247 -0
- package/src/chat/use-typewriter.test.tsx +38 -0
- package/src/chat/use-typewriter.ts +90 -0
- package/src/components/basemaps/basemaps.test.tsx +196 -0
- package/src/components/basemaps/basemaps.tsx +150 -0
- package/src/components/basemaps/const.ts +13 -0
- package/src/components/basemaps/group-wrapper.test.tsx +38 -0
- package/src/components/basemaps/group-wrapper.tsx +28 -0
- package/src/components/basemaps/group.test.tsx +52 -0
- package/src/components/basemaps/group.tsx +42 -0
- package/src/components/basemaps/header.test.tsx +54 -0
- package/src/components/basemaps/header.tsx +36 -0
- package/src/components/basemaps/styles.ts +76 -0
- package/src/components/basemaps/types.ts +30 -0
- package/src/components/common-types.ts +1 -0
- package/src/components/copy-button/copy-button.test.tsx +41 -0
- package/src/components/copy-button/copy-button.tsx +31 -0
- package/src/components/copy-button/types.ts +10 -0
- package/src/components/geolocation-controls/const.ts +6 -0
- package/src/components/geolocation-controls/geolocation-controls.test.tsx +148 -0
- package/src/components/geolocation-controls/geolocation-controls.tsx +126 -0
- package/src/components/geolocation-controls/types.ts +17 -0
- package/src/components/index.ts +163 -0
- package/src/components/lasso-tool/chip.test.tsx +257 -0
- package/src/components/lasso-tool/chip.tsx +66 -0
- package/src/components/lasso-tool/const.tsx +94 -0
- package/src/components/lasso-tool/edit-confirm-toolbar.test.tsx +67 -0
- package/src/components/lasso-tool/edit-confirm-toolbar.tsx +48 -0
- package/src/components/lasso-tool/geometry-toolbar.test.tsx +804 -0
- package/src/components/lasso-tool/geometry-toolbar.tsx +158 -0
- package/src/components/lasso-tool/icons.tsx +193 -0
- package/src/components/lasso-tool/lasso-tool-inline.test.tsx +759 -0
- package/src/components/lasso-tool/lasso-tool-inline.tsx +508 -0
- package/src/components/lasso-tool/lasso-tool.test.tsx +700 -0
- package/src/components/lasso-tool/lasso-tool.tsx +673 -0
- package/src/components/lasso-tool/layer-filters.test.tsx +103 -0
- package/src/components/lasso-tool/layer-filters.tsx +242 -0
- package/src/components/lasso-tool/message.tsx +36 -0
- package/src/components/lasso-tool/options-sections.test.tsx +101 -0
- package/src/components/lasso-tool/options-sections.tsx +104 -0
- package/src/components/lasso-tool/styles.test.ts +26 -0
- package/src/components/lasso-tool/styles.ts +190 -0
- package/src/components/lasso-tool/toolbar/actions/accept-action.tsx +34 -0
- package/src/components/lasso-tool/toolbar/actions/action-menu.tsx +103 -0
- package/src/components/lasso-tool/toolbar/actions/cancel-action.tsx +34 -0
- package/src/components/lasso-tool/toolbar/actions/color-action.tsx +201 -0
- package/src/components/lasso-tool/toolbar/actions/delete-action.tsx +31 -0
- package/src/components/lasso-tool/toolbar/actions/duplicate-action.tsx +30 -0
- package/src/components/lasso-tool/toolbar/actions/edit-geometry-action.tsx +44 -0
- package/src/components/lasso-tool/toolbar/actions/edit-properties-action.tsx +487 -0
- package/src/components/lasso-tool/toolbar/actions/fill-action.tsx +55 -0
- package/src/components/lasso-tool/toolbar/actions/intersect-action.tsx +33 -0
- package/src/components/lasso-tool/toolbar/actions/label-action.tsx +292 -0
- package/src/components/lasso-tool/toolbar/actions/lock-action.tsx +40 -0
- package/src/components/lasso-tool/toolbar/actions/redo-action.tsx +35 -0
- package/src/components/lasso-tool/toolbar/actions/split-action.tsx +33 -0
- package/src/components/lasso-tool/toolbar/actions/stroke-action.tsx +57 -0
- package/src/components/lasso-tool/toolbar/actions/style-actions.test.tsx +212 -0
- package/src/components/lasso-tool/toolbar/actions/subtract-action.tsx +33 -0
- package/src/components/lasso-tool/toolbar/actions/toggle-type-action.tsx +50 -0
- package/src/components/lasso-tool/toolbar/actions/undo-action.tsx +35 -0
- package/src/components/lasso-tool/toolbar/actions/union-action.tsx +40 -0
- package/src/components/lasso-tool/toolbar/button.tsx +62 -0
- package/src/components/lasso-tool/toolbar/connected.tsx +383 -0
- package/src/components/lasso-tool/toolbar/context.tsx +65 -0
- package/src/components/lasso-tool/toolbar/index.ts +70 -0
- package/src/components/lasso-tool/toolbar/styles.ts +42 -0
- package/src/components/lasso-tool/toolbar/toolbar.test.tsx +77 -0
- package/src/components/lasso-tool/toolbar/toolbar.tsx +50 -0
- package/src/components/lasso-tool/tools-context.tsx +47 -0
- package/src/components/lasso-tool/types.ts +384 -0
- package/src/components/lasso-tool/undo-redo.test.tsx +162 -0
- package/src/components/lasso-tool/undo-redo.tsx +55 -0
- package/src/components/list-data/list-data-skeleton.test.tsx +10 -0
- package/src/components/list-data/list-data-skeleton.tsx +40 -0
- package/src/components/list-data/list-data.test.tsx +167 -0
- package/src/components/list-data/list-data.tsx +124 -0
- package/src/components/list-data/styles.ts +37 -0
- package/src/components/list-data/types.ts +25 -0
- package/src/components/measurement-tools/const.tsx +108 -0
- package/src/components/measurement-tools/icons.tsx +54 -0
- package/src/components/measurement-tools/measurement-tools.test.tsx +165 -0
- package/src/components/measurement-tools/measurement-tools.tsx +467 -0
- package/src/components/measurement-tools/styles.ts +92 -0
- package/src/components/measurement-tools/types.ts +77 -0
- package/src/components/no-data-alert/no-data-alert.test.tsx +69 -0
- package/src/components/no-data-alert/no-data-alert.tsx +59 -0
- package/src/components/responsive-drawer/responsive-drawer.test.tsx +415 -0
- package/src/components/responsive-drawer/responsive-drawer.tsx +219 -0
- package/src/components/smart-tooltip/smart-tooltip.test.tsx +168 -0
- package/src/components/smart-tooltip/smart-tooltip.tsx +74 -0
- package/src/components/tooltip/tooltip.test.tsx +86 -0
- package/src/components/tooltip/tooltip.tsx +43 -0
- package/src/components/types.ts +1 -0
- package/src/components/zoom-controls/styles.ts +27 -0
- package/src/components/zoom-controls/types.ts +19 -0
- package/src/components/zoom-controls/zoom-controls.test.tsx +101 -0
- package/src/components/zoom-controls/zoom-controls.tsx +130 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-skeleton.test.tsx +32 -0
- package/src/hooks/use-skeleton.ts +19 -0
- package/src/hooks/use-widget-ref.ts +34 -0
- package/src/legend/components/a11y.ts +14 -0
- package/src/legend/components/contexts.ts +57 -0
- package/src/legend/components/icons.tsx +22 -0
- package/src/legend/components/index.ts +38 -0
- package/src/legend/components/legend-actions/legend-actions.tsx +58 -0
- package/src/legend/components/legend-actions/styles.ts +9 -0
- package/src/legend/components/legend-category/legend-category-ui.tsx +91 -0
- package/src/legend/components/legend-category/styles.ts +61 -0
- package/src/legend/components/legend-config-select/legend-config-select.tsx +96 -0
- package/src/legend/components/legend-config-select/styles.ts +48 -0
- package/src/legend/components/legend-group/legend-group.test.tsx +297 -0
- package/src/legend/components/legend-group/legend-group.tsx +126 -0
- package/src/legend/components/legend-group/styles.ts +184 -0
- package/src/legend/components/legend-group-menu/legend-group-menu-items.tsx +132 -0
- package/src/legend/components/legend-group-menu/legend-group-menu.tsx +25 -0
- package/src/legend/components/legend-icon/legend-icon-ui.tsx +56 -0
- package/src/legend/components/legend-icon/styles.ts +56 -0
- package/src/legend/components/legend-item/legend-item-ui.test.tsx +362 -0
- package/src/legend/components/legend-item/legend-item-ui.tsx +43 -0
- package/src/legend/components/legend-item/legend-item.tsx +34 -0
- package/src/legend/components/legend-item/styles.ts +11 -0
- package/src/legend/components/legend-opacity/legend-opacity.tsx +152 -0
- package/src/legend/components/legend-opacity/styles.ts +33 -0
- package/src/legend/components/legend-overflow-menu/legend-overflow-menu.tsx +84 -0
- package/src/legend/components/legend-panel-menu/legend-panel-menu.tsx +23 -0
- package/src/legend/components/legend-proportion/legend-proportion-ui.tsx +122 -0
- package/src/legend/components/legend-proportion/styles.ts +43 -0
- package/src/legend/components/legend-ramp/legend-ramp-ui.tsx +160 -0
- package/src/legend/components/legend-ramp/styles.ts +62 -0
- package/src/legend/components/legend-row/legend-row.test.tsx +736 -0
- package/src/legend/components/legend-row/legend-row.tsx +170 -0
- package/src/legend/components/legend-row/styles.ts +219 -0
- package/src/legend/components/legend-row-menu/legend-row-menu-items.tsx +57 -0
- package/src/legend/components/legend-row-menu/legend-row-menu.tsx +30 -0
- package/src/legend/components/legend-row-menu/legend-zoom-to.tsx +43 -0
- package/src/legend/components/legend-sortable/contexts.ts +12 -0
- package/src/legend/components/legend-sortable/legend-sortable.test.tsx +144 -0
- package/src/legend/components/legend-sortable/legend-sortable.tsx +195 -0
- package/src/legend/components/legend-sortable/sortable-entity.tsx +91 -0
- package/src/legend/components/legend-sortable/sortable-ids.ts +17 -0
- package/src/legend/components/legend-sortable/styles.ts +65 -0
- package/src/legend/components/legend-swatch/legend-swatch.test.tsx +109 -0
- package/src/legend/components/legend-swatch/legend-swatch.tsx +237 -0
- package/src/legend/components/legend-visibility-toggle/legend-visibility-toggle.tsx +133 -0
- package/src/legend/components/legend-visible-layers/legend-visible-layers.test.tsx +86 -0
- package/src/legend/components/legend-visible-layers/legend-visible-layers.tsx +135 -0
- package/src/legend/components/legend-visible-layers/styles.ts +60 -0
- package/src/legend/components/run-async-menu-action.ts +20 -0
- package/src/legend/index.ts +176 -0
- package/src/legend/provider/index.ts +6 -0
- package/src/legend/provider/labels.ts +101 -0
- package/src/legend/provider/legend-config-context.ts +15 -0
- package/src/legend/provider/legend-provider.tsx +102 -0
- package/src/legend/stores/index.ts +50 -0
- package/src/legend/stores/legend-context.ts +17 -0
- package/src/legend/stores/legend-store-registry.ts +745 -0
- package/src/legend/stores/legend-store.test.ts +701 -0
- package/src/legend/stores/selectors.ts +127 -0
- package/src/legend/stores/types.ts +359 -0
- package/src/widgets/README.md +277 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
- package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
- package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
- package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
- package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
- package/src/widgets/actions/brush-toggle/style.ts +46 -0
- package/src/widgets/actions/brush-toggle/types.ts +78 -0
- package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
- package/src/widgets/actions/change-column/change-column-icon.tsx +10 -0
- package/src/widgets/actions/change-column/change-column.test.tsx +290 -0
- package/src/widgets/actions/change-column/change-column.tsx +218 -0
- package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
- package/src/widgets/actions/change-column/sortable-column-item.tsx +51 -0
- package/src/widgets/actions/change-column/types.ts +20 -0
- package/src/widgets/actions/download/download.test.tsx +326 -0
- package/src/widgets/actions/download/download.tsx +132 -0
- package/src/widgets/actions/download/exports.test.tsx +288 -0
- package/src/widgets/actions/download/exports.tsx +118 -0
- package/src/widgets/actions/download/types.ts +21 -0
- package/src/widgets/actions/fullscreen/fullscreen.test.tsx +269 -0
- package/src/widgets/actions/fullscreen/fullscreen.tsx +98 -0
- package/src/widgets/actions/fullscreen/styles.ts +17 -0
- package/src/widgets/actions/fullscreen/types.ts +32 -0
- package/src/widgets/actions/index.ts +73 -0
- package/src/widgets/actions/lock-selection/lock-selection.test.tsx +198 -0
- package/src/widgets/actions/lock-selection/lock-selection.tsx +128 -0
- package/src/widgets/actions/lock-selection/types.ts +43 -0
- package/src/widgets/actions/relative-data/relative-data.test.tsx +542 -0
- package/src/widgets/actions/relative-data/relative-data.tsx +188 -0
- package/src/widgets/actions/relative-data/types.ts +33 -0
- package/src/widgets/actions/relative-data/utils.test.ts +223 -0
- package/src/widgets/actions/relative-data/utils.ts +58 -0
- package/src/widgets/actions/searcher/searcher-toggle.test.tsx +354 -0
- package/src/widgets/actions/searcher/searcher-toggle.tsx +72 -0
- package/src/widgets/actions/searcher/searcher.tsx +196 -0
- package/src/widgets/actions/searcher/types.ts +72 -0
- package/src/widgets/actions/shared/styles.ts +12 -0
- package/src/widgets/actions/stack-toggle/grouped-bar-chart-icon.tsx +14 -0
- package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +414 -0
- package/src/widgets/actions/stack-toggle/stack-toggle.tsx +129 -0
- package/src/widgets/actions/stack-toggle/types.ts +29 -0
- package/src/widgets/actions/zoom-toggle/style.ts +14 -0
- package/src/widgets/actions/zoom-toggle/types.ts +44 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
- package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +218 -0
- package/src/widgets/bar/config.ts +140 -0
- package/src/widgets/bar/index.ts +9 -0
- package/src/widgets/bar/skeleton.tsx +60 -0
- package/src/widgets/bar/style.ts +33 -0
- package/src/widgets/bar/types.ts +16 -0
- package/src/widgets/category/category-ui.test.tsx +399 -0
- package/src/widgets/category/category-ui.tsx +166 -0
- package/src/widgets/category/components/category-bar.tsx +31 -0
- package/src/widgets/category/components/category-legend.tsx +33 -0
- package/src/widgets/category/components/category-row-multi.tsx +57 -0
- package/src/widgets/category/components/category-row-other.tsx +26 -0
- package/src/widgets/category/components/category-row-single.tsx +54 -0
- package/src/widgets/category/components/category-rows.test.tsx +213 -0
- package/src/widgets/category/config.ts +86 -0
- package/src/widgets/category/index.ts +29 -0
- package/src/widgets/category/skeleton.tsx +24 -0
- package/src/widgets/category/style.ts +134 -0
- package/src/widgets/category/types.ts +41 -0
- package/src/widgets/echart/const.ts +1 -0
- package/src/widgets/echart/echart-ui.test.tsx +526 -0
- package/src/widgets/echart/echart-ui.tsx +78 -0
- package/src/widgets/echart/echart.test.tsx +546 -0
- package/src/widgets/echart/echart.tsx +66 -0
- package/src/widgets/echart/index.ts +16 -0
- package/src/widgets/echart/options.ts +57 -0
- package/src/widgets/echart/shared-resize-observer.ts +45 -0
- package/src/widgets/echart/types.ts +45 -0
- package/src/widgets/echart/utils.test.ts +277 -0
- package/src/widgets/echart/utils.ts +244 -0
- package/src/widgets/error/error.test.tsx +331 -0
- package/src/widgets/error/error.tsx +51 -0
- package/src/widgets/error/index.ts +2 -0
- package/src/widgets/error/types.ts +24 -0
- package/src/widgets/formula/components/item.test.tsx +249 -0
- package/src/widgets/formula/components/item.tsx +21 -0
- package/src/widgets/formula/components/prefix.test.tsx +341 -0
- package/src/widgets/formula/components/prefix.tsx +19 -0
- package/src/widgets/formula/components/row.test.tsx +364 -0
- package/src/widgets/formula/components/row.tsx +24 -0
- package/src/widgets/formula/components/series.tsx +35 -0
- package/src/widgets/formula/components/suffix.test.tsx +383 -0
- package/src/widgets/formula/components/suffix.tsx +29 -0
- package/src/widgets/formula/components/value.test.tsx +329 -0
- package/src/widgets/formula/components/value.tsx +24 -0
- package/src/widgets/formula/config.test.ts +37 -0
- package/src/widgets/formula/config.ts +38 -0
- package/src/widgets/formula/formula-ui.test.tsx +399 -0
- package/src/widgets/formula/formula-ui.tsx +30 -0
- package/src/widgets/formula/index.ts +24 -0
- package/src/widgets/formula/serializer.test.tsx +144 -0
- package/src/widgets/formula/serializer.ts +28 -0
- package/src/widgets/formula/skeleton.tsx +10 -0
- package/src/widgets/formula/style.ts +23 -0
- package/src/widgets/formula/types.ts +50 -0
- package/src/widgets/histogram/config.ts +230 -0
- package/src/widgets/histogram/index.ts +13 -0
- package/src/widgets/histogram/skeleton.tsx +52 -0
- package/src/widgets/histogram/style.ts +8 -0
- package/src/widgets/histogram/types.ts +23 -0
- package/src/widgets/loader/index.ts +4 -0
- package/src/widgets/loader/loader.tsx +92 -0
- package/src/widgets/loader/types.ts +13 -0
- package/src/widgets/loader/utils.test.ts +112 -0
- package/src/widgets/loader/utils.ts +57 -0
- package/src/widgets/markdown/config.ts +28 -0
- package/src/widgets/markdown/index.ts +14 -0
- package/src/widgets/markdown/markdown-ui.test.tsx +341 -0
- package/src/widgets/markdown/markdown-ui.tsx +59 -0
- package/src/widgets/markdown/markdown.tsx +20 -0
- package/src/widgets/markdown/skeleton.tsx +12 -0
- package/src/widgets/markdown/style.ts +28 -0
- package/src/widgets/markdown/types.ts +28 -0
- package/src/widgets/no-data/index.ts +2 -0
- package/src/widgets/no-data/no-data.test.tsx +497 -0
- package/src/widgets/no-data/no-data.tsx +112 -0
- package/src/widgets/no-data/style.ts +18 -0
- package/src/widgets/no-data/types.ts +76 -0
- package/src/widgets/note/index.ts +2 -0
- package/src/widgets/note/note.test.tsx +391 -0
- package/src/widgets/note/note.tsx +124 -0
- package/src/widgets/note/style.ts +29 -0
- package/src/widgets/note/types.ts +9 -0
- package/src/widgets/pie/config.ts +245 -0
- package/src/widgets/pie/index.ts +8 -0
- package/src/widgets/pie/skeleton.tsx +70 -0
- package/src/widgets/pie/style.ts +8 -0
- package/src/widgets/pie/types.ts +16 -0
- package/src/widgets/range/components/range-item.test.tsx +243 -0
- package/src/widgets/range/components/range-item.tsx +214 -0
- package/src/widgets/range/config.ts +10 -0
- package/src/widgets/range/index.ts +16 -0
- package/src/widgets/range/range-ui.test.tsx +203 -0
- package/src/widgets/range/range-ui.tsx +14 -0
- package/src/widgets/range/serializer.test.ts +70 -0
- package/src/widgets/range/serializer.ts +27 -0
- package/src/widgets/range/skeleton.tsx +14 -0
- package/src/widgets/range/style.ts +37 -0
- package/src/widgets/range/types.ts +39 -0
- package/src/widgets/scatterplot/config.ts +136 -0
- package/src/widgets/scatterplot/index.ts +8 -0
- package/src/widgets/scatterplot/skeleton.tsx +59 -0
- package/src/widgets/scatterplot/style.ts +21 -0
- package/src/widgets/scatterplot/types.ts +17 -0
- package/src/widgets/selection-summary/index.ts +6 -0
- package/src/widgets/selection-summary/selection-summary.tsx +57 -0
- package/src/widgets/selection-summary/style.ts +10 -0
- package/src/widgets/selection-summary/types.ts +14 -0
- package/src/widgets/skeleton-loader/index.ts +2 -0
- package/src/widgets/skeleton-loader/skeleton-loader.test.tsx +139 -0
- package/src/widgets/skeleton-loader/skeleton-loader.tsx +35 -0
- package/src/widgets/skeleton-loader/types.ts +8 -0
- package/src/widgets/spread/components/max-value.tsx +29 -0
- package/src/widgets/spread/components/min-value.tsx +29 -0
- package/src/widgets/spread/components/separator.tsx +9 -0
- package/src/widgets/spread/config.ts +39 -0
- package/src/widgets/spread/index.ts +23 -0
- package/src/widgets/spread/skeleton.tsx +10 -0
- package/src/widgets/spread/spread-ui.test.tsx +368 -0
- package/src/widgets/spread/spread-ui.tsx +32 -0
- package/src/widgets/spread/style.ts +22 -0
- package/src/widgets/spread/types.ts +47 -0
- package/src/widgets/stores/index.ts +13 -0
- package/src/widgets/stores/types.ts +203 -0
- package/src/widgets/stores/use-widget-selector.ts +47 -0
- package/src/widgets/stores/widget-store-branches.test.ts +275 -0
- package/src/widgets/stores/widget-store-performance.test.ts +750 -0
- package/src/widgets/stores/widget-store.test.ts +942 -0
- package/src/widgets/stores/widget-store.ts +484 -0
- package/src/widgets/subheader/index.ts +3 -0
- package/src/widgets/subheader/style.ts +20 -0
- package/src/widgets/subheader/subheader.test.tsx +45 -0
- package/src/widgets/subheader/subheader.tsx +35 -0
- package/src/widgets/subheader/types.ts +11 -0
- package/src/widgets/table/components/cell-header.tsx +58 -0
- package/src/widgets/table/components/cell.tsx +82 -0
- package/src/widgets/table/components/pagination-actions.tsx +67 -0
- package/src/widgets/table/components/pagination.tsx +41 -0
- package/src/widgets/table/components/row.tsx +65 -0
- package/src/widgets/table/config.test.ts +65 -0
- package/src/widgets/table/config.ts +75 -0
- package/src/widgets/table/helpers.test.ts +244 -0
- package/src/widgets/table/helpers.ts +107 -0
- package/src/widgets/table/hooks/use-pagination.test.ts +294 -0
- package/src/widgets/table/hooks/use-pagination.ts +148 -0
- package/src/widgets/table/hooks/use-selection.test.ts +504 -0
- package/src/widgets/table/hooks/use-selection.ts +194 -0
- package/src/widgets/table/hooks/use-sort.test.ts +296 -0
- package/src/widgets/table/hooks/use-sort.ts +131 -0
- package/src/widgets/table/index.ts +55 -0
- package/src/widgets/table/serializer.ts +54 -0
- package/src/widgets/table/skeleton.tsx +48 -0
- package/src/widgets/table/style.ts +34 -0
- package/src/widgets/table/table-ui.tsx +64 -0
- package/src/widgets/table/types.ts +223 -0
- package/src/widgets/timeseries/config.ts +136 -0
- package/src/widgets/timeseries/index.ts +8 -0
- package/src/widgets/timeseries/skeleton.tsx +55 -0
- package/src/widgets/timeseries/style.ts +36 -0
- package/src/widgets/timeseries/types.ts +17 -0
- package/src/widgets/toolbar-actions/index.ts +6 -0
- package/src/widgets/toolbar-actions/styles.ts +38 -0
- package/src/widgets/toolbar-actions/toolbar-actions.test.tsx +691 -0
- package/src/widgets/toolbar-actions/toolbar-actions.tsx +145 -0
- package/src/widgets/toolbar-actions/types.ts +60 -0
- package/src/widgets/utils/chart-config/config-factory.ts +67 -0
- package/src/widgets/utils/chart-config/csv-modifiers.ts +56 -0
- package/src/widgets/utils/chart-config/download-config.ts +22 -0
- package/src/widgets/utils/chart-config/index.ts +29 -0
- package/src/widgets/utils/chart-config/option-builders.test.ts +366 -0
- package/src/widgets/utils/chart-config/option-builders.ts +308 -0
- package/src/widgets/utils/formatter.ts +2 -0
- package/src/widgets/utils/index.ts +26 -0
- package/{dist/types/widgets/_shared/skeleton/index.d.ts → src/widgets/utils/skeleton/index.ts} +2 -1
- package/src/widgets/utils/skeleton/styles.ts +20 -0
- package/src/widgets/wrapper/components/actions.test.tsx +105 -0
- package/src/widgets/wrapper/components/actions.tsx +35 -0
- package/src/widgets/wrapper/components/options.test.tsx +331 -0
- package/src/widgets/wrapper/components/options.tsx +81 -0
- package/src/widgets/wrapper/components/title.test.tsx +126 -0
- package/src/widgets/wrapper/components/title.tsx +35 -0
- package/src/widgets/wrapper/index.ts +16 -0
- package/src/widgets/wrapper/styles.ts +98 -0
- package/src/widgets/wrapper/types.ts +55 -0
- package/src/widgets/wrapper/wrapper-ui.test.tsx +232 -0
- package/src/widgets/wrapper/wrapper-ui.tsx +72 -0
- package/src/widgets/wrapper/wrapper.test.tsx +365 -0
- package/src/widgets/wrapper/wrapper.tsx +60 -0
- package/src/widgets-v2/PERFORMANCE.md +189 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
- package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
- package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
- package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
- package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
- package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
- package/src/widgets-v2/actions/change-column/change-column.tsx +189 -0
- package/src/widgets-v2/actions/change-column/index.ts +7 -0
- package/src/widgets-v2/actions/change-column/labels.ts +11 -0
- package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +63 -0
- package/src/widgets-v2/actions/change-column/style.ts +58 -0
- package/src/widgets-v2/actions/change-column/types.ts +11 -0
- package/src/widgets-v2/actions/download/constants.ts +14 -0
- package/src/widgets-v2/actions/download/csv-item.test.tsx +77 -0
- package/src/widgets-v2/actions/download/csv-item.tsx +71 -0
- package/src/widgets-v2/actions/download/download.test.tsx +327 -0
- package/src/widgets-v2/actions/download/download.tsx +144 -0
- package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
- package/src/widgets-v2/actions/download/exports.ts +115 -0
- package/src/widgets-v2/actions/download/icons.tsx +35 -0
- package/src/widgets-v2/actions/download/index.ts +15 -0
- package/src/widgets-v2/actions/download/labels.ts +16 -0
- package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
- package/src/widgets-v2/actions/download/png-item.tsx +53 -0
- package/src/widgets-v2/actions/download/style.ts +3 -0
- package/src/widgets-v2/actions/download/types.ts +32 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +212 -0
- package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +301 -0
- package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
- package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
- package/src/widgets-v2/actions/fullscreen/style.ts +86 -0
- package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
- package/src/widgets-v2/actions/index.ts +95 -0
- package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
- package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +301 -0
- package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +188 -0
- package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
- package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
- package/src/widgets-v2/actions/relative-data/index.ts +3 -0
- package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
- package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
- package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
- package/src/widgets-v2/actions/relative-data/style.ts +11 -0
- package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
- package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
- package/src/widgets-v2/actions/searcher/filter.ts +28 -0
- package/src/widgets-v2/actions/searcher/index.ts +8 -0
- package/src/widgets-v2/actions/searcher/labels.ts +13 -0
- package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
- package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
- package/src/widgets-v2/actions/searcher/searcher.tsx +111 -0
- package/src/widgets-v2/actions/searcher/style.ts +15 -0
- package/src/widgets-v2/actions/show-all/index.ts +7 -0
- package/src/widgets-v2/actions/show-all/labels.ts +8 -0
- package/src/widgets-v2/actions/show-all/show-all.test.tsx +50 -0
- package/src/widgets-v2/actions/show-all/show-all.tsx +72 -0
- package/src/widgets-v2/actions/show-all/style.ts +8 -0
- package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
- package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
- package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
- package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
- package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
- package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
- package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
- package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
- package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
- package/src/widgets-v2/bar/download.test.tsx +91 -0
- package/src/widgets-v2/bar/download.tsx +60 -0
- package/src/widgets-v2/bar/index.ts +10 -0
- package/src/widgets-v2/bar/options.test.ts +361 -0
- package/src/widgets-v2/bar/options.ts +333 -0
- package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
- package/src/widgets-v2/bar/skeleton.tsx +69 -0
- package/src/widgets-v2/bar/types.ts +51 -0
- package/src/widgets-v2/category/category-ui.test.tsx +909 -0
- package/src/widgets-v2/category/category-ui.tsx +479 -0
- package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
- package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
- package/src/widgets-v2/category/category.test.tsx +305 -0
- package/src/widgets-v2/category/category.tsx +130 -0
- package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
- package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
- package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
- package/src/widgets-v2/category/components/category-bar.tsx +49 -0
- package/src/widgets-v2/category/components/category-legend.test.tsx +102 -0
- package/src/widgets-v2/category/components/category-legend.tsx +82 -0
- package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
- package/src/widgets-v2/category/components/category-row-other.test.tsx +57 -0
- package/src/widgets-v2/category/components/category-row-other.tsx +84 -0
- package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
- package/src/widgets-v2/category/components/category-row-stacked.test.tsx +248 -0
- package/src/widgets-v2/category/components/category-row-stacked.tsx +104 -0
- package/src/widgets-v2/category/download.test.ts +80 -0
- package/src/widgets-v2/category/download.ts +50 -0
- package/src/widgets-v2/category/index.ts +32 -0
- package/src/widgets-v2/category/skeleton.test.tsx +26 -0
- package/src/widgets-v2/category/skeleton.tsx +74 -0
- package/src/widgets-v2/category/style.ts +329 -0
- package/src/widgets-v2/category/types.ts +61 -0
- package/src/widgets-v2/echart/echart-ui.test.tsx +330 -0
- package/src/widgets-v2/echart/echart-ui.tsx +236 -0
- package/src/widgets-v2/echart/echart.test.tsx +229 -0
- package/src/widgets-v2/echart/echart.tsx +209 -0
- package/src/widgets-v2/echart/edge-label-clamp.test.ts +198 -0
- package/src/widgets-v2/echart/edge-label-clamp.ts +217 -0
- package/src/widgets-v2/echart/index.ts +22 -0
- package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
- package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
- package/src/widgets-v2/echart/style.ts +17 -0
- package/src/widgets-v2/echart/use-chart-selection.test.tsx +120 -0
- package/src/widgets-v2/echart/use-chart-selection.ts +121 -0
- package/src/widgets-v2/formula/delta.tsx +61 -0
- package/src/widgets-v2/formula/download.test.tsx +65 -0
- package/src/widgets-v2/formula/download.tsx +63 -0
- package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
- package/src/widgets-v2/formula/formula-ui.tsx +66 -0
- package/src/widgets-v2/formula/formula.test.tsx +50 -0
- package/src/widgets-v2/formula/formula.tsx +34 -0
- package/src/widgets-v2/formula/index.ts +17 -0
- package/src/widgets-v2/formula/note.tsx +25 -0
- package/src/widgets-v2/formula/prefix.tsx +25 -0
- package/src/widgets-v2/formula/series.tsx +67 -0
- package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
- package/src/widgets-v2/formula/skeleton.tsx +27 -0
- package/src/widgets-v2/formula/style.ts +31 -0
- package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
- package/src/widgets-v2/formula/suffix.tsx +25 -0
- package/src/widgets-v2/formula/types.ts +48 -0
- package/src/widgets-v2/formula/value.tsx +31 -0
- package/src/widgets-v2/histogram/download.test.ts +94 -0
- package/src/widgets-v2/histogram/download.ts +56 -0
- package/src/widgets-v2/histogram/index.ts +13 -0
- package/src/widgets-v2/histogram/options.test.ts +411 -0
- package/src/widgets-v2/histogram/options.ts +390 -0
- package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
- package/src/widgets-v2/histogram/skeleton.tsx +70 -0
- package/src/widgets-v2/histogram/transforms.test.ts +81 -0
- package/src/widgets-v2/histogram/transforms.ts +53 -0
- package/src/widgets-v2/histogram/types.ts +64 -0
- package/src/widgets-v2/index.ts +212 -0
- package/src/widgets-v2/markdown/download.test.ts +66 -0
- package/src/widgets-v2/markdown/download.tsx +56 -0
- package/src/widgets-v2/markdown/index.ts +6 -0
- package/src/widgets-v2/markdown/markdown-content.test.tsx +165 -0
- package/src/widgets-v2/markdown/markdown-content.tsx +81 -0
- package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
- package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
- package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
- package/src/widgets-v2/markdown/markdown.tsx +17 -0
- package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
- package/src/widgets-v2/markdown/skeleton.tsx +32 -0
- package/src/widgets-v2/markdown/style.ts +53 -0
- package/src/widgets-v2/markdown/types.ts +4 -0
- package/src/widgets-v2/note/labels.ts +9 -0
- package/src/widgets-v2/note/style.ts +26 -0
- package/src/widgets-v2/note/widget-note.test.tsx +158 -0
- package/src/widgets-v2/note/widget-note.tsx +172 -0
- package/src/widgets-v2/pie/download.test.ts +78 -0
- package/src/widgets-v2/pie/download.ts +51 -0
- package/src/widgets-v2/pie/index.ts +10 -0
- package/src/widgets-v2/pie/options.test.ts +938 -0
- package/src/widgets-v2/pie/options.ts +606 -0
- package/src/widgets-v2/pie/skeleton.test.tsx +20 -0
- package/src/widgets-v2/pie/skeleton.tsx +94 -0
- package/src/widgets-v2/pie/types.ts +62 -0
- package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
- package/src/widgets-v2/provider/widget-provider.tsx +111 -0
- package/src/widgets-v2/range/index.ts +4 -0
- package/src/widgets-v2/range/range-ui.test.tsx +136 -0
- package/src/widgets-v2/range/range-ui.tsx +278 -0
- package/src/widgets-v2/range/range.test.tsx +68 -0
- package/src/widgets-v2/range/range.tsx +52 -0
- package/src/widgets-v2/range/skeleton.test.tsx +17 -0
- package/src/widgets-v2/range/skeleton.tsx +47 -0
- package/src/widgets-v2/range/style.ts +41 -0
- package/src/widgets-v2/range/types.ts +37 -0
- package/src/widgets-v2/scatterplot/download.test.ts +71 -0
- package/src/widgets-v2/scatterplot/download.ts +50 -0
- package/src/widgets-v2/scatterplot/index.ts +14 -0
- package/src/widgets-v2/scatterplot/options.test.ts +411 -0
- package/src/widgets-v2/scatterplot/options.ts +422 -0
- package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
- package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
- package/src/widgets-v2/scatterplot/transforms.test.ts +134 -0
- package/src/widgets-v2/scatterplot/transforms.ts +61 -0
- package/src/widgets-v2/scatterplot/types.ts +59 -0
- package/src/widgets-v2/selection-summary/labels.ts +15 -0
- package/src/widgets-v2/selection-summary/selection-summary.test.tsx +59 -0
- package/src/widgets-v2/selection-summary/selection-summary.tsx +82 -0
- package/src/widgets-v2/selection-summary/style.ts +38 -0
- package/src/widgets-v2/spread/band.test.ts +46 -0
- package/src/widgets-v2/spread/band.ts +47 -0
- package/src/widgets-v2/spread/download.test.ts +64 -0
- package/src/widgets-v2/spread/download.ts +55 -0
- package/src/widgets-v2/spread/index.ts +11 -0
- package/src/widgets-v2/spread/separator.tsx +11 -0
- package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
- package/src/widgets-v2/spread/skeleton.tsx +38 -0
- package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
- package/src/widgets-v2/spread/spread-ui.tsx +52 -0
- package/src/widgets-v2/spread/spread.test.tsx +50 -0
- package/src/widgets-v2/spread/spread.tsx +31 -0
- package/src/widgets-v2/spread/types.ts +27 -0
- package/src/widgets-v2/state/labels.test.ts +33 -0
- package/src/widgets-v2/state/labels.ts +20 -0
- package/src/widgets-v2/state/style.ts +25 -0
- package/src/widgets-v2/state/widget-state.test.tsx +294 -0
- package/src/widgets-v2/state/widget-state.tsx +184 -0
- package/src/widgets-v2/stores/index.ts +49 -0
- package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
- package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
- package/src/widgets-v2/stores/transforms.test.ts +162 -0
- package/src/widgets-v2/stores/transforms.ts +70 -0
- package/src/widgets-v2/stores/types.ts +64 -0
- package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
- package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
- package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
- package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
- package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
- package/src/widgets-v2/stores/use-transform.ts +158 -0
- package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
- package/src/widgets-v2/stores/widget-context.ts +15 -0
- package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
- package/src/widgets-v2/stores/widget-store-registry.ts +239 -0
- package/src/widgets-v2/subheader/style.ts +12 -0
- package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
- package/src/widgets-v2/subheader/subheader.tsx +16 -0
- package/src/widgets-v2/table/download.test.ts +85 -0
- package/src/widgets-v2/table/download.ts +43 -0
- package/src/widgets-v2/table/helpers.test.ts +233 -0
- package/src/widgets-v2/table/helpers.ts +131 -0
- package/src/widgets-v2/table/index.ts +24 -0
- package/src/widgets-v2/table/labels.tsx +41 -0
- package/src/widgets-v2/table/skeleton.test.tsx +26 -0
- package/src/widgets-v2/table/skeleton.tsx +65 -0
- package/src/widgets-v2/table/style.ts +43 -0
- package/src/widgets-v2/table/table-ui.test.tsx +200 -0
- package/src/widgets-v2/table/table-ui.tsx +364 -0
- package/src/widgets-v2/table/table.test.tsx +119 -0
- package/src/widgets-v2/table/table.tsx +179 -0
- package/src/widgets-v2/table/transforms.test.ts +40 -0
- package/src/widgets-v2/table/transforms.ts +28 -0
- package/src/widgets-v2/table/types.ts +55 -0
- package/src/widgets-v2/test-utils.ts +107 -0
- package/src/widgets-v2/timeseries/download.test.ts +95 -0
- package/src/widgets-v2/timeseries/download.ts +82 -0
- package/src/widgets-v2/timeseries/index.ts +11 -0
- package/src/widgets-v2/timeseries/options.test.ts +399 -0
- package/src/widgets-v2/timeseries/options.ts +342 -0
- package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
- package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
- package/src/widgets-v2/timeseries/transforms.test.ts +49 -0
- package/src/widgets-v2/timeseries/transforms.ts +31 -0
- package/src/widgets-v2/timeseries/types.ts +65 -0
- package/src/widgets-v2/toolbox/labels.ts +9 -0
- package/src/widgets-v2/toolbox/style.ts +33 -0
- package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
- package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
- package/src/widgets-v2/types.ts +25 -0
- package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
- package/src/widgets-v2/utils/index.ts +3 -0
- package/src/widgets-v2/utils/merge-options.test.ts +52 -0
- package/src/widgets-v2/utils/merge-options.ts +50 -0
- package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
- package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
- package/src/widgets-v2/wrapper/index.ts +14 -0
- package/src/widgets-v2/wrapper/labels.ts +11 -0
- package/src/widgets-v2/wrapper/style.ts +128 -0
- package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
- package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
- package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
- package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +255 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +194 -0
- package/dist/cjs-D9ro6BXv.js +0 -85
- package/dist/cjs-D9ro6BXv.js.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/error-B2IJ9d2h.js +0 -38
- package/dist/error-B2IJ9d2h.js.map +0 -1
- package/dist/exports-Cr43OCul.js +0 -51
- package/dist/exports-Cr43OCul.js.map +0 -1
- package/dist/lasso-tool-CYn3ivf-.js +0 -534
- package/dist/lasso-tool-CYn3ivf-.js.map +0 -1
- package/dist/markdown-ui-CpNYUPqC.js +0 -68
- package/dist/markdown-ui-CpNYUPqC.js.map +0 -1
- package/dist/no-data-C54XJt13.js +0 -61
- package/dist/no-data-C54XJt13.js.map +0 -1
- package/dist/note-Clng2ej6.js +0 -124
- package/dist/note-Clng2ej6.js.map +0 -1
- package/dist/options-D9wflre6.js +0 -49
- package/dist/options-D9wflre6.js.map +0 -1
- package/dist/row-DLKZN5aF.js +0 -33
- package/dist/row-DLKZN5aF.js.map +0 -1
- package/dist/row-DrHwXNvF.js +0 -35
- package/dist/row-DrHwXNvF.js.map +0 -1
- package/dist/series-Cf1QPZHV.js +0 -83
- package/dist/series-Cf1QPZHV.js.map +0 -1
- package/dist/series-Do02NQUF.js +0 -91
- package/dist/series-Do02NQUF.js.map +0 -1
- package/dist/smart-tooltip-BEtBaIdz.js +0 -39
- package/dist/smart-tooltip-BEtBaIdz.js.map +0 -1
- package/dist/styles-CcC5L2cr.js +0 -77
- package/dist/styles-CcC5L2cr.js.map +0 -1
- package/dist/styles-dOu_pRNb.js +0 -77
- package/dist/styles-dOu_pRNb.js.map +0 -1
- package/dist/tooltip-BDnrRKrp.js +0 -25
- package/dist/tooltip-BDnrRKrp.js.map +0 -1
- package/dist/types/common/common.d.ts +0 -3
- package/dist/types/common/index.d.ts +0 -26
- package/dist/types/common/lasso-tools.d.ts +0 -36
- package/dist/types/common/measurement-tools.d.ts +0 -65
- package/dist/types/hooks/use-debounce.d.ts +0 -19
- package/dist/types/widgets/_shared/chart-config/index.d.ts +0 -7
- package/dist/types/widgets/_shared/chart-config/option-builders.d.ts +0 -34
- package/dist/types/widgets/actions/relative-data/style.d.ts +0 -8
- package/dist/types/widgets/actions/relative-data/utils.test.d.ts +0 -1
- package/dist/types/widgets/actions/zoom-toggle/index.d.ts +0 -2
- package/dist/types/widgets/category/components/index.d.ts +0 -10
- package/dist/types/widgets/index.d.ts +0 -8
- package/dist/types/widgets/range/serializer.test.d.ts +0 -1
- package/dist/types/widgets/root/index.d.ts +0 -3
- package/dist/types/widgets/root/root.d.ts +0 -2
- package/dist/types/widgets/root/types.d.ts +0 -9
- package/dist/types/widgets/root/utils.d.ts +0 -1
- package/dist/types/widgets/stores/widget-store.test.d.ts +0 -1
- package/dist/types/widgets/table/components/index.d.ts +0 -4
- package/dist/types/widgets/table/helpers.test.d.ts +0 -1
- package/dist/types/widgets/table/hooks/index.d.ts +0 -6
- package/dist/types/widgets/table/hooks/use-pagination.test.d.ts +0 -1
- package/dist/types/widgets/table/hooks/use-selection.test.d.ts +0 -1
- package/dist/types/widgets/table/hooks/use-sort.test.d.ts +0 -1
- package/dist/utils-DNtU8q7E.js +0 -144
- package/dist/utils-DNtU8q7E.js.map +0 -1
- package/dist/utils-Dv5Z47UQ.js +0 -144
- package/dist/utils-Dv5Z47UQ.js.map +0 -1
- package/dist/widget-store-CB6Trp_0.js +0 -131
- package/dist/widget-store-CB6Trp_0.js.map +0 -1
- package/dist/widget-store-yDO2ul8g.js +0 -44
- package/dist/widget-store-yDO2ul8g.js.map +0 -1
- package/dist/widgets/actions.js.map +0 -1
- package/dist/widgets/echart.js.map +0 -1
- package/dist/widgets/formula.js.map +0 -1
- package/dist/widgets/root.js +0 -68
- package/dist/widgets/root.js.map +0 -1
- package/dist/widgets/stores.js.map +0 -1
- package/dist/widgets.js +0 -11
- package/dist/widgets.js.map +0 -1
- /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
|
@@ -0,0 +1,4053 @@
|
|
|
1
|
+
import { r as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
+
import "./copy-button-TTlZONkX.js";
|
|
3
|
+
import { t } from "./cjs-CBrZjPCj.js";
|
|
4
|
+
import { t as n } from "./tooltip-DJUGNZxY.js";
|
|
5
|
+
import { t as r } from "./smart-tooltip-CwGHCqab.js";
|
|
6
|
+
import { c as i } from "react/compiler-runtime";
|
|
7
|
+
import { createContext as a, useContext as o, useEffect as s, useEffectEvent as c, useId as l, useReducer as u, useRef as d, useState as f, useSyncExternalStore as p } from "react";
|
|
8
|
+
import { Alert as m, AlertTitle as h, Box as g, Button as _, Checkbox as v, Chip as y, CircularProgress as b, Dialog as x, DialogActions as S, DialogContent as C, DialogTitle as w, Divider as T, Drawer as E, FormControl as D, FormControlLabel as O, Grid as k, IconButton as A, InputBase as j, List as M, ListItem as N, ListItemButton as P, ListItemIcon as F, ListItemText as I, Menu as L, MenuItem as R, Paper as z, Popover as B, Radio as V, RadioGroup as H, Skeleton as U, Snackbar as W, SvgIcon as G, TextField as K, ToggleButton as q, ToggleButtonGroup as ee, Typography as J, alpha as Y, useMediaQuery as te, useTheme as ne } from "@mui/material";
|
|
9
|
+
import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
10
|
+
import { AddOutlined as re, ArrowDropDown as ie, CallSplitOutlined as ae, Close as oe, CloseOutlined as se, ContentCopyOutlined as ce, CropFreeOutlined as le, DataObjectOutlined as ue, DeleteOutlined as de, FormatBold as fe, FormatItalic as pe, JoinInnerOutlined as me, JoinLeftOutlined as he, KeyboardReturnOutlined as ge, LayersOutlined as _e, LineWeightOutlined as ve, LocationDisabledOutlined as ye, LockOutlined as be, MoreVertOutlined as xe, MyLocationOutlined as Se, OpacityOutlined as Ce, RedoOutlined as we, RemoveOutlined as Te, Search as Ee, UndoOutlined as De } from "@mui/icons-material";
|
|
11
|
+
//#region src/components/lasso-tool/icons.tsx
|
|
12
|
+
function Oe(e) {
|
|
13
|
+
let t = i(3), n;
|
|
14
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
15
|
+
fillRule: "evenodd",
|
|
16
|
+
clipRule: "evenodd",
|
|
17
|
+
d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z",
|
|
18
|
+
fill: "currentColor"
|
|
19
|
+
}), t[0] = n) : n = t[0];
|
|
20
|
+
let r;
|
|
21
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
22
|
+
fill: "none",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
viewBox: "0 0 24 24",
|
|
25
|
+
...e,
|
|
26
|
+
children: n
|
|
27
|
+
}), t[1] = e, t[2] = r), r;
|
|
28
|
+
}
|
|
29
|
+
function ke(e) {
|
|
30
|
+
let t = i(3), n;
|
|
31
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
clipRule: "evenodd",
|
|
34
|
+
d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z",
|
|
35
|
+
fill: "currentColor"
|
|
36
|
+
}), t[0] = n) : n = t[0];
|
|
37
|
+
let r;
|
|
38
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
39
|
+
fill: "none",
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
+
viewBox: "0 0 24 24",
|
|
42
|
+
...e,
|
|
43
|
+
children: n
|
|
44
|
+
}), t[1] = e, t[2] = r), r;
|
|
45
|
+
}
|
|
46
|
+
function Ae(e) {
|
|
47
|
+
let t = i(3), n;
|
|
48
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
49
|
+
fillRule: "evenodd",
|
|
50
|
+
clipRule: "evenodd",
|
|
51
|
+
d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z",
|
|
52
|
+
fill: "currentColor"
|
|
53
|
+
}), t[0] = n) : n = t[0];
|
|
54
|
+
let r;
|
|
55
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
56
|
+
fill: "none",
|
|
57
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
58
|
+
viewBox: "0 0 24 24",
|
|
59
|
+
...e,
|
|
60
|
+
children: n
|
|
61
|
+
}), t[1] = e, t[2] = r), r;
|
|
62
|
+
}
|
|
63
|
+
function je(e) {
|
|
64
|
+
let t = i(3), n;
|
|
65
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
66
|
+
fillRule: "evenodd",
|
|
67
|
+
clipRule: "evenodd",
|
|
68
|
+
d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z",
|
|
69
|
+
fill: "currentColor"
|
|
70
|
+
}), t[0] = n) : n = t[0];
|
|
71
|
+
let r;
|
|
72
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
73
|
+
fill: "none",
|
|
74
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
75
|
+
viewBox: "0 0 24 24",
|
|
76
|
+
...e,
|
|
77
|
+
children: n
|
|
78
|
+
}), t[1] = e, t[2] = r), r;
|
|
79
|
+
}
|
|
80
|
+
function Me(e) {
|
|
81
|
+
let t = i(3), n;
|
|
82
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
83
|
+
fillRule: "evenodd",
|
|
84
|
+
clipRule: "evenodd",
|
|
85
|
+
d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z",
|
|
86
|
+
fill: "currentColor"
|
|
87
|
+
}), t[0] = n) : n = t[0];
|
|
88
|
+
let r;
|
|
89
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
90
|
+
fill: "none",
|
|
91
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
...e,
|
|
94
|
+
children: n
|
|
95
|
+
}), t[1] = e, t[2] = r), r;
|
|
96
|
+
}
|
|
97
|
+
function Ne(e) {
|
|
98
|
+
let t = i(4), n, r;
|
|
99
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("g", {
|
|
100
|
+
transform: "scale(0.75)",
|
|
101
|
+
children: /* @__PURE__ */ Z("path", {
|
|
102
|
+
fillRule: "evenodd",
|
|
103
|
+
clipRule: "evenodd",
|
|
104
|
+
d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z",
|
|
105
|
+
fill: "currentColor"
|
|
106
|
+
})
|
|
107
|
+
}), r = /* @__PURE__ */ Z("path", {
|
|
108
|
+
transform: "translate(12.5 11.5) scale(0.48)",
|
|
109
|
+
fillRule: "evenodd",
|
|
110
|
+
clipRule: "evenodd",
|
|
111
|
+
d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z",
|
|
112
|
+
fill: "currentColor"
|
|
113
|
+
}), t[0] = n, t[1] = r) : (n = t[0], r = t[1]);
|
|
114
|
+
let a;
|
|
115
|
+
return t[2] === e ? a = t[3] : (a = /* @__PURE__ */ Q("svg", {
|
|
116
|
+
fill: "none",
|
|
117
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
118
|
+
viewBox: "0 0 24 24",
|
|
119
|
+
...e,
|
|
120
|
+
children: [n, r]
|
|
121
|
+
}), t[2] = e, t[3] = a), a;
|
|
122
|
+
}
|
|
123
|
+
function Pe(e) {
|
|
124
|
+
let t = i(3), n;
|
|
125
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
126
|
+
transform: "translate(12 12) scale(1.4) translate(-11.625 -12)",
|
|
127
|
+
fillRule: "evenodd",
|
|
128
|
+
clipRule: "evenodd",
|
|
129
|
+
d: "M13.5 5.25C16.3995 5.25 18.75 7.60051 18.75 10.5C18.75 13.0426 16.9425 15.163 14.5424 15.6465C13.7221 17.4758 11.8848 18.75 9.75 18.75C6.85051 18.75 4.5 16.3995 4.5 13.5C4.5 10.9574 6.30747 8.83696 8.70762 8.35348C9.52794 6.52422 11.3652 5.25 13.5 5.25ZM8.26868 10.0539L8.21987 10.0754C6.91155 10.6608 6 11.974 6 13.5C6 15.5711 7.67893 17.25 9.75 17.25C10.9981 17.25 12.1038 16.6402 12.7855 15.7024C10.2239 15.3531 8.25 13.1571 8.25 10.5C8.25 10.3498 8.25631 10.201 8.26868 10.0539ZM9.82552 9.75075L9.80431 9.86051C9.7686 10.0683 9.75 10.282 9.75 10.5C9.75 12.5457 11.3881 14.2088 13.4241 14.2492C13.4742 14.0072 13.5 13.7566 13.5 13.5C13.5 11.4542 11.8617 9.79097 9.82552 9.75075ZM13.5 6.75C12.2519 6.75 11.1462 7.35976 10.4645 8.29764C13.0261 8.64685 15 10.8429 15 13.5C15 13.6502 14.9937 13.799 14.9813 13.9461C16.3152 13.3724 17.25 12.0454 17.25 10.5C17.25 8.42893 15.5711 6.75 13.5 6.75ZM12.75 13.125C12.96 13.125 13.125 13.29 13.125 13.5C13.125 13.71 12.96 13.875 12.75 13.875C12.54 13.875 12.375 13.71 12.375 13.5C12.375 13.29 12.54 13.125 12.75 13.125ZM11.625 12.75C11.835 12.75 12 12.915 12 13.125C12 13.335 11.835 13.5 11.625 13.5C11.415 13.5 11.25 13.335 11.25 13.125C11.25 12.915 11.415 12.75 11.625 12.75ZM12.75 12C12.96 12 13.125 12.165 13.125 12.375C13.125 12.585 12.96 12.75 12.75 12.75C12.54 12.75 12.375 12.585 12.375 12.375C12.375 12.165 12.54 12 12.75 12ZM11.625 11.625C11.835 11.625 12 11.79 12 12C12 12.21 11.835 12.375 11.625 12.375C11.415 12.375 11.25 12.21 11.25 12C11.25 11.79 11.415 11.625 11.625 11.625ZM10.5 11.25C10.71 11.25 10.875 11.415 10.875 11.625C10.875 11.835 10.71 12 10.5 12C10.29 12 10.125 11.835 10.125 11.625C10.125 11.415 10.29 11.25 10.5 11.25ZM11.625 10.5C11.835 10.5 12 10.665 12 10.875C12 11.085 11.835 11.25 11.625 11.25C11.415 11.25 11.25 11.085 11.25 10.875C11.25 10.665 11.415 10.5 11.625 10.5ZM10.5 10.125C10.71 10.125 10.875 10.29 10.875 10.5C10.875 10.71 10.71 10.875 10.5 10.875C10.29 10.875 10.125 10.71 10.125 10.5C10.125 10.29 10.29 10.125 10.5 10.125Z",
|
|
130
|
+
fill: "currentColor"
|
|
131
|
+
}), t[0] = n) : n = t[0];
|
|
132
|
+
let r;
|
|
133
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
134
|
+
fill: "none",
|
|
135
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
136
|
+
viewBox: "0 0 24 24",
|
|
137
|
+
...e,
|
|
138
|
+
children: n
|
|
139
|
+
}), t[1] = e, t[2] = r), r;
|
|
140
|
+
}
|
|
141
|
+
function Fe(e) {
|
|
142
|
+
let t = i(3), n;
|
|
143
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
144
|
+
transform: "translate(12 12) scale(1.33333) translate(-7.5 -7.5)",
|
|
145
|
+
fillRule: "evenodd",
|
|
146
|
+
clipRule: "evenodd",
|
|
147
|
+
d: "M15 7.5C15 11.6421 11.6421 15 7.5 15C3.35786 15 0 11.6421 0 7.5C0 3.35786 3.35786 0 7.5 0C11.6421 0 15 3.35786 15 7.5ZM13.5 7.5C13.5 10.8137 10.8137 13.5 7.5 13.5C6.44531 13.5 5.45418 13.2279 4.59299 12.75H6.85607C7.29596 12.3013 7.67991 11.7975 7.99663 11.25H2.81597C2.62675 11.014 2.45501 10.7633 2.30269 10.5H8.37593C8.58402 10.0237 8.74407 9.52171 8.84997 9H1.68903C1.62614 8.75568 1.57826 8.50533 1.54642 8.25H8.96297C8.98746 8.00332 9 7.75312 9 7.5C9 7.24688 8.98746 6.99668 8.96297 6.75H1.54642C1.57826 6.49467 1.62614 6.24432 1.68903 6H8.84997C8.74407 5.47829 8.58402 4.97625 8.37593 4.5H2.30269C2.45501 4.2367 2.62675 3.98604 2.81597 3.75H7.99663C7.67991 3.20248 7.29596 2.69872 6.85607 2.25H4.59299C5.45418 1.77213 6.44531 1.5 7.5 1.5C10.8137 1.5 13.5 4.18629 13.5 7.5Z",
|
|
148
|
+
fill: "currentColor"
|
|
149
|
+
}), t[0] = n) : n = t[0];
|
|
150
|
+
let r;
|
|
151
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
152
|
+
fill: "none",
|
|
153
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
154
|
+
viewBox: "0 0 24 24",
|
|
155
|
+
...e,
|
|
156
|
+
children: n
|
|
157
|
+
}), t[1] = e, t[2] = r), r;
|
|
158
|
+
}
|
|
159
|
+
function Ie(e) {
|
|
160
|
+
let t = i(3), n;
|
|
161
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
162
|
+
transform: "translate(12 12) scale(1.2597) translate(-7.9385 -5.34375)",
|
|
163
|
+
fillRule: "evenodd",
|
|
164
|
+
clipRule: "evenodd",
|
|
165
|
+
d: "M5.4 0L9.18 10.5H7.56L6.72 8.085H2.475L1.62 10.5H0L3.795 0H5.4ZM4.605 1.95C4.515 2.31 4.395 2.705 4.245 3.135L2.955 6.705H6.24L4.965 3.135C4.785 2.645 4.665 2.25 4.605 1.95ZM12.9247 2.5875C13.3083 2.5875 13.6514 2.6203 13.9542 2.68591C14.257 2.75152 14.5649 2.87769 14.8778 3.06442C15.1907 3.25114 15.4355 3.55143 15.6121 3.96526C15.7887 4.37909 15.877 4.88881 15.877 5.49442V10.5058H14.363V9.83965C13.818 10.4049 13.1114 10.6875 12.2434 10.6875C11.4258 10.6875 10.7622 10.4629 10.2525 10.0138C9.74275 9.5646 9.48789 8.92619 9.48789 8.09853C9.48789 7.26077 9.77555 6.62488 10.3509 6.19086C10.9262 5.75685 11.6277 5.53984 12.4554 5.53984C13.2124 5.53984 13.8483 5.69124 14.363 5.99404V5.57012C14.363 4.99479 14.2318 4.586 13.9694 4.34376C13.707 4.10152 13.2881 3.9804 12.7127 3.9804C11.8649 3.9804 11.1281 4.21255 10.5023 4.67685L10.0329 3.38993C10.8101 2.85498 11.7741 2.5875 12.9247 2.5875ZM12.7127 6.90245C12.2081 6.90245 11.7968 7.00086 11.4788 7.19769C11.1609 7.39451 11.0019 7.69479 11.0019 8.09853C11.0019 8.47199 11.1331 8.7647 11.3955 8.97666C11.658 9.18862 12.0365 9.2946 12.5311 9.2946C13.2578 9.2946 13.8684 9.01703 14.363 8.46189V7.28096C13.8886 7.02862 13.3385 6.90245 12.7127 6.90245Z",
|
|
166
|
+
fill: "currentColor"
|
|
167
|
+
}), t[0] = n) : n = t[0];
|
|
168
|
+
let r;
|
|
169
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
170
|
+
fill: "none",
|
|
171
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
172
|
+
viewBox: "0 0 24 24",
|
|
173
|
+
...e,
|
|
174
|
+
children: n
|
|
175
|
+
}), t[1] = e, t[2] = r), r;
|
|
176
|
+
}
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region src/components/lasso-tool/const.tsx
|
|
179
|
+
var $ = {
|
|
180
|
+
action: { tooltip: {
|
|
181
|
+
active: "Click on the map to draw your spatial filter",
|
|
182
|
+
inactive: "Click on the map to draw your spatial filter"
|
|
183
|
+
} },
|
|
184
|
+
chip: { tooltip: {
|
|
185
|
+
active: "Hide drawing",
|
|
186
|
+
inactive: "Show drawing"
|
|
187
|
+
} },
|
|
188
|
+
options: {
|
|
189
|
+
mode: {
|
|
190
|
+
title: "Choose a drawing tool",
|
|
191
|
+
options: {
|
|
192
|
+
circle: "Circle",
|
|
193
|
+
lasso: "Lasso tool",
|
|
194
|
+
polygon: "Polygon",
|
|
195
|
+
rectangle: "Rectangle",
|
|
196
|
+
text: "Text",
|
|
197
|
+
select: "Select features",
|
|
198
|
+
"lasso-select": "Lasso select"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
interactionMode: {
|
|
202
|
+
title: "Interaction mode",
|
|
203
|
+
mask: "Mask",
|
|
204
|
+
draw: "Draw"
|
|
205
|
+
},
|
|
206
|
+
selection: { title: "Selection tools" },
|
|
207
|
+
layerFilters: "Layer filters"
|
|
208
|
+
},
|
|
209
|
+
noData: {
|
|
210
|
+
title: "Spatial filter not applied",
|
|
211
|
+
description: "Select a drawing or editing tool and click on the map to define your spatial filter"
|
|
212
|
+
},
|
|
213
|
+
actions: {
|
|
214
|
+
toggleAll: {
|
|
215
|
+
active: "Hide all",
|
|
216
|
+
inactive: "Show all"
|
|
217
|
+
},
|
|
218
|
+
deleteAll: "Remove all",
|
|
219
|
+
more: "More actions"
|
|
220
|
+
},
|
|
221
|
+
undoRedo: {
|
|
222
|
+
undo: "Undo",
|
|
223
|
+
redo: "Redo"
|
|
224
|
+
}
|
|
225
|
+
}, Le = {
|
|
226
|
+
polygon: { icon: /* @__PURE__ */ Z(Oe, {}) },
|
|
227
|
+
rectangle: { icon: /* @__PURE__ */ Z(ke, {}) },
|
|
228
|
+
circle: { icon: /* @__PURE__ */ Z(Ae, {}) },
|
|
229
|
+
lasso: { icon: /* @__PURE__ */ Z(je, {}) },
|
|
230
|
+
text: { icon: /* @__PURE__ */ Z(Ie, {}) },
|
|
231
|
+
select: { icon: /* @__PURE__ */ Z(Me, {}) },
|
|
232
|
+
"lasso-select": { icon: /* @__PURE__ */ Z(Ne, {}) }
|
|
233
|
+
};
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/components/lasso-tool/styles.ts
|
|
236
|
+
function Re(...e) {
|
|
237
|
+
return e.flat().filter((e) => !!e && e !== !0);
|
|
238
|
+
}
|
|
239
|
+
var ze = "calc(100dvh - 96px)", Be = {
|
|
240
|
+
container: {
|
|
241
|
+
display: "flex",
|
|
242
|
+
flexDirection: "row",
|
|
243
|
+
alignItems: "center",
|
|
244
|
+
justifyContent: "flex-start",
|
|
245
|
+
overflow: "hidden",
|
|
246
|
+
width: "fit-content",
|
|
247
|
+
"&.inline": {
|
|
248
|
+
flexDirection: "column",
|
|
249
|
+
alignItems: "flex-start",
|
|
250
|
+
gap: ({ spacing: e }) => e(1),
|
|
251
|
+
"& > * + *": {
|
|
252
|
+
borderTop: 1,
|
|
253
|
+
borderColor: "divider",
|
|
254
|
+
paddingTop: ({ spacing: e }) => e(1)
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
actions: { icon: {
|
|
259
|
+
width: ({ spacing: e }) => e(4),
|
|
260
|
+
height: ({ spacing: e }) => e(4),
|
|
261
|
+
borderRadius: 0,
|
|
262
|
+
".MuiTouchRipple-ripple .MuiTouchRipple-child": { borderRadius: 0 }
|
|
263
|
+
} },
|
|
264
|
+
options: {
|
|
265
|
+
paper: { "&.MuiMenu-paper": { maxHeight: ze } },
|
|
266
|
+
menu: {
|
|
267
|
+
"&.MuiMenu-list": { maxHeight: ze },
|
|
268
|
+
paddingY: ({ spacing: e }) => e(1),
|
|
269
|
+
"&.inline": {
|
|
270
|
+
boxShadow: "none",
|
|
271
|
+
backgroundColor: "transparent",
|
|
272
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
273
|
+
"& .MuiDivider-root": {
|
|
274
|
+
height: ({ spacing: e }) => e(4),
|
|
275
|
+
"&.MuiToggleButtonGroup-groupedHorizontal": { height: ({ spacing: e }) => e(4) },
|
|
276
|
+
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
277
|
+
height: "auto",
|
|
278
|
+
width: ({ spacing: e }) => e(4),
|
|
279
|
+
margin: ({ spacing: e }) => `${e(.5, 0, 1)} !important`,
|
|
280
|
+
borderRadius: "0 !important"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"& .MuiToggleButton-sizeSmall": {
|
|
284
|
+
margin: 0,
|
|
285
|
+
"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": { margin: 0 },
|
|
286
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": { height: ({ spacing: e }) => e(3) },
|
|
287
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
288
|
+
height: "auto",
|
|
289
|
+
width: ({ spacing: e }) => e(3)
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
293
|
+
margin: 0,
|
|
294
|
+
"&:first-of-type": { marginLeft: 0 },
|
|
295
|
+
"&:not(:last-of-type)": { marginRight: ({ spacing: e }) => e(.5) }
|
|
296
|
+
},
|
|
297
|
+
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": { ".MuiToggleButtonGroup-grouped": { margin: ({ spacing: e }) => e(0, .5) } },
|
|
298
|
+
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": { ".MuiToggleButtonGroup-grouped": {
|
|
299
|
+
margin: ({ spacing: e }) => e(0, 0, .5),
|
|
300
|
+
"&:not(:last-of-type)": { marginRight: 0 },
|
|
301
|
+
"&:last-of-type": { marginBottom: 0 }
|
|
302
|
+
} }
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
icon: {
|
|
306
|
+
borderRadius: 0,
|
|
307
|
+
width: ({ spacing: e }) => e(3)
|
|
308
|
+
},
|
|
309
|
+
title: {
|
|
310
|
+
paddingX: ({ spacing: e }) => e(2),
|
|
311
|
+
paddingBottom: ({ spacing: e }) => e(.5),
|
|
312
|
+
"&.inline": {
|
|
313
|
+
paddingX: 0,
|
|
314
|
+
paddingBottom: 0
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
icons: { color: ({ palette: e }) => e.text.primary },
|
|
318
|
+
tag: {
|
|
319
|
+
borderRadius: ({ spacing: e }) => e(.25),
|
|
320
|
+
border: "1px solid",
|
|
321
|
+
borderColor: ({ palette: e }) => e.primary.main,
|
|
322
|
+
paddingX: ({ spacing: e }) => e(.5),
|
|
323
|
+
color: ({ palette: e }) => e.primary.main,
|
|
324
|
+
backgroundColor: ({ palette: e }) => Y(e.primary.main, .08)
|
|
325
|
+
},
|
|
326
|
+
more: { width: ({ spacing: e }) => e(4) }
|
|
327
|
+
},
|
|
328
|
+
chip: {
|
|
329
|
+
container: {
|
|
330
|
+
display: "flex",
|
|
331
|
+
flexDirection: "row",
|
|
332
|
+
alignItems: "center",
|
|
333
|
+
gap: ({ spacing: e }) => e(.5),
|
|
334
|
+
overflowX: "auto",
|
|
335
|
+
scrollbarWidth: "none",
|
|
336
|
+
paddingX: ({ spacing: e }) => e(1),
|
|
337
|
+
"&.inline": {
|
|
338
|
+
overflowX: "visible",
|
|
339
|
+
flexWrap: "wrap"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
chip: { marginRight: ({ spacing: e }) => e(.5) },
|
|
343
|
+
disabled: { opacity: ({ palette: e }) => e.action.disabledOpacity }
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region src/components/lasso-tool/options-sections.tsx
|
|
348
|
+
function Ve(e) {
|
|
349
|
+
let t = i(17), { value: n, labels: r, onChange: a, maskDisabled: o } = e, s = o !== void 0 && o, c = r?.mask ?? $.options.interactionMode.mask, l;
|
|
350
|
+
t[0] === c ? l = t[1] : (l = {
|
|
351
|
+
mode: "mask",
|
|
352
|
+
label: c
|
|
353
|
+
}, t[0] = c, t[1] = l);
|
|
354
|
+
let u = r?.draw ?? $.options.interactionMode.draw, d;
|
|
355
|
+
t[2] === u ? d = t[3] : (d = {
|
|
356
|
+
mode: "draw",
|
|
357
|
+
label: u
|
|
358
|
+
}, t[2] = u, t[3] = d);
|
|
359
|
+
let f;
|
|
360
|
+
t[4] !== l || t[5] !== d ? (f = [l, d], t[4] = l, t[5] = d, t[6] = f) : f = t[6];
|
|
361
|
+
let p = f, m = r?.title ?? $.options.interactionMode.title, h;
|
|
362
|
+
t[7] === m ? h = t[8] : (h = /* @__PURE__ */ Z(J, {
|
|
363
|
+
variant: "subtitle2",
|
|
364
|
+
color: "text.secondary",
|
|
365
|
+
sx: Be.options.title,
|
|
366
|
+
children: m
|
|
367
|
+
}), t[7] = m, t[8] = h);
|
|
368
|
+
let g;
|
|
369
|
+
t[9] !== s || t[10] !== a || t[11] !== p || t[12] !== n ? (g = p.map((e) => {
|
|
370
|
+
let { mode: t, label: r } = e, i = t === "mask" && s;
|
|
371
|
+
return /* @__PURE__ */ Q(R, {
|
|
372
|
+
role: "menuitemradio",
|
|
373
|
+
"aria-checked": n === t,
|
|
374
|
+
disabled: i,
|
|
375
|
+
dense: !0,
|
|
376
|
+
onClick: () => {
|
|
377
|
+
i || a(t);
|
|
378
|
+
},
|
|
379
|
+
children: [/* @__PURE__ */ Z(F, {
|
|
380
|
+
sx: { minWidth: 28 },
|
|
381
|
+
children: /* @__PURE__ */ Z(V, {
|
|
382
|
+
size: "small",
|
|
383
|
+
checked: n === t,
|
|
384
|
+
disabled: i,
|
|
385
|
+
tabIndex: -1,
|
|
386
|
+
disableRipple: !0,
|
|
387
|
+
sx: {
|
|
388
|
+
p: 0,
|
|
389
|
+
pointerEvents: "none"
|
|
390
|
+
},
|
|
391
|
+
inputProps: {
|
|
392
|
+
"aria-hidden": !0,
|
|
393
|
+
tabIndex: -1,
|
|
394
|
+
readOnly: !0
|
|
395
|
+
}
|
|
396
|
+
})
|
|
397
|
+
}), /* @__PURE__ */ Z(I, {
|
|
398
|
+
primaryTypographyProps: { variant: "body2" },
|
|
399
|
+
children: r
|
|
400
|
+
})]
|
|
401
|
+
}, t);
|
|
402
|
+
}), t[9] = s, t[10] = a, t[11] = p, t[12] = n, t[13] = g) : g = t[13];
|
|
403
|
+
let _;
|
|
404
|
+
return t[14] !== h || t[15] !== g ? (_ = /* @__PURE__ */ Q(X, { children: [h, g] }), t[14] = h, t[15] = g, t[16] = _) : _ = t[16], _;
|
|
405
|
+
}
|
|
406
|
+
//#endregion
|
|
407
|
+
//#region src/components/lasso-tool/chip.tsx
|
|
408
|
+
var He = /* @__PURE__ */ e(t(), 1), Ue = 14;
|
|
409
|
+
function We(e) {
|
|
410
|
+
let t = i(31), { chipProps: r, value: a, labels: o, onChipToggle: s, onDelete: c } = e, l = a.visible ? "active" : "inactive", u = o?.tooltip?.[l] ?? $.chip.tooltip[l], d;
|
|
411
|
+
t[0] === r?.ChipsProps ? d = t[1] : (d = r?.ChipsProps ?? {}, t[0] = r?.ChipsProps, t[1] = d);
|
|
412
|
+
let f, p, m;
|
|
413
|
+
t[2] === d ? (f = t[3], p = t[4], m = t[5]) : ({sx: m, onClick: p, ...f} = d, t[2] = d, t[3] = f, t[4] = p, t[5] = m);
|
|
414
|
+
let h = r?.TooltipProps, g;
|
|
415
|
+
t[6] === m ? g = t[7] : (g = Re(Be.chip.chip, m), t[6] = m, t[7] = g);
|
|
416
|
+
let _ = a.visible ? "secondary" : "default", v;
|
|
417
|
+
t[8] === a.locked ? v = t[9] : (v = a.locked ? /* @__PURE__ */ Z(be, { sx: { fontSize: Ue } }) : /* @__PURE__ */ Z(G, {
|
|
418
|
+
component: Fe,
|
|
419
|
+
inheritViewBox: !0,
|
|
420
|
+
sx: { fontSize: Ue }
|
|
421
|
+
}), t[8] = a.locked, t[9] = v);
|
|
422
|
+
let b;
|
|
423
|
+
t[10] !== c || t[11] !== a.id || t[12] !== a.locked ? (b = a.locked ? void 0 : () => c(a.id), t[10] = c, t[11] = a.id, t[12] = a.locked, t[13] = b) : b = t[13];
|
|
424
|
+
let x;
|
|
425
|
+
t[14] !== s || t[15] !== p || t[16] !== a.id || t[17] !== a.visible ? (x = (e) => {
|
|
426
|
+
s(a.id, !a.visible), p?.(e);
|
|
427
|
+
}, t[14] = s, t[15] = p, t[16] = a.id, t[17] = a.visible, t[18] = x) : x = t[18];
|
|
428
|
+
let S;
|
|
429
|
+
t[19] !== f || t[20] !== g || t[21] !== _ || t[22] !== v || t[23] !== b || t[24] !== x || t[25] !== a.label ? (S = /* @__PURE__ */ Z(y, {
|
|
430
|
+
sx: g,
|
|
431
|
+
color: _,
|
|
432
|
+
size: "small",
|
|
433
|
+
icon: v,
|
|
434
|
+
onDelete: b,
|
|
435
|
+
label: a.label,
|
|
436
|
+
onClick: x,
|
|
437
|
+
...f
|
|
438
|
+
}), t[19] = f, t[20] = g, t[21] = _, t[22] = v, t[23] = b, t[24] = x, t[25] = a.label, t[26] = S) : S = t[26];
|
|
439
|
+
let C;
|
|
440
|
+
return t[27] !== u || t[28] !== h || t[29] !== S ? (C = /* @__PURE__ */ Z(n, {
|
|
441
|
+
title: u,
|
|
442
|
+
placement: "bottom",
|
|
443
|
+
...h,
|
|
444
|
+
children: S
|
|
445
|
+
}), t[27] = u, t[28] = h, t[29] = S, t[30] = C) : C = t[30], C;
|
|
446
|
+
}
|
|
447
|
+
//#endregion
|
|
448
|
+
//#region src/components/lasso-tool/toolbar/styles.ts
|
|
449
|
+
var Ge = {
|
|
450
|
+
display: "flex",
|
|
451
|
+
flexDirection: "row",
|
|
452
|
+
alignItems: "center",
|
|
453
|
+
width: "fit-content",
|
|
454
|
+
gap: ({ spacing: e }) => e(.5),
|
|
455
|
+
p: ({ spacing: e }) => e(.5),
|
|
456
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
457
|
+
backgroundColor: ({ palette: e }) => e.background.paper
|
|
458
|
+
}, Ke = {
|
|
459
|
+
p: ({ spacing: e }) => e(.375),
|
|
460
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
461
|
+
".MuiTouchRipple-ripple .MuiTouchRipple-child": { borderRadius: ({ spacing: e }) => e(.5) },
|
|
462
|
+
"&.Mui-disabled": { opacity: ({ palette: e }) => e.action.disabledOpacity }
|
|
463
|
+
}, qe = {
|
|
464
|
+
container: Ge,
|
|
465
|
+
baseButton: Ke,
|
|
466
|
+
toggleButton: (e) => ({
|
|
467
|
+
...Ke,
|
|
468
|
+
color: ({ palette: t }) => e ? t.primary.main : t.text.secondary,
|
|
469
|
+
backgroundColor: e ? "rgba(3, 111, 226, 0.08)" : "transparent",
|
|
470
|
+
"&:hover": { backgroundColor: ({ palette: t }) => e ? "rgba(3, 111, 226, 0.12)" : t.action.hover }
|
|
471
|
+
})
|
|
472
|
+
};
|
|
473
|
+
//#endregion
|
|
474
|
+
//#region src/components/lasso-tool/toolbar/button.tsx
|
|
475
|
+
function Je(e) {
|
|
476
|
+
let t = i(16), { label: r, shortcut: a, icon: o, active: s, pressed: c, disabled: l, color: u, "aria-haspopup": d, "aria-expanded": f, onClick: p } = e, m = s !== void 0 && s, h = l !== void 0 && l, g = a ? `${r} (${a})` : r, _;
|
|
477
|
+
t[0] !== m || t[1] !== u ? (_ = u ? qe.baseButton : qe.toggleButton(m), t[0] = m, t[1] = u, t[2] = _) : _ = t[2];
|
|
478
|
+
let v;
|
|
479
|
+
t[3] !== f || t[4] !== d || t[5] !== u || t[6] !== h || t[7] !== o || t[8] !== r || t[9] !== p || t[10] !== c || t[11] !== _ ? (v = /* @__PURE__ */ Z("span", { children: /* @__PURE__ */ Z(A, {
|
|
480
|
+
"aria-label": r,
|
|
481
|
+
"aria-pressed": c,
|
|
482
|
+
"aria-haspopup": d,
|
|
483
|
+
"aria-expanded": f,
|
|
484
|
+
disabled: h,
|
|
485
|
+
color: u,
|
|
486
|
+
onClick: p,
|
|
487
|
+
sx: _,
|
|
488
|
+
children: o
|
|
489
|
+
}) }), t[3] = f, t[4] = d, t[5] = u, t[6] = h, t[7] = o, t[8] = r, t[9] = p, t[10] = c, t[11] = _, t[12] = v) : v = t[12];
|
|
490
|
+
let y;
|
|
491
|
+
return t[13] !== g || t[14] !== v ? (y = /* @__PURE__ */ Z(n, {
|
|
492
|
+
title: g,
|
|
493
|
+
placement: "top",
|
|
494
|
+
children: v
|
|
495
|
+
}), t[13] = g, t[14] = v, t[15] = y) : y = t[15], y;
|
|
496
|
+
}
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region src/components/lasso-tool/toolbar/actions/redo-action.tsx
|
|
499
|
+
var Ye = { redo: "Redo" };
|
|
500
|
+
function Xe(e) {
|
|
501
|
+
let t = i(6), { disabled: n, label: r, shortcut: a, onRedo: o } = e, s = n !== void 0 && n, c = r ?? Ye.redo, l;
|
|
502
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Z(we, { sx: { fontSize: 18 } }), t[0] = l) : l = t[0];
|
|
503
|
+
let u;
|
|
504
|
+
return t[1] !== s || t[2] !== o || t[3] !== a || t[4] !== c ? (u = /* @__PURE__ */ Z(Je, {
|
|
505
|
+
label: c,
|
|
506
|
+
shortcut: a,
|
|
507
|
+
disabled: s,
|
|
508
|
+
onClick: o,
|
|
509
|
+
icon: l
|
|
510
|
+
}), t[1] = s, t[2] = o, t[3] = a, t[4] = c, t[5] = u) : u = t[5], u;
|
|
511
|
+
}
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/components/lasso-tool/toolbar/actions/undo-action.tsx
|
|
514
|
+
var Ze = { undo: "Undo" };
|
|
515
|
+
function Qe(e) {
|
|
516
|
+
let t = i(6), { disabled: n, label: r, shortcut: a, onUndo: o } = e, s = n !== void 0 && n, c = r ?? Ze.undo, l;
|
|
517
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Z(De, { sx: { fontSize: 18 } }), t[0] = l) : l = t[0];
|
|
518
|
+
let u;
|
|
519
|
+
return t[1] !== s || t[2] !== o || t[3] !== a || t[4] !== c ? (u = /* @__PURE__ */ Z(Je, {
|
|
520
|
+
label: c,
|
|
521
|
+
shortcut: a,
|
|
522
|
+
disabled: s,
|
|
523
|
+
onClick: o,
|
|
524
|
+
icon: l
|
|
525
|
+
}), t[1] = s, t[2] = o, t[3] = a, t[4] = c, t[5] = u) : u = t[5], u;
|
|
526
|
+
}
|
|
527
|
+
//#endregion
|
|
528
|
+
//#region src/components/lasso-tool/undo-redo.tsx
|
|
529
|
+
function $e(e) {
|
|
530
|
+
let t = i(22), { canUndo: n, canRedo: r, onUndo: a, onRedo: o, labels: s, shortcuts: c, BoxProps: l } = e, u;
|
|
531
|
+
t[0] === l ? u = t[1] : (u = l === void 0 ? {} : l, t[0] = l, t[1] = u);
|
|
532
|
+
let d, f;
|
|
533
|
+
t[2] === u ? (d = t[3], f = t[4]) : ({sx: f, ...d} = u, t[2] = u, t[3] = d, t[4] = f);
|
|
534
|
+
let p;
|
|
535
|
+
t[5] === f ? p = t[6] : (p = Re({
|
|
536
|
+
display: "flex",
|
|
537
|
+
flexDirection: "row",
|
|
538
|
+
alignItems: "center"
|
|
539
|
+
}, f), t[5] = f, t[6] = p);
|
|
540
|
+
let m = !n, h = s?.undo, _ = c?.undo, v;
|
|
541
|
+
t[7] !== a || t[8] !== m || t[9] !== h || t[10] !== _ ? (v = /* @__PURE__ */ Z(Qe, {
|
|
542
|
+
disabled: m,
|
|
543
|
+
label: h,
|
|
544
|
+
shortcut: _,
|
|
545
|
+
onUndo: a
|
|
546
|
+
}), t[7] = a, t[8] = m, t[9] = h, t[10] = _, t[11] = v) : v = t[11];
|
|
547
|
+
let y = !r, b = s?.redo, x = c?.redo, S;
|
|
548
|
+
t[12] !== o || t[13] !== x || t[14] !== y || t[15] !== b ? (S = /* @__PURE__ */ Z(Xe, {
|
|
549
|
+
disabled: y,
|
|
550
|
+
label: b,
|
|
551
|
+
shortcut: x,
|
|
552
|
+
onRedo: o
|
|
553
|
+
}), t[12] = o, t[13] = x, t[14] = y, t[15] = b, t[16] = S) : S = t[16];
|
|
554
|
+
let C;
|
|
555
|
+
return t[17] !== d || t[18] !== S || t[19] !== p || t[20] !== v ? (C = /* @__PURE__ */ Q(g, {
|
|
556
|
+
sx: p,
|
|
557
|
+
...d,
|
|
558
|
+
children: [v, S]
|
|
559
|
+
}), t[17] = d, t[18] = S, t[19] = p, t[20] = v, t[21] = C) : C = t[21], C;
|
|
560
|
+
}
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region src/components/lasso-tool/tools-context.tsx
|
|
563
|
+
var et = a(null);
|
|
564
|
+
function tt(e) {
|
|
565
|
+
let t = i(3), { value: n, children: r } = e, a;
|
|
566
|
+
return t[0] !== r || t[1] !== n ? (a = /* @__PURE__ */ Z(et.Provider, {
|
|
567
|
+
value: n,
|
|
568
|
+
children: r
|
|
569
|
+
}), t[0] = r, t[1] = n, t[2] = a) : a = t[2], a;
|
|
570
|
+
}
|
|
571
|
+
function nt(e) {
|
|
572
|
+
let t = i(5), n = o(et);
|
|
573
|
+
if (!n) return e;
|
|
574
|
+
let r;
|
|
575
|
+
t[0] === e ? r = t[1] : (r = Object.fromEntries(Object.entries(e).filter(rt)), t[0] = e, t[1] = r);
|
|
576
|
+
let a = r, s;
|
|
577
|
+
return t[2] !== n || t[3] !== a ? (s = {
|
|
578
|
+
...n,
|
|
579
|
+
...a
|
|
580
|
+
}, t[2] = n, t[3] = a, t[4] = s) : s = t[4], s;
|
|
581
|
+
}
|
|
582
|
+
function rt(e) {
|
|
583
|
+
let [, t] = e;
|
|
584
|
+
return t !== void 0;
|
|
585
|
+
}
|
|
586
|
+
//#endregion
|
|
587
|
+
//#region src/components/lasso-tool/lasso-tool.tsx
|
|
588
|
+
var it = [], at = {};
|
|
589
|
+
function ot(e) {
|
|
590
|
+
let t = i(37), { enabled: n, values: r, actionProps: a, chipProps: o, labels: s, modes: c, modesMapping: l, modeSelected: u, interactionMode: d, PaperProps: f, onActionToggle: p, onChipToggle: m, onDelete: h, onChangeMode: g, onChangeInteractionMode: _, interactionModeMaskDisabled: v, onAllChipToggle: y, onAllDelete: b, onLayerFilters: x, canUndo: S, canRedo: C, onUndo: w, onRedo: T, shortcuts: E, children: D } = e, O = r === void 0 ? it : r, k = f === void 0 ? at : f, A, j;
|
|
591
|
+
t[0] === k ? (A = t[1], j = t[2]) : ({sx: j, ...A} = k, t[0] = k, t[1] = A, t[2] = j);
|
|
592
|
+
let M;
|
|
593
|
+
t[3] !== A || t[4] !== a || t[5] !== C || t[6] !== S || t[7] !== o || t[8] !== n || t[9] !== d || t[10] !== v || t[11] !== s || t[12] !== u || t[13] !== c || t[14] !== l || t[15] !== p || t[16] !== y || t[17] !== b || t[18] !== _ || t[19] !== g || t[20] !== m || t[21] !== h || t[22] !== x || t[23] !== T || t[24] !== w || t[25] !== E || t[26] !== O ? (M = {
|
|
594
|
+
enabled: n,
|
|
595
|
+
values: O,
|
|
596
|
+
actionProps: a,
|
|
597
|
+
chipProps: o,
|
|
598
|
+
labels: s,
|
|
599
|
+
modes: c,
|
|
600
|
+
modesMapping: l,
|
|
601
|
+
modeSelected: u,
|
|
602
|
+
interactionMode: d,
|
|
603
|
+
PaperProps: A,
|
|
604
|
+
onActionToggle: p,
|
|
605
|
+
onChipToggle: m,
|
|
606
|
+
onDelete: h,
|
|
607
|
+
onChangeMode: g,
|
|
608
|
+
onChangeInteractionMode: _,
|
|
609
|
+
interactionModeMaskDisabled: v,
|
|
610
|
+
onAllChipToggle: y,
|
|
611
|
+
onAllDelete: b,
|
|
612
|
+
onLayerFilters: x,
|
|
613
|
+
canUndo: S,
|
|
614
|
+
canRedo: C,
|
|
615
|
+
onUndo: w,
|
|
616
|
+
onRedo: T,
|
|
617
|
+
shortcuts: E
|
|
618
|
+
}, t[3] = A, t[4] = a, t[5] = C, t[6] = S, t[7] = o, t[8] = n, t[9] = d, t[10] = v, t[11] = s, t[12] = u, t[13] = c, t[14] = l, t[15] = p, t[16] = y, t[17] = b, t[18] = _, t[19] = g, t[20] = m, t[21] = h, t[22] = x, t[23] = T, t[24] = w, t[25] = E, t[26] = O, t[27] = M) : M = t[27];
|
|
619
|
+
let N = M, P;
|
|
620
|
+
t[28] === j ? P = t[29] : (P = Re(Be.container, j), t[28] = j, t[29] = P);
|
|
621
|
+
let F;
|
|
622
|
+
t[30] !== D || t[31] !== N ? (F = /* @__PURE__ */ Z(tt, {
|
|
623
|
+
value: N,
|
|
624
|
+
children: D
|
|
625
|
+
}), t[30] = D, t[31] = N, t[32] = F) : F = t[32];
|
|
626
|
+
let I;
|
|
627
|
+
return t[33] !== A || t[34] !== P || t[35] !== F ? (I = /* @__PURE__ */ Z(z, {
|
|
628
|
+
sx: P,
|
|
629
|
+
...A,
|
|
630
|
+
children: F
|
|
631
|
+
}), t[33] = A, t[34] = P, t[35] = F, t[36] = I) : I = t[36], I;
|
|
632
|
+
}
|
|
633
|
+
function st(e) {
|
|
634
|
+
let t = i(12), { actionProps: r, labels: a, enabled: o, children: s, onActionToggle: c } = e, l = o ? "active" : "inactive", u = a?.tooltip?.[l] ?? $.action.tooltip[l], d = r?.TooltipProps, f;
|
|
635
|
+
t[0] !== o || t[1] !== c ? (f = () => c(!o), t[0] = o, t[1] = c, t[2] = f) : f = t[2];
|
|
636
|
+
let p;
|
|
637
|
+
t[3] !== u || t[4] !== s || t[5] !== o || t[6] !== f ? (p = /* @__PURE__ */ Z(q, {
|
|
638
|
+
value: "toggle",
|
|
639
|
+
sx: Be.actions.icon,
|
|
640
|
+
onClick: f,
|
|
641
|
+
"aria-label": u,
|
|
642
|
+
selected: o,
|
|
643
|
+
children: s
|
|
644
|
+
}), t[3] = u, t[4] = s, t[5] = o, t[6] = f, t[7] = p) : p = t[7];
|
|
645
|
+
let m;
|
|
646
|
+
return t[8] !== u || t[9] !== d || t[10] !== p ? (m = /* @__PURE__ */ Z(n, {
|
|
647
|
+
title: u,
|
|
648
|
+
placement: "right",
|
|
649
|
+
...d,
|
|
650
|
+
children: p
|
|
651
|
+
}), t[8] = u, t[9] = d, t[10] = p, t[11] = m) : m = t[11], m;
|
|
652
|
+
}
|
|
653
|
+
var ct = {};
|
|
654
|
+
function lt(e) {
|
|
655
|
+
let t = i(22), { TriggerProps: n, MenuProps: r, children: a } = e, { Icon: o, sx: s, "aria-label": c } = n === void 0 ? ct : n, l = c === void 0 ? $.options.mode.title : c, u;
|
|
656
|
+
t[0] === o ? u = t[1] : (u = o ?? /* @__PURE__ */ Z(ie, {}), t[0] = o, t[1] = u);
|
|
657
|
+
let d = u, [p, m] = f(null), h = !!p, g;
|
|
658
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (g = (e) => {
|
|
659
|
+
m(e.currentTarget);
|
|
660
|
+
}, t[2] = g) : g = t[2];
|
|
661
|
+
let _ = g, v;
|
|
662
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (v = () => {
|
|
663
|
+
m(null);
|
|
664
|
+
}, t[3] = v) : v = t[3];
|
|
665
|
+
let y = v, b;
|
|
666
|
+
t[4] === s ? b = t[5] : (b = Re(Be.options.icon, s), t[4] = s, t[5] = b);
|
|
667
|
+
let x;
|
|
668
|
+
t[6] !== d || t[7] !== l || t[8] !== b ? (x = /* @__PURE__ */ Z(A, {
|
|
669
|
+
"aria-label": l,
|
|
670
|
+
sx: b,
|
|
671
|
+
onClick: _,
|
|
672
|
+
children: d
|
|
673
|
+
}), t[6] = d, t[7] = l, t[8] = b, t[9] = x) : x = t[9];
|
|
674
|
+
let S, C;
|
|
675
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
676
|
+
sx: Be.options.menu,
|
|
677
|
+
autoFocus: !0
|
|
678
|
+
}, C = { paper: { sx: Be.options.paper } }, t[10] = S, t[11] = C) : (S = t[10], C = t[11]);
|
|
679
|
+
let w;
|
|
680
|
+
t[12] === a ? w = t[13] : (w = a({ onClose: y }), t[12] = a, t[13] = w);
|
|
681
|
+
let T;
|
|
682
|
+
t[14] !== r || t[15] !== p || t[16] !== h || t[17] !== w ? (T = /* @__PURE__ */ Z(L, {
|
|
683
|
+
id: "lasso-menu",
|
|
684
|
+
anchorEl: p,
|
|
685
|
+
open: h,
|
|
686
|
+
onClose: y,
|
|
687
|
+
MenuListProps: S,
|
|
688
|
+
slotProps: C,
|
|
689
|
+
...r,
|
|
690
|
+
children: w
|
|
691
|
+
}), t[14] = r, t[15] = p, t[16] = h, t[17] = w, t[18] = T) : T = t[18];
|
|
692
|
+
let E;
|
|
693
|
+
return t[19] !== T || t[20] !== x ? (E = /* @__PURE__ */ Q(X, { children: [x, T] }), t[19] = T, t[20] = x, t[21] = E) : E = t[21], E;
|
|
694
|
+
}
|
|
695
|
+
function ut(e) {
|
|
696
|
+
let t = i(5), { data: n, labels: r, children: a } = e;
|
|
697
|
+
if (n.length <= 1) return null;
|
|
698
|
+
let o = r?.mode?.title ?? $.options.mode.title, s;
|
|
699
|
+
t[0] === o ? s = t[1] : (s = /* @__PURE__ */ Z(J, {
|
|
700
|
+
variant: "subtitle2",
|
|
701
|
+
color: "text.secondary",
|
|
702
|
+
sx: Be.options.title,
|
|
703
|
+
children: o
|
|
704
|
+
}), t[0] = o, t[1] = s);
|
|
705
|
+
let c;
|
|
706
|
+
return t[2] !== a || t[3] !== s ? (c = /* @__PURE__ */ Q(X, { children: [s, a] }), t[2] = a, t[3] = s, t[4] = c) : c = t[4], c;
|
|
707
|
+
}
|
|
708
|
+
function dt({ data: e, modeSelected: t, labels: n, onChangeMode: r, onClose: i }) {
|
|
709
|
+
let a = (e, t) => {
|
|
710
|
+
e.preventDefault(), r?.(t), i();
|
|
711
|
+
};
|
|
712
|
+
return e.filter((e) => !!e?.value).map((e) => {
|
|
713
|
+
let r = (n?.mode?.options ?? $.options.mode.options)[e.value] ?? e.value;
|
|
714
|
+
return /* @__PURE__ */ Q(R, {
|
|
715
|
+
disabled: !!e.disabled,
|
|
716
|
+
onClick: (t) => a(t, e.value),
|
|
717
|
+
selected: e.value === t,
|
|
718
|
+
children: [/* @__PURE__ */ Z(F, {
|
|
719
|
+
sx: Be.options.icons,
|
|
720
|
+
children: /* @__PURE__ */ Z(G, { children: e.icon })
|
|
721
|
+
}), /* @__PURE__ */ Z(I, { children: r })]
|
|
722
|
+
}, e.value);
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
function ft(e) {
|
|
726
|
+
let t = i(13), { values: n, labels: r, onAllChipToggle: a, onAllDelete: o } = e, s = n?.filter(mt) ?? [];
|
|
727
|
+
if (s.length <= 1) return null;
|
|
728
|
+
let c = s.some(pt) ? r?.actions?.toggleAll?.active ?? $.actions.toggleAll.active : r?.actions?.toggleAll?.inactive ?? $.actions.toggleAll.inactive, l = r?.actions?.deleteAll ?? $.actions.deleteAll, u;
|
|
729
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Z(T, {
|
|
730
|
+
orientation: "vertical",
|
|
731
|
+
flexItem: !0
|
|
732
|
+
}), t[0] = u) : u = t[0];
|
|
733
|
+
let d;
|
|
734
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ Z(xe, {}), t[1] = d) : d = t[1];
|
|
735
|
+
let f = r?.actions?.more ?? $.actions.more, p;
|
|
736
|
+
t[2] === f ? p = t[3] : (p = {
|
|
737
|
+
Icon: d,
|
|
738
|
+
sx: Be.options.more,
|
|
739
|
+
"aria-label": f
|
|
740
|
+
}, t[2] = f, t[3] = p);
|
|
741
|
+
let m;
|
|
742
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
743
|
+
anchorOrigin: {
|
|
744
|
+
vertical: "bottom",
|
|
745
|
+
horizontal: "right"
|
|
746
|
+
},
|
|
747
|
+
transformOrigin: {
|
|
748
|
+
vertical: "top",
|
|
749
|
+
horizontal: "right"
|
|
750
|
+
}
|
|
751
|
+
}, t[4] = m) : m = t[4];
|
|
752
|
+
let h;
|
|
753
|
+
t[5] !== l || t[6] !== a || t[7] !== o || t[8] !== c ? (h = (e) => /* @__PURE__ */ Q(X, { children: [
|
|
754
|
+
/* @__PURE__ */ Z(R, {
|
|
755
|
+
color: "inherit",
|
|
756
|
+
onClick: () => {
|
|
757
|
+
a?.(), e.onClose();
|
|
758
|
+
},
|
|
759
|
+
children: c
|
|
760
|
+
}),
|
|
761
|
+
/* @__PURE__ */ Z(T, {}),
|
|
762
|
+
/* @__PURE__ */ Z(R, {
|
|
763
|
+
color: "error",
|
|
764
|
+
onClick: () => {
|
|
765
|
+
o?.(), e.onClose();
|
|
766
|
+
},
|
|
767
|
+
children: /* @__PURE__ */ Z(J, {
|
|
768
|
+
variant: "body2",
|
|
769
|
+
color: "error",
|
|
770
|
+
children: l
|
|
771
|
+
})
|
|
772
|
+
})
|
|
773
|
+
] }), t[5] = l, t[6] = a, t[7] = o, t[8] = c, t[9] = h) : h = t[9];
|
|
774
|
+
let g;
|
|
775
|
+
return t[10] !== p || t[11] !== h ? (g = /* @__PURE__ */ Q(X, { children: [u, /* @__PURE__ */ Z(lt, {
|
|
776
|
+
TriggerProps: p,
|
|
777
|
+
MenuProps: m,
|
|
778
|
+
children: h
|
|
779
|
+
})] }), t[10] = p, t[11] = h, t[12] = g) : g = t[12], g;
|
|
780
|
+
}
|
|
781
|
+
function pt(e) {
|
|
782
|
+
return e.visible;
|
|
783
|
+
}
|
|
784
|
+
function mt(e) {
|
|
785
|
+
return e.type !== "draw";
|
|
786
|
+
}
|
|
787
|
+
var ht = function(e) {
|
|
788
|
+
let t = i(15), { modes: n, modesMapping: r, modeSelected: a, actionProps: o, enabled: s, labels: c, onActionToggle: l } = e, u;
|
|
789
|
+
t[0] === n ? u = t[1] : (u = n ?? {}, t[0] = n, t[1] = u);
|
|
790
|
+
let d;
|
|
791
|
+
t[2] === r ? d = t[3] : (d = r ?? {}, t[2] = r, t[3] = d);
|
|
792
|
+
let f;
|
|
793
|
+
t[4] !== u || t[5] !== d ? (f = (0, He.default)(u, d), t[4] = u, t[5] = d, t[6] = f) : f = t[6];
|
|
794
|
+
let p = f, m;
|
|
795
|
+
t[7] === l ? m = t[8] : (m = (e) => l?.(e), t[7] = l, t[8] = m);
|
|
796
|
+
let h = m, g = a && a in (n ?? {}) ? a : Object.keys(n ?? {})[0], _ = g == null ? null : p[g], v = c?.action, y = s ?? !1, b = _?.icon, x;
|
|
797
|
+
return t[9] !== o || t[10] !== h || t[11] !== v || t[12] !== y || t[13] !== b ? (x = /* @__PURE__ */ Z(st, {
|
|
798
|
+
actionProps: o,
|
|
799
|
+
labels: v,
|
|
800
|
+
enabled: y,
|
|
801
|
+
onActionToggle: h,
|
|
802
|
+
children: b
|
|
803
|
+
}), t[9] = o, t[10] = h, t[11] = v, t[12] = y, t[13] = b, t[14] = x) : x = t[14], x;
|
|
804
|
+
}, gt = function(e) {
|
|
805
|
+
let t = i(9), { values: n, labels: r, chipProps: a, onDelete: o, onChipToggle: s, onActionToggle: c } = e, l;
|
|
806
|
+
t[0] !== c || t[1] !== o ? (l = (e) => (c?.(!1), o?.(e)), t[0] = c, t[1] = o, t[2] = l) : l = t[2];
|
|
807
|
+
let u = l, d;
|
|
808
|
+
if (t[3] !== a || t[4] !== u || t[5] !== r?.chip || t[6] !== s || t[7] !== n) {
|
|
809
|
+
let e = n?.filter(bt) ?? [];
|
|
810
|
+
d = !!e.length && /* @__PURE__ */ Z(g, {
|
|
811
|
+
sx: Be.chip.container,
|
|
812
|
+
children: e.map((e) => /* @__PURE__ */ Z(We, {
|
|
813
|
+
value: e,
|
|
814
|
+
labels: r?.chip,
|
|
815
|
+
chipProps: a,
|
|
816
|
+
onDelete: u,
|
|
817
|
+
onChipToggle: (e, t) => s?.(e, t)
|
|
818
|
+
}, e.id))
|
|
819
|
+
}), t[3] = a, t[4] = u, t[5] = r?.chip, t[6] = s, t[7] = n, t[8] = d;
|
|
820
|
+
} else d = t[8];
|
|
821
|
+
return d;
|
|
822
|
+
}, _t = ft, vt = function(e) {
|
|
823
|
+
let t = i(8), { enabled: n, labels: r, canUndo: a, canRedo: o, onUndo: s, onRedo: c, shortcuts: l } = e;
|
|
824
|
+
if (!n || !s || !c) return null;
|
|
825
|
+
let u;
|
|
826
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Z(T, {
|
|
827
|
+
orientation: "vertical",
|
|
828
|
+
flexItem: !0
|
|
829
|
+
}), t[0] = u) : u = t[0];
|
|
830
|
+
let d = !!a, f = !!o, p = r?.undoRedo, m;
|
|
831
|
+
return t[1] !== c || t[2] !== s || t[3] !== l || t[4] !== d || t[5] !== f || t[6] !== p ? (m = /* @__PURE__ */ Q(X, { children: [u, /* @__PURE__ */ Z($e, {
|
|
832
|
+
canUndo: d,
|
|
833
|
+
canRedo: f,
|
|
834
|
+
onUndo: s,
|
|
835
|
+
onRedo: c,
|
|
836
|
+
labels: p,
|
|
837
|
+
shortcuts: l
|
|
838
|
+
})] }), t[1] = c, t[2] = s, t[3] = l, t[4] = d, t[5] = f, t[6] = p, t[7] = m) : m = t[7], m;
|
|
839
|
+
}, yt = function(e) {
|
|
840
|
+
let t = i(65), n, r, a, o, s, c, l, u, d;
|
|
841
|
+
t[0] === e ? (n = t[1], r = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9]) : ({modes: s, modesMapping: c, modeSelected: o, interactionMode: n, interactionModeMaskDisabled: r, labels: a, onChangeMode: u, onChangeInteractionMode: l, ...d} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d);
|
|
842
|
+
let f;
|
|
843
|
+
t[10] === s ? f = t[11] : (f = s ?? {}, t[10] = s, t[11] = f);
|
|
844
|
+
let p;
|
|
845
|
+
t[12] === c ? p = t[13] : (p = c ?? {}, t[12] = c, t[13] = p);
|
|
846
|
+
let m;
|
|
847
|
+
t[14] !== f || t[15] !== p ? (m = (0, He.default)(f, p), t[14] = f, t[15] = p, t[16] = m) : m = t[16];
|
|
848
|
+
let h = m, g, _, v;
|
|
849
|
+
t[17] === h ? (g = t[18], _ = t[19], v = t[20]) : ({select: v, "lasso-select": _, ...g} = h, t[17] = h, t[18] = g, t[19] = _, t[20] = v);
|
|
850
|
+
let y;
|
|
851
|
+
t[21] !== o || t[22] !== s ? (y = o ? o in (s ?? {}) : !1, t[21] = o, t[22] = s, t[23] = y) : y = t[23];
|
|
852
|
+
let b = y, x;
|
|
853
|
+
t[24] !== b || t[25] !== o || t[26] !== s ? (x = (b ? o : Object.keys(s ?? {})[0]) ?? null, t[24] = b, t[25] = o, t[26] = s, t[27] = x) : x = t[27];
|
|
854
|
+
let S = x, C;
|
|
855
|
+
t[28] === g ? C = t[29] : (C = Object.values(g).filter(xt), t[28] = g, t[29] = C);
|
|
856
|
+
let w = C, E;
|
|
857
|
+
t[30] !== _ || t[31] !== v ? (E = [v, _].filter(St), t[30] = _, t[31] = v, t[32] = E) : E = t[32];
|
|
858
|
+
let D = E, O;
|
|
859
|
+
t[33] === u ? O = t[34] : (O = (e) => u?.(e), t[33] = u, t[34] = O);
|
|
860
|
+
let k = O, A = a?.options?.selection?.title ?? $.options.selection.title, j;
|
|
861
|
+
t[35] !== n || t[36] !== r || t[37] !== a?.options?.interactionMode || t[38] !== l ? (j = !!l && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(Ve, {
|
|
862
|
+
value: n ?? "mask",
|
|
863
|
+
labels: a?.options?.interactionMode,
|
|
864
|
+
onChange: l,
|
|
865
|
+
maskDisabled: r
|
|
866
|
+
}), /* @__PURE__ */ Z(T, {})] }), t[35] = n, t[36] = r, t[37] = a?.options?.interactionMode, t[38] = l, t[39] = j) : j = t[39];
|
|
867
|
+
let M = a?.options, N = a?.options, P;
|
|
868
|
+
t[40] !== k || t[41] !== S || t[42] !== w || t[43] !== d || t[44] !== N ? (P = /* @__PURE__ */ Z(dt, {
|
|
869
|
+
...d,
|
|
870
|
+
labels: N,
|
|
871
|
+
data: w,
|
|
872
|
+
modeSelected: S,
|
|
873
|
+
onChangeMode: k
|
|
874
|
+
}), t[40] = k, t[41] = S, t[42] = w, t[43] = d, t[44] = N, t[45] = P) : P = t[45];
|
|
875
|
+
let L;
|
|
876
|
+
t[46] !== w || t[47] !== M || t[48] !== P ? (L = /* @__PURE__ */ Z(ut, {
|
|
877
|
+
data: w,
|
|
878
|
+
labels: M,
|
|
879
|
+
children: P
|
|
880
|
+
}), t[46] = w, t[47] = M, t[48] = P, t[49] = L) : L = t[49];
|
|
881
|
+
let z;
|
|
882
|
+
t[50] !== k || t[51] !== a?.options || t[52] !== S || t[53] !== d || t[54] !== D || t[55] !== A ? (z = D.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
883
|
+
/* @__PURE__ */ Z(T, {}),
|
|
884
|
+
/* @__PURE__ */ Z(J, {
|
|
885
|
+
variant: "subtitle2",
|
|
886
|
+
color: "text.secondary",
|
|
887
|
+
sx: Be.options.title,
|
|
888
|
+
children: A
|
|
889
|
+
}),
|
|
890
|
+
/* @__PURE__ */ Z(dt, {
|
|
891
|
+
...d,
|
|
892
|
+
labels: a?.options,
|
|
893
|
+
data: D,
|
|
894
|
+
modeSelected: S,
|
|
895
|
+
onChangeMode: k
|
|
896
|
+
})
|
|
897
|
+
] }), t[50] = k, t[51] = a?.options, t[52] = S, t[53] = d, t[54] = D, t[55] = A, t[56] = z) : z = t[56];
|
|
898
|
+
let B;
|
|
899
|
+
t[57] !== a?.options?.layerFilters || t[58] !== d ? (B = !!d.onLayerFilters && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(T, {}), /* @__PURE__ */ Q(R, {
|
|
900
|
+
onClick: () => {
|
|
901
|
+
d.onLayerFilters?.(), d.onClose();
|
|
902
|
+
},
|
|
903
|
+
children: [/* @__PURE__ */ Z(F, {
|
|
904
|
+
sx: Be.options.icons,
|
|
905
|
+
children: /* @__PURE__ */ Z(_e, {})
|
|
906
|
+
}), /* @__PURE__ */ Z(I, { children: a?.options?.layerFilters ?? "Layer filters" })]
|
|
907
|
+
})] }), t[57] = a?.options?.layerFilters, t[58] = d, t[59] = B) : B = t[59];
|
|
908
|
+
let V;
|
|
909
|
+
return t[60] !== L || t[61] !== z || t[62] !== B || t[63] !== j ? (V = /* @__PURE__ */ Q(X, { children: [
|
|
910
|
+
j,
|
|
911
|
+
L,
|
|
912
|
+
z,
|
|
913
|
+
B
|
|
914
|
+
] }), t[60] = L, t[61] = z, t[62] = B, t[63] = j, t[64] = V) : V = t[64], V;
|
|
915
|
+
};
|
|
916
|
+
ot.Action = function(e) {
|
|
917
|
+
return /* @__PURE__ */ Z(ht, { ...nt(e) });
|
|
918
|
+
}, ot.Chips = function(e) {
|
|
919
|
+
return /* @__PURE__ */ Z(gt, { ...nt(e) });
|
|
920
|
+
}, ot.SecondaryActions = function(e) {
|
|
921
|
+
return /* @__PURE__ */ Z(_t, { ...nt(e) });
|
|
922
|
+
}, ot.UndoRedo = function(e) {
|
|
923
|
+
return /* @__PURE__ */ Z(vt, { ...nt(e) });
|
|
924
|
+
}, ot.Options = function(e) {
|
|
925
|
+
return /* @__PURE__ */ Z(yt, { ...nt(e) });
|
|
926
|
+
}, ot.OptionsMenu = function(e) {
|
|
927
|
+
let t = nt(e);
|
|
928
|
+
return /* @__PURE__ */ Z(lt, { children: (e) => /* @__PURE__ */ Z(yt, {
|
|
929
|
+
...t,
|
|
930
|
+
...e
|
|
931
|
+
}) });
|
|
932
|
+
};
|
|
933
|
+
function bt(e) {
|
|
934
|
+
return e.type !== "draw";
|
|
935
|
+
}
|
|
936
|
+
function xt(e) {
|
|
937
|
+
return e?.value;
|
|
938
|
+
}
|
|
939
|
+
function St(e) {
|
|
940
|
+
return e?.value;
|
|
941
|
+
}
|
|
942
|
+
//#endregion
|
|
943
|
+
//#region src/components/lasso-tool/lasso-tool-inline.tsx
|
|
944
|
+
var Ct = [], wt = {};
|
|
945
|
+
function Tt(e) {
|
|
946
|
+
let t = i(33), { enabled: n, values: r, chipProps: a, labels: o, modes: s, modesMapping: c, modeSelected: l, interactionMode: u, BoxProps: d, onChipToggle: f, onDelete: p, onChangeMode: m, onChangeInteractionMode: h, onAllChipToggle: _, onAllDelete: v, onLayerFilters: y, canUndo: b, canRedo: x, onUndo: S, onRedo: C, shortcuts: w, children: T } = e, E = r === void 0 ? Ct : r, D = d === void 0 ? wt : d, O, k;
|
|
947
|
+
t[0] === D ? (O = t[1], k = t[2]) : ({sx: k, ...O} = D, t[0] = D, t[1] = O, t[2] = k);
|
|
948
|
+
let A;
|
|
949
|
+
t[3] !== x || t[4] !== b || t[5] !== a || t[6] !== n || t[7] !== u || t[8] !== o || t[9] !== l || t[10] !== s || t[11] !== c || t[12] !== _ || t[13] !== v || t[14] !== h || t[15] !== m || t[16] !== f || t[17] !== p || t[18] !== y || t[19] !== C || t[20] !== S || t[21] !== w || t[22] !== E ? (A = {
|
|
950
|
+
enabled: n,
|
|
951
|
+
values: E,
|
|
952
|
+
chipProps: a,
|
|
953
|
+
labels: o,
|
|
954
|
+
modes: s,
|
|
955
|
+
modesMapping: c,
|
|
956
|
+
modeSelected: l,
|
|
957
|
+
interactionMode: u,
|
|
958
|
+
onChipToggle: f,
|
|
959
|
+
onDelete: p,
|
|
960
|
+
onChangeMode: m,
|
|
961
|
+
onChangeInteractionMode: h,
|
|
962
|
+
onAllChipToggle: _,
|
|
963
|
+
onAllDelete: v,
|
|
964
|
+
onLayerFilters: y,
|
|
965
|
+
canUndo: b,
|
|
966
|
+
canRedo: x,
|
|
967
|
+
onUndo: S,
|
|
968
|
+
onRedo: C,
|
|
969
|
+
shortcuts: w
|
|
970
|
+
}, t[3] = x, t[4] = b, t[5] = a, t[6] = n, t[7] = u, t[8] = o, t[9] = l, t[10] = s, t[11] = c, t[12] = _, t[13] = v, t[14] = h, t[15] = m, t[16] = f, t[17] = p, t[18] = y, t[19] = C, t[20] = S, t[21] = w, t[22] = E, t[23] = A) : A = t[23];
|
|
971
|
+
let j = A, M;
|
|
972
|
+
t[24] === k ? M = t[25] : (M = Re(Be.container, k), t[24] = k, t[25] = M);
|
|
973
|
+
let N;
|
|
974
|
+
t[26] !== T || t[27] !== j ? (N = /* @__PURE__ */ Z(tt, {
|
|
975
|
+
value: j,
|
|
976
|
+
children: T
|
|
977
|
+
}), t[26] = T, t[27] = j, t[28] = N) : N = t[28];
|
|
978
|
+
let P;
|
|
979
|
+
return t[29] !== O || t[30] !== M || t[31] !== N ? (P = /* @__PURE__ */ Z(g, {
|
|
980
|
+
sx: M,
|
|
981
|
+
...O,
|
|
982
|
+
className: "inline",
|
|
983
|
+
children: N
|
|
984
|
+
}), t[29] = O, t[30] = M, t[31] = N, t[32] = P) : P = t[32], P;
|
|
985
|
+
}
|
|
986
|
+
function Et(e) {
|
|
987
|
+
let t = i(16), { interactionMode: n, labels: r, onChangeInteractionMode: a, children: o } = e, s = !!a;
|
|
988
|
+
if (!s && (o == null || o === !1)) return null;
|
|
989
|
+
let c = r?.options?.interactionMode?.title ?? $.options.interactionMode.title, l;
|
|
990
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { width: "100%" }, t[0] = l) : l = t[0];
|
|
991
|
+
let u;
|
|
992
|
+
t[1] !== s || t[2] !== c ? (u = s && /* @__PURE__ */ Z(J, {
|
|
993
|
+
variant: "subtitle2",
|
|
994
|
+
color: "text.secondary",
|
|
995
|
+
sx: Be.options.title,
|
|
996
|
+
className: "inline",
|
|
997
|
+
children: c
|
|
998
|
+
}), t[1] = s, t[2] = c, t[3] = u) : u = t[3];
|
|
999
|
+
let d;
|
|
1000
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1001
|
+
display: "flex",
|
|
1002
|
+
flexDirection: "row",
|
|
1003
|
+
alignItems: "center",
|
|
1004
|
+
gap: 1,
|
|
1005
|
+
flexWrap: "wrap",
|
|
1006
|
+
width: "100%"
|
|
1007
|
+
}, t[4] = d) : d = t[4];
|
|
1008
|
+
let f;
|
|
1009
|
+
t[5] !== n || t[6] !== r?.options || t[7] !== a || t[8] !== s ? (f = s && /* @__PURE__ */ Z(Lt, {
|
|
1010
|
+
value: n ?? "mask",
|
|
1011
|
+
labels: r?.options,
|
|
1012
|
+
onChange: a
|
|
1013
|
+
}), t[5] = n, t[6] = r?.options, t[7] = a, t[8] = s, t[9] = f) : f = t[9];
|
|
1014
|
+
let p;
|
|
1015
|
+
t[10] !== o || t[11] !== f ? (p = /* @__PURE__ */ Q(g, {
|
|
1016
|
+
sx: d,
|
|
1017
|
+
children: [f, o]
|
|
1018
|
+
}), t[10] = o, t[11] = f, t[12] = p) : p = t[12];
|
|
1019
|
+
let m;
|
|
1020
|
+
return t[13] !== u || t[14] !== p ? (m = /* @__PURE__ */ Q(g, {
|
|
1021
|
+
sx: l,
|
|
1022
|
+
children: [u, p]
|
|
1023
|
+
}), t[13] = u, t[14] = p, t[15] = m) : m = t[15], m;
|
|
1024
|
+
}
|
|
1025
|
+
function Dt(e) {
|
|
1026
|
+
let t = i(38), { enabled: n, modes: r, modesMapping: a, modeSelected: o, labels: s, onChangeMode: c } = e, l;
|
|
1027
|
+
t[0] === r ? l = t[1] : (l = r === void 0 ? {} : r, t[0] = r, t[1] = l);
|
|
1028
|
+
let u = l, d;
|
|
1029
|
+
t[2] === a ? d = t[3] : (d = a === void 0 ? {} : a, t[2] = a, t[3] = d);
|
|
1030
|
+
let f = d, p;
|
|
1031
|
+
t[4] !== u || t[5] !== f ? (p = (0, He.default)(u, f), t[4] = u, t[5] = f, t[6] = p) : p = t[6];
|
|
1032
|
+
let m = p, h, _, v;
|
|
1033
|
+
t[7] === m ? (h = t[8], _ = t[9], v = t[10]) : ({select: v, "lasso-select": _, ...h} = m, t[7] = m, t[8] = h, t[9] = _, t[10] = v);
|
|
1034
|
+
let y;
|
|
1035
|
+
t[11] !== _ || t[12] !== v ? (y = [v, _].filter(kt), t[11] = _, t[12] = v, t[13] = y) : y = t[13];
|
|
1036
|
+
let b = y, x;
|
|
1037
|
+
t[14] === h ? x = t[15] : (x = Object.values(h).filter(Ot), t[14] = h, t[15] = x);
|
|
1038
|
+
let S = x;
|
|
1039
|
+
if (S.length + b.length <= 1) return null;
|
|
1040
|
+
let C;
|
|
1041
|
+
t[16] === c ? C = t[17] : (C = (e, t) => {
|
|
1042
|
+
e.preventDefault(), c?.(t);
|
|
1043
|
+
}, t[16] = c, t[17] = C);
|
|
1044
|
+
let w = C, E = (o ?? "") in u ? o : Object.keys(u)[0], D = n && E != null ? m[E] : null, O = s?.options?.mode?.title ?? $.options.mode.title, k;
|
|
1045
|
+
t[18] === O ? k = t[19] : (k = /* @__PURE__ */ Z(J, {
|
|
1046
|
+
variant: "subtitle2",
|
|
1047
|
+
color: "text.secondary",
|
|
1048
|
+
sx: Be.options.title,
|
|
1049
|
+
className: "inline",
|
|
1050
|
+
children: O
|
|
1051
|
+
}), t[18] = O, t[19] = k);
|
|
1052
|
+
let A = D?.value ?? null, j = s?.options, M;
|
|
1053
|
+
t[20] !== S || t[21] !== j ? (M = /* @__PURE__ */ Z(Rt, {
|
|
1054
|
+
labels: j,
|
|
1055
|
+
data: S
|
|
1056
|
+
}), t[20] = S, t[21] = j, t[22] = M) : M = t[22];
|
|
1057
|
+
let N;
|
|
1058
|
+
t[23] !== S.length || t[24] !== b.length ? (N = S.length > 0 && b.length > 0 && /* @__PURE__ */ Z(T, { orientation: "vertical" }), t[23] = S.length, t[24] = b.length, t[25] = N) : N = t[25];
|
|
1059
|
+
let P;
|
|
1060
|
+
t[26] !== s?.options || t[27] !== b ? (P = b.length > 0 && /* @__PURE__ */ Z(Rt, {
|
|
1061
|
+
labels: s?.options,
|
|
1062
|
+
data: b
|
|
1063
|
+
}), t[26] = s?.options, t[27] = b, t[28] = P) : P = t[28];
|
|
1064
|
+
let F;
|
|
1065
|
+
t[29] !== w || t[30] !== A || t[31] !== M || t[32] !== N || t[33] !== P ? (F = /* @__PURE__ */ Q(ee, {
|
|
1066
|
+
value: A,
|
|
1067
|
+
exclusive: !0,
|
|
1068
|
+
className: "inline",
|
|
1069
|
+
sx: Be.options.menu,
|
|
1070
|
+
onChange: w,
|
|
1071
|
+
children: [
|
|
1072
|
+
M,
|
|
1073
|
+
N,
|
|
1074
|
+
P
|
|
1075
|
+
]
|
|
1076
|
+
}), t[29] = w, t[30] = A, t[31] = M, t[32] = N, t[33] = P, t[34] = F) : F = t[34];
|
|
1077
|
+
let I;
|
|
1078
|
+
return t[35] !== F || t[36] !== k ? (I = /* @__PURE__ */ Q(g, { children: [k, F] }), t[35] = F, t[36] = k, t[37] = I) : I = t[37], I;
|
|
1079
|
+
}
|
|
1080
|
+
function Ot(e) {
|
|
1081
|
+
return e?.value;
|
|
1082
|
+
}
|
|
1083
|
+
function kt(e) {
|
|
1084
|
+
return e?.value;
|
|
1085
|
+
}
|
|
1086
|
+
function At(e) {
|
|
1087
|
+
let t = i(7), { enabled: n, canUndo: r, canRedo: a, onUndo: o, onRedo: s, labels: c, shortcuts: l } = e;
|
|
1088
|
+
if (!n || !o || !s) return null;
|
|
1089
|
+
let u = !!r, d = !!a, f = c?.undoRedo, p;
|
|
1090
|
+
return t[0] !== s || t[1] !== o || t[2] !== l || t[3] !== u || t[4] !== d || t[5] !== f ? (p = /* @__PURE__ */ Z(g, { children: /* @__PURE__ */ Z($e, {
|
|
1091
|
+
canUndo: u,
|
|
1092
|
+
canRedo: d,
|
|
1093
|
+
onUndo: o,
|
|
1094
|
+
onRedo: s,
|
|
1095
|
+
labels: f,
|
|
1096
|
+
shortcuts: l
|
|
1097
|
+
}) }), t[0] = s, t[1] = o, t[2] = l, t[3] = u, t[4] = d, t[5] = f, t[6] = p) : p = t[6], p;
|
|
1098
|
+
}
|
|
1099
|
+
function jt(e) {
|
|
1100
|
+
let t = i(12), { values: n, chipProps: r, labels: a, onChipToggle: o, onDelete: s } = e, c = n === void 0 ? Ct : n, l;
|
|
1101
|
+
t[0] === s ? l = t[1] : (l = (e) => s?.(e), t[0] = s, t[1] = l);
|
|
1102
|
+
let u = l, d;
|
|
1103
|
+
if (t[2] !== r || t[3] !== u || t[4] !== a?.chip || t[5] !== a?.noData || t[6] !== o || t[7] !== c) {
|
|
1104
|
+
let e = c.filter(Nt), n = !!e.length, i = a?.noData, s;
|
|
1105
|
+
t[9] !== n || t[10] !== i ? (s = /* @__PURE__ */ Z(zt, {
|
|
1106
|
+
hasValues: n,
|
|
1107
|
+
labels: i
|
|
1108
|
+
}), t[9] = n, t[10] = i, t[11] = s) : s = t[11], d = /* @__PURE__ */ Q(g, { children: [s, !!e.length && /* @__PURE__ */ Z(g, {
|
|
1109
|
+
sx: Be.chip.container,
|
|
1110
|
+
className: "inline",
|
|
1111
|
+
children: e.map((e) => /* @__PURE__ */ Z(We, {
|
|
1112
|
+
value: e,
|
|
1113
|
+
labels: a?.chip,
|
|
1114
|
+
chipProps: r,
|
|
1115
|
+
onDelete: u,
|
|
1116
|
+
onChipToggle: o ?? Mt
|
|
1117
|
+
}, e.id))
|
|
1118
|
+
})] }), t[2] = r, t[3] = u, t[4] = a?.chip, t[5] = a?.noData, t[6] = o, t[7] = c, t[8] = d;
|
|
1119
|
+
} else d = t[8];
|
|
1120
|
+
return d;
|
|
1121
|
+
}
|
|
1122
|
+
function Mt() {}
|
|
1123
|
+
function Nt(e) {
|
|
1124
|
+
return e.type !== "draw";
|
|
1125
|
+
}
|
|
1126
|
+
function Pt(e) {
|
|
1127
|
+
let t = i(22), { values: n, labels: r, onAllChipToggle: a, onAllDelete: o, onLayerFilters: s } = e, c = n === void 0 ? Ct : n, l, u, d;
|
|
1128
|
+
if (t[0] !== s || t[1] !== c) {
|
|
1129
|
+
d = Symbol.for("react.early_return_sentinel");
|
|
1130
|
+
bb0: {
|
|
1131
|
+
let e = c.filter(It);
|
|
1132
|
+
if (l = e.length > 1, !l && !s) {
|
|
1133
|
+
d = null;
|
|
1134
|
+
break bb0;
|
|
1135
|
+
}
|
|
1136
|
+
u = e.some(Ft);
|
|
1137
|
+
}
|
|
1138
|
+
t[0] = s, t[1] = c, t[2] = l, t[3] = u, t[4] = d;
|
|
1139
|
+
} else l = t[2], u = t[3], d = t[4];
|
|
1140
|
+
if (d !== Symbol.for("react.early_return_sentinel")) return d;
|
|
1141
|
+
let f = u ? r?.actions?.toggleAll?.active ?? $.actions.toggleAll.active : r?.actions?.toggleAll?.inactive ?? $.actions.toggleAll.inactive, p = r?.actions?.deleteAll ?? $.actions.deleteAll, m = r?.options?.layerFilters ?? $.options.layerFilters, h;
|
|
1142
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
1143
|
+
display: "flex",
|
|
1144
|
+
alignItems: "center",
|
|
1145
|
+
gap: 1
|
|
1146
|
+
}, t[5] = h) : h = t[5];
|
|
1147
|
+
let v;
|
|
1148
|
+
t[6] !== p || t[7] !== a || t[8] !== o || t[9] !== l || t[10] !== f ? (v = l && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(_, {
|
|
1149
|
+
color: "inherit",
|
|
1150
|
+
onClick: () => a?.(),
|
|
1151
|
+
children: f
|
|
1152
|
+
}), /* @__PURE__ */ Z(_, {
|
|
1153
|
+
color: "error",
|
|
1154
|
+
onClick: () => o?.(),
|
|
1155
|
+
children: p
|
|
1156
|
+
})] }), t[6] = p, t[7] = a, t[8] = o, t[9] = l, t[10] = f, t[11] = v) : v = t[11];
|
|
1157
|
+
let y;
|
|
1158
|
+
t[12] !== s || t[13] !== l ? (y = l && !!s && /* @__PURE__ */ Z(T, {
|
|
1159
|
+
orientation: "vertical",
|
|
1160
|
+
flexItem: !0
|
|
1161
|
+
}), t[12] = s, t[13] = l, t[14] = y) : y = t[14];
|
|
1162
|
+
let b;
|
|
1163
|
+
t[15] !== m || t[16] !== s ? (b = !!s && /* @__PURE__ */ Z(_, {
|
|
1164
|
+
color: "inherit",
|
|
1165
|
+
onClick: () => s(),
|
|
1166
|
+
children: m
|
|
1167
|
+
}), t[15] = m, t[16] = s, t[17] = b) : b = t[17];
|
|
1168
|
+
let x;
|
|
1169
|
+
return t[18] !== v || t[19] !== y || t[20] !== b ? (x = /* @__PURE__ */ Q(g, {
|
|
1170
|
+
sx: h,
|
|
1171
|
+
children: [
|
|
1172
|
+
v,
|
|
1173
|
+
y,
|
|
1174
|
+
b
|
|
1175
|
+
]
|
|
1176
|
+
}), t[18] = v, t[19] = y, t[20] = b, t[21] = x) : x = t[21], x;
|
|
1177
|
+
}
|
|
1178
|
+
function Ft(e) {
|
|
1179
|
+
return e.visible;
|
|
1180
|
+
}
|
|
1181
|
+
function It(e) {
|
|
1182
|
+
return e.type !== "draw";
|
|
1183
|
+
}
|
|
1184
|
+
Tt.InteractionMode = function(e) {
|
|
1185
|
+
return /* @__PURE__ */ Z(Et, { ...nt(e) });
|
|
1186
|
+
}, Tt.Modes = function(e) {
|
|
1187
|
+
return /* @__PURE__ */ Z(Dt, { ...nt(e) });
|
|
1188
|
+
}, Tt.UndoRedo = function(e) {
|
|
1189
|
+
return /* @__PURE__ */ Z(At, { ...nt(e) });
|
|
1190
|
+
}, Tt.Chips = function(e) {
|
|
1191
|
+
return /* @__PURE__ */ Z(jt, { ...nt(e) });
|
|
1192
|
+
}, Tt.Actions = function(e) {
|
|
1193
|
+
return /* @__PURE__ */ Z(Pt, { ...nt(e) });
|
|
1194
|
+
};
|
|
1195
|
+
function Lt(e) {
|
|
1196
|
+
let t = i(11), { value: n, labels: r, onChange: a } = e, o = r?.interactionMode?.mask ?? $.options.interactionMode.mask, s = r?.interactionMode?.draw ?? $.options.interactionMode.draw, c;
|
|
1197
|
+
t[0] === a ? c = t[1] : (c = (e, t) => {
|
|
1198
|
+
t && a(t);
|
|
1199
|
+
}, t[0] = a, t[1] = c);
|
|
1200
|
+
let l;
|
|
1201
|
+
t[2] === o ? l = t[3] : (l = /* @__PURE__ */ Z(q, {
|
|
1202
|
+
value: "mask",
|
|
1203
|
+
children: o
|
|
1204
|
+
}), t[2] = o, t[3] = l);
|
|
1205
|
+
let u;
|
|
1206
|
+
t[4] === s ? u = t[5] : (u = /* @__PURE__ */ Z(q, {
|
|
1207
|
+
value: "draw",
|
|
1208
|
+
children: s
|
|
1209
|
+
}), t[4] = s, t[5] = u);
|
|
1210
|
+
let d;
|
|
1211
|
+
return t[6] !== c || t[7] !== l || t[8] !== u || t[9] !== n ? (d = /* @__PURE__ */ Q(ee, {
|
|
1212
|
+
value: n,
|
|
1213
|
+
exclusive: !0,
|
|
1214
|
+
className: "inline",
|
|
1215
|
+
sx: Be.options.menu,
|
|
1216
|
+
onChange: c,
|
|
1217
|
+
children: [l, u]
|
|
1218
|
+
}), t[6] = c, t[7] = l, t[8] = u, t[9] = n, t[10] = d) : d = t[10], d;
|
|
1219
|
+
}
|
|
1220
|
+
function Rt({ data: e, labels: t }) {
|
|
1221
|
+
return e.filter((e) => !!e?.value).map((e) => {
|
|
1222
|
+
let r = (t?.mode?.options ?? $.options.mode.options)[e.value] ?? e.value;
|
|
1223
|
+
return /* @__PURE__ */ Z(n, {
|
|
1224
|
+
title: r,
|
|
1225
|
+
placement: "bottom",
|
|
1226
|
+
children: /* @__PURE__ */ Z(q, {
|
|
1227
|
+
disabled: !!e.disabled,
|
|
1228
|
+
value: e.value,
|
|
1229
|
+
"aria-label": r,
|
|
1230
|
+
children: /* @__PURE__ */ Z(G, { children: e.icon })
|
|
1231
|
+
})
|
|
1232
|
+
}, e.value);
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
function zt(e) {
|
|
1236
|
+
let t = i(7), { hasValues: n, labels: r } = e;
|
|
1237
|
+
if (n) return null;
|
|
1238
|
+
let a = r?.title ?? $.noData.title, o = r?.description ?? $.noData.description, s;
|
|
1239
|
+
t[0] === a ? s = t[1] : (s = /* @__PURE__ */ Z(J, {
|
|
1240
|
+
variant: "body1",
|
|
1241
|
+
color: "textSecondary",
|
|
1242
|
+
children: a
|
|
1243
|
+
}), t[0] = a, t[1] = s);
|
|
1244
|
+
let c;
|
|
1245
|
+
t[2] === o ? c = t[3] : (c = /* @__PURE__ */ Z(J, {
|
|
1246
|
+
variant: "body2",
|
|
1247
|
+
color: "textSecondary",
|
|
1248
|
+
children: o
|
|
1249
|
+
}), t[2] = o, t[3] = c);
|
|
1250
|
+
let l;
|
|
1251
|
+
return t[4] !== s || t[5] !== c ? (l = /* @__PURE__ */ Q(X, { children: [s, c] }), t[4] = s, t[5] = c, t[6] = l) : l = t[6], l;
|
|
1252
|
+
}
|
|
1253
|
+
//#endregion
|
|
1254
|
+
//#region src/components/lasso-tool/toolbar/toolbar.tsx
|
|
1255
|
+
function Bt(e) {
|
|
1256
|
+
let t = i(12), { children: n, PaperProps: r, ref: a } = e, o;
|
|
1257
|
+
t[0] === r ? o = t[1] : (o = r === void 0 ? {} : r, t[0] = r, t[1] = o);
|
|
1258
|
+
let s, c;
|
|
1259
|
+
t[2] === o ? (s = t[3], c = t[4]) : ({sx: c, ...s} = o, t[2] = o, t[3] = s, t[4] = c);
|
|
1260
|
+
let l;
|
|
1261
|
+
t[5] === c ? l = t[6] : (l = Re(qe.container, c), t[5] = c, t[6] = l);
|
|
1262
|
+
let u;
|
|
1263
|
+
return t[7] !== s || t[8] !== n || t[9] !== a || t[10] !== l ? (u = /* @__PURE__ */ Z(z, {
|
|
1264
|
+
ref: a,
|
|
1265
|
+
elevation: 6,
|
|
1266
|
+
sx: l,
|
|
1267
|
+
...s,
|
|
1268
|
+
children: n
|
|
1269
|
+
}), t[7] = s, t[8] = n, t[9] = a, t[10] = l, t[11] = u) : u = t[11], u;
|
|
1270
|
+
}
|
|
1271
|
+
Bt.Divider = function() {
|
|
1272
|
+
return /* @__PURE__ */ Z(T, {
|
|
1273
|
+
orientation: "vertical",
|
|
1274
|
+
flexItem: !0
|
|
1275
|
+
});
|
|
1276
|
+
};
|
|
1277
|
+
//#endregion
|
|
1278
|
+
//#region src/components/lasso-tool/toolbar/actions/toggle-type-action.tsx
|
|
1279
|
+
var Vt = {
|
|
1280
|
+
mask: "Switch to mask",
|
|
1281
|
+
draw: "Switch to drawing"
|
|
1282
|
+
};
|
|
1283
|
+
function Ht(e) {
|
|
1284
|
+
let t = i(10), { type: n, disabled: r, labels: a, onToggleType: o } = e, s = r !== void 0 && r, c = n === "mask" ? a?.draw ?? Vt.draw : a?.mask ?? Vt.mask, l = n === "mask", u = n === "mask", d;
|
|
1285
|
+
t[0] !== o || t[1] !== n ? (d = () => o(n === "mask" ? "draw" : "mask"), t[0] = o, t[1] = n, t[2] = d) : d = t[2];
|
|
1286
|
+
let f;
|
|
1287
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ Z(G, {
|
|
1288
|
+
component: Fe,
|
|
1289
|
+
inheritViewBox: !0,
|
|
1290
|
+
sx: { fontSize: 18 }
|
|
1291
|
+
}), t[3] = f) : f = t[3];
|
|
1292
|
+
let p;
|
|
1293
|
+
return t[4] !== s || t[5] !== c || t[6] !== l || t[7] !== u || t[8] !== d ? (p = /* @__PURE__ */ Z(Je, {
|
|
1294
|
+
label: c,
|
|
1295
|
+
active: l,
|
|
1296
|
+
pressed: u,
|
|
1297
|
+
disabled: s,
|
|
1298
|
+
onClick: d,
|
|
1299
|
+
icon: f
|
|
1300
|
+
}), t[4] = s, t[5] = c, t[6] = l, t[7] = u, t[8] = d, t[9] = p) : p = t[9], p;
|
|
1301
|
+
}
|
|
1302
|
+
//#endregion
|
|
1303
|
+
//#region src/components/lasso-tool/toolbar/actions/action-menu.tsx
|
|
1304
|
+
function Ut(e) {
|
|
1305
|
+
let t = i(28), { label: n, icon: r, disabled: a, value: o, options: s, onChange: c, disablePortal: l } = e, u = a !== void 0 && a, d = l !== void 0 && l, [p, m] = f(null), h = !!p, g = h || void 0, _;
|
|
1306
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (_ = (e) => m(e.currentTarget), t[0] = _) : _ = t[0];
|
|
1307
|
+
let v;
|
|
1308
|
+
t[1] !== u || t[2] !== r || t[3] !== n || t[4] !== h || t[5] !== g ? (v = /* @__PURE__ */ Z(Je, {
|
|
1309
|
+
label: n,
|
|
1310
|
+
active: h,
|
|
1311
|
+
disabled: u,
|
|
1312
|
+
"aria-haspopup": "menu",
|
|
1313
|
+
"aria-expanded": g,
|
|
1314
|
+
onClick: _,
|
|
1315
|
+
icon: r
|
|
1316
|
+
}), t[1] = u, t[2] = r, t[3] = n, t[4] = h, t[5] = g, t[6] = v) : v = t[6];
|
|
1317
|
+
let y;
|
|
1318
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (y = () => m(null), t[7] = y) : y = t[7];
|
|
1319
|
+
let b, x;
|
|
1320
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
1321
|
+
vertical: "bottom",
|
|
1322
|
+
horizontal: "left"
|
|
1323
|
+
}, x = {
|
|
1324
|
+
vertical: "top",
|
|
1325
|
+
horizontal: "left"
|
|
1326
|
+
}, t[8] = b, t[9] = x) : (b = t[8], x = t[9]);
|
|
1327
|
+
let S;
|
|
1328
|
+
t[10] === d ? S = t[11] : (S = d ? { root: { onMouseDown: Wt } } : void 0, t[10] = d, t[11] = S);
|
|
1329
|
+
let C;
|
|
1330
|
+
if (t[12] !== c || t[13] !== s || t[14] !== o) {
|
|
1331
|
+
let e;
|
|
1332
|
+
t[16] !== c || t[17] !== o ? (e = (e) => /* @__PURE__ */ Q(R, {
|
|
1333
|
+
disabled: !!e.disabled,
|
|
1334
|
+
selected: e.value === o,
|
|
1335
|
+
onClick: () => {
|
|
1336
|
+
e.onSelect ? e.onSelect() : c(e.value), m(null);
|
|
1337
|
+
},
|
|
1338
|
+
children: [e.icon && /* @__PURE__ */ Z(F, {
|
|
1339
|
+
sx: { minWidth: 24 },
|
|
1340
|
+
children: e.icon
|
|
1341
|
+
}), /* @__PURE__ */ Z(I, { children: e.label })]
|
|
1342
|
+
}, e.value), t[16] = c, t[17] = o, t[18] = e) : e = t[18], C = s.map(e), t[12] = c, t[13] = s, t[14] = o, t[15] = C;
|
|
1343
|
+
} else C = t[15];
|
|
1344
|
+
let w;
|
|
1345
|
+
t[19] !== p || t[20] !== d || t[21] !== h || t[22] !== C || t[23] !== S ? (w = /* @__PURE__ */ Z(L, {
|
|
1346
|
+
anchorEl: p,
|
|
1347
|
+
open: h,
|
|
1348
|
+
onClose: y,
|
|
1349
|
+
disablePortal: d,
|
|
1350
|
+
disableAutoFocus: d,
|
|
1351
|
+
disableEnforceFocus: d,
|
|
1352
|
+
disableRestoreFocus: d,
|
|
1353
|
+
anchorOrigin: b,
|
|
1354
|
+
transformOrigin: x,
|
|
1355
|
+
slotProps: S,
|
|
1356
|
+
children: C
|
|
1357
|
+
}), t[19] = p, t[20] = d, t[21] = h, t[22] = C, t[23] = S, t[24] = w) : w = t[24];
|
|
1358
|
+
let T;
|
|
1359
|
+
return t[25] !== w || t[26] !== v ? (T = /* @__PURE__ */ Q(X, { children: [v, w] }), t[25] = w, t[26] = v, t[27] = T) : T = t[27], T;
|
|
1360
|
+
}
|
|
1361
|
+
function Wt(e) {
|
|
1362
|
+
e.stopPropagation();
|
|
1363
|
+
}
|
|
1364
|
+
//#endregion
|
|
1365
|
+
//#region src/components/lasso-tool/toolbar/actions/color-action.tsx
|
|
1366
|
+
var Gt = {
|
|
1367
|
+
yellow: "#F6CF71",
|
|
1368
|
+
orange: "#F89C74",
|
|
1369
|
+
purple: "#DCB0F2",
|
|
1370
|
+
pink: "#FE88B1",
|
|
1371
|
+
green: "#8BE0A4",
|
|
1372
|
+
brown: "#D3B484",
|
|
1373
|
+
black: "#2C3032",
|
|
1374
|
+
white: "#FFFFFF"
|
|
1375
|
+
}, Kt = {
|
|
1376
|
+
tooltip: "Color",
|
|
1377
|
+
options: {
|
|
1378
|
+
yellow: "Yellow",
|
|
1379
|
+
orange: "Orange",
|
|
1380
|
+
purple: "Purple",
|
|
1381
|
+
pink: "Pink",
|
|
1382
|
+
green: "Green",
|
|
1383
|
+
brown: "Brown",
|
|
1384
|
+
black: "Black",
|
|
1385
|
+
white: "White",
|
|
1386
|
+
custom: "Custom"
|
|
1387
|
+
}
|
|
1388
|
+
}, qt = Object.keys(Gt), Jt = "custom";
|
|
1389
|
+
function Yt(e) {
|
|
1390
|
+
return Object.prototype.hasOwnProperty.call(Gt, e);
|
|
1391
|
+
}
|
|
1392
|
+
function Xt(e) {
|
|
1393
|
+
let t = e.trim(), n = /^#?([0-9a-fA-F]{6})$/.exec(t);
|
|
1394
|
+
if (n) return `#${n[1].toLowerCase()}`;
|
|
1395
|
+
let r = /^#?([0-9a-fA-F]{3})$/.exec(t);
|
|
1396
|
+
if (r) {
|
|
1397
|
+
let [e, t, n] = r[1];
|
|
1398
|
+
return `#${e}${e}${t}${t}${n}${n}`.toLowerCase();
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
function Zt(e) {
|
|
1402
|
+
return Yt(e) ? Gt[e].toLowerCase() : Xt(e) ?? "#000000";
|
|
1403
|
+
}
|
|
1404
|
+
function Qt(e) {
|
|
1405
|
+
let t = i(5), { color: n, size: r } = e, a = r === void 0 ? 14 : r, o;
|
|
1406
|
+
t[0] === n ? o = t[1] : (o = Yt(n) ? Gt[n] : Xt(n) ?? "#cccccc", t[0] = n, t[1] = o);
|
|
1407
|
+
let s = o, c;
|
|
1408
|
+
return t[2] !== s || t[3] !== a ? (c = /* @__PURE__ */ Z(g, {
|
|
1409
|
+
component: "span",
|
|
1410
|
+
sx: {
|
|
1411
|
+
display: "inline-block",
|
|
1412
|
+
width: a,
|
|
1413
|
+
height: a,
|
|
1414
|
+
borderRadius: "50%",
|
|
1415
|
+
backgroundColor: s,
|
|
1416
|
+
border: $t
|
|
1417
|
+
}
|
|
1418
|
+
}), t[2] = s, t[3] = a, t[4] = c) : c = t[4], c;
|
|
1419
|
+
}
|
|
1420
|
+
function $t(e) {
|
|
1421
|
+
let { palette: t } = e;
|
|
1422
|
+
return `1px solid ${t.divider}`;
|
|
1423
|
+
}
|
|
1424
|
+
function en(e) {
|
|
1425
|
+
let t = i(2), { size: n } = e, r = n === void 0 ? 12 : n, a;
|
|
1426
|
+
return t[0] === r ? a = t[1] : (a = /* @__PURE__ */ Z(g, {
|
|
1427
|
+
component: "span",
|
|
1428
|
+
sx: {
|
|
1429
|
+
display: "inline-block",
|
|
1430
|
+
width: r,
|
|
1431
|
+
height: r,
|
|
1432
|
+
borderRadius: "50%",
|
|
1433
|
+
background: "conic-gradient(red, yellow, lime, aqua, blue, magenta, red)",
|
|
1434
|
+
border: tn
|
|
1435
|
+
}
|
|
1436
|
+
}), t[0] = r, t[1] = a), a;
|
|
1437
|
+
}
|
|
1438
|
+
function tn(e) {
|
|
1439
|
+
let { palette: t } = e;
|
|
1440
|
+
return `1px solid ${t.divider}`;
|
|
1441
|
+
}
|
|
1442
|
+
function nn(e) {
|
|
1443
|
+
let t = i(34), { value: n, disabled: r, labels: a, onChange: o, disablePortal: s } = e, c = r !== void 0 && r, l = s !== void 0 && s, u = d(null), f = Yt(n) ? n : Jt, p;
|
|
1444
|
+
t[0] === n ? p = t[1] : (p = () => {
|
|
1445
|
+
window.setTimeout(() => {
|
|
1446
|
+
let e = u.current;
|
|
1447
|
+
e && (e.value = Zt(n), e.click());
|
|
1448
|
+
}, 0);
|
|
1449
|
+
}, t[0] = n, t[1] = p);
|
|
1450
|
+
let m = p, h = a?.tooltip ?? Kt.tooltip, _;
|
|
1451
|
+
t[2] === n ? _ = t[3] : (_ = /* @__PURE__ */ Z(Qt, { color: n }), t[2] = n, t[3] = _);
|
|
1452
|
+
let v;
|
|
1453
|
+
if (t[4] !== a?.options || t[5] !== m) {
|
|
1454
|
+
let e;
|
|
1455
|
+
t[7] === a?.options ? e = t[8] : (e = (e) => ({
|
|
1456
|
+
value: e,
|
|
1457
|
+
label: a?.options?.[e] ?? Kt.options[e],
|
|
1458
|
+
icon: /* @__PURE__ */ Z(Qt, {
|
|
1459
|
+
color: e,
|
|
1460
|
+
size: 12
|
|
1461
|
+
})
|
|
1462
|
+
}), t[7] = a?.options, t[8] = e);
|
|
1463
|
+
let n = a?.options?.custom ?? Kt.options.custom, r;
|
|
1464
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ Z(en, {}), t[9] = r) : r = t[9];
|
|
1465
|
+
let i;
|
|
1466
|
+
t[10] !== m || t[11] !== n ? (i = {
|
|
1467
|
+
value: Jt,
|
|
1468
|
+
label: n,
|
|
1469
|
+
icon: r,
|
|
1470
|
+
onSelect: m
|
|
1471
|
+
}, t[10] = m, t[11] = n, t[12] = i) : i = t[12], v = [...qt.map(e), i], t[4] = a?.options, t[5] = m, t[6] = v;
|
|
1472
|
+
} else v = t[6];
|
|
1473
|
+
let y;
|
|
1474
|
+
t[13] === o ? y = t[14] : (y = (e) => {
|
|
1475
|
+
e !== Jt && o(e);
|
|
1476
|
+
}, t[13] = o, t[14] = y);
|
|
1477
|
+
let b;
|
|
1478
|
+
t[15] !== l || t[16] !== c || t[17] !== f || t[18] !== h || t[19] !== _ || t[20] !== v || t[21] !== y ? (b = /* @__PURE__ */ Z(Ut, {
|
|
1479
|
+
label: h,
|
|
1480
|
+
icon: _,
|
|
1481
|
+
disabled: c,
|
|
1482
|
+
value: f,
|
|
1483
|
+
disablePortal: l,
|
|
1484
|
+
options: v,
|
|
1485
|
+
onChange: y
|
|
1486
|
+
}), t[15] = l, t[16] = c, t[17] = f, t[18] = h, t[19] = _, t[20] = v, t[21] = y, t[22] = b) : b = t[22];
|
|
1487
|
+
let x;
|
|
1488
|
+
t[23] === n ? x = t[24] : (x = Zt(n), t[23] = n, t[24] = x);
|
|
1489
|
+
let S;
|
|
1490
|
+
t[25] === o ? S = t[26] : (S = (e) => {
|
|
1491
|
+
let t = Xt(e.currentTarget.value);
|
|
1492
|
+
t && o(t);
|
|
1493
|
+
}, t[25] = o, t[26] = S);
|
|
1494
|
+
let C;
|
|
1495
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
1496
|
+
position: "fixed",
|
|
1497
|
+
width: 0,
|
|
1498
|
+
height: 0,
|
|
1499
|
+
opacity: 0,
|
|
1500
|
+
pointerEvents: "none",
|
|
1501
|
+
border: 0,
|
|
1502
|
+
padding: 0
|
|
1503
|
+
}, t[27] = C) : C = t[27];
|
|
1504
|
+
let w;
|
|
1505
|
+
t[28] !== S || t[29] !== x ? (w = /* @__PURE__ */ Z(g, {
|
|
1506
|
+
component: "input",
|
|
1507
|
+
ref: u,
|
|
1508
|
+
type: "color",
|
|
1509
|
+
"aria-hidden": !0,
|
|
1510
|
+
tabIndex: -1,
|
|
1511
|
+
defaultValue: x,
|
|
1512
|
+
onChange: S,
|
|
1513
|
+
sx: C
|
|
1514
|
+
}), t[28] = S, t[29] = x, t[30] = w) : w = t[30];
|
|
1515
|
+
let T;
|
|
1516
|
+
return t[31] !== w || t[32] !== b ? (T = /* @__PURE__ */ Q(X, { children: [b, w] }), t[31] = w, t[32] = b, t[33] = T) : T = t[33], T;
|
|
1517
|
+
}
|
|
1518
|
+
//#endregion
|
|
1519
|
+
//#region src/components/lasso-tool/toolbar/actions/label-action.tsx
|
|
1520
|
+
var rn = {
|
|
1521
|
+
label: "Label",
|
|
1522
|
+
name: "Name",
|
|
1523
|
+
showOnMap: "Show on map",
|
|
1524
|
+
bold: "Bold",
|
|
1525
|
+
italic: "Italic"
|
|
1526
|
+
};
|
|
1527
|
+
function an(e) {
|
|
1528
|
+
let t = i(98), { label: n, textVisible: r, forceTextVisible: a, textColor: o, textBold: l, textItalic: u, disabled: p, labels: m, onRename: h, onSetTextPresentation: _, anchorRef: y, forceClose: b, onOpenChange: x, selectionKey: S } = e, C = r !== void 0 && r, w = a !== void 0 && a, T = o === void 0 ? "black" : o, E = l !== void 0 && l, D = u !== void 0 && u, k = p !== void 0 && p, A = b !== void 0 && b, j = d(!1), [M, N] = f(null), [P, F] = f(), [I, L] = f(n), R = on, z = !!M, V = m?.label ?? rn.label, H = m?.name ?? rn.name, U = m?.showOnMap ?? rn.showOnMap, W = m?.bold ?? rn.bold, q = m?.italic ?? rn.italic, ee = w || C, Y;
|
|
1529
|
+
t[0] !== y || t[1] !== n || t[2] !== x ? (Y = (e) => {
|
|
1530
|
+
j.current = !1, L(n);
|
|
1531
|
+
let t = y?.current ?? e;
|
|
1532
|
+
F(t.clientWidth), N(t), x?.(!0);
|
|
1533
|
+
}, t[0] = y, t[1] = n, t[2] = x, t[3] = Y) : Y = t[3];
|
|
1534
|
+
let te = Y, ne;
|
|
1535
|
+
t[4] !== I || t[5] !== n || t[6] !== h ? (ne = () => {
|
|
1536
|
+
if (!j.current) {
|
|
1537
|
+
j.current = !0;
|
|
1538
|
+
let e = I.trim();
|
|
1539
|
+
e && e !== n && h(e);
|
|
1540
|
+
}
|
|
1541
|
+
}, t[4] = I, t[5] = n, t[6] = h, t[7] = ne) : ne = t[7];
|
|
1542
|
+
let re = ne, ie;
|
|
1543
|
+
t[8] !== re || t[9] !== x ? (ie = () => {
|
|
1544
|
+
re(), N(null), x?.(!1);
|
|
1545
|
+
}, t[8] = re, t[9] = x, t[10] = ie) : ie = t[10];
|
|
1546
|
+
let ae = ie, oe;
|
|
1547
|
+
t[11] === x ? oe = t[12] : (oe = () => {
|
|
1548
|
+
j.current = !0, N(null), x?.(!1);
|
|
1549
|
+
}, t[11] = x, t[12] = oe);
|
|
1550
|
+
let se = oe, ce;
|
|
1551
|
+
t[13] !== M || t[14] !== ae ? (ce = () => {
|
|
1552
|
+
M && ae();
|
|
1553
|
+
}, t[13] = M, t[14] = ae, t[15] = ce) : ce = t[15];
|
|
1554
|
+
let le = c(ce), ue;
|
|
1555
|
+
t[16] !== A || t[17] !== le ? (ue = () => {
|
|
1556
|
+
A && le();
|
|
1557
|
+
}, t[16] = A, t[17] = le, t[18] = ue) : ue = t[18];
|
|
1558
|
+
let de;
|
|
1559
|
+
t[19] === A ? de = t[20] : (de = [A], t[19] = A, t[20] = de), s(ue, de);
|
|
1560
|
+
let me = d(S), he;
|
|
1561
|
+
t[21] !== M || t[22] !== se ? (he = () => {
|
|
1562
|
+
M && se();
|
|
1563
|
+
}, t[21] = M, t[22] = se, t[23] = he) : he = t[23];
|
|
1564
|
+
let ge = c(he), _e;
|
|
1565
|
+
t[24] !== ge || t[25] !== S ? (_e = () => {
|
|
1566
|
+
me.current !== S && (me.current = S, ge());
|
|
1567
|
+
}, t[24] = ge, t[25] = S, t[26] = _e) : _e = t[26];
|
|
1568
|
+
let ve;
|
|
1569
|
+
t[27] === S ? ve = t[28] : (ve = [S], t[27] = S, t[28] = ve), s(_e, ve);
|
|
1570
|
+
let ye;
|
|
1571
|
+
t[29] !== se || t[30] !== ae ? (ye = (e) => {
|
|
1572
|
+
e.key === "Enter" && (e.preventDefault(), ae()), e.key === "Escape" && (e.preventDefault(), se());
|
|
1573
|
+
}, t[29] = se, t[30] = ae, t[31] = ye) : ye = t[31];
|
|
1574
|
+
let be = ye, xe;
|
|
1575
|
+
t[32] === te ? xe = t[33] : (xe = (e) => te(e.currentTarget), t[32] = te, t[33] = xe);
|
|
1576
|
+
let Se;
|
|
1577
|
+
t[34] === Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ Z(G, {
|
|
1578
|
+
component: Ie,
|
|
1579
|
+
inheritViewBox: !0,
|
|
1580
|
+
sx: { fontSize: 18 }
|
|
1581
|
+
}), t[34] = Se) : Se = t[34];
|
|
1582
|
+
let Ce;
|
|
1583
|
+
t[35] !== V || t[36] !== k || t[37] !== z || t[38] !== xe ? (Ce = /* @__PURE__ */ Z(Je, {
|
|
1584
|
+
label: V,
|
|
1585
|
+
active: z,
|
|
1586
|
+
disabled: k,
|
|
1587
|
+
onClick: xe,
|
|
1588
|
+
icon: Se
|
|
1589
|
+
}), t[35] = V, t[36] = k, t[37] = z, t[38] = xe, t[39] = Ce) : Ce = t[39];
|
|
1590
|
+
let we, Te;
|
|
1591
|
+
t[40] === Symbol.for("react.memo_cache_sentinel") ? (we = {
|
|
1592
|
+
vertical: "bottom",
|
|
1593
|
+
horizontal: "left"
|
|
1594
|
+
}, Te = {
|
|
1595
|
+
vertical: "top",
|
|
1596
|
+
horizontal: "left"
|
|
1597
|
+
}, t[40] = we, t[41] = Te) : (we = t[40], Te = t[41]);
|
|
1598
|
+
let Ee;
|
|
1599
|
+
t[42] === P ? Ee = t[43] : (Ee = { paper: { sx: {
|
|
1600
|
+
width: P,
|
|
1601
|
+
minWidth: 220
|
|
1602
|
+
} } }, t[42] = P, t[43] = Ee);
|
|
1603
|
+
let De;
|
|
1604
|
+
t[44] === Symbol.for("react.memo_cache_sentinel") ? (De = {
|
|
1605
|
+
p: 1,
|
|
1606
|
+
display: "flex",
|
|
1607
|
+
flexDirection: "column",
|
|
1608
|
+
gap: 1
|
|
1609
|
+
}, t[44] = De) : De = t[44];
|
|
1610
|
+
let Oe;
|
|
1611
|
+
t[45] === Symbol.for("react.memo_cache_sentinel") ? (Oe = (e) => L(e.target.value), t[45] = Oe) : Oe = t[45];
|
|
1612
|
+
let ke;
|
|
1613
|
+
t[46] !== re || t[47] !== I || t[48] !== be || t[49] !== H ? (ke = /* @__PURE__ */ Z(K, {
|
|
1614
|
+
inputRef: R,
|
|
1615
|
+
fullWidth: !0,
|
|
1616
|
+
label: H,
|
|
1617
|
+
size: "small",
|
|
1618
|
+
variant: "outlined",
|
|
1619
|
+
value: I,
|
|
1620
|
+
onChange: Oe,
|
|
1621
|
+
onKeyDown: be,
|
|
1622
|
+
onBlur: re
|
|
1623
|
+
}), t[46] = re, t[47] = I, t[48] = be, t[49] = H, t[50] = ke) : ke = t[50];
|
|
1624
|
+
let Ae;
|
|
1625
|
+
t[51] !== w || t[52] !== _ || t[53] !== U || t[54] !== C ? (Ae = !w && /* @__PURE__ */ Z(O, {
|
|
1626
|
+
control: /* @__PURE__ */ Z(v, {
|
|
1627
|
+
size: "small",
|
|
1628
|
+
checked: C,
|
|
1629
|
+
onChange: (e) => _({ textVisible: e.target.checked })
|
|
1630
|
+
}),
|
|
1631
|
+
label: /* @__PURE__ */ Z(J, {
|
|
1632
|
+
variant: "body2",
|
|
1633
|
+
children: U
|
|
1634
|
+
})
|
|
1635
|
+
}), t[51] = w, t[52] = _, t[53] = U, t[54] = C, t[55] = Ae) : Ae = t[55];
|
|
1636
|
+
let je;
|
|
1637
|
+
t[56] === Symbol.for("react.memo_cache_sentinel") ? (je = {
|
|
1638
|
+
display: "flex",
|
|
1639
|
+
alignItems: "center",
|
|
1640
|
+
gap: .5
|
|
1641
|
+
}, t[56] = je) : je = t[56];
|
|
1642
|
+
let Me = !ee, Ne;
|
|
1643
|
+
t[57] === _ ? Ne = t[58] : (Ne = (e) => _({ textColor: e }), t[57] = _, t[58] = Ne);
|
|
1644
|
+
let Pe;
|
|
1645
|
+
t[59] !== Me || t[60] !== Ne || t[61] !== T ? (Pe = /* @__PURE__ */ Z(nn, {
|
|
1646
|
+
value: T,
|
|
1647
|
+
disabled: Me,
|
|
1648
|
+
disablePortal: !0,
|
|
1649
|
+
onChange: Ne
|
|
1650
|
+
}), t[59] = Me, t[60] = Ne, t[61] = T, t[62] = Pe) : Pe = t[62];
|
|
1651
|
+
let Fe = !ee, $;
|
|
1652
|
+
t[63] !== _ || t[64] !== E ? ($ = () => _({ textBold: !E }), t[63] = _, t[64] = E, t[65] = $) : $ = t[65];
|
|
1653
|
+
let Le;
|
|
1654
|
+
t[66] === Symbol.for("react.memo_cache_sentinel") ? (Le = /* @__PURE__ */ Z(fe, { sx: { fontSize: 18 } }), t[66] = Le) : Le = t[66];
|
|
1655
|
+
let Re;
|
|
1656
|
+
t[67] !== W || t[68] !== Fe || t[69] !== $ || t[70] !== E ? (Re = /* @__PURE__ */ Z(Je, {
|
|
1657
|
+
label: W,
|
|
1658
|
+
active: E,
|
|
1659
|
+
pressed: E,
|
|
1660
|
+
disabled: Fe,
|
|
1661
|
+
onClick: $,
|
|
1662
|
+
icon: Le
|
|
1663
|
+
}), t[67] = W, t[68] = Fe, t[69] = $, t[70] = E, t[71] = Re) : Re = t[71];
|
|
1664
|
+
let ze = !ee, Be;
|
|
1665
|
+
t[72] !== _ || t[73] !== D ? (Be = () => _({ textItalic: !D }), t[72] = _, t[73] = D, t[74] = Be) : Be = t[74];
|
|
1666
|
+
let Ve;
|
|
1667
|
+
t[75] === Symbol.for("react.memo_cache_sentinel") ? (Ve = /* @__PURE__ */ Z(pe, { sx: { fontSize: 18 } }), t[75] = Ve) : Ve = t[75];
|
|
1668
|
+
let He;
|
|
1669
|
+
t[76] !== q || t[77] !== ze || t[78] !== Be || t[79] !== D ? (He = /* @__PURE__ */ Z(Je, {
|
|
1670
|
+
label: q,
|
|
1671
|
+
active: D,
|
|
1672
|
+
pressed: D,
|
|
1673
|
+
disabled: ze,
|
|
1674
|
+
onClick: Be,
|
|
1675
|
+
icon: Ve
|
|
1676
|
+
}), t[76] = q, t[77] = ze, t[78] = Be, t[79] = D, t[80] = He) : He = t[80];
|
|
1677
|
+
let Ue;
|
|
1678
|
+
t[81] !== Pe || t[82] !== Re || t[83] !== He ? (Ue = /* @__PURE__ */ Q(g, {
|
|
1679
|
+
sx: je,
|
|
1680
|
+
children: [
|
|
1681
|
+
Pe,
|
|
1682
|
+
Re,
|
|
1683
|
+
He
|
|
1684
|
+
]
|
|
1685
|
+
}), t[81] = Pe, t[82] = Re, t[83] = He, t[84] = Ue) : Ue = t[84];
|
|
1686
|
+
let We;
|
|
1687
|
+
t[85] !== ke || t[86] !== Ae || t[87] !== Ue ? (We = /* @__PURE__ */ Q(g, {
|
|
1688
|
+
sx: De,
|
|
1689
|
+
children: [
|
|
1690
|
+
ke,
|
|
1691
|
+
Ae,
|
|
1692
|
+
Ue
|
|
1693
|
+
]
|
|
1694
|
+
}), t[85] = ke, t[86] = Ae, t[87] = Ue, t[88] = We) : We = t[88];
|
|
1695
|
+
let Ge;
|
|
1696
|
+
t[89] !== M || t[90] !== ae || t[91] !== z || t[92] !== Ee || t[93] !== We ? (Ge = /* @__PURE__ */ Z(B, {
|
|
1697
|
+
open: z,
|
|
1698
|
+
anchorEl: M,
|
|
1699
|
+
onClose: ae,
|
|
1700
|
+
anchorOrigin: we,
|
|
1701
|
+
transformOrigin: Te,
|
|
1702
|
+
slotProps: Ee,
|
|
1703
|
+
children: We
|
|
1704
|
+
}), t[89] = M, t[90] = ae, t[91] = z, t[92] = Ee, t[93] = We, t[94] = Ge) : Ge = t[94];
|
|
1705
|
+
let Ke;
|
|
1706
|
+
return t[95] !== Ce || t[96] !== Ge ? (Ke = /* @__PURE__ */ Q(X, { children: [Ce, Ge] }), t[95] = Ce, t[96] = Ge, t[97] = Ke) : Ke = t[97], Ke;
|
|
1707
|
+
}
|
|
1708
|
+
function on(e) {
|
|
1709
|
+
e?.focus();
|
|
1710
|
+
}
|
|
1711
|
+
//#endregion
|
|
1712
|
+
//#region src/components/lasso-tool/toolbar/actions/edit-properties-action.tsx
|
|
1713
|
+
var sn = /* @__PURE__ */ new Set([
|
|
1714
|
+
"label",
|
|
1715
|
+
"visible",
|
|
1716
|
+
"locked",
|
|
1717
|
+
"style",
|
|
1718
|
+
"textVisible",
|
|
1719
|
+
"textColor",
|
|
1720
|
+
"textBold",
|
|
1721
|
+
"textItalic",
|
|
1722
|
+
"textPosition",
|
|
1723
|
+
"type",
|
|
1724
|
+
"shape",
|
|
1725
|
+
"index"
|
|
1726
|
+
]);
|
|
1727
|
+
function cn(e) {
|
|
1728
|
+
let t = {};
|
|
1729
|
+
for (let [n, r] of Object.entries(e)) sn.has(n) || (t[n] = r);
|
|
1730
|
+
return t;
|
|
1731
|
+
}
|
|
1732
|
+
var ln = {
|
|
1733
|
+
editProperties: "Edit properties",
|
|
1734
|
+
keyPlaceholder: "Key",
|
|
1735
|
+
valuePlaceholder: "Value",
|
|
1736
|
+
addRow: "Add property",
|
|
1737
|
+
removeRow: "Remove property",
|
|
1738
|
+
emptyKeyError: "Key is required",
|
|
1739
|
+
duplicateKeyError: "Duplicate key",
|
|
1740
|
+
systemKeyError: "Reserved key"
|
|
1741
|
+
};
|
|
1742
|
+
function un(e) {
|
|
1743
|
+
if (typeof e == "string") return e;
|
|
1744
|
+
if (e === void 0) return "";
|
|
1745
|
+
try {
|
|
1746
|
+
return JSON.stringify(e) ?? String(e);
|
|
1747
|
+
} catch {
|
|
1748
|
+
return String(e);
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
function dn(e, t) {
|
|
1752
|
+
return e !== void 0 && un(e) === t ? e : t;
|
|
1753
|
+
}
|
|
1754
|
+
function fn(e) {
|
|
1755
|
+
let t = [], n = 0;
|
|
1756
|
+
for (let [r, i] of Object.entries(e)) t.push({
|
|
1757
|
+
uid: n++,
|
|
1758
|
+
key: r,
|
|
1759
|
+
value: un(i),
|
|
1760
|
+
originalValue: i
|
|
1761
|
+
});
|
|
1762
|
+
return t;
|
|
1763
|
+
}
|
|
1764
|
+
function pn(e, t) {
|
|
1765
|
+
let n = /* @__PURE__ */ new Map();
|
|
1766
|
+
for (let t of e) {
|
|
1767
|
+
let e = t.key.trim();
|
|
1768
|
+
e && n.set(e, (n.get(e) ?? 0) + 1);
|
|
1769
|
+
}
|
|
1770
|
+
let r = /* @__PURE__ */ new Map();
|
|
1771
|
+
for (let i of e) {
|
|
1772
|
+
let e = i.key.trim();
|
|
1773
|
+
e ? sn.has(e) ? r.set(i.uid, t.systemKeyError) : (n.get(e) ?? 0) > 1 && r.set(i.uid, t.duplicateKeyError) : r.set(i.uid, t.emptyKeyError);
|
|
1774
|
+
}
|
|
1775
|
+
return r;
|
|
1776
|
+
}
|
|
1777
|
+
function mn(e) {
|
|
1778
|
+
let t = {};
|
|
1779
|
+
for (let n of e) {
|
|
1780
|
+
let e = n.key.trim();
|
|
1781
|
+
e && (t[e] = dn(n.originalValue, n.value.trim()));
|
|
1782
|
+
}
|
|
1783
|
+
return t;
|
|
1784
|
+
}
|
|
1785
|
+
function hn(e) {
|
|
1786
|
+
let t = i(64), { properties: n, disabled: r, labels: a, onEditProperties: o, anchorRef: l, forceClose: u, onOpenChange: p, selectionKey: m } = e, h = r !== void 0 && r, v = u !== void 0 && u, y = d(!1), [b, x] = f(null), [S, C] = f(), w;
|
|
1787
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (w = [], t[0] = w) : w = t[0];
|
|
1788
|
+
let [T, E] = f(w), D = d(0), O = d(/* @__PURE__ */ new Map()), k = d(null), j = !!b, M;
|
|
1789
|
+
t[1] === a ? M = t[2] : (M = {
|
|
1790
|
+
...ln,
|
|
1791
|
+
...a
|
|
1792
|
+
}, t[1] = a, t[2] = M);
|
|
1793
|
+
let N = M, P;
|
|
1794
|
+
t[3] !== N || t[4] !== T ? (P = pn(T, N), t[3] = N, t[4] = T, t[5] = P) : P = t[5];
|
|
1795
|
+
let F = P, I = (e, t) => (n) => {
|
|
1796
|
+
O.current.set(`${e}:${t}`, n);
|
|
1797
|
+
let r = k.current;
|
|
1798
|
+
n && r?.uid === e && r.field === t && (n.focus(), k.current = null);
|
|
1799
|
+
}, L = (e) => {
|
|
1800
|
+
y.current = !1;
|
|
1801
|
+
let t = fn(n);
|
|
1802
|
+
D.current = t.length;
|
|
1803
|
+
let r = t[0];
|
|
1804
|
+
k.current = r ? {
|
|
1805
|
+
uid: r.uid,
|
|
1806
|
+
field: "key"
|
|
1807
|
+
} : null, E(t);
|
|
1808
|
+
let i = l?.current ?? e;
|
|
1809
|
+
C(i.clientWidth), x(i), p?.(!0);
|
|
1810
|
+
}, R;
|
|
1811
|
+
t[6] !== o || t[7] !== p || t[8] !== T ? (R = () => {
|
|
1812
|
+
y.current || (y.current = !0, o(mn(T)), x(null), p?.(!1));
|
|
1813
|
+
}, t[6] = o, t[7] = p, t[8] = T, t[9] = R) : R = t[9];
|
|
1814
|
+
let z = R, V;
|
|
1815
|
+
t[10] === p ? V = t[11] : (V = () => {
|
|
1816
|
+
y.current || (y.current = !0, x(null), p?.(!1));
|
|
1817
|
+
}, t[10] = p, t[11] = V);
|
|
1818
|
+
let H = V, U;
|
|
1819
|
+
t[12] !== z || t[13] !== H || t[14] !== F ? (U = (e, t) => {
|
|
1820
|
+
if (t === "escapeKeyDown") {
|
|
1821
|
+
H();
|
|
1822
|
+
return;
|
|
1823
|
+
}
|
|
1824
|
+
F.size > 0 || z();
|
|
1825
|
+
}, t[12] = z, t[13] = H, t[14] = F, t[15] = U) : U = t[15];
|
|
1826
|
+
let W = U, G;
|
|
1827
|
+
t[16] !== b || t[17] !== H ? (G = () => {
|
|
1828
|
+
b && H();
|
|
1829
|
+
}, t[16] = b, t[17] = H, t[18] = G) : G = t[18];
|
|
1830
|
+
let q = c(G), ee;
|
|
1831
|
+
t[19] !== v || t[20] !== q ? (ee = () => {
|
|
1832
|
+
v && q();
|
|
1833
|
+
}, t[19] = v, t[20] = q, t[21] = ee) : ee = t[21];
|
|
1834
|
+
let Y;
|
|
1835
|
+
t[22] === v ? Y = t[23] : (Y = [v], t[22] = v, t[23] = Y), s(ee, Y);
|
|
1836
|
+
let te = d(m), ne;
|
|
1837
|
+
t[24] !== b || t[25] !== H ? (ne = () => {
|
|
1838
|
+
b && H();
|
|
1839
|
+
}, t[24] = b, t[25] = H, t[26] = ne) : ne = t[26];
|
|
1840
|
+
let ie = c(ne), ae;
|
|
1841
|
+
t[27] !== ie || t[28] !== m ? (ae = () => {
|
|
1842
|
+
te.current !== m && (te.current = m, ie());
|
|
1843
|
+
}, t[27] = ie, t[28] = m, t[29] = ae) : ae = t[29];
|
|
1844
|
+
let oe;
|
|
1845
|
+
t[30] === m ? oe = t[31] : (oe = [m], t[30] = m, t[31] = oe), s(ae, oe);
|
|
1846
|
+
let ce;
|
|
1847
|
+
t[32] === Symbol.for("react.memo_cache_sentinel") ? (ce = (e, t) => {
|
|
1848
|
+
E((n) => n.map((n) => n.uid === e ? {
|
|
1849
|
+
...n,
|
|
1850
|
+
...t
|
|
1851
|
+
} : n));
|
|
1852
|
+
}, t[32] = ce) : ce = t[32];
|
|
1853
|
+
let le = ce, de;
|
|
1854
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (de = (e) => {
|
|
1855
|
+
E((t) => t.filter((t) => t.uid !== e));
|
|
1856
|
+
}, t[33] = de) : de = t[33];
|
|
1857
|
+
let fe = de, pe = () => {
|
|
1858
|
+
D.current += 1;
|
|
1859
|
+
let e = D.current;
|
|
1860
|
+
k.current = {
|
|
1861
|
+
uid: e,
|
|
1862
|
+
field: "key"
|
|
1863
|
+
}, E((t) => [...t, {
|
|
1864
|
+
uid: e,
|
|
1865
|
+
key: "",
|
|
1866
|
+
value: "",
|
|
1867
|
+
originalValue: void 0
|
|
1868
|
+
}]);
|
|
1869
|
+
}, me = (e) => (t) => {
|
|
1870
|
+
t.key === "Enter" ? (t.preventDefault(), O.current.get(`${e.uid}:value`)?.focus()) : t.key === "Escape" && (t.preventDefault(), H());
|
|
1871
|
+
}, he = (e) => (t) => {
|
|
1872
|
+
if (t.key === "Enter") {
|
|
1873
|
+
t.preventDefault();
|
|
1874
|
+
let n = T.findIndex((t) => t.uid === e.uid);
|
|
1875
|
+
n === T.length - 1 ? F.has(e.uid) || pe() : O.current.get(`${T[n + 1].uid}:key`)?.focus();
|
|
1876
|
+
} else t.key === "Escape" && (t.preventDefault(), H());
|
|
1877
|
+
}, ge;
|
|
1878
|
+
t[34] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ Z(ue, { sx: { fontSize: 18 } }), t[34] = ge) : ge = t[34];
|
|
1879
|
+
let _e = B, ve, ye;
|
|
1880
|
+
t[35] === Symbol.for("react.memo_cache_sentinel") ? (ve = {
|
|
1881
|
+
vertical: "bottom",
|
|
1882
|
+
horizontal: "left"
|
|
1883
|
+
}, ye = {
|
|
1884
|
+
vertical: "top",
|
|
1885
|
+
horizontal: "left"
|
|
1886
|
+
}, t[35] = ve, t[36] = ye) : (ve = t[35], ye = t[36]);
|
|
1887
|
+
let be;
|
|
1888
|
+
t[37] === S ? be = t[38] : (be = { paper: { sx: {
|
|
1889
|
+
width: S,
|
|
1890
|
+
minWidth: 260
|
|
1891
|
+
} } }, t[37] = S, t[38] = be);
|
|
1892
|
+
let xe = g, Se;
|
|
1893
|
+
t[39] === Symbol.for("react.memo_cache_sentinel") ? (Se = {
|
|
1894
|
+
px: 1.5,
|
|
1895
|
+
py: 1
|
|
1896
|
+
}, t[39] = Se) : Se = t[39];
|
|
1897
|
+
let Ce = g, we;
|
|
1898
|
+
t[40] === Symbol.for("react.memo_cache_sentinel") ? (we = {
|
|
1899
|
+
display: "flex",
|
|
1900
|
+
flexDirection: "column",
|
|
1901
|
+
gap: 1,
|
|
1902
|
+
maxHeight: 280,
|
|
1903
|
+
overflowY: "auto"
|
|
1904
|
+
}, t[40] = we) : we = t[40];
|
|
1905
|
+
let Te = T.map((e) => {
|
|
1906
|
+
let t = F.get(e.uid);
|
|
1907
|
+
return /* @__PURE__ */ Q(g, {
|
|
1908
|
+
sx: {
|
|
1909
|
+
display: "flex",
|
|
1910
|
+
flexDirection: "column",
|
|
1911
|
+
gap: .25
|
|
1912
|
+
},
|
|
1913
|
+
children: [/* @__PURE__ */ Q(g, {
|
|
1914
|
+
sx: {
|
|
1915
|
+
display: "flex",
|
|
1916
|
+
gap: .5,
|
|
1917
|
+
alignItems: "center"
|
|
1918
|
+
},
|
|
1919
|
+
children: [
|
|
1920
|
+
/* @__PURE__ */ Z(K, {
|
|
1921
|
+
inputRef: I(e.uid, "key"),
|
|
1922
|
+
size: "small",
|
|
1923
|
+
variant: "outlined",
|
|
1924
|
+
placeholder: N.keyPlaceholder,
|
|
1925
|
+
value: e.key,
|
|
1926
|
+
error: !!t,
|
|
1927
|
+
onChange: (t) => le(e.uid, { key: t.target.value }),
|
|
1928
|
+
onKeyDown: me(e),
|
|
1929
|
+
sx: { flex: 1 }
|
|
1930
|
+
}),
|
|
1931
|
+
/* @__PURE__ */ Z(K, {
|
|
1932
|
+
inputRef: I(e.uid, "value"),
|
|
1933
|
+
size: "small",
|
|
1934
|
+
variant: "outlined",
|
|
1935
|
+
placeholder: N.valuePlaceholder,
|
|
1936
|
+
value: e.value,
|
|
1937
|
+
onChange: (t) => le(e.uid, { value: t.target.value }),
|
|
1938
|
+
onKeyDown: he(e),
|
|
1939
|
+
sx: { flex: 1 }
|
|
1940
|
+
}),
|
|
1941
|
+
/* @__PURE__ */ Z(A, {
|
|
1942
|
+
"aria-label": `${N.removeRow}${e.key ? `: ${e.key}` : ""}`,
|
|
1943
|
+
size: "small",
|
|
1944
|
+
onClick: () => fe(e.uid),
|
|
1945
|
+
children: /* @__PURE__ */ Z(se, { sx: { fontSize: 18 } })
|
|
1946
|
+
})
|
|
1947
|
+
]
|
|
1948
|
+
}), t && /* @__PURE__ */ Z(J, {
|
|
1949
|
+
variant: "caption",
|
|
1950
|
+
color: "error",
|
|
1951
|
+
sx: { pl: .5 },
|
|
1952
|
+
children: t
|
|
1953
|
+
})]
|
|
1954
|
+
}, e.uid);
|
|
1955
|
+
}), Ee;
|
|
1956
|
+
t[41] === Symbol.for("react.memo_cache_sentinel") ? (Ee = /* @__PURE__ */ Z(re, { sx: { fontSize: 18 } }), t[41] = Ee) : Ee = t[41];
|
|
1957
|
+
let De;
|
|
1958
|
+
t[42] === Symbol.for("react.memo_cache_sentinel") ? (De = {
|
|
1959
|
+
justifyContent: "flex-start",
|
|
1960
|
+
alignSelf: "flex-start"
|
|
1961
|
+
}, t[42] = De) : De = t[42];
|
|
1962
|
+
let Oe;
|
|
1963
|
+
t[43] !== pe || t[44] !== N.addRow ? (Oe = /* @__PURE__ */ Z(_, {
|
|
1964
|
+
size: "small",
|
|
1965
|
+
startIcon: Ee,
|
|
1966
|
+
onClick: pe,
|
|
1967
|
+
sx: De,
|
|
1968
|
+
children: N.addRow
|
|
1969
|
+
}), t[43] = pe, t[44] = N.addRow, t[45] = Oe) : Oe = t[45];
|
|
1970
|
+
let ke;
|
|
1971
|
+
t[46] !== Ce || t[47] !== we || t[48] !== Te || t[49] !== Oe ? (ke = /* @__PURE__ */ Q(Ce, {
|
|
1972
|
+
sx: we,
|
|
1973
|
+
children: [Te, Oe]
|
|
1974
|
+
}), t[46] = Ce, t[47] = we, t[48] = Te, t[49] = Oe, t[50] = ke) : ke = t[50];
|
|
1975
|
+
let Ae;
|
|
1976
|
+
t[51] !== xe || t[52] !== Se || t[53] !== ke ? (Ae = /* @__PURE__ */ Z(xe, {
|
|
1977
|
+
sx: Se,
|
|
1978
|
+
children: ke
|
|
1979
|
+
}), t[51] = xe, t[52] = Se, t[53] = ke, t[54] = Ae) : Ae = t[54];
|
|
1980
|
+
let je;
|
|
1981
|
+
return t[55] !== _e || t[56] !== b || t[57] !== j || t[58] !== W || t[59] !== ve || t[60] !== ye || t[61] !== be || t[62] !== Ae ? (je = /* @__PURE__ */ Z(_e, {
|
|
1982
|
+
open: j,
|
|
1983
|
+
anchorEl: b,
|
|
1984
|
+
onClose: W,
|
|
1985
|
+
anchorOrigin: ve,
|
|
1986
|
+
transformOrigin: ye,
|
|
1987
|
+
slotProps: be,
|
|
1988
|
+
children: Ae
|
|
1989
|
+
}), t[55] = _e, t[56] = b, t[57] = j, t[58] = W, t[59] = ve, t[60] = ye, t[61] = be, t[62] = Ae, t[63] = je) : je = t[63], /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(Je, {
|
|
1990
|
+
label: N.editProperties,
|
|
1991
|
+
active: j,
|
|
1992
|
+
disabled: h,
|
|
1993
|
+
onClick: (e) => L(e.currentTarget),
|
|
1994
|
+
icon: ge
|
|
1995
|
+
}), je] });
|
|
1996
|
+
}
|
|
1997
|
+
//#endregion
|
|
1998
|
+
//#region src/components/lasso-tool/toolbar/actions/lock-action.tsx
|
|
1999
|
+
var gn = {
|
|
2000
|
+
lock: "Lock",
|
|
2001
|
+
unlock: "Unlock"
|
|
2002
|
+
};
|
|
2003
|
+
function _n(e) {
|
|
2004
|
+
let t = i(9), { locked: n, disabled: r, labels: a, onToggleLock: o } = e, s = r !== void 0 && r, c = n ? a?.unlock ?? gn.unlock : a?.lock ?? gn.lock, l;
|
|
2005
|
+
t[0] !== n || t[1] !== o ? (l = () => o(!n), t[0] = n, t[1] = o, t[2] = l) : l = t[2];
|
|
2006
|
+
let u;
|
|
2007
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Z(be, { sx: { fontSize: 18 } }), t[3] = u) : u = t[3];
|
|
2008
|
+
let d;
|
|
2009
|
+
return t[4] !== s || t[5] !== c || t[6] !== n || t[7] !== l ? (d = /* @__PURE__ */ Z(Je, {
|
|
2010
|
+
label: c,
|
|
2011
|
+
active: n,
|
|
2012
|
+
pressed: n,
|
|
2013
|
+
disabled: s,
|
|
2014
|
+
onClick: l,
|
|
2015
|
+
icon: u
|
|
2016
|
+
}), t[4] = s, t[5] = c, t[6] = n, t[7] = l, t[8] = d) : d = t[8], d;
|
|
2017
|
+
}
|
|
2018
|
+
//#endregion
|
|
2019
|
+
//#region src/components/lasso-tool/toolbar/actions/delete-action.tsx
|
|
2020
|
+
var vn = { delete: "Delete" };
|
|
2021
|
+
function yn(e) {
|
|
2022
|
+
let t = i(5), { disabled: n, label: r, onDelete: a } = e, o = n !== void 0 && n, s = r ?? vn.delete, c;
|
|
2023
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Z(de, { sx: { fontSize: 18 } }), t[0] = c) : c = t[0];
|
|
2024
|
+
let l;
|
|
2025
|
+
return t[1] !== o || t[2] !== a || t[3] !== s ? (l = /* @__PURE__ */ Z(Je, {
|
|
2026
|
+
label: s,
|
|
2027
|
+
disabled: o,
|
|
2028
|
+
onClick: a,
|
|
2029
|
+
icon: c,
|
|
2030
|
+
color: "error"
|
|
2031
|
+
}), t[1] = o, t[2] = a, t[3] = s, t[4] = l) : l = t[4], l;
|
|
2032
|
+
}
|
|
2033
|
+
//#endregion
|
|
2034
|
+
//#region src/components/lasso-tool/toolbar/actions/fill-action.tsx
|
|
2035
|
+
var bn = {
|
|
2036
|
+
tooltip: "Fill",
|
|
2037
|
+
options: {
|
|
2038
|
+
filled: "Filled",
|
|
2039
|
+
opacity: "Opacity",
|
|
2040
|
+
none: "None"
|
|
2041
|
+
}
|
|
2042
|
+
}, xn = [
|
|
2043
|
+
"filled",
|
|
2044
|
+
"opacity",
|
|
2045
|
+
"none"
|
|
2046
|
+
];
|
|
2047
|
+
function Sn(e) {
|
|
2048
|
+
let t = i(10), { value: n, disabled: r, disableNone: a, labels: o, onChange: s } = e, c = r !== void 0 && r, l = a !== void 0 && a, u = o?.tooltip ?? bn.tooltip, d;
|
|
2049
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ Z(Ce, { sx: { fontSize: 18 } }), t[0] = d) : d = t[0];
|
|
2050
|
+
let f;
|
|
2051
|
+
t[1] !== l || t[2] !== o?.options ? (f = xn.map((e) => ({
|
|
2052
|
+
value: e,
|
|
2053
|
+
label: o?.options?.[e] ?? bn.options[e],
|
|
2054
|
+
disabled: e === "none" && l
|
|
2055
|
+
})), t[1] = l, t[2] = o?.options, t[3] = f) : f = t[3];
|
|
2056
|
+
let p;
|
|
2057
|
+
return t[4] !== c || t[5] !== s || t[6] !== u || t[7] !== f || t[8] !== n ? (p = /* @__PURE__ */ Z(Ut, {
|
|
2058
|
+
label: u,
|
|
2059
|
+
icon: d,
|
|
2060
|
+
disabled: c,
|
|
2061
|
+
value: n,
|
|
2062
|
+
options: f,
|
|
2063
|
+
onChange: s
|
|
2064
|
+
}), t[4] = c, t[5] = s, t[6] = u, t[7] = f, t[8] = n, t[9] = p) : p = t[9], p;
|
|
2065
|
+
}
|
|
2066
|
+
//#endregion
|
|
2067
|
+
//#region src/components/lasso-tool/toolbar/actions/stroke-action.tsx
|
|
2068
|
+
var Cn = {
|
|
2069
|
+
tooltip: "Stroke",
|
|
2070
|
+
options: {
|
|
2071
|
+
thick: "Thick",
|
|
2072
|
+
default: "Default",
|
|
2073
|
+
thin: "Thin",
|
|
2074
|
+
none: "None"
|
|
2075
|
+
}
|
|
2076
|
+
}, wn = [
|
|
2077
|
+
"thick",
|
|
2078
|
+
"default",
|
|
2079
|
+
"thin",
|
|
2080
|
+
"none"
|
|
2081
|
+
];
|
|
2082
|
+
function Tn(e) {
|
|
2083
|
+
let t = i(10), { value: n, disabled: r, disableNone: a, labels: o, onChange: s } = e, c = r !== void 0 && r, l = a !== void 0 && a, u = o?.tooltip ?? Cn.tooltip, d;
|
|
2084
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ Z(ve, { sx: { fontSize: 18 } }), t[0] = d) : d = t[0];
|
|
2085
|
+
let f;
|
|
2086
|
+
t[1] !== l || t[2] !== o?.options ? (f = wn.map((e) => ({
|
|
2087
|
+
value: e,
|
|
2088
|
+
label: o?.options?.[e] ?? Cn.options[e],
|
|
2089
|
+
disabled: e === "none" && l
|
|
2090
|
+
})), t[1] = l, t[2] = o?.options, t[3] = f) : f = t[3];
|
|
2091
|
+
let p;
|
|
2092
|
+
return t[4] !== c || t[5] !== s || t[6] !== u || t[7] !== f || t[8] !== n ? (p = /* @__PURE__ */ Z(Ut, {
|
|
2093
|
+
label: u,
|
|
2094
|
+
icon: d,
|
|
2095
|
+
disabled: c,
|
|
2096
|
+
value: n,
|
|
2097
|
+
options: f,
|
|
2098
|
+
onChange: s
|
|
2099
|
+
}), t[4] = c, t[5] = s, t[6] = u, t[7] = f, t[8] = n, t[9] = p) : p = t[9], p;
|
|
2100
|
+
}
|
|
2101
|
+
//#endregion
|
|
2102
|
+
//#region src/components/lasso-tool/toolbar/actions/edit-geometry-action.tsx
|
|
2103
|
+
var En = { editGeometry: "Edit geometry" };
|
|
2104
|
+
function Dn(e) {
|
|
2105
|
+
let t = i(6), { active: n, disabled: r, label: a, onEditGeometry: o } = e, s = n !== void 0 && n, c = r !== void 0 && r, l = a ?? En.editGeometry, u;
|
|
2106
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Z(G, {
|
|
2107
|
+
component: Oe,
|
|
2108
|
+
inheritViewBox: !0,
|
|
2109
|
+
sx: { fontSize: 18 }
|
|
2110
|
+
}), t[0] = u) : u = t[0];
|
|
2111
|
+
let d;
|
|
2112
|
+
return t[1] !== s || t[2] !== c || t[3] !== o || t[4] !== l ? (d = /* @__PURE__ */ Z(Je, {
|
|
2113
|
+
label: l,
|
|
2114
|
+
active: s,
|
|
2115
|
+
pressed: s,
|
|
2116
|
+
disabled: c,
|
|
2117
|
+
onClick: o,
|
|
2118
|
+
icon: u
|
|
2119
|
+
}), t[1] = s, t[2] = c, t[3] = o, t[4] = l, t[5] = d) : d = t[5], d;
|
|
2120
|
+
}
|
|
2121
|
+
//#endregion
|
|
2122
|
+
//#region src/components/lasso-tool/toolbar/actions/union-action.tsx
|
|
2123
|
+
var On = { union: "Merge geometries" };
|
|
2124
|
+
function kn(e) {
|
|
2125
|
+
let t = i(5), { disabled: n, label: r, onUnion: a } = e, o = n !== void 0 && n, s = r ?? On.union, c;
|
|
2126
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Z(G, {
|
|
2127
|
+
component: Pe,
|
|
2128
|
+
inheritViewBox: !0,
|
|
2129
|
+
sx: { fontSize: 18 }
|
|
2130
|
+
}), t[0] = c) : c = t[0];
|
|
2131
|
+
let l;
|
|
2132
|
+
return t[1] !== o || t[2] !== a || t[3] !== s ? (l = /* @__PURE__ */ Z(Je, {
|
|
2133
|
+
label: s,
|
|
2134
|
+
disabled: o,
|
|
2135
|
+
onClick: a,
|
|
2136
|
+
icon: c
|
|
2137
|
+
}), t[1] = o, t[2] = a, t[3] = s, t[4] = l) : l = t[4], l;
|
|
2138
|
+
}
|
|
2139
|
+
//#endregion
|
|
2140
|
+
//#region src/components/lasso-tool/toolbar/actions/split-action.tsx
|
|
2141
|
+
var An = { split: "Split geometry" };
|
|
2142
|
+
function jn(e) {
|
|
2143
|
+
let t = i(5), { disabled: n, label: r, onSplit: a } = e, o = n !== void 0 && n, s = r ?? An.split, c;
|
|
2144
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Z(ae, { sx: { fontSize: 18 } }), t[0] = c) : c = t[0];
|
|
2145
|
+
let l;
|
|
2146
|
+
return t[1] !== o || t[2] !== a || t[3] !== s ? (l = /* @__PURE__ */ Z(Je, {
|
|
2147
|
+
label: s,
|
|
2148
|
+
disabled: o,
|
|
2149
|
+
onClick: a,
|
|
2150
|
+
icon: c
|
|
2151
|
+
}), t[1] = o, t[2] = a, t[3] = s, t[4] = l) : l = t[4], l;
|
|
2152
|
+
}
|
|
2153
|
+
//#endregion
|
|
2154
|
+
//#region src/components/lasso-tool/toolbar/actions/subtract-action.tsx
|
|
2155
|
+
var Mn = { subtract: "Subtract geometries" };
|
|
2156
|
+
function Nn(e) {
|
|
2157
|
+
let t = i(5), { disabled: n, label: r, onSubtract: a } = e, o = n !== void 0 && n, s = r ?? Mn.subtract, c;
|
|
2158
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Z(he, { sx: { fontSize: 18 } }), t[0] = c) : c = t[0];
|
|
2159
|
+
let l;
|
|
2160
|
+
return t[1] !== o || t[2] !== a || t[3] !== s ? (l = /* @__PURE__ */ Z(Je, {
|
|
2161
|
+
label: s,
|
|
2162
|
+
disabled: o,
|
|
2163
|
+
onClick: a,
|
|
2164
|
+
icon: c
|
|
2165
|
+
}), t[1] = o, t[2] = a, t[3] = s, t[4] = l) : l = t[4], l;
|
|
2166
|
+
}
|
|
2167
|
+
//#endregion
|
|
2168
|
+
//#region src/components/lasso-tool/toolbar/actions/intersect-action.tsx
|
|
2169
|
+
var Pn = { intersect: "Intersect geometries" };
|
|
2170
|
+
function Fn(e) {
|
|
2171
|
+
let t = i(5), { disabled: n, label: r, onIntersect: a } = e, o = n !== void 0 && n, s = r ?? Pn.intersect, c;
|
|
2172
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Z(me, { sx: { fontSize: 18 } }), t[0] = c) : c = t[0];
|
|
2173
|
+
let l;
|
|
2174
|
+
return t[1] !== o || t[2] !== a || t[3] !== s ? (l = /* @__PURE__ */ Z(Je, {
|
|
2175
|
+
label: s,
|
|
2176
|
+
disabled: o,
|
|
2177
|
+
onClick: a,
|
|
2178
|
+
icon: c
|
|
2179
|
+
}), t[1] = o, t[2] = a, t[3] = s, t[4] = l) : l = t[4], l;
|
|
2180
|
+
}
|
|
2181
|
+
//#endregion
|
|
2182
|
+
//#region src/components/lasso-tool/toolbar/actions/duplicate-action.tsx
|
|
2183
|
+
var In = { duplicate: "Duplicate" };
|
|
2184
|
+
function Ln(e) {
|
|
2185
|
+
let t = i(5), { disabled: n, label: r, onDuplicate: a } = e, o = n !== void 0 && n, s = r ?? In.duplicate, c;
|
|
2186
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ Z(ce, { sx: { fontSize: 18 } }), t[0] = c) : c = t[0];
|
|
2187
|
+
let l;
|
|
2188
|
+
return t[1] !== o || t[2] !== a || t[3] !== s ? (l = /* @__PURE__ */ Z(Je, {
|
|
2189
|
+
label: s,
|
|
2190
|
+
disabled: o,
|
|
2191
|
+
onClick: a,
|
|
2192
|
+
icon: c
|
|
2193
|
+
}), t[1] = o, t[2] = a, t[3] = s, t[4] = l) : l = t[4], l;
|
|
2194
|
+
}
|
|
2195
|
+
//#endregion
|
|
2196
|
+
//#region src/components/lasso-tool/toolbar/actions/accept-action.tsx
|
|
2197
|
+
var Rn = { accept: "Accept" };
|
|
2198
|
+
function zn(e) {
|
|
2199
|
+
let t = i(6), { disabled: n, label: r, shortcut: a, onAccept: o } = e, s = n !== void 0 && n, c = r ?? Rn.accept, l;
|
|
2200
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Z(ge, { sx: { fontSize: 18 } }), t[0] = l) : l = t[0];
|
|
2201
|
+
let u;
|
|
2202
|
+
return t[1] !== s || t[2] !== o || t[3] !== a || t[4] !== c ? (u = /* @__PURE__ */ Z(Je, {
|
|
2203
|
+
label: c,
|
|
2204
|
+
shortcut: a,
|
|
2205
|
+
disabled: s,
|
|
2206
|
+
onClick: o,
|
|
2207
|
+
icon: l
|
|
2208
|
+
}), t[1] = s, t[2] = o, t[3] = a, t[4] = c, t[5] = u) : u = t[5], u;
|
|
2209
|
+
}
|
|
2210
|
+
//#endregion
|
|
2211
|
+
//#region src/components/lasso-tool/toolbar/actions/cancel-action.tsx
|
|
2212
|
+
var Bn = { cancel: "Cancel" };
|
|
2213
|
+
function Vn(e) {
|
|
2214
|
+
let t = i(6), { disabled: n, label: r, shortcut: a, onCancel: o } = e, s = n !== void 0 && n, c = r ?? Bn.cancel, l;
|
|
2215
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Z(se, { sx: { fontSize: 18 } }), t[0] = l) : l = t[0];
|
|
2216
|
+
let u;
|
|
2217
|
+
return t[1] !== s || t[2] !== o || t[3] !== a || t[4] !== c ? (u = /* @__PURE__ */ Z(Je, {
|
|
2218
|
+
label: c,
|
|
2219
|
+
shortcut: a,
|
|
2220
|
+
disabled: s,
|
|
2221
|
+
onClick: o,
|
|
2222
|
+
icon: l
|
|
2223
|
+
}), t[1] = s, t[2] = o, t[3] = a, t[4] = c, t[5] = u) : u = t[5], u;
|
|
2224
|
+
}
|
|
2225
|
+
//#endregion
|
|
2226
|
+
//#region src/components/lasso-tool/toolbar/context.tsx
|
|
2227
|
+
var Hn = a(null);
|
|
2228
|
+
function Un(e) {
|
|
2229
|
+
let t = i(3), { value: n, children: r } = e, a;
|
|
2230
|
+
return t[0] !== r || t[1] !== n ? (a = /* @__PURE__ */ Z(Hn.Provider, {
|
|
2231
|
+
value: n,
|
|
2232
|
+
children: r
|
|
2233
|
+
}), t[0] = r, t[1] = n, t[2] = a) : a = t[2], a;
|
|
2234
|
+
}
|
|
2235
|
+
function Wn() {
|
|
2236
|
+
let e = o(Hn);
|
|
2237
|
+
if (!e) throw Error("Lasso geometry toolbar actions must render inside <LassoGeometryToolbarUI>. Use the prop-driven actions from `lasso-tool/toolbar` for standalone toolbars.");
|
|
2238
|
+
return e;
|
|
2239
|
+
}
|
|
2240
|
+
//#endregion
|
|
2241
|
+
//#region src/components/lasso-tool/toolbar/connected.tsx
|
|
2242
|
+
function Gn(e, t) {
|
|
2243
|
+
return {
|
|
2244
|
+
tooltip: t?.tooltip ?? e?.tooltip,
|
|
2245
|
+
options: {
|
|
2246
|
+
...e?.options,
|
|
2247
|
+
...t?.options
|
|
2248
|
+
}
|
|
2249
|
+
};
|
|
2250
|
+
}
|
|
2251
|
+
function Kn(e) {
|
|
2252
|
+
let t = i(12), n;
|
|
2253
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2254
|
+
let { disabled: r, labels: a } = n, o = Wn();
|
|
2255
|
+
if (!o.showStyle || !o.style || !o.onSetStyle) return null;
|
|
2256
|
+
let s = o.style.color, c = r ?? o.disabled, l = o.labels?.color, u;
|
|
2257
|
+
t[2] !== a || t[3] !== l ? (u = Gn(l, a), t[2] = a, t[3] = l, t[4] = u) : u = t[4];
|
|
2258
|
+
let d;
|
|
2259
|
+
t[5] === o ? d = t[6] : (d = (e) => o.onSetStyle?.({ color: e }), t[5] = o, t[6] = d);
|
|
2260
|
+
let f;
|
|
2261
|
+
return t[7] !== o.style.color || t[8] !== c || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */ Z(nn, {
|
|
2262
|
+
value: s,
|
|
2263
|
+
disabled: c,
|
|
2264
|
+
labels: u,
|
|
2265
|
+
onChange: d
|
|
2266
|
+
}), t[7] = o.style.color, t[8] = c, t[9] = u, t[10] = d, t[11] = f) : f = t[11], f;
|
|
2267
|
+
}
|
|
2268
|
+
function qn(e) {
|
|
2269
|
+
let t = i(13), n;
|
|
2270
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2271
|
+
let { disabled: r, labels: a } = n, o = Wn();
|
|
2272
|
+
if (!o.showStyle || !o.style || !o.onSetStyle) return null;
|
|
2273
|
+
let s = o.style.fill, c = r ?? o.disabled, l = o.style.stroke === "none", u = o.labels?.fill, d;
|
|
2274
|
+
t[2] !== a || t[3] !== u ? (d = Gn(u, a), t[2] = a, t[3] = u, t[4] = d) : d = t[4];
|
|
2275
|
+
let f;
|
|
2276
|
+
t[5] === o ? f = t[6] : (f = (e) => o.onSetStyle?.({ fill: e }), t[5] = o, t[6] = f);
|
|
2277
|
+
let p;
|
|
2278
|
+
return t[7] !== o.style.fill || t[8] !== c || t[9] !== l || t[10] !== d || t[11] !== f ? (p = /* @__PURE__ */ Z(Sn, {
|
|
2279
|
+
value: s,
|
|
2280
|
+
disabled: c,
|
|
2281
|
+
disableNone: l,
|
|
2282
|
+
labels: d,
|
|
2283
|
+
onChange: f
|
|
2284
|
+
}), t[7] = o.style.fill, t[8] = c, t[9] = l, t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
2285
|
+
}
|
|
2286
|
+
function Jn(e) {
|
|
2287
|
+
let t = i(13), n;
|
|
2288
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2289
|
+
let { disabled: r, labels: a } = n, o = Wn();
|
|
2290
|
+
if (!o.showStyle || !o.style || !o.onSetStyle) return null;
|
|
2291
|
+
let s = o.style.stroke, c = r ?? o.disabled, l = o.style.fill === "none", u = o.labels?.stroke, d;
|
|
2292
|
+
t[2] !== a || t[3] !== u ? (d = Gn(u, a), t[2] = a, t[3] = u, t[4] = d) : d = t[4];
|
|
2293
|
+
let f;
|
|
2294
|
+
t[5] === o ? f = t[6] : (f = (e) => o.onSetStyle?.({ stroke: e }), t[5] = o, t[6] = f);
|
|
2295
|
+
let p;
|
|
2296
|
+
return t[7] !== o.style.stroke || t[8] !== c || t[9] !== l || t[10] !== d || t[11] !== f ? (p = /* @__PURE__ */ Z(Tn, {
|
|
2297
|
+
value: s,
|
|
2298
|
+
disabled: c,
|
|
2299
|
+
disableNone: l,
|
|
2300
|
+
labels: d,
|
|
2301
|
+
onChange: f
|
|
2302
|
+
}), t[7] = o.style.stroke, t[8] = c, t[9] = l, t[10] = d, t[11] = f, t[12] = p) : p = t[12], p;
|
|
2303
|
+
}
|
|
2304
|
+
function Yn(e) {
|
|
2305
|
+
let t = i(7), n;
|
|
2306
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2307
|
+
let { disabled: r, label: a } = n, o = Wn();
|
|
2308
|
+
if (!o.onEditGeometry) return null;
|
|
2309
|
+
let s = o.editingGeometry ?? !1, c = r ?? o.singleOnly, l = a ?? o.labels?.editGeometry, u;
|
|
2310
|
+
return t[2] !== o.onEditGeometry || t[3] !== s || t[4] !== c || t[5] !== l ? (u = /* @__PURE__ */ Z(Dn, {
|
|
2311
|
+
active: s,
|
|
2312
|
+
disabled: c,
|
|
2313
|
+
label: l,
|
|
2314
|
+
onEditGeometry: o.onEditGeometry
|
|
2315
|
+
}), t[2] = o.onEditGeometry, t[3] = s, t[4] = c, t[5] = l, t[6] = u) : u = t[6], u;
|
|
2316
|
+
}
|
|
2317
|
+
function Xn(e) {
|
|
2318
|
+
let t = i(27), n;
|
|
2319
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2320
|
+
let { disabled: r, labels: a } = n, o = Wn();
|
|
2321
|
+
if (!o.onRename || !o.onSetTextPresentation || o.label == null) return null;
|
|
2322
|
+
let s = o.properties, c = s?.textVisible === !0, l = (typeof s?.textColor == "string" ? s.textColor : void 0) ?? o.defaultTextColor ?? "black", u = s?.textBold === !0, d = s?.textItalic === !0, f = o.forceTextVisible ? !0 : c, p = r ?? o.singleOnly, m = a?.label ?? o.labels?.label, h = a?.name ?? o.labels?.labelName, g = a?.showOnMap ?? o.labels?.showOnMap, _ = a?.bold ?? o.labels?.textBold, v = a?.italic ?? o.labels?.textItalic, y;
|
|
2323
|
+
t[2] !== m || t[3] !== h || t[4] !== g || t[5] !== _ || t[6] !== v ? (y = {
|
|
2324
|
+
label: m,
|
|
2325
|
+
name: h,
|
|
2326
|
+
showOnMap: g,
|
|
2327
|
+
bold: _,
|
|
2328
|
+
italic: v
|
|
2329
|
+
}, t[2] = m, t[3] = h, t[4] = g, t[5] = _, t[6] = v, t[7] = y) : y = t[7];
|
|
2330
|
+
let b;
|
|
2331
|
+
t[8] === o.selectedIds ? b = t[9] : (b = o.selectedIds?.join(","), t[8] = o.selectedIds, t[9] = b);
|
|
2332
|
+
let x = o.openPopoverId === "editProperties", S;
|
|
2333
|
+
t[10] === o ? S = t[11] : (S = (e) => o.onOpenPopoverChange?.("label", e), t[10] = o, t[11] = S);
|
|
2334
|
+
let C;
|
|
2335
|
+
return t[12] !== o.anchorRef || t[13] !== o.forceTextVisible || t[14] !== o.label || t[15] !== o.onRename || t[16] !== o.onSetTextPresentation || t[17] !== b || t[18] !== x || t[19] !== S || t[20] !== f || t[21] !== p || t[22] !== y || t[23] !== u || t[24] !== l || t[25] !== d ? (C = /* @__PURE__ */ Z(an, {
|
|
2336
|
+
label: o.label,
|
|
2337
|
+
textVisible: f,
|
|
2338
|
+
forceTextVisible: o.forceTextVisible,
|
|
2339
|
+
textColor: l,
|
|
2340
|
+
textBold: u,
|
|
2341
|
+
textItalic: d,
|
|
2342
|
+
disabled: p,
|
|
2343
|
+
labels: y,
|
|
2344
|
+
onRename: o.onRename,
|
|
2345
|
+
onSetTextPresentation: o.onSetTextPresentation,
|
|
2346
|
+
anchorRef: o.anchorRef,
|
|
2347
|
+
selectionKey: b,
|
|
2348
|
+
forceClose: x,
|
|
2349
|
+
onOpenChange: S
|
|
2350
|
+
}), t[12] = o.anchorRef, t[13] = o.forceTextVisible, t[14] = o.label, t[15] = o.onRename, t[16] = o.onSetTextPresentation, t[17] = b, t[18] = x, t[19] = S, t[20] = f, t[21] = p, t[22] = y, t[23] = u, t[24] = l, t[25] = d, t[26] = C) : C = t[26], C;
|
|
2351
|
+
}
|
|
2352
|
+
function Zn(e) {
|
|
2353
|
+
let t = i(22), n;
|
|
2354
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2355
|
+
let { disabled: r, labels: a } = n, o = Wn();
|
|
2356
|
+
if (!o.onEditProperties) return null;
|
|
2357
|
+
let s;
|
|
2358
|
+
t[2] === o.properties ? s = t[3] : (s = o.properties ?? {}, t[2] = o.properties, t[3] = s);
|
|
2359
|
+
let c;
|
|
2360
|
+
t[4] === s ? c = t[5] : (c = cn(s), t[4] = s, t[5] = c);
|
|
2361
|
+
let l = r ?? o.singleOnly, u = o.labels?.editProperties, d;
|
|
2362
|
+
t[6] !== a || t[7] !== u ? (d = {
|
|
2363
|
+
...u,
|
|
2364
|
+
...a
|
|
2365
|
+
}, t[6] = a, t[7] = u, t[8] = d) : d = t[8];
|
|
2366
|
+
let f;
|
|
2367
|
+
t[9] === o.selectedIds ? f = t[10] : (f = o.selectedIds?.join(","), t[9] = o.selectedIds, t[10] = f);
|
|
2368
|
+
let p = o.openPopoverId === "label", m;
|
|
2369
|
+
t[11] === o ? m = t[12] : (m = (e) => o.onOpenPopoverChange?.("editProperties", e), t[11] = o, t[12] = m);
|
|
2370
|
+
let h;
|
|
2371
|
+
return t[13] !== o.anchorRef || t[14] !== o.onEditProperties || t[15] !== c || t[16] !== l || t[17] !== d || t[18] !== f || t[19] !== p || t[20] !== m ? (h = /* @__PURE__ */ Z(hn, {
|
|
2372
|
+
properties: c,
|
|
2373
|
+
disabled: l,
|
|
2374
|
+
labels: d,
|
|
2375
|
+
onEditProperties: o.onEditProperties,
|
|
2376
|
+
anchorRef: o.anchorRef,
|
|
2377
|
+
selectionKey: f,
|
|
2378
|
+
forceClose: p,
|
|
2379
|
+
onOpenChange: m
|
|
2380
|
+
}), t[13] = o.anchorRef, t[14] = o.onEditProperties, t[15] = c, t[16] = l, t[17] = d, t[18] = f, t[19] = p, t[20] = m, t[21] = h) : h = t[21], h;
|
|
2381
|
+
}
|
|
2382
|
+
function Qn(e) {
|
|
2383
|
+
let t = i(10), n;
|
|
2384
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2385
|
+
let { disabled: r, labels: a } = n, o = Wn();
|
|
2386
|
+
if (!o.onToggleType || !o.type) return null;
|
|
2387
|
+
let s = r ?? o.disabled, c = o.labels?.toggleType, l;
|
|
2388
|
+
t[2] !== a || t[3] !== c ? (l = {
|
|
2389
|
+
...c,
|
|
2390
|
+
...a
|
|
2391
|
+
}, t[2] = a, t[3] = c, t[4] = l) : l = t[4];
|
|
2392
|
+
let u;
|
|
2393
|
+
return t[5] !== o.onToggleType || t[6] !== o.type || t[7] !== s || t[8] !== l ? (u = /* @__PURE__ */ Z(Ht, {
|
|
2394
|
+
type: o.type,
|
|
2395
|
+
disabled: s,
|
|
2396
|
+
labels: l,
|
|
2397
|
+
onToggleType: o.onToggleType
|
|
2398
|
+
}), t[5] = o.onToggleType, t[6] = o.type, t[7] = s, t[8] = l, t[9] = u) : u = t[9], u;
|
|
2399
|
+
}
|
|
2400
|
+
function $n(e) {
|
|
2401
|
+
let t = i(6), n;
|
|
2402
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2403
|
+
let { disabled: r, label: a } = n, o = Wn();
|
|
2404
|
+
if (!o.onUnion) return null;
|
|
2405
|
+
let s = r ?? (o.disabled || (o.selectionCount ?? 1) < 2), c = a ?? o.labels?.union, l;
|
|
2406
|
+
return t[2] !== o.onUnion || t[3] !== s || t[4] !== c ? (l = /* @__PURE__ */ Z(kn, {
|
|
2407
|
+
disabled: s,
|
|
2408
|
+
label: c,
|
|
2409
|
+
onUnion: o.onUnion
|
|
2410
|
+
}), t[2] = o.onUnion, t[3] = s, t[4] = c, t[5] = l) : l = t[5], l;
|
|
2411
|
+
}
|
|
2412
|
+
function er(e) {
|
|
2413
|
+
let t = i(6), n;
|
|
2414
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2415
|
+
let { disabled: r, label: a } = n, o = Wn();
|
|
2416
|
+
if (!o.onSplit) return null;
|
|
2417
|
+
let s = r ?? (o.singleOnly || !o.splittable), c = a ?? o.labels?.split, l;
|
|
2418
|
+
return t[2] !== o.onSplit || t[3] !== s || t[4] !== c ? (l = /* @__PURE__ */ Z(jn, {
|
|
2419
|
+
disabled: s,
|
|
2420
|
+
label: c,
|
|
2421
|
+
onSplit: o.onSplit
|
|
2422
|
+
}), t[2] = o.onSplit, t[3] = s, t[4] = c, t[5] = l) : l = t[5], l;
|
|
2423
|
+
}
|
|
2424
|
+
function tr(e) {
|
|
2425
|
+
let t = i(6), n;
|
|
2426
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2427
|
+
let { disabled: r, label: a } = n, o = Wn();
|
|
2428
|
+
if (!o.onSubtract) return null;
|
|
2429
|
+
let s = r ?? (o.disabled || (o.selectionCount ?? 1) < 2), c = a ?? o.labels?.subtract, l;
|
|
2430
|
+
return t[2] !== o.onSubtract || t[3] !== s || t[4] !== c ? (l = /* @__PURE__ */ Z(Nn, {
|
|
2431
|
+
disabled: s,
|
|
2432
|
+
label: c,
|
|
2433
|
+
onSubtract: o.onSubtract
|
|
2434
|
+
}), t[2] = o.onSubtract, t[3] = s, t[4] = c, t[5] = l) : l = t[5], l;
|
|
2435
|
+
}
|
|
2436
|
+
function nr(e) {
|
|
2437
|
+
let t = i(6), n;
|
|
2438
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2439
|
+
let { disabled: r, label: a } = n, o = Wn();
|
|
2440
|
+
if (!o.onIntersect) return null;
|
|
2441
|
+
let s = r ?? (o.disabled || (o.selectionCount ?? 1) < 2), c = a ?? o.labels?.intersect, l;
|
|
2442
|
+
return t[2] !== o.onIntersect || t[3] !== s || t[4] !== c ? (l = /* @__PURE__ */ Z(Fn, {
|
|
2443
|
+
disabled: s,
|
|
2444
|
+
label: c,
|
|
2445
|
+
onIntersect: o.onIntersect
|
|
2446
|
+
}), t[2] = o.onIntersect, t[3] = s, t[4] = c, t[5] = l) : l = t[5], l;
|
|
2447
|
+
}
|
|
2448
|
+
function rr(e) {
|
|
2449
|
+
let t = i(6), n;
|
|
2450
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2451
|
+
let { disabled: r, label: a } = n, o = Wn();
|
|
2452
|
+
if (!o.onDuplicate) return null;
|
|
2453
|
+
let s = r ?? o.disabled, c = a ?? o.labels?.duplicate, l;
|
|
2454
|
+
return t[2] !== o.onDuplicate || t[3] !== s || t[4] !== c ? (l = /* @__PURE__ */ Z(Ln, {
|
|
2455
|
+
disabled: s,
|
|
2456
|
+
label: c,
|
|
2457
|
+
onDuplicate: o.onDuplicate
|
|
2458
|
+
}), t[2] = o.onDuplicate, t[3] = s, t[4] = c, t[5] = l) : l = t[5], l;
|
|
2459
|
+
}
|
|
2460
|
+
function ir(e) {
|
|
2461
|
+
let t = i(10), n;
|
|
2462
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2463
|
+
let { disabled: r, labels: a } = n, o = Wn();
|
|
2464
|
+
if (!o.onToggleLock) return null;
|
|
2465
|
+
let s = o.locked ?? !1, c = o.labels?.lock, l;
|
|
2466
|
+
t[2] !== a || t[3] !== c ? (l = {
|
|
2467
|
+
...c,
|
|
2468
|
+
...a
|
|
2469
|
+
}, t[2] = a, t[3] = c, t[4] = l) : l = t[4];
|
|
2470
|
+
let u;
|
|
2471
|
+
return t[5] !== o.onToggleLock || t[6] !== r || t[7] !== s || t[8] !== l ? (u = /* @__PURE__ */ Z(_n, {
|
|
2472
|
+
locked: s,
|
|
2473
|
+
disabled: r,
|
|
2474
|
+
labels: l,
|
|
2475
|
+
onToggleLock: o.onToggleLock
|
|
2476
|
+
}), t[5] = o.onToggleLock, t[6] = r, t[7] = s, t[8] = l, t[9] = u) : u = t[9], u;
|
|
2477
|
+
}
|
|
2478
|
+
function ar(e) {
|
|
2479
|
+
let t = i(6), n;
|
|
2480
|
+
t[0] === e ? n = t[1] : (n = e === void 0 ? {} : e, t[0] = e, t[1] = n);
|
|
2481
|
+
let { disabled: r, label: a } = n, o = Wn();
|
|
2482
|
+
if (!o.onDelete) return null;
|
|
2483
|
+
let s = r ?? o.disabled, c = a ?? o.labels?.delete, l;
|
|
2484
|
+
return t[2] !== o.onDelete || t[3] !== s || t[4] !== c ? (l = /* @__PURE__ */ Z(yn, {
|
|
2485
|
+
disabled: s,
|
|
2486
|
+
label: c,
|
|
2487
|
+
onDelete: o.onDelete
|
|
2488
|
+
}), t[2] = o.onDelete, t[3] = s, t[4] = c, t[5] = l) : l = t[5], l;
|
|
2489
|
+
}
|
|
2490
|
+
//#endregion
|
|
2491
|
+
//#region src/components/lasso-tool/geometry-toolbar.tsx
|
|
2492
|
+
function or(e) {
|
|
2493
|
+
let t = i(38), { type: n, label: r, locked: a, selectionCount: o, anyLocked: s, style: c, defaultTextColor: l, onToggleType: u, onRename: p, onSetTextPresentation: m, onToggleLock: h, onDelete: g, onSetStyle: _, onEditGeometry: v, editingGeometry: y, onUnion: b, splittable: x, onSplit: S, onSubtract: C, onIntersect: w, onDuplicate: T, selectedIds: E, properties: D, onEditProperties: O, forceTextVisible: k, labels: A, PaperProps: j, children: M } = e, N = a !== void 0 && a, P = o === void 0 ? 1 : o, F = y !== void 0 && y, I = x !== void 0 && x, L = d(null), [R, z] = f(null), B = s ?? N, V = B || P > 1, H = n === "draw" && !!c && !!_, U;
|
|
2494
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (U = (e, t) => {
|
|
2495
|
+
z((n) => t ? e : n === e ? null : n);
|
|
2496
|
+
}, t[0] = U) : U = t[0];
|
|
2497
|
+
let W;
|
|
2498
|
+
t[1] !== s || t[2] !== l || t[3] !== B || t[4] !== F || t[5] !== k || t[6] !== r || t[7] !== A || t[8] !== N || t[9] !== g || t[10] !== T || t[11] !== v || t[12] !== O || t[13] !== w || t[14] !== p || t[15] !== _ || t[16] !== m || t[17] !== S || t[18] !== C || t[19] !== h || t[20] !== u || t[21] !== b || t[22] !== R || t[23] !== D || t[24] !== E || t[25] !== P || t[26] !== I || t[27] !== c || t[28] !== V || t[29] !== H || t[30] !== n ? (W = {
|
|
2499
|
+
type: n,
|
|
2500
|
+
label: r,
|
|
2501
|
+
locked: N,
|
|
2502
|
+
selectionCount: P,
|
|
2503
|
+
anyLocked: s,
|
|
2504
|
+
style: c,
|
|
2505
|
+
defaultTextColor: l,
|
|
2506
|
+
disabled: B,
|
|
2507
|
+
singleOnly: V,
|
|
2508
|
+
showStyle: H,
|
|
2509
|
+
editingGeometry: F,
|
|
2510
|
+
labels: A,
|
|
2511
|
+
anchorRef: L,
|
|
2512
|
+
splittable: I,
|
|
2513
|
+
onToggleType: u,
|
|
2514
|
+
onRename: p,
|
|
2515
|
+
onSetTextPresentation: m,
|
|
2516
|
+
onToggleLock: h,
|
|
2517
|
+
onDelete: g,
|
|
2518
|
+
onSetStyle: _,
|
|
2519
|
+
onEditGeometry: v,
|
|
2520
|
+
onUnion: b,
|
|
2521
|
+
onSplit: S,
|
|
2522
|
+
onSubtract: C,
|
|
2523
|
+
onIntersect: w,
|
|
2524
|
+
onDuplicate: T,
|
|
2525
|
+
selectedIds: E,
|
|
2526
|
+
properties: D,
|
|
2527
|
+
onEditProperties: O,
|
|
2528
|
+
forceTextVisible: k,
|
|
2529
|
+
openPopoverId: R,
|
|
2530
|
+
onOpenPopoverChange: U
|
|
2531
|
+
}, t[1] = s, t[2] = l, t[3] = B, t[4] = F, t[5] = k, t[6] = r, t[7] = A, t[8] = N, t[9] = g, t[10] = T, t[11] = v, t[12] = O, t[13] = w, t[14] = p, t[15] = _, t[16] = m, t[17] = S, t[18] = C, t[19] = h, t[20] = u, t[21] = b, t[22] = R, t[23] = D, t[24] = E, t[25] = P, t[26] = I, t[27] = c, t[28] = V, t[29] = H, t[30] = n, t[31] = W) : W = t[31];
|
|
2532
|
+
let G = W, K;
|
|
2533
|
+
t[32] !== M || t[33] !== G ? (K = /* @__PURE__ */ Z(Un, {
|
|
2534
|
+
value: G,
|
|
2535
|
+
children: M
|
|
2536
|
+
}), t[32] = M, t[33] = G, t[34] = K) : K = t[34];
|
|
2537
|
+
let q;
|
|
2538
|
+
return t[35] !== j || t[36] !== K ? (q = /* @__PURE__ */ Z(Bt, {
|
|
2539
|
+
ref: L,
|
|
2540
|
+
PaperProps: j,
|
|
2541
|
+
children: K
|
|
2542
|
+
}), t[35] = j, t[36] = K, t[37] = q) : q = t[37], q;
|
|
2543
|
+
}
|
|
2544
|
+
or.Color = Kn, or.Fill = qn, or.Stroke = Jn, or.EditGeometry = Yn, or.Label = Xn, or.EditProperties = Zn, or.ToggleType = Qn, or.Union = $n, or.Split = er, or.Subtract = tr, or.Intersect = nr, or.Duplicate = rr, or.Lock = ir, or.Delete = ar, or.Divider = Bt.Divider;
|
|
2545
|
+
//#endregion
|
|
2546
|
+
//#region src/components/lasso-tool/layer-filters.tsx
|
|
2547
|
+
var sr = {
|
|
2548
|
+
display: "flex",
|
|
2549
|
+
alignItems: "center",
|
|
2550
|
+
justifyContent: "space-between",
|
|
2551
|
+
gap: 1,
|
|
2552
|
+
p: 2
|
|
2553
|
+
}, cr = {
|
|
2554
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
2555
|
+
overflow: "hidden",
|
|
2556
|
+
backgroundColor: ({ palette: e }) => e.background.default
|
|
2557
|
+
}, lr = {
|
|
2558
|
+
display: "flex",
|
|
2559
|
+
alignItems: "center",
|
|
2560
|
+
gap: 1,
|
|
2561
|
+
height: 32,
|
|
2562
|
+
px: 1.5,
|
|
2563
|
+
color: ({ palette: e }) => e.text.secondary
|
|
2564
|
+
}, ur = {
|
|
2565
|
+
px: 2,
|
|
2566
|
+
py: .5
|
|
2567
|
+
}, dr = {
|
|
2568
|
+
minWidth: 0,
|
|
2569
|
+
mr: 1
|
|
2570
|
+
};
|
|
2571
|
+
function fr(e) {
|
|
2572
|
+
let t = i(82), { open: n, onClose: r, layers: a, onApply: o, labels: s, DialogProps: c } = e, u = l(), [d, p] = f(_r), [m, h] = f(""), [y, b] = f(!1);
|
|
2573
|
+
n !== y && (b(n), n && (p(new Set(a.filter(gr).map(hr))), h("")));
|
|
2574
|
+
let E = s?.title ?? "Layer Filters", D = s?.description ?? "Select the layers you want to filter with this polygon", O = s?.allSelected ?? "All selected", k = s?.empty ?? "No layers to filter", N;
|
|
2575
|
+
t[0] !== d || t[1] !== a ? (N = a.length > 0 && a.every((e) => d.has(e.id)), t[0] = d, t[1] = a, t[2] = N) : N = t[2];
|
|
2576
|
+
let L = N, R;
|
|
2577
|
+
if (t[3] !== d || t[4] !== a) {
|
|
2578
|
+
let e;
|
|
2579
|
+
t[6] === d ? e = t[7] : (e = (e) => d.has(e.id), t[6] = d, t[7] = e), R = a.some(e), t[3] = d, t[4] = a, t[5] = R;
|
|
2580
|
+
} else R = t[5];
|
|
2581
|
+
let z = R, B;
|
|
2582
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (B = (e) => p((t) => {
|
|
2583
|
+
let n = new Set(t);
|
|
2584
|
+
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2585
|
+
}), t[8] = B) : B = t[8];
|
|
2586
|
+
let V = B, H;
|
|
2587
|
+
t[9] !== L || t[10] !== a ? (H = () => p(L ? /* @__PURE__ */ new Set() : new Set(a.map(mr))), t[9] = L, t[10] = a, t[11] = H) : H = t[11];
|
|
2588
|
+
let U = H, W;
|
|
2589
|
+
t[12] !== d || t[13] !== a || t[14] !== o || t[15] !== r ? (W = () => {
|
|
2590
|
+
o(a.filter((e) => d.has(e.id)).map(pr)), r();
|
|
2591
|
+
}, t[12] = d, t[13] = a, t[14] = o, t[15] = r, t[16] = W) : W = t[16];
|
|
2592
|
+
let G = W, K, q;
|
|
2593
|
+
t[17] !== a || t[18] !== m ? (K = m.trim().toLowerCase(), q = K ? a.filter((e) => e.label.toLowerCase().includes(K)) : a, t[17] = a, t[18] = m, t[19] = K, t[20] = q) : (K = t[19], q = t[20]);
|
|
2594
|
+
let ee = q, Y;
|
|
2595
|
+
t[21] === E ? Y = t[22] : (Y = /* @__PURE__ */ Z(J, {
|
|
2596
|
+
variant: "subtitle1",
|
|
2597
|
+
fontWeight: 500,
|
|
2598
|
+
children: E
|
|
2599
|
+
}), t[21] = E, t[22] = Y);
|
|
2600
|
+
let te;
|
|
2601
|
+
t[23] === Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ Z(oe, { fontSize: "small" }), t[23] = te) : te = t[23];
|
|
2602
|
+
let ne;
|
|
2603
|
+
t[24] === r ? ne = t[25] : (ne = /* @__PURE__ */ Z(A, {
|
|
2604
|
+
"aria-label": "close",
|
|
2605
|
+
size: "small",
|
|
2606
|
+
onClick: r,
|
|
2607
|
+
children: te
|
|
2608
|
+
}), t[24] = r, t[25] = ne);
|
|
2609
|
+
let re;
|
|
2610
|
+
t[26] !== Y || t[27] !== ne ? (re = /* @__PURE__ */ Q(w, {
|
|
2611
|
+
component: "div",
|
|
2612
|
+
sx: sr,
|
|
2613
|
+
children: [Y, ne]
|
|
2614
|
+
}), t[26] = Y, t[27] = ne, t[28] = re) : re = t[28];
|
|
2615
|
+
let ie;
|
|
2616
|
+
t[29] === Symbol.for("react.memo_cache_sentinel") ? (ie = {
|
|
2617
|
+
pt: 1,
|
|
2618
|
+
px: 2,
|
|
2619
|
+
pb: 3
|
|
2620
|
+
}, t[29] = ie) : ie = t[29];
|
|
2621
|
+
let ae;
|
|
2622
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (ae = { mb: 2 }, t[30] = ae) : ae = t[30];
|
|
2623
|
+
let se;
|
|
2624
|
+
t[31] === D ? se = t[32] : (se = /* @__PURE__ */ Z(J, {
|
|
2625
|
+
variant: "body2",
|
|
2626
|
+
color: "text.secondary",
|
|
2627
|
+
sx: ae,
|
|
2628
|
+
children: D
|
|
2629
|
+
}), t[31] = D, t[32] = se);
|
|
2630
|
+
let ce;
|
|
2631
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Z(Ee, { sx: { fontSize: 18 } }), t[33] = ce) : ce = t[33];
|
|
2632
|
+
let le = s?.search ?? "Search layers", ue = s?.search ?? "Search layers", de;
|
|
2633
|
+
t[34] === ue ? de = t[35] : (de = { "aria-label": ue }, t[34] = ue, t[35] = de);
|
|
2634
|
+
let fe, pe;
|
|
2635
|
+
t[36] === Symbol.for("react.memo_cache_sentinel") ? (fe = (e) => h(e.target.value), pe = {
|
|
2636
|
+
fontSize: 13,
|
|
2637
|
+
color: "text.primary"
|
|
2638
|
+
}, t[36] = fe, t[37] = pe) : (fe = t[36], pe = t[37]);
|
|
2639
|
+
let me;
|
|
2640
|
+
t[38] !== m || t[39] !== le || t[40] !== de ? (me = /* @__PURE__ */ Q(g, {
|
|
2641
|
+
sx: lr,
|
|
2642
|
+
children: [ce, /* @__PURE__ */ Z(j, {
|
|
2643
|
+
fullWidth: !0,
|
|
2644
|
+
placeholder: le,
|
|
2645
|
+
inputProps: de,
|
|
2646
|
+
value: m,
|
|
2647
|
+
onChange: fe,
|
|
2648
|
+
sx: pe
|
|
2649
|
+
})]
|
|
2650
|
+
}), t[38] = m, t[39] = le, t[40] = de, t[41] = me) : me = t[41];
|
|
2651
|
+
let he;
|
|
2652
|
+
t[42] === Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ Z(T, {}), t[42] = he) : he = t[42];
|
|
2653
|
+
let ge;
|
|
2654
|
+
t[43] === Symbol.for("react.memo_cache_sentinel") ? (ge = {
|
|
2655
|
+
maxHeight: 240,
|
|
2656
|
+
overflowY: "auto",
|
|
2657
|
+
"& .MuiDivider-root": { my: 0 }
|
|
2658
|
+
}, t[43] = ge) : ge = t[43];
|
|
2659
|
+
let _e;
|
|
2660
|
+
t[44] !== L || t[45] !== O || t[46] !== u || t[47] !== K || t[48] !== z || t[49] !== U ? (_e = !K && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(P, {
|
|
2661
|
+
dense: !0,
|
|
2662
|
+
sx: ur,
|
|
2663
|
+
onClick: U,
|
|
2664
|
+
children: [/* @__PURE__ */ Z(F, {
|
|
2665
|
+
sx: dr,
|
|
2666
|
+
children: /* @__PURE__ */ Z(v, {
|
|
2667
|
+
edge: "start",
|
|
2668
|
+
tabIndex: -1,
|
|
2669
|
+
disableRipple: !0,
|
|
2670
|
+
sx: { p: .5 },
|
|
2671
|
+
checked: L,
|
|
2672
|
+
indeterminate: !L && z,
|
|
2673
|
+
inputProps: { "aria-labelledby": `${u}-all` }
|
|
2674
|
+
})
|
|
2675
|
+
}), /* @__PURE__ */ Z(I, {
|
|
2676
|
+
id: `${u}-all`,
|
|
2677
|
+
primary: O,
|
|
2678
|
+
primaryTypographyProps: { variant: "body2" }
|
|
2679
|
+
})]
|
|
2680
|
+
}), /* @__PURE__ */ Z(T, {})] }), t[44] = L, t[45] = O, t[46] = u, t[47] = K, t[48] = z, t[49] = U, t[50] = _e) : _e = t[50];
|
|
2681
|
+
let ve;
|
|
2682
|
+
t[51] !== d || t[52] !== k || t[53] !== ee || t[54] !== u ? (ve = ee.length === 0 ? /* @__PURE__ */ Z(J, {
|
|
2683
|
+
variant: "body2",
|
|
2684
|
+
color: "text.secondary",
|
|
2685
|
+
sx: { p: 2 },
|
|
2686
|
+
children: k
|
|
2687
|
+
}) : ee.map((e) => /* @__PURE__ */ Q(P, {
|
|
2688
|
+
dense: !0,
|
|
2689
|
+
sx: ur,
|
|
2690
|
+
onClick: () => V(e.id),
|
|
2691
|
+
children: [/* @__PURE__ */ Z(F, {
|
|
2692
|
+
sx: dr,
|
|
2693
|
+
children: /* @__PURE__ */ Z(v, {
|
|
2694
|
+
edge: "start",
|
|
2695
|
+
tabIndex: -1,
|
|
2696
|
+
disableRipple: !0,
|
|
2697
|
+
sx: { p: .5 },
|
|
2698
|
+
checked: d.has(e.id),
|
|
2699
|
+
inputProps: { "aria-labelledby": `${u}-${e.id}` }
|
|
2700
|
+
})
|
|
2701
|
+
}), /* @__PURE__ */ Z(I, {
|
|
2702
|
+
id: `${u}-${e.id}`,
|
|
2703
|
+
primary: e.label,
|
|
2704
|
+
primaryTypographyProps: {
|
|
2705
|
+
variant: "body2",
|
|
2706
|
+
noWrap: !0,
|
|
2707
|
+
title: e.label
|
|
2708
|
+
}
|
|
2709
|
+
})]
|
|
2710
|
+
}, e.id)), t[51] = d, t[52] = k, t[53] = ee, t[54] = u, t[55] = ve) : ve = t[55];
|
|
2711
|
+
let ye;
|
|
2712
|
+
t[56] !== _e || t[57] !== ve ? (ye = /* @__PURE__ */ Q(M, {
|
|
2713
|
+
component: "div",
|
|
2714
|
+
role: "list",
|
|
2715
|
+
disablePadding: !0,
|
|
2716
|
+
sx: ge,
|
|
2717
|
+
children: [_e, ve]
|
|
2718
|
+
}), t[56] = _e, t[57] = ve, t[58] = ye) : ye = t[58];
|
|
2719
|
+
let be;
|
|
2720
|
+
t[59] !== me || t[60] !== ye ? (be = /* @__PURE__ */ Q(g, {
|
|
2721
|
+
sx: cr,
|
|
2722
|
+
children: [
|
|
2723
|
+
me,
|
|
2724
|
+
he,
|
|
2725
|
+
ye
|
|
2726
|
+
]
|
|
2727
|
+
}), t[59] = me, t[60] = ye, t[61] = be) : be = t[61];
|
|
2728
|
+
let xe;
|
|
2729
|
+
t[62] !== se || t[63] !== be ? (xe = /* @__PURE__ */ Q(C, {
|
|
2730
|
+
sx: ie,
|
|
2731
|
+
children: [se, be]
|
|
2732
|
+
}), t[62] = se, t[63] = be, t[64] = xe) : xe = t[64];
|
|
2733
|
+
let Se;
|
|
2734
|
+
t[65] === Symbol.for("react.memo_cache_sentinel") ? (Se = { p: 2 }, t[65] = Se) : Se = t[65];
|
|
2735
|
+
let Ce = s?.cancel ?? "Cancel", we;
|
|
2736
|
+
t[66] !== r || t[67] !== Ce ? (we = /* @__PURE__ */ Z(_, {
|
|
2737
|
+
onClick: r,
|
|
2738
|
+
children: Ce
|
|
2739
|
+
}), t[66] = r, t[67] = Ce, t[68] = we) : we = t[68];
|
|
2740
|
+
let Te = s?.apply ?? "Apply", De;
|
|
2741
|
+
t[69] !== G || t[70] !== Te ? (De = /* @__PURE__ */ Z(_, {
|
|
2742
|
+
variant: "contained",
|
|
2743
|
+
onClick: G,
|
|
2744
|
+
children: Te
|
|
2745
|
+
}), t[69] = G, t[70] = Te, t[71] = De) : De = t[71];
|
|
2746
|
+
let Oe;
|
|
2747
|
+
t[72] !== we || t[73] !== De ? (Oe = /* @__PURE__ */ Q(S, {
|
|
2748
|
+
sx: Se,
|
|
2749
|
+
children: [we, De]
|
|
2750
|
+
}), t[72] = we, t[73] = De, t[74] = Oe) : Oe = t[74];
|
|
2751
|
+
let ke;
|
|
2752
|
+
return t[75] !== c || t[76] !== r || t[77] !== n || t[78] !== re || t[79] !== xe || t[80] !== Oe ? (ke = /* @__PURE__ */ Q(x, {
|
|
2753
|
+
open: n,
|
|
2754
|
+
onClose: r,
|
|
2755
|
+
maxWidth: "xs",
|
|
2756
|
+
fullWidth: !0,
|
|
2757
|
+
...c,
|
|
2758
|
+
children: [
|
|
2759
|
+
re,
|
|
2760
|
+
xe,
|
|
2761
|
+
Oe
|
|
2762
|
+
]
|
|
2763
|
+
}), t[75] = c, t[76] = r, t[77] = n, t[78] = re, t[79] = xe, t[80] = Oe, t[81] = ke) : ke = t[81], ke;
|
|
2764
|
+
}
|
|
2765
|
+
function pr(e) {
|
|
2766
|
+
return e.id;
|
|
2767
|
+
}
|
|
2768
|
+
function mr(e) {
|
|
2769
|
+
return e.id;
|
|
2770
|
+
}
|
|
2771
|
+
function hr(e) {
|
|
2772
|
+
return e.id;
|
|
2773
|
+
}
|
|
2774
|
+
function gr(e) {
|
|
2775
|
+
return e.checked;
|
|
2776
|
+
}
|
|
2777
|
+
function _r() {
|
|
2778
|
+
return /* @__PURE__ */ new Set();
|
|
2779
|
+
}
|
|
2780
|
+
//#endregion
|
|
2781
|
+
//#region src/components/lasso-tool/message.tsx
|
|
2782
|
+
function vr(e) {
|
|
2783
|
+
let t = i(16), { message: n, onDismiss: r, AlertProps: a, SnackbarProps: o } = e, s;
|
|
2784
|
+
t[0] === r ? s = t[1] : (s = (e, t) => t !== "clickaway" && r(), t[0] = r, t[1] = s);
|
|
2785
|
+
let c;
|
|
2786
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
2787
|
+
position: "static",
|
|
2788
|
+
transform: "none"
|
|
2789
|
+
}, t[2] = c) : c = t[2];
|
|
2790
|
+
let l = n.severity ?? "info", u;
|
|
2791
|
+
t[3] === n.title ? u = t[4] : (u = /* @__PURE__ */ Z(h, { children: n.title }), t[3] = n.title, t[4] = u);
|
|
2792
|
+
let d;
|
|
2793
|
+
t[5] !== a || t[6] !== n.action || t[7] !== n.content || t[8] !== r || t[9] !== l || t[10] !== u ? (d = /* @__PURE__ */ Q(m, {
|
|
2794
|
+
severity: l,
|
|
2795
|
+
action: n.action,
|
|
2796
|
+
onClose: r,
|
|
2797
|
+
...a,
|
|
2798
|
+
children: [u, n.content]
|
|
2799
|
+
}), t[5] = a, t[6] = n.action, t[7] = n.content, t[8] = r, t[9] = l, t[10] = u, t[11] = d) : d = t[11];
|
|
2800
|
+
let f;
|
|
2801
|
+
return t[12] !== o || t[13] !== s || t[14] !== d ? (f = /* @__PURE__ */ Z(W, {
|
|
2802
|
+
open: !0,
|
|
2803
|
+
autoHideDuration: 5e3,
|
|
2804
|
+
onClose: s,
|
|
2805
|
+
sx: c,
|
|
2806
|
+
...o,
|
|
2807
|
+
children: d
|
|
2808
|
+
}), t[12] = o, t[13] = s, t[14] = d, t[15] = f) : f = t[15], f;
|
|
2809
|
+
}
|
|
2810
|
+
//#endregion
|
|
2811
|
+
//#region src/components/lasso-tool/edit-confirm-toolbar.tsx
|
|
2812
|
+
function yr(e) {
|
|
2813
|
+
let t = i(13), { onAccept: n, onCancel: r, labels: a, shortcuts: o, PaperProps: s } = e, c = a?.cancel, l = o?.cancel, u;
|
|
2814
|
+
t[0] !== r || t[1] !== c || t[2] !== l ? (u = /* @__PURE__ */ Z(Vn, {
|
|
2815
|
+
label: c,
|
|
2816
|
+
shortcut: l,
|
|
2817
|
+
onCancel: r
|
|
2818
|
+
}), t[0] = r, t[1] = c, t[2] = l, t[3] = u) : u = t[3];
|
|
2819
|
+
let d;
|
|
2820
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ Z(Bt.Divider, {}), t[4] = d) : d = t[4];
|
|
2821
|
+
let f = a?.accept, p = o?.accept, m;
|
|
2822
|
+
t[5] !== n || t[6] !== f || t[7] !== p ? (m = /* @__PURE__ */ Z(zn, {
|
|
2823
|
+
label: f,
|
|
2824
|
+
shortcut: p,
|
|
2825
|
+
onAccept: n
|
|
2826
|
+
}), t[5] = n, t[6] = f, t[7] = p, t[8] = m) : m = t[8];
|
|
2827
|
+
let h;
|
|
2828
|
+
return t[9] !== s || t[10] !== u || t[11] !== m ? (h = /* @__PURE__ */ Q(Bt, {
|
|
2829
|
+
PaperProps: s,
|
|
2830
|
+
children: [
|
|
2831
|
+
u,
|
|
2832
|
+
d,
|
|
2833
|
+
m
|
|
2834
|
+
]
|
|
2835
|
+
}), t[9] = s, t[10] = u, t[11] = m, t[12] = h) : h = t[12], h;
|
|
2836
|
+
}
|
|
2837
|
+
//#endregion
|
|
2838
|
+
//#region src/components/measurement-tools/icons.tsx
|
|
2839
|
+
function br(e) {
|
|
2840
|
+
let t = i(3), n;
|
|
2841
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
2842
|
+
fill: "currentColor",
|
|
2843
|
+
d: "M3 13.5c-.413 0-.766-.147-1.06-.44A1.445 1.445 0 0 1 1.5 12V6c0-.412.147-.766.44-1.06.294-.293.647-.44 1.06-.44h12c.412 0 .766.147 1.06.44.293.294.44.647.44 1.06v6c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3ZM3 12h12V6h-2.25v3h-1.5V6h-1.5v3h-1.5V6h-1.5v3h-1.5V6H3v6Z"
|
|
2844
|
+
}), t[0] = n) : n = t[0];
|
|
2845
|
+
let r;
|
|
2846
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
2847
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2848
|
+
viewBox: "0 0 18 18",
|
|
2849
|
+
fill: "currentColor",
|
|
2850
|
+
...e,
|
|
2851
|
+
children: n
|
|
2852
|
+
}), t[1] = e, t[2] = r), r;
|
|
2853
|
+
}
|
|
2854
|
+
function xr(e) {
|
|
2855
|
+
let t = i(3), n;
|
|
2856
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
2857
|
+
fill: "currentColor",
|
|
2858
|
+
fillRule: "evenodd",
|
|
2859
|
+
d: "M9 1.5a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM9 3a6 6 0 1 0 0 12A6 6 0 0 0 9 3Zm0 4.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z",
|
|
2860
|
+
clipRule: "evenodd"
|
|
2861
|
+
}), t[0] = n) : n = t[0];
|
|
2862
|
+
let r;
|
|
2863
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
2864
|
+
fill: "none",
|
|
2865
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2866
|
+
viewBox: "0 0 18 18",
|
|
2867
|
+
...e,
|
|
2868
|
+
children: n
|
|
2869
|
+
}), t[1] = e, t[2] = r), r;
|
|
2870
|
+
}
|
|
2871
|
+
function Sr(e) {
|
|
2872
|
+
let t = i(4), n, r;
|
|
2873
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
2874
|
+
fill: "currentColor",
|
|
2875
|
+
fillRule: "evenodd",
|
|
2876
|
+
d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z",
|
|
2877
|
+
clipRule: "evenodd"
|
|
2878
|
+
}), r = /* @__PURE__ */ Z("path", {
|
|
2879
|
+
fill: "#2C3032",
|
|
2880
|
+
fillRule: "evenodd",
|
|
2881
|
+
d: "M1.5 3A1.5 1.5 0 0 1 3 1.5h12A1.5 1.5 0 0 1 16.5 3v12a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 15V3ZM3 3h12v12H3V3Z",
|
|
2882
|
+
clipRule: "evenodd"
|
|
2883
|
+
}), t[0] = n, t[1] = r) : (n = t[0], r = t[1]);
|
|
2884
|
+
let a;
|
|
2885
|
+
return t[2] === e ? a = t[3] : (a = /* @__PURE__ */ Q("svg", {
|
|
2886
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2887
|
+
viewBox: "0 0 18 18",
|
|
2888
|
+
...e,
|
|
2889
|
+
children: [n, r]
|
|
2890
|
+
}), t[2] = e, t[3] = a), a;
|
|
2891
|
+
}
|
|
2892
|
+
//#endregion
|
|
2893
|
+
//#region src/components/measurement-tools/const.tsx
|
|
2894
|
+
var Cr = {
|
|
2895
|
+
action: { tooltip: {
|
|
2896
|
+
active: "Click on the map to start measuring",
|
|
2897
|
+
inactive: "Click on the map to start measuring"
|
|
2898
|
+
} },
|
|
2899
|
+
chip: { tooltip: {
|
|
2900
|
+
active: "Hide measure",
|
|
2901
|
+
inactive: "Show measure"
|
|
2902
|
+
} },
|
|
2903
|
+
options: {
|
|
2904
|
+
mode: {
|
|
2905
|
+
title: "Choose a measuring tool",
|
|
2906
|
+
options: {
|
|
2907
|
+
distance: "Measure distance",
|
|
2908
|
+
buffer: "Buffer distance",
|
|
2909
|
+
area: "Area"
|
|
2910
|
+
}
|
|
2911
|
+
},
|
|
2912
|
+
units: {
|
|
2913
|
+
title: "Unit of measurement",
|
|
2914
|
+
modal: {
|
|
2915
|
+
title: "Map Measurement Unit",
|
|
2916
|
+
subtitle: "Select the unit of measurement for your measurements",
|
|
2917
|
+
apply: "Save",
|
|
2918
|
+
options: {
|
|
2919
|
+
metric: {
|
|
2920
|
+
title: "Meters and Kilometers",
|
|
2921
|
+
options: {
|
|
2922
|
+
"m-km": "Auto",
|
|
2923
|
+
kilometer: "Kilometers",
|
|
2924
|
+
meter: "Meter",
|
|
2925
|
+
centimeter: "Centimeter",
|
|
2926
|
+
milimeter: "Milimeter"
|
|
2927
|
+
}
|
|
2928
|
+
},
|
|
2929
|
+
imperial: {
|
|
2930
|
+
title: "Feet and Miles",
|
|
2931
|
+
options: {
|
|
2932
|
+
"ft-mi": "Auto",
|
|
2933
|
+
mile: "Mile",
|
|
2934
|
+
feet: "Feet",
|
|
2935
|
+
yard: "Yard"
|
|
2936
|
+
}
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
}, wr = {
|
|
2943
|
+
"m-km": { short: "m-km" },
|
|
2944
|
+
kilometer: { short: "km" },
|
|
2945
|
+
meter: { short: "m" },
|
|
2946
|
+
centimeter: { short: "cm" },
|
|
2947
|
+
milimeter: { short: "mm" },
|
|
2948
|
+
"ft-mi": { short: "ft-mi" },
|
|
2949
|
+
mile: { short: "mi" },
|
|
2950
|
+
yard: { short: "yd" },
|
|
2951
|
+
feet: { short: "ft" }
|
|
2952
|
+
}, Tr = {
|
|
2953
|
+
distance: { icon: /* @__PURE__ */ Z(br, {}) },
|
|
2954
|
+
buffer: { icon: /* @__PURE__ */ Z(xr, {}) },
|
|
2955
|
+
area: { icon: /* @__PURE__ */ Z(Sr, {}) }
|
|
2956
|
+
}, Er = {
|
|
2957
|
+
container: {
|
|
2958
|
+
display: "flex",
|
|
2959
|
+
flexDirection: "row",
|
|
2960
|
+
alignItems: "center",
|
|
2961
|
+
justifyContent: "flex-start",
|
|
2962
|
+
gap: ({ spacing: e }) => e(1),
|
|
2963
|
+
overflow: "hidden",
|
|
2964
|
+
width: "fit-content"
|
|
2965
|
+
},
|
|
2966
|
+
actions: { icon: {
|
|
2967
|
+
width: ({ spacing: e }) => e(4),
|
|
2968
|
+
height: ({ spacing: e }) => e(4),
|
|
2969
|
+
borderRadius: 0,
|
|
2970
|
+
".MuiTouchRipple-ripple .MuiTouchRipple-child": { borderRadius: 0 }
|
|
2971
|
+
} },
|
|
2972
|
+
options: {
|
|
2973
|
+
menu: { marginTop: ({ spacing: e }) => e(1) },
|
|
2974
|
+
icon: { width: ({ spacing: e }) => e(3) },
|
|
2975
|
+
title: {
|
|
2976
|
+
paddingX: ({ spacing: e }) => e(2),
|
|
2977
|
+
paddingY: ({ spacing: e }) => e(.5)
|
|
2978
|
+
},
|
|
2979
|
+
icons: { color: ({ palette: e }) => e.text.primary },
|
|
2980
|
+
tag: {
|
|
2981
|
+
borderRadius: ({ spacing: e }) => e(.25),
|
|
2982
|
+
border: "1px solid",
|
|
2983
|
+
borderColor: ({ palette: e }) => e.primary.main,
|
|
2984
|
+
paddingX: ({ spacing: e }) => e(.5),
|
|
2985
|
+
color: ({ palette: e }) => e.primary.main,
|
|
2986
|
+
backgroundColor: ({ palette: e }) => Y(e.primary.main, .08)
|
|
2987
|
+
},
|
|
2988
|
+
modal: {
|
|
2989
|
+
toggle: {
|
|
2990
|
+
boxShadow: "none",
|
|
2991
|
+
backgroundColor: "#F8F9F9",
|
|
2992
|
+
padding: ({ spacing: e }) => e(.5),
|
|
2993
|
+
marginTop: ({ spacing: e }) => e(2),
|
|
2994
|
+
marginBottom: ({ spacing: e }) => e(1),
|
|
2995
|
+
".MuiToggleButtonGroup-grouped": {
|
|
2996
|
+
typography: "caption",
|
|
2997
|
+
fontWeight: 500,
|
|
2998
|
+
margin: 0,
|
|
2999
|
+
"&:first-of-type:not(.MuiDivider-root)": { marginLeft: 0 }
|
|
3000
|
+
}
|
|
3001
|
+
},
|
|
3002
|
+
subtitle: {
|
|
3003
|
+
typography: "body2",
|
|
3004
|
+
color: ({ palette: e }) => e.text.secondary
|
|
3005
|
+
},
|
|
3006
|
+
optionsGroup: {
|
|
3007
|
+
marginLeft: ({ spacing: e }) => e(1),
|
|
3008
|
+
typography: "body2"
|
|
3009
|
+
},
|
|
3010
|
+
title: {
|
|
3011
|
+
display: "flex",
|
|
3012
|
+
justifyContent: "space-between",
|
|
3013
|
+
alignItems: "center",
|
|
3014
|
+
padding: ({ spacing: e }) => e(2)
|
|
3015
|
+
},
|
|
3016
|
+
content: {
|
|
3017
|
+
paddingX: ({ spacing: e }) => e(2),
|
|
3018
|
+
minWidth: ({ spacing: e }) => e(50)
|
|
3019
|
+
},
|
|
3020
|
+
actions: { paddingX: ({ spacing: e }) => e(2) }
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
chip: {
|
|
3024
|
+
chip: { marginRight: ({ spacing: e }) => e(.5) },
|
|
3025
|
+
disabled: { opacity: ({ palette: e }) => e.action.disabledOpacity }
|
|
3026
|
+
}
|
|
3027
|
+
}, Dr = {};
|
|
3028
|
+
function Or(e) {
|
|
3029
|
+
let t = i(44), { enabled: n, actionProps: r, labels: a, modes: o, modesMapping: s, unitsMapping: c, modeSelected: l, PaperProps: u, units: d, unitSelected: f, onActionToggle: p, onChangeMode: m, onChangeUnit: h } = e, _ = a === void 0 ? Cr : a, v = s === void 0 ? Tr : s, y = c === void 0 ? wr : c, b = u === void 0 ? Dr : u, x, S;
|
|
3030
|
+
t[0] === b ? (x = t[1], S = t[2]) : ({sx: S, ...x} = b, t[0] = b, t[1] = x, t[2] = S);
|
|
3031
|
+
let C;
|
|
3032
|
+
t[3] === p ? C = t[4] : (C = (e) => p(!!e), t[3] = p, t[4] = C);
|
|
3033
|
+
let w = C, T;
|
|
3034
|
+
t[5] !== o || t[6] !== v ? (T = (0, He.default)(o, v), t[5] = o, t[6] = v, t[7] = T) : T = t[7];
|
|
3035
|
+
let E = T, D = (l ?? "") in E, O;
|
|
3036
|
+
t[8] !== E || t[9] !== D || t[10] !== l ? (O = D ? l : Object.keys(E)[0], t[8] = E, t[9] = D, t[10] = l, t[11] = O) : O = t[11];
|
|
3037
|
+
let k = O, A = E[k], j = d[k], M;
|
|
3038
|
+
t[12] !== k || t[13] !== j || t[14] !== d ? (M = Object.keys(d).length >= 1 ? d : { [k]: j.slice(0, 1) }, t[12] = k, t[13] = j, t[14] = d, t[15] = M) : M = t[15];
|
|
3039
|
+
let N = M[k], P;
|
|
3040
|
+
if (t[16] !== N || t[17] !== y) {
|
|
3041
|
+
let e;
|
|
3042
|
+
t[19] === y ? e = t[20] : (e = (e) => ({
|
|
3043
|
+
...e,
|
|
3044
|
+
...y[e.value]
|
|
3045
|
+
}), t[19] = y, t[20] = e), P = N.map(e), t[16] = N, t[17] = y, t[18] = P;
|
|
3046
|
+
} else P = t[18];
|
|
3047
|
+
let F = P, I;
|
|
3048
|
+
t[21] === S ? I = t[22] : (I = {
|
|
3049
|
+
...Er.container,
|
|
3050
|
+
...S
|
|
3051
|
+
}, t[21] = S, t[22] = I);
|
|
3052
|
+
let L = _?.action, R = A?.icon, B;
|
|
3053
|
+
t[23] !== r || t[24] !== n || t[25] !== w || t[26] !== L || t[27] !== R ? (B = /* @__PURE__ */ Z(kr, {
|
|
3054
|
+
actionProps: r,
|
|
3055
|
+
labels: L,
|
|
3056
|
+
enabled: n,
|
|
3057
|
+
onActionToggle: w,
|
|
3058
|
+
children: R
|
|
3059
|
+
}), t[23] = r, t[24] = n, t[25] = w, t[26] = L, t[27] = R, t[28] = B) : B = t[28];
|
|
3060
|
+
let V = _?.options, H;
|
|
3061
|
+
t[29] !== F || t[30] !== E || t[31] !== k || t[32] !== m || t[33] !== h || t[34] !== V || t[35] !== f ? (H = /* @__PURE__ */ Z(Ar, {
|
|
3062
|
+
labels: V,
|
|
3063
|
+
modes: E,
|
|
3064
|
+
modeSelected: k,
|
|
3065
|
+
units: F,
|
|
3066
|
+
unitSelected: f,
|
|
3067
|
+
onChangeMode: m,
|
|
3068
|
+
onChangeUnit: h
|
|
3069
|
+
}), t[29] = F, t[30] = E, t[31] = k, t[32] = m, t[33] = h, t[34] = V, t[35] = f, t[36] = H) : H = t[36];
|
|
3070
|
+
let U;
|
|
3071
|
+
t[37] !== B || t[38] !== H ? (U = /* @__PURE__ */ Q(g, { children: [B, H] }), t[37] = B, t[38] = H, t[39] = U) : U = t[39];
|
|
3072
|
+
let W;
|
|
3073
|
+
return t[40] !== x || t[41] !== I || t[42] !== U ? (W = /* @__PURE__ */ Z(z, {
|
|
3074
|
+
sx: I,
|
|
3075
|
+
...x,
|
|
3076
|
+
children: U
|
|
3077
|
+
}), t[40] = x, t[41] = I, t[42] = U, t[43] = W) : W = t[43], W;
|
|
3078
|
+
}
|
|
3079
|
+
function kr(e) {
|
|
3080
|
+
let t = i(12), { actionProps: r, labels: a, enabled: o, children: s, onActionToggle: c } = e, l = o ? "active" : "inactive", u = a?.tooltip?.[l] ?? Cr.action.tooltip[l], d = r?.TooltipProps, f;
|
|
3081
|
+
t[0] !== o || t[1] !== c ? (f = () => c(!o), t[0] = o, t[1] = c, t[2] = f) : f = t[2];
|
|
3082
|
+
let p;
|
|
3083
|
+
t[3] !== u || t[4] !== s || t[5] !== o || t[6] !== f ? (p = /* @__PURE__ */ Z(q, {
|
|
3084
|
+
value: "toggle",
|
|
3085
|
+
sx: Er.actions.icon,
|
|
3086
|
+
onClick: f,
|
|
3087
|
+
"aria-label": u,
|
|
3088
|
+
selected: o,
|
|
3089
|
+
children: s
|
|
3090
|
+
}), t[3] = u, t[4] = s, t[5] = o, t[6] = f, t[7] = p) : p = t[7];
|
|
3091
|
+
let m;
|
|
3092
|
+
return t[8] !== u || t[9] !== d || t[10] !== p ? (m = /* @__PURE__ */ Z(n, {
|
|
3093
|
+
title: u,
|
|
3094
|
+
placement: "right",
|
|
3095
|
+
...d,
|
|
3096
|
+
children: p
|
|
3097
|
+
}), t[8] = u, t[9] = d, t[10] = p, t[11] = m) : m = t[11], m;
|
|
3098
|
+
}
|
|
3099
|
+
function Ar(e) {
|
|
3100
|
+
let t = i(41), { modes: n, modeSelected: r, units: a, unitSelected: o, labels: s, onChangeMode: c, onChangeUnit: l } = e, [u, d] = f(null), [p, m] = f(!1), h;
|
|
3101
|
+
t[0] === n ? h = t[1] : (h = Object.values(n), t[0] = n, t[1] = h);
|
|
3102
|
+
let g = h, _;
|
|
3103
|
+
t[2] === a ? _ = t[3] : (_ = Object.values(a), t[2] = a, t[3] = _);
|
|
3104
|
+
let v = _;
|
|
3105
|
+
if (!(g.length > 1 || v.length > 1)) return null;
|
|
3106
|
+
let y = !!u, b;
|
|
3107
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (b = (e) => {
|
|
3108
|
+
d(e.currentTarget);
|
|
3109
|
+
}, t[4] = b) : b = t[4];
|
|
3110
|
+
let x = b, S;
|
|
3111
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (S = () => {
|
|
3112
|
+
d(null);
|
|
3113
|
+
}, t[5] = S) : S = t[5];
|
|
3114
|
+
let C = S, w;
|
|
3115
|
+
t[6] === c ? w = t[7] : (w = (e, t) => {
|
|
3116
|
+
e.preventDefault(), c(t.value), C();
|
|
3117
|
+
}, t[6] = c, t[7] = w);
|
|
3118
|
+
let E = w, D;
|
|
3119
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
3120
|
+
m(!0);
|
|
3121
|
+
}, t[8] = D) : D = t[8];
|
|
3122
|
+
let O = D, k;
|
|
3123
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (k = () => {
|
|
3124
|
+
m(!1);
|
|
3125
|
+
}, t[9] = k) : k = t[9];
|
|
3126
|
+
let j = k, M;
|
|
3127
|
+
t[10] === l ? M = t[11] : (M = (e) => {
|
|
3128
|
+
j(), l(e);
|
|
3129
|
+
}, t[10] = l, t[11] = M);
|
|
3130
|
+
let N = M, P = s?.mode?.title ?? Cr.options.mode.title, z = s?.units?.title ?? Cr.options.units.title, B = g.length > 1 && v.length > 1, V;
|
|
3131
|
+
t[12] !== o || t[13] !== a ? (V = a.find((e) => e.value === o) ?? a[0], t[12] = o, t[13] = a, t[14] = V) : V = t[14];
|
|
3132
|
+
let H = V, U;
|
|
3133
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ Z(A, {
|
|
3134
|
+
sx: Er.options.icon,
|
|
3135
|
+
onClick: x,
|
|
3136
|
+
children: /* @__PURE__ */ Z(ie, {})
|
|
3137
|
+
}), t[15] = U) : U = t[15];
|
|
3138
|
+
let W;
|
|
3139
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (W = {
|
|
3140
|
+
"aria-labelledby": "basic-button",
|
|
3141
|
+
sx: Er.options.menu
|
|
3142
|
+
}, t[16] = W) : W = t[16];
|
|
3143
|
+
let K;
|
|
3144
|
+
t[17] !== E || t[18] !== s?.mode?.options || t[19] !== r || t[20] !== P || t[21] !== g ? (K = g.length > 1 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(J, {
|
|
3145
|
+
variant: "subtitle2",
|
|
3146
|
+
color: "text.secondary",
|
|
3147
|
+
sx: Er.options.title,
|
|
3148
|
+
children: P
|
|
3149
|
+
}), g.map((e) => {
|
|
3150
|
+
let t = (s?.mode?.options ?? Cr.options.mode.options)[e.value];
|
|
3151
|
+
return /* @__PURE__ */ Q(R, {
|
|
3152
|
+
onClick: (t) => E(t, e),
|
|
3153
|
+
selected: e.value === r,
|
|
3154
|
+
children: [/* @__PURE__ */ Z(F, {
|
|
3155
|
+
sx: Er.options.icons,
|
|
3156
|
+
children: /* @__PURE__ */ Z(G, { children: e.icon })
|
|
3157
|
+
}), /* @__PURE__ */ Z(I, { children: t })]
|
|
3158
|
+
}, e.value);
|
|
3159
|
+
})] }), t[17] = E, t[18] = s?.mode?.options, t[19] = r, t[20] = P, t[21] = g, t[22] = K) : K = t[22];
|
|
3160
|
+
let q;
|
|
3161
|
+
t[23] === B ? q = t[24] : (q = B && /* @__PURE__ */ Z(T, {}), t[23] = B, t[24] = q);
|
|
3162
|
+
let ee;
|
|
3163
|
+
t[25] !== N || t[26] !== s || t[27] !== p || t[28] !== H || t[29] !== z || t[30] !== a || t[31] !== v.length ? (ee = v.length > 1 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(R, {
|
|
3164
|
+
onClick: O,
|
|
3165
|
+
children: [/* @__PURE__ */ Z(I, { children: z }), /* @__PURE__ */ Z(J, {
|
|
3166
|
+
variant: "caption",
|
|
3167
|
+
fontWeight: 500,
|
|
3168
|
+
sx: Er.options.tag,
|
|
3169
|
+
children: H.short
|
|
3170
|
+
})]
|
|
3171
|
+
}), /* @__PURE__ */ Z(jr, {
|
|
3172
|
+
open: p,
|
|
3173
|
+
labels: s,
|
|
3174
|
+
units: a,
|
|
3175
|
+
unitSelectedValue: H,
|
|
3176
|
+
onClose: j,
|
|
3177
|
+
onSubmit: N
|
|
3178
|
+
})] }), t[25] = N, t[26] = s, t[27] = p, t[28] = H, t[29] = z, t[30] = a, t[31] = v.length, t[32] = ee) : ee = t[32];
|
|
3179
|
+
let Y;
|
|
3180
|
+
t[33] !== K || t[34] !== q || t[35] !== ee ? (Y = /* @__PURE__ */ Q("div", { children: [
|
|
3181
|
+
K,
|
|
3182
|
+
q,
|
|
3183
|
+
ee
|
|
3184
|
+
] }), t[33] = K, t[34] = q, t[35] = ee, t[36] = Y) : Y = t[36];
|
|
3185
|
+
let te;
|
|
3186
|
+
return t[37] !== u || t[38] !== y || t[39] !== Y ? (te = /* @__PURE__ */ Q(X, { children: [U, /* @__PURE__ */ Z(L, {
|
|
3187
|
+
id: "measurement-menu",
|
|
3188
|
+
anchorEl: u,
|
|
3189
|
+
open: y,
|
|
3190
|
+
onClose: C,
|
|
3191
|
+
MenuListProps: W,
|
|
3192
|
+
children: Y
|
|
3193
|
+
})] }), t[37] = u, t[38] = y, t[39] = Y, t[40] = te) : te = t[40], te;
|
|
3194
|
+
}
|
|
3195
|
+
function jr(e) {
|
|
3196
|
+
let t = i(48), { open: n, labels: r, units: a, unitSelectedValue: o, onClose: s, onSubmit: c } = e, [l, u] = f("metric"), d;
|
|
3197
|
+
if (t[0] !== l || t[1] !== a) {
|
|
3198
|
+
let e;
|
|
3199
|
+
t[3] === l ? e = t[4] : (e = (e) => e.system === l, t[3] = l, t[4] = e), d = a.filter(e), t[0] = l, t[1] = a, t[2] = d;
|
|
3200
|
+
} else d = t[2];
|
|
3201
|
+
let p = d, m;
|
|
3202
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (m = (e, t) => {
|
|
3203
|
+
u(t);
|
|
3204
|
+
}, t[5] = m) : m = t[5];
|
|
3205
|
+
let h = m, v = r?.units?.modal?.options ?? Cr.options.units.modal.options, y = v[l].options, b = r?.units?.modal?.title ?? Cr.options.units.modal.title, T = r?.units?.modal?.subtitle ?? Cr.options.units.modal.subtitle, E = r?.units?.modal?.apply ?? Cr.options.units.modal.apply, k = o.system === l ? o : p[0], j;
|
|
3206
|
+
t[6] === c ? j = t[7] : (j = {
|
|
3207
|
+
component: "form",
|
|
3208
|
+
onSubmit: (e) => {
|
|
3209
|
+
e.preventDefault();
|
|
3210
|
+
let t = new FormData(e.currentTarget);
|
|
3211
|
+
c(t.get("unit-value"));
|
|
3212
|
+
}
|
|
3213
|
+
}, t[6] = c, t[7] = j);
|
|
3214
|
+
let M;
|
|
3215
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ Z(oe, {}), t[8] = M) : M = t[8];
|
|
3216
|
+
let N;
|
|
3217
|
+
t[9] === s ? N = t[10] : (N = /* @__PURE__ */ Z(A, {
|
|
3218
|
+
onClick: s,
|
|
3219
|
+
children: M
|
|
3220
|
+
}), t[9] = s, t[10] = N);
|
|
3221
|
+
let P;
|
|
3222
|
+
t[11] !== b || t[12] !== N ? (P = /* @__PURE__ */ Q(w, {
|
|
3223
|
+
sx: Er.options.modal.title,
|
|
3224
|
+
children: [b, N]
|
|
3225
|
+
}), t[11] = b, t[12] = N, t[13] = P) : P = t[13];
|
|
3226
|
+
let F;
|
|
3227
|
+
t[14] === T ? F = t[15] : (F = /* @__PURE__ */ Z(J, {
|
|
3228
|
+
sx: Er.options.modal.subtitle,
|
|
3229
|
+
children: T
|
|
3230
|
+
}), t[14] = T, t[15] = F);
|
|
3231
|
+
let I;
|
|
3232
|
+
t[16] === v.metric.title ? I = t[17] : (I = /* @__PURE__ */ Z(q, {
|
|
3233
|
+
value: "metric",
|
|
3234
|
+
children: v.metric.title
|
|
3235
|
+
}), t[16] = v.metric.title, t[17] = I);
|
|
3236
|
+
let L;
|
|
3237
|
+
t[18] === v.imperial.title ? L = t[19] : (L = /* @__PURE__ */ Z(q, {
|
|
3238
|
+
value: "imperial",
|
|
3239
|
+
children: v.imperial.title
|
|
3240
|
+
}), t[18] = v.imperial.title, t[19] = L);
|
|
3241
|
+
let R;
|
|
3242
|
+
t[20] !== l || t[21] !== I || t[22] !== L ? (R = /* @__PURE__ */ Q(ee, {
|
|
3243
|
+
color: "primary",
|
|
3244
|
+
value: l,
|
|
3245
|
+
exclusive: !0,
|
|
3246
|
+
fullWidth: !0,
|
|
3247
|
+
onChange: h,
|
|
3248
|
+
"aria-label": "system",
|
|
3249
|
+
sx: Er.options.modal.toggle,
|
|
3250
|
+
children: [I, L]
|
|
3251
|
+
}), t[20] = l, t[21] = I, t[22] = L, t[23] = R) : R = t[23];
|
|
3252
|
+
let z = k?.value, B = k?.value, U;
|
|
3253
|
+
if (t[24] !== p || t[25] !== y) {
|
|
3254
|
+
let e;
|
|
3255
|
+
t[27] === y ? e = t[28] : (e = (e) => {
|
|
3256
|
+
let t = y[e.value];
|
|
3257
|
+
return /* @__PURE__ */ Z(O, {
|
|
3258
|
+
value: e.value,
|
|
3259
|
+
control: /* @__PURE__ */ Z(V, {}),
|
|
3260
|
+
label: t
|
|
3261
|
+
}, e.value);
|
|
3262
|
+
}, t[27] = y, t[28] = e), U = p.map(e), t[24] = p, t[25] = y, t[26] = U;
|
|
3263
|
+
} else U = t[26];
|
|
3264
|
+
let W;
|
|
3265
|
+
t[29] !== B || t[30] !== U ? (W = /* @__PURE__ */ Z(H, {
|
|
3266
|
+
"aria-labelledby": "unit-value",
|
|
3267
|
+
defaultValue: B,
|
|
3268
|
+
name: "unit-value",
|
|
3269
|
+
sx: Er.options.modal.optionsGroup,
|
|
3270
|
+
children: U
|
|
3271
|
+
}), t[29] = B, t[30] = U, t[31] = W) : W = t[31];
|
|
3272
|
+
let G;
|
|
3273
|
+
t[32] !== z || t[33] !== W ? (G = /* @__PURE__ */ Z(D, { children: W }, z), t[32] = z, t[33] = W, t[34] = G) : G = t[34];
|
|
3274
|
+
let K;
|
|
3275
|
+
t[35] !== R || t[36] !== G || t[37] !== F ? (K = /* @__PURE__ */ Q(C, {
|
|
3276
|
+
sx: Er.options.modal.content,
|
|
3277
|
+
children: [
|
|
3278
|
+
F,
|
|
3279
|
+
R,
|
|
3280
|
+
G
|
|
3281
|
+
]
|
|
3282
|
+
}), t[35] = R, t[36] = G, t[37] = F, t[38] = K) : K = t[38];
|
|
3283
|
+
let Y;
|
|
3284
|
+
t[39] === E ? Y = t[40] : (Y = /* @__PURE__ */ Z(S, {
|
|
3285
|
+
sx: Er.options.modal.actions,
|
|
3286
|
+
children: /* @__PURE__ */ Z(_, {
|
|
3287
|
+
variant: "contained",
|
|
3288
|
+
type: "submit",
|
|
3289
|
+
children: E
|
|
3290
|
+
})
|
|
3291
|
+
}), t[39] = E, t[40] = Y);
|
|
3292
|
+
let te;
|
|
3293
|
+
return t[41] !== s || t[42] !== n || t[43] !== K || t[44] !== Y || t[45] !== j || t[46] !== P ? (te = /* @__PURE__ */ Q(x, {
|
|
3294
|
+
open: n,
|
|
3295
|
+
component: g,
|
|
3296
|
+
onClose: s,
|
|
3297
|
+
maxWidth: "xs",
|
|
3298
|
+
PaperProps: j,
|
|
3299
|
+
children: [
|
|
3300
|
+
P,
|
|
3301
|
+
K,
|
|
3302
|
+
Y
|
|
3303
|
+
]
|
|
3304
|
+
}), t[41] = s, t[42] = n, t[43] = K, t[44] = Y, t[45] = j, t[46] = P, t[47] = te) : te = t[47], te;
|
|
3305
|
+
}
|
|
3306
|
+
//#endregion
|
|
3307
|
+
//#region src/components/geolocation-controls/const.ts
|
|
3308
|
+
var Mr = {
|
|
3309
|
+
enabled: "Show your current location",
|
|
3310
|
+
disabled: "Location unavailable"
|
|
3311
|
+
};
|
|
3312
|
+
//#endregion
|
|
3313
|
+
//#region src/components/geolocation-controls/geolocation-controls.tsx
|
|
3314
|
+
function Nr(e) {
|
|
3315
|
+
let t = i(27), { disabled: r, labels: a, PaperProps: o, TooltipProps: l, watch: f, onChange: p, onError: m } = e, h = d(null), g = "geolocation" in navigator, [_, v] = u(Pr, g), y;
|
|
3316
|
+
t[0] === m ? y = t[1] : (y = (e) => {
|
|
3317
|
+
m?.(e);
|
|
3318
|
+
}, t[0] = m, t[1] = y);
|
|
3319
|
+
let b = c(y), x;
|
|
3320
|
+
t[2] === b ? x = t[3] : (x = () => (g && navigator.permissions.query({ name: "geolocation" }).then((e) => {
|
|
3321
|
+
v(e.state === "granted" ? "granted" : "denied"), e.onchange = () => {
|
|
3322
|
+
v(e.state === "granted" ? "granted" : "denied");
|
|
3323
|
+
};
|
|
3324
|
+
}).catch((e) => {
|
|
3325
|
+
v("denied"), b(e);
|
|
3326
|
+
}), () => {
|
|
3327
|
+
h.current && navigator.geolocation.clearWatch(h.current);
|
|
3328
|
+
}), t[2] = b, t[3] = x);
|
|
3329
|
+
let S;
|
|
3330
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (S = [g], t[4] = S) : S = t[4], s(x, S);
|
|
3331
|
+
let C;
|
|
3332
|
+
t[5] === p ? C = t[6] : (C = (e) => {
|
|
3333
|
+
p(e.coords);
|
|
3334
|
+
}, t[5] = p, t[6] = C);
|
|
3335
|
+
let w = C, T;
|
|
3336
|
+
t[7] === m ? T = t[8] : (T = (e) => {
|
|
3337
|
+
v("denied"), m?.(e);
|
|
3338
|
+
}, t[7] = m, t[8] = T);
|
|
3339
|
+
let E = T, D;
|
|
3340
|
+
t[9] !== E || t[10] !== w || t[11] !== f ? (D = () => {
|
|
3341
|
+
if (h.current && navigator.geolocation.clearWatch(h.current), f) {
|
|
3342
|
+
h.current = navigator.geolocation.watchPosition(w, E);
|
|
3343
|
+
return;
|
|
3344
|
+
}
|
|
3345
|
+
navigator.geolocation.getCurrentPosition(w, E);
|
|
3346
|
+
}, t[9] = E, t[10] = w, t[11] = f, t[12] = D) : D = t[12];
|
|
3347
|
+
let O = D, k = (a?.tooltip ?? Mr)[_ ? "enabled" : "disabled"], j = a?.ariaLabel ?? "geolocation", M = !g || r, N;
|
|
3348
|
+
t[13] === _ ? N = t[14] : (N = Z(_ ? Se : ye, {}), t[13] = _, t[14] = N);
|
|
3349
|
+
let P;
|
|
3350
|
+
t[15] !== O || t[16] !== N || t[17] !== j || t[18] !== M ? (P = /* @__PURE__ */ Z(A, {
|
|
3351
|
+
onClick: O,
|
|
3352
|
+
"aria-label": j,
|
|
3353
|
+
disabled: M,
|
|
3354
|
+
children: N
|
|
3355
|
+
}), t[15] = O, t[16] = N, t[17] = j, t[18] = M, t[19] = P) : P = t[19];
|
|
3356
|
+
let F;
|
|
3357
|
+
t[20] !== l || t[21] !== P || t[22] !== k ? (F = /* @__PURE__ */ Z(n, {
|
|
3358
|
+
arrow: !0,
|
|
3359
|
+
placement: "right",
|
|
3360
|
+
title: k,
|
|
3361
|
+
...l,
|
|
3362
|
+
children: P
|
|
3363
|
+
}), t[20] = l, t[21] = P, t[22] = k, t[23] = F) : F = t[23];
|
|
3364
|
+
let I;
|
|
3365
|
+
return t[24] !== o || t[25] !== F ? (I = /* @__PURE__ */ Z(z, {
|
|
3366
|
+
...o,
|
|
3367
|
+
children: F
|
|
3368
|
+
}), t[24] = o, t[25] = F, t[26] = I) : I = t[26], I;
|
|
3369
|
+
}
|
|
3370
|
+
function Pr(e, t) {
|
|
3371
|
+
return t === "granted";
|
|
3372
|
+
}
|
|
3373
|
+
//#endregion
|
|
3374
|
+
//#region src/components/zoom-controls/styles.ts
|
|
3375
|
+
var Fr = {
|
|
3376
|
+
zoom: {
|
|
3377
|
+
position: "relative",
|
|
3378
|
+
height: ({ spacing: e }) => e(4),
|
|
3379
|
+
aspectRatio: 1,
|
|
3380
|
+
display: "flex",
|
|
3381
|
+
alignItems: "center",
|
|
3382
|
+
justifyContent: "center"
|
|
3383
|
+
},
|
|
3384
|
+
paper: {
|
|
3385
|
+
display: "flex",
|
|
3386
|
+
backgroundColor: ({ palette: e }) => e.background.paper,
|
|
3387
|
+
width: "auto",
|
|
3388
|
+
overflow: "hidden",
|
|
3389
|
+
boxShadow: ({ shadows: e }) => e[1],
|
|
3390
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
3391
|
+
button: { borderRadius: 0 }
|
|
3392
|
+
},
|
|
3393
|
+
circularProgress: { position: "absolute" }
|
|
3394
|
+
};
|
|
3395
|
+
//#endregion
|
|
3396
|
+
//#region src/components/zoom-controls/zoom-controls.tsx
|
|
3397
|
+
function Ir(e) {
|
|
3398
|
+
let t = i(40), { zoom: n, disabled: r, direction: a, reverse: o, isLoading: s, maxZoom: c, minZoom: l, PaperProps: u, ResetViewProps: d, showZoom: f, onChange: p, onReset: m } = e, h = a === void 0 ? "vertical" : a, _ = o !== void 0 && o, v = c === void 0 ? 24 : c, y = l === void 0 ? 0 : l, x;
|
|
3399
|
+
t[0] === d ? x = t[1] : (x = d === void 0 ? { Icon: le } : d, t[0] = d, t[1] = x);
|
|
3400
|
+
let S = x, C = f === void 0 || f, w;
|
|
3401
|
+
t[2] !== v || t[3] !== p || t[4] !== n ? (w = () => {
|
|
3402
|
+
let e = Math.min(v, n + 1);
|
|
3403
|
+
p(e);
|
|
3404
|
+
}, t[2] = v, t[3] = p, t[4] = n, t[5] = w) : w = t[5];
|
|
3405
|
+
let E = w, D;
|
|
3406
|
+
t[6] !== y || t[7] !== p || t[8] !== n ? (D = () => {
|
|
3407
|
+
let e = Math.max(y, n - 1);
|
|
3408
|
+
p(e);
|
|
3409
|
+
}, t[6] = y, t[7] = p, t[8] = n, t[9] = D) : D = t[9];
|
|
3410
|
+
let O = D, k = Math.floor(n), j = h === "vertical" ? "horizontal" : "vertical", M = h === "vertical" ? "column" : "row";
|
|
3411
|
+
_ && (M += "-reverse");
|
|
3412
|
+
let N;
|
|
3413
|
+
t[10] === M ? N = t[11] : (N = {
|
|
3414
|
+
...Fr.paper,
|
|
3415
|
+
flexDirection: M
|
|
3416
|
+
}, t[10] = M, t[11] = N);
|
|
3417
|
+
let P;
|
|
3418
|
+
t[12] !== S || t[13] !== r || t[14] !== j || t[15] !== m ? (P = m && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(A, {
|
|
3419
|
+
onClick: m,
|
|
3420
|
+
"aria-label": "Reset action",
|
|
3421
|
+
disabled: r,
|
|
3422
|
+
children: /* @__PURE__ */ Z(S.Icon, {})
|
|
3423
|
+
}), /* @__PURE__ */ Z(T, {
|
|
3424
|
+
orientation: j,
|
|
3425
|
+
flexItem: !0
|
|
3426
|
+
})] }), t[12] = S, t[13] = r, t[14] = j, t[15] = m, t[16] = P) : P = t[16];
|
|
3427
|
+
let F;
|
|
3428
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Z(re, {}), t[17] = F) : F = t[17];
|
|
3429
|
+
let I;
|
|
3430
|
+
t[18] !== r || t[19] !== E ? (I = /* @__PURE__ */ Z(A, {
|
|
3431
|
+
onClick: E,
|
|
3432
|
+
"aria-label": "Increase zoom",
|
|
3433
|
+
disabled: r,
|
|
3434
|
+
children: F
|
|
3435
|
+
}), t[18] = r, t[19] = E, t[20] = I) : I = t[20];
|
|
3436
|
+
let L;
|
|
3437
|
+
t[21] === j ? L = t[22] : (L = /* @__PURE__ */ Z(T, {
|
|
3438
|
+
orientation: j,
|
|
3439
|
+
flexItem: !0
|
|
3440
|
+
}), t[21] = j, t[22] = L);
|
|
3441
|
+
let R;
|
|
3442
|
+
t[23] !== k || t[24] !== j || t[25] !== s || t[26] !== C ? (R = C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(g, {
|
|
3443
|
+
sx: Fr.zoom,
|
|
3444
|
+
children: [/* @__PURE__ */ Z(J, {
|
|
3445
|
+
display: "block",
|
|
3446
|
+
align: "center",
|
|
3447
|
+
color: "textSecondary",
|
|
3448
|
+
variant: "overline",
|
|
3449
|
+
children: k
|
|
3450
|
+
}), s && /* @__PURE__ */ Z(b, {
|
|
3451
|
+
sx: Fr.circularProgress,
|
|
3452
|
+
variant: "indeterminate",
|
|
3453
|
+
size: 24
|
|
3454
|
+
})]
|
|
3455
|
+
}), /* @__PURE__ */ Z(T, {
|
|
3456
|
+
orientation: j,
|
|
3457
|
+
flexItem: !0
|
|
3458
|
+
})] }), t[23] = k, t[24] = j, t[25] = s, t[26] = C, t[27] = R) : R = t[27];
|
|
3459
|
+
let B;
|
|
3460
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Z(Te, {}), t[28] = B) : B = t[28];
|
|
3461
|
+
let V;
|
|
3462
|
+
t[29] !== O || t[30] !== r ? (V = /* @__PURE__ */ Z(A, {
|
|
3463
|
+
onClick: O,
|
|
3464
|
+
"aria-label": "Decrease zoom",
|
|
3465
|
+
disabled: r,
|
|
3466
|
+
children: B
|
|
3467
|
+
}), t[29] = O, t[30] = r, t[31] = V) : V = t[31];
|
|
3468
|
+
let H;
|
|
3469
|
+
return t[32] !== u || t[33] !== N || t[34] !== P || t[35] !== I || t[36] !== L || t[37] !== R || t[38] !== V ? (H = /* @__PURE__ */ Q(z, {
|
|
3470
|
+
sx: N,
|
|
3471
|
+
...u,
|
|
3472
|
+
children: [
|
|
3473
|
+
P,
|
|
3474
|
+
I,
|
|
3475
|
+
L,
|
|
3476
|
+
R,
|
|
3477
|
+
V
|
|
3478
|
+
]
|
|
3479
|
+
}), t[32] = u, t[33] = N, t[34] = P, t[35] = I, t[36] = L, t[37] = R, t[38] = V, t[39] = H) : H = t[39], H;
|
|
3480
|
+
}
|
|
3481
|
+
//#endregion
|
|
3482
|
+
//#region src/components/list-data/list-data-skeleton.tsx
|
|
3483
|
+
function Lr(e) {
|
|
3484
|
+
let t = i(4), { length: n } = e, r = n === void 0 ? 5 : n, a;
|
|
3485
|
+
t[0] === r ? a = t[1] : (a = Array(r).fill(null).map(Rr), t[0] = r, t[1] = a);
|
|
3486
|
+
let o;
|
|
3487
|
+
return t[2] === a ? o = t[3] : (o = /* @__PURE__ */ Z(g, {
|
|
3488
|
+
"aria-label": "List Data skeleton",
|
|
3489
|
+
children: a
|
|
3490
|
+
}), t[2] = a, t[3] = o), o;
|
|
3491
|
+
}
|
|
3492
|
+
function Rr(e, t) {
|
|
3493
|
+
return /* @__PURE__ */ Q(k, {
|
|
3494
|
+
container: !0,
|
|
3495
|
+
spacing: 1,
|
|
3496
|
+
children: [/* @__PURE__ */ Q(k, {
|
|
3497
|
+
container: !0,
|
|
3498
|
+
item: !0,
|
|
3499
|
+
direction: "row",
|
|
3500
|
+
justifyContent: "space-between",
|
|
3501
|
+
alignItems: "center",
|
|
3502
|
+
children: [/* @__PURE__ */ Z(U, {
|
|
3503
|
+
width: Hr(t) ? 72 : 48,
|
|
3504
|
+
height: 20
|
|
3505
|
+
}), /* @__PURE__ */ Z(U, {
|
|
3506
|
+
width: 48,
|
|
3507
|
+
height: 8
|
|
3508
|
+
})]
|
|
3509
|
+
}), /* @__PURE__ */ Z(U, { sx: {
|
|
3510
|
+
height: Vr,
|
|
3511
|
+
marginTop: Br,
|
|
3512
|
+
marginBottom: zr,
|
|
3513
|
+
width: "100%"
|
|
3514
|
+
} })]
|
|
3515
|
+
}, `skeleton-${t}`);
|
|
3516
|
+
}
|
|
3517
|
+
function zr(e) {
|
|
3518
|
+
let { spacing: t } = e;
|
|
3519
|
+
return t(1.75);
|
|
3520
|
+
}
|
|
3521
|
+
function Br(e) {
|
|
3522
|
+
let { spacing: t } = e;
|
|
3523
|
+
return t(1.25);
|
|
3524
|
+
}
|
|
3525
|
+
function Vr(e) {
|
|
3526
|
+
let { spacing: t } = e;
|
|
3527
|
+
return t(.5);
|
|
3528
|
+
}
|
|
3529
|
+
function Hr(e) {
|
|
3530
|
+
return e % 2 == 1;
|
|
3531
|
+
}
|
|
3532
|
+
//#endregion
|
|
3533
|
+
//#region src/components/no-data-alert/no-data-alert.tsx
|
|
3534
|
+
function Ur(e) {
|
|
3535
|
+
let t = i(13), { title: n, body: r, severity: a } = e, o = n === void 0 ? "No data available" : n, s = r === void 0 ? "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View." : r;
|
|
3536
|
+
if (a) {
|
|
3537
|
+
let e;
|
|
3538
|
+
t[0] === s ? e = t[1] : (e = /* @__PURE__ */ Z(Wr, { children: s }), t[0] = s, t[1] = e);
|
|
3539
|
+
let n;
|
|
3540
|
+
return t[2] !== a || t[3] !== e || t[4] !== o ? (n = /* @__PURE__ */ Z(m, {
|
|
3541
|
+
title: o,
|
|
3542
|
+
severity: a,
|
|
3543
|
+
children: e
|
|
3544
|
+
}), t[2] = a, t[3] = e, t[4] = o, t[5] = n) : n = t[5], n;
|
|
3545
|
+
}
|
|
3546
|
+
let c;
|
|
3547
|
+
t[6] === o ? c = t[7] : (c = o && /* @__PURE__ */ Z(J, {
|
|
3548
|
+
variant: "body2",
|
|
3549
|
+
children: o
|
|
3550
|
+
}), t[6] = o, t[7] = c);
|
|
3551
|
+
let l;
|
|
3552
|
+
t[8] === s ? l = t[9] : (l = /* @__PURE__ */ Z(Wr, {
|
|
3553
|
+
color: "textSecondary",
|
|
3554
|
+
children: s
|
|
3555
|
+
}), t[8] = s, t[9] = l);
|
|
3556
|
+
let u;
|
|
3557
|
+
return t[10] !== c || t[11] !== l ? (u = /* @__PURE__ */ Q(g, { children: [c, l] }), t[10] = c, t[11] = l, t[12] = u) : u = t[12], u;
|
|
3558
|
+
}
|
|
3559
|
+
function Wr(e) {
|
|
3560
|
+
let t = i(5), { color: n, children: r } = e;
|
|
3561
|
+
if (r) {
|
|
3562
|
+
let e = n ?? "inherit", i;
|
|
3563
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = { fontWeight: "normal" }, t[0] = i) : i = t[0];
|
|
3564
|
+
let a;
|
|
3565
|
+
return t[1] !== r || t[2] !== e ? (a = /* @__PURE__ */ Z(g, {
|
|
3566
|
+
mt: .5,
|
|
3567
|
+
children: /* @__PURE__ */ Z(J, {
|
|
3568
|
+
component: "div",
|
|
3569
|
+
variant: "caption",
|
|
3570
|
+
color: e,
|
|
3571
|
+
style: i,
|
|
3572
|
+
children: r
|
|
3573
|
+
})
|
|
3574
|
+
}), t[1] = r, t[2] = e, t[3] = a) : a = t[3], a;
|
|
3575
|
+
}
|
|
3576
|
+
let a;
|
|
3577
|
+
return t[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Z(g, { mt: -1 }), t[4] = a) : a = t[4], a;
|
|
3578
|
+
}
|
|
3579
|
+
//#endregion
|
|
3580
|
+
//#region src/hooks/use-skeleton.ts
|
|
3581
|
+
function Gr(e) {
|
|
3582
|
+
let t = i(2), n;
|
|
3583
|
+
t[0] === e ? n = t[1] : (n = () => +!!e, t[0] = e, t[1] = n);
|
|
3584
|
+
let [r, a] = f(n);
|
|
3585
|
+
return e && r === 0 && a(1), !e && r === 1 && a(2), r === 1;
|
|
3586
|
+
}
|
|
3587
|
+
//#endregion
|
|
3588
|
+
//#region src/components/list-data/styles.ts
|
|
3589
|
+
var Kr = {
|
|
3590
|
+
overflow: "hidden",
|
|
3591
|
+
textOverflow: "ellipsis",
|
|
3592
|
+
whiteSpace: "nowrap"
|
|
3593
|
+
}, qr = {
|
|
3594
|
+
label: { "& .MuiListItemText-primary": { ...Kr } },
|
|
3595
|
+
value: { "& .MuiListItemText-primary": {
|
|
3596
|
+
...Kr,
|
|
3597
|
+
textAlign: "right"
|
|
3598
|
+
} },
|
|
3599
|
+
clickable: {
|
|
3600
|
+
cursor: "pointer",
|
|
3601
|
+
"&:hover": { backgroundColor: ({ palette: e }) => e.action.hover }
|
|
3602
|
+
},
|
|
3603
|
+
showDivider: { borderBottom: ({ palette: e }) => `1px solid ${e.divider}` },
|
|
3604
|
+
selected: { backgroundColor: ({ palette: e }) => e.action.selected },
|
|
3605
|
+
disabled: {
|
|
3606
|
+
opacity: .5,
|
|
3607
|
+
pointerEvents: "none"
|
|
3608
|
+
}
|
|
3609
|
+
}, Jr = {
|
|
3610
|
+
showMore: "Show More",
|
|
3611
|
+
showLess: "Show Less"
|
|
3612
|
+
}, Yr = [];
|
|
3613
|
+
function Xr(e) {
|
|
3614
|
+
let t = i(32), { data: n, isLoading: a, maxItems: o, labels: s, showDivider: c, selectedItemId: l, tooltipProps: u, onExpand: d, onItemClick: p } = e, m = n === void 0 ? Yr : n, h = a !== void 0 && a, v = o === void 0 ? 5 : o, y = s === void 0 ? Jr : s, b = c === void 0 || c, [x, S] = f(!1), C = Gr(h), w;
|
|
3615
|
+
t[0] !== m || t[1] !== v || t[2] !== x ? (w = x ? m : m.slice(0, v), t[0] = m, t[1] = v, t[2] = x, t[3] = w) : w = t[3];
|
|
3616
|
+
let T = w, E;
|
|
3617
|
+
t[4] !== d || t[5] !== x ? (E = () => {
|
|
3618
|
+
S(!x), d?.(x);
|
|
3619
|
+
}, t[4] = d, t[5] = x, t[6] = E) : E = t[6];
|
|
3620
|
+
let D = E;
|
|
3621
|
+
if (C) {
|
|
3622
|
+
let e;
|
|
3623
|
+
return t[7] === v ? e = t[8] : (e = /* @__PURE__ */ Z(Lr, { length: v }), t[7] = v, t[8] = e), e;
|
|
3624
|
+
}
|
|
3625
|
+
if (T.length === 0) {
|
|
3626
|
+
let e;
|
|
3627
|
+
return t[9] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Z(Ur, {}), t[9] = e) : e = t[9], e;
|
|
3628
|
+
}
|
|
3629
|
+
let O;
|
|
3630
|
+
if (t[10] !== T || t[11] !== p || t[12] !== l || t[13] !== b || t[14] !== u) {
|
|
3631
|
+
let e;
|
|
3632
|
+
t[16] !== p || t[17] !== l || t[18] !== b || t[19] !== u ? (e = (e) => /* @__PURE__ */ Z(r, {
|
|
3633
|
+
followCursor: !1,
|
|
3634
|
+
placement: "top",
|
|
3635
|
+
arrow: !0,
|
|
3636
|
+
title: e.tooltipTitle,
|
|
3637
|
+
enterDelay: 10,
|
|
3638
|
+
...u,
|
|
3639
|
+
children: (t) => {
|
|
3640
|
+
let { ref: n } = t;
|
|
3641
|
+
return /* @__PURE__ */ Z(N, {
|
|
3642
|
+
ref: n,
|
|
3643
|
+
role: "listitem",
|
|
3644
|
+
sx: {
|
|
3645
|
+
...b && qr.showDivider,
|
|
3646
|
+
...p && qr.clickable,
|
|
3647
|
+
...l === e.id && qr.selected,
|
|
3648
|
+
...e.disabled && qr.disabled
|
|
3649
|
+
},
|
|
3650
|
+
onClick: () => {
|
|
3651
|
+
e.disabled || p?.(e);
|
|
3652
|
+
},
|
|
3653
|
+
children: /* @__PURE__ */ Q(k, {
|
|
3654
|
+
container: !0,
|
|
3655
|
+
alignItems: "center",
|
|
3656
|
+
children: [/* @__PURE__ */ Z(k, {
|
|
3657
|
+
item: !0,
|
|
3658
|
+
xs: 8,
|
|
3659
|
+
children: /* @__PURE__ */ Z(I, {
|
|
3660
|
+
primary: e.label,
|
|
3661
|
+
sx: qr.label
|
|
3662
|
+
})
|
|
3663
|
+
}), /* @__PURE__ */ Z(k, {
|
|
3664
|
+
item: !0,
|
|
3665
|
+
xs: 4,
|
|
3666
|
+
children: /* @__PURE__ */ Z(I, {
|
|
3667
|
+
primary: e.value,
|
|
3668
|
+
sx: qr.value
|
|
3669
|
+
})
|
|
3670
|
+
})]
|
|
3671
|
+
})
|
|
3672
|
+
});
|
|
3673
|
+
}
|
|
3674
|
+
}, e.id), t[16] = p, t[17] = l, t[18] = b, t[19] = u, t[20] = e) : e = t[20], O = T.map(e), t[10] = T, t[11] = p, t[12] = l, t[13] = b, t[14] = u, t[15] = O;
|
|
3675
|
+
} else O = t[15];
|
|
3676
|
+
let A;
|
|
3677
|
+
t[21] === O ? A = t[22] : (A = /* @__PURE__ */ Z(M, {
|
|
3678
|
+
id: "expandable-list",
|
|
3679
|
+
role: "list",
|
|
3680
|
+
children: O
|
|
3681
|
+
}), t[21] = O, t[22] = A);
|
|
3682
|
+
let j;
|
|
3683
|
+
t[23] !== m.length || t[24] !== D || t[25] !== y || t[26] !== v || t[27] !== x ? (j = m.length > v && /* @__PURE__ */ Z(g, {
|
|
3684
|
+
my: 2,
|
|
3685
|
+
children: /* @__PURE__ */ Z(_, {
|
|
3686
|
+
onClick: D,
|
|
3687
|
+
variant: "text",
|
|
3688
|
+
color: "primary",
|
|
3689
|
+
"aria-expanded": x,
|
|
3690
|
+
"aria-controls": "expandable-list",
|
|
3691
|
+
children: x ? y.showLess : y.showMore
|
|
3692
|
+
})
|
|
3693
|
+
}), t[23] = m.length, t[24] = D, t[25] = y, t[26] = v, t[27] = x, t[28] = j) : j = t[28];
|
|
3694
|
+
let P;
|
|
3695
|
+
return t[29] !== j || t[30] !== A ? (P = /* @__PURE__ */ Q(X, { children: [A, j] }), t[29] = j, t[30] = A, t[31] = P) : P = t[31], P;
|
|
3696
|
+
}
|
|
3697
|
+
var Zr = {
|
|
3698
|
+
root: {
|
|
3699
|
+
width: 288,
|
|
3700
|
+
overflow: "auto"
|
|
3701
|
+
},
|
|
3702
|
+
toggle: {
|
|
3703
|
+
padding: ({ spacing: e }) => e(.5),
|
|
3704
|
+
img: {
|
|
3705
|
+
width: "100%",
|
|
3706
|
+
aspectRatio: "1 / 1",
|
|
3707
|
+
borderRadius: ({ spacing: e }) => e(.25)
|
|
3708
|
+
}
|
|
3709
|
+
},
|
|
3710
|
+
header: {
|
|
3711
|
+
display: "flex",
|
|
3712
|
+
alignItems: "center",
|
|
3713
|
+
justifyContent: "space-between",
|
|
3714
|
+
padding: ({ spacing: e }) => e(1),
|
|
3715
|
+
paddingInlineStart: ({ spacing: e }) => e(2),
|
|
3716
|
+
position: "sticky",
|
|
3717
|
+
top: 0,
|
|
3718
|
+
zIndex: 2,
|
|
3719
|
+
background: ({ palette: e }) => e.background.paper
|
|
3720
|
+
},
|
|
3721
|
+
groupWrapper: { content: {
|
|
3722
|
+
paddingInline: ({ spacing: e }) => e(2),
|
|
3723
|
+
paddingBlock: ({ spacing: e }) => e(.5)
|
|
3724
|
+
} },
|
|
3725
|
+
group: {
|
|
3726
|
+
display: "flex",
|
|
3727
|
+
flexDirection: "row",
|
|
3728
|
+
flexWrap: "wrap",
|
|
3729
|
+
alignItems: "center",
|
|
3730
|
+
gap: ({ spacing: e }) => e(2),
|
|
3731
|
+
paddingInline: ({ spacing: e }) => e(2),
|
|
3732
|
+
paddingBlock: ({ spacing: e }) => e(1)
|
|
3733
|
+
},
|
|
3734
|
+
item: {
|
|
3735
|
+
container: {
|
|
3736
|
+
display: "flex",
|
|
3737
|
+
alignItems: "center",
|
|
3738
|
+
flexDirection: "column",
|
|
3739
|
+
gap: ({ spacing: e }) => e(1),
|
|
3740
|
+
background: "transparent",
|
|
3741
|
+
border: "none",
|
|
3742
|
+
cursor: "pointer",
|
|
3743
|
+
padding: 0,
|
|
3744
|
+
height: ({ spacing: e }) => e(12),
|
|
3745
|
+
img: {
|
|
3746
|
+
maxWidth: ({ spacing: e }) => e(9),
|
|
3747
|
+
aspectRatio: "1 / 1",
|
|
3748
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
3749
|
+
border: "2px solid transparent",
|
|
3750
|
+
"&:hover": { borderColor: ({ palette: e }) => e.action.active },
|
|
3751
|
+
"&[data-active=\"true\"]": { borderColor: ({ palette: e }) => e.primary.main }
|
|
3752
|
+
}
|
|
3753
|
+
},
|
|
3754
|
+
selected: { color: ({ palette: e }) => e.primary.main }
|
|
3755
|
+
}
|
|
3756
|
+
}, Qr = {
|
|
3757
|
+
toggle: { title: "Toggle basemaps controls" },
|
|
3758
|
+
header: {
|
|
3759
|
+
title: "Basemaps",
|
|
3760
|
+
actions: { close: "Close" }
|
|
3761
|
+
}
|
|
3762
|
+
};
|
|
3763
|
+
//#endregion
|
|
3764
|
+
//#region src/components/basemaps/header.tsx
|
|
3765
|
+
function $r(e) {
|
|
3766
|
+
let t = i(6), { isMobile: r, labels: a, onChangeCollapsed: o } = e, s = r !== void 0 && r, c;
|
|
3767
|
+
t[0] !== s || t[1] !== a || t[2] !== o ? (c = s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(J, {
|
|
3768
|
+
variant: "caption",
|
|
3769
|
+
flexGrow: 1,
|
|
3770
|
+
children: a.title
|
|
3771
|
+
}), /* @__PURE__ */ Z(n, {
|
|
3772
|
+
title: a.actions.close,
|
|
3773
|
+
children: /* @__PURE__ */ Z(A, {
|
|
3774
|
+
size: "small",
|
|
3775
|
+
onClick: o,
|
|
3776
|
+
"aria-label": a.actions.close,
|
|
3777
|
+
children: /* @__PURE__ */ Z(oe, {})
|
|
3778
|
+
})
|
|
3779
|
+
})] }), t[0] = s, t[1] = a, t[2] = o, t[3] = c) : c = t[3];
|
|
3780
|
+
let l;
|
|
3781
|
+
return t[4] === c ? l = t[5] : (l = /* @__PURE__ */ Z(g, {
|
|
3782
|
+
sx: Zr.header,
|
|
3783
|
+
children: c
|
|
3784
|
+
}), t[4] = c, t[5] = l), l;
|
|
3785
|
+
}
|
|
3786
|
+
//#endregion
|
|
3787
|
+
//#region src/components/basemaps/group-wrapper.tsx
|
|
3788
|
+
function ei(e) {
|
|
3789
|
+
let t = i(5), { title: n, children: r, collapsed: a } = e;
|
|
3790
|
+
if (a !== void 0 && a) return r;
|
|
3791
|
+
let o;
|
|
3792
|
+
t[0] === n ? o = t[1] : (o = /* @__PURE__ */ Z(J, {
|
|
3793
|
+
variant: "caption",
|
|
3794
|
+
color: "textSecondary",
|
|
3795
|
+
sx: Zr.groupWrapper.content,
|
|
3796
|
+
children: n
|
|
3797
|
+
}), t[0] = n, t[1] = o);
|
|
3798
|
+
let s;
|
|
3799
|
+
return t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ Q(X, { children: [o, r] }), t[2] = r, t[3] = o, t[4] = s) : s = t[4], s;
|
|
3800
|
+
}
|
|
3801
|
+
//#endregion
|
|
3802
|
+
//#region src/components/basemaps/group.tsx
|
|
3803
|
+
function ti(e) {
|
|
3804
|
+
let t = i(9), { values: n, selected: r, onChange: a } = e, o;
|
|
3805
|
+
if (t[0] !== a || t[1] !== r || t[2] !== n) {
|
|
3806
|
+
let e;
|
|
3807
|
+
t[4] !== a || t[5] !== r ? (e = (e) => {
|
|
3808
|
+
let t = e.id === r;
|
|
3809
|
+
return /* @__PURE__ */ Q(g, {
|
|
3810
|
+
sx: Zr.item.container,
|
|
3811
|
+
component: "button",
|
|
3812
|
+
"aria-label": e.label,
|
|
3813
|
+
onClick: () => a(e.id),
|
|
3814
|
+
children: [/* @__PURE__ */ Z("img", {
|
|
3815
|
+
src: e.icon,
|
|
3816
|
+
"aria-label": e.label + " icon",
|
|
3817
|
+
"data-active": t
|
|
3818
|
+
}), /* @__PURE__ */ Z(J, {
|
|
3819
|
+
variant: "caption",
|
|
3820
|
+
sx: { ...t && Zr.item.selected },
|
|
3821
|
+
children: e.label
|
|
3822
|
+
})]
|
|
3823
|
+
}, e.id);
|
|
3824
|
+
}, t[4] = a, t[5] = r, t[6] = e) : e = t[6], o = n.map(e), t[0] = a, t[1] = r, t[2] = n, t[3] = o;
|
|
3825
|
+
} else o = t[3];
|
|
3826
|
+
let s;
|
|
3827
|
+
return t[7] === o ? s = t[8] : (s = /* @__PURE__ */ Z(g, {
|
|
3828
|
+
sx: Zr.group,
|
|
3829
|
+
children: o
|
|
3830
|
+
}), t[7] = o, t[8] = s), s;
|
|
3831
|
+
}
|
|
3832
|
+
//#endregion
|
|
3833
|
+
//#region src/components/responsive-drawer/responsive-drawer.tsx
|
|
3834
|
+
function ni(e, t) {
|
|
3835
|
+
let n = e.startsWith("bottom"), r = e.endsWith("right");
|
|
3836
|
+
return {
|
|
3837
|
+
anchorOrigin: {
|
|
3838
|
+
vertical: n ? "bottom" : "top",
|
|
3839
|
+
horizontal: t === "overlay" ? r ? "right" : "left" : r ? "left" : "right"
|
|
3840
|
+
},
|
|
3841
|
+
transformOrigin: {
|
|
3842
|
+
vertical: n ? "bottom" : "top",
|
|
3843
|
+
horizontal: r ? "right" : "left"
|
|
3844
|
+
}
|
|
3845
|
+
};
|
|
3846
|
+
}
|
|
3847
|
+
function ri(e) {
|
|
3848
|
+
let t = i(46), { anchorEl: n, ref: r, children: a, collapsed: o, isMobile: s, position: c, sx: l, slotProps: u, container: f, onChangeCollapsed: m, modal: h, placement: g } = e, _ = s !== void 0 && s, v = h === void 0 || h, y = g === void 0 ? "side" : g, b = n ?? r ?? null, x = d(null), S = d(null), C;
|
|
3849
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (C = (e) => {
|
|
3850
|
+
if (S.current?.disconnect(), S.current = null, e && typeof ResizeObserver < "u") {
|
|
3851
|
+
let t = new ResizeObserver(() => x.current?.updatePosition());
|
|
3852
|
+
t.observe(e), S.current = t;
|
|
3853
|
+
}
|
|
3854
|
+
}, t[0] = C) : C = t[0];
|
|
3855
|
+
let w = C, T = f && typeof f != "function" ? f : null, D;
|
|
3856
|
+
t[1] === T ? D = t[2] : (D = (e) => {
|
|
3857
|
+
if (!T || typeof ResizeObserver > "u") return ii;
|
|
3858
|
+
let t = new ResizeObserver(e);
|
|
3859
|
+
return t.observe(T), () => t.disconnect();
|
|
3860
|
+
}, t[1] = T, t[2] = D);
|
|
3861
|
+
let O = D, k;
|
|
3862
|
+
t[3] === T?.clientHeight ? k = t[4] : (k = () => T?.clientHeight, t[3] = T?.clientHeight, t[4] = k);
|
|
3863
|
+
let A = p(O, k);
|
|
3864
|
+
if (_) {
|
|
3865
|
+
let e = !o, n;
|
|
3866
|
+
t[5] === m ? n = t[6] : (n = () => m(!0), t[5] = m, t[6] = n);
|
|
3867
|
+
let r;
|
|
3868
|
+
return t[7] !== a || t[8] !== e || t[9] !== n ? (r = /* @__PURE__ */ Z(E, {
|
|
3869
|
+
anchor: "bottom",
|
|
3870
|
+
open: e,
|
|
3871
|
+
onClose: n,
|
|
3872
|
+
children: a
|
|
3873
|
+
}), t[7] = a, t[8] = e, t[9] = n, t[10] = r) : r = t[10], r;
|
|
3874
|
+
}
|
|
3875
|
+
let j;
|
|
3876
|
+
t[11] !== y || t[12] !== c ? (j = ni(c, y), t[11] = y, t[12] = c, t[13] = j) : j = t[13];
|
|
3877
|
+
let { anchorOrigin: M, transformOrigin: N } = j, P = u, F;
|
|
3878
|
+
t[14] === A ? F = t[15] : (F = A != null && A > 0 ? {
|
|
3879
|
+
maxHeight: A * .9,
|
|
3880
|
+
overflow: "hidden",
|
|
3881
|
+
display: "flex",
|
|
3882
|
+
flexDirection: "column"
|
|
3883
|
+
} : void 0, t[14] = A, t[15] = F);
|
|
3884
|
+
let I = F, L;
|
|
3885
|
+
t[16] === I ? L = t[17] : (L = I ? {
|
|
3886
|
+
display: "flex",
|
|
3887
|
+
flexDirection: "column",
|
|
3888
|
+
flex: 1,
|
|
3889
|
+
minHeight: 0,
|
|
3890
|
+
maxHeight: "100%",
|
|
3891
|
+
overflow: "hidden",
|
|
3892
|
+
width: "100%"
|
|
3893
|
+
} : void 0, t[16] = I, t[17] = L);
|
|
3894
|
+
let R = L, z;
|
|
3895
|
+
t[18] !== v || t[19] !== P?.paper || t[20] !== P?.root || t[21] !== I || t[22] !== u ? (z = v && !I ? u : {
|
|
3896
|
+
...typeof u == "object" && u ? u : {},
|
|
3897
|
+
...!v && { root: {
|
|
3898
|
+
style: { pointerEvents: "none" },
|
|
3899
|
+
...P?.root
|
|
3900
|
+
} },
|
|
3901
|
+
paper: {
|
|
3902
|
+
...P?.paper,
|
|
3903
|
+
style: {
|
|
3904
|
+
...!v && { pointerEvents: "auto" },
|
|
3905
|
+
...I,
|
|
3906
|
+
...P?.paper?.style
|
|
3907
|
+
}
|
|
3908
|
+
}
|
|
3909
|
+
}, t[18] = v, t[19] = P?.paper, t[20] = P?.root, t[21] = I, t[22] = u, t[23] = z) : z = t[23];
|
|
3910
|
+
let V = z, H = !o && b != null, U;
|
|
3911
|
+
t[24] !== v || t[25] !== m ? (U = v ? () => m(!0) : void 0, t[24] = v, t[25] = m, t[26] = U) : U = t[26];
|
|
3912
|
+
let W = !v, G = !v, K = !v, q = !v, ee = !v, J = !v, Y;
|
|
3913
|
+
t[27] !== a || t[28] !== R ? (Y = /* @__PURE__ */ Z("div", {
|
|
3914
|
+
ref: w,
|
|
3915
|
+
style: R,
|
|
3916
|
+
children: a
|
|
3917
|
+
}), t[27] = a, t[28] = R, t[29] = Y) : Y = t[29];
|
|
3918
|
+
let te;
|
|
3919
|
+
return t[30] !== b || t[31] !== M || t[32] !== f || t[33] !== V || t[34] !== l || t[35] !== H || t[36] !== U || t[37] !== W || t[38] !== G || t[39] !== K || t[40] !== q || t[41] !== ee || t[42] !== J || t[43] !== Y || t[44] !== N ? (te = /* @__PURE__ */ Z(B, {
|
|
3920
|
+
action: x,
|
|
3921
|
+
sx: l,
|
|
3922
|
+
container: f,
|
|
3923
|
+
anchorEl: b,
|
|
3924
|
+
open: H,
|
|
3925
|
+
onClose: U,
|
|
3926
|
+
hideBackdrop: W,
|
|
3927
|
+
disableScrollLock: G,
|
|
3928
|
+
disableEscapeKeyDown: K,
|
|
3929
|
+
disableAutoFocus: q,
|
|
3930
|
+
disableEnforceFocus: ee,
|
|
3931
|
+
disableRestoreFocus: J,
|
|
3932
|
+
anchorOrigin: M,
|
|
3933
|
+
transformOrigin: N,
|
|
3934
|
+
slotProps: V,
|
|
3935
|
+
children: Y
|
|
3936
|
+
}), t[30] = b, t[31] = M, t[32] = f, t[33] = V, t[34] = l, t[35] = H, t[36] = U, t[37] = W, t[38] = G, t[39] = K, t[40] = q, t[41] = ee, t[42] = J, t[43] = Y, t[44] = N, t[45] = te) : te = t[45], te;
|
|
3937
|
+
}
|
|
3938
|
+
function ii() {}
|
|
3939
|
+
//#endregion
|
|
3940
|
+
//#region src/components/basemaps/basemaps.tsx
|
|
3941
|
+
var ai = [];
|
|
3942
|
+
function oi(e) {
|
|
3943
|
+
let t = i(55), { options: r, labels: a, position: o, selected: c, onChange: l, TooltipProps: u } = e, p = r === void 0 ? ai : r, m = o === void 0 ? "bottom-right" : o, h = c === void 0 ? null : c, [g, _] = f(null), [v, y] = f(!1), b = d(null), [x, S] = f(null), C = ne(), w;
|
|
3944
|
+
t[0] === C.breakpoints ? w = t[1] : (w = C.breakpoints.down("sm"), t[0] = C.breakpoints, t[1] = w);
|
|
3945
|
+
let T = te(w), E;
|
|
3946
|
+
t[2] === a ? E = t[3] : (E = a ?? {}, t[2] = a, t[3] = E);
|
|
3947
|
+
let D;
|
|
3948
|
+
t[4] === E ? D = t[5] : (D = (0, He.default)(Qr, E), t[4] = E, t[5] = D);
|
|
3949
|
+
let O = D, k;
|
|
3950
|
+
if (t[6] !== p || t[7] !== h) {
|
|
3951
|
+
let e;
|
|
3952
|
+
t[9] === h ? e = t[10] : (e = (e) => e.id === h, t[9] = h, t[10] = e), k = p.find(e), t[6] = p, t[7] = h, t[8] = k;
|
|
3953
|
+
} else k = t[8];
|
|
3954
|
+
let j = k, M;
|
|
3955
|
+
t[11] === p ? M = t[12] : (M = Object.groupBy(p, si), t[11] = p, t[12] = M);
|
|
3956
|
+
let N = M, P;
|
|
3957
|
+
t[13] === N ? P = t[14] : (P = Object.keys(N), t[13] = N, t[14] = P);
|
|
3958
|
+
let F = P.length, I;
|
|
3959
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
|
|
3960
|
+
_(null), y(!1);
|
|
3961
|
+
}, t[15] = I) : I = t[15];
|
|
3962
|
+
let L = I, R, B;
|
|
3963
|
+
t[16] === x ? (R = t[17], B = t[18]) : (R = () => {
|
|
3964
|
+
if (b.current && clearTimeout(b.current), x) return b.current = setTimeout(() => {
|
|
3965
|
+
L();
|
|
3966
|
+
}, x), () => {
|
|
3967
|
+
b.current && clearTimeout(b.current);
|
|
3968
|
+
};
|
|
3969
|
+
}, B = [x], t[16] = x, t[17] = R, t[18] = B), s(R, B);
|
|
3970
|
+
let V;
|
|
3971
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
|
|
3972
|
+
S(null);
|
|
3973
|
+
}, t[19] = V) : V = t[19];
|
|
3974
|
+
let H = V, U;
|
|
3975
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (U = () => {
|
|
3976
|
+
S(400);
|
|
3977
|
+
}, t[20] = U) : U = t[20];
|
|
3978
|
+
let W = U, G;
|
|
3979
|
+
t[21] === Symbol.for("react.memo_cache_sentinel") ? (G = (e) => {
|
|
3980
|
+
_(e.currentTarget), y(!0);
|
|
3981
|
+
}, t[21] = G) : G = t[21];
|
|
3982
|
+
let K = j?.icon, q = j?.label ?? "Basemap", ee;
|
|
3983
|
+
t[22] !== K || t[23] !== q ? (ee = /* @__PURE__ */ Z(A, {
|
|
3984
|
+
sx: Zr.toggle,
|
|
3985
|
+
onClick: G,
|
|
3986
|
+
children: /* @__PURE__ */ Z("img", {
|
|
3987
|
+
src: K,
|
|
3988
|
+
alt: q
|
|
3989
|
+
})
|
|
3990
|
+
}), t[22] = K, t[23] = q, t[24] = ee) : ee = t[24];
|
|
3991
|
+
let J;
|
|
3992
|
+
t[25] !== u || t[26] !== O.toggle.title || t[27] !== ee ? (J = /* @__PURE__ */ Z(n, {
|
|
3993
|
+
title: O.toggle.title,
|
|
3994
|
+
placement: "right",
|
|
3995
|
+
...u,
|
|
3996
|
+
children: ee
|
|
3997
|
+
}), t[25] = u, t[26] = O.toggle.title, t[27] = ee, t[28] = J) : J = t[28];
|
|
3998
|
+
let Y = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`, X;
|
|
3999
|
+
t[29] === Y ? X = t[30] : (X = { paper: {
|
|
4000
|
+
sx: {
|
|
4001
|
+
...Zr.root,
|
|
4002
|
+
transform: Y
|
|
4003
|
+
},
|
|
4004
|
+
onMouseOver: H,
|
|
4005
|
+
onMouseLeave: W
|
|
4006
|
+
} }, t[29] = Y, t[30] = X);
|
|
4007
|
+
let re = !v, ie;
|
|
4008
|
+
t[31] === Symbol.for("react.memo_cache_sentinel") ? (ie = () => L(), t[31] = ie) : ie = t[31];
|
|
4009
|
+
let ae;
|
|
4010
|
+
t[32] === Symbol.for("react.memo_cache_sentinel") ? (ae = () => L(), t[32] = ae) : ae = t[32];
|
|
4011
|
+
let oe;
|
|
4012
|
+
t[33] !== T || t[34] !== O.header ? (oe = /* @__PURE__ */ Z($r, {
|
|
4013
|
+
isMobile: T,
|
|
4014
|
+
labels: O.header,
|
|
4015
|
+
onChangeCollapsed: ae
|
|
4016
|
+
}), t[33] = T, t[34] = O.header, t[35] = oe) : oe = t[35];
|
|
4017
|
+
let se;
|
|
4018
|
+
t[36] === N ? se = t[37] : (se = Object.entries(N), t[36] = N, t[37] = se);
|
|
4019
|
+
let ce;
|
|
4020
|
+
t[38] !== F || t[39] !== O.header || t[40] !== l || t[41] !== h || t[42] !== se ? (ce = se.map((e) => {
|
|
4021
|
+
let [t, n] = e;
|
|
4022
|
+
return /* @__PURE__ */ Z(ei, {
|
|
4023
|
+
title: t + " " + O.header.title,
|
|
4024
|
+
collapsed: F < 2,
|
|
4025
|
+
children: /* @__PURE__ */ Z(ti, {
|
|
4026
|
+
values: n,
|
|
4027
|
+
selected: h,
|
|
4028
|
+
onChange: (e) => {
|
|
4029
|
+
L(), l(e);
|
|
4030
|
+
}
|
|
4031
|
+
})
|
|
4032
|
+
}, t);
|
|
4033
|
+
}), t[38] = F, t[39] = O.header, t[40] = l, t[41] = h, t[42] = se, t[43] = ce) : ce = t[43];
|
|
4034
|
+
let le;
|
|
4035
|
+
t[44] !== g || t[45] !== T || t[46] !== m || t[47] !== X || t[48] !== re || t[49] !== oe || t[50] !== ce ? (le = /* @__PURE__ */ Q(ri, {
|
|
4036
|
+
anchorEl: g,
|
|
4037
|
+
slotProps: X,
|
|
4038
|
+
collapsed: re,
|
|
4039
|
+
position: m,
|
|
4040
|
+
isMobile: T,
|
|
4041
|
+
onChangeCollapsed: ie,
|
|
4042
|
+
children: [oe, ce]
|
|
4043
|
+
}), t[44] = g, t[45] = T, t[46] = m, t[47] = X, t[48] = re, t[49] = oe, t[50] = ce, t[51] = le) : le = t[51];
|
|
4044
|
+
let ue;
|
|
4045
|
+
return t[52] !== J || t[53] !== le ? (ue = /* @__PURE__ */ Q(z, { children: [J, le] }), t[52] = J, t[53] = le, t[54] = ue) : ue = t[54], ue;
|
|
4046
|
+
}
|
|
4047
|
+
function si(e) {
|
|
4048
|
+
return e.group ?? "default";
|
|
4049
|
+
}
|
|
4050
|
+
//#endregion
|
|
4051
|
+
export { Ht as $, On as A, gn as B, Ln as C, Nn as D, Mn as E, Tn as F, an as G, ln as H, bn as I, Qt as J, Kt as K, Sn as L, En as M, Dn as N, An as O, Cn as P, Vt as Q, vn as R, In as S, Fn as T, hn as U, _n as V, rn as W, Yt as X, Gt as Y, Xt as Z, Wn as _, Ne as _t, Nr as a, Ze as at, Rn as b, Ie as bt, Tr as c, Xe as ct, xr as d, Le as dt, Bt as et, br as f, $ as ft, or as g, ke as gt, fr as h, Oe as ht, Ir as i, $e as it, kn as j, jn as k, wr as l, Je as lt, vr as m, je as mt, ri as n, ot as nt, Or as o, Qe as ot, yr as p, Ae as pt, nn as q, Xr as r, nt as rt, Cr as s, Ye as st, oi as t, Tt as tt, Sr as u, Ve as ut, Bn as v, Me as vt, Pn as w, zn as x, Pe as xt, Vn as y, Fe as yt, yn as z };
|
|
4052
|
+
|
|
4053
|
+
//# sourceMappingURL=components-FED-ArwH.js.map
|