@carto/ps-react-ui 4.20.0 → 4.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-DKX98LlI.js +1318 -0
- package/dist/actions-DKX98LlI.js.map +1 -0
- package/dist/actions-Dy9JVr7F.js +1004 -0
- package/dist/actions-Dy9JVr7F.js.map +1 -0
- package/dist/category-DHZscHaS.js +826 -0
- package/dist/category-DHZscHaS.js.map +1 -0
- package/dist/chart-config-BGt7wkK7.js +108 -0
- package/dist/chart-config-BGt7wkK7.js.map +1 -0
- package/dist/chat.js +1589 -1711
- package/dist/chat.js.map +1 -1
- package/dist/cjs-CBrZjPCj.js +75 -0
- package/dist/cjs-CBrZjPCj.js.map +1 -0
- package/dist/components-DDt4mOQn.js +2403 -0
- package/dist/components-DDt4mOQn.js.map +1 -0
- package/dist/components.js +5 -1841
- package/dist/copy-button-DaQqWVu0.js +25 -0
- package/dist/copy-button-DaQqWVu0.js.map +1 -0
- package/dist/csv-modifiers-D6HGC24b.js +26 -0
- package/dist/csv-modifiers-D6HGC24b.js.map +1 -0
- package/dist/download-BT6qBamM.js +232 -0
- package/dist/download-BT6qBamM.js.map +1 -0
- package/dist/echart-BkaV3V5G.js +133 -0
- package/dist/echart-BkaV3V5G.js.map +1 -0
- package/dist/echart-DSz2Tu0z.js +250 -0
- package/dist/echart-DSz2Tu0z.js.map +1 -0
- package/dist/formatter-wVO81tYk.js +6 -0
- package/dist/formatter-wVO81tYk.js.map +1 -0
- package/dist/formula-Bk9CBzm2.js +190 -0
- package/dist/formula-Bk9CBzm2.js.map +1 -0
- package/dist/formula-Dsru_p-g.js +285 -0
- package/dist/formula-Dsru_p-g.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 -24
- package/dist/legend.js +2274 -2323
- package/dist/legend.js.map +1 -1
- package/dist/markdown-DnSJMPjQ.js +165 -0
- package/dist/markdown-DnSJMPjQ.js.map +1 -0
- package/dist/markdown-content-BzKoX3eu.js +8764 -0
- package/dist/markdown-content-BzKoX3eu.js.map +1 -0
- package/dist/range-BPWVrAsY.js +277 -0
- package/dist/range-BPWVrAsY.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-Dy8pshpN.js +149 -0
- package/dist/spread-Dy8pshpN.js.map +1 -0
- package/dist/stores-B81-IU1G.js +374 -0
- package/dist/stores-B81-IU1G.js.map +1 -0
- package/dist/stores-BVFMfgyo.js +248 -0
- package/dist/stores-BVFMfgyo.js.map +1 -0
- package/dist/styles-Y-qGBELO.js +13 -0
- package/dist/styles-Y-qGBELO.js.map +1 -0
- package/dist/table-BfTG6rrs.js +439 -0
- package/dist/table-BfTG6rrs.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 +1 -1
- package/dist/types/chat/bubbles/chat-error-message.d.ts +1 -1
- package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +1 -1
- package/dist/types/chat/bubbles/chat-user-message.d.ts +1 -1
- package/dist/types/chat/containers/chat-footer.d.ts +1 -1
- package/dist/types/chat/containers/chat-header.d.ts +1 -1
- package/dist/types/chat/containers/chat-starter.d.ts +1 -1
- package/dist/types/chat/feedback/chat-loader.d.ts +1 -1
- package/dist/types/chat/feedback/chat-rating-action.d.ts +1 -1
- package/dist/types/chat/feedback/chat-thinking.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-group.d.ts +1 -1
- package/dist/types/chat/feedback/chat-tool-trace.d.ts +2 -2
- package/dist/types/components/basemaps/group-wrapper.d.ts +1 -1
- package/dist/types/components/basemaps/group.d.ts +1 -1
- package/dist/types/components/basemaps/header.d.ts +1 -1
- package/dist/types/components/copy-button/copy-button.d.ts +1 -1
- package/dist/types/components/lasso-tool/chip.d.ts +1 -1
- package/dist/types/components/lasso-tool/icons.d.ts +7 -7
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +4 -4
- package/dist/types/components/lasso-tool/message.d.ts +1 -1
- package/dist/types/components/list-data/list-data-skeleton.d.ts +1 -1
- package/dist/types/components/measurement-tools/icons.d.ts +3 -3
- package/dist/types/components/no-data-alert/no-data-alert.d.ts +1 -1
- package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +1 -1
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/hooks/use-widget-ref.d.ts +2 -1
- package/dist/types/legend/components/legend-actions/legend-actions.d.ts +1 -1
- package/dist/types/legend/components/legend-category/legend-category-ui.d.ts +1 -1
- package/dist/types/legend/components/legend-config-select/legend-config-select.d.ts +1 -1
- package/dist/types/legend/components/legend-group/legend-group.d.ts +1 -1
- package/dist/types/legend/components/legend-group-menu/legend-group-menu-items.d.ts +4 -4
- package/dist/types/legend/components/legend-group-menu/legend-group-menu.d.ts +1 -1
- package/dist/types/legend/components/legend-icon/legend-icon-ui.d.ts +1 -1
- package/dist/types/legend/components/legend-item/legend-item-ui.d.ts +1 -1
- package/dist/types/legend/components/legend-item/legend-item.d.ts +1 -1
- package/dist/types/legend/components/legend-opacity/legend-opacity.d.ts +2 -2
- package/dist/types/legend/components/legend-overflow-menu/legend-overflow-menu.d.ts +1 -1
- package/dist/types/legend/components/legend-panel-menu/legend-panel-menu.d.ts +1 -1
- package/dist/types/legend/components/legend-proportion/legend-proportion-ui.d.ts +1 -1
- package/dist/types/legend/components/legend-ramp/legend-ramp-ui.d.ts +1 -1
- package/dist/types/legend/components/legend-row/legend-row.d.ts +1 -1
- package/dist/types/legend/components/legend-row-menu/legend-row-menu-items.d.ts +2 -2
- package/dist/types/legend/components/legend-row-menu/legend-row-menu.d.ts +1 -1
- package/dist/types/legend/components/legend-row-menu/legend-zoom-to.d.ts +1 -1
- package/dist/types/legend/components/legend-sortable/legend-sortable.d.ts +1 -1
- package/dist/types/legend/components/legend-swatch/legend-swatch.d.ts +1 -1
- package/dist/types/legend/components/legend-visibility-toggle/legend-visibility-toggle.d.ts +1 -1
- package/dist/types/legend/components/legend-visible-layers/legend-visible-layers.d.ts +1 -1
- package/dist/types/legend/index.d.ts +2 -2
- package/dist/types/legend/provider/legend-provider.d.ts +1 -1
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +1 -1
- 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 +1 -1
- package/dist/types/widgets/actions/change-column/sortable-column-item.d.ts +1 -1
- package/dist/types/widgets/actions/download/download.d.ts +1 -1
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +1 -1
- package/dist/types/widgets/actions/lock-selection/lock-selection.d.ts +1 -1
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +1 -1
- package/dist/types/widgets/actions/searcher/searcher-toggle.d.ts +1 -1
- package/dist/types/widgets/actions/searcher/searcher.d.ts +1 -1
- 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 +1 -1
- package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +1 -1
- package/dist/types/widgets/bar/skeleton.d.ts +1 -1
- package/dist/types/widgets/category/category-ui.d.ts +1 -1
- package/dist/types/widgets/category/components/category-bar.d.ts +1 -1
- package/dist/types/widgets/category/components/category-legend.d.ts +1 -1
- package/dist/types/widgets/category/components/category-row-multi.d.ts +1 -1
- package/dist/types/widgets/category/components/category-row-other.d.ts +1 -1
- package/dist/types/widgets/category/components/category-row-single.d.ts +1 -1
- package/dist/types/widgets/category/skeleton.d.ts +1 -1
- package/dist/types/widgets/echart/echart-ui.d.ts +1 -1
- package/dist/types/widgets/echart/echart.d.ts +1 -1
- package/dist/types/widgets/error/error.d.ts +1 -1
- package/dist/types/widgets/formula/components/item.d.ts +1 -1
- package/dist/types/widgets/formula/components/prefix.d.ts +1 -1
- package/dist/types/widgets/formula/components/row.d.ts +1 -1
- package/dist/types/widgets/formula/components/series.d.ts +1 -1
- package/dist/types/widgets/formula/components/suffix.d.ts +1 -1
- package/dist/types/widgets/formula/components/value.d.ts +1 -1
- package/dist/types/widgets/formula/formula-ui.d.ts +1 -1
- package/dist/types/widgets/formula/skeleton.d.ts +1 -1
- package/dist/types/widgets/histogram/skeleton.d.ts +1 -1
- package/dist/types/widgets/markdown/markdown-ui.d.ts +1 -1
- package/dist/types/widgets/markdown/markdown.d.ts +1 -1
- package/dist/types/widgets/markdown/skeleton.d.ts +1 -1
- package/dist/types/widgets/no-data/no-data.d.ts +1 -1
- package/dist/types/widgets/note/note.d.ts +1 -1
- package/dist/types/widgets/pie/skeleton.d.ts +1 -1
- package/dist/types/widgets/range/components/range-item.d.ts +1 -1
- package/dist/types/widgets/range/range-ui.d.ts +1 -1
- package/dist/types/widgets/range/skeleton.d.ts +1 -1
- package/dist/types/widgets/scatterplot/skeleton.d.ts +1 -1
- package/dist/types/widgets/selection-summary/selection-summary.d.ts +1 -1
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +1 -1
- package/dist/types/widgets/spread/components/max-value.d.ts +1 -1
- package/dist/types/widgets/spread/components/min-value.d.ts +1 -1
- package/dist/types/widgets/spread/components/separator.d.ts +1 -1
- package/dist/types/widgets/spread/skeleton.d.ts +1 -1
- package/dist/types/widgets/spread/spread-ui.d.ts +1 -1
- package/dist/types/widgets/subheader/subheader.d.ts +1 -1
- package/dist/types/widgets/table/components/cell-header.d.ts +1 -1
- package/dist/types/widgets/table/components/cell.d.ts +1 -1
- package/dist/types/widgets/table/components/pagination-actions.d.ts +1 -1
- package/dist/types/widgets/table/components/pagination.d.ts +1 -1
- package/dist/types/widgets/table/components/row.d.ts +1 -1
- package/dist/types/widgets/table/skeleton.d.ts +1 -1
- package/dist/types/widgets/table/table-ui.d.ts +2 -2
- package/dist/types/widgets/timeseries/skeleton.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/actions.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/options.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/title.d.ts +1 -1
- package/dist/types/widgets/wrapper/wrapper-ui.d.ts +1 -1
- package/dist/types/widgets/wrapper/wrapper.d.ts +1 -1
- package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +1 -1
- package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +1 -1
- package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +1 -1
- package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +1 -1
- package/dist/types/widgets-v2/actions/download/download.d.ts +1 -1
- package/dist/types/widgets-v2/actions/download/icons.d.ts +3 -3
- package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +2 -2
- package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +1 -1
- package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +1 -1
- package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +1 -1
- package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +1 -1
- package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +1 -1
- package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +1 -1
- package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +1 -1
- package/dist/types/widgets-v2/bar/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/category/category-ui.d.ts +1 -1
- package/dist/types/widgets-v2/category/category.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-bar.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-legend.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-row-other.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-row-single.d.ts +1 -1
- package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +1 -1
- package/dist/types/widgets-v2/category/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/echart/echart-ui.d.ts +1 -1
- package/dist/types/widgets-v2/echart/echart.d.ts +1 -1
- package/dist/types/widgets-v2/formula/delta.d.ts +1 -1
- package/dist/types/widgets-v2/formula/formula-ui.d.ts +1 -1
- package/dist/types/widgets-v2/formula/formula.d.ts +1 -1
- package/dist/types/widgets-v2/formula/note.d.ts +1 -1
- package/dist/types/widgets-v2/formula/prefix.d.ts +1 -1
- package/dist/types/widgets-v2/formula/series.d.ts +1 -1
- package/dist/types/widgets-v2/formula/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/formula/suffix.d.ts +1 -1
- package/dist/types/widgets-v2/formula/value.d.ts +1 -1
- package/dist/types/widgets-v2/histogram/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/index.d.ts +4 -4
- package/dist/types/widgets-v2/markdown/markdown-content.d.ts +1 -1
- package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +1 -1
- package/dist/types/widgets-v2/markdown/markdown.d.ts +1 -1
- package/dist/types/widgets-v2/markdown/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/note/widget-note.d.ts +2 -2
- package/dist/types/widgets-v2/pie/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/provider/widget-provider.d.ts +1 -1
- package/dist/types/widgets-v2/range/range-ui.d.ts +1 -1
- package/dist/types/widgets-v2/range/range.d.ts +1 -1
- package/dist/types/widgets-v2/range/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +1 -1
- package/dist/types/widgets-v2/spread/separator.d.ts +1 -1
- package/dist/types/widgets-v2/spread/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/spread/spread-ui.d.ts +1 -1
- package/dist/types/widgets-v2/spread/spread.d.ts +1 -1
- package/dist/types/widgets-v2/state/widget-state.d.ts +1 -1
- package/dist/types/widgets-v2/subheader/subheader.d.ts +1 -1
- package/dist/types/widgets-v2/table/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/table/table-ui.d.ts +1 -1
- package/dist/types/widgets-v2/table/table.d.ts +1 -1
- package/dist/types/widgets-v2/timeseries/skeleton.d.ts +1 -1
- package/dist/types/widgets-v2/toolbox/toolbox.d.ts +1 -1
- package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +2 -2
- package/dist/types/widgets-v2/wrapper/widget-content.d.ts +2 -2
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +1 -1
- package/dist/use-widget-selector-VSPhfhNm.js +12 -0
- package/dist/{use-widget-selector-DFl2hW0R.js.map → use-widget-selector-VSPhfhNm.js.map} +1 -1
- package/dist/utils-DtvTjjMq.js +58 -0
- package/dist/utils-DtvTjjMq.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 -1317
- package/dist/widgets/bar.js +183 -175
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +429 -434
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +3 -120
- package/dist/widgets/error.js +28 -38
- package/dist/widgets/error.js.map +1 -1
- package/dist/widgets/formula.js +3 -123
- package/dist/widgets/histogram.js +183 -202
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/loader.js +63 -61
- package/dist/widgets/loader.js.map +1 -1
- package/dist/widgets/markdown.js +141 -123
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/no-data.js +52 -58
- package/dist/widgets/no-data.js.map +1 -1
- package/dist/widgets/note.js +125 -122
- package/dist/widgets/note.js.map +1 -1
- package/dist/widgets/pie.js +245 -259
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +225 -204
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +220 -215
- 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 +22 -23
- package/dist/widgets/skeleton-loader.js.map +1 -1
- package/dist/widgets/spread.js +150 -156
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/stores.js +3 -8
- package/dist/widgets/subheader.js +49 -50
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js +576 -644
- 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 +140 -145
- package/dist/widgets/toolbar-actions.js.map +1 -1
- package/dist/widgets/utils.js +17 -33
- package/dist/widgets/utils.js.map +1 -1
- package/dist/widgets/wrapper.js +265 -276
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets-v2/actions.js +4 -51
- package/dist/widgets-v2/bar.js +253 -307
- package/dist/widgets-v2/bar.js.map +1 -1
- package/dist/widgets-v2/category.js +2 -98
- package/dist/widgets-v2/echart.js +2 -57
- package/dist/widgets-v2/formula.js +2 -68
- package/dist/widgets-v2/histogram.js +285 -350
- package/dist/widgets-v2/histogram.js.map +1 -1
- package/dist/widgets-v2/markdown.js +3 -69
- package/dist/widgets-v2/pie.js +363 -461
- package/dist/widgets-v2/pie.js.map +1 -1
- package/dist/widgets-v2/range.js +2 -52
- package/dist/widgets-v2/scatterplot.js +316 -391
- package/dist/widgets-v2/scatterplot.js.map +1 -1
- package/dist/widgets-v2/spread.js +2 -78
- package/dist/widgets-v2/stores.js +2 -42
- package/dist/widgets-v2/table.js +2 -78
- package/dist/widgets-v2/timeseries.js +285 -340
- package/dist/widgets-v2/timeseries.js.map +1 -1
- package/dist/widgets-v2/utils.js +2 -8
- package/dist/widgets-v2.js +955 -951
- package/dist/widgets-v2.js.map +1 -1
- package/dist/zoom-toggle-CA0ifG23.js +164 -0
- package/dist/zoom-toggle-CA0ifG23.js.map +1 -0
- package/package.json +4 -4
- package/src/hooks/use-widget-ref.ts +1 -0
- package/dist/category-Ct2BzADB.js +0 -753
- package/dist/category-Ct2BzADB.js.map +0 -1
- package/dist/change-column-Fu1DCYQ3.js +0 -1186
- package/dist/change-column-Fu1DCYQ3.js.map +0 -1
- package/dist/cjs-D4KH3azB.js +0 -85
- package/dist/cjs-D4KH3azB.js.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/copy-button-DGL1tyli.js +0 -26
- package/dist/copy-button-DGL1tyli.js.map +0 -1
- package/dist/csv-item-hH_Gt7ur.js +0 -32
- package/dist/csv-item-hH_Gt7ur.js.map +0 -1
- package/dist/data-zoom-layout-D_FYdnap.js +0 -28
- package/dist/data-zoom-layout-D_FYdnap.js.map +0 -1
- package/dist/download-config-OKlLLSW_.js +0 -58
- package/dist/download-config-OKlLLSW_.js.map +0 -1
- package/dist/echart-B10dhEaM.js +0 -262
- package/dist/echart-B10dhEaM.js.map +0 -1
- package/dist/exports-Cr43OCul.js +0 -51
- package/dist/exports-Cr43OCul.js.map +0 -1
- package/dist/exports-Cx-f6m6U.js +0 -63
- package/dist/exports-Cx-f6m6U.js.map +0 -1
- package/dist/formatter-B9Bxn1k7.js +0 -6
- package/dist/formatter-B9Bxn1k7.js.map +0 -1
- package/dist/formula-DuC0NQLH.js +0 -79
- package/dist/formula-DuC0NQLH.js.map +0 -1
- package/dist/lasso-tool-YLFRgb-S.js +0 -582
- package/dist/lasso-tool-YLFRgb-S.js.map +0 -1
- package/dist/legend/stores.js.map +0 -1
- package/dist/legend-store-registry-p1tSwJXH.js +0 -472
- package/dist/legend-store-registry-p1tSwJXH.js.map +0 -1
- package/dist/markdown-DdqANCiN.js +0 -102
- package/dist/markdown-DdqANCiN.js.map +0 -1
- package/dist/markdown-content-Dk2DSgbf.js +0 -10287
- package/dist/markdown-content-Dk2DSgbf.js.map +0 -1
- package/dist/option-builders-DPeoyQaM.js +0 -130
- package/dist/option-builders-DPeoyQaM.js.map +0 -1
- package/dist/options-CthfUJDz.js +0 -46
- package/dist/options-CthfUJDz.js.map +0 -1
- package/dist/png-item-9dNbB37T.js +0 -57
- package/dist/png-item-9dNbB37T.js.map +0 -1
- package/dist/range-l4fNHLEg.js +0 -213
- package/dist/range-l4fNHLEg.js.map +0 -1
- package/dist/resolve-theme-color-BdojIw0K.js +0 -47
- package/dist/resolve-theme-color-BdojIw0K.js.map +0 -1
- package/dist/row-DZSP99LW.js +0 -34
- package/dist/row-DZSP99LW.js.map +0 -1
- package/dist/series-DLNHDWs0.js +0 -90
- package/dist/series-DLNHDWs0.js.map +0 -1
- package/dist/shared-resize-observer-98b1SK1e.js +0 -17
- package/dist/shared-resize-observer-98b1SK1e.js.map +0 -1
- package/dist/smart-tooltip-DFV6GD8R.js +0 -40
- package/dist/smart-tooltip-DFV6GD8R.js.map +0 -1
- package/dist/spread-4MYPOntd.js +0 -66
- package/dist/spread-4MYPOntd.js.map +0 -1
- package/dist/style-DVnT6HC1.js +0 -131
- package/dist/style-DVnT6HC1.js.map +0 -1
- package/dist/styles-cohnxh9F.js +0 -23
- package/dist/styles-cohnxh9F.js.map +0 -1
- package/dist/table-CTcLOycx.js +0 -383
- package/dist/table-CTcLOycx.js.map +0 -1
- package/dist/tooltip-BDnrRKrp.js +0 -25
- package/dist/tooltip-BDnrRKrp.js.map +0 -1
- package/dist/transforms-Cdx4fkU5.js +0 -106
- package/dist/transforms-Cdx4fkU5.js.map +0 -1
- package/dist/use-transform-DXPN3nY7.js +0 -110
- package/dist/use-transform-DXPN3nY7.js.map +0 -1
- package/dist/use-widget-ref-Ddr_SlJJ.js +0 -22
- package/dist/use-widget-ref-Ddr_SlJJ.js.map +0 -1
- package/dist/use-widget-selector-DFl2hW0R.js +0 -12
- package/dist/utils-BOhInag6.js +0 -170
- package/dist/utils-BOhInag6.js.map +0 -1
- package/dist/widget-context-DTGO0Yta.js +0 -13
- package/dist/widget-context-DTGO0Yta.js.map +0 -1
- package/dist/widget-store-Bw5zRUGg.js +0 -261
- package/dist/widget-store-Bw5zRUGg.js.map +0 -1
- package/dist/widget-store-registry-_W4Z4xp-.js +0 -178
- package/dist/widget-store-registry-_W4Z4xp-.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/stores.js.map +0 -1
- package/dist/widgets-v2/actions.js.map +0 -1
- package/dist/widgets-v2/category.js.map +0 -1
- package/dist/widgets-v2/echart.js.map +0 -1
- package/dist/widgets-v2/formula.js.map +0 -1
- package/dist/widgets-v2/markdown.js.map +0 -1
- package/dist/widgets-v2/range.js.map +0 -1
- package/dist/widgets-v2/spread.js.map +0 -1
- package/dist/widgets-v2/stores.js.map +0 -1
- package/dist/widgets-v2/table.js.map +0 -1
- package/dist/widgets-v2/utils.js.map +0 -1
|
@@ -0,0 +1,2403 @@
|
|
|
1
|
+
import { r as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
+
import "./copy-button-DaQqWVu0.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 { useEffect as a, useEffectEvent as o, useId as s, useMemo as c, useReducer as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
|
|
8
|
+
import { Alert as p, AlertTitle as m, Box as h, Button as g, Checkbox as _, Chip as v, CircularProgress as y, Dialog as b, DialogActions as x, DialogContent as S, DialogTitle as C, Divider as w, Drawer as T, FormControl as E, FormControlLabel as D, Grid as O, IconButton as k, InputBase as A, List as j, ListItem as M, ListItemButton as N, ListItemIcon as P, ListItemText as F, Menu as I, MenuItem as L, Paper as R, Popover as z, Radio as B, RadioGroup as V, Skeleton as H, Snackbar as U, SvgIcon as W, TextField as G, ToggleButton as K, ToggleButtonGroup as ee, Typography as q, alpha as J, useMediaQuery as Y, useTheme as te } from "@mui/material";
|
|
9
|
+
import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
10
|
+
import { AddOutlined as ne, ArrowDropDown as re, Close as ie, CropFreeOutlined as ae, DeleteOutlined as oe, LayersOutlined as se, LocationDisabledOutlined as ce, LockOutlined as le, MoreVertOutlined as ue, MyLocationOutlined as de, RemoveOutlined as fe, Search as pe } from "@mui/icons-material";
|
|
11
|
+
//#region src/components/lasso-tool/icons.tsx
|
|
12
|
+
var me = /* @__PURE__ */ e(t(), 1);
|
|
13
|
+
function he(e) {
|
|
14
|
+
let t = i(3), n;
|
|
15
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
clipRule: "evenodd",
|
|
18
|
+
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",
|
|
19
|
+
fill: "currentColor"
|
|
20
|
+
}), t[0] = n) : n = t[0];
|
|
21
|
+
let r;
|
|
22
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
23
|
+
fill: "none",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
...e,
|
|
27
|
+
children: n
|
|
28
|
+
}), t[1] = e, t[2] = r), r;
|
|
29
|
+
}
|
|
30
|
+
function ge(e) {
|
|
31
|
+
let t = i(3), n;
|
|
32
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
33
|
+
fillRule: "evenodd",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
|
+
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",
|
|
36
|
+
fill: "currentColor"
|
|
37
|
+
}), t[0] = n) : n = t[0];
|
|
38
|
+
let r;
|
|
39
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
40
|
+
fill: "none",
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
viewBox: "0 0 24 24",
|
|
43
|
+
...e,
|
|
44
|
+
children: n
|
|
45
|
+
}), t[1] = e, t[2] = r), r;
|
|
46
|
+
}
|
|
47
|
+
function _e(e) {
|
|
48
|
+
let t = i(3), n;
|
|
49
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
50
|
+
fillRule: "evenodd",
|
|
51
|
+
clipRule: "evenodd",
|
|
52
|
+
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",
|
|
53
|
+
fill: "currentColor"
|
|
54
|
+
}), t[0] = n) : n = t[0];
|
|
55
|
+
let r;
|
|
56
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
57
|
+
fill: "none",
|
|
58
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
+
viewBox: "0 0 24 24",
|
|
60
|
+
...e,
|
|
61
|
+
children: n
|
|
62
|
+
}), t[1] = e, t[2] = r), r;
|
|
63
|
+
}
|
|
64
|
+
function ve(e) {
|
|
65
|
+
let t = i(3), n;
|
|
66
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
67
|
+
fillRule: "evenodd",
|
|
68
|
+
clipRule: "evenodd",
|
|
69
|
+
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",
|
|
70
|
+
fill: "currentColor"
|
|
71
|
+
}), t[0] = n) : n = t[0];
|
|
72
|
+
let r;
|
|
73
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
74
|
+
fill: "none",
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
...e,
|
|
78
|
+
children: n
|
|
79
|
+
}), t[1] = e, t[2] = r), r;
|
|
80
|
+
}
|
|
81
|
+
function ye(e) {
|
|
82
|
+
let t = i(3), n;
|
|
83
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
84
|
+
fillRule: "evenodd",
|
|
85
|
+
clipRule: "evenodd",
|
|
86
|
+
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",
|
|
87
|
+
fill: "currentColor"
|
|
88
|
+
}), t[0] = n) : n = t[0];
|
|
89
|
+
let r;
|
|
90
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
91
|
+
fill: "none",
|
|
92
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
93
|
+
viewBox: "0 0 24 24",
|
|
94
|
+
...e,
|
|
95
|
+
children: n
|
|
96
|
+
}), t[1] = e, t[2] = r), r;
|
|
97
|
+
}
|
|
98
|
+
function be(e) {
|
|
99
|
+
let t = i(3), n;
|
|
100
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
101
|
+
fillRule: "evenodd",
|
|
102
|
+
clipRule: "evenodd",
|
|
103
|
+
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",
|
|
104
|
+
fill: "currentColor"
|
|
105
|
+
}), t[0] = n) : n = t[0];
|
|
106
|
+
let r;
|
|
107
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
108
|
+
fill: "none",
|
|
109
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
110
|
+
viewBox: "0 0 15 15",
|
|
111
|
+
...e,
|
|
112
|
+
children: n
|
|
113
|
+
}), t[1] = e, t[2] = r), r;
|
|
114
|
+
}
|
|
115
|
+
function xe(e) {
|
|
116
|
+
let t = i(3), n;
|
|
117
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
118
|
+
fillRule: "evenodd",
|
|
119
|
+
clipRule: "evenodd",
|
|
120
|
+
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",
|
|
121
|
+
fill: "currentColor"
|
|
122
|
+
}), t[0] = n) : n = t[0];
|
|
123
|
+
let r;
|
|
124
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
125
|
+
fill: "none",
|
|
126
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
127
|
+
viewBox: "0 0 15.877 10.6875",
|
|
128
|
+
...e,
|
|
129
|
+
children: n
|
|
130
|
+
}), t[1] = e, t[2] = r), r;
|
|
131
|
+
}
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/lasso-tool/const.tsx
|
|
134
|
+
var $ = {
|
|
135
|
+
action: { tooltip: {
|
|
136
|
+
active: "Click on the map to draw your spatial filter",
|
|
137
|
+
inactive: "Click on the map to draw your spatial filter"
|
|
138
|
+
} },
|
|
139
|
+
chip: { tooltip: {
|
|
140
|
+
active: "Hide drawing",
|
|
141
|
+
inactive: "Show drawing"
|
|
142
|
+
} },
|
|
143
|
+
options: {
|
|
144
|
+
mode: {
|
|
145
|
+
title: "Choose a drawing tool",
|
|
146
|
+
options: {
|
|
147
|
+
circle: "Circle",
|
|
148
|
+
lasso: "Lasso tool",
|
|
149
|
+
polygon: "Polygon",
|
|
150
|
+
rectangle: "Rectangle",
|
|
151
|
+
edit: "Edit feature"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
layerFilters: "Layer filters"
|
|
155
|
+
},
|
|
156
|
+
noData: {
|
|
157
|
+
title: "Spatial filter not applied",
|
|
158
|
+
description: "Select a drawing or editing tool and click on the map to define your spatial filter"
|
|
159
|
+
},
|
|
160
|
+
actions: {
|
|
161
|
+
toggleAll: {
|
|
162
|
+
active: "Hide all",
|
|
163
|
+
inactive: "Show all"
|
|
164
|
+
},
|
|
165
|
+
deleteAll: "Remove all"
|
|
166
|
+
}
|
|
167
|
+
}, Se = {
|
|
168
|
+
polygon: { icon: /* @__PURE__ */ Z(he, {}) },
|
|
169
|
+
rectangle: { icon: /* @__PURE__ */ Z(ge, {}) },
|
|
170
|
+
circle: { icon: /* @__PURE__ */ Z(_e, {}) },
|
|
171
|
+
lasso: { icon: /* @__PURE__ */ Z(ve, {}) },
|
|
172
|
+
edit: { icon: /* @__PURE__ */ Z(ye, {}) }
|
|
173
|
+
}, Ce = {
|
|
174
|
+
container: {
|
|
175
|
+
display: "flex",
|
|
176
|
+
flexDirection: "row",
|
|
177
|
+
alignItems: "center",
|
|
178
|
+
justifyContent: "flex-start",
|
|
179
|
+
overflow: "hidden",
|
|
180
|
+
width: "fit-content",
|
|
181
|
+
"&.inline": {
|
|
182
|
+
flexDirection: "column",
|
|
183
|
+
alignItems: "flex-start",
|
|
184
|
+
gap: ({ spacing: e }) => e(1)
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
actions: { icon: {
|
|
188
|
+
width: ({ spacing: e }) => e(4),
|
|
189
|
+
height: ({ spacing: e }) => e(4),
|
|
190
|
+
borderRadius: 0,
|
|
191
|
+
".MuiTouchRipple-ripple .MuiTouchRipple-child": { borderRadius: 0 }
|
|
192
|
+
} },
|
|
193
|
+
options: {
|
|
194
|
+
menu: {
|
|
195
|
+
paddingY: ({ spacing: e }) => e(1),
|
|
196
|
+
"&.inline": {
|
|
197
|
+
boxShadow: "none",
|
|
198
|
+
backgroundColor: "transparent",
|
|
199
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
200
|
+
"& .MuiDivider-root": {
|
|
201
|
+
height: ({ spacing: e }) => e(4),
|
|
202
|
+
"&.MuiToggleButtonGroup-groupedHorizontal": { height: ({ spacing: e }) => e(4) },
|
|
203
|
+
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
204
|
+
height: "auto",
|
|
205
|
+
width: ({ spacing: e }) => e(4),
|
|
206
|
+
margin: ({ spacing: e }) => `${e(.5, 0, 1)} !important`,
|
|
207
|
+
borderRadius: "0 !important"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"& .MuiToggleButton-sizeSmall": {
|
|
211
|
+
margin: 0,
|
|
212
|
+
"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": { margin: 0 },
|
|
213
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": { height: ({ spacing: e }) => e(3) },
|
|
214
|
+
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
215
|
+
height: "auto",
|
|
216
|
+
width: ({ spacing: e }) => e(3)
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
220
|
+
margin: 0,
|
|
221
|
+
"&:first-of-type": { marginLeft: 0 },
|
|
222
|
+
"&:not(:last-of-type)": { marginRight: ({ spacing: e }) => e(.5) }
|
|
223
|
+
},
|
|
224
|
+
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": { ".MuiToggleButtonGroup-grouped": { margin: ({ spacing: e }) => e(0, .5) } },
|
|
225
|
+
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": { ".MuiToggleButtonGroup-grouped": {
|
|
226
|
+
margin: ({ spacing: e }) => e(0, 0, .5),
|
|
227
|
+
"&:not(:last-of-type)": { marginRight: 0 },
|
|
228
|
+
"&:last-of-type": { marginBottom: 0 }
|
|
229
|
+
} }
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
icon: {
|
|
233
|
+
borderRadius: 0,
|
|
234
|
+
width: ({ spacing: e }) => e(3)
|
|
235
|
+
},
|
|
236
|
+
title: {
|
|
237
|
+
paddingX: ({ spacing: e }) => e(2),
|
|
238
|
+
paddingBottom: ({ spacing: e }) => e(.5),
|
|
239
|
+
"&.inline": {
|
|
240
|
+
paddingX: 0,
|
|
241
|
+
paddingBottom: 0
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
icons: { color: ({ palette: e }) => e.text.primary },
|
|
245
|
+
tag: {
|
|
246
|
+
borderRadius: ({ spacing: e }) => e(.25),
|
|
247
|
+
border: "1px solid",
|
|
248
|
+
borderColor: ({ palette: e }) => e.primary.main,
|
|
249
|
+
paddingX: ({ spacing: e }) => e(.5),
|
|
250
|
+
color: ({ palette: e }) => e.primary.main,
|
|
251
|
+
backgroundColor: ({ palette: e }) => J(e.primary.main, .08)
|
|
252
|
+
},
|
|
253
|
+
more: { width: ({ spacing: e }) => e(4) }
|
|
254
|
+
},
|
|
255
|
+
chip: {
|
|
256
|
+
container: {
|
|
257
|
+
display: "flex",
|
|
258
|
+
flexDirection: "row",
|
|
259
|
+
alignItems: "center",
|
|
260
|
+
gap: ({ spacing: e }) => e(.5),
|
|
261
|
+
overflowX: "auto",
|
|
262
|
+
scrollbarWidth: "none",
|
|
263
|
+
paddingX: ({ spacing: e }) => e(1),
|
|
264
|
+
"&.inline": {
|
|
265
|
+
overflowX: "visible",
|
|
266
|
+
flexWrap: "wrap"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
chip: { marginRight: ({ spacing: e }) => e(.5) },
|
|
270
|
+
disabled: { opacity: ({ palette: e }) => e.action.disabledOpacity }
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/components/lasso-tool/chip.tsx
|
|
275
|
+
function we(e) {
|
|
276
|
+
let t = i(18), { chipProps: r, value: a, labels: o, onChipToggle: s, onDelete: c } = e, l = a.visible ? "active" : "inactive", u = o?.tooltip?.[l] ?? $.chip.tooltip[l], d = r?.TooltipProps, f;
|
|
277
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (f = { ...Ce.chip.chip }, t[0] = f) : f = t[0];
|
|
278
|
+
let p = a.visible ? "secondary" : "default", m;
|
|
279
|
+
t[1] !== c || t[2] !== a.id ? (m = () => c(a.id), t[1] = c, t[2] = a.id, t[3] = m) : m = t[3];
|
|
280
|
+
let h;
|
|
281
|
+
t[4] !== s || t[5] !== a.id || t[6] !== a.visible ? (h = () => s(a.id, !a.visible), t[4] = s, t[5] = a.id, t[6] = a.visible, t[7] = h) : h = t[7];
|
|
282
|
+
let g = r?.ChipsProps, _;
|
|
283
|
+
t[8] !== p || t[9] !== m || t[10] !== h || t[11] !== g || t[12] !== a.label ? (_ = /* @__PURE__ */ Z(v, {
|
|
284
|
+
sx: f,
|
|
285
|
+
color: p,
|
|
286
|
+
size: "small",
|
|
287
|
+
onDelete: m,
|
|
288
|
+
label: a.label,
|
|
289
|
+
onClick: h,
|
|
290
|
+
...g
|
|
291
|
+
}), t[8] = p, t[9] = m, t[10] = h, t[11] = g, t[12] = a.label, t[13] = _) : _ = t[13];
|
|
292
|
+
let y;
|
|
293
|
+
return t[14] !== u || t[15] !== d || t[16] !== _ ? (y = /* @__PURE__ */ Z(n, {
|
|
294
|
+
title: u,
|
|
295
|
+
placement: "bottom",
|
|
296
|
+
...d,
|
|
297
|
+
children: _
|
|
298
|
+
}), t[14] = u, t[15] = d, t[16] = _, t[17] = y) : y = t[17], y;
|
|
299
|
+
}
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/components/lasso-tool/lasso-tool.tsx
|
|
302
|
+
var Te = [], Ee = {};
|
|
303
|
+
function De(e) {
|
|
304
|
+
let t = i(41), { enabled: n, values: r, actionProps: a, chipProps: o, labels: s, modes: c, modesMapping: l, modeSelected: u, PaperProps: d, onActionToggle: f, onChipToggle: p, onDelete: m, onChangeMode: h, onAllChipToggle: g, onAllDelete: _, onLayerFilters: v, ChipsSlot: y, ActionSlot: b, SecondaryActionsSlot: x, OptionsSlot: S } = e, C = r === void 0 ? Te : r, w = d === void 0 ? Ee : d, T, E;
|
|
305
|
+
t[0] === w ? (T = t[1], E = t[2]) : ({sx: E, ...T} = w, t[0] = w, t[1] = T, t[2] = E);
|
|
306
|
+
let D = y === void 0 ? De.Chips : y, O = b === void 0 ? De.Action : b, k = x === void 0 ? De.SecondaryActions : x, A = S === void 0 ? De.Options : S, j;
|
|
307
|
+
t[3] !== T || t[4] !== a || t[5] !== o || t[6] !== n || t[7] !== s || t[8] !== u || t[9] !== c || t[10] !== l || t[11] !== f || t[12] !== g || t[13] !== _ || t[14] !== h || t[15] !== p || t[16] !== m || t[17] !== v || t[18] !== C ? (j = {
|
|
308
|
+
enabled: n,
|
|
309
|
+
values: C,
|
|
310
|
+
actionProps: a,
|
|
311
|
+
chipProps: o,
|
|
312
|
+
labels: s,
|
|
313
|
+
modes: c,
|
|
314
|
+
modesMapping: l,
|
|
315
|
+
modeSelected: u,
|
|
316
|
+
PaperProps: T,
|
|
317
|
+
onActionToggle: f,
|
|
318
|
+
onChipToggle: p,
|
|
319
|
+
onDelete: m,
|
|
320
|
+
onChangeMode: h,
|
|
321
|
+
onAllChipToggle: g,
|
|
322
|
+
onAllDelete: _,
|
|
323
|
+
onLayerFilters: v
|
|
324
|
+
}, t[3] = T, t[4] = a, t[5] = o, t[6] = n, t[7] = s, t[8] = u, t[9] = c, t[10] = l, t[11] = f, t[12] = g, t[13] = _, t[14] = h, t[15] = p, t[16] = m, t[17] = v, t[18] = C, t[19] = j) : j = t[19];
|
|
325
|
+
let M = j, N;
|
|
326
|
+
t[20] === E ? N = t[21] : (N = {
|
|
327
|
+
...Ce.container,
|
|
328
|
+
...E
|
|
329
|
+
}, t[20] = E, t[21] = N);
|
|
330
|
+
let P;
|
|
331
|
+
t[22] !== O || t[23] !== M ? (P = !!O && /* @__PURE__ */ Z(O, { ...M }), t[22] = O, t[23] = M, t[24] = P) : P = t[24];
|
|
332
|
+
let F;
|
|
333
|
+
t[25] !== A || t[26] !== M ? (F = !!A && /* @__PURE__ */ Z(Ae, { children: (e) => /* @__PURE__ */ Z(A, {
|
|
334
|
+
...M,
|
|
335
|
+
...e
|
|
336
|
+
}) }), t[25] = A, t[26] = M, t[27] = F) : F = t[27];
|
|
337
|
+
let I;
|
|
338
|
+
t[28] !== D || t[29] !== M ? (I = !!D && /* @__PURE__ */ Z(D, { ...M }), t[28] = D, t[29] = M, t[30] = I) : I = t[30];
|
|
339
|
+
let L;
|
|
340
|
+
t[31] !== k || t[32] !== M ? (L = !!k && /* @__PURE__ */ Z(k, { ...M }), t[31] = k, t[32] = M, t[33] = L) : L = t[33];
|
|
341
|
+
let z;
|
|
342
|
+
return t[34] !== T || t[35] !== P || t[36] !== F || t[37] !== I || t[38] !== L || t[39] !== N ? (z = /* @__PURE__ */ Q(R, {
|
|
343
|
+
sx: N,
|
|
344
|
+
...T,
|
|
345
|
+
children: [
|
|
346
|
+
P,
|
|
347
|
+
F,
|
|
348
|
+
I,
|
|
349
|
+
L
|
|
350
|
+
]
|
|
351
|
+
}), t[34] = T, t[35] = P, t[36] = F, t[37] = I, t[38] = L, t[39] = N, t[40] = z) : z = t[40], z;
|
|
352
|
+
}
|
|
353
|
+
function Oe(e) {
|
|
354
|
+
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;
|
|
355
|
+
t[0] !== o || t[1] !== c ? (f = () => c(!o), t[0] = o, t[1] = c, t[2] = f) : f = t[2];
|
|
356
|
+
let p;
|
|
357
|
+
t[3] !== u || t[4] !== s || t[5] !== o || t[6] !== f ? (p = /* @__PURE__ */ Z(K, {
|
|
358
|
+
value: "toggle",
|
|
359
|
+
sx: Ce.actions.icon,
|
|
360
|
+
onClick: f,
|
|
361
|
+
"aria-label": u,
|
|
362
|
+
selected: o,
|
|
363
|
+
children: s
|
|
364
|
+
}), t[3] = u, t[4] = s, t[5] = o, t[6] = f, t[7] = p) : p = t[7];
|
|
365
|
+
let m;
|
|
366
|
+
return t[8] !== u || t[9] !== d || t[10] !== p ? (m = /* @__PURE__ */ Z(n, {
|
|
367
|
+
title: u,
|
|
368
|
+
placement: "right",
|
|
369
|
+
...d,
|
|
370
|
+
children: p
|
|
371
|
+
}), t[8] = u, t[9] = d, t[10] = p, t[11] = m) : m = t[11], m;
|
|
372
|
+
}
|
|
373
|
+
var ke = {};
|
|
374
|
+
function Ae(e) {
|
|
375
|
+
let t = i(22), { TriggerProps: n, MenuProps: r, children: a } = e, { Icon: o, sx: s } = n === void 0 ? ke : n, c;
|
|
376
|
+
t[0] === o ? c = t[1] : (c = o ?? /* @__PURE__ */ Z(re, {}), t[0] = o, t[1] = c);
|
|
377
|
+
let l = c, [u, f] = d(null), p = !!u, m;
|
|
378
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = (e) => {
|
|
379
|
+
f(e.currentTarget);
|
|
380
|
+
}, t[2] = m) : m = t[2];
|
|
381
|
+
let h = m, g;
|
|
382
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
|
|
383
|
+
f(null);
|
|
384
|
+
}, t[3] = g) : g = t[3];
|
|
385
|
+
let _ = g, v;
|
|
386
|
+
t[4] === s ? v = t[5] : (v = {
|
|
387
|
+
...Ce.options.icon,
|
|
388
|
+
...s
|
|
389
|
+
}, t[4] = s, t[5] = v);
|
|
390
|
+
let y;
|
|
391
|
+
t[6] !== l || t[7] !== v ? (y = /* @__PURE__ */ Z(k, {
|
|
392
|
+
sx: v,
|
|
393
|
+
onClick: h,
|
|
394
|
+
children: l
|
|
395
|
+
}), t[6] = l, t[7] = v, t[8] = y) : y = t[8];
|
|
396
|
+
let b;
|
|
397
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
398
|
+
"aria-labelledby": "lasso-button",
|
|
399
|
+
sx: Ce.options.menu
|
|
400
|
+
}, t[9] = b) : b = t[9];
|
|
401
|
+
let x;
|
|
402
|
+
t[10] === a ? x = t[11] : (x = a({ onClose: _ }), t[10] = a, t[11] = x);
|
|
403
|
+
let S;
|
|
404
|
+
t[12] === x ? S = t[13] : (S = /* @__PURE__ */ Z("div", { children: x }), t[12] = x, t[13] = S);
|
|
405
|
+
let C;
|
|
406
|
+
t[14] !== r || t[15] !== u || t[16] !== p || t[17] !== S ? (C = /* @__PURE__ */ Z(I, {
|
|
407
|
+
id: "lasso-menu",
|
|
408
|
+
anchorEl: u,
|
|
409
|
+
open: p,
|
|
410
|
+
onClose: _,
|
|
411
|
+
MenuListProps: b,
|
|
412
|
+
...r,
|
|
413
|
+
children: S
|
|
414
|
+
}), t[14] = r, t[15] = u, t[16] = p, t[17] = S, t[18] = C) : C = t[18];
|
|
415
|
+
let w;
|
|
416
|
+
return t[19] !== C || t[20] !== y ? (w = /* @__PURE__ */ Q(X, { children: [y, C] }), t[19] = C, t[20] = y, t[21] = w) : w = t[21], w;
|
|
417
|
+
}
|
|
418
|
+
function je(e) {
|
|
419
|
+
let t = i(5), { data: n, labels: r, children: a } = e;
|
|
420
|
+
if (n.length <= 1) return null;
|
|
421
|
+
let o = r?.mode?.title ?? $.options.mode.title, s;
|
|
422
|
+
t[0] === o ? s = t[1] : (s = /* @__PURE__ */ Z(q, {
|
|
423
|
+
variant: "subtitle2",
|
|
424
|
+
color: "text.secondary",
|
|
425
|
+
sx: Ce.options.title,
|
|
426
|
+
children: o
|
|
427
|
+
}), t[0] = o, t[1] = s);
|
|
428
|
+
let c;
|
|
429
|
+
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;
|
|
430
|
+
}
|
|
431
|
+
function Me({ data: e, modeSelected: t, labels: n, onChangeMode: r, onClose: i }) {
|
|
432
|
+
let a = (e, t) => {
|
|
433
|
+
e.preventDefault(), r?.(t), i();
|
|
434
|
+
};
|
|
435
|
+
return e.filter((e) => !!e).map((e) => {
|
|
436
|
+
let r = (n?.mode?.options ?? $.options.mode.options)[e.value];
|
|
437
|
+
return /* @__PURE__ */ Q(L, {
|
|
438
|
+
disabled: !!e.disabled,
|
|
439
|
+
onClick: (t) => a(t, e.value),
|
|
440
|
+
selected: e.value === t,
|
|
441
|
+
children: [/* @__PURE__ */ Z(P, {
|
|
442
|
+
sx: Ce.options.icons,
|
|
443
|
+
children: /* @__PURE__ */ Z(W, { children: e.icon })
|
|
444
|
+
}), /* @__PURE__ */ Z(F, { children: r })]
|
|
445
|
+
}, e.value);
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
function Ne(e) {
|
|
449
|
+
let t = i(8), { values: n, labels: r, onAllChipToggle: a, onAllDelete: o } = e;
|
|
450
|
+
if (!n?.length || n.length <= 1) return null;
|
|
451
|
+
let s = n?.some(Pe) ? r?.actions?.toggleAll?.active ?? $.actions.toggleAll.active : r?.actions?.toggleAll?.inactive ?? $.actions.toggleAll.inactive, c = r?.actions?.deleteAll ?? $.actions.deleteAll, l;
|
|
452
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Z(w, {
|
|
453
|
+
orientation: "vertical",
|
|
454
|
+
flexItem: !0
|
|
455
|
+
}), t[0] = l) : l = t[0];
|
|
456
|
+
let u, d;
|
|
457
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
458
|
+
Icon: /* @__PURE__ */ Z(ue, {}),
|
|
459
|
+
sx: Ce.options.more
|
|
460
|
+
}, d = {
|
|
461
|
+
anchorOrigin: {
|
|
462
|
+
vertical: "bottom",
|
|
463
|
+
horizontal: "right"
|
|
464
|
+
},
|
|
465
|
+
transformOrigin: {
|
|
466
|
+
vertical: "top",
|
|
467
|
+
horizontal: "right"
|
|
468
|
+
}
|
|
469
|
+
}, t[1] = u, t[2] = d) : (u = t[1], d = t[2]);
|
|
470
|
+
let f;
|
|
471
|
+
return t[3] !== c || t[4] !== a || t[5] !== o || t[6] !== s ? (f = /* @__PURE__ */ Q(X, { children: [l, /* @__PURE__ */ Z(Ae, {
|
|
472
|
+
TriggerProps: u,
|
|
473
|
+
MenuProps: d,
|
|
474
|
+
children: (e) => /* @__PURE__ */ Q(X, { children: [
|
|
475
|
+
/* @__PURE__ */ Z(L, {
|
|
476
|
+
color: "inherit",
|
|
477
|
+
onClick: () => {
|
|
478
|
+
a?.(), e.onClose();
|
|
479
|
+
},
|
|
480
|
+
children: s
|
|
481
|
+
}),
|
|
482
|
+
/* @__PURE__ */ Z(w, {}),
|
|
483
|
+
/* @__PURE__ */ Z(L, {
|
|
484
|
+
color: "error",
|
|
485
|
+
onClick: () => {
|
|
486
|
+
o?.(), e.onClose();
|
|
487
|
+
},
|
|
488
|
+
children: /* @__PURE__ */ Z(q, {
|
|
489
|
+
variant: "body2",
|
|
490
|
+
color: "error",
|
|
491
|
+
children: c
|
|
492
|
+
})
|
|
493
|
+
})
|
|
494
|
+
] })
|
|
495
|
+
})] }), t[3] = c, t[4] = a, t[5] = o, t[6] = s, t[7] = f) : f = t[7], f;
|
|
496
|
+
}
|
|
497
|
+
function Pe(e) {
|
|
498
|
+
return e.visible;
|
|
499
|
+
}
|
|
500
|
+
De.Action = function({ modes: e, modesMapping: t, modeSelected: n, actionProps: r, enabled: i, labels: a, onActionToggle: o }) {
|
|
501
|
+
let s = c(() => (0, me.default)(e ?? {}, t ?? {}), [e, t]), l = (e) => o?.(e), u = s[n && n in (e ?? {}) ? n : Object.keys(s)[0]];
|
|
502
|
+
return /* @__PURE__ */ Z(Oe, {
|
|
503
|
+
actionProps: r,
|
|
504
|
+
labels: a?.action,
|
|
505
|
+
enabled: i ?? !1,
|
|
506
|
+
onActionToggle: l,
|
|
507
|
+
children: u?.icon
|
|
508
|
+
});
|
|
509
|
+
}, De.Chips = function({ values: e, labels: t, chipProps: n, onDelete: r, onChipToggle: i, onActionToggle: a }) {
|
|
510
|
+
let o = (e) => (a?.(!1), r?.(e));
|
|
511
|
+
return !!e?.length && /* @__PURE__ */ Z(h, {
|
|
512
|
+
sx: Ce.chip.container,
|
|
513
|
+
children: e?.map((e) => /* @__PURE__ */ Z(we, {
|
|
514
|
+
value: e,
|
|
515
|
+
labels: t?.chip,
|
|
516
|
+
chipProps: n,
|
|
517
|
+
onDelete: o,
|
|
518
|
+
onChipToggle: (e, t) => i?.(e, t)
|
|
519
|
+
}, e.id))
|
|
520
|
+
});
|
|
521
|
+
}, De.SecondaryActions = Ne, De.Options = function({ values: e, modes: t, modesMapping: n, modeSelected: r, labels: i, onChangeMode: a, ...o }) {
|
|
522
|
+
let s = c(() => (0, me.default)(t ?? {}, n ?? {}), [t, n]), { edit: l, ...u } = s, d = r && r in (t ?? {}) ? r : Object.keys(s)[0], f = Object.values(u), p = (e) => a?.(e);
|
|
523
|
+
return /* @__PURE__ */ Q(X, { children: [
|
|
524
|
+
/* @__PURE__ */ Z(je, {
|
|
525
|
+
data: f,
|
|
526
|
+
labels: i?.options,
|
|
527
|
+
children: /* @__PURE__ */ Z(Me, {
|
|
528
|
+
...o,
|
|
529
|
+
labels: i?.options,
|
|
530
|
+
data: f,
|
|
531
|
+
modeSelected: d,
|
|
532
|
+
onChangeMode: p
|
|
533
|
+
})
|
|
534
|
+
}),
|
|
535
|
+
!!l && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(w, {}), /* @__PURE__ */ Z(Me, {
|
|
536
|
+
...o,
|
|
537
|
+
labels: i?.options,
|
|
538
|
+
data: [{
|
|
539
|
+
...l,
|
|
540
|
+
disabled: !e?.length
|
|
541
|
+
}],
|
|
542
|
+
modeSelected: d,
|
|
543
|
+
onChangeMode: p
|
|
544
|
+
})] }),
|
|
545
|
+
!!o.onLayerFilters && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(w, {}), /* @__PURE__ */ Q(L, {
|
|
546
|
+
onClick: () => {
|
|
547
|
+
o.onLayerFilters?.(), o.onClose();
|
|
548
|
+
},
|
|
549
|
+
children: [/* @__PURE__ */ Z(P, {
|
|
550
|
+
sx: Ce.options.icons,
|
|
551
|
+
children: /* @__PURE__ */ Z(se, {})
|
|
552
|
+
}), /* @__PURE__ */ Z(F, { children: i?.options?.layerFilters ?? "Layer filters" })]
|
|
553
|
+
})] })
|
|
554
|
+
] });
|
|
555
|
+
};
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/components/lasso-tool/lasso-tool-inline.tsx
|
|
558
|
+
var Fe = [], Ie = {};
|
|
559
|
+
function Le(e) {
|
|
560
|
+
let t = i(55), { enabled: n, values: r, chipProps: a, labels: o, modes: s, modesMapping: c, modeSelected: l, BoxProps: u, onChipToggle: d, onDelete: f, onChangeMode: p, onAllChipToggle: m, onAllDelete: g } = e, _ = r === void 0 ? Fe : r, v = u === void 0 ? Ie : u, y, b;
|
|
561
|
+
t[0] === v ? (y = t[1], b = t[2]) : ({sx: b, ...y} = v, t[0] = v, t[1] = y, t[2] = b);
|
|
562
|
+
let x;
|
|
563
|
+
t[3] !== s || t[4] !== c ? (x = (0, me.default)(s, c), t[3] = s, t[4] = c, t[5] = x) : x = t[5];
|
|
564
|
+
let S = x, C, T;
|
|
565
|
+
t[6] === S ? (C = t[7], T = t[8]) : ({edit: T, ...C} = S, t[6] = S, t[7] = C, t[8] = T);
|
|
566
|
+
let E;
|
|
567
|
+
t[9] === f ? E = t[10] : (E = (e) => f(e), t[9] = f, t[10] = E);
|
|
568
|
+
let D = E, O;
|
|
569
|
+
t[11] === p ? O = t[12] : (O = (e, t) => {
|
|
570
|
+
e.preventDefault(), p?.(t);
|
|
571
|
+
}, t[11] = p, t[12] = O);
|
|
572
|
+
let k = O, A = (l ?? "") in s ? l : Object.keys(S)[0], j = n ? S[A] : null, M;
|
|
573
|
+
t[13] === C ? M = t[14] : (M = Object.values(C), t[13] = C, t[14] = M);
|
|
574
|
+
let N = M, P;
|
|
575
|
+
t[15] === b ? P = t[16] : (P = {
|
|
576
|
+
...Ce.container,
|
|
577
|
+
...b
|
|
578
|
+
}, t[15] = b, t[16] = P);
|
|
579
|
+
let F = o?.options, I = j?.value, L = o?.options, R;
|
|
580
|
+
t[17] !== N || t[18] !== L ? (R = /* @__PURE__ */ Z(ze, {
|
|
581
|
+
labels: L,
|
|
582
|
+
data: N
|
|
583
|
+
}), t[17] = N, t[18] = L, t[19] = R) : R = t[19];
|
|
584
|
+
let z;
|
|
585
|
+
t[20] !== T || t[21] !== o?.options || t[22] !== _.length ? (z = !!T && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(w, { orientation: "vertical" }), /* @__PURE__ */ Z(ze, {
|
|
586
|
+
labels: o?.options,
|
|
587
|
+
data: [{
|
|
588
|
+
...T,
|
|
589
|
+
disabled: !_.length
|
|
590
|
+
}]
|
|
591
|
+
})] }), t[20] = T, t[21] = o?.options, t[22] = _.length, t[23] = z) : z = t[23];
|
|
592
|
+
let B;
|
|
593
|
+
t[24] !== k || t[25] !== I || t[26] !== R || t[27] !== z ? (B = /* @__PURE__ */ Q(ee, {
|
|
594
|
+
value: I,
|
|
595
|
+
exclusive: !0,
|
|
596
|
+
className: "inline",
|
|
597
|
+
sx: Ce.options.menu,
|
|
598
|
+
onChange: k,
|
|
599
|
+
children: [R, z]
|
|
600
|
+
}), t[24] = k, t[25] = I, t[26] = R, t[27] = z, t[28] = B) : B = t[28];
|
|
601
|
+
let V;
|
|
602
|
+
t[29] !== N || t[30] !== B || t[31] !== F ? (V = /* @__PURE__ */ Z(Re, {
|
|
603
|
+
data: N,
|
|
604
|
+
labels: F,
|
|
605
|
+
children: B
|
|
606
|
+
}), t[29] = N, t[30] = B, t[31] = F, t[32] = V) : V = t[32];
|
|
607
|
+
let H;
|
|
608
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ Z(w, { flexItem: !0 }), t[33] = H) : H = t[33];
|
|
609
|
+
let U = !!_.length, W = o?.noData, G;
|
|
610
|
+
t[34] !== U || t[35] !== W ? (G = /* @__PURE__ */ Z(Be, {
|
|
611
|
+
hasValues: U,
|
|
612
|
+
labels: W
|
|
613
|
+
}), t[34] = U, t[35] = W, t[36] = G) : G = t[36];
|
|
614
|
+
let K;
|
|
615
|
+
t[37] !== a || t[38] !== D || t[39] !== o?.chip || t[40] !== d || t[41] !== _ ? (K = !!_.length && /* @__PURE__ */ Z(h, {
|
|
616
|
+
sx: Ce.chip.container,
|
|
617
|
+
className: "inline",
|
|
618
|
+
children: _.map((e) => /* @__PURE__ */ Z(we, {
|
|
619
|
+
value: e,
|
|
620
|
+
labels: o?.chip,
|
|
621
|
+
chipProps: a,
|
|
622
|
+
onDelete: D,
|
|
623
|
+
onChipToggle: d
|
|
624
|
+
}, e.id))
|
|
625
|
+
}), t[37] = a, t[38] = D, t[39] = o?.chip, t[40] = d, t[41] = _, t[42] = K) : K = t[42];
|
|
626
|
+
let q = o?.actions, J;
|
|
627
|
+
t[43] !== m || t[44] !== g || t[45] !== q || t[46] !== _ ? (J = /* @__PURE__ */ Z(Ve, {
|
|
628
|
+
values: _,
|
|
629
|
+
labels: q,
|
|
630
|
+
onAllChipToggle: m,
|
|
631
|
+
onAllDelete: g
|
|
632
|
+
}), t[43] = m, t[44] = g, t[45] = q, t[46] = _, t[47] = J) : J = t[47];
|
|
633
|
+
let Y;
|
|
634
|
+
return t[48] !== y || t[49] !== V || t[50] !== G || t[51] !== K || t[52] !== J || t[53] !== P ? (Y = /* @__PURE__ */ Q(h, {
|
|
635
|
+
sx: P,
|
|
636
|
+
...y,
|
|
637
|
+
className: "inline",
|
|
638
|
+
children: [
|
|
639
|
+
V,
|
|
640
|
+
H,
|
|
641
|
+
G,
|
|
642
|
+
K,
|
|
643
|
+
J
|
|
644
|
+
]
|
|
645
|
+
}), t[48] = y, t[49] = V, t[50] = G, t[51] = K, t[52] = J, t[53] = P, t[54] = Y) : Y = t[54], Y;
|
|
646
|
+
}
|
|
647
|
+
function Re(e) {
|
|
648
|
+
let t = i(5), { data: n, labels: r, children: a } = e;
|
|
649
|
+
if (n.length <= 1) return null;
|
|
650
|
+
let o = r?.mode?.title ?? $.options.mode.title, s;
|
|
651
|
+
t[0] === o ? s = t[1] : (s = /* @__PURE__ */ Z(q, {
|
|
652
|
+
variant: "subtitle2",
|
|
653
|
+
color: "text.secondary",
|
|
654
|
+
sx: Ce.options.title,
|
|
655
|
+
className: "inline",
|
|
656
|
+
children: o
|
|
657
|
+
}), t[0] = o, t[1] = s);
|
|
658
|
+
let c;
|
|
659
|
+
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;
|
|
660
|
+
}
|
|
661
|
+
function ze({ data: e, labels: t }) {
|
|
662
|
+
return e.filter((e) => !!e).map((e) => {
|
|
663
|
+
let r = (t?.mode?.options ?? $.options.mode.options)[e.value];
|
|
664
|
+
return /* @__PURE__ */ Z(n, {
|
|
665
|
+
title: r,
|
|
666
|
+
placement: "bottom",
|
|
667
|
+
children: /* @__PURE__ */ Z(K, {
|
|
668
|
+
disabled: !!e.disabled,
|
|
669
|
+
value: e.value,
|
|
670
|
+
"aria-label": e.value,
|
|
671
|
+
children: /* @__PURE__ */ Z(W, { children: e.icon })
|
|
672
|
+
})
|
|
673
|
+
}, e.value);
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
function Be(e) {
|
|
677
|
+
let t = i(7), { hasValues: n, labels: r } = e;
|
|
678
|
+
if (n) return null;
|
|
679
|
+
let a = r?.title ?? $.noData.title, o = r?.description ?? $.noData.description, s;
|
|
680
|
+
t[0] === a ? s = t[1] : (s = /* @__PURE__ */ Z(q, {
|
|
681
|
+
variant: "body1",
|
|
682
|
+
color: "textSecondary",
|
|
683
|
+
children: a
|
|
684
|
+
}), t[0] = a, t[1] = s);
|
|
685
|
+
let c;
|
|
686
|
+
t[2] === o ? c = t[3] : (c = /* @__PURE__ */ Z(q, {
|
|
687
|
+
variant: "body2",
|
|
688
|
+
color: "textSecondary",
|
|
689
|
+
children: o
|
|
690
|
+
}), t[2] = o, t[3] = c);
|
|
691
|
+
let l;
|
|
692
|
+
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;
|
|
693
|
+
}
|
|
694
|
+
function Ve(e) {
|
|
695
|
+
let t = i(13), { values: n, labels: r, onAllChipToggle: a, onAllDelete: o } = e;
|
|
696
|
+
if (n.length <= 1) return null;
|
|
697
|
+
let s = n.some(He) ? r?.toggleAll?.active ?? $.actions.toggleAll.active : r?.toggleAll?.inactive ?? $.actions.toggleAll.inactive, c = r?.deleteAll ?? $.actions.deleteAll, l;
|
|
698
|
+
t[0] === a ? l = t[1] : (l = () => a(), t[0] = a, t[1] = l);
|
|
699
|
+
let u;
|
|
700
|
+
t[2] !== l || t[3] !== s ? (u = /* @__PURE__ */ Z(g, {
|
|
701
|
+
color: "inherit",
|
|
702
|
+
onClick: l,
|
|
703
|
+
children: s
|
|
704
|
+
}), t[2] = l, t[3] = s, t[4] = u) : u = t[4];
|
|
705
|
+
let d;
|
|
706
|
+
t[5] === o ? d = t[6] : (d = () => o(), t[5] = o, t[6] = d);
|
|
707
|
+
let f;
|
|
708
|
+
t[7] !== c || t[8] !== d ? (f = /* @__PURE__ */ Z(g, {
|
|
709
|
+
color: "error",
|
|
710
|
+
onClick: d,
|
|
711
|
+
children: c
|
|
712
|
+
}), t[7] = c, t[8] = d, t[9] = f) : f = t[9];
|
|
713
|
+
let p;
|
|
714
|
+
return t[10] !== u || t[11] !== f ? (p = /* @__PURE__ */ Q(h, { children: [u, f] }), t[10] = u, t[11] = f, t[12] = p) : p = t[12], p;
|
|
715
|
+
}
|
|
716
|
+
function He(e) {
|
|
717
|
+
return e.visible;
|
|
718
|
+
}
|
|
719
|
+
//#endregion
|
|
720
|
+
//#region src/components/lasso-tool/geometry-toolbar.tsx
|
|
721
|
+
var Ue = 18, We = {
|
|
722
|
+
display: "flex",
|
|
723
|
+
flexDirection: "row",
|
|
724
|
+
alignItems: "center",
|
|
725
|
+
width: "fit-content",
|
|
726
|
+
gap: ({ spacing: e }) => e(.5),
|
|
727
|
+
p: ({ spacing: e }) => e(.5),
|
|
728
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
729
|
+
backgroundColor: ({ palette: e }) => e.background.paper
|
|
730
|
+
}, Ge = {
|
|
731
|
+
p: ({ spacing: e }) => e(.375),
|
|
732
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
733
|
+
".MuiTouchRipple-ripple .MuiTouchRipple-child": { borderRadius: ({ spacing: e }) => e(.5) }
|
|
734
|
+
}, Ke = (e) => ({
|
|
735
|
+
...Ge,
|
|
736
|
+
color: ({ palette: t }) => e ? t.primary.main : t.text.secondary,
|
|
737
|
+
backgroundColor: e ? "rgba(3, 111, 226, 0.08)" : "transparent",
|
|
738
|
+
"&:hover": { backgroundColor: ({ palette: t }) => e ? "rgba(3, 111, 226, 0.12)" : t.action.hover }
|
|
739
|
+
});
|
|
740
|
+
function qe(e) {
|
|
741
|
+
let t = i(73), { type: n, label: r, locked: a, onToggleType: o, onRename: s, onToggleLock: c, onDelete: l, labels: f, PaperProps: p } = e, m = a !== void 0 && a, g;
|
|
742
|
+
t[0] === p ? g = t[1] : (g = p === void 0 ? {} : p, t[0] = p, t[1] = g);
|
|
743
|
+
let _, v;
|
|
744
|
+
t[2] === g ? (_ = t[3], v = t[4]) : ({sx: v, ..._} = g, t[2] = g, t[3] = _, t[4] = v);
|
|
745
|
+
let y = u(null), b = u(!1), [x, S] = d(null), [C, T] = d(), [E, D] = d(r), O = !!x, k = n === "mask" ? f?.toggleType?.draw ?? "Switch to drawing" : f?.toggleType?.mask ?? "Switch to mask", A = f?.rename ?? "Rename", j = f?.renameInput ?? A, M = m ? f?.lock?.unlock ?? "Unlock" : f?.lock?.lock ?? "Lock", N = f?.delete ?? "Delete", P;
|
|
746
|
+
t[5] === r ? P = t[6] : (P = () => {
|
|
747
|
+
b.current = !1, D(r), T(y.current?.clientWidth), S(y.current);
|
|
748
|
+
}, t[5] = r, t[6] = P);
|
|
749
|
+
let F = P, I;
|
|
750
|
+
t[7] !== E || t[8] !== r || t[9] !== s ? (I = () => {
|
|
751
|
+
if (!b.current) {
|
|
752
|
+
b.current = !0;
|
|
753
|
+
let e = E.trim();
|
|
754
|
+
e && e !== r && s(e);
|
|
755
|
+
}
|
|
756
|
+
S(null);
|
|
757
|
+
}, t[7] = E, t[8] = r, t[9] = s, t[10] = I) : I = t[10];
|
|
758
|
+
let L = I, B;
|
|
759
|
+
t[11] === Symbol.for("react.memo_cache_sentinel") ? (B = () => {
|
|
760
|
+
b.current = !0, S(null);
|
|
761
|
+
}, t[11] = B) : B = t[11];
|
|
762
|
+
let V = B, H;
|
|
763
|
+
t[12] === L ? H = t[13] : (H = (e) => {
|
|
764
|
+
e.key === "Enter" && (e.preventDefault(), L()), e.key === "Escape" && (e.preventDefault(), V());
|
|
765
|
+
}, t[12] = L, t[13] = H);
|
|
766
|
+
let U = H, K;
|
|
767
|
+
t[14] === v ? K = t[15] : (K = {
|
|
768
|
+
...We,
|
|
769
|
+
...v
|
|
770
|
+
}, t[14] = v, t[15] = K);
|
|
771
|
+
let ee = n === "mask", q = n === "mask", J;
|
|
772
|
+
t[16] !== o || t[17] !== n ? (J = () => o(n === "mask" ? "draw" : "mask"), t[16] = o, t[17] = n, t[18] = J) : J = t[18];
|
|
773
|
+
let Y;
|
|
774
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ Z(W, {
|
|
775
|
+
component: be,
|
|
776
|
+
inheritViewBox: !0,
|
|
777
|
+
sx: { fontSize: Ue }
|
|
778
|
+
}), t[19] = Y) : Y = t[19];
|
|
779
|
+
let te;
|
|
780
|
+
t[20] !== m || t[21] !== q || t[22] !== J || t[23] !== ee || t[24] !== k ? (te = /* @__PURE__ */ Z(Ye, {
|
|
781
|
+
label: k,
|
|
782
|
+
active: ee,
|
|
783
|
+
pressed: q,
|
|
784
|
+
disabled: m,
|
|
785
|
+
onClick: J,
|
|
786
|
+
icon: Y
|
|
787
|
+
}), t[20] = m, t[21] = q, t[22] = J, t[23] = ee, t[24] = k, t[25] = te) : te = t[25];
|
|
788
|
+
let X;
|
|
789
|
+
t[26] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ Z(w, {
|
|
790
|
+
orientation: "vertical",
|
|
791
|
+
flexItem: !0
|
|
792
|
+
}), t[26] = X) : X = t[26];
|
|
793
|
+
let ne;
|
|
794
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ Z(W, {
|
|
795
|
+
component: xe,
|
|
796
|
+
inheritViewBox: !0,
|
|
797
|
+
sx: { fontSize: Ue }
|
|
798
|
+
}), t[27] = ne) : ne = t[27];
|
|
799
|
+
let re;
|
|
800
|
+
t[28] !== m || t[29] !== F || t[30] !== A || t[31] !== O ? (re = /* @__PURE__ */ Z(Ye, {
|
|
801
|
+
label: A,
|
|
802
|
+
active: O,
|
|
803
|
+
disabled: m,
|
|
804
|
+
onClick: F,
|
|
805
|
+
icon: ne
|
|
806
|
+
}), t[28] = m, t[29] = F, t[30] = A, t[31] = O, t[32] = re) : re = t[32];
|
|
807
|
+
let ie;
|
|
808
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ Z(w, {
|
|
809
|
+
orientation: "vertical",
|
|
810
|
+
flexItem: !0
|
|
811
|
+
}), t[33] = ie) : ie = t[33];
|
|
812
|
+
let ae;
|
|
813
|
+
t[34] !== m || t[35] !== c ? (ae = () => c(!m), t[34] = m, t[35] = c, t[36] = ae) : ae = t[36];
|
|
814
|
+
let se;
|
|
815
|
+
t[37] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ Z(le, { sx: { fontSize: Ue } }), t[37] = se) : se = t[37];
|
|
816
|
+
let ce;
|
|
817
|
+
t[38] !== M || t[39] !== m || t[40] !== ae ? (ce = /* @__PURE__ */ Z(Ye, {
|
|
818
|
+
label: M,
|
|
819
|
+
active: m,
|
|
820
|
+
pressed: m,
|
|
821
|
+
onClick: ae,
|
|
822
|
+
icon: se
|
|
823
|
+
}), t[38] = M, t[39] = m, t[40] = ae, t[41] = ce) : ce = t[41];
|
|
824
|
+
let ue;
|
|
825
|
+
t[42] === Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ Z(w, {
|
|
826
|
+
orientation: "vertical",
|
|
827
|
+
flexItem: !0
|
|
828
|
+
}), t[42] = ue) : ue = t[42];
|
|
829
|
+
let de;
|
|
830
|
+
t[43] === Symbol.for("react.memo_cache_sentinel") ? (de = /* @__PURE__ */ Z(oe, { sx: { fontSize: Ue } }), t[43] = de) : de = t[43];
|
|
831
|
+
let fe;
|
|
832
|
+
t[44] !== N || t[45] !== m || t[46] !== l ? (fe = /* @__PURE__ */ Z(Ye, {
|
|
833
|
+
label: N,
|
|
834
|
+
disabled: m,
|
|
835
|
+
onClick: l,
|
|
836
|
+
icon: de,
|
|
837
|
+
color: "error"
|
|
838
|
+
}), t[44] = N, t[45] = m, t[46] = l, t[47] = fe) : fe = t[47];
|
|
839
|
+
let pe, me;
|
|
840
|
+
t[48] === Symbol.for("react.memo_cache_sentinel") ? (pe = {
|
|
841
|
+
vertical: "bottom",
|
|
842
|
+
horizontal: "left"
|
|
843
|
+
}, me = {
|
|
844
|
+
vertical: "top",
|
|
845
|
+
horizontal: "left"
|
|
846
|
+
}, t[48] = pe, t[49] = me) : (pe = t[48], me = t[49]);
|
|
847
|
+
let he;
|
|
848
|
+
t[50] === C ? he = t[51] : (he = { paper: { sx: {
|
|
849
|
+
width: C,
|
|
850
|
+
minWidth: 180
|
|
851
|
+
} } }, t[50] = C, t[51] = he);
|
|
852
|
+
let ge;
|
|
853
|
+
t[52] === Symbol.for("react.memo_cache_sentinel") ? (ge = { p: 1 }, t[52] = ge) : ge = t[52];
|
|
854
|
+
let _e;
|
|
855
|
+
t[53] === Symbol.for("react.memo_cache_sentinel") ? (_e = (e) => D(e.target.value), t[53] = _e) : _e = t[53];
|
|
856
|
+
let ve;
|
|
857
|
+
t[54] !== L || t[55] !== E || t[56] !== U || t[57] !== j ? (ve = /* @__PURE__ */ Z(h, {
|
|
858
|
+
sx: ge,
|
|
859
|
+
children: /* @__PURE__ */ Z(G, {
|
|
860
|
+
inputRef: Je,
|
|
861
|
+
fullWidth: !0,
|
|
862
|
+
label: j,
|
|
863
|
+
size: "small",
|
|
864
|
+
variant: "outlined",
|
|
865
|
+
value: E,
|
|
866
|
+
onChange: _e,
|
|
867
|
+
onKeyDown: U,
|
|
868
|
+
onBlur: L
|
|
869
|
+
})
|
|
870
|
+
}), t[54] = L, t[55] = E, t[56] = U, t[57] = j, t[58] = ve) : ve = t[58];
|
|
871
|
+
let ye;
|
|
872
|
+
t[59] !== x || t[60] !== L || t[61] !== O || t[62] !== he || t[63] !== ve ? (ye = /* @__PURE__ */ Z(z, {
|
|
873
|
+
open: O,
|
|
874
|
+
anchorEl: x,
|
|
875
|
+
onClose: L,
|
|
876
|
+
anchorOrigin: pe,
|
|
877
|
+
transformOrigin: me,
|
|
878
|
+
slotProps: he,
|
|
879
|
+
children: ve
|
|
880
|
+
}), t[59] = x, t[60] = L, t[61] = O, t[62] = he, t[63] = ve, t[64] = ye) : ye = t[64];
|
|
881
|
+
let $;
|
|
882
|
+
return t[65] !== _ || t[66] !== te || t[67] !== re || t[68] !== ce || t[69] !== fe || t[70] !== ye || t[71] !== K ? ($ = /* @__PURE__ */ Q(R, {
|
|
883
|
+
ref: y,
|
|
884
|
+
elevation: 6,
|
|
885
|
+
sx: K,
|
|
886
|
+
..._,
|
|
887
|
+
children: [
|
|
888
|
+
te,
|
|
889
|
+
X,
|
|
890
|
+
re,
|
|
891
|
+
ie,
|
|
892
|
+
ce,
|
|
893
|
+
ue,
|
|
894
|
+
fe,
|
|
895
|
+
ye
|
|
896
|
+
]
|
|
897
|
+
}), t[65] = _, t[66] = te, t[67] = re, t[68] = ce, t[69] = fe, t[70] = ye, t[71] = K, t[72] = $) : $ = t[72], $;
|
|
898
|
+
}
|
|
899
|
+
function Je(e) {
|
|
900
|
+
return e?.focus();
|
|
901
|
+
}
|
|
902
|
+
function Ye(e) {
|
|
903
|
+
let t = i(14), { label: r, icon: a, active: o, pressed: s, disabled: c, color: l, onClick: u } = e, d = o !== void 0 && o, f = c !== void 0 && c, p;
|
|
904
|
+
t[0] !== d || t[1] !== l ? (p = l ? Ge : Ke(d), t[0] = d, t[1] = l, t[2] = p) : p = t[2];
|
|
905
|
+
let m;
|
|
906
|
+
t[3] !== l || t[4] !== f || t[5] !== a || t[6] !== r || t[7] !== u || t[8] !== s || t[9] !== p ? (m = /* @__PURE__ */ Z("span", { children: /* @__PURE__ */ Z(k, {
|
|
907
|
+
"aria-label": r,
|
|
908
|
+
"aria-pressed": s,
|
|
909
|
+
disabled: f,
|
|
910
|
+
color: l,
|
|
911
|
+
onClick: u,
|
|
912
|
+
sx: p,
|
|
913
|
+
children: a
|
|
914
|
+
}) }), t[3] = l, t[4] = f, t[5] = a, t[6] = r, t[7] = u, t[8] = s, t[9] = p, t[10] = m) : m = t[10];
|
|
915
|
+
let h;
|
|
916
|
+
return t[11] !== r || t[12] !== m ? (h = /* @__PURE__ */ Z(n, {
|
|
917
|
+
title: r,
|
|
918
|
+
placement: "top",
|
|
919
|
+
children: m
|
|
920
|
+
}), t[11] = r, t[12] = m, t[13] = h) : h = t[13], h;
|
|
921
|
+
}
|
|
922
|
+
//#endregion
|
|
923
|
+
//#region src/components/lasso-tool/layer-filters.tsx
|
|
924
|
+
var Xe = {
|
|
925
|
+
display: "flex",
|
|
926
|
+
alignItems: "center",
|
|
927
|
+
justifyContent: "space-between",
|
|
928
|
+
gap: 1,
|
|
929
|
+
p: 2
|
|
930
|
+
}, Ze = {
|
|
931
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
932
|
+
overflow: "hidden",
|
|
933
|
+
backgroundColor: ({ palette: e }) => e.background.default
|
|
934
|
+
}, Qe = {
|
|
935
|
+
display: "flex",
|
|
936
|
+
alignItems: "center",
|
|
937
|
+
gap: 1,
|
|
938
|
+
height: 32,
|
|
939
|
+
px: 1.5,
|
|
940
|
+
color: ({ palette: e }) => e.text.secondary
|
|
941
|
+
}, $e = {
|
|
942
|
+
px: 2,
|
|
943
|
+
py: .5
|
|
944
|
+
}, et = {
|
|
945
|
+
minWidth: 0,
|
|
946
|
+
mr: 1
|
|
947
|
+
};
|
|
948
|
+
function tt(e) {
|
|
949
|
+
let t = i(82), { open: n, onClose: r, layers: a, onApply: o, labels: c, DialogProps: l } = e, u = s(), [f, p] = d(ot), [m, v] = d(""), [y, T] = d(!1);
|
|
950
|
+
n !== y && (T(n), n && (p(new Set(a.filter(at).map(it))), v("")));
|
|
951
|
+
let E = c?.title ?? "Layer Filters", D = c?.description ?? "Select the layers you want to filter with this polygon", O = c?.allSelected ?? "All selected", M = c?.empty ?? "No layers to filter", I;
|
|
952
|
+
t[0] !== f || t[1] !== a ? (I = a.length > 0 && a.every((e) => f.has(e.id)), t[0] = f, t[1] = a, t[2] = I) : I = t[2];
|
|
953
|
+
let L = I, R;
|
|
954
|
+
if (t[3] !== f || t[4] !== a) {
|
|
955
|
+
let e;
|
|
956
|
+
t[6] === f ? e = t[7] : (e = (e) => f.has(e.id), t[6] = f, t[7] = e), R = a.some(e), t[3] = f, t[4] = a, t[5] = R;
|
|
957
|
+
} else R = t[5];
|
|
958
|
+
let z = R, B;
|
|
959
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (B = (e) => p((t) => {
|
|
960
|
+
let n = new Set(t);
|
|
961
|
+
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
962
|
+
}), t[8] = B) : B = t[8];
|
|
963
|
+
let V = B, H;
|
|
964
|
+
t[9] !== L || t[10] !== a ? (H = () => p(L ? /* @__PURE__ */ new Set() : new Set(a.map(rt))), t[9] = L, t[10] = a, t[11] = H) : H = t[11];
|
|
965
|
+
let U = H, W;
|
|
966
|
+
t[12] !== f || t[13] !== a || t[14] !== o || t[15] !== r ? (W = () => {
|
|
967
|
+
o(a.filter((e) => f.has(e.id)).map(nt)), r();
|
|
968
|
+
}, t[12] = f, t[13] = a, t[14] = o, t[15] = r, t[16] = W) : W = t[16];
|
|
969
|
+
let G = W, K, ee;
|
|
970
|
+
t[17] !== a || t[18] !== m ? (K = m.trim().toLowerCase(), ee = K ? a.filter((e) => e.label.toLowerCase().includes(K)) : a, t[17] = a, t[18] = m, t[19] = K, t[20] = ee) : (K = t[19], ee = t[20]);
|
|
971
|
+
let J = ee, Y;
|
|
972
|
+
t[21] === E ? Y = t[22] : (Y = /* @__PURE__ */ Z(q, {
|
|
973
|
+
variant: "subtitle1",
|
|
974
|
+
fontWeight: 500,
|
|
975
|
+
children: E
|
|
976
|
+
}), t[21] = E, t[22] = Y);
|
|
977
|
+
let te;
|
|
978
|
+
t[23] === Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ Z(ie, { fontSize: "small" }), t[23] = te) : te = t[23];
|
|
979
|
+
let ne;
|
|
980
|
+
t[24] === r ? ne = t[25] : (ne = /* @__PURE__ */ Z(k, {
|
|
981
|
+
"aria-label": "close",
|
|
982
|
+
size: "small",
|
|
983
|
+
onClick: r,
|
|
984
|
+
children: te
|
|
985
|
+
}), t[24] = r, t[25] = ne);
|
|
986
|
+
let re;
|
|
987
|
+
t[26] !== Y || t[27] !== ne ? (re = /* @__PURE__ */ Q(C, {
|
|
988
|
+
component: "div",
|
|
989
|
+
sx: Xe,
|
|
990
|
+
children: [Y, ne]
|
|
991
|
+
}), t[26] = Y, t[27] = ne, t[28] = re) : re = t[28];
|
|
992
|
+
let ae;
|
|
993
|
+
t[29] === Symbol.for("react.memo_cache_sentinel") ? (ae = {
|
|
994
|
+
pt: 1,
|
|
995
|
+
px: 2,
|
|
996
|
+
pb: 3
|
|
997
|
+
}, t[29] = ae) : ae = t[29];
|
|
998
|
+
let oe;
|
|
999
|
+
t[30] === Symbol.for("react.memo_cache_sentinel") ? (oe = { mb: 2 }, t[30] = oe) : oe = t[30];
|
|
1000
|
+
let se;
|
|
1001
|
+
t[31] === D ? se = t[32] : (se = /* @__PURE__ */ Z(q, {
|
|
1002
|
+
variant: "body2",
|
|
1003
|
+
color: "text.secondary",
|
|
1004
|
+
sx: oe,
|
|
1005
|
+
children: D
|
|
1006
|
+
}), t[31] = D, t[32] = se);
|
|
1007
|
+
let ce;
|
|
1008
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Z(pe, { sx: { fontSize: 18 } }), t[33] = ce) : ce = t[33];
|
|
1009
|
+
let le = c?.search ?? "Search layers", ue = c?.search ?? "Search layers", de;
|
|
1010
|
+
t[34] === ue ? de = t[35] : (de = { "aria-label": ue }, t[34] = ue, t[35] = de);
|
|
1011
|
+
let fe, me;
|
|
1012
|
+
t[36] === Symbol.for("react.memo_cache_sentinel") ? (fe = (e) => v(e.target.value), me = {
|
|
1013
|
+
fontSize: 13,
|
|
1014
|
+
color: "text.primary"
|
|
1015
|
+
}, t[36] = fe, t[37] = me) : (fe = t[36], me = t[37]);
|
|
1016
|
+
let he;
|
|
1017
|
+
t[38] !== m || t[39] !== le || t[40] !== de ? (he = /* @__PURE__ */ Q(h, {
|
|
1018
|
+
sx: Qe,
|
|
1019
|
+
children: [ce, /* @__PURE__ */ Z(A, {
|
|
1020
|
+
fullWidth: !0,
|
|
1021
|
+
placeholder: le,
|
|
1022
|
+
inputProps: de,
|
|
1023
|
+
value: m,
|
|
1024
|
+
onChange: fe,
|
|
1025
|
+
sx: me
|
|
1026
|
+
})]
|
|
1027
|
+
}), t[38] = m, t[39] = le, t[40] = de, t[41] = he) : he = t[41];
|
|
1028
|
+
let ge;
|
|
1029
|
+
t[42] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ Z(w, {}), t[42] = ge) : ge = t[42];
|
|
1030
|
+
let _e;
|
|
1031
|
+
t[43] === Symbol.for("react.memo_cache_sentinel") ? (_e = {
|
|
1032
|
+
maxHeight: 240,
|
|
1033
|
+
overflowY: "auto",
|
|
1034
|
+
"& .MuiDivider-root": { my: 0 }
|
|
1035
|
+
}, t[43] = _e) : _e = t[43];
|
|
1036
|
+
let ve;
|
|
1037
|
+
t[44] !== L || t[45] !== O || t[46] !== u || t[47] !== K || t[48] !== z || t[49] !== U ? (ve = !K && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(N, {
|
|
1038
|
+
dense: !0,
|
|
1039
|
+
sx: $e,
|
|
1040
|
+
onClick: U,
|
|
1041
|
+
children: [/* @__PURE__ */ Z(P, {
|
|
1042
|
+
sx: et,
|
|
1043
|
+
children: /* @__PURE__ */ Z(_, {
|
|
1044
|
+
edge: "start",
|
|
1045
|
+
tabIndex: -1,
|
|
1046
|
+
disableRipple: !0,
|
|
1047
|
+
sx: { p: .5 },
|
|
1048
|
+
checked: L,
|
|
1049
|
+
indeterminate: !L && z,
|
|
1050
|
+
inputProps: { "aria-labelledby": `${u}-all` }
|
|
1051
|
+
})
|
|
1052
|
+
}), /* @__PURE__ */ Z(F, {
|
|
1053
|
+
id: `${u}-all`,
|
|
1054
|
+
primary: O,
|
|
1055
|
+
primaryTypographyProps: { variant: "body2" }
|
|
1056
|
+
})]
|
|
1057
|
+
}), /* @__PURE__ */ Z(w, {})] }), t[44] = L, t[45] = O, t[46] = u, t[47] = K, t[48] = z, t[49] = U, t[50] = ve) : ve = t[50];
|
|
1058
|
+
let ye;
|
|
1059
|
+
t[51] !== f || t[52] !== M || t[53] !== J || t[54] !== u ? (ye = J.length === 0 ? /* @__PURE__ */ Z(q, {
|
|
1060
|
+
variant: "body2",
|
|
1061
|
+
color: "text.secondary",
|
|
1062
|
+
sx: { p: 2 },
|
|
1063
|
+
children: M
|
|
1064
|
+
}) : J.map((e) => /* @__PURE__ */ Q(N, {
|
|
1065
|
+
dense: !0,
|
|
1066
|
+
sx: $e,
|
|
1067
|
+
onClick: () => V(e.id),
|
|
1068
|
+
children: [/* @__PURE__ */ Z(P, {
|
|
1069
|
+
sx: et,
|
|
1070
|
+
children: /* @__PURE__ */ Z(_, {
|
|
1071
|
+
edge: "start",
|
|
1072
|
+
tabIndex: -1,
|
|
1073
|
+
disableRipple: !0,
|
|
1074
|
+
sx: { p: .5 },
|
|
1075
|
+
checked: f.has(e.id),
|
|
1076
|
+
inputProps: { "aria-labelledby": `${u}-${e.id}` }
|
|
1077
|
+
})
|
|
1078
|
+
}), /* @__PURE__ */ Z(F, {
|
|
1079
|
+
id: `${u}-${e.id}`,
|
|
1080
|
+
primary: e.label,
|
|
1081
|
+
primaryTypographyProps: {
|
|
1082
|
+
variant: "body2",
|
|
1083
|
+
noWrap: !0,
|
|
1084
|
+
title: e.label
|
|
1085
|
+
}
|
|
1086
|
+
})]
|
|
1087
|
+
}, e.id)), t[51] = f, t[52] = M, t[53] = J, t[54] = u, t[55] = ye) : ye = t[55];
|
|
1088
|
+
let be;
|
|
1089
|
+
t[56] !== ve || t[57] !== ye ? (be = /* @__PURE__ */ Q(j, {
|
|
1090
|
+
component: "div",
|
|
1091
|
+
role: "list",
|
|
1092
|
+
disablePadding: !0,
|
|
1093
|
+
sx: _e,
|
|
1094
|
+
children: [ve, ye]
|
|
1095
|
+
}), t[56] = ve, t[57] = ye, t[58] = be) : be = t[58];
|
|
1096
|
+
let xe;
|
|
1097
|
+
t[59] !== he || t[60] !== be ? (xe = /* @__PURE__ */ Q(h, {
|
|
1098
|
+
sx: Ze,
|
|
1099
|
+
children: [
|
|
1100
|
+
he,
|
|
1101
|
+
ge,
|
|
1102
|
+
be
|
|
1103
|
+
]
|
|
1104
|
+
}), t[59] = he, t[60] = be, t[61] = xe) : xe = t[61];
|
|
1105
|
+
let $;
|
|
1106
|
+
t[62] !== se || t[63] !== xe ? ($ = /* @__PURE__ */ Q(S, {
|
|
1107
|
+
sx: ae,
|
|
1108
|
+
children: [se, xe]
|
|
1109
|
+
}), t[62] = se, t[63] = xe, t[64] = $) : $ = t[64];
|
|
1110
|
+
let Se;
|
|
1111
|
+
t[65] === Symbol.for("react.memo_cache_sentinel") ? (Se = { p: 2 }, t[65] = Se) : Se = t[65];
|
|
1112
|
+
let Ce = c?.cancel ?? "Cancel", we;
|
|
1113
|
+
t[66] !== r || t[67] !== Ce ? (we = /* @__PURE__ */ Z(g, {
|
|
1114
|
+
onClick: r,
|
|
1115
|
+
children: Ce
|
|
1116
|
+
}), t[66] = r, t[67] = Ce, t[68] = we) : we = t[68];
|
|
1117
|
+
let Te = c?.apply ?? "Apply", Ee;
|
|
1118
|
+
t[69] !== G || t[70] !== Te ? (Ee = /* @__PURE__ */ Z(g, {
|
|
1119
|
+
variant: "contained",
|
|
1120
|
+
onClick: G,
|
|
1121
|
+
children: Te
|
|
1122
|
+
}), t[69] = G, t[70] = Te, t[71] = Ee) : Ee = t[71];
|
|
1123
|
+
let De;
|
|
1124
|
+
t[72] !== we || t[73] !== Ee ? (De = /* @__PURE__ */ Q(x, {
|
|
1125
|
+
sx: Se,
|
|
1126
|
+
children: [we, Ee]
|
|
1127
|
+
}), t[72] = we, t[73] = Ee, t[74] = De) : De = t[74];
|
|
1128
|
+
let Oe;
|
|
1129
|
+
return t[75] !== l || t[76] !== r || t[77] !== n || t[78] !== re || t[79] !== $ || t[80] !== De ? (Oe = /* @__PURE__ */ Q(b, {
|
|
1130
|
+
open: n,
|
|
1131
|
+
onClose: r,
|
|
1132
|
+
maxWidth: "xs",
|
|
1133
|
+
fullWidth: !0,
|
|
1134
|
+
...l,
|
|
1135
|
+
children: [
|
|
1136
|
+
re,
|
|
1137
|
+
$,
|
|
1138
|
+
De
|
|
1139
|
+
]
|
|
1140
|
+
}), t[75] = l, t[76] = r, t[77] = n, t[78] = re, t[79] = $, t[80] = De, t[81] = Oe) : Oe = t[81], Oe;
|
|
1141
|
+
}
|
|
1142
|
+
function nt(e) {
|
|
1143
|
+
return e.id;
|
|
1144
|
+
}
|
|
1145
|
+
function rt(e) {
|
|
1146
|
+
return e.id;
|
|
1147
|
+
}
|
|
1148
|
+
function it(e) {
|
|
1149
|
+
return e.id;
|
|
1150
|
+
}
|
|
1151
|
+
function at(e) {
|
|
1152
|
+
return e.checked;
|
|
1153
|
+
}
|
|
1154
|
+
function ot() {
|
|
1155
|
+
return /* @__PURE__ */ new Set();
|
|
1156
|
+
}
|
|
1157
|
+
//#endregion
|
|
1158
|
+
//#region src/components/lasso-tool/message.tsx
|
|
1159
|
+
function st(e) {
|
|
1160
|
+
let t = i(16), { message: n, onDismiss: r, AlertProps: a, SnackbarProps: o } = e, s;
|
|
1161
|
+
t[0] === r ? s = t[1] : (s = (e, t) => t !== "clickaway" && r(), t[0] = r, t[1] = s);
|
|
1162
|
+
let c;
|
|
1163
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
1164
|
+
position: "static",
|
|
1165
|
+
transform: "none"
|
|
1166
|
+
}, t[2] = c) : c = t[2];
|
|
1167
|
+
let l = n.severity ?? "info", u;
|
|
1168
|
+
t[3] === n.title ? u = t[4] : (u = /* @__PURE__ */ Z(m, { children: n.title }), t[3] = n.title, t[4] = u);
|
|
1169
|
+
let d;
|
|
1170
|
+
t[5] !== a || t[6] !== n.action || t[7] !== n.content || t[8] !== r || t[9] !== l || t[10] !== u ? (d = /* @__PURE__ */ Q(p, {
|
|
1171
|
+
severity: l,
|
|
1172
|
+
action: n.action,
|
|
1173
|
+
onClose: r,
|
|
1174
|
+
...a,
|
|
1175
|
+
children: [u, n.content]
|
|
1176
|
+
}), 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];
|
|
1177
|
+
let f;
|
|
1178
|
+
return t[12] !== o || t[13] !== s || t[14] !== d ? (f = /* @__PURE__ */ Z(U, {
|
|
1179
|
+
open: !0,
|
|
1180
|
+
autoHideDuration: 5e3,
|
|
1181
|
+
onClose: s,
|
|
1182
|
+
sx: c,
|
|
1183
|
+
...o,
|
|
1184
|
+
children: d
|
|
1185
|
+
}), t[12] = o, t[13] = s, t[14] = d, t[15] = f) : f = t[15], f;
|
|
1186
|
+
}
|
|
1187
|
+
//#endregion
|
|
1188
|
+
//#region src/components/measurement-tools/icons.tsx
|
|
1189
|
+
function ct(e) {
|
|
1190
|
+
let t = i(3), n;
|
|
1191
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
1192
|
+
fill: "currentColor",
|
|
1193
|
+
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"
|
|
1194
|
+
}), t[0] = n) : n = t[0];
|
|
1195
|
+
let r;
|
|
1196
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
1197
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1198
|
+
viewBox: "0 0 18 18",
|
|
1199
|
+
fill: "currentColor",
|
|
1200
|
+
...e,
|
|
1201
|
+
children: n
|
|
1202
|
+
}), t[1] = e, t[2] = r), r;
|
|
1203
|
+
}
|
|
1204
|
+
function lt(e) {
|
|
1205
|
+
let t = i(3), n;
|
|
1206
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
1207
|
+
fill: "currentColor",
|
|
1208
|
+
fillRule: "evenodd",
|
|
1209
|
+
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",
|
|
1210
|
+
clipRule: "evenodd"
|
|
1211
|
+
}), t[0] = n) : n = t[0];
|
|
1212
|
+
let r;
|
|
1213
|
+
return t[1] === e ? r = t[2] : (r = /* @__PURE__ */ Z("svg", {
|
|
1214
|
+
fill: "none",
|
|
1215
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1216
|
+
viewBox: "0 0 18 18",
|
|
1217
|
+
...e,
|
|
1218
|
+
children: n
|
|
1219
|
+
}), t[1] = e, t[2] = r), r;
|
|
1220
|
+
}
|
|
1221
|
+
function ut(e) {
|
|
1222
|
+
let t = i(4), n, r;
|
|
1223
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Z("path", {
|
|
1224
|
+
fill: "currentColor",
|
|
1225
|
+
fillRule: "evenodd",
|
|
1226
|
+
d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z",
|
|
1227
|
+
clipRule: "evenodd"
|
|
1228
|
+
}), r = /* @__PURE__ */ Z("path", {
|
|
1229
|
+
fill: "#2C3032",
|
|
1230
|
+
fillRule: "evenodd",
|
|
1231
|
+
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",
|
|
1232
|
+
clipRule: "evenodd"
|
|
1233
|
+
}), t[0] = n, t[1] = r) : (n = t[0], r = t[1]);
|
|
1234
|
+
let a;
|
|
1235
|
+
return t[2] === e ? a = t[3] : (a = /* @__PURE__ */ Q("svg", {
|
|
1236
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1237
|
+
viewBox: "0 0 18 18",
|
|
1238
|
+
...e,
|
|
1239
|
+
children: [n, r]
|
|
1240
|
+
}), t[2] = e, t[3] = a), a;
|
|
1241
|
+
}
|
|
1242
|
+
//#endregion
|
|
1243
|
+
//#region src/components/measurement-tools/const.tsx
|
|
1244
|
+
var dt = {
|
|
1245
|
+
action: { tooltip: {
|
|
1246
|
+
active: "Click on the map to start measuring",
|
|
1247
|
+
inactive: "Click on the map to start measuring"
|
|
1248
|
+
} },
|
|
1249
|
+
chip: { tooltip: {
|
|
1250
|
+
active: "Hide measure",
|
|
1251
|
+
inactive: "Show measure"
|
|
1252
|
+
} },
|
|
1253
|
+
options: {
|
|
1254
|
+
mode: {
|
|
1255
|
+
title: "Choose a measuring tool",
|
|
1256
|
+
options: {
|
|
1257
|
+
distance: "Measure distance",
|
|
1258
|
+
buffer: "Buffer distance",
|
|
1259
|
+
area: "Area"
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
units: {
|
|
1263
|
+
title: "Unit of measurement",
|
|
1264
|
+
modal: {
|
|
1265
|
+
title: "Map Measurement Unit",
|
|
1266
|
+
subtitle: "Select the unit of measurement for your measurements",
|
|
1267
|
+
apply: "Save",
|
|
1268
|
+
options: {
|
|
1269
|
+
metric: {
|
|
1270
|
+
title: "Meters and Kilometers",
|
|
1271
|
+
options: {
|
|
1272
|
+
"m-km": "Auto",
|
|
1273
|
+
kilometer: "Kilometers",
|
|
1274
|
+
meter: "Meter",
|
|
1275
|
+
centimeter: "Centimeter",
|
|
1276
|
+
milimeter: "Milimeter"
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
imperial: {
|
|
1280
|
+
title: "Feet and Miles",
|
|
1281
|
+
options: {
|
|
1282
|
+
"ft-mi": "Auto",
|
|
1283
|
+
mile: "Mile",
|
|
1284
|
+
feet: "Feet",
|
|
1285
|
+
yard: "Yard"
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}, ft = {
|
|
1293
|
+
"m-km": { short: "m-km" },
|
|
1294
|
+
kilometer: { short: "km" },
|
|
1295
|
+
meter: { short: "m" },
|
|
1296
|
+
centimeter: { short: "cm" },
|
|
1297
|
+
milimeter: { short: "mm" },
|
|
1298
|
+
"ft-mi": { short: "ft-mi" },
|
|
1299
|
+
mile: { short: "mi" },
|
|
1300
|
+
yard: { short: "yd" },
|
|
1301
|
+
feet: { short: "ft" }
|
|
1302
|
+
}, pt = {
|
|
1303
|
+
distance: { icon: /* @__PURE__ */ Z(ct, {}) },
|
|
1304
|
+
buffer: { icon: /* @__PURE__ */ Z(lt, {}) },
|
|
1305
|
+
area: { icon: /* @__PURE__ */ Z(ut, {}) }
|
|
1306
|
+
}, mt = {
|
|
1307
|
+
container: {
|
|
1308
|
+
display: "flex",
|
|
1309
|
+
flexDirection: "row",
|
|
1310
|
+
alignItems: "center",
|
|
1311
|
+
justifyContent: "flex-start",
|
|
1312
|
+
gap: ({ spacing: e }) => e(1),
|
|
1313
|
+
overflow: "hidden",
|
|
1314
|
+
width: "fit-content"
|
|
1315
|
+
},
|
|
1316
|
+
actions: { icon: {
|
|
1317
|
+
width: ({ spacing: e }) => e(4),
|
|
1318
|
+
height: ({ spacing: e }) => e(4),
|
|
1319
|
+
borderRadius: 0,
|
|
1320
|
+
".MuiTouchRipple-ripple .MuiTouchRipple-child": { borderRadius: 0 }
|
|
1321
|
+
} },
|
|
1322
|
+
options: {
|
|
1323
|
+
menu: { marginTop: ({ spacing: e }) => e(1) },
|
|
1324
|
+
icon: { width: ({ spacing: e }) => e(3) },
|
|
1325
|
+
title: {
|
|
1326
|
+
paddingX: ({ spacing: e }) => e(2),
|
|
1327
|
+
paddingY: ({ spacing: e }) => e(.5)
|
|
1328
|
+
},
|
|
1329
|
+
icons: { color: ({ palette: e }) => e.text.primary },
|
|
1330
|
+
tag: {
|
|
1331
|
+
borderRadius: ({ spacing: e }) => e(.25),
|
|
1332
|
+
border: "1px solid",
|
|
1333
|
+
borderColor: ({ palette: e }) => e.primary.main,
|
|
1334
|
+
paddingX: ({ spacing: e }) => e(.5),
|
|
1335
|
+
color: ({ palette: e }) => e.primary.main,
|
|
1336
|
+
backgroundColor: ({ palette: e }) => J(e.primary.main, .08)
|
|
1337
|
+
},
|
|
1338
|
+
modal: {
|
|
1339
|
+
toggle: {
|
|
1340
|
+
boxShadow: "none",
|
|
1341
|
+
backgroundColor: "#F8F9F9",
|
|
1342
|
+
padding: ({ spacing: e }) => e(.5),
|
|
1343
|
+
marginTop: ({ spacing: e }) => e(2),
|
|
1344
|
+
marginBottom: ({ spacing: e }) => e(1),
|
|
1345
|
+
".MuiToggleButtonGroup-grouped": {
|
|
1346
|
+
typography: "caption",
|
|
1347
|
+
fontWeight: 500,
|
|
1348
|
+
margin: 0,
|
|
1349
|
+
"&:first-of-type:not(.MuiDivider-root)": { marginLeft: 0 }
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
subtitle: {
|
|
1353
|
+
typography: "body2",
|
|
1354
|
+
color: ({ palette: e }) => e.text.secondary
|
|
1355
|
+
},
|
|
1356
|
+
optionsGroup: {
|
|
1357
|
+
marginLeft: ({ spacing: e }) => e(1),
|
|
1358
|
+
typography: "body2"
|
|
1359
|
+
},
|
|
1360
|
+
title: {
|
|
1361
|
+
display: "flex",
|
|
1362
|
+
justifyContent: "space-between",
|
|
1363
|
+
alignItems: "center",
|
|
1364
|
+
padding: ({ spacing: e }) => e(2)
|
|
1365
|
+
},
|
|
1366
|
+
content: {
|
|
1367
|
+
paddingX: ({ spacing: e }) => e(2),
|
|
1368
|
+
minWidth: ({ spacing: e }) => e(50)
|
|
1369
|
+
},
|
|
1370
|
+
actions: { paddingX: ({ spacing: e }) => e(2) }
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
chip: {
|
|
1374
|
+
chip: { marginRight: ({ spacing: e }) => e(.5) },
|
|
1375
|
+
disabled: { opacity: ({ palette: e }) => e.action.disabledOpacity }
|
|
1376
|
+
}
|
|
1377
|
+
}, ht = {};
|
|
1378
|
+
function gt(e) {
|
|
1379
|
+
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: g } = e, _ = a === void 0 ? dt : a, v = s === void 0 ? pt : s, y = c === void 0 ? ft : c, b = u === void 0 ? ht : u, x, S;
|
|
1380
|
+
t[0] === b ? (x = t[1], S = t[2]) : ({sx: S, ...x} = b, t[0] = b, t[1] = x, t[2] = S);
|
|
1381
|
+
let C;
|
|
1382
|
+
t[3] === p ? C = t[4] : (C = (e) => p(!!e), t[3] = p, t[4] = C);
|
|
1383
|
+
let w = C, T;
|
|
1384
|
+
t[5] !== o || t[6] !== v ? (T = (0, me.default)(o, v), t[5] = o, t[6] = v, t[7] = T) : T = t[7];
|
|
1385
|
+
let E = T, D = (l ?? "") in E, O;
|
|
1386
|
+
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];
|
|
1387
|
+
let k = O, A = E[k], j = d[k], M;
|
|
1388
|
+
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];
|
|
1389
|
+
let N = M[k], P;
|
|
1390
|
+
if (t[16] !== N || t[17] !== y) {
|
|
1391
|
+
let e;
|
|
1392
|
+
t[19] === y ? e = t[20] : (e = (e) => ({
|
|
1393
|
+
...e,
|
|
1394
|
+
...y[e.value]
|
|
1395
|
+
}), t[19] = y, t[20] = e), P = N.map(e), t[16] = N, t[17] = y, t[18] = P;
|
|
1396
|
+
} else P = t[18];
|
|
1397
|
+
let F = P, I;
|
|
1398
|
+
t[21] === S ? I = t[22] : (I = {
|
|
1399
|
+
...mt.container,
|
|
1400
|
+
...S
|
|
1401
|
+
}, t[21] = S, t[22] = I);
|
|
1402
|
+
let L = _?.action, z = A?.icon, B;
|
|
1403
|
+
t[23] !== r || t[24] !== n || t[25] !== w || t[26] !== L || t[27] !== z ? (B = /* @__PURE__ */ Z(_t, {
|
|
1404
|
+
actionProps: r,
|
|
1405
|
+
labels: L,
|
|
1406
|
+
enabled: n,
|
|
1407
|
+
onActionToggle: w,
|
|
1408
|
+
children: z
|
|
1409
|
+
}), t[23] = r, t[24] = n, t[25] = w, t[26] = L, t[27] = z, t[28] = B) : B = t[28];
|
|
1410
|
+
let V = _?.options, H;
|
|
1411
|
+
t[29] !== F || t[30] !== E || t[31] !== k || t[32] !== m || t[33] !== g || t[34] !== V || t[35] !== f ? (H = /* @__PURE__ */ Z(vt, {
|
|
1412
|
+
labels: V,
|
|
1413
|
+
modes: E,
|
|
1414
|
+
modeSelected: k,
|
|
1415
|
+
units: F,
|
|
1416
|
+
unitSelected: f,
|
|
1417
|
+
onChangeMode: m,
|
|
1418
|
+
onChangeUnit: g
|
|
1419
|
+
}), t[29] = F, t[30] = E, t[31] = k, t[32] = m, t[33] = g, t[34] = V, t[35] = f, t[36] = H) : H = t[36];
|
|
1420
|
+
let U;
|
|
1421
|
+
t[37] !== B || t[38] !== H ? (U = /* @__PURE__ */ Q(h, { children: [B, H] }), t[37] = B, t[38] = H, t[39] = U) : U = t[39];
|
|
1422
|
+
let W;
|
|
1423
|
+
return t[40] !== x || t[41] !== I || t[42] !== U ? (W = /* @__PURE__ */ Z(R, {
|
|
1424
|
+
sx: I,
|
|
1425
|
+
...x,
|
|
1426
|
+
children: U
|
|
1427
|
+
}), t[40] = x, t[41] = I, t[42] = U, t[43] = W) : W = t[43], W;
|
|
1428
|
+
}
|
|
1429
|
+
function _t(e) {
|
|
1430
|
+
let t = i(12), { actionProps: r, labels: a, enabled: o, children: s, onActionToggle: c } = e, l = o ? "active" : "inactive", u = a?.tooltip?.[l] ?? dt.action.tooltip[l], d = r?.TooltipProps, f;
|
|
1431
|
+
t[0] !== o || t[1] !== c ? (f = () => c(!o), t[0] = o, t[1] = c, t[2] = f) : f = t[2];
|
|
1432
|
+
let p;
|
|
1433
|
+
t[3] !== u || t[4] !== s || t[5] !== o || t[6] !== f ? (p = /* @__PURE__ */ Z(K, {
|
|
1434
|
+
value: "toggle",
|
|
1435
|
+
sx: mt.actions.icon,
|
|
1436
|
+
onClick: f,
|
|
1437
|
+
"aria-label": u,
|
|
1438
|
+
selected: o,
|
|
1439
|
+
children: s
|
|
1440
|
+
}), t[3] = u, t[4] = s, t[5] = o, t[6] = f, t[7] = p) : p = t[7];
|
|
1441
|
+
let m;
|
|
1442
|
+
return t[8] !== u || t[9] !== d || t[10] !== p ? (m = /* @__PURE__ */ Z(n, {
|
|
1443
|
+
title: u,
|
|
1444
|
+
placement: "right",
|
|
1445
|
+
...d,
|
|
1446
|
+
children: p
|
|
1447
|
+
}), t[8] = u, t[9] = d, t[10] = p, t[11] = m) : m = t[11], m;
|
|
1448
|
+
}
|
|
1449
|
+
function vt(e) {
|
|
1450
|
+
let t = i(41), { modes: n, modeSelected: r, units: a, unitSelected: o, labels: s, onChangeMode: c, onChangeUnit: l } = e, [u, f] = d(null), [p, m] = d(!1), h;
|
|
1451
|
+
t[0] === n ? h = t[1] : (h = Object.values(n), t[0] = n, t[1] = h);
|
|
1452
|
+
let g = h, _;
|
|
1453
|
+
t[2] === a ? _ = t[3] : (_ = Object.values(a), t[2] = a, t[3] = _);
|
|
1454
|
+
let v = _;
|
|
1455
|
+
if (!(g.length > 1 || v.length > 1)) return null;
|
|
1456
|
+
let y = !!u, b;
|
|
1457
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (b = (e) => {
|
|
1458
|
+
f(e.currentTarget);
|
|
1459
|
+
}, t[4] = b) : b = t[4];
|
|
1460
|
+
let x = b, S;
|
|
1461
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (S = () => {
|
|
1462
|
+
f(null);
|
|
1463
|
+
}, t[5] = S) : S = t[5];
|
|
1464
|
+
let C = S, T;
|
|
1465
|
+
t[6] === c ? T = t[7] : (T = (e, t) => {
|
|
1466
|
+
e.preventDefault(), c(t.value), C();
|
|
1467
|
+
}, t[6] = c, t[7] = T);
|
|
1468
|
+
let E = T, D;
|
|
1469
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
1470
|
+
m(!0);
|
|
1471
|
+
}, t[8] = D) : D = t[8];
|
|
1472
|
+
let O = D, A;
|
|
1473
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
1474
|
+
m(!1);
|
|
1475
|
+
}, t[9] = A) : A = t[9];
|
|
1476
|
+
let j = A, M;
|
|
1477
|
+
t[10] === l ? M = t[11] : (M = (e) => {
|
|
1478
|
+
j(), l(e);
|
|
1479
|
+
}, t[10] = l, t[11] = M);
|
|
1480
|
+
let N = M, R = s?.mode?.title ?? dt.options.mode.title, z = s?.units?.title ?? dt.options.units.title, B = g.length > 1 && v.length > 1, V;
|
|
1481
|
+
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];
|
|
1482
|
+
let H = V, U;
|
|
1483
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ Z(k, {
|
|
1484
|
+
sx: mt.options.icon,
|
|
1485
|
+
onClick: x,
|
|
1486
|
+
children: /* @__PURE__ */ Z(re, {})
|
|
1487
|
+
}), t[15] = U) : U = t[15];
|
|
1488
|
+
let G;
|
|
1489
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (G = {
|
|
1490
|
+
"aria-labelledby": "basic-button",
|
|
1491
|
+
sx: mt.options.menu
|
|
1492
|
+
}, t[16] = G) : G = t[16];
|
|
1493
|
+
let K;
|
|
1494
|
+
t[17] !== E || t[18] !== s?.mode?.options || t[19] !== r || t[20] !== R || t[21] !== g ? (K = g.length > 1 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(q, {
|
|
1495
|
+
variant: "subtitle2",
|
|
1496
|
+
color: "text.secondary",
|
|
1497
|
+
sx: mt.options.title,
|
|
1498
|
+
children: R
|
|
1499
|
+
}), g.map((e) => {
|
|
1500
|
+
let t = (s?.mode?.options ?? dt.options.mode.options)[e.value];
|
|
1501
|
+
return /* @__PURE__ */ Q(L, {
|
|
1502
|
+
onClick: (t) => E(t, e),
|
|
1503
|
+
selected: e.value === r,
|
|
1504
|
+
children: [/* @__PURE__ */ Z(P, {
|
|
1505
|
+
sx: mt.options.icons,
|
|
1506
|
+
children: /* @__PURE__ */ Z(W, { children: e.icon })
|
|
1507
|
+
}), /* @__PURE__ */ Z(F, { children: t })]
|
|
1508
|
+
}, e.value);
|
|
1509
|
+
})] }), t[17] = E, t[18] = s?.mode?.options, t[19] = r, t[20] = R, t[21] = g, t[22] = K) : K = t[22];
|
|
1510
|
+
let ee;
|
|
1511
|
+
t[23] === B ? ee = t[24] : (ee = B && /* @__PURE__ */ Z(w, {}), t[23] = B, t[24] = ee);
|
|
1512
|
+
let J;
|
|
1513
|
+
t[25] !== N || t[26] !== s || t[27] !== p || t[28] !== H || t[29] !== z || t[30] !== a || t[31] !== v.length ? (J = v.length > 1 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(L, {
|
|
1514
|
+
onClick: O,
|
|
1515
|
+
children: [/* @__PURE__ */ Z(F, { children: z }), /* @__PURE__ */ Z(q, {
|
|
1516
|
+
variant: "caption",
|
|
1517
|
+
fontWeight: 500,
|
|
1518
|
+
sx: mt.options.tag,
|
|
1519
|
+
children: H.short
|
|
1520
|
+
})]
|
|
1521
|
+
}), /* @__PURE__ */ Z(yt, {
|
|
1522
|
+
open: p,
|
|
1523
|
+
labels: s,
|
|
1524
|
+
units: a,
|
|
1525
|
+
unitSelectedValue: H,
|
|
1526
|
+
onClose: j,
|
|
1527
|
+
onSubmit: N
|
|
1528
|
+
})] }), t[25] = N, t[26] = s, t[27] = p, t[28] = H, t[29] = z, t[30] = a, t[31] = v.length, t[32] = J) : J = t[32];
|
|
1529
|
+
let Y;
|
|
1530
|
+
t[33] !== K || t[34] !== ee || t[35] !== J ? (Y = /* @__PURE__ */ Q("div", { children: [
|
|
1531
|
+
K,
|
|
1532
|
+
ee,
|
|
1533
|
+
J
|
|
1534
|
+
] }), t[33] = K, t[34] = ee, t[35] = J, t[36] = Y) : Y = t[36];
|
|
1535
|
+
let te;
|
|
1536
|
+
return t[37] !== u || t[38] !== y || t[39] !== Y ? (te = /* @__PURE__ */ Q(X, { children: [U, /* @__PURE__ */ Z(I, {
|
|
1537
|
+
id: "measurement-menu",
|
|
1538
|
+
anchorEl: u,
|
|
1539
|
+
open: y,
|
|
1540
|
+
onClose: C,
|
|
1541
|
+
MenuListProps: G,
|
|
1542
|
+
children: Y
|
|
1543
|
+
})] }), t[37] = u, t[38] = y, t[39] = Y, t[40] = te) : te = t[40], te;
|
|
1544
|
+
}
|
|
1545
|
+
function yt(e) {
|
|
1546
|
+
let t = i(48), { open: n, labels: r, units: a, unitSelectedValue: o, onClose: s, onSubmit: c } = e, [l, u] = d("metric"), f;
|
|
1547
|
+
if (t[0] !== l || t[1] !== a) {
|
|
1548
|
+
let e;
|
|
1549
|
+
t[3] === l ? e = t[4] : (e = (e) => e.system === l, t[3] = l, t[4] = e), f = a.filter(e), t[0] = l, t[1] = a, t[2] = f;
|
|
1550
|
+
} else f = t[2];
|
|
1551
|
+
let p = f, m;
|
|
1552
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (m = (e, t) => {
|
|
1553
|
+
u(t);
|
|
1554
|
+
}, t[5] = m) : m = t[5];
|
|
1555
|
+
let _ = m, v = r?.units?.modal?.options ?? dt.options.units.modal.options, y = v[l].options, w = r?.units?.modal?.title ?? dt.options.units.modal.title, T = r?.units?.modal?.subtitle ?? dt.options.units.modal.subtitle, O = r?.units?.modal?.apply ?? dt.options.units.modal.apply, A = o.system === l ? o : p[0], j;
|
|
1556
|
+
t[6] === c ? j = t[7] : (j = {
|
|
1557
|
+
component: "form",
|
|
1558
|
+
onSubmit: (e) => {
|
|
1559
|
+
e.preventDefault();
|
|
1560
|
+
let t = new FormData(e.currentTarget);
|
|
1561
|
+
c(t.get("unit-value"));
|
|
1562
|
+
}
|
|
1563
|
+
}, t[6] = c, t[7] = j);
|
|
1564
|
+
let M;
|
|
1565
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ Z(ie, {}), t[8] = M) : M = t[8];
|
|
1566
|
+
let N;
|
|
1567
|
+
t[9] === s ? N = t[10] : (N = /* @__PURE__ */ Z(k, {
|
|
1568
|
+
onClick: s,
|
|
1569
|
+
children: M
|
|
1570
|
+
}), t[9] = s, t[10] = N);
|
|
1571
|
+
let P;
|
|
1572
|
+
t[11] !== w || t[12] !== N ? (P = /* @__PURE__ */ Q(C, {
|
|
1573
|
+
sx: mt.options.modal.title,
|
|
1574
|
+
children: [w, N]
|
|
1575
|
+
}), t[11] = w, t[12] = N, t[13] = P) : P = t[13];
|
|
1576
|
+
let F;
|
|
1577
|
+
t[14] === T ? F = t[15] : (F = /* @__PURE__ */ Z(q, {
|
|
1578
|
+
sx: mt.options.modal.subtitle,
|
|
1579
|
+
children: T
|
|
1580
|
+
}), t[14] = T, t[15] = F);
|
|
1581
|
+
let I;
|
|
1582
|
+
t[16] === v.metric.title ? I = t[17] : (I = /* @__PURE__ */ Z(K, {
|
|
1583
|
+
value: "metric",
|
|
1584
|
+
children: v.metric.title
|
|
1585
|
+
}), t[16] = v.metric.title, t[17] = I);
|
|
1586
|
+
let L;
|
|
1587
|
+
t[18] === v.imperial.title ? L = t[19] : (L = /* @__PURE__ */ Z(K, {
|
|
1588
|
+
value: "imperial",
|
|
1589
|
+
children: v.imperial.title
|
|
1590
|
+
}), t[18] = v.imperial.title, t[19] = L);
|
|
1591
|
+
let R;
|
|
1592
|
+
t[20] !== l || t[21] !== I || t[22] !== L ? (R = /* @__PURE__ */ Q(ee, {
|
|
1593
|
+
color: "primary",
|
|
1594
|
+
value: l,
|
|
1595
|
+
exclusive: !0,
|
|
1596
|
+
fullWidth: !0,
|
|
1597
|
+
onChange: _,
|
|
1598
|
+
"aria-label": "system",
|
|
1599
|
+
sx: mt.options.modal.toggle,
|
|
1600
|
+
children: [I, L]
|
|
1601
|
+
}), t[20] = l, t[21] = I, t[22] = L, t[23] = R) : R = t[23];
|
|
1602
|
+
let z = A?.value, H = A?.value, U;
|
|
1603
|
+
if (t[24] !== p || t[25] !== y) {
|
|
1604
|
+
let e;
|
|
1605
|
+
t[27] === y ? e = t[28] : (e = (e) => {
|
|
1606
|
+
let t = y[e.value];
|
|
1607
|
+
return /* @__PURE__ */ Z(D, {
|
|
1608
|
+
value: e.value,
|
|
1609
|
+
control: /* @__PURE__ */ Z(B, {}),
|
|
1610
|
+
label: t
|
|
1611
|
+
}, e.value);
|
|
1612
|
+
}, t[27] = y, t[28] = e), U = p.map(e), t[24] = p, t[25] = y, t[26] = U;
|
|
1613
|
+
} else U = t[26];
|
|
1614
|
+
let W;
|
|
1615
|
+
t[29] !== H || t[30] !== U ? (W = /* @__PURE__ */ Z(V, {
|
|
1616
|
+
"aria-labelledby": "unit-value",
|
|
1617
|
+
defaultValue: H,
|
|
1618
|
+
name: "unit-value",
|
|
1619
|
+
sx: mt.options.modal.optionsGroup,
|
|
1620
|
+
children: U
|
|
1621
|
+
}), t[29] = H, t[30] = U, t[31] = W) : W = t[31];
|
|
1622
|
+
let G;
|
|
1623
|
+
t[32] !== z || t[33] !== W ? (G = /* @__PURE__ */ Z(E, { children: W }, z), t[32] = z, t[33] = W, t[34] = G) : G = t[34];
|
|
1624
|
+
let J;
|
|
1625
|
+
t[35] !== R || t[36] !== G || t[37] !== F ? (J = /* @__PURE__ */ Q(S, {
|
|
1626
|
+
sx: mt.options.modal.content,
|
|
1627
|
+
children: [
|
|
1628
|
+
F,
|
|
1629
|
+
R,
|
|
1630
|
+
G
|
|
1631
|
+
]
|
|
1632
|
+
}), t[35] = R, t[36] = G, t[37] = F, t[38] = J) : J = t[38];
|
|
1633
|
+
let Y;
|
|
1634
|
+
t[39] === O ? Y = t[40] : (Y = /* @__PURE__ */ Z(x, {
|
|
1635
|
+
sx: mt.options.modal.actions,
|
|
1636
|
+
children: /* @__PURE__ */ Z(g, {
|
|
1637
|
+
variant: "contained",
|
|
1638
|
+
type: "submit",
|
|
1639
|
+
children: O
|
|
1640
|
+
})
|
|
1641
|
+
}), t[39] = O, t[40] = Y);
|
|
1642
|
+
let te;
|
|
1643
|
+
return t[41] !== s || t[42] !== n || t[43] !== J || t[44] !== Y || t[45] !== j || t[46] !== P ? (te = /* @__PURE__ */ Q(b, {
|
|
1644
|
+
open: n,
|
|
1645
|
+
component: h,
|
|
1646
|
+
onClose: s,
|
|
1647
|
+
maxWidth: "xs",
|
|
1648
|
+
PaperProps: j,
|
|
1649
|
+
children: [
|
|
1650
|
+
P,
|
|
1651
|
+
J,
|
|
1652
|
+
Y
|
|
1653
|
+
]
|
|
1654
|
+
}), t[41] = s, t[42] = n, t[43] = J, t[44] = Y, t[45] = j, t[46] = P, t[47] = te) : te = t[47], te;
|
|
1655
|
+
}
|
|
1656
|
+
//#endregion
|
|
1657
|
+
//#region src/components/geolocation-controls/const.ts
|
|
1658
|
+
var bt = {
|
|
1659
|
+
enabled: "Show your current location",
|
|
1660
|
+
disabled: "Location unavailable"
|
|
1661
|
+
};
|
|
1662
|
+
//#endregion
|
|
1663
|
+
//#region src/components/geolocation-controls/geolocation-controls.tsx
|
|
1664
|
+
function xt(e) {
|
|
1665
|
+
let t = i(27), { disabled: r, labels: s, PaperProps: c, TooltipProps: d, watch: f, onChange: p, onError: m } = e, h = u(null), g = "geolocation" in navigator, [_, v] = l(St, g), y;
|
|
1666
|
+
t[0] === m ? y = t[1] : (y = (e) => {
|
|
1667
|
+
m?.(e);
|
|
1668
|
+
}, t[0] = m, t[1] = y);
|
|
1669
|
+
let b = o(y), x;
|
|
1670
|
+
t[2] === b ? x = t[3] : (x = () => (g && navigator.permissions.query({ name: "geolocation" }).then((e) => {
|
|
1671
|
+
v(e.state === "granted" ? "granted" : "denied"), e.onchange = () => {
|
|
1672
|
+
v(e.state === "granted" ? "granted" : "denied");
|
|
1673
|
+
};
|
|
1674
|
+
}).catch((e) => {
|
|
1675
|
+
v("denied"), b(e);
|
|
1676
|
+
}), () => {
|
|
1677
|
+
h.current && navigator.geolocation.clearWatch(h.current);
|
|
1678
|
+
}), t[2] = b, t[3] = x);
|
|
1679
|
+
let S;
|
|
1680
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (S = [g], t[4] = S) : S = t[4], a(x, S);
|
|
1681
|
+
let C;
|
|
1682
|
+
t[5] === p ? C = t[6] : (C = (e) => {
|
|
1683
|
+
p(e.coords);
|
|
1684
|
+
}, t[5] = p, t[6] = C);
|
|
1685
|
+
let w = C, T;
|
|
1686
|
+
t[7] === m ? T = t[8] : (T = (e) => {
|
|
1687
|
+
v("denied"), m?.(e);
|
|
1688
|
+
}, t[7] = m, t[8] = T);
|
|
1689
|
+
let E = T, D;
|
|
1690
|
+
t[9] !== E || t[10] !== w || t[11] !== f ? (D = () => {
|
|
1691
|
+
if (h.current && navigator.geolocation.clearWatch(h.current), f) {
|
|
1692
|
+
h.current = navigator.geolocation.watchPosition(w, E);
|
|
1693
|
+
return;
|
|
1694
|
+
}
|
|
1695
|
+
navigator.geolocation.getCurrentPosition(w, E);
|
|
1696
|
+
}, t[9] = E, t[10] = w, t[11] = f, t[12] = D) : D = t[12];
|
|
1697
|
+
let O = D, A = (s?.tooltip ?? bt)[_ ? "enabled" : "disabled"], j = s?.ariaLabel ?? "geolocation", M = !g || r, N;
|
|
1698
|
+
t[13] === _ ? N = t[14] : (N = Z(_ ? de : ce, {}), t[13] = _, t[14] = N);
|
|
1699
|
+
let P;
|
|
1700
|
+
t[15] !== O || t[16] !== N || t[17] !== j || t[18] !== M ? (P = /* @__PURE__ */ Z(k, {
|
|
1701
|
+
onClick: O,
|
|
1702
|
+
"aria-label": j,
|
|
1703
|
+
disabled: M,
|
|
1704
|
+
children: N
|
|
1705
|
+
}), t[15] = O, t[16] = N, t[17] = j, t[18] = M, t[19] = P) : P = t[19];
|
|
1706
|
+
let F;
|
|
1707
|
+
t[20] !== d || t[21] !== P || t[22] !== A ? (F = /* @__PURE__ */ Z(n, {
|
|
1708
|
+
arrow: !0,
|
|
1709
|
+
placement: "right",
|
|
1710
|
+
title: A,
|
|
1711
|
+
...d,
|
|
1712
|
+
children: P
|
|
1713
|
+
}), t[20] = d, t[21] = P, t[22] = A, t[23] = F) : F = t[23];
|
|
1714
|
+
let I;
|
|
1715
|
+
return t[24] !== c || t[25] !== F ? (I = /* @__PURE__ */ Z(R, {
|
|
1716
|
+
...c,
|
|
1717
|
+
children: F
|
|
1718
|
+
}), t[24] = c, t[25] = F, t[26] = I) : I = t[26], I;
|
|
1719
|
+
}
|
|
1720
|
+
function St(e, t) {
|
|
1721
|
+
return t === "granted";
|
|
1722
|
+
}
|
|
1723
|
+
//#endregion
|
|
1724
|
+
//#region src/components/zoom-controls/styles.ts
|
|
1725
|
+
var Ct = {
|
|
1726
|
+
zoom: {
|
|
1727
|
+
position: "relative",
|
|
1728
|
+
height: ({ spacing: e }) => e(4),
|
|
1729
|
+
aspectRatio: 1,
|
|
1730
|
+
display: "flex",
|
|
1731
|
+
alignItems: "center",
|
|
1732
|
+
justifyContent: "center"
|
|
1733
|
+
},
|
|
1734
|
+
paper: {
|
|
1735
|
+
display: "flex",
|
|
1736
|
+
backgroundColor: ({ palette: e }) => e.background.paper,
|
|
1737
|
+
width: "auto",
|
|
1738
|
+
overflow: "hidden",
|
|
1739
|
+
boxShadow: ({ shadows: e }) => e[1],
|
|
1740
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
1741
|
+
button: { borderRadius: 0 }
|
|
1742
|
+
},
|
|
1743
|
+
circularProgress: { position: "absolute" }
|
|
1744
|
+
};
|
|
1745
|
+
//#endregion
|
|
1746
|
+
//#region src/components/zoom-controls/zoom-controls.tsx
|
|
1747
|
+
function wt(e) {
|
|
1748
|
+
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, g = a === void 0 ? "vertical" : a, _ = o !== void 0 && o, v = c === void 0 ? 24 : c, b = l === void 0 ? 0 : l, x;
|
|
1749
|
+
t[0] === d ? x = t[1] : (x = d === void 0 ? { Icon: ae } : d, t[0] = d, t[1] = x);
|
|
1750
|
+
let S = x, C = f === void 0 || f, T;
|
|
1751
|
+
t[2] !== v || t[3] !== p || t[4] !== n ? (T = () => {
|
|
1752
|
+
let e = Math.min(v, n + 1);
|
|
1753
|
+
p(e);
|
|
1754
|
+
}, t[2] = v, t[3] = p, t[4] = n, t[5] = T) : T = t[5];
|
|
1755
|
+
let E = T, D;
|
|
1756
|
+
t[6] !== b || t[7] !== p || t[8] !== n ? (D = () => {
|
|
1757
|
+
let e = Math.max(b, n - 1);
|
|
1758
|
+
p(e);
|
|
1759
|
+
}, t[6] = b, t[7] = p, t[8] = n, t[9] = D) : D = t[9];
|
|
1760
|
+
let O = D, A = Math.floor(n), j = g === "vertical" ? "horizontal" : "vertical", M = g === "vertical" ? "column" : "row";
|
|
1761
|
+
_ && (M += "-reverse");
|
|
1762
|
+
let N;
|
|
1763
|
+
t[10] === M ? N = t[11] : (N = {
|
|
1764
|
+
...Ct.paper,
|
|
1765
|
+
flexDirection: M
|
|
1766
|
+
}, t[10] = M, t[11] = N);
|
|
1767
|
+
let P;
|
|
1768
|
+
t[12] !== S || t[13] !== r || t[14] !== j || t[15] !== m ? (P = m && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(k, {
|
|
1769
|
+
onClick: m,
|
|
1770
|
+
"aria-label": "Reset action",
|
|
1771
|
+
disabled: r,
|
|
1772
|
+
children: /* @__PURE__ */ Z(S.Icon, {})
|
|
1773
|
+
}), /* @__PURE__ */ Z(w, {
|
|
1774
|
+
orientation: j,
|
|
1775
|
+
flexItem: !0
|
|
1776
|
+
})] }), t[12] = S, t[13] = r, t[14] = j, t[15] = m, t[16] = P) : P = t[16];
|
|
1777
|
+
let F;
|
|
1778
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Z(ne, {}), t[17] = F) : F = t[17];
|
|
1779
|
+
let I;
|
|
1780
|
+
t[18] !== r || t[19] !== E ? (I = /* @__PURE__ */ Z(k, {
|
|
1781
|
+
onClick: E,
|
|
1782
|
+
"aria-label": "Increase zoom",
|
|
1783
|
+
disabled: r,
|
|
1784
|
+
children: F
|
|
1785
|
+
}), t[18] = r, t[19] = E, t[20] = I) : I = t[20];
|
|
1786
|
+
let L;
|
|
1787
|
+
t[21] === j ? L = t[22] : (L = /* @__PURE__ */ Z(w, {
|
|
1788
|
+
orientation: j,
|
|
1789
|
+
flexItem: !0
|
|
1790
|
+
}), t[21] = j, t[22] = L);
|
|
1791
|
+
let z;
|
|
1792
|
+
t[23] !== A || t[24] !== j || t[25] !== s || t[26] !== C ? (z = C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Q(h, {
|
|
1793
|
+
sx: Ct.zoom,
|
|
1794
|
+
children: [/* @__PURE__ */ Z(q, {
|
|
1795
|
+
display: "block",
|
|
1796
|
+
align: "center",
|
|
1797
|
+
color: "textSecondary",
|
|
1798
|
+
variant: "overline",
|
|
1799
|
+
children: A
|
|
1800
|
+
}), s && /* @__PURE__ */ Z(y, {
|
|
1801
|
+
sx: Ct.circularProgress,
|
|
1802
|
+
variant: "indeterminate",
|
|
1803
|
+
size: 24
|
|
1804
|
+
})]
|
|
1805
|
+
}), /* @__PURE__ */ Z(w, {
|
|
1806
|
+
orientation: j,
|
|
1807
|
+
flexItem: !0
|
|
1808
|
+
})] }), t[23] = A, t[24] = j, t[25] = s, t[26] = C, t[27] = z) : z = t[27];
|
|
1809
|
+
let B;
|
|
1810
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Z(fe, {}), t[28] = B) : B = t[28];
|
|
1811
|
+
let V;
|
|
1812
|
+
t[29] !== O || t[30] !== r ? (V = /* @__PURE__ */ Z(k, {
|
|
1813
|
+
onClick: O,
|
|
1814
|
+
"aria-label": "Decrease zoom",
|
|
1815
|
+
disabled: r,
|
|
1816
|
+
children: B
|
|
1817
|
+
}), t[29] = O, t[30] = r, t[31] = V) : V = t[31];
|
|
1818
|
+
let H;
|
|
1819
|
+
return t[32] !== u || t[33] !== N || t[34] !== P || t[35] !== I || t[36] !== L || t[37] !== z || t[38] !== V ? (H = /* @__PURE__ */ Q(R, {
|
|
1820
|
+
sx: N,
|
|
1821
|
+
...u,
|
|
1822
|
+
children: [
|
|
1823
|
+
P,
|
|
1824
|
+
I,
|
|
1825
|
+
L,
|
|
1826
|
+
z,
|
|
1827
|
+
V
|
|
1828
|
+
]
|
|
1829
|
+
}), t[32] = u, t[33] = N, t[34] = P, t[35] = I, t[36] = L, t[37] = z, t[38] = V, t[39] = H) : H = t[39], H;
|
|
1830
|
+
}
|
|
1831
|
+
//#endregion
|
|
1832
|
+
//#region src/components/list-data/list-data-skeleton.tsx
|
|
1833
|
+
function Tt(e) {
|
|
1834
|
+
let t = i(4), { length: n } = e, r = n === void 0 ? 5 : n, a;
|
|
1835
|
+
t[0] === r ? a = t[1] : (a = Array(r).fill(null).map(Et), t[0] = r, t[1] = a);
|
|
1836
|
+
let o;
|
|
1837
|
+
return t[2] === a ? o = t[3] : (o = /* @__PURE__ */ Z(h, {
|
|
1838
|
+
"aria-label": "List Data skeleton",
|
|
1839
|
+
children: a
|
|
1840
|
+
}), t[2] = a, t[3] = o), o;
|
|
1841
|
+
}
|
|
1842
|
+
function Et(e, t) {
|
|
1843
|
+
return /* @__PURE__ */ Q(O, {
|
|
1844
|
+
container: !0,
|
|
1845
|
+
spacing: 1,
|
|
1846
|
+
children: [/* @__PURE__ */ Q(O, {
|
|
1847
|
+
container: !0,
|
|
1848
|
+
item: !0,
|
|
1849
|
+
direction: "row",
|
|
1850
|
+
justifyContent: "space-between",
|
|
1851
|
+
alignItems: "center",
|
|
1852
|
+
children: [/* @__PURE__ */ Z(H, {
|
|
1853
|
+
width: At(t) ? 72 : 48,
|
|
1854
|
+
height: 20
|
|
1855
|
+
}), /* @__PURE__ */ Z(H, {
|
|
1856
|
+
width: 48,
|
|
1857
|
+
height: 8
|
|
1858
|
+
})]
|
|
1859
|
+
}), /* @__PURE__ */ Z(H, { sx: {
|
|
1860
|
+
height: kt,
|
|
1861
|
+
marginTop: Ot,
|
|
1862
|
+
marginBottom: Dt,
|
|
1863
|
+
width: "100%"
|
|
1864
|
+
} })]
|
|
1865
|
+
}, `skeleton-${t}`);
|
|
1866
|
+
}
|
|
1867
|
+
function Dt(e) {
|
|
1868
|
+
let { spacing: t } = e;
|
|
1869
|
+
return t(1.75);
|
|
1870
|
+
}
|
|
1871
|
+
function Ot(e) {
|
|
1872
|
+
let { spacing: t } = e;
|
|
1873
|
+
return t(1.25);
|
|
1874
|
+
}
|
|
1875
|
+
function kt(e) {
|
|
1876
|
+
let { spacing: t } = e;
|
|
1877
|
+
return t(.5);
|
|
1878
|
+
}
|
|
1879
|
+
function At(e) {
|
|
1880
|
+
return e % 2 == 1;
|
|
1881
|
+
}
|
|
1882
|
+
//#endregion
|
|
1883
|
+
//#region src/components/no-data-alert/no-data-alert.tsx
|
|
1884
|
+
function jt(e) {
|
|
1885
|
+
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;
|
|
1886
|
+
if (a) {
|
|
1887
|
+
let e;
|
|
1888
|
+
t[0] === s ? e = t[1] : (e = /* @__PURE__ */ Z(Mt, { children: s }), t[0] = s, t[1] = e);
|
|
1889
|
+
let n;
|
|
1890
|
+
return t[2] !== a || t[3] !== e || t[4] !== o ? (n = /* @__PURE__ */ Z(p, {
|
|
1891
|
+
title: o,
|
|
1892
|
+
severity: a,
|
|
1893
|
+
children: e
|
|
1894
|
+
}), t[2] = a, t[3] = e, t[4] = o, t[5] = n) : n = t[5], n;
|
|
1895
|
+
}
|
|
1896
|
+
let c;
|
|
1897
|
+
t[6] === o ? c = t[7] : (c = o && /* @__PURE__ */ Z(q, {
|
|
1898
|
+
variant: "body2",
|
|
1899
|
+
children: o
|
|
1900
|
+
}), t[6] = o, t[7] = c);
|
|
1901
|
+
let l;
|
|
1902
|
+
t[8] === s ? l = t[9] : (l = /* @__PURE__ */ Z(Mt, {
|
|
1903
|
+
color: "textSecondary",
|
|
1904
|
+
children: s
|
|
1905
|
+
}), t[8] = s, t[9] = l);
|
|
1906
|
+
let u;
|
|
1907
|
+
return t[10] !== c || t[11] !== l ? (u = /* @__PURE__ */ Q(h, { children: [c, l] }), t[10] = c, t[11] = l, t[12] = u) : u = t[12], u;
|
|
1908
|
+
}
|
|
1909
|
+
function Mt(e) {
|
|
1910
|
+
let t = i(5), { color: n, children: r } = e;
|
|
1911
|
+
if (r) {
|
|
1912
|
+
let e = n ?? "inherit", i;
|
|
1913
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = { fontWeight: "normal" }, t[0] = i) : i = t[0];
|
|
1914
|
+
let a;
|
|
1915
|
+
return t[1] !== r || t[2] !== e ? (a = /* @__PURE__ */ Z(h, {
|
|
1916
|
+
mt: .5,
|
|
1917
|
+
children: /* @__PURE__ */ Z(q, {
|
|
1918
|
+
component: "div",
|
|
1919
|
+
variant: "caption",
|
|
1920
|
+
color: e,
|
|
1921
|
+
style: i,
|
|
1922
|
+
children: r
|
|
1923
|
+
})
|
|
1924
|
+
}), t[1] = r, t[2] = e, t[3] = a) : a = t[3], a;
|
|
1925
|
+
}
|
|
1926
|
+
let a;
|
|
1927
|
+
return t[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Z(h, { mt: -1 }), t[4] = a) : a = t[4], a;
|
|
1928
|
+
}
|
|
1929
|
+
//#endregion
|
|
1930
|
+
//#region src/hooks/use-skeleton.ts
|
|
1931
|
+
function Nt(e) {
|
|
1932
|
+
let t = i(2), n;
|
|
1933
|
+
t[0] === e ? n = t[1] : (n = () => +!!e, t[0] = e, t[1] = n);
|
|
1934
|
+
let [r, a] = d(n);
|
|
1935
|
+
return e && r === 0 && a(1), !e && r === 1 && a(2), r === 1;
|
|
1936
|
+
}
|
|
1937
|
+
//#endregion
|
|
1938
|
+
//#region src/components/list-data/styles.ts
|
|
1939
|
+
var Pt = {
|
|
1940
|
+
overflow: "hidden",
|
|
1941
|
+
textOverflow: "ellipsis",
|
|
1942
|
+
whiteSpace: "nowrap"
|
|
1943
|
+
}, Ft = {
|
|
1944
|
+
label: { "& .MuiListItemText-primary": { ...Pt } },
|
|
1945
|
+
value: { "& .MuiListItemText-primary": {
|
|
1946
|
+
...Pt,
|
|
1947
|
+
textAlign: "right"
|
|
1948
|
+
} },
|
|
1949
|
+
clickable: {
|
|
1950
|
+
cursor: "pointer",
|
|
1951
|
+
"&:hover": { backgroundColor: ({ palette: e }) => e.action.hover }
|
|
1952
|
+
},
|
|
1953
|
+
showDivider: { borderBottom: ({ palette: e }) => `1px solid ${e.divider}` },
|
|
1954
|
+
selected: { backgroundColor: ({ palette: e }) => e.action.selected },
|
|
1955
|
+
disabled: {
|
|
1956
|
+
opacity: .5,
|
|
1957
|
+
pointerEvents: "none"
|
|
1958
|
+
}
|
|
1959
|
+
}, It = {
|
|
1960
|
+
showMore: "Show More",
|
|
1961
|
+
showLess: "Show Less"
|
|
1962
|
+
}, Lt = [];
|
|
1963
|
+
function Rt(e) {
|
|
1964
|
+
let t = i(32), { data: n, isLoading: a, maxItems: o, labels: s, showDivider: c, selectedItemId: l, tooltipProps: u, onExpand: f, onItemClick: p } = e, m = n === void 0 ? Lt : n, _ = a !== void 0 && a, v = o === void 0 ? 5 : o, y = s === void 0 ? It : s, b = c === void 0 || c, [x, S] = d(!1), C = Nt(_), w;
|
|
1965
|
+
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];
|
|
1966
|
+
let T = w, E;
|
|
1967
|
+
t[4] !== f || t[5] !== x ? (E = () => {
|
|
1968
|
+
S(!x), f?.(x);
|
|
1969
|
+
}, t[4] = f, t[5] = x, t[6] = E) : E = t[6];
|
|
1970
|
+
let D = E;
|
|
1971
|
+
if (C) {
|
|
1972
|
+
let e;
|
|
1973
|
+
return t[7] === v ? e = t[8] : (e = /* @__PURE__ */ Z(Tt, { length: v }), t[7] = v, t[8] = e), e;
|
|
1974
|
+
}
|
|
1975
|
+
if (T.length === 0) {
|
|
1976
|
+
let e;
|
|
1977
|
+
return t[9] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Z(jt, {}), t[9] = e) : e = t[9], e;
|
|
1978
|
+
}
|
|
1979
|
+
let k;
|
|
1980
|
+
if (t[10] !== T || t[11] !== p || t[12] !== l || t[13] !== b || t[14] !== u) {
|
|
1981
|
+
let e;
|
|
1982
|
+
t[16] !== p || t[17] !== l || t[18] !== b || t[19] !== u ? (e = (e) => /* @__PURE__ */ Z(r, {
|
|
1983
|
+
followCursor: !1,
|
|
1984
|
+
placement: "top",
|
|
1985
|
+
arrow: !0,
|
|
1986
|
+
title: e.tooltipTitle,
|
|
1987
|
+
enterDelay: 10,
|
|
1988
|
+
...u,
|
|
1989
|
+
children: (t) => {
|
|
1990
|
+
let { ref: n } = t;
|
|
1991
|
+
return /* @__PURE__ */ Z(M, {
|
|
1992
|
+
ref: n,
|
|
1993
|
+
role: "listitem",
|
|
1994
|
+
sx: {
|
|
1995
|
+
...b && Ft.showDivider,
|
|
1996
|
+
...p && Ft.clickable,
|
|
1997
|
+
...l === e.id && Ft.selected,
|
|
1998
|
+
...e.disabled && Ft.disabled
|
|
1999
|
+
},
|
|
2000
|
+
onClick: () => {
|
|
2001
|
+
e.disabled || p?.(e);
|
|
2002
|
+
},
|
|
2003
|
+
children: /* @__PURE__ */ Q(O, {
|
|
2004
|
+
container: !0,
|
|
2005
|
+
alignItems: "center",
|
|
2006
|
+
children: [/* @__PURE__ */ Z(O, {
|
|
2007
|
+
item: !0,
|
|
2008
|
+
xs: 8,
|
|
2009
|
+
children: /* @__PURE__ */ Z(F, {
|
|
2010
|
+
primary: e.label,
|
|
2011
|
+
sx: Ft.label
|
|
2012
|
+
})
|
|
2013
|
+
}), /* @__PURE__ */ Z(O, {
|
|
2014
|
+
item: !0,
|
|
2015
|
+
xs: 4,
|
|
2016
|
+
children: /* @__PURE__ */ Z(F, {
|
|
2017
|
+
primary: e.value,
|
|
2018
|
+
sx: Ft.value
|
|
2019
|
+
})
|
|
2020
|
+
})]
|
|
2021
|
+
})
|
|
2022
|
+
});
|
|
2023
|
+
}
|
|
2024
|
+
}, e.id), t[16] = p, t[17] = l, t[18] = b, t[19] = u, t[20] = e) : e = t[20], k = T.map(e), t[10] = T, t[11] = p, t[12] = l, t[13] = b, t[14] = u, t[15] = k;
|
|
2025
|
+
} else k = t[15];
|
|
2026
|
+
let A;
|
|
2027
|
+
t[21] === k ? A = t[22] : (A = /* @__PURE__ */ Z(j, {
|
|
2028
|
+
id: "expandable-list",
|
|
2029
|
+
role: "list",
|
|
2030
|
+
children: k
|
|
2031
|
+
}), t[21] = k, t[22] = A);
|
|
2032
|
+
let N;
|
|
2033
|
+
t[23] !== m.length || t[24] !== D || t[25] !== y || t[26] !== v || t[27] !== x ? (N = m.length > v && /* @__PURE__ */ Z(h, {
|
|
2034
|
+
my: 2,
|
|
2035
|
+
children: /* @__PURE__ */ Z(g, {
|
|
2036
|
+
onClick: D,
|
|
2037
|
+
variant: "text",
|
|
2038
|
+
color: "primary",
|
|
2039
|
+
"aria-expanded": x,
|
|
2040
|
+
"aria-controls": "expandable-list",
|
|
2041
|
+
children: x ? y.showLess : y.showMore
|
|
2042
|
+
})
|
|
2043
|
+
}), t[23] = m.length, t[24] = D, t[25] = y, t[26] = v, t[27] = x, t[28] = N) : N = t[28];
|
|
2044
|
+
let P;
|
|
2045
|
+
return t[29] !== N || t[30] !== A ? (P = /* @__PURE__ */ Q(X, { children: [A, N] }), t[29] = N, t[30] = A, t[31] = P) : P = t[31], P;
|
|
2046
|
+
}
|
|
2047
|
+
var zt = {
|
|
2048
|
+
root: {
|
|
2049
|
+
width: 288,
|
|
2050
|
+
overflow: "auto"
|
|
2051
|
+
},
|
|
2052
|
+
toggle: {
|
|
2053
|
+
padding: ({ spacing: e }) => e(.5),
|
|
2054
|
+
img: {
|
|
2055
|
+
width: "100%",
|
|
2056
|
+
aspectRatio: "1 / 1",
|
|
2057
|
+
borderRadius: ({ spacing: e }) => e(.25)
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
header: {
|
|
2061
|
+
display: "flex",
|
|
2062
|
+
alignItems: "center",
|
|
2063
|
+
justifyContent: "space-between",
|
|
2064
|
+
padding: ({ spacing: e }) => e(1),
|
|
2065
|
+
paddingInlineStart: ({ spacing: e }) => e(2),
|
|
2066
|
+
position: "sticky",
|
|
2067
|
+
top: 0,
|
|
2068
|
+
zIndex: 2,
|
|
2069
|
+
background: ({ palette: e }) => e.background.paper
|
|
2070
|
+
},
|
|
2071
|
+
groupWrapper: { content: {
|
|
2072
|
+
paddingInline: ({ spacing: e }) => e(2),
|
|
2073
|
+
paddingBlock: ({ spacing: e }) => e(.5)
|
|
2074
|
+
} },
|
|
2075
|
+
group: {
|
|
2076
|
+
display: "flex",
|
|
2077
|
+
flexDirection: "row",
|
|
2078
|
+
flexWrap: "wrap",
|
|
2079
|
+
alignItems: "center",
|
|
2080
|
+
gap: ({ spacing: e }) => e(2),
|
|
2081
|
+
paddingInline: ({ spacing: e }) => e(2),
|
|
2082
|
+
paddingBlock: ({ spacing: e }) => e(1)
|
|
2083
|
+
},
|
|
2084
|
+
item: {
|
|
2085
|
+
container: {
|
|
2086
|
+
display: "flex",
|
|
2087
|
+
alignItems: "center",
|
|
2088
|
+
flexDirection: "column",
|
|
2089
|
+
gap: ({ spacing: e }) => e(1),
|
|
2090
|
+
background: "transparent",
|
|
2091
|
+
border: "none",
|
|
2092
|
+
cursor: "pointer",
|
|
2093
|
+
padding: 0,
|
|
2094
|
+
height: ({ spacing: e }) => e(12),
|
|
2095
|
+
img: {
|
|
2096
|
+
maxWidth: ({ spacing: e }) => e(9),
|
|
2097
|
+
aspectRatio: "1 / 1",
|
|
2098
|
+
borderRadius: ({ spacing: e }) => e(.5),
|
|
2099
|
+
border: "2px solid transparent",
|
|
2100
|
+
"&:hover": { borderColor: ({ palette: e }) => e.action.active },
|
|
2101
|
+
"&[data-active=\"true\"]": { borderColor: ({ palette: e }) => e.primary.main }
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
selected: { color: ({ palette: e }) => e.primary.main }
|
|
2105
|
+
}
|
|
2106
|
+
}, Bt = {
|
|
2107
|
+
toggle: { title: "Toggle basemaps controls" },
|
|
2108
|
+
header: {
|
|
2109
|
+
title: "Basemaps",
|
|
2110
|
+
actions: { close: "Close" }
|
|
2111
|
+
}
|
|
2112
|
+
};
|
|
2113
|
+
//#endregion
|
|
2114
|
+
//#region src/components/basemaps/header.tsx
|
|
2115
|
+
function Vt(e) {
|
|
2116
|
+
let t = i(6), { isMobile: r, labels: a, onChangeCollapsed: o } = e, s = r !== void 0 && r, c;
|
|
2117
|
+
t[0] !== s || t[1] !== a || t[2] !== o ? (c = s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(q, {
|
|
2118
|
+
variant: "caption",
|
|
2119
|
+
flexGrow: 1,
|
|
2120
|
+
children: a.title
|
|
2121
|
+
}), /* @__PURE__ */ Z(n, {
|
|
2122
|
+
title: a.actions.close,
|
|
2123
|
+
children: /* @__PURE__ */ Z(k, {
|
|
2124
|
+
size: "small",
|
|
2125
|
+
onClick: o,
|
|
2126
|
+
"aria-label": a.actions.close,
|
|
2127
|
+
children: /* @__PURE__ */ Z(ie, {})
|
|
2128
|
+
})
|
|
2129
|
+
})] }), t[0] = s, t[1] = a, t[2] = o, t[3] = c) : c = t[3];
|
|
2130
|
+
let l;
|
|
2131
|
+
return t[4] === c ? l = t[5] : (l = /* @__PURE__ */ Z(h, {
|
|
2132
|
+
sx: zt.header,
|
|
2133
|
+
children: c
|
|
2134
|
+
}), t[4] = c, t[5] = l), l;
|
|
2135
|
+
}
|
|
2136
|
+
//#endregion
|
|
2137
|
+
//#region src/components/basemaps/group-wrapper.tsx
|
|
2138
|
+
function Ht(e) {
|
|
2139
|
+
let t = i(5), { title: n, children: r, collapsed: a } = e;
|
|
2140
|
+
if (a !== void 0 && a) return r;
|
|
2141
|
+
let o;
|
|
2142
|
+
t[0] === n ? o = t[1] : (o = /* @__PURE__ */ Z(q, {
|
|
2143
|
+
variant: "caption",
|
|
2144
|
+
color: "textSecondary",
|
|
2145
|
+
sx: zt.groupWrapper.content,
|
|
2146
|
+
children: n
|
|
2147
|
+
}), t[0] = n, t[1] = o);
|
|
2148
|
+
let s;
|
|
2149
|
+
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;
|
|
2150
|
+
}
|
|
2151
|
+
//#endregion
|
|
2152
|
+
//#region src/components/basemaps/group.tsx
|
|
2153
|
+
function Ut(e) {
|
|
2154
|
+
let t = i(9), { values: n, selected: r, onChange: a } = e, o;
|
|
2155
|
+
if (t[0] !== a || t[1] !== r || t[2] !== n) {
|
|
2156
|
+
let e;
|
|
2157
|
+
t[4] !== a || t[5] !== r ? (e = (e) => {
|
|
2158
|
+
let t = e.id === r;
|
|
2159
|
+
return /* @__PURE__ */ Q(h, {
|
|
2160
|
+
sx: zt.item.container,
|
|
2161
|
+
component: "button",
|
|
2162
|
+
"aria-label": e.label,
|
|
2163
|
+
onClick: () => a(e.id),
|
|
2164
|
+
children: [/* @__PURE__ */ Z("img", {
|
|
2165
|
+
src: e.icon,
|
|
2166
|
+
"aria-label": e.label + " icon",
|
|
2167
|
+
"data-active": t
|
|
2168
|
+
}), /* @__PURE__ */ Z(q, {
|
|
2169
|
+
variant: "caption",
|
|
2170
|
+
sx: { ...t && zt.item.selected },
|
|
2171
|
+
children: e.label
|
|
2172
|
+
})]
|
|
2173
|
+
}, e.id);
|
|
2174
|
+
}, 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;
|
|
2175
|
+
} else o = t[3];
|
|
2176
|
+
let s;
|
|
2177
|
+
return t[7] === o ? s = t[8] : (s = /* @__PURE__ */ Z(h, {
|
|
2178
|
+
sx: zt.group,
|
|
2179
|
+
children: o
|
|
2180
|
+
}), t[7] = o, t[8] = s), s;
|
|
2181
|
+
}
|
|
2182
|
+
//#endregion
|
|
2183
|
+
//#region src/components/responsive-drawer/responsive-drawer.tsx
|
|
2184
|
+
function Wt(e, t) {
|
|
2185
|
+
let n = e.startsWith("bottom"), r = e.endsWith("right");
|
|
2186
|
+
return {
|
|
2187
|
+
anchorOrigin: {
|
|
2188
|
+
vertical: n ? "bottom" : "top",
|
|
2189
|
+
horizontal: t === "overlay" ? r ? "right" : "left" : r ? "left" : "right"
|
|
2190
|
+
},
|
|
2191
|
+
transformOrigin: {
|
|
2192
|
+
vertical: n ? "bottom" : "top",
|
|
2193
|
+
horizontal: r ? "right" : "left"
|
|
2194
|
+
}
|
|
2195
|
+
};
|
|
2196
|
+
}
|
|
2197
|
+
function Gt(e) {
|
|
2198
|
+
let t = i(46), { ref: n, children: r, collapsed: a, isMobile: o, position: s, sx: c, slotProps: l, container: d, onChangeCollapsed: p, modal: m, placement: h } = e, g = o !== void 0 && o, _ = m === void 0 || m, v = h === void 0 ? "side" : h, y = u(null), b = u(null), x;
|
|
2199
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (x = (e) => {
|
|
2200
|
+
if (b.current?.disconnect(), b.current = null, e && typeof ResizeObserver < "u") {
|
|
2201
|
+
let t = new ResizeObserver(() => y.current?.updatePosition());
|
|
2202
|
+
t.observe(e), b.current = t;
|
|
2203
|
+
}
|
|
2204
|
+
}, t[0] = x) : x = t[0];
|
|
2205
|
+
let S = x, C = d && typeof d != "function" ? d : null, w;
|
|
2206
|
+
t[1] === C ? w = t[2] : (w = (e) => {
|
|
2207
|
+
if (!C || typeof ResizeObserver > "u") return Kt;
|
|
2208
|
+
let t = new ResizeObserver(e);
|
|
2209
|
+
return t.observe(C), () => t.disconnect();
|
|
2210
|
+
}, t[1] = C, t[2] = w);
|
|
2211
|
+
let E = w, D;
|
|
2212
|
+
t[3] === C?.clientHeight ? D = t[4] : (D = () => C?.clientHeight, t[3] = C?.clientHeight, t[4] = D);
|
|
2213
|
+
let O = f(E, D);
|
|
2214
|
+
if (g) {
|
|
2215
|
+
let e = !a, n;
|
|
2216
|
+
t[5] === p ? n = t[6] : (n = () => p(!0), t[5] = p, t[6] = n);
|
|
2217
|
+
let i;
|
|
2218
|
+
return t[7] !== r || t[8] !== e || t[9] !== n ? (i = /* @__PURE__ */ Z(T, {
|
|
2219
|
+
anchor: "bottom",
|
|
2220
|
+
open: e,
|
|
2221
|
+
onClose: n,
|
|
2222
|
+
children: r
|
|
2223
|
+
}), t[7] = r, t[8] = e, t[9] = n, t[10] = i) : i = t[10], i;
|
|
2224
|
+
}
|
|
2225
|
+
let k;
|
|
2226
|
+
t[11] !== v || t[12] !== s ? (k = Wt(s, v), t[11] = v, t[12] = s, t[13] = k) : k = t[13];
|
|
2227
|
+
let { anchorOrigin: A, transformOrigin: j } = k, M = l, N;
|
|
2228
|
+
t[14] === O ? N = t[15] : (N = O != null && O > 0 ? {
|
|
2229
|
+
maxHeight: O * .9,
|
|
2230
|
+
overflow: "hidden",
|
|
2231
|
+
display: "flex",
|
|
2232
|
+
flexDirection: "column"
|
|
2233
|
+
} : void 0, t[14] = O, t[15] = N);
|
|
2234
|
+
let P = N, F;
|
|
2235
|
+
t[16] === P ? F = t[17] : (F = P ? {
|
|
2236
|
+
display: "flex",
|
|
2237
|
+
flexDirection: "column",
|
|
2238
|
+
flex: 1,
|
|
2239
|
+
minHeight: 0,
|
|
2240
|
+
maxHeight: "100%",
|
|
2241
|
+
overflow: "hidden",
|
|
2242
|
+
width: "100%"
|
|
2243
|
+
} : void 0, t[16] = P, t[17] = F);
|
|
2244
|
+
let I = F, L;
|
|
2245
|
+
t[18] !== _ || t[19] !== M?.paper || t[20] !== M?.root || t[21] !== P || t[22] !== l ? (L = _ && !P ? l : {
|
|
2246
|
+
...typeof l == "object" && l ? l : {},
|
|
2247
|
+
...!_ && { root: {
|
|
2248
|
+
style: { pointerEvents: "none" },
|
|
2249
|
+
...M?.root
|
|
2250
|
+
} },
|
|
2251
|
+
paper: {
|
|
2252
|
+
...M?.paper,
|
|
2253
|
+
style: {
|
|
2254
|
+
...!_ && { pointerEvents: "auto" },
|
|
2255
|
+
...P,
|
|
2256
|
+
...M?.paper?.style
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
}, t[18] = _, t[19] = M?.paper, t[20] = M?.root, t[21] = P, t[22] = l, t[23] = L) : L = t[23];
|
|
2260
|
+
let R = L, B = !a && n != null, V;
|
|
2261
|
+
t[24] !== _ || t[25] !== p ? (V = _ ? () => p(!0) : void 0, t[24] = _, t[25] = p, t[26] = V) : V = t[26];
|
|
2262
|
+
let H = !_, U = !_, W = !_, G = !_, K = !_, ee = !_, q;
|
|
2263
|
+
t[27] !== r || t[28] !== I ? (q = /* @__PURE__ */ Z("div", {
|
|
2264
|
+
ref: S,
|
|
2265
|
+
style: I,
|
|
2266
|
+
children: r
|
|
2267
|
+
}), t[27] = r, t[28] = I, t[29] = q) : q = t[29];
|
|
2268
|
+
let J;
|
|
2269
|
+
return t[30] !== A || t[31] !== d || t[32] !== R || t[33] !== n || t[34] !== c || t[35] !== B || t[36] !== V || t[37] !== H || t[38] !== U || t[39] !== W || t[40] !== G || t[41] !== K || t[42] !== ee || t[43] !== q || t[44] !== j ? (J = /* @__PURE__ */ Z(z, {
|
|
2270
|
+
action: y,
|
|
2271
|
+
sx: c,
|
|
2272
|
+
container: d,
|
|
2273
|
+
anchorEl: n,
|
|
2274
|
+
open: B,
|
|
2275
|
+
onClose: V,
|
|
2276
|
+
hideBackdrop: H,
|
|
2277
|
+
disableScrollLock: U,
|
|
2278
|
+
disableEscapeKeyDown: W,
|
|
2279
|
+
disableAutoFocus: G,
|
|
2280
|
+
disableEnforceFocus: K,
|
|
2281
|
+
disableRestoreFocus: ee,
|
|
2282
|
+
anchorOrigin: A,
|
|
2283
|
+
transformOrigin: j,
|
|
2284
|
+
slotProps: R,
|
|
2285
|
+
children: q
|
|
2286
|
+
}), t[30] = A, t[31] = d, t[32] = R, t[33] = n, t[34] = c, t[35] = B, t[36] = V, t[37] = H, t[38] = U, t[39] = W, t[40] = G, t[41] = K, t[42] = ee, t[43] = q, t[44] = j, t[45] = J) : J = t[45], J;
|
|
2287
|
+
}
|
|
2288
|
+
function Kt() {}
|
|
2289
|
+
//#endregion
|
|
2290
|
+
//#region src/components/basemaps/basemaps.tsx
|
|
2291
|
+
var qt = [];
|
|
2292
|
+
function Jt(e) {
|
|
2293
|
+
let t = i(54), { options: r, labels: o, position: s, selected: c, onChange: l, TooltipProps: f } = e, p = r === void 0 ? qt : r, m = s === void 0 ? "bottom-right" : s, h = c === void 0 ? null : c, [g, _] = d(null), [v, y] = d(!1), b = u(null), [x, S] = d(null), C = te(), w;
|
|
2294
|
+
t[0] === C.breakpoints ? w = t[1] : (w = C.breakpoints.down("sm"), t[0] = C.breakpoints, t[1] = w);
|
|
2295
|
+
let T = Y(w), E;
|
|
2296
|
+
t[2] === o ? E = t[3] : (E = o ?? {}, t[2] = o, t[3] = E);
|
|
2297
|
+
let D;
|
|
2298
|
+
t[4] === E ? D = t[5] : (D = (0, me.default)(Bt, E), t[4] = E, t[5] = D);
|
|
2299
|
+
let O = D, A;
|
|
2300
|
+
if (t[6] !== p || t[7] !== h) {
|
|
2301
|
+
let e;
|
|
2302
|
+
t[9] === h ? e = t[10] : (e = (e) => e.id === h, t[9] = h, t[10] = e), A = p.find(e), t[6] = p, t[7] = h, t[8] = A;
|
|
2303
|
+
} else A = t[8];
|
|
2304
|
+
let j = A, M;
|
|
2305
|
+
t[11] === p ? M = t[12] : (M = Object.groupBy(p, Yt), t[11] = p, t[12] = M);
|
|
2306
|
+
let N = M, P;
|
|
2307
|
+
t[13] === N ? P = t[14] : (P = Object.keys(N), t[13] = N, t[14] = P);
|
|
2308
|
+
let F = P.length, I;
|
|
2309
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
|
|
2310
|
+
_(null), y(!1);
|
|
2311
|
+
}, t[15] = I) : I = t[15];
|
|
2312
|
+
let L = I, z, B;
|
|
2313
|
+
t[16] === x ? (z = t[17], B = t[18]) : (z = () => {
|
|
2314
|
+
if (b.current && clearTimeout(b.current), x) return b.current = setTimeout(() => {
|
|
2315
|
+
L();
|
|
2316
|
+
}, x), () => {
|
|
2317
|
+
b.current && clearTimeout(b.current);
|
|
2318
|
+
};
|
|
2319
|
+
}, B = [x], t[16] = x, t[17] = z, t[18] = B), a(z, B);
|
|
2320
|
+
let V;
|
|
2321
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (V = () => {
|
|
2322
|
+
S(null);
|
|
2323
|
+
}, t[19] = V) : V = t[19];
|
|
2324
|
+
let H = V, U;
|
|
2325
|
+
t[20] === Symbol.for("react.memo_cache_sentinel") ? (U = () => {
|
|
2326
|
+
S(400);
|
|
2327
|
+
}, t[20] = U) : U = t[20];
|
|
2328
|
+
let W = U, G;
|
|
2329
|
+
t[21] === Symbol.for("react.memo_cache_sentinel") ? (G = (e) => {
|
|
2330
|
+
_(e.currentTarget), y(!0);
|
|
2331
|
+
}, t[21] = G) : G = t[21];
|
|
2332
|
+
let K = j?.icon, ee = j?.label ?? "Basemap", q;
|
|
2333
|
+
t[22] !== K || t[23] !== ee ? (q = /* @__PURE__ */ Z(k, {
|
|
2334
|
+
sx: zt.toggle,
|
|
2335
|
+
onClick: G,
|
|
2336
|
+
children: /* @__PURE__ */ Z("img", {
|
|
2337
|
+
src: K,
|
|
2338
|
+
alt: ee
|
|
2339
|
+
})
|
|
2340
|
+
}), t[22] = K, t[23] = ee, t[24] = q) : q = t[24];
|
|
2341
|
+
let J;
|
|
2342
|
+
t[25] !== f || t[26] !== O.toggle.title || t[27] !== q ? (J = /* @__PURE__ */ Z(n, {
|
|
2343
|
+
title: O.toggle.title,
|
|
2344
|
+
placement: "right",
|
|
2345
|
+
...f,
|
|
2346
|
+
children: q
|
|
2347
|
+
}), t[25] = f, t[26] = O.toggle.title, t[27] = q, t[28] = J) : J = t[28];
|
|
2348
|
+
let X = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`, ne;
|
|
2349
|
+
t[29] === X ? ne = t[30] : (ne = { paper: {
|
|
2350
|
+
sx: {
|
|
2351
|
+
...zt.root,
|
|
2352
|
+
transform: X
|
|
2353
|
+
},
|
|
2354
|
+
onMouseOver: H,
|
|
2355
|
+
onMouseLeave: W
|
|
2356
|
+
} }, t[29] = X, t[30] = ne);
|
|
2357
|
+
let re = !v, ie;
|
|
2358
|
+
t[31] === Symbol.for("react.memo_cache_sentinel") ? (ie = () => L(), t[31] = ie) : ie = t[31];
|
|
2359
|
+
let ae;
|
|
2360
|
+
t[32] === Symbol.for("react.memo_cache_sentinel") ? (ae = () => L(), t[32] = ae) : ae = t[32];
|
|
2361
|
+
let oe;
|
|
2362
|
+
t[33] !== T || t[34] !== O.header ? (oe = /* @__PURE__ */ Z(Vt, {
|
|
2363
|
+
isMobile: T,
|
|
2364
|
+
labels: O.header,
|
|
2365
|
+
onChangeCollapsed: ae
|
|
2366
|
+
}), t[33] = T, t[34] = O.header, t[35] = oe) : oe = t[35];
|
|
2367
|
+
let se;
|
|
2368
|
+
t[36] === N ? se = t[37] : (se = Object.entries(N), t[36] = N, t[37] = se);
|
|
2369
|
+
let ce;
|
|
2370
|
+
t[38] !== F || t[39] !== O.header || t[40] !== l || t[41] !== h || t[42] !== se ? (ce = se.map((e) => {
|
|
2371
|
+
let [t, n] = e;
|
|
2372
|
+
return /* @__PURE__ */ Z(Ht, {
|
|
2373
|
+
title: t + " " + O.header.title,
|
|
2374
|
+
collapsed: F < 2,
|
|
2375
|
+
children: /* @__PURE__ */ Z(Ut, {
|
|
2376
|
+
values: n,
|
|
2377
|
+
selected: h,
|
|
2378
|
+
onChange: (e) => {
|
|
2379
|
+
L(), l(e);
|
|
2380
|
+
}
|
|
2381
|
+
})
|
|
2382
|
+
}, t);
|
|
2383
|
+
}), t[38] = F, t[39] = O.header, t[40] = l, t[41] = h, t[42] = se, t[43] = ce) : ce = t[43];
|
|
2384
|
+
let le;
|
|
2385
|
+
t[44] !== T || t[45] !== m || t[46] !== ne || t[47] !== re || t[48] !== oe || t[49] !== ce ? (le = /* @__PURE__ */ Q(Gt, {
|
|
2386
|
+
ref: g,
|
|
2387
|
+
slotProps: ne,
|
|
2388
|
+
collapsed: re,
|
|
2389
|
+
position: m,
|
|
2390
|
+
isMobile: T,
|
|
2391
|
+
onChangeCollapsed: ie,
|
|
2392
|
+
children: [oe, ce]
|
|
2393
|
+
}), t[44] = T, t[45] = m, t[46] = ne, t[47] = re, t[48] = oe, t[49] = ce, t[50] = le) : le = t[50];
|
|
2394
|
+
let ue;
|
|
2395
|
+
return t[51] !== J || t[52] !== le ? (ue = /* @__PURE__ */ Q(R, { children: [J, le] }), t[51] = J, t[52] = le, t[53] = ue) : ue = t[53], ue;
|
|
2396
|
+
}
|
|
2397
|
+
function Yt(e) {
|
|
2398
|
+
return e.group ?? "default";
|
|
2399
|
+
}
|
|
2400
|
+
//#endregion
|
|
2401
|
+
export { ge as C, xe as E, he as S, be as T, De as _, xt as a, _e as b, pt as c, lt as d, ct as f, Le as g, qe as h, wt as i, ft as l, tt as m, Gt as n, gt as o, st as p, Rt as r, dt as s, Jt as t, ut as u, Se as v, ye as w, ve as x, $ as y };
|
|
2402
|
+
|
|
2403
|
+
//# sourceMappingURL=components-DDt4mOQn.js.map
|