@carto/ps-react-ui 4.2.6 → 4.3.0-widgets.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 (209) hide show
  1. package/dist/cjs-D9ro6BXv.js +85 -0
  2. package/dist/cjs-D9ro6BXv.js.map +1 -0
  3. package/dist/components.js +775 -1409
  4. package/dist/components.js.map +1 -1
  5. package/dist/const-BLV7Tvte.js +758 -0
  6. package/dist/const-BLV7Tvte.js.map +1 -0
  7. package/dist/download-KroQ0SWg.js +195 -0
  8. package/dist/download-KroQ0SWg.js.map +1 -0
  9. package/dist/echart-CqfROFu3.js +214 -0
  10. package/dist/echart-CqfROFu3.js.map +1 -0
  11. package/dist/formula-ui-ChzvMEOG.js +52 -0
  12. package/dist/formula-ui-ChzvMEOG.js.map +1 -0
  13. package/dist/lasso-tool-BC-rsMMW.js +552 -0
  14. package/dist/lasso-tool-BC-rsMMW.js.map +1 -0
  15. package/dist/markdown-n_tOtoiT.js +27 -0
  16. package/dist/markdown-n_tOtoiT.js.map +1 -0
  17. package/dist/markdown-ui-BBrzzd7Y.js +62 -0
  18. package/dist/markdown-ui-BBrzzd7Y.js.map +1 -0
  19. package/dist/note-DF-n70TX.js +101 -0
  20. package/dist/note-DF-n70TX.js.map +1 -0
  21. package/dist/range-ui-CtUX11Xm.js +146 -0
  22. package/dist/range-ui-CtUX11Xm.js.map +1 -0
  23. package/dist/root-L_WZnJY5.js +46 -0
  24. package/dist/root-L_WZnJY5.js.map +1 -0
  25. package/dist/row-DQaSxmDV.js +18 -0
  26. package/dist/row-DQaSxmDV.js.map +1 -0
  27. package/dist/series-CsyEPq-X.js +83 -0
  28. package/dist/series-CsyEPq-X.js.map +1 -0
  29. package/dist/skeleton-BSPcEvfq.js +27 -0
  30. package/dist/skeleton-BSPcEvfq.js.map +1 -0
  31. package/dist/skeleton-C4rOYTy-.js +78 -0
  32. package/dist/skeleton-C4rOYTy-.js.map +1 -0
  33. package/dist/skeleton-C9Jqc241.js +82 -0
  34. package/dist/skeleton-C9Jqc241.js.map +1 -0
  35. package/dist/skeleton-D-zHBBIw.js +64 -0
  36. package/dist/skeleton-D-zHBBIw.js.map +1 -0
  37. package/dist/skeleton-DMP-IwaJ.js +109 -0
  38. package/dist/skeleton-DMP-IwaJ.js.map +1 -0
  39. package/dist/skeleton-DRorqowB.js +22 -0
  40. package/dist/skeleton-DRorqowB.js.map +1 -0
  41. package/dist/skeleton-DsZhv-AH.js +89 -0
  42. package/dist/skeleton-DsZhv-AH.js.map +1 -0
  43. package/dist/skeleton-Dx3FCer0.js +13 -0
  44. package/dist/skeleton-Dx3FCer0.js.map +1 -0
  45. package/dist/skeleton-QVDdb1c2.js +21 -0
  46. package/dist/skeleton-QVDdb1c2.js.map +1 -0
  47. package/dist/skeleton-loader-DWC1-EAx.js +23 -0
  48. package/dist/skeleton-loader-DWC1-EAx.js.map +1 -0
  49. package/dist/smart-tooltip-BSlcAkBM.js +39 -0
  50. package/dist/smart-tooltip-BSlcAkBM.js.map +1 -0
  51. package/dist/spread-ui-BjzH190y.js +82 -0
  52. package/dist/spread-ui-BjzH190y.js.map +1 -0
  53. package/dist/style-BGeCtQkP.js +19 -0
  54. package/dist/style-BGeCtQkP.js.map +1 -0
  55. package/dist/style-C7v1iwqD.js +34 -0
  56. package/dist/style-C7v1iwqD.js.map +1 -0
  57. package/dist/styles-cohnxh9F.js +23 -0
  58. package/dist/styles-cohnxh9F.js.map +1 -0
  59. package/dist/types/widgets/_shared/chart-config/config-factory.d.ts +44 -0
  60. package/dist/types/widgets/_shared/chart-config/csv-modifiers.d.ts +19 -0
  61. package/dist/types/widgets/_shared/chart-config/index.d.ts +7 -0
  62. package/dist/types/widgets/_shared/chart-config/option-builders.d.ts +39 -0
  63. package/dist/types/widgets/_shared/skeleton/index.d.ts +4 -0
  64. package/dist/types/widgets/_shared/skeleton/styles.d.ts +19 -0
  65. package/dist/types/widgets/actions/download/download.d.ts +2 -0
  66. package/dist/types/widgets/actions/download/exports.d.ts +6 -0
  67. package/dist/types/widgets/actions/download/types.d.ts +29 -0
  68. package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +2 -0
  69. package/dist/types/widgets/actions/fullscreen/styles.d.ts +10 -0
  70. package/dist/types/widgets/actions/fullscreen/types.d.ts +21 -0
  71. package/dist/types/widgets/actions/index.d.ts +5 -0
  72. package/dist/types/widgets/bar/config.d.ts +4 -0
  73. package/dist/types/widgets/bar/index.d.ts +3 -0
  74. package/dist/types/widgets/bar/skeleton.d.ts +1 -0
  75. package/dist/types/widgets/bar/style.d.ts +37 -0
  76. package/dist/types/widgets/bar/types.d.ts +15 -0
  77. package/dist/types/widgets/config-loader/index.d.ts +2 -0
  78. package/dist/types/widgets/config-loader/types.d.ts +12 -0
  79. package/dist/types/widgets/config-loader/use-config.d.ts +5 -0
  80. package/dist/types/widgets/echart/const.d.ts +1 -0
  81. package/dist/types/widgets/echart/echart-ui.d.ts +2 -0
  82. package/dist/types/widgets/echart/echart.d.ts +2 -0
  83. package/dist/types/widgets/echart/index.d.ts +5 -0
  84. package/dist/types/widgets/echart/options.d.ts +3 -0
  85. package/dist/types/widgets/echart/types.d.ts +31 -0
  86. package/dist/types/widgets/echart/utils.d.ts +74 -0
  87. package/dist/types/widgets/formula/components/item.d.ts +2 -0
  88. package/dist/types/widgets/formula/components/prefix.d.ts +2 -0
  89. package/dist/types/widgets/formula/components/row.d.ts +2 -0
  90. package/dist/types/widgets/formula/components/series.d.ts +2 -0
  91. package/dist/types/widgets/formula/components/suffix.d.ts +2 -0
  92. package/dist/types/widgets/formula/components/value.d.ts +2 -0
  93. package/dist/types/widgets/formula/config.d.ts +2 -0
  94. package/dist/types/widgets/formula/formula-ui.d.ts +2 -0
  95. package/dist/types/widgets/formula/index.d.ts +10 -0
  96. package/dist/types/widgets/formula/serializer.d.ts +16 -0
  97. package/dist/types/widgets/formula/skeleton.d.ts +1 -0
  98. package/dist/types/widgets/formula/style.d.ts +21 -0
  99. package/dist/types/widgets/formula/types.d.ts +54 -0
  100. package/dist/types/widgets/histogram/config.d.ts +4 -0
  101. package/dist/types/widgets/histogram/index.d.ts +3 -0
  102. package/dist/types/widgets/histogram/skeleton.d.ts +1 -0
  103. package/dist/types/widgets/histogram/style.d.ts +15 -0
  104. package/dist/types/widgets/histogram/types.d.ts +15 -0
  105. package/dist/types/widgets/index.d.ts +4 -1
  106. package/dist/types/widgets/markdown/config.d.ts +2 -0
  107. package/dist/types/widgets/markdown/index.d.ts +5 -0
  108. package/dist/types/widgets/markdown/markdown-ui.d.ts +2 -0
  109. package/dist/types/widgets/markdown/markdown.d.ts +2 -0
  110. package/dist/types/widgets/markdown/skeleton.d.ts +1 -0
  111. package/dist/types/widgets/markdown/style.d.ts +2 -0
  112. package/dist/types/widgets/markdown/types.d.ts +28 -0
  113. package/dist/types/widgets/note/index.d.ts +2 -0
  114. package/dist/types/widgets/note/note.d.ts +2 -0
  115. package/dist/types/widgets/note/style.d.ts +17 -0
  116. package/dist/types/widgets/note/types.d.ts +7 -0
  117. package/dist/types/widgets/pie/config.d.ts +4 -0
  118. package/dist/types/widgets/pie/index.d.ts +3 -0
  119. package/dist/types/widgets/pie/skeleton.d.ts +1 -0
  120. package/dist/types/widgets/pie/style.d.ts +15 -0
  121. package/dist/types/widgets/pie/types.d.ts +15 -0
  122. package/dist/types/widgets/range/components/range-item.d.ts +2 -0
  123. package/dist/types/widgets/range/config.d.ts +2 -0
  124. package/dist/types/widgets/range/index.d.ts +5 -0
  125. package/dist/types/widgets/range/range-ui.d.ts +2 -0
  126. package/dist/types/widgets/range/serializer.d.ts +16 -0
  127. package/dist/types/widgets/range/serializer.test.d.ts +1 -0
  128. package/dist/types/widgets/range/skeleton.d.ts +1 -0
  129. package/dist/types/widgets/range/style.d.ts +2 -0
  130. package/dist/types/widgets/range/types.d.ts +44 -0
  131. package/dist/types/widgets/root/index.d.ts +2 -0
  132. package/dist/types/widgets/root/root.d.ts +2 -0
  133. package/dist/types/widgets/root/style.d.ts +8 -0
  134. package/dist/types/widgets/root/types.d.ts +15 -0
  135. package/dist/types/widgets/scatterplot/config.d.ts +4 -0
  136. package/dist/types/widgets/scatterplot/index.d.ts +3 -0
  137. package/dist/types/widgets/scatterplot/skeleton.d.ts +1 -0
  138. package/dist/types/widgets/scatterplot/style.d.ts +24 -0
  139. package/dist/types/widgets/scatterplot/types.d.ts +15 -0
  140. package/dist/types/widgets/skeleton-loader/index.d.ts +2 -0
  141. package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +2 -0
  142. package/dist/types/widgets/skeleton-loader/types.d.ts +7 -0
  143. package/dist/types/widgets/spread/components/max-value.d.ts +2 -0
  144. package/dist/types/widgets/spread/components/min-value.d.ts +2 -0
  145. package/dist/types/widgets/spread/components/separator.d.ts +2 -0
  146. package/dist/types/widgets/spread/config.d.ts +2 -0
  147. package/dist/types/widgets/spread/index.d.ts +8 -0
  148. package/dist/types/widgets/spread/skeleton.d.ts +1 -0
  149. package/dist/types/widgets/spread/spread-ui.d.ts +2 -0
  150. package/dist/types/widgets/spread/style.d.ts +21 -0
  151. package/dist/types/widgets/spread/types.d.ts +52 -0
  152. package/dist/types/widgets/stores/types.d.ts +69 -0
  153. package/dist/types/widgets/stores/widget-store.d.ts +64 -0
  154. package/dist/types/widgets/stores/widget-store.test.d.ts +1 -0
  155. package/dist/types/widgets/timeseries/config.d.ts +4 -0
  156. package/dist/types/widgets/timeseries/index.d.ts +3 -0
  157. package/dist/types/widgets/timeseries/skeleton.d.ts +1 -0
  158. package/dist/types/widgets/timeseries/style.d.ts +38 -0
  159. package/dist/types/widgets/timeseries/types.d.ts +15 -0
  160. package/dist/types/widgets/widget/const.d.ts +2 -0
  161. package/dist/types/widgets/widget/types.d.ts +47 -0
  162. package/dist/types/widgets/widget/widget.d.ts +2 -0
  163. package/dist/types/widgets/wrapper/components/actions.d.ts +2 -0
  164. package/dist/types/widgets/wrapper/components/options.d.ts +2 -0
  165. package/dist/types/widgets/wrapper/components/title.d.ts +6 -0
  166. package/dist/types/widgets/wrapper/index.d.ts +6 -0
  167. package/dist/types/widgets/wrapper/styles.d.ts +83 -0
  168. package/dist/types/widgets/wrapper/types.d.ts +35 -0
  169. package/dist/types/widgets/wrapper/wrapper-ui.d.ts +2 -0
  170. package/dist/types/widgets/wrapper/wrapper.d.ts +2 -0
  171. package/dist/use-config-BYEOiIcu.js +43 -0
  172. package/dist/use-config-BYEOiIcu.js.map +1 -0
  173. package/dist/widget-store-yDO2ul8g.js +44 -0
  174. package/dist/widget-store-yDO2ul8g.js.map +1 -0
  175. package/dist/widgets/actions.js +9 -0
  176. package/dist/widgets/actions.js.map +1 -0
  177. package/dist/widgets/bar.js +7 -0
  178. package/dist/widgets/bar.js.map +1 -0
  179. package/dist/widgets/config-loader.js +5 -0
  180. package/dist/widgets/config-loader.js.map +1 -0
  181. package/dist/widgets/echart.js +11 -0
  182. package/dist/widgets/echart.js.map +1 -0
  183. package/dist/widgets/formula.js +27 -0
  184. package/dist/widgets/formula.js.map +1 -0
  185. package/dist/widgets/histogram.js +7 -0
  186. package/dist/widgets/histogram.js.map +1 -0
  187. package/dist/widgets/note.js +5 -0
  188. package/dist/widgets/note.js.map +1 -0
  189. package/dist/widgets/pie.js +7 -0
  190. package/dist/widgets/pie.js.map +1 -0
  191. package/dist/widgets/range.js +19 -0
  192. package/dist/widgets/range.js.map +1 -0
  193. package/dist/widgets/root.js +5 -0
  194. package/dist/widgets/root.js.map +1 -0
  195. package/dist/widgets/scatterplot.js +7 -0
  196. package/dist/widgets/scatterplot.js.map +1 -0
  197. package/dist/widgets/skeleton-loader.js +5 -0
  198. package/dist/widgets/skeleton-loader.js.map +1 -0
  199. package/dist/widgets/spread.js +21 -0
  200. package/dist/widgets/spread.js.map +1 -0
  201. package/dist/widgets/timeseries.js +7 -0
  202. package/dist/widgets/timeseries.js.map +1 -0
  203. package/dist/widgets/wrapper.js +9 -0
  204. package/dist/widgets/wrapper.js.map +1 -0
  205. package/dist/widgets.js +85 -1
  206. package/dist/widgets.js.map +1 -1
  207. package/dist/wrapper-57csMybC.js +265 -0
  208. package/dist/wrapper-57csMybC.js.map +1 -0
  209. package/package.json +73 -3
