@carto/ps-react-ui 4.13.0 → 4.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{category-Dnd2_j0x.js → category-CGS_eHr4.js} +2 -2
  2. package/dist/{category-Dnd2_j0x.js.map → category-CGS_eHr4.js.map} +1 -1
  3. package/dist/{change-column-DjjwoPt1.js → change-column-CiVAjOUB.js} +2 -2
  4. package/dist/{change-column-DjjwoPt1.js.map → change-column-CiVAjOUB.js.map} +1 -1
  5. package/dist/components.js +1160 -753
  6. package/dist/components.js.map +1 -1
  7. package/dist/{data-zoom-layout-CkVnm6ej.js → data-zoom-layout-D_FYdnap.js} +2 -2
  8. package/dist/{data-zoom-layout-CkVnm6ej.js.map → data-zoom-layout-D_FYdnap.js.map} +1 -1
  9. package/dist/{download-config-oJIFZ2WC.js → download-config-OKlLLSW_.js} +2 -2
  10. package/dist/{download-config-oJIFZ2WC.js.map → download-config-OKlLLSW_.js.map} +1 -1
  11. package/dist/{lasso-tool-CDFj4zKY.js → lasso-tool-YLFRgb-S.js} +182 -154
  12. package/dist/lasso-tool-YLFRgb-S.js.map +1 -0
  13. package/dist/{spread-DYNpzgh_.js → spread-4MYPOntd.js} +2 -2
  14. package/dist/{spread-DYNpzgh_.js.map → spread-4MYPOntd.js.map} +1 -1
  15. package/dist/{table-B3ZWWhJt.js → table-CTcLOycx.js} +2 -2
  16. package/dist/{table-B3ZWWhJt.js.map → table-CTcLOycx.js.map} +1 -1
  17. package/dist/types/components/index.d.ts +4 -2
  18. package/dist/types/components/lasso-tool/geometry-toolbar.d.ts +13 -0
  19. package/dist/types/components/lasso-tool/icons.d.ts +6 -0
  20. package/dist/types/components/lasso-tool/lasso-tool.d.ts +1 -1
  21. package/dist/types/components/lasso-tool/layer-filters.d.ts +10 -0
  22. package/dist/types/components/lasso-tool/styles.d.ts +1 -1
  23. package/dist/types/components/lasso-tool/types.d.ts +62 -1
  24. package/dist/widgets/actions.js +1 -1
  25. package/dist/widgets/bar.js +1 -1
  26. package/dist/widgets/category.js +1 -1
  27. package/dist/widgets/formula.js +1 -1
  28. package/dist/widgets/histogram.js +1 -1
  29. package/dist/widgets/markdown.js +1 -1
  30. package/dist/widgets/pie.js +1 -1
  31. package/dist/widgets/scatterplot.js +1 -1
  32. package/dist/widgets/spread.js +1 -1
  33. package/dist/widgets/table.js +1 -1
  34. package/dist/widgets/timeseries.js +1 -1
  35. package/dist/widgets/utils.js +1 -1
  36. package/dist/widgets/wrapper.js +1 -1
  37. package/dist/widgets-v2/actions.js +1 -1
  38. package/dist/widgets-v2/bar.js +2 -2
  39. package/dist/widgets-v2/category.js +2 -2
  40. package/dist/widgets-v2/formula.js +1 -1
  41. package/dist/widgets-v2/histogram.js +2 -2
  42. package/dist/widgets-v2/markdown.js +1 -1
  43. package/dist/widgets-v2/pie.js +1 -1
  44. package/dist/widgets-v2/scatterplot.js +1 -1
  45. package/dist/widgets-v2/spread.js +2 -2
  46. package/dist/widgets-v2/table.js +3 -3
  47. package/dist/widgets-v2/timeseries.js +2 -2
  48. package/dist/widgets-v2/utils.js +1 -1
  49. package/dist/widgets-v2.js +5 -5
  50. package/package.json +1 -1
  51. package/src/components/index.ts +8 -0
  52. package/src/components/lasso-tool/const.tsx +1 -0
  53. package/src/components/lasso-tool/geometry-toolbar.test.tsx +138 -0
  54. package/src/components/lasso-tool/geometry-toolbar.tsx +258 -0
  55. package/src/components/lasso-tool/icons.tsx +40 -0
  56. package/src/components/lasso-tool/lasso-tool.tsx +25 -1
  57. package/src/components/lasso-tool/layer-filters.test.tsx +90 -0
  58. package/src/components/lasso-tool/layer-filters.tsx +236 -0
  59. package/src/components/lasso-tool/styles.ts +1 -1
  60. package/src/components/lasso-tool/types.ts +66 -1
  61. package/dist/lasso-tool-CDFj4zKY.js.map +0 -1
@@ -3,7 +3,7 @@ import "react/compiler-runtime";
3
3
  import "react";
4
4
  import "@mui/material";
5
5
  import "@mui/icons-material";
6
- import "./lasso-tool-CDFj4zKY.js";
6
+ import "./lasso-tool-YLFRgb-S.js";
7
7
  import "./cjs-D4KH3azB.js";
8
8
  import "@carto/ps-utils";
9
9
  import "./widget-context-DTGO0Yta.js";
