@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
package/dist/components.js
CHANGED
|
@@ -1,1841 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { useRef as we, useState as ae, useId as St, useReducer as _t, useEffectEvent as Ct, useEffect as tt, useSyncExternalStore as wt } from "react";
|
|
7
|
-
import { d as Be } from "./cjs-D4KH3azB.js";
|
|
8
|
-
import { T as ke } from "./tooltip-BDnrRKrp.js";
|
|
9
|
-
import { s as no } from "./tooltip-BDnrRKrp.js";
|
|
10
|
-
import { LockOutlined as kt, DeleteOutlined as Tt, Close as Ue, Search as Mt, ArrowDropDown as At, MyLocationOutlined as It, LocationDisabledOutlined as Lt, CropFreeOutlined as Dt, AddOutlined as Pt, RemoveOutlined as Rt } from "@mui/icons-material";
|
|
11
|
-
import { S as Ot } from "./smart-tooltip-DFV6GD8R.js";
|
|
12
|
-
import { C as so } from "./copy-button-DGL1tyli.js";
|
|
13
|
-
const Et = [], $t = {};
|
|
14
|
-
function Wl(t) {
|
|
15
|
-
const e = Q(55), {
|
|
16
|
-
enabled: i,
|
|
17
|
-
values: o,
|
|
18
|
-
chipProps: n,
|
|
19
|
-
labels: c,
|
|
20
|
-
modes: s,
|
|
21
|
-
modesMapping: a,
|
|
22
|
-
modeSelected: r,
|
|
23
|
-
BoxProps: f,
|
|
24
|
-
onChipToggle: m,
|
|
25
|
-
onDelete: d,
|
|
26
|
-
onChangeMode: u,
|
|
27
|
-
onAllChipToggle: x,
|
|
28
|
-
onAllDelete: h
|
|
29
|
-
} = t, S = o === void 0 ? Et : o, _ = f === void 0 ? $t : f;
|
|
30
|
-
let U, R;
|
|
31
|
-
e[0] !== _ ? ({
|
|
32
|
-
sx: R,
|
|
33
|
-
...U
|
|
34
|
-
} = _, e[0] = _, e[1] = U, e[2] = R) : (U = e[1], R = e[2]);
|
|
35
|
-
let P;
|
|
36
|
-
e[3] !== s || e[4] !== a ? (P = Be(s, a), e[3] = s, e[4] = a, e[5] = P) : P = e[5];
|
|
37
|
-
const b = P;
|
|
38
|
-
let v, O;
|
|
39
|
-
e[6] !== b ? ({
|
|
40
|
-
edit: O,
|
|
41
|
-
...v
|
|
42
|
-
} = b, e[6] = b, e[7] = v, e[8] = O) : (v = e[7], O = e[8]);
|
|
43
|
-
let g;
|
|
44
|
-
e[9] !== d ? (g = (K) => d(K), e[9] = d, e[10] = g) : g = e[10];
|
|
45
|
-
const I = g;
|
|
46
|
-
let k;
|
|
47
|
-
e[11] !== u ? (k = (K, J) => {
|
|
48
|
-
K.preventDefault(), u?.(J);
|
|
49
|
-
}, e[11] = u, e[12] = k) : k = e[12];
|
|
50
|
-
const T = k, L = (r ?? "") in s ? r : Object.keys(b)[0], C = i ? b[L] : null;
|
|
51
|
-
let A;
|
|
52
|
-
e[13] !== v ? (A = Object.values(v), e[13] = v, e[14] = A) : A = e[14];
|
|
53
|
-
const y = A;
|
|
54
|
-
let w;
|
|
55
|
-
e[15] !== R ? (w = {
|
|
56
|
-
...De.container,
|
|
57
|
-
...R
|
|
58
|
-
}, e[15] = R, e[16] = w) : w = e[16];
|
|
59
|
-
const E = c?.options, z = C?.value, $ = c?.options;
|
|
60
|
-
let M;
|
|
61
|
-
e[17] !== y || e[18] !== $ ? (M = /* @__PURE__ */ l(Fe, { labels: $, data: y }), e[17] = y, e[18] = $, e[19] = M) : M = e[19];
|
|
62
|
-
let D;
|
|
63
|
-
e[20] !== O || e[21] !== c?.options || e[22] !== S.length ? (D = !!O && /* @__PURE__ */ W(me, { children: [
|
|
64
|
-
/* @__PURE__ */ l(he, { orientation: "vertical" }),
|
|
65
|
-
/* @__PURE__ */ l(Fe, { labels: c?.options, data: [{
|
|
66
|
-
...O,
|
|
67
|
-
disabled: !S.length
|
|
68
|
-
}] })
|
|
69
|
-
] }), e[20] = O, e[21] = c?.options, e[22] = S.length, e[23] = D) : D = e[23];
|
|
70
|
-
let V;
|
|
71
|
-
e[24] !== T || e[25] !== z || e[26] !== M || e[27] !== D ? (V = /* @__PURE__ */ W(Ge, { value: z, exclusive: !0, className: "inline", sx: De.options.menu, onChange: T, children: [
|
|
72
|
-
M,
|
|
73
|
-
D
|
|
74
|
-
] }), e[24] = T, e[25] = z, e[26] = M, e[27] = D, e[28] = V) : V = e[28];
|
|
75
|
-
let N;
|
|
76
|
-
e[29] !== y || e[30] !== V || e[31] !== E ? (N = /* @__PURE__ */ l(Bt, { data: y, labels: E, children: V }), e[29] = y, e[30] = V, e[31] = E, e[32] = N) : N = e[32];
|
|
77
|
-
let Z;
|
|
78
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ l(he, { flexItem: !0 }), e[33] = Z) : Z = e[33];
|
|
79
|
-
const j = !!S.length, F = c?.noData;
|
|
80
|
-
let B;
|
|
81
|
-
e[34] !== j || e[35] !== F ? (B = /* @__PURE__ */ l(Ut, { hasValues: j, labels: F }), e[34] = j, e[35] = F, e[36] = B) : B = e[36];
|
|
82
|
-
let H;
|
|
83
|
-
e[37] !== n || e[38] !== I || e[39] !== c?.chip || e[40] !== m || e[41] !== S ? (H = !!S.length && /* @__PURE__ */ l(ne, { sx: De.chip.container, className: "inline", children: S.map((K) => /* @__PURE__ */ l(ot, { value: K, labels: c?.chip, chipProps: n, onDelete: I, onChipToggle: m }, K.id)) }), e[37] = n, e[38] = I, e[39] = c?.chip, e[40] = m, e[41] = S, e[42] = H) : H = e[42];
|
|
84
|
-
const q = c?.actions;
|
|
85
|
-
let Y;
|
|
86
|
-
e[43] !== x || e[44] !== h || e[45] !== q || e[46] !== S ? (Y = /* @__PURE__ */ l(Wt, { values: S, labels: q, onAllChipToggle: x, onAllDelete: h }), e[43] = x, e[44] = h, e[45] = q, e[46] = S, e[47] = Y) : Y = e[47];
|
|
87
|
-
let G;
|
|
88
|
-
return e[48] !== U || e[49] !== N || e[50] !== B || e[51] !== H || e[52] !== Y || e[53] !== w ? (G = /* @__PURE__ */ W(ne, { sx: w, ...U, className: "inline", children: [
|
|
89
|
-
N,
|
|
90
|
-
Z,
|
|
91
|
-
B,
|
|
92
|
-
H,
|
|
93
|
-
Y
|
|
94
|
-
] }), e[48] = U, e[49] = N, e[50] = B, e[51] = H, e[52] = Y, e[53] = w, e[54] = G) : G = e[54], G;
|
|
95
|
-
}
|
|
96
|
-
function Bt(t) {
|
|
97
|
-
const e = Q(5), {
|
|
98
|
-
data: i,
|
|
99
|
-
labels: o,
|
|
100
|
-
children: n
|
|
101
|
-
} = t;
|
|
102
|
-
if (i.length <= 1)
|
|
103
|
-
return null;
|
|
104
|
-
const c = o?.mode?.title ?? ye.options.mode.title;
|
|
105
|
-
let s;
|
|
106
|
-
e[0] !== c ? (s = /* @__PURE__ */ l(se, { variant: "subtitle2", color: "text.secondary", sx: De.options.title, className: "inline", children: c }), e[0] = c, e[1] = s) : s = e[1];
|
|
107
|
-
let a;
|
|
108
|
-
return e[2] !== n || e[3] !== s ? (a = /* @__PURE__ */ W(me, { children: [
|
|
109
|
-
s,
|
|
110
|
-
n
|
|
111
|
-
] }), e[2] = n, e[3] = s, e[4] = a) : a = e[4], a;
|
|
112
|
-
}
|
|
113
|
-
function Fe({
|
|
114
|
-
data: t,
|
|
115
|
-
labels: e
|
|
116
|
-
}) {
|
|
117
|
-
return t.filter((i) => !!i).map((i) => {
|
|
118
|
-
const n = (e?.mode?.options ?? ye.options.mode.options)[i.value];
|
|
119
|
-
return /* @__PURE__ */ l(ke, { title: n, placement: "bottom", children: /* @__PURE__ */ l(Pe, { disabled: !!i.disabled, value: i.value, "aria-label": i.value, children: /* @__PURE__ */ l(Re, { children: i.icon }) }) }, i.value);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function Ut(t) {
|
|
123
|
-
const e = Q(7), {
|
|
124
|
-
hasValues: i,
|
|
125
|
-
labels: o
|
|
126
|
-
} = t;
|
|
127
|
-
if (i)
|
|
128
|
-
return null;
|
|
129
|
-
const n = o?.title ?? ye.noData.title, c = o?.description ?? ye.noData.description;
|
|
130
|
-
let s;
|
|
131
|
-
e[0] !== n ? (s = /* @__PURE__ */ l(se, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = s) : s = e[1];
|
|
132
|
-
let a;
|
|
133
|
-
e[2] !== c ? (a = /* @__PURE__ */ l(se, { variant: "body2", color: "textSecondary", children: c }), e[2] = c, e[3] = a) : a = e[3];
|
|
134
|
-
let r;
|
|
135
|
-
return e[4] !== s || e[5] !== a ? (r = /* @__PURE__ */ W(me, { children: [
|
|
136
|
-
s,
|
|
137
|
-
a
|
|
138
|
-
] }), e[4] = s, e[5] = a, e[6] = r) : r = e[6], r;
|
|
139
|
-
}
|
|
140
|
-
function Wt(t) {
|
|
141
|
-
const e = Q(13), {
|
|
142
|
-
values: i,
|
|
143
|
-
labels: o,
|
|
144
|
-
onAllChipToggle: n,
|
|
145
|
-
onAllDelete: c
|
|
146
|
-
} = t;
|
|
147
|
-
if (i.length <= 1)
|
|
148
|
-
return null;
|
|
149
|
-
const a = i.some(zt) ? o?.toggleAll?.active ?? ye.actions.toggleAll.active : o?.toggleAll?.inactive ?? ye.actions.toggleAll.inactive, r = o?.deleteAll ?? ye.actions.deleteAll;
|
|
150
|
-
let f;
|
|
151
|
-
e[0] !== n ? (f = () => n(), e[0] = n, e[1] = f) : f = e[1];
|
|
152
|
-
let m;
|
|
153
|
-
e[2] !== f || e[3] !== a ? (m = /* @__PURE__ */ l(_e, { color: "inherit", onClick: f, children: a }), e[2] = f, e[3] = a, e[4] = m) : m = e[4];
|
|
154
|
-
let d;
|
|
155
|
-
e[5] !== c ? (d = () => c(), e[5] = c, e[6] = d) : d = e[6];
|
|
156
|
-
let u;
|
|
157
|
-
e[7] !== r || e[8] !== d ? (u = /* @__PURE__ */ l(_e, { color: "error", onClick: d, children: r }), e[7] = r, e[8] = d, e[9] = u) : u = e[9];
|
|
158
|
-
let x;
|
|
159
|
-
return e[10] !== m || e[11] !== u ? (x = /* @__PURE__ */ W(ne, { children: [
|
|
160
|
-
m,
|
|
161
|
-
u
|
|
162
|
-
] }), e[10] = m, e[11] = u, e[12] = x) : x = e[12], x;
|
|
163
|
-
}
|
|
164
|
-
function zt(t) {
|
|
165
|
-
return t.visible;
|
|
166
|
-
}
|
|
167
|
-
const Ie = 18, Vt = {
|
|
168
|
-
display: "flex",
|
|
169
|
-
flexDirection: "row",
|
|
170
|
-
alignItems: "center",
|
|
171
|
-
width: "fit-content",
|
|
172
|
-
gap: ({
|
|
173
|
-
spacing: t
|
|
174
|
-
}) => t(0.5),
|
|
175
|
-
p: ({
|
|
176
|
-
spacing: t
|
|
177
|
-
}) => t(0.5),
|
|
178
|
-
borderRadius: ({
|
|
179
|
-
spacing: t
|
|
180
|
-
}) => t(0.5),
|
|
181
|
-
backgroundColor: ({
|
|
182
|
-
palette: t
|
|
183
|
-
}) => t.background.paper
|
|
184
|
-
}, lt = {
|
|
185
|
-
p: ({
|
|
186
|
-
spacing: t
|
|
187
|
-
}) => t(0.375),
|
|
188
|
-
borderRadius: ({
|
|
189
|
-
spacing: t
|
|
190
|
-
}) => t(0.5),
|
|
191
|
-
".MuiTouchRipple-ripple .MuiTouchRipple-child": {
|
|
192
|
-
borderRadius: ({
|
|
193
|
-
spacing: t
|
|
194
|
-
}) => t(0.5)
|
|
195
|
-
}
|
|
196
|
-
}, Ft = (t) => ({
|
|
197
|
-
...lt,
|
|
198
|
-
color: ({
|
|
199
|
-
palette: e
|
|
200
|
-
}) => t ? e.primary.main : e.text.secondary,
|
|
201
|
-
backgroundColor: t ? "rgba(3, 111, 226, 0.08)" : "transparent",
|
|
202
|
-
"&:hover": {
|
|
203
|
-
backgroundColor: ({
|
|
204
|
-
palette: e
|
|
205
|
-
}) => t ? "rgba(3, 111, 226, 0.12)" : e.action.hover
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
function zl(t) {
|
|
209
|
-
const e = Q(73), {
|
|
210
|
-
type: i,
|
|
211
|
-
label: o,
|
|
212
|
-
locked: n,
|
|
213
|
-
onToggleType: c,
|
|
214
|
-
onRename: s,
|
|
215
|
-
onToggleLock: a,
|
|
216
|
-
onDelete: r,
|
|
217
|
-
labels: f,
|
|
218
|
-
PaperProps: m
|
|
219
|
-
} = t, d = n === void 0 ? !1 : n;
|
|
220
|
-
let u;
|
|
221
|
-
e[0] !== m ? (u = m === void 0 ? {} : m, e[0] = m, e[1] = u) : u = e[1];
|
|
222
|
-
let x, h;
|
|
223
|
-
e[2] !== u ? ({
|
|
224
|
-
sx: h,
|
|
225
|
-
...x
|
|
226
|
-
} = u, e[2] = u, e[3] = x, e[4] = h) : (x = e[3], h = e[4]);
|
|
227
|
-
const S = we(null), _ = we(!1), [U, R] = ae(null), [P, b] = ae(), [v, O] = ae(o), g = !!U, I = i === "mask" ? f?.toggleType?.draw ?? "Switch to drawing" : f?.toggleType?.mask ?? "Switch to mask", k = f?.rename ?? "Rename", T = f?.renameInput ?? k, p = d ? f?.lock?.unlock ?? "Unlock" : f?.lock?.lock ?? "Lock", L = f?.delete ?? "Delete";
|
|
228
|
-
let C;
|
|
229
|
-
e[5] !== o ? (C = () => {
|
|
230
|
-
_.current = !1, O(o), b(S.current?.clientWidth), R(S.current);
|
|
231
|
-
}, e[5] = o, e[6] = C) : C = e[6];
|
|
232
|
-
const A = C;
|
|
233
|
-
let y;
|
|
234
|
-
e[7] !== v || e[8] !== o || e[9] !== s ? (y = () => {
|
|
235
|
-
if (!_.current) {
|
|
236
|
-
_.current = !0;
|
|
237
|
-
const re = v.trim();
|
|
238
|
-
re && re !== o && s(re);
|
|
239
|
-
}
|
|
240
|
-
R(null);
|
|
241
|
-
}, e[7] = v, e[8] = o, e[9] = s, e[10] = y) : y = e[10];
|
|
242
|
-
const w = y;
|
|
243
|
-
let E;
|
|
244
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
245
|
-
_.current = !0, R(null);
|
|
246
|
-
}, e[11] = E) : E = e[11];
|
|
247
|
-
const z = E;
|
|
248
|
-
let $;
|
|
249
|
-
e[12] !== w ? ($ = (re) => {
|
|
250
|
-
re.key === "Enter" && (re.preventDefault(), w()), re.key === "Escape" && (re.preventDefault(), z());
|
|
251
|
-
}, e[12] = w, e[13] = $) : $ = e[13];
|
|
252
|
-
const M = $;
|
|
253
|
-
let D;
|
|
254
|
-
e[14] !== h ? (D = {
|
|
255
|
-
...Vt,
|
|
256
|
-
...h
|
|
257
|
-
}, e[14] = h, e[15] = D) : D = e[15];
|
|
258
|
-
const V = i === "mask", N = i === "mask";
|
|
259
|
-
let Z;
|
|
260
|
-
e[16] !== c || e[17] !== i ? (Z = () => c(i === "mask" ? "draw" : "mask"), e[16] = c, e[17] = i, e[18] = Z) : Z = e[18];
|
|
261
|
-
let j;
|
|
262
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ l(Re, { component: nt, inheritViewBox: !0, sx: {
|
|
263
|
-
fontSize: Ie
|
|
264
|
-
} }), e[19] = j) : j = e[19];
|
|
265
|
-
let F;
|
|
266
|
-
e[20] !== d || e[21] !== N || e[22] !== Z || e[23] !== V || e[24] !== I ? (F = /* @__PURE__ */ l(Le, { label: I, active: V, pressed: N, disabled: d, onClick: Z, icon: j }), e[20] = d, e[21] = N, e[22] = Z, e[23] = V, e[24] = I, e[25] = F) : F = e[25];
|
|
267
|
-
let B;
|
|
268
|
-
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ l(he, { orientation: "vertical", flexItem: !0 }), e[26] = B) : B = e[26];
|
|
269
|
-
let H;
|
|
270
|
-
e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ l(Re, { component: it, inheritViewBox: !0, sx: {
|
|
271
|
-
fontSize: Ie
|
|
272
|
-
} }), e[27] = H) : H = e[27];
|
|
273
|
-
let q;
|
|
274
|
-
e[28] !== d || e[29] !== A || e[30] !== k || e[31] !== g ? (q = /* @__PURE__ */ l(Le, { label: k, active: g, disabled: d, onClick: A, icon: H }), e[28] = d, e[29] = A, e[30] = k, e[31] = g, e[32] = q) : q = e[32];
|
|
275
|
-
let Y;
|
|
276
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ l(he, { orientation: "vertical", flexItem: !0 }), e[33] = Y) : Y = e[33];
|
|
277
|
-
let G;
|
|
278
|
-
e[34] !== d || e[35] !== a ? (G = () => a(!d), e[34] = d, e[35] = a, e[36] = G) : G = e[36];
|
|
279
|
-
let K;
|
|
280
|
-
e[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ l(kt, { sx: {
|
|
281
|
-
fontSize: Ie
|
|
282
|
-
} }), e[37] = K) : K = e[37];
|
|
283
|
-
let J;
|
|
284
|
-
e[38] !== p || e[39] !== d || e[40] !== G ? (J = /* @__PURE__ */ l(Le, { label: p, active: d, pressed: d, onClick: G, icon: K }), e[38] = p, e[39] = d, e[40] = G, e[41] = J) : J = e[41];
|
|
285
|
-
let ee;
|
|
286
|
-
e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ l(he, { orientation: "vertical", flexItem: !0 }), e[42] = ee) : ee = e[42];
|
|
287
|
-
let te;
|
|
288
|
-
e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (te = /* @__PURE__ */ l(Tt, { sx: {
|
|
289
|
-
fontSize: Ie
|
|
290
|
-
} }), e[43] = te) : te = e[43];
|
|
291
|
-
let le;
|
|
292
|
-
e[44] !== L || e[45] !== d || e[46] !== r ? (le = /* @__PURE__ */ l(Le, { label: L, disabled: d, onClick: r, icon: te, color: "error" }), e[44] = L, e[45] = d, e[46] = r, e[47] = le) : le = e[47];
|
|
293
|
-
let oe, ce;
|
|
294
|
-
e[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = {
|
|
295
|
-
vertical: "bottom",
|
|
296
|
-
horizontal: "left"
|
|
297
|
-
}, ce = {
|
|
298
|
-
vertical: "top",
|
|
299
|
-
horizontal: "left"
|
|
300
|
-
}, e[48] = oe, e[49] = ce) : (oe = e[48], ce = e[49]);
|
|
301
|
-
let ie;
|
|
302
|
-
e[50] !== P ? (ie = {
|
|
303
|
-
paper: {
|
|
304
|
-
sx: {
|
|
305
|
-
width: P,
|
|
306
|
-
minWidth: 180
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}, e[50] = P, e[51] = ie) : ie = e[51];
|
|
310
|
-
let ge;
|
|
311
|
-
e[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = {
|
|
312
|
-
p: 1
|
|
313
|
-
}, e[52] = ge) : ge = e[52];
|
|
314
|
-
let pe;
|
|
315
|
-
e[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = (re) => O(re.target.value), e[53] = pe) : pe = e[53];
|
|
316
|
-
let de;
|
|
317
|
-
e[54] !== w || e[55] !== v || e[56] !== M || e[57] !== T ? (de = /* @__PURE__ */ l(ne, { sx: ge, children: /* @__PURE__ */ l(st, { inputRef: Zt, fullWidth: !0, label: T, size: "small", variant: "outlined", value: v, onChange: pe, onKeyDown: M, onBlur: w }) }), e[54] = w, e[55] = v, e[56] = M, e[57] = T, e[58] = de) : de = e[58];
|
|
318
|
-
let ue;
|
|
319
|
-
e[59] !== U || e[60] !== w || e[61] !== g || e[62] !== ie || e[63] !== de ? (ue = /* @__PURE__ */ l(Ye, { open: g, anchorEl: U, onClose: w, anchorOrigin: oe, transformOrigin: ce, slotProps: ie, children: de }), e[59] = U, e[60] = w, e[61] = g, e[62] = ie, e[63] = de, e[64] = ue) : ue = e[64];
|
|
320
|
-
let X;
|
|
321
|
-
return e[65] !== x || e[66] !== F || e[67] !== q || e[68] !== J || e[69] !== le || e[70] !== ue || e[71] !== D ? (X = /* @__PURE__ */ W(Me, { ref: S, elevation: 6, sx: D, ...x, children: [
|
|
322
|
-
F,
|
|
323
|
-
B,
|
|
324
|
-
q,
|
|
325
|
-
Y,
|
|
326
|
-
J,
|
|
327
|
-
ee,
|
|
328
|
-
le,
|
|
329
|
-
ue
|
|
330
|
-
] }), e[65] = x, e[66] = F, e[67] = q, e[68] = J, e[69] = le, e[70] = ue, e[71] = D, e[72] = X) : X = e[72], X;
|
|
331
|
-
}
|
|
332
|
-
function Zt(t) {
|
|
333
|
-
return t?.focus();
|
|
334
|
-
}
|
|
335
|
-
function Le(t) {
|
|
336
|
-
const e = Q(14), {
|
|
337
|
-
label: i,
|
|
338
|
-
icon: o,
|
|
339
|
-
active: n,
|
|
340
|
-
pressed: c,
|
|
341
|
-
disabled: s,
|
|
342
|
-
color: a,
|
|
343
|
-
onClick: r
|
|
344
|
-
} = t, f = n === void 0 ? !1 : n, m = s === void 0 ? !1 : s;
|
|
345
|
-
let d;
|
|
346
|
-
e[0] !== f || e[1] !== a ? (d = a ? lt : Ft(f), e[0] = f, e[1] = a, e[2] = d) : d = e[2];
|
|
347
|
-
let u;
|
|
348
|
-
e[3] !== a || e[4] !== m || e[5] !== o || e[6] !== i || e[7] !== r || e[8] !== c || e[9] !== d ? (u = /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(be, { "aria-label": i, "aria-pressed": c, disabled: m, color: a, onClick: r, sx: d, children: o }) }), e[3] = a, e[4] = m, e[5] = o, e[6] = i, e[7] = r, e[8] = c, e[9] = d, e[10] = u) : u = e[10];
|
|
349
|
-
let x;
|
|
350
|
-
return e[11] !== i || e[12] !== u ? (x = /* @__PURE__ */ l(ke, { title: i, placement: "top", children: u }), e[11] = i, e[12] = u, e[13] = x) : x = e[13], x;
|
|
351
|
-
}
|
|
352
|
-
const jt = {
|
|
353
|
-
display: "flex",
|
|
354
|
-
alignItems: "center",
|
|
355
|
-
justifyContent: "space-between",
|
|
356
|
-
gap: 1,
|
|
357
|
-
p: 2
|
|
358
|
-
}, Ht = {
|
|
359
|
-
borderRadius: ({
|
|
360
|
-
spacing: t
|
|
361
|
-
}) => t(0.5),
|
|
362
|
-
overflow: "hidden",
|
|
363
|
-
backgroundColor: ({
|
|
364
|
-
palette: t
|
|
365
|
-
}) => t.background.default
|
|
366
|
-
}, Nt = {
|
|
367
|
-
display: "flex",
|
|
368
|
-
alignItems: "center",
|
|
369
|
-
gap: 1,
|
|
370
|
-
height: 32,
|
|
371
|
-
px: 1.5,
|
|
372
|
-
color: ({
|
|
373
|
-
palette: t
|
|
374
|
-
}) => t.text.secondary
|
|
375
|
-
}, Ze = {
|
|
376
|
-
px: 2,
|
|
377
|
-
py: 0.5
|
|
378
|
-
}, je = {
|
|
379
|
-
minWidth: 0,
|
|
380
|
-
mr: 1
|
|
381
|
-
};
|
|
382
|
-
function Vl(t) {
|
|
383
|
-
const e = Q(82), {
|
|
384
|
-
open: i,
|
|
385
|
-
onClose: o,
|
|
386
|
-
layers: n,
|
|
387
|
-
onApply: c,
|
|
388
|
-
labels: s,
|
|
389
|
-
DialogProps: a
|
|
390
|
-
} = t, r = St(), [f, m] = ae(qt), [d, u] = ae(""), [x, h] = ae(!1);
|
|
391
|
-
i !== x && (h(i), i && (m(new Set(n.filter(Xt).map(Kt))), u("")));
|
|
392
|
-
const S = s?.title ?? "Layer Filters", _ = s?.description ?? "Select the layers you want to filter with this polygon", U = s?.allSelected ?? "All selected", R = s?.empty ?? "No layers to filter";
|
|
393
|
-
let P;
|
|
394
|
-
e[0] !== f || e[1] !== n ? (P = n.length > 0 && n.every((X) => f.has(X.id)), e[0] = f, e[1] = n, e[2] = P) : P = e[2];
|
|
395
|
-
const b = P;
|
|
396
|
-
let v;
|
|
397
|
-
if (e[3] !== f || e[4] !== n) {
|
|
398
|
-
let X;
|
|
399
|
-
e[6] !== f ? (X = (re) => f.has(re.id), e[6] = f, e[7] = X) : X = e[7], v = n.some(X), e[3] = f, e[4] = n, e[5] = v;
|
|
400
|
-
} else
|
|
401
|
-
v = e[5];
|
|
402
|
-
const O = v;
|
|
403
|
-
let g;
|
|
404
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (X) => m((re) => {
|
|
405
|
-
const Ae = new Set(re);
|
|
406
|
-
return Ae.has(X) ? Ae.delete(X) : Ae.add(X), Ae;
|
|
407
|
-
}), e[8] = g) : g = e[8];
|
|
408
|
-
const I = g;
|
|
409
|
-
let k;
|
|
410
|
-
e[9] !== b || e[10] !== n ? (k = () => m(b ? /* @__PURE__ */ new Set() : new Set(n.map(Yt))), e[9] = b, e[10] = n, e[11] = k) : k = e[11];
|
|
411
|
-
const T = k;
|
|
412
|
-
let p;
|
|
413
|
-
e[12] !== f || e[13] !== n || e[14] !== c || e[15] !== o ? (p = () => {
|
|
414
|
-
c(n.filter((X) => f.has(X.id)).map(Gt)), o();
|
|
415
|
-
}, e[12] = f, e[13] = n, e[14] = c, e[15] = o, e[16] = p) : p = e[16];
|
|
416
|
-
const L = p;
|
|
417
|
-
let C, A;
|
|
418
|
-
e[17] !== n || e[18] !== d ? (C = d.trim().toLowerCase(), A = C ? n.filter((X) => X.label.toLowerCase().includes(C)) : n, e[17] = n, e[18] = d, e[19] = C, e[20] = A) : (C = e[19], A = e[20]);
|
|
419
|
-
const y = A;
|
|
420
|
-
let w;
|
|
421
|
-
e[21] !== S ? (w = /* @__PURE__ */ l(se, { variant: "subtitle1", fontWeight: 500, children: S }), e[21] = S, e[22] = w) : w = e[22];
|
|
422
|
-
let E;
|
|
423
|
-
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ l(Ue, { fontSize: "small" }), e[23] = E) : E = e[23];
|
|
424
|
-
let z;
|
|
425
|
-
e[24] !== o ? (z = /* @__PURE__ */ l(be, { "aria-label": "close", size: "small", onClick: o, children: E }), e[24] = o, e[25] = z) : z = e[25];
|
|
426
|
-
let $;
|
|
427
|
-
e[26] !== w || e[27] !== z ? ($ = /* @__PURE__ */ W(Xe, { component: "div", sx: jt, children: [
|
|
428
|
-
w,
|
|
429
|
-
z
|
|
430
|
-
] }), e[26] = w, e[27] = z, e[28] = $) : $ = e[28];
|
|
431
|
-
let M;
|
|
432
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
433
|
-
pt: 1,
|
|
434
|
-
px: 2,
|
|
435
|
-
pb: 3
|
|
436
|
-
}, e[29] = M) : M = e[29];
|
|
437
|
-
let D;
|
|
438
|
-
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
439
|
-
mb: 2
|
|
440
|
-
}, e[30] = D) : D = e[30];
|
|
441
|
-
let V;
|
|
442
|
-
e[31] !== _ ? (V = /* @__PURE__ */ l(se, { variant: "body2", color: "text.secondary", sx: D, children: _ }), e[31] = _, e[32] = V) : V = e[32];
|
|
443
|
-
let N;
|
|
444
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(Mt, { sx: {
|
|
445
|
-
fontSize: 18
|
|
446
|
-
} }), e[33] = N) : N = e[33];
|
|
447
|
-
const Z = s?.search ?? "Search layers", j = s?.search ?? "Search layers";
|
|
448
|
-
let F;
|
|
449
|
-
e[34] !== j ? (F = {
|
|
450
|
-
"aria-label": j
|
|
451
|
-
}, e[34] = j, e[35] = F) : F = e[35];
|
|
452
|
-
let B, H;
|
|
453
|
-
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = (X) => u(X.target.value), H = {
|
|
454
|
-
fontSize: 13,
|
|
455
|
-
color: "text.primary"
|
|
456
|
-
}, e[36] = B, e[37] = H) : (B = e[36], H = e[37]);
|
|
457
|
-
let q;
|
|
458
|
-
e[38] !== d || e[39] !== Z || e[40] !== F ? (q = /* @__PURE__ */ W(ne, { sx: Nt, children: [
|
|
459
|
-
N,
|
|
460
|
-
/* @__PURE__ */ l(rt, { fullWidth: !0, placeholder: Z, inputProps: F, value: d, onChange: B, sx: H })
|
|
461
|
-
] }), e[38] = d, e[39] = Z, e[40] = F, e[41] = q) : q = e[41];
|
|
462
|
-
let Y;
|
|
463
|
-
e[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ l(he, {}), e[42] = Y) : Y = e[42];
|
|
464
|
-
let G;
|
|
465
|
-
e[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = {
|
|
466
|
-
maxHeight: 240,
|
|
467
|
-
overflowY: "auto",
|
|
468
|
-
"& .MuiDivider-root": {
|
|
469
|
-
my: 0
|
|
470
|
-
}
|
|
471
|
-
}, e[43] = G) : G = e[43];
|
|
472
|
-
let K;
|
|
473
|
-
e[44] !== b || e[45] !== U || e[46] !== r || e[47] !== C || e[48] !== O || e[49] !== T ? (K = !C && /* @__PURE__ */ W(me, { children: [
|
|
474
|
-
/* @__PURE__ */ W(We, { dense: !0, sx: Ze, onClick: T, children: [
|
|
475
|
-
/* @__PURE__ */ l($e, { sx: je, children: /* @__PURE__ */ l(ze, { edge: "start", tabIndex: -1, disableRipple: !0, sx: {
|
|
476
|
-
p: 0.5
|
|
477
|
-
}, checked: b, indeterminate: !b && O, inputProps: {
|
|
478
|
-
"aria-labelledby": `${r}-all`
|
|
479
|
-
} }) }),
|
|
480
|
-
/* @__PURE__ */ l(Ce, { id: `${r}-all`, primary: U, primaryTypographyProps: {
|
|
481
|
-
variant: "body2"
|
|
482
|
-
} })
|
|
483
|
-
] }),
|
|
484
|
-
/* @__PURE__ */ l(he, {})
|
|
485
|
-
] }), e[44] = b, e[45] = U, e[46] = r, e[47] = C, e[48] = O, e[49] = T, e[50] = K) : K = e[50];
|
|
486
|
-
let J;
|
|
487
|
-
e[51] !== f || e[52] !== R || e[53] !== y || e[54] !== r ? (J = y.length === 0 ? /* @__PURE__ */ l(se, { variant: "body2", color: "text.secondary", sx: {
|
|
488
|
-
p: 2
|
|
489
|
-
}, children: R }) : y.map((X) => /* @__PURE__ */ W(We, { dense: !0, sx: Ze, onClick: () => I(X.id), children: [
|
|
490
|
-
/* @__PURE__ */ l($e, { sx: je, children: /* @__PURE__ */ l(ze, { edge: "start", tabIndex: -1, disableRipple: !0, sx: {
|
|
491
|
-
p: 0.5
|
|
492
|
-
}, checked: f.has(X.id), inputProps: {
|
|
493
|
-
"aria-labelledby": `${r}-${X.id}`
|
|
494
|
-
} }) }),
|
|
495
|
-
/* @__PURE__ */ l(Ce, { id: `${r}-${X.id}`, primary: X.label, primaryTypographyProps: {
|
|
496
|
-
variant: "body2",
|
|
497
|
-
noWrap: !0,
|
|
498
|
-
title: X.label
|
|
499
|
-
} })
|
|
500
|
-
] }, X.id)), e[51] = f, e[52] = R, e[53] = y, e[54] = r, e[55] = J) : J = e[55];
|
|
501
|
-
let ee;
|
|
502
|
-
e[56] !== K || e[57] !== J ? (ee = /* @__PURE__ */ W(qe, { component: "div", role: "list", disablePadding: !0, sx: G, children: [
|
|
503
|
-
K,
|
|
504
|
-
J
|
|
505
|
-
] }), e[56] = K, e[57] = J, e[58] = ee) : ee = e[58];
|
|
506
|
-
let te;
|
|
507
|
-
e[59] !== q || e[60] !== ee ? (te = /* @__PURE__ */ W(ne, { sx: Ht, children: [
|
|
508
|
-
q,
|
|
509
|
-
Y,
|
|
510
|
-
ee
|
|
511
|
-
] }), e[59] = q, e[60] = ee, e[61] = te) : te = e[61];
|
|
512
|
-
let le;
|
|
513
|
-
e[62] !== V || e[63] !== te ? (le = /* @__PURE__ */ W(Qe, { sx: M, children: [
|
|
514
|
-
V,
|
|
515
|
-
te
|
|
516
|
-
] }), e[62] = V, e[63] = te, e[64] = le) : le = e[64];
|
|
517
|
-
let oe;
|
|
518
|
-
e[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = {
|
|
519
|
-
p: 2
|
|
520
|
-
}, e[65] = oe) : oe = e[65];
|
|
521
|
-
const ce = s?.cancel ?? "Cancel";
|
|
522
|
-
let ie;
|
|
523
|
-
e[66] !== o || e[67] !== ce ? (ie = /* @__PURE__ */ l(_e, { onClick: o, children: ce }), e[66] = o, e[67] = ce, e[68] = ie) : ie = e[68];
|
|
524
|
-
const ge = s?.apply ?? "Apply";
|
|
525
|
-
let pe;
|
|
526
|
-
e[69] !== L || e[70] !== ge ? (pe = /* @__PURE__ */ l(_e, { variant: "contained", onClick: L, children: ge }), e[69] = L, e[70] = ge, e[71] = pe) : pe = e[71];
|
|
527
|
-
let de;
|
|
528
|
-
e[72] !== ie || e[73] !== pe ? (de = /* @__PURE__ */ W(Je, { sx: oe, children: [
|
|
529
|
-
ie,
|
|
530
|
-
pe
|
|
531
|
-
] }), e[72] = ie, e[73] = pe, e[74] = de) : de = e[74];
|
|
532
|
-
let ue;
|
|
533
|
-
return e[75] !== a || e[76] !== o || e[77] !== i || e[78] !== $ || e[79] !== le || e[80] !== de ? (ue = /* @__PURE__ */ W(Ke, { open: i, onClose: o, maxWidth: "xs", fullWidth: !0, ...a, children: [
|
|
534
|
-
$,
|
|
535
|
-
le,
|
|
536
|
-
de
|
|
537
|
-
] }), e[75] = a, e[76] = o, e[77] = i, e[78] = $, e[79] = le, e[80] = de, e[81] = ue) : ue = e[81], ue;
|
|
538
|
-
}
|
|
539
|
-
function Gt(t) {
|
|
540
|
-
return t.id;
|
|
541
|
-
}
|
|
542
|
-
function Yt(t) {
|
|
543
|
-
return t.id;
|
|
544
|
-
}
|
|
545
|
-
function Kt(t) {
|
|
546
|
-
return t.id;
|
|
547
|
-
}
|
|
548
|
-
function Xt(t) {
|
|
549
|
-
return t.checked;
|
|
550
|
-
}
|
|
551
|
-
function qt() {
|
|
552
|
-
return /* @__PURE__ */ new Set();
|
|
553
|
-
}
|
|
554
|
-
function Fl(t) {
|
|
555
|
-
const e = Q(16), {
|
|
556
|
-
message: i,
|
|
557
|
-
onDismiss: o,
|
|
558
|
-
AlertProps: n,
|
|
559
|
-
SnackbarProps: c
|
|
560
|
-
} = t;
|
|
561
|
-
let s;
|
|
562
|
-
e[0] !== o ? (s = (u, x) => x !== "clickaway" && o(), e[0] = o, e[1] = s) : s = e[1];
|
|
563
|
-
let a;
|
|
564
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
565
|
-
position: "static",
|
|
566
|
-
transform: "none"
|
|
567
|
-
}, e[2] = a) : a = e[2];
|
|
568
|
-
const r = i.severity ?? "info";
|
|
569
|
-
let f;
|
|
570
|
-
e[3] !== i.title ? (f = /* @__PURE__ */ l(at, { children: i.title }), e[3] = i.title, e[4] = f) : f = e[4];
|
|
571
|
-
let m;
|
|
572
|
-
e[5] !== n || e[6] !== i.action || e[7] !== i.content || e[8] !== o || e[9] !== r || e[10] !== f ? (m = /* @__PURE__ */ W(et, { severity: r, action: i.action, onClose: o, ...n, children: [
|
|
573
|
-
f,
|
|
574
|
-
i.content
|
|
575
|
-
] }), e[5] = n, e[6] = i.action, e[7] = i.content, e[8] = o, e[9] = r, e[10] = f, e[11] = m) : m = e[11];
|
|
576
|
-
let d;
|
|
577
|
-
return e[12] !== c || e[13] !== s || e[14] !== m ? (d = /* @__PURE__ */ l(ct, { open: !0, autoHideDuration: 5e3, onClose: s, sx: a, ...c, children: m }), e[12] = c, e[13] = s, e[14] = m, e[15] = d) : d = e[15], d;
|
|
578
|
-
}
|
|
579
|
-
function Qt(t) {
|
|
580
|
-
const e = Q(3);
|
|
581
|
-
let i;
|
|
582
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", 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" }), e[0] = i) : i = e[0];
|
|
583
|
-
let o;
|
|
584
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
585
|
-
}
|
|
586
|
-
function Jt(t) {
|
|
587
|
-
const e = Q(3);
|
|
588
|
-
let i;
|
|
589
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", 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", clipRule: "evenodd" }), e[0] = i) : i = e[0];
|
|
590
|
-
let o;
|
|
591
|
-
return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: i }), e[1] = t, e[2] = o) : o = e[2], o;
|
|
592
|
-
}
|
|
593
|
-
function el(t) {
|
|
594
|
-
const e = Q(4);
|
|
595
|
-
let i, o;
|
|
596
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ l("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), o = /* @__PURE__ */ l("path", { fill: "#2C3032", fillRule: "evenodd", 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", clipRule: "evenodd" }), e[0] = i, e[1] = o) : (i = e[0], o = e[1]);
|
|
597
|
-
let n;
|
|
598
|
-
return e[2] !== t ? (n = /* @__PURE__ */ W("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
|
|
599
|
-
i,
|
|
600
|
-
o
|
|
601
|
-
] }), e[2] = t, e[3] = n) : n = e[3], n;
|
|
602
|
-
}
|
|
603
|
-
const ve = {
|
|
604
|
-
action: {
|
|
605
|
-
tooltip: {
|
|
606
|
-
active: "Click on the map to start measuring",
|
|
607
|
-
inactive: "Click on the map to start measuring"
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
chip: {
|
|
611
|
-
tooltip: {
|
|
612
|
-
active: "Hide measure",
|
|
613
|
-
inactive: "Show measure"
|
|
614
|
-
}
|
|
615
|
-
},
|
|
616
|
-
options: {
|
|
617
|
-
mode: {
|
|
618
|
-
title: "Choose a measuring tool",
|
|
619
|
-
options: {
|
|
620
|
-
distance: "Measure distance",
|
|
621
|
-
buffer: "Buffer distance",
|
|
622
|
-
area: "Area"
|
|
623
|
-
}
|
|
624
|
-
},
|
|
625
|
-
units: {
|
|
626
|
-
title: "Unit of measurement",
|
|
627
|
-
modal: {
|
|
628
|
-
title: "Map Measurement Unit",
|
|
629
|
-
subtitle: "Select the unit of measurement for your measurements",
|
|
630
|
-
apply: "Save",
|
|
631
|
-
options: {
|
|
632
|
-
metric: {
|
|
633
|
-
title: "Meters and Kilometers",
|
|
634
|
-
options: {
|
|
635
|
-
"m-km": "Auto",
|
|
636
|
-
kilometer: "Kilometers",
|
|
637
|
-
meter: "Meter",
|
|
638
|
-
centimeter: "Centimeter",
|
|
639
|
-
milimeter: "Milimeter"
|
|
640
|
-
}
|
|
641
|
-
},
|
|
642
|
-
imperial: {
|
|
643
|
-
title: "Feet and Miles",
|
|
644
|
-
options: {
|
|
645
|
-
"ft-mi": "Auto",
|
|
646
|
-
mile: "Mile",
|
|
647
|
-
feet: "Feet",
|
|
648
|
-
yard: "Yard"
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
}, tl = {
|
|
656
|
-
"m-km": {
|
|
657
|
-
short: "m-km"
|
|
658
|
-
},
|
|
659
|
-
kilometer: {
|
|
660
|
-
short: "km"
|
|
661
|
-
},
|
|
662
|
-
meter: {
|
|
663
|
-
short: "m"
|
|
664
|
-
},
|
|
665
|
-
centimeter: {
|
|
666
|
-
short: "cm"
|
|
667
|
-
},
|
|
668
|
-
milimeter: {
|
|
669
|
-
short: "mm"
|
|
670
|
-
},
|
|
671
|
-
"ft-mi": {
|
|
672
|
-
short: "ft-mi"
|
|
673
|
-
},
|
|
674
|
-
mile: {
|
|
675
|
-
short: "mi"
|
|
676
|
-
},
|
|
677
|
-
yard: {
|
|
678
|
-
short: "yd"
|
|
679
|
-
},
|
|
680
|
-
feet: {
|
|
681
|
-
short: "ft"
|
|
682
|
-
}
|
|
683
|
-
}, ll = {
|
|
684
|
-
distance: {
|
|
685
|
-
icon: /* @__PURE__ */ l(Qt, {})
|
|
686
|
-
},
|
|
687
|
-
buffer: {
|
|
688
|
-
icon: /* @__PURE__ */ l(Jt, {})
|
|
689
|
-
},
|
|
690
|
-
area: {
|
|
691
|
-
icon: /* @__PURE__ */ l(el, {})
|
|
692
|
-
}
|
|
693
|
-
}, fe = {
|
|
694
|
-
container: {
|
|
695
|
-
display: "flex",
|
|
696
|
-
flexDirection: "row",
|
|
697
|
-
alignItems: "center",
|
|
698
|
-
justifyContent: "flex-start",
|
|
699
|
-
gap: ({
|
|
700
|
-
spacing: t
|
|
701
|
-
}) => t(1),
|
|
702
|
-
overflow: "hidden",
|
|
703
|
-
width: "fit-content"
|
|
704
|
-
},
|
|
705
|
-
actions: {
|
|
706
|
-
icon: {
|
|
707
|
-
width: ({
|
|
708
|
-
spacing: t
|
|
709
|
-
}) => t(4),
|
|
710
|
-
height: ({
|
|
711
|
-
spacing: t
|
|
712
|
-
}) => t(4),
|
|
713
|
-
borderRadius: 0,
|
|
714
|
-
".MuiTouchRipple-ripple .MuiTouchRipple-child": {
|
|
715
|
-
borderRadius: 0
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
options: {
|
|
720
|
-
menu: {
|
|
721
|
-
marginTop: ({
|
|
722
|
-
spacing: t
|
|
723
|
-
}) => t(1)
|
|
724
|
-
},
|
|
725
|
-
icon: {
|
|
726
|
-
width: ({
|
|
727
|
-
spacing: t
|
|
728
|
-
}) => t(3)
|
|
729
|
-
},
|
|
730
|
-
title: {
|
|
731
|
-
paddingX: ({
|
|
732
|
-
spacing: t
|
|
733
|
-
}) => t(2),
|
|
734
|
-
paddingY: ({
|
|
735
|
-
spacing: t
|
|
736
|
-
}) => t(0.5)
|
|
737
|
-
},
|
|
738
|
-
icons: {
|
|
739
|
-
color: ({
|
|
740
|
-
palette: t
|
|
741
|
-
}) => t.text.primary
|
|
742
|
-
},
|
|
743
|
-
tag: {
|
|
744
|
-
borderRadius: ({
|
|
745
|
-
spacing: t
|
|
746
|
-
}) => t(0.25),
|
|
747
|
-
border: "1px solid",
|
|
748
|
-
borderColor: ({
|
|
749
|
-
palette: t
|
|
750
|
-
}) => t.primary.main,
|
|
751
|
-
paddingX: ({
|
|
752
|
-
spacing: t
|
|
753
|
-
}) => t(0.5),
|
|
754
|
-
color: ({
|
|
755
|
-
palette: t
|
|
756
|
-
}) => t.primary.main,
|
|
757
|
-
backgroundColor: ({
|
|
758
|
-
palette: t
|
|
759
|
-
}) => dt(t.primary.main, 0.08)
|
|
760
|
-
},
|
|
761
|
-
modal: {
|
|
762
|
-
toggle: {
|
|
763
|
-
boxShadow: "none",
|
|
764
|
-
backgroundColor: "#F8F9F9",
|
|
765
|
-
padding: ({
|
|
766
|
-
spacing: t
|
|
767
|
-
}) => t(0.5),
|
|
768
|
-
marginTop: ({
|
|
769
|
-
spacing: t
|
|
770
|
-
}) => t(2),
|
|
771
|
-
marginBottom: ({
|
|
772
|
-
spacing: t
|
|
773
|
-
}) => t(1),
|
|
774
|
-
".MuiToggleButtonGroup-grouped": {
|
|
775
|
-
typography: "caption",
|
|
776
|
-
fontWeight: 500,
|
|
777
|
-
margin: 0,
|
|
778
|
-
"&:first-of-type:not(.MuiDivider-root)": {
|
|
779
|
-
marginLeft: 0
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
subtitle: {
|
|
784
|
-
typography: "body2",
|
|
785
|
-
color: ({
|
|
786
|
-
palette: t
|
|
787
|
-
}) => t.text.secondary
|
|
788
|
-
},
|
|
789
|
-
optionsGroup: {
|
|
790
|
-
marginLeft: ({
|
|
791
|
-
spacing: t
|
|
792
|
-
}) => t(1),
|
|
793
|
-
typography: "body2"
|
|
794
|
-
},
|
|
795
|
-
title: {
|
|
796
|
-
display: "flex",
|
|
797
|
-
justifyContent: "space-between",
|
|
798
|
-
alignItems: "center",
|
|
799
|
-
padding: ({
|
|
800
|
-
spacing: t
|
|
801
|
-
}) => t(2)
|
|
802
|
-
},
|
|
803
|
-
content: {
|
|
804
|
-
paddingX: ({
|
|
805
|
-
spacing: t
|
|
806
|
-
}) => t(2),
|
|
807
|
-
minWidth: ({
|
|
808
|
-
spacing: t
|
|
809
|
-
}) => t(50)
|
|
810
|
-
},
|
|
811
|
-
actions: {
|
|
812
|
-
paddingX: ({
|
|
813
|
-
spacing: t
|
|
814
|
-
}) => t(2)
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}, ol = {};
|
|
819
|
-
function Zl(t) {
|
|
820
|
-
const e = Q(44), {
|
|
821
|
-
enabled: i,
|
|
822
|
-
actionProps: o,
|
|
823
|
-
labels: n,
|
|
824
|
-
modes: c,
|
|
825
|
-
modesMapping: s,
|
|
826
|
-
unitsMapping: a,
|
|
827
|
-
modeSelected: r,
|
|
828
|
-
PaperProps: f,
|
|
829
|
-
units: m,
|
|
830
|
-
unitSelected: d,
|
|
831
|
-
onActionToggle: u,
|
|
832
|
-
onChangeMode: x,
|
|
833
|
-
onChangeUnit: h
|
|
834
|
-
} = t, S = n === void 0 ? ve : n, _ = s === void 0 ? ll : s, U = a === void 0 ? tl : a, R = f === void 0 ? ol : f;
|
|
835
|
-
let P, b;
|
|
836
|
-
e[0] !== R ? ({
|
|
837
|
-
sx: b,
|
|
838
|
-
...P
|
|
839
|
-
} = R, e[0] = R, e[1] = P, e[2] = b) : (P = e[1], b = e[2]);
|
|
840
|
-
let v;
|
|
841
|
-
e[3] !== u ? (v = (B) => u(!!B), e[3] = u, e[4] = v) : v = e[4];
|
|
842
|
-
const O = v;
|
|
843
|
-
let g;
|
|
844
|
-
e[5] !== c || e[6] !== _ ? (g = Be(c, _), e[5] = c, e[6] = _, e[7] = g) : g = e[7];
|
|
845
|
-
const I = g, k = (r ?? "") in I;
|
|
846
|
-
let T;
|
|
847
|
-
e[8] !== I || e[9] !== k || e[10] !== r ? (T = k ? r : Object.keys(I)[0], e[8] = I, e[9] = k, e[10] = r, e[11] = T) : T = e[11];
|
|
848
|
-
const p = T, L = I[p], C = m[p];
|
|
849
|
-
let A;
|
|
850
|
-
e[12] !== p || e[13] !== C || e[14] !== m ? (A = Object.keys(m).length >= 1 ? m : {
|
|
851
|
-
[p]: C.slice(0, 1)
|
|
852
|
-
}, e[12] = p, e[13] = C, e[14] = m, e[15] = A) : A = e[15];
|
|
853
|
-
const w = A[p];
|
|
854
|
-
let E;
|
|
855
|
-
if (e[16] !== w || e[17] !== U) {
|
|
856
|
-
let B;
|
|
857
|
-
e[19] !== U ? (B = (H) => ({
|
|
858
|
-
...H,
|
|
859
|
-
...U[H.value]
|
|
860
|
-
}), e[19] = U, e[20] = B) : B = e[20], E = w.map(B), e[16] = w, e[17] = U, e[18] = E;
|
|
861
|
-
} else
|
|
862
|
-
E = e[18];
|
|
863
|
-
const z = E;
|
|
864
|
-
let $;
|
|
865
|
-
e[21] !== b ? ($ = {
|
|
866
|
-
...fe.container,
|
|
867
|
-
...b
|
|
868
|
-
}, e[21] = b, e[22] = $) : $ = e[22];
|
|
869
|
-
const M = S?.action, D = L?.icon;
|
|
870
|
-
let V;
|
|
871
|
-
e[23] !== o || e[24] !== i || e[25] !== O || e[26] !== M || e[27] !== D ? (V = /* @__PURE__ */ l(nl, { actionProps: o, labels: M, enabled: i, onActionToggle: O, children: D }), e[23] = o, e[24] = i, e[25] = O, e[26] = M, e[27] = D, e[28] = V) : V = e[28];
|
|
872
|
-
const N = S?.options;
|
|
873
|
-
let Z;
|
|
874
|
-
e[29] !== z || e[30] !== I || e[31] !== p || e[32] !== x || e[33] !== h || e[34] !== N || e[35] !== d ? (Z = /* @__PURE__ */ l(il, { labels: N, modes: I, modeSelected: p, units: z, unitSelected: d, onChangeMode: x, onChangeUnit: h }), e[29] = z, e[30] = I, e[31] = p, e[32] = x, e[33] = h, e[34] = N, e[35] = d, e[36] = Z) : Z = e[36];
|
|
875
|
-
let j;
|
|
876
|
-
e[37] !== V || e[38] !== Z ? (j = /* @__PURE__ */ W(ne, { children: [
|
|
877
|
-
V,
|
|
878
|
-
Z
|
|
879
|
-
] }), e[37] = V, e[38] = Z, e[39] = j) : j = e[39];
|
|
880
|
-
let F;
|
|
881
|
-
return e[40] !== P || e[41] !== $ || e[42] !== j ? (F = /* @__PURE__ */ l(Me, { sx: $, ...P, children: j }), e[40] = P, e[41] = $, e[42] = j, e[43] = F) : F = e[43], F;
|
|
882
|
-
}
|
|
883
|
-
function nl(t) {
|
|
884
|
-
const e = Q(12), {
|
|
885
|
-
actionProps: i,
|
|
886
|
-
labels: o,
|
|
887
|
-
enabled: n,
|
|
888
|
-
children: c,
|
|
889
|
-
onActionToggle: s
|
|
890
|
-
} = t, a = n ? "active" : "inactive", r = o?.tooltip?.[a] ?? ve.action.tooltip[a], f = i?.TooltipProps;
|
|
891
|
-
let m;
|
|
892
|
-
e[0] !== n || e[1] !== s ? (m = () => s(!n), e[0] = n, e[1] = s, e[2] = m) : m = e[2];
|
|
893
|
-
let d;
|
|
894
|
-
e[3] !== r || e[4] !== c || e[5] !== n || e[6] !== m ? (d = /* @__PURE__ */ l(Pe, { value: "toggle", sx: fe.actions.icon, onClick: m, "aria-label": r, selected: n, children: c }), e[3] = r, e[4] = c, e[5] = n, e[6] = m, e[7] = d) : d = e[7];
|
|
895
|
-
let u;
|
|
896
|
-
return e[8] !== r || e[9] !== f || e[10] !== d ? (u = /* @__PURE__ */ l(ke, { title: r, placement: "right", ...f, children: d }), e[8] = r, e[9] = f, e[10] = d, e[11] = u) : u = e[11], u;
|
|
897
|
-
}
|
|
898
|
-
function il(t) {
|
|
899
|
-
const e = Q(41), {
|
|
900
|
-
modes: i,
|
|
901
|
-
modeSelected: o,
|
|
902
|
-
units: n,
|
|
903
|
-
unitSelected: c,
|
|
904
|
-
labels: s,
|
|
905
|
-
onChangeMode: a,
|
|
906
|
-
onChangeUnit: r
|
|
907
|
-
} = t, [f, m] = ae(null), [d, u] = ae(!1);
|
|
908
|
-
let x;
|
|
909
|
-
e[0] !== i ? (x = Object.values(i), e[0] = i, e[1] = x) : x = e[1];
|
|
910
|
-
const h = x;
|
|
911
|
-
let S;
|
|
912
|
-
e[2] !== n ? (S = Object.values(n), e[2] = n, e[3] = S) : S = e[3];
|
|
913
|
-
const _ = S;
|
|
914
|
-
if (!(h.length > 1 || _.length > 1))
|
|
915
|
-
return null;
|
|
916
|
-
const R = !!f;
|
|
917
|
-
let P;
|
|
918
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (B) => {
|
|
919
|
-
m(B.currentTarget);
|
|
920
|
-
}, e[4] = P) : P = e[4];
|
|
921
|
-
const b = P;
|
|
922
|
-
let v;
|
|
923
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
|
|
924
|
-
m(null);
|
|
925
|
-
}, e[5] = v) : v = e[5];
|
|
926
|
-
const O = v;
|
|
927
|
-
let g;
|
|
928
|
-
e[6] !== a ? (g = (B, H) => {
|
|
929
|
-
B.preventDefault(), a(H.value), O();
|
|
930
|
-
}, e[6] = a, e[7] = g) : g = e[7];
|
|
931
|
-
const I = g;
|
|
932
|
-
let k;
|
|
933
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => {
|
|
934
|
-
u(!0);
|
|
935
|
-
}, e[8] = k) : k = e[8];
|
|
936
|
-
const T = k;
|
|
937
|
-
let p;
|
|
938
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
|
|
939
|
-
u(!1);
|
|
940
|
-
}, e[9] = p) : p = e[9];
|
|
941
|
-
const L = p;
|
|
942
|
-
let C;
|
|
943
|
-
e[10] !== r ? (C = (B) => {
|
|
944
|
-
L(), r(B);
|
|
945
|
-
}, e[10] = r, e[11] = C) : C = e[11];
|
|
946
|
-
const A = C, y = s?.mode?.title ?? ve.options.mode.title, w = s?.units?.title ?? ve.options.units.title, E = h.length > 1 && _.length > 1;
|
|
947
|
-
let z;
|
|
948
|
-
e[12] !== c || e[13] !== n ? (z = n.find((B) => B.value === c) ?? n[0], e[12] = c, e[13] = n, e[14] = z) : z = e[14];
|
|
949
|
-
const $ = z;
|
|
950
|
-
let M;
|
|
951
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ l(be, { sx: fe.options.icon, onClick: b, children: /* @__PURE__ */ l(At, {}) }), e[15] = M) : M = e[15];
|
|
952
|
-
let D;
|
|
953
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
954
|
-
"aria-labelledby": "basic-button",
|
|
955
|
-
sx: fe.options.menu
|
|
956
|
-
}, e[16] = D) : D = e[16];
|
|
957
|
-
let V;
|
|
958
|
-
e[17] !== I || e[18] !== s?.mode?.options || e[19] !== o || e[20] !== y || e[21] !== h ? (V = h.length > 1 && /* @__PURE__ */ W(me, { children: [
|
|
959
|
-
/* @__PURE__ */ l(se, { variant: "subtitle2", color: "text.secondary", sx: fe.options.title, children: y }),
|
|
960
|
-
h.map((B) => {
|
|
961
|
-
const q = (s?.mode?.options ?? ve.options.mode.options)[B.value];
|
|
962
|
-
return /* @__PURE__ */ W(Ve, { onClick: (Y) => I(Y, B), selected: B.value === o, children: [
|
|
963
|
-
/* @__PURE__ */ l($e, { sx: fe.options.icons, children: /* @__PURE__ */ l(Re, { children: B.icon }) }),
|
|
964
|
-
/* @__PURE__ */ l(Ce, { children: q })
|
|
965
|
-
] }, B.value);
|
|
966
|
-
})
|
|
967
|
-
] }), e[17] = I, e[18] = s?.mode?.options, e[19] = o, e[20] = y, e[21] = h, e[22] = V) : V = e[22];
|
|
968
|
-
let N;
|
|
969
|
-
e[23] !== E ? (N = E && /* @__PURE__ */ l(he, {}), e[23] = E, e[24] = N) : N = e[24];
|
|
970
|
-
let Z;
|
|
971
|
-
e[25] !== A || e[26] !== s || e[27] !== d || e[28] !== $ || e[29] !== w || e[30] !== n || e[31] !== _.length ? (Z = _.length > 1 && /* @__PURE__ */ W(me, { children: [
|
|
972
|
-
/* @__PURE__ */ W(Ve, { onClick: T, children: [
|
|
973
|
-
/* @__PURE__ */ l(Ce, { children: w }),
|
|
974
|
-
/* @__PURE__ */ l(se, { variant: "caption", fontWeight: 500, sx: fe.options.tag, children: $.short })
|
|
975
|
-
] }),
|
|
976
|
-
/* @__PURE__ */ l(sl, { open: d, labels: s, units: n, unitSelectedValue: $, onClose: L, onSubmit: A })
|
|
977
|
-
] }), e[25] = A, e[26] = s, e[27] = d, e[28] = $, e[29] = w, e[30] = n, e[31] = _.length, e[32] = Z) : Z = e[32];
|
|
978
|
-
let j;
|
|
979
|
-
e[33] !== V || e[34] !== N || e[35] !== Z ? (j = /* @__PURE__ */ W("div", { children: [
|
|
980
|
-
V,
|
|
981
|
-
N,
|
|
982
|
-
Z
|
|
983
|
-
] }), e[33] = V, e[34] = N, e[35] = Z, e[36] = j) : j = e[36];
|
|
984
|
-
let F;
|
|
985
|
-
return e[37] !== f || e[38] !== R || e[39] !== j ? (F = /* @__PURE__ */ W(me, { children: [
|
|
986
|
-
M,
|
|
987
|
-
/* @__PURE__ */ l(ft, { id: "measurement-menu", anchorEl: f, open: R, onClose: O, MenuListProps: D, children: j })
|
|
988
|
-
] }), e[37] = f, e[38] = R, e[39] = j, e[40] = F) : F = e[40], F;
|
|
989
|
-
}
|
|
990
|
-
function sl(t) {
|
|
991
|
-
const e = Q(48), {
|
|
992
|
-
open: i,
|
|
993
|
-
labels: o,
|
|
994
|
-
units: n,
|
|
995
|
-
unitSelectedValue: c,
|
|
996
|
-
onClose: s,
|
|
997
|
-
onSubmit: a
|
|
998
|
-
} = t, [r, f] = ae("metric");
|
|
999
|
-
let m;
|
|
1000
|
-
if (e[0] !== r || e[1] !== n) {
|
|
1001
|
-
let M;
|
|
1002
|
-
e[3] !== r ? (M = (D) => D.system === r, e[3] = r, e[4] = M) : M = e[4], m = n.filter(M), e[0] = r, e[1] = n, e[2] = m;
|
|
1003
|
-
} else
|
|
1004
|
-
m = e[2];
|
|
1005
|
-
const d = m;
|
|
1006
|
-
let u;
|
|
1007
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (M, D) => {
|
|
1008
|
-
f(D);
|
|
1009
|
-
}, e[5] = u) : u = e[5];
|
|
1010
|
-
const x = u, h = o?.units?.modal?.options ?? ve.options.units.modal.options, S = h[r].options, _ = o?.units?.modal?.title ?? ve.options.units.modal.title, U = o?.units?.modal?.subtitle ?? ve.options.units.modal.subtitle, R = o?.units?.modal?.apply ?? ve.options.units.modal.apply, P = c.system === r ? c : d[0];
|
|
1011
|
-
let b;
|
|
1012
|
-
e[6] !== a ? (b = {
|
|
1013
|
-
component: "form",
|
|
1014
|
-
onSubmit: (M) => {
|
|
1015
|
-
M.preventDefault();
|
|
1016
|
-
const D = new FormData(M.currentTarget);
|
|
1017
|
-
a(D.get("unit-value"));
|
|
1018
|
-
}
|
|
1019
|
-
}, e[6] = a, e[7] = b) : b = e[7];
|
|
1020
|
-
let v;
|
|
1021
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ l(Ue, {}), e[8] = v) : v = e[8];
|
|
1022
|
-
let O;
|
|
1023
|
-
e[9] !== s ? (O = /* @__PURE__ */ l(be, { onClick: s, children: v }), e[9] = s, e[10] = O) : O = e[10];
|
|
1024
|
-
let g;
|
|
1025
|
-
e[11] !== _ || e[12] !== O ? (g = /* @__PURE__ */ W(Xe, { sx: fe.options.modal.title, children: [
|
|
1026
|
-
_,
|
|
1027
|
-
O
|
|
1028
|
-
] }), e[11] = _, e[12] = O, e[13] = g) : g = e[13];
|
|
1029
|
-
let I;
|
|
1030
|
-
e[14] !== U ? (I = /* @__PURE__ */ l(se, { sx: fe.options.modal.subtitle, children: U }), e[14] = U, e[15] = I) : I = e[15];
|
|
1031
|
-
let k;
|
|
1032
|
-
e[16] !== h.metric.title ? (k = /* @__PURE__ */ l(Pe, { value: "metric", children: h.metric.title }), e[16] = h.metric.title, e[17] = k) : k = e[17];
|
|
1033
|
-
let T;
|
|
1034
|
-
e[18] !== h.imperial.title ? (T = /* @__PURE__ */ l(Pe, { value: "imperial", children: h.imperial.title }), e[18] = h.imperial.title, e[19] = T) : T = e[19];
|
|
1035
|
-
let p;
|
|
1036
|
-
e[20] !== r || e[21] !== k || e[22] !== T ? (p = /* @__PURE__ */ W(Ge, { color: "primary", value: r, exclusive: !0, fullWidth: !0, onChange: x, "aria-label": "system", sx: fe.options.modal.toggle, children: [
|
|
1037
|
-
k,
|
|
1038
|
-
T
|
|
1039
|
-
] }), e[20] = r, e[21] = k, e[22] = T, e[23] = p) : p = e[23];
|
|
1040
|
-
const L = P?.value, C = P?.value;
|
|
1041
|
-
let A;
|
|
1042
|
-
if (e[24] !== d || e[25] !== S) {
|
|
1043
|
-
let M;
|
|
1044
|
-
e[27] !== S ? (M = (D) => {
|
|
1045
|
-
const V = S[D.value];
|
|
1046
|
-
return /* @__PURE__ */ l(mt, { value: D.value, control: /* @__PURE__ */ l(pt, {}), label: V }, D.value);
|
|
1047
|
-
}, e[27] = S, e[28] = M) : M = e[28], A = d.map(M), e[24] = d, e[25] = S, e[26] = A;
|
|
1048
|
-
} else
|
|
1049
|
-
A = e[26];
|
|
1050
|
-
let y;
|
|
1051
|
-
e[29] !== C || e[30] !== A ? (y = /* @__PURE__ */ l(ut, { "aria-labelledby": "unit-value", defaultValue: C, name: "unit-value", sx: fe.options.modal.optionsGroup, children: A }), e[29] = C, e[30] = A, e[31] = y) : y = e[31];
|
|
1052
|
-
let w;
|
|
1053
|
-
e[32] !== L || e[33] !== y ? (w = /* @__PURE__ */ l(ht, { children: y }, L), e[32] = L, e[33] = y, e[34] = w) : w = e[34];
|
|
1054
|
-
let E;
|
|
1055
|
-
e[35] !== p || e[36] !== w || e[37] !== I ? (E = /* @__PURE__ */ W(Qe, { sx: fe.options.modal.content, children: [
|
|
1056
|
-
I,
|
|
1057
|
-
p,
|
|
1058
|
-
w
|
|
1059
|
-
] }), e[35] = p, e[36] = w, e[37] = I, e[38] = E) : E = e[38];
|
|
1060
|
-
let z;
|
|
1061
|
-
e[39] !== R ? (z = /* @__PURE__ */ l(Je, { sx: fe.options.modal.actions, children: /* @__PURE__ */ l(_e, { variant: "contained", type: "submit", children: R }) }), e[39] = R, e[40] = z) : z = e[40];
|
|
1062
|
-
let $;
|
|
1063
|
-
return e[41] !== s || e[42] !== i || e[43] !== E || e[44] !== z || e[45] !== b || e[46] !== g ? ($ = /* @__PURE__ */ W(Ke, { open: i, component: ne, onClose: s, maxWidth: "xs", PaperProps: b, children: [
|
|
1064
|
-
g,
|
|
1065
|
-
E,
|
|
1066
|
-
z
|
|
1067
|
-
] }), e[41] = s, e[42] = i, e[43] = E, e[44] = z, e[45] = b, e[46] = g, e[47] = $) : $ = e[47], $;
|
|
1068
|
-
}
|
|
1069
|
-
const rl = {
|
|
1070
|
-
enabled: "Show your current location",
|
|
1071
|
-
disabled: "Location unavailable"
|
|
1072
|
-
}, al = "geolocation";
|
|
1073
|
-
function jl(t) {
|
|
1074
|
-
const e = Q(27), {
|
|
1075
|
-
disabled: i,
|
|
1076
|
-
labels: o,
|
|
1077
|
-
PaperProps: n,
|
|
1078
|
-
TooltipProps: c,
|
|
1079
|
-
watch: s,
|
|
1080
|
-
onChange: a,
|
|
1081
|
-
onError: r
|
|
1082
|
-
} = t, f = we(null), m = "geolocation" in navigator, [d, u] = _t(cl, m);
|
|
1083
|
-
let x;
|
|
1084
|
-
e[0] !== r ? (x = (y) => {
|
|
1085
|
-
r?.(y);
|
|
1086
|
-
}, e[0] = r, e[1] = x) : x = e[1];
|
|
1087
|
-
const h = Ct(x);
|
|
1088
|
-
let S;
|
|
1089
|
-
e[2] !== h ? (S = () => (m && navigator.permissions.query({
|
|
1090
|
-
name: "geolocation"
|
|
1091
|
-
}).then((y) => {
|
|
1092
|
-
u(y.state === "granted" ? "granted" : "denied"), y.onchange = () => {
|
|
1093
|
-
u(y.state === "granted" ? "granted" : "denied");
|
|
1094
|
-
};
|
|
1095
|
-
}).catch((y) => {
|
|
1096
|
-
u("denied"), h(y);
|
|
1097
|
-
}), () => {
|
|
1098
|
-
f.current && navigator.geolocation.clearWatch(f.current);
|
|
1099
|
-
}), e[2] = h, e[3] = S) : S = e[3];
|
|
1100
|
-
let _;
|
|
1101
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = [m], e[4] = _) : _ = e[4], tt(S, _);
|
|
1102
|
-
let U;
|
|
1103
|
-
e[5] !== a ? (U = (y) => {
|
|
1104
|
-
a(y.coords);
|
|
1105
|
-
}, e[5] = a, e[6] = U) : U = e[6];
|
|
1106
|
-
const R = U;
|
|
1107
|
-
let P;
|
|
1108
|
-
e[7] !== r ? (P = (y) => {
|
|
1109
|
-
u("denied"), r?.(y);
|
|
1110
|
-
}, e[7] = r, e[8] = P) : P = e[8];
|
|
1111
|
-
const b = P;
|
|
1112
|
-
let v;
|
|
1113
|
-
e[9] !== b || e[10] !== R || e[11] !== s ? (v = () => {
|
|
1114
|
-
if (f.current && navigator.geolocation.clearWatch(f.current), s) {
|
|
1115
|
-
f.current = navigator.geolocation.watchPosition(R, b);
|
|
1116
|
-
return;
|
|
1117
|
-
}
|
|
1118
|
-
navigator.geolocation.getCurrentPosition(R, b);
|
|
1119
|
-
}, e[9] = b, e[10] = R, e[11] = s, e[12] = v) : v = e[12];
|
|
1120
|
-
const O = v, I = (o?.tooltip ?? rl)[d ? "enabled" : "disabled"], k = o?.ariaLabel ?? al, T = !m || i;
|
|
1121
|
-
let p;
|
|
1122
|
-
e[13] !== d ? (p = d ? /* @__PURE__ */ l(It, {}) : /* @__PURE__ */ l(Lt, {}), e[13] = d, e[14] = p) : p = e[14];
|
|
1123
|
-
let L;
|
|
1124
|
-
e[15] !== O || e[16] !== p || e[17] !== k || e[18] !== T ? (L = /* @__PURE__ */ l(be, { onClick: O, "aria-label": k, disabled: T, children: p }), e[15] = O, e[16] = p, e[17] = k, e[18] = T, e[19] = L) : L = e[19];
|
|
1125
|
-
let C;
|
|
1126
|
-
e[20] !== c || e[21] !== L || e[22] !== I ? (C = /* @__PURE__ */ l(ke, { arrow: !0, placement: "right", title: I, ...c, children: L }), e[20] = c, e[21] = L, e[22] = I, e[23] = C) : C = e[23];
|
|
1127
|
-
let A;
|
|
1128
|
-
return e[24] !== n || e[25] !== C ? (A = /* @__PURE__ */ l(Me, { ...n, children: C }), e[24] = n, e[25] = C, e[26] = A) : A = e[26], A;
|
|
1129
|
-
}
|
|
1130
|
-
function cl(t, e) {
|
|
1131
|
-
return e === "granted";
|
|
1132
|
-
}
|
|
1133
|
-
const Ee = {
|
|
1134
|
-
zoom: {
|
|
1135
|
-
position: "relative",
|
|
1136
|
-
height: ({
|
|
1137
|
-
spacing: t
|
|
1138
|
-
}) => t(4),
|
|
1139
|
-
aspectRatio: 1,
|
|
1140
|
-
display: "flex",
|
|
1141
|
-
alignItems: "center",
|
|
1142
|
-
justifyContent: "center"
|
|
1143
|
-
},
|
|
1144
|
-
paper: {
|
|
1145
|
-
display: "flex",
|
|
1146
|
-
backgroundColor: ({
|
|
1147
|
-
palette: t
|
|
1148
|
-
}) => t.background.paper,
|
|
1149
|
-
width: "auto",
|
|
1150
|
-
overflow: "hidden",
|
|
1151
|
-
boxShadow: ({
|
|
1152
|
-
shadows: t
|
|
1153
|
-
}) => t[1],
|
|
1154
|
-
borderRadius: ({
|
|
1155
|
-
spacing: t
|
|
1156
|
-
}) => t(0.5),
|
|
1157
|
-
button: {
|
|
1158
|
-
borderRadius: 0
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
circularProgress: {
|
|
1162
|
-
position: "absolute"
|
|
1163
|
-
}
|
|
1164
|
-
};
|
|
1165
|
-
function Hl(t) {
|
|
1166
|
-
const e = Q(40), {
|
|
1167
|
-
zoom: i,
|
|
1168
|
-
disabled: o,
|
|
1169
|
-
direction: n,
|
|
1170
|
-
reverse: c,
|
|
1171
|
-
isLoading: s,
|
|
1172
|
-
maxZoom: a,
|
|
1173
|
-
minZoom: r,
|
|
1174
|
-
PaperProps: f,
|
|
1175
|
-
ResetViewProps: m,
|
|
1176
|
-
showZoom: d,
|
|
1177
|
-
onChange: u,
|
|
1178
|
-
onReset: x
|
|
1179
|
-
} = t, h = n === void 0 ? "vertical" : n, S = c === void 0 ? !1 : c, _ = a === void 0 ? 24 : a, U = r === void 0 ? 0 : r;
|
|
1180
|
-
let R;
|
|
1181
|
-
e[0] !== m ? (R = m === void 0 ? {
|
|
1182
|
-
Icon: Dt
|
|
1183
|
-
} : m, e[0] = m, e[1] = R) : R = e[1];
|
|
1184
|
-
const P = R, b = d === void 0 ? !0 : d;
|
|
1185
|
-
let v;
|
|
1186
|
-
e[2] !== _ || e[3] !== u || e[4] !== i ? (v = () => {
|
|
1187
|
-
const D = Math.min(_, i + 1);
|
|
1188
|
-
u(D);
|
|
1189
|
-
}, e[2] = _, e[3] = u, e[4] = i, e[5] = v) : v = e[5];
|
|
1190
|
-
const O = v;
|
|
1191
|
-
let g;
|
|
1192
|
-
e[6] !== U || e[7] !== u || e[8] !== i ? (g = () => {
|
|
1193
|
-
const D = Math.max(U, i - 1);
|
|
1194
|
-
u(D);
|
|
1195
|
-
}, e[6] = U, e[7] = u, e[8] = i, e[9] = g) : g = e[9];
|
|
1196
|
-
const I = g, k = Math.floor(i), T = h === "vertical" ? "horizontal" : "vertical";
|
|
1197
|
-
let p = h === "vertical" ? "column" : "row";
|
|
1198
|
-
S && (p = p + "-reverse");
|
|
1199
|
-
let L;
|
|
1200
|
-
e[10] !== p ? (L = {
|
|
1201
|
-
...Ee.paper,
|
|
1202
|
-
flexDirection: p
|
|
1203
|
-
}, e[10] = p, e[11] = L) : L = e[11];
|
|
1204
|
-
let C;
|
|
1205
|
-
e[12] !== P || e[13] !== o || e[14] !== T || e[15] !== x ? (C = x && /* @__PURE__ */ W(me, { children: [
|
|
1206
|
-
/* @__PURE__ */ l(be, { onClick: x, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(P.Icon, {}) }),
|
|
1207
|
-
/* @__PURE__ */ l(he, { orientation: T, flexItem: !0 })
|
|
1208
|
-
] }), e[12] = P, e[13] = o, e[14] = T, e[15] = x, e[16] = C) : C = e[16];
|
|
1209
|
-
let A;
|
|
1210
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ l(Pt, {}), e[17] = A) : A = e[17];
|
|
1211
|
-
let y;
|
|
1212
|
-
e[18] !== o || e[19] !== O ? (y = /* @__PURE__ */ l(be, { onClick: O, "aria-label": "Increase zoom", disabled: o, children: A }), e[18] = o, e[19] = O, e[20] = y) : y = e[20];
|
|
1213
|
-
let w;
|
|
1214
|
-
e[21] !== T ? (w = /* @__PURE__ */ l(he, { orientation: T, flexItem: !0 }), e[21] = T, e[22] = w) : w = e[22];
|
|
1215
|
-
let E;
|
|
1216
|
-
e[23] !== k || e[24] !== T || e[25] !== s || e[26] !== b ? (E = b && /* @__PURE__ */ W(me, { children: [
|
|
1217
|
-
/* @__PURE__ */ W(ne, { sx: Ee.zoom, children: [
|
|
1218
|
-
/* @__PURE__ */ l(se, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: k }),
|
|
1219
|
-
s && /* @__PURE__ */ l(gt, { sx: Ee.circularProgress, variant: "indeterminate", size: 24 })
|
|
1220
|
-
] }),
|
|
1221
|
-
/* @__PURE__ */ l(he, { orientation: T, flexItem: !0 })
|
|
1222
|
-
] }), e[23] = k, e[24] = T, e[25] = s, e[26] = b, e[27] = E) : E = e[27];
|
|
1223
|
-
let z;
|
|
1224
|
-
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ l(Rt, {}), e[28] = z) : z = e[28];
|
|
1225
|
-
let $;
|
|
1226
|
-
e[29] !== I || e[30] !== o ? ($ = /* @__PURE__ */ l(be, { onClick: I, "aria-label": "Decrease zoom", disabled: o, children: z }), e[29] = I, e[30] = o, e[31] = $) : $ = e[31];
|
|
1227
|
-
let M;
|
|
1228
|
-
return e[32] !== f || e[33] !== L || e[34] !== C || e[35] !== y || e[36] !== w || e[37] !== E || e[38] !== $ ? (M = /* @__PURE__ */ W(Me, { sx: L, ...f, children: [
|
|
1229
|
-
C,
|
|
1230
|
-
y,
|
|
1231
|
-
w,
|
|
1232
|
-
E,
|
|
1233
|
-
$
|
|
1234
|
-
] }), e[32] = f, e[33] = L, e[34] = C, e[35] = y, e[36] = w, e[37] = E, e[38] = $, e[39] = M) : M = e[39], M;
|
|
1235
|
-
}
|
|
1236
|
-
function dl(t) {
|
|
1237
|
-
const e = Q(4), {
|
|
1238
|
-
length: i
|
|
1239
|
-
} = t, o = i === void 0 ? 5 : i;
|
|
1240
|
-
let n;
|
|
1241
|
-
e[0] !== o ? (n = new Array(o).fill(null).map(fl), e[0] = o, e[1] = n) : n = e[1];
|
|
1242
|
-
let c;
|
|
1243
|
-
return e[2] !== n ? (c = /* @__PURE__ */ l(ne, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = c) : c = e[3], c;
|
|
1244
|
-
}
|
|
1245
|
-
function fl(t, e) {
|
|
1246
|
-
return /* @__PURE__ */ W(Te, { container: !0, spacing: 1, children: [
|
|
1247
|
-
/* @__PURE__ */ W(Te, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
1248
|
-
/* @__PURE__ */ l(Oe, { width: hl(e) ? 72 : 48, height: 20 }),
|
|
1249
|
-
/* @__PURE__ */ l(Oe, { width: 48, height: 8 })
|
|
1250
|
-
] }),
|
|
1251
|
-
/* @__PURE__ */ l(Oe, { sx: {
|
|
1252
|
-
height: ul,
|
|
1253
|
-
marginTop: pl,
|
|
1254
|
-
marginBottom: ml,
|
|
1255
|
-
width: "100%"
|
|
1256
|
-
} })
|
|
1257
|
-
] }, `skeleton-${e}`);
|
|
1258
|
-
}
|
|
1259
|
-
function ml(t) {
|
|
1260
|
-
const {
|
|
1261
|
-
spacing: e
|
|
1262
|
-
} = t;
|
|
1263
|
-
return e(1.75);
|
|
1264
|
-
}
|
|
1265
|
-
function pl(t) {
|
|
1266
|
-
const {
|
|
1267
|
-
spacing: e
|
|
1268
|
-
} = t;
|
|
1269
|
-
return e(1.25);
|
|
1270
|
-
}
|
|
1271
|
-
function ul(t) {
|
|
1272
|
-
const {
|
|
1273
|
-
spacing: e
|
|
1274
|
-
} = t;
|
|
1275
|
-
return e(0.5);
|
|
1276
|
-
}
|
|
1277
|
-
function hl(t) {
|
|
1278
|
-
return t % 2 === 1;
|
|
1279
|
-
}
|
|
1280
|
-
function gl(t) {
|
|
1281
|
-
const e = Q(13), {
|
|
1282
|
-
title: i,
|
|
1283
|
-
body: o,
|
|
1284
|
-
severity: n
|
|
1285
|
-
} = t, c = i === void 0 ? "No data available" : i, s = o === 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." : o;
|
|
1286
|
-
if (n) {
|
|
1287
|
-
let m;
|
|
1288
|
-
e[0] !== s ? (m = /* @__PURE__ */ l(He, { children: s }), e[0] = s, e[1] = m) : m = e[1];
|
|
1289
|
-
let d;
|
|
1290
|
-
return e[2] !== n || e[3] !== m || e[4] !== c ? (d = /* @__PURE__ */ l(et, { title: c, severity: n, children: m }), e[2] = n, e[3] = m, e[4] = c, e[5] = d) : d = e[5], d;
|
|
1291
|
-
}
|
|
1292
|
-
let a;
|
|
1293
|
-
e[6] !== c ? (a = c && /* @__PURE__ */ l(se, { variant: "body2", children: c }), e[6] = c, e[7] = a) : a = e[7];
|
|
1294
|
-
let r;
|
|
1295
|
-
e[8] !== s ? (r = /* @__PURE__ */ l(He, { color: "textSecondary", children: s }), e[8] = s, e[9] = r) : r = e[9];
|
|
1296
|
-
let f;
|
|
1297
|
-
return e[10] !== a || e[11] !== r ? (f = /* @__PURE__ */ W(ne, { children: [
|
|
1298
|
-
a,
|
|
1299
|
-
r
|
|
1300
|
-
] }), e[10] = a, e[11] = r, e[12] = f) : f = e[12], f;
|
|
1301
|
-
}
|
|
1302
|
-
function He(t) {
|
|
1303
|
-
const e = Q(5), {
|
|
1304
|
-
color: i,
|
|
1305
|
-
children: o
|
|
1306
|
-
} = t;
|
|
1307
|
-
if (o) {
|
|
1308
|
-
const c = i ?? "inherit";
|
|
1309
|
-
let s;
|
|
1310
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
1311
|
-
fontWeight: "normal"
|
|
1312
|
-
}, e[0] = s) : s = e[0];
|
|
1313
|
-
let a;
|
|
1314
|
-
return e[1] !== o || e[2] !== c ? (a = /* @__PURE__ */ l(ne, { mt: 0.5, children: /* @__PURE__ */ l(se, { component: "div", variant: "caption", color: c, style: s, children: o }) }), e[1] = o, e[2] = c, e[3] = a) : a = e[3], a;
|
|
1315
|
-
}
|
|
1316
|
-
let n;
|
|
1317
|
-
return e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l(ne, { mt: -1 }), e[4] = n) : n = e[4], n;
|
|
1318
|
-
}
|
|
1319
|
-
function bl(t) {
|
|
1320
|
-
const e = Q(2);
|
|
1321
|
-
let i;
|
|
1322
|
-
e[0] !== t ? (i = () => t ? 1 : 0, e[0] = t, e[1] = i) : i = e[1];
|
|
1323
|
-
const [o, n] = ae(i);
|
|
1324
|
-
return t && o === 0 && n(1), !t && o === 1 && n(2), o === 1;
|
|
1325
|
-
}
|
|
1326
|
-
const Ne = {
|
|
1327
|
-
overflow: "hidden",
|
|
1328
|
-
textOverflow: "ellipsis",
|
|
1329
|
-
whiteSpace: "nowrap"
|
|
1330
|
-
}, Se = {
|
|
1331
|
-
label: {
|
|
1332
|
-
"& .MuiListItemText-primary": {
|
|
1333
|
-
...Ne
|
|
1334
|
-
}
|
|
1335
|
-
},
|
|
1336
|
-
value: {
|
|
1337
|
-
"& .MuiListItemText-primary": {
|
|
1338
|
-
...Ne,
|
|
1339
|
-
textAlign: "right"
|
|
1340
|
-
}
|
|
1341
|
-
},
|
|
1342
|
-
clickable: {
|
|
1343
|
-
cursor: "pointer",
|
|
1344
|
-
"&:hover": {
|
|
1345
|
-
backgroundColor: ({
|
|
1346
|
-
palette: t
|
|
1347
|
-
}) => t.action.hover
|
|
1348
|
-
}
|
|
1349
|
-
},
|
|
1350
|
-
showDivider: {
|
|
1351
|
-
borderBottom: ({
|
|
1352
|
-
palette: t
|
|
1353
|
-
}) => `1px solid ${t.divider}`
|
|
1354
|
-
},
|
|
1355
|
-
selected: {
|
|
1356
|
-
backgroundColor: ({
|
|
1357
|
-
palette: t
|
|
1358
|
-
}) => t.action.selected
|
|
1359
|
-
},
|
|
1360
|
-
disabled: {
|
|
1361
|
-
opacity: 0.5,
|
|
1362
|
-
pointerEvents: "none"
|
|
1363
|
-
}
|
|
1364
|
-
}, vl = {
|
|
1365
|
-
showMore: "Show More",
|
|
1366
|
-
showLess: "Show Less"
|
|
1367
|
-
}, yl = [];
|
|
1368
|
-
function Nl(t) {
|
|
1369
|
-
const e = Q(32), {
|
|
1370
|
-
data: i,
|
|
1371
|
-
isLoading: o,
|
|
1372
|
-
maxItems: n,
|
|
1373
|
-
labels: c,
|
|
1374
|
-
showDivider: s,
|
|
1375
|
-
selectedItemId: a,
|
|
1376
|
-
tooltipProps: r,
|
|
1377
|
-
onExpand: f,
|
|
1378
|
-
onItemClick: m
|
|
1379
|
-
} = t, d = i === void 0 ? yl : i, u = o === void 0 ? !1 : o, x = n === void 0 ? 5 : n, h = c === void 0 ? vl : c, S = s === void 0 ? !0 : s, [_, U] = ae(!1), R = bl(u);
|
|
1380
|
-
let P;
|
|
1381
|
-
e[0] !== d || e[1] !== x || e[2] !== _ ? (P = _ ? d : d.slice(0, x), e[0] = d, e[1] = x, e[2] = _, e[3] = P) : P = e[3];
|
|
1382
|
-
const b = P;
|
|
1383
|
-
let v;
|
|
1384
|
-
e[4] !== f || e[5] !== _ ? (v = () => {
|
|
1385
|
-
U(!_), f?.(_);
|
|
1386
|
-
}, e[4] = f, e[5] = _, e[6] = v) : v = e[6];
|
|
1387
|
-
const O = v;
|
|
1388
|
-
if (R) {
|
|
1389
|
-
let p;
|
|
1390
|
-
return e[7] !== x ? (p = /* @__PURE__ */ l(dl, { length: x }), e[7] = x, e[8] = p) : p = e[8], p;
|
|
1391
|
-
}
|
|
1392
|
-
if (b.length === 0) {
|
|
1393
|
-
let p;
|
|
1394
|
-
return e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ l(gl, {}), e[9] = p) : p = e[9], p;
|
|
1395
|
-
}
|
|
1396
|
-
let g;
|
|
1397
|
-
if (e[10] !== b || e[11] !== m || e[12] !== a || e[13] !== S || e[14] !== r) {
|
|
1398
|
-
let p;
|
|
1399
|
-
e[16] !== m || e[17] !== a || e[18] !== S || e[19] !== r ? (p = (L) => /* @__PURE__ */ l(Ot, { followCursor: !1, placement: "top", arrow: !0, title: L.tooltipTitle, enterDelay: 10, ...r, children: (C) => {
|
|
1400
|
-
const {
|
|
1401
|
-
ref: A
|
|
1402
|
-
} = C;
|
|
1403
|
-
return /* @__PURE__ */ l(bt, { ref: A, role: "listitem", sx: {
|
|
1404
|
-
...S && Se.showDivider,
|
|
1405
|
-
...m && Se.clickable,
|
|
1406
|
-
...a === L.id && Se.selected,
|
|
1407
|
-
...L.disabled && Se.disabled
|
|
1408
|
-
}, onClick: () => {
|
|
1409
|
-
L.disabled || m?.(L);
|
|
1410
|
-
}, children: /* @__PURE__ */ W(Te, { container: !0, alignItems: "center", children: [
|
|
1411
|
-
/* @__PURE__ */ l(Te, { item: !0, xs: 8, children: /* @__PURE__ */ l(Ce, { primary: L.label, sx: Se.label }) }),
|
|
1412
|
-
/* @__PURE__ */ l(Te, { item: !0, xs: 4, children: /* @__PURE__ */ l(Ce, { primary: L.value, sx: Se.value }) })
|
|
1413
|
-
] }) });
|
|
1414
|
-
} }, L.id), e[16] = m, e[17] = a, e[18] = S, e[19] = r, e[20] = p) : p = e[20], g = b.map(p), e[10] = b, e[11] = m, e[12] = a, e[13] = S, e[14] = r, e[15] = g;
|
|
1415
|
-
} else
|
|
1416
|
-
g = e[15];
|
|
1417
|
-
let I;
|
|
1418
|
-
e[21] !== g ? (I = /* @__PURE__ */ l(qe, { id: "expandable-list", role: "list", children: g }), e[21] = g, e[22] = I) : I = e[22];
|
|
1419
|
-
let k;
|
|
1420
|
-
e[23] !== d.length || e[24] !== O || e[25] !== h || e[26] !== x || e[27] !== _ ? (k = d.length > x && /* @__PURE__ */ l(ne, { my: 2, children: /* @__PURE__ */ l(_e, { onClick: O, variant: "text", color: "primary", "aria-expanded": _, "aria-controls": "expandable-list", children: _ ? h.showLess : h.showMore }) }), e[23] = d.length, e[24] = O, e[25] = h, e[26] = x, e[27] = _, e[28] = k) : k = e[28];
|
|
1421
|
-
let T;
|
|
1422
|
-
return e[29] !== k || e[30] !== I ? (T = /* @__PURE__ */ W(me, { children: [
|
|
1423
|
-
I,
|
|
1424
|
-
k
|
|
1425
|
-
] }), e[29] = k, e[30] = I, e[31] = T) : T = e[31], T;
|
|
1426
|
-
}
|
|
1427
|
-
const xl = 288, xe = {
|
|
1428
|
-
root: {
|
|
1429
|
-
width: xl,
|
|
1430
|
-
overflow: "auto"
|
|
1431
|
-
},
|
|
1432
|
-
toggle: {
|
|
1433
|
-
padding: ({
|
|
1434
|
-
spacing: t
|
|
1435
|
-
}) => t(0.5),
|
|
1436
|
-
img: {
|
|
1437
|
-
width: "100%",
|
|
1438
|
-
aspectRatio: "1 / 1",
|
|
1439
|
-
borderRadius: ({
|
|
1440
|
-
spacing: t
|
|
1441
|
-
}) => t(0.25)
|
|
1442
|
-
}
|
|
1443
|
-
},
|
|
1444
|
-
header: {
|
|
1445
|
-
display: "flex",
|
|
1446
|
-
alignItems: "center",
|
|
1447
|
-
justifyContent: "space-between",
|
|
1448
|
-
padding: ({
|
|
1449
|
-
spacing: t
|
|
1450
|
-
}) => t(1),
|
|
1451
|
-
paddingInlineStart: ({
|
|
1452
|
-
spacing: t
|
|
1453
|
-
}) => t(2),
|
|
1454
|
-
position: "sticky",
|
|
1455
|
-
top: 0,
|
|
1456
|
-
zIndex: 2,
|
|
1457
|
-
background: ({
|
|
1458
|
-
palette: t
|
|
1459
|
-
}) => t.background.paper
|
|
1460
|
-
},
|
|
1461
|
-
groupWrapper: {
|
|
1462
|
-
content: {
|
|
1463
|
-
paddingInline: ({
|
|
1464
|
-
spacing: t
|
|
1465
|
-
}) => t(2),
|
|
1466
|
-
paddingBlock: ({
|
|
1467
|
-
spacing: t
|
|
1468
|
-
}) => t(0.5)
|
|
1469
|
-
}
|
|
1470
|
-
},
|
|
1471
|
-
group: {
|
|
1472
|
-
display: "flex",
|
|
1473
|
-
flexDirection: "row",
|
|
1474
|
-
flexWrap: "wrap",
|
|
1475
|
-
alignItems: "center",
|
|
1476
|
-
gap: ({
|
|
1477
|
-
spacing: t
|
|
1478
|
-
}) => t(2),
|
|
1479
|
-
paddingInline: ({
|
|
1480
|
-
spacing: t
|
|
1481
|
-
}) => t(2),
|
|
1482
|
-
paddingBlock: ({
|
|
1483
|
-
spacing: t
|
|
1484
|
-
}) => t(1)
|
|
1485
|
-
},
|
|
1486
|
-
item: {
|
|
1487
|
-
container: {
|
|
1488
|
-
display: "flex",
|
|
1489
|
-
alignItems: "center",
|
|
1490
|
-
flexDirection: "column",
|
|
1491
|
-
gap: ({
|
|
1492
|
-
spacing: t
|
|
1493
|
-
}) => t(1),
|
|
1494
|
-
background: "transparent",
|
|
1495
|
-
border: "none",
|
|
1496
|
-
cursor: "pointer",
|
|
1497
|
-
padding: 0,
|
|
1498
|
-
height: ({
|
|
1499
|
-
spacing: t
|
|
1500
|
-
}) => t(12),
|
|
1501
|
-
img: {
|
|
1502
|
-
maxWidth: ({
|
|
1503
|
-
spacing: t
|
|
1504
|
-
}) => t(9),
|
|
1505
|
-
aspectRatio: "1 / 1",
|
|
1506
|
-
borderRadius: ({
|
|
1507
|
-
spacing: t
|
|
1508
|
-
}) => t(0.5),
|
|
1509
|
-
border: "2px solid transparent",
|
|
1510
|
-
"&:hover": {
|
|
1511
|
-
borderColor: ({
|
|
1512
|
-
palette: t
|
|
1513
|
-
}) => t.action.active
|
|
1514
|
-
},
|
|
1515
|
-
'&[data-active="true"]': {
|
|
1516
|
-
borderColor: ({
|
|
1517
|
-
palette: t
|
|
1518
|
-
}) => t.primary.main
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
},
|
|
1522
|
-
selected: {
|
|
1523
|
-
color: ({
|
|
1524
|
-
palette: t
|
|
1525
|
-
}) => t.primary.main
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
}, Sl = {
|
|
1529
|
-
toggle: {
|
|
1530
|
-
title: "Toggle basemaps controls"
|
|
1531
|
-
},
|
|
1532
|
-
header: {
|
|
1533
|
-
title: "Basemaps",
|
|
1534
|
-
actions: {
|
|
1535
|
-
close: "Close"
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
};
|
|
1539
|
-
function _l(t) {
|
|
1540
|
-
const e = Q(6), {
|
|
1541
|
-
isMobile: i,
|
|
1542
|
-
labels: o,
|
|
1543
|
-
onChangeCollapsed: n
|
|
1544
|
-
} = t, c = i === void 0 ? !1 : i;
|
|
1545
|
-
let s;
|
|
1546
|
-
e[0] !== c || e[1] !== o || e[2] !== n ? (s = c && /* @__PURE__ */ W(me, { children: [
|
|
1547
|
-
/* @__PURE__ */ l(se, { variant: "caption", flexGrow: 1, children: o.title }),
|
|
1548
|
-
/* @__PURE__ */ l(ke, { title: o.actions.close, children: /* @__PURE__ */ l(be, { size: "small", onClick: n, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Ue, {}) }) })
|
|
1549
|
-
] }), e[0] = c, e[1] = o, e[2] = n, e[3] = s) : s = e[3];
|
|
1550
|
-
let a;
|
|
1551
|
-
return e[4] !== s ? (a = /* @__PURE__ */ l(ne, { sx: xe.header, children: s }), e[4] = s, e[5] = a) : a = e[5], a;
|
|
1552
|
-
}
|
|
1553
|
-
function Cl(t) {
|
|
1554
|
-
const e = Q(5), {
|
|
1555
|
-
title: i,
|
|
1556
|
-
children: o,
|
|
1557
|
-
collapsed: n
|
|
1558
|
-
} = t;
|
|
1559
|
-
if (n === void 0 ? !1 : n)
|
|
1560
|
-
return o;
|
|
1561
|
-
let s;
|
|
1562
|
-
e[0] !== i ? (s = /* @__PURE__ */ l(se, { variant: "caption", color: "textSecondary", sx: xe.groupWrapper.content, children: i }), e[0] = i, e[1] = s) : s = e[1];
|
|
1563
|
-
let a;
|
|
1564
|
-
return e[2] !== o || e[3] !== s ? (a = /* @__PURE__ */ W(me, { children: [
|
|
1565
|
-
s,
|
|
1566
|
-
o
|
|
1567
|
-
] }), e[2] = o, e[3] = s, e[4] = a) : a = e[4], a;
|
|
1568
|
-
}
|
|
1569
|
-
function wl(t) {
|
|
1570
|
-
const e = Q(9), {
|
|
1571
|
-
values: i,
|
|
1572
|
-
selected: o,
|
|
1573
|
-
onChange: n
|
|
1574
|
-
} = t;
|
|
1575
|
-
let c;
|
|
1576
|
-
if (e[0] !== n || e[1] !== o || e[2] !== i) {
|
|
1577
|
-
let a;
|
|
1578
|
-
e[4] !== n || e[5] !== o ? (a = (r) => {
|
|
1579
|
-
const f = r.id === o;
|
|
1580
|
-
return /* @__PURE__ */ W(ne, { sx: xe.item.container, component: "button", "aria-label": r.label, onClick: () => n(r.id), children: [
|
|
1581
|
-
/* @__PURE__ */ l("img", { src: r.icon, "aria-label": r.label + " icon", "data-active": f }),
|
|
1582
|
-
/* @__PURE__ */ l(se, { variant: "caption", sx: {
|
|
1583
|
-
...f && xe.item.selected
|
|
1584
|
-
}, children: r.label })
|
|
1585
|
-
] }, r.id);
|
|
1586
|
-
}, e[4] = n, e[5] = o, e[6] = a) : a = e[6], c = i.map(a), e[0] = n, e[1] = o, e[2] = i, e[3] = c;
|
|
1587
|
-
} else
|
|
1588
|
-
c = e[3];
|
|
1589
|
-
let s;
|
|
1590
|
-
return e[7] !== c ? (s = /* @__PURE__ */ l(ne, { sx: xe.group, children: c }), e[7] = c, e[8] = s) : s = e[8], s;
|
|
1591
|
-
}
|
|
1592
|
-
function kl(t, e) {
|
|
1593
|
-
const i = t.startsWith("bottom"), o = t.endsWith("right");
|
|
1594
|
-
return {
|
|
1595
|
-
anchorOrigin: {
|
|
1596
|
-
vertical: i ? "bottom" : "top",
|
|
1597
|
-
horizontal: e === "overlay" ? o ? "right" : "left" : o ? "left" : "right"
|
|
1598
|
-
},
|
|
1599
|
-
transformOrigin: {
|
|
1600
|
-
vertical: i ? "bottom" : "top",
|
|
1601
|
-
horizontal: o ? "right" : "left"
|
|
1602
|
-
}
|
|
1603
|
-
};
|
|
1604
|
-
}
|
|
1605
|
-
function Tl(t) {
|
|
1606
|
-
const e = Q(46), {
|
|
1607
|
-
ref: i,
|
|
1608
|
-
children: o,
|
|
1609
|
-
collapsed: n,
|
|
1610
|
-
isMobile: c,
|
|
1611
|
-
position: s,
|
|
1612
|
-
sx: a,
|
|
1613
|
-
slotProps: r,
|
|
1614
|
-
container: f,
|
|
1615
|
-
onChangeCollapsed: m,
|
|
1616
|
-
modal: d,
|
|
1617
|
-
placement: u
|
|
1618
|
-
} = t, x = c === void 0 ? !1 : c, h = d === void 0 ? !0 : d, S = u === void 0 ? "side" : u, _ = we(null), U = we(null);
|
|
1619
|
-
let R;
|
|
1620
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = (Y) => {
|
|
1621
|
-
if (U.current?.disconnect(), U.current = null, Y && typeof ResizeObserver < "u") {
|
|
1622
|
-
const G = new ResizeObserver(() => _.current?.updatePosition());
|
|
1623
|
-
G.observe(Y), U.current = G;
|
|
1624
|
-
}
|
|
1625
|
-
}, e[0] = R) : R = e[0];
|
|
1626
|
-
const P = R, b = f && typeof f != "function" ? f : null;
|
|
1627
|
-
let v;
|
|
1628
|
-
e[1] !== b ? (v = (Y) => {
|
|
1629
|
-
if (!b || typeof ResizeObserver > "u")
|
|
1630
|
-
return Ml;
|
|
1631
|
-
const G = new ResizeObserver(Y);
|
|
1632
|
-
return G.observe(b), () => G.disconnect();
|
|
1633
|
-
}, e[1] = b, e[2] = v) : v = e[2];
|
|
1634
|
-
const O = v;
|
|
1635
|
-
let g;
|
|
1636
|
-
e[3] !== b?.clientHeight ? (g = () => b?.clientHeight, e[3] = b?.clientHeight, e[4] = g) : g = e[4];
|
|
1637
|
-
const k = wt(O, g);
|
|
1638
|
-
if (x) {
|
|
1639
|
-
const Y = !n;
|
|
1640
|
-
let G;
|
|
1641
|
-
e[5] !== m ? (G = () => m(!0), e[5] = m, e[6] = G) : G = e[6];
|
|
1642
|
-
let K;
|
|
1643
|
-
return e[7] !== o || e[8] !== Y || e[9] !== G ? (K = /* @__PURE__ */ l(vt, { anchor: "bottom", open: Y, onClose: G, children: o }), e[7] = o, e[8] = Y, e[9] = G, e[10] = K) : K = e[10], K;
|
|
1644
|
-
}
|
|
1645
|
-
let T;
|
|
1646
|
-
e[11] !== S || e[12] !== s ? (T = kl(s, S), e[11] = S, e[12] = s, e[13] = T) : T = e[13];
|
|
1647
|
-
const {
|
|
1648
|
-
anchorOrigin: p,
|
|
1649
|
-
transformOrigin: L
|
|
1650
|
-
} = T, C = r;
|
|
1651
|
-
let A;
|
|
1652
|
-
e[14] !== k ? (A = k != null && k > 0 ? {
|
|
1653
|
-
maxHeight: k * 0.9,
|
|
1654
|
-
overflow: "hidden",
|
|
1655
|
-
display: "flex",
|
|
1656
|
-
flexDirection: "column"
|
|
1657
|
-
} : void 0, e[14] = k, e[15] = A) : A = e[15];
|
|
1658
|
-
const y = A;
|
|
1659
|
-
let w;
|
|
1660
|
-
e[16] !== y ? (w = y ? {
|
|
1661
|
-
display: "flex",
|
|
1662
|
-
flexDirection: "column",
|
|
1663
|
-
flex: 1,
|
|
1664
|
-
minHeight: 0,
|
|
1665
|
-
maxHeight: "100%",
|
|
1666
|
-
overflow: "hidden",
|
|
1667
|
-
width: "100%"
|
|
1668
|
-
} : void 0, e[16] = y, e[17] = w) : w = e[17];
|
|
1669
|
-
const E = w;
|
|
1670
|
-
let z;
|
|
1671
|
-
e[18] !== h || e[19] !== C?.paper || e[20] !== C?.root || e[21] !== y || e[22] !== r ? (z = h && !y ? r : {
|
|
1672
|
-
...typeof r == "object" && r != null ? r : {},
|
|
1673
|
-
...!h && {
|
|
1674
|
-
root: {
|
|
1675
|
-
style: {
|
|
1676
|
-
pointerEvents: "none"
|
|
1677
|
-
},
|
|
1678
|
-
...C?.root
|
|
1679
|
-
}
|
|
1680
|
-
},
|
|
1681
|
-
paper: {
|
|
1682
|
-
...C?.paper,
|
|
1683
|
-
style: {
|
|
1684
|
-
...!h && {
|
|
1685
|
-
pointerEvents: "auto"
|
|
1686
|
-
},
|
|
1687
|
-
...y,
|
|
1688
|
-
...C?.paper?.style
|
|
1689
|
-
}
|
|
1690
|
-
}
|
|
1691
|
-
}, e[18] = h, e[19] = C?.paper, e[20] = C?.root, e[21] = y, e[22] = r, e[23] = z) : z = e[23];
|
|
1692
|
-
const $ = z, M = !n && i != null;
|
|
1693
|
-
let D;
|
|
1694
|
-
e[24] !== h || e[25] !== m ? (D = h ? () => m(!0) : void 0, e[24] = h, e[25] = m, e[26] = D) : D = e[26];
|
|
1695
|
-
const V = !h, N = !h, Z = !h, j = !h, F = !h, B = !h;
|
|
1696
|
-
let H;
|
|
1697
|
-
e[27] !== o || e[28] !== E ? (H = /* @__PURE__ */ l("div", { ref: P, style: E, children: o }), e[27] = o, e[28] = E, e[29] = H) : H = e[29];
|
|
1698
|
-
let q;
|
|
1699
|
-
return e[30] !== p || e[31] !== f || e[32] !== $ || e[33] !== i || e[34] !== a || e[35] !== M || e[36] !== D || e[37] !== V || e[38] !== N || e[39] !== Z || e[40] !== j || e[41] !== F || e[42] !== B || e[43] !== H || e[44] !== L ? (q = /* @__PURE__ */ l(Ye, { action: _, sx: a, container: f, anchorEl: i, open: M, onClose: D, hideBackdrop: V, disableScrollLock: N, disableEscapeKeyDown: Z, disableAutoFocus: j, disableEnforceFocus: F, disableRestoreFocus: B, anchorOrigin: p, transformOrigin: L, slotProps: $, children: H }), e[30] = p, e[31] = f, e[32] = $, e[33] = i, e[34] = a, e[35] = M, e[36] = D, e[37] = V, e[38] = N, e[39] = Z, e[40] = j, e[41] = F, e[42] = B, e[43] = H, e[44] = L, e[45] = q) : q = e[45], q;
|
|
1700
|
-
}
|
|
1701
|
-
function Ml() {
|
|
1702
|
-
}
|
|
1703
|
-
const Al = [];
|
|
1704
|
-
function Gl(t) {
|
|
1705
|
-
const e = Q(54), {
|
|
1706
|
-
options: i,
|
|
1707
|
-
labels: o,
|
|
1708
|
-
position: n,
|
|
1709
|
-
selected: c,
|
|
1710
|
-
onChange: s,
|
|
1711
|
-
TooltipProps: a
|
|
1712
|
-
} = t, r = i === void 0 ? Al : i, f = n === void 0 ? "bottom-right" : n, m = c === void 0 ? null : c, [d, u] = ae(null), [x, h] = ae(!1), S = we(null), [_, U] = ae(null), R = yt();
|
|
1713
|
-
let P;
|
|
1714
|
-
e[0] !== R.breakpoints ? (P = R.breakpoints.down("sm"), e[0] = R.breakpoints, e[1] = P) : P = e[1];
|
|
1715
|
-
const b = xt(P);
|
|
1716
|
-
let v;
|
|
1717
|
-
e[2] !== o ? (v = o ?? {}, e[2] = o, e[3] = v) : v = e[3];
|
|
1718
|
-
let O;
|
|
1719
|
-
e[4] !== v ? (O = Be(Sl, v), e[4] = v, e[5] = O) : O = e[5];
|
|
1720
|
-
const g = O;
|
|
1721
|
-
let I;
|
|
1722
|
-
if (e[6] !== r || e[7] !== m) {
|
|
1723
|
-
let oe;
|
|
1724
|
-
e[9] !== m ? (oe = (ce) => ce.id === m, e[9] = m, e[10] = oe) : oe = e[10], I = r.find(oe), e[6] = r, e[7] = m, e[8] = I;
|
|
1725
|
-
} else
|
|
1726
|
-
I = e[8];
|
|
1727
|
-
const k = I;
|
|
1728
|
-
let T;
|
|
1729
|
-
e[11] !== r ? (T = Object.groupBy(r, Il), e[11] = r, e[12] = T) : T = e[12];
|
|
1730
|
-
const p = T;
|
|
1731
|
-
let L;
|
|
1732
|
-
e[13] !== p ? (L = Object.keys(p), e[13] = p, e[14] = L) : L = e[14];
|
|
1733
|
-
const C = L.length;
|
|
1734
|
-
let A;
|
|
1735
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => {
|
|
1736
|
-
u(null), h(!1);
|
|
1737
|
-
}, e[15] = A) : A = e[15];
|
|
1738
|
-
const y = A;
|
|
1739
|
-
let w, E;
|
|
1740
|
-
e[16] !== _ ? (w = () => {
|
|
1741
|
-
if (S.current && clearTimeout(S.current), !!_)
|
|
1742
|
-
return S.current = setTimeout(() => {
|
|
1743
|
-
y();
|
|
1744
|
-
}, _), () => {
|
|
1745
|
-
S.current && clearTimeout(S.current);
|
|
1746
|
-
};
|
|
1747
|
-
}, E = [_], e[16] = _, e[17] = w, e[18] = E) : (w = e[17], E = e[18]), tt(w, E);
|
|
1748
|
-
let z;
|
|
1749
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => {
|
|
1750
|
-
U(null);
|
|
1751
|
-
}, e[19] = z) : z = e[19];
|
|
1752
|
-
const $ = z;
|
|
1753
|
-
let M;
|
|
1754
|
-
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
1755
|
-
U(400);
|
|
1756
|
-
}, e[20] = M) : M = e[20];
|
|
1757
|
-
const D = M;
|
|
1758
|
-
let V;
|
|
1759
|
-
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (V = (oe) => {
|
|
1760
|
-
u(oe.currentTarget), h(!0);
|
|
1761
|
-
}, e[21] = V) : V = e[21];
|
|
1762
|
-
const N = k?.icon, Z = k?.label ?? "Basemap";
|
|
1763
|
-
let j;
|
|
1764
|
-
e[22] !== N || e[23] !== Z ? (j = /* @__PURE__ */ l(be, { sx: xe.toggle, onClick: V, children: /* @__PURE__ */ l("img", { src: N, alt: Z }) }), e[22] = N, e[23] = Z, e[24] = j) : j = e[24];
|
|
1765
|
-
let F;
|
|
1766
|
-
e[25] !== a || e[26] !== g.toggle.title || e[27] !== j ? (F = /* @__PURE__ */ l(ke, { title: g.toggle.title, placement: "right", ...a, children: j }), e[25] = a, e[26] = g.toggle.title, e[27] = j, e[28] = F) : F = e[28];
|
|
1767
|
-
const B = `translate3d(${f.endsWith("right") ? "-8px" : "8px"}, ${f.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
|
|
1768
|
-
let H;
|
|
1769
|
-
e[29] !== B ? (H = {
|
|
1770
|
-
paper: {
|
|
1771
|
-
sx: {
|
|
1772
|
-
...xe.root,
|
|
1773
|
-
transform: B
|
|
1774
|
-
},
|
|
1775
|
-
onMouseOver: $,
|
|
1776
|
-
onMouseLeave: D
|
|
1777
|
-
}
|
|
1778
|
-
}, e[29] = B, e[30] = H) : H = e[30];
|
|
1779
|
-
const q = !x;
|
|
1780
|
-
let Y;
|
|
1781
|
-
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = () => y(), e[31] = Y) : Y = e[31];
|
|
1782
|
-
let G;
|
|
1783
|
-
e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = () => y(), e[32] = G) : G = e[32];
|
|
1784
|
-
let K;
|
|
1785
|
-
e[33] !== b || e[34] !== g.header ? (K = /* @__PURE__ */ l(_l, { isMobile: b, labels: g.header, onChangeCollapsed: G }), e[33] = b, e[34] = g.header, e[35] = K) : K = e[35];
|
|
1786
|
-
let J;
|
|
1787
|
-
e[36] !== p ? (J = Object.entries(p), e[36] = p, e[37] = J) : J = e[37];
|
|
1788
|
-
let ee;
|
|
1789
|
-
e[38] !== C || e[39] !== g.header || e[40] !== s || e[41] !== m || e[42] !== J ? (ee = J.map((oe) => {
|
|
1790
|
-
const [ce, ie] = oe;
|
|
1791
|
-
return /* @__PURE__ */ l(Cl, { title: ce + " " + g.header.title, collapsed: C < 2, children: /* @__PURE__ */ l(wl, { values: ie, selected: m, onChange: (ge) => {
|
|
1792
|
-
y(), s(ge);
|
|
1793
|
-
} }) }, ce);
|
|
1794
|
-
}), e[38] = C, e[39] = g.header, e[40] = s, e[41] = m, e[42] = J, e[43] = ee) : ee = e[43];
|
|
1795
|
-
let te;
|
|
1796
|
-
e[44] !== b || e[45] !== f || e[46] !== H || e[47] !== q || e[48] !== K || e[49] !== ee ? (te = /* @__PURE__ */ W(Tl, { ref: d, slotProps: H, collapsed: q, position: f, isMobile: b, onChangeCollapsed: Y, children: [
|
|
1797
|
-
K,
|
|
1798
|
-
ee
|
|
1799
|
-
] }), e[44] = b, e[45] = f, e[46] = H, e[47] = q, e[48] = K, e[49] = ee, e[50] = te) : te = e[50];
|
|
1800
|
-
let le;
|
|
1801
|
-
return e[51] !== F || e[52] !== te ? (le = /* @__PURE__ */ W(Me, { children: [
|
|
1802
|
-
F,
|
|
1803
|
-
te
|
|
1804
|
-
] }), e[51] = F, e[52] = te, e[53] = le) : le = e[53], le;
|
|
1805
|
-
}
|
|
1806
|
-
function Il(t) {
|
|
1807
|
-
return t.group ?? "default";
|
|
1808
|
-
}
|
|
1809
|
-
export {
|
|
1810
|
-
el as AreaIcon,
|
|
1811
|
-
Gl as BasemapsUI,
|
|
1812
|
-
Jt as BufferIcon,
|
|
1813
|
-
so as CopyButton,
|
|
1814
|
-
Xl as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
|
|
1815
|
-
ve as DEFAULT_MEASUREMENT_TOOLS_LABELS,
|
|
1816
|
-
ll as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
|
|
1817
|
-
tl as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
|
|
1818
|
-
ql as DrawCircleIcon,
|
|
1819
|
-
Ql as DrawLassoIcon,
|
|
1820
|
-
Jl as DrawPolygonIcon,
|
|
1821
|
-
eo as DrawSquareIcon,
|
|
1822
|
-
jl as GeolocationControls,
|
|
1823
|
-
ye as LASSO_TOOLS_LABELS,
|
|
1824
|
-
zl as LassoGeometryToolbarUI,
|
|
1825
|
-
Vl as LassoLayerFiltersUI,
|
|
1826
|
-
Fl as LassoMessageUI,
|
|
1827
|
-
Wl as LassoToolsInlineUI,
|
|
1828
|
-
to as LassoToolsUI,
|
|
1829
|
-
Nl as ListDataUI,
|
|
1830
|
-
Zl as MeasurementToolsUI,
|
|
1831
|
-
Tl as ResponsiveDrawer,
|
|
1832
|
-
Qt as RulerIcon,
|
|
1833
|
-
lo as SelectToolIcon,
|
|
1834
|
-
Ot as SmartTooltip,
|
|
1835
|
-
nt as SpatialMaskIcon,
|
|
1836
|
-
it as TextAaIcon,
|
|
1837
|
-
ke as Tooltip,
|
|
1838
|
-
Hl as ZoomControlsUI,
|
|
1839
|
-
no as setTooltipEnterDelay
|
|
1840
|
-
};
|
|
1841
|
-
//# sourceMappingURL=components.js.map
|
|
1
|
+
import { t as e } from "./copy-button-DaQqWVu0.js";
|
|
2
|
+
import { n as t, t as n } from "./tooltip-DJUGNZxY.js";
|
|
3
|
+
import { C as r, E as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w, v as T, w as E, x as D, y as O } from "./components-DDt4mOQn.js";
|
|
4
|
+
import { t as k } from "./smart-tooltip-CwGHCqab.js";
|
|
5
|
+
export { w as AreaIcon, C as BasemapsUI, d as BufferIcon, e as CopyButton, T as DEFAULT_LASSO_TOOLS_MODES_MAPPING, S as DEFAULT_MEASUREMENT_TOOLS_LABELS, u as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING, g as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING, l as DrawCircleIcon, D as DrawLassoIcon, a as DrawPolygonIcon, r as DrawSquareIcon, c as GeolocationControls, O as LASSO_TOOLS_LABELS, m as LassoGeometryToolbarUI, _ as LassoLayerFiltersUI, b as LassoMessageUI, p as LassoToolsInlineUI, s as LassoToolsUI, x as ListDataUI, y as MeasurementToolsUI, v as ResponsiveDrawer, f as RulerIcon, E as SelectToolIcon, k as SmartTooltip, o as SpatialMaskIcon, i as TextAaIcon, n as Tooltip, h as ZoomControlsUI, t as setTooltipEnterDelay };
|