@@ -1,803 +1,195 @@
1
- import { jsx as n, jsxs as k, Fragment as X } from "react/jsx-runtime";
2
- import { c as Z } from "react/compiler-runtime";
3
- import { ArrowDropDown as Pe, MoreVertOutlined as ze, Close as Re, MyLocationOutlined as Ne, LocationDisabledOutlined as Fe, CropFreeOutlined as He, AddOutlined as Xe, RemoveOutlined as qe } from "@mui/icons-material";
4
- import { Tooltip as Ke, Chip as Ye, Paper as ve, IconButton as ae, Menu as ke, Box as K, Divider as ce, MenuItem as me, ListItemIcon as Ee, SvgIcon as Te, ListItemText as ge, ToggleButton as be, Typography as Q, ToggleButtonGroup as $e, Button as we, alpha as Qe, DialogTitle as Je, FormControlLabel as et, Radio as tt, RadioGroup as lt, FormControl as ot, DialogContent as nt, DialogActions as it, Dialog as rt, CircularProgress as st, Grid as pe, Skeleton as Ce, Alert as at, ListItem as ct, List as dt, Drawer as ut, Popover as ft, useTheme as ht, useMediaQuery as pt } from "@mui/material";
5
- import { useState as re, useMemo as Be, useRef as Ae, useEffect as je, useLayoutEffect as mt } from "react";
6
- function gt(t) {
7
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
8
- }
9
- var Me, _e;
10
- function bt() {
11
- if (_e) return Me;
12
- _e = 1;
13
- var t = function(m) {
14
- return e(m) && !o(m);
15
- };
16
- function e(f) {
17
- return !!f && typeof f == "object";
18
- }
19
- function o(f) {
20
- var m = Object.prototype.toString.call(f);
21
- return m === "[object RegExp]" || m === "[object Date]" || s(f);
22
- }
23
- var l = typeof Symbol == "function" && Symbol.for, i = l ? Symbol.for("react.element") : 60103;
24
- function s(f) {
25
- return f.$$typeof === i;
26
- }
27
- function r(f) {
28
- return Array.isArray(f) ? [] : {};
29
- }
30
- function a(f, m) {
31
- return m.clone !== !1 && m.isMergeableObject(f) ? y(r(f), f, m) : f;
32
- }
33
- function c(f, m, g) {
34
- return f.concat(m).map(function(C) {
35
- return a(C, g);
36
- });
37
- }
38
- function d(f, m) {
39
- if (!m.customMerge)
40
- return y;
41
- var g = m.customMerge(f);
42
- return typeof g == "function" ? g : y;
43
- }
44
- function u(f) {
45
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(f).filter(function(m) {
46
- return Object.propertyIsEnumerable.call(f, m);
47
- }) : [];
48
- }
49
- function h(f) {
50
- return Object.keys(f).concat(u(f));
51
- }
52
- function p(f, m) {
53
- try {
54
- return m in f;
55
- } catch {
56
- return !1;
57
- }
58
- }
59
- function v(f, m) {
60
- return p(f, m) && !(Object.hasOwnProperty.call(f, m) && Object.propertyIsEnumerable.call(f, m));
61
- }
62
- function b(f, m, g) {
63
- var C = {};
64
- return g.isMergeableObject(f) && h(f).forEach(function(w) {
65
- C[w] = a(f[w], g);
66
- }), h(m).forEach(function(w) {
67
- v(f, w) || (p(f, w) && g.isMergeableObject(m[w]) ? C[w] = d(w, g)(f[w], m[w], g) : C[w] = a(m[w], g));
68
- }), C;
69
- }
70
- function y(f, m, g) {
71
- g = g || {}, g.arrayMerge = g.arrayMerge || c, g.isMergeableObject = g.isMergeableObject || t, g.cloneUnlessOtherwiseSpecified = a;
72
- var C = Array.isArray(m), w = Array.isArray(f), A = C === w;
73
- return A ? C ? g.arrayMerge(f, m, g) : b(f, m, g) : a(m, g);
74
- }
75
- y.all = function(m, g) {
76
- if (!Array.isArray(m))
77
- throw new Error("first argument should be an array");
78
- return m.reduce(function(C, w) {
79
- return y(C, w, g);
80
- }, {});
81
- };
82
- var x = y;
83
- return Me = x, Me;
84
- }
85
- var vt = bt();
86
- const ye = /* @__PURE__ */ gt(vt);
87
- let Ze = 500;
88
- function ue(t) {
89
- const e = Z(10);
90
- let o, l, i, s;
91
- e[0] !== t ? ({
92
- children: o,
93
- title: s,
94
- enterNextDelay: i,
95
- ...l
96
- } = t, e[0] = t, e[1] = o, e[2] = l, e[3] = i, e[4] = s) : (o = e[1], l = e[2], i = e[3], s = e[4]);
97
- const r = i === void 0 ? Ze : i;
98
- let a;
99
- return e[5] !== o || e[6] !== r || e[7] !== l || e[8] !== s ? (a = /* @__PURE__ */ n(Ke, { title: s, enterNextDelay: r, ...l, children: o }), e[5] = o, e[6] = r, e[7] = l, e[8] = s, e[9] = a) : a = e[9], a;
100
- }
101
- function dl(t) {
102
- Ze = t;
103
- }
104
- function yt(t) {
105
- const e = Z(3);
106
- let o;
107
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("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] = o) : o = e[0];
108
- let l;
109
- return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
110
- }
111
- function xt(t) {
112
- const e = Z(3);
113
- let o;
114
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("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] = o) : o = e[0];
115
- let l;
116
- return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
117
- }
118
- function wt(t) {
119
- const e = Z(3);
120
- let o;
121
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("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] = o) : o = e[0];
122
- let l;
123
- return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
124
- }
125
- function Ct(t) {
126
- const e = Z(3);
127
- let o;
128
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("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] = o) : o = e[0];
129
- let l;
130
- return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
131
- }
132
- function Mt(t) {
133
- const e = Z(3);
134
- let o;
135
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("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] = o) : o = e[0];
136
- let l;
137
- return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
138
- }
139
- const Y = {
140
- action: {
141
- tooltip: {
142
- active: "Click on the map to draw your spatial filter",
143
- inactive: "Click on the map to draw your spatial filter"
144
- }
145
- },
146
- chip: {
147
- tooltip: {
148
- active: "Hide drawing",
149
- inactive: "Show drawing"
150
- }
151
- },
152
- options: {
153
- mode: {
154
- title: "Choose a drawing tool",
155
- options: {
156
- circle: "Circle",
157
- lasso: "Lasso tool",
158
- polygon: "Polygon",
159
- rectangle: "Rectangle",
160
- edit: "Edit feature"
161
- }
162
- }
163
- },
164
- noData: {
165
- title: "Spatial filter not applied",
166
- description: "Select a drawing or editing tool and click on the map to define your spatial filter"
167
- },
168
- actions: {
169
- toggleAll: {
170
- active: "Hide all",
171
- inactive: "Show all"
172
- },
173
- deleteAll: "Remove all"
174
- }
175
- }, ul = {
176
- polygon: {
177
- icon: yt
178
- },
179
- rectangle: {
180
- icon: xt
181
- },
182
- circle: {
183
- icon: wt
184
- },
185
- lasso: {
186
- icon: Ct
187
- },
188
- edit: {
189
- icon: Mt
190
- }
191
- }, te = {
192
- container: {
193
- display: "flex",
194
- flexDirection: "row",
195
- alignItems: "center",
196
- justifyContent: "flex-start",
197
- overflow: "hidden",
198
- "&.inline": {
199
- flexDirection: "column",
200
- alignItems: "flex-start",
201
- gap: ({
202
- spacing: t
203
- }) => t(1)
204
- }
205
- },
206
- actions: {
207
- icon: {
208
- width: ({
209
- spacing: t
210
- }) => t(4),
211
- height: ({
212
- spacing: t
213
- }) => t(4),
214
- borderRadius: 0,
215
- ".MuiTouchRipple-ripple .MuiTouchRipple-child": {
216
- borderRadius: 0
217
- }
218
- }
219
- },
220
- options: {
221
- menu: {
222
- paddingTop: ({
223
- spacing: t
224
- }) => t(1),
225
- "&.inline": {
226
- boxShadow: "none",
227
- backgroundColor: "transparent",
228
- borderRadius: ({
229
- spacing: t
230
- }) => t(0.5),
231
- "& .MuiDivider-root": {
232
- height: ({
233
- spacing: t
234
- }) => t(4),
235
- "&.MuiToggleButtonGroup-groupedHorizontal": {
236
- height: ({
237
- spacing: t
238
- }) => t(4)
239
- },
240
- "&.MuiToggleButtonGroup-groupedVertical": {
241
- height: "auto",
242
- width: ({
243
- spacing: t
244
- }) => t(4),
245
- margin: ({
246
- spacing: t
247
- }) => `${t(0.5, 0, 1)} !important`,
248
- borderRadius: "0 !important"
249
- }
250
- },
251
- "& .MuiToggleButton-sizeSmall": {
252
- margin: 0,
253
- "&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
254
- margin: 0
255
- },
256
- "& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
257
- height: ({
258
- spacing: t
259
- }) => t(3)
260
- },
261
- "& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
262
- height: "auto",
263
- width: ({
264
- spacing: t
265
- }) => t(3)
266
- }
267
- },
268
- ".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
269
- margin: 0,
270
- "&:first-of-type": {
271
- marginLeft: 0
272
- },
273
- "&:not(:last-of-type)": {
274
- marginRight: ({
275
- spacing: t
276
- }) => t(0.5)
277
- }
278
- },
279
- "&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
280
- ".MuiToggleButtonGroup-grouped": {
281
- margin: ({
282
- spacing: t
283
- }) => t(0, 0.5)
284
- }
285
- },
286
- "&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
287
- ".MuiToggleButtonGroup-grouped": {
288
- margin: ({
289
- spacing: t
290
- }) => t(0, 0, 0.5),
291
- "&:not(:last-of-type)": {
292
- marginRight: 0
293
- },
294
- "&:last-of-type": {
295
- marginBottom: 0
296
- }
297
- }
298
- }
299
- }
300
- },
301
- icon: {
302
- borderRadius: 0,
303
- width: ({
304
- spacing: t
305
- }) => t(3)
306
- },
307
- title: {
308
- paddingX: ({
309
- spacing: t
310
- }) => t(2),
311
- paddingBottom: ({
312
- spacing: t
313
- }) => t(0.5),
314
- "&.inline": {
315
- paddingX: 0,
316
- paddingBottom: 0
317
- }
318
- },
319
- icons: {
320
- color: ({
321
- palette: t
322
- }) => t.text.primary
323
- },
324
- more: {
325
- width: ({
326
- spacing: t
327
- }) => t(4)
328
- }
329
- },
330
- chip: {
331
- container: {
332
- display: "flex",
333
- flexDirection: "row",
334
- alignItems: "center",
335
- gap: ({
336
- spacing: t
337
- }) => t(0.5),
338
- overflowX: "auto",
339
- scrollbarWidth: "none",
340
- paddingX: ({
341
- spacing: t
342
- }) => t(1),
343
- "&.inline": {
344
- overflowX: "visible",
345
- flexWrap: "wrap"
346
- }
347
- },
348
- chip: {
349
- marginRight: ({
350
- spacing: t
351
- }) => t(0.5)
352
- }
353
- }
354
- };
355
- function Ve(t) {
356
- const e = Z(18), {
357
- chipProps: o,
358
- value: l,
359
- labels: i,
360
- onChipToggle: s,
361
- onDelete: r
362
- } = t, a = l.visible ? "active" : "inactive", c = i?.tooltip?.[a] ?? Y.chip.tooltip[a], d = o?.TooltipProps;
363
- let u;
364
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
365
- ...te.chip.chip
366
- }, e[0] = u) : u = e[0];
367
- const h = l.visible ? "secondary" : "default";
368
- let p;
369
- e[1] !== r || e[2] !== l.id ? (p = () => r(l.id), e[1] = r, e[2] = l.id, e[3] = p) : p = e[3];
370
- let v;
371
- e[4] !== s || e[5] !== l.id || e[6] !== l.visible ? (v = () => s(l.id, !l.visible), e[4] = s, e[5] = l.id, e[6] = l.visible, e[7] = v) : v = e[7];
372
- const b = o?.ChipsProps;
373
- let y;
374
- e[8] !== h || e[9] !== p || e[10] !== v || e[11] !== b || e[12] !== l.label ? (y = /* @__PURE__ */ n(Ye, { sx: u, color: h, size: "small", onDelete: p, label: l.label, onClick: v, ...b }), e[8] = h, e[9] = p, e[10] = v, e[11] = b, e[12] = l.label, e[13] = y) : y = e[13];
375
- let x;
376
- return e[14] !== c || e[15] !== d || e[16] !== y ? (x = /* @__PURE__ */ n(ue, { title: c, placement: "bottom", ...d, children: y }), e[14] = c, e[15] = d, e[16] = y, e[17] = x) : x = e[17], x;
377
- }
378
- function de(t) {
379
- const e = Z(44), {
380
- enabled: o,
381
- values: l,
382
- actionProps: i,
383
- chipProps: s,
384
- labels: r,
385
- modes: a,
386
- modesMapping: c,
387
- modeSelected: d,
388
- PaperProps: u,
389
- onActionToggle: h,
390
- onChipToggle: p,
391
- onDelete: v,
392
- onChangeMode: b,
393
- onAllChipToggle: y,
394
- onAllDelete: x,
395
- ChipsSlot: f,
396
- ActionSlot: m,
397
- SecondaryActionsSlot: g,
398
- OptionsSlot: C
399
- } = t;
400
- let w;
401
- e[0] !== l ? (w = l === void 0 ? [] : l, e[0] = l, e[1] = w) : w = e[1];
402
- const A = w;
403
- let O;
404
- e[2] !== u ? (O = u === void 0 ? {} : u, e[2] = u, e[3] = O) : O = e[3];
405
- let S, D;
406
- e[4] !== O ? ({
407
- sx: D,
408
- ...S
409
- } = O, e[4] = O, e[5] = S, e[6] = D) : (S = e[5], D = e[6]);
410
- const T = f === void 0 ? de.Chips : f, M = m === void 0 ? de.Action : m, I = g === void 0 ? de.SecondaryActions : g, _ = C === void 0 ? de.Options : C;
411
- let V;
412
- e[7] !== S || e[8] !== i || e[9] !== s || e[10] !== o || e[11] !== r || e[12] !== d || e[13] !== a || e[14] !== c || e[15] !== h || e[16] !== y || e[17] !== x || e[18] !== b || e[19] !== p || e[20] !== v || e[21] !== A ? (V = {
413
- enabled: o,
414
- values: A,
415
- actionProps: i,
416
- chipProps: s,
417
- labels: r,
418
- modes: a,
419
- modesMapping: c,
420
- modeSelected: d,
421
- PaperProps: S,
422
- onActionToggle: h,
423
- onChipToggle: p,
424
- onDelete: v,
425
- onChangeMode: b,
426
- onAllChipToggle: y,
427
- onAllDelete: x
428
- }, e[7] = S, e[8] = i, e[9] = s, e[10] = o, e[11] = r, e[12] = d, e[13] = a, e[14] = c, e[15] = h, e[16] = y, e[17] = x, e[18] = b, e[19] = p, e[20] = v, e[21] = A, e[22] = V) : V = e[22];
429
- const L = V;
430
- let R;
431
- e[23] !== D ? (R = {
432
- ...te.container,
433
- ...D
434
- }, e[23] = D, e[24] = R) : R = e[24];
435
- let E;
436
- e[25] !== M || e[26] !== L ? (E = !!M && /* @__PURE__ */ n(M, { ...L }), e[25] = M, e[26] = L, e[27] = E) : E = e[27];
437
- let B;
438
- e[28] !== _ || e[29] !== L ? (B = !!_ && /* @__PURE__ */ n(Ue, { children: (W) => /* @__PURE__ */ n(_, { ...L, ...W }) }), e[28] = _, e[29] = L, e[30] = B) : B = e[30];
439
- let j;
440
- e[31] !== T || e[32] !== L ? (j = !!T && /* @__PURE__ */ n(T, { ...L }), e[31] = T, e[32] = L, e[33] = j) : j = e[33];
441
- let P;
442
- e[34] !== I || e[35] !== L ? (P = !!I && /* @__PURE__ */ n(I, { ...L }), e[34] = I, e[35] = L, e[36] = P) : P = e[36];
443
- let $;
444
- return e[37] !== S || e[38] !== R || e[39] !== E || e[40] !== B || e[41] !== j || e[42] !== P ? ($ = /* @__PURE__ */ k(ve, { sx: R, ...S, children: [
445
- E,
446
- B,
447
- j,
448
- P
449
- ] }), e[37] = S, e[38] = R, e[39] = E, e[40] = B, e[41] = j, e[42] = P, e[43] = $) : $ = e[43], $;
450
- }
451
- function St(t) {
452
- const e = Z(12), {
453
- actionProps: o,
454
- labels: l,
455
- enabled: i,
456
- children: s,
457
- onActionToggle: r
458
- } = t, a = i ? "active" : "inactive", c = l?.tooltip?.[a] ?? Y.action.tooltip[a], d = o?.TooltipProps;
459
- let u;
460
- e[0] !== i || e[1] !== r ? (u = () => r(!i), e[0] = i, e[1] = r, e[2] = u) : u = e[2];
461
- let h;
462
- e[3] !== c || e[4] !== s || e[5] !== i || e[6] !== u ? (h = /* @__PURE__ */ n(be, { value: "toggle", sx: te.actions.icon, onClick: u, "aria-label": c, selected: i, children: s }), e[3] = c, e[4] = s, e[5] = i, e[6] = u, e[7] = h) : h = e[7];
463
- let p;
464
- return e[8] !== c || e[9] !== d || e[10] !== h ? (p = /* @__PURE__ */ n(ue, { title: c, placement: "right", ...d, children: h }), e[8] = c, e[9] = d, e[10] = h, e[11] = p) : p = e[11], p;
465
- }
466
- function Ue({
467
- TriggerProps: {
468
- Icon: t = /* @__PURE__ */ n(Pe, {}),
469
- sx: e
470
- } = {},
471
- MenuProps: o,
472
- children: l
473
- }) {
474
- const [i, s] = re(null), r = !!i, a = (d) => {
475
- s(d.currentTarget);
476
- }, c = () => {
477
- s(null);
478
- };
479
- return /* @__PURE__ */ k(X, { children: [
480
- /* @__PURE__ */ n(ae, { sx: {
481
- ...te.options.icon,
482
- ...e
483
- }, onClick: a, children: t }),
484
- /* @__PURE__ */ n(ke, { id: "lasso-menu", anchorEl: i, open: r, onClose: c, MenuListProps: {
485
- "aria-labelledby": "lasso-button",
486
- sx: te.options.menu
487
- }, ...o, children: /* @__PURE__ */ n("div", { children: l({
488
- onClose: c
489
- }) }) })
490
- ] });
491
- }
492
- function Tt(t) {
493
- const e = Z(5), {
494
- data: o,
495
- labels: l,
496
- children: i
497
- } = t;
498
- if (o.length <= 1)
499
- return null;
500
- const s = l?.mode?.title ?? Y.options.mode.title;
501
- let r;
502
- e[0] !== s ? (r = /* @__PURE__ */ n(Q, { variant: "subtitle2", color: "text.secondary", sx: te.options.title, children: s }), e[0] = s, e[1] = r) : r = e[1];
503
- let a;
504
- return e[2] !== i || e[3] !== r ? (a = /* @__PURE__ */ k(X, { children: [
505
- r,
506
- i
507
- ] }), e[2] = i, e[3] = r, e[4] = a) : a = e[4], a;
508
- }
509
- function De({
510
- data: t,
511
- modeSelected: e,
512
- labels: o,
513
- onChangeMode: l,
514
- onClose: i
515
- }) {
516
- const s = (r, a) => {
517
- r.preventDefault(), l?.(a), i();
518
- };
519
- return t.map((r) => {
520
- const c = (o?.mode?.options ?? Y.options.mode.options)[r.value];
521
- return /* @__PURE__ */ k(me, { disabled: !!r.disabled, onClick: (d) => s(d, r.value), selected: r.value === e, children: [
522
- /* @__PURE__ */ n(Ee, { sx: te.options.icons, children: /* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(r.icon, {}) }) }),
523
- /* @__PURE__ */ n(ge, { children: c })
524
- ] }, r.value);
525
- });
526
- }
527
- function At(t) {
528
- const e = Z(8), {
1
+ import { s as ve, L as Be, a as ae, T as he } from "./lasso-tool-BC-rsMMW.js";
2
+ import { D as ll, c as ol, d as nl, e as il, f as sl, b as rl, S as al, g as cl } from "./lasso-tool-BC-rsMMW.js";
3
+ import { jsxs as $, Fragment as ee, jsx as l } from "react/jsx-runtime";
4
+ import { c as F } from "react/compiler-runtime";
5
+ import { Divider as fe, Box as q, ToggleButton as ye, SvgIcon as Ie, ToggleButtonGroup as Le, Typography as Q, Button as xe, alpha as Ue, Paper as Ce, MenuItem as Te, ListItemIcon as Ve, ListItemText as Se, IconButton as re, Menu as Ze, DialogTitle as We, FormControlLabel as je, Radio as Fe, RadioGroup as Ge, FormControl as Ne, DialogContent as ze, DialogActions as He, Dialog as Xe, CircularProgress as qe, Grid as pe, Skeleton as we, Alert as Ke, ListItem as Ye, List as Qe, Drawer as Je, Popover as et, useTheme as tt, useMediaQuery as lt } from "@mui/material";
6
+ import { useState as ne, useRef as Pe, useEffect as Oe } from "react";
7
+ import { d as Me } from "./cjs-D9ro6BXv.js";
8
+ import { ArrowDropDown as ot, Close as Re, MyLocationOutlined as nt, LocationDisabledOutlined as it, CropFreeOutlined as st, AddOutlined as rt, RemoveOutlined as at } from "@mui/icons-material";
9
+ import { S as ct } from "./smart-tooltip-BSlcAkBM.js";
10
+ function Xt(t) {
11
+ const e = F(59), {
12
+ enabled: s,
529
13
  values: o,
530
- labels: l,
531
- onAllChipToggle: i,
532
- onAllDelete: s
533
- } = t;
534
- if (!o?.length || o.length <= 1)
535
- return null;
536
- const a = o?.some(_t) ? l?.actions?.toggleAll?.active ?? Y.actions.toggleAll.active : l?.actions?.toggleAll?.inactive ?? Y.actions.toggleAll.inactive, c = l?.actions?.deleteAll ?? Y.actions.deleteAll;
537
- let d;
538
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ n(ce, { orientation: "vertical", flexItem: !0 }), e[0] = d) : d = e[0];
539
- let u, h;
540
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (u = {
541
- Icon: /* @__PURE__ */ n(ze, {}),
542
- sx: te.options.more
543
- }, h = {
544
- anchorOrigin: {
545
- vertical: "bottom",
546
- horizontal: "right"
547
- },
548
- transformOrigin: {
549
- vertical: "top",
550
- horizontal: "right"
551
- }
552
- }, e[1] = u, e[2] = h) : (u = e[1], h = e[2]);
553
- let p;
554
- return e[3] !== c || e[4] !== i || e[5] !== s || e[6] !== a ? (p = /* @__PURE__ */ k(X, { children: [
555
- d,
556
- /* @__PURE__ */ n(Ue, { TriggerProps: u, MenuProps: h, children: (v) => /* @__PURE__ */ k(X, { children: [
557
- /* @__PURE__ */ n(me, { color: "inherit", onClick: () => {
558
- i?.(), v.onClose();
559
- }, children: a }),
560
- /* @__PURE__ */ n(ce, {}),
561
- /* @__PURE__ */ n(me, { color: "error", onClick: () => {
562
- s?.(), v.onClose();
563
- }, children: /* @__PURE__ */ n(Q, { variant: "body2", color: "error", children: c }) })
564
- ] }) })
565
- ] }), e[3] = c, e[4] = i, e[5] = s, e[6] = a, e[7] = p) : p = e[7], p;
566
- }
567
- function _t(t) {
568
- return t.visible;
569
- }
570
- de.Action = function({
571
- modes: e,
572
- modesMapping: o,
573
- modeSelected: l,
574
- actionProps: i,
575
- enabled: s,
576
- labels: r,
577
- onActionToggle: a
578
- }) {
579
- const c = Be(() => ye(e ?? {}, o ?? {}), [e, o]), d = (v) => a?.(v), h = (l ? l in (e ?? {}) : !1) ? l : Object.keys(c)[0], p = c[h];
580
- return /* @__PURE__ */ n(St, { actionProps: i, labels: r?.action, enabled: s ?? !1, onActionToggle: d, children: p?.icon && /* @__PURE__ */ n(p.icon, {}) });
581
- };
582
- de.Chips = function({
583
- values: e,
584
- labels: o,
585
- chipProps: l,
586
- onDelete: i,
587
- onChipToggle: s,
588
- onActionToggle: r
589
- }) {
590
- const a = (c) => (r?.(!1), i?.(c));
591
- return !!e?.length && /* @__PURE__ */ n(K, { sx: te.chip.container, children: e?.map((c) => /* @__PURE__ */ n(Ve, { value: c, labels: o?.chip, chipProps: l, onDelete: a, onChipToggle: (d, u) => s?.(d, u) }, c.id)) });
592
- };
593
- de.SecondaryActions = At;
594
- de.Options = function({
595
- values: e,
596
- modes: o,
597
- modesMapping: l,
598
- modeSelected: i,
599
- labels: s,
600
- onChangeMode: r,
601
- ...a
602
- }) {
603
- const c = Be(() => ye(o ?? {}, l ?? {}), [o, l]), {
604
- edit: d,
605
- ...u
606
- } = c, p = (i ? i in (o ?? {}) : !1) ? i : Object.keys(c)[0], v = Object.values(u), b = (y) => r?.(y);
607
- return /* @__PURE__ */ k(X, { children: [
608
- /* @__PURE__ */ n(Tt, { data: v, labels: s?.options, children: /* @__PURE__ */ n(De, { ...a, labels: s?.options, data: v, modeSelected: p, onChangeMode: b }) }),
609
- !!d && /* @__PURE__ */ k(X, { children: [
610
- /* @__PURE__ */ n(ce, {}),
611
- /* @__PURE__ */ n(De, { ...a, labels: s?.options, data: [{
612
- ...d,
613
- disabled: !e?.length
614
- }], modeSelected: p, onChangeMode: b })
615
- ] })
616
- ] });
617
- };
618
- function fl(t) {
619
- const e = Z(59), {
620
- enabled: o,
621
- values: l,
622
- chipProps: i,
623
- labels: s,
624
- modes: r,
14
+ chipProps: n,
15
+ labels: r,
16
+ modes: i,
625
17
  modesMapping: a,
626
18
  modeSelected: c,
627
19
  BoxProps: d,
628
- onChipToggle: u,
629
- onDelete: h,
630
- onChangeMode: p,
631
- onAllChipToggle: v,
632
- onAllDelete: b
20
+ onChipToggle: m,
21
+ onDelete: u,
22
+ onChangeMode: f,
23
+ onAllChipToggle: I,
24
+ onAllDelete: v
633
25
  } = t;
26
+ let k;
27
+ e[0] !== o ? (k = o === void 0 ? [] : o, e[0] = o, e[1] = k) : k = e[1];
28
+ const p = k;
29
+ let g;
30
+ e[2] !== d ? (g = d === void 0 ? {} : d, e[2] = d, e[3] = g) : g = e[3];
31
+ let S, A;
32
+ e[4] !== g ? ({
33
+ sx: A,
34
+ ...S
35
+ } = g, e[4] = g, e[5] = S, e[6] = A) : (S = e[5], A = e[6]);
36
+ let _;
37
+ e[7] !== i || e[8] !== a ? (_ = Me(i, a), e[7] = i, e[8] = a, e[9] = _) : _ = e[9];
38
+ const C = _;
39
+ let D, M;
40
+ e[10] !== C ? ({
41
+ edit: M,
42
+ ...D
43
+ } = C, e[10] = C, e[11] = D, e[12] = M) : (D = e[11], M = e[12]);
44
+ let h;
45
+ e[13] !== u ? (h = (K) => u(K), e[13] = u, e[14] = h) : h = e[14];
46
+ const T = h;
634
47
  let y;
635
- e[0] !== l ? (y = l === void 0 ? [] : l, e[0] = l, e[1] = y) : y = e[1];
636
- const x = y;
637
- let f;
638
- e[2] !== d ? (f = d === void 0 ? {} : d, e[2] = d, e[3] = f) : f = e[3];
639
- let m, g;
640
- e[4] !== f ? ({
641
- sx: g,
642
- ...m
643
- } = f, e[4] = f, e[5] = m, e[6] = g) : (m = e[5], g = e[6]);
644
- let C;
645
- e[7] !== r || e[8] !== a ? (C = ye(r, a), e[7] = r, e[8] = a, e[9] = C) : C = e[9];
646
- const w = C;
647
- let A, O;
648
- e[10] !== w ? ({
649
- edit: O,
48
+ e[15] !== f ? (y = (K, ie) => {
49
+ K.preventDefault(), f?.(ie);
50
+ }, e[15] = f, e[16] = y) : y = e[16];
51
+ const b = y, x = (c ?? "") in i ? c : Object.keys(C)[0], Z = s ? C[x] : null;
52
+ let U;
53
+ e[17] !== D ? (U = Object.values(D), e[17] = D, e[18] = U) : U = e[18];
54
+ const L = U;
55
+ let P;
56
+ e[19] !== A ? (P = {
57
+ ...ve.container,
650
58
  ...A
651
- } = w, e[10] = w, e[11] = A, e[12] = O) : (A = e[11], O = e[12]);
652
- let S;
653
- e[13] !== h ? (S = (ne) => h(ne), e[13] = h, e[14] = S) : S = e[14];
654
- const D = S;
655
- let T;
656
- e[15] !== p ? (T = (ne, ie) => {
657
- ne.preventDefault(), p?.(ie);
658
- }, e[15] = p, e[16] = T) : T = e[16];
659
- const M = T, _ = (c ?? "") in r ? c : Object.keys(w)[0], V = o ? w[_] : null;
660
- let L;
661
- e[17] !== A ? (L = Object.values(A), e[17] = A, e[18] = L) : L = e[18];
662
- const R = L;
663
- let E;
664
- e[19] !== g ? (E = {
665
- ...te.container,
666
- ...g
667
- }, e[19] = g, e[20] = E) : E = e[20];
668
- const B = s?.options, j = V?.value, P = s?.options;
669
- let $;
670
- e[21] !== R || e[22] !== P ? ($ = /* @__PURE__ */ n(Oe, { labels: P, data: R }), e[21] = R, e[22] = P, e[23] = $) : $ = e[23];
59
+ }, e[19] = A, e[20] = P) : P = e[20];
60
+ const V = r?.options, E = Z?.value, R = r?.options;
61
+ let O;
62
+ e[21] !== L || e[22] !== R ? (O = /* @__PURE__ */ l(Ae, { labels: R, data: L }), e[21] = L, e[22] = R, e[23] = O) : O = e[23];
671
63
  let W;
672
- e[24] !== O || e[25] !== s?.options || e[26] !== x.length ? (W = !!O && /* @__PURE__ */ k(X, { children: [
673
- /* @__PURE__ */ n(ce, { orientation: "vertical" }),
674
- /* @__PURE__ */ n(Oe, { labels: s?.options, data: [{
675
- ...O,
676
- disabled: !x.length
64
+ e[24] !== M || e[25] !== r?.options || e[26] !== p.length ? (W = !!M && /* @__PURE__ */ $(ee, { children: [
65
+ /* @__PURE__ */ l(fe, { orientation: "vertical" }),
66
+ /* @__PURE__ */ l(Ae, { labels: r?.options, data: [{
67
+ ...M,
68
+ disabled: !p.length
677
69
  }] })
678
- ] }), e[24] = O, e[25] = s?.options, e[26] = x.length, e[27] = W) : W = e[27];
679
- let z;
680
- e[28] !== M || e[29] !== j || e[30] !== $ || e[31] !== W ? (z = /* @__PURE__ */ k($e, { value: j, exclusive: !0, className: "inline", sx: te.options.menu, onChange: M, children: [
681
- $,
682
- W
683
- ] }), e[28] = M, e[29] = j, e[30] = $, e[31] = W, e[32] = z) : z = e[32];
70
+ ] }), e[24] = M, e[25] = r?.options, e[26] = p.length, e[27] = W) : W = e[27];
684
71
  let G;
685
- e[33] !== R || e[34] !== B || e[35] !== z ? (G = /* @__PURE__ */ n(Dt, { data: R, labels: B, children: z }), e[33] = R, e[34] = B, e[35] = z, e[36] = G) : G = e[36];
72
+ e[28] !== b || e[29] !== E || e[30] !== O || e[31] !== W ? (G = /* @__PURE__ */ $(Le, { value: E, exclusive: !0, className: "inline", sx: ve.options.menu, onChange: b, children: [
73
+ O,
74
+ W
75
+ ] }), e[28] = b, e[29] = E, e[30] = O, e[31] = W, e[32] = G) : G = e[32];
76
+ let j;
77
+ e[33] !== L || e[34] !== V || e[35] !== G ? (j = /* @__PURE__ */ l(dt, { data: L, labels: V, children: G }), e[33] = L, e[34] = V, e[35] = G, e[36] = j) : j = e[36];
686
78
  let N;
687
- e[37] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ n(ce, { flexItem: !0 }), e[37] = N) : N = e[37];
688
- const F = !!x.length, U = s?.noData;
79
+ e[37] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ l(fe, { flexItem: !0 }), e[37] = N) : N = e[37];
80
+ const z = !!p.length, B = r?.noData;
689
81
  let H;
690
- e[38] !== F || e[39] !== U ? (H = /* @__PURE__ */ n(Ot, { hasValues: F, labels: U }), e[38] = F, e[39] = U, e[40] = H) : H = e[40];
691
- let q;
692
- e[41] !== i || e[42] !== D || e[43] !== s?.chip || e[44] !== u || e[45] !== x ? (q = !!x.length && /* @__PURE__ */ n(K, { sx: te.chip.container, className: "inline", children: x.map((ne) => /* @__PURE__ */ n(Ve, { value: ne, labels: s?.chip, chipProps: i, onDelete: D, onChipToggle: u }, ne.id)) }), e[41] = i, e[42] = D, e[43] = s?.chip, e[44] = u, e[45] = x, e[46] = q) : q = e[46];
693
- const le = s?.actions;
82
+ e[38] !== z || e[39] !== B ? (H = /* @__PURE__ */ l(mt, { hasValues: z, labels: B }), e[38] = z, e[39] = B, e[40] = H) : H = e[40];
83
+ let X;
84
+ e[41] !== n || e[42] !== T || e[43] !== r?.chip || e[44] !== m || e[45] !== p ? (X = !!p.length && /* @__PURE__ */ l(q, { sx: ve.chip.container, className: "inline", children: p.map((K) => /* @__PURE__ */ l(Be, { value: K, labels: r?.chip, chipProps: n, onDelete: T, onChipToggle: m }, K.id)) }), e[41] = n, e[42] = T, e[43] = r?.chip, e[44] = m, e[45] = p, e[46] = X) : X = e[46];
85
+ const te = r?.actions;
694
86
  let J;
695
- e[47] !== v || e[48] !== b || e[49] !== le || e[50] !== x ? (J = /* @__PURE__ */ n(It, { values: x, labels: le, onAllChipToggle: v, onAllDelete: b }), e[47] = v, e[48] = b, e[49] = le, e[50] = x, e[51] = J) : J = e[51];
696
- let oe;
697
- return e[52] !== m || e[53] !== G || e[54] !== H || e[55] !== q || e[56] !== J || e[57] !== E ? (oe = /* @__PURE__ */ k(K, { sx: E, ...m, className: "inline", children: [
698
- G,
87
+ e[47] !== I || e[48] !== v || e[49] !== te || e[50] !== p ? (J = /* @__PURE__ */ l(ut, { values: p, labels: te, onAllChipToggle: I, onAllDelete: v }), e[47] = I, e[48] = v, e[49] = te, e[50] = p, e[51] = J) : J = e[51];
88
+ let le;
89
+ return e[52] !== S || e[53] !== j || e[54] !== H || e[55] !== X || e[56] !== J || e[57] !== P ? (le = /* @__PURE__ */ $(q, { sx: P, ...S, className: "inline", children: [
90
+ j,
699
91
  N,
700
92
  H,
701
- q,
93
+ X,
702
94
  J
703
- ] }), e[52] = m, e[53] = G, e[54] = H, e[55] = q, e[56] = J, e[57] = E, e[58] = oe) : oe = e[58], oe;
95
+ ] }), e[52] = S, e[53] = j, e[54] = H, e[55] = X, e[56] = J, e[57] = P, e[58] = le) : le = e[58], le;
704
96
  }
705
- function Dt(t) {
706
- const e = Z(5), {
707
- data: o,
708
- labels: l,
709
- children: i
97
+ function dt(t) {
98
+ const e = F(5), {
99
+ data: s,
100
+ labels: o,
101
+ children: n
710
102
  } = t;
711
- if (o.length <= 1)
103
+ if (s.length <= 1)
712
104
  return null;
713
- const s = l?.mode?.title ?? Y.options.mode.title;
714
- let r;
715
- e[0] !== s ? (r = /* @__PURE__ */ n(Q, { variant: "subtitle2", color: "text.secondary", sx: te.options.title, className: "inline", children: s }), e[0] = s, e[1] = r) : r = e[1];
105
+ const r = o?.mode?.title ?? ae.options.mode.title;
106
+ let i;
107
+ e[0] !== r ? (i = /* @__PURE__ */ l(Q, { variant: "subtitle2", color: "text.secondary", sx: ve.options.title, className: "inline", children: r }), e[0] = r, e[1] = i) : i = e[1];
716
108
  let a;
717
- return e[2] !== i || e[3] !== r ? (a = /* @__PURE__ */ k(X, { children: [
718
- r,
719
- i
720
- ] }), e[2] = i, e[3] = r, e[4] = a) : a = e[4], a;
109
+ return e[2] !== n || e[3] !== i ? (a = /* @__PURE__ */ $(ee, { children: [
110
+ i,
111
+ n
112
+ ] }), e[2] = n, e[3] = i, e[4] = a) : a = e[4], a;
721
113
  }
722
- function Oe({
114
+ function Ae({
723
115
  data: t,
724
116
  labels: e
725
117
  }) {
726
- return t.map((o) => {
727
- const i = (e?.mode?.options ?? Y.options.mode.options)[o.value];
728
- return /* @__PURE__ */ n(ue, { title: i, placement: "bottom", children: /* @__PURE__ */ n(be, { disabled: !!o.disabled, value: o.value, "aria-label": o.value, children: /* @__PURE__ */ n(Te, { children: /* @__PURE__ */ n(o.icon, {}) }) }) }, o.value);
118
+ return t.map((s) => {
119
+ const n = (e?.mode?.options ?? ae.options.mode.options)[s.value];
120
+ return /* @__PURE__ */ l(he, { title: n, placement: "bottom", children: /* @__PURE__ */ l(ye, { disabled: !!s.disabled, value: s.value, "aria-label": s.value, children: /* @__PURE__ */ l(Ie, { children: /* @__PURE__ */ l(s.icon, {}) }) }) }, s.value);
729
121
  });
730
122
  }
731
- function Ot(t) {
732
- const e = Z(7), {
733
- hasValues: o,
734
- labels: l
123
+ function mt(t) {
124
+ const e = F(7), {
125
+ hasValues: s,
126
+ labels: o
735
127
  } = t;
736
- if (o)
128
+ if (s)
737
129
  return null;
738
- const i = l?.title ?? Y.noData.title, s = l?.description ?? Y.noData.description;
739
- let r;
740
- e[0] !== i ? (r = /* @__PURE__ */ n(Q, { variant: "body1", color: "textSecondary", children: i }), e[0] = i, e[1] = r) : r = e[1];
130
+ const n = o?.title ?? ae.noData.title, r = o?.description ?? ae.noData.description;
131
+ let i;
132
+ e[0] !== n ? (i = /* @__PURE__ */ l(Q, { variant: "body1", color: "textSecondary", children: n }), e[0] = n, e[1] = i) : i = e[1];
741
133
  let a;
742
- e[2] !== s ? (a = /* @__PURE__ */ n(Q, { variant: "body2", color: "textSecondary", children: s }), e[2] = s, e[3] = a) : a = e[3];
134
+ e[2] !== r ? (a = /* @__PURE__ */ l(Q, { variant: "body2", color: "textSecondary", children: r }), e[2] = r, e[3] = a) : a = e[3];
743
135
  let c;
744
- return e[4] !== r || e[5] !== a ? (c = /* @__PURE__ */ k(X, { children: [
745
- r,
136
+ return e[4] !== i || e[5] !== a ? (c = /* @__PURE__ */ $(ee, { children: [
137
+ i,
746
138
  a
747
- ] }), e[4] = r, e[5] = a, e[6] = c) : c = e[6], c;
139
+ ] }), e[4] = i, e[5] = a, e[6] = c) : c = e[6], c;
748
140
  }
749
- function It(t) {
750
- const e = Z(13), {
751
- values: o,
752
- labels: l,
753
- onAllChipToggle: i,
754
- onAllDelete: s
141
+ function ut(t) {
142
+ const e = F(13), {
143
+ values: s,
144
+ labels: o,
145
+ onAllChipToggle: n,
146
+ onAllDelete: r
755
147
  } = t;
756
- if (o.length <= 1)
148
+ if (s.length <= 1)
757
149
  return null;
758
- const a = o.some(Lt) ? l?.toggleAll?.active ?? Y.actions.toggleAll.active : l?.toggleAll?.inactive ?? Y.actions.toggleAll.inactive, c = l?.deleteAll ?? Y.actions.deleteAll;
150
+ const a = s.some(ft) ? o?.toggleAll?.active ?? ae.actions.toggleAll.active : o?.toggleAll?.inactive ?? ae.actions.toggleAll.inactive, c = o?.deleteAll ?? ae.actions.deleteAll;
759
151
  let d;
760
- e[0] !== i ? (d = () => i(), e[0] = i, e[1] = d) : d = e[1];
152
+ e[0] !== n ? (d = () => n(), e[0] = n, e[1] = d) : d = e[1];
153
+ let m;
154
+ e[2] !== d || e[3] !== a ? (m = /* @__PURE__ */ l(xe, { color: "inherit", onClick: d, children: a }), e[2] = d, e[3] = a, e[4] = m) : m = e[4];
761
155
  let u;
762
- e[2] !== d || e[3] !== a ? (u = /* @__PURE__ */ n(we, { color: "inherit", onClick: d, children: a }), e[2] = d, e[3] = a, e[4] = u) : u = e[4];
763
- let h;
764
- e[5] !== s ? (h = () => s(), e[5] = s, e[6] = h) : h = e[6];
765
- let p;
766
- e[7] !== c || e[8] !== h ? (p = /* @__PURE__ */ n(we, { color: "error", onClick: h, children: c }), e[7] = c, e[8] = h, e[9] = p) : p = e[9];
767
- let v;
768
- return e[10] !== u || e[11] !== p ? (v = /* @__PURE__ */ k(K, { children: [
769
- u,
770
- p
771
- ] }), e[10] = u, e[11] = p, e[12] = v) : v = e[12], v;
156
+ e[5] !== r ? (u = () => r(), e[5] = r, e[6] = u) : u = e[6];
157
+ let f;
158
+ e[7] !== c || e[8] !== u ? (f = /* @__PURE__ */ l(xe, { color: "error", onClick: u, children: c }), e[7] = c, e[8] = u, e[9] = f) : f = e[9];
159
+ let I;
160
+ return e[10] !== m || e[11] !== f ? (I = /* @__PURE__ */ $(q, { children: [
161
+ m,
162
+ f
163
+ ] }), e[10] = m, e[11] = f, e[12] = I) : I = e[12], I;
772
164
  }
773
- function Lt(t) {
165
+ function ft(t) {
774
166
  return t.visible;
775
167
  }
776
- function Pt(t) {
777
- const e = Z(3);
168
+ function pt(t) {
169
+ const e = F(3);
170
+ let s;
171
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__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] = s) : s = e[0];
778
172
  let o;
779
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("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] = o) : o = e[0];
780
- let l;
781
- return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
173
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", fill: "currentColor", ...t, children: s }), e[1] = t, e[2] = o) : o = e[2], o;
782
174
  }
783
- function Rt(t) {
784
- const e = Z(3);
175
+ function ht(t) {
176
+ const e = F(3);
177
+ let s;
178
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__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] = s) : s = e[0];
785
179
  let o;
786
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("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] = o) : o = e[0];
787
- let l;
788
- return e[1] !== t ? (l = /* @__PURE__ */ n("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: o }), e[1] = t, e[2] = l) : l = e[2], l;
180
+ return e[1] !== t ? (o = /* @__PURE__ */ l("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: s }), e[1] = t, e[2] = o) : o = e[2], o;
789
181
  }
790
- function kt(t) {
791
- const e = Z(4);
792
- let o, l;
793
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 13.5v-9h9v9h-9Zm.75-8.25h7.5v7.5h-7.5v-7.5Z", clipRule: "evenodd" }), l = /* @__PURE__ */ n("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] = o, e[1] = l) : (o = e[0], l = e[1]);
794
- let i;
795
- return e[2] !== t ? (i = /* @__PURE__ */ k("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
796
- o,
797
- l
798
- ] }), e[2] = t, e[3] = i) : i = e[3], i;
182
+ function gt(t) {
183
+ const e = F(4);
184
+ let s, o;
185
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__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] = s, e[1] = o) : (s = e[0], o = e[1]);
186
+ let n;
187
+ return e[2] !== t ? (n = /* @__PURE__ */ $("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...t, children: [
188
+ s,
189
+ o
190
+ ] }), e[2] = t, e[3] = n) : n = e[3], n;
799
191
  }
800
- const se = {
192
+ const oe = {
801
193
  action: {
802
194
  tooltip: {
803
195
  active: "Click on the map to start measuring",
@@ -849,7 +241,7 @@ const se = {
849
241
  }
850
242
  }
851
243
  }
852
- }, Et = {
244
+ }, bt = {
853
245
  "m-km": {
854
246
  short: "m-km"
855
247
  },
@@ -877,17 +269,17 @@ const se = {
877
269
  feet: {
878
270
  short: "ft"
879
271
  }
880
- }, $t = {
272
+ }, vt = {
881
273
  distance: {
882
- icon: /* @__PURE__ */ n(Pt, {})
274
+ icon: /* @__PURE__ */ l(pt, {})
883
275
  },
884
276
  buffer: {
885
- icon: /* @__PURE__ */ n(Rt, {})
277
+ icon: /* @__PURE__ */ l(ht, {})
886
278
  },
887
279
  area: {
888
- icon: /* @__PURE__ */ n(kt, {})
280
+ icon: /* @__PURE__ */ l(gt, {})
889
281
  }
890
- }, ee = {
282
+ }, Y = {
891
283
  container: {
892
284
  display: "flex",
893
285
  flexDirection: "row",
@@ -952,7 +344,7 @@ const se = {
952
344
  }) => t.primary.main,
953
345
  backgroundColor: ({
954
346
  palette: t
955
- }) => Qe(t.primary.main, 0.08)
347
+ }) => Ue(t.primary.main, 0.08)
956
348
  },
957
349
  modal: {
958
350
  toggle: {
@@ -1019,313 +411,313 @@ const se = {
1019
411
  }
1020
412
  }
1021
413
  };
1022
- function hl(t) {
1023
- const e = Z(46), {
1024
- enabled: o,
1025
- actionProps: l,
1026
- labels: i,
1027
- modes: s,
1028
- modesMapping: r,
414
+ function qt(t) {
415
+ const e = F(46), {
416
+ enabled: s,
417
+ actionProps: o,
418
+ labels: n,
419
+ modes: r,
420
+ modesMapping: i,
1029
421
  unitsMapping: a,
1030
422
  modeSelected: c,
1031
423
  PaperProps: d,
1032
- units: u,
1033
- unitSelected: h,
1034
- onActionToggle: p,
1035
- onChangeMode: v,
1036
- onChangeUnit: b
1037
- } = t, y = i === void 0 ? se : i, x = r === void 0 ? $t : r, f = a === void 0 ? Et : a;
1038
- let m;
1039
- e[0] !== d ? (m = d === void 0 ? {} : d, e[0] = d, e[1] = m) : m = e[1];
1040
- let g, C;
1041
- e[2] !== m ? ({
1042
- sx: C,
1043
- ...g
1044
- } = m, e[2] = m, e[3] = g, e[4] = C) : (g = e[3], C = e[4]);
1045
- let w;
1046
- e[5] !== p ? (w = (U) => p(!!U), e[5] = p, e[6] = w) : w = e[6];
1047
- const A = w;
1048
- let O;
1049
- e[7] !== s || e[8] !== x ? (O = ye(s, x), e[7] = s, e[8] = x, e[9] = O) : O = e[9];
1050
- const S = O, D = (c ?? "") in S;
1051
- let T;
1052
- e[10] !== S || e[11] !== D || e[12] !== c ? (T = D ? c : Object.keys(S)[0], e[10] = S, e[11] = D, e[12] = c, e[13] = T) : T = e[13];
1053
- const M = T, I = S[M], _ = u[M];
1054
- let V;
1055
- e[14] !== M || e[15] !== _ || e[16] !== u ? (V = Object.keys(u).length >= 1 ? u : {
1056
- [M]: _.slice(0, 1)
1057
- }, e[14] = M, e[15] = _, e[16] = u, e[17] = V) : V = e[17];
1058
- const R = V[M];
1059
- let E;
1060
- if (e[18] !== R || e[19] !== f) {
1061
- let U;
1062
- e[21] !== f ? (U = (H) => ({
424
+ units: m,
425
+ unitSelected: u,
426
+ onActionToggle: f,
427
+ onChangeMode: I,
428
+ onChangeUnit: v
429
+ } = t, k = n === void 0 ? oe : n, p = i === void 0 ? vt : i, g = a === void 0 ? bt : a;
430
+ let S;
431
+ e[0] !== d ? (S = d === void 0 ? {} : d, e[0] = d, e[1] = S) : S = e[1];
432
+ let A, _;
433
+ e[2] !== S ? ({
434
+ sx: _,
435
+ ...A
436
+ } = S, e[2] = S, e[3] = A, e[4] = _) : (A = e[3], _ = e[4]);
437
+ let C;
438
+ e[5] !== f ? (C = (B) => f(!!B), e[5] = f, e[6] = C) : C = e[6];
439
+ const D = C;
440
+ let M;
441
+ e[7] !== r || e[8] !== p ? (M = Me(r, p), e[7] = r, e[8] = p, e[9] = M) : M = e[9];
442
+ const h = M, T = (c ?? "") in h;
443
+ let y;
444
+ e[10] !== h || e[11] !== T || e[12] !== c ? (y = T ? c : Object.keys(h)[0], e[10] = h, e[11] = T, e[12] = c, e[13] = y) : y = e[13];
445
+ const b = y, w = h[b], x = m[b];
446
+ let Z;
447
+ e[14] !== b || e[15] !== x || e[16] !== m ? (Z = Object.keys(m).length >= 1 ? m : {
448
+ [b]: x.slice(0, 1)
449
+ }, e[14] = b, e[15] = x, e[16] = m, e[17] = Z) : Z = e[17];
450
+ const L = Z[b];
451
+ let P;
452
+ if (e[18] !== L || e[19] !== g) {
453
+ let B;
454
+ e[21] !== g ? (B = (H) => ({
1063
455
  ...H,
1064
- ...f[H.value]
1065
- }), e[21] = f, e[22] = U) : U = e[22], E = R.map(U), e[18] = R, e[19] = f, e[20] = E;
456
+ ...g[H.value]
457
+ }), e[21] = g, e[22] = B) : B = e[22], P = L.map(B), e[18] = L, e[19] = g, e[20] = P;
1066
458
  } else
1067
- E = e[20];
1068
- const B = E;
1069
- let j;
1070
- e[23] !== C ? (j = {
1071
- ...ee.container,
1072
- ...C
1073
- }, e[23] = C, e[24] = j) : j = e[24];
1074
- const P = y?.action, $ = I?.icon;
459
+ P = e[20];
460
+ const V = P;
461
+ let E;
462
+ e[23] !== _ ? (E = {
463
+ ...Y.container,
464
+ ..._
465
+ }, e[23] = _, e[24] = E) : E = e[24];
466
+ const R = k?.action, O = w?.icon;
1075
467
  let W;
1076
- e[25] !== l || e[26] !== o || e[27] !== A || e[28] !== P || e[29] !== $ ? (W = /* @__PURE__ */ n(Bt, { actionProps: l, labels: P, enabled: o, onActionToggle: A, children: $ }), e[25] = l, e[26] = o, e[27] = A, e[28] = P, e[29] = $, e[30] = W) : W = e[30];
1077
- const z = y?.options;
1078
- let G;
1079
- e[31] !== B || e[32] !== S || e[33] !== M || e[34] !== v || e[35] !== b || e[36] !== z || e[37] !== h ? (G = /* @__PURE__ */ n(jt, { labels: z, modes: S, modeSelected: M, units: B, unitSelected: h, onChangeMode: v, onChangeUnit: b }), e[31] = B, e[32] = S, e[33] = M, e[34] = v, e[35] = b, e[36] = z, e[37] = h, e[38] = G) : G = e[38];
468
+ e[25] !== o || e[26] !== s || e[27] !== D || e[28] !== R || e[29] !== O ? (W = /* @__PURE__ */ l(yt, { actionProps: o, labels: R, enabled: s, onActionToggle: D, children: O }), e[25] = o, e[26] = s, e[27] = D, e[28] = R, e[29] = O, e[30] = W) : W = e[30];
469
+ const G = k?.options;
470
+ let j;
471
+ e[31] !== V || e[32] !== h || e[33] !== b || e[34] !== I || e[35] !== v || e[36] !== G || e[37] !== u ? (j = /* @__PURE__ */ l(xt, { labels: G, modes: h, modeSelected: b, units: V, unitSelected: u, onChangeMode: I, onChangeUnit: v }), e[31] = V, e[32] = h, e[33] = b, e[34] = I, e[35] = v, e[36] = G, e[37] = u, e[38] = j) : j = e[38];
1080
472
  let N;
1081
- e[39] !== W || e[40] !== G ? (N = /* @__PURE__ */ k(K, { children: [
473
+ e[39] !== W || e[40] !== j ? (N = /* @__PURE__ */ $(q, { children: [
1082
474
  W,
1083
- G
1084
- ] }), e[39] = W, e[40] = G, e[41] = N) : N = e[41];
1085
- let F;
1086
- return e[42] !== g || e[43] !== j || e[44] !== N ? (F = /* @__PURE__ */ n(ve, { sx: j, ...g, children: N }), e[42] = g, e[43] = j, e[44] = N, e[45] = F) : F = e[45], F;
475
+ j
476
+ ] }), e[39] = W, e[40] = j, e[41] = N) : N = e[41];
477
+ let z;
478
+ return e[42] !== A || e[43] !== E || e[44] !== N ? (z = /* @__PURE__ */ l(Ce, { sx: E, ...A, children: N }), e[42] = A, e[43] = E, e[44] = N, e[45] = z) : z = e[45], z;
1087
479
  }
1088
- function Bt(t) {
1089
- const e = Z(12), {
1090
- actionProps: o,
1091
- labels: l,
1092
- enabled: i,
1093
- children: s,
1094
- onActionToggle: r
1095
- } = t, a = i ? "active" : "inactive", c = l?.tooltip?.[a] ?? se.action.tooltip[a], d = o?.TooltipProps;
480
+ function yt(t) {
481
+ const e = F(12), {
482
+ actionProps: s,
483
+ labels: o,
484
+ enabled: n,
485
+ children: r,
486
+ onActionToggle: i
487
+ } = t, a = n ? "active" : "inactive", c = o?.tooltip?.[a] ?? oe.action.tooltip[a], d = s?.TooltipProps;
488
+ let m;
489
+ e[0] !== n || e[1] !== i ? (m = () => i(!n), e[0] = n, e[1] = i, e[2] = m) : m = e[2];
1096
490
  let u;
1097
- e[0] !== i || e[1] !== r ? (u = () => r(!i), e[0] = i, e[1] = r, e[2] = u) : u = e[2];
1098
- let h;
1099
- e[3] !== c || e[4] !== s || e[5] !== i || e[6] !== u ? (h = /* @__PURE__ */ n(be, { value: "toggle", sx: ee.actions.icon, onClick: u, "aria-label": c, selected: i, children: s }), e[3] = c, e[4] = s, e[5] = i, e[6] = u, e[7] = h) : h = e[7];
1100
- let p;
1101
- return e[8] !== c || e[9] !== d || e[10] !== h ? (p = /* @__PURE__ */ n(ue, { title: c, placement: "right", ...d, children: h }), e[8] = c, e[9] = d, e[10] = h, e[11] = p) : p = e[11], p;
491
+ e[3] !== c || e[4] !== r || e[5] !== n || e[6] !== m ? (u = /* @__PURE__ */ l(ye, { value: "toggle", sx: Y.actions.icon, onClick: m, "aria-label": c, selected: n, children: r }), e[3] = c, e[4] = r, e[5] = n, e[6] = m, e[7] = u) : u = e[7];
492
+ let f;
493
+ return e[8] !== c || e[9] !== d || e[10] !== u ? (f = /* @__PURE__ */ l(he, { title: c, placement: "right", ...d, children: u }), e[8] = c, e[9] = d, e[10] = u, e[11] = f) : f = e[11], f;
1102
494
  }
1103
- function jt(t) {
1104
- const e = Z(41), {
1105
- modes: o,
1106
- modeSelected: l,
1107
- units: i,
1108
- unitSelected: s,
1109
- labels: r,
495
+ function xt(t) {
496
+ const e = F(41), {
497
+ modes: s,
498
+ modeSelected: o,
499
+ units: n,
500
+ unitSelected: r,
501
+ labels: i,
1110
502
  onChangeMode: a,
1111
503
  onChangeUnit: c
1112
- } = t, [d, u] = re(null), [h, p] = re(!1);
1113
- let v;
1114
- e[0] !== o ? (v = Object.values(o), e[0] = o, e[1] = v) : v = e[1];
1115
- const b = v;
1116
- let y;
1117
- e[2] !== i ? (y = Object.values(i), e[2] = i, e[3] = y) : y = e[3];
1118
- const x = y;
1119
- if (!(b.length > 1 || x.length > 1))
504
+ } = t, [d, m] = ne(null), [u, f] = ne(!1);
505
+ let I;
506
+ e[0] !== s ? (I = Object.values(s), e[0] = s, e[1] = I) : I = e[1];
507
+ const v = I;
508
+ let k;
509
+ e[2] !== n ? (k = Object.values(n), e[2] = n, e[3] = k) : k = e[3];
510
+ const p = k;
511
+ if (!(v.length > 1 || p.length > 1))
1120
512
  return null;
1121
- const m = !!d;
1122
- let g;
1123
- e[4] === Symbol.for("react.memo_cache_sentinel") ? (g = (U) => {
1124
- u(U.currentTarget);
1125
- }, e[4] = g) : g = e[4];
1126
- const C = g;
1127
- let w;
1128
- e[5] === Symbol.for("react.memo_cache_sentinel") ? (w = () => {
1129
- u(null);
1130
- }, e[5] = w) : w = e[5];
1131
- const A = w;
1132
- let O;
1133
- e[6] !== a ? (O = (U, H) => {
1134
- U.preventDefault(), a(H.value), A();
1135
- }, e[6] = a, e[7] = O) : O = e[7];
1136
- const S = O;
1137
- let D;
1138
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
1139
- p(!0);
1140
- }, e[8] = D) : D = e[8];
1141
- const T = D;
513
+ const S = !!d;
514
+ let A;
515
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (A = (B) => {
516
+ m(B.currentTarget);
517
+ }, e[4] = A) : A = e[4];
518
+ const _ = A;
519
+ let C;
520
+ e[5] === Symbol.for("react.memo_cache_sentinel") ? (C = () => {
521
+ m(null);
522
+ }, e[5] = C) : C = e[5];
523
+ const D = C;
1142
524
  let M;
1143
- e[9] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
1144
- p(!1);
1145
- }, e[9] = M) : M = e[9];
1146
- const I = M;
1147
- let _;
1148
- e[10] !== c ? (_ = (U) => {
1149
- I(), c(U);
1150
- }, e[10] = c, e[11] = _) : _ = e[11];
1151
- const V = _, L = r?.mode?.title ?? se.options.mode.title, R = r?.units?.title ?? se.options.units.title, E = b.length > 1 && x.length > 1;
1152
- let B;
1153
- e[12] !== s || e[13] !== i ? (B = i.find((U) => U.value === s) ?? i[0], e[12] = s, e[13] = i, e[14] = B) : B = e[14];
1154
- const j = B;
1155
- let P;
1156
- e[15] === Symbol.for("react.memo_cache_sentinel") ? (P = /* @__PURE__ */ n(ae, { sx: ee.options.icon, onClick: C, children: /* @__PURE__ */ n(Pe, {}) }), e[15] = P) : P = e[15];
1157
- let $;
1158
- e[16] === Symbol.for("react.memo_cache_sentinel") ? ($ = {
525
+ e[6] !== a ? (M = (B, H) => {
526
+ B.preventDefault(), a(H.value), D();
527
+ }, e[6] = a, e[7] = M) : M = e[7];
528
+ const h = M;
529
+ let T;
530
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (T = () => {
531
+ f(!0);
532
+ }, e[8] = T) : T = e[8];
533
+ const y = T;
534
+ let b;
535
+ e[9] === Symbol.for("react.memo_cache_sentinel") ? (b = () => {
536
+ f(!1);
537
+ }, e[9] = b) : b = e[9];
538
+ const w = b;
539
+ let x;
540
+ e[10] !== c ? (x = (B) => {
541
+ w(), c(B);
542
+ }, e[10] = c, e[11] = x) : x = e[11];
543
+ const Z = x, U = i?.mode?.title ?? oe.options.mode.title, L = i?.units?.title ?? oe.options.units.title, P = v.length > 1 && p.length > 1;
544
+ let V;
545
+ e[12] !== r || e[13] !== n ? (V = n.find((B) => B.value === r) ?? n[0], e[12] = r, e[13] = n, e[14] = V) : V = e[14];
546
+ const E = V;
547
+ let R;
548
+ e[15] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ l(re, { sx: Y.options.icon, onClick: _, children: /* @__PURE__ */ l(ot, {}) }), e[15] = R) : R = e[15];
549
+ let O;
550
+ e[16] === Symbol.for("react.memo_cache_sentinel") ? (O = {
1159
551
  "aria-labelledby": "basic-button",
1160
- sx: ee.options.menu
1161
- }, e[16] = $) : $ = e[16];
552
+ sx: Y.options.menu
553
+ }, e[16] = O) : O = e[16];
1162
554
  let W;
1163
- e[17] !== S || e[18] !== r?.mode?.options || e[19] !== l || e[20] !== L || e[21] !== b ? (W = b.length > 1 && /* @__PURE__ */ k(X, { children: [
1164
- /* @__PURE__ */ n(Q, { variant: "subtitle2", color: "text.secondary", sx: ee.options.title, children: L }),
1165
- b.map((U) => {
1166
- const q = (r?.mode?.options ?? se.options.mode.options)[U.value];
1167
- return /* @__PURE__ */ k(me, { onClick: (le) => S(le, U), selected: U.value === l, children: [
1168
- /* @__PURE__ */ n(Ee, { sx: ee.options.icons, children: /* @__PURE__ */ n(Te, { children: U.icon }) }),
1169
- /* @__PURE__ */ n(ge, { children: q })
1170
- ] }, U.value);
555
+ e[17] !== h || e[18] !== i?.mode?.options || e[19] !== o || e[20] !== U || e[21] !== v ? (W = v.length > 1 && /* @__PURE__ */ $(ee, { children: [
556
+ /* @__PURE__ */ l(Q, { variant: "subtitle2", color: "text.secondary", sx: Y.options.title, children: U }),
557
+ v.map((B) => {
558
+ const X = (i?.mode?.options ?? oe.options.mode.options)[B.value];
559
+ return /* @__PURE__ */ $(Te, { onClick: (te) => h(te, B), selected: B.value === o, children: [
560
+ /* @__PURE__ */ l(Ve, { sx: Y.options.icons, children: /* @__PURE__ */ l(Ie, { children: B.icon }) }),
561
+ /* @__PURE__ */ l(Se, { children: X })
562
+ ] }, B.value);
1171
563
  })
1172
- ] }), e[17] = S, e[18] = r?.mode?.options, e[19] = l, e[20] = L, e[21] = b, e[22] = W) : W = e[22];
1173
- let z;
1174
- e[23] !== E ? (z = E && /* @__PURE__ */ n(ce, {}), e[23] = E, e[24] = z) : z = e[24];
564
+ ] }), e[17] = h, e[18] = i?.mode?.options, e[19] = o, e[20] = U, e[21] = v, e[22] = W) : W = e[22];
1175
565
  let G;
1176
- e[25] !== V || e[26] !== r || e[27] !== h || e[28] !== j || e[29] !== R || e[30] !== i || e[31] !== x.length ? (G = x.length > 1 && /* @__PURE__ */ k(X, { children: [
1177
- /* @__PURE__ */ k(me, { onClick: T, children: [
1178
- /* @__PURE__ */ n(ge, { children: R }),
1179
- /* @__PURE__ */ n(Q, { variant: "caption", fontWeight: 500, sx: ee.options.tag, children: j.short })
566
+ e[23] !== P ? (G = P && /* @__PURE__ */ l(fe, {}), e[23] = P, e[24] = G) : G = e[24];
567
+ let j;
568
+ e[25] !== Z || e[26] !== i || e[27] !== u || e[28] !== E || e[29] !== L || e[30] !== n || e[31] !== p.length ? (j = p.length > 1 && /* @__PURE__ */ $(ee, { children: [
569
+ /* @__PURE__ */ $(Te, { onClick: y, children: [
570
+ /* @__PURE__ */ l(Se, { children: L }),
571
+ /* @__PURE__ */ l(Q, { variant: "caption", fontWeight: 500, sx: Y.options.tag, children: E.short })
1180
572
  ] }),
1181
- /* @__PURE__ */ n(Zt, { open: h, labels: r, units: i, unitSelectedValue: j, onClose: I, onSubmit: V })
1182
- ] }), e[25] = V, e[26] = r, e[27] = h, e[28] = j, e[29] = R, e[30] = i, e[31] = x.length, e[32] = G) : G = e[32];
573
+ /* @__PURE__ */ l(St, { open: u, labels: i, units: n, unitSelectedValue: E, onClose: w, onSubmit: Z })
574
+ ] }), e[25] = Z, e[26] = i, e[27] = u, e[28] = E, e[29] = L, e[30] = n, e[31] = p.length, e[32] = j) : j = e[32];
1183
575
  let N;
1184
- e[33] !== W || e[34] !== z || e[35] !== G ? (N = /* @__PURE__ */ k("div", { children: [
576
+ e[33] !== W || e[34] !== G || e[35] !== j ? (N = /* @__PURE__ */ $("div", { children: [
1185
577
  W,
1186
- z,
1187
- G
1188
- ] }), e[33] = W, e[34] = z, e[35] = G, e[36] = N) : N = e[36];
1189
- let F;
1190
- return e[37] !== d || e[38] !== m || e[39] !== N ? (F = /* @__PURE__ */ k(X, { children: [
1191
- P,
1192
- /* @__PURE__ */ n(ke, { id: "measurement-menu", anchorEl: d, open: m, onClose: A, MenuListProps: $, children: N })
1193
- ] }), e[37] = d, e[38] = m, e[39] = N, e[40] = F) : F = e[40], F;
578
+ G,
579
+ j
580
+ ] }), e[33] = W, e[34] = G, e[35] = j, e[36] = N) : N = e[36];
581
+ let z;
582
+ return e[37] !== d || e[38] !== S || e[39] !== N ? (z = /* @__PURE__ */ $(ee, { children: [
583
+ R,
584
+ /* @__PURE__ */ l(Ze, { id: "measurement-menu", anchorEl: d, open: S, onClose: D, MenuListProps: O, children: N })
585
+ ] }), e[37] = d, e[38] = S, e[39] = N, e[40] = z) : z = e[40], z;
1194
586
  }
1195
- function Zt(t) {
1196
- const e = Z(48), {
1197
- open: o,
1198
- labels: l,
1199
- units: i,
1200
- unitSelectedValue: s,
1201
- onClose: r,
587
+ function St(t) {
588
+ const e = F(48), {
589
+ open: s,
590
+ labels: o,
591
+ units: n,
592
+ unitSelectedValue: r,
593
+ onClose: i,
1202
594
  onSubmit: a
1203
- } = t, [c, d] = re("metric");
1204
- let u;
1205
- if (e[0] !== c || e[1] !== i) {
1206
- let P;
1207
- e[3] !== c ? (P = ($) => $.system === c, e[3] = c, e[4] = P) : P = e[4], u = i.filter(P), e[0] = c, e[1] = i, e[2] = u;
595
+ } = t, [c, d] = ne("metric");
596
+ let m;
597
+ if (e[0] !== c || e[1] !== n) {
598
+ let R;
599
+ e[3] !== c ? (R = (O) => O.system === c, e[3] = c, e[4] = R) : R = e[4], m = n.filter(R), e[0] = c, e[1] = n, e[2] = m;
1208
600
  } else
1209
- u = e[2];
1210
- const h = u;
1211
- let p;
1212
- e[5] === Symbol.for("react.memo_cache_sentinel") ? (p = (P, $) => {
1213
- d($);
1214
- }, e[5] = p) : p = e[5];
1215
- const v = p, b = l?.units?.modal?.options ?? se.options.units.modal.options, y = b[c].options, x = l?.units?.modal?.title ?? se.options.units.modal.title, f = l?.units?.modal?.subtitle ?? se.options.units.modal.subtitle, m = l?.units?.modal?.apply ?? se.options.units.modal.apply, g = s.system === c ? s : h[0];
1216
- let C;
1217
- e[6] !== a ? (C = {
601
+ m = e[2];
602
+ const u = m;
603
+ let f;
604
+ e[5] === Symbol.for("react.memo_cache_sentinel") ? (f = (R, O) => {
605
+ d(O);
606
+ }, e[5] = f) : f = e[5];
607
+ const I = f, v = o?.units?.modal?.options ?? oe.options.units.modal.options, k = v[c].options, p = o?.units?.modal?.title ?? oe.options.units.modal.title, g = o?.units?.modal?.subtitle ?? oe.options.units.modal.subtitle, S = o?.units?.modal?.apply ?? oe.options.units.modal.apply, A = r.system === c ? r : u[0];
608
+ let _;
609
+ e[6] !== a ? (_ = {
1218
610
  component: "form",
1219
- onSubmit: (P) => {
1220
- P.preventDefault();
1221
- const $ = new FormData(P.currentTarget);
1222
- a($.get("unit-value"));
611
+ onSubmit: (R) => {
612
+ R.preventDefault();
613
+ const O = new FormData(R.currentTarget);
614
+ a(O.get("unit-value"));
1223
615
  }
1224
- }, e[6] = a, e[7] = C) : C = e[7];
1225
- let w;
1226
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ n(Re, {}), e[8] = w) : w = e[8];
1227
- let A;
1228
- e[9] !== r ? (A = /* @__PURE__ */ n(ae, { onClick: r, children: w }), e[9] = r, e[10] = A) : A = e[10];
1229
- let O;
1230
- e[11] !== x || e[12] !== A ? (O = /* @__PURE__ */ k(Je, { sx: ee.options.modal.title, children: [
1231
- x,
1232
- A
1233
- ] }), e[11] = x, e[12] = A, e[13] = O) : O = e[13];
1234
- let S;
1235
- e[14] !== f ? (S = /* @__PURE__ */ n(Q, { sx: ee.options.modal.subtitle, children: f }), e[14] = f, e[15] = S) : S = e[15];
616
+ }, e[6] = a, e[7] = _) : _ = e[7];
617
+ let C;
618
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ l(Re, {}), e[8] = C) : C = e[8];
1236
619
  let D;
1237
- e[16] !== b.metric.title ? (D = /* @__PURE__ */ n(be, { value: "metric", children: b.metric.title }), e[16] = b.metric.title, e[17] = D) : D = e[17];
1238
- let T;
1239
- e[18] !== b.imperial.title ? (T = /* @__PURE__ */ n(be, { value: "imperial", children: b.imperial.title }), e[18] = b.imperial.title, e[19] = T) : T = e[19];
620
+ e[9] !== i ? (D = /* @__PURE__ */ l(re, { onClick: i, children: C }), e[9] = i, e[10] = D) : D = e[10];
1240
621
  let M;
1241
- e[20] !== c || e[21] !== D || e[22] !== T ? (M = /* @__PURE__ */ k($e, { color: "primary", value: c, exclusive: !0, fullWidth: !0, onChange: v, "aria-label": "system", sx: ee.options.modal.toggle, children: [
1242
- D,
1243
- T
1244
- ] }), e[20] = c, e[21] = D, e[22] = T, e[23] = M) : M = e[23];
1245
- const I = g?.value, _ = g?.value;
1246
- let V;
1247
- if (e[24] !== h || e[25] !== y) {
1248
- let P;
1249
- e[27] !== y ? (P = ($) => {
1250
- const W = y[$.value];
1251
- return /* @__PURE__ */ n(et, { value: $.value, control: /* @__PURE__ */ n(tt, {}), label: W }, $.value);
1252
- }, e[27] = y, e[28] = P) : P = e[28], V = h.map(P), e[24] = h, e[25] = y, e[26] = V;
622
+ e[11] !== p || e[12] !== D ? (M = /* @__PURE__ */ $(We, { sx: Y.options.modal.title, children: [
623
+ p,
624
+ D
625
+ ] }), e[11] = p, e[12] = D, e[13] = M) : M = e[13];
626
+ let h;
627
+ e[14] !== g ? (h = /* @__PURE__ */ l(Q, { sx: Y.options.modal.subtitle, children: g }), e[14] = g, e[15] = h) : h = e[15];
628
+ let T;
629
+ e[16] !== v.metric.title ? (T = /* @__PURE__ */ l(ye, { value: "metric", children: v.metric.title }), e[16] = v.metric.title, e[17] = T) : T = e[17];
630
+ let y;
631
+ e[18] !== v.imperial.title ? (y = /* @__PURE__ */ l(ye, { value: "imperial", children: v.imperial.title }), e[18] = v.imperial.title, e[19] = y) : y = e[19];
632
+ let b;
633
+ e[20] !== c || e[21] !== T || e[22] !== y ? (b = /* @__PURE__ */ $(Le, { color: "primary", value: c, exclusive: !0, fullWidth: !0, onChange: I, "aria-label": "system", sx: Y.options.modal.toggle, children: [
634
+ T,
635
+ y
636
+ ] }), e[20] = c, e[21] = T, e[22] = y, e[23] = b) : b = e[23];
637
+ const w = A?.value, x = A?.value;
638
+ let Z;
639
+ if (e[24] !== u || e[25] !== k) {
640
+ let R;
641
+ e[27] !== k ? (R = (O) => {
642
+ const W = k[O.value];
643
+ return /* @__PURE__ */ l(je, { value: O.value, control: /* @__PURE__ */ l(Fe, {}), label: W }, O.value);
644
+ }, e[27] = k, e[28] = R) : R = e[28], Z = u.map(R), e[24] = u, e[25] = k, e[26] = Z;
1253
645
  } else
1254
- V = e[26];
646
+ Z = e[26];
647
+ let U;
648
+ e[29] !== x || e[30] !== Z ? (U = /* @__PURE__ */ l(Ge, { "aria-labelledby": "unit-value", defaultValue: x, name: "unit-value", sx: Y.options.modal.optionsGroup, children: Z }), e[29] = x, e[30] = Z, e[31] = U) : U = e[31];
1255
649
  let L;
1256
- e[29] !== _ || e[30] !== V ? (L = /* @__PURE__ */ n(lt, { "aria-labelledby": "unit-value", defaultValue: _, name: "unit-value", sx: ee.options.modal.optionsGroup, children: V }), e[29] = _, e[30] = V, e[31] = L) : L = e[31];
1257
- let R;
1258
- e[32] !== I || e[33] !== L ? (R = /* @__PURE__ */ n(ot, { children: L }, I), e[32] = I, e[33] = L, e[34] = R) : R = e[34];
650
+ e[32] !== w || e[33] !== U ? (L = /* @__PURE__ */ l(Ne, { children: U }, w), e[32] = w, e[33] = U, e[34] = L) : L = e[34];
651
+ let P;
652
+ e[35] !== b || e[36] !== L || e[37] !== h ? (P = /* @__PURE__ */ $(ze, { sx: Y.options.modal.content, children: [
653
+ h,
654
+ b,
655
+ L
656
+ ] }), e[35] = b, e[36] = L, e[37] = h, e[38] = P) : P = e[38];
657
+ let V;
658
+ e[39] !== S ? (V = /* @__PURE__ */ l(He, { sx: Y.options.modal.actions, children: /* @__PURE__ */ l(xe, { variant: "contained", type: "submit", children: S }) }), e[39] = S, e[40] = V) : V = e[40];
1259
659
  let E;
1260
- e[35] !== M || e[36] !== R || e[37] !== S ? (E = /* @__PURE__ */ k(nt, { sx: ee.options.modal.content, children: [
1261
- S,
660
+ return e[41] !== i || e[42] !== s || e[43] !== P || e[44] !== V || e[45] !== _ || e[46] !== M ? (E = /* @__PURE__ */ $(Xe, { open: s, component: q, onClose: i, maxWidth: "xs", PaperProps: _, children: [
1262
661
  M,
1263
- R
1264
- ] }), e[35] = M, e[36] = R, e[37] = S, e[38] = E) : E = e[38];
1265
- let B;
1266
- e[39] !== m ? (B = /* @__PURE__ */ n(it, { sx: ee.options.modal.actions, children: /* @__PURE__ */ n(we, { variant: "contained", type: "submit", children: m }) }), e[39] = m, e[40] = B) : B = e[40];
1267
- let j;
1268
- return e[41] !== r || e[42] !== o || e[43] !== E || e[44] !== B || e[45] !== C || e[46] !== O ? (j = /* @__PURE__ */ k(rt, { open: o, component: K, onClose: r, maxWidth: "xs", PaperProps: C, children: [
1269
- O,
1270
- E,
1271
- B
1272
- ] }), e[41] = r, e[42] = o, e[43] = E, e[44] = B, e[45] = C, e[46] = O, e[47] = j) : j = e[47], j;
662
+ P,
663
+ V
664
+ ] }), e[41] = i, e[42] = s, e[43] = P, e[44] = V, e[45] = _, e[46] = M, e[47] = E) : E = e[47], E;
1273
665
  }
1274
- const Vt = {
666
+ const Ct = {
1275
667
  enabled: "Show your current location",
1276
668
  disabled: "Location unavailable"
1277
- }, Ut = "geolocation";
1278
- function pl(t) {
1279
- const e = Z(25), {
1280
- disabled: o,
1281
- labels: l,
1282
- PaperProps: i,
1283
- TooltipProps: s,
1284
- watch: r,
669
+ }, wt = "geolocation";
670
+ function Kt(t) {
671
+ const e = F(25), {
672
+ disabled: s,
673
+ labels: o,
674
+ PaperProps: n,
675
+ TooltipProps: r,
676
+ watch: i,
1285
677
  onChange: a,
1286
678
  onError: c
1287
- } = t, d = Ae(null), u = "geolocation" in navigator, [h, p] = re(u);
1288
- let v, b;
1289
- e[0] !== c ? (v = () => (u && navigator.permissions.query({
679
+ } = t, d = Pe(null), m = "geolocation" in navigator, [u, f] = ne(m);
680
+ let I, v;
681
+ e[0] !== c ? (I = () => (m && navigator.permissions.query({
1290
682
  name: "geolocation"
1291
- }).then((_) => {
1292
- p(_.state === "granted"), _.onchange = () => {
1293
- p(_.state === "granted");
683
+ }).then((x) => {
684
+ f(x.state === "granted"), x.onchange = () => {
685
+ f(x.state === "granted");
1294
686
  };
1295
- }).catch((_) => {
1296
- p(!1), c?.(_);
687
+ }).catch((x) => {
688
+ f(!1), c?.(x);
1297
689
  }), () => {
1298
690
  d.current && navigator.geolocation.clearWatch(d.current);
1299
- }), b = [u, c], e[0] = c, e[1] = v, e[2] = b) : (v = e[1], b = e[2]), je(v, b);
1300
- let y;
1301
- e[3] !== a ? (y = (_) => {
1302
- a(_.coords);
1303
- }, e[3] = a, e[4] = y) : y = e[4];
1304
- const x = y;
1305
- let f;
1306
- e[5] !== c ? (f = (_) => {
1307
- p(!1), c?.(_);
1308
- }, e[5] = c, e[6] = f) : f = e[6];
1309
- const m = f;
691
+ }), v = [m, c], e[0] = c, e[1] = I, e[2] = v) : (I = e[1], v = e[2]), Oe(I, v);
692
+ let k;
693
+ e[3] !== a ? (k = (x) => {
694
+ a(x.coords);
695
+ }, e[3] = a, e[4] = k) : k = e[4];
696
+ const p = k;
1310
697
  let g;
1311
- e[7] !== m || e[8] !== x || e[9] !== r ? (g = () => {
1312
- if (d.current && navigator.geolocation.clearWatch(d.current), r) {
1313
- d.current = navigator.geolocation.watchPosition(x, m);
698
+ e[5] !== c ? (g = (x) => {
699
+ f(!1), c?.(x);
700
+ }, e[5] = c, e[6] = g) : g = e[6];
701
+ const S = g;
702
+ let A;
703
+ e[7] !== S || e[8] !== p || e[9] !== i ? (A = () => {
704
+ if (d.current && navigator.geolocation.clearWatch(d.current), i) {
705
+ d.current = navigator.geolocation.watchPosition(p, S);
1314
706
  return;
1315
707
  }
1316
- navigator.geolocation.getCurrentPosition(x, m);
1317
- }, e[7] = m, e[8] = x, e[9] = r, e[10] = g) : g = e[10];
1318
- const C = g, A = (l?.tooltip ?? Vt)[h ? "enabled" : "disabled"], O = l?.ariaLabel ?? Ut, S = !u || o;
1319
- let D;
1320
- e[11] !== h ? (D = h ? /* @__PURE__ */ n(Ne, {}) : /* @__PURE__ */ n(Fe, {}), e[11] = h, e[12] = D) : D = e[12];
708
+ navigator.geolocation.getCurrentPosition(p, S);
709
+ }, e[7] = S, e[8] = p, e[9] = i, e[10] = A) : A = e[10];
710
+ const _ = A, D = (o?.tooltip ?? Ct)[u ? "enabled" : "disabled"], M = o?.ariaLabel ?? wt, h = !m || s;
1321
711
  let T;
1322
- e[13] !== C || e[14] !== O || e[15] !== S || e[16] !== D ? (T = /* @__PURE__ */ n(ae, { onClick: C, "aria-label": O, disabled: S, children: D }), e[13] = C, e[14] = O, e[15] = S, e[16] = D, e[17] = T) : T = e[17];
1323
- let M;
1324
- e[18] !== s || e[19] !== T || e[20] !== A ? (M = /* @__PURE__ */ n(ue, { arrow: !0, placement: "right", title: A, ...s, children: T }), e[18] = s, e[19] = T, e[20] = A, e[21] = M) : M = e[21];
1325
- let I;
1326
- return e[22] !== i || e[23] !== M ? (I = /* @__PURE__ */ n(ve, { ...i, children: M }), e[22] = i, e[23] = M, e[24] = I) : I = e[24], I;
712
+ e[11] !== u ? (T = u ? /* @__PURE__ */ l(nt, {}) : /* @__PURE__ */ l(it, {}), e[11] = u, e[12] = T) : T = e[12];
713
+ let y;
714
+ e[13] !== _ || e[14] !== M || e[15] !== h || e[16] !== T ? (y = /* @__PURE__ */ l(re, { onClick: _, "aria-label": M, disabled: h, children: T }), e[13] = _, e[14] = M, e[15] = h, e[16] = T, e[17] = y) : y = e[17];
715
+ let b;
716
+ e[18] !== r || e[19] !== y || e[20] !== D ? (b = /* @__PURE__ */ l(he, { arrow: !0, placement: "right", title: D, ...r, children: y }), e[18] = r, e[19] = y, e[20] = D, e[21] = b) : b = e[21];
717
+ let w;
718
+ return e[22] !== n || e[23] !== b ? (w = /* @__PURE__ */ l(Ce, { ...n, children: b }), e[22] = n, e[23] = b, e[24] = w) : w = e[24], w;
1327
719
  }
1328
- const Se = {
720
+ const _e = {
1329
721
  zoom: {
1330
722
  position: "relative",
1331
723
  height: ({
@@ -1357,180 +749,180 @@ const Se = {
1357
749
  position: "absolute"
1358
750
  }
1359
751
  };
1360
- function ml(t) {
1361
- const e = Z(40), {
1362
- zoom: o,
1363
- disabled: l,
1364
- direction: i,
1365
- reverse: s,
1366
- isLoading: r,
752
+ function Yt(t) {
753
+ const e = F(40), {
754
+ zoom: s,
755
+ disabled: o,
756
+ direction: n,
757
+ reverse: r,
758
+ isLoading: i,
1367
759
  maxZoom: a,
1368
760
  minZoom: c,
1369
761
  PaperProps: d,
1370
- ResetViewProps: u,
1371
- showZoom: h,
1372
- onChange: p,
1373
- onReset: v
1374
- } = t, b = i === void 0 ? "vertical" : i, y = s === void 0 ? !1 : s, x = a === void 0 ? 24 : a, f = c === void 0 ? 0 : c;
1375
- let m;
1376
- e[0] !== u ? (m = u === void 0 ? {
1377
- Icon: He
1378
- } : u, e[0] = u, e[1] = m) : m = e[1];
1379
- const g = m, C = h === void 0 ? !0 : h;
762
+ ResetViewProps: m,
763
+ showZoom: u,
764
+ onChange: f,
765
+ onReset: I
766
+ } = t, v = n === void 0 ? "vertical" : n, k = r === void 0 ? !1 : r, p = a === void 0 ? 24 : a, g = c === void 0 ? 0 : c;
767
+ let S;
768
+ e[0] !== m ? (S = m === void 0 ? {
769
+ Icon: st
770
+ } : m, e[0] = m, e[1] = S) : S = e[1];
771
+ const A = S, _ = u === void 0 ? !0 : u;
772
+ let C;
773
+ e[2] !== p || e[3] !== f || e[4] !== s ? (C = () => {
774
+ const O = Math.min(p, s + 1);
775
+ f(O);
776
+ }, e[2] = p, e[3] = f, e[4] = s, e[5] = C) : C = e[5];
777
+ const D = C;
778
+ let M;
779
+ e[6] !== g || e[7] !== f || e[8] !== s ? (M = () => {
780
+ const O = Math.max(g, s - 1);
781
+ f(O);
782
+ }, e[6] = g, e[7] = f, e[8] = s, e[9] = M) : M = e[9];
783
+ const h = M, T = Math.floor(s), y = v === "vertical" ? "horizontal" : "vertical";
784
+ let b = v === "vertical" ? "column" : "row";
785
+ k && (b = b + "-reverse");
1380
786
  let w;
1381
- e[2] !== x || e[3] !== p || e[4] !== o ? (w = () => {
1382
- const $ = Math.min(x, o + 1);
1383
- p($);
1384
- }, e[2] = x, e[3] = p, e[4] = o, e[5] = w) : w = e[5];
1385
- const A = w;
1386
- let O;
1387
- e[6] !== f || e[7] !== p || e[8] !== o ? (O = () => {
1388
- const $ = Math.max(f, o - 1);
1389
- p($);
1390
- }, e[6] = f, e[7] = p, e[8] = o, e[9] = O) : O = e[9];
1391
- const S = O, D = Math.floor(o), T = b === "vertical" ? "horizontal" : "vertical";
1392
- let M = b === "vertical" ? "column" : "row";
1393
- y && (M = M + "-reverse");
1394
- let I;
1395
- e[10] !== M ? (I = {
1396
- ...Se.paper,
1397
- flexDirection: M
1398
- }, e[10] = M, e[11] = I) : I = e[11];
1399
- let _;
1400
- e[12] !== g || e[13] !== l || e[14] !== T || e[15] !== v ? (_ = v && /* @__PURE__ */ k(X, { children: [
1401
- /* @__PURE__ */ n(ae, { onClick: v, "aria-label": "Reset action", disabled: l, children: /* @__PURE__ */ n(g.Icon, {}) }),
1402
- /* @__PURE__ */ n(ce, { orientation: T, flexItem: !0 })
1403
- ] }), e[12] = g, e[13] = l, e[14] = T, e[15] = v, e[16] = _) : _ = e[16];
1404
- let V;
1405
- e[17] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ n(Xe, {}), e[17] = V) : V = e[17];
787
+ e[10] !== b ? (w = {
788
+ ..._e.paper,
789
+ flexDirection: b
790
+ }, e[10] = b, e[11] = w) : w = e[11];
791
+ let x;
792
+ e[12] !== A || e[13] !== o || e[14] !== y || e[15] !== I ? (x = I && /* @__PURE__ */ $(ee, { children: [
793
+ /* @__PURE__ */ l(re, { onClick: I, "aria-label": "Reset action", disabled: o, children: /* @__PURE__ */ l(A.Icon, {}) }),
794
+ /* @__PURE__ */ l(fe, { orientation: y, flexItem: !0 })
795
+ ] }), e[12] = A, e[13] = o, e[14] = y, e[15] = I, e[16] = x) : x = e[16];
796
+ let Z;
797
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ l(rt, {}), e[17] = Z) : Z = e[17];
798
+ let U;
799
+ e[18] !== o || e[19] !== D ? (U = /* @__PURE__ */ l(re, { onClick: D, "aria-label": "Increase zoom", disabled: o, children: Z }), e[18] = o, e[19] = D, e[20] = U) : U = e[20];
1406
800
  let L;
1407
- e[18] !== l || e[19] !== A ? (L = /* @__PURE__ */ n(ae, { onClick: A, "aria-label": "Increase zoom", disabled: l, children: V }), e[18] = l, e[19] = A, e[20] = L) : L = e[20];
1408
- let R;
1409
- e[21] !== T ? (R = /* @__PURE__ */ n(ce, { orientation: T, flexItem: !0 }), e[21] = T, e[22] = R) : R = e[22];
1410
- let E;
1411
- e[23] !== D || e[24] !== T || e[25] !== r || e[26] !== C ? (E = C && /* @__PURE__ */ k(X, { children: [
1412
- /* @__PURE__ */ k(K, { sx: Se.zoom, children: [
1413
- /* @__PURE__ */ n(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: D }),
1414
- r && /* @__PURE__ */ n(st, { sx: Se.circularProgress, variant: "indeterminate", size: 24 })
1415
- ] }),
1416
- /* @__PURE__ */ n(ce, { orientation: T, flexItem: !0 })
1417
- ] }), e[23] = D, e[24] = T, e[25] = r, e[26] = C, e[27] = E) : E = e[27];
1418
- let B;
1419
- e[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ n(qe, {}), e[28] = B) : B = e[28];
1420
- let j;
1421
- e[29] !== S || e[30] !== l ? (j = /* @__PURE__ */ n(ae, { onClick: S, "aria-label": "Decrease zoom", disabled: l, children: B }), e[29] = S, e[30] = l, e[31] = j) : j = e[31];
801
+ e[21] !== y ? (L = /* @__PURE__ */ l(fe, { orientation: y, flexItem: !0 }), e[21] = y, e[22] = L) : L = e[22];
1422
802
  let P;
1423
- return e[32] !== d || e[33] !== I || e[34] !== _ || e[35] !== L || e[36] !== R || e[37] !== E || e[38] !== j ? (P = /* @__PURE__ */ k(ve, { sx: I, ...d, children: [
1424
- _,
803
+ e[23] !== T || e[24] !== y || e[25] !== i || e[26] !== _ ? (P = _ && /* @__PURE__ */ $(ee, { children: [
804
+ /* @__PURE__ */ $(q, { sx: _e.zoom, children: [
805
+ /* @__PURE__ */ l(Q, { display: "block", align: "center", color: "textSecondary", variant: "overline", children: T }),
806
+ i && /* @__PURE__ */ l(qe, { sx: _e.circularProgress, variant: "indeterminate", size: 24 })
807
+ ] }),
808
+ /* @__PURE__ */ l(fe, { orientation: y, flexItem: !0 })
809
+ ] }), e[23] = T, e[24] = y, e[25] = i, e[26] = _, e[27] = P) : P = e[27];
810
+ let V;
811
+ e[28] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ l(at, {}), e[28] = V) : V = e[28];
812
+ let E;
813
+ e[29] !== h || e[30] !== o ? (E = /* @__PURE__ */ l(re, { onClick: h, "aria-label": "Decrease zoom", disabled: o, children: V }), e[29] = h, e[30] = o, e[31] = E) : E = e[31];
814
+ let R;
815
+ return e[32] !== d || e[33] !== w || e[34] !== x || e[35] !== U || e[36] !== L || e[37] !== P || e[38] !== E ? (R = /* @__PURE__ */ $(Ce, { sx: w, ...d, children: [
816
+ x,
817
+ U,
1425
818
  L,
1426
- R,
1427
- E,
1428
- j
1429
- ] }), e[32] = d, e[33] = I, e[34] = _, e[35] = L, e[36] = R, e[37] = E, e[38] = j, e[39] = P) : P = e[39], P;
819
+ P,
820
+ E
821
+ ] }), e[32] = d, e[33] = w, e[34] = x, e[35] = U, e[36] = L, e[37] = P, e[38] = E, e[39] = R) : R = e[39], R;
1430
822
  }
1431
- function Wt(t) {
1432
- const e = Z(4), {
1433
- length: o
1434
- } = t, l = o === void 0 ? 5 : o;
1435
- let i;
1436
- e[0] !== l ? (i = new Array(l).fill(null).map(Gt), e[0] = l, e[1] = i) : i = e[1];
1437
- let s;
1438
- return e[2] !== i ? (s = /* @__PURE__ */ n(K, { "aria-label": "List Data skeleton", children: i }), e[2] = i, e[3] = s) : s = e[3], s;
823
+ function _t(t) {
824
+ const e = F(4), {
825
+ length: s
826
+ } = t, o = s === void 0 ? 5 : s;
827
+ let n;
828
+ e[0] !== o ? (n = new Array(o).fill(null).map(Mt), e[0] = o, e[1] = n) : n = e[1];
829
+ let r;
830
+ return e[2] !== n ? (r = /* @__PURE__ */ l(q, { "aria-label": "List Data skeleton", children: n }), e[2] = n, e[3] = r) : r = e[3], r;
1439
831
  }
1440
- function Gt(t, e) {
1441
- return /* @__PURE__ */ k(pe, { container: !0, spacing: 1, children: [
1442
- /* @__PURE__ */ k(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
1443
- /* @__PURE__ */ n(Ce, { width: Ht(e) ? 72 : 48, height: 20 }),
1444
- /* @__PURE__ */ n(Ce, { width: 48, height: 8 })
832
+ function Mt(t, e) {
833
+ return /* @__PURE__ */ $(pe, { container: !0, spacing: 1, children: [
834
+ /* @__PURE__ */ $(pe, { container: !0, item: !0, direction: "row", justifyContent: "space-between", alignItems: "center", children: [
835
+ /* @__PURE__ */ l(we, { width: Dt(e) ? 72 : 48, height: 20 }),
836
+ /* @__PURE__ */ l(we, { width: 48, height: 8 })
1445
837
  ] }),
1446
- /* @__PURE__ */ n(Ce, { sx: {
1447
- height: Ft,
1448
- marginTop: Nt,
1449
- marginBottom: zt,
838
+ /* @__PURE__ */ l(we, { sx: {
839
+ height: kt,
840
+ marginTop: At,
841
+ marginBottom: Tt,
1450
842
  width: "100%"
1451
843
  } })
1452
844
  ] }, e);
1453
845
  }
1454
- function zt(t) {
846
+ function Tt(t) {
1455
847
  const {
1456
848
  spacing: e
1457
849
  } = t;
1458
850
  return e(1.75);
1459
851
  }
1460
- function Nt(t) {
852
+ function At(t) {
1461
853
  const {
1462
854
  spacing: e
1463
855
  } = t;
1464
856
  return e(1.25);
1465
857
  }
1466
- function Ft(t) {
858
+ function kt(t) {
1467
859
  const {
1468
860
  spacing: e
1469
861
  } = t;
1470
862
  return e(0.5);
1471
863
  }
1472
- function Ht(t) {
864
+ function Dt(t) {
1473
865
  return t % 2 === 1;
1474
866
  }
1475
- function Xt(t) {
1476
- const e = Z(13), {
1477
- title: o,
1478
- body: l,
1479
- severity: i
1480
- } = t, s = o === void 0 ? "No data available" : o, r = l === 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." : l;
1481
- if (i) {
867
+ function It(t) {
868
+ const e = F(13), {
869
+ title: s,
870
+ body: o,
871
+ severity: n
872
+ } = t, r = s === void 0 ? "No data available" : s, i = 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;
873
+ if (n) {
874
+ let m;
875
+ e[0] !== i ? (m = /* @__PURE__ */ l(ke, { children: i }), e[0] = i, e[1] = m) : m = e[1];
1482
876
  let u;
1483
- e[0] !== r ? (u = /* @__PURE__ */ n(Ie, { children: r }), e[0] = r, e[1] = u) : u = e[1];
1484
- let h;
1485
- return e[2] !== i || e[3] !== u || e[4] !== s ? (h = /* @__PURE__ */ n(at, { title: s, severity: i, children: u }), e[2] = i, e[3] = u, e[4] = s, e[5] = h) : h = e[5], h;
877
+ return e[2] !== n || e[3] !== m || e[4] !== r ? (u = /* @__PURE__ */ l(Ke, { title: r, severity: n, children: m }), e[2] = n, e[3] = m, e[4] = r, e[5] = u) : u = e[5], u;
1486
878
  }
1487
879
  let a;
1488
- e[6] !== s ? (a = s && /* @__PURE__ */ n(Q, { variant: "body2", children: s }), e[6] = s, e[7] = a) : a = e[7];
880
+ e[6] !== r ? (a = r && /* @__PURE__ */ l(Q, { variant: "body2", children: r }), e[6] = r, e[7] = a) : a = e[7];
1489
881
  let c;
1490
- e[8] !== r ? (c = /* @__PURE__ */ n(Ie, { color: "textSecondary", children: r }), e[8] = r, e[9] = c) : c = e[9];
882
+ e[8] !== i ? (c = /* @__PURE__ */ l(ke, { color: "textSecondary", children: i }), e[8] = i, e[9] = c) : c = e[9];
1491
883
  let d;
1492
- return e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ k(K, { children: [
884
+ return e[10] !== a || e[11] !== c ? (d = /* @__PURE__ */ $(q, { children: [
1493
885
  a,
1494
886
  c
1495
887
  ] }), e[10] = a, e[11] = c, e[12] = d) : d = e[12], d;
1496
888
  }
1497
- function Ie(t) {
1498
- const e = Z(5), {
1499
- color: o,
1500
- children: l
889
+ function ke(t) {
890
+ const e = F(5), {
891
+ color: s,
892
+ children: o
1501
893
  } = t;
1502
- if (l) {
1503
- const s = o ?? "inherit";
1504
- let r;
1505
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
894
+ if (o) {
895
+ const r = s ?? "inherit";
896
+ let i;
897
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
1506
898
  fontWeight: "normal"
1507
- }, e[0] = r) : r = e[0];
899
+ }, e[0] = i) : i = e[0];
1508
900
  let a;
1509
- return e[1] !== l || e[2] !== s ? (a = /* @__PURE__ */ n(K, { mt: 0.5, children: /* @__PURE__ */ n(Q, { component: "div", variant: "caption", color: s, style: r, children: l }) }), e[1] = l, e[2] = s, e[3] = a) : a = e[3], a;
901
+ return e[1] !== o || e[2] !== r ? (a = /* @__PURE__ */ l(q, { mt: 0.5, children: /* @__PURE__ */ l(Q, { component: "div", variant: "caption", color: r, style: i, children: o }) }), e[1] = o, e[2] = r, e[3] = a) : a = e[3], a;
1510
902
  }
1511
- let i;
1512
- return e[4] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ n(K, { mt: -1 }), e[4] = i) : i = e[4], i;
903
+ let n;
904
+ return e[4] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ l(q, { mt: -1 }), e[4] = n) : n = e[4], n;
1513
905
  }
1514
- function qt(t) {
1515
- const e = Z(2);
1516
- let o;
1517
- e[0] !== t ? (o = () => t ? 1 : 0, e[0] = t, e[1] = o) : o = e[1];
1518
- const [l, i] = re(o);
1519
- return t && l === 0 && i(1), !t && l === 1 && i(2), l === 1;
906
+ function Lt(t) {
907
+ const e = F(2);
908
+ let s;
909
+ e[0] !== t ? (s = () => t ? 1 : 0, e[0] = t, e[1] = s) : s = e[1];
910
+ const [o, n] = ne(s);
911
+ return t && o === 0 && n(1), !t && o === 1 && n(2), o === 1;
1520
912
  }
1521
- const Le = {
913
+ const De = {
1522
914
  overflow: "hidden",
1523
915
  textOverflow: "ellipsis",
1524
916
  whiteSpace: "nowrap"
1525
- }, he = {
917
+ }, ue = {
1526
918
  label: {
1527
919
  "& .MuiListItemText-primary": {
1528
- ...Le
920
+ ...De
1529
921
  }
1530
922
  },
1531
923
  value: {
1532
924
  "& .MuiListItemText-primary": {
1533
- ...Le,
925
+ ...De,
1534
926
  textAlign: "right"
1535
927
  }
1536
928
  },
@@ -1556,107 +948,75 @@ const Le = {
1556
948
  opacity: 0.5,
1557
949
  pointerEvents: "none"
1558
950
  }
1559
- };
1560
- function Kt(t) {
1561
- const e = Z(13), {
1562
- title: o,
1563
- dependencies: l,
1564
- timeout: i,
1565
- TooltipProps: s,
1566
- children: r
1567
- } = t;
1568
- let a;
1569
- e[0] !== l ? (a = l === void 0 ? [] : l, e[0] = l, e[1] = a) : a = e[1];
1570
- const c = a, d = i === void 0 ? 500 : i, u = Ae(null), [h, p] = re(!1);
1571
- let v;
1572
- e[2] !== d ? (v = () => {
1573
- const m = setTimeout(() => {
1574
- if (u.current) {
1575
- const g = u.current.scrollWidth > u.current.clientWidth || u.current.scrollHeight > u.current.clientHeight;
1576
- p(g);
1577
- }
1578
- }, d);
1579
- return () => clearTimeout(m);
1580
- }, e[2] = d, e[3] = v) : v = e[3];
1581
- let b;
1582
- e[4] !== c || e[5] !== d ? (b = [c, d], e[4] = c, e[5] = d, e[6] = b) : b = e[6], mt(v, b);
1583
- const y = h && o;
1584
- let x;
1585
- e[7] !== r ? (x = r({
1586
- ref: u
1587
- }), e[7] = r, e[8] = x) : x = e[8];
1588
- let f;
1589
- return e[9] !== s || e[10] !== y || e[11] !== x ? (f = /* @__PURE__ */ n(ue, { title: y, ...s, children: x }), e[9] = s, e[10] = y, e[11] = x, e[12] = f) : f = e[12], f;
1590
- }
1591
- const Yt = {
951
+ }, Pt = {
1592
952
  showMore: "Show More",
1593
953
  showLess: "Show Less"
1594
954
  };
1595
- function gl(t) {
1596
- const e = Z(34), {
1597
- data: o,
1598
- isLoading: l,
1599
- maxItems: i,
1600
- labels: s,
1601
- showDivider: r,
955
+ function Qt(t) {
956
+ const e = F(34), {
957
+ data: s,
958
+ isLoading: o,
959
+ maxItems: n,
960
+ labels: r,
961
+ showDivider: i,
1602
962
  selectedItemId: a,
1603
963
  tooltipProps: c,
1604
964
  onExpand: d,
1605
- onItemClick: u
965
+ onItemClick: m
1606
966
  } = t;
1607
- let h;
1608
- e[0] !== o ? (h = o === void 0 ? [] : o, e[0] = o, e[1] = h) : h = e[1];
1609
- const p = h, v = l === void 0 ? !1 : l, b = i === void 0 ? 5 : i, y = s === void 0 ? Yt : s, x = r === void 0 ? !0 : r, [f, m] = re(!1), g = qt(v);
1610
- let C;
1611
- e[2] !== p || e[3] !== b || e[4] !== f ? (C = f ? p : p.slice(0, b), e[2] = p, e[3] = b, e[4] = f, e[5] = C) : C = e[5];
1612
- const w = C;
1613
- let A;
1614
- e[6] !== d || e[7] !== f ? (A = () => {
1615
- m(!f), d?.(f);
1616
- }, e[6] = d, e[7] = f, e[8] = A) : A = e[8];
1617
- const O = A;
1618
- if (g) {
1619
- let I;
1620
- return e[9] !== b ? (I = /* @__PURE__ */ n(Wt, { length: b }), e[9] = b, e[10] = I) : I = e[10], I;
967
+ let u;
968
+ e[0] !== s ? (u = s === void 0 ? [] : s, e[0] = s, e[1] = u) : u = e[1];
969
+ const f = u, I = o === void 0 ? !1 : o, v = n === void 0 ? 5 : n, k = r === void 0 ? Pt : r, p = i === void 0 ? !0 : i, [g, S] = ne(!1), A = Lt(I);
970
+ let _;
971
+ e[2] !== f || e[3] !== v || e[4] !== g ? (_ = g ? f : f.slice(0, v), e[2] = f, e[3] = v, e[4] = g, e[5] = _) : _ = e[5];
972
+ const C = _;
973
+ let D;
974
+ e[6] !== d || e[7] !== g ? (D = () => {
975
+ S(!g), d?.(g);
976
+ }, e[6] = d, e[7] = g, e[8] = D) : D = e[8];
977
+ const M = D;
978
+ if (A) {
979
+ let w;
980
+ return e[9] !== v ? (w = /* @__PURE__ */ l(_t, { length: v }), e[9] = v, e[10] = w) : w = e[10], w;
1621
981
  }
1622
- if (w.length === 0) {
1623
- let I;
1624
- return e[11] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ n(Xt, {}), e[11] = I) : I = e[11], I;
982
+ if (C.length === 0) {
983
+ let w;
984
+ return e[11] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ l(It, {}), e[11] = w) : w = e[11], w;
1625
985
  }
1626
- let S;
1627
- if (e[12] !== w || e[13] !== u || e[14] !== a || e[15] !== x || e[16] !== c) {
1628
- let I;
1629
- e[18] !== u || e[19] !== a || e[20] !== x || e[21] !== c ? (I = (_, V) => /* @__PURE__ */ n(Kt, { followCursor: !1, placement: "top", arrow: !0, title: _.tooltipTitle, enterDelay: 10, ...c, children: (L) => {
986
+ let h;
987
+ if (e[12] !== C || e[13] !== m || e[14] !== a || e[15] !== p || e[16] !== c) {
988
+ let w;
989
+ e[18] !== m || e[19] !== a || e[20] !== p || e[21] !== c ? (w = (x, Z) => /* @__PURE__ */ l(ct, { followCursor: !1, placement: "top", arrow: !0, title: x.tooltipTitle, enterDelay: 10, ...c, children: (U) => {
1630
990
  const {
1631
- ref: R
1632
- } = L;
1633
- return /* @__PURE__ */ n(ct, { ref: R, role: "listitem", sx: {
1634
- ...x && he.showDivider,
1635
- ...u && he.clickable,
1636
- ...a === _.id && he.selected,
1637
- ..._.disabled && he.disabled
991
+ ref: L
992
+ } = U;
993
+ return /* @__PURE__ */ l(Ye, { ref: L, role: "listitem", sx: {
994
+ ...p && ue.showDivider,
995
+ ...m && ue.clickable,
996
+ ...a === x.id && ue.selected,
997
+ ...x.disabled && ue.disabled
1638
998
  }, onClick: () => {
1639
- _.disabled || u?.(_);
1640
- }, children: /* @__PURE__ */ k(pe, { container: !0, alignItems: "center", children: [
1641
- /* @__PURE__ */ n(pe, { item: !0, xs: 8, children: /* @__PURE__ */ n(ge, { primary: _.label, sx: he.label }) }),
1642
- /* @__PURE__ */ n(pe, { item: !0, xs: 4, children: /* @__PURE__ */ n(ge, { primary: _.value, sx: he.value }) })
999
+ x.disabled || m?.(x);
1000
+ }, children: /* @__PURE__ */ $(pe, { container: !0, alignItems: "center", children: [
1001
+ /* @__PURE__ */ l(pe, { item: !0, xs: 8, children: /* @__PURE__ */ l(Se, { primary: x.label, sx: ue.label }) }),
1002
+ /* @__PURE__ */ l(pe, { item: !0, xs: 4, children: /* @__PURE__ */ l(Se, { primary: x.value, sx: ue.value }) })
1643
1003
  ] }) });
1644
- } }, `list-item-${V}`), e[18] = u, e[19] = a, e[20] = x, e[21] = c, e[22] = I) : I = e[22], S = w.map(I), e[12] = w, e[13] = u, e[14] = a, e[15] = x, e[16] = c, e[17] = S;
1004
+ } }, `list-item-${Z}`), e[18] = m, e[19] = a, e[20] = p, e[21] = c, e[22] = w) : w = e[22], h = C.map(w), e[12] = C, e[13] = m, e[14] = a, e[15] = p, e[16] = c, e[17] = h;
1645
1005
  } else
1646
- S = e[17];
1647
- let D;
1648
- e[23] !== S ? (D = /* @__PURE__ */ n(dt, { id: "expandable-list", role: "list", children: S }), e[23] = S, e[24] = D) : D = e[24];
1006
+ h = e[17];
1649
1007
  let T;
1650
- e[25] !== p.length || e[26] !== O || e[27] !== y || e[28] !== b || e[29] !== f ? (T = p.length > b && /* @__PURE__ */ n(K, { my: 2, children: /* @__PURE__ */ n(we, { onClick: O, variant: "text", color: "primary", "aria-expanded": f, "aria-controls": "expandable-list", children: f ? y.showLess : y.showMore }) }), e[25] = p.length, e[26] = O, e[27] = y, e[28] = b, e[29] = f, e[30] = T) : T = e[30];
1651
- let M;
1652
- return e[31] !== D || e[32] !== T ? (M = /* @__PURE__ */ k(X, { children: [
1653
- D,
1654
- T
1655
- ] }), e[31] = D, e[32] = T, e[33] = M) : M = e[33], M;
1008
+ e[23] !== h ? (T = /* @__PURE__ */ l(Qe, { id: "expandable-list", role: "list", children: h }), e[23] = h, e[24] = T) : T = e[24];
1009
+ let y;
1010
+ e[25] !== f.length || e[26] !== M || e[27] !== k || e[28] !== v || e[29] !== g ? (y = f.length > v && /* @__PURE__ */ l(q, { my: 2, children: /* @__PURE__ */ l(xe, { onClick: M, variant: "text", color: "primary", "aria-expanded": g, "aria-controls": "expandable-list", children: g ? k.showLess : k.showMore }) }), e[25] = f.length, e[26] = M, e[27] = k, e[28] = v, e[29] = g, e[30] = y) : y = e[30];
1011
+ let b;
1012
+ return e[31] !== T || e[32] !== y ? (b = /* @__PURE__ */ $(ee, { children: [
1013
+ T,
1014
+ y
1015
+ ] }), e[31] = T, e[32] = y, e[33] = b) : b = e[33], b;
1656
1016
  }
1657
- const Qt = 288, fe = {
1017
+ const Ot = 288, ce = {
1658
1018
  root: {
1659
- width: Qt,
1019
+ width: Ot,
1660
1020
  overflow: "auto"
1661
1021
  },
1662
1022
  toggle: {
@@ -1755,7 +1115,7 @@ const Qt = 288, fe = {
1755
1115
  }) => t.primary.main
1756
1116
  }
1757
1117
  }
1758
- }, Jt = {
1118
+ }, Rt = {
1759
1119
  toggle: {
1760
1120
  title: "Toggle basemaps controls"
1761
1121
  },
@@ -1766,218 +1126,224 @@ const Qt = 288, fe = {
1766
1126
  }
1767
1127
  }
1768
1128
  };
1769
- function el(t) {
1770
- const e = Z(6), {
1771
- isMobile: o,
1772
- labels: l,
1773
- onChangeCollapsed: i
1774
- } = t, s = o === void 0 ? !1 : o;
1775
- let r;
1776
- e[0] !== s || e[1] !== l || e[2] !== i ? (r = s && /* @__PURE__ */ k(X, { children: [
1777
- /* @__PURE__ */ n(Q, { variant: "caption", flexGrow: 1, children: l.title }),
1778
- /* @__PURE__ */ n(ue, { title: l.actions.close, children: /* @__PURE__ */ n(ae, { size: "small", onClick: i, "aria-label": l.actions.close, children: /* @__PURE__ */ n(Re, {}) }) })
1779
- ] }), e[0] = s, e[1] = l, e[2] = i, e[3] = r) : r = e[3];
1129
+ function Et(t) {
1130
+ const e = F(6), {
1131
+ isMobile: s,
1132
+ labels: o,
1133
+ onChangeCollapsed: n
1134
+ } = t, r = s === void 0 ? !1 : s;
1135
+ let i;
1136
+ e[0] !== r || e[1] !== o || e[2] !== n ? (i = r && /* @__PURE__ */ $(ee, { children: [
1137
+ /* @__PURE__ */ l(Q, { variant: "caption", flexGrow: 1, children: o.title }),
1138
+ /* @__PURE__ */ l(he, { title: o.actions.close, children: /* @__PURE__ */ l(re, { size: "small", onClick: n, "aria-label": o.actions.close, children: /* @__PURE__ */ l(Re, {}) }) })
1139
+ ] }), e[0] = r, e[1] = o, e[2] = n, e[3] = i) : i = e[3];
1780
1140
  let a;
1781
- return e[4] !== r ? (a = /* @__PURE__ */ n(K, { sx: fe.header, children: r }), e[4] = r, e[5] = a) : a = e[5], a;
1141
+ return e[4] !== i ? (a = /* @__PURE__ */ l(q, { sx: ce.header, children: i }), e[4] = i, e[5] = a) : a = e[5], a;
1782
1142
  }
1783
- function tl(t) {
1784
- const e = Z(5), {
1785
- title: o,
1786
- children: l,
1787
- collapsed: i
1143
+ function $t(t) {
1144
+ const e = F(5), {
1145
+ title: s,
1146
+ children: o,
1147
+ collapsed: n
1788
1148
  } = t;
1789
- if (i === void 0 ? !1 : i)
1790
- return l;
1791
- let r;
1792
- e[0] !== o ? (r = /* @__PURE__ */ n(Q, { variant: "caption", color: "textSecondary", sx: fe.groupWrapper.content, children: o }), e[0] = o, e[1] = r) : r = e[1];
1149
+ if (n === void 0 ? !1 : n)
1150
+ return o;
1151
+ let i;
1152
+ e[0] !== s ? (i = /* @__PURE__ */ l(Q, { variant: "caption", color: "textSecondary", sx: ce.groupWrapper.content, children: s }), e[0] = s, e[1] = i) : i = e[1];
1793
1153
  let a;
1794
- return e[2] !== l || e[3] !== r ? (a = /* @__PURE__ */ k(X, { children: [
1795
- r,
1796
- l
1797
- ] }), e[2] = l, e[3] = r, e[4] = a) : a = e[4], a;
1154
+ return e[2] !== o || e[3] !== i ? (a = /* @__PURE__ */ $(ee, { children: [
1155
+ i,
1156
+ o
1157
+ ] }), e[2] = o, e[3] = i, e[4] = a) : a = e[4], a;
1798
1158
  }
1799
- function ll(t) {
1800
- const e = Z(9), {
1801
- values: o,
1802
- selected: l,
1803
- onChange: i
1159
+ function Bt(t) {
1160
+ const e = F(9), {
1161
+ values: s,
1162
+ selected: o,
1163
+ onChange: n
1804
1164
  } = t;
1805
- let s;
1806
- if (e[0] !== i || e[1] !== l || e[2] !== o) {
1165
+ let r;
1166
+ if (e[0] !== n || e[1] !== o || e[2] !== s) {
1807
1167
  let a;
1808
- e[4] !== i || e[5] !== l ? (a = (c) => {
1809
- const d = c.id === l;
1810
- return /* @__PURE__ */ k(K, { sx: fe.item.container, component: "button", "aria-label": c.label, onClick: () => i(c.id), children: [
1811
- /* @__PURE__ */ n("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": d }),
1812
- /* @__PURE__ */ n(Q, { variant: "caption", sx: {
1813
- ...d && fe.item.selected
1168
+ e[4] !== n || e[5] !== o ? (a = (c) => {
1169
+ const d = c.id === o;
1170
+ return /* @__PURE__ */ $(q, { sx: ce.item.container, component: "button", "aria-label": c.label, onClick: () => n(c.id), children: [
1171
+ /* @__PURE__ */ l("img", { src: c.icon, "aria-label": c.label + " icon", "data-active": d }),
1172
+ /* @__PURE__ */ l(Q, { variant: "caption", sx: {
1173
+ ...d && ce.item.selected
1814
1174
  }, children: c.label })
1815
1175
  ] }, c.id);
1816
- }, e[4] = i, e[5] = l, e[6] = a) : a = e[6], s = o.map(a), e[0] = i, e[1] = l, e[2] = o, e[3] = s;
1176
+ }, e[4] = n, e[5] = o, e[6] = a) : a = e[6], r = s.map(a), e[0] = n, e[1] = o, e[2] = s, e[3] = r;
1817
1177
  } else
1818
- s = e[3];
1819
- let r;
1820
- return e[7] !== s ? (r = /* @__PURE__ */ n(K, { sx: fe.group, children: s }), e[7] = s, e[8] = r) : r = e[8], r;
1178
+ r = e[3];
1179
+ let i;
1180
+ return e[7] !== r ? (i = /* @__PURE__ */ l(q, { sx: ce.group, children: r }), e[7] = r, e[8] = i) : i = e[8], i;
1821
1181
  }
1822
- function ol(t) {
1823
- const e = Z(21), {
1824
- ref: o,
1825
- children: l,
1826
- collapsed: i,
1827
- isMobile: s,
1828
- position: r,
1182
+ function Ut(t) {
1183
+ const e = F(21), {
1184
+ ref: s,
1185
+ children: o,
1186
+ collapsed: n,
1187
+ isMobile: r,
1188
+ position: i,
1829
1189
  sx: a,
1830
1190
  slotProps: c,
1831
1191
  onChangeCollapsed: d
1832
1192
  } = t;
1833
- if (s === void 0 ? !1 : s) {
1834
- const C = !i;
1835
- let w;
1836
- return e[0] !== l || e[1] !== d || e[2] !== C ? (w = /* @__PURE__ */ n(ut, { anchor: "bottom", open: C, onClose: d, children: l }), e[0] = l, e[1] = d, e[2] = C, e[3] = w) : w = e[3], w;
1193
+ if (r === void 0 ? !1 : r) {
1194
+ const _ = !n;
1195
+ let C;
1196
+ return e[0] !== o || e[1] !== d || e[2] !== _ ? (C = /* @__PURE__ */ l(Je, { anchor: "bottom", open: _, onClose: d, children: o }), e[0] = o, e[1] = d, e[2] = _, e[3] = C) : C = e[3], C;
1837
1197
  }
1838
- const h = !i;
1839
- let p;
1840
- e[4] !== d ? (p = () => d(!0), e[4] = d, e[5] = p) : p = e[5];
1841
- const v = r.startsWith("bottom") ? "bottom" : "top", b = r.endsWith("right") ? "left" : "right";
1842
- let y;
1843
- e[6] !== v || e[7] !== b ? (y = {
1844
- vertical: v,
1845
- horizontal: b
1846
- }, e[6] = v, e[7] = b, e[8] = y) : y = e[8];
1847
- const x = r.startsWith("bottom") ? "bottom" : "top", f = r.endsWith("right") ? "right" : "left";
1848
- let m;
1849
- e[9] !== x || e[10] !== f ? (m = {
1850
- vertical: x,
1851
- horizontal: f
1852
- }, e[9] = x, e[10] = f, e[11] = m) : m = e[11];
1853
- let g;
1854
- return e[12] !== l || e[13] !== o || e[14] !== c || e[15] !== a || e[16] !== h || e[17] !== p || e[18] !== y || e[19] !== m ? (g = /* @__PURE__ */ n(ft, { sx: a, anchorEl: o, open: h, onClose: p, anchorOrigin: y, transformOrigin: m, slotProps: c, children: l }), e[12] = l, e[13] = o, e[14] = c, e[15] = a, e[16] = h, e[17] = p, e[18] = y, e[19] = m, e[20] = g) : g = e[20], g;
1198
+ const u = !n;
1199
+ let f;
1200
+ e[4] !== d ? (f = () => d(!0), e[4] = d, e[5] = f) : f = e[5];
1201
+ const I = i.startsWith("bottom") ? "bottom" : "top", v = i.endsWith("right") ? "left" : "right";
1202
+ let k;
1203
+ e[6] !== I || e[7] !== v ? (k = {
1204
+ vertical: I,
1205
+ horizontal: v
1206
+ }, e[6] = I, e[7] = v, e[8] = k) : k = e[8];
1207
+ const p = i.startsWith("bottom") ? "bottom" : "top", g = i.endsWith("right") ? "right" : "left";
1208
+ let S;
1209
+ e[9] !== p || e[10] !== g ? (S = {
1210
+ vertical: p,
1211
+ horizontal: g
1212
+ }, e[9] = p, e[10] = g, e[11] = S) : S = e[11];
1213
+ let A;
1214
+ return e[12] !== o || e[13] !== s || e[14] !== c || e[15] !== a || e[16] !== u || e[17] !== f || e[18] !== k || e[19] !== S ? (A = /* @__PURE__ */ l(et, { sx: a, anchorEl: s, open: u, onClose: f, anchorOrigin: k, transformOrigin: S, slotProps: c, children: o }), e[12] = o, e[13] = s, e[14] = c, e[15] = a, e[16] = u, e[17] = f, e[18] = k, e[19] = S, e[20] = A) : A = e[20], A;
1855
1215
  }
1856
- function bl(t) {
1857
- const e = Z(54), {
1858
- options: o,
1859
- labels: l,
1860
- position: i,
1861
- selected: s,
1862
- onChange: r,
1216
+ function Jt(t) {
1217
+ const e = F(56), {
1218
+ options: s,
1219
+ labels: o,
1220
+ position: n,
1221
+ selected: r,
1222
+ onChange: i,
1863
1223
  TooltipProps: a
1864
1224
  } = t;
1865
1225
  let c;
1866
- e[0] !== o ? (c = o === void 0 ? [] : o, e[0] = o, e[1] = c) : c = e[1];
1867
- const d = c, u = i === void 0 ? "bottom-right" : i, h = s === void 0 ? null : s, [p, v] = re(null), b = Ae(null), [y, x] = re(null), f = ht();
1868
- let m;
1869
- e[2] !== f.breakpoints ? (m = f.breakpoints.down("sm"), e[2] = f.breakpoints, e[3] = m) : m = e[3];
1870
- const g = pt(m);
1871
- let C;
1872
- e[4] !== l ? (C = l ?? {}, e[4] = l, e[5] = C) : C = e[5];
1873
- let w;
1874
- e[6] !== C ? (w = ye(Jt, C), e[6] = C, e[7] = w) : w = e[7];
1875
- const A = w, O = !p;
1876
- let S;
1877
- if (e[8] !== d || e[9] !== h) {
1878
- let ie;
1879
- e[11] !== h ? (ie = (xe) => xe.id === h, e[11] = h, e[12] = ie) : ie = e[12], S = d.find(ie), e[8] = d, e[9] = h, e[10] = S;
1880
- } else
1881
- S = e[10];
1882
- const D = S;
1226
+ e[0] !== s ? (c = s === void 0 ? [] : s, e[0] = s, e[1] = c) : c = e[1];
1227
+ const d = c, m = n === void 0 ? "bottom-right" : n, u = r === void 0 ? null : r, [f, I] = ne(null), [v, k] = ne(!1), p = Pe(null), [g, S] = ne(null), A = tt();
1228
+ let _;
1229
+ e[2] !== A.breakpoints ? (_ = A.breakpoints.down("sm"), e[2] = A.breakpoints, e[3] = _) : _ = e[3];
1230
+ const C = lt(_);
1231
+ let D;
1232
+ e[4] !== o ? (D = o ?? {}, e[4] = o, e[5] = D) : D = e[5];
1233
+ let M;
1234
+ e[6] !== D ? (M = Me(Rt, D), e[6] = D, e[7] = M) : M = e[7];
1235
+ const h = M;
1883
1236
  let T;
1884
- e[13] !== d ? (T = Object.groupBy(d, nl), e[13] = d, e[14] = T) : T = e[14];
1885
- const M = T;
1886
- let I;
1887
- e[15] !== M ? (I = Object.keys(M), e[15] = M, e[16] = I) : I = e[16];
1888
- const _ = I.length;
1889
- let V, L;
1890
- e[17] !== y ? (V = () => {
1891
- if (b.current && clearTimeout(b.current), !!y)
1892
- return b.current = setTimeout(() => {
1893
- v(null);
1894
- }, y), () => {
1895
- b.current && clearTimeout(b.current);
1237
+ if (e[8] !== d || e[9] !== u) {
1238
+ let se;
1239
+ e[11] !== u ? (se = (be) => be.id === u, e[11] = u, e[12] = se) : se = e[12], T = d.find(se), e[8] = d, e[9] = u, e[10] = T;
1240
+ } else
1241
+ T = e[10];
1242
+ const y = T;
1243
+ let b;
1244
+ e[13] !== d ? (b = Object.groupBy(d, Vt), e[13] = d, e[14] = b) : b = e[14];
1245
+ const w = b;
1246
+ let x;
1247
+ e[15] !== w ? (x = Object.keys(w), e[15] = w, e[16] = x) : x = e[16];
1248
+ const Z = x.length;
1249
+ let U;
1250
+ e[17] === Symbol.for("react.memo_cache_sentinel") ? (U = () => {
1251
+ I(null), k(!1);
1252
+ }, e[17] = U) : U = e[17];
1253
+ const L = U;
1254
+ let P, V;
1255
+ e[18] !== g ? (P = () => {
1256
+ if (p.current && clearTimeout(p.current), !!g)
1257
+ return p.current = setTimeout(() => {
1258
+ L();
1259
+ }, g), () => {
1260
+ p.current && clearTimeout(p.current);
1896
1261
  };
1897
- }, L = [y], e[17] = y, e[18] = V, e[19] = L) : (V = e[18], L = e[19]), je(V, L);
1898
- let R;
1899
- e[20] === Symbol.for("react.memo_cache_sentinel") ? (R = () => {
1900
- x(null);
1901
- }, e[20] = R) : R = e[20];
1902
- const E = R;
1903
- let B;
1904
- e[21] === Symbol.for("react.memo_cache_sentinel") ? (B = () => {
1905
- x(400);
1906
- }, e[21] = B) : B = e[21];
1907
- const j = B;
1908
- let P;
1909
- e[22] === Symbol.for("react.memo_cache_sentinel") ? (P = (ie) => {
1910
- v(ie.currentTarget);
1911
- }, e[22] = P) : P = e[22];
1912
- const $ = D?.icon, W = D?.label ?? "Basemap";
1913
- let z;
1914
- e[23] !== $ || e[24] !== W ? (z = /* @__PURE__ */ n(ae, { sx: fe.toggle, onClick: P, children: /* @__PURE__ */ n("img", { src: $, alt: W }) }), e[23] = $, e[24] = W, e[25] = z) : z = e[25];
1262
+ }, V = [g], e[18] = g, e[19] = P, e[20] = V) : (P = e[19], V = e[20]), Oe(P, V);
1263
+ let E;
1264
+ e[21] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
1265
+ S(null);
1266
+ }, e[21] = E) : E = e[21];
1267
+ const R = E;
1268
+ let O;
1269
+ e[22] === Symbol.for("react.memo_cache_sentinel") ? (O = () => {
1270
+ S(400);
1271
+ }, e[22] = O) : O = e[22];
1272
+ const W = O;
1915
1273
  let G;
1916
- e[26] !== a || e[27] !== A.toggle.title || e[28] !== z ? (G = /* @__PURE__ */ n(ue, { title: A.toggle.title, placement: "right", ...a, children: z }), e[26] = a, e[27] = A.toggle.title, e[28] = z, e[29] = G) : G = e[29];
1917
- const N = `translate3d(${u.endsWith("right") ? "-8px" : "8px"}, ${u.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1918
- let F;
1919
- e[30] !== N ? (F = {
1274
+ e[23] === Symbol.for("react.memo_cache_sentinel") ? (G = (se) => {
1275
+ I(se.currentTarget), k(!0);
1276
+ }, e[23] = G) : G = e[23];
1277
+ const j = y?.icon, N = y?.label ?? "Basemap";
1278
+ let z;
1279
+ e[24] !== j || e[25] !== N ? (z = /* @__PURE__ */ l(re, { sx: ce.toggle, onClick: G, children: /* @__PURE__ */ l("img", { src: j, alt: N }) }), e[24] = j, e[25] = N, e[26] = z) : z = e[26];
1280
+ let B;
1281
+ e[27] !== a || e[28] !== h.toggle.title || e[29] !== z ? (B = /* @__PURE__ */ l(he, { title: h.toggle.title, placement: "right", ...a, children: z }), e[27] = a, e[28] = h.toggle.title, e[29] = z, e[30] = B) : B = e[30];
1282
+ const H = `translate3d(${m.endsWith("right") ? "-8px" : "8px"}, ${m.startsWith("bottom") ? "-4px" : "4px"}, 0) !important`;
1283
+ let X;
1284
+ e[31] !== H ? (X = {
1920
1285
  paper: {
1921
1286
  sx: {
1922
- ...fe.root,
1923
- transform: N
1287
+ ...ce.root,
1288
+ transform: H
1924
1289
  },
1925
- onMouseOver: E,
1926
- onMouseLeave: j
1290
+ onMouseOver: R,
1291
+ onMouseLeave: W
1927
1292
  }
1928
- }, e[30] = N, e[31] = F) : F = e[31];
1929
- let U;
1930
- e[32] === Symbol.for("react.memo_cache_sentinel") ? (U = () => v(null), e[32] = U) : U = e[32];
1931
- let H;
1932
- e[33] === Symbol.for("react.memo_cache_sentinel") ? (H = () => v(null), e[33] = H) : H = e[33];
1933
- let q;
1934
- e[34] !== g || e[35] !== A.header ? (q = /* @__PURE__ */ n(el, { isMobile: g, labels: A.header, onChangeCollapsed: H }), e[34] = g, e[35] = A.header, e[36] = q) : q = e[36];
1935
- let le;
1936
- e[37] !== M ? (le = Object.entries(M), e[37] = M, e[38] = le) : le = e[38];
1293
+ }, e[31] = H, e[32] = X) : X = e[32];
1294
+ const te = !v;
1937
1295
  let J;
1938
- e[39] !== _ || e[40] !== A.header || e[41] !== r || e[42] !== h || e[43] !== le ? (J = le.map((ie) => {
1939
- const [xe, We] = ie;
1940
- return /* @__PURE__ */ n(tl, { title: xe + " " + A.header.title, collapsed: _ < 2, children: /* @__PURE__ */ n(ll, { values: We, selected: h, onChange: (Ge) => {
1941
- v(null), r(Ge);
1942
- } }) }, xe);
1943
- }), e[39] = _, e[40] = A.header, e[41] = r, e[42] = h, e[43] = le, e[44] = J) : J = e[44];
1944
- let oe;
1945
- e[45] !== g || e[46] !== u || e[47] !== F || e[48] !== q || e[49] !== J ? (oe = /* @__PURE__ */ k(ol, { ref: p, slotProps: F, collapsed: O, position: u, isMobile: g, onChangeCollapsed: U, children: [
1946
- q,
1947
- J
1948
- ] }), e[45] = g, e[46] = u, e[47] = F, e[48] = q, e[49] = J, e[50] = oe) : oe = e[50];
1949
- let ne;
1950
- return e[51] !== G || e[52] !== oe ? (ne = /* @__PURE__ */ k(ve, { children: [
1951
- G,
1952
- oe
1953
- ] }), e[51] = G, e[52] = oe, e[53] = ne) : ne = e[53], ne;
1296
+ e[33] === Symbol.for("react.memo_cache_sentinel") ? (J = () => L(), e[33] = J) : J = e[33];
1297
+ let le;
1298
+ e[34] === Symbol.for("react.memo_cache_sentinel") ? (le = () => L(), e[34] = le) : le = e[34];
1299
+ let K;
1300
+ e[35] !== C || e[36] !== h.header ? (K = /* @__PURE__ */ l(Et, { isMobile: C, labels: h.header, onChangeCollapsed: le }), e[35] = C, e[36] = h.header, e[37] = K) : K = e[37];
1301
+ let ie;
1302
+ e[38] !== w ? (ie = Object.entries(w), e[38] = w, e[39] = ie) : ie = e[39];
1303
+ let de;
1304
+ e[40] !== Z || e[41] !== h.header || e[42] !== i || e[43] !== u || e[44] !== ie ? (de = ie.map((se) => {
1305
+ const [be, Ee] = se;
1306
+ return /* @__PURE__ */ l($t, { title: be + " " + h.header.title, collapsed: Z < 2, children: /* @__PURE__ */ l(Bt, { values: Ee, selected: u, onChange: ($e) => {
1307
+ L(), i($e);
1308
+ } }) }, be);
1309
+ }), e[40] = Z, e[41] = h.header, e[42] = i, e[43] = u, e[44] = ie, e[45] = de) : de = e[45];
1310
+ let me;
1311
+ e[46] !== C || e[47] !== m || e[48] !== X || e[49] !== te || e[50] !== K || e[51] !== de ? (me = /* @__PURE__ */ $(Ut, { ref: f, slotProps: X, collapsed: te, position: m, isMobile: C, onChangeCollapsed: J, children: [
1312
+ K,
1313
+ de
1314
+ ] }), e[46] = C, e[47] = m, e[48] = X, e[49] = te, e[50] = K, e[51] = de, e[52] = me) : me = e[52];
1315
+ let ge;
1316
+ return e[53] !== B || e[54] !== me ? (ge = /* @__PURE__ */ $(Ce, { children: [
1317
+ B,
1318
+ me
1319
+ ] }), e[53] = B, e[54] = me, e[55] = ge) : ge = e[55], ge;
1954
1320
  }
1955
- function nl(t) {
1321
+ function Vt(t) {
1956
1322
  return t.group ?? "default";
1957
1323
  }
1958
1324
  export {
1959
- kt as AreaIcon,
1960
- bl as BasemapsUI,
1961
- Rt as BufferIcon,
1962
- ul as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1963
- se as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1964
- $t as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1965
- Et as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1966
- wt as DrawCircleIcon,
1967
- Ct as DrawLassoIcon,
1968
- yt as DrawPolygonIcon,
1969
- xt as DrawSquareIcon,
1970
- pl as GeolocationControls,
1971
- Y as LASSO_TOOLS_LABELS,
1972
- fl as LassoToolsInlineUI,
1973
- de as LassoToolsUI,
1974
- gl as ListDataUI,
1975
- hl as MeasurementToolsUI,
1976
- Pt as RulerIcon,
1977
- Mt as SelectToolIcon,
1978
- Kt as SmartTooltip,
1979
- ue as Tooltip,
1980
- ml as ZoomControlsUI,
1981
- dl as setTooltipEnterDelay
1325
+ gt as AreaIcon,
1326
+ Jt as BasemapsUI,
1327
+ ht as BufferIcon,
1328
+ ll as DEFAULT_LASSO_TOOLS_MODES_MAPPING,
1329
+ oe as DEFAULT_MEASUREMENT_TOOLS_LABELS,
1330
+ vt as DEFAULT_MEASUREMENT_TOOLS_MODES_MAPPING,
1331
+ bt as DEFAULT_MEASUREMENT_TOOLS_UNITS_MAPPING,
1332
+ ol as DrawCircleIcon,
1333
+ nl as DrawLassoIcon,
1334
+ il as DrawPolygonIcon,
1335
+ sl as DrawSquareIcon,
1336
+ Kt as GeolocationControls,
1337
+ ae as LASSO_TOOLS_LABELS,
1338
+ Xt as LassoToolsInlineUI,
1339
+ rl as LassoToolsUI,
1340
+ Qt as ListDataUI,
1341
+ qt as MeasurementToolsUI,
1342
+ pt as RulerIcon,
1343
+ al as SelectToolIcon,
1344
+ ct as SmartTooltip,
1345
+ he as Tooltip,
1346
+ Yt as ZoomControlsUI,
1347
+ cl as setTooltipEnterDelay
1982
1348
  };
1983
1349
  //# sourceMappingURL=components.js.map