@@ -25,4 +25,4 @@ function b(t, i) {
25
25
  export {
26
26
  b as p
27
27
  };
28
- //# sourceMappingURL=data-zoom-layout-CkVnm6ej.js.map
28
+ //# sourceMappingURL=data-zoom-layout-D_FYdnap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-zoom-layout-CkVnm6ej.js","sources":["../src/widgets-v2/utils/data-zoom-layout.ts"],"sourcesContent":["import { ZOOM_LAYOUT } from '../actions/zoom-toggle'\n\n/**\n * If the option includes a `dataZoom` array (from ZoomToggle's transform),\n * lift any slider entries above the legend row so they don't overlap.\n * Returns `null` when there is no `dataZoom` — caller skips the layout\n * adjustment entirely.\n *\n * Shared between bar, histogram, and timeseries — every widget with a\n * horizontal x-axis dataZoom slider needs the same offset when a legend\n * is rendered below the plot.\n */\nexport function positionDataZoomForLegend(\n dataZoom: unknown,\n hasLegend: boolean,\n): unknown[] | null {\n if (!Array.isArray(dataZoom) || dataZoom.length === 0) return null\n return dataZoom.map((entry: unknown) => {\n if (entry == null || typeof entry !== 'object') return entry\n const dz = entry as { type?: string; bottom?: number }\n if (dz.type === 'slider' && hasLegend) {\n return { ...dz, bottom: ZOOM_LAYOUT.sliderBottomWithLegend }\n }\n return dz\n })\n}\n"],"names":["positionDataZoomForLegend","dataZoom","hasLegend","Array","isArray","length","map","entry","dz","type","bottom","ZOOM_LAYOUT","sliderBottomWithLegend"],"mappings":";;;;;;;;;;;;;;AAYO,SAASA,EACdC,GACAC,GACkB;AAClB,SAAI,CAACC,MAAMC,QAAQH,CAAQ,KAAKA,EAASI,WAAW,IAAU,OACvDJ,EAASK,IAAI,CAACC,MAAmB;AACtC,QAAIA,KAAS,QAAQ,OAAOA,KAAU,SAAU,QAAOA;AACvD,UAAMC,IAAKD;AACX,WAAIC,EAAGC,SAAS,YAAYP,IACnB;AAAA,MAAE,GAAGM;AAAAA,MAAIE,QAAQC,EAAYC;AAAAA,IAAAA,IAE/BJ;AAAAA,EACT,CAAC;AACH;"}
1
+ {"version":3,"file":"data-zoom-layout-D_FYdnap.js","sources":["../src/widgets-v2/utils/data-zoom-layout.ts"],"sourcesContent":["import { ZOOM_LAYOUT } from '../actions/zoom-toggle'\n\n/**\n * If the option includes a `dataZoom` array (from ZoomToggle's transform),\n * lift any slider entries above the legend row so they don't overlap.\n * Returns `null` when there is no `dataZoom` — caller skips the layout\n * adjustment entirely.\n *\n * Shared between bar, histogram, and timeseries — every widget with a\n * horizontal x-axis dataZoom slider needs the same offset when a legend\n * is rendered below the plot.\n */\nexport function positionDataZoomForLegend(\n dataZoom: unknown,\n hasLegend: boolean,\n): unknown[] | null {\n if (!Array.isArray(dataZoom) || dataZoom.length === 0) return null\n return dataZoom.map((entry: unknown) => {\n if (entry == null || typeof entry !== 'object') return entry\n const dz = entry as { type?: string; bottom?: number }\n if (dz.type === 'slider' && hasLegend) {\n return { ...dz, bottom: ZOOM_LAYOUT.sliderBottomWithLegend }\n }\n return dz\n })\n}\n"],"names":["positionDataZoomForLegend","dataZoom","hasLegend","Array","isArray","length","map","entry","dz","type","bottom","ZOOM_LAYOUT","sliderBottomWithLegend"],"mappings":";;;;;;;;;;;;;;AAYO,SAASA,EACdC,GACAC,GACkB;AAClB,SAAI,CAACC,MAAMC,QAAQH,CAAQ,KAAKA,EAASI,WAAW,IAAU,OACvDJ,EAASK,IAAI,CAACC,MAAmB;AACtC,QAAIA,KAAS,QAAQ,OAAOA,KAAU,SAAU,QAAOA;AACvD,UAAMC,IAAKD;AACX,WAAIC,EAAGC,SAAS,YAAYP,IACnB;AAAA,MAAE,GAAGM;AAAAA,MAAIE,QAAQC,EAAYC;AAAAA,IAAAA,IAE/BJ;AAAAA,EACT,CAAC;AACH;"}
@@ -6,7 +6,7 @@ import "zustand/shallow";
6
6
  import "@mui/icons-material";
7
7
  import "react";
8
8
  import { d as n, a as s } from "./exports-Cr43OCul.js";
9
- import "./lasso-tool-CDFj4zKY.js";
9
+ import "./lasso-tool-YLFRgb-S.js";
10
10
  import "./cjs-D4KH3azB.js";
11
11
  import "@carto/ps-utils";
12
12
  import "@dnd-kit/core";
@@ -55,4 +55,4 @@ export {
55
55
  b as f,
56
56
  j as s
57
57
  };
58
- //# sourceMappingURL=download-config-oJIFZ2WC.js.map
58
+ //# sourceMappingURL=download-config-OKlLLSW_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"download-config-oJIFZ2WC.js","sources":["../src/widgets/utils/chart-config/csv-modifiers.ts","../src/widgets/utils/chart-config/download-config.ts"],"sourcesContent":["/**\n * Shared CSV export modifiers for chart widgets\n */\n\n/**\n * Flattens object array data into CSV-ready rows.\n * Used by bar, pie, histogram, and timeseries widgets.\n *\n * @param data - Array of series, where each series is an array of data objects\n * @returns CSV rows with headers and values\n */\nexport function flattenObjectArrayToCSV<T extends Record<string, unknown>>(\n data: T[][],\n): string[][] {\n const rows: string[][] = []\n\n // Add headers from first data point if available\n if (data.length > 0 && (data[0]?.length ?? 0) > 0) {\n const firstDataPoint = data?.[0]?.[0] ?? {}\n const headers = Object.keys(firstDataPoint)\n rows.push(headers)\n }\n\n // Add data rows from all series\n data.forEach((series) => {\n series.forEach((dataPoint) => {\n const values = Object.values(dataPoint).map((v) => String(v))\n rows.push(values)\n })\n })\n\n return rows\n}\n\n/**\n * Creates CSV rows for scatterplot data.\n * Scatterplot uses array format [x, y] instead of objects.\n *\n * @param data - Array of series, where each series is an array of [x, y] tuples\n * @returns CSV rows with ['x', 'y'] headers\n */\nexport function scatterplotDataToCSV(data: number[][][]): string[][] {\n const rows: string[][] = []\n\n // Add headers\n rows.push(['x', 'y'])\n\n // Add data rows from all series\n data.forEach((series) => {\n series.forEach((dataPoint) => {\n rows.push([String(dataPoint[0]), String(dataPoint[1])])\n })\n })\n\n return rows\n}\n","import { downloadToCSV, downloadToPNG, type DownloadItem } from '../../actions'\nimport type { ConfigProps } from '../../loader/types'\n\nexport function createChartDownloadConfig<TData>(\n csvModifier: (data: TData) => string[][],\n) {\n return function ({ refUI }: ConfigProps): DownloadItem<TData>[] {\n return [\n {\n ...downloadToPNG,\n modifier: () => downloadToPNG.modifier(refUI),\n },\n {\n ...downloadToCSV,\n modifier: async (data) => {\n const rows = csvModifier(data)\n return downloadToCSV.modifier(rows)\n },\n },\n ]\n }\n}\n"],"names":["flattenObjectArrayToCSV","data","rows","length","firstDataPoint","headers","Object","keys","push","forEach","series","dataPoint","values","map","v","String","scatterplotDataToCSV","createChartDownloadConfig","csvModifier","refUI","downloadToPNG","modifier","downloadToCSV"],"mappings":";;;;;;;;;;;;;;;AAWO,SAASA,EACdC,GACY;AACZ,QAAMC,IAAmB,CAAA;AAGzB,MAAID,EAAKE,SAAS,MAAMF,EAAK,CAAC,GAAGE,UAAU,KAAK,GAAG;AACjD,UAAMC,IAAiBH,IAAO,CAAC,IAAI,CAAC,KAAK,CAAA,GACnCI,IAAUC,OAAOC,KAAKH,CAAc;AAC1CF,IAAAA,EAAKM,KAAKH,CAAO;AAAA,EACnB;AAGAJ,SAAAA,EAAKQ,QAASC,CAAAA,MAAW;AACvBA,IAAAA,EAAOD,QAASE,CAAAA,MAAc;AAC5B,YAAMC,IAASN,OAAOM,OAAOD,CAAS,EAAEE,IAAKC,CAAAA,MAAMC,OAAOD,CAAC,CAAC;AAC5DZ,MAAAA,EAAKM,KAAKI,CAAM;AAAA,IAClB,CAAC;AAAA,EACH,CAAC,GAEMV;AACT;AASO,SAASc,EAAqBf,GAAgC;AACnE,QAAMC,IAAmB,CAAA;AAGzBA,SAAAA,EAAKM,KAAK,CAAC,KAAK,GAAG,CAAC,GAGpBP,EAAKQ,QAASC,CAAAA,MAAW;AACvBA,IAAAA,EAAOD,QAASE,CAAAA,MAAc;AAC5BT,MAAAA,EAAKM,KAAK,CAACO,OAAOJ,EAAU,CAAC,CAAC,GAAGI,OAAOJ,EAAU,CAAC,CAAC,CAAC,CAAC;AAAA,IACxD,CAAC;AAAA,EACH,CAAC,GAEMT;AACT;ACpDO,SAASe,EACdC,GACA;AACA,SAAO,SAAU;AAAA,IAAEC,OAAAA;AAAAA,EAAAA,GAA6C;AAC9D,WAAO,CACL;AAAA,MACE,GAAGC;AAAAA,MACHC,UAAUA,MAAMD,EAAcC,SAASF,CAAK;AAAA,IAAA,GAE9C;AAAA,MACE,GAAGG;AAAAA,MACHD,UAAU,OAAOpB,MAAS;AACxB,cAAMC,IAAOgB,EAAYjB,CAAI;AAC7B,eAAOqB,EAAcD,SAASnB,CAAI;AAAA,MACpC;AAAA,IAAA,CACD;AAAA,EAEL;AACF;"}
1
+ {"version":3,"file":"download-config-OKlLLSW_.js","sources":["../src/widgets/utils/chart-config/csv-modifiers.ts","../src/widgets/utils/chart-config/download-config.ts"],"sourcesContent":["/**\n * Shared CSV export modifiers for chart widgets\n */\n\n/**\n * Flattens object array data into CSV-ready rows.\n * Used by bar, pie, histogram, and timeseries widgets.\n *\n * @param data - Array of series, where each series is an array of data objects\n * @returns CSV rows with headers and values\n */\nexport function flattenObjectArrayToCSV<T extends Record<string, unknown>>(\n data: T[][],\n): string[][] {\n const rows: string[][] = []\n\n // Add headers from first data point if available\n if (data.length > 0 && (data[0]?.length ?? 0) > 0) {\n const firstDataPoint = data?.[0]?.[0] ?? {}\n const headers = Object.keys(firstDataPoint)\n rows.push(headers)\n }\n\n // Add data rows from all series\n data.forEach((series) => {\n series.forEach((dataPoint) => {\n const values = Object.values(dataPoint).map((v) => String(v))\n rows.push(values)\n })\n })\n\n return rows\n}\n\n/**\n * Creates CSV rows for scatterplot data.\n * Scatterplot uses array format [x, y] instead of objects.\n *\n * @param data - Array of series, where each series is an array of [x, y] tuples\n * @returns CSV rows with ['x', 'y'] headers\n */\nexport function scatterplotDataToCSV(data: number[][][]): string[][] {\n const rows: string[][] = []\n\n // Add headers\n rows.push(['x', 'y'])\n\n // Add data rows from all series\n data.forEach((series) => {\n series.forEach((dataPoint) => {\n rows.push([String(dataPoint[0]), String(dataPoint[1])])\n })\n })\n\n return rows\n}\n","import { downloadToCSV, downloadToPNG, type DownloadItem } from '../../actions'\nimport type { ConfigProps } from '../../loader/types'\n\nexport function createChartDownloadConfig<TData>(\n csvModifier: (data: TData) => string[][],\n) {\n return function ({ refUI }: ConfigProps): DownloadItem<TData>[] {\n return [\n {\n ...downloadToPNG,\n modifier: () => downloadToPNG.modifier(refUI),\n },\n {\n ...downloadToCSV,\n modifier: async (data) => {\n const rows = csvModifier(data)\n return downloadToCSV.modifier(rows)\n },\n },\n ]\n }\n}\n"],"names":["flattenObjectArrayToCSV","data","rows","length","firstDataPoint","headers","Object","keys","push","forEach","series","dataPoint","values","map","v","String","scatterplotDataToCSV","createChartDownloadConfig","csvModifier","refUI","downloadToPNG","modifier","downloadToCSV"],"mappings":";;;;;;;;;;;;;;;AAWO,SAASA,EACdC,GACY;AACZ,QAAMC,IAAmB,CAAA;AAGzB,MAAID,EAAKE,SAAS,MAAMF,EAAK,CAAC,GAAGE,UAAU,KAAK,GAAG;AACjD,UAAMC,IAAiBH,IAAO,CAAC,IAAI,CAAC,KAAK,CAAA,GACnCI,IAAUC,OAAOC,KAAKH,CAAc;AAC1CF,IAAAA,EAAKM,KAAKH,CAAO;AAAA,EACnB;AAGAJ,SAAAA,EAAKQ,QAASC,CAAAA,MAAW;AACvBA,IAAAA,EAAOD,QAASE,CAAAA,MAAc;AAC5B,YAAMC,IAASN,OAAOM,OAAOD,CAAS,EAAEE,IAAKC,CAAAA,MAAMC,OAAOD,CAAC,CAAC;AAC5DZ,MAAAA,EAAKM,KAAKI,CAAM;AAAA,IAClB,CAAC;AAAA,EACH,CAAC,GAEMV;AACT;AASO,SAASc,EAAqBf,GAAgC;AACnE,QAAMC,IAAmB,CAAA;AAGzBA,SAAAA,EAAKM,KAAK,CAAC,KAAK,GAAG,CAAC,GAGpBP,EAAKQ,QAASC,CAAAA,MAAW;AACvBA,IAAAA,EAAOD,QAASE,CAAAA,MAAc;AAC5BT,MAAAA,EAAKM,KAAK,CAACO,OAAOJ,EAAU,CAAC,CAAC,GAAGI,OAAOJ,EAAU,CAAC,CAAC,CAAC,CAAC;AAAA,IACxD,CAAC;AAAA,EACH,CAAC,GAEMT;AACT;ACpDO,SAASe,EACdC,GACA;AACA,SAAO,SAAU;AAAA,IAAEC,OAAAA;AAAAA,EAAAA,GAA6C;AAC9D,WAAO,CACL;AAAA,MACE,GAAGC;AAAAA,MACHC,UAAUA,MAAMD,EAAcC,SAASF,CAAK;AAAA,IAAA,GAE9C;AAAA,MACE,GAAGG;AAAAA,MACHD,UAAU,OAAOpB,MAAS;AACxB,cAAMC,IAAOgB,EAAYjB,CAAI;AAC7B,eAAOqB,EAAcD,SAASnB,CAAI;AAAA,MACpC;AAAA,IAAA,CACD;AAAA,EAEL;AACF;"}
@@ -1,46 +1,60 @@
1
- import { jsx as i, jsxs as D, Fragment as k } from "react/jsx-runtime";
2
- import { c as M } from "react/compiler-runtime";
3
- import { ArrowDropDown as Q, MoreVertOutlined as ee } from "@mui/icons-material";
4
- import { Chip as te, Paper as oe, Menu as le, Box as ie, Divider as W, IconButton as ne, MenuItem as U, ListItemIcon as re, SvgIcon as ce, ListItemText as se, ToggleButton as ae, Typography as Y } from "@mui/material";
5
- import { d as F } from "./cjs-D4KH3azB.js";
6
- import { useState as de, useMemo as N } from "react";
7
- import { T as q } from "./tooltip-BDnrRKrp.js";
8
- function ue(t) {
9
- const e = M(3);
1
+ import { jsx as i, jsxs as y, Fragment as Z } from "react/jsx-runtime";
2
+ import { c as m } from "react/compiler-runtime";
3
+ import { LayersOutlined as oe, ArrowDropDown as le, MoreVertOutlined as ie } from "@mui/icons-material";
4
+ import { Chip as ne, Paper as re, Menu as ce, Box as se, Divider as W, MenuItem as U, ListItemIcon as Y, ListItemText as N, IconButton as ae, SvgIcon as de, ToggleButton as ue, Typography as q } from "@mui/material";
5
+ import { d as J } from "./cjs-D4KH3azB.js";
6
+ import { useState as ge, useMemo as K } from "react";
7
+ import { T as Q } from "./tooltip-BDnrRKrp.js";
8
+ function he(t) {
9
+ const e = m(3);
10
10
  let l;
11
11
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.996 2.996 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342Zm-2.463-5.707 3.998 4a3.013 3.013 0 0 0-1.414 1.414l-4-3.999a3.014 3.014 0 0 0 1.31-1.214l.106-.201ZM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.993 2.993 0 0 0-2.002 0V6.83ZM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942ZM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm9.171.998a2.994 2.994 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342Z", fill: "currentColor" }), e[0] = l) : l = e[0];
12
12
  let o;
13
13
  return e[1] !== t ? (o = /* @__PURE__ */ i("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
14
14
  }
15
- function ge(t) {
16
- const e = M(3);
15
+ function pe(t) {
16
+ const e = m(3);
17
17
  let l;
18
18
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm-2.829 1a2.993 2.993 0 0 0-.17.974l-.001.052.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2h10.342ZM2.998 6.828a2.995 2.995 0 0 0 2.002 0V17.17a2.993 2.993 0 0 0-2.002 0V6.83Zm16.001 0a2.995 2.995 0 0 0 2 0V17.17a2.993 2.993 0 0 0-2 0V6.829ZM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm13.171.998a2.991 2.991 0 0 0-.17.976L17 4.026l.007.183a3 3 0 0 0 .164.79H6.829a2.995 2.995 0 0 0 0-2H17.17Z", fill: "currentColor" }), e[0] = l) : l = e[0];
19
19
  let o;
20
20
  return e[1] !== t ? (o = /* @__PURE__ */ i("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
21
21
  }
22
- function pe(t) {
23
- const e = M(3);
22
+ function fe(t) {
23
+ const e = m(3);
24
24
  let l;
25
25
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = l) : l = e[0];
26
26
  let o;
27
27
  return e[1] !== t ? (o = /* @__PURE__ */ i("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
28
28
  }
29
- function he(t) {
30
- const e = M(3);
29
+ function me(t) {
30
+ const e = m(3);
31
31
  let l;
32
32
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.668c-.012.438-.033.86-.062 1.266l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.988-1.122l-.472-.375c-.401-.319-.64-.473-.888-.566a4.938 4.938 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.112 9.112 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.098.237.05.433.103c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.133-7-7-7a1 1 0 1 1 0-2ZM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z", fill: "currentColor" }), e[0] = l) : l = e[0];
33
33
  let o;
34
34
  return e[1] !== t ? (o = /* @__PURE__ */ i("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
35
35
  }
36
- function fe(t) {
37
- const e = M(3);
36
+ function ve(t) {
37
+ const e = m(3);
38
38
  let l;
39
39
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("path", { fillRule: "evenodd", clipRule: "evenodd", d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.786-2.87a1 1 0 0 0-.121-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14ZM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903Z", fill: "currentColor" }), e[0] = l) : l = e[0];
40
40
  let o;
41
41
  return e[1] !== t ? (o = /* @__PURE__ */ i("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
42
42
  }
43
- const B = {
43
+ function Be(t) {
44
+ const e = m(3);
45
+ let l;
46
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15 7.5C15 11.6421 11.6421 15 7.5 15C3.35786 15 0 11.6421 0 7.5C0 3.35786 3.35786 0 7.5 0C11.6421 0 15 3.35786 15 7.5ZM13.5 7.5C13.5 10.8137 10.8137 13.5 7.5 13.5C6.44531 13.5 5.45418 13.2279 4.59299 12.75H6.85607C7.29596 12.3013 7.67991 11.7975 7.99663 11.25H2.81597C2.62675 11.014 2.45501 10.7633 2.30269 10.5H8.37593C8.58402 10.0237 8.74407 9.52171 8.84997 9H1.68903C1.62614 8.75568 1.57826 8.50533 1.54642 8.25H8.96297C8.98746 8.00332 9 7.75312 9 7.5C9 7.24688 8.98746 6.99668 8.96297 6.75H1.54642C1.57826 6.49467 1.62614 6.24432 1.68903 6H8.84997C8.74407 5.47829 8.58402 4.97625 8.37593 4.5H2.30269C2.45501 4.2367 2.62675 3.98604 2.81597 3.75H7.99663C7.67991 3.20248 7.29596 2.69872 6.85607 2.25H4.59299C5.45418 1.77213 6.44531 1.5 7.5 1.5C10.8137 1.5 13.5 4.18629 13.5 7.5Z", fill: "currentColor" }), e[0] = l) : l = e[0];
47
+ let o;
48
+ return e[1] !== t ? (o = /* @__PURE__ */ i("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15 15", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
49
+ }
50
+ function He(t) {
51
+ const e = m(3);
52
+ let l;
53
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.4 0L9.18 10.5H7.56L6.72 8.085H2.475L1.62 10.5H0L3.795 0H5.4ZM4.605 1.95C4.515 2.31 4.395 2.705 4.245 3.135L2.955 6.705H6.24L4.965 3.135C4.785 2.645 4.665 2.25 4.605 1.95ZM12.9247 2.5875C13.3083 2.5875 13.6514 2.6203 13.9542 2.68591C14.257 2.75152 14.5649 2.87769 14.8778 3.06442C15.1907 3.25114 15.4355 3.55143 15.6121 3.96526C15.7887 4.37909 15.877 4.88881 15.877 5.49442V10.5058H14.363V9.83965C13.818 10.4049 13.1114 10.6875 12.2434 10.6875C11.4258 10.6875 10.7622 10.4629 10.2525 10.0138C9.74275 9.5646 9.48789 8.92619 9.48789 8.09853C9.48789 7.26077 9.77555 6.62488 10.3509 6.19086C10.9262 5.75685 11.6277 5.53984 12.4554 5.53984C13.2124 5.53984 13.8483 5.69124 14.363 5.99404V5.57012C14.363 4.99479 14.2318 4.586 13.9694 4.34376C13.707 4.10152 13.2881 3.9804 12.7127 3.9804C11.8649 3.9804 11.1281 4.21255 10.5023 4.67685L10.0329 3.38993C10.8101 2.85498 11.7741 2.5875 12.9247 2.5875ZM12.7127 6.90245C12.2081 6.90245 11.7968 7.00086 11.4788 7.19769C11.1609 7.39451 11.0019 7.69479 11.0019 8.09853C11.0019 8.47199 11.1331 8.7647 11.3955 8.97666C11.658 9.18862 12.0365 9.2946 12.5311 9.2946C13.2578 9.2946 13.8684 9.01703 14.363 8.46189V7.28096C13.8886 7.02862 13.3385 6.90245 12.7127 6.90245Z", fill: "currentColor" }), e[0] = l) : l = e[0];
54
+ let o;
55
+ return e[1] !== t ? (o = /* @__PURE__ */ i("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15.877 10.6875", ...t, children: l }), e[1] = t, e[2] = o) : o = e[2], o;
56
+ }
57
+ const D = {
44
58
  action: {
45
59
  tooltip: {
46
60
  active: "Click on the map to draw your spatial filter",
@@ -63,7 +77,8 @@ const B = {
63
77
  rectangle: "Rectangle",
64
78
  edit: "Edit feature"
65
79
  }
66
- }
80
+ },
81
+ layerFilters: "Layer filters"
67
82
  },
68
83
  noData: {
69
84
  title: "Spatial filter not applied",
@@ -76,23 +91,23 @@ const B = {
76
91
  },
77
92
  deleteAll: "Remove all"
78
93
  }
79
- }, Be = {
94
+ }, Ie = {
80
95
  polygon: {
81
- icon: /* @__PURE__ */ i(ue, {})
96
+ icon: /* @__PURE__ */ i(he, {})
82
97
  },
83
98
  rectangle: {
84
- icon: /* @__PURE__ */ i(ge, {})
99
+ icon: /* @__PURE__ */ i(pe, {})
85
100
  },
86
101
  circle: {
87
- icon: /* @__PURE__ */ i(pe, {})
102
+ icon: /* @__PURE__ */ i(fe, {})
88
103
  },
89
104
  lasso: {
90
- icon: /* @__PURE__ */ i(he, {})
105
+ icon: /* @__PURE__ */ i(me, {})
91
106
  },
92
107
  edit: {
93
- icon: /* @__PURE__ */ i(fe, {})
108
+ icon: /* @__PURE__ */ i(ve, {})
94
109
  }
95
- }, A = {
110
+ }, x = {
96
111
  container: {
97
112
  display: "flex",
98
113
  flexDirection: "row",
@@ -124,7 +139,7 @@ const B = {
124
139
  },
125
140
  options: {
126
141
  menu: {
127
- paddingTop: ({
142
+ paddingY: ({
128
143
  spacing: t
129
144
  }) => t(1),
130
145
  "&.inline": {
@@ -257,32 +272,32 @@ const B = {
257
272
  }
258
273
  }
259
274
  };
260
- function me(t) {
261
- const e = M(18), {
275
+ function Ce(t) {
276
+ const e = m(18), {
262
277
  chipProps: l,
263
278
  value: o,
264
279
  labels: c,
265
280
  onChipToggle: a,
266
281
  onDelete: n
267
- } = t, s = o.visible ? "active" : "inactive", r = c?.tooltip?.[s] ?? B.chip.tooltip[s], d = l?.TooltipProps;
282
+ } = t, s = o.visible ? "active" : "inactive", r = c?.tooltip?.[s] ?? D.chip.tooltip[s], d = l?.TooltipProps;
268
283
  let u;
269
284
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
270
- ...A.chip.chip
285
+ ...x.chip.chip
271
286
  }, e[0] = u) : u = e[0];
272
- const p = o.visible ? "secondary" : "default";
287
+ const h = o.visible ? "secondary" : "default";
273
288
  let g;
274
289
  e[1] !== n || e[2] !== o.id ? (g = () => n(o.id), e[1] = n, e[2] = o.id, e[3] = g) : g = e[3];
275
- let h;
276
- e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (h = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = h) : h = e[7];
290
+ let p;
291
+ e[4] !== a || e[5] !== o.id || e[6] !== o.visible ? (p = () => a(o.id, !o.visible), e[4] = a, e[5] = o.id, e[6] = o.visible, e[7] = p) : p = e[7];
277
292
  const v = l?.ChipsProps;
278
293
  let f;
279
- e[8] !== p || e[9] !== g || e[10] !== h || e[11] !== v || e[12] !== o.label ? (f = /* @__PURE__ */ i(te, { sx: u, color: p, size: "small", onDelete: g, label: o.label, onClick: h, ...v }), e[8] = p, e[9] = g, e[10] = h, e[11] = v, e[12] = o.label, e[13] = f) : f = e[13];
280
- let w;
281
- return e[14] !== r || e[15] !== d || e[16] !== f ? (w = /* @__PURE__ */ i(q, { title: r, placement: "bottom", ...d, children: f }), e[14] = r, e[15] = d, e[16] = f, e[17] = w) : w = e[17], w;
294
+ e[8] !== h || e[9] !== g || e[10] !== p || e[11] !== v || e[12] !== o.label ? (f = /* @__PURE__ */ i(ne, { sx: u, color: h, size: "small", onDelete: g, label: o.label, onClick: p, ...v }), e[8] = h, e[9] = g, e[10] = p, e[11] = v, e[12] = o.label, e[13] = f) : f = e[13];
295
+ let b;
296
+ return e[14] !== r || e[15] !== d || e[16] !== f ? (b = /* @__PURE__ */ i(Q, { title: r, placement: "bottom", ...d, children: f }), e[14] = r, e[15] = d, e[16] = f, e[17] = b) : b = e[17], b;
282
297
  }
283
- const ve = [], be = {};
298
+ const be = [], we = {};
284
299
  function P(t) {
285
- const e = M(40), {
300
+ const e = m(41), {
286
301
  enabled: l,
287
302
  values: o,
288
303
  actionProps: c,
@@ -292,25 +307,26 @@ function P(t) {
292
307
  modesMapping: r,
293
308
  modeSelected: d,
294
309
  PaperProps: u,
295
- onActionToggle: p,
310
+ onActionToggle: h,
296
311
  onChipToggle: g,
297
- onDelete: h,
312
+ onDelete: p,
298
313
  onChangeMode: v,
299
314
  onAllChipToggle: f,
300
- onAllDelete: w,
301
- ChipsSlot: C,
302
- ActionSlot: x,
303
- SecondaryActionsSlot: R,
304
- OptionsSlot: y
305
- } = t, S = o === void 0 ? ve : o, T = u === void 0 ? be : u;
306
- let m, _;
307
- e[0] !== T ? ({
308
- sx: _,
309
- ...m
310
- } = T, e[0] = T, e[1] = m, e[2] = _) : (m = e[1], _ = e[2]);
311
- const G = C === void 0 ? P.Chips : C, V = x === void 0 ? P.Action : x, $ = R === void 0 ? P.SecondaryActions : R, H = y === void 0 ? P.Options : y;
312
- let z;
313
- e[3] !== m || e[4] !== c || e[5] !== a || e[6] !== l || e[7] !== n || e[8] !== d || e[9] !== s || e[10] !== r || e[11] !== p || e[12] !== f || e[13] !== w || e[14] !== v || e[15] !== g || e[16] !== h || e[17] !== S ? (z = {
315
+ onAllDelete: b,
316
+ onLayerFilters: M,
317
+ ChipsSlot: T,
318
+ ActionSlot: R,
319
+ SecondaryActionsSlot: A,
320
+ OptionsSlot: _
321
+ } = t, S = o === void 0 ? be : o, L = u === void 0 ? we : u;
322
+ let w, B;
323
+ e[0] !== L ? ({
324
+ sx: B,
325
+ ...w
326
+ } = L, e[0] = L, e[1] = w, e[2] = B) : (w = e[1], B = e[2]);
327
+ const k = T === void 0 ? P.Chips : T, $ = R === void 0 ? P.Action : R, G = A === void 0 ? P.SecondaryActions : A, z = _ === void 0 ? P.Options : _;
328
+ let F;
329
+ e[3] !== w || e[4] !== c || e[5] !== a || e[6] !== l || e[7] !== n || e[8] !== d || e[9] !== s || e[10] !== r || e[11] !== h || e[12] !== f || e[13] !== b || e[14] !== v || e[15] !== g || e[16] !== p || e[17] !== M || e[18] !== S ? (F = {
314
330
  enabled: l,
315
331
  values: S,
316
332
  actionProps: c,
@@ -319,113 +335,114 @@ function P(t) {
319
335
  modes: s,
320
336
  modesMapping: r,
321
337
  modeSelected: d,
322
- PaperProps: m,
323
- onActionToggle: p,
338
+ PaperProps: w,
339
+ onActionToggle: h,
324
340
  onChipToggle: g,
325
- onDelete: h,
341
+ onDelete: p,
326
342
  onChangeMode: v,
327
343
  onAllChipToggle: f,
328
- onAllDelete: w
329
- }, e[3] = m, e[4] = c, e[5] = a, e[6] = l, e[7] = n, e[8] = d, e[9] = s, e[10] = r, e[11] = p, e[12] = f, e[13] = w, e[14] = v, e[15] = g, e[16] = h, e[17] = S, e[18] = z) : z = e[18];
330
- const b = z;
331
- let L;
332
- e[19] !== _ ? (L = {
333
- ...A.container,
334
- ..._
335
- }, e[19] = _, e[20] = L) : L = e[20];
336
- let Z;
337
- e[21] !== V || e[22] !== b ? (Z = !!V && /* @__PURE__ */ i(V, { ...b }), e[21] = V, e[22] = b, e[23] = Z) : Z = e[23];
344
+ onAllDelete: b,
345
+ onLayerFilters: M
346
+ }, e[3] = w, e[4] = c, e[5] = a, e[6] = l, e[7] = n, e[8] = d, e[9] = s, e[10] = r, e[11] = h, e[12] = f, e[13] = b, e[14] = v, e[15] = g, e[16] = p, e[17] = M, e[18] = S, e[19] = F) : F = e[19];
347
+ const C = F;
348
+ let H;
349
+ e[20] !== B ? (H = {
350
+ ...x.container,
351
+ ...B
352
+ }, e[20] = B, e[21] = H) : H = e[21];
338
353
  let I;
339
- e[24] !== H || e[25] !== b ? (I = !!H && /* @__PURE__ */ i(J, { children: (K) => /* @__PURE__ */ i(H, { ...b, ...K }) }), e[24] = H, e[25] = b, e[26] = I) : I = e[26];
354
+ e[22] !== $ || e[23] !== C ? (I = !!$ && /* @__PURE__ */ i($, { ...C }), e[22] = $, e[23] = C, e[24] = I) : I = e[24];
340
355
  let O;
341
- e[27] !== G || e[28] !== b ? (O = !!G && /* @__PURE__ */ i(G, { ...b }), e[27] = G, e[28] = b, e[29] = O) : O = e[29];
356
+ e[25] !== z || e[26] !== C ? (O = !!z && /* @__PURE__ */ i(ee, { children: (te) => /* @__PURE__ */ i(z, { ...C, ...te }) }), e[25] = z, e[26] = C, e[27] = O) : O = e[27];
357
+ let V;
358
+ e[28] !== k || e[29] !== C ? (V = !!k && /* @__PURE__ */ i(k, { ...C }), e[28] = k, e[29] = C, e[30] = V) : V = e[30];
342
359
  let E;
343
- e[30] !== $ || e[31] !== b ? (E = !!$ && /* @__PURE__ */ i($, { ...b }), e[30] = $, e[31] = b, e[32] = E) : E = e[32];
360
+ e[31] !== G || e[32] !== C ? (E = !!G && /* @__PURE__ */ i(G, { ...C }), e[31] = G, e[32] = C, e[33] = E) : E = e[33];
344
361
  let j;
345
- return e[33] !== m || e[34] !== Z || e[35] !== I || e[36] !== O || e[37] !== E || e[38] !== L ? (j = /* @__PURE__ */ D(oe, { sx: L, ...m, children: [
346
- Z,
362
+ return e[34] !== w || e[35] !== I || e[36] !== O || e[37] !== V || e[38] !== E || e[39] !== H ? (j = /* @__PURE__ */ y(re, { sx: H, ...w, children: [
347
363
  I,
348
364
  O,
365
+ V,
349
366
  E
350
- ] }), e[33] = m, e[34] = Z, e[35] = I, e[36] = O, e[37] = E, e[38] = L, e[39] = j) : j = e[39], j;
367
+ ] }), e[34] = w, e[35] = I, e[36] = O, e[37] = V, e[38] = E, e[39] = H, e[40] = j) : j = e[40], j;
351
368
  }
352
- function we(t) {
353
- const e = M(12), {
369
+ function Me(t) {
370
+ const e = m(12), {
354
371
  actionProps: l,
355
372
  labels: o,
356
373
  enabled: c,
357
374
  children: a,
358
375
  onActionToggle: n
359
- } = t, s = c ? "active" : "inactive", r = o?.tooltip?.[s] ?? B.action.tooltip[s], d = l?.TooltipProps;
376
+ } = t, s = c ? "active" : "inactive", r = o?.tooltip?.[s] ?? D.action.tooltip[s], d = l?.TooltipProps;
360
377
  let u;
361
378
  e[0] !== c || e[1] !== n ? (u = () => n(!c), e[0] = c, e[1] = n, e[2] = u) : u = e[2];
362
- let p;
363
- e[3] !== r || e[4] !== a || e[5] !== c || e[6] !== u ? (p = /* @__PURE__ */ i(ae, { value: "toggle", sx: A.actions.icon, onClick: u, "aria-label": r, selected: c, children: a }), e[3] = r, e[4] = a, e[5] = c, e[6] = u, e[7] = p) : p = e[7];
379
+ let h;
380
+ e[3] !== r || e[4] !== a || e[5] !== c || e[6] !== u ? (h = /* @__PURE__ */ i(ue, { value: "toggle", sx: x.actions.icon, onClick: u, "aria-label": r, selected: c, children: a }), e[3] = r, e[4] = a, e[5] = c, e[6] = u, e[7] = h) : h = e[7];
364
381
  let g;
365
- return e[8] !== r || e[9] !== d || e[10] !== p ? (g = /* @__PURE__ */ i(q, { title: r, placement: "right", ...d, children: p }), e[8] = r, e[9] = d, e[10] = p, e[11] = g) : g = e[11], g;
382
+ return e[8] !== r || e[9] !== d || e[10] !== h ? (g = /* @__PURE__ */ i(Q, { title: r, placement: "right", ...d, children: h }), e[8] = r, e[9] = d, e[10] = h, e[11] = g) : g = e[11], g;
366
383
  }
367
- const Me = {};
368
- function J(t) {
369
- const e = M(22), {
384
+ const Se = {};
385
+ function ee(t) {
386
+ const e = m(22), {
370
387
  TriggerProps: l,
371
388
  MenuProps: o,
372
389
  children: c
373
- } = t, a = l === void 0 ? Me : l, {
390
+ } = t, a = l === void 0 ? Se : l, {
374
391
  Icon: n,
375
392
  sx: s
376
393
  } = a;
377
394
  let r;
378
- e[0] !== n ? (r = n ?? /* @__PURE__ */ i(Q, {}), e[0] = n, e[1] = r) : r = e[1];
379
- const d = r, [u, p] = de(null), g = !!u;
380
- let h;
381
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (_) => {
382
- p(_.currentTarget);
383
- }, e[2] = h) : h = e[2];
384
- const v = h;
395
+ e[0] !== n ? (r = n ?? /* @__PURE__ */ i(le, {}), e[0] = n, e[1] = r) : r = e[1];
396
+ const d = r, [u, h] = ge(null), g = !!u;
397
+ let p;
398
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = (w) => {
399
+ h(w.currentTarget);
400
+ }, e[2] = p) : p = e[2];
401
+ const v = p;
385
402
  let f;
386
403
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = () => {
387
- p(null);
404
+ h(null);
388
405
  }, e[3] = f) : f = e[3];
389
- const w = f;
390
- let C;
391
- e[4] !== s ? (C = {
392
- ...A.options.icon,
406
+ const b = f;
407
+ let M;
408
+ e[4] !== s ? (M = {
409
+ ...x.options.icon,
393
410
  ...s
394
- }, e[4] = s, e[5] = C) : C = e[5];
395
- let x;
396
- e[6] !== d || e[7] !== C ? (x = /* @__PURE__ */ i(ne, { sx: C, onClick: v, children: d }), e[6] = d, e[7] = C, e[8] = x) : x = e[8];
411
+ }, e[4] = s, e[5] = M) : M = e[5];
412
+ let T;
413
+ e[6] !== d || e[7] !== M ? (T = /* @__PURE__ */ i(ae, { sx: M, onClick: v, children: d }), e[6] = d, e[7] = M, e[8] = T) : T = e[8];
397
414
  let R;
398
415
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = {
399
416
  "aria-labelledby": "lasso-button",
400
- sx: A.options.menu
417
+ sx: x.options.menu
401
418
  }, e[9] = R) : R = e[9];
402
- let y;
403
- e[10] !== c ? (y = c({
404
- onClose: w
405
- }), e[10] = c, e[11] = y) : y = e[11];
419
+ let A;
420
+ e[10] !== c ? (A = c({
421
+ onClose: b
422
+ }), e[10] = c, e[11] = A) : A = e[11];
423
+ let _;
424
+ e[12] !== A ? (_ = /* @__PURE__ */ i("div", { children: A }), e[12] = A, e[13] = _) : _ = e[13];
406
425
  let S;
407
- e[12] !== y ? (S = /* @__PURE__ */ i("div", { children: y }), e[12] = y, e[13] = S) : S = e[13];
408
- let T;
409
- e[14] !== o || e[15] !== u || e[16] !== g || e[17] !== S ? (T = /* @__PURE__ */ i(le, { id: "lasso-menu", anchorEl: u, open: g, onClose: w, MenuListProps: R, ...o, children: S }), e[14] = o, e[15] = u, e[16] = g, e[17] = S, e[18] = T) : T = e[18];
410
- let m;
411
- return e[19] !== T || e[20] !== x ? (m = /* @__PURE__ */ D(k, { children: [
412
- x,
413
- T
414
- ] }), e[19] = T, e[20] = x, e[21] = m) : m = e[21], m;
426
+ e[14] !== o || e[15] !== u || e[16] !== g || e[17] !== _ ? (S = /* @__PURE__ */ i(ce, { id: "lasso-menu", anchorEl: u, open: g, onClose: b, MenuListProps: R, ...o, children: _ }), e[14] = o, e[15] = u, e[16] = g, e[17] = _, e[18] = S) : S = e[18];
427
+ let L;
428
+ return e[19] !== S || e[20] !== T ? (L = /* @__PURE__ */ y(Z, { children: [
429
+ T,
430
+ S
431
+ ] }), e[19] = S, e[20] = T, e[21] = L) : L = e[21], L;
415
432
  }
416
- function Se(t) {
417
- const e = M(5), {
433
+ function ye(t) {
434
+ const e = m(5), {
418
435
  data: l,
419
436
  labels: o,
420
437
  children: c
421
438
  } = t;
422
439
  if (l.length <= 1)
423
440
  return null;
424
- const a = o?.mode?.title ?? B.options.mode.title;
441
+ const a = o?.mode?.title ?? D.options.mode.title;
425
442
  let n;
426
- e[0] !== a ? (n = /* @__PURE__ */ i(Y, { variant: "subtitle2", color: "text.secondary", sx: A.options.title, children: a }), e[0] = a, e[1] = n) : n = e[1];
443
+ e[0] !== a ? (n = /* @__PURE__ */ i(q, { variant: "subtitle2", color: "text.secondary", sx: x.options.title, children: a }), e[0] = a, e[1] = n) : n = e[1];
427
444
  let s;
428
- return e[2] !== c || e[3] !== n ? (s = /* @__PURE__ */ D(k, { children: [
445
+ return e[2] !== c || e[3] !== n ? (s = /* @__PURE__ */ y(Z, { children: [
429
446
  n,
430
447
  c
431
448
  ] }), e[2] = c, e[3] = n, e[4] = s) : s = e[4], s;
@@ -441,15 +458,15 @@ function X({
441
458
  n.preventDefault(), o?.(s), c();
442
459
  };
443
460
  return t.filter((n) => !!n).map((n) => {
444
- const r = (l?.mode?.options ?? B.options.mode.options)[n.value];
445
- return /* @__PURE__ */ D(U, { disabled: !!n.disabled, onClick: (d) => a(d, n.value), selected: n.value === e, children: [
446
- /* @__PURE__ */ i(re, { sx: A.options.icons, children: /* @__PURE__ */ i(ce, { children: n.icon }) }),
447
- /* @__PURE__ */ i(se, { children: r })
461
+ const r = (l?.mode?.options ?? D.options.mode.options)[n.value];
462
+ return /* @__PURE__ */ y(U, { disabled: !!n.disabled, onClick: (d) => a(d, n.value), selected: n.value === e, children: [
463
+ /* @__PURE__ */ i(Y, { sx: x.options.icons, children: /* @__PURE__ */ i(de, { children: n.icon }) }),
464
+ /* @__PURE__ */ i(N, { children: r })
448
465
  ] }, n.value);
449
466
  });
450
467
  }
451
- function Te(t) {
452
- const e = M(8), {
468
+ function xe(t) {
469
+ const e = m(8), {
453
470
  values: l,
454
471
  labels: o,
455
472
  onAllChipToggle: c,
@@ -457,14 +474,14 @@ function Te(t) {
457
474
  } = t;
458
475
  if (!l?.length || l.length <= 1)
459
476
  return null;
460
- const s = l?.some(Ce) ? o?.actions?.toggleAll?.active ?? B.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? B.actions.toggleAll.inactive, r = o?.actions?.deleteAll ?? B.actions.deleteAll;
477
+ const s = l?.some(Te) ? o?.actions?.toggleAll?.active ?? D.actions.toggleAll.active : o?.actions?.toggleAll?.inactive ?? D.actions.toggleAll.inactive, r = o?.actions?.deleteAll ?? D.actions.deleteAll;
461
478
  let d;
462
479
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ i(W, { orientation: "vertical", flexItem: !0 }), e[0] = d) : d = e[0];
463
- let u, p;
480
+ let u, h;
464
481
  e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
465
- Icon: /* @__PURE__ */ i(ee, {}),
466
- sx: A.options.more
467
- }, p = {
482
+ Icon: /* @__PURE__ */ i(ie, {}),
483
+ sx: x.options.more
484
+ }, h = {
468
485
  anchorOrigin: {
469
486
  vertical: "bottom",
470
487
  horizontal: "right"
@@ -473,22 +490,22 @@ function Te(t) {
473
490
  vertical: "top",
474
491
  horizontal: "right"
475
492
  }
476
- }, e[1] = u, e[2] = p) : (u = e[1], p = e[2]);
493
+ }, e[1] = u, e[2] = h) : (u = e[1], h = e[2]);
477
494
  let g;
478
- return e[3] !== r || e[4] !== c || e[5] !== a || e[6] !== s ? (g = /* @__PURE__ */ D(k, { children: [
495
+ return e[3] !== r || e[4] !== c || e[5] !== a || e[6] !== s ? (g = /* @__PURE__ */ y(Z, { children: [
479
496
  d,
480
- /* @__PURE__ */ i(J, { TriggerProps: u, MenuProps: p, children: (h) => /* @__PURE__ */ D(k, { children: [
497
+ /* @__PURE__ */ i(ee, { TriggerProps: u, MenuProps: h, children: (p) => /* @__PURE__ */ y(Z, { children: [
481
498
  /* @__PURE__ */ i(U, { color: "inherit", onClick: () => {
482
- c?.(), h.onClose();
499
+ c?.(), p.onClose();
483
500
  }, children: s }),
484
501
  /* @__PURE__ */ i(W, {}),
485
502
  /* @__PURE__ */ i(U, { color: "error", onClick: () => {
486
- a?.(), h.onClose();
487
- }, children: /* @__PURE__ */ i(Y, { variant: "body2", color: "error", children: r }) })
503
+ a?.(), p.onClose();
504
+ }, children: /* @__PURE__ */ i(q, { variant: "body2", color: "error", children: r }) })
488
505
  ] }) })
489
506
  ] }), e[3] = r, e[4] = c, e[5] = a, e[6] = s, e[7] = g) : g = e[7], g;
490
507
  }
491
- function Ce(t) {
508
+ function Te(t) {
492
509
  return t.visible;
493
510
  }
494
511
  P.Action = function({
@@ -500,8 +517,8 @@ P.Action = function({
500
517
  labels: n,
501
518
  onActionToggle: s
502
519
  }) {
503
- const r = N(() => F(e ?? {}, l ?? {}), [e, l]), d = (h) => s?.(h), p = (o ? o in (e ?? {}) : !1) ? o : Object.keys(r)[0], g = r[p];
504
- return /* @__PURE__ */ i(we, { actionProps: c, labels: n?.action, enabled: a ?? !1, onActionToggle: d, children: g?.icon });
520
+ const r = K(() => J(e ?? {}, l ?? {}), [e, l]), d = (p) => s?.(p), h = (o ? o in (e ?? {}) : !1) ? o : Object.keys(r)[0], g = r[h];
521
+ return /* @__PURE__ */ i(Me, { actionProps: c, labels: n?.action, enabled: a ?? !1, onActionToggle: d, children: g?.icon });
505
522
  };
506
523
  P.Chips = function({
507
524
  values: e,
@@ -512,9 +529,9 @@ P.Chips = function({
512
529
  onActionToggle: n
513
530
  }) {
514
531
  const s = (r) => (n?.(!1), c?.(r));
515
- return !!e?.length && /* @__PURE__ */ i(ie, { sx: A.chip.container, children: e?.map((r) => /* @__PURE__ */ i(me, { value: r, labels: l?.chip, chipProps: o, onDelete: s, onChipToggle: (d, u) => a?.(d, u) }, r.id)) });
532
+ return !!e?.length && /* @__PURE__ */ i(se, { sx: x.chip.container, children: e?.map((r) => /* @__PURE__ */ i(Ce, { value: r, labels: l?.chip, chipProps: o, onDelete: s, onChipToggle: (d, u) => a?.(d, u) }, r.id)) });
516
533
  };
517
- P.SecondaryActions = Te;
534
+ P.SecondaryActions = xe;
518
535
  P.Options = function({
519
536
  values: e,
520
537
  modes: l,
@@ -524,31 +541,42 @@ P.Options = function({
524
541
  onChangeMode: n,
525
542
  ...s
526
543
  }) {
527
- const r = N(() => F(l ?? {}, o ?? {}), [l, o]), {
544
+ const r = K(() => J(l ?? {}, o ?? {}), [l, o]), {
528
545
  edit: d,
529
546
  ...u
530
- } = r, g = (c ? c in (l ?? {}) : !1) ? c : Object.keys(r)[0], h = Object.values(u), v = (f) => n?.(f);
531
- return /* @__PURE__ */ D(k, { children: [
532
- /* @__PURE__ */ i(Se, { data: h, labels: a?.options, children: /* @__PURE__ */ i(X, { ...s, labels: a?.options, data: h, modeSelected: g, onChangeMode: v }) }),
533
- !!d && /* @__PURE__ */ D(k, { children: [
547
+ } = r, g = (c ? c in (l ?? {}) : !1) ? c : Object.keys(r)[0], p = Object.values(u), v = (f) => n?.(f);
548
+ return /* @__PURE__ */ y(Z, { children: [
549
+ /* @__PURE__ */ i(ye, { data: p, labels: a?.options, children: /* @__PURE__ */ i(X, { ...s, labels: a?.options, data: p, modeSelected: g, onChangeMode: v }) }),
550
+ !!d && /* @__PURE__ */ y(Z, { children: [
534
551
  /* @__PURE__ */ i(W, {}),
535
552
  /* @__PURE__ */ i(X, { ...s, labels: a?.options, data: [{
536
553
  ...d,
537
554
  disabled: !e?.length
538
555
  }], modeSelected: g, onChangeMode: v })
556
+ ] }),
557
+ !!s.onLayerFilters && /* @__PURE__ */ y(Z, { children: [
558
+ /* @__PURE__ */ i(W, {}),
559
+ /* @__PURE__ */ y(U, { onClick: () => {
560
+ s.onLayerFilters?.(), s.onClose();
561
+ }, children: [
562
+ /* @__PURE__ */ i(Y, { sx: x.options.icons, children: /* @__PURE__ */ i(oe, {}) }),
563
+ /* @__PURE__ */ i(N, { children: a?.options?.layerFilters ?? "Layer filters" })
564
+ ] })
539
565
  ] })
540
566
  ] });
541
567
  };
542
568
  export {
543
- Be as D,
544
- me as L,
545
- fe as S,
546
- B as a,
547
- pe as b,
548
- he as c,
549
- ue as d,
550
- ge as e,
569
+ Ie as D,
570
+ Ce as L,
571
+ Be as S,
572
+ He as T,
573
+ D as a,
574
+ fe as b,
575
+ me as c,
576
+ he as d,
577
+ pe as e,
551
578
  P as f,
552
- A as s
579
+ ve as g,
580
+ x as s
553
581
  };
554
- //# sourceMappingURL=lasso-tool-CDFj4zKY.js.map
582
+ //# sourceMappingURL=lasso-tool-YLFRgb-S.js.map